Commit 1f7958ae authored by wildfirecode's avatar wildfirecode

1

parent da6983b2
No preview for this file type
{"map":"{\"version\":3,\"file\":\"GetInfoData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/getInfo/GetInfoData.ts\"],\"names\":[],\"mappings\":\";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAAiC,uCAAI;IAArC;;IAsEA,CAAC;IAzBU,4BAAM,GAAb,UAAc,MAAW;QACrB,IAAI,CAAC,MAAM,EAAE;YACT,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,IAAI,CAAC;QACT,IAAG,MAAM,CAAC,IAAI,EAAE;YACZ,IAAG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChB,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;aAC1B;iBAAM;gBACH,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;aACtB;SACJ;QACD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,CAAC,CAAC;QACvC,IAAG,IAAI,CAAC,KAAK,EAAE;YACX,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC9C;QACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC9B,CAAC;IACL,kBAAC;AAAD,CAAC,AAtED,CAAiC,IAAI,GAsEpC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar GetInfoData = (function (_super) {\r\n tslib_1.__extends(GetInfoData, _super);\r\n function GetInfoData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GetInfoData.prototype.update = function (result) {\r\n if (!result) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, result);\r\n var data;\r\n if (result.data) {\r\n if (result.data.rsp) {\r\n data = result.data.rsp;\r\n }\r\n else {\r\n data = result.data;\r\n }\r\n }\r\n this.consumerId = data.consumerId;\r\n this.credits = data.credits;\r\n this.totalScore = data.totalScore;\r\n this.maxScore = data.maxScore;\r\n this.maxScoreTime = data.maxScoreTime;\r\n this.rank = data.rank;\r\n this.percentage = data.percentage || 0;\r\n if (data.token) {\r\n this.token = window['resolve'](data.token);\r\n }\r\n this.status = data.status;\r\n };\r\n return GetInfoData;\r\n}(Data));\r\nexport { GetInfoData };\r\n//# sourceMappingURL=GetInfoData.js.map"}
{"map":"{\"version\":3,\"file\":\"GetOrderInfoData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/custom/getOrderInfo/GetOrderInfoData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAAsC,4CAAI;IAA1C;;IA0CA,CAAC;IAXU,iCAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IAC5B,CAAC;IACL,uBAAC;AAAD,CAAC,AA1CD,CAAsC,IAAI,GA0CzC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar GetOrderInfoData = (function (_super) {\r\n tslib_1.__extends(GetOrderInfoData, _super);\r\n function GetOrderInfoData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GetOrderInfoData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n this.result = data.result;\r\n this.type = data.type;\r\n this.facePrice = data.facePrice;\r\n this.cacheInfo = data.cacheInfo;\r\n this.orderId = data.orderId;\r\n this.title = data.title;\r\n };\r\n return GetOrderInfoData;\r\n}(Data));\r\nexport { GetOrderInfoData };\r\n//# sourceMappingURL=GetOrderInfoData.js.map"}
{"map":"{\"version\":3,\"file\":\"InteractContext.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../node_modules/scilla-core/src/core/context/InteractContext.ts\"],\"names\":[],\"mappings\":\"AAMA,IAAI,OAAO,CAAC;AACZ,IAAI,aAAa,CAAC;AAClB,IAAI,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC;AAEhC,IAAM,EAAE,GAAG,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;AAC7C,IAAM,QAAQ,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAM/E,MAAM,UAAU,YAAY,CAAC,OAAgB;IAAhB,wBAAA,EAAA,YAAgB;IACrC,IAAA,uBAAM,EAAE,mCAAY,CAAY;IAEvC,aAAa,GAAG,YAAY,CAAC;IAE7B,OAAO,GAAG,MAAM,CAAC;IAEjB,YAAY,EAAE,CAAC;AAChB,CAAC;AAQD,MAAM,UAAU,eAAe,CAAC,MAAM,EAAE,MAA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AAG,MAAM,CAAC,WAAW,GAAG,GAAG,CAAC,SAAS,CAAC;IACvD,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,GAAG,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC;IACrC,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,GAAG,GAAG,EAAE,IAAI,GAAG,CAAC,CAAC;IACpC,IAAI,SAAS,KAAK,EAAE,EAAE;QACrB,IAAI,GAAG,CAAC,CAAC;QACT,IAAI,GAAG,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;KACrB;SACI,IAAI,SAAS,KAAK,CAAC,EAAE,EAAE;QAC3B,IAAI,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;QACtB,IAAI,GAAG,CAAC,CAAC;KACT;IACD,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC;IACtB,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC;IACtB,OAAO;QACN,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QACnB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QACnB,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,CAAC;KACjC,CAAC;AACH,CAAC\"}","code":"var _canvas;\r\nvar _touchHandler;\r\nvar _scaleX, _scaleY, _rotation;\r\nvar ua = navigator.userAgent.toLowerCase();\r\nvar isMobile = (ua.indexOf('mobile') !== -1 || ua.indexOf('android') !== -1);\r\nexport function setupContext(options) {\r\n if (options === void 0) { options = {}; }\r\n var canvas = options.canvas, touchHandler = options.touchHandler;\r\n _touchHandler = touchHandler;\r\n _canvas = canvas;\r\n addListeners();\r\n}\r\nexport function updateScaleMode(scaleX, scaleY, rotation) {\r\n _scaleX = scaleX;\r\n _scaleY = scaleY;\r\n _rotation = rotation;\r\n}\r\nfunction addListeners() {\r\n if (window.navigator.msPointerEnabled) {\r\n _canvas.addEventListener(\"MSPointerDown\", function (event) {\r\n event.identifier = event.pointerId;\r\n onTouchBegin(event);\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"MSPointerMove\", function (event) {\r\n event.identifier = event.pointerId;\r\n onTouchMove(event);\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"MSPointerUp\", function (event) {\r\n event.identifier = event.pointerId;\r\n onTouchEnd(event);\r\n prevent(event);\r\n }, false);\r\n }\r\n else {\r\n if (!isMobile) {\r\n addMouseListener();\r\n }\r\n addTouchListener();\r\n }\r\n}\r\nfunction prevent(event) {\r\n event.stopPropagation();\r\n if (event[\"isScroll\"] != true && !_canvas['userTyping']) {\r\n event.preventDefault();\r\n }\r\n}\r\nfunction addMouseListener() {\r\n _canvas.addEventListener(\"mousedown\", onTouchBegin);\r\n _canvas.addEventListener(\"mousemove\", onMouseMove);\r\n _canvas.addEventListener(\"mouseup\", onTouchEnd);\r\n}\r\nfunction addTouchListener() {\r\n _canvas.addEventListener(\"touchstart\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchBegin(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"touchmove\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchMove(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"touchend\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchEnd(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"touchcancel\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchEnd(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n}\r\nfunction onTouchBegin(event) {\r\n var location = getLocation(event);\r\n _touchHandler.onTouchBegin(location);\r\n}\r\nfunction onMouseMove(event) {\r\n if (event.buttons === 0) {\r\n onTouchEnd(event);\r\n }\r\n else {\r\n onTouchMove(event);\r\n }\r\n}\r\nfunction onTouchMove(event) {\r\n var location = getLocation(event);\r\n _touchHandler.onTouchMove(location);\r\n}\r\nfunction onTouchEnd(event) {\r\n var location = getLocation(event);\r\n _touchHandler.onTouchEnd(location);\r\n}\r\nfunction getLocation(event) {\r\n var doc = document.documentElement;\r\n var box = _canvas.getBoundingClientRect();\r\n var left = box.left + window.pageXOffset - doc.clientLeft;\r\n var top = box.top + window.pageYOffset - doc.clientTop;\r\n var x = event.pageX - left, newX = x;\r\n var y = event.pageY - top, newY = y;\r\n if (_rotation === 90) {\r\n newX = y;\r\n newY = box.width - x;\r\n }\r\n else if (_rotation === -90) {\r\n newX = box.height - y;\r\n newY = x;\r\n }\r\n newX = newX / _scaleX;\r\n newY = newY / _scaleY;\r\n return {\r\n x: Math.round(newX),\r\n y: Math.round(newY),\r\n identifier: event.identifier || 0,\r\n };\r\n}\r\n//# sourceMappingURL=InteractContext.js.map"}
{"map":"{\"version\":3,\"file\":\"TextStyle.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/TextStyle.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IAIpB,8BAAkB,CAAA;IAIlB,8BAAkB,CAAA;IAIlB,gCAAoB,CAAA;AACrB,CAAC,EAbW,SAAS,KAAT,SAAS,QAapB;AAED,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IAItB,gCAAkB,CAAA;IAIlB,wCAA0B,CAAA;AAC3B,CAAC,EATW,WAAW,KAAX,WAAW,QAStB;AAED,MAAM,CAAN,IAAY,UAiBX;AAjBD,WAAY,UAAU;IAIrB,+BAAiB,CAAA;IAIjB,2BAAa,CAAA;IAIb,+BAAiB,CAAA;IAIjB,iCAAmB,CAAA;AACpB,CAAC,EAjBW,UAAU,KAAV,UAAU,QAiBrB;AAKD;IAAA;QAQC,cAAS,GAAc,SAAS,CAAC,MAAM,CAAC;QAMxC,gBAAW,GAAgB,WAAW,CAAC,MAAM,CAAC;QAM9C,eAAU,GAAe,UAAU,CAAC,MAAM,CAAC;QAM3C,aAAQ,GAAW,EAAE,CAAC;QAMtB,eAAU,GAAW,OAAO,CAAC;IAK9B,CAAC;IAHA,4BAAQ,GAAR,UAAS,KAAK,EAAE,GAAG,EAAE,QAAQ;QAC5B,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IACnE,CAAC;IA5BD;QADC,iBAAiB;gDACsB;IAMxC;QADC,iBAAiB;kDAC4B;IAM9C;QADC,iBAAiB;iDACyB;IAM3C;QADC,iBAAiB;+CACI;IAMtB;QADC,iBAAiB;iDACW;IAK9B,gBAAC;CAAA,AArCD,IAqCC;SArCY,SAAS\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { dirtyFieldTrigger } from \"../tools/decorators\";\r\nexport var FontStyle;\r\n(function (FontStyle) {\r\n FontStyle[\"NORMAL\"] = \"normal\";\r\n FontStyle[\"ITALIC\"] = \"italic\";\r\n FontStyle[\"OBLIQUE\"] = \"oblique\";\r\n})(FontStyle || (FontStyle = {}));\r\nexport var FontVariant;\r\n(function (FontVariant) {\r\n FontVariant[\"NORMAL\"] = \"normal\";\r\n FontVariant[\"SMALL_CAPS\"] = \"small-caps\";\r\n})(FontVariant || (FontVariant = {}));\r\nexport var FontWeight;\r\n(function (FontWeight) {\r\n FontWeight[\"NORMAL\"] = \"normal\";\r\n FontWeight[\"BOLD\"] = \"bold\";\r\n FontWeight[\"BOLDER\"] = \"bolder\";\r\n FontWeight[\"LIGHTER\"] = \"lighter\";\r\n})(FontWeight || (FontWeight = {}));\r\nvar TextStyle = (function () {\r\n function TextStyle() {\r\n this.fontStyle = FontStyle.NORMAL;\r\n this.fontVariant = FontVariant.NORMAL;\r\n this.fontWeight = FontWeight.NORMAL;\r\n this.fontSize = 25;\r\n this.fontFamily = 'Arial';\r\n }\r\n TextStyle.prototype.onModify = function (value, key, oldValue) {\r\n this.onChange && this.onChange(value, key, oldValue, 'textStyle');\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontStyle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontVariant\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontWeight\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontSize\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontFamily\", void 0);\r\n return TextStyle;\r\n}());\r\nexport { TextStyle };\r\n//# sourceMappingURL=TextStyle.js.map"}
{"map":"{\"version\":3,\"file\":\"MustCompile.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/generated/MustCompile.ts\"],\"names\":[],\"mappings\":\"AAKA,OAAO,EAAC,WAAW,EAAC,MAAM,QAAQ,CAAA;AAElC,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,WAAW,CAAC,2BAA2B,EAAE,UAAU,CAAC,CAAC;AAErD,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,WAAW,CAAC,mCAAmC,EAAE,UAAU,CAAC,CAAC;AAE7D,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,WAAW,CAAC,qCAAqC,EAAE,UAAU,CAAC,CAAC;AAE/D,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,WAAW,CAAC,gCAAgC,EAAE,UAAU,CAAC,CAAC;AAE1D,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,WAAW,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC;AAEhD,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,WAAW,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAC\"}","code":"import { registerDef } from 'scilla';\r\nimport component0 from 'components/base/Transform';\r\nregisterDef('components/base/Transform', component0);\r\nimport component1 from 'components/other/CameraController';\r\nregisterDef('components/other/CameraController', component1);\r\nimport component2 from 'components/renderer/TextureRenderer';\r\nregisterDef('components/renderer/TextureRenderer', component2);\r\nimport component3 from 'components/animation/TouchZoom';\r\nregisterDef('components/animation/TouchZoom', component3);\r\nimport component4 from 'components/ui/Button';\r\nregisterDef('components/ui/Button', component4);\r\nimport component5 from 'components/renderer/TextRenderer';\r\nregisterDef('components/renderer/TextRenderer', component5);\r\nimport component6 from '../../assets/scripts/MainController';\r\nregisterDef('./scripts/MainController', component6);\r\n//# sourceMappingURL=MustCompile.js.map"}
{"map":"{\"version\":3,\"file\":\"TextRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/TextRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAE,YAAY,EAAE,UAAU,EAAoB,MAAM,QAAQ,CAAC;AAEvE,IAAA,kDAAkB,EAAE,gDAAiB,CAAe;AAE3D,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IAIpB,0BAAa,CAAA;IAIb,8BAAiB,CAAA;IAIjB,4BAAe,CAAA;AAChB,CAAC,EAbW,SAAS,KAAT,SAAS,QAapB;AAED,MAAM,CAAN,IAAY,aAaX;AAbD,WAAY,aAAa;IAIxB,4BAAW,CAAA;IAIX,kCAAiB,CAAA;IAIjB,kCAAiB,CAAA;AAClB,CAAC,EAbW,aAAa,KAAb,aAAa,QAaxB;AAKD;IAA0C,wCAAe;IAAzD;QAAA,qEAubC;QAlbA,UAAI,GAAW,EAAE,CAAC;QAMlB,cAAQ,GAAQ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AC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;YACrD,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC;SACxD;QAED,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAE9B,OAAO;YACN,IAAI,MAAA;YACJ,SAAS,WAAA;YACT,UAAU,YAAA;SACV,CAAC;IACH,CAAC;IAKD,oCAAa,GAAb;QACC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAChB,OAAO;SACP;QAED,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACpB,IAAI,CAAC,cAAc,EAAE,CAAC;SACtB;QAED,IAAI,CAAC,SAAS,EAAE,CAAC;QAEjB,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IAjbD;QADC,kBAAkB;8CACD;IAMlB;QADC,iBAAiB;kDACG;IAMrB;QADC,kBAAkB;mDACqB;IAMxC;QADC,kBAAkB;uDACiC;IAMpD;QADC,kBAAkB;qDACK;IAMxB;QADC,kBAAkB;uDACO;IAM1B;QADC,kBAAkB;iDACD;IAWlB;QADC,kBAAkB;mDACoB;IAGvC;QADC,kBAAkB;sDACU;IAgY9B,mBAAC;CAAA,AAvbD,CAA0C,eAAe,GAubxD;eAvboB,YAAY\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nimport { TextStyle, EngineConfig, decorators } from \"scilla\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector, dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nexport var TextAlign;\r\n(function (TextAlign) {\r\n TextAlign[\"LEFT\"] = \"left\";\r\n TextAlign[\"CENTER\"] = \"center\";\r\n TextAlign[\"RIGHT\"] = \"right\";\r\n})(TextAlign || (TextAlign = {}));\r\nexport var VerticalAlign;\r\n(function (VerticalAlign) {\r\n VerticalAlign[\"TOP\"] = \"top\";\r\n VerticalAlign[\"MIDDLE\"] = \"middle\";\r\n VerticalAlign[\"BOTTOM\"] = \"bottom\";\r\n})(VerticalAlign || (VerticalAlign = {}));\r\nvar TextRenderer = (function (_super) {\r\n tslib_1.__extends(TextRenderer, _super);\r\n function TextRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.text = '';\r\n _this.textFlow = null;\r\n _this.textAlign = TextAlign.CENTER;\r\n _this.verticalAlign = VerticalAlign.MIDDLE;\r\n _this.lineSpacing = 0;\r\n _this.letterSpacing = 0;\r\n _this._lineHeight = NaN;\r\n _this._bmpLineHeight = 0;\r\n _this.textStyle = new TextStyle();\r\n _this.useCacheMode = true;\r\n _this.measureCache = {};\r\n return _this;\r\n }\r\n TextRenderer.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n switch (key) {\r\n case 'textFlow':\r\n if (value) {\r\n this.updateTextFlow();\r\n }\r\n break;\r\n case 'textStyle':\r\n value.onChange = this.makeDirty.bind(this);\r\n this.makeDirty();\r\n break;\r\n }\r\n };\r\n TextRenderer.prototype.updateTextFlow = function () {\r\n var e_1, _a;\r\n var text = '';\r\n if (this.textFlow) {\r\n try {\r\n for (var _b = tslib_1.__values(this.textFlow), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var item = _c.value;\r\n text += item.text;\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n }\r\n this._pureText = text;\r\n this.makeDirty();\r\n };\r\n Object.defineProperty(TextRenderer.prototype, \"lineHeight\", {\r\n get: function () {\r\n return isNaN(this._lineHeight) ? (this.isBmpMode ? this._bmpLineHeight : this.textStyle.fontSize * EngineConfig.lineHeightRatio) : this._lineHeight;\r\n },\r\n set: function (value) {\r\n if (this._lineHeight != value) {\r\n this._lineHeight = value;\r\n this.dirty = true;\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TextRenderer.prototype, \"pureText\", {\r\n get: function () {\r\n return this.textFlow ? this._pureText : this.text;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n TextRenderer.prototype.getRenderSize = function () {\r\n return {\r\n width: this._textWidth,\r\n height: this._textHeight,\r\n };\r\n };\r\n TextRenderer.prototype.beforeDraw = function () {\r\n _super.prototype.beforeDraw.call(this);\r\n if (!this.isBmpMode) {\r\n this.applyTextStyle();\r\n }\r\n };\r\n TextRenderer.prototype.applyTextStyle = function () {\r\n var _a = this, context = _a.context, textStyle = _a.textStyle;\r\n var fontStyle = textStyle.fontStyle, fontVariant = textStyle.fontVariant, fontWeight = textStyle.fontWeight, fontSize = textStyle.fontSize, fontFamily = textStyle.fontFamily;\r\n context.font = fontStyle + \" \" + fontVariant + \" \" + fontWeight + \" \" + fontSize + \"px \" + fontFamily;\r\n };\r\n TextRenderer.prototype.fillAndStoke = function () {\r\n if (!this.pureText || this.pureText.length == 0) {\r\n return;\r\n }\r\n var _a = this, context = _a.context, measureCache = _a.measureCache, lineHeight = _a.lineHeight, lineSpacing = _a.lineSpacing, letterSpacing = _a.letterSpacing, rows = _a.rows, textAlign = _a.textAlign, verticalAlign = _a.verticalAlign, isBmpMode = _a.isBmpMode, _b = _a.transform, width = _b.width, height = _b.height;\r\n var rowCount = rows.length;\r\n var x = 0;\r\n switch (textAlign) {\r\n case \"left\":\r\n x = 0;\r\n break;\r\n case \"right\":\r\n x = width;\r\n break;\r\n case \"center\":\r\n default:\r\n x = width / 2;\r\n break;\r\n }\r\n var y = 0;\r\n var drawHeight = rowCount * lineHeight + lineSpacing * (rowCount - 1);\r\n switch (verticalAlign) {\r\n case \"top\":\r\n y = 0;\r\n break;\r\n case \"bottom\":\r\n y = height - drawHeight;\r\n break;\r\n case \"middle\":\r\n default:\r\n y = (height - drawHeight) / 2;\r\n break;\r\n }\r\n y += lineHeight;\r\n context.textAlign = letterSpacing == 0 && !this.textFlow ? textAlign : 'left';\r\n context.textBaseline = 'bottom';\r\n var offY = 0;\r\n for (var i = 0; i < rowCount; i++) {\r\n var _c = rows[i], text = _c.text, lineWidth = _c.lineWidth;\r\n if (letterSpacing == 0 && !isBmpMode && !this.textFlow) {\r\n this.drawText(i, text, x, y + offY);\r\n }\r\n else {\r\n var offX = 0;\r\n switch (textAlign) {\r\n case \"left\":\r\n offX = 0;\r\n break;\r\n case \"right\":\r\n offX = -lineWidth;\r\n break;\r\n case \"center\":\r\n default:\r\n offX = -lineWidth / 2;\r\n break;\r\n }\r\n for (var j = 0, lj = text.length; j < lj; j++) {\r\n var char = text[j];\r\n this.drawText(j, char, x + offX, y + offY);\r\n if (measureCache[char].width > 0) {\r\n offX += measureCache[char].width + letterSpacing;\r\n }\r\n }\r\n }\r\n offY += lineHeight + lineSpacing;\r\n }\r\n };\r\n TextRenderer.prototype.getStyle = function (index) {\r\n var e_2, _a;\r\n if (!this.textFlow) {\r\n return null;\r\n }\r\n var targetItem;\r\n var count = 0;\r\n try {\r\n for (var _b = tslib_1.__values(this.textFlow), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var item = _c.value;\r\n count += item.text.length;\r\n if (index < count) {\r\n targetItem = item;\r\n break;\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n return targetItem.style;\r\n };\r\n TextRenderer.prototype.drawText = function (index, text, x, y) {\r\n var _a = this, context = _a.context, borderWidth = _a.borderWidth, isBmpMode = _a.isBmpMode, fontRes = _a.fontRes;\r\n if (isBmpMode) {\r\n var texture = fontRes.getTexture(text);\r\n if (!texture) {\r\n return;\r\n }\r\n var _b = texture.bounds, textureX = _b.x, textureY = _b.y, textureWidth = _b.width, textureHeight = _b.height;\r\n context.drawImage(texture.img, textureX, textureY, textureWidth, textureHeight, x, y, textureWidth, textureHeight);\r\n }\r\n else {\r\n var style = this.getStyle(index);\r\n if (style) {\r\n if (style.hasOwnProperty('textColor')) {\r\n context.fillStyle = style.textColor;\r\n }\r\n }\r\n else {\r\n context.fillStyle = this.fillColor;\r\n }\r\n context.fillText(text, x, y + 1);\r\n if (borderWidth > 0) {\r\n context.strokeText(text, x, y + 1);\r\n }\r\n }\r\n };\r\n Object.defineProperty(TextRenderer.prototype, \"isBmpMode\", {\r\n get: function () {\r\n return !!this.fontRes;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n TextRenderer.prototype.measureText = function (text) {\r\n var e_3, _a, e_4, _b;\r\n var result;\r\n if (this.measureCache.hasOwnProperty(text)) {\r\n result = this.measureCache[text];\r\n }\r\n else {\r\n var _c = this, context = _c.context, letterSpacing = _c.letterSpacing, isBmpMode = _c.isBmpMode, fontRes = _c.fontRes, lineHeight = _c.lineHeight;\r\n if (isBmpMode) {\r\n if (text.length == 1) {\r\n var texture = fontRes.getTexture(text);\r\n result = {\r\n width: texture ? texture.width : 0,\r\n height: texture ? texture.height : 0,\r\n };\r\n }\r\n else {\r\n var totalWidth = 0, totalHeight = 0;\r\n try {\r\n for (var text_1 = tslib_1.__values(text), text_1_1 = text_1.next(); !text_1_1.done; text_1_1 = text_1.next()) {\r\n var char = text_1_1.value;\r\n var measureResult = this.measureText(char);\r\n totalWidth += measureResult.width;\r\n if (measureResult.height > totalHeight) {\r\n totalHeight = measureResult.height;\r\n }\r\n }\r\n }\r\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\r\n finally {\r\n try {\r\n if (text_1_1 && !text_1_1.done && (_a = text_1.return)) _a.call(text_1);\r\n }\r\n finally { if (e_3) throw e_3.error; }\r\n }\r\n result = {\r\n width: totalWidth,\r\n height: totalHeight,\r\n };\r\n }\r\n }\r\n else {\r\n result = {\r\n width: context.measureText(text).width,\r\n height: lineHeight,\r\n };\r\n }\r\n result.width += letterSpacing * (text.length - 1);\r\n if (text.length == 1) {\r\n this.measureCache[text] = result;\r\n }\r\n if (letterSpacing != 0 && text.length > 1 || this.textFlow) {\r\n try {\r\n for (var text_2 = tslib_1.__values(text), text_2_1 = text_2.next(); !text_2_1.done; text_2_1 = text_2.next()) {\r\n var char = text_2_1.value;\r\n this.measureCache[char] = this.measureText(char);\r\n }\r\n }\r\n catch (e_4_1) { e_4 = { error: e_4_1 }; }\r\n finally {\r\n try {\r\n if (text_2_1 && !text_2_1.done && (_b = text_2.return)) _b.call(text_2);\r\n }\r\n finally { if (e_4) throw e_4.error; }\r\n }\r\n }\r\n }\r\n return result;\r\n };\r\n TextRenderer.prototype.splitText = function () {\r\n var e_5, _a;\r\n var _b = this, text = _b.pureText, letterSpacing = _b.letterSpacing, lineSpacing = _b.lineSpacing, lineHeight = _b.lineHeight, isBmpMode = _b.isBmpMode, _c = _b.transform, explicitWidth = _c.explicitWidth, explicitHeight = _c.explicitHeight;\r\n this.measureCache = {};\r\n var textWidth = 0, textHeight = 0, maxHeight = 0;\r\n var rows = [], measureResult;\r\n if (text && text.length > 0) {\r\n if (isNaN(explicitWidth)) {\r\n var lines = text.split('\\n');\r\n try {\r\n for (var lines_1 = tslib_1.__values(lines), lines_1_1 = lines_1.next(); !lines_1_1.done; lines_1_1 = lines_1.next()) {\r\n var line = lines_1_1.value;\r\n measureResult = this.measureText(line);\r\n var mw = measureResult.width;\r\n if (mw > textWidth) {\r\n textWidth = mw;\r\n }\r\n if (isBmpMode) {\r\n var mh = measureResult.height;\r\n if (mh > maxHeight) {\r\n maxHeight = mh;\r\n }\r\n }\r\n rows.push({\r\n text: line,\r\n lineWidth: mw,\r\n });\r\n }\r\n }\r\n catch (e_5_1) { e_5 = { error: e_5_1 }; }\r\n finally {\r\n try {\r\n if (lines_1_1 && !lines_1_1.done && (_a = lines_1.return)) _a.call(lines_1);\r\n }\r\n finally { if (e_5) throw e_5.error; }\r\n }\r\n if (!isBmpMode) {\r\n maxHeight = lineHeight;\r\n }\r\n this._bmpLineHeight = maxHeight;\r\n }\r\n else {\r\n var chars = text.split('');\r\n var lineWidth = 0, charWidth = 0, index = 0;\r\n var line = '';\r\n for (var i = 0, li = chars.length; i < li; i++) {\r\n var char = chars[i];\r\n if (char == '\\n') {\r\n rows.push({\r\n text: line,\r\n lineWidth: lineWidth,\r\n });\r\n line = '';\r\n lineWidth = 0;\r\n index = 0;\r\n }\r\n else {\r\n measureResult = this.measureText(char);\r\n if (measureResult.width == 0) {\r\n continue;\r\n }\r\n charWidth = measureResult.width;\r\n var mh = measureResult.height;\r\n if (mh > maxHeight) {\r\n maxHeight = mh;\r\n }\r\n if (index > 0 && lineWidth + charWidth + (index == 0 ? 0 : letterSpacing) > explicitWidth) {\r\n rows.push({\r\n text: line,\r\n lineWidth: lineWidth,\r\n });\r\n line = '';\r\n lineWidth = 0;\r\n index = 0;\r\n }\r\n line += char;\r\n lineWidth += charWidth + (index == 0 ? 0 : letterSpacing);\r\n index++;\r\n }\r\n }\r\n this._bmpLineHeight = maxHeight;\r\n rows.push({\r\n text: line,\r\n lineWidth: lineWidth,\r\n });\r\n textWidth = explicitWidth;\r\n }\r\n textHeight = isNaN(explicitHeight) ? (maxHeight * rows.length + lineSpacing * (rows.length - 1)) : explicitHeight;\r\n }\r\n else {\r\n textWidth = isNaN(explicitWidth) ? 0 : explicitWidth;\r\n textHeight = isNaN(explicitHeight) ? 0 : explicitHeight;\r\n }\r\n this.rows = rows;\r\n this._textWidth = textWidth;\r\n this._textHeight = textHeight;\r\n return {\r\n rows: rows,\r\n textWidth: textWidth,\r\n textHeight: textHeight,\r\n };\r\n };\r\n TextRenderer.prototype.measureBounds = function () {\r\n if (!this.dirty) {\r\n return;\r\n }\r\n if (!this.isBmpMode) {\r\n this.applyTextStyle();\r\n }\r\n this.splitText();\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"text\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextRenderer.prototype, \"textFlow\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"textAlign\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"verticalAlign\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"lineSpacing\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"letterSpacing\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"fontRes\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"textStyle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"useCacheMode\", void 0);\r\n return TextRenderer;\r\n}(GraphicRenderer));\r\nexport default TextRenderer;\r\n//# sourceMappingURL=TextRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"Renderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/Renderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,QAAQ,CAAC;AAE5G,IAAA,gDAAiB,CAAe;AAKvC;IAAsC,oCAAe;IAyDpD;QAAA,YACC,iBAAO,SAGP;QA5DS,sBAAgB,GAAG;YAC5B,KAAI,CAAC,SAAS,EAAE,CAAC;QAClB,CAAC,CAAC;QAIQ,WAAK,GAAY,IAAI,CAAC;QAKtB,mBAAa,GAAY,KAAK,CAAC;QAKzC,WAAK,GAAW,CAAC,CAAC;QAKlB,YAAM,GAAa,IA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M,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC;QAC1B,MAAM,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC;IAC3B,CAAC;IAOD,0BAAO,GAAP,UAAQ,CAAC,EAAE,CAAC;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;IApOD;QADC,iBAAiB;4CACwB;IAqO3C,eAAC;CAAA,AA3PD,CAAsC,eAAe,GA2PpD;eA3PoB,QAAQ\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { createCanvas, getContext, ScillaComponent, Bounds, Vector2D, math, decorators, EngineConfig } from \"scilla\";\r\nvar dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nvar Renderer = (function (_super) {\r\n tslib_1.__extends(Renderer, _super);\r\n function Renderer() {\r\n var _this = _super.call(this) || this;\r\n _this.onVector2DModify = function () {\r\n _this.makeDirty();\r\n };\r\n _this.dirty = true;\r\n _this._useCacheMode = false;\r\n _this.alpha = 1;\r\n _this.anchor = new Vector2D(0.5, 0.5);\r\n _this.bounds = new Bounds();\r\n _this.cacheCanvas = null;\r\n _this._anchorOffset = new Vector2D();\r\n _this._context = getContext();\r\n _this._margin = 0;\r\n _this._debugDrawColor = \"hsl(\" + math.makeRandomInt(360) + \", \" + math.makeRandomInt(100) + \"%, 60%)\";\r\n return _this;\r\n }\r\n Object.defineProperty(Renderer.prototype, \"useCacheMode\", {\r\n get: function () {\r\n return this.getUseCacheMode();\r\n },\r\n set: function (value) {\r\n this._useCacheMode = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Renderer.prototype.getUseCacheMode = function () {\r\n return this._useCacheMode;\r\n };\r\n Object.defineProperty(Renderer.prototype, \"context\", {\r\n get: function () {\r\n return this.cacheCanvasContext || this._context;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Renderer.prototype.makeDirty = function () {\r\n this.dirty = true;\r\n };\r\n Renderer.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n this.makeDirty();\r\n switch (key) {\r\n case 'anchor':\r\n value.onChange = this.onVector2DModify;\r\n break;\r\n }\r\n };\r\n Renderer.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n if (!this.transform) {\r\n console.warn('renderer need a transform component');\r\n }\r\n };\r\n Renderer.prototype.onUpdate = function (t) {\r\n if (this.dirty) {\r\n if (this.entity.name == 'label_status') {\r\n console.log();\r\n }\r\n if (this.useCacheMode) {\r\n this.readyCacheCanvas();\r\n }\r\n this.measureBounds();\r\n if (this.useCacheMode) {\r\n this.updateCacheCanvas();\r\n }\r\n }\r\n this.transformToLocal();\r\n this.render();\r\n if (EngineConfig.drawRenderRect) {\r\n var _a = this, _context = _a._context, _debugDrawColor = _a._debugDrawColor, _b = _a.bounds, width = _b.width, height = _b.height, _c = _a._anchorOffset, x_1 = _c.x, y = _c.y, _d = _a.transform.pivot, px = _d.x, py = _d.y;\r\n _context.globalAlpha = 0.9;\r\n _context.strokeStyle = _debugDrawColor;\r\n _context.fillStyle = _debugDrawColor;\r\n _context.beginPath();\r\n _context.rect(0, 0, width, height);\r\n _context.stroke();\r\n _context.beginPath();\r\n _context.arc(width * px, height * py, 3, 0, 2 * Math.PI);\r\n _context.fill();\r\n }\r\n };\r\n Renderer.prototype.readyCacheCanvas = function () {\r\n var canvas = this.cacheCanvas;\r\n if (!canvas) {\r\n canvas = this.cacheCanvas = createCanvas();\r\n this.cacheCanvasContext = canvas.getContext('2d');\r\n }\r\n };\r\n Renderer.prototype.updateCacheCanvas = function () {\r\n var canvas = this.cacheCanvas;\r\n var _a = this.bounds, width = _a.width, height = _a.height;\r\n canvas.width = width + this._margin * 2;\r\n canvas.height = height + this._margin * 2;\r\n };\r\n Renderer.prototype.render = function () {\r\n this.beforeDraw();\r\n this.drawClip();\r\n if (this.dirty) {\r\n if (this.useCacheMode) {\r\n this.draw();\r\n }\r\n this.dirty = false;\r\n }\r\n if (this.useCacheMode) {\r\n this.drawCache();\r\n }\r\n else {\r\n this.draw();\r\n }\r\n };\r\n Renderer.prototype.beforeDraw = function () {\r\n this.applyAlpha();\r\n };\r\n Renderer.prototype.transformToLocal = function () {\r\n var _a = this, transform = _a.transform, _b = _a._anchorOffset, ax = _b.x, ay = _b.y;\r\n if (transform && transform.enabled) {\r\n var _c = transform.getMatrix(true), a = _c.a, b = _c.b, c = _c.c, d = _c.d, tx = _c.tx, ty = _c.ty;\r\n var offX = ax * a + ay * c;\r\n var offY = ax * b + ay * d;\r\n this._context.setTransform(a, b, c, d, tx - offX, ty - offY);\r\n }\r\n else {\r\n this._context.setTransform(1, 0, 0, 1, -ax, -ay);\r\n }\r\n };\r\n Renderer.prototype.applyAlpha = function () {\r\n this._context.globalAlpha = this.alpha * this.transform.renderAlpha;\r\n };\r\n Renderer.prototype.drawCache = function () {\r\n if (this.cacheCanvas.width > 0 && this.cacheCanvas.height > 0) {\r\n this._context.drawImage(this.cacheCanvas, -this._margin, -this._margin);\r\n }\r\n };\r\n Renderer.prototype.drawClip = function () {\r\n };\r\n Renderer.prototype.draw = function () {\r\n };\r\n Renderer.prototype.measureBounds = function () {\r\n var _a = this, _b = _a.anchor, x = _b.x, y = _b.y, bounds = _a.bounds, _c = _a.bounds, width = _c.width, height = _c.height;\r\n var anchorOffsetX = this._anchorOffset.x = width * x;\r\n var anchorOffsetY = this._anchorOffset.y = height * y;\r\n bounds.x = -anchorOffsetX;\r\n bounds.y = -anchorOffsetY;\r\n };\r\n Renderer.prototype.hitTest = function (x, y) {\r\n return this.bounds.contains(x, y);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Renderer.prototype, \"anchor\", void 0);\r\n return Renderer;\r\n}(ScillaComponent));\r\nexport default Renderer;\r\n//# sourceMappingURL=Renderer.js.map"}
{"map":"{\"version\":3,\"file\":\"FrameAnimation.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/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F,yBAAC;AAAD,CAAC,AArED,IAqEC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Sheet } from \"./Sheet\";\r\nvar animationMap = {};\r\nvar animDataMap = {};\r\nvar textureMap = {};\r\nexport function getFrameAnimation(name) {\r\n var animation = animationMap[name];\r\n if (!animation) {\r\n animation = animationMap[name] = new FrameAnimationImpl(name);\r\n animation.fillMcData(name);\r\n }\r\n return animation;\r\n}\r\nexport function putFrameAnim(img, data) {\r\n var mc = data.mc, res = data.res;\r\n var sheet = new Sheet(img, res);\r\n for (var key in mc) {\r\n var animData = animDataMap[key] = mc[key];\r\n animData.sheet = sheet;\r\n }\r\n}\r\nvar FrameAnimationImpl = (function () {\r\n function FrameAnimationImpl(name) {\r\n this._name = name;\r\n }\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"name\", {\r\n get: function () {\r\n return this._name;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n FrameAnimationImpl.prototype.fillMcData = function (name) {\r\n var animData = animDataMap[name];\r\n if (animData) {\r\n this._animData = animData;\r\n }\r\n else {\r\n console.warn(\"anim data [\" + name + \"] is not exist\");\r\n }\r\n };\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"fps\", {\r\n get: function () {\r\n return this._animData.frameRate;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"labels\", {\r\n get: function () {\r\n return this._animData.labels;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"frameCount\", {\r\n get: function () {\r\n return this._animData.frames.length;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n FrameAnimationImpl.prototype.getLabel = function (name) {\r\n var e_1, _a;\r\n var result;\r\n try {\r\n for (var _b = tslib_1.__values(this._animData.labels), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var label = _c.value;\r\n if (label.name == name) {\r\n result = label;\r\n break;\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n return result;\r\n };\r\n FrameAnimationImpl.prototype.getFrame = function (frameIndex) {\r\n var _animData = this._animData;\r\n var texture, frameData;\r\n if (_animData) {\r\n var frames_1 = _animData.frames;\r\n frameData = frames_1[frameIndex];\r\n if (frameData) {\r\n var res = frameData.res;\r\n texture = textureMap[res];\r\n if (!texture) {\r\n texture = textureMap[res] = _animData.sheet.getTexture(res);\r\n }\r\n }\r\n }\r\n return {\r\n texture: texture,\r\n data: frameData,\r\n };\r\n };\r\n FrameAnimationImpl.prototype.destroy = function () {\r\n this._animData = null;\r\n };\r\n return FrameAnimationImpl;\r\n}());\r\nexport { FrameAnimationImpl };\r\n//# sourceMappingURL=FrameAnimation.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACN,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,SAAS,GACT,CAAA\"}","code":"import * as decorators from './decorators';\r\nimport * as ease from './ease';\r\nimport * as math from './math';\r\nimport * as utils from './utils';\r\nimport * as timeUtils from './time';\r\nimport { Ease } from \"./ease\";\r\nexport { decorators, ease, Ease, math, utils, timeUtils, };\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\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F,6BAAC;AAAD,CAAC,AAzJD,CAAoD,QAAQ,GAyJ3D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Renderer from \"./Renderer\";\r\nimport { ScillaEvent } from \"scilla\";\r\nvar FrameAnimationRenderer = (function (_super) {\r\n tslib_1.__extends(FrameAnimationRenderer, _super);\r\n function FrameAnimationRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.autoPlay = false;\r\n _this.fps = NaN;\r\n _this.onComplete = new ScillaEvent();\r\n _this.onLoopComplete = new ScillaEvent();\r\n return _this;\r\n }\r\n FrameAnimationRenderer.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n if (this.autoPlay) {\r\n this.play(0, -1);\r\n }\r\n };\r\n FrameAnimationRenderer.prototype.onUpdate = function (t) {\r\n if (this._playing) {\r\n var _a = this, frameAnimation = _a.frameAnimation, _startFrame = _a._startFrame, _endFrame = _a._endFrame, fps = _a.fps;\r\n if (this._startFlag) {\r\n this._startFlag = false;\r\n this._startTime = t;\r\n this._loopCounting++;\r\n }\r\n var mFPS = isNaN(fps) ? frameAnimation.fps : fps;\r\n var passTime = t - this._startTime;\r\n var passFrameCount = Math.floor(passTime / (1000 / mFPS));\r\n var passFrameInRegion = passFrameCount % (_endFrame - _startFrame + 1);\r\n this._currentFrameIndex = _startFrame + passFrameInRegion;\r\n if (passFrameInRegion == 0 && passFrameCount > 0) {\r\n this._currentFrameIndex = _endFrame;\r\n this.onLoopEnd();\r\n }\r\n }\r\n _super.prototype.onUpdate.call(this, t);\r\n };\r\n FrameAnimationRenderer.prototype.onSleep = function () {\r\n _super.prototype.onSleep.call(this);\r\n };\r\n FrameAnimationRenderer.prototype.onLoopEnd = function () {\r\n if (this._loop < 0) {\r\n this._startFlag = true;\r\n this.onLoopComplete.invoke();\r\n }\r\n else if (this._loopCounting < this._loop) {\r\n this._startFlag = true;\r\n this.onLoopComplete.invoke();\r\n }\r\n else {\r\n this._playing = false;\r\n this.onComplete.invoke();\r\n }\r\n };\r\n FrameAnimationRenderer.prototype.play = function (frame, loop, force) {\r\n if (frame === void 0) { frame = 0; }\r\n if (loop === void 0) { loop = 0; }\r\n if (force === void 0) { force = true; }\r\n this._loop = loop;\r\n this._loopCounting = 0;\r\n if (!this.frameAnimation) {\r\n return;\r\n }\r\n var startFrame = 0, endFrame = this.frameAnimation.frameCount - 1;\r\n if (typeof frame == 'string') {\r\n var label = this.frameAnimation.getLabel(frame);\r\n if (label) {\r\n startFrame = label.frame - 1;\r\n endFrame = label.end;\r\n }\r\n }\r\n else {\r\n startFrame = frame;\r\n }\r\n this._startFrame = startFrame;\r\n this._endFrame = endFrame;\r\n this._currentFrameIndex = this._startFrame;\r\n this._startFlag = true;\r\n this._playing = true;\r\n };\r\n FrameAnimationRenderer.prototype.stop = function () {\r\n this._playing = false;\r\n };\r\n FrameAnimationRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n if (!this.frameAnimation) {\r\n return;\r\n }\r\n var _a = this, context = _a.context, frameAnimation = _a.frameAnimation, _currentFrameIndex = _a._currentFrameIndex, bounds = _a.bounds;\r\n var _b = frameAnimation.getFrame(_currentFrameIndex), texture = _b.texture, data = _b.data;\r\n if (texture) {\r\n var img = texture.img, _c = texture.bounds, x_1 = _c.x, y = _c.y, textureWidth = _c.width, textureHeight = _c.height;\r\n bounds.setTo(data.x, data.y, textureWidth, textureHeight);\r\n context.drawImage(img, x_1, y, textureWidth, textureHeight, data.x, data.y, textureWidth, textureHeight);\r\n }\r\n };\r\n return FrameAnimationRenderer;\r\n}(Renderer));\r\nexport default FrameAnimationRenderer;\r\n//# sourceMappingURL=FrameAnimationRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"GameSubmitData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/submit/GameSubmitData.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC;IAAoC,0CAAI;IAAxC;;IAsBA,CAAC;IAPU,+BAAM,GAAb,UAAc,MAAW;QACrB,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAG,MAAM,CAAC,IAAI,EAAC;YACX,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;YACnC,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC;SACzF;IACL,CAAC;IACL,qBAAC;AAAD,CAAC,AAtBD,CAAoC,IAAI,GAsBvC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { DataManager } from './../../../manager/DataManager';\r\nimport { Data } from './../../Data';\r\nvar GameSubmitData = (function (_super) {\r\n tslib_1.__extends(GameSubmitData, _super);\r\n function GameSubmitData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GameSubmitData.prototype.update = function (result) {\r\n _super.prototype.update.call(this, result);\r\n if (result.data) {\r\n this.orderId = result.data.orderId;\r\n this.percentage = DataManager.ins.getInfoData.percentage = result.data.rsp.percentage;\r\n }\r\n };\r\n return GameSubmitData;\r\n}(Data));\r\nexport { GameSubmitData };\r\n//# sourceMappingURL=GameSubmitData.js.map"}
{"map":"{\"version\":3,\"file\":\"CameraController.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/other/CameraController.ts\"],\"names\":[],\"mappings\":\";AAKA,OAAO,EAAS,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAC,MAAM,QAAQ,CAAC;AAC7F,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAK1C;IAA8C,4CAAe;IAA7D;QAAA,qEAyDC;QAvDA,oBAAc,GAAa,cAAc,EAAE,CAAC;QAE5C,cAAQ,GAAG,GAAG,CAAC;;IAqDhB,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C;QAE/E,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAC3F,CAAC;IAED,kCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;IACjB,CAAC;IAED,oCAAS,GAAT;QACC,iBAAM,SAAS,WAAE,CAAC;IACnB,CAAC;IACF,uBAAC;AAAD,CAAC,AAzDD,CAA8C,eAAe,GAyD5D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { getStageSize, ScillaComponent, createVector2D, Vector2D, math } from \"scilla\";\r\nimport Transform from \"../base/Transform\";\r\nvar CameraController = (function (_super) {\r\n tslib_1.__extends(CameraController, _super);\r\n function CameraController() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.viewportAnchor = createVector2D();\r\n _this.maxScale = 1.2;\r\n return _this;\r\n }\r\n CameraController.prototype.onCreate = function () {\r\n _super.prototype.onCreate.call(this);\r\n };\r\n CameraController.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n var _a = this, target = _a.target, viewportAnchor = _a.viewportAnchor;\r\n this.stageSize = getStageSize();\r\n if (target) {\r\n this.targetPosition = target.getComponent(Transform).position;\r\n }\r\n this.followPosition = createVector2D();\r\n if (viewportAnchor) {\r\n var _b = this.stageSize, width = _b.width, height = _b.height;\r\n var _c = this.viewportAnchor, x_1 = _c.x, y = _c.y;\r\n this.transform.position.setXY(width * x_1, height * y);\r\n }\r\n };\r\n CameraController.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\r\n if (!this.targetPosition) {\r\n return;\r\n }\r\n var _a = this, _b = _a.transform, scale = _b.scale, position = _b.position, _c = _a.stageSize, width = _c.width, height = _c.height, _d = _a.targetPosition, x = _d.x, y = _d.y, length = _d.length, maxScale = _a.maxScale;\r\n var newScale = maxScale - length * maxScale / 2048;\r\n scale.setXY(newScale, newScale);\r\n this.followPosition.setXY(width / 2, height / 2).subtract(this.targetPosition);\r\n position.copyFrom(math.lerpObj(position, this.followPosition, 0.1, Vector2D, ['x', 'y']));\r\n };\r\n CameraController.prototype.onSleep = function () {\r\n _super.prototype.onSleep.call(this);\r\n };\r\n CameraController.prototype.onDestroy = function () {\r\n _super.prototype.onDestroy.call(this);\r\n };\r\n return CameraController;\r\n}(ScillaComponent));\r\nexport default CameraController;\r\n//# sourceMappingURL=CameraController.js.map"}
{"map":"{\"version\":3,\"file\":\"DatapashData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/datapash/DatapashData.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC;IAAkC,wCAAI;IAAtC;;IAIA,CAAC;IAHU,6BAAM,GAAb,UAAc,MAAW;QACrB,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IACL,mBAAC;AAAD,CAAC,AAJD,CAAkC,IAAI,GAIrC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar DatapashData = (function (_super) {\r\n tslib_1.__extends(DatapashData, _super);\r\n function DatapashData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n DatapashData.prototype.update = function (result) {\r\n _super.prototype.update.call(this, result);\r\n };\r\n return DatapashData;\r\n}(Data));\r\nexport { DatapashData };\r\n//# sourceMappingURL=DatapashData.js.map"}
{"map":"{\"version\":3,\"file\":\"ease.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/ease.ts\"],\"names\":[],\"mappings\":\"AAMA,MAAM,CAAN,IAAY,IA4BX;AA5BD,WAAY,IAAI;IACf,yBAAiB,CAAA;IACjB,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;IACnB,6BAAqB,CAAA;IACrB,iCAAyB,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AAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC;QAC5G,OAAO,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;IAC7F,CAAC,CAAA;AACF,CAAC;AAGD,MAAM,CAAC,IAAM,YAAY,GAAG,eAAe,CAAC,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC,CAAC\"}","code":"export var Ease;\r\n(function (Ease) {\r\n Ease[\"quadIn\"] = \"quadIn\";\r\n Ease[\"quadOut\"] = \"quadOut\";\r\n Ease[\"quadInOut\"] = \"quadInOut\";\r\n Ease[\"cubicIn\"] = \"cubicIn\";\r\n Ease[\"cubicOut\"] = \"cubicOut\";\r\n Ease[\"cubicInOut\"] = \"cubicInOut\";\r\n Ease[\"quartIn\"] = \"quartIn\";\r\n Ease[\"quartOut\"] = \"quartOut\";\r\n Ease[\"quartInOut\"] = \"quartInOut\";\r\n Ease[\"quintIn\"] = \"quintIn\";\r\n Ease[\"quintOut\"] = \"quintOut\";\r\n Ease[\"quintInOut\"] = \"quintInOut\";\r\n Ease[\"sineIn\"] = \"sineIn\";\r\n Ease[\"sineOut\"] = \"sineOut\";\r\n Ease[\"sineInOut\"] = \"sineInOut\";\r\n Ease[\"backIn\"] = \"backIn\";\r\n Ease[\"backOut\"] = \"backOut\";\r\n Ease[\"backInOut\"] = \"backInOut\";\r\n Ease[\"circIn\"] = \"circIn\";\r\n Ease[\"circOut\"] = \"circOut\";\r\n Ease[\"circInOut\"] = \"circInOut\";\r\n Ease[\"bounceIn\"] = \"bounceIn\";\r\n Ease[\"bounceOut\"] = \"bounceOut\";\r\n Ease[\"bounceInOut\"] = \"bounceInOut\";\r\n Ease[\"elasticIn\"] = \"elasticIn\";\r\n Ease[\"elasticOut\"] = \"elasticOut\";\r\n Ease[\"elasticInOut\"] = \"elasticInOut\";\r\n})(Ease || (Ease = {}));\r\nexport function get(amount) {\r\n if (amount < -1) {\r\n amount = -1;\r\n }\r\n if (amount > 1) {\r\n amount = 1;\r\n }\r\n return function (t) {\r\n if (amount == 0) {\r\n return t;\r\n }\r\n if (amount < 0) {\r\n return t * (t * -amount + 1 + amount);\r\n }\r\n return t * ((2 - t) * amount + (1 - amount));\r\n };\r\n}\r\nexport function getPowIn(pow) {\r\n return function (t) {\r\n return Math.pow(t, pow);\r\n };\r\n}\r\nexport function getPowOut(pow) {\r\n return function (t) {\r\n return 1 - Math.pow(1 - t, pow);\r\n };\r\n}\r\nexport function getPowInOut(pow) {\r\n return function (t) {\r\n if ((t *= 2) < 1)\r\n return 0.5 * Math.pow(t, pow);\r\n return 1 - 0.5 * Math.abs(Math.pow(2 - t, pow));\r\n };\r\n}\r\nexport var quadIn = getPowIn(2);\r\nexport var quadOut = getPowOut(2);\r\nexport var quadInOut = getPowInOut(2);\r\nexport var cubicIn = getPowIn(3);\r\nexport var cubicOut = getPowOut(3);\r\nexport var cubicInOut = getPowInOut(3);\r\nexport var quartIn = getPowIn(4);\r\nexport var quartOut = getPowOut(4);\r\nexport var quartInOut = getPowInOut(4);\r\nexport var quintIn = getPowIn(5);\r\nexport var quintOut = getPowOut(5);\r\nexport var quintInOut = getPowInOut(5);\r\nexport function sineIn(t) {\r\n return 1 - Math.cos(t * Math.PI / 2);\r\n}\r\nexport function sineOut(t) {\r\n return Math.sin(t * Math.PI / 2);\r\n}\r\nexport function sineInOut(t) {\r\n return -0.5 * (Math.cos(Math.PI * t) - 1);\r\n}\r\nexport function getBackIn(amount) {\r\n return function (t) {\r\n return t * t * ((amount + 1) * t - amount);\r\n };\r\n}\r\nexport var backIn = getBackIn(1.7);\r\nexport function getBackOut(amount) {\r\n return function (t) {\r\n return (--t * t * ((amount + 1) * t + amount) + 1);\r\n };\r\n}\r\nexport var backOut = getBackOut(1.7);\r\nexport function getBackInOut(amount) {\r\n amount *= 1.525;\r\n return function (t) {\r\n if ((t *= 2) < 1)\r\n return 0.5 * (t * t * ((amount + 1) * t - amount));\r\n return 0.5 * ((t -= 2) * t * ((amount + 1) * t + amount) + 2);\r\n };\r\n}\r\nexport var backInOut = getBackInOut(1.7);\r\nexport function circIn(t) {\r\n return -(Math.sqrt(1 - t * t) - 1);\r\n}\r\nexport function circOut(t) {\r\n return Math.sqrt(1 - (--t) * t);\r\n}\r\nexport function circInOut(t) {\r\n if ((t *= 2) < 1) {\r\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\r\n }\r\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\r\n}\r\nexport function bounceIn(t) {\r\n return 1 - bounceOut(1 - t);\r\n}\r\nexport function bounceOut(t) {\r\n if (t < 1 / 2.75) {\r\n return (7.5625 * t * t);\r\n }\r\n else if (t < 2 / 2.75) {\r\n return (7.5625 * (t -= 1.5 / 2.75) * t + 0.75);\r\n }\r\n else if (t < 2.5 / 2.75) {\r\n return (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375);\r\n }\r\n else {\r\n return (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375);\r\n }\r\n}\r\nexport function bounceInOut(t) {\r\n if (t < 0.5)\r\n return bounceIn(t * 2) * .5;\r\n return bounceOut(t * 2 - 1) * 0.5 + 0.5;\r\n}\r\nexport function getElasticIn(amplitude, period) {\r\n var pi2 = Math.PI * 2;\r\n return function (t) {\r\n if (t == 0 || t == 1)\r\n return t;\r\n var s = period / pi2 * Math.asin(1 / amplitude);\r\n return -(amplitude * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * pi2 / period));\r\n };\r\n}\r\nexport var elasticIn = getElasticIn(1, 0.3);\r\nexport function getElasticOut(amplitude, period) {\r\n var pi2 = Math.PI * 2;\r\n return function (t) {\r\n if (t == 0 || t == 1)\r\n return t;\r\n var s = period / pi2 * Math.asin(1 / amplitude);\r\n return (amplitude * Math.pow(2, -10 * t) * Math.sin((t - s) * pi2 / period) + 1);\r\n };\r\n}\r\nexport var elasticOut = getElasticOut(1, 0.3);\r\nexport function getElasticInOut(amplitude, period) {\r\n var pi2 = Math.PI * 2;\r\n return function (t) {\r\n var s = period / pi2 * Math.asin(1 / amplitude);\r\n if ((t *= 2) < 1)\r\n return -0.5 * (amplitude * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * pi2 / period));\r\n return amplitude * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * pi2 / period) * 0.5 + 1;\r\n };\r\n}\r\nexport var elasticInOut = getElasticInOut(1, 0.3 * 1.5);\r\n//# sourceMappingURL=ease.js.map"}
{"map":"{\"version\":3,\"file\":\"ScillaComponent.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/ScillaComponent.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAE9C,IAAM,cAAc,GAAG;IACtB,uBAAuB;IACvB,sBAAsB;IACtB,qBAAqB;CACrB,CAAC;AAKF;IAAqC,2CAAU;IAA/C;QAAA,qEAsPC;QAjPU,oBAAc,GAAG,EAAE,CAAC;QAIpB,cAAQ,GAAY,YAAY,CAAC,gBAAgB,CAAC;;IA6O7D,CAAC;IAxOA,sBAAI,oCAAO;aAAX;YACC,OAAO,IAAI,CAAC,QAAQ,CAAC;QACtB,CAAC;aAED,UAAY,KAAc;YACzB,IAAI,IAAI,CAAC,QAAQ,KAAK,KAAK,EAAE;gBAC5B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;gBACtB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;o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M,EAAE,KAAK,GAAK,MAAM,GAAE;IACjD,CAAC;IAQD,kCAAQ,GAAR,UAAS,MAAM;QAAE,gBAAS;aAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;YAAT,+BAAS;;;QACzB,CAAA,KAAA,IAAI,CAAC,MAAM,CAAA,CAAC,QAAQ,6BAAC,MAAM,GAAK,MAAM,GAAE;IACzC,CAAC;IACF,sBAAC;AAAD,CAAC,AAtPD,CAAqC,UAAU,GAsP9C\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport HashObject from \"./HashObject\";\r\nimport { EngineConfig } from \"../engine-config\";\r\nvar interactiveMap = [\r\n '_dealGlobalTouchBegin',\r\n '_dealGlobalTouchMove',\r\n '_dealGlobalTouchEnd',\r\n];\r\nvar ScillaComponent = (function (_super) {\r\n tslib_1.__extends(ScillaComponent, _super);\r\n function ScillaComponent() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.delayCallbacks = [];\r\n _this._enabled = EngineConfig.componentEnabled;\r\n return _this;\r\n }\r\n Object.defineProperty(ScillaComponent.prototype, \"enabled\", {\r\n get: function () {\r\n return this._enabled;\r\n },\r\n set: function (value) {\r\n if (this._enabled !== value) {\r\n this._enabled = value;\r\n if (this.entity && this.entity.isActive) {\r\n if (this._enabled) {\r\n this.onEnable();\r\n }\r\n else {\r\n this.onDisable();\r\n }\r\n }\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ScillaComponent.prototype._setup = function (entity) {\r\n this.entity = entity;\r\n this.onCreate();\r\n };\r\n ScillaComponent.prototype._unSetup = function () {\r\n this.entity = null;\r\n this.onDestroy();\r\n };\r\n ScillaComponent.prototype.onCreate = function () {\r\n };\r\n ScillaComponent.prototype.onAwake = function () {\r\n this._firstUpdate = true;\r\n };\r\n ScillaComponent.prototype.onEnable = function () {\r\n };\r\n ScillaComponent.prototype.onDisable = function () {\r\n };\r\n ScillaComponent.prototype.$onUpdate = function (t) {\r\n this.onUpdate(t);\r\n if (!this._firstUpdate) {\r\n this.invokeDelayCallback(t);\r\n }\r\n this._firstUpdate = false;\r\n };\r\n ScillaComponent.prototype.invokeDelayCallback = function (t) {\r\n var e_1, _a;\r\n var removed = [];\r\n if (this.entity.name.indexOf('progress') >= 0) {\r\n console.log();\r\n }\r\n for (var i = 0, li = this.delayCallbacks.length; i < li; i++) {\r\n var _b = this.delayCallbacks[i], callback = _b.callback, once = _b.once;\r\n if (once) {\r\n removed.push(i);\r\n }\r\n callback.call(this, t);\r\n }\r\n try {\r\n for (var removed_1 = tslib_1.__values(removed), removed_1_1 = removed_1.next(); !removed_1_1.done; removed_1_1 = removed_1.next()) {\r\n var item = removed_1_1.value;\r\n this.delayCallbacks.splice(item, 1);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (removed_1_1 && !removed_1_1.done && (_a = removed_1.return)) _a.call(removed_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n };\r\n ScillaComponent.prototype.onUpdate = function (t) {\r\n };\r\n ScillaComponent.prototype.afterUpdate = function () {\r\n };\r\n ScillaComponent.prototype.onSleep = function () {\r\n };\r\n ScillaComponent.prototype.onDestroy = function () {\r\n };\r\n ScillaComponent.prototype.onModify = function (value, key, oldValue) {\r\n };\r\n ScillaComponent.prototype.getDelayCallback = function (callback) {\r\n var e_2, _a;\r\n var result;\r\n try {\r\n for (var _b = tslib_1.__values(this.delayCallbacks), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var item = _c.value;\r\n if (item.callback == callback) {\r\n result = item;\r\n break;\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n return result;\r\n };\r\n ScillaComponent.prototype.callOnNextTick = function (callback, once) {\r\n if (once === void 0) { once = true; }\r\n var item = this.getDelayCallback(callback);\r\n if (!item) {\r\n this.delayCallbacks.push({ callback: callback, once: once });\r\n }\r\n };\r\n ScillaComponent.prototype.cancelOnNextTick = function (callback) {\r\n var item = this.getDelayCallback(callback);\r\n var index = this.delayCallbacks.indexOf(item);\r\n if (index >= 0) {\r\n this.delayCallbacks.splice(index, 1);\r\n }\r\n };\r\n ScillaComponent.prototype.onInteract = function (type, event) {\r\n try {\r\n var hitOn = this[interactiveMap[type]](event);\r\n return hitOn && this['touchInterrupt'];\r\n }\r\n catch (e) {\r\n console.warn(e);\r\n }\r\n };\r\n ScillaComponent.prototype._dealGlobalTouchBegin = function (e) {\r\n return this.onGlobalTouchBegin(e);\r\n };\r\n ScillaComponent.prototype._dealGlobalTouchMove = function (e) {\r\n return this.onGlobalTouchMove(e);\r\n };\r\n ScillaComponent.prototype._dealGlobalTouchEnd = function (e) {\r\n return this.onGlobalTouchEnd(e);\r\n };\r\n ScillaComponent.prototype.onGlobalTouchBegin = function (e) {\r\n };\r\n ScillaComponent.prototype.onGlobalTouchMove = function (e) {\r\n };\r\n ScillaComponent.prototype.onGlobalTouchEnd = function (e) {\r\n };\r\n Object.defineProperty(ScillaComponent.prototype, \"transform\", {\r\n get: function () {\r\n return this.entity.getComponent('components/base/Transform');\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ScillaComponent.prototype.broadcast = function (method, level) {\r\n if (level === void 0) { level = -1; }\r\n var params = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n params[_i - 2] = arguments[_i];\r\n }\r\n var _a;\r\n (_a = this.entity).broadcast.apply(_a, tslib_1.__spread([method, level], params));\r\n };\r\n ScillaComponent.prototype.bubbling = function (method) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n var _a;\r\n (_a = this.entity).bubbling.apply(_a, tslib_1.__spread([method], params));\r\n };\r\n return ScillaComponent;\r\n}(HashObject));\r\nexport { ScillaComponent };\r\n//# sourceMappingURL=ScillaComponent.js.map"}
{"map":"{\"version\":3,\"file\":\"InteractComponent.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/InteractComponent.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,MAAM,EAAE,eAAe,EAAE,UAAU,EAAC,MAAM,QAAQ,CAAC;AAC3D,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAErC,IAAA,gDAAiB,CAAe;AAKvC;IAA+C,6CAAe;IAkB7D;QAAA,YACC,iBAAO,SAEP;QAhBD,kBAAY,GAAG,IAAI,CAAC;QAKpB,oBAAc,GAAY,KAAK,CAAC;QAEtB,kBAAY,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;QAC/B,cAAQ,GAAQ,EAAE,CAAC;QACnB,WAAK,GAAG,IAAI,CAAC;;IAOvB,CAAC;IAED,iDAAqB,GAArB,UAAsB,CAAC;QACtB,IAAI,SAAS,GAAG,iBAAM,qBAAqB,YAAC,CAAC,CAAC,CAAC;QAE/C,IAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,KAAK,EAAE;YACV,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;YAC5B,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YACrB,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;SACvB;QAED,OAAO,KAAK,IAAI,SAAS,CAAC;IAC3B,CAAC;IAED,gDAAoB,GAApB,UAAqB,CAAC;QACrB,IAAI,SAAS,GAAG,iBAAM,oBAAoB,YAAC,CAAC,CAAC,CAAC;QAE9C,IAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,KAAK,EAAE;YACV,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;YACvB,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;SACpB;aAAM;YACN,IAAI,CAAC,aAAa,CAAC,C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EAAE,CAAC;QAC1C,IAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACvC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC9B,YAAY,CAAC,MAAM,EAAE,CAAC;QACtB,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAErD,IAAI,MAAM,GAAG,KAAK,CAAC;QACnB,IAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;;YACtD,KAAqB,IAAA,cAAA,iBAAA,SAAS,CAAA,oCAAA,2DAAE;gBAA3B,IAAI,QAAQ,sBAAA;gBAChB,IAAI,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;oBACvD,IAAI,QAAQ,CAAC,YAAY,EAAE;wBAC1B,SAAQ;qBACR;yBAAM;wBACN,MAAM,GAAG,IAAI,CAAC;wBACd,MAAK;qBACL;iBACD;qBAAM,IAAI,QAAQ,CAAC,YAAY,EAAE;oBACjC,OAAO,KAAK,CAAA;iBACZ;aACD;;;;;;;;;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IA/HD;QADC,iBAAiB;2DACE;IAgIrB,wBAAC;CAAA,AArID,CAA+C,eAAe,GAqI7D;eArIoB,iBAAiB\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Matrix, ScillaComponent, decorators } from \"scilla\";\r\nimport Renderer from \"../renderer/Renderer\";\r\nvar dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nvar InteractComponent = (function (_super) {\r\n tslib_1.__extends(InteractComponent, _super);\r\n function InteractComponent() {\r\n var _this = _super.call(this) || this;\r\n _this.interactable = true;\r\n _this.touchInterrupt = false;\r\n _this.invertMatrix = Matrix.create();\r\n _this.localPos = {};\r\n _this.isOut = true;\r\n return _this;\r\n }\r\n InteractComponent.prototype._dealGlobalTouchBegin = function (e) {\r\n var interrupt = _super.prototype._dealGlobalTouchBegin.call(this, e);\r\n var hitOn = this.hitTest(e);\r\n if (hitOn) {\r\n this._touchBeginFlag = true;\r\n this.onTouchBegin(e);\r\n this._dealTouchOver(e);\r\n }\r\n return hitOn && interrupt;\r\n };\r\n InteractComponent.prototype._dealGlobalTouchMove = function (e) {\r\n var interrupt = _super.prototype._dealGlobalTouchMove.call(this, e);\r\n var hitOn = this.hitTest(e);\r\n if (hitOn) {\r\n this._dealTouchOver(e);\r\n this.onTouchMove(e);\r\n }\r\n else {\r\n this._dealTouchOut(e);\r\n }\r\n return hitOn && interrupt;\r\n };\r\n InteractComponent.prototype._dealGlobalTouchEnd = function (e) {\r\n var interrupt = _super.prototype._dealGlobalTouchEnd.call(this, e);\r\n var hitOn = this.hitTest(e);\r\n if (hitOn) {\r\n this.onTouchEnd(e);\r\n if (this._touchBeginFlag) {\r\n this.onTouchTap(e);\r\n this._touchBeginFlag = false;\r\n }\r\n }\r\n this.isOut = true;\r\n return hitOn && interrupt;\r\n };\r\n InteractComponent.prototype._dealTouchOver = function (e) {\r\n if (this.isOut) {\r\n this.isOut = false;\r\n this.onTouchOver(e);\r\n }\r\n };\r\n InteractComponent.prototype._dealTouchOut = function (e) {\r\n if (!this.isOut) {\r\n this.isOut = true;\r\n this.onTouchOut(e);\r\n }\r\n };\r\n InteractComponent.prototype.onTouchBegin = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchMove = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchOver = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchOut = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchEnd = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchTap = function (e) {\r\n };\r\n InteractComponent.prototype.hitTest = function (e) {\r\n var e_1, _a;\r\n var matrix = this.transform.getMatrix();\r\n var invertMatrix = this.invertMatrix;\r\n invertMatrix.copyFrom(matrix);\r\n invertMatrix.invert();\r\n invertMatrix.transformPoint(e.x, e.y, this.localPos);\r\n var result = false;\r\n var renderers = this.entity.getComponents(Renderer);\r\n try {\r\n for (var renderers_1 = tslib_1.__values(renderers), renderers_1_1 = renderers_1.next(); !renderers_1_1.done; renderers_1_1 = renderers_1.next()) {\r\n var renderer = renderers_1_1.value;\r\n if (renderer.hitTest(this.localPos.x, this.localPos.y)) {\r\n if (renderer.isUsedToMask) {\r\n continue;\r\n }\r\n else {\r\n result = true;\r\n break;\r\n }\r\n }\r\n else if (renderer.isUsedToMask) {\r\n return false;\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (renderers_1_1 && !renderers_1_1.done && (_a = renderers_1.return)) _a.call(renderers_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n return result;\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], InteractComponent.prototype, \"interactable\", void 0);\r\n return InteractComponent;\r\n}(ScillaComponent));\r\nexport default InteractComponent;\r\n//# sourceMappingURL=InteractComponent.js.map"}
{"map":"{\"version\":3,\"file\":\"Sheet.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Sheet.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AAKxC;IAA2B,iCAAU;IAYpC,eAAY,GAAI,EAAE,MAAO;QAAzB,YACC,iBAAO,SAQP;QAXO,mBAAa,GAAQ,EAAE,CAAC;QAK/B,IAAG,GAAG,EAAC;YACN,KAAI,CAAC,GAAG,GAAG,GAAG,CAAC;SACf;QACD,IAAG,MAAM,EAAC;YACT,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;SACrB;;IACF,CAAC;IAKD,2BAAW,GAAX;QACC,KAAK,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,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ject from \"../core/HashObject\";\r\nimport { createTexture } from \"./Texture\";\r\nvar Sheet = (function (_super) {\r\n tslib_1.__extends(Sheet, _super);\r\n function Sheet(img, frames) {\r\n var _this = _super.call(this) || this;\r\n _this._textureCache = {};\r\n if (img) {\r\n _this.img = img;\r\n }\r\n if (frames) {\r\n _this.frames = frames;\r\n }\r\n return _this;\r\n }\r\n Sheet.prototype.generateAll = function () {\r\n for (var key in this.frames) {\r\n this.generateTexture(key);\r\n }\r\n };\r\n Sheet.prototype.generateTexture = function (name, force) {\r\n if (force === void 0) { force = false; }\r\n var _a = this, img = _a.img, frames = _a.frames, _textureCache = _a._textureCache;\r\n if (!force && _textureCache[name]) {\r\n return _textureCache[name];\r\n }\r\n var frame = frames[name];\r\n if (frame) {\r\n return _textureCache[name] = createTexture(img, frame);\r\n }\r\n };\r\n Sheet.prototype.hasTexture = function (name) {\r\n return !!frames[name];\r\n };\r\n Sheet.prototype.getTexture = function (name) {\r\n var texture = this._textureCache[name];\r\n if (texture) {\r\n return texture;\r\n }\r\n else {\r\n return this.generateTexture(name);\r\n }\r\n };\r\n Sheet.prototype.getAllTextures = function () {\r\n return this._textureCache;\r\n };\r\n Sheet.prototype.destroy = function () {\r\n this.img = null;\r\n for (var key in this._textureCache) {\r\n this._textureCache[key].destroy();\r\n delete this._textureCache[key];\r\n }\r\n };\r\n return Sheet;\r\n}(HashObject));\r\nexport { Sheet };\r\n//# sourceMappingURL=Sheet.js.map"}
{"map":"{\"version\":3,\"file\":\"ABDataManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../src/tw/manager/ABDataManager.ts\"],\"names\":[],\"mappings\":\"AAIA;IAAA;IASA,CAAC;IAAD,oBAAC;AAAD,CAAC,AATD,IASC\"}","code":"var ABDataManager = (function () {\r\n function ABDataManager() {\r\n }\r\n return ABDataManager;\r\n}());\r\nexport { ABDataManager };\r\n//# sourceMappingURL=ABDataManager.js.map"}
{"map":"{\"version\":3,\"file\":\"main.js\",\"sourceRoot\":\"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\";\r\nimport { setup, launchScene, modifyEngineConfig, loadJson, setResPath, utils, } from 'scilla';\r\nimport './generated/MustCompile';\r\nimport launchOptions, { inject } from \"launchOptions\";\r\nmodifyEngineConfig({\r\n lineHeightRatio: 1.2,\r\n entityEnabled: false,\r\n awakeComponentWhenAdded: false,\r\n sleepComponentWhenRemoved: false,\r\n drawRenderRect: false,\r\n});\r\nexport function startup(containerElement, options, onProgress) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var manifest, canvas, config;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadJson('manifest.json')];\r\n case 1:\r\n manifest = _a.sent();\r\n inject(manifest);\r\n inject(options);\r\n setResPath(DEBUG ? 'assets/' : launchOptions.resPath);\r\n canvas = document.createElement('canvas');\r\n containerElement.appendChild(canvas);\r\n config = {\r\n canvas: canvas,\r\n };\r\n if (options.config) {\r\n utils.injectProp(config, options.config);\r\n }\r\n setup(config);\r\n launchScene('main', onProgress).catch(function (e) {\r\n console.log(e);\r\n });\r\n return [2];\r\n }\r\n });\r\n });\r\n}\r\n//# sourceMappingURL=main.js.map"}
{"map":"{\"version\":3,\"file\":\"GetCustomOrderStatusData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/custom/doJoin/GetCustomOrderStatusData.ts\"],\"names\":[],\"mappings\":\";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAM1C;IAA8C,oDAAI;IAAlD;;IAoDA,CAAC;IAjCU,yCAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QAEnB,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACjB,IAAI,IAAI,EAAE;YACN,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;YACpC,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACf,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;aACjC;iBAAM,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACtB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;aACxB;YAED,IAAI,IAAI,CAAC,OAAO;gBACZ,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YACrC,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,QAAQ,EAAE;gBAC/C,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,GAAG,CAAC,oBAAoB,CAAC,SAAS,CAAC,EAAE,CAAC;aAEtE;YACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,QAAQ,EAAE;gBAC/C,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;gBACzD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;oBACf,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;iBACpC;gBACD,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACrC;iBAAM;gBACH,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;gBAC3C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;aACvB;SACJ;IACL,CAAC;IACL,+BAAC;AAAD,CAAC,AApDD,CAA8C,IAAI,GAoDjD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { LotteryData } from \"../../common/lottery/LotteryData\";\r\nimport { Data } from \"../../Data\";\r\nimport { DataManager } from '../../../manager/DataManager';\r\nimport { GPool } from 'src/tw/util/GPool';\r\nvar GetCustomOrderStatusData = (function (_super) {\r\n tslib_1.__extends(GetCustomOrderStatusData, _super);\r\n function GetCustomOrderStatusData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GetCustomOrderStatusData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n data = data.data;\r\n if (data) {\r\n this.creditsInfo = data.creditsInfo;\r\n if (data.exposure) {\r\n this.exposure = data.exposure;\r\n }\r\n else if (this.exposure) {\r\n this.exposure = null;\r\n }\r\n if (data.lottery)\r\n this.lotteryId = data.lottery.id;\r\n if (data.lottery && data.lottery.type == 'thanks') {\r\n this.lotteryId = DataManager.ins.reconAjaxElementData.thanksOpt.id;\r\n }\r\n if (data.lottery && data.lottery.type != 'thanks') {\r\n this.lottery = GPool.takeOut('LotteryData', LotteryData);\r\n if (!this.lottery) {\r\n this.lottery = new LotteryData();\r\n }\r\n this.lottery.update(data.lottery);\r\n }\r\n else {\r\n GPool.recover('LotteryData', this.lottery);\r\n this.lottery = null;\r\n }\r\n }\r\n };\r\n return GetCustomOrderStatusData;\r\n}(Data));\r\nexport { GetCustomOrderStatusData };\r\n//# sourceMappingURL=GetCustomOrderStatusData.js.map"}
{"map":"{\"version\":3,\"file\":\"GetSummerInfoData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/getInfo/GetSummerInfoData.ts\"],\"names\":[],\"mappings\":\";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAAuC,6CAAI;IAA3C;;IAuCA,CAAC;IAlBU,kCAAM,GAAb,UAAc,MAAW;QACrB,IAAI,CAAC,MAAM,EAAE;YACT,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,IAAI,CAAC;QACT,IAAG,MAAM,CAAC,IAAI,EAAE;YACZ,IAAG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChB,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;aAC1B;iBAAM;gBACH,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;aACtB;SACJ;QACD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC9B,CAAC;IACL,wBAAC;AAAD,CAAC,AAvCD,CAAuC,IAAI,GAuC1C\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar GetSummerInfoData = (function (_super) {\r\n tslib_1.__extends(GetSummerInfoData, _super);\r\n function GetSummerInfoData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GetSummerInfoData.prototype.update = function (result) {\r\n if (!result) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, result);\r\n var data;\r\n if (result.data) {\r\n if (result.data.rsp) {\r\n data = result.data.rsp;\r\n }\r\n else {\r\n data = result.data;\r\n }\r\n }\r\n this.consumerId = data.consumerId;\r\n this.totalScore = data.totalScore;\r\n this.maxScore = data.maxScore;\r\n this.status = data.status;\r\n };\r\n return GetSummerInfoData;\r\n}(Data));\r\nexport { GetSummerInfoData };\r\n//# sourceMappingURL=GetSummerInfoData.js.map"}
{"map":"{\"version\":3,\"file\":\"Scene.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Scene.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE/C;IAAA;QAGC,mBAAc,GAAQ;YACrB,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,EAAE;SACT,CAAC;IAiBH,CAAC;IAbA,4BAAY,GAAZ,UAAa,MAAM;QAClB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QAExB,IAAM,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;QACjD,KAAI,IAAI,GAAG,IAAI,cAAc,EAAC;YAC7B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;SAC/C;IACF,CAAC;IAEK,4BAAY,GAAlB,UAAmB,IAAI,EAAE,QAAS;;;;4BACjC,WAAM,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,EAAA;;wBAAvD,SAAuD,CAAC;;;;;KACxD;IACF,YAAC;AAAD,CAAC,AAvBD,IAuBC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { loadResItems } from \"../assets-manager\";\r\nvar Scene = (function () {\r\n function Scene() {\r\n this.resourceGroups = {\r\n preload: [],\r\n delay: [],\r\n };\r\n }\r\n Scene.prototype.initByConfig = function (config) {\r\n this.config = config;\r\n this.name = config.name;\r\n var resourceGroups = config['resource-groups'];\r\n for (var key in resourceGroups) {\r\n this.resourceGroups[key] = resourceGroups[key];\r\n }\r\n };\r\n Scene.prototype.loadResGroup = function (name, progress) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadResItems(this.resourceGroups[name], progress)];\r\n case 1:\r\n _a.sent();\r\n return [2];\r\n }\r\n });\r\n });\r\n };\r\n return Scene;\r\n}());\r\nexport { Scene };\r\n//# sourceMappingURL=Scene.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../node_modules/scilla-core/src/index.ts\"],\"names\":[],\"mappings\":\"AAIA,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA\"}","code":"export * from './core';\r\nexport * from './editor';\r\nexport * from './assets-manager';\r\nexport * from './support';\r\nexport * from './tools';\r\nexport * from './filter';\r\nexport * from './engine-config';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"MainController.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../assets/scripts/MainController.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD;IAA4C,0CAAe;IAEvD;QAAA,YACI,iBAAO,SAGV;QAFG,WAAW,CAAC,GAAG,CAAC,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9C,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,cAAQ,CAAC,CAAC,CAAA;;IACpC,CAAC;IACD,yCAAgB,GAAhB;QACI,KAAK,CAAC,kBAAkB,CAAC,CAAA;IAC7B,CAAC;IACD,uCAAc,GAAd;QACI,KAAK,CAAC,gBAAgB,CAAC,CAAA;IAC3B,CAAC;IACD,qCAAY,GAAZ;QACI,KAAK,CAAC,cAAc,CAAC,CAAA;IACzB,CAAC;IACD,sCAAa,GAAb;QACI,KAAK,CAAC,eAAe,CAAC,CAAA;IAC1B,CAAC;IACD,qCAAY,GAAZ;QACI,KAAK,CAAC,cAAc,CAAC,CAAA;IACzB,CAAC;IACL,qBAAC;AAAD,CAAC,AAtBD,CAA4C,eAAe,GAsB1D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent } from 'scilla-core/src';\r\nimport { DataManager } from 'src/tw/manager/DataManager';\r\nimport { NetManager } from 'src/tw/manager/NetManager';\r\nvar MainController = (function (_super) {\r\n tslib_1.__extends(MainController, _super);\r\n function MainController() {\r\n var _this = _super.call(this) || this;\r\n DataManager.ins.customCfgData = window['CFG'];\r\n NetManager.ins.doJoin(function () { });\r\n return _this;\r\n }\r\n MainController.prototype.onWithdrawBtnTap = function () {\r\n alert('onWithdrawBtnTap');\r\n };\r\n MainController.prototype.onRecordBtnTap = function () {\r\n alert('onRecordBtnTap');\r\n };\r\n MainController.prototype.onRuleBtnTap = function () {\r\n alert('onRuleBtnTap');\r\n };\r\n MainController.prototype.onTasksBtnTap = function () {\r\n alert('onTasksBtnTap');\r\n };\r\n MainController.prototype.onEggsBtnTap = function () {\r\n alert('onEggsBtnTap');\r\n };\r\n return MainController;\r\n}(ScillaComponent));\r\nexport default MainController;\r\n//# sourceMappingURL=MainController.js.map"}
{"map":"{\"version\":3,\"file\":\"Entity.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Entity.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAW9C,MAAM,UAAU,QAAQ,CAAC,MAAc,EAAE,QAA+C,EAAE,KAAU,EAAE,WAAmB,EAAE,YAAwC;IAAzE,sBAAA,EAAA,SAAS,CAAC;IAAE,4BAAA,EAAA,mBAAmB;IAA4C,gBAAS;SAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;QAAT,+BAAS;;;IAC7K,IAAI,SAAS,CAAC;IACd,IAAI,WAAW,EAAE;QAChB,QAAQ,iCAAC,MAAM,GAAK,MAAM,GAAE;KAC5B;IAED,IAAI,KAAK,KAAK,CAAC,EAAE;;YAChB,KAAkB,IAAA,KAAA,iBAAA,MAAM,CAAC,QAAQ,CAAA,gBAAA,4BAAE;gBAA9B,IAAI,KAAK,WAAA;gBACb,IAAI,QAAQ,iCAAC,KAAK,GAAK,MAAM,IAAG;oBAC/B,SAAS,GAAG,IAAI,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S,CAAC,CAAC;SAC/B;IACF,CAAC;IAMD,+BAAc,GAAd,UAAe,SAAS;QACvB,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;YACnC,SAAS,CAAC,OAAO,EAAE,CAAC;SACpB;IACF,CAAC;IAMD,kCAAiB,GAAjB,UAAkB,SAA0B;QAC3C,IAAI,YAAY,CAAC,yBAAyB,EAAE;YAC3C,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;SAC/B;QACD,SAAS,CAAC,QAAQ,EAAE,CAAC;IACtB,CAAC;IAMD,+BAAc,GAAd,UAAe,SAAS;QACvB,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;YACnC,SAAS,CAAC,OAAO,EAAE,CAAC;SACpB;IACF,CAAC;IASD,0BAAS,GAAT,UAAU,MAAM,EAAE,KAAU;QAAV,sBAAA,EAAA,SAAS,CAAC;QAAE,gBAAS;aAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;YAAT,+BAAS;;QACtC,QAAQ,iCAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAK,MAAM,GAAC;IAC1E,CAAC;IAQD,yBAAQ,GAAR,UAAS,MAAM;QAAE,gBAAS;aAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;YAAT,+BAAS;;QACzB,QAAQ,iCAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,KAAK,EAAE,MAAM,GAAK,MAAM,GAAE;IAC/D,CAAC;IAwBF,aAAC;AAAD,CAAC,AAjeD,CAA4B,UAAU,GAierC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport HashObject from \"./HashObject\";\r\nimport { EngineConfig } from \"../engine-config\";\r\nexport function traverse(target, hitChild, level, includeSelf, fullCallback) {\r\n if (level === void 0) { level = -1; }\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n var params = [];\r\n for (var _i = 5; _i < arguments.length; _i++) {\r\n params[_i - 5] = arguments[_i];\r\n }\r\n var e_1, _a;\r\n var interrupt;\r\n if (includeSelf) {\r\n hitChild.apply(void 0, tslib_1.__spread([target], params));\r\n }\r\n if (level !== 0) {\r\n try {\r\n for (var _b = tslib_1.__values(target.children), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var child = _c.value;\r\n if (hitChild.apply(void 0, tslib_1.__spread([child], params))) {\r\n interrupt = true;\r\n continue;\r\n }\r\n if (child.children.length > 0) {\r\n traverse.apply(void 0, tslib_1.__spread([child, hitChild, level - 1, false, fullCallback], params));\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n }\r\n fullCallback && fullCallback(target);\r\n}\r\nexport function traversePostorder(target, hitChild, level, includeSelf, fullCallback) {\r\n if (level === void 0) { level = -1; }\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n var params = [];\r\n for (var _i = 5; _i < arguments.length; _i++) {\r\n params[_i - 5] = arguments[_i];\r\n }\r\n var interrupt;\r\n if (level !== 0) {\r\n for (var i = target.children.length - 1; i >= 0; i--) {\r\n var child = target.children[i];\r\n if (traversePostorder.apply(void 0, tslib_1.__spread([child, hitChild, level - 1, false, fullCallback], params))) {\r\n return true;\r\n }\r\n if (hitChild.apply(void 0, tslib_1.__spread([child], params))) {\r\n return true;\r\n }\r\n }\r\n }\r\n if (includeSelf) {\r\n hitChild.apply(void 0, tslib_1.__spread([target], params));\r\n }\r\n !interrupt && fullCallback && fullCallback(target);\r\n}\r\nexport function bubbling(target, hitParent, includeSelf) {\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n var params = [];\r\n for (var _i = 3; _i < arguments.length; _i++) {\r\n params[_i - 3] = arguments[_i];\r\n }\r\n if (includeSelf) {\r\n hitParent.apply(void 0, tslib_1.__spread([target], params));\r\n }\r\n var entity = target;\r\n while (entity = entity.parent) {\r\n if (hitParent.apply(void 0, tslib_1.__spread([entity], params))) {\r\n break;\r\n }\r\n }\r\n}\r\nvar Entity = (function (_super) {\r\n tslib_1.__extends(Entity, _super);\r\n function Entity(name, uuid) {\r\n var _this = _super.call(this) || this;\r\n _this.name = 'Entity';\r\n _this._isFree = true;\r\n _this._enabled = EngineConfig.entityEnabled;\r\n _this._parent = null;\r\n _this._children = [];\r\n _this._components = [];\r\n _this.invokeOnEntity = function (hitEntity, method) {\r\n var params = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n params[_i - 2] = arguments[_i];\r\n }\r\n var hitBreak = false;\r\n hitEntity.forEachComponent(function (comp) {\r\n var m = comp[method];\r\n if (m) {\r\n var result = m.apply(comp, params);\r\n if (result) {\r\n hitBreak = true;\r\n }\r\n }\r\n return false;\r\n });\r\n if (hitBreak) {\r\n return true;\r\n }\r\n };\r\n if (name) {\r\n _this.name = name;\r\n }\r\n if (uuid) {\r\n _this._uuid = uuid;\r\n }\r\n return _this;\r\n }\r\n Object.defineProperty(Entity.prototype, \"uuid\", {\r\n get: function () {\r\n return this._uuid;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Entity.prototype, \"enabled\", {\r\n get: function () {\r\n return this._enabled;\r\n },\r\n set: function (value) {\r\n if (this._enabled !== value) {\r\n this._enabled = value;\r\n traverse(this, function (child) {\r\n child._invokeEnabledState(value);\r\n return false;\r\n }, -1, true);\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype._invokeEnabledState = function (enabled) {\r\n if (this._enabled && enabled) {\r\n this.onEnable();\r\n }\r\n else if (!this._enabled && !enabled) {\r\n this.onDisable();\r\n }\r\n };\r\n Object.defineProperty(Entity.prototype, \"isParentActive\", {\r\n get: function () {\r\n return this._parent && this._parent.enabled && !this._parent.isFree;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Entity.prototype, \"isActive\", {\r\n get: function () {\r\n return this.isParentActive && this._enabled;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Entity.prototype, \"isFree\", {\r\n get: function () {\r\n return this._isFree;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype._free = function () {\r\n this._isFree = true;\r\n var that = this;\r\n traverse(this, function (child) {\r\n child._free();\r\n return false;\r\n }, 1);\r\n };\r\n Entity.prototype._restrict = function () {\r\n this._isFree = false;\r\n var that = this;\r\n traverse(this, function (child) {\r\n child._restrict();\r\n return false;\r\n }, 1);\r\n };\r\n Object.defineProperty(Entity.prototype, \"parent\", {\r\n get: function () {\r\n return this._parent;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype.containsChild = function (child) {\r\n return this.getChildIndex(child) >= 0;\r\n };\r\n Entity.prototype._onChildAdded = function (child) {\r\n child._parent = this;\r\n if (!this._isFree && child._isFree) {\r\n if (child.isParentActive) {\r\n child._invokeEnabledState(true);\r\n }\r\n child._restrict();\r\n }\r\n };\r\n Entity.prototype._onChildRemoved = function (child) {\r\n child._parent = null;\r\n if (!this._isFree && !child._isFree) {\r\n if (child.isActive) {\r\n child._invokeEnabledState(false);\r\n }\r\n child._free();\r\n }\r\n };\r\n Entity.prototype.addChild = function (child) {\r\n this.addChildAt(child, this._children.length);\r\n };\r\n Entity.prototype.addChildAt = function (child, index) {\r\n if (child.parent && child.parent !== this) {\r\n child.parent.removeChild(child);\r\n }\r\n var currentIndex = this.getChildIndex(child);\r\n if (index < 0 || currentIndex == index) {\r\n return;\r\n }\r\n index = Math.min(this._children.length, index);\r\n if (currentIndex >= 0 || index < this._children.length) {\r\n if (currentIndex >= 0) {\r\n this._children.splice(currentIndex, 1);\r\n }\r\n this._children.splice(index, 0, child);\r\n }\r\n else {\r\n this._children.push(child);\r\n }\r\n this._onChildAdded(child);\r\n };\r\n Entity.prototype.removeChild = function (child) {\r\n var index = this.getChildIndex(child);\r\n if (index >= 0) {\r\n this.removeChildAt(index);\r\n }\r\n };\r\n Entity.prototype.removeChildAt = function (index) {\r\n var child = this._children[index];\r\n this._onChildRemoved(child);\r\n this._children.splice(index, 1);\r\n };\r\n Entity.prototype.getChildIndex = function (child) {\r\n return this._children.indexOf(child);\r\n };\r\n Entity.prototype.getChildByIndex = function (index) {\r\n return this._children[index];\r\n };\r\n Entity.prototype.removeChildren = function () {\r\n while (this._children.length > 0) {\r\n this.removeChildAt(0);\r\n }\r\n };\r\n Object.defineProperty(Entity.prototype, \"children\", {\r\n get: function () {\r\n return this._children;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype.addComponent = function (component) {\r\n this.onAddComponent(component);\r\n this._components.push(component);\r\n };\r\n Entity.prototype.addComponentAt = function (component, index) {\r\n var currentIndex = this._components.indexOf(component);\r\n if (currentIndex == index) {\r\n return;\r\n }\r\n if (currentIndex >= 0) {\r\n this._components.splice(currentIndex, 1);\r\n }\r\n this._components.splice(index, 0, component);\r\n this.onAddComponent(component);\r\n };\r\n Entity.prototype.removeComponent = function (component) {\r\n this.onRemoveComponent(component);\r\n var index = this._components.indexOf(component);\r\n if (index >= 0) {\r\n this._components.splice(index, 1);\r\n }\r\n };\r\n Entity.prototype.removeAllComponents = function () {\r\n while (this._components.length > 0) {\r\n this.removeComponent(this._components[0]);\r\n }\r\n };\r\n Entity.prototype.getComponents = function (clazz) {\r\n return this._components.filter(function (component) {\r\n return typeof clazz === 'string' ? component.constructor.__class__ === clazz : component instanceof clazz;\r\n });\r\n };\r\n Entity.prototype.getComponent = function (clazz) {\r\n return this.getComponents(clazz)[0];\r\n };\r\n Object.defineProperty(Entity.prototype, \"components\", {\r\n get: function () {\r\n return this._components;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype.forEachComponent = function (func) {\r\n var e_2, _a;\r\n try {\r\n for (var _b = tslib_1.__values(this._components), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var component = _c.value;\r\n if (func(component)) {\r\n break;\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n };\r\n Entity.prototype.onEnable = function () {\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled) {\r\n return comp.onAwake();\r\n }\r\n });\r\n };\r\n Entity.prototype.onDisable = function () {\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled) {\r\n return comp.onSleep();\r\n }\r\n });\r\n };\r\n Entity.prototype.onUpdate = function (t) {\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled) {\r\n return comp.$onUpdate(t);\r\n }\r\n });\r\n };\r\n Entity.prototype.afterUpdate = function () {\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled) {\r\n return comp.afterUpdate();\r\n }\r\n });\r\n };\r\n Entity.prototype.onInteract = function (type, event) {\r\n if (!this.isFree && this.enabled) {\r\n var interrupt_1 = false;\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled && comp.interactable) {\r\n var r = comp.onInteract(type, event);\r\n if (r) {\r\n interrupt_1 = true;\r\n }\r\n return false;\r\n }\r\n });\r\n return interrupt_1;\r\n }\r\n else {\r\n return false;\r\n }\r\n };\r\n Entity.prototype.onAddComponent = function (component) {\r\n component._setup(this);\r\n if (EngineConfig.awakeComponentWhenAdded) {\r\n this.awakeComponent(component);\r\n }\r\n };\r\n Entity.prototype.awakeComponent = function (component) {\r\n if (!this._isFree && this._enabled) {\r\n component.onAwake();\r\n }\r\n };\r\n Entity.prototype.onRemoveComponent = function (component) {\r\n if (EngineConfig.sleepComponentWhenRemoved) {\r\n this.sleepComponent(component);\r\n }\r\n component._unSetup();\r\n };\r\n Entity.prototype.sleepComponent = function (component) {\r\n if (!this._isFree && this._enabled) {\r\n component.onSleep();\r\n }\r\n };\r\n Entity.prototype.broadcast = function (method, level) {\r\n if (level === void 0) { level = -1; }\r\n var params = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n params[_i - 2] = arguments[_i];\r\n }\r\n traverse.apply(void 0, tslib_1.__spread([this, this.invokeOnEntity, level, true, null, method], params));\r\n };\r\n Entity.prototype.bubbling = function (method) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n bubbling.apply(void 0, tslib_1.__spread([this, this.invokeOnEntity, false, method], params));\r\n };\r\n return Entity;\r\n}(HashObject));\r\nexport { Entity };\r\n//# sourceMappingURL=Entity.js.map"}
{"map":"{\"version\":3,\"file\":\"ThroughSubmitData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/custom/throughSubmit/ThroughSubmitData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAAuC,6CAAI;IAA3C;;IA4CA,CAAC;IAZU,kCAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC;QAC3B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC;IAChD,CAAC;IACL,wBAAC;AAAD,CAAC,AA5CD,CAAuC,IAAI,GA4C1C\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar ThroughSubmitData = (function (_super) {\r\n tslib_1.__extends(ThroughSubmitData, _super);\r\n function ThroughSubmitData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n ThroughSubmitData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.orderId = data.orderId;\r\n this.type = data.prizeType;\r\n this.plginOrderId = data.plginOrderId;\r\n this.needPrize = data.needPrize;\r\n this.point = data.point;\r\n this.currentLocation = data.currentLocation;\r\n };\r\n return ThroughSubmitData;\r\n}(Data));\r\nexport { ThroughSubmitData };\r\n//# sourceMappingURL=ThroughSubmitData.js.map"}
{"map":"{\"version\":3,\"file\":\"engine-config.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../node_modules/scilla-core/src/engine-config.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,MAAM,CAAC,IAAM,YAAY,GAAG;IAC3B,eAAe,EAAE,GAAG;IACpB,aAAa,EAAE,IAAI;IACnB,gBAAgB,EAAE,IAAI;IACtB,uBAAuB,EAAE,IAAI;IAC7B,yBAAyB,EAAE,IAAI;IAC/B,cAAc,EAAE,KAAK;IACrB,cAAc,EAAE,IAAI;CACpB,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,QAAQ;IAC1C,UAAU,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AACpC,CAAC\"}","code":"import { injectProp } from \"./tools/utils\";\r\nexport var EngineConfig = {\r\n lineHeightRatio: 1.2,\r\n entityEnabled: true,\r\n componentEnabled: true,\r\n awakeComponentWhenAdded: true,\r\n sleepComponentWhenRemoved: true,\r\n drawRenderRect: false,\r\n imgCrossOrigin: true,\r\n};\r\nexport function modifyEngineConfig(_options) {\r\n injectProp(EngineConfig, _options);\r\n}\r\n//# sourceMappingURL=engine-config.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/filter/index.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC\"}","code":"export { ShadowFilter } from './Filters';\r\nexport { ColorFilter } from './Filters';\r\nexport { ColorMatrixFilter } from './Filters';\r\nexport { BlurFilter } from './Filters';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"GetCollectRuleData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/common/getCollectRule/GetCollectRuleData.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAOpC;IAAwC,8CAAI;IAA5C;;IA8CA,CAAC;IApBU,mCAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC;QACjC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,WAAW,CAAC;QAErC,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAM,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;YACrC,IAAI,CAAC,GAAG,CAAC,CAAC;YACV,KAAK,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;gBAClB,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;aAC/C;SACJ;aAAM;YACH,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;SACrB;IACL,CAAC;IACL,yBAAC;AAAD,CAAC,AA9CD,CAAwC,IAAI,GA8C3C\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from './../../Data';\r\nvar GetCollectRuleData = (function (_super) {\r\n tslib_1.__extends(GetCollectRuleData, _super);\r\n function GetCollectRuleData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GetCollectRuleData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.prizeLevel = data.prizeLeve;\r\n this.clickFlag = data.clickFlag;\r\n this.exchange = data.exchange;\r\n this.collectRules = data.collectRule;\r\n if (data.collectGoods) {\r\n var len = data.collectGoods.length;\r\n var i = 0;\r\n for (i; i < len; i++) {\r\n this.allCount += data.collectGoods[i].count;\r\n }\r\n }\r\n else {\r\n this.allCount = 0;\r\n }\r\n };\r\n return GetCollectRuleData;\r\n}(Data));\r\nexport { GetCollectRuleData };\r\n//# sourceMappingURL=GetCollectRuleData.js.map"}
{"map":"{\"version\":3,\"file\":\"BeforSubmitData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/custom/beforSubmit/BeforSubmitData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAAqC,2CAAI;IAAzC;;IAoCA,CAAC;IAVU,gCAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IAC5B,CAAC;IACL,sBAAC;AAAD,CAAC,AApCD,CAAqC,IAAI,GAoCxC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar BeforSubmitData = (function (_super) {\r\n tslib_1.__extends(BeforSubmitData, _super);\r\n function BeforSubmitData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n BeforSubmitData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n this.result = data.result;\r\n this.type = data.type;\r\n this.facePrice = data.facePrice;\r\n this.orderId = data.orderId;\r\n this.title = data.title;\r\n };\r\n return BeforSubmitData;\r\n}(Data));\r\nexport { BeforSubmitData };\r\n//# sourceMappingURL=BeforSubmitData.js.map"}
{"map":"{\"version\":3,\"file\":\"TextureRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/TextureRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAU,UAAU,EAAC,MAAM,QAAQ,CAAC;AAEpC,IAAA,kDAAkB,CAAe;AAExC,MAAM,CAAN,IAAY,QAaX;AAbD,WAAY,QAAQ;IAInB,2CAAM,CAAA;IAIN,2CAAM,CAAA;IAIN,yCAAK,CAAA;AACN,CAAC,EAbW,QAAQ,KAAR,QAAQ,QAanB;AAKD;IAA6C,2CAAQ;IAArD;QAAA,qEAqIC;QA1HA,cAAQ,GAAa,QAAQ,CAAC,MAAM,CAAC;QAMrC,aAAO,GAAG,EAAE,CAAC;;IAoHd,CAAC;IAlHA,sBAAY,uCAAU;aAAtB;YACC,OAAO,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;QAChD,CAAC;;;OAAA;IAKD,8BAAI,GAAJ;QACC,iBAAM,IAAI,WAAE,CAAC;QAEb,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,YAAY,EAAE,CAAC;IAmCrB,CAAC;IAKD,s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SAAS,GAAG,OAAO,CAAC;gBAC5B,OAAO,CAAC,IAAI,EAAE,CAAC;gBACf,MAAM;SACP;IACF,CAAC;IAKD,uCAAa,GAAb;QACC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAChB,OAAO;SACP;QAEK,IAAA,SAA4E,EAA3E,kBAAM,EAAE,iBAA2D,EAA/C,yBAAqB,EAAE,2BAAgC,CAAC;QAEnF,IAAI,IAAI,CAAC,OAAO,EAAE;YACX,IAAA,iBAA2D,EAA1D,uBAAmB,EAAE,yBAAqC,CAAC;YAElE,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC;YACrD,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC;SACzD;aAAM;YACN,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;YAC1C,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;SAC7C;QAED,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IA/HD;QADC,kBAAkB;oDACF;IAMjB;QADC,kBAAkB;qDACkB;IAMrC;QADC,kBAAkB;oDACN;IAoHd,sBAAC;CAAA,AArID,CAA6C,QAAQ,GAqIpD;eArIoB,eAAe\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Renderer from \"./Renderer\";\r\nimport { decorators } from \"scilla\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector;\r\nexport var FillMode;\r\n(function (FillMode) {\r\n FillMode[FillMode[\"NORMAL\"] = 0] = \"NORMAL\";\r\n FillMode[FillMode[\"SLICED\"] = 1] = \"SLICED\";\r\n FillMode[FillMode[\"TILED\"] = 2] = \"TILED\";\r\n})(FillMode || (FillMode = {}));\r\nvar TextureRenderer = (function (_super) {\r\n tslib_1.__extends(TextureRenderer, _super);\r\n function TextureRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.fillMode = FillMode.NORMAL;\r\n _this.filters = [];\r\n return _this;\r\n }\r\n Object.defineProperty(TextureRenderer.prototype, \"hasFilters\", {\r\n get: function () {\r\n return this.filters && this.filters.length > 0;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n TextureRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n this.drawImage();\r\n this.applyFilters();\r\n };\r\n TextureRenderer.prototype.applyFilters = function () {\r\n var e_1, _a;\r\n if (!this.hasFilters)\r\n return;\r\n var _b = this, texture = _b.texture, filters = _b.filters, context = _b.context;\r\n var _c = texture.bounds, textureWidth = _c.width, textureHeight = _c.height;\r\n var imageData = context.getImageData(0, 0, textureWidth, textureHeight);\r\n try {\r\n for (var filters_1 = tslib_1.__values(filters), filters_1_1 = filters_1.next(); !filters_1_1.done; filters_1_1 = filters_1.next()) {\r\n var filter = filters_1_1.value;\r\n filter.drawFilter(imageData);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (filters_1_1 && !filters_1_1.done && (_a = filters_1.return)) _a.call(filters_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n context.putImageData(imageData, 0, 0);\r\n };\r\n TextureRenderer.prototype.drawImage = function () {\r\n if (!this.texture) {\r\n return;\r\n }\r\n var _a = this, texture = _a.texture, fillMode = _a.fillMode, context = _a.context, _b = _a.bounds, width = _b.width, height = _b.height;\r\n var _c = texture.bounds, x = _c.x, y = _c.y, textureWidth = _c.width, textureHeight = _c.height;\r\n switch (fillMode) {\r\n case FillMode.NORMAL:\r\n texture.drawToCanvas(context);\r\n break;\r\n case FillMode.SLICED:\r\n break;\r\n case FillMode.TILED:\r\n var textureCanvas = texture.getCacheCanvas();\r\n var pattern = context.createPattern(textureCanvas, 'repeat');\r\n context.rect(0, 0, width, height);\r\n context.fillStyle = pattern;\r\n context.fill();\r\n break;\r\n }\r\n };\r\n TextureRenderer.prototype.measureBounds = function () {\r\n if (!this.dirty) {\r\n return;\r\n }\r\n var _a = this, bounds = _a.bounds, _b = _a.transform, tWidth = _b.explicitWidth, tHeight = _b.explicitHeight;\r\n if (this.texture) {\r\n var _c = this.texture, textureWidth = _c.width, textureHeight = _c.height;\r\n bounds.width = isNaN(tWidth) ? textureWidth : tWidth;\r\n bounds.height = isNaN(tHeight) ? textureHeight : tHeight;\r\n }\r\n else {\r\n bounds.width = isNaN(tWidth) ? 0 : tWidth;\r\n bounds.height = isNaN(tHeight) ? 0 : tHeight;\r\n }\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextureRenderer.prototype, \"texture\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextureRenderer.prototype, \"fillMode\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextureRenderer.prototype, \"filters\", void 0);\r\n return TextureRenderer;\r\n}(Renderer));\r\nexport default TextureRenderer;\r\n//# sourceMappingURL=TextureRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"GetRuleData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/getRule/GetRuleData.ts\"],\"names\":[],\"mappings\":\";AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC;IAAiC,uCAAI;IAArC;;IAaA,CAAC;IAPU,4BAAM,GAAb,UAAc,MAAW;QACrB,IAAI,CAAC,MAAM,EAAE;YACT,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC;IAC3B,CAAC;IACL,kBAAC;AAAD,CAAC,AAbD,CAAiC,IAAI,GAapC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from './../../Data';\r\nvar GetRuleData = (function (_super) {\r\n tslib_1.__extends(GetRuleData, _super);\r\n function GetRuleData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GetRuleData.prototype.update = function (result) {\r\n if (!result) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, result);\r\n this.ruleText = result;\r\n };\r\n return GetRuleData;\r\n}(Data));\r\nexport { GetRuleData };\r\n//# sourceMappingURL=GetRuleData.js.map"}
{"map":"{\"version\":3,\"file\":\"LineRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/LineRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAKhD;IAA0C,wCAAe;IAAzD;QAAA,qEA4BC;QA3BA,QAAE,GAAW,CAAC,CAAC;QACf,QAAE,GAAW,CAAC,CAAC;QACf,QAAE,GAAW,CAAC,CAAC;QACf,QAAE,GAAW,CAAC,CAAC;;IAwBhB,CAAC;IAnBA,2BAAI,GAAJ;QACC,iBAAM,IAAI,WAAE,CAAC;QAEP,IAAA,SAAgC,EAA/B,oBAAO,EAAE,UAAE,EAAE,UAAE,EAAE,UAAE,EAAE,UAAU,CAAC;QAEvC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACvB,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACxB,CAAC;IAKD,oCAAa,GAAb;QACQ,IAAA,oBAAM,CAAS;QACtB,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;QACjB,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QAElB,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IACF,mBAAC;AAAD,CAAC,AA5BD,CAA0C,eAAe,GA4BxD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nvar LineRenderer = (function (_super) {\r\n tslib_1.__extends(LineRenderer, _super);\r\n function LineRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.x0 = 0;\r\n _this.y0 = 0;\r\n _this.x1 = 0;\r\n _this.y1 = 0;\r\n return _this;\r\n }\r\n LineRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n var _a = this, context = _a.context, x0 = _a.x0, y0 = _a.y0, x1 = _a.x1, y1 = _a.y1;\r\n context.moveTo(x0, y0);\r\n context.lineTo(x1, y1);\r\n };\r\n LineRenderer.prototype.measureBounds = function () {\r\n var bounds = this.bounds;\r\n bounds.width = 0;\r\n bounds.height = 0;\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n return LineRenderer;\r\n}(GraphicRenderer));\r\nexport default LineRenderer;\r\n//# sourceMappingURL=LineRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,0BAA0B,CAAA;AAC1E,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mBAAmB,CAAA\"}","code":"export { default as CircleRenderer } from './CircleRenderer';\r\nexport { default as FrameAnimationRenderer } from './FrameAnimationRenderer';\r\nexport { default as GraphicRenderer } from './GraphicRenderer';\r\nexport { default as LineRenderer } from './LineRenderer';\r\nexport { default as RectRenderer } from './RectRenderer';\r\nexport { default as Renderer } from './Renderer';\r\nexport { default as TextRenderer } from './TextRenderer';\r\nexport { default as TextureRenderer } from './TextureRenderer';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"AjaxThroughInfoData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/custom/ajaxThroughInfo/AjaxThroughInfoData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC;IAAyC,+CAAI;IAA7C;;IAqCA,CAAC;IAXU,oCAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAC1C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC;QAClD,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,WAAW,CAAC;IAC5C,CAAC;IACL,0BAAC;AAAD,CAAC,AArCD,CAAyC,IAAI,GAqC5C\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar AjaxThroughInfoData = (function (_super) {\r\n tslib_1.__extends(AjaxThroughInfoData, _super);\r\n function AjaxThroughInfoData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n AjaxThroughInfoData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.throughCurrent = data.throughCurrent;\r\n this.throughMode = data.throughMode;\r\n this.throughNum = data.throughNum;\r\n this.throughCurrentStep = data.throughCurrentStep;\r\n this.throughInfoList = data.throughInfo;\r\n };\r\n return AjaxThroughInfoData;\r\n}(Data));\r\nexport { AjaxThroughInfoData };\r\n//# sourceMappingURL=AjaxThroughInfoData.js.map"}
{"map":"{\"version\":3,\"file\":\"RealTimeRankData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/realtimerank/RealTimeRankData.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAOlC;IAAsC,4CAAI;IAA1C;;IA4BA,CAAC;IAZU,iCAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;QAC/B,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YAChB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;YACjC,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;SAC3D;QACD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;IACvC,CAAC;IACL,uBAAC;AAAD,CAAC,AA5BD,CAAsC,IAAI,GA4BzC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { DataManager } from './../../../manager/DataManager';\r\nimport { Data } from \"../../Data\";\r\nvar RealTimeRankData = (function (_super) {\r\n tslib_1.__extends(RealTimeRankData, _super);\r\n function RealTimeRankData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n RealTimeRankData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.inRank = data.data.inRank;\r\n if (data.data.user) {\r\n this.myUserData = data.data.user;\r\n DataManager.ins.getInfoData.rank = this.myUserData.rank;\r\n }\r\n this.userList = data.data.userList;\r\n };\r\n return RealTimeRankData;\r\n}(Data));\r\nexport { RealTimeRankData };\r\n//# sourceMappingURL=RealTimeRankData.js.map"}
{"map":"{\"version\":3,\"file\":\"ABNetManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../src/tw/manager/ABNetManager.ts\"],\"names\":[],\"mappings\":\"AAGA;IAYI;QAFQ,iBAAY,GAAQ,EAAE,CAAC;IAG/B,CAAC;IAMM,2BAAI,GAAX,UAAY,GAAa,EAAE,WAAY;QAAvC,iBAmCC;QAlCG,IAAI,KAAK,GAAW,KAAK,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;QACnD,IAAI,OAAO,GAAW,GAAG,CAAC,GAAG,CAAC;QAC9B,IAAI,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE;YAC5B,KAAK,GAAG,KAAK,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;SAC1C;QAGD,IAAI,GAAG,CAAC,MAAM,EAAE;YACZ,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC;SACzB;QAGD,IAAM,QAAQ,GAAQ;YAClB,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,GAAG,EAAE,OAAO;YACZ,QAAQ,EAAE,GAAG,CAAC,QAAQ;YACtB,IAAI,EAAE,GAAG,CAAC,KAAK;YACf,KAAK,EAAE,IAAI;YACX,OAAO,EAAE,UAAC,MAAM;gBACZ,KAAI,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YACjC,CAAC;YACD,KAAK,EAAE,UAAC,OAAO;gBACX,KAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YACtB,CAAC;SACJ,CAAC;QAEF,IAAI,WAAW,EAAE;YACb,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC;YACnC,QAAQ,CAAC,OAAO,GAAG;gBACf,cAAc,EAAE,gCAAgC;aACnD,CAAC;YACF,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACjD;QACD,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC;IAlDa,kBAAK,GAAG,OAAO,CAAC;IAChB,mBAAM,GAAG,QAAQ,CAAC;IA+DpC,mBAAC;CAAA,AApED,IAoEC;SApEqB,YAAY\"}","code":"var ABNetManager = (function () {\r\n function ABNetManager() {\r\n this.callbackPool = {};\r\n }\r\n ABNetManager.prototype.send = function (net, contentType) {\r\n var _this = this;\r\n var gTime = '?_=' + (new Date().getTime());\r\n var realUrl = net.uri;\r\n if (realUrl.indexOf('?') != -1) {\r\n gTime = '&_=' + (new Date().getTime());\r\n }\r\n if (net.addUrl) {\r\n realUrl += net.addUrl;\r\n }\r\n var senddata = {\r\n type: net.type,\r\n url: realUrl,\r\n dataType: net.dataType,\r\n data: net.param,\r\n async: true,\r\n success: function (result) {\r\n _this.onResponse(net, result);\r\n },\r\n error: function (message) {\r\n _this.onError(net);\r\n }\r\n };\r\n if (contentType) {\r\n senddata.contentType = contentType;\r\n senddata.headers = {\r\n \"Content-Type\": \"application/json;charset=utf-8\"\r\n };\r\n senddata.data = JSON.stringify(senddata.data);\r\n }\r\n window['$'].ajax(senddata);\r\n };\r\n ABNetManager.ERROR = 'Error';\r\n ABNetManager.ERROR2 = 'Error2';\r\n return ABNetManager;\r\n}());\r\nexport { ABNetManager };\r\n//# sourceMappingURL=ABNetManager.js.map"}
{"map":"{\"version\":3,\"file\":\"decorators.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/decorators.ts\"],\"names\":[],\"mappings\":\"AAUA,MAAM,UAAU,YAAY,CAAC,QAAQ;IACpC,OAAO,UAAU,MAAW,EAAE,GAAW;QACxC,IAAM,UAAU,GAAG,GAAG,GAAG,GAAG,CAAC;QAC7B,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE;YAClC,UAAU,EAAE,IAAI;YAChB,GAAG,EAAE;gBACJ,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC;YACzB,CAAC;YACD,GAAG,EAAE,UAAU,CAAC;gBACf,IAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;gBAClC,IAAI,QAAQ,KAAK,CAAC,EAAE;oBACnB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;oBACrB,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;iBACzC;YACF,CAAC;SACD,CAAC,CAAA;IACH,CAAC,CAAA;AACF,CAAC;AAKD,MAAM,CAAC,IAAM,kBAAkB,GAAG,YAAY,CAC7C,UAAU,KAAK,EAAE,GAAG,EAAE,QAAQ;IAC7B,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;AACtB,CAAC,CACD,CAAC;AAKF,MAAM,CAAC,IAAM,iBAAiB,GAAG,YAAY,CAC5C,UAAU,KAAK,EAAE,GAAG,EAAE,QAAQ;IAC7B,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;AAC5D,CAAC,CACD,CAAC\"}","code":"export function fieldChanged(onChange) {\r\n return function (target, key) {\r\n var privateKey = '_' + key;\r\n Object.defineProperty(target, key, {\r\n enumerable: true,\r\n get: function () {\r\n return this[privateKey];\r\n },\r\n set: function (v) {\r\n var oldValue = this[privateKey];\r\n if (oldValue !== v) {\r\n this[privateKey] = v;\r\n onChange.apply(this, [v, key, oldValue]);\r\n }\r\n }\r\n });\r\n };\r\n}\r\nexport var dirtyFieldDetector = fieldChanged(function (value, key, oldValue) {\r\n this['dirty'] = true;\r\n});\r\nexport var dirtyFieldTrigger = fieldChanged(function (value, key, oldValue) {\r\n this['onModify'] && this['onModify'](value, key, oldValue);\r\n});\r\n//# sourceMappingURL=decorators.js.map"}
{"map":"{\"version\":3,\"file\":\"Filters.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/filter/Filters.ts\"],\"names\":[],\"mappings\":\"AAMA;IA0DI,sBAAmB,KAAuB,EAAE,OAAmB,EAAE,OAAmB,EAAE,IAAgB;QAAnF,sBAAA,EAAA,eAAuB;QAAE,wBAAA,EAAA,WAAmB;QAAE,wBAAA,EAAA,WAAmB;QAAE,qBAAA,EAAA,QAAgB;QAhD/F,UAAK,GAAW,OAAO,CAAC;QAUxB,YAAO,GAAW,CAAC,CAAC;QAUpB,YAAO,GAAW,CAAC,CAAC;QAUpB,SAAI,GAAW,CAAC,CAAC;QAUjB,SAAI,GAAW,QAAQ,CAAC;QAS3B,IAAI,CAAC,GAAG,IAAI,CAAC;QACb,CAAC,CAAC,OAAO,GAAG,OAAO,CAAC;QACpB,CAAC,CAAC,OAAO,GAAG,OAAO,CAAC;QACpB,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC;QACd,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC;IACpB,CAAC;IAQM,+BAAQ,GAAf;QACI,IAAI,CAAC,GAAG,IAAI,CAAC;QACb,OAAO,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC;IAC7D,CAAC;IAQM,iCAAU,GAAjB,UAAkB,SAA2B;QAA3B,0BAAA,EAAA,gBAA2B;IAE7C,CAAC;IAEM,8BAAO,GAAd;IAEA,CAAC;IACL,mBAAC;AAAD,CAAC,AA1FD,IA0FC;;AAOD;IA6EI,qBAAmB,WAAqB;QArEjC,kBAAa,GA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G,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;IAmKlvC,iBAAC;CAAA,AAlOD,IAkOC;SAlOY,UAAU\"}","code":"var ShadowFilter = (function () {\r\n function ShadowFilter(color, offsetX, offsetY, blur) {\r\n if (color === void 0) { color = \"black\"; }\r\n if (offsetX === void 0) { offsetX = 2; }\r\n if (offsetY === void 0) { offsetY = 2; }\r\n if (blur === void 0) { blur = 2; }\r\n this.color = \"black\";\r\n this.offsetX = 2;\r\n this.offsetY = 2;\r\n this.blur = 2;\r\n this.type = \"Shadow\";\r\n var s = this;\r\n s.offsetX = offsetX;\r\n s.offsetY = offsetY;\r\n s.blur = blur;\r\n s.color = color;\r\n }\r\n ShadowFilter.prototype.toString = function () {\r\n var s = this;\r\n return s.type + s.offsetX + s.offsetY + s.blur + s.color;\r\n };\r\n ShadowFilter.prototype.drawFilter = function (imageData) {\r\n if (imageData === void 0) { imageData = null; }\r\n };\r\n ShadowFilter.prototype.destroy = function () {\r\n };\r\n return ShadowFilter;\r\n}());\r\nexport { ShadowFilter };\r\nvar ColorFilter = (function () {\r\n function ColorFilter(colorArrays) {\r\n this.redMultiplier = 0;\r\n this.redOffset = 0;\r\n this.greenMultiplier = 0;\r\n this.greenOffset = 0;\r\n this.blueMultiplier = 0;\r\n this.blueOffset = 0;\r\n this.alphaMultiplier = 0;\r\n this.alphaOffset = 0;\r\n this.type = \"Color\";\r\n var s = this;\r\n s.redMultiplier = colorArrays[0];\r\n s.greenMultiplier = colorArrays[1];\r\n s.blueMultiplier = colorArrays[2];\r\n s.alphaMultiplier = colorArrays[3];\r\n s.redOffset = colorArrays[4];\r\n s.greenOffset = colorArrays[5];\r\n s.blueOffset = colorArrays[6];\r\n s.alphaOffset = colorArrays[7];\r\n }\r\n ColorFilter.prototype.drawFilter = function (imageData) {\r\n if (imageData === void 0) { imageData = null; }\r\n if (!imageData)\r\n return;\r\n var s = this;\r\n var data = imageData.data;\r\n var l = data.length;\r\n for (var i = 0; i < l; i += 4) {\r\n data[i] = data[i] * s.redMultiplier + s.redOffset;\r\n data[i + 1] = data[i + 1] * s.greenMultiplier + s.greenOffset;\r\n data[i + 2] = data[i + 2] * s.blueMultiplier + s.blueOffset;\r\n data[i + 3] = data[i + 3] * s.alphaMultiplier + s.alphaOffset;\r\n }\r\n };\r\n ColorFilter.prototype.toString = function () {\r\n var s = this;\r\n return s.type + s.redMultiplier + s.greenMultiplier + s.blueMultiplier + s.alphaMultiplier + s.redOffset + s.greenOffset + s.blueOffset + s.alphaOffset;\r\n };\r\n ColorFilter.prototype.destroy = function () {\r\n };\r\n return ColorFilter;\r\n}());\r\nexport { ColorFilter };\r\nvar ColorMatrixFilter = (function () {\r\n function ColorMatrixFilter(brightness, contrast, saturation, hue) {\r\n this.brightness = 0;\r\n this.contrast = 0;\r\n this.saturation = 0;\r\n this.hue = 0;\r\n this.type = \"ColorMatrix\";\r\n var s = this;\r\n s.brightness = brightness;\r\n s.contrast = contrast;\r\n s.saturation = saturation;\r\n s.hue = hue;\r\n s.colorMatrix = [\r\n 1, 0, 0, 0, 0,\r\n 0, 1, 0, 0, 0,\r\n 0, 0, 1, 0, 0,\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ];\r\n brightness = s._cleanValue(brightness, 255);\r\n if (brightness != 0) {\r\n s._multiplyMatrix([\r\n 1, 0, 0, 0, brightness,\r\n 0, 1, 0, 0, brightness,\r\n 0, 0, 1, 0, brightness,\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ]);\r\n }\r\n contrast = this._cleanValue(contrast, 100);\r\n var x;\r\n if (contrast != 0) {\r\n if (contrast < 0) {\r\n x = 127 + contrast / 100 * 127;\r\n }\r\n else {\r\n x = contrast % 1;\r\n if (x == 0) {\r\n x = ColorMatrixFilter.DELTA_INDEX[contrast];\r\n }\r\n else {\r\n x = ColorMatrixFilter.DELTA_INDEX[(contrast << 0)] * (1 - x) + ColorMatrixFilter.DELTA_INDEX[(contrast << 0) + 1] * x;\r\n }\r\n x = x * 127 + 127;\r\n }\r\n s._multiplyMatrix([\r\n x / 127, 0, 0, 0, 0.5 * (127 - x),\r\n 0, x / 127, 0, 0, 0.5 * (127 - x),\r\n 0, 0, x / 127, 0, 0.5 * (127 - x),\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ]);\r\n }\r\n saturation = this._cleanValue(saturation, 100);\r\n if (saturation != 0) {\r\n x = 1 + ((saturation > 0) ? 3 * saturation / 100 : saturation / 100);\r\n var lumR = 0.3086;\r\n var lumG = 0.6094;\r\n var lumB = 0.0820;\r\n s._multiplyMatrix([\r\n lumR * (1 - x) + x, lumG * (1 - x), lumB * (1 - x), 0, 0,\r\n lumR * (1 - x), lumG * (1 - x) + x, lumB * (1 - x), 0, 0,\r\n lumR * (1 - x), lumG * (1 - x), lumB * (1 - x) + x, 0, 0,\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ]);\r\n }\r\n hue = this._cleanValue(hue, 180) / 180 * Math.PI;\r\n if (hue != 0) {\r\n var cosVal = Math.cos(hue);\r\n var sinVal = Math.sin(hue);\r\n var lumR = 0.213;\r\n var lumG = 0.715;\r\n var lumB = 0.072;\r\n s._multiplyMatrix([\r\n lumR + cosVal * (1 - lumR) + sinVal * (-lumR), lumG + cosVal * (-lumG) + sinVal * (-lumG), lumB + cosVal * (-lumB) + sinVal * (1 - lumB), 0, 0,\r\n lumR + cosVal * (-lumR) + sinVal * (0.143), lumG + cosVal * (1 - lumG) + sinVal * (0.140), lumB + cosVal * (-lumB) + sinVal * (-0.283), 0, 0,\r\n lumR + cosVal * (-lumR) + sinVal * (-(1 - lumR)), lumG + cosVal * (-lumG) + sinVal * (lumG), lumB + cosVal * (1 - lumB) + sinVal * (lumB), 0, 0,\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ]);\r\n }\r\n }\r\n ColorMatrixFilter.prototype.drawFilter = function (imageData) {\r\n if (imageData === void 0) { imageData = null; }\r\n if (!imageData)\r\n return;\r\n var data = imageData.data;\r\n var l = data.length;\r\n var r, g, b, a;\r\n var mtx = this.colorMatrix;\r\n var m0 = mtx[0], m1 = mtx[1], m2 = mtx[2], m3 = mtx[3], m4 = mtx[4];\r\n var m5 = mtx[5], m6 = mtx[6], m7 = mtx[7], m8 = mtx[8], m9 = mtx[9];\r\n var m10 = mtx[10], m11 = mtx[11], m12 = mtx[12], m13 = mtx[13], m14 = mtx[14];\r\n var m15 = mtx[15], m16 = mtx[16], m17 = mtx[17], m18 = mtx[18], m19 = mtx[19];\r\n for (var i = 0; i < l; i += 4) {\r\n r = data[i];\r\n g = data[i + 1];\r\n b = data[i + 2];\r\n a = data[i + 3];\r\n data[i] = r * m0 + g * m1 + b * m2 + a * m3 + m4;\r\n data[i + 1] = r * m5 + g * m6 + b * m7 + a * m8 + m9;\r\n data[i + 2] = r * m10 + g * m11 + b * m12 + a * m13 + m14;\r\n data[i + 3] = r * m15 + g * m16 + b * m17 + a * m18 + m19;\r\n }\r\n };\r\n ColorMatrixFilter.prototype._multiplyMatrix = function (colorMat) {\r\n var i, j, k, col = [];\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j < 5; j++) {\r\n col[j] = this.colorMatrix[j + i * 5];\r\n }\r\n for (j = 0; j < 5; j++) {\r\n var val = 0;\r\n for (k = 0; k < 5; k++) {\r\n val += colorMat[j + k * 5] * col[k];\r\n }\r\n this.colorMatrix[j + i * 5] = val;\r\n }\r\n }\r\n };\r\n ColorMatrixFilter.prototype._cleanValue = function (value, limit) {\r\n return Math.min(limit, Math.max(-limit, value));\r\n };\r\n ColorMatrixFilter.prototype.toString = function () {\r\n var s = this;\r\n return s.type + s.brightness + s.hue + s.saturation + s.contrast;\r\n };\r\n ColorMatrixFilter.prototype.destroy = function () {\r\n this.colorMatrix = null;\r\n };\r\n ColorMatrixFilter.DELTA_INDEX = [\r\n 0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 0.08, 0.1, 0.11,\r\n 0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.20, 0.21, 0.22, 0.24,\r\n 0.25, 0.27, 0.28, 0.30, 0.32, 0.34, 0.36, 0.38, 0.40, 0.42,\r\n 0.44, 0.46, 0.48, 0.5, 0.53, 0.56, 0.59, 0.62, 0.65, 0.68,\r\n 0.71, 0.74, 0.77, 0.80, 0.83, 0.86, 0.89, 0.92, 0.95, 0.98,\r\n 1.0, 1.06, 1.12, 1.18, 1.24, 1.30, 1.36, 1.42, 1.48, 1.54,\r\n 1.60, 1.66, 1.72, 1.78, 1.84, 1.90, 1.96, 2.0, 2.12, 2.25,\r\n 2.37, 2.50, 2.62, 2.75, 2.87, 3.0, 3.2, 3.4, 3.6, 3.8,\r\n 4.0, 4.3, 4.7, 4.9, 5.0, 5.5, 6.0, 6.5, 6.8, 7.0,\r\n 7.3, 7.5, 7.8, 8.0, 8.4, 8.7, 9.0, 9.4, 9.6, 9.8,\r\n 10.0\r\n ];\r\n return ColorMatrixFilter;\r\n}());\r\nexport { ColorMatrixFilter };\r\nvar BlurFilter = (function () {\r\n function BlurFilter(blurX, blurY, quality) {\r\n if (blurX === void 0) { blurX = 2; }\r\n if (blurY === void 0) { blurY = 2; }\r\n if (quality === void 0) { quality = 1; }\r\n this.type = \"blur\";\r\n this.blurX = 0;\r\n this.blurY = 0;\r\n this.quality = 1;\r\n var s = this;\r\n s.blurX = blurX;\r\n s.blurY = blurY;\r\n s.quality = quality;\r\n }\r\n BlurFilter.prototype.toString = function () {\r\n var s = this;\r\n return s.type + s.blurX + s.blurY + s.quality;\r\n };\r\n BlurFilter.prototype.drawFilter = function (imageData) {\r\n if (imageData === void 0) { imageData = null; }\r\n var s = this;\r\n var radiusX = s.blurX >> 1;\r\n if (isNaN(radiusX) || radiusX < 0)\r\n return false;\r\n var radiusY = s.blurY >> 1;\r\n if (isNaN(radiusY) || radiusY < 0)\r\n return false;\r\n if (radiusX == 0 && radiusY == 0)\r\n return false;\r\n var iterations = s.quality;\r\n if (isNaN(iterations) || iterations < 1)\r\n iterations = 1;\r\n iterations |= 0;\r\n if (iterations > 3)\r\n iterations = 3;\r\n if (iterations < 1)\r\n iterations = 1;\r\n var px = imageData.data;\r\n var x = 0, y = 0, i = 0, p = 0, yp = 0, yi = 0, yw = 0, r = 0, g = 0, b = 0, a = 0, pr = 0, pg = 0, pb = 0, pa = 0;\r\n var divx = (radiusX + radiusX + 1) | 0;\r\n var divy = (radiusY + radiusY + 1) | 0;\r\n var w = imageData.width | 0;\r\n var h = imageData.height | 0;\r\n var w1 = (w - 1) | 0;\r\n var h1 = (h - 1) | 0;\r\n var rxp1 = (radiusX + 1) | 0;\r\n var ryp1 = (radiusY + 1) | 0;\r\n var ssx = { r: 0, b: 0, g: 0, a: 0 };\r\n var sx = ssx;\r\n for (i = 1; i < divx; i++) {\r\n sx = sx.n = { r: 0, b: 0, g: 0, a: 0 };\r\n }\r\n sx.n = ssx;\r\n var ssy = { r: 0, b: 0, g: 0, a: 0 };\r\n var sy = ssy;\r\n for (i = 1; i < divy; i++) {\r\n sy = sy.n = { r: 0, b: 0, g: 0, a: 0 };\r\n }\r\n sy.n = ssy;\r\n var si = null;\r\n var mtx = BlurFilter.MUL_TABLE[radiusX] | 0;\r\n var stx = BlurFilter.SHG_TABLE[radiusX] | 0;\r\n var mty = BlurFilter.MUL_TABLE[radiusY] | 0;\r\n var sty = BlurFilter.SHG_TABLE[radiusY] | 0;\r\n while (iterations-- > 0) {\r\n yw = yi = 0;\r\n var ms = mtx;\r\n var ss = stx;\r\n for (y = h; --y > -1;) {\r\n r = rxp1 * (pr = px[(yi) | 0]);\r\n g = rxp1 * (pg = px[(yi + 1) | 0]);\r\n b = rxp1 * (pb = px[(yi + 2) | 0]);\r\n a = rxp1 * (pa = px[(yi + 3) | 0]);\r\n sx = ssx;\r\n for (i = rxp1; --i > -1;) {\r\n sx.r = pr;\r\n sx.g = pg;\r\n sx.b = pb;\r\n sx.a = pa;\r\n sx = sx.n;\r\n }\r\n for (i = 1; i < rxp1; i++) {\r\n p = (yi + ((w1 < i ? w1 : i) << 2)) | 0;\r\n r += (sx.r = px[p]);\r\n g += (sx.g = px[p + 1]);\r\n b += (sx.b = px[p + 2]);\r\n a += (sx.a = px[p + 3]);\r\n sx = sx.n;\r\n }\r\n si = ssx;\r\n for (x = 0; x < w; x++) {\r\n px[yi++] = (r * ms) >>> ss;\r\n px[yi++] = (g * ms) >>> ss;\r\n px[yi++] = (b * ms) >>> ss;\r\n px[yi++] = (a * ms) >>> ss;\r\n p = ((yw + ((p = x + radiusX + 1) < w1 ? p : w1)) << 2);\r\n r -= si.r - (si.r = px[p]);\r\n g -= si.g - (si.g = px[p + 1]);\r\n b -= si.b - (si.b = px[p + 2]);\r\n a -= si.a - (si.a = px[p + 3]);\r\n si = si.n;\r\n }\r\n yw += w;\r\n }\r\n ms = mty;\r\n ss = sty;\r\n for (x = 0; x < w; x++) {\r\n yi = (x << 2) | 0;\r\n r = (ryp1 * (pr = px[yi])) | 0;\r\n g = (ryp1 * (pg = px[(yi + 1) | 0])) | 0;\r\n b = (ryp1 * (pb = px[(yi + 2) | 0])) | 0;\r\n a = (ryp1 * (pa = px[(yi + 3) | 0])) | 0;\r\n sy = ssy;\r\n for (i = 0; i < ryp1; i++) {\r\n sy.r = pr;\r\n sy.g = pg;\r\n sy.b = pb;\r\n sy.a = pa;\r\n sy = sy.n;\r\n }\r\n yp = w;\r\n for (i = 1; i <= radiusY; i++) {\r\n yi = (yp + x) << 2;\r\n r += (sy.r = px[yi]);\r\n g += (sy.g = px[yi + 1]);\r\n b += (sy.b = px[yi + 2]);\r\n a += (sy.a = px[yi + 3]);\r\n sy = sy.n;\r\n if (i < h1) {\r\n yp += w;\r\n }\r\n }\r\n yi = x;\r\n si = ssy;\r\n if (iterations > 0) {\r\n for (y = 0; y < h; y++) {\r\n p = yi << 2;\r\n px[p + 3] = pa = (a * ms) >>> ss;\r\n if (pa > 0) {\r\n px[p] = ((r * ms) >>> ss);\r\n px[p + 1] = ((g * ms) >>> ss);\r\n px[p + 2] = ((b * ms) >>> ss);\r\n }\r\n else {\r\n px[p] = px[p + 1] = px[p + 2] = 0;\r\n }\r\n p = (x + (((p = y + ryp1) < h1 ? p : h1) * w)) << 2;\r\n r -= si.r - (si.r = px[p]);\r\n g -= si.g - (si.g = px[p + 1]);\r\n b -= si.b - (si.b = px[p + 2]);\r\n a -= si.a - (si.a = px[p + 3]);\r\n si = si.n;\r\n yi += w;\r\n }\r\n }\r\n else {\r\n for (y = 0; y < h; y++) {\r\n p = yi << 2;\r\n px[p + 3] = pa = (a * ms) >>> ss;\r\n if (pa > 0) {\r\n pa = 255 / pa;\r\n px[p] = ((r * ms) >>> ss) * pa;\r\n px[p + 1] = ((g * ms) >>> ss) * pa;\r\n px[p + 2] = ((b * ms) >>> ss) * pa;\r\n }\r\n else {\r\n px[p] = px[p + 1] = px[p + 2] = 0;\r\n }\r\n p = (x + (((p = y + ryp1) < h1 ? p : h1) * w)) << 2;\r\n r -= si.r - (si.r = px[p]);\r\n g -= si.g - (si.g = px[p + 1]);\r\n b -= si.b - (si.b = px[p + 2]);\r\n a -= si.a - (si.a = px[p + 3]);\r\n si = si.n;\r\n yi += w;\r\n }\r\n }\r\n }\r\n }\r\n };\r\n BlurFilter.prototype.destroy = function () {\r\n };\r\n BlurFilter.SHG_TABLE = [0, 9, 10, 11, 9, 12, 10, 11, 12, 9, 13, 13, 10, 9, 13, 13, 14, 14, 14, 14, 10, 13, 14, 14, 14, 13, 13, 13, 9, 14, 14, 14, 15, 14, 15, 14, 15, 15, 14, 15, 15, 15, 14, 15, 15, 15, 15, 15, 14, 15, 15, 15, 15, 15, 15, 12, 14, 15, 15, 13, 15, 15, 15, 15, 16, 16, 16, 15, 16, 14, 16, 16, 14, 16, 13, 16, 16, 16, 15, 16, 13, 16, 15, 16, 14, 9, 16, 16, 16, 16, 16, 16, 16, 16, 16, 13, 14, 16, 16, 15, 16, 16, 10, 16, 15, 16, 14, 16, 16, 14, 16, 16, 14, 16, 16, 14, 15, 16, 16, 16, 14, 15, 14, 15, 13, 16, 16, 15, 17, 17, 17, 17, 17, 17, 14, 15, 17, 17, 16, 16, 17, 16, 15, 17, 16, 17, 11, 17, 16, 17, 16, 17, 16, 17, 17, 16, 17, 17, 16, 17, 17, 16, 16, 17, 17, 17, 16, 14, 17, 17, 17, 17, 15, 16, 14, 16, 15, 16, 13, 16, 15, 16, 14, 16, 15, 16, 12, 16, 15, 16, 17, 17, 17, 17, 17, 13, 16, 15, 17, 17, 17, 16, 15, 17, 17, 17, 16, 15, 17, 17, 14, 16, 17, 17, 16, 17, 17, 16, 15, 17, 16, 14, 17, 16, 15, 17, 16, 17, 17, 16, 17, 15, 16, 17, 14, 17, 16, 15, 17, 16, 17, 13, 17, 16, 17, 17, 16, 17, 14, 17, 16, 17, 16, 17, 16, 17, 9];\r\n BlurFilter.MUL_TABLE = [1, 171, 205, 293, 57, 373, 79, 137, 241, 27, 391, 357, 41, 19, 283, 265, 497, 469, 443, 421, 25, 191, 365, 349, 335, 161, 155, 149, 9, 278, 269, 261, 505, 245, 475, 231, 449, 437, 213, 415, 405, 395, 193, 377, 369, 361, 353, 345, 169, 331, 325, 319, 313, 307, 301, 37, 145, 285, 281, 69, 271, 267, 263, 259, 509, 501, 493, 243, 479, 118, 465, 459, 113, 446, 55, 435, 429, 423, 209, 413, 51, 403, 199, 393, 97, 3, 379, 375, 371, 367, 363, 359, 355, 351, 347, 43, 85, 337, 333, 165, 327, 323, 5, 317, 157, 311, 77, 305, 303, 75, 297, 294, 73, 289, 287, 71, 141, 279, 277, 275, 68, 135, 67, 133, 33, 262, 260, 129, 511, 507, 503, 499, 495, 491, 61, 121, 481, 477, 237, 235, 467, 232, 115, 457, 227, 451, 7, 445, 221, 439, 218, 433, 215, 427, 425, 211, 419, 417, 207, 411, 409, 203, 202, 401, 399, 396, 197, 49, 389, 387, 385, 383, 95, 189, 47, 187, 93, 185, 23, 183, 91, 181, 45, 179, 89, 177, 11, 175, 87, 173, 345, 343, 341, 339, 337, 21, 167, 83, 331, 329, 327, 163, 81, 323, 321, 319, 159, 79, 315, 313, 39, 155, 309, 307, 153, 305, 303, 151, 75, 299, 149, 37, 295, 147, 73, 291, 145, 289, 287, 143, 285, 71, 141, 281, 35, 279, 139, 69, 275, 137, 273, 17, 271, 135, 269, 267, 133, 265, 33, 263, 131, 261, 130, 259, 129, 257, 1];\r\n return BlurFilter;\r\n}());\r\nexport { BlurFilter };\r\n//# sourceMappingURL=Filters.js.map"}
{"map":"{\"version\":3,\"file\":\"ReconAjaxElementData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/custom/ajaxElement/ReconAjaxElementData.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAMlC;IAA0C,gDAAI;IAA9C;;IA4EA,CAAC;IApBU,qCAAM,GAAb,UAAc,MAAW;QACrB,IAAI,CAAC,MAAM,EAAE;YACT,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;QAC5C,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QACpC,IAAI,CAAC,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;QACpD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QAClC,IAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,SAAS,IAAI,QAAQ,EAAzB,CAAyB,CAAC,CAAC;QACzE,IAAI,UAAU;YAAE,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,CAAC,CAAC,CAAA;IAClD,CAAC;IACL,2BAAC;AAAD,CAAC,AA5ED,CAA0C,IAAI,GA4E7C\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar ReconAjaxElementData = (function (_super) {\r\n tslib_1.__extends(ReconAjaxElementData, _super);\r\n function ReconAjaxElementData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n ReconAjaxElementData.prototype.update = function (result) {\r\n if (!result) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, result);\r\n this.throughCurrent = result.throughCurrent;\r\n this.throughMode = result.throughMode;\r\n this.throughNum = result.throughNum;\r\n this.throughCurrentStep = result.throughCurrentStep;\r\n this.jsTest = result.jsTest;\r\n this.cssTest = result.cssTest;\r\n this.rule = result.rule;\r\n this.type = result.type;\r\n this.options = result.options;\r\n this.element = result.element;\r\n this.creditsConf = result.creditsConf;\r\n this.questions = result.questions;\r\n var thanksList = this.options.filter(function (opt) { return opt.prizeType == 'thanks'; });\r\n if (thanksList)\r\n this.thanksOpt = thanksList[0];\r\n };\r\n return ReconAjaxElementData;\r\n}(Data));\r\nexport { ReconAjaxElementData };\r\n//# sourceMappingURL=ReconAjaxElementData.js.map"}
{"map":"{\"version\":3,\"file\":\"GetCreditsData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/common/getCredits/GetCreditsData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAAoC,0CAAI;IAAxC;;IAyBA,CAAC;IATU,+BAAM,GAAb,UAAc,MAAW;QACrB,IAAI,CAAC,MAAM,EAAE;YACT,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC;IACvD,CAAC;IACL,qBAAC;AAAD,CAAC,AAzBD,CAAoC,IAAI,GAyBvC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar GetCreditsData = (function (_super) {\r\n tslib_1.__extends(GetCreditsData, _super);\r\n function GetCreditsData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GetCreditsData.prototype.update = function (result) {\r\n if (!result) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, result);\r\n this.unitName = result.data.unitName;\r\n this.credits = result.data.credits;\r\n this.consumerCredits = result.data.consumerCredits;\r\n };\r\n return GetCreditsData;\r\n}(Data));\r\nexport { GetCreditsData };\r\n//# sourceMappingURL=GetCreditsData.js.map"}
{"map":"{\"version\":3,\"file\":\"Transform.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/Transform.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAC,MAAM,QAAQ,CAAC;AACrE,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAErC,IAAA,kDAAkB,EAAE,gDAAiB,CAAe;AAO3D,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACvB,+DAAY,CAAA;IACZ,+DAAY,CAAA;AACb,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AAMD;IAAuC,qCA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C,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;YACzE,IAAI,eAAe,EAAE;gBACpB,IAAI,CAAC,YAAY,GAAG,eAAe,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC;gBAC9D,aAAa,CAAC,MAAM,CAAC,eAAe,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;aACtD;SACD;aAAI;YACJ,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC;SAC/B;QACD,kBAAkB,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC3C,kBAAkB,CAAC,SAAS,CAC3B,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,KAAK,EACnB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,CACpB,CAAC;IACH,CAAC;IAKD,6BAAS,GAAT,UAAU,SAAiB;QAAjB,0BAAA,EAAA,iBAAiB;QAC1B,OAAO,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;IACjE,CAAC;IAED,4BAAQ,GAAR,UAAS,CAAC;QACT,IAAI,IAAI,CAAC,KAAK,EAAE;YACf,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACnB;QAED,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAE1B,iBAAM,QAAQ,YAAC,CAAC,CAAC,CAAC;IACnB,CAAC;IApLD;QADC,iBAAiB;+CACmB;IAMrC;QADC,iBAAiB;4CACA;IAqBlB;QADC,iBAAiB;4CACmB;IAKrC;QADC,iBAAiB;4CACuB;IAKzC;QADC,kBAAkB;+CACN;IAgJd,gBAAC;CAAA,AA9LD,CAAuC,eAAe,GA8LrD;eA9LoB,SAAS\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent, Vector2D, Matrix, decorators } from \"scilla\";\r\nimport Renderer from \"../renderer/Renderer\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector, dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nexport var MATRIX_ORDER;\r\n(function (MATRIX_ORDER) {\r\n MATRIX_ORDER[MATRIX_ORDER[\"SCALE_ROTATE\"] = 0] = \"SCALE_ROTATE\";\r\n MATRIX_ORDER[MATRIX_ORDER[\"ROTATE_SCALE\"] = 1] = \"ROTATE_SCALE\";\r\n})(MATRIX_ORDER || (MATRIX_ORDER = {}));\r\nvar Transform = (function (_super) {\r\n tslib_1.__extends(Transform, _super);\r\n function Transform() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.onVector2DModify = function (value, key, oldValue) {\r\n _this.makeDirty(value, key, oldValue);\r\n };\r\n _this.position = new Vector2D(0);\r\n _this.alpha = 1;\r\n _this._width = NaN;\r\n _this._height = NaN;\r\n _this.scale = new Vector2D(1, 1);\r\n _this.pivot = new Vector2D(0.5, 0.5);\r\n _this.rotation = 0;\r\n _this.order = MATRIX_ORDER.SCALE_ROTATE;\r\n _this._localMatrix = Matrix.create();\r\n _this._globalMatrix = Matrix.create();\r\n _this._globalPivotMatrix = Matrix.create();\r\n return _this;\r\n }\r\n Object.defineProperty(Transform.prototype, \"renderAlpha\", {\r\n get: function () {\r\n return this._renderAlpha;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Transform.prototype, \"width\", {\r\n get: function () {\r\n var renderer = this.entity.getComponent(Renderer);\r\n return renderer ? renderer.bounds.width : (isNaN(this._width) ? 0 : this._width);\r\n },\r\n set: function (value) {\r\n if (this._width != value) {\r\n this._width = value;\r\n this.makeDirty(value, 'width');\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Transform.prototype, \"explicitWidth\", {\r\n get: function () {\r\n return this._width;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Transform.prototype, \"height\", {\r\n get: function () {\r\n var renderer = this.entity.getComponent(Renderer);\r\n return renderer ? renderer.bounds.height : (isNaN(this._height) ? 0 : this._height);\r\n },\r\n set: function (value) {\r\n if (this._height != value) {\r\n this._height = value;\r\n this.makeDirty(value, 'height');\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Transform.prototype, \"explicitHeight\", {\r\n get: function () {\r\n return this._height;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Transform.prototype.makeDirty = function (value, key, oldValue) {\r\n var e_1, _a;\r\n this.dirty = true;\r\n switch (key) {\r\n case 'width':\r\n case 'height':\r\n var renderers = this.entity.getComponents(Renderer);\r\n try {\r\n for (var renderers_1 = tslib_1.__values(renderers), renderers_1_1 = renderers_1.next(); !renderers_1_1.done; renderers_1_1 = renderers_1.next()) {\r\n var renderer = renderers_1_1.value;\r\n renderer.makeDirty();\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (renderers_1_1 && !renderers_1_1.done && (_a = renderers_1.return)) _a.call(renderers_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n break;\r\n }\r\n };\r\n Transform.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n this.makeDirty(value, key, oldValue);\r\n switch (key) {\r\n case 'position':\r\n case 'scale':\r\n value.onChange = this.onVector2DModify;\r\n break;\r\n }\r\n };\r\n Transform.prototype.updateLocalMatrix = function () {\r\n var _a = this, _b = _a.position, x = _b.x, y = _b.y, _c = _a.scale, sx = _c.x, sy = _c.y, rotation = _a.rotation;\r\n var matrix = this._localMatrix;\r\n matrix.identity();\r\n if (this.order = MATRIX_ORDER.ROTATE_SCALE) {\r\n matrix.scale(sx, sy);\r\n matrix.rotate(rotation * Math.PI / 180);\r\n }\r\n else {\r\n matrix.rotate(rotation * Math.PI / 180);\r\n matrix.scale(sx, sy);\r\n }\r\n matrix.translate(x, y);\r\n };\r\n Transform.prototype.updateGlobalMatrix = function () {\r\n var _a = this, entity = _a.entity, _globalMatrix = _a._globalMatrix, _localMatrix = _a._localMatrix, _globalPivotMatrix = _a._globalPivotMatrix, _b = _a.pivot, px = _b.x, py = _b.y, width = _a.width, height = _a.height;\r\n _globalMatrix.copyFrom(_localMatrix);\r\n if (entity.parent) {\r\n var parentTransform = entity.parent.getComponent(Transform);\r\n if (parentTransform) {\r\n this._renderAlpha = parentTransform._renderAlpha * this.alpha;\r\n _globalMatrix.concat(parentTransform.getMatrix(true));\r\n }\r\n }\r\n else {\r\n this._renderAlpha = this.alpha;\r\n }\r\n _globalPivotMatrix.copyFrom(_globalMatrix);\r\n _globalPivotMatrix.translate(-(px - 0.5) * width, -(py - 0.5) * height);\r\n };\r\n Transform.prototype.getMatrix = function (withPivot) {\r\n if (withPivot === void 0) { withPivot = false; }\r\n return withPivot ? this._globalPivotMatrix : this._globalMatrix;\r\n };\r\n Transform.prototype.onUpdate = function (t) {\r\n if (this.dirty) {\r\n this.updateLocalMatrix();\r\n this.dirty = false;\r\n }\r\n this.updateGlobalMatrix();\r\n _super.prototype.onUpdate.call(this, t);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Transform.prototype, \"position\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Transform.prototype, \"alpha\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Transform.prototype, \"scale\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Transform.prototype, \"pivot\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], Transform.prototype, \"rotation\", void 0);\r\n return Transform;\r\n}(ScillaComponent));\r\nexport default Transform;\r\n//# sourceMappingURL=Transform.js.map"}
{"map":"{\"version\":3,\"file\":\"NetName.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../src/tw/enum/NetName.ts\"],\"names\":[],\"mappings\":\"AAAA,MAAM,CAAN,IAAY,OAsFX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;IACb,gEAAiB,CAAA;IACjB,wEAAqB,CAAA;IACrB,sEAAoB,CAAA;IACpB,oEAAmB,CAAA;IACnB,gEAAiB,CAAA;IACjB,8EAAwB,CAAA;IAExB,gDAAS,CAAA;IACT,sDAAY,CAAA;IAGZ,kDAAU,CAAA;IAGV,0DAAc,CAAA;IACd,0DAAc,CAAA;AAClB,CAAC,EAtFW,OAAO,KAAP,OAAO,QAsFlB\"}","code":"export var NetName;\r\n(function (NetName) {\r\n NetName[NetName[\"GAME_INFO\"] = 1] = \"GAME_INFO\";\r\n NetName[NetName[\"GAME_SUMMERINFO\"] = 2] = \"GAME_SUMMERINFO\";\r\n NetName[NetName[\"GAME_START\"] = 3] = \"GAME_START\";\r\n NetName[NetName[\"GAME_START_STATUS\"] = 4] = \"GAME_START_STATUS\";\r\n NetName[NetName[\"GAME_SUBMIT\"] = 5] = \"GAME_SUBMIT\";\r\n NetName[NetName[\"HD_GAME_SUBMIT\"] = 6] = \"HD_GAME_SUBMIT\";\r\n NetName[NetName[\"HD_MANY_GAME_SUBMIT\"] = 7] = \"HD_MANY_GAME_SUBMIT\";\r\n NetName[NetName[\"GAME_SUBMIT_STATUS\"] = 8] = \"GAME_SUBMIT_STATUS\";\r\n NetName[NetName[\"GAME_RANKS\"] = 9] = \"GAME_RANKS\";\r\n NetName[NetName[\"GAME_OPTIONS\"] = 10] = \"GAME_OPTIONS\";\r\n NetName[NetName[\"GAME_RULE\"] = 11] = \"GAME_RULE\";\r\n NetName[NetName[\"GAME_REAL_TIME_RANK\"] = 12] = \"GAME_REAL_TIME_RANK\";\r\n NetName[NetName[\"GAME_DATA_PASH\"] = 13] = \"GAME_DATA_PASH\";\r\n NetName[NetName[\"GAME_GUESS_POKER\"] = 14] = \"GAME_GUESS_POKER\";\r\n NetName[NetName[\"GAME_TOTAL_SCORE\"] = 15] = \"GAME_TOTAL_SCORE\";\r\n NetName[NetName[\"GAME_REVIVE\"] = 16] = \"GAME_REVIVE\";\r\n NetName[NetName[\"GAME_REVIVE_STATUS\"] = 17] = \"GAME_REVIVE_STATUS\";\r\n NetName[NetName[\"GAME_SUMMER_BUYPROP\"] = 18] = \"GAME_SUMMER_BUYPROP\";\r\n NetName[NetName[\"GAME_SUMMER_GET_ORDER_STATUS\"] = 19] = \"GAME_SUMMER_GET_ORDER_STATUS\";\r\n NetName[NetName[\"GAME_SUMMER_GET_TOY_INFO\"] = 20] = \"GAME_SUMMER_GET_TOY_INFO\";\r\n NetName[NetName[\"CUSTOM_RECON_ELEMENT\"] = 21] = \"CUSTOM_RECON_ELEMENT\";\r\n NetName[NetName[\"CUSTOM_THROUGH_INFO\"] = 22] = \"CUSTOM_THROUGH_INFO\";\r\n NetName[NetName[\"CUSTOM_DO_JOIN\"] = 23] = \"CUSTOM_DO_JOIN\";\r\n NetName[NetName[\"RECON_GAME_SUBMIT\"] = 24] = \"RECON_GAME_SUBMIT\";\r\n NetName[NetName[\"CUSTOM_ORDER_STATUS\"] = 25] = \"CUSTOM_ORDER_STATUS\";\r\n NetName[NetName[\"GAME_ORDER_STATUS\"] = 26] = \"GAME_ORDER_STATUS\";\r\n NetName[NetName[\"HD_GAME_ORDER_STATUS\"] = 27] = \"HD_GAME_ORDER_STATUS\";\r\n NetName[NetName[\"RESURRECTION_ORDER_STATUS\"] = 28] = \"RESURRECTION_ORDER_STATUS\";\r\n NetName[NetName[\"RESURRECTION\"] = 29] = \"RESURRECTION\";\r\n NetName[NetName[\"CUSTOM_ORDER_INFO\"] = 30] = \"CUSTOM_ORDER_INFO\";\r\n NetName[NetName[\"CUSTOM_BEFOR_SUBMIT\"] = 31] = \"CUSTOM_BEFOR_SUBMIT\";\r\n NetName[NetName[\"CUSTOM_QUESTION_SUBMIT\"] = 32] = \"CUSTOM_QUESTION_SUBMIT\";\r\n NetName[NetName[\"CUSTOM_THROUGH_SUBMIT\"] = 33] = \"CUSTOM_THROUGH_SUBMIT\";\r\n NetName[NetName[\"CUSTOM_PRIZE_DETAIL\"] = 34] = \"CUSTOM_PRIZE_DETAIL\";\r\n NetName[NetName[\"PLUG_DO_JOIN\"] = 35] = \"PLUG_DO_JOIN\";\r\n NetName[NetName[\"PLUG_ORDER_STATUS\"] = 36] = \"PLUG_ORDER_STATUS\";\r\n NetName[NetName[\"PLUG_OPTION_INFO\"] = 37] = \"PLUG_OPTION_INFO\";\r\n NetName[NetName[\"PLUG_UNBLOCKING\"] = 38] = \"PLUG_UNBLOCKING\";\r\n NetName[NetName[\"PLUG_PRIZE_INFO\"] = 39] = \"PLUG_PRIZE_INFO\";\r\n NetName[NetName[\"GET_ROLE\"] = 40] = \"GET_ROLE\";\r\n NetName[NetName[\"SET_ROLE\"] = 41] = \"SET_ROLE\";\r\n NetName[NetName[\"GET_CREDITS\"] = 42] = \"GET_CREDITS\";\r\n NetName[NetName[\"ADD_TIMES\"] = 43] = \"ADD_TIMES\";\r\n NetName[NetName[\"COLLECT_RULE\"] = 44] = \"COLLECT_RULE\";\r\n NetName[NetName[\"OPEN_COLLECT\"] = 45] = \"OPEN_COLLECT\";\r\n NetName[NetName[\"WINNERS\"] = 46] = \"WINNERS\";\r\n NetName[NetName[\"GET_TOKEN\"] = 47] = \"GET_TOKEN\";\r\n NetName[NetName[\"PET_ADOPTE\"] = 48] = \"PET_ADOPTE\";\r\n NetName[NetName[\"PET_STATUS\"] = 49] = \"PET_STATUS\";\r\n NetName[NetName[\"PET_INFO\"] = 50] = \"PET_INFO\";\r\n NetName[NetName[\"PET_FEED\"] = 51] = \"PET_FEED\";\r\n NetName[NetName[\"PET_TOYS\"] = 52] = \"PET_TOYS\";\r\n NetName[NetName[\"PET_TOY_EXCHANGE\"] = 53] = \"PET_TOY_EXCHANGE\";\r\n NetName[NetName[\"PET_TOY_USE\"] = 54] = \"PET_TOY_USE\";\r\n NetName[NetName[\"PET_COLLECT\"] = 55] = \"PET_COLLECT\";\r\n NetName[NetName[\"PET_GET_RANK_LIST\"] = 56] = \"PET_GET_RANK_LIST\";\r\n NetName[NetName[\"PET_GET_FOOD_PILES\"] = 57] = \"PET_GET_FOOD_PILES\";\r\n NetName[NetName[\"PET_COLLECT_FOOD\"] = 58] = \"PET_COLLECT_FOOD\";\r\n NetName[NetName[\"PETS_GET_HOME_INFO\"] = 59] = \"PETS_GET_HOME_INFO\";\r\n NetName[NetName[\"PETS_GET_ACT_TOYS\"] = 60] = \"PETS_GET_ACT_TOYS\";\r\n NetName[NetName[\"PETS_GET_USER_TOYS\"] = 61] = \"PETS_GET_USER_TOYS\";\r\n NetName[NetName[\"PETS_USE_TOYS\"] = 62] = \"PETS_USE_TOYS\";\r\n NetName[NetName[\"PETS_TOY_EXCHANGE\"] = 63] = \"PETS_TOY_EXCHANGE\";\r\n NetName[NetName[\"PETS_BATCHOLLECT_FOOD\"] = 64] = \"PETS_BATCHOLLECT_FOOD\";\r\n NetName[NetName[\"PETS_VISI_STATISTICS\"] = 65] = \"PETS_VISI_STATISTICS\";\r\n NetName[NetName[\"PETS_GET_VISIT_INFO\"] = 66] = \"PETS_GET_VISIT_INFO\";\r\n NetName[NetName[\"PETS_VISIT_DETAIL\"] = 67] = \"PETS_VISIT_DETAIL\";\r\n NetName[NetName[\"PETS_COLLECT_GIFT_RECORD\"] = 68] = \"PETS_COLLECT_GIFT_RECORD\";\r\n NetName[NetName[\"SIGN_INFO\"] = 69] = \"SIGN_INFO\";\r\n NetName[NetName[\"SIGN_DO_SIGN\"] = 70] = \"SIGN_DO_SIGN\";\r\n NetName[NetName[\"GET_RECORD\"] = 71] = \"GET_RECORD\";\r\n NetName[NetName[\"checkOutAnswer\"] = 72] = \"checkOutAnswer\";\r\n NetName[NetName[\"questionSubmit\"] = 73] = \"questionSubmit\";\r\n})(NetName || (NetName = {}));\r\n//# sourceMappingURL=NetName.js.map"}
{"map":"{\"version\":3,\"file\":\"CircleRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/CircleRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAA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,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC;YACpF,IAAG,YAAY,EAAC;gBACf,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;aACzB;SACD;QAED,iBAAM,IAAI,WAAE,CAAC;IACd,CAAC;IAhDD;QADC,kBAAkB;kDACP;IAMZ;QADC,kBAAkB;sDACI;IAMvB;QADC,kBAAkB;oDACI;IAMvB;QADC,kBAAkB;wDACU;IA+B9B,qBAAC;CAAA,AAtDD,CAA4C,eAAe,GAsD1D;eAtDoB,cAAc\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nimport { decorators } from \"scilla\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector;\r\nvar CircleRenderer = (function (_super) {\r\n tslib_1.__extends(CircleRenderer, _super);\r\n function CircleRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.radius = 50;\r\n _this.startAngle = 0;\r\n _this.endAngle = 360;\r\n _this.backToCenter = true;\r\n return _this;\r\n }\r\n CircleRenderer.prototype.getRenderSize = function () {\r\n var radius = this.radius;\r\n return { width: radius * 2, height: radius * 2 };\r\n };\r\n CircleRenderer.prototype.draw = function () {\r\n var _a = this, context = _a.context, _b = _a.bounds, width = _b.width, height = _b.height, startAngle = _a.startAngle, endAngle = _a.endAngle, backToCenter = _a.backToCenter, _margin = _a._margin, _useCacheMode = _a._useCacheMode;\r\n var offset = _useCacheMode ? _margin : 0;\r\n var radius = Math.min(width, height) / 2;\r\n var pos = offset + radius;\r\n if (startAngle == 0 && endAngle == 360) {\r\n context.arc(pos, pos, radius, 0, 2 * Math.PI);\r\n }\r\n else {\r\n if (backToCenter) {\r\n context.moveTo(pos, pos);\r\n }\r\n context.arc(pos, pos, radius, startAngle * Math.PI / 180, endAngle * Math.PI / 180);\r\n if (backToCenter) {\r\n context.lineTo(pos, pos);\r\n }\r\n }\r\n _super.prototype.draw.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"radius\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"startAngle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"endAngle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"backToCenter\", void 0);\r\n return CircleRenderer;\r\n}(GraphicRenderer));\r\nexport default CircleRenderer;\r\n//# sourceMappingURL=CircleRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"utils.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/utils.ts\"],\"names\":[],\"mappings\":\"AAMA,MAAM,UAAU,UAAU,CAAC,MAAW,EAAE,IAAU,EAAE,QAAmB,EAAE,YAA4B,EAAE,UAA0B;IAAxD,6BAAA,EAAA,mBAA4B;IAAE,2BAAA,EAAA,iBAA0B;IAChI,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE;QACrB,OAAO,KAAK,CAAC;KACb;IAED,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE;QACrB,IAAI,KAAK,GAAQ,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3B,IAAI,CAAC,CAAC,YAAY,IAAI,OAAO,KAAK,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,IAAI,IAAI,CAAC,EAAE;YACpF,IAAI,QAAQ,EAAE;gBACb,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;aAC7B;iBAAM;gBACN,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;aACpB;SACD;KACD;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAG;IAClC,IAAI,CAAC,GAAG,EAAE;QACT,OA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I,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;IAChD,IAAI,KAAK,GAAG,CAAC,EAAE;QACd,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;KACxB;IACD,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AAC7B,CAAC\"}","code":"export function injectProp(target, data, callback, ignoreMethod, ignoreNull) {\r\n if (ignoreMethod === void 0) { ignoreMethod = true; }\r\n if (ignoreNull === void 0) { ignoreNull = true; }\r\n if (!target || !data) {\r\n return false;\r\n }\r\n var result = true;\r\n for (var key in data) {\r\n var value = data[key];\r\n if ((!ignoreMethod || typeof value != 'function') && (!ignoreNull || value != null)) {\r\n if (callback) {\r\n callback(target, key, value);\r\n }\r\n else {\r\n target[key] = value;\r\n }\r\n }\r\n }\r\n return result;\r\n}\r\nexport function objectStringify(obj) {\r\n if (!obj) {\r\n return '';\r\n }\r\n var arr = [];\r\n for (var key in obj) {\r\n arr.push(key + '=' + obj[key]);\r\n }\r\n return arr.join('&');\r\n}\r\nexport function waitPromise(duration) {\r\n return new Promise(function (resolve) {\r\n setTimeout(resolve, duration);\r\n });\r\n}\r\nexport function format(formatStr) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n return formatApply(formatStr, params);\r\n}\r\nexport function formatApply(formatStr, params) {\r\n var result = formatStr;\r\n for (var i = 0, len = params.length; i < len; i++) {\r\n var reg = new RegExp(\"\\\\{\" + i + \"\\\\}\", 'g');\r\n result = result.replace(reg, params[i]);\r\n }\r\n return result;\r\n}\r\nvar zeros = [\r\n \"0\",\r\n \"00\",\r\n \"000\",\r\n \"0000\",\r\n \"00000\",\r\n \"000000\",\r\n \"0000000\",\r\n \"00000000\",\r\n \"000000000\",\r\n \"0000000000\"\r\n];\r\nexport function supplement(value, count) {\r\n var index = count - value.toString().length - 1;\r\n if (index < 0) {\r\n return value.toString();\r\n }\r\n return zeros[index] + value;\r\n}\r\n//# sourceMappingURL=utils.js.map"}
{"map":"{\"version\":3,\"file\":\"DoStartData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/doStart/DoStartData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC;IAAiC,uCAAI;IA0BjC;eACI,iBAAO;IACX,CAAC;IAEM,4BAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACvD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IACL,kBAAC;AAAD,CAAC,AAzCD,CAAiC,IAAI,GAyCpC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar DoStartData = (function (_super) {\r\n tslib_1.__extends(DoStartData, _super);\r\n function DoStartData() {\r\n return _super.call(this) || this;\r\n }\r\n DoStartData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.extra = data.extra;\r\n this.ticketId = data.ticketId;\r\n this.credits = data.credits;\r\n this.submitToken = window['resolve'](data.submitToken);\r\n this.token = window['resolve'](data.token);\r\n };\r\n return DoStartData;\r\n}(Data));\r\nexport { DoStartData };\r\n//# sourceMappingURL=DoStartData.js.map"}
{"map":"{\"version\":3,\"file\":\"GetOptionsData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/getOptions/GetOptionsData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC;IAAoC,0CAAI;IAAxC;;IAaA,CAAC;IAPU,+BAAM,GAAb,UAAc,MAAW;QACrB,IAAI,CAAC,MAAM,EAAE;YACT,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;IAC7B,CAAC;IACL,qBAAC;AAAD,CAAC,AAbD,CAAoC,IAAI,GAavC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar GetOptionsData = (function (_super) {\r\n tslib_1.__extends(GetOptionsData, _super);\r\n function GetOptionsData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GetOptionsData.prototype.update = function (result) {\r\n if (!result) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, result);\r\n this.optionList = result;\r\n };\r\n return GetOptionsData;\r\n}(Data));\r\nexport { GetOptionsData };\r\n//# sourceMappingURL=GetOptionsData.js.map"}
{"map":"{\"version\":3,\"file\":\"LocalStorage.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/LocalStorage.ts\"],\"names\":[],\"mappings\":\"AAIA;IAGC,sBAAY,EAAU;QACrB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,CAAC;IAED,8BAAO,GAAP,UAAQ,GAAW,EAAE,MAAqB;QAArB,uBAAA,EAAA,aAAqB;QACzC,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;IAC7E,CAAC;IAED,8BAAO,GAAP,UAAQ,GAAW,EAAE,MAAqB;QAArB,uBAAA,EAAA,aAAqB;QACzC,OAAO,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;IACxD,CAAC;IAED,8BAAO,GAAP,UAAQ,GAAW,EAAE,KAAa,EAAE,MAAqB;QAArB,uBAAA,EAAA,aAAqB;QACxD,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC;IACxD,CAAC;IAED,iCAAU,GAAV,UAAW,GAAW,EAAE,UAAsB,EAAE,MAAqB;QAA7C,2BAAA,EAAA,iBAAsB;QAAE,uBAAA,EAAA,aAAqB;QACpE,IAAI,MAAW,CAAC;QAChB,IAAI;YACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;SAC/C;QAAC,OAAO,CAAC,EAAE;SAEX;QACD,IAAI,CAAC,MAAM,EAAE;YACZ,MAAM,GAAG,UAAU,CAAC;SACpB;QACD,OAAO,MAAM,CAAC;IACf,CAAC;IAED,iCAAU,GAAV,UAAW,GAAW,EAAE,OAAY,EAAE,MAAqB;QAArB,uBAAA,EAAA,aAAqB;QAC1D,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;IACF,mBAAC;AAAD,CAAC,AAnCD,IAmCC\"}","code":"var LocalStorage = (function () {\r\n function LocalStorage(ID) {\r\n this.ID = ID;\r\n }\r\n LocalStorage.prototype.getName = function (key, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n return (prefix || !this.ID || this.ID == '' ? prefix : this.ID) + '_' + key;\r\n };\r\n LocalStorage.prototype.getItem = function (key, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n return localStorage.getItem(this.getName(key, prefix));\r\n };\r\n LocalStorage.prototype.setItem = function (key, value, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n localStorage.setItem(this.getName(key, prefix), value);\r\n };\r\n LocalStorage.prototype.getItemObj = function (key, defaultObj, prefix) {\r\n if (defaultObj === void 0) { defaultObj = null; }\r\n if (prefix === void 0) { prefix = null; }\r\n var result;\r\n try {\r\n result = JSON.parse(this.getItem(key, prefix));\r\n }\r\n catch (e) {\r\n }\r\n if (!result) {\r\n result = defaultObj;\r\n }\r\n return result;\r\n };\r\n LocalStorage.prototype.setItemObj = function (key, itemObj, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n this.setItem(key, JSON.stringify(itemObj), prefix);\r\n };\r\n return LocalStorage;\r\n}());\r\nexport default LocalStorage;\r\n//# sourceMappingURL=LocalStorage.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/editor/index.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,YAAY,EAAE,UAAU,GAAG,MAAM,eAAe,CAAC;AACzD,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,SAAS,CAAC;AAErD,cAAc,eAAe,CAAA;AAE7B,IAAI,YAAmB,CAAC;AACxB,IAAI,QAAQ,CAAC;AAOb,MAAM,UAAgB,WAAW,CAAC,IAAI,EAAE,QAAS;;;;;wBAClC,WAAM,SAAS,CAAC,YAAU,IAAI,WAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC,EAAA;;oBAAhE,KAAK,GAAG,SAAwD;oBAEtE,QAAQ,GAAG,cAAc,EAAE,CAAC;oBAE5B,WAAM,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,QAAQ,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upScene, } from \"./interpreter\";\r\nimport { addLoader, cacheRes, destroyRes, getAllResUuids, loadJson5 } from \"../assets-manager\";\r\nimport { getRoot, pause, Scene, start } from \"../core\";\r\nexport * from './interpreter';\r\nvar currentScene;\r\nvar resUUIDs;\r\nexport function launchScene(name, progress) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var scene;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadScene(\"scenes/\" + name + \".scene\", 'scene_' + name)];\r\n case 1:\r\n scene = _a.sent();\r\n resUUIDs = getAllResUuids();\r\n return [4, scene.loadResGroup('preload', progress)];\r\n case 2:\r\n _a.sent();\r\n if (currentScene) {\r\n unmountScene(currentScene);\r\n }\r\n currentScene = scene;\r\n mountScene(scene);\r\n scene.loadResGroup('delay', progress);\r\n return [2];\r\n }\r\n });\r\n });\r\n}\r\nexport function mountScene(scene) {\r\n pause();\r\n setupScene(scene, getRoot());\r\n start();\r\n}\r\nexport function unmountScene(scene) {\r\n pause();\r\n destroyScene(scene);\r\n destroyRes(resUUIDs);\r\n}\r\nfunction loadScene(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = false; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var sceneConfig, scene;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadJson5(url)];\r\n case 1:\r\n sceneConfig = _a.sent();\r\n scene = new Scene();\r\n scene.initByConfig(sceneConfig);\r\n return [2, scene];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadPrefab(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var data;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadJson5(url, uuid, false)];\r\n case 1:\r\n data = _a.sent();\r\n cacheRes(data, url, uuid);\r\n return [2, data];\r\n }\r\n });\r\n });\r\n}\r\naddLoader('.pfb', loadPrefab);\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"TouchZoom.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/animation/TouchZoom.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,EAAS,QAAQ,GAAE,MAAM,QAAQ,CAAC;AACjF,OAAO,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAE1C;IAAuC,qCAAiB;IAAxD;QAAA,qEA+CC;QA9CA,iBAAW,GAAa,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACjD,cAAQ,GAAW,GAAG,CAAC;QACvB,cAAQ,GAAS,IAAI,CAAC,OAAO,CAAC;;IA4C/B,CAAC;IAtCA,2BAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAEhB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACZ,IAAA,SAAyC,EAAxC,4BAAW,EAAE,sBAAQ,EAAE,wBAAiB,CAAC;YAEhD,IAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAErC,IAAM,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YAC1C,IAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;YAEzD,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC,SAAS,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAC,CAAC;iBAClG,EAAE,CAAC,EAAC,KAAK,EAAE,OAAO,EAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;YAE3C,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,SAAS,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAC,CAAC;iBACnG,EAAE,CAAC,EAAC,KAAK,EAAE,SAAS,EAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;SAC7C;IACF,CAAC;IAED,gCAAY,GAAZ,UAAa,CAAC;QACb,iBAAM,WAAW,YAAC,CAAC,CAAC,CAAC;QAErB,IAAI,IAAI,CAAC,YAAY,EAAE;YACtB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACxB;IACF,CAAC;IAED,oCAAgB,GAAhB,UAAiB,CAAC;QACjB,iBAAM,gBAAgB,YAAC,CAAC,CAAC,CAAC;QAE1B,IAAI,IAAI,CAAC,WAAW,EAAE;YACrB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;YACzB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,KAAK,CAAC;IACd,CAAC;IACF,gBAAC;AAAD,CAAC,AA/CD,CAAuC,iBAAiB,GA+CvD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { createTween, createVector2D, ease, Ease, Vector2D, } from \"scilla\";\r\nimport { InteractComponent } from \"../base\";\r\nvar TouchZoom = (function (_super) {\r\n tslib_1.__extends(TouchZoom, _super);\r\n function TouchZoom() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.scaleOffset = createVector2D(0.1, 0.1);\r\n _this.duration = 200;\r\n _this.easeName = Ease.backOut;\r\n return _this;\r\n }\r\n TouchZoom.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n if (!this._zoomIn) {\r\n var _a = this, scaleOffset = _a.scaleOffset, duration = _a.duration, transform = _a.transform;\r\n var easeFunc = ease[this.easeName];\r\n var scaleFrom = transform.scale.clone();\r\n var scaleTo = transform.scale.clone().add(scaleOffset);\r\n this._zoomIn = createTween(transform, false, { autoPlay: false, clazz: Vector2D, fields: ['x', 'y'] })\r\n .to({ scale: scaleTo }, duration, easeFunc);\r\n this._zoomOut = createTween(transform, false, { autoPlay: false, clazz: Vector2D, fields: ['x', 'y'] })\r\n .to({ scale: scaleFrom }, duration, easeFunc);\r\n }\r\n };\r\n TouchZoom.prototype.onTouchBegin = function (e) {\r\n _super.prototype.onTouchOver.call(this, e);\r\n if (this.interactable) {\r\n this._touchBegin = true;\r\n this._zoomIn.play(true);\r\n }\r\n };\r\n TouchZoom.prototype.onGlobalTouchEnd = function (e) {\r\n _super.prototype.onGlobalTouchEnd.call(this, e);\r\n if (this._touchBegin) {\r\n this._touchBegin = false;\r\n this._zoomOut.play(true);\r\n }\r\n return false;\r\n };\r\n return TouchZoom;\r\n}(InteractComponent));\r\nexport default TouchZoom;\r\n//# sourceMappingURL=TouchZoom.js.map"}
{"map":"{\"version\":3,\"file\":\"ObjectPool.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/ObjectPool.ts\"],\"names\":[],\"mappings\":\";AAMA,IAAI,GAAG,GAAG,EAAE,CAAC;AAEb,SAAS,QAAQ,CAAC,IAAI;IACrB,IAAI,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;IACtB,IAAG,CAAC,KAAK,EAAC;QACT,MAAM,IAAI,KAAK,CAAC,QAAQ,GAAG,IAAI,GAAG,kBAAkB,CAAC,CAAC;KACtD;IAED,OAAO,KAAK,CAAC;AACd,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ;IAC/C,GAAG,CAAC,IAAI,CAAC,GAAG,EAAC,IAAI,MAAA,EAAE,OAAO,SAAA,EAAE,QAAQ,UAAA,EAAE,IAAI,EAAE,EAAE,EAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,IAAI;IAAE,gBAAS;SAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;QAAT,+BAAS;;IAClC,IAAI,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEtB,IAAA,uBAAO,EAAE,yBAAQ,EAAE,iBAAI,CAAU;IAEtC,IAAI,QAAQ,CAAC;IACb,IAAG,IAAI,CAAC,MAAM,IAAI,CAAC,EAAC;QACnB,QAAQ,GAAG,OAAO,EAAE,CAAC;KACrB;SAAI;QACJ,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;KACtB;IAED,QAAQ,iCAAC,QAAQ,GAAK,MAAM,GAAE;IAE9B,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,IAAI,EAAE,QAAQ;IACrC,IAAI,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC3B,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nvar all = {};\r\nfunction getGroup(name) {\r\n var group = all[name];\r\n if (!group) {\r\n throw new Error('group ' + name + ' not registered.');\r\n }\r\n return group;\r\n}\r\nexport function register(name, newFunc, initFunc) {\r\n all[name] = { name: name, newFunc: newFunc, initFunc: initFunc, pool: [] };\r\n}\r\nexport function get(name) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n var group = getGroup(name);\r\n var newFunc = group.newFunc, initFunc = group.initFunc, pool = group.pool;\r\n var instance;\r\n if (pool.length == 0) {\r\n instance = newFunc();\r\n }\r\n else {\r\n instance = pool.pop();\r\n }\r\n initFunc.apply(void 0, tslib_1.__spread([instance], params));\r\n return instance;\r\n}\r\nexport function recycle(name, instance) {\r\n var group = getGroup(name);\r\n group.pool.push(instance);\r\n}\r\n//# sourceMappingURL=ObjectPool.js.map"}
{"map":"{\"version\":3,\"file\":\"NetManager.js\",\"sourceR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AAG,CAAC,YAAY,IAAI,CAAC,IAAI,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;gBACrE,MAAM,CAAC,OAAO,GAAG,aAAa,CAAC;gBAC/B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;aACxB;YACD,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,MAAM,CAAC,CAAC;SAC9C;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE;SAElC;QAED,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE;SAOlC;IACL,CAAC;IAQS,4BAAO,GAAjB,UAAkB,GAAa;QAC3B,IAAI,GAAG,CAAC,QAAQ,EAAE;YACd,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SACvB;QAED,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE;SAQjB;IACL,CAAC;IAEL,iBAAC;AAAD,CAAC,AAzsDD,CAAgC,YAAY,GAysD3C\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ABNetManager } from './ABNetManager';\r\nimport { NetName } from '../enum/NetName';\r\nimport { DataManager } from './DataManager';\r\nvar NetManager = (function (_super) {\r\n tslib_1.__extends(NetManager, _super);\r\n function NetManager() {\r\n var _this = _super.call(this) || this;\r\n if (_this.isInit) {\r\n }\r\n _this.isInit = true;\r\n return _this;\r\n }\r\n Object.defineProperty(NetManager, \"ins\", {\r\n get: function () {\r\n if (!this.instance) {\r\n this.instance = new NetManager();\r\n }\r\n return this.instance;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NetManager.prototype.getRole = function (callback, roleActivityId, type) {\r\n if (type === void 0) { type = 1; }\r\n var net = {\r\n name: NetName.GET_ROLE,\r\n uri: '/activityCommon/getRole',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n id: roleActivityId,\r\n type: type\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.setRole = function (callback, actId, type, role) {\r\n var net = {\r\n name: NetName.SET_ROLE,\r\n uri: '/activityCommon/setRole',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n id: actId,\r\n type: type,\r\n role: role\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getCredits = function (callback) {\r\n var net = {\r\n name: NetName.GET_CREDITS,\r\n uri: '/ctool/getCredits',\r\n type: 'get',\r\n dataType: 'json',\r\n param: null,\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.addTimesForActivity = function (callback, type, count, validType) {\r\n var activityId;\r\n if (type == 1) {\r\n activityId = DataManager.ins.gameCfgData.gameInfo.oaId;\r\n }\r\n else {\r\n activityId = DataManager.ins.customCfgData.oaId;\r\n }\r\n var param = {\r\n timestamp: (new Date().getTime()),\r\n addCount: count,\r\n activityId: activityId\r\n };\r\n if (validType) {\r\n param.validType = validType;\r\n }\r\n var net = {\r\n name: NetName.ADD_TIMES,\r\n uri: '/activityVist/addTimesForActivity',\r\n type: 'post',\r\n dataType: 'json',\r\n param: param,\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getCollectRule = function (callback, collectRuleId) {\r\n var net = {\r\n name: NetName.COLLECT_RULE,\r\n uri: '/collectRule/getCollectRule',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n collectRuleId: collectRuleId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getCollectGoodsInfo = function (callback, collectRuleId) {\r\n var net = {\r\n name: 'getCollectGoodsInfo',\r\n uri: '/plugin/collectRule/getCollectGoodsInfo',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n collectRuleId: collectRuleId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.openCollectGoodsPrize = function (callback, collectRuleId, type) {\r\n var actId;\r\n var param;\r\n if (type == 1) {\r\n actId = DataManager.ins.gameCfgData.gameInfo.oaId;\r\n }\r\n else if (type == 2) {\r\n actId = DataManager.ins.customCfgData.oaId;\r\n }\r\n if (type) {\r\n param = { collectRuleId: collectRuleId, actId: actId };\r\n }\r\n else {\r\n param = { collectRuleId: collectRuleId };\r\n }\r\n var net = {\r\n name: NetName.OPEN_COLLECT,\r\n uri: '/collectRule/openCollectGoodsPrize',\r\n type: 'get',\r\n dataType: 'json',\r\n param: param,\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getSummerInfo = function (callback, rankBaseConfigId) {\r\n var net = {\r\n name: NetName.GAME_SUMMERINFO,\r\n uri: '/summer/getUserActivityInfo',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n rankBaseConfigId: rankBaseConfigId,\r\n isMainActivity: false\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.summerBuyProp = function (callback, operatingActivityId, type) {\r\n var net = {\r\n name: NetName.GAME_SUMMER_BUYPROP,\r\n uri: '/summer/buyProp',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n operatingActivityId: operatingActivityId,\r\n type: type\r\n },\r\n callback: callback, hideMsg: true\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.summerGetToyInfo = function (operatingActivityId, callback) {\r\n var net = {\r\n name: NetName.GAME_SUMMER_GET_TOY_INFO,\r\n uri: '/summer/getToyInfo',\r\n type: 'get',\r\n dataType: 'json',\r\n param: { operatingActivityId: operatingActivityId },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.doStart = function (callback, isAgain, credits, customizedType) {\r\n var addUrl = '';\r\n if (isAgain) {\r\n addUrl += '?dpm=' + DataManager.ins.gameGetSubmitResultData.againExposure.dpm;\r\n }\r\n var param = {\r\n id: DataManager.ins.gameCfgData.gameInfo.gameId,\r\n oaId: DataManager.ins.gameCfgData.gameInfo.oaId\r\n };\r\n if (credits) {\r\n param.credits = credits;\r\n }\r\n if (customizedType) {\r\n param.customizedType = customizedType;\r\n }\r\n var net = {\r\n name: NetName.GAME_START,\r\n uri: '/ngapi/dostart',\r\n type: 'post',\r\n dataType: 'json',\r\n param: param,\r\n callback: callback,\r\n addUrl: addUrl\r\n };\r\n this.getToken(net);\r\n };\r\n NetManager.prototype.getStartStatus = function (callback, ticketId, pollingCheck, pollingCount, customizedType) {\r\n if (pollingCount === void 0) { pollingCount = 5; }\r\n var param = {\r\n ticketId: ticketId\r\n };\r\n if (customizedType) {\r\n param.customizedType = customizedType;\r\n }\r\n var net = {\r\n name: NetName.GAME_START_STATUS,\r\n uri: '/ngapi/getStartStatus',\r\n type: 'post',\r\n dataType: 'json',\r\n param: param,\r\n callback: callback,\r\n pollingCount: pollingCount,\r\n pollingCheck: pollingCheck\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getSummerOrderStatus = function (callback, orderNum, pollingCheck, pollingCount, customizedType) {\r\n if (pollingCount === void 0) { pollingCount = 5; }\r\n var param = {\r\n orderNum: orderNum\r\n };\r\n var net = {\r\n name: NetName.GAME_SUMMER_GET_ORDER_STATUS,\r\n uri: '/summer/getOrderStatus',\r\n type: 'post',\r\n dataType: 'json',\r\n param: param,\r\n callback: callback,\r\n pollingCount: pollingCount,\r\n pollingCheck: pollingCheck\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.doRevive = function (callback, collectRuleId, itemId) {\r\n var net = {\r\n name: NetName.GAME_REVIVE,\r\n uri: '/summer/doRevive',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n collectRuleId: collectRuleId,\r\n itemId: itemId\r\n },\r\n callback: callback,\r\n };\r\n this.getToken(net);\r\n };\r\n NetManager.prototype.getReviveCardNum = function (callback, collectRuleId, itemId) {\r\n var net = {\r\n name: NetName.GAME_REVIVE_STATUS,\r\n uri: '/summer/getReviveCardNum',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n collectRuleId: collectRuleId,\r\n itemId: itemId\r\n },\r\n callback: callback,\r\n };\r\n this.getToken(net);\r\n };\r\n NetManager.prototype.guessPoker = function (callback, plugId, ticketId, prizeId, betting) {\r\n var net = {\r\n name: NetName.GAME_GUESS_POKER,\r\n uri: '/ngapi/guessPoker',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n pluginId: plugId,\r\n ticketId: ticketId,\r\n prizeId: prizeId,\r\n betting: betting\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.datapash = function (callback, ticketId, dynamicData) {\r\n var net = {\r\n name: NetName.GAME_DATA_PASH,\r\n uri: '/ngame/new/datapash',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n ticketId: ticketId,\r\n gameId: DataManager.ins.gameCfgData.gameInfo.id,\r\n dynamicData: dynamicData\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.hdGameSubmit = function (callback, orderId, score, gameData, submitToken, dynamicData, checkScore, customizedType) {\r\n var sign = this.createSgin(orderId, score, gameData, submitToken);\r\n var param = {\r\n orderId: orderId,\r\n score: score,\r\n gameData: gameData,\r\n sgin: sign,\r\n dynamicData: dynamicData\r\n };\r\n if (checkScore) {\r\n param.checkScore = checkScore;\r\n }\r\n if (customizedType) {\r\n param.customizedType = customizedType;\r\n }\r\n var net = {\r\n name: NetName.HD_GAME_SUBMIT,\r\n uri: '/hdtool/ngame/submit',\r\n type: 'post',\r\n dataType: 'json',\r\n param: param,\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.hdManyGameSubmit = function (callback, orderId, score, gameData, submitToken, dynamicData, checkScore, customizedType) {\r\n var sign = this.createSgin(orderId, score, gameData, submitToken);\r\n var param = {\r\n orderId: orderId,\r\n score: score,\r\n gameData: gameData,\r\n sgin: sign,\r\n dynamicData: dynamicData\r\n };\r\n if (checkScore) {\r\n param.checkScore = checkScore;\r\n }\r\n if (customizedType) {\r\n param.customizedType = customizedType;\r\n }\r\n var net = {\r\n name: NetName.HD_MANY_GAME_SUBMIT,\r\n uri: '/hdtool/recon/ngame/ngameManySubmit',\r\n type: 'post',\r\n dataType: 'json',\r\n param: param,\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.createSgin = function (ticketId, score, gameData, submitToken) {\r\n return window['duiba_md5'](ticketId + '' + score + '' + gameData + '' + submitToken);\r\n };\r\n NetManager.prototype.getSubmitResult = function (callback, orderId, pollingCheck, pollingCount) {\r\n if (pollingCount === void 0) { pollingCount = 5; }\r\n var net = {\r\n name: NetName.GAME_SUBMIT_STATUS,\r\n uri: '/ngame/new/getSubmitResult',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n orderId: orderId\r\n },\r\n callback: callback,\r\n pollingCount: pollingCount,\r\n pollingCheck: pollingCheck\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.winRanks = function (callback, showName) {\r\n if (showName === void 0) { showName = false; }\r\n var net = {\r\n name: NetName.GAME_RANKS,\r\n uri: '/ngapi/winranks',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n id: DataManager.ins.gameCfgData.gameInfo.gameId,\r\n showName: showName\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getOptions = function (callback) {\r\n var net = {\r\n name: NetName.GAME_OPTIONS,\r\n uri: '/ngapi/getOptions',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n id: DataManager.ins.gameCfgData.gameInfo.gameId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getRule = function (callback) {\r\n var net = {\r\n name: NetName.GAME_RULE,\r\n uri: '/ngapi/getRule',\r\n type: 'post',\r\n dataType: 'html',\r\n param: {\r\n id: DataManager.ins.gameCfgData.gameInfo.gameId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.realtimerank = function (callback, type, count) {\r\n if (count === void 0) { count = 50; }\r\n var net = {\r\n name: NetName.GAME_REAL_TIME_RANK,\r\n uri: '/ngapi/realtimerank',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n id: DataManager.ins.gameCfgData.gameInfo.gameId,\r\n count: count,\r\n },\r\n callback: callback,\r\n addUrl: '/' + type\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getUserTotalScore = function (callback, gametotalid) {\r\n var net = {\r\n name: NetName.GAME_TOTAL_SCORE,\r\n uri: '/ngapi/getUserTotalScore',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n id: gametotalid\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.doJoinPlugDraw = function (callback, activityId, deductCredits) {\r\n var net = {\r\n name: NetName.PLUG_DO_JOIN,\r\n uri: '/activityPlugDrawInfo/doJoinPlugdraw',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n activityId: activityId,\r\n deductCredits: deductCredits ? deductCredits : false\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getPlugOrderStatus = function (callback, orderId, pollingCheck, pollingCount, prizeLevel) {\r\n if (pollingCount === void 0) { pollingCount = 10; }\r\n var net = {\r\n name: NetName.PLUG_ORDER_STATUS,\r\n uri: '/plugin/getOrderStatus',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n orderId: orderId\r\n },\r\n callback: callback,\r\n pollingCheck: pollingCheck,\r\n pollingCount: pollingCount\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getPrizeInfo = function (callback, plugId) {\r\n var net = {\r\n name: NetName.PLUG_PRIZE_INFO,\r\n uri: '/activityPlugDrawInfo/getPrizeInfo',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n activityId: plugId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.optionInfo = function (callback, ids) {\r\n var net = {\r\n name: NetName.PLUG_OPTION_INFO,\r\n uri: '/activityPlugin/optionInfo',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n ids: ids\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.unblocking = function (callback, id) {\r\n var net = {\r\n name: NetName.PLUG_UNBLOCKING,\r\n uri: 'activityPlugin/unblocking',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n id: id\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.reconAjaxElement = function (callback) {\r\n var net = {\r\n name: NetName.CUSTOM_RECON_ELEMENT,\r\n uri: '/hdtool/recon/ajaxElement',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n duibaId: DataManager.ins.customCfgData.hdToolId,\r\n activityId: DataManager.ins.customCfgData.actId,\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.ajaxThroughInfo = function (callback, throughId) {\r\n if (throughId === void 0) { throughId = 1; }\r\n var net = {\r\n name: NetName.CUSTOM_THROUGH_INFO,\r\n uri: window['CFG'].ajaxThroughInfo,\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n hdtoolId: DataManager.ins.customCfgData.hdToolId,\r\n throughId: 1\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.checkOutAnswer = function (callback, orderId, answerData) {\r\n var param = {\r\n orderId: orderId,\r\n answerData: answerData\r\n };\r\n var net = {\r\n name: NetName.checkOutAnswer,\r\n uri: '/hdtool/caijing/recon/checkOutAnswer',\r\n type: 'post',\r\n dataType: 'json',\r\n param: param,\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.questionSubmit = function (callback, orderId, answerData) {\r\n var param = {\r\n orderId: orderId,\r\n answerData: answerData\r\n };\r\n var net = {\r\n name: NetName.questionSubmit,\r\n uri: '/hdtool/caijing/recon/questionSubmit',\r\n type: 'post',\r\n dataType: 'json',\r\n param: param,\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.doJoin = function (callback, credits, collectRuleId) {\r\n var param = {\r\n activityId: DataManager.ins.customCfgData.actId,\r\n activityType: 'hdtool',\r\n consumerId: window['CFG'].consumerId\r\n };\r\n if (credits) {\r\n param.credits = credits;\r\n }\r\n if (collectRuleId) {\r\n param.collectRuleId = collectRuleId;\r\n }\r\n var net = {\r\n name: NetName.CUSTOM_DO_JOIN,\r\n uri: window['host'] + '/hdtool/recon/doJoin',\r\n type: 'post',\r\n dataType: 'json',\r\n param: param,\r\n callback: callback\r\n };\r\n this.getToken(net);\r\n };\r\n NetManager.prototype.kuwoIndex = function (callback, validFlag, nick) {\r\n var param = {\r\n validFlag: validFlag,\r\n nick: nick\r\n };\r\n var net = {\r\n name: NetName.CUSTOM_DO_JOIN,\r\n uri: window['host'] + '/hdtool/recon/doJoin',\r\n type: 'post',\r\n dataType: 'json',\r\n param: param,\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.reconGetGameSubmit = function (callback, orderId, facePrice) {\r\n var param = {\r\n orderId: orderId\r\n };\r\n if (facePrice) {\r\n param.facePrice = facePrice;\r\n }\r\n var net = {\r\n name: NetName.RECON_GAME_SUBMIT,\r\n uri: '/hdtool/recon/getGameSubmit',\r\n type: 'post',\r\n dataType: 'json',\r\n param: param,\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getCustomOrderStatus = function (callback, orderId, pollingCheck, pollingCount) {\r\n if (pollingCount === void 0) { pollingCount = 5; }\r\n var net = {\r\n name: NetName.CUSTOM_ORDER_STATUS,\r\n uri: '/hdtool/recon/getOrderStatus',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n orderId: orderId\r\n },\r\n callback: callback,\r\n pollingCheck: pollingCheck,\r\n pollingCount: pollingCount\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getGameOrderStatus = function (callback, orderId, pollingCheck, pollingCount) {\r\n if (pollingCount === void 0) { pollingCount = 20; }\r\n var net = {\r\n name: NetName.GAME_ORDER_STATUS,\r\n uri: '/hdtool/recon/getGameOrderInfo',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n orderId: orderId\r\n },\r\n callback: callback,\r\n pollingCheck: pollingCheck,\r\n pollingCount: pollingCount\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getHdGameOrderStatus = function (callback, orderId, pollingCheck, pollingCount) {\r\n if (pollingCount === void 0) { pollingCount = 10; }\r\n var net = {\r\n name: NetName.HD_GAME_ORDER_STATUS,\r\n uri: 'hdtool/recon/getGameOrderInfo',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n orderId: orderId\r\n },\r\n callback: callback,\r\n pollingCheck: pollingCheck,\r\n pollingCount: pollingCount\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.resurrectionStatus = function (callback, orderId, pollingCheck, pollingCount, resurrecOrderId) {\r\n if (pollingCount === void 0) { pollingCount = 10; }\r\n if (resurrecOrderId === void 0) { resurrecOrderId = -1; }\r\n var net = {\r\n name: NetName.RESURRECTION_ORDER_STATUS,\r\n uri: '/hdtool/recon/ngame/resurrectionStatus',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n orderId: orderId\r\n },\r\n callback: callback,\r\n pollingCheck: pollingCheck,\r\n pollingCount: pollingCount\r\n };\r\n if (resurrecOrderId != -1) {\r\n net.param.resurrecOrderId = resurrecOrderId;\r\n }\r\n this.send(net);\r\n };\r\n NetManager.prototype.resurrection = function (callback, orderId) {\r\n var net = {\r\n name: NetName.RESURRECTION,\r\n uri: '/hdtool/recon/ngame/resurrection',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n orderId: orderId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getOrderInfo = function (callback, orderId, showMsg) {\r\n if (showMsg === void 0) { showMsg = true; }\r\n var net = {\r\n name: NetName.CUSTOM_ORDER_INFO,\r\n uri: window['CFG'].gameGetOrder,\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n orderId: orderId\r\n },\r\n callback: callback,\r\n hideMsg: true\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.beforSubmit = function (callback, orderId, facePrice) {\r\n var net = {\r\n name: NetName.CUSTOM_BEFOR_SUBMIT,\r\n uri: window['CFG'].gameSubmit,\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n orderId: orderId,\r\n facePrice: facePrice\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.throughSubmit = function (callback, orderId) {\r\n var net = {\r\n name: NetName.CUSTOM_THROUGH_SUBMIT,\r\n uri: window['CFG'].throughSubmit,\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n orderId: orderId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.petAdopte = function (callback, activityId) {\r\n var net = {\r\n name: NetName.PET_ADOPTE,\r\n uri: '/signpet/adopte',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n activityId: activityId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getPetStatus = function (callback, petId) {\r\n var net = {\r\n name: NetName.PET_STATUS,\r\n uri: '/signpet/status',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n petId: petId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.petFeed = function (callback, petId, feedNum) {\r\n var net = {\r\n name: NetName.PET_FEED,\r\n uri: '/signpet/feed',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n petId: petId,\r\n feedNum: feedNum\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getPetInfo = function (callback, activityId) {\r\n var net = {\r\n name: NetName.PET_INFO,\r\n uri: '/signpet/getPetInfo',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n activityId: activityId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getSignInfo = function (callback, signActivityId) {\r\n var net = {\r\n name: NetName.SIGN_INFO,\r\n uri: '/signactivity/getSignInfo',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n signActivityId: signActivityId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.doSign = function (callback, signActivityId, activityId) {\r\n var net = {\r\n name: NetName.SIGN_DO_SIGN,\r\n uri: '/signactivity/doSign',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n id: signActivityId,\r\n activityId: activityId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getToys = function (callback, actId) {\r\n var net = {\r\n name: NetName.PET_TOYS,\r\n uri: '/signpet/addition/getToys',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n actId: actId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.toyExchange = function (callback, toyId, credits) {\r\n var net = {\r\n name: NetName.PET_TOY_EXCHANGE,\r\n uri: '/signpet/addition/toyExchange',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n toyId: toyId,\r\n credits: credits\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.toyUse = function (callback, identifier, petId) {\r\n var net = {\r\n name: NetName.PET_TOY_USE,\r\n uri: '/signpet/addition/toyUse',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n identifier: identifier,\r\n petId: petId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.collect = function (callback, giftId, giftNum, giftName, giftDesc, giftType, giftLink, petId) {\r\n var net = {\r\n name: NetName.PET_COLLECT,\r\n uri: '/signpet/addition/collect',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n giftId: giftId,\r\n giftNum: giftNum,\r\n giftName: giftName,\r\n giftDesc: giftDesc,\r\n giftType: giftType,\r\n giftLink: giftLink,\r\n petId: petId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getRankList = function (callback, petId, topNum, pollingCheck, pollingCount) {\r\n var net = {\r\n name: NetName.PET_GET_RANK_LIST,\r\n uri: '/signpet/getRankList',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n petId: petId,\r\n topNum: topNum,\r\n pollingCheck: pollingCheck,\r\n pollingCount: pollingCount\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getFoodPiles = function (callback) {\r\n var net = {\r\n name: NetName.PET_GET_FOOD_PILES,\r\n uri: '/signpet/getFoodPiles',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {},\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.collectFood = function (callback, id, activityId) {\r\n var net = {\r\n name: NetName.PET_COLLECT_FOOD,\r\n uri: '/signpet/collectFood',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n id: id,\r\n activityId: activityId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getHomeInfo = function (callback, activityId) {\r\n var net = {\r\n name: NetName.PETS_GET_HOME_INFO,\r\n uri: '/sign/wander/getHomeInfo',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n activityId: activityId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getActToys = function (callback, actId, actType, toyType) {\r\n var net = {\r\n name: NetName.PETS_GET_ACT_TOYS,\r\n uri: '/sign/addition/getActToys',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n actId: actId,\r\n actType: actType,\r\n toyType: toyType\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.toyExchanges = function (callback, toyId) {\r\n var net = {\r\n name: NetName.PETS_TOY_EXCHANGE,\r\n uri: '/sign/addition/toyExchange',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n toyId: toyId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.useToy = function (callback, actId, toyList) {\r\n var net = {\r\n name: NetName.PETS_USE_TOYS,\r\n uri: '/sign/addition/useToy',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n actId: actId,\r\n toyList: JSON.stringify(toyList)\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getUserToys = function (callback, petId, toyType) {\r\n var net = {\r\n name: NetName.PETS_GET_USER_TOYS,\r\n uri: '/sign/addition/getUserToys',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n petId: petId,\r\n toyType: toyType\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.batchollectFood = function (callback, actId, ids) {\r\n var net = {\r\n name: NetName.PETS_BATCHOLLECT_FOOD,\r\n uri: '/sign/addition/batchollectFood',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n ids: JSON.stringify(ids),\r\n actId: actId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.visitStatistics = function (callback, actId) {\r\n var net = {\r\n name: NetName.PETS_VISI_STATISTICS,\r\n uri: '/sign/wander/visitStatistics',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n actId: actId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getVisitInfo = function (callback, actId, showNum) {\r\n var net = {\r\n name: NetName.PETS_GET_VISIT_INFO,\r\n uri: '/sign/wander/getVisitInfo',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n showNum: showNum,\r\n actId: actId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.visitDetail = function (callback, actId, identifier) {\r\n var net = {\r\n name: NetName.PETS_VISIT_DETAIL,\r\n uri: '/sign/wander/visitDetail',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n actId: actId,\r\n identifier: identifier\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.collectGiftRecord = function (recordId, callback) {\r\n var net = {\r\n name: NetName.PETS_COLLECT_GIFT_RECORD,\r\n uri: '/sign/wander/collectGiftRecord',\r\n type: 'post',\r\n dataType: 'json',\r\n param: {\r\n recordId: recordId\r\n },\r\n callback: callback\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.getToken = function (net) {\r\n var _this = this;\r\n if (window['getDuibaToken']) {\r\n window['getDuibaToken'](function (tokenObj) {\r\n net.param.token = tokenObj.token;\r\n _this.send(net);\r\n }, function (key, messageObj) {\r\n _this.onError(net);\r\n });\r\n }\r\n else {\r\n this.send(net);\r\n }\r\n };\r\n NetManager.prototype.getRecord = function (callback, page) {\r\n var _this = this;\r\n var net = {\r\n name: NetName.GET_RECORD,\r\n uri: (window['recordUrl'] ? window['recordUrl'] : '') + '/Crecord/getRecord',\r\n type: 'get',\r\n dataType: 'json',\r\n param: {\r\n page: page\r\n },\r\n callback: callback\r\n };\r\n var gTime = '?_=' + (new Date().getTime());\r\n var realUrl = net.uri;\r\n if (realUrl.indexOf('?') != -1) {\r\n gTime = '&_=' + (new Date().getTime());\r\n }\r\n if (net.addUrl) {\r\n realUrl += net.addUrl;\r\n }\r\n window['$'].ajax({\r\n type: net.type,\r\n url: realUrl,\r\n dataType: net.dataType,\r\n data: net.param,\r\n async: true,\r\n xhrFields: {\r\n withCredentials: true\r\n },\r\n crossDomain: true,\r\n cache: false,\r\n success: function (result) {\r\n _this.onResponse(net, result);\r\n },\r\n error: function (message) {\r\n _this.onError(net);\r\n }\r\n });\r\n };\r\n NetManager.prototype.spmshow = function (exposure) {\r\n var domain = (exposure.domain ? exposure.domain : '') + '/engine/';\r\n var net = {\r\n name: 'spmshow',\r\n uri: domain + 'spmshow',\r\n type: 'get',\r\n dataType: 'jsonp',\r\n param: exposure,\r\n callback: null,\r\n hideMsg: true\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.spmclick = function (exposure) {\r\n var domain = (exposure.domain ? exposure.domain : '') + '/engine/';\r\n var net = {\r\n name: 'spmclick',\r\n uri: domain + 'spmclick',\r\n type: 'get',\r\n dataType: 'jsonp',\r\n param: exposure,\r\n callback: null,\r\n hideMsg: true\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.clickLog = function (exposure) {\r\n var net = {\r\n name: 'clickLog',\r\n uri: '/log/click',\r\n type: 'get',\r\n dataType: 'jsonp',\r\n param: exposure,\r\n callback: null,\r\n hideMsg: true\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.showLog = function (exposure) {\r\n var net = {\r\n name: 'showLog',\r\n uri: exposure.domain + '/exposure/standard',\r\n type: 'get',\r\n dataType: 'jsonp',\r\n param: exposure,\r\n callback: null,\r\n hideMsg: true\r\n };\r\n this.send(net);\r\n };\r\n NetManager.prototype.onResponse = function (net, result) {\r\n var _this = this;\r\n var data = DataManager.ins.updateData(net.name, result, net.param);\r\n if (net.pollingCount && net.pollingCheck(data)) {\r\n net.pollingCount -= 1;\r\n setTimeout(function () {\r\n _this.send(net);\r\n }, 500);\r\n }\r\n else if (net.callback) {\r\n if (net.pollingCheck && net.pollingCount == 0 && net.pollingCheck(data)) {\r\n result.message = '系统异常,请稍后再试。';\r\n data.success = false;\r\n }\r\n net.callback(data.success, data || result);\r\n }\r\n if (!data.success && !net.hideMsg) {\r\n }\r\n if (!data.success && !net.hideMsg) {\r\n }\r\n };\r\n NetManager.prototype.onError = function (net) {\r\n if (net.callback) {\r\n net.callback(false);\r\n }\r\n if (!net.hideMsg) {\r\n }\r\n };\r\n return NetManager;\r\n}(ABNetManager));\r\nexport { NetManager };\r\n//# sourceMappingURL=NetManager.js.map"}
{"map":"{\"version\":3,\"file\":\"TouchInterrupt.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/TouchInterrupt.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD;IAA4C,0CAAiB;IAA7D;QAAA,qEAEC;QADA,oBAAc,GAAY,IAAI,CAAC;;IAChC,CAAC;IAAD,qBAAC;AAAD,CAAC,AAFD,CAA4C,iBAAiB,GAE5D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport InteractComponent from \"./InteractComponent\";\r\nvar TouchInterrupt = (function (_super) {\r\n tslib_1.__extends(TouchInterrupt, _super);\r\n function TouchInterrupt() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.touchInterrupt = true;\r\n return _this;\r\n }\r\n return TouchInterrupt;\r\n}(InteractComponent));\r\nexport default TouchInterrupt;\r\n//# sourceMappingURL=TouchInterrupt.js.map"}
{"map":"{\"version\":3,\"file\":\"HashObject.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/HashObject.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAI,aAAa,GAAG,CAAC,CAAC;AAEtB,SAAS,WAAW;IACnB,OAAO,EAAE,aAAa,CAAC;AACxB,CAAC;AAKD;IAGC;QACC,IAAI,CAAC,SAAS,GAAG,WAAW,EAAE,CAAC;IAChC,CAAC;IAED,sBAAI,gCAAQ;aAAZ;YACC,OAAO,IAAI,CAAC,SAAS,CAAC;QACvB,CAAC;;;OAAA;IACF,iBAAC;AAAD,CAAC,AAVD,IAUC\"}","code":"var HASH_CODE_INK = 0;\r\nfunction getHashCode() {\r\n return ++HASH_CODE_INK;\r\n}\r\nvar HashObject = (function () {\r\n function HashObject() {\r\n this._hashCode = getHashCode();\r\n }\r\n Object.defineProperty(HashObject.prototype, \"hashCode\", {\r\n get: function () {\r\n return this._hashCode;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return HashObject;\r\n}());\r\nexport default HashObject;\r\n//# sourceMappingURL=HashObject.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/assets-manager/index.ts\"],\"names\":[],\"mappings\":\";AAOA,OAAO,EAAC,aAAa,EAAC,MAAM,i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AChC,GAAG,CAAC,YAAY,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;6BAC7C;4BACD,GAAG,CAAC,MAAM,GAAG;gCACZ,OAAO,CAAC,GAAG,CAAC,CAAC;4BACd,CAAC,CAAC;4BACF,GAAG,CAAC,OAAO,GAAG,UAAU,CAAC;gCACxB,MAAM,CAAC,CAAC,CAAC,CAAC;4BACX,CAAC,CAAC;4BACF,GAAG,CAAC,GAAG,GAAG,OAAO,CAAC;wBACnB,CAAC,CAAC,EAAA;;;;CACF\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { createTexture } from '../core/Texture';\r\nimport { getFrameAnimation, putFrameAnim } from '../core/FrameAnimation';\r\nimport { Sheet } from '../core/Sheet';\r\nimport { EngineConfig } from \"../engine-config\";\r\nvar resCache = {};\r\nvar resPath = '';\r\nvar resLoaderType = {\r\n '.json': loadJson,\r\n '.json5': loadJson5,\r\n '.txt': loadTxt,\r\n '.png': loadTexture,\r\n '.jpg': loadTexture,\r\n '.svg': loadTexture,\r\n '.bimg': loadTextureFromBlob,\r\n '.sht': loadSheet,\r\n '.sht-disperse': loadSheetDisperse,\r\n '.fnt': loadFont,\r\n '.anim': loadAnim,\r\n};\r\nexport function setResPath(path) {\r\n resPath = path;\r\n}\r\nexport function loadResItems(items, progress) {\r\n var total = items.length;\r\n var count = 0;\r\n return Promise.all(items.map(function (item) {\r\n var uuid, url, config, ext;\r\n if (typeof item === 'string') {\r\n url = item;\r\n }\r\n else {\r\n url = item.url;\r\n }\r\n if (!url) {\r\n return Promise.resolve();\r\n }\r\n if (typeof item === 'string') {\r\n uuid = getUUIDFromUrl(url);\r\n }\r\n else {\r\n uuid = item.uuid || getUUIDFromUrl(url);\r\n ext = item.ext;\r\n config = item.config;\r\n }\r\n var loader = getLoader(ext, url);\r\n return loader(url, uuid, true, config).then(function (res) {\r\n count++;\r\n progress && progress(count / total);\r\n return res;\r\n });\r\n }));\r\n}\r\nexport function loadAny(url, uuid, cache, config, options, type) {\r\n if (cache === void 0) { cache = true; }\r\n if (options === void 0) { options = {}; }\r\n if (type === void 0) { type = 'arraybuffer'; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var response, result;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, fetch(resolveUrl(url), options)];\r\n case 1:\r\n response = _a.sent();\r\n switch (type) {\r\n case 'json':\r\n result = response.json();\r\n break;\r\n case 'text':\r\n result = response.text();\r\n break;\r\n case 'arraybuffer':\r\n result = response.arrayBuffer();\r\n break;\r\n case 'blob':\r\n result = response.blob();\r\n break;\r\n }\r\n return [4, result];\r\n case 2: return [2, _a.sent()];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadTxt(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n var p = loadAny(url, uuid, cache, config, undefined, 'text');\r\n if (cache) {\r\n p.then(function (data) {\r\n cacheRes(data, url, uuid);\r\n return data;\r\n });\r\n }\r\n return p;\r\n}\r\nexport function loadJson(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n var p = loadAny(url, uuid, cache, config, undefined, 'json');\r\n if (cache) {\r\n p.then(function (data) {\r\n cacheRes(data, url, uuid);\r\n return data;\r\n });\r\n }\r\n return p;\r\n}\r\nexport function loadJson5(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var txt, jsonData;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadTxt(url, uuid)];\r\n case 1:\r\n txt = _a.sent();\r\n jsonData = window['eval'](\"(\" + txt + \")\");\r\n cacheRes(jsonData, url, uuid);\r\n return [2, jsonData];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadSheet(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n var pngFile = url.substring(0, url.lastIndexOf('.')) + '.png';\r\n return Promise.all([\r\n loadJson(url, null, false),\r\n loadImage(pngFile, null, false),\r\n ]).then(function (result) {\r\n var e_1, _a;\r\n var data = result[0];\r\n var img = result[1];\r\n var sheet = new Sheet(img, data.frames);\r\n sheet.generateAll();\r\n if (cache) {\r\n cacheRes(sheet, url, uuid);\r\n if (config) {\r\n try {\r\n for (var _b = tslib_1.__values(config.textures), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var textureConfig = _c.value;\r\n var name_1 = textureConfig.name, uuid_1 = textureConfig.uuid;\r\n var texture = sheet.getTexture(name_1);\r\n cacheRes(texture, name_1, uuid_1);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n }\r\n else {\r\n var textures = sheet.getAllTextures();\r\n for (var key in textures) {\r\n cacheRes(textures[key], key, key);\r\n }\r\n }\r\n }\r\n return sheet;\r\n });\r\n}\r\nexport function loadSheetDisperse(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var e_2, _a, _b, _c, _d, name_2, uuid_2, subUrl, e_2_1;\r\n return tslib_1.__generator(this, function (_e) {\r\n switch (_e.label) {\r\n case 0:\r\n _e.trys.push([0, 5, 6, 7]);\r\n _b = tslib_1.__values(config.textures), _c = _b.next();\r\n _e.label = 1;\r\n case 1:\r\n if (!!_c.done) return [3, 4];\r\n _d = _c.value, name_2 = _d.name, uuid_2 = _d.uuid;\r\n subUrl = url.replace('-disperse', '') + '/' + name_2 + '.png';\r\n return [4, loadTexture(subUrl, uuid_2)];\r\n case 2:\r\n _e.sent();\r\n _e.label = 3;\r\n case 3:\r\n _c = _b.next();\r\n return [3, 1];\r\n case 4: return [3, 7];\r\n case 5:\r\n e_2_1 = _e.sent();\r\n e_2 = { error: e_2_1 };\r\n return [3, 7];\r\n case 6:\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n return [7];\r\n case 7: return [2, null];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadFont(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return loadSheet(url, null, false).then(function (sheet) {\r\n if (cache) {\r\n cacheRes(sheet, url, uuid);\r\n }\r\n return sheet;\r\n });\r\n}\r\nfunction findAnimConfig(animations, name) {\r\n var result;\r\n animations.some(function (item) {\r\n if (item.name === name) {\r\n result = item;\r\n return true;\r\n }\r\n });\r\n return result;\r\n}\r\nexport function loadAnim(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n var pngFile = url.substring(0, url.lastIndexOf('.')) + '.png';\r\n return Promise.all([\r\n loadJson(url, null, false),\r\n loadImage(pngFile, null, false),\r\n ]).then(function (result) {\r\n var data = result[0];\r\n var img = result[1];\r\n putFrameAnim(img, data);\r\n var animations = [];\r\n for (var name_3 in data.mc) {\r\n var animation = getFrameAnimation(name_3);\r\n if (cache) {\r\n var uuid_3 = name_3;\r\n if (config) {\r\n var cfg = findAnimConfig(config.animations, name_3);\r\n uuid_3 = cfg.uuid;\r\n }\r\n cacheRes(animation, name_3, uuid_3);\r\n }\r\n animations.push(animation);\r\n }\r\n return animations;\r\n });\r\n}\r\nexport function loadImage(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return new Promise(function (resolve, reject) {\r\n var img = new Image();\r\n if (EngineConfig.imgCrossOrigin) {\r\n img.setAttribute('crossOrigin', 'anonymous');\r\n }\r\n img.onload = function (e) {\r\n resolve(img);\r\n };\r\n img.onerror = function (e) {\r\n reject(e);\r\n };\r\n img.src = resolveUrl(url);\r\n });\r\n}\r\nexport function loadImageFromBlob(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var imgBlob, e_3;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 3, , 4]);\r\n return [4, loadAny(url, uuid, false, config, undefined, 'blob')];\r\n case 1:\r\n imgBlob = _a.sent();\r\n return [4, blobToImage(imgBlob)];\r\n case 2: return [2, _a.sent()];\r\n case 3:\r\n e_3 = _a.sent();\r\n console.log(e_3);\r\n return [3, 4];\r\n case 4: return [2];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadTexture(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var img, texture;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadImage(url, uuid, false)];\r\n case 1:\r\n img = _a.sent();\r\n texture = createTexture(img);\r\n if (cache) {\r\n cacheRes(texture, url, uuid);\r\n }\r\n return [2, texture];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadTextureFromBlob(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var img, texture;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadImageFromBlob(url, uuid, false)];\r\n case 1:\r\n img = _a.sent();\r\n texture = createTexture(img);\r\n if (cache) {\r\n cacheRes(texture, url, uuid);\r\n }\r\n return [2, texture];\r\n }\r\n });\r\n });\r\n}\r\nfunction resolveUrl(url) {\r\n if (url.indexOf('//') === 0 || url.indexOf('http:') === 0 || url.indexOf('https:') === 0) {\r\n return url;\r\n }\r\n return resPath + url;\r\n}\r\nfunction getLoader(ext, url) {\r\n ext = ext || url.substr(url.lastIndexOf('.'));\r\n return resLoaderType[ext] || loadAny;\r\n}\r\nfunction getUUIDFromUrl(url) {\r\n return url.substring(url.lastIndexOf('/') + 1, url.lastIndexOf('.'));\r\n}\r\nexport function cacheRes(res, url, uuid) {\r\n uuid = uuid || getUUIDFromUrl(url);\r\n resCache[uuid] = res;\r\n}\r\nexport function addLoader(ext, loader) {\r\n resLoaderType[ext] = loader;\r\n}\r\nexport function getRes(uuid) {\r\n return resCache[uuid];\r\n}\r\nexport function destroyRes(uuidOrUuids) {\r\n if (Array.isArray(uuidOrUuids)) {\r\n while (uuidOrUuids.length > 0) {\r\n delete resCache[uuidOrUuids.pop()];\r\n }\r\n }\r\n else {\r\n delete resCache[uuidOrUuids];\r\n }\r\n}\r\nexport function destroyAllRes() {\r\n for (var key in resCache) {\r\n destroyRes(key);\r\n }\r\n}\r\nexport function getAllResUuids() {\r\n return Object.keys(resCache);\r\n}\r\nfunction fileOrBlobToDataURL(obj) {\r\n return new Promise(function (resolve, reject) {\r\n var a = new FileReader();\r\n a.readAsDataURL(obj);\r\n a.onload = function (e) {\r\n resolve(e.target['result']);\r\n };\r\n a.onerror = function (e) {\r\n reject(e);\r\n };\r\n });\r\n}\r\nfunction blobToImage(blob) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var dataUrl;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, fileOrBlobToDataURL(blob)];\r\n case 1:\r\n dataUrl = _a.sent();\r\n return [2, new Promise(function (resolve, reject) {\r\n var img = new Image();\r\n if (EngineConfig.imgCrossOrigin) {\r\n img.setAttribute('crossOrigin', 'anonymous');\r\n }\r\n img.onload = function () {\r\n resolve(img);\r\n };\r\n img.onerror = function (e) {\r\n reject(e);\r\n };\r\n img.src = dataUrl;\r\n })];\r\n }\r\n });\r\n });\r\n}\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"GetRecordData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../src/tw/data/common/GetRecordData.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;IAAmC,yCAAI;IAAvC;;IAcA,CAAC;IATU,8BAAM,GAAb,UAAc,IAAS;QACnB,IAAG,CAAC,IAAI,EAAE;YACN,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,CAAC;IACL,oBAAC;AAAD,CAAC,AAdD,CAAmC,IAAI,GActC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from './../Data';\r\nvar GetRecordData = (function (_super) {\r\n tslib_1.__extends(GetRecordData, _super);\r\n function GetRecordData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GetRecordData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.invalidPage = data.invalidPage;\r\n this.nextPage = data.nextPage;\r\n this.records = data.records;\r\n };\r\n return GetRecordData;\r\n}(Data));\r\nexport { GetRecordData };\r\n//# sourceMappingURL=GetRecordData.js.map"}
{"map":"{\"version\":3,\"file\":\"DoJoinData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/custom/doJoin/DoJoinData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAAgC,sCAAI;IAApC;;IAmBA,CAAC;IARU,2BAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QAEnB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC;IAC7B,CAAC;IACL,iBAAC;AAAD,CAAC,AAnBD,CAAgC,IAAI,GAmBnC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar DoJoinData = (function (_super) {\r\n tslib_1.__extends(DoJoinData, _super);\r\n function DoJoinData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n DoJoinData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.orderId = data.data;\r\n };\r\n return DoJoinData;\r\n}(Data));\r\nexport { DoJoinData };\r\n//# sourceMappingURL=DoJoinData.js.map"}
{"map":"{\"version\":3,\"file\":\"GraphicRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/GraphicRenderer.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAMlC;IAA6C,2CAAQ;IAArD;QAAA,qEAsGC;QArGA,eAAS,GAAU,SAAS,CAAC;QAC7B,iBAAW,GAAU,SAAS,CAAC;QAC/B,iBAAW,GAAG,CAAC,CAAC;QAGhB,kBAAY,GAAG,KAAK,CAAC;QAErB,iBAAW,GAAG,KAAK,CAAC;;IA8FrB,CAAC;IA5FU,yCAAe,GAAzB;QACC,OAAO,IAAI,CAAC,aAAa,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;IACjD,CAAC;IAKS,uCAAa,GAAvB;QACC,OAAO,EAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC,CAAC;IAC9B,CAAC;IAKS,oCAAU,GAApB;QACC,iBAAM,UAAU,WAAE,CAAC;QACnB,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;IAKS,8BAAI,GAAd;QACC,iBAAM,IAAI,WAAE,CAAC;QAEb,IAAI,IAAI,CAAC,YAAY,EAAE;YACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACrB,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,YAAY,EAAE,CAAA;SACvC;aAAM;YACN,IAAI,CAAC,YAAY,EAAE,CAAA;SACnB;IACF,CAAC;IAKS,oCAAU,GAApB;QACO,IAAA,SAAqD,EAApD,oBAAO,EAAE,wBAAS,EAAE,4BAAW,EAAE,4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AAC;IACF,sBAAC;AAAD,CAAC,AAtGD,CAA6C,QAAQ,GAsGpD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Renderer from \"./Renderer\";\r\nvar GraphicRenderer = (function (_super) {\r\n tslib_1.__extends(GraphicRenderer, _super);\r\n function GraphicRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.fillColor = '#42bce4';\r\n _this.borderColor = '#0899d0';\r\n _this.borderWidth = 0;\r\n _this.isUsedToMask = false;\r\n _this.maskVisible = false;\r\n return _this;\r\n }\r\n GraphicRenderer.prototype.getUseCacheMode = function () {\r\n return this._useCacheMode && !this.isUsedToMask;\r\n };\r\n GraphicRenderer.prototype.getRenderSize = function () {\r\n return { width: 0, height: 0 };\r\n };\r\n GraphicRenderer.prototype.beforeDraw = function () {\r\n _super.prototype.beforeDraw.call(this);\r\n this.applyStyle();\r\n this.context.beginPath();\r\n };\r\n GraphicRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n if (this.isUsedToMask) {\r\n this._context.clip();\r\n this.maskVisible && this.fillAndStoke();\r\n }\r\n else {\r\n this.fillAndStoke();\r\n }\r\n };\r\n GraphicRenderer.prototype.applyStyle = function () {\r\n var _a = this, context = _a.context, fillColor = _a.fillColor, borderColor = _a.borderColor, borderWidth = _a.borderWidth;\r\n context.fillStyle = fillColor;\r\n if (borderWidth > 0) {\r\n context.strokeStyle = borderColor;\r\n context.lineWidth = borderWidth;\r\n }\r\n };\r\n GraphicRenderer.prototype.fillAndStoke = function () {\r\n var _a = this, context = _a.context, borderWidth = _a.borderWidth;\r\n context.fill();\r\n if (borderWidth > 0) {\r\n context.stroke();\r\n }\r\n };\r\n GraphicRenderer.prototype.drawClip = function () {\r\n this.isUsedToMask && this.context.save();\r\n };\r\n GraphicRenderer.prototype.afterUpdate = function () {\r\n this.isUsedToMask && this.context.restore();\r\n };\r\n GraphicRenderer.prototype.measureBounds = function () {\r\n if (this.entity.name == 'content') {\r\n console.log();\r\n }\r\n if (!this.dirty) {\r\n return;\r\n }\r\n this._margin = this.borderWidth;\r\n var _a = this, bounds = _a.bounds, _b = _a.transform, tWidth = _b.explicitWidth, tHeight = _b.explicitHeight;\r\n var _c = this.getRenderSize(), sWidth = _c.width, sHeight = _c.height;\r\n bounds.width = isNaN(tWidth) ? sWidth : tWidth;\r\n bounds.height = isNaN(tHeight) ? sHeight : tHeight;\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n return GraphicRenderer;\r\n}(Renderer));\r\nexport default GraphicRenderer;\r\n//# sourceMappingURL=GraphicRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"AddTimesForActivityData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/common/addTimesForActivity/AddTimesForActivityData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAA6C,mDAAI;IAAjD;;IAmBA,CAAC;IARU,wCAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;IACtC,CAAC;IACL,8BAAC;AAAD,CAAC,AAnBD,CAA6C,IAAI,GAmBhD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar AddTimesForActivityData = (function (_super) {\r\n tslib_1.__extends(AddTimesForActivityData, _super);\r\n function AddTimesForActivityData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n AddTimesForActivityData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.addedTimes = data.addedTimes;\r\n this.shareCount = data.shareCount;\r\n };\r\n return AddTimesForActivityData;\r\n}(Data));\r\nexport { AddTimesForActivityData };\r\n//# sourceMappingURL=AddTimesForActivityData.js.map"}
{"map":"{\"version\":3,\"file\":\"LaunchOptions.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/LaunchOptions.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EACN,KAAK,GACL,MAAM,QAAQ,CAAA;AAEf,IAAM,OAAO,GAAQ,EAAE,CAAC;AAExB,MAAM,UAAU,MAAM,CAAC,IAAI;IAC1B,KAAK,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AACjC,CAAC;AAED,eAAe,OAAO,CAAC\"}","code":"import { utils, } from 'scilla';\r\nvar options = {};\r\nexport function inject(data) {\r\n utils.injectProp(options, data);\r\n}\r\nexport default options;\r\n//# sourceMappingURL=LaunchOptions.js.map"}
{"map":"{\"version\":3,\"file\":\"Matrix.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Matrix.ts\"],\"names\":[],\"mappings\":\"AAMA,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;AACjB,IAAI,KAAK,GAAG,EAAE,GAAG,CAAC,CAAC;AACnB,IAAI,UAAU,GAAG,EAAE,GAAG,GAAG,CAAC;AAE1B,IAAI,UAAU,GAAG,EAAE,CAAC;AAOpB;IAuCC,gBAAY,CAAK,EAAE,CAAK,EAAE,CAAK,EAAE,CAAK,EAAE,EAAM,EAAE,EAAM;QAA1C,kBAAA,EAAA,KAAK;QAAE,kBAAA,EAAA,KAAK;QAAE,kBAAA,EAAA,KAAK;QAAE,kBAAA,EAAA,KAAK;QAAE,mBAAA,EAAA,MAAM;QAAE,mBAAA,EAAA,MAAM;QACrD,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;Q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Math.PI;\r\nvar TwoPI = PI * 2;\r\nvar DEG_TO_RAD = PI / 180;\r\nvar matrixPool = [];\r\nvar Matrix = (function () {\r\n function Matrix(a, b, c, d, tx, ty) {\r\n if (a === void 0) { a = 1; }\r\n if (b === void 0) { b = 0; }\r\n if (c === void 0) { c = 0; }\r\n if (d === void 0) { d = 1; }\r\n if (tx === void 0) { tx = 0; }\r\n if (ty === void 0) { ty = 0; }\r\n this.a = a;\r\n this.b = b;\r\n this.c = c;\r\n this.d = d;\r\n this.tx = tx;\r\n this.ty = ty;\r\n }\r\n Matrix.release = function (matrix) {\r\n if (!matrix) {\r\n return;\r\n }\r\n matrixPool.push(matrix);\r\n };\r\n Matrix.create = function () {\r\n var matrix = matrixPool.pop();\r\n if (!matrix) {\r\n matrix = new Matrix();\r\n }\r\n return matrix;\r\n };\r\n Matrix.prototype.clone = function () {\r\n var m = Matrix.create();\r\n m.setTo(this.a, this.b, this.c, this.d, this.tx, this.ty);\r\n return m;\r\n };\r\n Matrix.prototype.concat = function (other) {\r\n var a = this.a * other.a;\r\n var b = 0.0;\r\n var c = 0.0;\r\n var d = this.d * other.d;\r\n var tx = this.tx * other.a + other.tx;\r\n var ty = this.ty * other.d + other.ty;\r\n if (this.b !== 0.0 || this.c !== 0.0 || other.b !== 0.0 || other.c !== 0.0) {\r\n a += this.b * other.c;\r\n d += this.c * other.b;\r\n b += this.a * other.b + this.b * other.d;\r\n c += this.c * other.a + this.d * other.c;\r\n tx += this.ty * other.c;\r\n ty += this.tx * other.b;\r\n }\r\n this.a = a;\r\n this.b = b;\r\n this.c = c;\r\n this.d = d;\r\n this.tx = tx;\r\n this.ty = ty;\r\n };\r\n Matrix.prototype.copyFrom = function (other) {\r\n this.a = other.a;\r\n this.b = other.b;\r\n this.c = other.c;\r\n this.d = other.d;\r\n this.tx = other.tx;\r\n this.ty = other.ty;\r\n return this;\r\n };\r\n Matrix.prototype.identity = function () {\r\n this.a = this.d = 1;\r\n this.b = this.c = this.tx = this.ty = 0;\r\n };\r\n Matrix.prototype.invert = function () {\r\n this.$invertInto(this);\r\n };\r\n Matrix.prototype.$invertInto = function (target) {\r\n var a = this.a;\r\n var b = this.b;\r\n var c = this.c;\r\n var d = this.d;\r\n var tx = this.tx;\r\n var ty = this.ty;\r\n if (b == 0 && c == 0) {\r\n target.b = target.c = 0;\r\n if (a == 0 || d == 0) {\r\n target.a = target.d = target.tx = target.ty = 0;\r\n }\r\n else {\r\n a = target.a = 1 / a;\r\n d = target.d = 1 / d;\r\n target.tx = -a * tx;\r\n target.ty = -d * ty;\r\n }\r\n return;\r\n }\r\n var determinant = a * d - b * c;\r\n if (determinant == 0) {\r\n target.identity();\r\n return;\r\n }\r\n determinant = 1 / determinant;\r\n var k = target.a = d * determinant;\r\n b = target.b = -b * determinant;\r\n c = target.c = -c * determinant;\r\n d = target.d = a * determinant;\r\n target.tx = -(k * tx + c * ty);\r\n target.ty = -(b * tx + d * ty);\r\n };\r\n Matrix.prototype.rotate = function (radian) {\r\n radian = +radian;\r\n if (radian !== 0) {\r\n var u = Math.cos(radian);\r\n var v = Math.sin(radian);\r\n var _a = this, a = _a.a, b = _a.b, c = _a.c, d = _a.d, tx = _a.tx, ty = _a.ty;\r\n this.a = a * u - b * v;\r\n this.b = a * v + b * u;\r\n this.c = c * u - d * v;\r\n this.d = c * v + d * u;\r\n this.tx = tx * u - ty * v;\r\n this.ty = tx * v + ty * u;\r\n }\r\n };\r\n Matrix.prototype.scale = function (sx, sy) {\r\n if (sx !== 1) {\r\n this.a *= sx;\r\n this.c *= sx;\r\n this.tx *= sx;\r\n }\r\n if (sy !== 1) {\r\n this.b *= sy;\r\n this.d *= sy;\r\n this.ty *= sy;\r\n }\r\n };\r\n Matrix.prototype.setTo = function (a, b, c, d, tx, ty) {\r\n this.a = a;\r\n this.b = b;\r\n this.c = c;\r\n this.d = d;\r\n this.tx = tx;\r\n this.ty = ty;\r\n return this;\r\n };\r\n Matrix.prototype.transformPoint = function (pointX, pointY, resultPoint) {\r\n var _a = this, a = _a.a, b = _a.b, c = _a.c, d = _a.d, tx = _a.tx, ty = _a.ty;\r\n var x = a * pointX + c * pointY + tx;\r\n var y = b * pointX + d * pointY + ty;\r\n if (resultPoint) {\r\n resultPoint.x = x;\r\n resultPoint.y = y;\r\n return resultPoint;\r\n }\r\n return { x: x, y: y };\r\n };\r\n Matrix.prototype.deltaTransformPoint = function (pointX, pointY, resultPoint) {\r\n var _a = this, a = _a.a, b = _a.b, c = _a.c, d = _a.d;\r\n var x = a * pointX + c * pointY;\r\n var y = b * pointX + d * pointY;\r\n if (resultPoint) {\r\n resultPoint.x = x;\r\n resultPoint.y = y;\r\n return resultPoint;\r\n }\r\n return { x: x, y: y };\r\n };\r\n Matrix.prototype.translate = function (dx, dy) {\r\n this.tx += dx;\r\n this.ty += dy;\r\n };\r\n Matrix.prototype.equals = function (other) {\r\n return this.a == other.a && this.b == other.b &&\r\n this.c == other.c && this.d == other.d &&\r\n this.tx == other.tx && this.ty == other.ty;\r\n };\r\n Matrix.prototype.prepend = function (a, b, c, d, tx, ty) {\r\n var tx1 = this.tx;\r\n if (a != 1 || b != 0 || c != 0 || d != 1) {\r\n var a1 = this.a;\r\n var c1 = this.c;\r\n this.a = a1 * a + this.b * c;\r\n this.b = a1 * b + this.b * d;\r\n this.c = c1 * a + this.d * c;\r\n this.d = c1 * b + this.d * d;\r\n }\r\n this.tx = tx1 * a + this.ty * c + tx;\r\n this.ty = tx1 * b + this.ty * d + ty;\r\n return this;\r\n };\r\n Matrix.prototype.append = function (a, b, c, d, tx, ty) {\r\n var a1 = this.a;\r\n var b1 = this.b;\r\n var c1 = this.c;\r\n var d1 = this.d;\r\n if (a != 1 || b != 0 || c != 0 || d != 1) {\r\n this.a = a * a1 + b * c1;\r\n this.b = a * b1 + b * d1;\r\n this.c = c * a1 + d * c1;\r\n this.d = c * b1 + d * d1;\r\n }\r\n this.tx = tx * a1 + ty * c1 + this.tx;\r\n this.ty = tx * b1 + ty * d1 + this.ty;\r\n return this;\r\n };\r\n Matrix.prototype.toString = function () {\r\n return \"(a=\" + this.a + \", b=\" + this.b + \", c=\" + this.c + \", d=\" + this.d + \", tx=\" + this.tx + \", ty=\" + this.ty + \")\";\r\n };\r\n Matrix.prototype.createBox = function (scaleX, scaleY, rotation, tx, ty) {\r\n if (rotation === void 0) { rotation = 0; }\r\n if (tx === void 0) { tx = 0; }\r\n if (ty === void 0) { ty = 0; }\r\n var self = this;\r\n if (rotation !== 0) {\r\n rotation = rotation / DEG_TO_RAD;\r\n var u = Math.cos(rotation);\r\n var v = Math.sin(rotation);\r\n self.a = u * scaleX;\r\n self.b = v * scaleY;\r\n self.c = -v * scaleX;\r\n self.d = u * scaleY;\r\n }\r\n else {\r\n self.a = scaleX;\r\n self.b = 0;\r\n self.c = 0;\r\n self.d = scaleY;\r\n }\r\n self.tx = tx;\r\n self.ty = ty;\r\n };\r\n Matrix.prototype.createGradientBox = function (width, height, rotation, tx, ty) {\r\n if (rotation === void 0) { rotation = 0; }\r\n if (tx === void 0) { tx = 0; }\r\n if (ty === void 0) { ty = 0; }\r\n this.createBox(width / 1638.4, height / 1638.4, rotation, tx + width / 2, ty + height / 2);\r\n };\r\n Matrix.prototype.$transformBounds = function (bounds) {\r\n var a = this.a;\r\n var b = this.b;\r\n var c = this.c;\r\n var d = this.d;\r\n var tx = this.tx;\r\n var ty = this.ty;\r\n var x = bounds.x;\r\n var y = bounds.y;\r\n var xMax = x + bounds.width;\r\n var yMax = y + bounds.height;\r\n var x0 = a * x + c * y + tx;\r\n var y0 = b * x + d * y + ty;\r\n var x1 = a * xMax + c * y + tx;\r\n var y1 = b * xMax + d * y + ty;\r\n var x2 = a * xMax + c * yMax + tx;\r\n var y2 = b * xMax + d * yMax + ty;\r\n var x3 = a * x + c * yMax + tx;\r\n var y3 = b * x + d * yMax + ty;\r\n var tmp = 0;\r\n if (x0 > x1) {\r\n tmp = x0;\r\n x0 = x1;\r\n x1 = tmp;\r\n }\r\n if (x2 > x3) {\r\n tmp = x2;\r\n x2 = x3;\r\n x3 = tmp;\r\n }\r\n bounds.x = Math.floor(x0 < x2 ? x0 : x2);\r\n bounds.width = Math.ceil((x1 > x3 ? x1 : x3) - bounds.x);\r\n if (y0 > y1) {\r\n tmp = y0;\r\n y0 = y1;\r\n y1 = tmp;\r\n }\r\n if (y2 > y3) {\r\n tmp = y2;\r\n y2 = y3;\r\n y3 = tmp;\r\n }\r\n bounds.y = Math.floor(y0 < y2 ? y0 : y2);\r\n bounds.height = Math.ceil((y1 > y3 ? y1 : y3) - bounds.y);\r\n };\r\n Matrix.prototype.getDeterminant = function () {\r\n return this.a * this.d - this.b * this.c;\r\n };\r\n Matrix.prototype.$getScaleX = function () {\r\n var m = this;\r\n if (m.b == 0) {\r\n return m.a;\r\n }\r\n var result = Math.sqrt(m.a * m.a + m.b * m.b);\r\n return this.getDeterminant() < 0 ? -result : result;\r\n };\r\n Matrix.prototype.$getScaleY = function () {\r\n var m = this;\r\n if (m.c == 0) {\r\n return m.d;\r\n }\r\n var result = Math.sqrt(m.c * m.c + m.d * m.d);\r\n return this.getDeterminant() < 0 ? -result : result;\r\n };\r\n Matrix.prototype.$getSkewX = function () {\r\n if (this.d < 0) {\r\n return Math.atan2(this.d, this.c) + (PI / 2);\r\n }\r\n else {\r\n return Math.atan2(this.d, this.c) - (PI / 2);\r\n }\r\n };\r\n Matrix.prototype.$getSkewY = function () {\r\n if (this.a < 0) {\r\n return Math.atan2(this.b, this.a) - PI;\r\n }\r\n else {\r\n return Math.atan2(this.b, this.a);\r\n }\r\n };\r\n Matrix.prototype.$updateScaleAndRotation = function (scaleX, scaleY, skewX, skewY) {\r\n if ((skewX == 0 || skewX == TwoPI) && (skewY == 0 || skewY == TwoPI)) {\r\n this.a = scaleX;\r\n this.b = this.c = 0;\r\n this.d = scaleY;\r\n return;\r\n }\r\n skewX = skewX / DEG_TO_RAD;\r\n skewY = skewY / DEG_TO_RAD;\r\n var u = Math.cos(skewX);\r\n var v = Math.sin(skewX);\r\n if (skewX == skewY) {\r\n this.a = u * scaleX;\r\n this.b = v * scaleX;\r\n }\r\n else {\r\n this.a = Math.cos(skewY) * scaleX;\r\n this.b = Math.sin(skewY) * scaleX;\r\n }\r\n this.c = -v * scaleY;\r\n this.d = u * scaleY;\r\n };\r\n Matrix.prototype.$preMultiplyInto = function (other, target) {\r\n var a = other.a * this.a;\r\n var b = 0.0;\r\n var c = 0.0;\r\n var d = other.d * this.d;\r\n var tx = other.tx * this.a + this.tx;\r\n var ty = other.ty * this.d + this.ty;\r\n if (other.b !== 0.0 || other.c !== 0.0 || this.b !== 0.0 || this.c !== 0.0) {\r\n a += other.b * this.c;\r\n d += other.c * this.b;\r\n b += other.a * this.b + other.b * this.d;\r\n c += other.c * this.a + other.d * this.c;\r\n tx += other.ty * this.c;\r\n ty += other.tx * this.b;\r\n }\r\n target.a = a;\r\n target.b = b;\r\n target.c = c;\r\n target.d = d;\r\n target.tx = tx;\r\n target.ty = ty;\r\n };\r\n return Matrix;\r\n}());\r\nexport default Matrix;\r\n//# sourceMappingURL=Matrix.js.map"}
{"map":"{\"version\":3,\"file\":\"GameGetSubmitResultData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/submit/GameGetSubmitResultData.ts\"],\"names\":[],\"mappings\":\";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAK1C;IAA6C,mDAAI;IAAjD;;IA6DA,CAAC;IAnCU,wCAAM,GAAb,UAAc,MAAW;QACrB,IAAG,CAAC,MAAM,EAAE;YACR,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;QAC7B,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE;YACpB,IAAI,C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E;YACrB,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YAC3C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;SACvB;QACD,IAAI,IAAI,CAAC,OAAO,EAAE;YACd,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;SACvD;aAAM,IAAI,IAAI,CAAC,QAAQ,EAAE;YACtB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;SACxB;QACD,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;IACnC,CAAC;IACL,8BAAC;AAAD,CAAC,AA7DD,CAA6C,IAAI,GA6DhD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { LotteryData } from './../../common/lottery/LotteryData';\r\nimport { Data } from './../../Data';\r\nimport { GPool } from 'src/tw/util/GPool';\r\nvar GameGetSubmitResultData = (function (_super) {\r\n tslib_1.__extends(GameGetSubmitResultData, _super);\r\n function GameGetSubmitResultData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GameGetSubmitResultData.prototype.update = function (result) {\r\n if (!result) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, result);\r\n this.flag = result.data.flag;\r\n if (result.data.option) {\r\n this.lottery = GPool.takeOut('LotteryData', LotteryData);\r\n if (!this.lottery) {\r\n this.lottery = new LotteryData();\r\n }\r\n if (!result.data.option.lottery) {\r\n result.data.option.lottery = {};\r\n }\r\n result.data.option.lottery.type = result.data.option.type;\r\n result.data.option.lottery.stinfodpmgouse = result.data.useDpm;\r\n result.data.option.lottery.stinfodpmimg = result.data.useDpm;\r\n result.data.option.lottery.imgurl = result.data.option.image;\r\n result.data.option.lottery.link = result.data.option.link;\r\n result.data.option.lottery.name = result.data.option.name;\r\n result.data.option.lottery.type = result.data.option.type;\r\n this.lottery.update(result.data.option.lottery);\r\n }\r\n else if (this.lottery) {\r\n GPool.recover('LotteryData', this.lottery);\r\n this.lottery = null;\r\n }\r\n if (this.lottery) {\r\n this.exposure = result.data.option.lottery.exposure;\r\n }\r\n else if (this.exposure) {\r\n this.exposure = null;\r\n }\r\n this.againExposure = JSON.parse(result.data.againDpm);\r\n this.score = result.data.score;\r\n };\r\n return GameGetSubmitResultData;\r\n}(Data));\r\nexport { GameGetSubmitResultData };\r\n//# sourceMappingURL=GameGetSubmitResultData.js.map"}
{"map":"{\"version\":3,\"file\":\"openCollectGoodsPrizeData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/common/openCollectGoodsPrize/openCollectGoodsPrizeData.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC;IAA+C,qDAAI;IAAnD;;IAaA,CAAC;IAPU,0CAAM,GAAb,UAAc,IAAS;QACnB,IAAG,CAAC,IAAI,EAAE;YACN,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,CAAC;IACL,gCAAC;AAAD,CAAC,AAbD,CAA+C,IAAI,GAalD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from './../../Data';\r\nvar OpenCollectGoodsPrizeData = (function (_super) {\r\n tslib_1.__extends(OpenCollectGoodsPrizeData, _super);\r\n function OpenCollectGoodsPrizeData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n OpenCollectGoodsPrizeData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.orderId = data.orderId;\r\n };\r\n return OpenCollectGoodsPrizeData;\r\n}(Data));\r\nexport { OpenCollectGoodsPrizeData };\r\n//# sourceMappingURL=openCollectGoodsPrizeData.js.map"}
{"map":"{\"version\":3,\"file\":\"Button.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/ui/Button.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,WAAW,GAAW,MAAM,QAAQ,CAAC;AAC7C,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAE5C;IAAoC,kCAAiB;IAWpD;QAAA,YACC,iBAAO,SAGP;QADA,KAAI,CAAC,cAAc,GAAG,IAAI,CAAC;;IAC5B,CAAC;IAED,sBAAI,6BAAS;aAAb;YACC,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC3D,CAAC;;;OAAA;IAED,yBAAQ,GAAR,UAAS,KAAK,EAAE,GAAG,EAAE,QAAQ;QAC5B,iBAAM,QAAQ,YAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;QAErC,IAAI,GAAG,KAAK,cAAc,EAAE;YAC3B,IAAG,IAAI,CAAC,SAAS,EAAC;gBACjB,IAAI,CAAC,SAAS,CAAC,YAAY,GAAG,KAAK,CAAC;aACpC;YACD,IAAI;gBACH,IAAI,CAAC,aAAa,EAAE,CAAC;aACrB;YAAA,OAAO,CAAC,EAAE,GAAE;SACb;IACF,CAAC;IAED,yBAAQ,GAAR;QACC,iBAAM,QAAQ,WAAE,CAAC;QAEjB,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;IAClC,CAAC;IAED,wBAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAEhB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;QAE5D,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK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AAY,EAAC;YACpB,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;SAC1C;aAAI;YACJ,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC;SAC3C;IACF,CAAC;IACF,aAAC;AAAD,CAAC,AAlGD,CAAoC,iBAAiB,GAkGpD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaEvent, } from \"scilla\";\r\nimport TouchZoom from \"../animation/TouchZoom\";\r\nimport { InteractComponent } from \"../base\";\r\nimport { TextureRenderer } from \"../renderer\";\r\nvar Button = (function (_super) {\r\n tslib_1.__extends(Button, _super);\r\n function Button() {\r\n var _this = _super.call(this) || this;\r\n _this.touchInterrupt = true;\r\n return _this;\r\n }\r\n Object.defineProperty(Button.prototype, \"touchZoom\", {\r\n get: function () {\r\n return this.entity && this.entity.getComponent(TouchZoom);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Button.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n if (key === 'interactable') {\r\n if (this.touchZoom) {\r\n this.touchZoom.interactable = value;\r\n }\r\n try {\r\n this.changeTexture();\r\n }\r\n catch (e) { }\r\n }\r\n };\r\n Button.prototype.onCreate = function () {\r\n _super.prototype.onCreate.call(this);\r\n this.onClick = new ScillaEvent();\r\n };\r\n Button.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n this.bgRenderer = this.entity.getComponent(TextureRenderer);\r\n this.changeTexture(this.upRes);\r\n };\r\n Button.prototype.onTouchBegin = function (e) {\r\n _super.prototype.onTouchBegin.call(this, e);\r\n this.touchBeginWithSelf = true;\r\n this.changeTexture(this.downRes);\r\n };\r\n Button.prototype.onTouchOver = function (e) {\r\n _super.prototype.onTouchOver.call(this, e);\r\n if (this.touchBeginWithSelf) {\r\n this.touchBeginWithSelf = true;\r\n this.changeTexture(this.downRes);\r\n }\r\n this.touchOut = false;\r\n };\r\n Button.prototype.onTouchOut = function (e) {\r\n _super.prototype.onTouchOut.call(this, e);\r\n if (this.touchBeginWithSelf) {\r\n this.changeTexture(this.upRes);\r\n }\r\n this.touchOut = true;\r\n };\r\n Button.prototype.onGlobalTouchEnd = function (e) {\r\n _super.prototype.onGlobalTouchEnd.call(this, e);\r\n if (this.touchBeginWithSelf && !this.touchOut) {\r\n this.onClick.invoke();\r\n }\r\n this.touchBeginWithSelf = false;\r\n this.changeTexture(this.upRes);\r\n };\r\n Button.prototype.changeTexture = function (res) {\r\n if (!this.bgRenderer) {\r\n return;\r\n }\r\n this.currentRes = res || this.upRes;\r\n if (this.interactable) {\r\n this.bgRenderer.texture = this.currentRes;\r\n }\r\n else {\r\n this.bgRenderer.texture = this.disabledRes;\r\n }\r\n };\r\n return Button;\r\n}(InteractComponent));\r\nexport default Button;\r\n//# sourceMappingURL=Button.js.map"}
{"map":"{\"version\":3,\"file\":\"manager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/manager.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,YAAY,IAAI,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAC,KAAK,EAAE,SAAS,EAAE,YAAY,IAAI,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAC7F,OAAO,yBAAyB,CAAC;AAMjC,IAAI,OAAO,GAAQ;IAClB,GAAG,EAAE,EAAE;IACP,WAAW,EAAE,GAAG;IAChB,YAAY,EAAE,IAAI;IAClB,SAAS,EAAE,SAAS,CAAC,WAAW;CAChC,CAAC;AAEF,IAAI,IAAY,CAAC;AAEjB,IAAI,MAAM,GAAG,CAAC,EAAE,aAAa,GAAG,CAAC,CAAC;AAClC,IAAI,OAAO,EAAE,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AAC,CAAC;IACnC,CAAC,CAAC,CAAA;AACH,CAAC;AAMD,SAAS,WAAW,CAAC,KAAK;IACzB,iBAAiB,CAAC,IAAI,EAAE,UAAU,KAAK;QACtC,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAA;AACH,CAAC;AAMD,SAAS,UAAU,CAAC,KAAK;IACxB,iBAAiB,CAAC,IAAI,EAAE,UAAU,KAAK;QACtC,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAA;AACH,CAAC\"}","code":"import { Entity, traverse, traversePostorder } from \"./Entity\";\r\nimport { injectProp } from \"../tools/utils\";\r\nimport { setupContext as setupInteractContext } from \"./context/InteractContext\";\r\nimport { clear, ScaleMode, setupContext as setupRenderContext } from \"./context/RenderContext\";\r\nimport './requestAnimationFrame';\r\nvar options = {\r\n fps: 60,\r\n designWidth: 750,\r\n designHeight: 1334,\r\n scaleMode: ScaleMode.FIXED_WIDTH,\r\n};\r\nvar root;\r\nvar _flush = 0, _currentFlush = 0;\r\nvar tsStart, tsLast;\r\nvar lastFPS = 0;\r\nexport function setup(_options) {\r\n injectProp(options, _options);\r\n var canvas = options.canvas, designWidth = options.designWidth, designHeight = options.designHeight, scaleMode = options.scaleMode, modifyCanvasSize = options.modifyCanvasSize;\r\n var canvasElement = typeof canvas == 'object' ? canvas : document.getElementById(canvas);\r\n setupInteractContext({\r\n canvas: canvasElement,\r\n touchHandler: {\r\n onTouchBegin: onTouchBegin,\r\n onTouchMove: onTouchMove,\r\n onTouchEnd: onTouchEnd,\r\n }\r\n });\r\n setupRenderContext({\r\n canvas: canvasElement,\r\n designWidth: designWidth,\r\n designHeight: designHeight,\r\n scaleMode: scaleMode,\r\n modifyCanvasSize: modifyCanvasSize,\r\n });\r\n root = new Entity('root');\r\n root._restrict();\r\n}\r\nexport function start() {\r\n root.enabled = true;\r\n tsStart = Date.now();\r\n startTick();\r\n}\r\nexport function pause() {\r\n root.enabled = false;\r\n stopTick();\r\n}\r\nexport function getRoot() {\r\n return root;\r\n}\r\nexport function getFPS() {\r\n return lastFPS;\r\n}\r\nfunction startTick() {\r\n _flush = 60 / options.fps - 1 >> 0;\r\n if (_flush < 0) {\r\n _flush = 0;\r\n }\r\n requestAnimationFrame(flush);\r\n}\r\nfunction stopTick() {\r\n}\r\nvar tsLast2;\r\nfunction flush(tsNow) {\r\n if (_flush == 0) {\r\n onFrameTick(tsNow);\r\n }\r\n else {\r\n if (_currentFlush == 0) {\r\n onFrameTick(tsNow);\r\n _currentFlush = _flush;\r\n }\r\n else {\r\n _currentFlush--;\r\n }\r\n }\r\n requestAnimationFrame(flush);\r\n}\r\nfunction onFrameTick(tsNow) {\r\n clear();\r\n var tsNow2 = Date.now();\r\n lastFPS = Math.floor(1000 / (tsNow - tsLast));\r\n tsLast = tsNow;\r\n tsLast2 = tsNow2;\r\n var ts = tsNow - tsStart;\r\n traverse(root, function (child) {\r\n if (!child.isFree && child.enabled) {\r\n child.onUpdate(ts);\r\n }\r\n else {\r\n return true;\r\n }\r\n }, -1, true, function (current) {\r\n current.afterUpdate();\r\n });\r\n}\r\nfunction onTouchBegin(event) {\r\n traversePostorder(root, function (child) {\r\n return child.onInteract(0, event);\r\n });\r\n}\r\nfunction onTouchMove(event) {\r\n traversePostorder(root, function (child) {\r\n return child.onInteract(1, event);\r\n });\r\n}\r\nfunction onTouchEnd(event) {\r\n traversePostorder(root, function (child) {\r\n return child.onInteract(2, event);\r\n });\r\n}\r\n//# sourceMappingURL=manager.js.map"}
{"map":"{\"version\":3,\"file\":\"DataManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../src/tw/manager/DataManager.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,iB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C;;;OAAA;IAKD,sBAAW,uCAAc;aAAzB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;;;OAAA;IAmBD,sBAAW,qCAAY;aAAvB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;;;OAAA;IAED,sBAAW,0CAAiB;aAA5B;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;;;OAAA;IACD,sBAAW,0CAAiB;aAA5B;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;;;OAAA;IACD,sBAAW,sCAAa;aAAxB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;;;OAAA;IA2HL,kBAAC;AAAD,CAAC,AA5vBD,CAAiC,aAAa,GA4vB7C\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ABDataManager } from './ABDataManager';\r\nimport { GetInfoData } from '../data/game/getInfo/GetInfoData';\r\nimport { GetSummerInfoData } from '../data/game/getInfo/GetSummerInfoData';\r\nimport { GetRoleData } from '../data/common/getRole/GetRoleData';\r\nimport { GetUserTotalScoreData } from '../data/game/getUserTotalScore/GetUserTotalScoreData';\r\nimport { GetCreditsData } from '../data/common/getCredits/GetCreditsData';\r\nimport { DoStartData } from '../data/game/doStart/DoStartData';\r\nimport { GetStartStatusData } from '../data/game/doStart/GetStartStatusData';\r\nimport { DoReviveData } from '../data/game/doRevive/DoReviveData';\r\nimport { GetReviveCardNumData } from '../data/game/doRevive/GetReviveCardNumData';\r\nimport { GameSubmitData } from '../data/game/submit/GameSubmitData';\r\nimport { GameGetSubmitResultData } from '../data/game/submit/GameGetSubmitResultData';\r\nimport { WinRanksData } from '../data/game/winranks/WinRanksData';\r\nimport { GetOptionsData } from '../data/game/getOptions/GetOptionsData';\r\nimport { GetRuleData } from '../data/game/getRule/GetRuleData';\r\nimport { AddTimesForActivityData } from '../data/common/addTimesForActivity/AddTimesForActivityData';\r\nimport { GetCollectRuleData } from '../data/common/getCollectRule/GetCollectRuleData';\r\nimport { OpenCollectGoodsPrizeData } from '../data/common/openCollectGoodsPrize/openCollectGoodsPrizeData';\r\nimport { RealTimeRankData } from '../data/game/realtimerank/RealTimeRankData';\r\nimport { SetRoleData } from '../data/common/setRole/SetRoleData';\r\nimport { ReconAjaxElementData } from '../data/custom/ajaxElement/ReconAjaxElementData';\r\nimport { AjaxThroughInfoData } from '../data/custom/ajaxThroughInfo/AjaxThroughInfoData';\r\nimport { DoJoinData } from '../data/custom/doJoin/DoJoinData';\r\nimport { GetCustomOrderStatusData } from '../data/custom/doJoin/GetCustomOrderStatusData';\r\nimport { GetOrderInfoData } from '../data/custom/getOrderInfo/GetOrderInfoData';\r\nimport { ThroughSubmitData } from '../data/custom/throughSubmit/ThroughSubmitData';\r\nimport { BeforSubmitData } from '../data/custom/beforSubmit/BeforSubmitData';\r\nimport { QuestionSubmitData } from '../data/custom/questionSbumit/QuestionSubmitData';\r\nimport { GuessPokerData } from '../data/game/guessPoker/GuessPokerData';\r\nimport { DatapashData } from '../data/game/datapash/DatapashData';\r\nimport { GetRecordData } from '../data/common/GetRecordData';\r\nimport { NetName } from '../enum/NetName';\r\nvar DataManager = (function (_super) {\r\n tslib_1.__extends(DataManager, _super);\r\n function DataManager() {\r\n var _this = _super.call(this) || this;\r\n _this._getPrizeInfoList = {};\r\n if (_this.isInit) {\r\n }\r\n _this.isInit = true;\r\n return _this;\r\n }\r\n Object.defineProperty(DataManager, \"ins\", {\r\n get: function () {\r\n if (!this.instance) {\r\n this.instance = new DataManager();\r\n }\r\n return this.instance;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n DataManager.prototype.updateData = function (name, result, param) {\r\n var data;\r\n switch (name) {\r\n case NetName.GET_ROLE:\r\n if (!this._getRoleData) {\r\n this._getRoleData = new GetRoleData();\r\n }\r\n this._getRoleData.update(result);\r\n data = this._getRoleData;\r\n break;\r\n case NetName.GAME_TOTAL_SCORE:\r\n if (!this._getUserTotalScoreData) {\r\n this._getUserTotalScoreData = new GetUserTotalScoreData();\r\n }\r\n this._getUserTotalScoreData.update(result);\r\n data = this._getUserTotalScoreData;\r\n break;\r\n case NetName.GET_CREDITS:\r\n if (!this._getCreditsData) {\r\n this._getCreditsData = new GetCreditsData();\r\n }\r\n this._getCreditsData.update(result);\r\n data = this._getCreditsData;\r\n break;\r\n case NetName.GAME_INFO:\r\n if (!this._getInfoData) {\r\n this._getInfoData = new GetInfoData();\r\n }\r\n this._getInfoData.update(result);\r\n data = this._getInfoData;\r\n break;\r\n case NetName.GAME_SUMMERINFO:\r\n if (!this._getSummerInfoData) {\r\n this._getSummerInfoData = new GetSummerInfoData();\r\n }\r\n this._getSummerInfoData.update(result);\r\n data = this._getSummerInfoData;\r\n break;\r\n case NetName.GAME_START:\r\n if (!this._doStartData) {\r\n this._doStartData = new DoStartData();\r\n }\r\n this._doStartData.update(result);\r\n data = this._doStartData;\r\n break;\r\n case NetName.GAME_START_STATUS:\r\n if (!this._getStartStatusData) {\r\n this._getStartStatusData = new GetStartStatusData();\r\n }\r\n this._getStartStatusData.update(result);\r\n data = this._getStartStatusData;\r\n break;\r\n case NetName.GAME_REVIVE:\r\n if (!this._doReviveData) {\r\n this._doReviveData = new DoReviveData();\r\n }\r\n this._doReviveData.update(result);\r\n data = this._doReviveData;\r\n break;\r\n case NetName.GAME_REVIVE_STATUS:\r\n if (!this._getReviveCardNumData) {\r\n this._getReviveCardNumData = new GetReviveCardNumData();\r\n }\r\n this._getReviveCardNumData.update(result);\r\n data = this._getReviveCardNumData;\r\n break;\r\n case NetName.GAME_SUBMIT:\r\n if (!this._gameSubmitData) {\r\n this._gameSubmitData = new GameSubmitData();\r\n }\r\n this._gameSubmitData.update(result);\r\n data = this._gameSubmitData;\r\n if (result.data) {\r\n this._getInfoData.update(result);\r\n }\r\n break;\r\n case NetName.HD_GAME_SUBMIT:\r\n this._HDgameSubmitData = result;\r\n data = this._HDgameSubmitData;\r\n break;\r\n case NetName.GAME_SUBMIT_STATUS:\r\n if (!this._gameGetSubmitResultData) {\r\n this._gameGetSubmitResultData = new GameGetSubmitResultData();\r\n }\r\n this._gameGetSubmitResultData.update(result);\r\n data = this._gameGetSubmitResultData;\r\n break;\r\n case NetName.GAME_RANKS:\r\n if (!this._winRanksData) {\r\n this._winRanksData = new WinRanksData();\r\n }\r\n this._winRanksData.update(result);\r\n data = this._winRanksData;\r\n break;\r\n case NetName.GAME_OPTIONS:\r\n if (!this._getOptionsData) {\r\n this._getOptionsData = new GetOptionsData();\r\n }\r\n this._getOptionsData.update(result);\r\n data = this._getOptionsData;\r\n break;\r\n case NetName.GAME_RULE:\r\n if (!this._getRuleData) {\r\n this._getRuleData = new GetRuleData();\r\n }\r\n this._getRuleData.update(result);\r\n data = this._getRuleData;\r\n break;\r\n case NetName.ADD_TIMES:\r\n if (!this._addTimesForActivityData) {\r\n this._addTimesForActivityData = new AddTimesForActivityData();\r\n }\r\n this._addTimesForActivityData.update(result);\r\n data = this._addTimesForActivityData;\r\n break;\r\n case NetName.COLLECT_RULE:\r\n if (!this._getCollectRuleData) {\r\n this._getCollectRuleData = new GetCollectRuleData();\r\n }\r\n this._getCollectRuleData.update(result);\r\n data = this._getCollectRuleData;\r\n break;\r\n case NetName.OPEN_COLLECT:\r\n if (!this._openCollectGoodsPrizeData) {\r\n this._openCollectGoodsPrizeData = new OpenCollectGoodsPrizeData();\r\n }\r\n this._openCollectGoodsPrizeData.update(result);\r\n data = this._openCollectGoodsPrizeData;\r\n break;\r\n case NetName.GAME_REAL_TIME_RANK:\r\n if (!this._realTimeRankData) {\r\n this._realTimeRankData = new RealTimeRankData();\r\n }\r\n this._realTimeRankData.update(result);\r\n data = this._realTimeRankData;\r\n break;\r\n case NetName.SET_ROLE:\r\n if (!this._setRoleData) {\r\n this._setRoleData = new SetRoleData();\r\n }\r\n this._setRoleData.update(result);\r\n data = this._setRoleData;\r\n break;\r\n case NetName.CUSTOM_RECON_ELEMENT:\r\n if (!this._recnAjaxElementData) {\r\n this._recnAjaxElementData = new ReconAjaxElementData();\r\n }\r\n this._recnAjaxElementData.update(result.data);\r\n data = this._recnAjaxElementData;\r\n break;\r\n case NetName.CUSTOM_THROUGH_INFO:\r\n if (!this._ajaxThroughInfoData) {\r\n this._ajaxThroughInfoData = new AjaxThroughInfoData();\r\n }\r\n this._ajaxThroughInfoData.update(result);\r\n data = this._ajaxThroughInfoData;\r\n break;\r\n case NetName.CUSTOM_DO_JOIN:\r\n if (!this._doJoinData) {\r\n this._doJoinData = new DoJoinData();\r\n }\r\n this._doJoinData.update(result);\r\n data = this._doJoinData;\r\n break;\r\n case NetName.HD_GAME_ORDER_STATUS:\r\n this._getHdStartStatusData = result;\r\n data = this._getHdStartStatusData;\r\n break;\r\n case NetName.CUSTOM_ORDER_STATUS:\r\n if (!this._getCustomOrderStatusData) {\r\n this._getCustomOrderStatusData = new GetCustomOrderStatusData();\r\n }\r\n this._getCustomOrderStatusData.update(result);\r\n data = this._getCustomOrderStatusData;\r\n if (result.data && result.data.element)\r\n this._recnAjaxElementData.element = result.data.element;\r\n break;\r\n case NetName.CUSTOM_ORDER_INFO:\r\n if (!this._getOrderInfoData) {\r\n this._getOrderInfoData = new GetOrderInfoData();\r\n }\r\n this._getOrderInfoData.update(result);\r\n data = this._getOrderInfoData;\r\n break;\r\n case NetName.CUSTOM_THROUGH_SUBMIT:\r\n if (!this._throughSubmitData) {\r\n this._throughSubmitData = new ThroughSubmitData();\r\n }\r\n this._throughSubmitData.update(result);\r\n data = this._throughSubmitData;\r\n break;\r\n case NetName.CUSTOM_BEFOR_SUBMIT:\r\n if (!this._beforSubmitData) {\r\n this._beforSubmitData = new BeforSubmitData();\r\n }\r\n this._beforSubmitData.update(result);\r\n data = this._beforSubmitData;\r\n break;\r\n case NetName.CUSTOM_QUESTION_SUBMIT:\r\n if (!this._questionSubmitData) {\r\n this._questionSubmitData = new QuestionSubmitData();\r\n }\r\n this._questionSubmitData.update(result);\r\n data = this._questionSubmitData;\r\n break;\r\n case NetName.GAME_GUESS_POKER:\r\n if (!this._guessPokerData) {\r\n this._guessPokerData = new GuessPokerData();\r\n }\r\n this._guessPokerData.update(result);\r\n data = this._guessPokerData;\r\n break;\r\n case NetName.GAME_DATA_PASH:\r\n if (!this._datapashData) {\r\n this._datapashData = new DatapashData();\r\n }\r\n this._datapashData.update(result);\r\n data = this._datapashData;\r\n break;\r\n case NetName.GAME_SUMMER_BUYPROP:\r\n this._summerBuyPropData = result;\r\n data = result;\r\n break;\r\n case NetName.GAME_SUMMER_GET_ORDER_STATUS:\r\n this._summerOrderStatus = result;\r\n data = result;\r\n break;\r\n case NetName.GAME_SUMMER_GET_TOY_INFO:\r\n this._summerToyInfo = result;\r\n data = result;\r\n break;\r\n case NetName.GET_RECORD:\r\n if (!this._getRecordData) {\r\n this._getRecordData = new GetRecordData();\r\n }\r\n this._getRecordData.update(result);\r\n data = this._getRecordData;\r\n default:\r\n this[this.getKey(name)] = result;\r\n }\r\n return data || result;\r\n };\r\n DataManager.prototype.getData = function (name) {\r\n return this[this.getKey(name)];\r\n };\r\n DataManager.prototype.getKey = function (name) {\r\n return \"_tw_data_\" + name + \"_\";\r\n };\r\n Object.defineProperty(DataManager.prototype, \"getInfoData\", {\r\n get: function () {\r\n return this._getInfoData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"getSummerInfoData\", {\r\n get: function () {\r\n return this._getSummerInfoData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"getRoleData\", {\r\n get: function () {\r\n return this._getRoleData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"getUserTotalScoreData\", {\r\n get: function () {\r\n return this._getUserTotalScoreData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"getCreditsData\", {\r\n get: function () {\r\n return this._getCreditsData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"doStartData\", {\r\n get: function () {\r\n return this._doStartData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"getStartStatusData\", {\r\n get: function () {\r\n return this._getStartStatusData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"doReviveData\", {\r\n get: function () {\r\n return this._doReviveData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"getReviveCardNumData\", {\r\n get: function () {\r\n return this._getReviveCardNumData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"gameSubmitData\", {\r\n get: function () {\r\n return this._gameSubmitData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"HDGameSubmitData\", {\r\n get: function () {\r\n return this._HDgameSubmitData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"gameGetSubmitResultData\", {\r\n get: function () {\r\n return this._gameGetSubmitResultData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"winRanksData\", {\r\n get: function () {\r\n return this._winRanksData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"getOptionsData\", {\r\n get: function () {\r\n return this._getOptionsData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"getRuleData\", {\r\n get: function () {\r\n return this._getRuleData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"addTimesForActivityData\", {\r\n get: function () {\r\n return this._addTimesForActivityData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"getCollectRuleData\", {\r\n get: function () {\r\n return this._getCollectRuleData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"openCollectGoodsPrizeData\", {\r\n get: function () {\r\n return this._openCollectGoodsPrizeData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"realTimeRankData\", {\r\n get: function () {\r\n return this._realTimeRankData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"setRoleData\", {\r\n get: function () {\r\n return this._setRoleData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"reconAjaxElementData\", {\r\n get: function () {\r\n return this._recnAjaxElementData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"ajaxElementData\", {\r\n get: function () {\r\n return this._recnAjaxElementData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"ajaxThroughInfoData\", {\r\n get: function () {\r\n return this._ajaxThroughInfoData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"doJoinData\", {\r\n get: function () {\r\n return this._doJoinData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"getCustomOrderStatusData\", {\r\n get: function () {\r\n return this._getCustomOrderStatusData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"getOrderInfoData\", {\r\n get: function () {\r\n return this._getOrderInfoData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"throughSubmitData\", {\r\n get: function () {\r\n return this._throughSubmitData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"beforSubmitData\", {\r\n get: function () {\r\n return this._beforSubmitData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"questionSubmitData\", {\r\n get: function () {\r\n return this._questionSubmitData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"guessPokerData\", {\r\n get: function () {\r\n return this._guessPokerData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"datapashData\", {\r\n get: function () {\r\n return this._datapashData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"summerBuyPropData\", {\r\n get: function () {\r\n return this._summerBuyPropData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"summerOrderStatus\", {\r\n get: function () {\r\n return this._summerOrderStatus;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataManager.prototype, \"summerToyInfo\", {\r\n get: function () {\r\n return this._summerToyInfo;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return DataManager;\r\n}(ABDataManager));\r\nexport { DataManager };\r\n//# sourceMappingURL=DataManager.js.map"}
{"map":"{\"version\":3,\"file\":\"GPool.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../src/tw/util/GPool.ts\"],\"names\":[],\"mappings\":\"AAGA;IAAA;IA4DA,CAAC;IAnDiB,uBAAiB,GAA/B,UAAgC,SAAc,EAAE,KAAK;QACjD,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC;IACrC,CAAC;IAOa,aAAO,GAArB,UAAsB,SAAiB,EAAE,QAAc,EAAE,QAAkB;QACvE,IAAI,CAAC,SAAS,IAAI,SAAS,IAAI,EAAE,EAAE;YAC/B,OAAO;SACV;QACD,IAAI,GAAQ,CAAC;QAEb,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE;YACrD,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;SACtC;aAAM,IAAI,QAAQ,EAAE;YACjB,IAAI,CAAC,QAAQ,EAAE;gBACX,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;aAC9B;YACD,GAAG,GAAG,IAAI,QAAQ,EAAE,CAAC;SACxB;QACD,OAAO,GAAG,CAAC;IACf,CAAC;IAOa,aAAO,GAArB,UAAsB,SAAiB,EAAE,GAAQ;QAC7C,IAAI,CAAC,GAAG,IAAI,CAAC,SAAS,EAAE;YACpB,OAAO;SACV;QACD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;YACvB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC;SAC7B;QAED,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;YAC3B,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC;SAClC;QAED,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;YACxD,OAAO;SACV;QACD,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,GAAG,CAAC,SAAS,CAAC,EAAE;YAChB,GAAG,CAAC,OAAO,EAAE,CAAC;SACjB;IACL,CAAC;IA1Dc,UAAI,GAAQ,EAAE,CAAC;IACf,cAAQ,GAAG,EAAE,CAAC;IA0DjC,YAAC;CAAA,AA5DD,IA4DC;SA5DY,KAAK\"}","code":"var GPool = (function () {\r\n function GPool() {\r\n }\r\n GPool.setMaxCountByType = function (className, count) {\r\n this.maxCount[className] = count;\r\n };\r\n GPool.takeOut = function (className, classObj, isCreate) {\r\n if (!className || className == '') {\r\n return;\r\n }\r\n var obj;\r\n if (this.pool[className] && this.pool[className].length) {\r\n obj = this.pool[className].shift();\r\n }\r\n else if (isCreate) {\r\n if (!classObj) {\r\n classObj = eval(className);\r\n }\r\n obj = new classObj();\r\n }\r\n return obj;\r\n };\r\n GPool.recover = function (className, obj) {\r\n if (!obj || !className) {\r\n return;\r\n }\r\n if (!this.pool[className]) {\r\n this.pool[className] = [];\r\n }\r\n if (!this.maxCount[className]) {\r\n this.maxCount[className] = 100;\r\n }\r\n if (this.pool[className].length > this.maxCount[className]) {\r\n return;\r\n }\r\n this.pool[className].push(obj);\r\n if (obj['dispose']) {\r\n obj.dispose();\r\n }\r\n };\r\n GPool.pool = {};\r\n GPool.maxCount = {};\r\n return GPool;\r\n}());\r\nexport { GPool };\r\n//# sourceMappingURL=GPool.js.map"}
{"map":"{\"version\":3,\"file\":\"RectRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/RectRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAA;AAE1B,IAAA,kDAAkB,CAAe;AAKxC;IAA0C,wCAAe;IAAzD;QAAA,qEAsCC;QApCA,WAAK,GAAG,GAAG,CAAC;QAEZ,YAAM,GAAG,GAAG,CAAC;QAEb,kBAAY,GAAG,CAAC,CAAC;;IAgClB,CAAC;IA9BU,oCAAa,GAAvB;QACO,IAAA,SAAsB,EAArB,gBAAK,EAAE,kBAAc,CAAC;QAC7B,OAAO,EAAC,KAAK,OAAA,EAAE,MAAM,QAAA,EAAC,CAAC;IACxB,CAAC;IAKS,2BAAI,GAAd;QACQ,IAAA,YAAE,CAAS;QACZ,IAAA,SAAkF,EAAjF,oBAAO,EAAE,mBAAe,EAAE,cAAuB,EAAd,gBAAK,EAAE,kBAAM,EAAG,oBAAO,EAAE,gCAAqB,CAAC;QAEzF,IAAI,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CA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E,CAAC;IACd,CAAC;IAnCD;QADC,kBAAkB;+CACP;IAEZ;QADC,kBAAkB;gDACN;IAEb;QADC,kBAAkB;sDACF;IAgClB,mBAAC;CAAA,AAtCD,CAA0C,eAAe,GAsCxD;eAtCoB,YAAY\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nimport { decorators } from 'scilla';\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector;\r\nvar RectRenderer = (function (_super) {\r\n tslib_1.__extends(RectRenderer, _super);\r\n function RectRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.width = 100;\r\n _this.height = 100;\r\n _this.cornerRadius = 0;\r\n return _this;\r\n }\r\n RectRenderer.prototype.getRenderSize = function () {\r\n var _a = this, width = _a.width, height = _a.height;\r\n return { width: width, height: height };\r\n };\r\n RectRenderer.prototype.draw = function () {\r\n var PI = Math.PI;\r\n var _a = this, context = _a.context, r = _a.cornerRadius, _b = _a.bounds, width = _b.width, height = _b.height, _margin = _a._margin, _useCacheMode = _a._useCacheMode;\r\n var offset = _useCacheMode ? _margin : 0;\r\n if (r) {\r\n context.moveTo(offset + r, offset + 0);\r\n context.lineTo(offset + width - r, offset + 0);\r\n context.arc(offset + width - r, offset + r, r, PI * 3 / 2, PI * 2);\r\n context.lineTo(offset + width, offset + height - r);\r\n context.arc(offset + width - r, offset + height - r, r, 0, PI / 2);\r\n context.lineTo(offset + r, offset + height);\r\n context.arc(offset + r, offset + height - r, r, PI / 2, PI);\r\n context.lineTo(offset + 0, offset + r);\r\n context.arc(offset + r, offset + r, r, PI, PI * 3 / 2);\r\n }\r\n else {\r\n context.rect(offset, offset, width, height);\r\n }\r\n _super.prototype.draw.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], RectRenderer.prototype, \"width\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], RectRenderer.prototype, \"height\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], RectRenderer.prototype, \"cornerRadius\", void 0);\r\n return RectRenderer;\r\n}(GraphicRenderer));\r\nexport default RectRenderer;\r\n//# sourceMappingURL=RectRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"Vector2D.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Vector2D.ts\"],\"names\":[],\"mappings\":\"AAKA,OAAO,EAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAC;AAEpD,IAAM,IAAI,GAAG,UAAU,CAAC;AACxB,QAAQ,CAAC,IAAI,EAAE;IACd,OAAO,IAAI,QAAQ,EAAE,CAAC;AACvB,CAAC,EAAE,UAAS,QAAkB,EAAE,CAAC,EAAE,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACtB,CAAC,CAAC,CAAC;AAOH,MAAM,UAAU,cAAc,CAAC,CAAK,EAAE,CAAK;IAAZ,kBAAA,EAAA,KAAK;IAAE,kBAAA,EAAA,KAAK;IAC1C,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACxB,CAAC;AAMD,MAAM,UAAU,eAAe,CAAC,MAAM;IACrC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACvB,CAAC;AAKD;IASC,kBAAY,CAAK,EAAE,CAAK,EAAE,QAAS;QAAvB,kBAAA,EAAA,KAAK;QAAE,kBAAA,EAAA,KAAK;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;QACZ,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;QACZ,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IAVD,sBAAkB,gBAAI;aAAtB;YACC,OAAO,IAAI,CAAC;QACb,CAAC;;;OAAA;IAUD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I,CAAC;IAC1D,CAAC;IAEM,eAAM,GAAb,UAAc,EAAE,EAAE,EAAE;QACnB,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5D,CAAC;IACF,eAAC;AAAD,CAAC,AAtLD,IAsLC;;AAED,IAAM,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAC\"}","code":"import { get, recycle, register } from \"./ObjectPool\";\r\nvar name = 'Vector2D';\r\nregister(name, function () {\r\n return new Vector2D();\r\n}, function (instance, x, y) {\r\n instance.setXY(x, y);\r\n});\r\nexport function createVector2D(x, y) {\r\n if (x === void 0) { x = 0; }\r\n if (y === void 0) { y = 0; }\r\n return get(name, x, y);\r\n}\r\nexport function releaseVector2D(target) {\r\n recycle(name, target);\r\n}\r\nvar Vector2D = (function () {\r\n function Vector2D(x, y, onChange) {\r\n if (x === void 0) { x = 0; }\r\n if (y === void 0) { y = 0; }\r\n this.onChange = onChange;\r\n this._x = 0;\r\n this._y = 0;\r\n this.setXY(x, y);\r\n }\r\n Object.defineProperty(Vector2D, \"zero\", {\r\n get: function () {\r\n return zero;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"x\", {\r\n get: function () {\r\n return this._x;\r\n },\r\n set: function (v) {\r\n if (this._x !== v) {\r\n var old = this._x;\r\n this._x = v;\r\n this.onChange && this.onChange(v, 'x', old);\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"y\", {\r\n get: function () {\r\n return this._y;\r\n },\r\n set: function (v) {\r\n if (this._y !== v) {\r\n var old = this._y;\r\n this._y = v;\r\n this.onChange && this.onChange(v, 'y', old);\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.setXY = function (x, y) {\r\n if (x === void 0) { x = 0; }\r\n if (y === void 0) { y = 0; }\r\n this.x = x;\r\n this.y = y;\r\n return this;\r\n };\r\n Vector2D.prototype.copyFrom = function (v2) {\r\n this.x = v2.x;\r\n this.y = v2.y;\r\n return this;\r\n };\r\n Vector2D.prototype.clone = function () {\r\n return new Vector2D(this.x, this.y);\r\n };\r\n Vector2D.prototype.zero = function () {\r\n this.x = 0;\r\n this.y = 0;\r\n return this;\r\n };\r\n Object.defineProperty(Vector2D.prototype, \"isZero\", {\r\n get: function () {\r\n return this.x == 0 && this.y == 0;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.normalize = function () {\r\n var len = this.length;\r\n if (len == 0) {\r\n this.x = 1;\r\n return this;\r\n }\r\n this.x /= len;\r\n this.y /= len;\r\n return this;\r\n };\r\n Object.defineProperty(Vector2D.prototype, \"isNormalized\", {\r\n get: function () {\r\n return this.length == 1.0;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.truncate = function (max) {\r\n this.length = Math.min(max, this.length);\r\n return this;\r\n };\r\n Vector2D.prototype.reverse = function () {\r\n this.x = -this.x;\r\n this.y = -this.y;\r\n return this;\r\n };\r\n Vector2D.prototype.dotProd = function (v2) {\r\n return this.x * v2.x + this.y * v2.y;\r\n };\r\n Vector2D.prototype.crossProd = function (v2) {\r\n return this.x * v2.y - this.y * v2.x;\r\n };\r\n Vector2D.prototype.distSQ = function (v2) {\r\n var dx = v2.x - this.x;\r\n var dy = v2.y - this.y;\r\n return dx * dx + dy * dy;\r\n };\r\n Vector2D.prototype.distance = function (v2) {\r\n return Math.sqrt(this.distSQ(v2));\r\n };\r\n Vector2D.prototype.add = function (v2) {\r\n this.x += v2.x;\r\n this.y += v2.y;\r\n return this;\r\n };\r\n Vector2D.prototype.subtract = function (v2) {\r\n this.x -= v2.x;\r\n this.y -= v2.y;\r\n return this;\r\n };\r\n Vector2D.prototype.multiply = function (value) {\r\n this.x *= value;\r\n this.y *= value;\r\n return this;\r\n };\r\n Vector2D.prototype.divide = function (value) {\r\n this.x /= value;\r\n this.y /= value;\r\n return this;\r\n };\r\n Object.defineProperty(Vector2D.prototype, \"angle\", {\r\n get: function () {\r\n return this.radian * 180 / Math.PI;\r\n },\r\n set: function (value) {\r\n this.radian = value * Math.PI / 180;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"radian\", {\r\n get: function () {\r\n return Math.atan2(this.y, this.x);\r\n },\r\n set: function (value) {\r\n var len = this.length;\r\n this.setXY(Math.cos(value) * len, Math.sin(value) * len);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.equals = function (v2) {\r\n return this.x == v2.x && this.y == v2.y;\r\n };\r\n Object.defineProperty(Vector2D.prototype, \"length\", {\r\n get: function () {\r\n return Math.sqrt(this.lengthSQ);\r\n },\r\n set: function (value) {\r\n var a = this.radian;\r\n this.setXY(Math.cos(a) * value, Math.sin(a) * value);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"lengthSQ\", {\r\n get: function () {\r\n return this.x * this.x + this.y * this.y;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"slope\", {\r\n get: function () {\r\n return this.y / this.x;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.toString = function () {\r\n return \"[Vector2D (x:\" + this.x + \", y:\" + this.y + \")]\";\r\n };\r\n Vector2D.corner = function (v1, v2) {\r\n return Math.acos(v1.dotProd(v2) / (v1.length * v2.length));\r\n };\r\n return Vector2D;\r\n}());\r\nexport default Vector2D;\r\nvar zero = new Vector2D();\r\n//# sourceMappingURL=Vector2D.js.map"}
{"map":"{\"version\":3,\"file\":\"GuessPokerData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/guessPoker/GuessPokerData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAAoC,0CAAI;IAAxC;;IAkCA,CAAC;IAbU,+BAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACZ,OAAO;SACV;QACD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;IACjC,CAAC;IACL,qBAAC;AAAD,CAAC,AAlCD,CAAoC,IAAI,GAkCvC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar GuessPokerData = (function (_super) {\r\n tslib_1.__extends(GuessPokerData, _super);\r\n function GuessPokerData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GuessPokerData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n if (!data.data) {\r\n return;\r\n }\r\n this.isWin = data.data.win;\r\n this.poker = data.data.poker;\r\n this.score = data.data.score;\r\n this.times = data.data.times;\r\n };\r\n return GuessPokerData;\r\n}(Data));\r\nexport { GuessPokerData };\r\n//# sourceMappingURL=GuessPokerData.js.map"}
{"map":"{\"version\":3,\"file\":\"ScillaEvent.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/ScillaEvent.ts\"],\"names\":[],\"mappings\":\";AAQA;IAGC;QACC,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IACxB,CAAC;IAEO,kCAAY,GAApB,UAAqB,QAAQ;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c,CAAC,QAAQ,CAAC,CAAC;qBAC9B;iBACD;aACD;;;;;;;;;IACF,CAAC;IACF,kBAAC;AAAD,CAAC,AAnID,IAmIC\"}","code":"import * as tslib_1 from \"tslib\";\r\nvar ScillaEvent = (function () {\r\n function ScillaEvent() {\r\n this._subscribers = [];\r\n }\r\n ScillaEvent.prototype.findListener = function (callback) {\r\n var _subscribers = this._subscribers;\r\n var result;\r\n for (var i = 0, li = _subscribers.length; i < li; i++) {\r\n var subscriber = _subscribers[i];\r\n if (subscriber.callback == callback) {\r\n result = {\r\n subscriber: subscriber,\r\n index: i,\r\n };\r\n break;\r\n }\r\n }\r\n return result;\r\n };\r\n ScillaEvent.prototype.addListener = function (callback, thisObj, priority) {\r\n if (priority === void 0) { priority = 0; }\r\n var params = [];\r\n for (var _i = 3; _i < arguments.length; _i++) {\r\n params[_i - 3] = arguments[_i];\r\n }\r\n if (!callback) {\r\n return;\r\n }\r\n var _subscribers = this._subscribers;\r\n var listener = this.findListener(callback);\r\n if (!listener) {\r\n _subscribers.push({\r\n callback: callback,\r\n thisObj: thisObj,\r\n priority: priority,\r\n params: params,\r\n });\r\n }\r\n };\r\n ScillaEvent.prototype.once = function (callback, thisObj, priority) {\r\n if (priority === void 0) { priority = 0; }\r\n var params = [];\r\n for (var _i = 3; _i < arguments.length; _i++) {\r\n params[_i - 3] = arguments[_i];\r\n }\r\n if (!callback) {\r\n return;\r\n }\r\n var _subscribers = this._subscribers;\r\n var listener = this.findListener(callback);\r\n if (!listener) {\r\n _subscribers.push({\r\n callback: callback,\r\n thisObj: thisObj,\r\n priority: priority,\r\n params: params,\r\n once: true,\r\n });\r\n }\r\n };\r\n ScillaEvent.prototype.removeListener = function (callback) {\r\n if (!callback) {\r\n return;\r\n }\r\n var _subscribers = this._subscribers;\r\n var listener = this.findListener(callback);\r\n if (listener) {\r\n _subscribers.splice(listener.index, 1);\r\n }\r\n };\r\n ScillaEvent.prototype.hasListener = function (callback) {\r\n return !!this.findListener(callback);\r\n };\r\n ScillaEvent.prototype.invoke = function () {\r\n var paramsNew = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n paramsNew[_i] = arguments[_i];\r\n }\r\n var e_1, _a;\r\n var _subscribers = this._subscribers;\r\n _subscribers.sort(function (a, b) {\r\n return a.priority - b.priority;\r\n });\r\n try {\r\n for (var _subscribers_1 = tslib_1.__values(_subscribers), _subscribers_1_1 = _subscribers_1.next(); !_subscribers_1_1.done; _subscribers_1_1 = _subscribers_1.next()) {\r\n var subscriber = _subscribers_1_1.value;\r\n if (subscriber) {\r\n var callback = subscriber.callback, thisObj = subscriber.thisObj, once = subscriber.once, params = subscriber.params;\r\n var allParams = params.concat(paramsNew);\r\n try {\r\n callback.apply(thisObj, allParams);\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n if (once) {\r\n this.removeListener(callback);\r\n }\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_subscribers_1_1 && !_subscribers_1_1.done && (_a = _subscribers_1.return)) _a.call(_subscribers_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n };\r\n return ScillaEvent;\r\n}());\r\nexport { ScillaEvent };\r\n//# sourceMappingURL=ScillaEvent.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/index.ts\"],\"names\":[],\"mappings\":\"AAMA,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAC,MAAM,YAAY,CAAA;AAC/E,OAAO,EAAC,WAAW,EAAE,KAAK,EAAC,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAA;AAEtC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AAErC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC\"}","code":"export { default as Bounds } from './Bounds';\r\nexport { default as Vector2D, createVector2D, releaseVector2D } from './Vector2D';\r\nexport { createTween, Tween } from './Tween';\r\nexport { default as Matrix } from './Matrix';\r\nexport { default as Size } from './Size';\r\nexport { default as LocalStorage } from './LocalStorage';\r\nexport { TextStyle } from './TextStyle';\r\nexport { default as EventEmitter } from './EventEmitter';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"Texture.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Texture.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAKrD;IAAqC,mCAAU;IAM9C;QAAA,YACC,iBAAO,SAGP;QADA,KAAI,CAAC,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;;IAC5B,CAAC;IAMD,0BAAQ,GAAR,UAAS,KAAK;QACR,IAAA,WAAC,EAAE,WAAC,EAAE,WAAC,EAAE,WAAC,CAAU;QACzB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC;IAMD,wBAAM,GAAN,UAAO,GAAG;QACT,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IAChB,CAAC;IAKD,sBAAI,0BAAK;aAAT;YACC,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;QAC1B,CAAC;;;OAAA;IAKD,sBAAI,2BAAM;aAAV;YACC,OAAO,IAAI,CAAC,MAAM,C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;AAOD,MAAM,UAAU,aAAa,CAAC,GAAG,EAAE,KAAM;IACxC,IAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC9B,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,MAAM,EAAC,CAAC,CAAC;IAErE,OAAO,OAAO,CAAC;AAChB,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Bounds from \"../support/Bounds\";\r\nimport HashObject from \"../core/HashObject\";\r\nimport { createCanvas } from \"./context/RenderContext\";\r\nvar Texture = (function (_super) {\r\n tslib_1.__extends(Texture, _super);\r\n function Texture() {\r\n var _this = _super.call(this) || this;\r\n _this.bounds = new Bounds();\r\n return _this;\r\n }\r\n Texture.prototype.setFrame = function (frame) {\r\n var x = frame.x, y = frame.y, w = frame.w, h = frame.h;\r\n this.bounds.setTo(x, y, w, h);\r\n };\r\n Texture.prototype.setImg = function (img) {\r\n this.img = img;\r\n };\r\n Object.defineProperty(Texture.prototype, \"width\", {\r\n get: function () {\r\n return this.bounds.width;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Texture.prototype, \"height\", {\r\n get: function () {\r\n return this.bounds.height;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Texture.prototype.getCacheCanvas = function () {\r\n var _a = this.bounds, width = _a.width, height = _a.height;\r\n var canvas = this._cacheCanvas;\r\n if (!canvas) {\r\n canvas = this._cacheCanvas = createCanvas();\r\n }\r\n canvas.width = width;\r\n canvas.height = height;\r\n var context = canvas.getContext('2d');\r\n this.drawToCanvas(context);\r\n return canvas;\r\n };\r\n Texture.prototype.drawToCanvas = function (context, dx, dy, sx, sy, dw, dh) {\r\n if (dx === void 0) { dx = 0; }\r\n if (dy === void 0) { dy = 0; }\r\n var _a = this.bounds, x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n context.drawImage(this.img, sx || x, sy || y, width, height, dx, dy, dw || width, dh || height);\r\n };\r\n Texture.prototype.destroy = function () {\r\n this.img = null;\r\n this.bounds = null;\r\n this.destroyCacheCanvas();\r\n };\r\n Texture.prototype.destroyCacheCanvas = function () {\r\n this._cacheCanvas = null;\r\n };\r\n return Texture;\r\n}(HashObject));\r\nexport default Texture;\r\nexport function createTexture(img, frame) {\r\n var texture = new Texture();\r\n texture.setImg(img);\r\n texture.setFrame(frame || { x: 0, y: 0, w: img.width, h: img.height });\r\n return texture;\r\n}\r\n//# sourceMappingURL=Texture.js.map"}
{"map":"{\"version\":3,\"file\":\"WinRanksData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/winranks/WinRanksData.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAQlC;IAAkC,wCAAI;IAAtC;;IAmBA,CAAC;IARU,6BAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC;IAC/B,CAAC;IACL,mBAAC;AAAD,CAAC,AAnBD,CAAkC,IAAI,GAmBrC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar WinRanksData = (function (_super) {\r\n tslib_1.__extends(WinRanksData, _super);\r\n function WinRanksData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n WinRanksData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.consumer = data.consumer;\r\n this.rankList = data.ranks;\r\n };\r\n return WinRanksData;\r\n}(Data));\r\nexport { WinRanksData };\r\n//# sourceMappingURL=WinRanksData.js.map"}
{"map":"{\"version\":3,\"file\":\"GetUserTotalScoreData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/getUserTotalScore/GetUserTotalScoreData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAA2C,iDAAI;IAA/C;;IAaA,CAAC;IAPU,sCAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC;IAC3B,CAAC;IACL,4BAAC;AAAD,CAAC,AAbD,CAA2C,IAAI,GAa9C\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar GetUserTotalScoreData = (function (_super) {\r\n tslib_1.__extends(GetUserTotalScoreData, _super);\r\n function GetUserTotalScoreData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GetUserTotalScoreData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.score = data.data;\r\n };\r\n return GetUserTotalScoreData;\r\n}(Data));\r\nexport { GetUserTotalScoreData };\r\n//# sourceMappingURL=GetUserTotalScoreData.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAA;AAChE,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAA\"}","code":"export { default as InteractComponent } from './InteractComponent';\r\nexport { default as TouchInterrupt } from './TouchInterrupt';\r\nexport { default as Transform } from './Transform';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"time.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/time.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,MAAM,IAAI,YAAY,EAAE,UAAU,EAAC,MAAM,SAAS,CAAA;AAM1D,MAAM,UAAU,OAAO,CAAC,EAAE;IACzB,IAAI,OAAO,GAAQ,IAAI,IAAI,EAAE,CAAC;IAC9B,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACpB,OAAO,OAAO,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAS,EAAE,MAA6B;IAA7B,uBAAA,EAAA,sBAA6B;IACxE,OAAO,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;AACnH,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAS,EAAE,MAA6B;IAA7B,uBAAA,EAAA,sBAA6B;IACxE,OAAO,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;AAChI,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAU,EAAE,SAAS,EAAE,UAAU;IAC7D,OAAO,gBAAgB,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,gBAAgB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;AAC/E,CAAC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\r\n var newDate = new Date();\r\n newDate.setTime(ts);\r\n return newDate;\r\n}\r\nexport function dateToDateString(date, format) {\r\n if (format === void 0) { format = '{0}/{1}/{2}'; }\r\n return stringFormat(format, date.getFullYear(), supplement(date.getMonth() + 1, 2), supplement(date.getDate(), 2));\r\n}\r\nexport function dateToTimeString(date, format) {\r\n if (format === void 0) { format = '{0}:{1}:{2}'; }\r\n return stringFormat(format, supplement(date.getHours(), 2), supplement(date.getMinutes(), 2), supplement(date.getSeconds(), 2));\r\n}\r\nexport function dateToString(date, dayFormat, timeFormat) {\r\n return dateToDateString(date, dayFormat) + dateToTimeString(date, timeFormat);\r\n}\r\nexport function tsToTimeString(ts, format) {\r\n if (format === void 0) { format = '{0}:{1}:{2}'; }\r\n var date = ts2Date(ts);\r\n return stringFormat(format, supplement(date.getHours(), 2), supplement(date.getMinutes(), 2), supplement(date.getSeconds(), 2));\r\n}\r\nexport function secondFormat(second, format, placeZero) {\r\n if (format === void 0) { format = '{2}:{1}:{0}'; }\r\n if (placeZero === void 0) { placeZero = true; }\r\n var ss = second % 60;\r\n var mm = Math.floor(second / 60) % 60;\r\n var hh = Math.floor(second / 3600) % 24;\r\n var dd = Math.floor(second / 3600 / 24);\r\n if (placeZero) {\r\n ss = supplement(ss, 2);\r\n mm = supplement(mm, 2);\r\n hh = supplement(hh, 2);\r\n dd = supplement(dd, 2);\r\n }\r\n return stringFormat(format, ss, mm, hh, dd);\r\n}\r\n//# sourceMappingURL=time.js.map"}
{"map":"{\"version\":3,\"file\":\"interpreter.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/editor/interpreter.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,MAAM,EAAS,WAAW,EAAC,MAAM,SAAS,CAAC;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,IAAI,WAAW,GAAG,EAAE,CAAC;AACrB,IAAI,iBAAiB,CAAC;AACtB,IAAM,MAAM,GA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C,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;QACjD,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;KAC3B;SAAM;QACN,MAAM,GAAG,GAAG,CAAC;KACb;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AAED,SAAS,eAAe,CAAC,IAAI,EAAE,GAAG;IACjC,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AACtC,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Entity, ScillaEvent } from \"../core\";\r\nimport { getRes } from \"../assets-manager\";\r\nvar entityCache = {};\r\nvar entityCacheConfig;\r\nvar defMap = {};\r\nvar prefabID = 0;\r\nexport function registerDef(name, def) {\r\n defMap[name] = def;\r\n def.__class__ = name;\r\n}\r\nfunction getEntityCacheConfig(config) {\r\n return config['entity-cache'] ? config['entity-cache'].concat() : [];\r\n}\r\nexport function setupScene(scene, root) {\r\n scene.root = root;\r\n var config = scene.config;\r\n entityCacheConfig = getEntityCacheConfig(config);\r\n instantiateConfig(config.root, root);\r\n entityCache = {};\r\n return scene;\r\n}\r\nexport function destroyScene(scene) {\r\n var root = scene.root;\r\n root.removeAllComponents();\r\n root.removeChildren();\r\n}\r\nexport function instantiate(config) {\r\n var pid = ++prefabID;\r\n entityCacheConfig = getEntityCacheConfig(config);\r\n for (var i = 0, li = entityCacheConfig.length; i < li; i++) {\r\n entityCacheConfig[i] = pid + '_' + entityCacheConfig[i];\r\n }\r\n var rootConfig = config.root;\r\n var entity = setupEntity(rootConfig, null, pid);\r\n setupComponent(rootConfig, entity, true);\r\n injectComponent(rootConfig, entity, true, pid);\r\n entityCache = {};\r\n return entity.children[0];\r\n}\r\nfunction instantiateConfig(config, root) {\r\n var entity = setupEntity(config, root);\r\n setupComponent(config, entity, true);\r\n injectComponent(config, entity, true);\r\n return entity;\r\n}\r\nfunction setupEntity(config, root, pid) {\r\n var entity = null;\r\n if (config) {\r\n var name_1 = config.name, uuid = config.uuid, children = config.children;\r\n if (pid !== undefined && uuid !== undefined) {\r\n uuid = pid + '_' + uuid;\r\n }\r\n entity = root || new Entity(name_1, uuid);\r\n if (entityCacheConfig.indexOf(uuid) >= 0) {\r\n entityCache[uuid] = entity;\r\n }\r\n if (children) {\r\n for (var i = 0, li = children.length; i < li; i++) {\r\n var child = children[i];\r\n var childEntity = setupEntity(child, null, pid);\r\n entity.addChild(childEntity);\r\n }\r\n }\r\n if (!root) {\r\n entity.enabled = !config.disabled;\r\n }\r\n }\r\n return entity;\r\n}\r\nfunction setupComponent(config, root, includeSelf) {\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n if (includeSelf) {\r\n instantiateComponents(root, config);\r\n }\r\n if (config && config.children) {\r\n for (var i = 0, li = root.children.length; i < li; i++) {\r\n var child = config.children[i];\r\n var entity = root.children[i];\r\n instantiateComponents(entity, child);\r\n setupComponent(child, entity);\r\n }\r\n }\r\n}\r\nfunction injectComponent(config, root, includeSelf, pid) {\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n if (includeSelf) {\r\n injectComponents(root, config, pid);\r\n }\r\n if (config && config.children) {\r\n for (var i = 0, li = root.children.length; i < li; i++) {\r\n var child = config.children[i];\r\n var entity = root.children[i];\r\n injectComponents(entity, child, pid);\r\n injectComponent(child, entity, false, pid);\r\n }\r\n }\r\n}\r\nfunction instantiateComponents(entity, config) {\r\n var e_1, _a;\r\n if (config.components) {\r\n try {\r\n for (var _b = tslib_1.__values(config.components), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var component = _c.value;\r\n instantiateComponent(entity, component);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n }\r\n}\r\nfunction injectComponents(entity, config, pid) {\r\n if (config.components) {\r\n var components = entity.components;\r\n for (var i = 0, li = config.components.length; i < li; i++) {\r\n var component = config.components[i];\r\n var properties = component.properties;\r\n if (properties) {\r\n injectProperties(components[i], properties, pid);\r\n }\r\n }\r\n }\r\n}\r\nfunction instantiateComponent(entity, config) {\r\n var script = config.script, properties = config.properties;\r\n var def = getDefByName(script);\r\n if (!def) {\r\n return;\r\n }\r\n var instance = new def();\r\n instance.enabled = !config.disabled;\r\n entity.addComponent(instance);\r\n}\r\nfunction getDefByName(name) {\r\n var def;\r\n def = defMap[name];\r\n if (!def) {\r\n console.warn('missing def:', name);\r\n return;\r\n }\r\n return def;\r\n}\r\nvar skipKeys = ['_type_', '_constructor_'];\r\nfunction injectProperties(node, propertiesConfig, pid) {\r\n if (!node) {\r\n console.warn('node is null.');\r\n return;\r\n }\r\n for (var key in propertiesConfig) {\r\n if (skipKeys.indexOf(key) >= 0) {\r\n continue;\r\n }\r\n var propertyOfConfig = propertiesConfig[key];\r\n var propertyOfInstance = node[key];\r\n if (typeof propertyOfConfig === 'object') {\r\n if (propertyOfInstance instanceof ScillaEvent) {\r\n injectEvent(propertyOfInstance, propertyOfConfig, pid);\r\n }\r\n else if (propertyOfConfig._type_ === 'raw') {\r\n node[key] = propertyOfInstance = propertyOfConfig.data;\r\n }\r\n else {\r\n if (Array.isArray(propertyOfConfig) && !propertyOfInstance) {\r\n node[key] = propertyOfInstance = [];\r\n }\r\n node[key] = injectObject(propertyOfInstance, propertyOfConfig, pid);\r\n }\r\n }\r\n else {\r\n injectBaseType(node, key, propertyOfConfig, pid);\r\n }\r\n }\r\n}\r\nfunction injectObject(propertyOfInstance, propertyOfConfig, pid) {\r\n if (propertyOfInstance === undefined) {\r\n if (propertyOfConfig._type_) {\r\n var def = getDefByName(propertyOfConfig._type_);\r\n if (def) {\r\n var constructorArgs = propertyOfConfig._constructor_;\r\n if (constructorArgs && constructorArgs.length > 0) {\r\n propertyOfInstance = def.constructor.apply(null, constructorArgs);\r\n }\r\n else {\r\n propertyOfInstance = new def();\r\n }\r\n }\r\n }\r\n }\r\n if (propertyOfInstance) {\r\n injectProperties(propertyOfInstance, propertyOfConfig, pid);\r\n }\r\n return propertyOfInstance;\r\n}\r\nfunction injectBaseType(node, key, propertyOfConfig, pid) {\r\n var propertyValue;\r\n if (typeof propertyOfConfig === 'string') {\r\n propertyValue = getLink(propertyOfConfig, pid);\r\n }\r\n else {\r\n propertyValue = propertyOfConfig;\r\n }\r\n node[key] = propertyValue;\r\n}\r\nfunction injectEvent(event, config, pid) {\r\n var e_2, _a;\r\n try {\r\n for (var config_1 = tslib_1.__values(config), config_1_1 = config_1.next(); !config_1_1.done; config_1_1 = config_1.next()) {\r\n var _b = config_1_1.value, entityName = _b.entity, componentIndex = _b.component, methodName = _b.method, param = _b.param;\r\n if (entityName && componentIndex >= 0 && methodName) {\r\n var entity = getLink(entityName, pid);\r\n var component = entity.components[componentIndex];\r\n var method = component[methodName];\r\n if (method) {\r\n if (param == undefined) {\r\n event.addListener(method, component, 0);\r\n }\r\n else {\r\n event.addListener(method, component, 0, param);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (config_1_1 && !config_1_1.done && (_a = config_1.return)) _a.call(config_1);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n}\r\nfunction getLink(str, pid) {\r\n var result;\r\n if (str.indexOf('res|') == 0) {\r\n var uuid = str.substr(4);\r\n result = getRes(uuid);\r\n }\r\n else if (str.indexOf('entity|') == 0) {\r\n var uuid = transPrefabUUID(str.substr(7), pid);\r\n result = entityCache[uuid];\r\n }\r\n else {\r\n result = str;\r\n }\r\n return result;\r\n}\r\nfunction transPrefabUUID(uuid, pid) {\r\n return pid ? pid + '_' + uuid : uuid;\r\n}\r\n//# sourceMappingURL=interpreter.js.map"}
{"map":"{\"version\":3,\"file\":\"math.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/math.ts\"],\"names\":[],\"mapp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K,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,gBAAgB,CAAC,CAAC;SAClE;;;;;;;;;IAED,OAAO,IAAI,CAAC;AACb,CAAC;AAOD,MAAM,UAAU,aAAa,CAAC,GAAW,EAAE,GAAe;IAAf,oBAAA,EAAA,OAAe;IACzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;AACtD,CAAC;AAOD,MAAM,UAAU,QAAQ,CAAC,GAAQ;IAChC,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,GAAG,GAAW,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;QAC/E,IAAI,CAAC,GAAW,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,GAAW,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QAClB,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QAChB,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;KACd;IAED,OAAO,GAAG,CAAC;AACZ,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nexport function lerp(begin, end, t, allowOutOfBounds) {\r\n if (allowOutOfBounds === void 0) { allowOutOfBounds = false; }\r\n var type = typeof begin;\r\n if (type !== typeof end) {\r\n console.error('begin and end need same type');\r\n }\r\n if (!allowOutOfBounds) {\r\n t = Math.max(0, Math.min(1, t));\r\n }\r\n var sign = end - begin;\r\n sign = sign > 0 ? 1 : (sign < 0 ? -1 : 0);\r\n var distance = Math.abs(end - begin);\r\n return begin + distance * t * sign;\r\n}\r\nexport function lerpObj(begin, end, t, clazz, fields, allowOutOfBounds) {\r\n if (allowOutOfBounds === void 0) { allowOutOfBounds = false; }\r\n var e_1, _a;\r\n var type = typeof begin;\r\n if (type !== typeof end) {\r\n console.error('begin and end need same type');\r\n }\r\n var temp = new clazz();\r\n try {\r\n for (var fields_1 = tslib_1.__values(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) {\r\n var field = fields_1_1.value;\r\n temp[field] = lerp(begin[field], end[field], t, allowOutOfBounds);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (fields_1_1 && !fields_1_1.done && (_a = fields_1.return)) _a.call(fields_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n return temp;\r\n}\r\nexport function makeRandomInt(max, min) {\r\n if (min === void 0) { min = 0; }\r\n return Math.floor(Math.random() * (max - min)) + min;\r\n}\r\nexport function mixArray(arr) {\r\n for (var i = 0, len = Math.round(arr.length / 2); i < len; i++) {\r\n var a = makeRandomInt(arr.length);\r\n var b = makeRandomInt(arr.length);\r\n var temp = arr[a];\r\n arr[a] = arr[b];\r\n arr[b] = temp;\r\n }\r\n return arr;\r\n}\r\n//# sourceMappingURL=math.js.map"}
{"map":"{\"version\":3,\"file\":\"DoReviveData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/doRevive/DoReviveData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAAkC,wCAAI;IAkBlC;eACI,iBAAO;IACX,CAAC;IAEM,6BAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IACnC,CAAC;IACL,mBAAC;AAAD,CAAC,AAhCD,CAAkC,IAAI,GAgCrC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar DoReviveData = (function (_super) {\r\n tslib_1.__extends(DoReviveData, _super);\r\n function DoReviveData() {\r\n return _super.call(this) || this;\r\n }\r\n DoReviveData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.timestamp = data.timestamp;\r\n this.isSuccess = data.success;\r\n this.reviveCardNum = data.data.reviveCardNum;\r\n this.status = data.data.status;\r\n };\r\n return DoReviveData;\r\n}(Data));\r\nexport { DoReviveData };\r\n//# sourceMappingURL=DoReviveData.js.map"}
{"map":"{\"version\":3,\"file\":\"requestAnimationFrame.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/requestAnimationFrame.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,IAAI,OAAO,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AAChC,KAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,EAAE,CAAC,EAAE;IACrE,MAAM,CAAC,qBAAqB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,uBAAuB,CAAC,CAAC;IAC5E,MAAM,CAAC,oBAAoB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC;QACvE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,6BAA6B,CAAC,CAAC;CACxD;AAED,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE;IAC/B,MAAM,CAAC,qBAAqB,GAAG,UAAS,QAAQ;QAC5C,IAAI,QAAQ,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;QACpC,IAAI,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC;QAC3D,IAAI,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;YACvB,QAAQ,CAAC,QAAQ,GAAG,UAAU,CAAC,CAAC;QACpC,CAAC,EAAE,UAAU,CAAC,CAAC;QACf,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;QACjC,OAAO,EAAE,CAAC;IACd,CAAC,CAAC;CACL;AACD,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE;IAC9B,MAAM,CAAC,oBAAoB,GAAG,UAAS,EAAE;QACrC,YAAY,CAAC,EAAE,CAAC,CAAC;IACrB,CAAC,CAAC;CACL\"}","code":"var lastTime = 0;\r\nvar vendors = ['webkit', 'moz'];\r\nfor (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {\r\n window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'];\r\n window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] ||\r\n window[vendors[x] + 'CancelRequestAnimationFrame'];\r\n}\r\nif (!window.requestAnimationFrame) {\r\n window.requestAnimationFrame = function (callback) {\r\n var currTime = new Date().getTime();\r\n var timeToCall = Math.max(0, 16.7 - (currTime - lastTime));\r\n var id = window.setTimeout(function () {\r\n callback(currTime + timeToCall);\r\n }, timeToCall);\r\n lastTime = currTime + timeToCall;\r\n return id;\r\n };\r\n}\r\nif (!window.cancelAnimationFrame) {\r\n window.cancelAnimationFrame = function (id) {\r\n clearTimeout(id);\r\n };\r\n}\r\n//# sourceMappingURL=requestAnimationFrame.js.map"}
{"map":"{\"version\":3,\"file\":\"Tween.js\",\"sourceRoot\":\"\",\"sources\":[\"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AAG,CAAC,CAAC;SACtB;QACD,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAE7C,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;IAOD,wBAAQ,GAAR;QACC,IAAI,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;YAC/B,OAAO;SACP;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;QACd,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,IAAI,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,EAAE;YAC5C,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;SACxC;QACD,IAAI,CAAC,aAAa,EAAE,CAAC;IACtB,CAAC;IAAA,CAAC;IAiCH,YAAC;AAAD,CAAC,AA1PD,CAA2B,UAAU,GA0PpC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { lerp, lerpObj } from \"../tools/math\";\r\nimport { injectProp } from \"../tools/utils\";\r\nimport HashObject from \"../core/HashObject\";\r\nvar STATUS;\r\n(function (STATUS) {\r\n STATUS[STATUS[\"IDLE\"] = 0] = \"IDLE\";\r\n STATUS[STATUS[\"PENDING\"] = 1] = \"PENDING\";\r\n STATUS[STATUS[\"DO_SET\"] = 2] = \"DO_SET\";\r\n STATUS[STATUS[\"DO_TO\"] = 3] = \"DO_TO\";\r\n STATUS[STATUS[\"DO_WAIT\"] = 4] = \"DO_WAIT\";\r\n STATUS[STATUS[\"DO_CALL\"] = 5] = \"DO_CALL\";\r\n})(STATUS || (STATUS = {}));\r\nexport function createTween(target, override, options, plugins) {\r\n if (override === void 0) { override = false; }\r\n if (plugins === void 0) { plugins = []; }\r\n if (override) {\r\n killTweens(target);\r\n }\r\n var tween = new Tween(target, options);\r\n addTween(target, tween);\r\n return tween;\r\n}\r\nexport function killTweens(target) {\r\n var e_1, _a;\r\n var tweens = target['tweens'];\r\n if (tweens) {\r\n try {\r\n for (var tweens_1 = tslib_1.__values(tweens), tweens_1_1 = tweens_1.next(); !tweens_1_1.done; tweens_1_1 = tweens_1.next()) {\r\n var tween = tweens_1_1.value;\r\n tween.stop();\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (tweens_1_1 && !tweens_1_1.done && (_a = tweens_1.return)) _a.call(tweens_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n tweens.splice(0);\r\n }\r\n}\r\nfunction addTween(target, tween) {\r\n var tweens = target['tweens'];\r\n if (!tweens) {\r\n tweens = target['tweens'] = [];\r\n }\r\n tweens.push(tween);\r\n}\r\nvar Tween = (function (_super) {\r\n tslib_1.__extends(Tween, _super);\r\n function Tween(target, options, plugins) {\r\n if (plugins === void 0) { plugins = []; }\r\n var _this = _super.call(this) || this;\r\n _this.queue = [];\r\n _this.loopCounting = 0;\r\n _this.status = STATUS.IDLE;\r\n _this.onUpdate = function (t) {\r\n _this.t = t;\r\n switch (_this.status) {\r\n case STATUS.DO_TO:\r\n var _a = _this, target = _a.target, startTime = _a.startTime, fromProps = _a.fromProps, toProps = _a.toProps, duration = _a.duration, ease = _a.ease, clazz = _a.clazz, fields = _a.fields;\r\n var passTime = t - startTime;\r\n var timeRatio = Math.min(1, passTime / duration);\r\n var ratio = timeRatio;\r\n if (ease) {\r\n ratio = ease(ratio);\r\n }\r\n for (var key in fromProps) {\r\n var toValue = toProps[key];\r\n var fromValue = fromProps[key];\r\n var currentValue = void 0;\r\n if (timeRatio < 1) {\r\n if (typeof toValue == 'object') {\r\n currentValue = lerpObj(fromValue, toValue, ratio, clazz, fields || Object.keys(toValue), true);\r\n }\r\n else {\r\n currentValue = lerp(fromValue, toValue, ratio, true);\r\n }\r\n }\r\n else {\r\n currentValue = toValue;\r\n }\r\n target[key] = currentValue;\r\n if (timeRatio >= 1) {\r\n _this._doNextAction();\r\n }\r\n }\r\n break;\r\n case STATUS.DO_WAIT:\r\n var _b = _this, startTime = _b.startTime, duration = _b.duration;\r\n var passTime = t - startTime;\r\n if (passTime > duration) {\r\n _this._doNextAction();\r\n }\r\n break;\r\n }\r\n };\r\n _this._doPlay = function (resetLoopCounting) {\r\n addTween(_this.target, _this);\r\n _this._start(resetLoopCounting);\r\n };\r\n _this._readyStart = function (t) {\r\n _this.t = t;\r\n _this._doStart();\r\n };\r\n _this._doNextAction = function () {\r\n if (_this.step < _this.queue.length) {\r\n var action = _this.queue[_this.step++];\r\n switch (action.action) {\r\n case 'set':\r\n _this._set(action.props);\r\n break;\r\n case 'to':\r\n if (action.duration > 0) {\r\n _this._to(action.props, action.duration, action.ease);\r\n }\r\n else {\r\n _this._set(action.props);\r\n }\r\n break;\r\n case 'wait':\r\n _this._wait(action.duration);\r\n break;\r\n case 'call':\r\n _this._call(action.func, action.thisObj, action.params);\r\n break;\r\n }\r\n }\r\n else {\r\n if (_this.loop < 0) {\r\n _this._doStart();\r\n }\r\n else if (_this.loopCounting < _this.loop) {\r\n _this._doStart();\r\n }\r\n else {\r\n _this.status = STATUS.IDLE;\r\n }\r\n }\r\n };\r\n _this.target = target;\r\n _this.loop = options ? options.loop : 0;\r\n _this.autoPlay = options ? (options.hasOwnProperty('autoPlay') ? options.autoPlay : true) : true;\r\n _this.clazz = options ? options.clazz : null;\r\n _this.fields = options ? options.fields : null;\r\n _this.plugins = plugins;\r\n if (options && options.initFields && options.initFields.length > 0) {\r\n _this.initProps = _this.getInitProps(options.initFields);\r\n }\r\n return _this;\r\n }\r\n Tween.prototype.getInitProps = function (fields) {\r\n var e_2, _a;\r\n var props = {};\r\n try {\r\n for (var fields_1 = tslib_1.__values(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) {\r\n var field = fields_1_1.value;\r\n if (field in this.target) {\r\n props[field] = this.target[field];\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (fields_1_1 && !fields_1_1.done && (_a = fields_1.return)) _a.call(fields_1);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n return props;\r\n };\r\n Tween.prototype.set = function (props) {\r\n this.queue.push({ action: 'set', props: props });\r\n if (this.autoPlay) {\r\n this._start();\r\n }\r\n return this;\r\n };\r\n Tween.prototype.to = function (props, duration, ease) {\r\n this.queue.push({ action: 'to', props: props, duration: duration, ease: ease });\r\n if (this.autoPlay) {\r\n this._start();\r\n }\r\n return this;\r\n };\r\n Tween.prototype.wait = function (duration) {\r\n this.queue.push({ action: 'wait', duration: duration });\r\n if (this.autoPlay) {\r\n this._start();\r\n }\r\n return this;\r\n };\r\n Tween.prototype.call = function (func, thisObj, params) {\r\n this.queue.push({ action: 'call', func: func, thisObj: thisObj, params: params });\r\n if (this.autoPlay) {\r\n this._start();\r\n }\r\n return this;\r\n };\r\n Tween.prototype.play = function (override, delay, resetLoopCounting) {\r\n if (override === void 0) { override = false; }\r\n if (delay === void 0) { delay = 0; }\r\n if (resetLoopCounting === void 0) { resetLoopCounting = true; }\r\n if (override) {\r\n killTweens(this.target);\r\n }\r\n if (delay > 0) {\r\n setTimeout(this._doPlay, delay, resetLoopCounting);\r\n }\r\n else {\r\n this._doPlay(resetLoopCounting);\r\n }\r\n };\r\n Tween.prototype.stop = function () {\r\n this.status = STATUS.IDLE;\r\n this.target.cancelOnNextTick(this.onUpdate);\r\n };\r\n Tween.prototype._set = function (props) {\r\n this.status = STATUS.DO_SET;\r\n injectProp(this.target, props);\r\n this._doNextAction();\r\n };\r\n Tween.prototype._to = function (props, duration, ease) {\r\n this.status = STATUS.DO_TO;\r\n this.startTime = this.t;\r\n this.fromProps = {};\r\n for (var key in props) {\r\n this.fromProps[key] = this.target[key];\r\n }\r\n this.toProps = {};\r\n injectProp(this.toProps, props);\r\n this.ease = ease;\r\n this.duration = duration;\r\n };\r\n Tween.prototype._wait = function (duration) {\r\n this.status = STATUS.DO_WAIT;\r\n this.startTime = this.t;\r\n this.duration = duration;\r\n };\r\n Tween.prototype._call = function (func, thisObj, params) {\r\n this.status = STATUS.DO_CALL;\r\n func.apply(thisObj, params);\r\n this._doNextAction();\r\n };\r\n Tween.prototype._start = function (resetLoopCounting) {\r\n if (resetLoopCounting === void 0) { resetLoopCounting = true; }\r\n this.status = STATUS.PENDING;\r\n if (resetLoopCounting) {\r\n this.loopCounting = 0;\r\n }\r\n this.target.callOnNextTick(this._readyStart);\r\n this.target.callOnNextTick(this.onUpdate, false);\r\n };\r\n Tween.prototype._doStart = function () {\r\n if (this.status == STATUS.IDLE) {\r\n return;\r\n }\r\n this.step = 0;\r\n this.loopCounting++;\r\n if (this.loopCounting > 1 && this.initProps) {\r\n injectProp(this.target, this.initProps);\r\n }\r\n this._doNextAction();\r\n };\r\n ;\r\n return Tween;\r\n}(HashObject));\r\nexport { Tween };\r\n//# sourceMappingURL=Tween.js.map"}
{"map":"{\"version\":3,\"file\":\"EventEmitter.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/EventEmitter.ts\"],\"names\":[],\"mappings\":\"AAIA,YAAY,CAAC;AAEb,IAAI,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,EACtC,MAAM,GAAG,GAAG,CAAC;AAShB,SAAS,MAAM,KAAI,CAAC;AASpB,IAAI,MAAM,CAAC,MAAM,EAAE;IAClB,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAMvC,IAAI,CAAC,IAAI,MAAM,EAAE,CAAC,SAAS;QAAE,MAAM,GAAG,EAAE,CAAC;CACzC;AAWD,SAAS,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI;IAC5B,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACvB,IAAI,CAAC,IAAI,GAAG,IAAI,IA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AI,MAAM,CAAC,MAAM;gBAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;;gBAC3E,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;SAC3B;QAED,OAAO,IAAI,CAAC;IACb,CAAC;IASD,yCAAkB,GAAlB,UAAmB,KAAK;QACvB,IAAI,GAAG,CAAC;QAER,IAAI,KAAK,EAAE;YACV,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;YACtC,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;gBAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;SAC7C;aAAM;YACN,IAAI,CAAC,OAAO,GAAG,IAAI,MAAM,EAAE,CAAC;YAC5B,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;SACtB;QAED,OAAO,IAAI,CAAC;IACb,CAAC;IACF,mBAAC;AAAD,CAAC,AA9OD,IA8OC\"}","code":"'use strict';\r\nvar has = Object.prototype.hasOwnProperty, prefix = '~';\r\nfunction Events() { }\r\nif (Object.create) {\r\n Events.prototype = Object.create(null);\r\n if (!new Events().__proto__)\r\n prefix = '';\r\n}\r\nfunction EE(fn, context, once) {\r\n this.fn = fn;\r\n this.context = context;\r\n this.once = once || false;\r\n}\r\nfunction addListener(emitter, event, fn, context, once) {\r\n if (typeof fn !== 'function') {\r\n throw new TypeError('The listener must be a function');\r\n }\r\n var listener = new EE(fn, context || emitter, once), evt = prefix ? prefix + event : event;\r\n if (!emitter._events[evt])\r\n emitter._events[evt] = listener, emitter._eventsCount++;\r\n else if (!emitter._events[evt].fn)\r\n emitter._events[evt].push(listener);\r\n else\r\n emitter._events[evt] = [emitter._events[evt], listener];\r\n return emitter;\r\n}\r\nfunction clearEvent(emitter, evt) {\r\n if (--emitter._eventsCount === 0)\r\n emitter._events = new Events();\r\n else\r\n delete emitter._events[evt];\r\n}\r\nvar EventEmitter = (function () {\r\n function EventEmitter() {\r\n this._events = new Events();\r\n this._eventsCount = 0;\r\n this.off = this.removeListener;\r\n this.addListener = this.on;\r\n }\r\n Object.defineProperty(EventEmitter, \"prefixed\", {\r\n get: function () {\r\n return prefix;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n EventEmitter.prototype.eventNames = function () {\r\n var names = [], events, name;\r\n if (this._eventsCount === 0)\r\n return names;\r\n for (name in (events = this._events)) {\r\n if (has.call(events, name))\r\n names.push(prefix ? name.slice(1) : name);\r\n }\r\n return names;\r\n };\r\n EventEmitter.prototype.listeners = function (event) {\r\n var evt = prefix ? prefix + event : event, handlers = this._events[evt];\r\n if (!handlers)\r\n return [];\r\n if (handlers.fn)\r\n return [handlers.fn];\r\n for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\r\n ee[i] = handlers[i].fn;\r\n }\r\n return ee;\r\n };\r\n EventEmitter.prototype.listenerCount = function (event) {\r\n var evt = prefix ? prefix + event : event, listeners = this._events[evt];\r\n if (!listeners)\r\n return 0;\r\n if (listeners.fn)\r\n return 1;\r\n return listeners.length;\r\n };\r\n EventEmitter.prototype.emit = function (event, a1, a2, a3, a4, a5) {\r\n var evt = prefix ? prefix + event : event;\r\n if (!this._events[evt])\r\n return false;\r\n var listeners = this._events[evt], len = arguments.length, args, i;\r\n if (listeners.fn) {\r\n if (listeners.once)\r\n this.removeListener(event, listeners.fn, undefined, true);\r\n switch (len) {\r\n case 1: return listeners.fn.call(listeners.context), true;\r\n case 2: return listeners.fn.call(listeners.context, a1), true;\r\n case 3: return listeners.fn.call(listeners.context, a1, a2), true;\r\n case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\r\n case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\r\n case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\r\n }\r\n for (i = 1, args = new Array(len - 1); i < len; i++) {\r\n args[i - 1] = arguments[i];\r\n }\r\n listeners.fn.apply(listeners.context, args);\r\n }\r\n else {\r\n var length = listeners.length, j;\r\n for (i = 0; i < length; i++) {\r\n if (listeners[i].once)\r\n this.removeListener(event, listeners[i].fn, undefined, true);\r\n switch (len) {\r\n case 1:\r\n listeners[i].fn.call(listeners[i].context);\r\n break;\r\n case 2:\r\n listeners[i].fn.call(listeners[i].context, a1);\r\n break;\r\n case 3:\r\n listeners[i].fn.call(listeners[i].context, a1, a2);\r\n break;\r\n case 4:\r\n listeners[i].fn.call(listeners[i].context, a1, a2, a3);\r\n break;\r\n default:\r\n if (!args)\r\n for (j = 1, args = new Array(len - 1); j < len; j++) {\r\n args[j - 1] = arguments[j];\r\n }\r\n listeners[i].fn.apply(listeners[i].context, args);\r\n }\r\n }\r\n }\r\n return true;\r\n };\r\n EventEmitter.prototype.on = function (event, fn, context) {\r\n return addListener(this, event, fn, context, false);\r\n };\r\n ;\r\n EventEmitter.prototype.once = function (event, fn, context) {\r\n return addListener(this, event, fn, context, true);\r\n };\r\n EventEmitter.prototype.removeListener = function (event, fn, context, once) {\r\n var evt = prefix ? prefix + event : event;\r\n if (!this._events[evt])\r\n return this;\r\n if (!fn) {\r\n clearEvent(this, evt);\r\n return this;\r\n }\r\n var listeners = this._events[evt];\r\n if (listeners.fn) {\r\n if (listeners.fn === fn &&\r\n (!once || listeners.once) &&\r\n (!context || listeners.context === context)) {\r\n clearEvent(this, evt);\r\n }\r\n }\r\n else {\r\n for (var i = 0, events = [], length = listeners.length; i < length; i++) {\r\n if (listeners[i].fn !== fn ||\r\n (once && !listeners[i].once) ||\r\n (context && listeners[i].context !== context)) {\r\n events.push(listeners[i]);\r\n }\r\n }\r\n if (events.length)\r\n this._events[evt] = events.length === 1 ? events[0] : events;\r\n else\r\n clearEvent(this, evt);\r\n }\r\n return this;\r\n };\r\n EventEmitter.prototype.removeAllListeners = function (event) {\r\n var evt;\r\n if (event) {\r\n evt = prefix ? prefix + event : event;\r\n if (this._events[evt])\r\n clearEvent(this, evt);\r\n }\r\n else {\r\n this._events = new Events();\r\n this._eventsCount = 0;\r\n }\r\n return this;\r\n };\r\n return EventEmitter;\r\n}());\r\nexport default EventEmitter;\r\n//# sourceMappingURL=EventEmitter.js.map"}
{"map":"{\"version\":3,\"file\":\"Data.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../src/tw/data/Data.ts\"],\"names\":[],\"mappings\":\"AASA;IAAA;IAoCA,CAAC;IA/BU,qBAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC/D,IAAI,IAAI,CAAC,OAAO,EAAE;YACd,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC;SAChC;aAAM,IAAI,IAAI,CAAC,IAAI,EAAE;YAClB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;SAC7B;aAAM,IAAI,IAAI,CAAC,GAAG,EAAE;YACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC;SAC5B;QACD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC;IAC3B,CAAC;IAMD,sBAAW,yBAAO;aAAlB;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAmB,GAAG;YAClB,IAAI,CAAC,QAAQ,GAAC,GAAG,CAAC;QACtB,CAAC;;;OAJA;IAUD,sBAAW,sBAAI;aAAf;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;IACL,WAAC;AAAD,CAAC,AApCD,IAoCC\"}","code":"var Data = (function () {\r\n function Data() {\r\n }\r\n Data.prototype.update = function (data) {\r\n this.success = data.success == undefined ? true : data.success;\r\n if (data.message) {\r\n this._message = data.message;\r\n }\r\n else if (data.desc) {\r\n this._message = data.desc;\r\n }\r\n else if (data.msg) {\r\n this._message = data.msg;\r\n }\r\n this._code = data.code;\r\n };\r\n Object.defineProperty(Data.prototype, \"message\", {\r\n get: function () {\r\n return this._message;\r\n },\r\n set: function (val) {\r\n this._message = val;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Data.prototype, \"code\", {\r\n get: function () {\r\n return this._code;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return Data;\r\n}());\r\nexport { Data };\r\n//# sourceMappingURL=Data.js.map"}
{"map":"{\"version\":3,\"file\":\"GetStartStatusData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/doStart/GetStartStatusData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAAwC,8CAAI;IAA5C;;IAQA,CAAC;IANU,mCAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IACL,yBAAC;AAAD,CAAC,AARD,CAAwC,IAAI,GAQ3C\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar GetStartStatusData = (function (_super) {\r\n tslib_1.__extends(GetStartStatusData, _super);\r\n function GetStartStatusData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GetStartStatusData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n };\r\n return GetStartStatusData;\r\n}(Data));\r\nexport { GetStartStatusData };\r\n//# sourceMappingURL=GetStartStatusData.js.map"}
{"map":"{\"version\":3,\"file\":\"RenderContext.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../node_modules/scilla-core/src/core/context/RenderContext.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,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,YAAY,CAAC;YACtB,MAAM,GAAG,MAAM,CAAC;YAChB,MAAM;KACP;IAED,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IAE1C,IAAI,UAAU,GAAG,iBAAiB,CAAC,CAAC,CAAC,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC;IAC3E,IAAI,WAAW,GAAG,iBAAiB,CAAC,CAAC,CAAC,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC;IAE9E,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;IACtB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,UAAU,GAAG,IAAI,CAAC;IACxC,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,WAAW,GAAG,IAAI,CAAC;AAC3C,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { updateScaleMode } from \"./InteractContext\";\r\nvar _canvas, context, width, height;\r\nvar scaleX, scaleY, rotation = 0;\r\nvar _designWidth, _designHeight, _scaleMode, _modifyCanvasSize;\r\nvar shortcutCanvas;\r\nexport var ScaleMode = {\r\n SHOW_ALL: 'showAll',\r\n FIXED_WIDTH: 'fixedWidth',\r\n FIXED_HEIGHT: 'fixedHeight',\r\n};\r\nexport function setupContext(options) {\r\n if (options === void 0) { options = {}; }\r\n var canvas = options.canvas, designWidth = options.designWidth, designHeight = options.designHeight, _a = options.scaleMode, scaleMode = _a === void 0 ? ScaleMode.SHOW_ALL : _a, _b = options.modifyCanvasSize, modifyCanvasSize = _b === void 0 ? false : _b;\r\n _designWidth = designWidth;\r\n _designHeight = designHeight;\r\n _scaleMode = scaleMode;\r\n _modifyCanvasSize = modifyCanvasSize;\r\n _canvas = canvas;\r\n context = canvas.getContext('2d');\r\n updateScaleModeSelf();\r\n}\r\nexport function clear() {\r\n context.setTransform(1, 0, 0, 1, 0, 0);\r\n context.clearRect(0, 0, width, height);\r\n}\r\nexport function getContext() {\r\n return context;\r\n}\r\nexport function getStageSize() {\r\n return {\r\n width: width,\r\n height: height,\r\n };\r\n}\r\nexport function getStageScale() {\r\n return {\r\n x: scaleX,\r\n y: scaleY,\r\n };\r\n}\r\nexport function getStageCenter() {\r\n return {\r\n x: width / 2,\r\n y: height / 2,\r\n };\r\n}\r\nexport function createCanvas() {\r\n return document.createElement('canvas');\r\n}\r\nexport function shortcut(type, params) {\r\n if (type === void 0) { type = 0; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var targetImg, dataUrl, img;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (!(params.bounds || params.zoomToDom)) return [3, 3];\r\n dataUrl = _canvas.toDataURL('image/png');\r\n return [4, dataUrlToImage(dataUrl)];\r\n case 1:\r\n img = _a.sent();\r\n return [4, shortcutWithSize(img, type, params.imgType, params.quality, params.bounds, params.zoomToDom ? scaleX : 1)];\r\n case 2:\r\n targetImg = _a.sent();\r\n return [3, 4];\r\n case 3:\r\n targetImg = _canvas.toDataURL(params.imgType, params.quality);\r\n _a.label = 4;\r\n case 4: return [2, targetImg];\r\n }\r\n });\r\n });\r\n}\r\nfunction dataUrlToImage(dataUrl) {\r\n return new Promise(function (resolve, reject) {\r\n var image = new Image();\r\n image.onload = function () {\r\n resolve(image);\r\n };\r\n image.onerror = function (e) {\r\n reject(e);\r\n };\r\n image.src = dataUrl;\r\n });\r\n}\r\nfunction shortcutWithSize(img, type, imgType, quality, bounds, scale) {\r\n if (scale === void 0) { scale = 1; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var sx, sy, sw, sh, dw, dh, context, dataUrl, _a;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n if (!shortcutCanvas) {\r\n shortcutCanvas = createCanvas();\r\n }\r\n sx = bounds ? bounds.x || 0 : 0;\r\n sy = bounds ? bounds.y || 0 : 0;\r\n sw = bounds ? (bounds.width ? Math.min(bounds.width, width) : width) : width;\r\n sh = bounds ? (bounds.height ? Math.min(bounds.height, height) : height) : height;\r\n dw = sw * scale;\r\n dh = sh * scale;\r\n shortcutCanvas.width = dw;\r\n shortcutCanvas.height = dh;\r\n context = shortcutCanvas.getContext('2d');\r\n context.drawImage(img, sx, sy, sw, sh, 0, 0, dw, dh);\r\n dataUrl = shortcutCanvas.toDataURL('image/' + imgType, quality);\r\n _a = type;\r\n switch (_a) {\r\n case 0: return [3, 1];\r\n case 1: return [3, 3];\r\n }\r\n return [3, 4];\r\n case 1: return [4, dataUrlToImage(dataUrl)];\r\n case 2: return [2, _b.sent()];\r\n case 3: return [2, dataUrl];\r\n case 4: return [2];\r\n }\r\n });\r\n });\r\n}\r\nfunction updateScaleModeSelf() {\r\n var parent = _canvas.parentElement;\r\n var containerWidth = parent.clientWidth;\r\n var containerHeight = parent.clientHeight;\r\n var designWidth = _designWidth || containerWidth;\r\n var designHeight = _designHeight || containerHeight;\r\n scaleX = containerWidth / designWidth;\r\n scaleY = containerHeight / designHeight;\r\n switch (_scaleMode) {\r\n case ScaleMode.SHOW_ALL:\r\n width = designWidth;\r\n height = designHeight;\r\n break;\r\n case ScaleMode.FIXED_WIDTH:\r\n width = designWidth;\r\n if (_modifyCanvasSize) {\r\n height = designHeight;\r\n }\r\n else {\r\n height = containerHeight / scaleX;\r\n }\r\n scaleY = scaleX;\r\n break;\r\n case ScaleMode.FIXED_HEIGHT:\r\n if (_modifyCanvasSize) {\r\n width = designWidth;\r\n }\r\n else {\r\n width = containerWidth / scaleY;\r\n }\r\n height = designHeight;\r\n scaleX = scaleY;\r\n break;\r\n }\r\n updateScaleMode(scaleX, scaleY, rotation);\r\n var styleWidth = _modifyCanvasSize ? designWidth * scaleX : containerWidth;\r\n var styleHeight = _modifyCanvasSize ? designHeight * scaleY : containerHeight;\r\n _canvas.width = width;\r\n _canvas.height = height;\r\n _canvas.style.display = 'block';\r\n _canvas.style.width = styleWidth + 'px';\r\n _canvas.style.height = styleHeight + 'px';\r\n}\r\n//# sourceMappingURL=RenderContext.js.map"}
{"map":"{\"version\":3,\"file\":\"Bounds.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Bounds.ts\"],\"names\":[],\"mappings\":\"AAQA;IAMC,gBAAY,CAAK,EAAE,CAAK,EAAE,KAAS,EAAE,MAAU;QAAnC,kBAAA,EAAA,KAAK;QAAE,kBAAA,EAAA,KAAK;QAAE,sBAAA,EAAA,SAAS;QAAE,uBAAA,EAAA,UAAU;QAC9C,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,sBAAI,wBAAI;aAAR;YACC,OAAO,IAAI,CAAC,CAAC,CAAC;QACf,CAAC;aAED,UAAS,CAAC;YACT,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACZ,CAAC;;;OAJA;IAMD,sBAAI,uBAAG;aAAP;YACC,OAAO,IAAI,CAAC,CAAC,CAAC;QACf,CAAC;aAED,UAAQ,CAAC;YACR,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACZ,CAAC;;;OAJA;IAMD,sBAAI,yBAAK;aAAT;YACC,OAAO,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAC5B,CAAC;aAED,UAAU,CAAC;YACV,IAAI,CAAC,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QACzB,CAAC;;;OAJA;IAMD,sBAAI,0BAAM;aAAV;YACC,OAAO,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAC7B,CAAC;aAED,UAAW,CAAC;YACX,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,I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AAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IACzJ,CAAC;IAED,uBAAM,GAAN,UAAO,SAAS;QACf,IAAI,IAAI,KAAK,SAAS,EAAE;YACvB,OAAO,IAAI,CAAC;SACZ;QACD,OAAO,IAAI,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;eACnD,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,MAAM,CAAC;IACxE,CAAC;IAED,yBAAQ,GAAR;QACO,IAAA,SAA4B,EAA3B,QAAC,EAAE,QAAC,EAAE,gBAAK,EAAE,kBAAc,CAAC;QACnC,OAAO,KAAK,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,UAAU,GAAG,KAAK,GAAG,WAAW,GAAG,MAAM,GAAG,GAAG,CAAC;IACjF,CAAC;IACF,aAAC;AAAD,CAAC,AAjHD,IAiHC\"}","code":"var Bounds = (function () {\r\n function Bounds(x, y, width, height) {\r\n if (x === void 0) { x = 0; }\r\n if (y === void 0) { y = 0; }\r\n if (width === void 0) { width = 0; }\r\n if (height === void 0) { height = 0; }\r\n this.x = x;\r\n this.y = y;\r\n this.width = width;\r\n this.height = height;\r\n }\r\n Object.defineProperty(Bounds.prototype, \"left\", {\r\n get: function () {\r\n return this.x;\r\n },\r\n set: function (v) {\r\n this.x = v;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Bounds.prototype, \"top\", {\r\n get: function () {\r\n return this.y;\r\n },\r\n set: function (v) {\r\n this.y = v;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Bounds.prototype, \"right\", {\r\n get: function () {\r\n return this.x + this.width;\r\n },\r\n set: function (v) {\r\n this.width = v - this.x;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Bounds.prototype, \"bottom\", {\r\n get: function () {\r\n return this.y + this.height;\r\n },\r\n set: function (v) {\r\n this.height = v - this.y;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Bounds.prototype.contains = function (x, y) {\r\n return this.x <= x &&\r\n this.x + this.width >= x &&\r\n this.y <= y &&\r\n this.y + this.height >= y;\r\n };\r\n Bounds.prototype.setTo = function (x, y, width, height) {\r\n this.x = x;\r\n this.y = y;\r\n this.width = width;\r\n this.height = height;\r\n };\r\n Bounds.prototype.copyFrom = function (target) {\r\n this.x = target.x;\r\n this.y = target.y;\r\n this.width = target.width;\r\n this.height = target.height;\r\n };\r\n Bounds.prototype.clone = function () {\r\n return new Bounds(this.x, this.y, this.width, this.height);\r\n };\r\n Bounds.prototype.inflate = function (dx, dy) {\r\n this.x -= dx;\r\n this.width += 2 * dx;\r\n this.y -= dy;\r\n this.height += 2 * dy;\r\n };\r\n Bounds.prototype.isEmpty = function () {\r\n return this.width <= 0 || this.height <= 0;\r\n };\r\n Bounds.prototype.setEmpty = function () {\r\n this.x = 0;\r\n this.y = 0;\r\n this.width = 0;\r\n this.height = 0;\r\n };\r\n Bounds.prototype.intersects = function (toIntersect) {\r\n return Math.max(this.x, toIntersect.x) <= Math.min(this.right, toIntersect.right)\r\n && Math.max(this.y, toIntersect.y) <= Math.min(this.bottom, toIntersect.bottom);\r\n };\r\n Bounds.prototype.containsBounds = function (bounds) {\r\n var r1 = bounds.x + bounds.width;\r\n var b1 = bounds.y + bounds.height;\r\n var r2 = this.x + this.width;\r\n var b2 = this.y + this.height;\r\n return (bounds.x >= this.x) && (bounds.x < r2) && (bounds.y >= this.y) && (bounds.y < b2) && (r1 > this.x) && (r1 <= r2) && (b1 > this.y) && (b1 <= b2);\r\n };\r\n Bounds.prototype.equals = function (toCompare) {\r\n if (this === toCompare) {\r\n return true;\r\n }\r\n return this.x === toCompare.x && this.y === toCompare.y\r\n && this.width === toCompare.width && this.height === toCompare.height;\r\n };\r\n Bounds.prototype.toString = function () {\r\n var _a = this, x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n return \"(x=\" + x + \", y=\" + y + \", width=\" + width + \", height=\" + height + \")\";\r\n };\r\n return Bounds;\r\n}());\r\nexport default Bounds;\r\n//# sourceMappingURL=Bounds.js.map"}
{"map":"{\"version\":3,\"file\":\"GetRoleData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/common/getRole/GetRoleData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAAiC,uCAAI;IAArC;;IAaA,CAAC;IAPU,4BAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;IAC/B,CAAC;IACL,kBAAC;AAAD,CAAC,AAbD,CAAiC,IAAI,GAapC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar GetRoleData = (function (_super) {\r\n tslib_1.__extends(GetRoleData, _super);\r\n function GetRoleData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GetRoleData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.role = data.data.role;\r\n };\r\n return GetRoleData;\r\n}(Data));\r\nexport { GetRoleData };\r\n//# sourceMappingURL=GetRoleData.js.map"}
{"map":"{\"version\":3,\"file\":\"LotteryData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/common/lottery/LotteryData.ts\"],\"names\":[],\"mappings\":\"AASA;IAAA;IAmIA,CAAC;IAxCU,4BAAM,GAAb,UAAc,IAAS;Q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I,CAAC;SAC3B;QAED,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SACpD;aAAM;YACH,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;SAC3B;QACD,IAAG,IAAI,CAAC,MAAM,EAAC;YACX,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;SAC7B;IACL,CAAC;IACL,kBAAC;AAAD,CAAC,AAnID,IAmIC\"}","code":"var LotteryData = (function () {\r\n function LotteryData() {\r\n }\r\n LotteryData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n this.androidDownloadUrl = data.androidDownloadUrl;\r\n this.iosDownloadUrl = data.iosDownloadUrl;\r\n this.img = data.imgUrl;\r\n this.link = data.link;\r\n this.name = data.name ? data.name : data.title;\r\n this.openUrl = data.openUrl;\r\n this.showUse = data.showUse;\r\n this.tip = data.tip;\r\n this.title = data.title;\r\n this.useBtnText = data.useBtnText;\r\n this.validate = data.validate;\r\n this.type = data.type;\r\n this.confirm = data.confirm;\r\n this.id = data.id;\r\n if (data.stinfodpmclose) {\r\n this.closeExposure = JSON.parse(data.stinfodpmclose);\r\n }\r\n else {\r\n this.closeExposure = null;\r\n }\r\n if (data.stinfodpmgouse) {\r\n this.useExposure = JSON.parse(data.stinfodpmgouse);\r\n }\r\n else {\r\n this.useExposure = null;\r\n }\r\n if (data.stInfoDpmImg) {\r\n this.imgExposure = JSON.parse(data.stInfoDpmImg);\r\n }\r\n else {\r\n this.imgExposure = null;\r\n }\r\n if (data.itemId) {\r\n this.itemId = data.itemId;\r\n }\r\n };\r\n return LotteryData;\r\n}());\r\nexport { LotteryData };\r\n//# sourceMappingURL=LotteryData.js.map"}
{"map":"{\"version\":3,\"file\":\"Size.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Size.ts\"],\"names\":[],\"mappings\":\";AAGA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAKtD;IAQC,cAAY,KAAW,EAAE,MAAY;QAAzB,sBAAA,EAAA,WAAW;QAAE,uBAAA,EAAA,YAAY;QACpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,qBAAM,GAAN;QACC,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;IACnB,CAAC;IAED,sBAAO,GAAP;IAEA,CAAC;IAED,kBAAG,GAAH,UAAI,KAAM,EAAE,MAAO;QAClB,IAAI,KAAK,KAAK,SAAS,EAAE;YACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACnB;QAED,IAAI,MAAM,KAAK,SAAS,EAAE;YACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;SACrB;IACF,CAAC;IAED,oBAAK,GAAL;QACC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED,uBAAQ,GAAR,UAAS,MAAM;QACd,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,uBAAQ,GAAR,UAAS,KAAK,EAAE,GAAG,EAAE,QAAQ;QAC5B,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtD,CAAC;IAzCD;QADC,iBAAiB;uCACJ;IAEd;QADC,iBAAiB;wCACH;IAwChB,WAAC;CAAA,AA5CD,IA4CC;eA5CoB,IAAI\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { dirtyFieldTrigger } from \"../tools/decorators\";\r\nvar Size = (function () {\r\n function Size(width, height) {\r\n if (width === void 0) { width = NaN; }\r\n if (height === void 0) { height = NaN; }\r\n this.width = width;\r\n this.height = height;\r\n }\r\n Size.prototype.setNaN = function () {\r\n this.width = NaN;\r\n this.height = NaN;\r\n };\r\n Size.prototype.isEmpty = function () {\r\n };\r\n Size.prototype.set = function (width, height) {\r\n if (width !== undefined) {\r\n this.width = width;\r\n }\r\n if (height !== undefined) {\r\n this.height = height;\r\n }\r\n };\r\n Size.prototype.clone = function () {\r\n return new Size(this.width, this.height);\r\n };\r\n Size.prototype.copyFrom = function (target) {\r\n this.width = target.width;\r\n this.height = target.height;\r\n };\r\n Size.prototype.onModify = function (value, key, oldValue) {\r\n this.onChange && this.onChange(value, key, oldValue);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Size.prototype, \"width\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Size.prototype, \"height\", void 0);\r\n return Size;\r\n}());\r\nexport default Size;\r\n//# sourceMappingURL=Size.js.map"}
{"map":"{\"version\":3,\"file\":\"GetReviveCardNumData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/game/doRevive/GetReviveCardNumData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAA0C,gDAAI;IAc1C;eACI,iBAAO;IACX,CAAC;IAEM,qCAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC;IACnC,CAAC;IACL,2BAAC;AAAD,CAAC,AA3BD,CAA0C,IAAI,GA2B7C\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar GetReviveCardNumData = (function (_super) {\r\n tslib_1.__extends(GetReviveCardNumData, _super);\r\n function GetReviveCardNumData() {\r\n return _super.call(this) || this;\r\n }\r\n GetReviveCardNumData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.timestamp = data.timestamp;\r\n this.isSuccess = data.success;\r\n this.reviveCardNum = data.data;\r\n };\r\n return GetReviveCardNumData;\r\n}(Data));\r\nexport { GetReviveCardNumData };\r\n//# sourceMappingURL=GetReviveCardNumData.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,yBAAyB,CAAC;AACnI,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAC,OAAO,IAAI,OAAO,EAAE,aAAa,EAAC,MAAM,WAAW,CAAA;AAC3D,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA\"}","code":"export { ScillaComponent } from \"./ScillaComponent\";\r\nexport { Entity } from './Entity';\r\nexport { Scene } from './Scene';\r\nexport { ScillaEvent } from './ScillaEvent';\r\nexport { getContext, createCanvas, getStageSize, getStageScale, getStageCenter, shortcut, ScaleMode } from './context/RenderContext';\r\nexport * from './manager';\r\nexport { default as Texture, createTexture } from './Texture';\r\nexport * from './Sheet';\r\nexport * from './FrameAnimation';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"SetRoleData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/common/setRole/SetRoleData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAAiC,uCAAI;IAArC;;IAaA,CAAC;IAPU,4BAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;IAC/B,CAAC;IACL,kBAAC;AAAD,CAAC,AAbD,CAAiC,IAAI,GAapC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar SetRoleData = (function (_super) {\r\n tslib_1.__extends(SetRoleData, _super);\r\n function SetRoleData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n SetRoleData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n _super.prototype.update.call(this, data);\r\n this.role = data.data.role;\r\n };\r\n return SetRoleData;\r\n}(Data));\r\nexport { SetRoleData };\r\n//# sourceMappingURL=SetRoleData.js.map"}
{"map":"{\"version\":3,\"file\":\"QuestionSubmitData.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../src/tw/data/custom/questionSbumit/QuestionSubmitData.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;IAAwC,8CAAI;IAA5C;;IA2CA,CAAC;IAXU,mCAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QACD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC;QAC3B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC;IAChD,CAAC;IACL,yBAAC;AAAD,CAAC,AA3CD,CAAwC,IAAI,GA2C3C\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Data } from \"../../Data\";\r\nvar QuestionSubmitData = (function (_super) {\r\n tslib_1.__extends(QuestionSubmitData, _super);\r\n function QuestionSubmitData() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n QuestionSubmitData.prototype.update = function (data) {\r\n if (!data) {\r\n return;\r\n }\r\n this.orderId = data.orderId;\r\n this.type = data.prizeType;\r\n this.plginOrderId = data.plginOrderId;\r\n this.needPrize = data.needPrize;\r\n this.point = data.point;\r\n this.currentLocation = data.currentLocation;\r\n };\r\n return QuestionSubmitData;\r\n}(Data));\r\nexport { QuestionSubmitData };\r\n//# sourceMappingURL=QuestionSubmitData.js.map"}
{"map":"{\"version\":3,\"file\":\"InteractContext.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../node_modules/scilla-core/src/core/context/InteractContext.ts\"],\"names\":[],\"mappings\":\"AAMA,IAAI,OAAO,CAAC;AACZ,IAAI,aAAa,CAAC;AAClB,IAAI,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC;AAEhC,IAAM,EAAE,GAAG,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;AAC7C,IAAM,QAAQ,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAM/E,MAAM,UAAU,YAAY,CAAC,OAAgB;IAAhB,wBAAA,EAAA,YAAgB;IACrC,IAAA,uBAAM,EAAE,mCAA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EAAE,CAAC;IAC1C,IAAI,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC,WAAW,GAAG,GAAG,CAAC,UAAU,CAAC;IAC1D,IAAI,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,MAAM,CAAC,WAAW,GAAG,GAAG,CAAC,SAAS,CAAC;IACvD,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,GAAG,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC;IACrC,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,GAAG,GAAG,EAAE,IAAI,GAAG,CAAC,CAAC;IACpC,IAAI,SAAS,KAAK,EAAE,EAAE;QACrB,IAAI,GAAG,CAAC,CAAC;QACT,IAAI,GAAG,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;KACrB;SACI,IAAI,SAAS,KAAK,CAAC,EAAE,EAAE;QAC3B,IAAI,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;QACtB,IAAI,GAAG,CAAC,CAAC;KACT;IACD,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC;IACtB,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC;IACtB,OAAO;QACN,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QACnB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QACnB,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,CAAC;KACjC,CAAC;AACH,CAAC\"}","code":"var _canvas;\r\nvar _touchHandler;\r\nvar _scaleX, _scaleY, _rotation;\r\nvar ua = navigator.userAgent.toLowerCase();\r\nvar isMobile = (ua.indexOf('mobile') !== -1 || ua.indexOf('android') !== -1);\r\nexport function setupContext(options) {\r\n if (options === void 0) { options = {}; }\r\n var canvas = options.canvas, touchHandler = options.touchHandler;\r\n _touchHandler = touchHandler;\r\n _canvas = canvas;\r\n addListeners();\r\n}\r\nexport function updateScaleMode(scaleX, scaleY, rotation) {\r\n _scaleX = scaleX;\r\n _scaleY = scaleY;\r\n _rotation = rotation;\r\n}\r\nfunction addListeners() {\r\n if (window.navigator.msPointerEnabled) {\r\n _canvas.addEventListener(\"MSPointerDown\", function (event) {\r\n event.identifier = event.pointerId;\r\n onTouchBegin(event);\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"MSPointerMove\", function (event) {\r\n event.identifier = event.pointerId;\r\n onTouchMove(event);\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"MSPointerUp\", function (event) {\r\n event.identifier = event.pointerId;\r\n onTouchEnd(event);\r\n prevent(event);\r\n }, false);\r\n }\r\n else {\r\n if (!isMobile) {\r\n addMouseListener();\r\n }\r\n addTouchListener();\r\n }\r\n}\r\nfunction prevent(event) {\r\n event.stopPropagation();\r\n if (event[\"isScroll\"] != true && !_canvas['userTyping']) {\r\n event.preventDefault();\r\n }\r\n}\r\nfunction addMouseListener() {\r\n _canvas.addEventListener(\"mousedown\", onTouchBegin);\r\n _canvas.addEventListener(\"mousemove\", onMouseMove);\r\n _canvas.addEventListener(\"mouseup\", onTouchEnd);\r\n}\r\nfunction addTouchListener() {\r\n _canvas.addEventListener(\"touchstart\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchBegin(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"touchmove\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchMove(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"touchend\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchEnd(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"touchcancel\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchEnd(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n}\r\nfunction onTouchBegin(event) {\r\n var location = getLocation(event);\r\n _touchHandler.onTouchBegin(location);\r\n}\r\nfunction onMouseMove(event) {\r\n if (event.buttons === 0) {\r\n onTouchEnd(event);\r\n }\r\n else {\r\n onTouchMove(event);\r\n }\r\n}\r\nfunction onTouchMove(event) {\r\n var location = getLocation(event);\r\n _touchHandler.onTouchMove(location);\r\n}\r\nfunction onTouchEnd(event) {\r\n var location = getLocation(event);\r\n _touchHandler.onTouchEnd(location);\r\n}\r\nfunction getLocation(event) {\r\n var doc = document.documentElement;\r\n var box = _canvas.getBoundingClientRect();\r\n var left = box.left + window.pageXOffset - doc.clientLeft;\r\n var top = box.top + window.pageYOffset - doc.clientTop;\r\n var x = event.pageX - left, newX = x;\r\n var y = event.pageY - top, newY = y;\r\n if (_rotation === 90) {\r\n newX = y;\r\n newY = box.width - x;\r\n }\r\n else if (_rotation === -90) {\r\n newX = box.height - y;\r\n newY = x;\r\n }\r\n newX = newX / _scaleX;\r\n newY = newY / _scaleY;\r\n return {\r\n x: Math.round(newX),\r\n y: Math.round(newY),\r\n identifier: event.identifier || 0,\r\n };\r\n}\r\n//# sourceMappingURL=InteractContext.js.map"}
{"map":"{\"version\":3,\"file\":\"TextStyle.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/TextStyle.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IAIpB,8BAAkB,CAAA;IAIlB,8BAAkB,CAAA;IAIlB,gCAAoB,CAAA;AACrB,CAAC,EAbW,SAAS,KAAT,SAAS,QAapB;AAED,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IAItB,gCAAkB,CAAA;IAIlB,wCAA0B,CAAA;AAC3B,CAAC,EATW,WAAW,KAAX,WAAW,QAStB;AAED,MAAM,CAAN,IAAY,UAiBX;AAjBD,WAAY,UAAU;IAIrB,+BAAiB,CAAA;IAIjB,2BAAa,CAAA;IAIb,+BAAiB,CAAA;IAIjB,iCAAmB,CAAA;AACpB,CAAC,EAjBW,UAAU,KAAV,UAAU,QAiBrB;AAKD;IAAA;QAQC,cAAS,GAAc,SAAS,CAAC,MAAM,CAAC;QAMxC,gBAAW,GAAgB,WAAW,CAAC,MAAM,CAAC;QAM9C,eAAU,GAAe,UAAU,CAAC,MAAM,CAAC;QAM3C,aAAQ,GAAW,EAAE,CAAC;QAMtB,eAAU,GAAW,OAAO,CAAC;IAK9B,CAAC;IAHA,4BAAQ,GAAR,UAAS,KAAK,EAAE,GAAG,EAAE,QAAQ;QAC5B,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IACnE,CAAC;IA5BD;QADC,iBAAiB;gDACsB;IAMxC;QADC,iBAAiB;kDAC4B;IAM9C;QADC,iBAAiB;iDACyB;IAM3C;QADC,iBAAiB;+CACI;IAMtB;QADC,iBAAiB;iDACW;IAK9B,gBAAC;CAAA,AArCD,IAqCC;SArCY,SAAS\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { dirtyFieldTrigger } from \"../tools/decorators\";\r\nexport var FontStyle;\r\n(function (FontStyle) {\r\n FontStyle[\"NORMAL\"] = \"normal\";\r\n FontStyle[\"ITALIC\"] = \"italic\";\r\n FontStyle[\"OBLIQUE\"] = \"oblique\";\r\n})(FontStyle || (FontStyle = {}));\r\nexport var FontVariant;\r\n(function (FontVariant) {\r\n FontVariant[\"NORMAL\"] = \"normal\";\r\n FontVariant[\"SMALL_CAPS\"] = \"small-caps\";\r\n})(FontVariant || (FontVariant = {}));\r\nexport var FontWeight;\r\n(function (FontWeight) {\r\n FontWeight[\"NORMAL\"] = \"normal\";\r\n FontWeight[\"BOLD\"] = \"bold\";\r\n FontWeight[\"BOLDER\"] = \"bolder\";\r\n FontWeight[\"LIGHTER\"] = \"lighter\";\r\n})(FontWeight || (FontWeight = {}));\r\nvar TextStyle = (function () {\r\n function TextStyle() {\r\n this.fontStyle = FontStyle.NORMAL;\r\n this.fontVariant = FontVariant.NORMAL;\r\n this.fontWeight = FontWeight.NORMAL;\r\n this.fontSize = 25;\r\n this.fontFamily = 'Arial';\r\n }\r\n TextStyle.prototype.onModify = function (value, key, oldValue) {\r\n this.onChange && this.onChange(value, key, oldValue, 'textStyle');\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontStyle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontVariant\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontWeight\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontSize\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontFamily\", void 0);\r\n return TextStyle;\r\n}());\r\nexport { TextStyle };\r\n//# sourceMappingURL=TextStyle.js.map"}
{"map":"{\"version\":3,\"file\":\"TextRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/TextRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAE,YAAY,EAAE,UAAU,EAAoB,MAAM,QAAQ,CAAC;AAEvE,IAAA,kDAAkB,EAAE,gDAAiB,CAAe;AAE3D,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IAIpB,0BAAa,CAAA;IAIb,8BAAiB,CAAA;IAIjB,4BAAe,CAAA;AAChB,CAAC,EAbW,SAAS,KAAT,SAAS,QAapB;AAED,MAAM,CAAN,IAAY,aAaX;AAbD,WAAY,aAAa;IAIxB,4BAAW,CAAA;IAIX,kCAAiB,CAAA;IAIjB,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AM,GAAG,WAAW,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CACzD,CAAC,CAAC,CAAC,cAAc,CAAC;SACnB;aAAM;YACN,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;YACrD,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC;SACxD;QAED,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAE9B,OAAO;YACN,IAAI,MAAA;YACJ,SAAS,WAAA;YACT,UAAU,YAAA;SACV,CAAC;IACH,CAAC;IAKD,oCAAa,GAAb;QACC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAChB,OAAO;SACP;QAED,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACpB,IAAI,CAAC,cAAc,EAAE,CAAC;SACtB;QAED,IAAI,CAAC,SAAS,EAAE,CAAC;QAEjB,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IAjbD;QADC,kBAAkB;8CACD;IAMlB;QADC,iBAAiB;kDACG;IAMrB;QADC,kBAAkB;mDACqB;IAMxC;QADC,kBAAkB;uDACiC;IAMpD;QADC,kBAAkB;qDACK;IAMxB;QADC,kBAAkB;uDACO;IAM1B;QADC,kBAAkB;iDACD;IAWlB;QADC,kBAAkB;mDACoB;IAGvC;QADC,kBAAkB;sDACU;IAgY9B,mBAAC;CAAA,AAvbD,CAA0C,eAAe,GAubxD;eAvboB,YAAY\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nimport { TextStyle, EngineConfig, decorators } from \"scilla\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector, dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nexport var TextAlign;\r\n(function (TextAlign) {\r\n TextAlign[\"LEFT\"] = \"left\";\r\n TextAlign[\"CENTER\"] = \"center\";\r\n TextAlign[\"RIGHT\"] = \"right\";\r\n})(TextAlign || (TextAlign = {}));\r\nexport var VerticalAlign;\r\n(function (VerticalAlign) {\r\n VerticalAlign[\"TOP\"] = \"top\";\r\n VerticalAlign[\"MIDDLE\"] = \"middle\";\r\n VerticalAlign[\"BOTTOM\"] = \"bottom\";\r\n})(VerticalAlign || (VerticalAlign = {}));\r\nvar TextRenderer = (function (_super) {\r\n tslib_1.__extends(TextRenderer, _super);\r\n function TextRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.text = '';\r\n _this.textFlow = null;\r\n _this.textAlign = TextAlign.CENTER;\r\n _this.verticalAlign = VerticalAlign.MIDDLE;\r\n _this.lineSpacing = 0;\r\n _this.letterSpacing = 0;\r\n _this._lineHeight = NaN;\r\n _this._bmpLineHeight = 0;\r\n _this.textStyle = new TextStyle();\r\n _this.useCacheMode = true;\r\n _this.measureCache = {};\r\n return _this;\r\n }\r\n TextRenderer.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n switch (key) {\r\n case 'textFlow':\r\n if (value) {\r\n this.updateTextFlow();\r\n }\r\n break;\r\n case 'textStyle':\r\n value.onChange = this.makeDirty.bind(this);\r\n this.makeDirty();\r\n break;\r\n }\r\n };\r\n TextRenderer.prototype.updateTextFlow = function () {\r\n var e_1, _a;\r\n var text = '';\r\n if (this.textFlow) {\r\n try {\r\n for (var _b = tslib_1.__values(this.textFlow), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var item = _c.value;\r\n text += item.text;\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n }\r\n this._pureText = text;\r\n this.makeDirty();\r\n };\r\n Object.defineProperty(TextRenderer.prototype, \"lineHeight\", {\r\n get: function () {\r\n return isNaN(this._lineHeight) ? (this.isBmpMode ? this._bmpLineHeight : this.textStyle.fontSize * EngineConfig.lineHeightRatio) : this._lineHeight;\r\n },\r\n set: function (value) {\r\n if (this._lineHeight != value) {\r\n this._lineHeight = value;\r\n this.dirty = true;\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TextRenderer.prototype, \"pureText\", {\r\n get: function () {\r\n return this.textFlow ? this._pureText : this.text;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n TextRenderer.prototype.getRenderSize = function () {\r\n return {\r\n width: this._textWidth,\r\n height: this._textHeight,\r\n };\r\n };\r\n TextRenderer.prototype.beforeDraw = function () {\r\n _super.prototype.beforeDraw.call(this);\r\n if (!this.isBmpMode) {\r\n this.applyTextStyle();\r\n }\r\n };\r\n TextRenderer.prototype.applyTextStyle = function () {\r\n var _a = this, context = _a.context, textStyle = _a.textStyle;\r\n var fontStyle = textStyle.fontStyle, fontVariant = textStyle.fontVariant, fontWeight = textStyle.fontWeight, fontSize = textStyle.fontSize, fontFamily = textStyle.fontFamily;\r\n context.font = fontStyle + \" \" + fontVariant + \" \" + fontWeight + \" \" + fontSize + \"px \" + fontFamily;\r\n };\r\n TextRenderer.prototype.fillAndStoke = function () {\r\n if (!this.pureText || this.pureText.length == 0) {\r\n return;\r\n }\r\n var _a = this, context = _a.context, measureCache = _a.measureCache, lineHeight = _a.lineHeight, lineSpacing = _a.lineSpacing, letterSpacing = _a.letterSpacing, rows = _a.rows, textAlign = _a.textAlign, verticalAlign = _a.verticalAlign, isBmpMode = _a.isBmpMode, _b = _a.transform, width = _b.width, height = _b.height;\r\n var rowCount = rows.length;\r\n var x = 0;\r\n switch (textAlign) {\r\n case \"left\":\r\n x = 0;\r\n break;\r\n case \"right\":\r\n x = width;\r\n break;\r\n case \"center\":\r\n default:\r\n x = width / 2;\r\n break;\r\n }\r\n var y = 0;\r\n var drawHeight = rowCount * lineHeight + lineSpacing * (rowCount - 1);\r\n switch (verticalAlign) {\r\n case \"top\":\r\n y = 0;\r\n break;\r\n case \"bottom\":\r\n y = height - drawHeight;\r\n break;\r\n case \"middle\":\r\n default:\r\n y = (height - drawHeight) / 2;\r\n break;\r\n }\r\n y += lineHeight;\r\n context.textAlign = letterSpacing == 0 && !this.textFlow ? textAlign : 'left';\r\n context.textBaseline = 'bottom';\r\n var offY = 0;\r\n for (var i = 0; i < rowCount; i++) {\r\n var _c = rows[i], text = _c.text, lineWidth = _c.lineWidth;\r\n if (letterSpacing == 0 && !isBmpMode && !this.textFlow) {\r\n this.drawText(i, text, x, y + offY);\r\n }\r\n else {\r\n var offX = 0;\r\n switch (textAlign) {\r\n case \"left\":\r\n offX = 0;\r\n break;\r\n case \"right\":\r\n offX = -lineWidth;\r\n break;\r\n case \"center\":\r\n default:\r\n offX = -lineWidth / 2;\r\n break;\r\n }\r\n for (var j = 0, lj = text.length; j < lj; j++) {\r\n var char = text[j];\r\n this.drawText(j, char, x + offX, y + offY);\r\n if (measureCache[char].width > 0) {\r\n offX += measureCache[char].width + letterSpacing;\r\n }\r\n }\r\n }\r\n offY += lineHeight + lineSpacing;\r\n }\r\n };\r\n TextRenderer.prototype.getStyle = function (index) {\r\n var e_2, _a;\r\n if (!this.textFlow) {\r\n return null;\r\n }\r\n var targetItem;\r\n var count = 0;\r\n try {\r\n for (var _b = tslib_1.__values(this.textFlow), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var item = _c.value;\r\n count += item.text.length;\r\n if (index < count) {\r\n targetItem = item;\r\n break;\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n return targetItem.style;\r\n };\r\n TextRenderer.prototype.drawText = function (index, text, x, y) {\r\n var _a = this, context = _a.context, borderWidth = _a.borderWidth, isBmpMode = _a.isBmpMode, fontRes = _a.fontRes;\r\n if (isBmpMode) {\r\n var texture = fontRes.getTexture(text);\r\n if (!texture) {\r\n return;\r\n }\r\n var _b = texture.bounds, textureX = _b.x, textureY = _b.y, textureWidth = _b.width, textureHeight = _b.height;\r\n context.drawImage(texture.img, textureX, textureY, textureWidth, textureHeight, x, y, textureWidth, textureHeight);\r\n }\r\n else {\r\n var style = this.getStyle(index);\r\n if (style) {\r\n if (style.hasOwnProperty('textColor')) {\r\n context.fillStyle = style.textColor;\r\n }\r\n }\r\n else {\r\n context.fillStyle = this.fillColor;\r\n }\r\n context.fillText(text, x, y + 1);\r\n if (borderWidth > 0) {\r\n context.strokeText(text, x, y + 1);\r\n }\r\n }\r\n };\r\n Object.defineProperty(TextRenderer.prototype, \"isBmpMode\", {\r\n get: function () {\r\n return !!this.fontRes;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n TextRenderer.prototype.measureText = function (text) {\r\n var e_3, _a, e_4, _b;\r\n var result;\r\n if (this.measureCache.hasOwnProperty(text)) {\r\n result = this.measureCache[text];\r\n }\r\n else {\r\n var _c = this, context = _c.context, letterSpacing = _c.letterSpacing, isBmpMode = _c.isBmpMode, fontRes = _c.fontRes, lineHeight = _c.lineHeight;\r\n if (isBmpMode) {\r\n if (text.length == 1) {\r\n var texture = fontRes.getTexture(text);\r\n result = {\r\n width: texture ? texture.width : 0,\r\n height: texture ? texture.height : 0,\r\n };\r\n }\r\n else {\r\n var totalWidth = 0, totalHeight = 0;\r\n try {\r\n for (var text_1 = tslib_1.__values(text), text_1_1 = text_1.next(); !text_1_1.done; text_1_1 = text_1.next()) {\r\n var char = text_1_1.value;\r\n var measureResult = this.measureText(char);\r\n totalWidth += measureResult.width;\r\n if (measureResult.height > totalHeight) {\r\n totalHeight = measureResult.height;\r\n }\r\n }\r\n }\r\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\r\n finally {\r\n try {\r\n if (text_1_1 && !text_1_1.done && (_a = text_1.return)) _a.call(text_1);\r\n }\r\n finally { if (e_3) throw e_3.error; }\r\n }\r\n result = {\r\n width: totalWidth,\r\n height: totalHeight,\r\n };\r\n }\r\n }\r\n else {\r\n result = {\r\n width: context.measureText(text).width,\r\n height: lineHeight,\r\n };\r\n }\r\n result.width += letterSpacing * (text.length - 1);\r\n if (text.length == 1) {\r\n this.measureCache[text] = result;\r\n }\r\n if (letterSpacing != 0 && text.length > 1 || this.textFlow) {\r\n try {\r\n for (var text_2 = tslib_1.__values(text), text_2_1 = text_2.next(); !text_2_1.done; text_2_1 = text_2.next()) {\r\n var char = text_2_1.value;\r\n this.measureCache[char] = this.measureText(char);\r\n }\r\n }\r\n catch (e_4_1) { e_4 = { error: e_4_1 }; }\r\n finally {\r\n try {\r\n if (text_2_1 && !text_2_1.done && (_b = text_2.return)) _b.call(text_2);\r\n }\r\n finally { if (e_4) throw e_4.error; }\r\n }\r\n }\r\n }\r\n return result;\r\n };\r\n TextRenderer.prototype.splitText = function () {\r\n var e_5, _a;\r\n var _b = this, text = _b.pureText, letterSpacing = _b.letterSpacing, lineSpacing = _b.lineSpacing, lineHeight = _b.lineHeight, isBmpMode = _b.isBmpMode, _c = _b.transform, explicitWidth = _c.explicitWidth, explicitHeight = _c.explicitHeight;\r\n this.measureCache = {};\r\n var textWidth = 0, textHeight = 0, maxHeight = 0;\r\n var rows = [], measureResult;\r\n if (text && text.length > 0) {\r\n if (isNaN(explicitWidth)) {\r\n var lines = text.split('\\n');\r\n try {\r\n for (var lines_1 = tslib_1.__values(lines), lines_1_1 = lines_1.next(); !lines_1_1.done; lines_1_1 = lines_1.next()) {\r\n var line = lines_1_1.value;\r\n measureResult = this.measureText(line);\r\n var mw = measureResult.width;\r\n if (mw > textWidth) {\r\n textWidth = mw;\r\n }\r\n if (isBmpMode) {\r\n var mh = measureResult.height;\r\n if (mh > maxHeight) {\r\n maxHeight = mh;\r\n }\r\n }\r\n rows.push({\r\n text: line,\r\n lineWidth: mw,\r\n });\r\n }\r\n }\r\n catch (e_5_1) { e_5 = { error: e_5_1 }; }\r\n finally {\r\n try {\r\n if (lines_1_1 && !lines_1_1.done && (_a = lines_1.return)) _a.call(lines_1);\r\n }\r\n finally { if (e_5) throw e_5.error; }\r\n }\r\n if (!isBmpMode) {\r\n maxHeight = lineHeight;\r\n }\r\n this._bmpLineHeight = maxHeight;\r\n }\r\n else {\r\n var chars = text.split('');\r\n var lineWidth = 0, charWidth = 0, index = 0;\r\n var line = '';\r\n for (var i = 0, li = chars.length; i < li; i++) {\r\n var char = chars[i];\r\n if (char == '\\n') {\r\n rows.push({\r\n text: line,\r\n lineWidth: lineWidth,\r\n });\r\n line = '';\r\n lineWidth = 0;\r\n index = 0;\r\n }\r\n else {\r\n measureResult = this.measureText(char);\r\n if (measureResult.width == 0) {\r\n continue;\r\n }\r\n charWidth = measureResult.width;\r\n var mh = measureResult.height;\r\n if (mh > maxHeight) {\r\n maxHeight = mh;\r\n }\r\n if (index > 0 && lineWidth + charWidth + (index == 0 ? 0 : letterSpacing) > explicitWidth) {\r\n rows.push({\r\n text: line,\r\n lineWidth: lineWidth,\r\n });\r\n line = '';\r\n lineWidth = 0;\r\n index = 0;\r\n }\r\n line += char;\r\n lineWidth += charWidth + (index == 0 ? 0 : letterSpacing);\r\n index++;\r\n }\r\n }\r\n this._bmpLineHeight = maxHeight;\r\n rows.push({\r\n text: line,\r\n lineWidth: lineWidth,\r\n });\r\n textWidth = explicitWidth;\r\n }\r\n textHeight = isNaN(explicitHeight) ? (maxHeight * rows.length + lineSpacing * (rows.length - 1)) : explicitHeight;\r\n }\r\n else {\r\n textWidth = isNaN(explicitWidth) ? 0 : explicitWidth;\r\n textHeight = isNaN(explicitHeight) ? 0 : explicitHeight;\r\n }\r\n this.rows = rows;\r\n this._textWidth = textWidth;\r\n this._textHeight = textHeight;\r\n return {\r\n rows: rows,\r\n textWidth: textWidth,\r\n textHeight: textHeight,\r\n };\r\n };\r\n TextRenderer.prototype.measureBounds = function () {\r\n if (!this.dirty) {\r\n return;\r\n }\r\n if (!this.isBmpMode) {\r\n this.applyTextStyle();\r\n }\r\n this.splitText();\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"text\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextRenderer.prototype, \"textFlow\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"textAlign\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"verticalAlign\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"lineSpacing\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"letterSpacing\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"fontRes\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"textStyle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"useCacheMode\", void 0);\r\n return TextRenderer;\r\n}(GraphicRenderer));\r\nexport default TextRenderer;\r\n//# sourceMappingURL=TextRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"Renderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/Renderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,QAAQ,CAAC;AAE5G,IAAA,gDAAiB,CAAe;AAKvC;IAAsC,oCAAe;IAyDpD;QAAA,YACC,iBAAO,SAGP;QA5DS,sBAAgB,GAAG;YAC5B,KAAI,CAAC,SAA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,CAAC,aAAa,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;QACvD,IAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC;QAExD,MAAM,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC;QAC1B,MAAM,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC;IAC3B,CAAC;IAOD,0BAAO,GAAP,UAAQ,CAAC,EAAE,CAAC;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;IApOD;QADC,iBAAiB;4CACwB;IAqO3C,eAAC;CAAA,AA3PD,CAAsC,eAAe,GA2PpD;eA3PoB,QAAQ\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { createCanvas, getContext, ScillaComponent, Bounds, Vector2D, math, decorators, EngineConfig } from \"scilla\";\r\nvar dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nvar Renderer = (function (_super) {\r\n tslib_1.__extends(Renderer, _super);\r\n function Renderer() {\r\n var _this = _super.call(this) || this;\r\n _this.onVector2DModify = function () {\r\n _this.makeDirty();\r\n };\r\n _this.dirty = true;\r\n _this._useCacheMode = false;\r\n _this.alpha = 1;\r\n _this.anchor = new Vector2D(0.5, 0.5);\r\n _this.bounds = new Bounds();\r\n _this.cacheCanvas = null;\r\n _this._anchorOffset = new Vector2D();\r\n _this._context = getContext();\r\n _this._margin = 0;\r\n _this._debugDrawColor = \"hsl(\" + math.makeRandomInt(360) + \", \" + math.makeRandomInt(100) + \"%, 60%)\";\r\n return _this;\r\n }\r\n Object.defineProperty(Renderer.prototype, \"useCacheMode\", {\r\n get: function () {\r\n return this.getUseCacheMode();\r\n },\r\n set: function (value) {\r\n this._useCacheMode = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Renderer.prototype.getUseCacheMode = function () {\r\n return this._useCacheMode;\r\n };\r\n Object.defineProperty(Renderer.prototype, \"context\", {\r\n get: function () {\r\n return this.cacheCanvasContext || this._context;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Renderer.prototype.makeDirty = function () {\r\n this.dirty = true;\r\n };\r\n Renderer.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n this.makeDirty();\r\n switch (key) {\r\n case 'anchor':\r\n value.onChange = this.onVector2DModify;\r\n break;\r\n }\r\n };\r\n Renderer.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n if (!this.transform) {\r\n console.warn('renderer need a transform component');\r\n }\r\n };\r\n Renderer.prototype.onUpdate = function (t) {\r\n if (this.dirty) {\r\n if (this.entity.name == 'label_status') {\r\n console.log();\r\n }\r\n if (this.useCacheMode) {\r\n this.readyCacheCanvas();\r\n }\r\n this.measureBounds();\r\n if (this.useCacheMode) {\r\n this.updateCacheCanvas();\r\n }\r\n }\r\n this.transformToLocal();\r\n this.render();\r\n if (EngineConfig.drawRenderRect) {\r\n var _a = this, _context = _a._context, _debugDrawColor = _a._debugDrawColor, _b = _a.bounds, width = _b.width, height = _b.height, _c = _a._anchorOffset, x_1 = _c.x, y = _c.y, _d = _a.transform.pivot, px = _d.x, py = _d.y;\r\n _context.globalAlpha = 0.9;\r\n _context.strokeStyle = _debugDrawColor;\r\n _context.fillStyle = _debugDrawColor;\r\n _context.beginPath();\r\n _context.rect(0, 0, width, height);\r\n _context.stroke();\r\n _context.beginPath();\r\n _context.arc(width * px, height * py, 3, 0, 2 * Math.PI);\r\n _context.fill();\r\n }\r\n };\r\n Renderer.prototype.readyCacheCanvas = function () {\r\n var canvas = this.cacheCanvas;\r\n if (!canvas) {\r\n canvas = this.cacheCanvas = createCanvas();\r\n this.cacheCanvasContext = canvas.getContext('2d');\r\n }\r\n };\r\n Renderer.prototype.updateCacheCanvas = function () {\r\n var canvas = this.cacheCanvas;\r\n var _a = this.bounds, width = _a.width, height = _a.height;\r\n canvas.width = width + this._margin * 2;\r\n canvas.height = height + this._margin * 2;\r\n };\r\n Renderer.prototype.render = function () {\r\n this.beforeDraw();\r\n this.drawClip();\r\n if (this.dirty) {\r\n if (this.useCacheMode) {\r\n this.draw();\r\n }\r\n this.dirty = false;\r\n }\r\n if (this.useCacheMode) {\r\n this.drawCache();\r\n }\r\n else {\r\n this.draw();\r\n }\r\n };\r\n Renderer.prototype.beforeDraw = function () {\r\n this.applyAlpha();\r\n };\r\n Renderer.prototype.transformToLocal = function () {\r\n var _a = this, transform = _a.transform, _b = _a._anchorOffset, ax = _b.x, ay = _b.y;\r\n if (transform && transform.enabled) {\r\n var _c = transform.getMatrix(true), a = _c.a, b = _c.b, c = _c.c, d = _c.d, tx = _c.tx, ty = _c.ty;\r\n var offX = ax * a + ay * c;\r\n var offY = ax * b + ay * d;\r\n this._context.setTransform(a, b, c, d, tx - offX, ty - offY);\r\n }\r\n else {\r\n this._context.setTransform(1, 0, 0, 1, -ax, -ay);\r\n }\r\n };\r\n Renderer.prototype.applyAlpha = function () {\r\n this._context.globalAlpha = this.alpha * this.transform.renderAlpha;\r\n };\r\n Renderer.prototype.drawCache = function () {\r\n if (this.cacheCanvas.width > 0 && this.cacheCanvas.height > 0) {\r\n this._context.drawImage(this.cacheCanvas, -this._margin, -this._margin);\r\n }\r\n };\r\n Renderer.prototype.drawClip = function () {\r\n };\r\n Renderer.prototype.draw = function () {\r\n };\r\n Renderer.prototype.measureBounds = function () {\r\n var _a = this, _b = _a.anchor, x = _b.x, y = _b.y, bounds = _a.bounds, _c = _a.bounds, width = _c.width, height = _c.height;\r\n var anchorOffsetX = this._anchorOffset.x = width * x;\r\n var anchorOffsetY = this._anchorOffset.y = height * y;\r\n bounds.x = -anchorOffsetX;\r\n bounds.y = -anchorOffsetY;\r\n };\r\n Renderer.prototype.hitTest = function (x, y) {\r\n return this.bounds.contains(x, y);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Renderer.prototype, \"anchor\", void 0);\r\n return Renderer;\r\n}(ScillaComponent));\r\nexport default Renderer;\r\n//# sourceMappingURL=Renderer.js.map"}
{"map":"{\"version\":3,\"file\":\"FrameAnimation.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/FrameAnimation.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAE9B,IAAM,YAAY,GAAG,EAAE,CAAC;AACxB,IAAM,WAAW,GAAG,EAAE,CAAC;AACvB,IAAM,UAAU,GAAG,EAAE,CAAC;AAMtB,MAAM,UAAU,iBAAiB,CAAC,IAAI;IACrC,IAAI,SAAS,GAAmB,YAAY,CAAC,IAAI,CAAC,CAAC;IACnD,IAAI,CAAC,SAAS,EAAE;QACf,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC9D,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KAC3B;IAED,OAAO,SAAS,CAAC;AAClB,CAAC;AAOD,MAAM,UAAU,YAAY,CAAC,GAAG,EAAE,IAAI;IAC9B,IAAA,YAAE,EAAE,cAAG,CAAS;IAEvB,IAAI,KAAK,GAAU,IAAI,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAEvC,KAAK,IAAI,GAAG,IAAI,EAAE,EAAE;QACnB,IAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;QAC5C,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;KACvB;AACF,CAAC;AA+CD;IAIC,4BAAY,IAAI;QACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,sBAAI,oCAAI;aAAR;YACC,OAAO,IAAI,CAAC,KAAK,CAAC;QACnB,CAAC;;;OAAA;IAED,uCAAU,GAAV,UAAW,IAAI;QACd,IAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC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ACD;QACD,OAAO;YACN,OAAO,SAAA;YACP,IAAI,EAAE,SAAS;SACf,CAAC;IACH,CAAC;IAED,oCAAO,GAAP;QACC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACvB,CAAC;IACF,yBAAC;AAAD,CAAC,AArED,IAqEC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Sheet } from \"./Sheet\";\r\nvar animationMap = {};\r\nvar animDataMap = {};\r\nvar textureMap = {};\r\nexport function getFrameAnimation(name) {\r\n var animation = animationMap[name];\r\n if (!animation) {\r\n animation = animationMap[name] = new FrameAnimationImpl(name);\r\n animation.fillMcData(name);\r\n }\r\n return animation;\r\n}\r\nexport function putFrameAnim(img, data) {\r\n var mc = data.mc, res = data.res;\r\n var sheet = new Sheet(img, res);\r\n for (var key in mc) {\r\n var animData = animDataMap[key] = mc[key];\r\n animData.sheet = sheet;\r\n }\r\n}\r\nvar FrameAnimationImpl = (function () {\r\n function FrameAnimationImpl(name) {\r\n this._name = name;\r\n }\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"name\", {\r\n get: function () {\r\n return this._name;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n FrameAnimationImpl.prototype.fillMcData = function (name) {\r\n var animData = animDataMap[name];\r\n if (animData) {\r\n this._animData = animData;\r\n }\r\n else {\r\n console.warn(\"anim data [\" + name + \"] is not exist\");\r\n }\r\n };\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"fps\", {\r\n get: function () {\r\n return this._animData.frameRate;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"labels\", {\r\n get: function () {\r\n return this._animData.labels;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"frameCount\", {\r\n get: function () {\r\n return this._animData.frames.length;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n FrameAnimationImpl.prototype.getLabel = function (name) {\r\n var e_1, _a;\r\n var result;\r\n try {\r\n for (var _b = tslib_1.__values(this._animData.labels), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var label = _c.value;\r\n if (label.name == name) {\r\n result = label;\r\n break;\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n return result;\r\n };\r\n FrameAnimationImpl.prototype.getFrame = function (frameIndex) {\r\n var _animData = this._animData;\r\n var texture, frameData;\r\n if (_animData) {\r\n var frames_1 = _animData.frames;\r\n frameData = frames_1[frameIndex];\r\n if (frameData) {\r\n var res = frameData.res;\r\n texture = textureMap[res];\r\n if (!texture) {\r\n texture = textureMap[res] = _animData.sheet.getTexture(res);\r\n }\r\n }\r\n }\r\n return {\r\n texture: texture,\r\n data: frameData,\r\n };\r\n };\r\n FrameAnimationImpl.prototype.destroy = function () {\r\n this._animData = null;\r\n };\r\n return FrameAnimationImpl;\r\n}());\r\nexport { FrameAnimationImpl };\r\n//# sourceMappingURL=FrameAnimation.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACN,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,SAAS,GACT,CAAA\"}","code":"import * as decorators from './decorators';\r\nimport * as ease from './ease';\r\nimport * as math from './math';\r\nimport * as utils from './utils';\r\nimport * as timeUtils from './time';\r\nimport { Ease } from \"./ease\";\r\nexport { decorators, ease, Ease, math, utils, timeUtils, };\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"FrameAnimationRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/FrameAnimationRenderer.ts\"],\"names\":[],\"mappings\":\";AAQA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAiB,WAAW,EAAC,MAAM,QAAQ,CAAC;AAKnD;IAAoD,kDAAQ;IAA5D;QAAA,qEAyJC;QAjJO,cAAQ,GAAY,KAAK,CAAC;QAK1B,SAAG,GAAW,GAAG,CAAC;QAElB,gBAAU,GAAgB,IAAI,WAAW,EAAE,CAAC;QAC5C,oBAAc,GAAgB,IAAI,WAAW,EAAE,CAAC;;IAyIxD,CAAC;IAxHA,wCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAEhB,IAAG,IAAI,CAAC,QAAQ,EAAC;YAChB,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;SACjB;IACF,CAAC;IAKD,yCAAQ,GAAR,UAAS,CAAC;QACT,IAAI,IAAI,CAAC,QAAQ,EAAE;YACZ,IAAA,SAAoD,EAAnD,kCAAc,EAAE,4BAAW,EAAE,wBAAS,EAAE,YAAW,CAAC;YAE3D,IAAI,IAAI,CAAC,UAAU,EAAE;gBACpB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;gBACxB,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;gBACpB,IAAI,CAAC,aAAa,EAAG,CAAC;aACtB;YAED,IAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;YAEnD,IAAM,QAAQ,GAAG,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;YAC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AE,GAAC,EAAE,CAAC,EAAE,YAAY,EAAE,aAAa,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;SACvG;IACF,CAAC;IACF,6BAAC;AAAD,CAAC,AAzJD,CAAoD,QAAQ,GAyJ3D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Renderer from \"./Renderer\";\r\nimport { ScillaEvent } from \"scilla\";\r\nvar FrameAnimationRenderer = (function (_super) {\r\n tslib_1.__extends(FrameAnimationRenderer, _super);\r\n function FrameAnimationRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.autoPlay = false;\r\n _this.fps = NaN;\r\n _this.onComplete = new ScillaEvent();\r\n _this.onLoopComplete = new ScillaEvent();\r\n return _this;\r\n }\r\n FrameAnimationRenderer.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n if (this.autoPlay) {\r\n this.play(0, -1);\r\n }\r\n };\r\n FrameAnimationRenderer.prototype.onUpdate = function (t) {\r\n if (this._playing) {\r\n var _a = this, frameAnimation = _a.frameAnimation, _startFrame = _a._startFrame, _endFrame = _a._endFrame, fps = _a.fps;\r\n if (this._startFlag) {\r\n this._startFlag = false;\r\n this._startTime = t;\r\n this._loopCounting++;\r\n }\r\n var mFPS = isNaN(fps) ? frameAnimation.fps : fps;\r\n var passTime = t - this._startTime;\r\n var passFrameCount = Math.floor(passTime / (1000 / mFPS));\r\n var passFrameInRegion = passFrameCount % (_endFrame - _startFrame + 1);\r\n this._currentFrameIndex = _startFrame + passFrameInRegion;\r\n if (passFrameInRegion == 0 && passFrameCount > 0) {\r\n this._currentFrameIndex = _endFrame;\r\n this.onLoopEnd();\r\n }\r\n }\r\n _super.prototype.onUpdate.call(this, t);\r\n };\r\n FrameAnimationRenderer.prototype.onSleep = function () {\r\n _super.prototype.onSleep.call(this);\r\n };\r\n FrameAnimationRenderer.prototype.onLoopEnd = function () {\r\n if (this._loop < 0) {\r\n this._startFlag = true;\r\n this.onLoopComplete.invoke();\r\n }\r\n else if (this._loopCounting < this._loop) {\r\n this._startFlag = true;\r\n this.onLoopComplete.invoke();\r\n }\r\n else {\r\n this._playing = false;\r\n this.onComplete.invoke();\r\n }\r\n };\r\n FrameAnimationRenderer.prototype.play = function (frame, loop, force) {\r\n if (frame === void 0) { frame = 0; }\r\n if (loop === void 0) { loop = 0; }\r\n if (force === void 0) { force = true; }\r\n this._loop = loop;\r\n this._loopCounting = 0;\r\n if (!this.frameAnimation) {\r\n return;\r\n }\r\n var startFrame = 0, endFrame = this.frameAnimation.frameCount - 1;\r\n if (typeof frame == 'string') {\r\n var label = this.frameAnimation.getLabel(frame);\r\n if (label) {\r\n startFrame = label.frame - 1;\r\n endFrame = label.end;\r\n }\r\n }\r\n else {\r\n startFrame = frame;\r\n }\r\n this._startFrame = startFrame;\r\n this._endFrame = endFrame;\r\n this._currentFrameIndex = this._startFrame;\r\n this._startFlag = true;\r\n this._playing = true;\r\n };\r\n FrameAnimationRenderer.prototype.stop = function () {\r\n this._playing = false;\r\n };\r\n FrameAnimationRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n if (!this.frameAnimation) {\r\n return;\r\n }\r\n var _a = this, context = _a.context, frameAnimation = _a.frameAnimation, _currentFrameIndex = _a._currentFrameIndex, bounds = _a.bounds;\r\n var _b = frameAnimation.getFrame(_currentFrameIndex), texture = _b.texture, data = _b.data;\r\n if (texture) {\r\n var img = texture.img, _c = texture.bounds, x_1 = _c.x, y = _c.y, textureWidth = _c.width, textureHeight = _c.height;\r\n bounds.setTo(data.x, data.y, textureWidth, textureHeight);\r\n context.drawImage(img, x_1, y, textureWidth, textureHeight, data.x, data.y, textureWidth, textureHeight);\r\n }\r\n };\r\n return FrameAnimationRenderer;\r\n}(Renderer));\r\nexport default FrameAnimationRenderer;\r\n//# sourceMappingURL=FrameAnimationRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"CameraController.js\",\"sourceRoot\":\"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Ab,QAAC,EAAE,QAAC,EAAE,kBAAM,EAAG,sBAAgB,CAAC;QAElH,IAAM,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC;QACrD,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAEhC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAE/E,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAC3F,CAAC;IAED,kCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;IACjB,CAAC;IAED,oCAAS,GAAT;QACC,iBAAM,SAAS,WAAE,CAAC;IACnB,CAAC;IACF,uBAAC;AAAD,CAAC,AAzDD,CAA8C,eAAe,GAyD5D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { getStageSize, ScillaComponent, createVector2D, Vector2D, math } from \"scilla\";\r\nimport Transform from \"../base/Transform\";\r\nvar CameraController = (function (_super) {\r\n tslib_1.__extends(CameraController, _super);\r\n function CameraController() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.viewportAnchor = createVector2D();\r\n _this.maxScale = 1.2;\r\n return _this;\r\n }\r\n CameraController.prototype.onCreate = function () {\r\n _super.prototype.onCreate.call(this);\r\n };\r\n CameraController.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n var _a = this, target = _a.target, viewportAnchor = _a.viewportAnchor;\r\n this.stageSize = getStageSize();\r\n if (target) {\r\n this.targetPosition = target.getComponent(Transform).position;\r\n }\r\n this.followPosition = createVector2D();\r\n if (viewportAnchor) {\r\n var _b = this.stageSize, width = _b.width, height = _b.height;\r\n var _c = this.viewportAnchor, x_1 = _c.x, y = _c.y;\r\n this.transform.position.setXY(width * x_1, height * y);\r\n }\r\n };\r\n CameraController.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\r\n if (!this.targetPosition) {\r\n return;\r\n }\r\n var _a = this, _b = _a.transform, scale = _b.scale, position = _b.position, _c = _a.stageSize, width = _c.width, height = _c.height, _d = _a.targetPosition, x = _d.x, y = _d.y, length = _d.length, maxScale = _a.maxScale;\r\n var newScale = maxScale - length * maxScale / 2048;\r\n scale.setXY(newScale, newScale);\r\n this.followPosition.setXY(width / 2, height / 2).subtract(this.targetPosition);\r\n position.copyFrom(math.lerpObj(position, this.followPosition, 0.1, Vector2D, ['x', 'y']));\r\n };\r\n CameraController.prototype.onSleep = function () {\r\n _super.prototype.onSleep.call(this);\r\n };\r\n CameraController.prototype.onDestroy = function () {\r\n _super.prototype.onDestroy.call(this);\r\n };\r\n return CameraController;\r\n}(ScillaComponent));\r\nexport default CameraController;\r\n//# sourceMappingURL=CameraController.js.map"}
{"map":"{\"version\":3,\"file\":\"ease.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/ease.ts\"],\"names\":[],\"mappings\":\"AAMA,MAAM,CAAN,IAAY,IA4BX;AA5BD,WAAY,IAAI;IACf,yBAAiB,CAAA;IACjB,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;IACnB,6BAAqB,CAAA;IACrB,iCAAyB,CAAA;IACzB,2BAAmB,CAAA;IACnB,6BAAqB,CAAA;IACrB,iCAAyB,CAAA;IACzB,2BAAmB,CAAA;IACnB,6BAAqB,CAAA;IACrB,iCAAyB,CAAA;IACzB,yBAAiB,CAAA;IACjB,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,yBAAiB,CAAA;IACjB,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,yBAAiB,CAAA;IACjB,2BAAmB,CAAA;I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,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;IAC7F,CAAC,CAAA;AACF,CAAC;AAGD,MAAM,CAAC,IAAM,YAAY,GAAG,eAAe,CAAC,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC,CAAC\"}","code":"export var Ease;\r\n(function (Ease) {\r\n Ease[\"quadIn\"] = \"quadIn\";\r\n Ease[\"quadOut\"] = \"quadOut\";\r\n Ease[\"quadInOut\"] = \"quadInOut\";\r\n Ease[\"cubicIn\"] = \"cubicIn\";\r\n Ease[\"cubicOut\"] = \"cubicOut\";\r\n Ease[\"cubicInOut\"] = \"cubicInOut\";\r\n Ease[\"quartIn\"] = \"quartIn\";\r\n Ease[\"quartOut\"] = \"quartOut\";\r\n Ease[\"quartInOut\"] = \"quartInOut\";\r\n Ease[\"quintIn\"] = \"quintIn\";\r\n Ease[\"quintOut\"] = \"quintOut\";\r\n Ease[\"quintInOut\"] = \"quintInOut\";\r\n Ease[\"sineIn\"] = \"sineIn\";\r\n Ease[\"sineOut\"] = \"sineOut\";\r\n Ease[\"sineInOut\"] = \"sineInOut\";\r\n Ease[\"backIn\"] = \"backIn\";\r\n Ease[\"backOut\"] = \"backOut\";\r\n Ease[\"backInOut\"] = \"backInOut\";\r\n Ease[\"circIn\"] = \"circIn\";\r\n Ease[\"circOut\"] = \"circOut\";\r\n Ease[\"circInOut\"] = \"circInOut\";\r\n Ease[\"bounceIn\"] = \"bounceIn\";\r\n Ease[\"bounceOut\"] = \"bounceOut\";\r\n Ease[\"bounceInOut\"] = \"bounceInOut\";\r\n Ease[\"elasticIn\"] = \"elasticIn\";\r\n Ease[\"elasticOut\"] = \"elasticOut\";\r\n Ease[\"elasticInOut\"] = \"elasticInOut\";\r\n})(Ease || (Ease = {}));\r\nexport function get(amount) {\r\n if (amount < -1) {\r\n amount = -1;\r\n }\r\n if (amount > 1) {\r\n amount = 1;\r\n }\r\n return function (t) {\r\n if (amount == 0) {\r\n return t;\r\n }\r\n if (amount < 0) {\r\n return t * (t * -amount + 1 + amount);\r\n }\r\n return t * ((2 - t) * amount + (1 - amount));\r\n };\r\n}\r\nexport function getPowIn(pow) {\r\n return function (t) {\r\n return Math.pow(t, pow);\r\n };\r\n}\r\nexport function getPowOut(pow) {\r\n return function (t) {\r\n return 1 - Math.pow(1 - t, pow);\r\n };\r\n}\r\nexport function getPowInOut(pow) {\r\n return function (t) {\r\n if ((t *= 2) < 1)\r\n return 0.5 * Math.pow(t, pow);\r\n return 1 - 0.5 * Math.abs(Math.pow(2 - t, pow));\r\n };\r\n}\r\nexport var quadIn = getPowIn(2);\r\nexport var quadOut = getPowOut(2);\r\nexport var quadInOut = getPowInOut(2);\r\nexport var cubicIn = getPowIn(3);\r\nexport var cubicOut = getPowOut(3);\r\nexport var cubicInOut = getPowInOut(3);\r\nexport var quartIn = getPowIn(4);\r\nexport var quartOut = getPowOut(4);\r\nexport var quartInOut = getPowInOut(4);\r\nexport var quintIn = getPowIn(5);\r\nexport var quintOut = getPowOut(5);\r\nexport var quintInOut = getPowInOut(5);\r\nexport function sineIn(t) {\r\n return 1 - Math.cos(t * Math.PI / 2);\r\n}\r\nexport function sineOut(t) {\r\n return Math.sin(t * Math.PI / 2);\r\n}\r\nexport function sineInOut(t) {\r\n return -0.5 * (Math.cos(Math.PI * t) - 1);\r\n}\r\nexport function getBackIn(amount) {\r\n return function (t) {\r\n return t * t * ((amount + 1) * t - amount);\r\n };\r\n}\r\nexport var backIn = getBackIn(1.7);\r\nexport function getBackOut(amount) {\r\n return function (t) {\r\n return (--t * t * ((amount + 1) * t + amount) + 1);\r\n };\r\n}\r\nexport var backOut = getBackOut(1.7);\r\nexport function getBackInOut(amount) {\r\n amount *= 1.525;\r\n return function (t) {\r\n if ((t *= 2) < 1)\r\n return 0.5 * (t * t * ((amount + 1) * t - amount));\r\n return 0.5 * ((t -= 2) * t * ((amount + 1) * t + amount) + 2);\r\n };\r\n}\r\nexport var backInOut = getBackInOut(1.7);\r\nexport function circIn(t) {\r\n return -(Math.sqrt(1 - t * t) - 1);\r\n}\r\nexport function circOut(t) {\r\n return Math.sqrt(1 - (--t) * t);\r\n}\r\nexport function circInOut(t) {\r\n if ((t *= 2) < 1) {\r\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\r\n }\r\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\r\n}\r\nexport function bounceIn(t) {\r\n return 1 - bounceOut(1 - t);\r\n}\r\nexport function bounceOut(t) {\r\n if (t < 1 / 2.75) {\r\n return (7.5625 * t * t);\r\n }\r\n else if (t < 2 / 2.75) {\r\n return (7.5625 * (t -= 1.5 / 2.75) * t + 0.75);\r\n }\r\n else if (t < 2.5 / 2.75) {\r\n return (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375);\r\n }\r\n else {\r\n return (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375);\r\n }\r\n}\r\nexport function bounceInOut(t) {\r\n if (t < 0.5)\r\n return bounceIn(t * 2) * .5;\r\n return bounceOut(t * 2 - 1) * 0.5 + 0.5;\r\n}\r\nexport function getElasticIn(amplitude, period) {\r\n var pi2 = Math.PI * 2;\r\n return function (t) {\r\n if (t == 0 || t == 1)\r\n return t;\r\n var s = period / pi2 * Math.asin(1 / amplitude);\r\n return -(amplitude * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * pi2 / period));\r\n };\r\n}\r\nexport var elasticIn = getElasticIn(1, 0.3);\r\nexport function getElasticOut(amplitude, period) {\r\n var pi2 = Math.PI * 2;\r\n return function (t) {\r\n if (t == 0 || t == 1)\r\n return t;\r\n var s = period / pi2 * Math.asin(1 / amplitude);\r\n return (amplitude * Math.pow(2, -10 * t) * Math.sin((t - s) * pi2 / period) + 1);\r\n };\r\n}\r\nexport var elasticOut = getElasticOut(1, 0.3);\r\nexport function getElasticInOut(amplitude, period) {\r\n var pi2 = Math.PI * 2;\r\n return function (t) {\r\n var s = period / pi2 * Math.asin(1 / amplitude);\r\n if ((t *= 2) < 1)\r\n return -0.5 * (amplitude * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * pi2 / period));\r\n return amplitude * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * pi2 / period) * 0.5 + 1;\r\n };\r\n}\r\nexport var elasticInOut = getElasticInOut(1, 0.3 * 1.5);\r\n//# sourceMappingURL=ease.js.map"}
{"map":"{\"version\":3,\"file\":\"ScillaComponent.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/ScillaComponent.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAE9C,IAAM,cAAc,GAAG;IACtB,uBAAuB;IACvB,sBAAsB;IACtB,qBAAqB;CACrB,CAAC;AAKF;IAAqC,2CAAU;IAA/C;QAAA,qEAsPC;QAjPU,oBAAc,GAAG,EAAE,CAAC;QAIpB,cAAQ,GAAY,YAAY,CAAC,gBAAgB,CAAC;;IA6O7D,CAAC;IAxOA,sBAAI,oCAAO;aAAX;YACC,OAAO,IAAI,CAAC,QAAQ,CAAC;QACtB,CAAC;aAED,UAAY,KAAc;YACzB,IAAI,IAAI,CAAC,QAAQ,KAAK,KAAK,EAAE;gBAC5B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;gBACtB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;oBACxC,IAAI,IAAI,CAAC,QAAQ,EAAE;wBAClB,IAAI,CAAC,QAAQ,EAAE,CAAC;qBAChB;yBAAM;wBACN,IAAI,CAAC,SAAS,EAAE,CAAC;qBACjB;iBACD;aACD;QACF,CAAC;;;OAbA;IAmBD,gCAAM,GAAN,UAAO,MAAc;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,EAAE,CAAC;IACjB,CAAC;IAKD,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\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport HashObject from \"./HashObject\";\r\nimport { EngineConfig } from \"../engine-config\";\r\nvar interactiveMap = [\r\n '_dealGlobalTouchBegin',\r\n '_dealGlobalTouchMove',\r\n '_dealGlobalTouchEnd',\r\n];\r\nvar ScillaComponent = (function (_super) {\r\n tslib_1.__extends(ScillaComponent, _super);\r\n function ScillaComponent() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.delayCallbacks = [];\r\n _this._enabled = EngineConfig.componentEnabled;\r\n return _this;\r\n }\r\n Object.defineProperty(ScillaComponent.prototype, \"enabled\", {\r\n get: function () {\r\n return this._enabled;\r\n },\r\n set: function (value) {\r\n if (this._enabled !== value) {\r\n this._enabled = value;\r\n if (this.entity && this.entity.isActive) {\r\n if (this._enabled) {\r\n this.onEnable();\r\n }\r\n else {\r\n this.onDisable();\r\n }\r\n }\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ScillaComponent.prototype._setup = function (entity) {\r\n this.entity = entity;\r\n this.onCreate();\r\n };\r\n ScillaComponent.prototype._unSetup = function () {\r\n this.entity = null;\r\n this.onDestroy();\r\n };\r\n ScillaComponent.prototype.onCreate = function () {\r\n };\r\n ScillaComponent.prototype.onAwake = function () {\r\n this._firstUpdate = true;\r\n };\r\n ScillaComponent.prototype.onEnable = function () {\r\n };\r\n ScillaComponent.prototype.onDisable = function () {\r\n };\r\n ScillaComponent.prototype.$onUpdate = function (t) {\r\n this.onUpdate(t);\r\n if (!this._firstUpdate) {\r\n this.invokeDelayCallback(t);\r\n }\r\n this._firstUpdate = false;\r\n };\r\n ScillaComponent.prototype.invokeDelayCallback = function (t) {\r\n var e_1, _a;\r\n var removed = [];\r\n if (this.entity.name.indexOf('progress') >= 0) {\r\n console.log();\r\n }\r\n for (var i = 0, li = this.delayCallbacks.length; i < li; i++) {\r\n var _b = this.delayCallbacks[i], callback = _b.callback, once = _b.once;\r\n if (once) {\r\n removed.push(i);\r\n }\r\n callback.call(this, t);\r\n }\r\n try {\r\n for (var removed_1 = tslib_1.__values(removed), removed_1_1 = removed_1.next(); !removed_1_1.done; removed_1_1 = removed_1.next()) {\r\n var item = removed_1_1.value;\r\n this.delayCallbacks.splice(item, 1);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (removed_1_1 && !removed_1_1.done && (_a = removed_1.return)) _a.call(removed_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n };\r\n ScillaComponent.prototype.onUpdate = function (t) {\r\n };\r\n ScillaComponent.prototype.afterUpdate = function () {\r\n };\r\n ScillaComponent.prototype.onSleep = function () {\r\n };\r\n ScillaComponent.prototype.onDestroy = function () {\r\n };\r\n ScillaComponent.prototype.onModify = function (value, key, oldValue) {\r\n };\r\n ScillaComponent.prototype.getDelayCallback = function (callback) {\r\n var e_2, _a;\r\n var result;\r\n try {\r\n for (var _b = tslib_1.__values(this.delayCallbacks), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var item = _c.value;\r\n if (item.callback == callback) {\r\n result = item;\r\n break;\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n return result;\r\n };\r\n ScillaComponent.prototype.callOnNextTick = function (callback, once) {\r\n if (once === void 0) { once = true; }\r\n var item = this.getDelayCallback(callback);\r\n if (!item) {\r\n this.delayCallbacks.push({ callback: callback, once: once });\r\n }\r\n };\r\n ScillaComponent.prototype.cancelOnNextTick = function (callback) {\r\n var item = this.getDelayCallback(callback);\r\n var index = this.delayCallbacks.indexOf(item);\r\n if (index >= 0) {\r\n this.delayCallbacks.splice(index, 1);\r\n }\r\n };\r\n ScillaComponent.prototype.onInteract = function (type, event) {\r\n try {\r\n var hitOn = this[interactiveMap[type]](event);\r\n return hitOn && this['touchInterrupt'];\r\n }\r\n catch (e) {\r\n console.warn(e);\r\n }\r\n };\r\n ScillaComponent.prototype._dealGlobalTouchBegin = function (e) {\r\n return this.onGlobalTouchBegin(e);\r\n };\r\n ScillaComponent.prototype._dealGlobalTouchMove = function (e) {\r\n return this.onGlobalTouchMove(e);\r\n };\r\n ScillaComponent.prototype._dealGlobalTouchEnd = function (e) {\r\n return this.onGlobalTouchEnd(e);\r\n };\r\n ScillaComponent.prototype.onGlobalTouchBegin = function (e) {\r\n };\r\n ScillaComponent.prototype.onGlobalTouchMove = function (e) {\r\n };\r\n ScillaComponent.prototype.onGlobalTouchEnd = function (e) {\r\n };\r\n Object.defineProperty(ScillaComponent.prototype, \"transform\", {\r\n get: function () {\r\n return this.entity.getComponent('components/base/Transform');\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ScillaComponent.prototype.broadcast = function (method, level) {\r\n if (level === void 0) { level = -1; }\r\n var params = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n params[_i - 2] = arguments[_i];\r\n }\r\n var _a;\r\n (_a = this.entity).broadcast.apply(_a, tslib_1.__spread([method, level], params));\r\n };\r\n ScillaComponent.prototype.bubbling = function (method) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n var _a;\r\n (_a = this.entity).bubbling.apply(_a, tslib_1.__spread([method], params));\r\n };\r\n return ScillaComponent;\r\n}(HashObject));\r\nexport { ScillaComponent };\r\n//# sourceMappingURL=ScillaComponent.js.map"}
{"map":"{\"version\":3,\"file\":\"InteractComponent.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/InteractComponent.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,MAAM,EAAE,eAAe,EAAE,UAAU,EAAC,MAAM,QAAQ,CAAC;AAC3D,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAErC,IAAA,gDAAiB,CAAe;AAKvC;IAA+C,6C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QACnB,IAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;;YACtD,KAAqB,IAAA,cAAA,iBAAA,SAAS,CAAA,oCAAA,2DAAE;gBAA3B,IAAI,QAAQ,sBAAA;gBAChB,IAAI,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;oBACvD,IAAI,QAAQ,CAAC,YAAY,EAAE;wBAC1B,SAAQ;qBACR;yBAAM;wBACN,MAAM,GAAG,IAAI,CAAC;wBACd,MAAK;qBACL;iBACD;qBAAM,IAAI,QAAQ,CAAC,YAAY,EAAE;oBACjC,OAAO,KAAK,CAAA;iBACZ;aACD;;;;;;;;;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IA/HD;QADC,iBAAiB;2DACE;IAgIrB,wBAAC;CAAA,AArID,CAA+C,eAAe,GAqI7D;eArIoB,iBAAiB\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Matrix, ScillaComponent, decorators } from \"scilla\";\r\nimport Renderer from \"../renderer/Renderer\";\r\nvar dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nvar InteractComponent = (function (_super) {\r\n tslib_1.__extends(InteractComponent, _super);\r\n function InteractComponent() {\r\n var _this = _super.call(this) || this;\r\n _this.interactable = true;\r\n _this.touchInterrupt = false;\r\n _this.invertMatrix = Matrix.create();\r\n _this.localPos = {};\r\n _this.isOut = true;\r\n return _this;\r\n }\r\n InteractComponent.prototype._dealGlobalTouchBegin = function (e) {\r\n var interrupt = _super.prototype._dealGlobalTouchBegin.call(this, e);\r\n var hitOn = this.hitTest(e);\r\n if (hitOn) {\r\n this._touchBeginFlag = true;\r\n this.onTouchBegin(e);\r\n this._dealTouchOver(e);\r\n }\r\n return hitOn && interrupt;\r\n };\r\n InteractComponent.prototype._dealGlobalTouchMove = function (e) {\r\n var interrupt = _super.prototype._dealGlobalTouchMove.call(this, e);\r\n var hitOn = this.hitTest(e);\r\n if (hitOn) {\r\n this._dealTouchOver(e);\r\n this.onTouchMove(e);\r\n }\r\n else {\r\n this._dealTouchOut(e);\r\n }\r\n return hitOn && interrupt;\r\n };\r\n InteractComponent.prototype._dealGlobalTouchEnd = function (e) {\r\n var interrupt = _super.prototype._dealGlobalTouchEnd.call(this, e);\r\n var hitOn = this.hitTest(e);\r\n if (hitOn) {\r\n this.onTouchEnd(e);\r\n if (this._touchBeginFlag) {\r\n this.onTouchTap(e);\r\n this._touchBeginFlag = false;\r\n }\r\n }\r\n this.isOut = true;\r\n return hitOn && interrupt;\r\n };\r\n InteractComponent.prototype._dealTouchOver = function (e) {\r\n if (this.isOut) {\r\n this.isOut = false;\r\n this.onTouchOver(e);\r\n }\r\n };\r\n InteractComponent.prototype._dealTouchOut = function (e) {\r\n if (!this.isOut) {\r\n this.isOut = true;\r\n this.onTouchOut(e);\r\n }\r\n };\r\n InteractComponent.prototype.onTouchBegin = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchMove = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchOver = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchOut = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchEnd = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchTap = function (e) {\r\n };\r\n InteractComponent.prototype.hitTest = function (e) {\r\n var e_1, _a;\r\n var matrix = this.transform.getMatrix();\r\n var invertMatrix = this.invertMatrix;\r\n invertMatrix.copyFrom(matrix);\r\n invertMatrix.invert();\r\n invertMatrix.transformPoint(e.x, e.y, this.localPos);\r\n var result = false;\r\n var renderers = this.entity.getComponents(Renderer);\r\n try {\r\n for (var renderers_1 = tslib_1.__values(renderers), renderers_1_1 = renderers_1.next(); !renderers_1_1.done; renderers_1_1 = renderers_1.next()) {\r\n var renderer = renderers_1_1.value;\r\n if (renderer.hitTest(this.localPos.x, this.localPos.y)) {\r\n if (renderer.isUsedToMask) {\r\n continue;\r\n }\r\n else {\r\n result = true;\r\n break;\r\n }\r\n }\r\n else if (renderer.isUsedToMask) {\r\n return false;\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (renderers_1_1 && !renderers_1_1.done && (_a = renderers_1.return)) _a.call(renderers_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n return result;\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], InteractComponent.prototype, \"interactable\", void 0);\r\n return InteractComponent;\r\n}(ScillaComponent));\r\nexport default InteractComponent;\r\n//# sourceMappingURL=InteractComponent.js.map"}
{"map":"{\"version\":3,\"file\":\"Sheet.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Sheet.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AAKxC;IAA2B,iCAAU;IAYpC,eAAY,GAAI,EAAE,MAAO;QAAzB,YACC,iBAAO,SAQP;QAXO,mBAAa,GAAQ,EAAE,CAAC;QAK/B,IAAG,GAAG,EAAC;YACN,KAAI,CAAC,GAAG,GAAG,GAAG,CAAC;SACf;QACD,IAAG,MAAM,EAAC;YACT,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;SACrB;;IACF,CAAC;IAKD,2BAAW,GAAX;QACC,KAAK,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE;YAC5B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;SAC1B;IACF,CAAC;IAOD,+BAAe,GAAf,UAAgB,IAAI,EAAE,KAAa;QAAb,sBAAA,EAAA,aAAa;QAC5B,IAAA,SAAmC,EAAlC,YAAG,EAAE,kBAAM,EAAE,gCAAqB,CAAC;QAE1C,IAAI,CAAC,KAAK,IAAI,aAAa,CAAC,IAAI,CAAC,EAAE;YAClC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC;SAC3B;QAED,IAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QAC3B,IAAI,KAAK,EAAE;YACV,OAAO,aAAa,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SACvD;IACF,CAAC;IAMD,0BAAU,GAAV,UAAW,IAAI;QACd,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAMD,0BAAU,GAAV,UAAW,IAAI;QACd,IAAI,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,OAAO,EAAE;YACZ,OAAO,OAAO,CAAC;SACf;aAAM;YACN,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SAClC;IACF,CAAC;IAKD,8BAAc,GAAd;QACC,OAAO,IAAI,CAAC,aAAa,CAAC;IAC3B,CAAC;IAKD,uBAAO,GAAP;QACC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAEhB,KAAK,IAAI,GAAG,IAAI,IAAI,CAAC,aAAa,EAAE;YACnC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;SAC/B;IACF,CAAC;IACF,YAAC;AAAD,CAAC,AAzFD,CAA2B,UAAU,GAyFpC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport HashObject from \"../core/HashObject\";\r\nimport { createTexture } from \"./Texture\";\r\nvar Sheet = (function (_super) {\r\n tslib_1.__extends(Sheet, _super);\r\n function Sheet(img, frames) {\r\n var _this = _super.call(this) || this;\r\n _this._textureCache = {};\r\n if (img) {\r\n _this.img = img;\r\n }\r\n if (frames) {\r\n _this.frames = frames;\r\n }\r\n return _this;\r\n }\r\n Sheet.prototype.generateAll = function () {\r\n for (var key in this.frames) {\r\n this.generateTexture(key);\r\n }\r\n };\r\n Sheet.prototype.generateTexture = function (name, force) {\r\n if (force === void 0) { force = false; }\r\n var _a = this, img = _a.img, frames = _a.frames, _textureCache = _a._textureCache;\r\n if (!force && _textureCache[name]) {\r\n return _textureCache[name];\r\n }\r\n var frame = frames[name];\r\n if (frame) {\r\n return _textureCache[name] = createTexture(img, frame);\r\n }\r\n };\r\n Sheet.prototype.hasTexture = function (name) {\r\n return !!frames[name];\r\n };\r\n Sheet.prototype.getTexture = function (name) {\r\n var texture = this._textureCache[name];\r\n if (texture) {\r\n return texture;\r\n }\r\n else {\r\n return this.generateTexture(name);\r\n }\r\n };\r\n Sheet.prototype.getAllTextures = function () {\r\n return this._textureCache;\r\n };\r\n Sheet.prototype.destroy = function () {\r\n this.img = null;\r\n for (var key in this._textureCache) {\r\n this._textureCache[key].destroy();\r\n delete this._textureCache[key];\r\n }\r\n };\r\n return Sheet;\r\n}(HashObject));\r\nexport { Sheet };\r\n//# sourceMappingURL=Sheet.js.map"}
{"map":"{\"version\":3,\"file\":\"main.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/main.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EACN,KAAK,EACL,WAAW,EAAE,kBAAkB,EAC/B,QAAQ,EACR,UAAU,EACV,KAAK,GACL,MAAM,QAAQ,CAAA;AAEf,OAAO,yBAAyB,CAAA;AAEhC,OAAO,aAAa,EAAE,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AAEpD,kBAAkB,CAAC;IAClB,eAAe,EAAE,GAAG;IACpB,aAAa,EAAE,KAAK;IACpB,uBAAuB,EAAE,KAAK;IAC9B,yBAAyB,EAAE,KAAK;IAChC,cAAc,EAAE,KAAK;CACrB,CAAC,CAAC;AAEH,MAAM,UAAgB,OAAO,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU;;;;;wBACjD,WAAM,QAAQ,CAAC,eAAe,CAAC,EAAA;;oBAA1C,QAAQ,GAAG,SAA+B;oBAEhD,MAAM,CAAC,QAAQ,CAAC,CAAC;oBACjB,MAAM,CAAC,OAAO,CAAC,CAAC;oBAEhB,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;oBAElD,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;oBAC9C,gBAAgB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;oBAEjC,MAAM,GAAG;wBACZ,MAAM,QAAA;qBACN,CAAC;oBACF,IAAI,OAAO,CAAC,MAAM,EAAE;wBACnB,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;qBACzC;oBACD,KAAK,CAAC,MAAM,CAAC,CAAC;oBAEd,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,UAAA,CAAC;wBACtC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;oBAChB,CAAC,CAAC,CAAC;;;;;CACH\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { setup, launchScene, modifyEngineConfig, loadJson, setResPath, utils, } from 'scilla';\r\nimport './generated/MustCompile';\r\nimport launchOptions, { inject } from \"launchOptions\";\r\nmodifyEngineConfig({\r\n lineHeightRatio: 1.2,\r\n entityEnabled: false,\r\n awakeComponentWhenAdded: false,\r\n sleepComponentWhenRemoved: false,\r\n drawRenderRect: false,\r\n});\r\nexport function startup(containerElement, options, onProgress) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var manifest, canvas, config;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadJson('manifest.json')];\r\n case 1:\r\n manifest = _a.sent();\r\n inject(manifest);\r\n inject(options);\r\n setResPath(DEBUG ? 'assets/' : launchOptions.resPath);\r\n canvas = document.createElement('canvas');\r\n containerElement.appendChild(canvas);\r\n config = {\r\n canvas: canvas,\r\n };\r\n if (options.config) {\r\n utils.injectProp(config, options.config);\r\n }\r\n setup(config);\r\n launchScene('main', onProgress).catch(function (e) {\r\n console.log(e);\r\n });\r\n return [2];\r\n }\r\n });\r\n });\r\n}\r\n//# sourceMappingURL=main.js.map"}
{"map":"{\"version\":3,\"file\":\"Scene.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Scene.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE/C;IAAA;QAGC,mBAAc,GAAQ;YACrB,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,EAAE;SACT,CAAC;IAiBH,CAAC;IAbA,4BAAY,GAAZ,UAAa,MAAM;QAClB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QAExB,IAAM,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;QACjD,KAAI,IAAI,GAAG,IAAI,cAAc,EAAC;YAC7B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;SAC/C;IACF,CAAC;IAEK,4BAAY,GAAlB,UAAmB,IAAI,EAAE,QAAS;;;;4BACjC,WAAM,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,EAAA;;wBAAvD,SAAuD,CAAC;;;;;KACxD;IACF,YAAC;AAAD,CAAC,AAvBD,IAuBC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { loadResItems } from \"../assets-manager\";\r\nvar Scene = (function () {\r\n function Scene() {\r\n this.resourceGroups = {\r\n preload: [],\r\n delay: [],\r\n };\r\n }\r\n Scene.prototype.initByConfig = function (config) {\r\n this.config = config;\r\n this.name = config.name;\r\n var resourceGroups = config['resource-groups'];\r\n for (var key in resourceGroups) {\r\n this.resourceGroups[key] = resourceGroups[key];\r\n }\r\n };\r\n Scene.prototype.loadResGroup = function (name, progress) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadResItems(this.resourceGroups[name], progress)];\r\n case 1:\r\n _a.sent();\r\n return [2];\r\n }\r\n });\r\n });\r\n };\r\n return Scene;\r\n}());\r\nexport { Scene };\r\n//# sourceMappingURL=Scene.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../node_modules/scilla-core/src/index.ts\"],\"names\":[],\"mappings\":\"AAIA,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA\"}","code":"export * from './core';\r\nexport * from './editor';\r\nexport * from './assets-manager';\r\nexport * from './support';\r\nexport * from './tools';\r\nexport * from './filter';\r\nexport * from './engine-config';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"Entity.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Entity.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAW9C,MAAM,UAAU,QAAQ,CAAC,MAAc,EAAE,QAA+C,EAAE,KAAU,EAAE,WAAmB,EAAE,YAAwC;IAAzE,sBAAA,EAAA,SAAS,CAAC;IAAE,4BAAA,EAAA,mBAAmB;IAA4C,gBAAS;SAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;QAAT,+BAAS;;;IAC7K,IAAI,SAAS,CAAC;IACd,IAAI,WAAW,EAAE;QAChB,QAAQ,iCAAC,MAAM,GAAK,MAAM,GAAE;KAC5B;IAED,IAAI,KAAK,KAAK,CAAC,EAAE;;YAChB,KAAkB,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\nimport HashObject from \"./HashObject\";\r\nimport { EngineConfig } from \"../engine-config\";\r\nexport function traverse(target, hitChild, level, includeSelf, fullCallback) {\r\n if (level === void 0) { level = -1; }\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n var params = [];\r\n for (var _i = 5; _i < arguments.length; _i++) {\r\n params[_i - 5] = arguments[_i];\r\n }\r\n var e_1, _a;\r\n var interrupt;\r\n if (includeSelf) {\r\n hitChild.apply(void 0, tslib_1.__spread([target], params));\r\n }\r\n if (level !== 0) {\r\n try {\r\n for (var _b = tslib_1.__values(target.children), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var child = _c.value;\r\n if (hitChild.apply(void 0, tslib_1.__spread([child], params))) {\r\n interrupt = true;\r\n continue;\r\n }\r\n if (child.children.length > 0) {\r\n traverse.apply(void 0, tslib_1.__spread([child, hitChild, level - 1, false, fullCallback], params));\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n }\r\n fullCallback && fullCallback(target);\r\n}\r\nexport function traversePostorder(target, hitChild, level, includeSelf, fullCallback) {\r\n if (level === void 0) { level = -1; }\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n var params = [];\r\n for (var _i = 5; _i < arguments.length; _i++) {\r\n params[_i - 5] = arguments[_i];\r\n }\r\n var interrupt;\r\n if (level !== 0) {\r\n for (var i = target.children.length - 1; i >= 0; i--) {\r\n var child = target.children[i];\r\n if (traversePostorder.apply(void 0, tslib_1.__spread([child, hitChild, level - 1, false, fullCallback], params))) {\r\n return true;\r\n }\r\n if (hitChild.apply(void 0, tslib_1.__spread([child], params))) {\r\n return true;\r\n }\r\n }\r\n }\r\n if (includeSelf) {\r\n hitChild.apply(void 0, tslib_1.__spread([target], params));\r\n }\r\n !interrupt && fullCallback && fullCallback(target);\r\n}\r\nexport function bubbling(target, hitParent, includeSelf) {\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n var params = [];\r\n for (var _i = 3; _i < arguments.length; _i++) {\r\n params[_i - 3] = arguments[_i];\r\n }\r\n if (includeSelf) {\r\n hitParent.apply(void 0, tslib_1.__spread([target], params));\r\n }\r\n var entity = target;\r\n while (entity = entity.parent) {\r\n if (hitParent.apply(void 0, tslib_1.__spread([entity], params))) {\r\n break;\r\n }\r\n }\r\n}\r\nvar Entity = (function (_super) {\r\n tslib_1.__extends(Entity, _super);\r\n function Entity(name, uuid) {\r\n var _this = _super.call(this) || this;\r\n _this.name = 'Entity';\r\n _this._isFree = true;\r\n _this._enabled = EngineConfig.entityEnabled;\r\n _this._parent = null;\r\n _this._children = [];\r\n _this._components = [];\r\n _this.invokeOnEntity = function (hitEntity, method) {\r\n var params = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n params[_i - 2] = arguments[_i];\r\n }\r\n var hitBreak = false;\r\n hitEntity.forEachComponent(function (comp) {\r\n var m = comp[method];\r\n if (m) {\r\n var result = m.apply(comp, params);\r\n if (result) {\r\n hitBreak = true;\r\n }\r\n }\r\n return false;\r\n });\r\n if (hitBreak) {\r\n return true;\r\n }\r\n };\r\n if (name) {\r\n _this.name = name;\r\n }\r\n if (uuid) {\r\n _this._uuid = uuid;\r\n }\r\n return _this;\r\n }\r\n Object.defineProperty(Entity.prototype, \"uuid\", {\r\n get: function () {\r\n return this._uuid;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Entity.prototype, \"enabled\", {\r\n get: function () {\r\n return this._enabled;\r\n },\r\n set: function (value) {\r\n if (this._enabled !== value) {\r\n this._enabled = value;\r\n traverse(this, function (child) {\r\n child._invokeEnabledState(value);\r\n return false;\r\n }, -1, true);\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype._invokeEnabledState = function (enabled) {\r\n if (this._enabled && enabled) {\r\n this.onEnable();\r\n }\r\n else if (!this._enabled && !enabled) {\r\n this.onDisable();\r\n }\r\n };\r\n Object.defineProperty(Entity.prototype, \"isParentActive\", {\r\n get: function () {\r\n return this._parent && this._parent.enabled && !this._parent.isFree;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Entity.prototype, \"isActive\", {\r\n get: function () {\r\n return this.isParentActive && this._enabled;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Entity.prototype, \"isFree\", {\r\n get: function () {\r\n return this._isFree;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype._free = function () {\r\n this._isFree = true;\r\n var that = this;\r\n traverse(this, function (child) {\r\n child._free();\r\n return false;\r\n }, 1);\r\n };\r\n Entity.prototype._restrict = function () {\r\n this._isFree = false;\r\n var that = this;\r\n traverse(this, function (child) {\r\n child._restrict();\r\n return false;\r\n }, 1);\r\n };\r\n Object.defineProperty(Entity.prototype, \"parent\", {\r\n get: function () {\r\n return this._parent;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype.containsChild = function (child) {\r\n return this.getChildIndex(child) >= 0;\r\n };\r\n Entity.prototype._onChildAdded = function (child) {\r\n child._parent = this;\r\n if (!this._isFree && child._isFree) {\r\n if (child.isParentActive) {\r\n child._invokeEnabledState(true);\r\n }\r\n child._restrict();\r\n }\r\n };\r\n Entity.prototype._onChildRemoved = function (child) {\r\n child._parent = null;\r\n if (!this._isFree && !child._isFree) {\r\n if (child.isActive) {\r\n child._invokeEnabledState(false);\r\n }\r\n child._free();\r\n }\r\n };\r\n Entity.prototype.addChild = function (child) {\r\n this.addChildAt(child, this._children.length);\r\n };\r\n Entity.prototype.addChildAt = function (child, index) {\r\n if (child.parent && child.parent !== this) {\r\n child.parent.removeChild(child);\r\n }\r\n var currentIndex = this.getChildIndex(child);\r\n if (index < 0 || currentIndex == index) {\r\n return;\r\n }\r\n index = Math.min(this._children.length, index);\r\n if (currentIndex >= 0 || index < this._children.length) {\r\n if (currentIndex >= 0) {\r\n this._children.splice(currentIndex, 1);\r\n }\r\n this._children.splice(index, 0, child);\r\n }\r\n else {\r\n this._children.push(child);\r\n }\r\n this._onChildAdded(child);\r\n };\r\n Entity.prototype.removeChild = function (child) {\r\n var index = this.getChildIndex(child);\r\n if (index >= 0) {\r\n this.removeChildAt(index);\r\n }\r\n };\r\n Entity.prototype.removeChildAt = function (index) {\r\n var child = this._children[index];\r\n this._onChildRemoved(child);\r\n this._children.splice(index, 1);\r\n };\r\n Entity.prototype.getChildIndex = function (child) {\r\n return this._children.indexOf(child);\r\n };\r\n Entity.prototype.getChildByIndex = function (index) {\r\n return this._children[index];\r\n };\r\n Entity.prototype.removeChildren = function () {\r\n while (this._children.length > 0) {\r\n this.removeChildAt(0);\r\n }\r\n };\r\n Object.defineProperty(Entity.prototype, \"children\", {\r\n get: function () {\r\n return this._children;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype.addComponent = function (component) {\r\n this.onAddComponent(component);\r\n this._components.push(component);\r\n };\r\n Entity.prototype.addComponentAt = function (component, index) {\r\n var currentIndex = this._components.indexOf(component);\r\n if (currentIndex == index) {\r\n return;\r\n }\r\n if (currentIndex >= 0) {\r\n this._components.splice(currentIndex, 1);\r\n }\r\n this._components.splice(index, 0, component);\r\n this.onAddComponent(component);\r\n };\r\n Entity.prototype.removeComponent = function (component) {\r\n this.onRemoveComponent(component);\r\n var index = this._components.indexOf(component);\r\n if (index >= 0) {\r\n this._components.splice(index, 1);\r\n }\r\n };\r\n Entity.prototype.removeAllComponents = function () {\r\n while (this._components.length > 0) {\r\n this.removeComponent(this._components[0]);\r\n }\r\n };\r\n Entity.prototype.getComponents = function (clazz) {\r\n return this._components.filter(function (component) {\r\n return typeof clazz === 'string' ? component.constructor.__class__ === clazz : component instanceof clazz;\r\n });\r\n };\r\n Entity.prototype.getComponent = function (clazz) {\r\n return this.getComponents(clazz)[0];\r\n };\r\n Object.defineProperty(Entity.prototype, \"components\", {\r\n get: function () {\r\n return this._components;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype.forEachComponent = function (func) {\r\n var e_2, _a;\r\n try {\r\n for (var _b = tslib_1.__values(this._components), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var component = _c.value;\r\n if (func(component)) {\r\n break;\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n };\r\n Entity.prototype.onEnable = function () {\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled) {\r\n return comp.onAwake();\r\n }\r\n });\r\n };\r\n Entity.prototype.onDisable = function () {\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled) {\r\n return comp.onSleep();\r\n }\r\n });\r\n };\r\n Entity.prototype.onUpdate = function (t) {\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled) {\r\n return comp.$onUpdate(t);\r\n }\r\n });\r\n };\r\n Entity.prototype.afterUpdate = function () {\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled) {\r\n return comp.afterUpdate();\r\n }\r\n });\r\n };\r\n Entity.prototype.onInteract = function (type, event) {\r\n if (!this.isFree && this.enabled) {\r\n var interrupt_1 = false;\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled && comp.interactable) {\r\n var r = comp.onInteract(type, event);\r\n if (r) {\r\n interrupt_1 = true;\r\n }\r\n return false;\r\n }\r\n });\r\n return interrupt_1;\r\n }\r\n else {\r\n return false;\r\n }\r\n };\r\n Entity.prototype.onAddComponent = function (component) {\r\n component._setup(this);\r\n if (EngineConfig.awakeComponentWhenAdded) {\r\n this.awakeComponent(component);\r\n }\r\n };\r\n Entity.prototype.awakeComponent = function (component) {\r\n if (!this._isFree && this._enabled) {\r\n component.onAwake();\r\n }\r\n };\r\n Entity.prototype.onRemoveComponent = function (component) {\r\n if (EngineConfig.sleepComponentWhenRemoved) {\r\n this.sleepComponent(component);\r\n }\r\n component._unSetup();\r\n };\r\n Entity.prototype.sleepComponent = function (component) {\r\n if (!this._isFree && this._enabled) {\r\n component.onSleep();\r\n }\r\n };\r\n Entity.prototype.broadcast = function (method, level) {\r\n if (level === void 0) { level = -1; }\r\n var params = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n params[_i - 2] = arguments[_i];\r\n }\r\n traverse.apply(void 0, tslib_1.__spread([this, this.invokeOnEntity, level, true, null, method], params));\r\n };\r\n Entity.prototype.bubbling = function (method) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n bubbling.apply(void 0, tslib_1.__spread([this, this.invokeOnEntity, false, method], params));\r\n };\r\n return Entity;\r\n}(HashObject));\r\nexport { Entity };\r\n//# sourceMappingURL=Entity.js.map"}
{"map":"{\"version\":3,\"file\":\"engine-config.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../node_modules/scilla-core/src/engine-config.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,MAAM,CAAC,IAAM,YAAY,GAAG;IAC3B,eAAe,EAAE,GAAG;IACpB,aAAa,EAAE,IAAI;IACnB,gBAAgB,EAAE,IAAI;IACtB,uBAAuB,EAAE,IAAI;IAC7B,yBAAyB,EAAE,IAAI;IAC/B,cAAc,EAAE,KAAK;IACrB,cAAc,EAAE,IAAI;CACpB,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,QAAQ;IAC1C,UAAU,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AACpC,CAAC\"}","code":"import { injectProp } from \"./tools/utils\";\r\nexport var EngineConfig = {\r\n lineHeightRatio: 1.2,\r\n entityEnabled: true,\r\n componentEnabled: true,\r\n awakeComponentWhenAdded: true,\r\n sleepComponentWhenRemoved: true,\r\n drawRenderRect: false,\r\n imgCrossOrigin: true,\r\n};\r\nexport function modifyEngineConfig(_options) {\r\n injectProp(EngineConfig, _options);\r\n}\r\n//# sourceMappingURL=engine-config.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/filter/index.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC\"}","code":"export { ShadowFilter } from './Filters';\r\nexport { ColorFilter } from './Filters';\r\nexport { ColorMatrixFilter } from './Filters';\r\nexport { BlurFilter } from './Filters';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"TextureRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/TextureRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAU,UAAU,EAAC,MAAM,QAAQ,CAAC;AAEpC,IAAA,kDAAkB,CAAe;AAExC,MAAM,CAAN,IAAY,QAaX;AAbD,WAAY,QAAQ;IAInB,2CAAM,CAAA;IAIN,2CAAM,CAAA;IAIN,yCAAK,CAAA;AACN,CAAC,EAbW,QAAQ,KAAR,QAAQ,QAanB;AAKD;IAA6C,2CAAQ;IAArD;QAAA,qEAqIC;QA1HA,cAAQ,GAAa,QAAQ,CAAC,MAAM,CAAC;QAMrC,aAAO,GAAG,EAAE,CAAC;;IAoHd,CAAC;IAlHA,sBAAY,uCAAU;aAAtB;YACC,OAAO,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;QAChD,CAAC;;;OAAA;IAKD,8BAAI,GAAJ;QACC,iBAAM,IAAI,WAAE,CAAC;Q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,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;gBAClC,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC;gBAC5B,OAAO,CAAC,IAAI,EAAE,CAAC;gBACf,MAAM;SACP;IACF,CAAC;IAKD,uCAAa,GAAb;QACC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAChB,OAAO;SACP;QAEK,IAAA,SAA4E,EAA3E,kBAAM,EAAE,iBAA2D,EAA/C,yBAAqB,EAAE,2BAAgC,CAAC;QAEnF,IAAI,IAAI,CAAC,OAAO,EAAE;YACX,IAAA,iBAA2D,EAA1D,uBAAmB,EAAE,yBAAqC,CAAC;YAElE,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC;YACrD,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC;SACzD;aAAM;YACN,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;YAC1C,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;SAC7C;QAED,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IA/HD;QADC,kBAAkB;oDACF;IAMjB;QADC,kBAAkB;qDACkB;IAMrC;QADC,kBAAkB;oDACN;IAoHd,sBAAC;CAAA,AArID,CAA6C,QAAQ,GAqIpD;eArIoB,eAAe\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Renderer from \"./Renderer\";\r\nimport { decorators } from \"scilla\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector;\r\nexport var FillMode;\r\n(function (FillMode) {\r\n FillMode[FillMode[\"NORMAL\"] = 0] = \"NORMAL\";\r\n FillMode[FillMode[\"SLICED\"] = 1] = \"SLICED\";\r\n FillMode[FillMode[\"TILED\"] = 2] = \"TILED\";\r\n})(FillMode || (FillMode = {}));\r\nvar TextureRenderer = (function (_super) {\r\n tslib_1.__extends(TextureRenderer, _super);\r\n function TextureRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.fillMode = FillMode.NORMAL;\r\n _this.filters = [];\r\n return _this;\r\n }\r\n Object.defineProperty(TextureRenderer.prototype, \"hasFilters\", {\r\n get: function () {\r\n return this.filters && this.filters.length > 0;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n TextureRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n this.drawImage();\r\n this.applyFilters();\r\n };\r\n TextureRenderer.prototype.applyFilters = function () {\r\n var e_1, _a;\r\n if (!this.hasFilters)\r\n return;\r\n var _b = this, texture = _b.texture, filters = _b.filters, context = _b.context;\r\n var _c = texture.bounds, textureWidth = _c.width, textureHeight = _c.height;\r\n var imageData = context.getImageData(0, 0, textureWidth, textureHeight);\r\n try {\r\n for (var filters_1 = tslib_1.__values(filters), filters_1_1 = filters_1.next(); !filters_1_1.done; filters_1_1 = filters_1.next()) {\r\n var filter = filters_1_1.value;\r\n filter.drawFilter(imageData);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (filters_1_1 && !filters_1_1.done && (_a = filters_1.return)) _a.call(filters_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n context.putImageData(imageData, 0, 0);\r\n };\r\n TextureRenderer.prototype.drawImage = function () {\r\n if (!this.texture) {\r\n return;\r\n }\r\n var _a = this, texture = _a.texture, fillMode = _a.fillMode, context = _a.context, _b = _a.bounds, width = _b.width, height = _b.height;\r\n var _c = texture.bounds, x = _c.x, y = _c.y, textureWidth = _c.width, textureHeight = _c.height;\r\n switch (fillMode) {\r\n case FillMode.NORMAL:\r\n texture.drawToCanvas(context);\r\n break;\r\n case FillMode.SLICED:\r\n break;\r\n case FillMode.TILED:\r\n var textureCanvas = texture.getCacheCanvas();\r\n var pattern = context.createPattern(textureCanvas, 'repeat');\r\n context.rect(0, 0, width, height);\r\n context.fillStyle = pattern;\r\n context.fill();\r\n break;\r\n }\r\n };\r\n TextureRenderer.prototype.measureBounds = function () {\r\n if (!this.dirty) {\r\n return;\r\n }\r\n var _a = this, bounds = _a.bounds, _b = _a.transform, tWidth = _b.explicitWidth, tHeight = _b.explicitHeight;\r\n if (this.texture) {\r\n var _c = this.texture, textureWidth = _c.width, textureHeight = _c.height;\r\n bounds.width = isNaN(tWidth) ? textureWidth : tWidth;\r\n bounds.height = isNaN(tHeight) ? textureHeight : tHeight;\r\n }\r\n else {\r\n bounds.width = isNaN(tWidth) ? 0 : tWidth;\r\n bounds.height = isNaN(tHeight) ? 0 : tHeight;\r\n }\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextureRenderer.prototype, \"texture\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextureRenderer.prototype, \"fillMode\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextureRenderer.prototype, \"filters\", void 0);\r\n return TextureRenderer;\r\n}(Renderer));\r\nexport default TextureRenderer;\r\n//# sourceMappingURL=TextureRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"MainController.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../assets/scripts/MainController.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD;IAA4C,0CAAe;IAEvD;eACI,iBAAO;IAGX,CAAC;IACD,yCAAgB,GAAhB;QACI,KAAK,CAAC,kBAAkB,CAAC,CAAA;IAC7B,CAAC;IACD,uCAAc,GAAd;QACI,KAAK,CAAC,gBAAgB,CAAC,CAAA;IAC3B,CAAC;IACD,qCAAY,GAAZ;QACI,KAAK,CAAC,cAAc,CAAC,CAAA;IACzB,CAAC;IACD,sCAAa,GAAb;QACI,KAAK,CAAC,eAAe,CAAC,CAAA;IAC1B,CAAC;IACD,qCAAY,GAAZ;QACI,KAAK,CAAC,cAAc,CAAC,CAAA;IACzB,CAAC;IACL,qBAAC;AAAD,CAAC,AAtBD,CAA4C,eAAe,GAsB1D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent } from 'scilla-core/src';\r\nvar MainController = (function (_super) {\r\n tslib_1.__extends(MainController, _super);\r\n function MainController() {\r\n return _super.call(this) || this;\r\n }\r\n MainController.prototype.onWithdrawBtnTap = function () {\r\n alert('onWithdrawBtnTap');\r\n };\r\n MainController.prototype.onRecordBtnTap = function () {\r\n alert('onRecordBtnTap');\r\n };\r\n MainController.prototype.onRuleBtnTap = function () {\r\n alert('onRuleBtnTap');\r\n };\r\n MainController.prototype.onTasksBtnTap = function () {\r\n alert('onTasksBtnTap');\r\n };\r\n MainController.prototype.onEggsBtnTap = function () {\r\n alert('onEggsBtnTap');\r\n };\r\n return MainController;\r\n}(ScillaComponent));\r\nexport default MainController;\r\n//# sourceMappingURL=MainController.js.map"}
{"map":"{\"version\":3,\"file\":\"LineRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/LineRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAKhD;IAA0C,wCAAe;IAAzD;QAAA,qEA4BC;QA3BA,QAAE,GAAW,CAAC,CAAC;QACf,QAAE,GAAW,CAAC,CAAC;QACf,QAAE,GAAW,CAAC,CAAC;QACf,QAAE,GAAW,CAAC,CAAC;;IAwBhB,CAAC;IAnBA,2BAAI,GAAJ;QACC,iBAAM,IAAI,WAAE,CAAC;QAEP,IAAA,SAAgC,EAA/B,oBAAO,EAAE,UAAE,EAAE,UAAE,EAAE,UAAE,EAAE,UAAU,CAAC;QAEvC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACvB,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACxB,CAAC;IAKD,oCAAa,GAAb;QACQ,IAAA,oBAAM,CAAS;QACtB,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;QACjB,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QAElB,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IACF,mBAAC;AAAD,CAAC,AA5BD,CAA0C,eAAe,GA4BxD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nvar LineRenderer = (function (_super) {\r\n tslib_1.__extends(LineRenderer, _super);\r\n function LineRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.x0 = 0;\r\n _this.y0 = 0;\r\n _this.x1 = 0;\r\n _this.y1 = 0;\r\n return _this;\r\n }\r\n LineRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n var _a = this, context = _a.context, x0 = _a.x0, y0 = _a.y0, x1 = _a.x1, y1 = _a.y1;\r\n context.moveTo(x0, y0);\r\n context.lineTo(x1, y1);\r\n };\r\n LineRenderer.prototype.measureBounds = function () {\r\n var bounds = this.bounds;\r\n bounds.width = 0;\r\n bounds.height = 0;\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n return LineRenderer;\r\n}(GraphicRenderer));\r\nexport default LineRenderer;\r\n//# sourceMappingURL=LineRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,0BAA0B,CAAA;AAC1E,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mBAAmB,CAAA\"}","code":"export { default as CircleRenderer } from './CircleRenderer';\r\nexport { default as FrameAnimationRenderer } from './FrameAnimationRenderer';\r\nexport { default as GraphicRenderer } from './GraphicRenderer';\r\nexport { default as LineRenderer } from './LineRenderer';\r\nexport { default as RectRenderer } from './RectRenderer';\r\nexport { default as Renderer } from './Renderer';\r\nexport { default as TextRenderer } from './TextRenderer';\r\nexport { default as TextureRenderer } from './TextureRenderer';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"decorators.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/decorators.ts\"],\"names\":[],\"mappings\":\"AAUA,MAAM,UAAU,YAAY,CAAC,QAAQ;IACpC,OAAO,UAAU,MAAW,EAAE,GAAW;QACxC,IAAM,UAAU,GAAG,GAAG,GAAG,GAAG,CAAC;QAC7B,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE;YAClC,UAAU,EAAE,IAAI;YAChB,GAAG,EAAE;gBACJ,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC;YACzB,CAAC;YACD,GAAG,EAAE,UAAU,CAAC;gBACf,IAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;gBAClC,IAAI,QAAQ,KAAK,CAAC,EAAE;oBACnB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;oBACrB,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;iBACzC;YACF,CAAC;SACD,CAAC,CAAA;IACH,CAAC,CAAA;AACF,CAAC;AAKD,MAAM,CAAC,IAAM,kBAAkB,GAAG,YAAY,CAC7C,UAAU,KAAK,EAAE,GAAG,EAAE,QAAQ;IAC7B,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;AACtB,CAAC,CACD,CAAC;AAKF,MAAM,CAAC,IAAM,iBAAiB,GAAG,YAAY,CAC5C,UAAU,KAAK,EAAE,GAAG,EAAE,QAAQ;IAC7B,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;AAC5D,CAAC,CACD,CAAC\"}","code":"export function fieldChanged(onChange) {\r\n return function (target, key) {\r\n var privateKey = '_' + key;\r\n Object.defineProperty(target, key, {\r\n enumerable: true,\r\n get: function () {\r\n return this[privateKey];\r\n },\r\n set: function (v) {\r\n var oldValue = this[privateKey];\r\n if (oldValue !== v) {\r\n this[privateKey] = v;\r\n onChange.apply(this, [v, key, oldValue]);\r\n }\r\n }\r\n });\r\n };\r\n}\r\nexport var dirtyFieldDetector = fieldChanged(function (value, key, oldValue) {\r\n this['dirty'] = true;\r\n});\r\nexport var dirtyFieldTrigger = fieldChanged(function (value, key, oldValue) {\r\n this['onModify'] && this['onModify'](value, key, oldValue);\r\n});\r\n//# sourceMappingURL=decorators.js.map"}
{"map":"{\"version\":3,\"file\":\"Filters.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/filter/Filters.ts\"],\"names\":[],\"mappings\":\"AAMA;IA0DI,sBAAmB,KAAuB,EAAE,OAAmB,EAAE,OAAmB,EAAE,IAAgB;QAAnF,sBAAA,EAAA,eAAuB;QAAE,wBAAA,EAAA,WAAmB;QAAE,wBAAA,EAAA,WAAmB;QAAE,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E,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;IAmKlvC,iBAAC;CAAA,AAlOD,IAkOC;SAlOY,UAAU\"}","code":"var ShadowFilter = (function () {\r\n function ShadowFilter(color, offsetX, offsetY, blur) {\r\n if (color === void 0) { color = \"black\"; }\r\n if (offsetX === void 0) { offsetX = 2; }\r\n if (offsetY === void 0) { offsetY = 2; }\r\n if (blur === void 0) { blur = 2; }\r\n this.color = \"black\";\r\n this.offsetX = 2;\r\n this.offsetY = 2;\r\n this.blur = 2;\r\n this.type = \"Shadow\";\r\n var s = this;\r\n s.offsetX = offsetX;\r\n s.offsetY = offsetY;\r\n s.blur = blur;\r\n s.color = color;\r\n }\r\n ShadowFilter.prototype.toString = function () {\r\n var s = this;\r\n return s.type + s.offsetX + s.offsetY + s.blur + s.color;\r\n };\r\n ShadowFilter.prototype.drawFilter = function (imageData) {\r\n if (imageData === void 0) { imageData = null; }\r\n };\r\n ShadowFilter.prototype.destroy = function () {\r\n };\r\n return ShadowFilter;\r\n}());\r\nexport { ShadowFilter };\r\nvar ColorFilter = (function () {\r\n function ColorFilter(colorArrays) {\r\n this.redMultiplier = 0;\r\n this.redOffset = 0;\r\n this.greenMultiplier = 0;\r\n this.greenOffset = 0;\r\n this.blueMultiplier = 0;\r\n this.blueOffset = 0;\r\n this.alphaMultiplier = 0;\r\n this.alphaOffset = 0;\r\n this.type = \"Color\";\r\n var s = this;\r\n s.redMultiplier = colorArrays[0];\r\n s.greenMultiplier = colorArrays[1];\r\n s.blueMultiplier = colorArrays[2];\r\n s.alphaMultiplier = colorArrays[3];\r\n s.redOffset = colorArrays[4];\r\n s.greenOffset = colorArrays[5];\r\n s.blueOffset = colorArrays[6];\r\n s.alphaOffset = colorArrays[7];\r\n }\r\n ColorFilter.prototype.drawFilter = function (imageData) {\r\n if (imageData === void 0) { imageData = null; }\r\n if (!imageData)\r\n return;\r\n var s = this;\r\n var data = imageData.data;\r\n var l = data.length;\r\n for (var i = 0; i < l; i += 4) {\r\n data[i] = data[i] * s.redMultiplier + s.redOffset;\r\n data[i + 1] = data[i + 1] * s.greenMultiplier + s.greenOffset;\r\n data[i + 2] = data[i + 2] * s.blueMultiplier + s.blueOffset;\r\n data[i + 3] = data[i + 3] * s.alphaMultiplier + s.alphaOffset;\r\n }\r\n };\r\n ColorFilter.prototype.toString = function () {\r\n var s = this;\r\n return s.type + s.redMultiplier + s.greenMultiplier + s.blueMultiplier + s.alphaMultiplier + s.redOffset + s.greenOffset + s.blueOffset + s.alphaOffset;\r\n };\r\n ColorFilter.prototype.destroy = function () {\r\n };\r\n return ColorFilter;\r\n}());\r\nexport { ColorFilter };\r\nvar ColorMatrixFilter = (function () {\r\n function ColorMatrixFilter(brightness, contrast, saturation, hue) {\r\n this.brightness = 0;\r\n this.contrast = 0;\r\n this.saturation = 0;\r\n this.hue = 0;\r\n this.type = \"ColorMatrix\";\r\n var s = this;\r\n s.brightness = brightness;\r\n s.contrast = contrast;\r\n s.saturation = saturation;\r\n s.hue = hue;\r\n s.colorMatrix = [\r\n 1, 0, 0, 0, 0,\r\n 0, 1, 0, 0, 0,\r\n 0, 0, 1, 0, 0,\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ];\r\n brightness = s._cleanValue(brightness, 255);\r\n if (brightness != 0) {\r\n s._multiplyMatrix([\r\n 1, 0, 0, 0, brightness,\r\n 0, 1, 0, 0, brightness,\r\n 0, 0, 1, 0, brightness,\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ]);\r\n }\r\n contrast = this._cleanValue(contrast, 100);\r\n var x;\r\n if (contrast != 0) {\r\n if (contrast < 0) {\r\n x = 127 + contrast / 100 * 127;\r\n }\r\n else {\r\n x = contrast % 1;\r\n if (x == 0) {\r\n x = ColorMatrixFilter.DELTA_INDEX[contrast];\r\n }\r\n else {\r\n x = ColorMatrixFilter.DELTA_INDEX[(contrast << 0)] * (1 - x) + ColorMatrixFilter.DELTA_INDEX[(contrast << 0) + 1] * x;\r\n }\r\n x = x * 127 + 127;\r\n }\r\n s._multiplyMatrix([\r\n x / 127, 0, 0, 0, 0.5 * (127 - x),\r\n 0, x / 127, 0, 0, 0.5 * (127 - x),\r\n 0, 0, x / 127, 0, 0.5 * (127 - x),\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ]);\r\n }\r\n saturation = this._cleanValue(saturation, 100);\r\n if (saturation != 0) {\r\n x = 1 + ((saturation > 0) ? 3 * saturation / 100 : saturation / 100);\r\n var lumR = 0.3086;\r\n var lumG = 0.6094;\r\n var lumB = 0.0820;\r\n s._multiplyMatrix([\r\n lumR * (1 - x) + x, lumG * (1 - x), lumB * (1 - x), 0, 0,\r\n lumR * (1 - x), lumG * (1 - x) + x, lumB * (1 - x), 0, 0,\r\n lumR * (1 - x), lumG * (1 - x), lumB * (1 - x) + x, 0, 0,\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ]);\r\n }\r\n hue = this._cleanValue(hue, 180) / 180 * Math.PI;\r\n if (hue != 0) {\r\n var cosVal = Math.cos(hue);\r\n var sinVal = Math.sin(hue);\r\n var lumR = 0.213;\r\n var lumG = 0.715;\r\n var lumB = 0.072;\r\n s._multiplyMatrix([\r\n lumR + cosVal * (1 - lumR) + sinVal * (-lumR), lumG + cosVal * (-lumG) + sinVal * (-lumG), lumB + cosVal * (-lumB) + sinVal * (1 - lumB), 0, 0,\r\n lumR + cosVal * (-lumR) + sinVal * (0.143), lumG + cosVal * (1 - lumG) + sinVal * (0.140), lumB + cosVal * (-lumB) + sinVal * (-0.283), 0, 0,\r\n lumR + cosVal * (-lumR) + sinVal * (-(1 - lumR)), lumG + cosVal * (-lumG) + sinVal * (lumG), lumB + cosVal * (1 - lumB) + sinVal * (lumB), 0, 0,\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ]);\r\n }\r\n }\r\n ColorMatrixFilter.prototype.drawFilter = function (imageData) {\r\n if (imageData === void 0) { imageData = null; }\r\n if (!imageData)\r\n return;\r\n var data = imageData.data;\r\n var l = data.length;\r\n var r, g, b, a;\r\n var mtx = this.colorMatrix;\r\n var m0 = mtx[0], m1 = mtx[1], m2 = mtx[2], m3 = mtx[3], m4 = mtx[4];\r\n var m5 = mtx[5], m6 = mtx[6], m7 = mtx[7], m8 = mtx[8], m9 = mtx[9];\r\n var m10 = mtx[10], m11 = mtx[11], m12 = mtx[12], m13 = mtx[13], m14 = mtx[14];\r\n var m15 = mtx[15], m16 = mtx[16], m17 = mtx[17], m18 = mtx[18], m19 = mtx[19];\r\n for (var i = 0; i < l; i += 4) {\r\n r = data[i];\r\n g = data[i + 1];\r\n b = data[i + 2];\r\n a = data[i + 3];\r\n data[i] = r * m0 + g * m1 + b * m2 + a * m3 + m4;\r\n data[i + 1] = r * m5 + g * m6 + b * m7 + a * m8 + m9;\r\n data[i + 2] = r * m10 + g * m11 + b * m12 + a * m13 + m14;\r\n data[i + 3] = r * m15 + g * m16 + b * m17 + a * m18 + m19;\r\n }\r\n };\r\n ColorMatrixFilter.prototype._multiplyMatrix = function (colorMat) {\r\n var i, j, k, col = [];\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j < 5; j++) {\r\n col[j] = this.colorMatrix[j + i * 5];\r\n }\r\n for (j = 0; j < 5; j++) {\r\n var val = 0;\r\n for (k = 0; k < 5; k++) {\r\n val += colorMat[j + k * 5] * col[k];\r\n }\r\n this.colorMatrix[j + i * 5] = val;\r\n }\r\n }\r\n };\r\n ColorMatrixFilter.prototype._cleanValue = function (value, limit) {\r\n return Math.min(limit, Math.max(-limit, value));\r\n };\r\n ColorMatrixFilter.prototype.toString = function () {\r\n var s = this;\r\n return s.type + s.brightness + s.hue + s.saturation + s.contrast;\r\n };\r\n ColorMatrixFilter.prototype.destroy = function () {\r\n this.colorMatrix = null;\r\n };\r\n ColorMatrixFilter.DELTA_INDEX = [\r\n 0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 0.08, 0.1, 0.11,\r\n 0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.20, 0.21, 0.22, 0.24,\r\n 0.25, 0.27, 0.28, 0.30, 0.32, 0.34, 0.36, 0.38, 0.40, 0.42,\r\n 0.44, 0.46, 0.48, 0.5, 0.53, 0.56, 0.59, 0.62, 0.65, 0.68,\r\n 0.71, 0.74, 0.77, 0.80, 0.83, 0.86, 0.89, 0.92, 0.95, 0.98,\r\n 1.0, 1.06, 1.12, 1.18, 1.24, 1.30, 1.36, 1.42, 1.48, 1.54,\r\n 1.60, 1.66, 1.72, 1.78, 1.84, 1.90, 1.96, 2.0, 2.12, 2.25,\r\n 2.37, 2.50, 2.62, 2.75, 2.87, 3.0, 3.2, 3.4, 3.6, 3.8,\r\n 4.0, 4.3, 4.7, 4.9, 5.0, 5.5, 6.0, 6.5, 6.8, 7.0,\r\n 7.3, 7.5, 7.8, 8.0, 8.4, 8.7, 9.0, 9.4, 9.6, 9.8,\r\n 10.0\r\n ];\r\n return ColorMatrixFilter;\r\n}());\r\nexport { ColorMatrixFilter };\r\nvar BlurFilter = (function () {\r\n function BlurFilter(blurX, blurY, quality) {\r\n if (blurX === void 0) { blurX = 2; }\r\n if (blurY === void 0) { blurY = 2; }\r\n if (quality === void 0) { quality = 1; }\r\n this.type = \"blur\";\r\n this.blurX = 0;\r\n this.blurY = 0;\r\n this.quality = 1;\r\n var s = this;\r\n s.blurX = blurX;\r\n s.blurY = blurY;\r\n s.quality = quality;\r\n }\r\n BlurFilter.prototype.toString = function () {\r\n var s = this;\r\n return s.type + s.blurX + s.blurY + s.quality;\r\n };\r\n BlurFilter.prototype.drawFilter = function (imageData) {\r\n if (imageData === void 0) { imageData = null; }\r\n var s = this;\r\n var radiusX = s.blurX >> 1;\r\n if (isNaN(radiusX) || radiusX < 0)\r\n return false;\r\n var radiusY = s.blurY >> 1;\r\n if (isNaN(radiusY) || radiusY < 0)\r\n return false;\r\n if (radiusX == 0 && radiusY == 0)\r\n return false;\r\n var iterations = s.quality;\r\n if (isNaN(iterations) || iterations < 1)\r\n iterations = 1;\r\n iterations |= 0;\r\n if (iterations > 3)\r\n iterations = 3;\r\n if (iterations < 1)\r\n iterations = 1;\r\n var px = imageData.data;\r\n var x = 0, y = 0, i = 0, p = 0, yp = 0, yi = 0, yw = 0, r = 0, g = 0, b = 0, a = 0, pr = 0, pg = 0, pb = 0, pa = 0;\r\n var divx = (radiusX + radiusX + 1) | 0;\r\n var divy = (radiusY + radiusY + 1) | 0;\r\n var w = imageData.width | 0;\r\n var h = imageData.height | 0;\r\n var w1 = (w - 1) | 0;\r\n var h1 = (h - 1) | 0;\r\n var rxp1 = (radiusX + 1) | 0;\r\n var ryp1 = (radiusY + 1) | 0;\r\n var ssx = { r: 0, b: 0, g: 0, a: 0 };\r\n var sx = ssx;\r\n for (i = 1; i < divx; i++) {\r\n sx = sx.n = { r: 0, b: 0, g: 0, a: 0 };\r\n }\r\n sx.n = ssx;\r\n var ssy = { r: 0, b: 0, g: 0, a: 0 };\r\n var sy = ssy;\r\n for (i = 1; i < divy; i++) {\r\n sy = sy.n = { r: 0, b: 0, g: 0, a: 0 };\r\n }\r\n sy.n = ssy;\r\n var si = null;\r\n var mtx = BlurFilter.MUL_TABLE[radiusX] | 0;\r\n var stx = BlurFilter.SHG_TABLE[radiusX] | 0;\r\n var mty = BlurFilter.MUL_TABLE[radiusY] | 0;\r\n var sty = BlurFilter.SHG_TABLE[radiusY] | 0;\r\n while (iterations-- > 0) {\r\n yw = yi = 0;\r\n var ms = mtx;\r\n var ss = stx;\r\n for (y = h; --y > -1;) {\r\n r = rxp1 * (pr = px[(yi) | 0]);\r\n g = rxp1 * (pg = px[(yi + 1) | 0]);\r\n b = rxp1 * (pb = px[(yi + 2) | 0]);\r\n a = rxp1 * (pa = px[(yi + 3) | 0]);\r\n sx = ssx;\r\n for (i = rxp1; --i > -1;) {\r\n sx.r = pr;\r\n sx.g = pg;\r\n sx.b = pb;\r\n sx.a = pa;\r\n sx = sx.n;\r\n }\r\n for (i = 1; i < rxp1; i++) {\r\n p = (yi + ((w1 < i ? w1 : i) << 2)) | 0;\r\n r += (sx.r = px[p]);\r\n g += (sx.g = px[p + 1]);\r\n b += (sx.b = px[p + 2]);\r\n a += (sx.a = px[p + 3]);\r\n sx = sx.n;\r\n }\r\n si = ssx;\r\n for (x = 0; x < w; x++) {\r\n px[yi++] = (r * ms) >>> ss;\r\n px[yi++] = (g * ms) >>> ss;\r\n px[yi++] = (b * ms) >>> ss;\r\n px[yi++] = (a * ms) >>> ss;\r\n p = ((yw + ((p = x + radiusX + 1) < w1 ? p : w1)) << 2);\r\n r -= si.r - (si.r = px[p]);\r\n g -= si.g - (si.g = px[p + 1]);\r\n b -= si.b - (si.b = px[p + 2]);\r\n a -= si.a - (si.a = px[p + 3]);\r\n si = si.n;\r\n }\r\n yw += w;\r\n }\r\n ms = mty;\r\n ss = sty;\r\n for (x = 0; x < w; x++) {\r\n yi = (x << 2) | 0;\r\n r = (ryp1 * (pr = px[yi])) | 0;\r\n g = (ryp1 * (pg = px[(yi + 1) | 0])) | 0;\r\n b = (ryp1 * (pb = px[(yi + 2) | 0])) | 0;\r\n a = (ryp1 * (pa = px[(yi + 3) | 0])) | 0;\r\n sy = ssy;\r\n for (i = 0; i < ryp1; i++) {\r\n sy.r = pr;\r\n sy.g = pg;\r\n sy.b = pb;\r\n sy.a = pa;\r\n sy = sy.n;\r\n }\r\n yp = w;\r\n for (i = 1; i <= radiusY; i++) {\r\n yi = (yp + x) << 2;\r\n r += (sy.r = px[yi]);\r\n g += (sy.g = px[yi + 1]);\r\n b += (sy.b = px[yi + 2]);\r\n a += (sy.a = px[yi + 3]);\r\n sy = sy.n;\r\n if (i < h1) {\r\n yp += w;\r\n }\r\n }\r\n yi = x;\r\n si = ssy;\r\n if (iterations > 0) {\r\n for (y = 0; y < h; y++) {\r\n p = yi << 2;\r\n px[p + 3] = pa = (a * ms) >>> ss;\r\n if (pa > 0) {\r\n px[p] = ((r * ms) >>> ss);\r\n px[p + 1] = ((g * ms) >>> ss);\r\n px[p + 2] = ((b * ms) >>> ss);\r\n }\r\n else {\r\n px[p] = px[p + 1] = px[p + 2] = 0;\r\n }\r\n p = (x + (((p = y + ryp1) < h1 ? p : h1) * w)) << 2;\r\n r -= si.r - (si.r = px[p]);\r\n g -= si.g - (si.g = px[p + 1]);\r\n b -= si.b - (si.b = px[p + 2]);\r\n a -= si.a - (si.a = px[p + 3]);\r\n si = si.n;\r\n yi += w;\r\n }\r\n }\r\n else {\r\n for (y = 0; y < h; y++) {\r\n p = yi << 2;\r\n px[p + 3] = pa = (a * ms) >>> ss;\r\n if (pa > 0) {\r\n pa = 255 / pa;\r\n px[p] = ((r * ms) >>> ss) * pa;\r\n px[p + 1] = ((g * ms) >>> ss) * pa;\r\n px[p + 2] = ((b * ms) >>> ss) * pa;\r\n }\r\n else {\r\n px[p] = px[p + 1] = px[p + 2] = 0;\r\n }\r\n p = (x + (((p = y + ryp1) < h1 ? p : h1) * w)) << 2;\r\n r -= si.r - (si.r = px[p]);\r\n g -= si.g - (si.g = px[p + 1]);\r\n b -= si.b - (si.b = px[p + 2]);\r\n a -= si.a - (si.a = px[p + 3]);\r\n si = si.n;\r\n yi += w;\r\n }\r\n }\r\n }\r\n }\r\n };\r\n BlurFilter.prototype.destroy = function () {\r\n };\r\n BlurFilter.SHG_TABLE = [0, 9, 10, 11, 9, 12, 10, 11, 12, 9, 13, 13, 10, 9, 13, 13, 14, 14, 14, 14, 10, 13, 14, 14, 14, 13, 13, 13, 9, 14, 14, 14, 15, 14, 15, 14, 15, 15, 14, 15, 15, 15, 14, 15, 15, 15, 15, 15, 14, 15, 15, 15, 15, 15, 15, 12, 14, 15, 15, 13, 15, 15, 15, 15, 16, 16, 16, 15, 16, 14, 16, 16, 14, 16, 13, 16, 16, 16, 15, 16, 13, 16, 15, 16, 14, 9, 16, 16, 16, 16, 16, 16, 16, 16, 16, 13, 14, 16, 16, 15, 16, 16, 10, 16, 15, 16, 14, 16, 16, 14, 16, 16, 14, 16, 16, 14, 15, 16, 16, 16, 14, 15, 14, 15, 13, 16, 16, 15, 17, 17, 17, 17, 17, 17, 14, 15, 17, 17, 16, 16, 17, 16, 15, 17, 16, 17, 11, 17, 16, 17, 16, 17, 16, 17, 17, 16, 17, 17, 16, 17, 17, 16, 16, 17, 17, 17, 16, 14, 17, 17, 17, 17, 15, 16, 14, 16, 15, 16, 13, 16, 15, 16, 14, 16, 15, 16, 12, 16, 15, 16, 17, 17, 17, 17, 17, 13, 16, 15, 17, 17, 17, 16, 15, 17, 17, 17, 16, 15, 17, 17, 14, 16, 17, 17, 16, 17, 17, 16, 15, 17, 16, 14, 17, 16, 15, 17, 16, 17, 17, 16, 17, 15, 16, 17, 14, 17, 16, 15, 17, 16, 17, 13, 17, 16, 17, 17, 16, 17, 14, 17, 16, 17, 16, 17, 16, 17, 9];\r\n BlurFilter.MUL_TABLE = [1, 171, 205, 293, 57, 373, 79, 137, 241, 27, 391, 357, 41, 19, 283, 265, 497, 469, 443, 421, 25, 191, 365, 349, 335, 161, 155, 149, 9, 278, 269, 261, 505, 245, 475, 231, 449, 437, 213, 415, 405, 395, 193, 377, 369, 361, 353, 345, 169, 331, 325, 319, 313, 307, 301, 37, 145, 285, 281, 69, 271, 267, 263, 259, 509, 501, 493, 243, 479, 118, 465, 459, 113, 446, 55, 435, 429, 423, 209, 413, 51, 403, 199, 393, 97, 3, 379, 375, 371, 367, 363, 359, 355, 351, 347, 43, 85, 337, 333, 165, 327, 323, 5, 317, 157, 311, 77, 305, 303, 75, 297, 294, 73, 289, 287, 71, 141, 279, 277, 275, 68, 135, 67, 133, 33, 262, 260, 129, 511, 507, 503, 499, 495, 491, 61, 121, 481, 477, 237, 235, 467, 232, 115, 457, 227, 451, 7, 445, 221, 439, 218, 433, 215, 427, 425, 211, 419, 417, 207, 411, 409, 203, 202, 401, 399, 396, 197, 49, 389, 387, 385, 383, 95, 189, 47, 187, 93, 185, 23, 183, 91, 181, 45, 179, 89, 177, 11, 175, 87, 173, 345, 343, 341, 339, 337, 21, 167, 83, 331, 329, 327, 163, 81, 323, 321, 319, 159, 79, 315, 313, 39, 155, 309, 307, 153, 305, 303, 151, 75, 299, 149, 37, 295, 147, 73, 291, 145, 289, 287, 143, 285, 71, 141, 281, 35, 279, 139, 69, 275, 137, 273, 17, 271, 135, 269, 267, 133, 265, 33, 263, 131, 261, 130, 259, 129, 257, 1];\r\n return BlurFilter;\r\n}());\r\nexport { BlurFilter };\r\n//# sourceMappingURL=Filters.js.map"}
{"map":"{\"version\":3,\"file\":\"Transform.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/Transform.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,eAAe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LD;QADC,iBAAiB;+CACmB;IAMrC;QADC,iBAAiB;4CACA;IAqBlB;QADC,iBAAiB;4CACmB;IAKrC;QADC,iBAAiB;4CACuB;IAKzC;QADC,kBAAkB;+CACN;IAgJd,gBAAC;CAAA,AA9LD,CAAuC,eAAe,GA8LrD;eA9LoB,SAAS\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent, Vector2D, Matrix, decorators } from \"scilla\";\r\nimport Renderer from \"../renderer/Renderer\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector, dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nexport var MATRIX_ORDER;\r\n(function (MATRIX_ORDER) {\r\n MATRIX_ORDER[MATRIX_ORDER[\"SCALE_ROTATE\"] = 0] = \"SCALE_ROTATE\";\r\n MATRIX_ORDER[MATRIX_ORDER[\"ROTATE_SCALE\"] = 1] = \"ROTATE_SCALE\";\r\n})(MATRIX_ORDER || (MATRIX_ORDER = {}));\r\nvar Transform = (function (_super) {\r\n tslib_1.__extends(Transform, _super);\r\n function Transform() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.onVector2DModify = function (value, key, oldValue) {\r\n _this.makeDirty(value, key, oldValue);\r\n };\r\n _this.position = new Vector2D(0);\r\n _this.alpha = 1;\r\n _this._width = NaN;\r\n _this._height = NaN;\r\n _this.scale = new Vector2D(1, 1);\r\n _this.pivot = new Vector2D(0.5, 0.5);\r\n _this.rotation = 0;\r\n _this.order = MATRIX_ORDER.SCALE_ROTATE;\r\n _this._localMatrix = Matrix.create();\r\n _this._globalMatrix = Matrix.create();\r\n _this._globalPivotMatrix = Matrix.create();\r\n return _this;\r\n }\r\n Object.defineProperty(Transform.prototype, \"renderAlpha\", {\r\n get: function () {\r\n return this._renderAlpha;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Transform.prototype, \"width\", {\r\n get: function () {\r\n var renderer = this.entity.getComponent(Renderer);\r\n return renderer ? renderer.bounds.width : (isNaN(this._width) ? 0 : this._width);\r\n },\r\n set: function (value) {\r\n if (this._width != value) {\r\n this._width = value;\r\n this.makeDirty(value, 'width');\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Transform.prototype, \"explicitWidth\", {\r\n get: function () {\r\n return this._width;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Transform.prototype, \"height\", {\r\n get: function () {\r\n var renderer = this.entity.getComponent(Renderer);\r\n return renderer ? renderer.bounds.height : (isNaN(this._height) ? 0 : this._height);\r\n },\r\n set: function (value) {\r\n if (this._height != value) {\r\n this._height = value;\r\n this.makeDirty(value, 'height');\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Transform.prototype, \"explicitHeight\", {\r\n get: function () {\r\n return this._height;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Transform.prototype.makeDirty = function (value, key, oldValue) {\r\n var e_1, _a;\r\n this.dirty = true;\r\n switch (key) {\r\n case 'width':\r\n case 'height':\r\n var renderers = this.entity.getComponents(Renderer);\r\n try {\r\n for (var renderers_1 = tslib_1.__values(renderers), renderers_1_1 = renderers_1.next(); !renderers_1_1.done; renderers_1_1 = renderers_1.next()) {\r\n var renderer = renderers_1_1.value;\r\n renderer.makeDirty();\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (renderers_1_1 && !renderers_1_1.done && (_a = renderers_1.return)) _a.call(renderers_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n break;\r\n }\r\n };\r\n Transform.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n this.makeDirty(value, key, oldValue);\r\n switch (key) {\r\n case 'position':\r\n case 'scale':\r\n value.onChange = this.onVector2DModify;\r\n break;\r\n }\r\n };\r\n Transform.prototype.updateLocalMatrix = function () {\r\n var _a = this, _b = _a.position, x = _b.x, y = _b.y, _c = _a.scale, sx = _c.x, sy = _c.y, rotation = _a.rotation;\r\n var matrix = this._localMatrix;\r\n matrix.identity();\r\n if (this.order = MATRIX_ORDER.ROTATE_SCALE) {\r\n matrix.scale(sx, sy);\r\n matrix.rotate(rotation * Math.PI / 180);\r\n }\r\n else {\r\n matrix.rotate(rotation * Math.PI / 180);\r\n matrix.scale(sx, sy);\r\n }\r\n matrix.translate(x, y);\r\n };\r\n Transform.prototype.updateGlobalMatrix = function () {\r\n var _a = this, entity = _a.entity, _globalMatrix = _a._globalMatrix, _localMatrix = _a._localMatrix, _globalPivotMatrix = _a._globalPivotMatrix, _b = _a.pivot, px = _b.x, py = _b.y, width = _a.width, height = _a.height;\r\n _globalMatrix.copyFrom(_localMatrix);\r\n if (entity.parent) {\r\n var parentTransform = entity.parent.getComponent(Transform);\r\n if (parentTransform) {\r\n this._renderAlpha = parentTransform._renderAlpha * this.alpha;\r\n _globalMatrix.concat(parentTransform.getMatrix(true));\r\n }\r\n }\r\n else {\r\n this._renderAlpha = this.alpha;\r\n }\r\n _globalPivotMatrix.copyFrom(_globalMatrix);\r\n _globalPivotMatrix.translate(-(px - 0.5) * width, -(py - 0.5) * height);\r\n };\r\n Transform.prototype.getMatrix = function (withPivot) {\r\n if (withPivot === void 0) { withPivot = false; }\r\n return withPivot ? this._globalPivotMatrix : this._globalMatrix;\r\n };\r\n Transform.prototype.onUpdate = function (t) {\r\n if (this.dirty) {\r\n this.updateLocalMatrix();\r\n this.dirty = false;\r\n }\r\n this.updateGlobalMatrix();\r\n _super.prototype.onUpdate.call(this, t);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Transform.prototype, \"position\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Transform.prototype, \"alpha\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Transform.prototype, \"scale\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Transform.prototype, \"pivot\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], Transform.prototype, \"rotation\", void 0);\r\n return Transform;\r\n}(ScillaComponent));\r\nexport default Transform;\r\n//# sourceMappingURL=Transform.js.map"}
{"map":"{\"version\":3,\"file\":\"CircleRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/CircleRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAE3B,IAAA,kDAAkB,CAAe;AAKxC;IAA4C,0CAAe;IAA3D;QAAA,qEAsDC;QAjDA,YAAM,GAAG,EAAE,CAAC;QAMZ,gBAAU,GAAW,CAAC,CAAC;QAMvB,cAAQ,GAAW,GAAG,CAAC;QAMvB,kBAAY,GAAY,IAAI,CAAC;;IA+B9B,CAAC;IA7BU,sCAAa,GAAvB;QACQ,IAAA,oBAAM,CAAS;QACtB,OAAO,EAAC,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,EAAC,CAAC;IAChD,CAAC;IAKS,6BAAI,GAAd;QACO,IAAA,SAAqG,EAApG,oBAAO,EAAE,cAAuB,EAAd,gBAAK,EAAE,kBAAM,EAAG,0BAAU,EAAE,sBAAQ,EAAE,8BAAY,EAAE,oBAAO,EAAE,gCAAqB,CAAC;QAC5G,IAAI,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QAEzC,IAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;QAC3C,IAAM,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;QAE5B,IAAG,UAAU,IAAI,CAAC,IAAI,QAAQ,IAAI,GAAG,EAAC;YACrC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;SAC9C;aAAI;YACJ,IAAG,YAAY,EAAC;gBACf,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;aACzB;YACD,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,EAAE,QAAQ,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC;YACpF,IAAG,YAAY,EAAC;gBACf,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;aACzB;SACD;QAED,iBAAM,IAAI,WAAE,CAAC;IACd,CAAC;IAhDD;QADC,kBAAkB;kDACP;IAMZ;QADC,kBAAkB;sDACI;IAMvB;QADC,kBAAkB;oDACI;IAMvB;QADC,kBAAkB;wDACU;IA+B9B,qBAAC;CAAA,AAtDD,CAA4C,eAAe,GAsD1D;eAtDoB,cAAc\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nimport { decorators } from \"scilla\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector;\r\nvar CircleRenderer = (function (_super) {\r\n tslib_1.__extends(CircleRenderer, _super);\r\n function CircleRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.radius = 50;\r\n _this.startAngle = 0;\r\n _this.endAngle = 360;\r\n _this.backToCenter = true;\r\n return _this;\r\n }\r\n CircleRenderer.prototype.getRenderSize = function () {\r\n var radius = this.radius;\r\n return { width: radius * 2, height: radius * 2 };\r\n };\r\n CircleRenderer.prototype.draw = function () {\r\n var _a = this, context = _a.context, _b = _a.bounds, width = _b.width, height = _b.height, startAngle = _a.startAngle, endAngle = _a.endAngle, backToCenter = _a.backToCenter, _margin = _a._margin, _useCacheMode = _a._useCacheMode;\r\n var offset = _useCacheMode ? _margin : 0;\r\n var radius = Math.min(width, height) / 2;\r\n var pos = offset + radius;\r\n if (startAngle == 0 && endAngle == 360) {\r\n context.arc(pos, pos, radius, 0, 2 * Math.PI);\r\n }\r\n else {\r\n if (backToCenter) {\r\n context.moveTo(pos, pos);\r\n }\r\n context.arc(pos, pos, radius, startAngle * Math.PI / 180, endAngle * Math.PI / 180);\r\n if (backToCenter) {\r\n context.lineTo(pos, pos);\r\n }\r\n }\r\n _super.prototype.draw.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"radius\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"startAngle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"endAngle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"backToCenter\", void 0);\r\n return CircleRenderer;\r\n}(GraphicRenderer));\r\nexport default CircleRenderer;\r\n//# sourceMappingURL=CircleRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"utils.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/utils.ts\"],\"names\":[],\"mappings\":\"AAMA,MAAM,UAAU,UAAU,CAAC,MAAW,EAAE,IAAU,EAAE,QAAmB,EAAE,YAA4B,EAAE,UAA0B;IAAxD,6BAAA,EAAA,mBAA4B;IAAE,2BAAA,EAAA,iBAA0B;IAChI,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE;QACrB,OAAO,KAAK,CAAC;KACb;IAED,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE;QACrB,IAAI,KAAK,GAAQ,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3B,IAAI,CAAC,CAAC,YAAY,IAAI,OAAO,KAAK,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,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CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;KACxC;IAED,OAAO,MAAM,CAAC;AACf,CAAC;AAED,IAAM,KAAK,GAAkB;IAC5B,GAAG;IACH,IAAI;IACJ,KAAK;IACL,MAAM;IACN,OAAO;IACP,QAAQ;IACR,SAAS;IACT,UAAU;IACV,WAAW;IACX,YAAY;CACZ,CAAC;AAEF,MAAM,UAAU,UAAU,CAAC,KAAa,EAAE,KAAa;IACtD,IAAI,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;IAChD,IAAI,KAAK,GAAG,CAAC,EAAE;QACd,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;KACxB;IACD,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AAC7B,CAAC\"}","code":"export function injectProp(target, data, callback, ignoreMethod, ignoreNull) {\r\n if (ignoreMethod === void 0) { ignoreMethod = true; }\r\n if (ignoreNull === void 0) { ignoreNull = true; }\r\n if (!target || !data) {\r\n return false;\r\n }\r\n var result = true;\r\n for (var key in data) {\r\n var value = data[key];\r\n if ((!ignoreMethod || typeof value != 'function') && (!ignoreNull || value != null)) {\r\n if (callback) {\r\n callback(target, key, value);\r\n }\r\n else {\r\n target[key] = value;\r\n }\r\n }\r\n }\r\n return result;\r\n}\r\nexport function objectStringify(obj) {\r\n if (!obj) {\r\n return '';\r\n }\r\n var arr = [];\r\n for (var key in obj) {\r\n arr.push(key + '=' + obj[key]);\r\n }\r\n return arr.join('&');\r\n}\r\nexport function waitPromise(duration) {\r\n return new Promise(function (resolve) {\r\n setTimeout(resolve, duration);\r\n });\r\n}\r\nexport function format(formatStr) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n return formatApply(formatStr, params);\r\n}\r\nexport function formatApply(formatStr, params) {\r\n var result = formatStr;\r\n for (var i = 0, len = params.length; i < len; i++) {\r\n var reg = new RegExp(\"\\\\{\" + i + \"\\\\}\", 'g');\r\n result = result.replace(reg, params[i]);\r\n }\r\n return result;\r\n}\r\nvar zeros = [\r\n \"0\",\r\n \"00\",\r\n \"000\",\r\n \"0000\",\r\n \"00000\",\r\n \"000000\",\r\n \"0000000\",\r\n \"00000000\",\r\n \"000000000\",\r\n \"0000000000\"\r\n];\r\nexport function supplement(value, count) {\r\n var index = count - value.toString().length - 1;\r\n if (index < 0) {\r\n return value.toString();\r\n }\r\n return zeros[index] + value;\r\n}\r\n//# sourceMappingURL=utils.js.map"}
{"map":"{\"version\":3,\"file\":\"LocalStorage.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/LocalStorage.ts\"],\"names\":[],\"mappings\":\"AAIA;IAGC,sBAAY,EAAU;QACrB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,CAAC;IAED,8BAAO,GAAP,UAAQ,GAAW,EAAE,MAAqB;QAArB,uBAAA,EAAA,aAAqB;QACzC,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;IAC7E,CAAC;IAED,8BAAO,GAAP,UAAQ,GAAW,EAAE,MAAqB;QAArB,uBAAA,EAAA,aAAqB;QACzC,OAAO,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;IACxD,CAAC;IAED,8BAAO,GAAP,UAAQ,GAAW,EAAE,KAAa,EAAE,MAAqB;QAArB,uBAAA,EAAA,aAAqB;QACxD,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC;IACxD,CAAC;IAED,iCAAU,GAAV,UAAW,GAAW,EAAE,UAAsB,EAAE,MAAqB;QAA7C,2BAAA,EAAA,iBAAsB;QAAE,uBAAA,EAAA,aAAqB;QACpE,IAAI,MAAW,CAAC;QAChB,IAAI;YACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;SAC/C;QAAC,OAAO,CAAC,EAAE;SAEX;QACD,IAAI,CAAC,MAAM,EAAE;YACZ,MAAM,GAAG,UAAU,CAAC;SACpB;QACD,OAAO,MAAM,CAAC;IACf,CAAC;IAED,iCAAU,GAAV,UAAW,GAAW,EAAE,OAAY,EAAE,MAAqB;QAArB,uBAAA,EAAA,aAAqB;QAC1D,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;IACF,mBAAC;AAAD,CAAC,AAnCD,IAmCC\"}","code":"var LocalStorage = (function () {\r\n function LocalStorage(ID) {\r\n this.ID = ID;\r\n }\r\n LocalStorage.prototype.getName = function (key, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n return (prefix || !this.ID || this.ID == '' ? prefix : this.ID) + '_' + key;\r\n };\r\n LocalStorage.prototype.getItem = function (key, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n return localStorage.getItem(this.getName(key, prefix));\r\n };\r\n LocalStorage.prototype.setItem = function (key, value, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n localStorage.setItem(this.getName(key, prefix), value);\r\n };\r\n LocalStorage.prototype.getItemObj = function (key, defaultObj, prefix) {\r\n if (defaultObj === void 0) { defaultObj = null; }\r\n if (prefix === void 0) { prefix = null; }\r\n var result;\r\n try {\r\n result = JSON.parse(this.getItem(key, prefix));\r\n }\r\n catch (e) {\r\n }\r\n if (!result) {\r\n result = defaultObj;\r\n }\r\n return result;\r\n };\r\n LocalStorage.prototype.setItemObj = function (key, itemObj, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n this.setItem(key, JSON.stringify(itemObj), prefix);\r\n };\r\n return LocalStorage;\r\n}());\r\nexport default LocalStorage;\r\n//# sourceMappingURL=LocalStorage.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/editor/index.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,YAAY,EAAE,UAAU,GAAG,MAAM,eAAe,CAAC;AACzD,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,SAAS,CAAC;AAErD,cAAc,eAAe,CAAA;AAE7B,IAAI,YAAmB,CAAC;AACxB,IAAI,QAAQ,CAAC;AAOb,MAAM,UAAgB,WAAW,CAAC,IAAI,EAAE,QAAS;;;;;wBAClC,WAAM,SAAS,CAAC,YAAU,IAAI,WAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC,EAAA;;oBAAhE,KAAK,GAAG,SAAwD;oBAEtE,QAAQ,GAAG,cAAc,EAAE,CAAC;oBAE5B,WAAM,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAA;;oBAA7C,SAA6C,CAAC;oBAE9C,IAAG,YAAY,EAAC;wBACf,YAAY,CAAC,YAAY,CAAC,CAAC;qBAC3B;oBAED,YAAY,GAAG,KAAK,CAAC;oBACrB,UAAU,CAAC,KAAK,CAAC,CAAC;oBAElB,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;;;;;CACtC;AAMD,MAAM,UAAU,UAAU,CAAC,KAAK;IAC/B,KAAK,EAAE,CAAC;IACR,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;IAC7B,KAAK,EAAE,CAAC;AACT,CAAC;AAMD,MAAM,UAAU,YAAY,CAAC,KAAK;IACjC,KAAK,EAAE,CAAC;IACR,YAAY,CAAC,KAAK,CAAC,CAAC;IACpB,UAAU,CAAC,QAAQ,CAAC,CAAC;AACtB,CAAC;AAUD,SAAe,SAAS,CAAC,GAAG,EAAE,IAAK,EAAE,KAAa,EAAE,MAAO;IAAtB,sBAAA,EAAA,aAAa;;;;;wBAC7B,WAAM,SAAS,CAAC,GAAG,CAAC,EAAA;;oBAAlC,WAAW,GAAG,SAAoB;oBAElC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;oBAC1B,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;oBAChC,WAAO,KAAK,EAAC;;;;CACb;AAUD,MAAM,UAAgB,UAAU,CAAC,GAAG,EAAE,IAAK,EAAE,KAAY,EAAE,MAAO;IAArB,sBAAA,EAAA,YAAY;;;;;wBAC7C,WAAM,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,EAAA;;oBAAxC,IAAI,GAAG,SAAiC;oBAC5C,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;oBAC1B,WAAO,IAAI,EAAC;;;;CACZ;AAED,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { destroyScene, setupScene, } from \"./interpreter\";\r\nimport { addLoader, cacheRes, destroyRes, getAllResUuids, loadJson5 } from \"../assets-manager\";\r\nimport { getRoot, pause, Scene, start } from \"../core\";\r\nexport * from './interpreter';\r\nvar currentScene;\r\nvar resUUIDs;\r\nexport function launchScene(name, progress) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var scene;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadScene(\"scenes/\" + name + \".scene\", 'scene_' + name)];\r\n case 1:\r\n scene = _a.sent();\r\n resUUIDs = getAllResUuids();\r\n return [4, scene.loadResGroup('preload', progress)];\r\n case 2:\r\n _a.sent();\r\n if (currentScene) {\r\n unmountScene(currentScene);\r\n }\r\n currentScene = scene;\r\n mountScene(scene);\r\n scene.loadResGroup('delay', progress);\r\n return [2];\r\n }\r\n });\r\n });\r\n}\r\nexport function mountScene(scene) {\r\n pause();\r\n setupScene(scene, getRoot());\r\n start();\r\n}\r\nexport function unmountScene(scene) {\r\n pause();\r\n destroyScene(scene);\r\n destroyRes(resUUIDs);\r\n}\r\nfunction loadScene(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = false; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var sceneConfig, scene;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadJson5(url)];\r\n case 1:\r\n sceneConfig = _a.sent();\r\n scene = new Scene();\r\n scene.initByConfig(sceneConfig);\r\n return [2, scene];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadPrefab(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var data;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadJson5(url, uuid, false)];\r\n case 1:\r\n data = _a.sent();\r\n cacheRes(data, url, uuid);\r\n return [2, data];\r\n }\r\n });\r\n });\r\n}\r\naddLoader('.pfb', loadPrefab);\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"TouchZoom.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/animation/TouchZoom.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,EAAS,QAAQ,GAAE,MAAM,QAAQ,CAAC;AACjF,OAAO,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAE1C;IAAuC,qCAAiB;IAAxD;QAAA,qEA+CC;QA9CA,iBAAW,GAAa,cAAc,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AAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACxB;IACF,CAAC;IAED,oCAAgB,GAAhB,UAAiB,CAAC;QACjB,iBAAM,gBAAgB,YAAC,CAAC,CAAC,CAAC;QAE1B,IAAI,IAAI,CAAC,WAAW,EAAE;YACrB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;YACzB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,KAAK,CAAC;IACd,CAAC;IACF,gBAAC;AAAD,CAAC,AA/CD,CAAuC,iBAAiB,GA+CvD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { createTween, createVector2D, ease, Ease, Vector2D, } from \"scilla\";\r\nimport { InteractComponent } from \"../base\";\r\nvar TouchZoom = (function (_super) {\r\n tslib_1.__extends(TouchZoom, _super);\r\n function TouchZoom() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.scaleOffset = createVector2D(0.1, 0.1);\r\n _this.duration = 200;\r\n _this.easeName = Ease.backOut;\r\n return _this;\r\n }\r\n TouchZoom.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n if (!this._zoomIn) {\r\n var _a = this, scaleOffset = _a.scaleOffset, duration = _a.duration, transform = _a.transform;\r\n var easeFunc = ease[this.easeName];\r\n var scaleFrom = transform.scale.clone();\r\n var scaleTo = transform.scale.clone().add(scaleOffset);\r\n this._zoomIn = createTween(transform, false, { autoPlay: false, clazz: Vector2D, fields: ['x', 'y'] })\r\n .to({ scale: scaleTo }, duration, easeFunc);\r\n this._zoomOut = createTween(transform, false, { autoPlay: false, clazz: Vector2D, fields: ['x', 'y'] })\r\n .to({ scale: scaleFrom }, duration, easeFunc);\r\n }\r\n };\r\n TouchZoom.prototype.onTouchBegin = function (e) {\r\n _super.prototype.onTouchOver.call(this, e);\r\n if (this.interactable) {\r\n this._touchBegin = true;\r\n this._zoomIn.play(true);\r\n }\r\n };\r\n TouchZoom.prototype.onGlobalTouchEnd = function (e) {\r\n _super.prototype.onGlobalTouchEnd.call(this, e);\r\n if (this._touchBegin) {\r\n this._touchBegin = false;\r\n this._zoomOut.play(true);\r\n }\r\n return false;\r\n };\r\n return TouchZoom;\r\n}(InteractComponent));\r\nexport default TouchZoom;\r\n//# sourceMappingURL=TouchZoom.js.map"}
{"map":"{\"version\":3,\"file\":\"ObjectPool.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/ObjectPool.ts\"],\"names\":[],\"mappings\":\";AAMA,IAAI,GAAG,GAAG,EAAE,CAAC;AAEb,SAAS,QAAQ,CAAC,IAAI;IACrB,IAAI,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;IACtB,IAAG,CAAC,KAAK,EAAC;QACT,MAAM,IAAI,KAAK,CAAC,QAAQ,GAAG,IAAI,GAAG,kBAAkB,CAAC,CAAC;KACtD;IAED,OAAO,KAAK,CAAC;AACd,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ;IAC/C,GAAG,CAAC,IAAI,CAAC,GAAG,EAAC,IAAI,MAAA,EAAE,OAAO,SAAA,EAAE,QAAQ,UAAA,EAAE,IAAI,EAAE,EAAE,EAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,IAAI;IAAE,gBAAS;SAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;QAAT,+BAAS;;IAClC,IAAI,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEtB,IAAA,uBAAO,EAAE,yBAAQ,EAAE,iBAAI,CAAU;IAEtC,IAAI,QAAQ,CAAC;IACb,IAAG,IAAI,CAAC,MAAM,IAAI,CAAC,EAAC;QACnB,QAAQ,GAAG,OAAO,EAAE,CAAC;KACrB;SAAI;QACJ,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;KACtB;IAED,QAAQ,iCAAC,QAAQ,GAAK,MAAM,GAAE;IAE9B,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,IAAI,EAAE,QAAQ;IACrC,IAAI,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC3B,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nvar all = {};\r\nfunction getGroup(name) {\r\n var group = all[name];\r\n if (!group) {\r\n throw new Error('group ' + name + ' not registered.');\r\n }\r\n return group;\r\n}\r\nexport function register(name, newFunc, initFunc) {\r\n all[name] = { name: name, newFunc: newFunc, initFunc: initFunc, pool: [] };\r\n}\r\nexport function get(name) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n var group = getGroup(name);\r\n var newFunc = group.newFunc, initFunc = group.initFunc, pool = group.pool;\r\n var instance;\r\n if (pool.length == 0) {\r\n instance = newFunc();\r\n }\r\n else {\r\n instance = pool.pop();\r\n }\r\n initFunc.apply(void 0, tslib_1.__spread([instance], params));\r\n return instance;\r\n}\r\nexport function recycle(name, instance) {\r\n var group = getGroup(name);\r\n group.pool.push(instance);\r\n}\r\n//# sourceMappingURL=ObjectPool.js.map"}
{"map":"{\"version\":3,\"file\":\"TouchInterrupt.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/TouchInterrupt.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD;IAA4C,0CAAiB;IAA7D;QAAA,qEAEC;QADA,oBAAc,GAAY,IAAI,CAAC;;IAChC,CAAC;IAAD,qBAAC;AAAD,CAAC,AAFD,CAA4C,iBAAiB,GAE5D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport InteractComponent from \"./InteractComponent\";\r\nvar TouchInterrupt = (function (_super) {\r\n tslib_1.__extends(TouchInterrupt, _super);\r\n function TouchInterrupt() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.touchInterrupt = true;\r\n return _this;\r\n }\r\n return TouchInterrupt;\r\n}(InteractComponent));\r\nexport default TouchInterrupt;\r\n//# sourceMappingURL=TouchInterrupt.js.map"}
{"map":"{\"version\":3,\"file\":\"HashObject.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/HashObject.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAI,aAAa,GAAG,CAAC,CAAC;AAEtB,SAAS,WAAW;IACnB,OAAO,EAAE,aAAa,CAAC;AACxB,CAAC;AAKD;IAGC;QACC,IAAI,CAAC,SAAS,GAAG,WAAW,EAAE,CAAC;IAChC,CAAC;IAED,sBAAI,gCAAQ;aAAZ;YACC,OAAO,IAAI,CAAC,SAAS,CAAC;QACvB,CAAC;;;OAAA;IACF,iBAAC;AAAD,CAAC,AAVD,IAUC\"}","code":"var HASH_CODE_INK = 0;\r\nfunction getHashCode() {\r\n return ++HASH_CODE_INK;\r\n}\r\nvar HashObject = (function () {\r\n function HashObject() {\r\n this._hashCode = getHashCode();\r\n }\r\n Object.defineProperty(HashObject.prototype, \"hashCode\", {\r\n get: function () {\r\n return this._hashCode;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return HashObject;\r\n}());\r\nexport default HashObject;\r\n//# sourceMappingURL=HashObject.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/assets-manager/index.ts\"],\"names\":[],\"mappings\":\";AAOA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAiB,iBAAiB,EAAE,YAAY,EAAC,MAAM,wBAAwB,CAAA;AACtF,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAA;AAEnC,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAE9C,IAAI,QAAQ,GAAG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M,CAAC,CAAC,CAAC,CAAC;4BACX,CAAC,CAAC;4BACF,GAAG,CAAC,GAAG,GAAG,OAAO,CAAC;wBACnB,CAAC,CAAC,EAAA;;;;CACF\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { createTexture } from '../core/Texture';\r\nimport { getFrameAnimation, putFrameAnim } from '../core/FrameAnimation';\r\nimport { Sheet } from '../core/Sheet';\r\nimport { EngineConfig } from \"../engine-config\";\r\nvar resCache = {};\r\nvar resPath = '';\r\nvar resLoaderType = {\r\n '.json': loadJson,\r\n '.json5': loadJson5,\r\n '.txt': loadTxt,\r\n '.png': loadTexture,\r\n '.jpg': loadTexture,\r\n '.svg': loadTexture,\r\n '.bimg': loadTextureFromBlob,\r\n '.sht': loadSheet,\r\n '.sht-disperse': loadSheetDisperse,\r\n '.fnt': loadFont,\r\n '.anim': loadAnim,\r\n};\r\nexport function setResPath(path) {\r\n resPath = path;\r\n}\r\nexport function loadResItems(items, progress) {\r\n var total = items.length;\r\n var count = 0;\r\n return Promise.all(items.map(function (item) {\r\n var uuid, url, config, ext;\r\n if (typeof item === 'string') {\r\n url = item;\r\n }\r\n else {\r\n url = item.url;\r\n }\r\n if (!url) {\r\n return Promise.resolve();\r\n }\r\n if (typeof item === 'string') {\r\n uuid = getUUIDFromUrl(url);\r\n }\r\n else {\r\n uuid = item.uuid || getUUIDFromUrl(url);\r\n ext = item.ext;\r\n config = item.config;\r\n }\r\n var loader = getLoader(ext, url);\r\n return loader(url, uuid, true, config).then(function (res) {\r\n count++;\r\n progress && progress(count / total);\r\n return res;\r\n });\r\n }));\r\n}\r\nexport function loadAny(url, uuid, cache, config, options, type) {\r\n if (cache === void 0) { cache = true; }\r\n if (options === void 0) { options = {}; }\r\n if (type === void 0) { type = 'arraybuffer'; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var response, result;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, fetch(resolveUrl(url), options)];\r\n case 1:\r\n response = _a.sent();\r\n switch (type) {\r\n case 'json':\r\n result = response.json();\r\n break;\r\n case 'text':\r\n result = response.text();\r\n break;\r\n case 'arraybuffer':\r\n result = response.arrayBuffer();\r\n break;\r\n case 'blob':\r\n result = response.blob();\r\n break;\r\n }\r\n return [4, result];\r\n case 2: return [2, _a.sent()];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadTxt(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n var p = loadAny(url, uuid, cache, config, undefined, 'text');\r\n if (cache) {\r\n p.then(function (data) {\r\n cacheRes(data, url, uuid);\r\n return data;\r\n });\r\n }\r\n return p;\r\n}\r\nexport function loadJson(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n var p = loadAny(url, uuid, cache, config, undefined, 'json');\r\n if (cache) {\r\n p.then(function (data) {\r\n cacheRes(data, url, uuid);\r\n return data;\r\n });\r\n }\r\n return p;\r\n}\r\nexport function loadJson5(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var txt, jsonData;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadTxt(url, uuid)];\r\n case 1:\r\n txt = _a.sent();\r\n jsonData = window['eval'](\"(\" + txt + \")\");\r\n cacheRes(jsonData, url, uuid);\r\n return [2, jsonData];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadSheet(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n var pngFile = url.substring(0, url.lastIndexOf('.')) + '.png';\r\n return Promise.all([\r\n loadJson(url, null, false),\r\n loadImage(pngFile, null, false),\r\n ]).then(function (result) {\r\n var e_1, _a;\r\n var data = result[0];\r\n var img = result[1];\r\n var sheet = new Sheet(img, data.frames);\r\n sheet.generateAll();\r\n if (cache) {\r\n cacheRes(sheet, url, uuid);\r\n if (config) {\r\n try {\r\n for (var _b = tslib_1.__values(config.textures), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var textureConfig = _c.value;\r\n var name_1 = textureConfig.name, uuid_1 = textureConfig.uuid;\r\n var texture = sheet.getTexture(name_1);\r\n cacheRes(texture, name_1, uuid_1);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n }\r\n else {\r\n var textures = sheet.getAllTextures();\r\n for (var key in textures) {\r\n cacheRes(textures[key], key, key);\r\n }\r\n }\r\n }\r\n return sheet;\r\n });\r\n}\r\nexport function loadSheetDisperse(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var e_2, _a, _b, _c, _d, name_2, uuid_2, subUrl, e_2_1;\r\n return tslib_1.__generator(this, function (_e) {\r\n switch (_e.label) {\r\n case 0:\r\n _e.trys.push([0, 5, 6, 7]);\r\n _b = tslib_1.__values(config.textures), _c = _b.next();\r\n _e.label = 1;\r\n case 1:\r\n if (!!_c.done) return [3, 4];\r\n _d = _c.value, name_2 = _d.name, uuid_2 = _d.uuid;\r\n subUrl = url.replace('-disperse', '') + '/' + name_2 + '.png';\r\n return [4, loadTexture(subUrl, uuid_2)];\r\n case 2:\r\n _e.sent();\r\n _e.label = 3;\r\n case 3:\r\n _c = _b.next();\r\n return [3, 1];\r\n case 4: return [3, 7];\r\n case 5:\r\n e_2_1 = _e.sent();\r\n e_2 = { error: e_2_1 };\r\n return [3, 7];\r\n case 6:\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n return [7];\r\n case 7: return [2, null];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadFont(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return loadSheet(url, null, false).then(function (sheet) {\r\n if (cache) {\r\n cacheRes(sheet, url, uuid);\r\n }\r\n return sheet;\r\n });\r\n}\r\nfunction findAnimConfig(animations, name) {\r\n var result;\r\n animations.some(function (item) {\r\n if (item.name === name) {\r\n result = item;\r\n return true;\r\n }\r\n });\r\n return result;\r\n}\r\nexport function loadAnim(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n var pngFile = url.substring(0, url.lastIndexOf('.')) + '.png';\r\n return Promise.all([\r\n loadJson(url, null, false),\r\n loadImage(pngFile, null, false),\r\n ]).then(function (result) {\r\n var data = result[0];\r\n var img = result[1];\r\n putFrameAnim(img, data);\r\n var animations = [];\r\n for (var name_3 in data.mc) {\r\n var animation = getFrameAnimation(name_3);\r\n if (cache) {\r\n var uuid_3 = name_3;\r\n if (config) {\r\n var cfg = findAnimConfig(config.animations, name_3);\r\n uuid_3 = cfg.uuid;\r\n }\r\n cacheRes(animation, name_3, uuid_3);\r\n }\r\n animations.push(animation);\r\n }\r\n return animations;\r\n });\r\n}\r\nexport function loadImage(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return new Promise(function (resolve, reject) {\r\n var img = new Image();\r\n if (EngineConfig.imgCrossOrigin) {\r\n img.setAttribute('crossOrigin', 'anonymous');\r\n }\r\n img.onload = function (e) {\r\n resolve(img);\r\n };\r\n img.onerror = function (e) {\r\n reject(e);\r\n };\r\n img.src = resolveUrl(url);\r\n });\r\n}\r\nexport function loadImageFromBlob(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var imgBlob, e_3;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 3, , 4]);\r\n return [4, loadAny(url, uuid, false, config, undefined, 'blob')];\r\n case 1:\r\n imgBlob = _a.sent();\r\n return [4, blobToImage(imgBlob)];\r\n case 2: return [2, _a.sent()];\r\n case 3:\r\n e_3 = _a.sent();\r\n console.log(e_3);\r\n return [3, 4];\r\n case 4: return [2];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadTexture(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var img, texture;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadImage(url, uuid, false)];\r\n case 1:\r\n img = _a.sent();\r\n texture = createTexture(img);\r\n if (cache) {\r\n cacheRes(texture, url, uuid);\r\n }\r\n return [2, texture];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadTextureFromBlob(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var img, texture;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadImageFromBlob(url, uuid, false)];\r\n case 1:\r\n img = _a.sent();\r\n texture = createTexture(img);\r\n if (cache) {\r\n cacheRes(texture, url, uuid);\r\n }\r\n return [2, texture];\r\n }\r\n });\r\n });\r\n}\r\nfunction resolveUrl(url) {\r\n if (url.indexOf('//') === 0 || url.indexOf('http:') === 0 || url.indexOf('https:') === 0) {\r\n return url;\r\n }\r\n return resPath + url;\r\n}\r\nfunction getLoader(ext, url) {\r\n ext = ext || url.substr(url.lastIndexOf('.'));\r\n return resLoaderType[ext] || loadAny;\r\n}\r\nfunction getUUIDFromUrl(url) {\r\n return url.substring(url.lastIndexOf('/') + 1, url.lastIndexOf('.'));\r\n}\r\nexport function cacheRes(res, url, uuid) {\r\n uuid = uuid || getUUIDFromUrl(url);\r\n resCache[uuid] = res;\r\n}\r\nexport function addLoader(ext, loader) {\r\n resLoaderType[ext] = loader;\r\n}\r\nexport function getRes(uuid) {\r\n return resCache[uuid];\r\n}\r\nexport function destroyRes(uuidOrUuids) {\r\n if (Array.isArray(uuidOrUuids)) {\r\n while (uuidOrUuids.length > 0) {\r\n delete resCache[uuidOrUuids.pop()];\r\n }\r\n }\r\n else {\r\n delete resCache[uuidOrUuids];\r\n }\r\n}\r\nexport function destroyAllRes() {\r\n for (var key in resCache) {\r\n destroyRes(key);\r\n }\r\n}\r\nexport function getAllResUuids() {\r\n return Object.keys(resCache);\r\n}\r\nfunction fileOrBlobToDataURL(obj) {\r\n return new Promise(function (resolve, reject) {\r\n var a = new FileReader();\r\n a.readAsDataURL(obj);\r\n a.onload = function (e) {\r\n resolve(e.target['result']);\r\n };\r\n a.onerror = function (e) {\r\n reject(e);\r\n };\r\n });\r\n}\r\nfunction blobToImage(blob) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var dataUrl;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, fileOrBlobToDataURL(blob)];\r\n case 1:\r\n dataUrl = _a.sent();\r\n return [2, new Promise(function (resolve, reject) {\r\n var img = new Image();\r\n if (EngineConfig.imgCrossOrigin) {\r\n img.setAttribute('crossOrigin', 'anonymous');\r\n }\r\n img.onload = function () {\r\n resolve(img);\r\n };\r\n img.onerror = function (e) {\r\n reject(e);\r\n };\r\n img.src = dataUrl;\r\n })];\r\n }\r\n });\r\n });\r\n}\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"GraphicRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/GraphicRenderer.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAMlC;IAA6C,2CAAQ;IAArD;QAAA,qEAsGC;QArGA,eAAS,GAAU,SAAS,CAAC;QAC7B,iBAAW,GAAU,SAAS,CAAC;QAC/B,iBAAW,GAAG,CAAC,CAAC;QAGhB,kBAAY,GAAG,KAAK,CAAC;QAErB,iBAAW,GAAG,KAAK,CAAC;;IA8FrB,CAAC;IA5FU,yCAAe,GAAzB;QACC,OAAO,IAAI,CAAC,aAAa,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;IACjD,CAAC;IAKS,uCAAa,GAAvB;QACC,OAAO,EAAC,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AAC;YAChC,OAAO,CAAC,GAAG,EAAE,CAAC;SACd;QAED,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAChB,OAAO;SACP;QAED,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC;QAE1B,IAAA,SAA4E,EAA3E,kBAAM,EAAE,iBAA2D,EAA/C,yBAAqB,EAAE,2BAAgC,CAAC;QAC7E,IAAA,yBAAuD,EAAtD,iBAAa,EAAE,mBAAuC,CAAC;QAE9D,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;QAC/C,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;QAEnD,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IACF,sBAAC;AAAD,CAAC,AAtGD,CAA6C,QAAQ,GAsGpD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Renderer from \"./Renderer\";\r\nvar GraphicRenderer = (function (_super) {\r\n tslib_1.__extends(GraphicRenderer, _super);\r\n function GraphicRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.fillColor = '#42bce4';\r\n _this.borderColor = '#0899d0';\r\n _this.borderWidth = 0;\r\n _this.isUsedToMask = false;\r\n _this.maskVisible = false;\r\n return _this;\r\n }\r\n GraphicRenderer.prototype.getUseCacheMode = function () {\r\n return this._useCacheMode && !this.isUsedToMask;\r\n };\r\n GraphicRenderer.prototype.getRenderSize = function () {\r\n return { width: 0, height: 0 };\r\n };\r\n GraphicRenderer.prototype.beforeDraw = function () {\r\n _super.prototype.beforeDraw.call(this);\r\n this.applyStyle();\r\n this.context.beginPath();\r\n };\r\n GraphicRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n if (this.isUsedToMask) {\r\n this._context.clip();\r\n this.maskVisible && this.fillAndStoke();\r\n }\r\n else {\r\n this.fillAndStoke();\r\n }\r\n };\r\n GraphicRenderer.prototype.applyStyle = function () {\r\n var _a = this, context = _a.context, fillColor = _a.fillColor, borderColor = _a.borderColor, borderWidth = _a.borderWidth;\r\n context.fillStyle = fillColor;\r\n if (borderWidth > 0) {\r\n context.strokeStyle = borderColor;\r\n context.lineWidth = borderWidth;\r\n }\r\n };\r\n GraphicRenderer.prototype.fillAndStoke = function () {\r\n var _a = this, context = _a.context, borderWidth = _a.borderWidth;\r\n context.fill();\r\n if (borderWidth > 0) {\r\n context.stroke();\r\n }\r\n };\r\n GraphicRenderer.prototype.drawClip = function () {\r\n this.isUsedToMask && this.context.save();\r\n };\r\n GraphicRenderer.prototype.afterUpdate = function () {\r\n this.isUsedToMask && this.context.restore();\r\n };\r\n GraphicRenderer.prototype.measureBounds = function () {\r\n if (this.entity.name == 'content') {\r\n console.log();\r\n }\r\n if (!this.dirty) {\r\n return;\r\n }\r\n this._margin = this.borderWidth;\r\n var _a = this, bounds = _a.bounds, _b = _a.transform, tWidth = _b.explicitWidth, tHeight = _b.explicitHeight;\r\n var _c = this.getRenderSize(), sWidth = _c.width, sHeight = _c.height;\r\n bounds.width = isNaN(tWidth) ? sWidth : tWidth;\r\n bounds.height = isNaN(tHeight) ? sHeight : tHeight;\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n return GraphicRenderer;\r\n}(Renderer));\r\nexport default GraphicRenderer;\r\n//# sourceMappingURL=GraphicRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"LaunchOptions.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/LaunchOptions.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EACN,KAAK,GACL,MAAM,QAAQ,CAAA;AAEf,IAAM,OAAO,GAAQ,EAAE,CAAC;AAExB,MAAM,UAAU,MAAM,CAAC,IAAI;IAC1B,KAAK,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AACjC,CAAC;AAED,eAAe,OAAO,CAAC\"}","code":"import { utils, } from 'scilla';\r\nvar options = {};\r\nexport function inject(data) {\r\n utils.injectProp(options, data);\r\n}\r\nexport default options;\r\n//# sourceMappingURL=LaunchOptions.js.map"}
{"map":"{\"version\":3,\"file\":\"Matrix.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Matrix.ts\"],\"names\":[],\"mappings\":\"AAMA,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;AACjB,IAAI,KAAK,GAAG,EAAE,GAAG,CAAC,CAAC;AACnB,IAAI,UAAU,GAAG,EAAE,GAAG,GAAG,CAAC;AAE1B,IAAI,UAAU,GAAG,EAAE,CAAC;AAOpB;IAuCC,gBAAY,CAAK,EAAE,CAAK,EAAE,CAAK,EAAE,CAAK,EAAE,EAAM,EAAE,EAAM;QAA1C,kBAAA,EAAA,KAAK;QAAE,kBAAA,EAAA,KAAK;QAAE,kBAAA,EAAA,KAAK;QAAE,kBAAA,EAAA,KAAK;QAAE,mBAAA,EAAA,MAAM;QAAE,mBAAA,EAAA,MAAM;QACrD,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,CAAC;IAlCM,cAAO,GAAd,UAAe,MAAM;QACpB,IAAI,CAAC,MAAM,EAAE;YACZ,OAAO;SACP;QACD,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IAKM,aAAM,GAAb;QACC,IAAI,MAAM,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC;QAC9B,IAAI,CAAC,MAAM,EAAE;YACZ,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;SACtB;QACD,OAAO,MAAM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,CAAC,CAAC,KAAK,GAAG,IAAI,IAAI,CAAC,CAAC,KAAK,GAAG,EAAE;YAC3E,CAAC,IAAI,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;YACtB,CAAC,IAAI,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;YACtB,CAAC,IAAI,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;YACzC,CAAC,IAAI,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;YACzC,EAAE,IAAI,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;YACxB,EAAE,IAAI,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;SACxB;QAED,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACb,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACb,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACb,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACb,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IAChB,CAAC;IAEF,aAAC;AAAD,CAAC,AA3hBD,IA2hBC\"}","code":"var PI = Math.PI;\r\nvar TwoPI = PI * 2;\r\nvar DEG_TO_RAD = PI / 180;\r\nvar matrixPool = [];\r\nvar Matrix = (function () {\r\n function Matrix(a, b, c, d, tx, ty) {\r\n if (a === void 0) { a = 1; }\r\n if (b === void 0) { b = 0; }\r\n if (c === void 0) { c = 0; }\r\n if (d === void 0) { d = 1; }\r\n if (tx === void 0) { tx = 0; }\r\n if (ty === void 0) { ty = 0; }\r\n this.a = a;\r\n this.b = b;\r\n this.c = c;\r\n this.d = d;\r\n this.tx = tx;\r\n this.ty = ty;\r\n }\r\n Matrix.release = function (matrix) {\r\n if (!matrix) {\r\n return;\r\n }\r\n matrixPool.push(matrix);\r\n };\r\n Matrix.create = function () {\r\n var matrix = matrixPool.pop();\r\n if (!matrix) {\r\n matrix = new Matrix();\r\n }\r\n return matrix;\r\n };\r\n Matrix.prototype.clone = function () {\r\n var m = Matrix.create();\r\n m.setTo(this.a, this.b, this.c, this.d, this.tx, this.ty);\r\n return m;\r\n };\r\n Matrix.prototype.concat = function (other) {\r\n var a = this.a * other.a;\r\n var b = 0.0;\r\n var c = 0.0;\r\n var d = this.d * other.d;\r\n var tx = this.tx * other.a + other.tx;\r\n var ty = this.ty * other.d + other.ty;\r\n if (this.b !== 0.0 || this.c !== 0.0 || other.b !== 0.0 || other.c !== 0.0) {\r\n a += this.b * other.c;\r\n d += this.c * other.b;\r\n b += this.a * other.b + this.b * other.d;\r\n c += this.c * other.a + this.d * other.c;\r\n tx += this.ty * other.c;\r\n ty += this.tx * other.b;\r\n }\r\n this.a = a;\r\n this.b = b;\r\n this.c = c;\r\n this.d = d;\r\n this.tx = tx;\r\n this.ty = ty;\r\n };\r\n Matrix.prototype.copyFrom = function (other) {\r\n this.a = other.a;\r\n this.b = other.b;\r\n this.c = other.c;\r\n this.d = other.d;\r\n this.tx = other.tx;\r\n this.ty = other.ty;\r\n return this;\r\n };\r\n Matrix.prototype.identity = function () {\r\n this.a = this.d = 1;\r\n this.b = this.c = this.tx = this.ty = 0;\r\n };\r\n Matrix.prototype.invert = function () {\r\n this.$invertInto(this);\r\n };\r\n Matrix.prototype.$invertInto = function (target) {\r\n var a = this.a;\r\n var b = this.b;\r\n var c = this.c;\r\n var d = this.d;\r\n var tx = this.tx;\r\n var ty = this.ty;\r\n if (b == 0 && c == 0) {\r\n target.b = target.c = 0;\r\n if (a == 0 || d == 0) {\r\n target.a = target.d = target.tx = target.ty = 0;\r\n }\r\n else {\r\n a = target.a = 1 / a;\r\n d = target.d = 1 / d;\r\n target.tx = -a * tx;\r\n target.ty = -d * ty;\r\n }\r\n return;\r\n }\r\n var determinant = a * d - b * c;\r\n if (determinant == 0) {\r\n target.identity();\r\n return;\r\n }\r\n determinant = 1 / determinant;\r\n var k = target.a = d * determinant;\r\n b = target.b = -b * determinant;\r\n c = target.c = -c * determinant;\r\n d = target.d = a * determinant;\r\n target.tx = -(k * tx + c * ty);\r\n target.ty = -(b * tx + d * ty);\r\n };\r\n Matrix.prototype.rotate = function (radian) {\r\n radian = +radian;\r\n if (radian !== 0) {\r\n var u = Math.cos(radian);\r\n var v = Math.sin(radian);\r\n var _a = this, a = _a.a, b = _a.b, c = _a.c, d = _a.d, tx = _a.tx, ty = _a.ty;\r\n this.a = a * u - b * v;\r\n this.b = a * v + b * u;\r\n this.c = c * u - d * v;\r\n this.d = c * v + d * u;\r\n this.tx = tx * u - ty * v;\r\n this.ty = tx * v + ty * u;\r\n }\r\n };\r\n Matrix.prototype.scale = function (sx, sy) {\r\n if (sx !== 1) {\r\n this.a *= sx;\r\n this.c *= sx;\r\n this.tx *= sx;\r\n }\r\n if (sy !== 1) {\r\n this.b *= sy;\r\n this.d *= sy;\r\n this.ty *= sy;\r\n }\r\n };\r\n Matrix.prototype.setTo = function (a, b, c, d, tx, ty) {\r\n this.a = a;\r\n this.b = b;\r\n this.c = c;\r\n this.d = d;\r\n this.tx = tx;\r\n this.ty = ty;\r\n return this;\r\n };\r\n Matrix.prototype.transformPoint = function (pointX, pointY, resultPoint) {\r\n var _a = this, a = _a.a, b = _a.b, c = _a.c, d = _a.d, tx = _a.tx, ty = _a.ty;\r\n var x = a * pointX + c * pointY + tx;\r\n var y = b * pointX + d * pointY + ty;\r\n if (resultPoint) {\r\n resultPoint.x = x;\r\n resultPoint.y = y;\r\n return resultPoint;\r\n }\r\n return { x: x, y: y };\r\n };\r\n Matrix.prototype.deltaTransformPoint = function (pointX, pointY, resultPoint) {\r\n var _a = this, a = _a.a, b = _a.b, c = _a.c, d = _a.d;\r\n var x = a * pointX + c * pointY;\r\n var y = b * pointX + d * pointY;\r\n if (resultPoint) {\r\n resultPoint.x = x;\r\n resultPoint.y = y;\r\n return resultPoint;\r\n }\r\n return { x: x, y: y };\r\n };\r\n Matrix.prototype.translate = function (dx, dy) {\r\n this.tx += dx;\r\n this.ty += dy;\r\n };\r\n Matrix.prototype.equals = function (other) {\r\n return this.a == other.a && this.b == other.b &&\r\n this.c == other.c && this.d == other.d &&\r\n this.tx == other.tx && this.ty == other.ty;\r\n };\r\n Matrix.prototype.prepend = function (a, b, c, d, tx, ty) {\r\n var tx1 = this.tx;\r\n if (a != 1 || b != 0 || c != 0 || d != 1) {\r\n var a1 = this.a;\r\n var c1 = this.c;\r\n this.a = a1 * a + this.b * c;\r\n this.b = a1 * b + this.b * d;\r\n this.c = c1 * a + this.d * c;\r\n this.d = c1 * b + this.d * d;\r\n }\r\n this.tx = tx1 * a + this.ty * c + tx;\r\n this.ty = tx1 * b + this.ty * d + ty;\r\n return this;\r\n };\r\n Matrix.prototype.append = function (a, b, c, d, tx, ty) {\r\n var a1 = this.a;\r\n var b1 = this.b;\r\n var c1 = this.c;\r\n var d1 = this.d;\r\n if (a != 1 || b != 0 || c != 0 || d != 1) {\r\n this.a = a * a1 + b * c1;\r\n this.b = a * b1 + b * d1;\r\n this.c = c * a1 + d * c1;\r\n this.d = c * b1 + d * d1;\r\n }\r\n this.tx = tx * a1 + ty * c1 + this.tx;\r\n this.ty = tx * b1 + ty * d1 + this.ty;\r\n return this;\r\n };\r\n Matrix.prototype.toString = function () {\r\n return \"(a=\" + this.a + \", b=\" + this.b + \", c=\" + this.c + \", d=\" + this.d + \", tx=\" + this.tx + \", ty=\" + this.ty + \")\";\r\n };\r\n Matrix.prototype.createBox = function (scaleX, scaleY, rotation, tx, ty) {\r\n if (rotation === void 0) { rotation = 0; }\r\n if (tx === void 0) { tx = 0; }\r\n if (ty === void 0) { ty = 0; }\r\n var self = this;\r\n if (rotation !== 0) {\r\n rotation = rotation / DEG_TO_RAD;\r\n var u = Math.cos(rotation);\r\n var v = Math.sin(rotation);\r\n self.a = u * scaleX;\r\n self.b = v * scaleY;\r\n self.c = -v * scaleX;\r\n self.d = u * scaleY;\r\n }\r\n else {\r\n self.a = scaleX;\r\n self.b = 0;\r\n self.c = 0;\r\n self.d = scaleY;\r\n }\r\n self.tx = tx;\r\n self.ty = ty;\r\n };\r\n Matrix.prototype.createGradientBox = function (width, height, rotation, tx, ty) {\r\n if (rotation === void 0) { rotation = 0; }\r\n if (tx === void 0) { tx = 0; }\r\n if (ty === void 0) { ty = 0; }\r\n this.createBox(width / 1638.4, height / 1638.4, rotation, tx + width / 2, ty + height / 2);\r\n };\r\n Matrix.prototype.$transformBounds = function (bounds) {\r\n var a = this.a;\r\n var b = this.b;\r\n var c = this.c;\r\n var d = this.d;\r\n var tx = this.tx;\r\n var ty = this.ty;\r\n var x = bounds.x;\r\n var y = bounds.y;\r\n var xMax = x + bounds.width;\r\n var yMax = y + bounds.height;\r\n var x0 = a * x + c * y + tx;\r\n var y0 = b * x + d * y + ty;\r\n var x1 = a * xMax + c * y + tx;\r\n var y1 = b * xMax + d * y + ty;\r\n var x2 = a * xMax + c * yMax + tx;\r\n var y2 = b * xMax + d * yMax + ty;\r\n var x3 = a * x + c * yMax + tx;\r\n var y3 = b * x + d * yMax + ty;\r\n var tmp = 0;\r\n if (x0 > x1) {\r\n tmp = x0;\r\n x0 = x1;\r\n x1 = tmp;\r\n }\r\n if (x2 > x3) {\r\n tmp = x2;\r\n x2 = x3;\r\n x3 = tmp;\r\n }\r\n bounds.x = Math.floor(x0 < x2 ? x0 : x2);\r\n bounds.width = Math.ceil((x1 > x3 ? x1 : x3) - bounds.x);\r\n if (y0 > y1) {\r\n tmp = y0;\r\n y0 = y1;\r\n y1 = tmp;\r\n }\r\n if (y2 > y3) {\r\n tmp = y2;\r\n y2 = y3;\r\n y3 = tmp;\r\n }\r\n bounds.y = Math.floor(y0 < y2 ? y0 : y2);\r\n bounds.height = Math.ceil((y1 > y3 ? y1 : y3) - bounds.y);\r\n };\r\n Matrix.prototype.getDeterminant = function () {\r\n return this.a * this.d - this.b * this.c;\r\n };\r\n Matrix.prototype.$getScaleX = function () {\r\n var m = this;\r\n if (m.b == 0) {\r\n return m.a;\r\n }\r\n var result = Math.sqrt(m.a * m.a + m.b * m.b);\r\n return this.getDeterminant() < 0 ? -result : result;\r\n };\r\n Matrix.prototype.$getScaleY = function () {\r\n var m = this;\r\n if (m.c == 0) {\r\n return m.d;\r\n }\r\n var result = Math.sqrt(m.c * m.c + m.d * m.d);\r\n return this.getDeterminant() < 0 ? -result : result;\r\n };\r\n Matrix.prototype.$getSkewX = function () {\r\n if (this.d < 0) {\r\n return Math.atan2(this.d, this.c) + (PI / 2);\r\n }\r\n else {\r\n return Math.atan2(this.d, this.c) - (PI / 2);\r\n }\r\n };\r\n Matrix.prototype.$getSkewY = function () {\r\n if (this.a < 0) {\r\n return Math.atan2(this.b, this.a) - PI;\r\n }\r\n else {\r\n return Math.atan2(this.b, this.a);\r\n }\r\n };\r\n Matrix.prototype.$updateScaleAndRotation = function (scaleX, scaleY, skewX, skewY) {\r\n if ((skewX == 0 || skewX == TwoPI) && (skewY == 0 || skewY == TwoPI)) {\r\n this.a = scaleX;\r\n this.b = this.c = 0;\r\n this.d = scaleY;\r\n return;\r\n }\r\n skewX = skewX / DEG_TO_RAD;\r\n skewY = skewY / DEG_TO_RAD;\r\n var u = Math.cos(skewX);\r\n var v = Math.sin(skewX);\r\n if (skewX == skewY) {\r\n this.a = u * scaleX;\r\n this.b = v * scaleX;\r\n }\r\n else {\r\n this.a = Math.cos(skewY) * scaleX;\r\n this.b = Math.sin(skewY) * scaleX;\r\n }\r\n this.c = -v * scaleY;\r\n this.d = u * scaleY;\r\n };\r\n Matrix.prototype.$preMultiplyInto = function (other, target) {\r\n var a = other.a * this.a;\r\n var b = 0.0;\r\n var c = 0.0;\r\n var d = other.d * this.d;\r\n var tx = other.tx * this.a + this.tx;\r\n var ty = other.ty * this.d + this.ty;\r\n if (other.b !== 0.0 || other.c !== 0.0 || this.b !== 0.0 || this.c !== 0.0) {\r\n a += other.b * this.c;\r\n d += other.c * this.b;\r\n b += other.a * this.b + other.b * this.d;\r\n c += other.c * this.a + other.d * this.c;\r\n tx += other.ty * this.c;\r\n ty += other.tx * this.b;\r\n }\r\n target.a = a;\r\n target.b = b;\r\n target.c = c;\r\n target.d = d;\r\n target.tx = tx;\r\n target.ty = ty;\r\n };\r\n return Matrix;\r\n}());\r\nexport default Matrix;\r\n//# sourceMappingURL=Matrix.js.map"}
{"map":"{\"version\":3,\"file\":\"Button.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/ui/Button.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,WAAW,GAAW,MAAM,QAAQ,CAAC;AAC7C,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAE5C;IAAoC,kCAAiB;IAWpD;QAAA,YACC,iBAAO,SAGP;QADA,KAAI,CAAC,cAAc,GAAG,IAAI,CAAC;;IAC5B,CAAC;IAED,sBAAI,6BAAS;aAAb;YACC,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC3D,CAAC;;;OAAA;IAED,yBAAQ,GAAR,UAAS,KAAK,EAAE,GAAG,EAAE,QAAQ;QAC5B,iBAAM,QAAQ,YAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;QAErC,IAAI,GAAG,KAAK,cAAc,EAAE;YAC3B,IAAG,IAAI,CAAC,SAAS,EAAC;gBACjB,IAAI,CAAC,SAAS,CAAC,YAAY,GAAG,KAAK,CAAC;aACpC;YACD,IAAI;gBACH,IAAI,CAAC,aAAa,EAAE,CAAC;aACrB;YAAA,OAAO,CAAC,EAAE,GAAE;SACb;IACF,CAAC;IAED,yBAAQ,GAA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AAC,kBAAkB,GAAG,KAAK,CAAC;QAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,8BAAa,GAAb,UAAc,GAAI;QACjB,IAAG,CAAC,IAAI,CAAC,UAAU,EAAC;YACnB,OAAO;SACP;QAED,IAAI,CAAC,UAAU,GAAG,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC;QACpC,IAAG,IAAI,CAAC,YAAY,EAAC;YACpB,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;SAC1C;aAAI;YACJ,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC;SAC3C;IACF,CAAC;IACF,aAAC;AAAD,CAAC,AAlGD,CAAoC,iBAAiB,GAkGpD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaEvent, } from \"scilla\";\r\nimport TouchZoom from \"../animation/TouchZoom\";\r\nimport { InteractComponent } from \"../base\";\r\nimport { TextureRenderer } from \"../renderer\";\r\nvar Button = (function (_super) {\r\n tslib_1.__extends(Button, _super);\r\n function Button() {\r\n var _this = _super.call(this) || this;\r\n _this.touchInterrupt = true;\r\n return _this;\r\n }\r\n Object.defineProperty(Button.prototype, \"touchZoom\", {\r\n get: function () {\r\n return this.entity && this.entity.getComponent(TouchZoom);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Button.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n if (key === 'interactable') {\r\n if (this.touchZoom) {\r\n this.touchZoom.interactable = value;\r\n }\r\n try {\r\n this.changeTexture();\r\n }\r\n catch (e) { }\r\n }\r\n };\r\n Button.prototype.onCreate = function () {\r\n _super.prototype.onCreate.call(this);\r\n this.onClick = new ScillaEvent();\r\n };\r\n Button.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n this.bgRenderer = this.entity.getComponent(TextureRenderer);\r\n this.changeTexture(this.upRes);\r\n };\r\n Button.prototype.onTouchBegin = function (e) {\r\n _super.prototype.onTouchBegin.call(this, e);\r\n this.touchBeginWithSelf = true;\r\n this.changeTexture(this.downRes);\r\n };\r\n Button.prototype.onTouchOver = function (e) {\r\n _super.prototype.onTouchOver.call(this, e);\r\n if (this.touchBeginWithSelf) {\r\n this.touchBeginWithSelf = true;\r\n this.changeTexture(this.downRes);\r\n }\r\n this.touchOut = false;\r\n };\r\n Button.prototype.onTouchOut = function (e) {\r\n _super.prototype.onTouchOut.call(this, e);\r\n if (this.touchBeginWithSelf) {\r\n this.changeTexture(this.upRes);\r\n }\r\n this.touchOut = true;\r\n };\r\n Button.prototype.onGlobalTouchEnd = function (e) {\r\n _super.prototype.onGlobalTouchEnd.call(this, e);\r\n if (this.touchBeginWithSelf && !this.touchOut) {\r\n this.onClick.invoke();\r\n }\r\n this.touchBeginWithSelf = false;\r\n this.changeTexture(this.upRes);\r\n };\r\n Button.prototype.changeTexture = function (res) {\r\n if (!this.bgRenderer) {\r\n return;\r\n }\r\n this.currentRes = res || this.upRes;\r\n if (this.interactable) {\r\n this.bgRenderer.texture = this.currentRes;\r\n }\r\n else {\r\n this.bgRenderer.texture = this.disabledRes;\r\n }\r\n };\r\n return Button;\r\n}(InteractComponent));\r\nexport default Button;\r\n//# sourceMappingURL=Button.js.map"}
{"map":"{\"version\":3,\"file\":\"manager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/manager.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,YAAY,IAAI,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAC,KAAK,EAAE,SAAS,EAAE,YAAY,IAAI,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;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IAAI,CAAC;SACZ;IACF,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,OAAO;QAC7B,OAAO,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;AAEJ,CAAC;AAMD,SAAS,YAAY,CAAC,KAAK;IAC1B,iBAAiB,CAAC,IAAI,EAAE,UAAU,KAAK;QACtC,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAA;AACH,CAAC;AAMD,SAAS,WAAW,CAAC,KAAK;IACzB,iBAAiB,CAAC,IAAI,EAAE,UAAU,KAAK;QACtC,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAA;AACH,CAAC;AAMD,SAAS,UAAU,CAAC,KAAK;IACxB,iBAAiB,CAAC,IAAI,EAAE,UAAU,KAAK;QACtC,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAA;AACH,CAAC\"}","code":"import { Entity, traverse, traversePostorder } from \"./Entity\";\r\nimport { injectProp } from \"../tools/utils\";\r\nimport { setupContext as setupInteractContext } from \"./context/InteractContext\";\r\nimport { clear, ScaleMode, setupContext as setupRenderContext } from \"./context/RenderContext\";\r\nimport './requestAnimationFrame';\r\nvar options = {\r\n fps: 60,\r\n designWidth: 750,\r\n designHeight: 1334,\r\n scaleMode: ScaleMode.FIXED_WIDTH,\r\n};\r\nvar root;\r\nvar _flush = 0, _currentFlush = 0;\r\nvar tsStart, tsLast;\r\nvar lastFPS = 0;\r\nexport function setup(_options) {\r\n injectProp(options, _options);\r\n var canvas = options.canvas, designWidth = options.designWidth, designHeight = options.designHeight, scaleMode = options.scaleMode, modifyCanvasSize = options.modifyCanvasSize;\r\n var canvasElement = typeof canvas == 'object' ? canvas : document.getElementById(canvas);\r\n setupInteractContext({\r\n canvas: canvasElement,\r\n touchHandler: {\r\n onTouchBegin: onTouchBegin,\r\n onTouchMove: onTouchMove,\r\n onTouchEnd: onTouchEnd,\r\n }\r\n });\r\n setupRenderContext({\r\n canvas: canvasElement,\r\n designWidth: designWidth,\r\n designHeight: designHeight,\r\n scaleMode: scaleMode,\r\n modifyCanvasSize: modifyCanvasSize,\r\n });\r\n root = new Entity('root');\r\n root._restrict();\r\n}\r\nexport function start() {\r\n root.enabled = true;\r\n tsStart = Date.now();\r\n startTick();\r\n}\r\nexport function pause() {\r\n root.enabled = false;\r\n stopTick();\r\n}\r\nexport function getRoot() {\r\n return root;\r\n}\r\nexport function getFPS() {\r\n return lastFPS;\r\n}\r\nfunction startTick() {\r\n _flush = 60 / options.fps - 1 >> 0;\r\n if (_flush < 0) {\r\n _flush = 0;\r\n }\r\n requestAnimationFrame(flush);\r\n}\r\nfunction stopTick() {\r\n}\r\nvar tsLast2;\r\nfunction flush(tsNow) {\r\n if (_flush == 0) {\r\n onFrameTick(tsNow);\r\n }\r\n else {\r\n if (_currentFlush == 0) {\r\n onFrameTick(tsNow);\r\n _currentFlush = _flush;\r\n }\r\n else {\r\n _currentFlush--;\r\n }\r\n }\r\n requestAnimationFrame(flush);\r\n}\r\nfunction onFrameTick(tsNow) {\r\n clear();\r\n var tsNow2 = Date.now();\r\n lastFPS = Math.floor(1000 / (tsNow - tsLast));\r\n tsLast = tsNow;\r\n tsLast2 = tsNow2;\r\n var ts = tsNow - tsStart;\r\n traverse(root, function (child) {\r\n if (!child.isFree && child.enabled) {\r\n child.onUpdate(ts);\r\n }\r\n else {\r\n return true;\r\n }\r\n }, -1, true, function (current) {\r\n current.afterUpdate();\r\n });\r\n}\r\nfunction onTouchBegin(event) {\r\n traversePostorder(root, function (child) {\r\n return child.onInteract(0, event);\r\n });\r\n}\r\nfunction onTouchMove(event) {\r\n traversePostorder(root, function (child) {\r\n return child.onInteract(1, event);\r\n });\r\n}\r\nfunction onTouchEnd(event) {\r\n traversePostorder(root, function (child) {\r\n return child.onInteract(2, event);\r\n });\r\n}\r\n//# sourceMappingURL=manager.js.map"}
{"map":"{\"version\":3,\"file\":\"MustCompile.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/generated/MustCompile.ts\"],\"names\":[],\"mappings\":\"AAKA,OAAO,EAAC,WAAW,EAAC,MAAM,QAAQ,CAAA;AAElC,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,WAAW,CAAC,2BAA2B,EAAE,UAAU,CAAC,CAAC;AAErD,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,WAAW,CAAC,qCAAqC,EAAE,UAAU,CAAC,CAAC;AAE/D,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,WAAW,CAAC,mCAAmC,EAAE,UAAU,CAAC,CAAC;AAE7D,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,WAAW,CAAC,gCAAgC,EAAE,UAAU,CAAC,CAAC;AAE1D,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,WAAW,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC;AAEhD,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,WAAW,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAC\"}","code":"import { registerDef } from 'scilla';\r\nimport component0 from 'components/base/Transform';\r\nregisterDef('components/base/Transform', component0);\r\nimport component1 from 'components/renderer/TextureRenderer';\r\nregisterDef('components/renderer/TextureRenderer', component1);\r\nimport component2 from 'components/other/CameraController';\r\nregisterDef('components/other/CameraController', component2);\r\nimport component3 from 'components/animation/TouchZoom';\r\nregisterDef('components/animation/TouchZoom', component3);\r\nimport component4 from 'components/ui/Button';\r\nregisterDef('components/ui/Button', component4);\r\nimport component5 from 'components/renderer/TextRenderer';\r\nregisterDef('components/renderer/TextRenderer', component5);\r\nimport component6 from '../../assets/scripts/MainController';\r\nregisterDef('./scripts/MainController', component6);\r\n//# sourceMappingURL=MustCompile.js.map"}
{"map":"{\"version\":3,\"file\":\"RectRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/RectRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAA;AAE1B,IAAA,kDAAkB,CAAe;AAKxC;IAA0C,wCAAe;IAAzD;QAAA,qEAsCC;QApCA,WAAK,GAAG,GAAG,CAAC;QAEZ,YAAM,GAAG,GAAG,CAAC;QAEb,kBAAY,GAAG,CAAC,CAAC;;IAgClB,CAAC;IA9BU,oCAAa,GAAvB;QACO,IAAA,SAAsB,EAArB,gBAAK,EAAE,kBAAc,CAAC;QAC7B,OAAO,EAAC,KAAK,OAAA,EAAE,MAAM,QAAA,EAAC,CAAC;IACxB,CAAC;IAKS,2BAAI,GAAd;QACQ,IAAA,YAAE,CAAS;QACZ,IAAA,SAAkF,EAAjF,oBAAO,EAAE,mBAAe,EAAE,cAAuB,EAAd,gBAAK,EAAE,kBAAM,EAAG,oBAAO,EAAE,gCAAqB,CAAC;QAEzF,IAAI,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QAEzC,IAAI,CAAC,EAAE;YACN,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;YACvC,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;YAC/C,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;YACnE,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC;YACpD,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;YACnE,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;YAC5C,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;YAC5D,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;YACvC,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;SACvD;aAAM;YACN,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;SAC5C;QAED,iBAAM,IAAI,WAAE,CAAC;IACd,CAAC;IAnCD;QADC,kBAAkB;+CACP;IAEZ;QADC,kBAAkB;gDACN;IAEb;QADC,kBAAkB;sDACF;IAgClB,mBAAC;CAAA,AAtCD,CAA0C,eAAe,GAsCxD;eAtCoB,YAAY\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nimport { decorators } from 'scilla';\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector;\r\nvar RectRenderer = (function (_super) {\r\n tslib_1.__extends(RectRenderer, _super);\r\n function RectRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.width = 100;\r\n _this.height = 100;\r\n _this.cornerRadius = 0;\r\n return _this;\r\n }\r\n RectRenderer.prototype.getRenderSize = function () {\r\n var _a = this, width = _a.width, height = _a.height;\r\n return { width: width, height: height };\r\n };\r\n RectRenderer.prototype.draw = function () {\r\n var PI = Math.PI;\r\n var _a = this, context = _a.context, r = _a.cornerRadius, _b = _a.bounds, width = _b.width, height = _b.height, _margin = _a._margin, _useCacheMode = _a._useCacheMode;\r\n var offset = _useCacheMode ? _margin : 0;\r\n if (r) {\r\n context.moveTo(offset + r, offset + 0);\r\n context.lineTo(offset + width - r, offset + 0);\r\n context.arc(offset + width - r, offset + r, r, PI * 3 / 2, PI * 2);\r\n context.lineTo(offset + width, offset + height - r);\r\n context.arc(offset + width - r, offset + height - r, r, 0, PI / 2);\r\n context.lineTo(offset + r, offset + height);\r\n context.arc(offset + r, offset + height - r, r, PI / 2, PI);\r\n context.lineTo(offset + 0, offset + r);\r\n context.arc(offset + r, offset + r, r, PI, PI * 3 / 2);\r\n }\r\n else {\r\n context.rect(offset, offset, width, height);\r\n }\r\n _super.prototype.draw.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], RectRenderer.prototype, \"width\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], RectRenderer.prototype, \"height\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], RectRenderer.prototype, \"cornerRadius\", void 0);\r\n return RectRenderer;\r\n}(GraphicRenderer));\r\nexport default RectRenderer;\r\n//# sourceMappingURL=RectRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"Vector2D.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Vector2D.ts\"],\"names\":[],\"mappings\":\"AAKA,OAAO,EAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAC;AAEpD,IAAM,IAAI,GAAG,UAAU,CAAC;AACxB,QAAQ,CAAC,IAAI,EAAE;IACd,OAAO,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ACR,OAAO,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC;IAED,sBAAI,4BAAM;aAKV;YACC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC;aAPD,UAAW,KAAK;YACf,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YACpB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;QACtD,CAAC;;;OAAA;IAMD,sBAAI,8BAAQ;aAAZ;YACC,OAAO,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QAC1C,CAAC;;;OAAA;IAED,sBAAI,2BAAK;aAAT;YACC,OAAO,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QACxB,CAAC;;;OAAA;IAED,2BAAQ,GAAR;QACC,OAAO,eAAe,GAAG,IAAI,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC;IAC1D,CAAC;IAEM,eAAM,GAAb,UAAc,EAAE,EAAE,EAAE;QACnB,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5D,CAAC;IACF,eAAC;AAAD,CAAC,AAtLD,IAsLC;;AAED,IAAM,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAC\"}","code":"import { get, recycle, register } from \"./ObjectPool\";\r\nvar name = 'Vector2D';\r\nregister(name, function () {\r\n return new Vector2D();\r\n}, function (instance, x, y) {\r\n instance.setXY(x, y);\r\n});\r\nexport function createVector2D(x, y) {\r\n if (x === void 0) { x = 0; }\r\n if (y === void 0) { y = 0; }\r\n return get(name, x, y);\r\n}\r\nexport function releaseVector2D(target) {\r\n recycle(name, target);\r\n}\r\nvar Vector2D = (function () {\r\n function Vector2D(x, y, onChange) {\r\n if (x === void 0) { x = 0; }\r\n if (y === void 0) { y = 0; }\r\n this.onChange = onChange;\r\n this._x = 0;\r\n this._y = 0;\r\n this.setXY(x, y);\r\n }\r\n Object.defineProperty(Vector2D, \"zero\", {\r\n get: function () {\r\n return zero;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"x\", {\r\n get: function () {\r\n return this._x;\r\n },\r\n set: function (v) {\r\n if (this._x !== v) {\r\n var old = this._x;\r\n this._x = v;\r\n this.onChange && this.onChange(v, 'x', old);\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"y\", {\r\n get: function () {\r\n return this._y;\r\n },\r\n set: function (v) {\r\n if (this._y !== v) {\r\n var old = this._y;\r\n this._y = v;\r\n this.onChange && this.onChange(v, 'y', old);\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.setXY = function (x, y) {\r\n if (x === void 0) { x = 0; }\r\n if (y === void 0) { y = 0; }\r\n this.x = x;\r\n this.y = y;\r\n return this;\r\n };\r\n Vector2D.prototype.copyFrom = function (v2) {\r\n this.x = v2.x;\r\n this.y = v2.y;\r\n return this;\r\n };\r\n Vector2D.prototype.clone = function () {\r\n return new Vector2D(this.x, this.y);\r\n };\r\n Vector2D.prototype.zero = function () {\r\n this.x = 0;\r\n this.y = 0;\r\n return this;\r\n };\r\n Object.defineProperty(Vector2D.prototype, \"isZero\", {\r\n get: function () {\r\n return this.x == 0 && this.y == 0;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.normalize = function () {\r\n var len = this.length;\r\n if (len == 0) {\r\n this.x = 1;\r\n return this;\r\n }\r\n this.x /= len;\r\n this.y /= len;\r\n return this;\r\n };\r\n Object.defineProperty(Vector2D.prototype, \"isNormalized\", {\r\n get: function () {\r\n return this.length == 1.0;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.truncate = function (max) {\r\n this.length = Math.min(max, this.length);\r\n return this;\r\n };\r\n Vector2D.prototype.reverse = function () {\r\n this.x = -this.x;\r\n this.y = -this.y;\r\n return this;\r\n };\r\n Vector2D.prototype.dotProd = function (v2) {\r\n return this.x * v2.x + this.y * v2.y;\r\n };\r\n Vector2D.prototype.crossProd = function (v2) {\r\n return this.x * v2.y - this.y * v2.x;\r\n };\r\n Vector2D.prototype.distSQ = function (v2) {\r\n var dx = v2.x - this.x;\r\n var dy = v2.y - this.y;\r\n return dx * dx + dy * dy;\r\n };\r\n Vector2D.prototype.distance = function (v2) {\r\n return Math.sqrt(this.distSQ(v2));\r\n };\r\n Vector2D.prototype.add = function (v2) {\r\n this.x += v2.x;\r\n this.y += v2.y;\r\n return this;\r\n };\r\n Vector2D.prototype.subtract = function (v2) {\r\n this.x -= v2.x;\r\n this.y -= v2.y;\r\n return this;\r\n };\r\n Vector2D.prototype.multiply = function (value) {\r\n this.x *= value;\r\n this.y *= value;\r\n return this;\r\n };\r\n Vector2D.prototype.divide = function (value) {\r\n this.x /= value;\r\n this.y /= value;\r\n return this;\r\n };\r\n Object.defineProperty(Vector2D.prototype, \"angle\", {\r\n get: function () {\r\n return this.radian * 180 / Math.PI;\r\n },\r\n set: function (value) {\r\n this.radian = value * Math.PI / 180;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"radian\", {\r\n get: function () {\r\n return Math.atan2(this.y, this.x);\r\n },\r\n set: function (value) {\r\n var len = this.length;\r\n this.setXY(Math.cos(value) * len, Math.sin(value) * len);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.equals = function (v2) {\r\n return this.x == v2.x && this.y == v2.y;\r\n };\r\n Object.defineProperty(Vector2D.prototype, \"length\", {\r\n get: function () {\r\n return Math.sqrt(this.lengthSQ);\r\n },\r\n set: function (value) {\r\n var a = this.radian;\r\n this.setXY(Math.cos(a) * value, Math.sin(a) * value);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"lengthSQ\", {\r\n get: function () {\r\n return this.x * this.x + this.y * this.y;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"slope\", {\r\n get: function () {\r\n return this.y / this.x;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.toString = function () {\r\n return \"[Vector2D (x:\" + this.x + \", y:\" + this.y + \")]\";\r\n };\r\n Vector2D.corner = function (v1, v2) {\r\n return Math.acos(v1.dotProd(v2) / (v1.length * v2.length));\r\n };\r\n return Vector2D;\r\n}());\r\nexport default Vector2D;\r\nvar zero = new Vector2D();\r\n//# sourceMappingURL=Vector2D.js.map"}
{"map":"{\"version\":3,\"file\":\"ScillaEvent.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/ScillaEvent.ts\"],\"names\":[],\"mappings\":\";AAQA;IAGC;QACC,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IACxB,CAAC;IAEO,kCAAY,GAApB,UAAqB,QAAQ;QACrB,IAAA,gCAAY,CAAS;QAE5B,IAAI,MAAM,CAAC;QACX,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;YACtD,IAAM,UAAU,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;YAEnC,IAAI,UAAU,CAAC,QAAQ,IAAI,QAAQ,EAAE;gBACpC,MAAM,GAAG;oBACR,UAAU,YAAA;oBACV,KAAK,EAA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,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;SACvC;IACF,CAAC;IAMD,iCAAW,GAAX,UAAY,QAAQ;QACnB,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IAMD,4BAAM,GAAN;QAAO,mBAAY;aAAZ,UAAY,EAAZ,qBAAY,EAAZ,IAAY;YAAZ,8BAAY;;;QACX,IAAA,gCAAY,CAAS;QAG5B,YAAY,CAAC,IAAI,CAAC,UAAC,CAAC,EAAE,CAAC;YACtB,OAAO,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC;QAChC,CAAC,CAAC,CAAC;;YAEH,KAAyB,IAAA,iBAAA,iBAAA,YAAY,CAAA,0CAAA,oEAAE;gBAAlC,IAAM,UAAU,yBAAA;gBACpB,IAAG,UAAU,EAAC;oBACN,IAAA,8BAAQ,EAAE,4BAAO,EAAE,sBAAI,EAAE,0BAAM,CAAc;oBACpD,IAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;oBAE3C,IAAI;wBACH,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;qBACnC;oBAAA,OAAO,CAAC,EAAE;wBACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;qBACf;oBAED,IAAG,IAAI,EAAC;wBACP,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;qBAC9B;iBACD;aACD;;;;;;;;;IACF,CAAC;IACF,kBAAC;AAAD,CAAC,AAnID,IAmIC\"}","code":"import * as tslib_1 from \"tslib\";\r\nvar ScillaEvent = (function () {\r\n function ScillaEvent() {\r\n this._subscribers = [];\r\n }\r\n ScillaEvent.prototype.findListener = function (callback) {\r\n var _subscribers = this._subscribers;\r\n var result;\r\n for (var i = 0, li = _subscribers.length; i < li; i++) {\r\n var subscriber = _subscribers[i];\r\n if (subscriber.callback == callback) {\r\n result = {\r\n subscriber: subscriber,\r\n index: i,\r\n };\r\n break;\r\n }\r\n }\r\n return result;\r\n };\r\n ScillaEvent.prototype.addListener = function (callback, thisObj, priority) {\r\n if (priority === void 0) { priority = 0; }\r\n var params = [];\r\n for (var _i = 3; _i < arguments.length; _i++) {\r\n params[_i - 3] = arguments[_i];\r\n }\r\n if (!callback) {\r\n return;\r\n }\r\n var _subscribers = this._subscribers;\r\n var listener = this.findListener(callback);\r\n if (!listener) {\r\n _subscribers.push({\r\n callback: callback,\r\n thisObj: thisObj,\r\n priority: priority,\r\n params: params,\r\n });\r\n }\r\n };\r\n ScillaEvent.prototype.once = function (callback, thisObj, priority) {\r\n if (priority === void 0) { priority = 0; }\r\n var params = [];\r\n for (var _i = 3; _i < arguments.length; _i++) {\r\n params[_i - 3] = arguments[_i];\r\n }\r\n if (!callback) {\r\n return;\r\n }\r\n var _subscribers = this._subscribers;\r\n var listener = this.findListener(callback);\r\n if (!listener) {\r\n _subscribers.push({\r\n callback: callback,\r\n thisObj: thisObj,\r\n priority: priority,\r\n params: params,\r\n once: true,\r\n });\r\n }\r\n };\r\n ScillaEvent.prototype.removeListener = function (callback) {\r\n if (!callback) {\r\n return;\r\n }\r\n var _subscribers = this._subscribers;\r\n var listener = this.findListener(callback);\r\n if (listener) {\r\n _subscribers.splice(listener.index, 1);\r\n }\r\n };\r\n ScillaEvent.prototype.hasListener = function (callback) {\r\n return !!this.findListener(callback);\r\n };\r\n ScillaEvent.prototype.invoke = function () {\r\n var paramsNew = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n paramsNew[_i] = arguments[_i];\r\n }\r\n var e_1, _a;\r\n var _subscribers = this._subscribers;\r\n _subscribers.sort(function (a, b) {\r\n return a.priority - b.priority;\r\n });\r\n try {\r\n for (var _subscribers_1 = tslib_1.__values(_subscribers), _subscribers_1_1 = _subscribers_1.next(); !_subscribers_1_1.done; _subscribers_1_1 = _subscribers_1.next()) {\r\n var subscriber = _subscribers_1_1.value;\r\n if (subscriber) {\r\n var callback = subscriber.callback, thisObj = subscriber.thisObj, once = subscriber.once, params = subscriber.params;\r\n var allParams = params.concat(paramsNew);\r\n try {\r\n callback.apply(thisObj, allParams);\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n if (once) {\r\n this.removeListener(callback);\r\n }\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_subscribers_1_1 && !_subscribers_1_1.done && (_a = _subscribers_1.return)) _a.call(_subscribers_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n };\r\n return ScillaEvent;\r\n}());\r\nexport { ScillaEvent };\r\n//# sourceMappingURL=ScillaEvent.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/index.ts\"],\"names\":[],\"mappings\":\"AAMA,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAC,MAAM,YAAY,CAAA;AAC/E,OAAO,EAAC,WAAW,EAAE,KAAK,EAAC,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAA;AAEtC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AAErC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC\"}","code":"export { default as Bounds } from './Bounds';\r\nexport { default as Vector2D, createVector2D, releaseVector2D } from './Vector2D';\r\nexport { createTween, Tween } from './Tween';\r\nexport { default as Matrix } from './Matrix';\r\nexport { default as Size } from './Size';\r\nexport { default as LocalStorage } from './LocalStorage';\r\nexport { TextStyle } from './TextStyle';\r\nexport { default as EventEmitter } from './EventEmitter';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"Texture.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Texture.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAKrD;IAAqC,mCAAU;IAM9C;QAAA,YACC,iBAAO,SAGP;QADA,KAAI,CAAC,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;;IAC5B,CAAC;IAMD,0BAAQ,GAAR,UAAS,KAAK;QACR,IAAA,WAAC,EAAE,WAAC,EAAE,WAAC,EAAE,WAAC,CAAU;QACzB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC;IAMD,wBAAM,GAAN,UAAO,GAAG;QACT,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IAChB,CAAC;IAKD,sBAAI,0BAAK;aAAT;YACC,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;QAC1B,CAAC;;;OAAA;IAKD,sBAAI,2BAAM;aAAV;YACC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QAC3B,CAAC;;;OAAA;IAKD,gCAAc,GAAd;QACO,IAAA,gBAA6B,EAA5B,gBAAK,EAAE,kBAAqB,CAAC;QAEpC,IAAI,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC;QAC/B,IAAI,CAAC,MAAM,EAAE;YACZ,MAAM,GAAG,IAAI,CAAC,YAAY,GAAG,YAAY,EAAE,CAAC;SAC5C;QACD,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;QACrB,MAAM,CAAC,MAAM,GAA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IAErE,OAAO,OAAO,CAAC;AAChB,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Bounds from \"../support/Bounds\";\r\nimport HashObject from \"../core/HashObject\";\r\nimport { createCanvas } from \"./context/RenderContext\";\r\nvar Texture = (function (_super) {\r\n tslib_1.__extends(Texture, _super);\r\n function Texture() {\r\n var _this = _super.call(this) || this;\r\n _this.bounds = new Bounds();\r\n return _this;\r\n }\r\n Texture.prototype.setFrame = function (frame) {\r\n var x = frame.x, y = frame.y, w = frame.w, h = frame.h;\r\n this.bounds.setTo(x, y, w, h);\r\n };\r\n Texture.prototype.setImg = function (img) {\r\n this.img = img;\r\n };\r\n Object.defineProperty(Texture.prototype, \"width\", {\r\n get: function () {\r\n return this.bounds.width;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Texture.prototype, \"height\", {\r\n get: function () {\r\n return this.bounds.height;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Texture.prototype.getCacheCanvas = function () {\r\n var _a = this.bounds, width = _a.width, height = _a.height;\r\n var canvas = this._cacheCanvas;\r\n if (!canvas) {\r\n canvas = this._cacheCanvas = createCanvas();\r\n }\r\n canvas.width = width;\r\n canvas.height = height;\r\n var context = canvas.getContext('2d');\r\n this.drawToCanvas(context);\r\n return canvas;\r\n };\r\n Texture.prototype.drawToCanvas = function (context, dx, dy, sx, sy, dw, dh) {\r\n if (dx === void 0) { dx = 0; }\r\n if (dy === void 0) { dy = 0; }\r\n var _a = this.bounds, x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n context.drawImage(this.img, sx || x, sy || y, width, height, dx, dy, dw || width, dh || height);\r\n };\r\n Texture.prototype.destroy = function () {\r\n this.img = null;\r\n this.bounds = null;\r\n this.destroyCacheCanvas();\r\n };\r\n Texture.prototype.destroyCacheCanvas = function () {\r\n this._cacheCanvas = null;\r\n };\r\n return Texture;\r\n}(HashObject));\r\nexport default Texture;\r\nexport function createTexture(img, frame) {\r\n var texture = new Texture();\r\n texture.setImg(img);\r\n texture.setFrame(frame || { x: 0, y: 0, w: img.width, h: img.height });\r\n return texture;\r\n}\r\n//# sourceMappingURL=Texture.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAA;AAChE,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAA\"}","code":"export { default as InteractComponent } from './InteractComponent';\r\nexport { default as TouchInterrupt } from './TouchInterrupt';\r\nexport { default as Transform } from './Transform';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"time.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/time.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,MAAM,IAAI,YAAY,EAAE,UAAU,EAAC,MAAM,SAAS,CAAA;AAM1D,MAAM,UAAU,OAAO,CAAC,EAAE;IACzB,IAAI,OAAO,GAAQ,IAAI,IAAI,EAAE,CAAC;IAC9B,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACpB,OAAO,OAAO,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAS,EAAE,MAA6B;IAA7B,uBAAA,EAAA,sBAA6B;IACxE,OAAO,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;AACnH,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAS,EAAE,MAA6B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AE,CAAC,CAAC;IAE5C,IAAI,SAAS,EAAE;QACd,EAAE,GAAG,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACvB,EAAE,GAAG,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACvB,EAAE,GAAG,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACvB,EAAE,GAAG,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;KACvB;IAED,OAAO,YAAY,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7C,CAAC\"}","code":"import { format as stringFormat, supplement } from './utils';\r\nexport function ts2Date(ts) {\r\n var newDate = new Date();\r\n newDate.setTime(ts);\r\n return newDate;\r\n}\r\nexport function dateToDateString(date, format) {\r\n if (format === void 0) { format = '{0}/{1}/{2}'; }\r\n return stringFormat(format, date.getFullYear(), supplement(date.getMonth() + 1, 2), supplement(date.getDate(), 2));\r\n}\r\nexport function dateToTimeString(date, format) {\r\n if (format === void 0) { format = '{0}:{1}:{2}'; }\r\n return stringFormat(format, supplement(date.getHours(), 2), supplement(date.getMinutes(), 2), supplement(date.getSeconds(), 2));\r\n}\r\nexport function dateToString(date, dayFormat, timeFormat) {\r\n return dateToDateString(date, dayFormat) + dateToTimeString(date, timeFormat);\r\n}\r\nexport function tsToTimeString(ts, format) {\r\n if (format === void 0) { format = '{0}:{1}:{2}'; }\r\n var date = ts2Date(ts);\r\n return stringFormat(format, supplement(date.getHours(), 2), supplement(date.getMinutes(), 2), supplement(date.getSeconds(), 2));\r\n}\r\nexport function secondFormat(second, format, placeZero) {\r\n if (format === void 0) { format = '{2}:{1}:{0}'; }\r\n if (placeZero === void 0) { placeZero = true; }\r\n var ss = second % 60;\r\n var mm = Math.floor(second / 60) % 60;\r\n var hh = Math.floor(second / 3600) % 24;\r\n var dd = Math.floor(second / 3600 / 24);\r\n if (placeZero) {\r\n ss = supplement(ss, 2);\r\n mm = supplement(mm, 2);\r\n hh = supplement(hh, 2);\r\n dd = supplement(dd, 2);\r\n }\r\n return stringFormat(format, ss, mm, hh, dd);\r\n}\r\n//# sourceMappingURL=time.js.map"}
{"map":"{\"version\":3,\"file\":\"interpreter.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/editor/interpreter.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,MAAM,EAAS,WAAW,EAAC,MAAM,SAAS,CAAC;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,IAAI,WAAW,GAAG,EAAE,CAAC;AACrB,IAAI,iBAAiB,CAAC;AACtB,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,IAAI,QAAQ,GAAW,CAAC,CAAC;AAEzB,MAAM,UAAU,WAAW,CAAC,IAAI,EAAE,GAAG;IACpC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC;IACnB,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC;AACtB,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAM;IACnC,OAAO,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACtE,CAAC;AAOD,MAAM,UAAU,UAAU,CAAC,KAAY,EAAE,IAAY;IACpD,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,IAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAC5B,iBAAiB,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACjD,iBAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAErC,WAAW,GAAG,EAAE,CAAC;IAEjB,OAAO,KAAK,CAAC;AACd,CAAC;AAMD,MAAM,UAAU,YAAY,CAAC,KAAY;IACxC,IAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IACxB,IAAI,C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CAAC,EAAE,KAAK,CAAC,CAAC;qBAC/C;iBACD;aACD;SACD;;;;;;;;;AACF,CAAC;AAED,SAAS,OAAO,CAAC,GAAW,EAAE,GAAI;IACjC,IAAI,MAAM,CAAC;IACX,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QAC7B,IAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC3B,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;KACtB;SAAM,IAAI,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;QACvC,IAAM,IAAI,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;QACjD,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;KAC3B;SAAM;QACN,MAAM,GAAG,GAAG,CAAC;KACb;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AAED,SAAS,eAAe,CAAC,IAAI,EAAE,GAAG;IACjC,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AACtC,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Entity, ScillaEvent } from \"../core\";\r\nimport { getRes } from \"../assets-manager\";\r\nvar entityCache = {};\r\nvar entityCacheConfig;\r\nvar defMap = {};\r\nvar prefabID = 0;\r\nexport function registerDef(name, def) {\r\n defMap[name] = def;\r\n def.__class__ = name;\r\n}\r\nfunction getEntityCacheConfig(config) {\r\n return config['entity-cache'] ? config['entity-cache'].concat() : [];\r\n}\r\nexport function setupScene(scene, root) {\r\n scene.root = root;\r\n var config = scene.config;\r\n entityCacheConfig = getEntityCacheConfig(config);\r\n instantiateConfig(config.root, root);\r\n entityCache = {};\r\n return scene;\r\n}\r\nexport function destroyScene(scene) {\r\n var root = scene.root;\r\n root.removeAllComponents();\r\n root.removeChildren();\r\n}\r\nexport function instantiate(config) {\r\n var pid = ++prefabID;\r\n entityCacheConfig = getEntityCacheConfig(config);\r\n for (var i = 0, li = entityCacheConfig.length; i < li; i++) {\r\n entityCacheConfig[i] = pid + '_' + entityCacheConfig[i];\r\n }\r\n var rootConfig = config.root;\r\n var entity = setupEntity(rootConfig, null, pid);\r\n setupComponent(rootConfig, entity, true);\r\n injectComponent(rootConfig, entity, true, pid);\r\n entityCache = {};\r\n return entity.children[0];\r\n}\r\nfunction instantiateConfig(config, root) {\r\n var entity = setupEntity(config, root);\r\n setupComponent(config, entity, true);\r\n injectComponent(config, entity, true);\r\n return entity;\r\n}\r\nfunction setupEntity(config, root, pid) {\r\n var entity = null;\r\n if (config) {\r\n var name_1 = config.name, uuid = config.uuid, children = config.children;\r\n if (pid !== undefined && uuid !== undefined) {\r\n uuid = pid + '_' + uuid;\r\n }\r\n entity = root || new Entity(name_1, uuid);\r\n if (entityCacheConfig.indexOf(uuid) >= 0) {\r\n entityCache[uuid] = entity;\r\n }\r\n if (children) {\r\n for (var i = 0, li = children.length; i < li; i++) {\r\n var child = children[i];\r\n var childEntity = setupEntity(child, null, pid);\r\n entity.addChild(childEntity);\r\n }\r\n }\r\n if (!root) {\r\n entity.enabled = !config.disabled;\r\n }\r\n }\r\n return entity;\r\n}\r\nfunction setupComponent(config, root, includeSelf) {\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n if (includeSelf) {\r\n instantiateComponents(root, config);\r\n }\r\n if (config && config.children) {\r\n for (var i = 0, li = root.children.length; i < li; i++) {\r\n var child = config.children[i];\r\n var entity = root.children[i];\r\n instantiateComponents(entity, child);\r\n setupComponent(child, entity);\r\n }\r\n }\r\n}\r\nfunction injectComponent(config, root, includeSelf, pid) {\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n if (includeSelf) {\r\n injectComponents(root, config, pid);\r\n }\r\n if (config && config.children) {\r\n for (var i = 0, li = root.children.length; i < li; i++) {\r\n var child = config.children[i];\r\n var entity = root.children[i];\r\n injectComponents(entity, child, pid);\r\n injectComponent(child, entity, false, pid);\r\n }\r\n }\r\n}\r\nfunction instantiateComponents(entity, config) {\r\n var e_1, _a;\r\n if (config.components) {\r\n try {\r\n for (var _b = tslib_1.__values(config.components), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var component = _c.value;\r\n instantiateComponent(entity, component);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n }\r\n}\r\nfunction injectComponents(entity, config, pid) {\r\n if (config.components) {\r\n var components = entity.components;\r\n for (var i = 0, li = config.components.length; i < li; i++) {\r\n var component = config.components[i];\r\n var properties = component.properties;\r\n if (properties) {\r\n injectProperties(components[i], properties, pid);\r\n }\r\n }\r\n }\r\n}\r\nfunction instantiateComponent(entity, config) {\r\n var script = config.script, properties = config.properties;\r\n var def = getDefByName(script);\r\n if (!def) {\r\n return;\r\n }\r\n var instance = new def();\r\n instance.enabled = !config.disabled;\r\n entity.addComponent(instance);\r\n}\r\nfunction getDefByName(name) {\r\n var def;\r\n def = defMap[name];\r\n if (!def) {\r\n console.warn('missing def:', name);\r\n return;\r\n }\r\n return def;\r\n}\r\nvar skipKeys = ['_type_', '_constructor_'];\r\nfunction injectProperties(node, propertiesConfig, pid) {\r\n if (!node) {\r\n console.warn('node is null.');\r\n return;\r\n }\r\n for (var key in propertiesConfig) {\r\n if (skipKeys.indexOf(key) >= 0) {\r\n continue;\r\n }\r\n var propertyOfConfig = propertiesConfig[key];\r\n var propertyOfInstance = node[key];\r\n if (typeof propertyOfConfig === 'object') {\r\n if (propertyOfInstance instanceof ScillaEvent) {\r\n injectEvent(propertyOfInstance, propertyOfConfig, pid);\r\n }\r\n else if (propertyOfConfig._type_ === 'raw') {\r\n node[key] = propertyOfInstance = propertyOfConfig.data;\r\n }\r\n else {\r\n if (Array.isArray(propertyOfConfig) && !propertyOfInstance) {\r\n node[key] = propertyOfInstance = [];\r\n }\r\n node[key] = injectObject(propertyOfInstance, propertyOfConfig, pid);\r\n }\r\n }\r\n else {\r\n injectBaseType(node, key, propertyOfConfig, pid);\r\n }\r\n }\r\n}\r\nfunction injectObject(propertyOfInstance, propertyOfConfig, pid) {\r\n if (propertyOfInstance === undefined) {\r\n if (propertyOfConfig._type_) {\r\n var def = getDefByName(propertyOfConfig._type_);\r\n if (def) {\r\n var constructorArgs = propertyOfConfig._constructor_;\r\n if (constructorArgs && constructorArgs.length > 0) {\r\n propertyOfInstance = def.constructor.apply(null, constructorArgs);\r\n }\r\n else {\r\n propertyOfInstance = new def();\r\n }\r\n }\r\n }\r\n }\r\n if (propertyOfInstance) {\r\n injectProperties(propertyOfInstance, propertyOfConfig, pid);\r\n }\r\n return propertyOfInstance;\r\n}\r\nfunction injectBaseType(node, key, propertyOfConfig, pid) {\r\n var propertyValue;\r\n if (typeof propertyOfConfig === 'string') {\r\n propertyValue = getLink(propertyOfConfig, pid);\r\n }\r\n else {\r\n propertyValue = propertyOfConfig;\r\n }\r\n node[key] = propertyValue;\r\n}\r\nfunction injectEvent(event, config, pid) {\r\n var e_2, _a;\r\n try {\r\n for (var config_1 = tslib_1.__values(config), config_1_1 = config_1.next(); !config_1_1.done; config_1_1 = config_1.next()) {\r\n var _b = config_1_1.value, entityName = _b.entity, componentIndex = _b.component, methodName = _b.method, param = _b.param;\r\n if (entityName && componentIndex >= 0 && methodName) {\r\n var entity = getLink(entityName, pid);\r\n var component = entity.components[componentIndex];\r\n var method = component[methodName];\r\n if (method) {\r\n if (param == undefined) {\r\n event.addListener(method, component, 0);\r\n }\r\n else {\r\n event.addListener(method, component, 0, param);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (config_1_1 && !config_1_1.done && (_a = config_1.return)) _a.call(config_1);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n}\r\nfunction getLink(str, pid) {\r\n var result;\r\n if (str.indexOf('res|') == 0) {\r\n var uuid = str.substr(4);\r\n result = getRes(uuid);\r\n }\r\n else if (str.indexOf('entity|') == 0) {\r\n var uuid = transPrefabUUID(str.substr(7), pid);\r\n result = entityCache[uuid];\r\n }\r\n else {\r\n result = str;\r\n }\r\n return result;\r\n}\r\nfunction transPrefabUUID(uuid, pid) {\r\n return pid ? pid + '_' + uuid : uuid;\r\n}\r\n//# sourceMappingURL=interpreter.js.map"}
{"map":"{\"version\":3,\"file\":\"math.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/math.ts\"],\"names\":[],\"mappings\":\";AAcA,MAAM,UAAU,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,gBAAwB;IAAxB,iCAAA,EAAA,wBAAwB;IAC3D,IAAM,IAAI,GAAG,OAAO,KAAK,CAAC;IAC1B,IAAI,IAAI,KAAK,OAAO,GAAG,EAAE;QACxB,OAAO,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;KAC7C;IAED,IAAI,CAAC,gBAAgB,EAAE;QACtB,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;KAChC;IAED,IAAI,IAAI,GAAG,GAAG,GAAG,KAAK,CAAC;IACvB,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1C,IAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC;IAEvC,OAAO,KAAK,GAAG,QAAQ,GAAG,CAAC,GAAG,IAAI,CAAC;AACpC,CAAC;AAYD,MAAM,UAAU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C,CAAC;QAChB,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;KACd;IAED,OAAO,GAAG,CAAC;AACZ,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nexport function lerp(begin, end, t, allowOutOfBounds) {\r\n if (allowOutOfBounds === void 0) { allowOutOfBounds = false; }\r\n var type = typeof begin;\r\n if (type !== typeof end) {\r\n console.error('begin and end need same type');\r\n }\r\n if (!allowOutOfBounds) {\r\n t = Math.max(0, Math.min(1, t));\r\n }\r\n var sign = end - begin;\r\n sign = sign > 0 ? 1 : (sign < 0 ? -1 : 0);\r\n var distance = Math.abs(end - begin);\r\n return begin + distance * t * sign;\r\n}\r\nexport function lerpObj(begin, end, t, clazz, fields, allowOutOfBounds) {\r\n if (allowOutOfBounds === void 0) { allowOutOfBounds = false; }\r\n var e_1, _a;\r\n var type = typeof begin;\r\n if (type !== typeof end) {\r\n console.error('begin and end need same type');\r\n }\r\n var temp = new clazz();\r\n try {\r\n for (var fields_1 = tslib_1.__values(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) {\r\n var field = fields_1_1.value;\r\n temp[field] = lerp(begin[field], end[field], t, allowOutOfBounds);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (fields_1_1 && !fields_1_1.done && (_a = fields_1.return)) _a.call(fields_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n return temp;\r\n}\r\nexport function makeRandomInt(max, min) {\r\n if (min === void 0) { min = 0; }\r\n return Math.floor(Math.random() * (max - min)) + min;\r\n}\r\nexport function mixArray(arr) {\r\n for (var i = 0, len = Math.round(arr.length / 2); i < len; i++) {\r\n var a = makeRandomInt(arr.length);\r\n var b = makeRandomInt(arr.length);\r\n var temp = arr[a];\r\n arr[a] = arr[b];\r\n arr[b] = temp;\r\n }\r\n return arr;\r\n}\r\n//# sourceMappingURL=math.js.map"}
{"map":"{\"version\":3,\"file\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C,CAAC;CACL\"}","code":"var lastTime = 0;\r\nvar vendors = ['webkit', 'moz'];\r\nfor (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {\r\n window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'];\r\n window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] ||\r\n window[vendors[x] + 'CancelRequestAnimationFrame'];\r\n}\r\nif (!window.requestAnimationFrame) {\r\n window.requestAnimationFrame = function (callback) {\r\n var currTime = new Date().getTime();\r\n var timeToCall = Math.max(0, 16.7 - (currTime - lastTime));\r\n var id = window.setTimeout(function () {\r\n callback(currTime + timeToCall);\r\n }, timeToCall);\r\n lastTime = currTime + timeToCall;\r\n return id;\r\n };\r\n}\r\nif (!window.cancelAnimationFrame) {\r\n window.cancelAnimationFrame = function (id) {\r\n clearTimeout(id);\r\n };\r\n}\r\n//# sourceMappingURL=requestAnimationFrame.js.map"}
{"map":"{\"version\":3,\"file\":\"Tween.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Tween.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAE5C,IAAK,MAOJ;AAPD,WAAK,MAAM;IACV,mCAAI,CAAA;IACJ,yCAAO,CAAA;IACP,uCAAM,CAAA;IACN,qCAAK,CAAA;IACL,yCAAO,CAAA;IACP,yCAAO,CAAA;AACR,CAAC,EAPI,MAAM,KAAN,MAAM,QAOV;AAqBD,MAAM,UAAU,WAAW,CAAC,MAAuB,EAAE,QAAgB,EAAE,OAAsB,EAAE,OAAY;IAAtD,yBAAA,EAAA,gBAAgB;IAA0B,wBAAA,EAAA,YAAY;IAC1G,IAAI,QAAQ,EAAE;QACb,UAAU,CAAC,MAAM,CAAC,CAAC;KACnB;IAED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C,AA1PD,CAA2B,UAAU,GA0PpC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { lerp, lerpObj } from \"../tools/math\";\r\nimport { injectProp } from \"../tools/utils\";\r\nimport HashObject from \"../core/HashObject\";\r\nvar STATUS;\r\n(function (STATUS) {\r\n STATUS[STATUS[\"IDLE\"] = 0] = \"IDLE\";\r\n STATUS[STATUS[\"PENDING\"] = 1] = \"PENDING\";\r\n STATUS[STATUS[\"DO_SET\"] = 2] = \"DO_SET\";\r\n STATUS[STATUS[\"DO_TO\"] = 3] = \"DO_TO\";\r\n STATUS[STATUS[\"DO_WAIT\"] = 4] = \"DO_WAIT\";\r\n STATUS[STATUS[\"DO_CALL\"] = 5] = \"DO_CALL\";\r\n})(STATUS || (STATUS = {}));\r\nexport function createTween(target, override, options, plugins) {\r\n if (override === void 0) { override = false; }\r\n if (plugins === void 0) { plugins = []; }\r\n if (override) {\r\n killTweens(target);\r\n }\r\n var tween = new Tween(target, options);\r\n addTween(target, tween);\r\n return tween;\r\n}\r\nexport function killTweens(target) {\r\n var e_1, _a;\r\n var tweens = target['tweens'];\r\n if (tweens) {\r\n try {\r\n for (var tweens_1 = tslib_1.__values(tweens), tweens_1_1 = tweens_1.next(); !tweens_1_1.done; tweens_1_1 = tweens_1.next()) {\r\n var tween = tweens_1_1.value;\r\n tween.stop();\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (tweens_1_1 && !tweens_1_1.done && (_a = tweens_1.return)) _a.call(tweens_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n tweens.splice(0);\r\n }\r\n}\r\nfunction addTween(target, tween) {\r\n var tweens = target['tweens'];\r\n if (!tweens) {\r\n tweens = target['tweens'] = [];\r\n }\r\n tweens.push(tween);\r\n}\r\nvar Tween = (function (_super) {\r\n tslib_1.__extends(Tween, _super);\r\n function Tween(target, options, plugins) {\r\n if (plugins === void 0) { plugins = []; }\r\n var _this = _super.call(this) || this;\r\n _this.queue = [];\r\n _this.loopCounting = 0;\r\n _this.status = STATUS.IDLE;\r\n _this.onUpdate = function (t) {\r\n _this.t = t;\r\n switch (_this.status) {\r\n case STATUS.DO_TO:\r\n var _a = _this, target = _a.target, startTime = _a.startTime, fromProps = _a.fromProps, toProps = _a.toProps, duration = _a.duration, ease = _a.ease, clazz = _a.clazz, fields = _a.fields;\r\n var passTime = t - startTime;\r\n var timeRatio = Math.min(1, passTime / duration);\r\n var ratio = timeRatio;\r\n if (ease) {\r\n ratio = ease(ratio);\r\n }\r\n for (var key in fromProps) {\r\n var toValue = toProps[key];\r\n var fromValue = fromProps[key];\r\n var currentValue = void 0;\r\n if (timeRatio < 1) {\r\n if (typeof toValue == 'object') {\r\n currentValue = lerpObj(fromValue, toValue, ratio, clazz, fields || Object.keys(toValue), true);\r\n }\r\n else {\r\n currentValue = lerp(fromValue, toValue, ratio, true);\r\n }\r\n }\r\n else {\r\n currentValue = toValue;\r\n }\r\n target[key] = currentValue;\r\n if (timeRatio >= 1) {\r\n _this._doNextAction();\r\n }\r\n }\r\n break;\r\n case STATUS.DO_WAIT:\r\n var _b = _this, startTime = _b.startTime, duration = _b.duration;\r\n var passTime = t - startTime;\r\n if (passTime > duration) {\r\n _this._doNextAction();\r\n }\r\n break;\r\n }\r\n };\r\n _this._doPlay = function (resetLoopCounting) {\r\n addTween(_this.target, _this);\r\n _this._start(resetLoopCounting);\r\n };\r\n _this._readyStart = function (t) {\r\n _this.t = t;\r\n _this._doStart();\r\n };\r\n _this._doNextAction = function () {\r\n if (_this.step < _this.queue.length) {\r\n var action = _this.queue[_this.step++];\r\n switch (action.action) {\r\n case 'set':\r\n _this._set(action.props);\r\n break;\r\n case 'to':\r\n if (action.duration > 0) {\r\n _this._to(action.props, action.duration, action.ease);\r\n }\r\n else {\r\n _this._set(action.props);\r\n }\r\n break;\r\n case 'wait':\r\n _this._wait(action.duration);\r\n break;\r\n case 'call':\r\n _this._call(action.func, action.thisObj, action.params);\r\n break;\r\n }\r\n }\r\n else {\r\n if (_this.loop < 0) {\r\n _this._doStart();\r\n }\r\n else if (_this.loopCounting < _this.loop) {\r\n _this._doStart();\r\n }\r\n else {\r\n _this.status = STATUS.IDLE;\r\n }\r\n }\r\n };\r\n _this.target = target;\r\n _this.loop = options ? options.loop : 0;\r\n _this.autoPlay = options ? (options.hasOwnProperty('autoPlay') ? options.autoPlay : true) : true;\r\n _this.clazz = options ? options.clazz : null;\r\n _this.fields = options ? options.fields : null;\r\n _this.plugins = plugins;\r\n if (options && options.initFields && options.initFields.length > 0) {\r\n _this.initProps = _this.getInitProps(options.initFields);\r\n }\r\n return _this;\r\n }\r\n Tween.prototype.getInitProps = function (fields) {\r\n var e_2, _a;\r\n var props = {};\r\n try {\r\n for (var fields_1 = tslib_1.__values(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) {\r\n var field = fields_1_1.value;\r\n if (field in this.target) {\r\n props[field] = this.target[field];\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (fields_1_1 && !fields_1_1.done && (_a = fields_1.return)) _a.call(fields_1);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n return props;\r\n };\r\n Tween.prototype.set = function (props) {\r\n this.queue.push({ action: 'set', props: props });\r\n if (this.autoPlay) {\r\n this._start();\r\n }\r\n return this;\r\n };\r\n Tween.prototype.to = function (props, duration, ease) {\r\n this.queue.push({ action: 'to', props: props, duration: duration, ease: ease });\r\n if (this.autoPlay) {\r\n this._start();\r\n }\r\n return this;\r\n };\r\n Tween.prototype.wait = function (duration) {\r\n this.queue.push({ action: 'wait', duration: duration });\r\n if (this.autoPlay) {\r\n this._start();\r\n }\r\n return this;\r\n };\r\n Tween.prototype.call = function (func, thisObj, params) {\r\n this.queue.push({ action: 'call', func: func, thisObj: thisObj, params: params });\r\n if (this.autoPlay) {\r\n this._start();\r\n }\r\n return this;\r\n };\r\n Tween.prototype.play = function (override, delay, resetLoopCounting) {\r\n if (override === void 0) { override = false; }\r\n if (delay === void 0) { delay = 0; }\r\n if (resetLoopCounting === void 0) { resetLoopCounting = true; }\r\n if (override) {\r\n killTweens(this.target);\r\n }\r\n if (delay > 0) {\r\n setTimeout(this._doPlay, delay, resetLoopCounting);\r\n }\r\n else {\r\n this._doPlay(resetLoopCounting);\r\n }\r\n };\r\n Tween.prototype.stop = function () {\r\n this.status = STATUS.IDLE;\r\n this.target.cancelOnNextTick(this.onUpdate);\r\n };\r\n Tween.prototype._set = function (props) {\r\n this.status = STATUS.DO_SET;\r\n injectProp(this.target, props);\r\n this._doNextAction();\r\n };\r\n Tween.prototype._to = function (props, duration, ease) {\r\n this.status = STATUS.DO_TO;\r\n this.startTime = this.t;\r\n this.fromProps = {};\r\n for (var key in props) {\r\n this.fromProps[key] = this.target[key];\r\n }\r\n this.toProps = {};\r\n injectProp(this.toProps, props);\r\n this.ease = ease;\r\n this.duration = duration;\r\n };\r\n Tween.prototype._wait = function (duration) {\r\n this.status = STATUS.DO_WAIT;\r\n this.startTime = this.t;\r\n this.duration = duration;\r\n };\r\n Tween.prototype._call = function (func, thisObj, params) {\r\n this.status = STATUS.DO_CALL;\r\n func.apply(thisObj, params);\r\n this._doNextAction();\r\n };\r\n Tween.prototype._start = function (resetLoopCounting) {\r\n if (resetLoopCounting === void 0) { resetLoopCounting = true; }\r\n this.status = STATUS.PENDING;\r\n if (resetLoopCounting) {\r\n this.loopCounting = 0;\r\n }\r\n this.target.callOnNextTick(this._readyStart);\r\n this.target.callOnNextTick(this.onUpdate, false);\r\n };\r\n Tween.prototype._doStart = function () {\r\n if (this.status == STATUS.IDLE) {\r\n return;\r\n }\r\n this.step = 0;\r\n this.loopCounting++;\r\n if (this.loopCounting > 1 && this.initProps) {\r\n injectProp(this.target, this.initProps);\r\n }\r\n this._doNextAction();\r\n };\r\n ;\r\n return Tween;\r\n}(HashObject));\r\nexport { Tween };\r\n//# sourceMappingURL=Tween.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YAC5B,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;SACtB;QAED,OAAO,IAAI,CAAC;IACb,CAAC;IACF,mBAAC;AAAD,CAAC,AA9OD,IA8OC\"}","code":"'use strict';\r\nvar has = Object.prototype.hasOwnProperty, prefix = '~';\r\nfunction Events() { }\r\nif (Object.create) {\r\n Events.prototype = Object.create(null);\r\n if (!new Events().__proto__)\r\n prefix = '';\r\n}\r\nfunction EE(fn, context, once) {\r\n this.fn = fn;\r\n this.context = context;\r\n this.once = once || false;\r\n}\r\nfunction addListener(emitter, event, fn, context, once) {\r\n if (typeof fn !== 'function') {\r\n throw new TypeError('The listener must be a function');\r\n }\r\n var listener = new EE(fn, context || emitter, once), evt = prefix ? prefix + event : event;\r\n if (!emitter._events[evt])\r\n emitter._events[evt] = listener, emitter._eventsCount++;\r\n else if (!emitter._events[evt].fn)\r\n emitter._events[evt].push(listener);\r\n else\r\n emitter._events[evt] = [emitter._events[evt], listener];\r\n return emitter;\r\n}\r\nfunction clearEvent(emitter, evt) {\r\n if (--emitter._eventsCount === 0)\r\n emitter._events = new Events();\r\n else\r\n delete emitter._events[evt];\r\n}\r\nvar EventEmitter = (function () {\r\n function EventEmitter() {\r\n this._events = new Events();\r\n this._eventsCount = 0;\r\n this.off = this.removeListener;\r\n this.addListener = this.on;\r\n }\r\n Object.defineProperty(EventEmitter, \"prefixed\", {\r\n get: function () {\r\n return prefix;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n EventEmitter.prototype.eventNames = function () {\r\n var names = [], events, name;\r\n if (this._eventsCount === 0)\r\n return names;\r\n for (name in (events = this._events)) {\r\n if (has.call(events, name))\r\n names.push(prefix ? name.slice(1) : name);\r\n }\r\n return names;\r\n };\r\n EventEmitter.prototype.listeners = function (event) {\r\n var evt = prefix ? prefix + event : event, handlers = this._events[evt];\r\n if (!handlers)\r\n return [];\r\n if (handlers.fn)\r\n return [handlers.fn];\r\n for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\r\n ee[i] = handlers[i].fn;\r\n }\r\n return ee;\r\n };\r\n EventEmitter.prototype.listenerCount = function (event) {\r\n var evt = prefix ? prefix + event : event, listeners = this._events[evt];\r\n if (!listeners)\r\n return 0;\r\n if (listeners.fn)\r\n return 1;\r\n return listeners.length;\r\n };\r\n EventEmitter.prototype.emit = function (event, a1, a2, a3, a4, a5) {\r\n var evt = prefix ? prefix + event : event;\r\n if (!this._events[evt])\r\n return false;\r\n var listeners = this._events[evt], len = arguments.length, args, i;\r\n if (listeners.fn) {\r\n if (listeners.once)\r\n this.removeListener(event, listeners.fn, undefined, true);\r\n switch (len) {\r\n case 1: return listeners.fn.call(listeners.context), true;\r\n case 2: return listeners.fn.call(listeners.context, a1), true;\r\n case 3: return listeners.fn.call(listeners.context, a1, a2), true;\r\n case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\r\n case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\r\n case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\r\n }\r\n for (i = 1, args = new Array(len - 1); i < len; i++) {\r\n args[i - 1] = arguments[i];\r\n }\r\n listeners.fn.apply(listeners.context, args);\r\n }\r\n else {\r\n var length = listeners.length, j;\r\n for (i = 0; i < length; i++) {\r\n if (listeners[i].once)\r\n this.removeListener(event, listeners[i].fn, undefined, true);\r\n switch (len) {\r\n case 1:\r\n listeners[i].fn.call(listeners[i].context);\r\n break;\r\n case 2:\r\n listeners[i].fn.call(listeners[i].context, a1);\r\n break;\r\n case 3:\r\n listeners[i].fn.call(listeners[i].context, a1, a2);\r\n break;\r\n case 4:\r\n listeners[i].fn.call(listeners[i].context, a1, a2, a3);\r\n break;\r\n default:\r\n if (!args)\r\n for (j = 1, args = new Array(len - 1); j < len; j++) {\r\n args[j - 1] = arguments[j];\r\n }\r\n listeners[i].fn.apply(listeners[i].context, args);\r\n }\r\n }\r\n }\r\n return true;\r\n };\r\n EventEmitter.prototype.on = function (event, fn, context) {\r\n return addListener(this, event, fn, context, false);\r\n };\r\n ;\r\n EventEmitter.prototype.once = function (event, fn, context) {\r\n return addListener(this, event, fn, context, true);\r\n };\r\n EventEmitter.prototype.removeListener = function (event, fn, context, once) {\r\n var evt = prefix ? prefix + event : event;\r\n if (!this._events[evt])\r\n return this;\r\n if (!fn) {\r\n clearEvent(this, evt);\r\n return this;\r\n }\r\n var listeners = this._events[evt];\r\n if (listeners.fn) {\r\n if (listeners.fn === fn &&\r\n (!once || listeners.once) &&\r\n (!context || listeners.context === context)) {\r\n clearEvent(this, evt);\r\n }\r\n }\r\n else {\r\n for (var i = 0, events = [], length = listeners.length; i < length; i++) {\r\n if (listeners[i].fn !== fn ||\r\n (once && !listeners[i].once) ||\r\n (context && listeners[i].context !== context)) {\r\n events.push(listeners[i]);\r\n }\r\n }\r\n if (events.length)\r\n this._events[evt] = events.length === 1 ? events[0] : events;\r\n else\r\n clearEvent(this, evt);\r\n }\r\n return this;\r\n };\r\n EventEmitter.prototype.removeAllListeners = function (event) {\r\n var evt;\r\n if (event) {\r\n evt = prefix ? prefix + event : event;\r\n if (this._events[evt])\r\n clearEvent(this, evt);\r\n }\r\n else {\r\n this._events = new Events();\r\n this._eventsCount = 0;\r\n }\r\n return this;\r\n };\r\n return EventEmitter;\r\n}());\r\nexport default EventEmitter;\r\n//# sourceMappingURL=EventEmitter.js.map"}
{"map":"{\"version\":3,\"file\":\"RenderContext.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../node_modules/scilla-core/src/core/context/RenderContext.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAGlD,IAAI,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC;AAEpC,IAAI,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAG,CAAC,CAAC;AAEjC,IAAI,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,iBAAiB,CAAC;AAE/D,IAAI,cAAc,CAAC;AASnB,MAA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AAC,CAAC,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC;IAE9E,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;IACtB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,UAAU,GAAG,IAAI,CAAC;IACxC,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,WAAW,GAAG,IAAI,CAAC;AAC3C,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { updateScaleMode } from \"./InteractContext\";\r\nvar _canvas, context, width, height;\r\nvar scaleX, scaleY, rotation = 0;\r\nvar _designWidth, _designHeight, _scaleMode, _modifyCanvasSize;\r\nvar shortcutCanvas;\r\nexport var ScaleMode = {\r\n SHOW_ALL: 'showAll',\r\n FIXED_WIDTH: 'fixedWidth',\r\n FIXED_HEIGHT: 'fixedHeight',\r\n};\r\nexport function setupContext(options) {\r\n if (options === void 0) { options = {}; }\r\n var canvas = options.canvas, designWidth = options.designWidth, designHeight = options.designHeight, _a = options.scaleMode, scaleMode = _a === void 0 ? ScaleMode.SHOW_ALL : _a, _b = options.modifyCanvasSize, modifyCanvasSize = _b === void 0 ? false : _b;\r\n _designWidth = designWidth;\r\n _designHeight = designHeight;\r\n _scaleMode = scaleMode;\r\n _modifyCanvasSize = modifyCanvasSize;\r\n _canvas = canvas;\r\n context = canvas.getContext('2d');\r\n updateScaleModeSelf();\r\n}\r\nexport function clear() {\r\n context.setTransform(1, 0, 0, 1, 0, 0);\r\n context.clearRect(0, 0, width, height);\r\n}\r\nexport function getContext() {\r\n return context;\r\n}\r\nexport function getStageSize() {\r\n return {\r\n width: width,\r\n height: height,\r\n };\r\n}\r\nexport function getStageScale() {\r\n return {\r\n x: scaleX,\r\n y: scaleY,\r\n };\r\n}\r\nexport function getStageCenter() {\r\n return {\r\n x: width / 2,\r\n y: height / 2,\r\n };\r\n}\r\nexport function createCanvas() {\r\n return document.createElement('canvas');\r\n}\r\nexport function shortcut(type, params) {\r\n if (type === void 0) { type = 0; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var targetImg, dataUrl, img;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (!(params.bounds || params.zoomToDom)) return [3, 3];\r\n dataUrl = _canvas.toDataURL('image/png');\r\n return [4, dataUrlToImage(dataUrl)];\r\n case 1:\r\n img = _a.sent();\r\n return [4, shortcutWithSize(img, type, params.imgType, params.quality, params.bounds, params.zoomToDom ? scaleX : 1)];\r\n case 2:\r\n targetImg = _a.sent();\r\n return [3, 4];\r\n case 3:\r\n targetImg = _canvas.toDataURL(params.imgType, params.quality);\r\n _a.label = 4;\r\n case 4: return [2, targetImg];\r\n }\r\n });\r\n });\r\n}\r\nfunction dataUrlToImage(dataUrl) {\r\n return new Promise(function (resolve, reject) {\r\n var image = new Image();\r\n image.onload = function () {\r\n resolve(image);\r\n };\r\n image.onerror = function (e) {\r\n reject(e);\r\n };\r\n image.src = dataUrl;\r\n });\r\n}\r\nfunction shortcutWithSize(img, type, imgType, quality, bounds, scale) {\r\n if (scale === void 0) { scale = 1; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var sx, sy, sw, sh, dw, dh, context, dataUrl, _a;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n if (!shortcutCanvas) {\r\n shortcutCanvas = createCanvas();\r\n }\r\n sx = bounds ? bounds.x || 0 : 0;\r\n sy = bounds ? bounds.y || 0 : 0;\r\n sw = bounds ? (bounds.width ? Math.min(bounds.width, width) : width) : width;\r\n sh = bounds ? (bounds.height ? Math.min(bounds.height, height) : height) : height;\r\n dw = sw * scale;\r\n dh = sh * scale;\r\n shortcutCanvas.width = dw;\r\n shortcutCanvas.height = dh;\r\n context = shortcutCanvas.getContext('2d');\r\n context.drawImage(img, sx, sy, sw, sh, 0, 0, dw, dh);\r\n dataUrl = shortcutCanvas.toDataURL('image/' + imgType, quality);\r\n _a = type;\r\n switch (_a) {\r\n case 0: return [3, 1];\r\n case 1: return [3, 3];\r\n }\r\n return [3, 4];\r\n case 1: return [4, dataUrlToImage(dataUrl)];\r\n case 2: return [2, _b.sent()];\r\n case 3: return [2, dataUrl];\r\n case 4: return [2];\r\n }\r\n });\r\n });\r\n}\r\nfunction updateScaleModeSelf() {\r\n var parent = _canvas.parentElement;\r\n var containerWidth = parent.clientWidth;\r\n var containerHeight = parent.clientHeight;\r\n var designWidth = _designWidth || containerWidth;\r\n var designHeight = _designHeight || containerHeight;\r\n scaleX = containerWidth / designWidth;\r\n scaleY = containerHeight / designHeight;\r\n switch (_scaleMode) {\r\n case ScaleMode.SHOW_ALL:\r\n width = designWidth;\r\n height = designHeight;\r\n break;\r\n case ScaleMode.FIXED_WIDTH:\r\n width = designWidth;\r\n if (_modifyCanvasSize) {\r\n height = designHeight;\r\n }\r\n else {\r\n height = containerHeight / scaleX;\r\n }\r\n scaleY = scaleX;\r\n break;\r\n case ScaleMode.FIXED_HEIGHT:\r\n if (_modifyCanvasSize) {\r\n width = designWidth;\r\n }\r\n else {\r\n width = containerWidth / scaleY;\r\n }\r\n height = designHeight;\r\n scaleX = scaleY;\r\n break;\r\n }\r\n updateScaleMode(scaleX, scaleY, rotation);\r\n var styleWidth = _modifyCanvasSize ? designWidth * scaleX : containerWidth;\r\n var styleHeight = _modifyCanvasSize ? designHeight * scaleY : containerHeight;\r\n _canvas.width = width;\r\n _canvas.height = height;\r\n _canvas.style.display = 'block';\r\n _canvas.style.width = styleWidth + 'px';\r\n _canvas.style.height = styleHeight + 'px';\r\n}\r\n//# sourceMappingURL=RenderContext.js.map"}
{"map":"{\"version\":3,\"file\":\"Bounds.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Bounds.ts\"],\"names\":[],\"mappings\":\"AAQA;IAMC,gBAAY,CAAK,EAAE,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,OAAO,IAAI,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;eACnD,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,MAAM,CAAC;IACxE,CAAC;IAED,yBAAQ,GAAR;QACO,IAAA,SAA4B,EAA3B,QAAC,EAAE,QAAC,EAAE,gBAAK,EAAE,kBAAc,CAAC;QACnC,OAAO,KAAK,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,UAAU,GAAG,KAAK,GAAG,WAAW,GAAG,MAAM,GAAG,GAAG,CAAC;IACjF,CAAC;IACF,aAAC;AAAD,CAAC,AAjHD,IAiHC\"}","code":"var Bounds = (function () {\r\n function Bounds(x, y, width, height) {\r\n if (x === void 0) { x = 0; }\r\n if (y === void 0) { y = 0; }\r\n if (width === void 0) { width = 0; }\r\n if (height === void 0) { height = 0; }\r\n this.x = x;\r\n this.y = y;\r\n this.width = width;\r\n this.height = height;\r\n }\r\n Object.defineProperty(Bounds.prototype, \"left\", {\r\n get: function () {\r\n return this.x;\r\n },\r\n set: function (v) {\r\n this.x = v;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Bounds.prototype, \"top\", {\r\n get: function () {\r\n return this.y;\r\n },\r\n set: function (v) {\r\n this.y = v;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Bounds.prototype, \"right\", {\r\n get: function () {\r\n return this.x + this.width;\r\n },\r\n set: function (v) {\r\n this.width = v - this.x;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Bounds.prototype, \"bottom\", {\r\n get: function () {\r\n return this.y + this.height;\r\n },\r\n set: function (v) {\r\n this.height = v - this.y;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Bounds.prototype.contains = function (x, y) {\r\n return this.x <= x &&\r\n this.x + this.width >= x &&\r\n this.y <= y &&\r\n this.y + this.height >= y;\r\n };\r\n Bounds.prototype.setTo = function (x, y, width, height) {\r\n this.x = x;\r\n this.y = y;\r\n this.width = width;\r\n this.height = height;\r\n };\r\n Bounds.prototype.copyFrom = function (target) {\r\n this.x = target.x;\r\n this.y = target.y;\r\n this.width = target.width;\r\n this.height = target.height;\r\n };\r\n Bounds.prototype.clone = function () {\r\n return new Bounds(this.x, this.y, this.width, this.height);\r\n };\r\n Bounds.prototype.inflate = function (dx, dy) {\r\n this.x -= dx;\r\n this.width += 2 * dx;\r\n this.y -= dy;\r\n this.height += 2 * dy;\r\n };\r\n Bounds.prototype.isEmpty = function () {\r\n return this.width <= 0 || this.height <= 0;\r\n };\r\n Bounds.prototype.setEmpty = function () {\r\n this.x = 0;\r\n this.y = 0;\r\n this.width = 0;\r\n this.height = 0;\r\n };\r\n Bounds.prototype.intersects = function (toIntersect) {\r\n return Math.max(this.x, toIntersect.x) <= Math.min(this.right, toIntersect.right)\r\n && Math.max(this.y, toIntersect.y) <= Math.min(this.bottom, toIntersect.bottom);\r\n };\r\n Bounds.prototype.containsBounds = function (bounds) {\r\n var r1 = bounds.x + bounds.width;\r\n var b1 = bounds.y + bounds.height;\r\n var r2 = this.x + this.width;\r\n var b2 = this.y + this.height;\r\n return (bounds.x >= this.x) && (bounds.x < r2) && (bounds.y >= this.y) && (bounds.y < b2) && (r1 > this.x) && (r1 <= r2) && (b1 > this.y) && (b1 <= b2);\r\n };\r\n Bounds.prototype.equals = function (toCompare) {\r\n if (this === toCompare) {\r\n return true;\r\n }\r\n return this.x === toCompare.x && this.y === toCompare.y\r\n && this.width === toCompare.width && this.height === toCompare.height;\r\n };\r\n Bounds.prototype.toString = function () {\r\n var _a = this, x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n return \"(x=\" + x + \", y=\" + y + \", width=\" + width + \", height=\" + height + \")\";\r\n };\r\n return Bounds;\r\n}());\r\nexport default Bounds;\r\n//# sourceMappingURL=Bounds.js.map"}
{"map":"{\"version\":3,\"file\":\"Size.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Size.ts\"],\"names\":[],\"mappings\":\";AAGA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAKtD;IAQC,cAAY,KAAW,EAAE,MAAY;QAAzB,sBAAA,EAAA,WAAW;QAAE,uBAAA,EAAA,YAAY;QACpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,qBAAM,GAAN;QACC,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;IACnB,CAAC;IAED,sBAAO,GAAP;IAEA,CAAC;IAED,kBAAG,GAAH,UAAI,KAAM,EAAE,MAAO;QAClB,IAAI,KAAK,KAAK,SAAS,EAAE;YACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACnB;QAED,IAAI,MAAM,KAAK,SAAS,EAAE;YACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;SACrB;IACF,CAAC;IAED,oBAAK,GAAL;QACC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED,uBAAQ,GAAR,UAAS,MAAM;QACd,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,uBAAQ,GAAR,UAAS,KAAK,EAAE,GAAG,EAAE,QAAQ;QAC5B,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtD,CAAC;IAzCD;QADC,iBAAiB;uCACJ;IAEd;QADC,iBAAiB;wCACH;IAwChB,WAAC;CAAA,AA5CD,IA4CC;eA5CoB,IAAI\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { dirtyFieldTrigger } from \"../tools/decorators\";\r\nvar Size = (function () {\r\n function Size(width, height) {\r\n if (width === void 0) { width = NaN; }\r\n if (height === void 0) { height = NaN; }\r\n this.width = width;\r\n this.height = height;\r\n }\r\n Size.prototype.setNaN = function () {\r\n this.width = NaN;\r\n this.height = NaN;\r\n };\r\n Size.prototype.isEmpty = function () {\r\n };\r\n Size.prototype.set = function (width, height) {\r\n if (width !== undefined) {\r\n this.width = width;\r\n }\r\n if (height !== undefined) {\r\n this.height = height;\r\n }\r\n };\r\n Size.prototype.clone = function () {\r\n return new Size(this.width, this.height);\r\n };\r\n Size.prototype.copyFrom = function (target) {\r\n this.width = target.width;\r\n this.height = target.height;\r\n };\r\n Size.prototype.onModify = function (value, key, oldValue) {\r\n this.onChange && this.onChange(value, key, oldValue);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Size.prototype, \"width\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Size.prototype, \"height\", void 0);\r\n return Size;\r\n}());\r\nexport default Size;\r\n//# sourceMappingURL=Size.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,yBAAyB,CAAC;AACnI,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAC,OAAO,IAAI,OAAO,EAAE,aAAa,EAAC,MAAM,WAAW,CAAA;AAC3D,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA\"}","code":"export { ScillaComponent } from \"./ScillaComponent\";\r\nexport { Entity } from './Entity';\r\nexport { Scene } from './Scene';\r\nexport { ScillaEvent } from './ScillaEvent';\r\nexport { getContext, createCanvas, getStageSize, getStageScale, getStageCenter, shortcut, ScaleMode } from './context/RenderContext';\r\nexport * from './manager';\r\nexport { default as Texture, createTexture } from './Texture';\r\nexport * from './Sheet';\r\nexport * from './FrameAnimation';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"InteractContext.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../node_modules/scilla-core/src/core/context/InteractContext.ts\"],\"names\":[],\"mappings\":\"AAMA,IAAI,OAAO,CAAC;AACZ,IAAI,aAAa,CAAC;AAClB,IAAI,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC;AAEhC,IAAM,EAAE,GAAG,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;AAC7C,IAAM,QAAQ,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAM/E,MAAM,UAAU,YAAY,CAAC,OAAgB;IAAhB,wBAAA,EAAA,YAAgB;IACrC,IAAA,uBAAM,EAAE,mCAAY,CAAY;IAEvC,aAAa,GAAG,YAAY,CAAC;IAE7B,OAAO,GAAG,MAAM,CAAC;IAEjB,YAAY,EAAE,CAAC;AAChB,CAAC;AAQD,MAAM,UAAU,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ;IACvD,OAAO,GAAG,MAAM,CAAC;IACjB,OAAO,GAAG,MAAM,CAAC;IACjB,SAAS,GAAG,QAAQ,CAAC;AACtB,CAAC;AAKD,SAAS,YAAY;IACpB,IAAI,MA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AC,GAAG,KAAK,CAAC,KAAK,GAAG,GAAG,EAAE,IAAI,GAAG,CAAC,CAAC;IACpC,IAAI,SAAS,KAAK,EAAE,EAAE;QACrB,IAAI,GAAG,CAAC,CAAC;QACT,IAAI,GAAG,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;KACrB;SACI,IAAI,SAAS,KAAK,CAAC,EAAE,EAAE;QAC3B,IAAI,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;QACtB,IAAI,GAAG,CAAC,CAAC;KACT;IACD,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC;IACtB,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC;IACtB,OAAO;QACN,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QACnB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QACnB,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,CAAC;KACjC,CAAC;AACH,CAAC\"}","code":"var _canvas;\r\nvar _touchHandler;\r\nvar _scaleX, _scaleY, _rotation;\r\nvar ua = navigator.userAgent.toLowerCase();\r\nvar isMobile = (ua.indexOf('mobile') !== -1 || ua.indexOf('android') !== -1);\r\nexport function setupContext(options) {\r\n if (options === void 0) { options = {}; }\r\n var canvas = options.canvas, touchHandler = options.touchHandler;\r\n _touchHandler = touchHandler;\r\n _canvas = canvas;\r\n addListeners();\r\n}\r\nexport function updateScaleMode(scaleX, scaleY, rotation) {\r\n _scaleX = scaleX;\r\n _scaleY = scaleY;\r\n _rotation = rotation;\r\n}\r\nfunction addListeners() {\r\n if (window.navigator.msPointerEnabled) {\r\n _canvas.addEventListener(\"MSPointerDown\", function (event) {\r\n event.identifier = event.pointerId;\r\n onTouchBegin(event);\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"MSPointerMove\", function (event) {\r\n event.identifier = event.pointerId;\r\n onTouchMove(event);\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"MSPointerUp\", function (event) {\r\n event.identifier = event.pointerId;\r\n onTouchEnd(event);\r\n prevent(event);\r\n }, false);\r\n }\r\n else {\r\n if (!isMobile) {\r\n addMouseListener();\r\n }\r\n addTouchListener();\r\n }\r\n}\r\nfunction prevent(event) {\r\n event.stopPropagation();\r\n if (event[\"isScroll\"] != true && !_canvas['userTyping']) {\r\n event.preventDefault();\r\n }\r\n}\r\nfunction addMouseListener() {\r\n _canvas.addEventListener(\"mousedown\", onTouchBegin);\r\n _canvas.addEventListener(\"mousemove\", onMouseMove);\r\n _canvas.addEventListener(\"mouseup\", onTouchEnd);\r\n}\r\nfunction addTouchListener() {\r\n _canvas.addEventListener(\"touchstart\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchBegin(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"touchmove\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchMove(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"touchend\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchEnd(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"touchcancel\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchEnd(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n}\r\nfunction onTouchBegin(event) {\r\n var location = getLocation(event);\r\n _touchHandler.onTouchBegin(location);\r\n}\r\nfunction onMouseMove(event) {\r\n if (event.buttons === 0) {\r\n onTouchEnd(event);\r\n }\r\n else {\r\n onTouchMove(event);\r\n }\r\n}\r\nfunction onTouchMove(event) {\r\n var location = getLocation(event);\r\n _touchHandler.onTouchMove(location);\r\n}\r\nfunction onTouchEnd(event) {\r\n var location = getLocation(event);\r\n _touchHandler.onTouchEnd(location);\r\n}\r\nfunction getLocation(event) {\r\n var doc = document.documentElement;\r\n var box = _canvas.getBoundingClientRect();\r\n var left = box.left + window.pageXOffset - doc.clientLeft;\r\n var top = box.top + window.pageYOffset - doc.clientTop;\r\n var x = event.pageX - left, newX = x;\r\n var y = event.pageY - top, newY = y;\r\n if (_rotation === 90) {\r\n newX = y;\r\n newY = box.width - x;\r\n }\r\n else if (_rotation === -90) {\r\n newX = box.height - y;\r\n newY = x;\r\n }\r\n newX = newX / _scaleX;\r\n newY = newY / _scaleY;\r\n return {\r\n x: Math.round(newX),\r\n y: Math.round(newY),\r\n identifier: event.identifier || 0,\r\n };\r\n}\r\n//# sourceMappingURL=InteractContext.js.map"}
{"map":"{\"version\":3,\"file\":\"TextStyle.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/TextStyle.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IAIpB,8BAAkB,CAAA;IAIlB,8BAAkB,CAAA;IAIlB,gCAAoB,CAAA;AACrB,CAAC,EAbW,SAAS,KAAT,SAAS,QAapB;AAED,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IAItB,gCAAkB,CAAA;IAIlB,wCAA0B,CAAA;AAC3B,CAAC,EATW,WAAW,KAAX,WAAW,QAStB;AAED,MAAM,CAAN,IAAY,UAiBX;AAjBD,WAAY,UAAU;IAIrB,+BAAiB,CAAA;IAIjB,2BAAa,CAAA;IAIb,+BAAiB,CAAA;IAIjB,iCAAmB,CAAA;AACpB,CAAC,EAjBW,UAAU,KAAV,UAAU,QAiBrB;AAKD;IAAA;QAQC,cAAS,GAAc,SAAS,CAAC,MAAM,CAAC;QAMxC,gBAAW,GAAgB,WAAW,CAAC,MAAM,CAAC;QAM9C,eAAU,GAAe,UAAU,CAAC,MAAM,CAAC;QAM3C,aAAQ,GAAW,EAAE,CAAC;QAMtB,eAAU,GAAW,OAAO,CAAC;IAK9B,CAAC;IAHA,4BAAQ,GAAR,UAAS,KAAK,EAAE,GAAG,EAAE,QAAQ;QAC5B,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IACnE,CAAC;IA5BD;QADC,iBAAiB;gDACsB;IAMxC;QADC,iBAAiB;kDAC4B;IAM9C;QADC,iBAAiB;iDACyB;IAM3C;QADC,iBAAiB;+CACI;IAMtB;QADC,iBAAiB;iDACW;IAK9B,gBAAC;CAAA,AArCD,IAqCC;SArCY,SAAS\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { dirtyFieldTrigger } from \"../tools/decorators\";\r\nexport var FontStyle;\r\n(function (FontStyle) {\r\n FontStyle[\"NORMAL\"] = \"normal\";\r\n FontStyle[\"ITALIC\"] = \"italic\";\r\n FontStyle[\"OBLIQUE\"] = \"oblique\";\r\n})(FontStyle || (FontStyle = {}));\r\nexport var FontVariant;\r\n(function (FontVariant) {\r\n FontVariant[\"NORMAL\"] = \"normal\";\r\n FontVariant[\"SMALL_CAPS\"] = \"small-caps\";\r\n})(FontVariant || (FontVariant = {}));\r\nexport var FontWeight;\r\n(function (FontWeight) {\r\n FontWeight[\"NORMAL\"] = \"normal\";\r\n FontWeight[\"BOLD\"] = \"bold\";\r\n FontWeight[\"BOLDER\"] = \"bolder\";\r\n FontWeight[\"LIGHTER\"] = \"lighter\";\r\n})(FontWeight || (FontWeight = {}));\r\nvar TextStyle = (function () {\r\n function TextStyle() {\r\n this.fontStyle = FontStyle.NORMAL;\r\n this.fontVariant = FontVariant.NORMAL;\r\n this.fontWeight = FontWeight.NORMAL;\r\n this.fontSize = 25;\r\n this.fontFamily = 'Arial';\r\n }\r\n TextStyle.prototype.onModify = function (value, key, oldValue) {\r\n this.onChange && this.onChange(value, key, oldValue, 'textStyle');\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontStyle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontVariant\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontWeight\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontSize\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontFamily\", void 0);\r\n return TextStyle;\r\n}());\r\nexport { TextStyle };\r\n//# sourceMappingURL=TextStyle.js.map"}
{"map":"{\"version\":3,\"file\":\"TextRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/TextRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAE,YAAY,EAAE,UAAU,EAAoB,MAAM,QAAQ,CAAC;AAEvE,IAAA,kDAAkB,EAAE,gDAAiB,CAAe;AAE3D,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IAIpB,0BAAa,CAAA;IAIb,8BAAiB,CAAA;IAIjB,4BAAe,CAAA;AAChB,CAAC,EAbW,SAAS,KAAT,SAAS,QAapB;AAED,MAAM,CAAN,IAAY,aAaX;AAbD,WAAY,aAAa;IAIxB,4BAAW,CAAA;IAIX,kCAAiB,CAAA;IAIjB,kCAAiB,CAAA;AAClB,CAAC,EAbW,aAAa,KAAb,aAAa,QAaxB;AAKD;IAA0C,wCAAe;IAAzD;QAAA,qEAubC;QAlbA,UAAI,GAAW,EAAE,CAAC;QAMlB,cAAQ,GAAQ,IAAI,CAAC;QAMrB,eAAS,GAAc,SAAS,CAAC,MAAM,CAAC;QAMxC,mBAAa,GAAkB,aAAa,CAAC,MAAM,CAAC;QAMpD,iBAAW,GAAW,CAAC,CAAC;QAMxB,mBAAa,GAAW,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xD;QAED,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAE9B,OAAO;YACN,IAAI,MAAA;YACJ,SAAS,WAAA;YACT,UAAU,YAAA;SACV,CAAC;IACH,CAAC;IAKD,oCAAa,GAAb;QACC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAChB,OAAO;SACP;QAED,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACpB,IAAI,CAAC,cAAc,EAAE,CAAC;SACtB;QAED,IAAI,CAAC,SAAS,EAAE,CAAC;QAEjB,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IAjbD;QADC,kBAAkB;8CACD;IAMlB;QADC,iBAAiB;kDACG;IAMrB;QADC,kBAAkB;mDACqB;IAMxC;QADC,kBAAkB;uDACiC;IAMpD;QADC,kBAAkB;qDACK;IAMxB;QADC,kBAAkB;uDACO;IAM1B;QADC,kBAAkB;iDACD;IAWlB;QADC,kBAAkB;mDACoB;IAGvC;QADC,kBAAkB;sDACU;IAgY9B,mBAAC;CAAA,AAvbD,CAA0C,eAAe,GAubxD;eAvboB,YAAY\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nimport { TextStyle, EngineConfig, decorators } from \"scilla\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector, dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nexport var TextAlign;\r\n(function (TextAlign) {\r\n TextAlign[\"LEFT\"] = \"left\";\r\n TextAlign[\"CENTER\"] = \"center\";\r\n TextAlign[\"RIGHT\"] = \"right\";\r\n})(TextAlign || (TextAlign = {}));\r\nexport var VerticalAlign;\r\n(function (VerticalAlign) {\r\n VerticalAlign[\"TOP\"] = \"top\";\r\n VerticalAlign[\"MIDDLE\"] = \"middle\";\r\n VerticalAlign[\"BOTTOM\"] = \"bottom\";\r\n})(VerticalAlign || (VerticalAlign = {}));\r\nvar TextRenderer = (function (_super) {\r\n tslib_1.__extends(TextRenderer, _super);\r\n function TextRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.text = '';\r\n _this.textFlow = null;\r\n _this.textAlign = TextAlign.CENTER;\r\n _this.verticalAlign = VerticalAlign.MIDDLE;\r\n _this.lineSpacing = 0;\r\n _this.letterSpacing = 0;\r\n _this._lineHeight = NaN;\r\n _this._bmpLineHeight = 0;\r\n _this.textStyle = new TextStyle();\r\n _this.useCacheMode = true;\r\n _this.measureCache = {};\r\n return _this;\r\n }\r\n TextRenderer.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n switch (key) {\r\n case 'textFlow':\r\n if (value) {\r\n this.updateTextFlow();\r\n }\r\n break;\r\n case 'textStyle':\r\n value.onChange = this.makeDirty.bind(this);\r\n this.makeDirty();\r\n break;\r\n }\r\n };\r\n TextRenderer.prototype.updateTextFlow = function () {\r\n var e_1, _a;\r\n var text = '';\r\n if (this.textFlow) {\r\n try {\r\n for (var _b = tslib_1.__values(this.textFlow), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var item = _c.value;\r\n text += item.text;\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n }\r\n this._pureText = text;\r\n this.makeDirty();\r\n };\r\n Object.defineProperty(TextRenderer.prototype, \"lineHeight\", {\r\n get: function () {\r\n return isNaN(this._lineHeight) ? (this.isBmpMode ? this._bmpLineHeight : this.textStyle.fontSize * EngineConfig.lineHeightRatio) : this._lineHeight;\r\n },\r\n set: function (value) {\r\n if (this._lineHeight != value) {\r\n this._lineHeight = value;\r\n this.dirty = true;\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TextRenderer.prototype, \"pureText\", {\r\n get: function () {\r\n return this.textFlow ? this._pureText : this.text;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n TextRenderer.prototype.getRenderSize = function () {\r\n return {\r\n width: this._textWidth,\r\n height: this._textHeight,\r\n };\r\n };\r\n TextRenderer.prototype.beforeDraw = function () {\r\n _super.prototype.beforeDraw.call(this);\r\n if (!this.isBmpMode) {\r\n this.applyTextStyle();\r\n }\r\n };\r\n TextRenderer.prototype.applyTextStyle = function () {\r\n var _a = this, context = _a.context, textStyle = _a.textStyle;\r\n var fontStyle = textStyle.fontStyle, fontVariant = textStyle.fontVariant, fontWeight = textStyle.fontWeight, fontSize = textStyle.fontSize, fontFamily = textStyle.fontFamily;\r\n context.font = fontStyle + \" \" + fontVariant + \" \" + fontWeight + \" \" + fontSize + \"px \" + fontFamily;\r\n };\r\n TextRenderer.prototype.fillAndStoke = function () {\r\n if (!this.pureText || this.pureText.length == 0) {\r\n return;\r\n }\r\n var _a = this, context = _a.context, measureCache = _a.measureCache, lineHeight = _a.lineHeight, lineSpacing = _a.lineSpacing, letterSpacing = _a.letterSpacing, rows = _a.rows, textAlign = _a.textAlign, verticalAlign = _a.verticalAlign, isBmpMode = _a.isBmpMode, _b = _a.transform, width = _b.width, height = _b.height;\r\n var rowCount = rows.length;\r\n var x = 0;\r\n switch (textAlign) {\r\n case \"left\":\r\n x = 0;\r\n break;\r\n case \"right\":\r\n x = width;\r\n break;\r\n case \"center\":\r\n default:\r\n x = width / 2;\r\n break;\r\n }\r\n var y = 0;\r\n var drawHeight = rowCount * lineHeight + lineSpacing * (rowCount - 1);\r\n switch (verticalAlign) {\r\n case \"top\":\r\n y = 0;\r\n break;\r\n case \"bottom\":\r\n y = height - drawHeight;\r\n break;\r\n case \"middle\":\r\n default:\r\n y = (height - drawHeight) / 2;\r\n break;\r\n }\r\n y += lineHeight;\r\n context.textAlign = letterSpacing == 0 && !this.textFlow ? textAlign : 'left';\r\n context.textBaseline = 'bottom';\r\n var offY = 0;\r\n for (var i = 0; i < rowCount; i++) {\r\n var _c = rows[i], text = _c.text, lineWidth = _c.lineWidth;\r\n if (letterSpacing == 0 && !isBmpMode && !this.textFlow) {\r\n this.drawText(i, text, x, y + offY);\r\n }\r\n else {\r\n var offX = 0;\r\n switch (textAlign) {\r\n case \"left\":\r\n offX = 0;\r\n break;\r\n case \"right\":\r\n offX = -lineWidth;\r\n break;\r\n case \"center\":\r\n default:\r\n offX = -lineWidth / 2;\r\n break;\r\n }\r\n for (var j = 0, lj = text.length; j < lj; j++) {\r\n var char = text[j];\r\n this.drawText(j, char, x + offX, y + offY);\r\n if (measureCache[char].width > 0) {\r\n offX += measureCache[char].width + letterSpacing;\r\n }\r\n }\r\n }\r\n offY += lineHeight + lineSpacing;\r\n }\r\n };\r\n TextRenderer.prototype.getStyle = function (index) {\r\n var e_2, _a;\r\n if (!this.textFlow) {\r\n return null;\r\n }\r\n var targetItem;\r\n var count = 0;\r\n try {\r\n for (var _b = tslib_1.__values(this.textFlow), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var item = _c.value;\r\n count += item.text.length;\r\n if (index < count) {\r\n targetItem = item;\r\n break;\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n return targetItem.style;\r\n };\r\n TextRenderer.prototype.drawText = function (index, text, x, y) {\r\n var _a = this, context = _a.context, borderWidth = _a.borderWidth, isBmpMode = _a.isBmpMode, fontRes = _a.fontRes;\r\n if (isBmpMode) {\r\n var texture = fontRes.getTexture(text);\r\n if (!texture) {\r\n return;\r\n }\r\n var _b = texture.bounds, textureX = _b.x, textureY = _b.y, textureWidth = _b.width, textureHeight = _b.height;\r\n context.drawImage(texture.img, textureX, textureY, textureWidth, textureHeight, x, y, textureWidth, textureHeight);\r\n }\r\n else {\r\n var style = this.getStyle(index);\r\n if (style) {\r\n if (style.hasOwnProperty('textColor')) {\r\n context.fillStyle = style.textColor;\r\n }\r\n }\r\n else {\r\n context.fillStyle = this.fillColor;\r\n }\r\n context.fillText(text, x, y + 1);\r\n if (borderWidth > 0) {\r\n context.strokeText(text, x, y + 1);\r\n }\r\n }\r\n };\r\n Object.defineProperty(TextRenderer.prototype, \"isBmpMode\", {\r\n get: function () {\r\n return !!this.fontRes;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n TextRenderer.prototype.measureText = function (text) {\r\n var e_3, _a, e_4, _b;\r\n var result;\r\n if (this.measureCache.hasOwnProperty(text)) {\r\n result = this.measureCache[text];\r\n }\r\n else {\r\n var _c = this, context = _c.context, letterSpacing = _c.letterSpacing, isBmpMode = _c.isBmpMode, fontRes = _c.fontRes, lineHeight = _c.lineHeight;\r\n if (isBmpMode) {\r\n if (text.length == 1) {\r\n var texture = fontRes.getTexture(text);\r\n result = {\r\n width: texture ? texture.width : 0,\r\n height: texture ? texture.height : 0,\r\n };\r\n }\r\n else {\r\n var totalWidth = 0, totalHeight = 0;\r\n try {\r\n for (var text_1 = tslib_1.__values(text), text_1_1 = text_1.next(); !text_1_1.done; text_1_1 = text_1.next()) {\r\n var char = text_1_1.value;\r\n var measureResult = this.measureText(char);\r\n totalWidth += measureResult.width;\r\n if (measureResult.height > totalHeight) {\r\n totalHeight = measureResult.height;\r\n }\r\n }\r\n }\r\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\r\n finally {\r\n try {\r\n if (text_1_1 && !text_1_1.done && (_a = text_1.return)) _a.call(text_1);\r\n }\r\n finally { if (e_3) throw e_3.error; }\r\n }\r\n result = {\r\n width: totalWidth,\r\n height: totalHeight,\r\n };\r\n }\r\n }\r\n else {\r\n result = {\r\n width: context.measureText(text).width,\r\n height: lineHeight,\r\n };\r\n }\r\n result.width += letterSpacing * (text.length - 1);\r\n if (text.length == 1) {\r\n this.measureCache[text] = result;\r\n }\r\n if (letterSpacing != 0 && text.length > 1 || this.textFlow) {\r\n try {\r\n for (var text_2 = tslib_1.__values(text), text_2_1 = text_2.next(); !text_2_1.done; text_2_1 = text_2.next()) {\r\n var char = text_2_1.value;\r\n this.measureCache[char] = this.measureText(char);\r\n }\r\n }\r\n catch (e_4_1) { e_4 = { error: e_4_1 }; }\r\n finally {\r\n try {\r\n if (text_2_1 && !text_2_1.done && (_b = text_2.return)) _b.call(text_2);\r\n }\r\n finally { if (e_4) throw e_4.error; }\r\n }\r\n }\r\n }\r\n return result;\r\n };\r\n TextRenderer.prototype.splitText = function () {\r\n var e_5, _a;\r\n var _b = this, text = _b.pureText, letterSpacing = _b.letterSpacing, lineSpacing = _b.lineSpacing, lineHeight = _b.lineHeight, isBmpMode = _b.isBmpMode, _c = _b.transform, explicitWidth = _c.explicitWidth, explicitHeight = _c.explicitHeight;\r\n this.measureCache = {};\r\n var textWidth = 0, textHeight = 0, maxHeight = 0;\r\n var rows = [], measureResult;\r\n if (text && text.length > 0) {\r\n if (isNaN(explicitWidth)) {\r\n var lines = text.split('\\n');\r\n try {\r\n for (var lines_1 = tslib_1.__values(lines), lines_1_1 = lines_1.next(); !lines_1_1.done; lines_1_1 = lines_1.next()) {\r\n var line = lines_1_1.value;\r\n measureResult = this.measureText(line);\r\n var mw = measureResult.width;\r\n if (mw > textWidth) {\r\n textWidth = mw;\r\n }\r\n if (isBmpMode) {\r\n var mh = measureResult.height;\r\n if (mh > maxHeight) {\r\n maxHeight = mh;\r\n }\r\n }\r\n rows.push({\r\n text: line,\r\n lineWidth: mw,\r\n });\r\n }\r\n }\r\n catch (e_5_1) { e_5 = { error: e_5_1 }; }\r\n finally {\r\n try {\r\n if (lines_1_1 && !lines_1_1.done && (_a = lines_1.return)) _a.call(lines_1);\r\n }\r\n finally { if (e_5) throw e_5.error; }\r\n }\r\n if (!isBmpMode) {\r\n maxHeight = lineHeight;\r\n }\r\n this._bmpLineHeight = maxHeight;\r\n }\r\n else {\r\n var chars = text.split('');\r\n var lineWidth = 0, charWidth = 0, index = 0;\r\n var line = '';\r\n for (var i = 0, li = chars.length; i < li; i++) {\r\n var char = chars[i];\r\n if (char == '\\n') {\r\n rows.push({\r\n text: line,\r\n lineWidth: lineWidth,\r\n });\r\n line = '';\r\n lineWidth = 0;\r\n index = 0;\r\n }\r\n else {\r\n measureResult = this.measureText(char);\r\n if (measureResult.width == 0) {\r\n continue;\r\n }\r\n charWidth = measureResult.width;\r\n var mh = measureResult.height;\r\n if (mh > maxHeight) {\r\n maxHeight = mh;\r\n }\r\n if (index > 0 && lineWidth + charWidth + (index == 0 ? 0 : letterSpacing) > explicitWidth) {\r\n rows.push({\r\n text: line,\r\n lineWidth: lineWidth,\r\n });\r\n line = '';\r\n lineWidth = 0;\r\n index = 0;\r\n }\r\n line += char;\r\n lineWidth += charWidth + (index == 0 ? 0 : letterSpacing);\r\n index++;\r\n }\r\n }\r\n this._bmpLineHeight = maxHeight;\r\n rows.push({\r\n text: line,\r\n lineWidth: lineWidth,\r\n });\r\n textWidth = explicitWidth;\r\n }\r\n textHeight = isNaN(explicitHeight) ? (maxHeight * rows.length + lineSpacing * (rows.length - 1)) : explicitHeight;\r\n }\r\n else {\r\n textWidth = isNaN(explicitWidth) ? 0 : explicitWidth;\r\n textHeight = isNaN(explicitHeight) ? 0 : explicitHeight;\r\n }\r\n this.rows = rows;\r\n this._textWidth = textWidth;\r\n this._textHeight = textHeight;\r\n return {\r\n rows: rows,\r\n textWidth: textWidth,\r\n textHeight: textHeight,\r\n };\r\n };\r\n TextRenderer.prototype.measureBounds = function () {\r\n if (!this.dirty) {\r\n return;\r\n }\r\n if (!this.isBmpMode) {\r\n this.applyTextStyle();\r\n }\r\n this.splitText();\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"text\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextRenderer.prototype, \"textFlow\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"textAlign\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"verticalAlign\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"lineSpacing\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"letterSpacing\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"fontRes\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"textStyle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextRenderer.prototype, \"useCacheMode\", void 0);\r\n return TextRenderer;\r\n}(GraphicRenderer));\r\nexport default TextRenderer;\r\n//# sourceMappingURL=TextRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"Renderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/Renderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,QAAQ,CAAC;AAE5G,IAAA,gDAAiB,CAAe;AAKvC;IAAsC,oCAAe;IAyDpD;QAAA,YACC,iBAAO,SAGP;QA5DS,sBAAgB,GAAG;YAC5B,KAAI,CAAC,SAAS,EAAE,CAAC;QAClB,CAAC,CAAC;QAIQ,WAAK,GAAY,IAAI,CAAC;QAKtB,mBAAa,GAAY,KAAK,CAAC;QAKzC,WAAK,GAAW,CAAC,CAAC;QAKlB,YAAM,GAAa,IAAI,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAKhC,YAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QAEtB,iBAAW,GAAG,IAAI,CAAC;QAUnB,mBAAa,GAAa,IAAI,QAAQ,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IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;IApOD;QADC,iBAAiB;4CACwB;IAqO3C,eAAC;CAAA,AA3PD,CAAsC,eAAe,GA2PpD;eA3PoB,QAAQ\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { createCanvas, getContext, ScillaComponent, Bounds, Vector2D, math, decorators, EngineConfig } from \"scilla\";\r\nvar dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nvar Renderer = (function (_super) {\r\n tslib_1.__extends(Renderer, _super);\r\n function Renderer() {\r\n var _this = _super.call(this) || this;\r\n _this.onVector2DModify = function () {\r\n _this.makeDirty();\r\n };\r\n _this.dirty = true;\r\n _this._useCacheMode = false;\r\n _this.alpha = 1;\r\n _this.anchor = new Vector2D(0.5, 0.5);\r\n _this.bounds = new Bounds();\r\n _this.cacheCanvas = null;\r\n _this._anchorOffset = new Vector2D();\r\n _this._context = getContext();\r\n _this._margin = 0;\r\n _this._debugDrawColor = \"hsl(\" + math.makeRandomInt(360) + \", \" + math.makeRandomInt(100) + \"%, 60%)\";\r\n return _this;\r\n }\r\n Object.defineProperty(Renderer.prototype, \"useCacheMode\", {\r\n get: function () {\r\n return this.getUseCacheMode();\r\n },\r\n set: function (value) {\r\n this._useCacheMode = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Renderer.prototype.getUseCacheMode = function () {\r\n return this._useCacheMode;\r\n };\r\n Object.defineProperty(Renderer.prototype, \"context\", {\r\n get: function () {\r\n return this.cacheCanvasContext || this._context;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Renderer.prototype.makeDirty = function () {\r\n this.dirty = true;\r\n };\r\n Renderer.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n this.makeDirty();\r\n switch (key) {\r\n case 'anchor':\r\n value.onChange = this.onVector2DModify;\r\n break;\r\n }\r\n };\r\n Renderer.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n if (!this.transform) {\r\n console.warn('renderer need a transform component');\r\n }\r\n };\r\n Renderer.prototype.onUpdate = function (t) {\r\n if (this.dirty) {\r\n if (this.entity.name == 'label_status') {\r\n console.log();\r\n }\r\n if (this.useCacheMode) {\r\n this.readyCacheCanvas();\r\n }\r\n this.measureBounds();\r\n if (this.useCacheMode) {\r\n this.updateCacheCanvas();\r\n }\r\n }\r\n this.transformToLocal();\r\n this.render();\r\n if (EngineConfig.drawRenderRect) {\r\n var _a = this, _context = _a._context, _debugDrawColor = _a._debugDrawColor, _b = _a.bounds, width = _b.width, height = _b.height, _c = _a._anchorOffset, x_1 = _c.x, y = _c.y, _d = _a.transform.pivot, px = _d.x, py = _d.y;\r\n _context.globalAlpha = 0.9;\r\n _context.strokeStyle = _debugDrawColor;\r\n _context.fillStyle = _debugDrawColor;\r\n _context.beginPath();\r\n _context.rect(0, 0, width, height);\r\n _context.stroke();\r\n _context.beginPath();\r\n _context.arc(width * px, height * py, 3, 0, 2 * Math.PI);\r\n _context.fill();\r\n }\r\n };\r\n Renderer.prototype.readyCacheCanvas = function () {\r\n var canvas = this.cacheCanvas;\r\n if (!canvas) {\r\n canvas = this.cacheCanvas = createCanvas();\r\n this.cacheCanvasContext = canvas.getContext('2d');\r\n }\r\n };\r\n Renderer.prototype.updateCacheCanvas = function () {\r\n var canvas = this.cacheCanvas;\r\n var _a = this.bounds, width = _a.width, height = _a.height;\r\n canvas.width = width + this._margin * 2;\r\n canvas.height = height + this._margin * 2;\r\n };\r\n Renderer.prototype.render = function () {\r\n this.beforeDraw();\r\n this.drawClip();\r\n if (this.dirty) {\r\n if (this.useCacheMode) {\r\n this.draw();\r\n }\r\n this.dirty = false;\r\n }\r\n if (this.useCacheMode) {\r\n this.drawCache();\r\n }\r\n else {\r\n this.draw();\r\n }\r\n };\r\n Renderer.prototype.beforeDraw = function () {\r\n this.applyAlpha();\r\n };\r\n Renderer.prototype.transformToLocal = function () {\r\n var _a = this, transform = _a.transform, _b = _a._anchorOffset, ax = _b.x, ay = _b.y;\r\n if (transform && transform.enabled) {\r\n var _c = transform.getMatrix(true), a = _c.a, b = _c.b, c = _c.c, d = _c.d, tx = _c.tx, ty = _c.ty;\r\n var offX = ax * a + ay * c;\r\n var offY = ax * b + ay * d;\r\n this._context.setTransform(a, b, c, d, tx - offX, ty - offY);\r\n }\r\n else {\r\n this._context.setTransform(1, 0, 0, 1, -ax, -ay);\r\n }\r\n };\r\n Renderer.prototype.applyAlpha = function () {\r\n this._context.globalAlpha = this.alpha * this.transform.renderAlpha;\r\n };\r\n Renderer.prototype.drawCache = function () {\r\n if (this.cacheCanvas.width > 0 && this.cacheCanvas.height > 0) {\r\n this._context.drawImage(this.cacheCanvas, -this._margin, -this._margin);\r\n }\r\n };\r\n Renderer.prototype.drawClip = function () {\r\n };\r\n Renderer.prototype.draw = function () {\r\n };\r\n Renderer.prototype.measureBounds = function () {\r\n var _a = this, _b = _a.anchor, x = _b.x, y = _b.y, bounds = _a.bounds, _c = _a.bounds, width = _c.width, height = _c.height;\r\n var anchorOffsetX = this._anchorOffset.x = width * x;\r\n var anchorOffsetY = this._anchorOffset.y = height * y;\r\n bounds.x = -anchorOffsetX;\r\n bounds.y = -anchorOffsetY;\r\n };\r\n Renderer.prototype.hitTest = function (x, y) {\r\n return this.bounds.contains(x, y);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Renderer.prototype, \"anchor\", void 0);\r\n return Renderer;\r\n}(ScillaComponent));\r\nexport default Renderer;\r\n//# sourceMappingURL=Renderer.js.map"}
{"map":"{\"version\":3,\"file\":\"FrameAnimation.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/FrameAnimation.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAE9B,IAAM,YAAY,GAAG,EAAE,CAAC;AACxB,IAAM,WAAW,GAAG,EAAE,CAA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C,SAAS,CAAC,MAAM,CAAC;QAC9B,CAAC;;;OAAA;IAED,sBAAI,0CAAU;aAAd;YACC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,CAAC;;;OAAA;IAED,qCAAQ,GAAR,UAAS,IAAI;;QACZ,IAAI,MAAM,CAAC;;YACX,KAAkB,IAAA,KAAA,iBAAA,IAAI,CAAC,SAAS,CAAC,MAAM,CAAA,gBAAA,4BAAE;gBAApC,IAAI,KAAK,WAAA;gBACb,IAAI,KAAK,CAAC,IAAI,IAAI,IAAI,EAAE;oBACvB,MAAM,GAAG,KAAK,CAAC;oBACf,MAAM;iBACN;aACD;;;;;;;;;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IAED,qCAAQ,GAAR,UAAS,UAAU;QACX,IAAA,0BAAS,CAAU;QAE1B,IAAI,OAAO,EAAE,SAAS,CAAC;QACvB,IAAI,SAAS,EAAE;YACP,IAAA,2BAAM,CAAc;YAC3B,SAAS,GAAG,QAAM,CAAC,UAAU,CAAC,CAAC;YAC/B,IAAI,SAAS,EAAE;gBACd,IAAM,GAAG,GAAG,SAAS,CAAC,GAAG,CAAC;gBAC1B,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;gBAC1B,IAAI,CAAC,OAAO,EAAE;oBACb,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;iBAC5D;aACD;SACD;QACD,OAAO;YACN,OAAO,SAAA;YACP,IAAI,EAAE,SAAS;SACf,CAAC;IACH,CAAC;IAED,oCAAO,GAAP;QACC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACvB,CAAC;IACF,yBAAC;AAAD,CAAC,AArED,IAqEC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Sheet } from \"./Sheet\";\r\nvar animationMap = {};\r\nvar animDataMap = {};\r\nvar textureMap = {};\r\nexport function getFrameAnimation(name) {\r\n var animation = animationMap[name];\r\n if (!animation) {\r\n animation = animationMap[name] = new FrameAnimationImpl(name);\r\n animation.fillMcData(name);\r\n }\r\n return animation;\r\n}\r\nexport function putFrameAnim(img, data) {\r\n var mc = data.mc, res = data.res;\r\n var sheet = new Sheet(img, res);\r\n for (var key in mc) {\r\n var animData = animDataMap[key] = mc[key];\r\n animData.sheet = sheet;\r\n }\r\n}\r\nvar FrameAnimationImpl = (function () {\r\n function FrameAnimationImpl(name) {\r\n this._name = name;\r\n }\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"name\", {\r\n get: function () {\r\n return this._name;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n FrameAnimationImpl.prototype.fillMcData = function (name) {\r\n var animData = animDataMap[name];\r\n if (animData) {\r\n this._animData = animData;\r\n }\r\n else {\r\n console.warn(\"anim data [\" + name + \"] is not exist\");\r\n }\r\n };\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"fps\", {\r\n get: function () {\r\n return this._animData.frameRate;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"labels\", {\r\n get: function () {\r\n return this._animData.labels;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"frameCount\", {\r\n get: function () {\r\n return this._animData.frames.length;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n FrameAnimationImpl.prototype.getLabel = function (name) {\r\n var e_1, _a;\r\n var result;\r\n try {\r\n for (var _b = tslib_1.__values(this._animData.labels), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var label = _c.value;\r\n if (label.name == name) {\r\n result = label;\r\n break;\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n return result;\r\n };\r\n FrameAnimationImpl.prototype.getFrame = function (frameIndex) {\r\n var _animData = this._animData;\r\n var texture, frameData;\r\n if (_animData) {\r\n var frames_1 = _animData.frames;\r\n frameData = frames_1[frameIndex];\r\n if (frameData) {\r\n var res = frameData.res;\r\n texture = textureMap[res];\r\n if (!texture) {\r\n texture = textureMap[res] = _animData.sheet.getTexture(res);\r\n }\r\n }\r\n }\r\n return {\r\n texture: texture,\r\n data: frameData,\r\n };\r\n };\r\n FrameAnimationImpl.prototype.destroy = function () {\r\n this._animData = null;\r\n };\r\n return FrameAnimationImpl;\r\n}());\r\nexport { FrameAnimationImpl };\r\n//# sourceMappingURL=FrameAnimation.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACN,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,SAAS,GACT,CAAA\"}","code":"import * as decorators from './decorators';\r\nimport * as ease from './ease';\r\nimport * as math from './math';\r\nimport * as utils from './utils';\r\nimport * as timeUtils from './time';\r\nimport { Ease } from \"./ease\";\r\nexport { decorators, ease, Ease, math, utils, timeUtils, };\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"FrameAnimationRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/FrameAnimationRenderer.ts\"],\"names\":[],\"mappings\":\";AAQA,OAAO,QAAQ,MAAM,YAAY,CAAC;AA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(_super) {\r\n tslib_1.__extends(FrameAnimationRenderer, _super);\r\n function FrameAnimationRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.autoPlay = false;\r\n _this.fps = NaN;\r\n _this.onComplete = new ScillaEvent();\r\n _this.onLoopComplete = new ScillaEvent();\r\n return _this;\r\n }\r\n FrameAnimationRenderer.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n if (this.autoPlay) {\r\n this.play(0, -1);\r\n }\r\n };\r\n FrameAnimationRenderer.prototype.onUpdate = function (t) {\r\n if (this._playing) {\r\n var _a = this, frameAnimation = _a.frameAnimation, _startFrame = _a._startFrame, _endFrame = _a._endFrame, fps = _a.fps;\r\n if (this._startFlag) {\r\n this._startFlag = false;\r\n this._startTime = t;\r\n this._loopCounting++;\r\n }\r\n var mFPS = isNaN(fps) ? frameAnimation.fps : fps;\r\n var passTime = t - this._startTime;\r\n var passFrameCount = Math.floor(passTime / (1000 / mFPS));\r\n var passFrameInRegion = passFrameCount % (_endFrame - _startFrame + 1);\r\n this._currentFrameIndex = _startFrame + passFrameInRegion;\r\n if (passFrameInRegion == 0 && passFrameCount > 0) {\r\n this._currentFrameIndex = _endFrame;\r\n this.onLoopEnd();\r\n }\r\n }\r\n _super.prototype.onUpdate.call(this, t);\r\n };\r\n FrameAnimationRenderer.prototype.onSleep = function () {\r\n _super.prototype.onSleep.call(this);\r\n };\r\n FrameAnimationRenderer.prototype.onLoopEnd = function () {\r\n if (this._loop < 0) {\r\n this._startFlag = true;\r\n this.onLoopComplete.invoke();\r\n }\r\n else if (this._loopCounting < this._loop) {\r\n this._startFlag = true;\r\n this.onLoopComplete.invoke();\r\n }\r\n else {\r\n this._playing = false;\r\n this.onComplete.invoke();\r\n }\r\n };\r\n FrameAnimationRenderer.prototype.play = function (frame, loop, force) {\r\n if (frame === void 0) { frame = 0; }\r\n if (loop === void 0) { loop = 0; }\r\n if (force === void 0) { force = true; }\r\n this._loop = loop;\r\n this._loopCounting = 0;\r\n if (!this.frameAnimation) {\r\n return;\r\n }\r\n var startFrame = 0, endFrame = this.frameAnimation.frameCount - 1;\r\n if (typeof frame == 'string') {\r\n var label = this.frameAnimation.getLabel(frame);\r\n if (label) {\r\n startFrame = label.frame - 1;\r\n endFrame = label.end;\r\n }\r\n }\r\n else {\r\n startFrame = frame;\r\n }\r\n this._startFrame = startFrame;\r\n this._endFrame = endFrame;\r\n this._currentFrameIndex = this._startFrame;\r\n this._startFlag = true;\r\n this._playing = true;\r\n };\r\n FrameAnimationRenderer.prototype.stop = function () {\r\n this._playing = false;\r\n };\r\n FrameAnimationRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n if (!this.frameAnimation) {\r\n return;\r\n }\r\n var _a = this, context = _a.context, frameAnimation = _a.frameAnimation, _currentFrameIndex = _a._currentFrameIndex, bounds = _a.bounds;\r\n var _b = frameAnimation.getFrame(_currentFrameIndex), texture = _b.texture, data = _b.data;\r\n if (texture) {\r\n var img = texture.img, _c = texture.bounds, x_1 = _c.x, y = _c.y, textureWidth = _c.width, textureHeight = _c.height;\r\n bounds.setTo(data.x, data.y, textureWidth, textureHeight);\r\n context.drawImage(img, x_1, y, textureWidth, textureHeight, data.x, data.y, textureWidth, textureHeight);\r\n }\r\n };\r\n return FrameAnimationRenderer;\r\n}(Renderer));\r\nexport default FrameAnimationRenderer;\r\n//# sourceMappingURL=FrameAnimationRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"CameraController.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/other/CameraController.ts\"],\"names\":[],\"mappings\":\";AAKA,OAAO,EAAS,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAC,MAAM,QAAQ,CAAC;AAC7F,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAK1C;IAA8C,4CAAe;IAA7D;QAAA,qEAyDC;QAvDA,oBAAc,GAAa,cAAc,EAAE,CAAC;QAE5C,cAAQ,G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AAI,CAAC,cAAc,CAAC,CAAC;QAE/E,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAC3F,CAAC;IAED,kCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;IACjB,CAAC;IAED,oCAAS,GAAT;QACC,iBAAM,SAAS,WAAE,CAAC;IACnB,CAAC;IACF,uBAAC;AAAD,CAAC,AAzDD,CAA8C,eAAe,GAyD5D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { getStageSize, ScillaComponent, createVector2D, Vector2D, math } from \"scilla\";\r\nimport Transform from \"../base/Transform\";\r\nvar CameraController = (function (_super) {\r\n tslib_1.__extends(CameraController, _super);\r\n function CameraController() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.viewportAnchor = createVector2D();\r\n _this.maxScale = 1.2;\r\n return _this;\r\n }\r\n CameraController.prototype.onCreate = function () {\r\n _super.prototype.onCreate.call(this);\r\n };\r\n CameraController.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n var _a = this, target = _a.target, viewportAnchor = _a.viewportAnchor;\r\n this.stageSize = getStageSize();\r\n if (target) {\r\n this.targetPosition = target.getComponent(Transform).position;\r\n }\r\n this.followPosition = createVector2D();\r\n if (viewportAnchor) {\r\n var _b = this.stageSize, width = _b.width, height = _b.height;\r\n var _c = this.viewportAnchor, x_1 = _c.x, y = _c.y;\r\n this.transform.position.setXY(width * x_1, height * y);\r\n }\r\n };\r\n CameraController.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\r\n if (!this.targetPosition) {\r\n return;\r\n }\r\n var _a = this, _b = _a.transform, scale = _b.scale, position = _b.position, _c = _a.stageSize, width = _c.width, height = _c.height, _d = _a.targetPosition, x = _d.x, y = _d.y, length = _d.length, maxScale = _a.maxScale;\r\n var newScale = maxScale - length * maxScale / 2048;\r\n scale.setXY(newScale, newScale);\r\n this.followPosition.setXY(width / 2, height / 2).subtract(this.targetPosition);\r\n position.copyFrom(math.lerpObj(position, this.followPosition, 0.1, Vector2D, ['x', 'y']));\r\n };\r\n CameraController.prototype.onSleep = function () {\r\n _super.prototype.onSleep.call(this);\r\n };\r\n CameraController.prototype.onDestroy = function () {\r\n _super.prototype.onDestroy.call(this);\r\n };\r\n return CameraController;\r\n}(ScillaComponent));\r\nexport default CameraController;\r\n//# sourceMappingURL=CameraController.js.map"}
{"map":"{\"version\":3,\"file\":\"ease.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/ease.ts\"],\"names\":[],\"mappings\":\"AAMA,MAAM,CAAN,IAAY,IA4BX;AA5BD,WAAY,IAAI;IACf,yBAAiB,CAAA;IACjB,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;IACnB,6BAAqB,CAAA;IACrB,iCAAyB,CAAA;IACzB,2BAAmB,CAAA;IACnB,6BAAqB,CAAA;IACrB,iCAAyB,CAAA;IACzB,2BAAmB,CAAA;IACnB,6BAAqB,CAAA;IACrB,iCAAyB,CAAA;IACzB,yBAAiB,CAAA;IACjB,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,yBAAiB,CAAA;IACjB,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,yBAAiB,CAAA;IACjB,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,6BAAqB,CAAA;IACrB,+BAAuB,CAAA;IACvB,mCAA2B,CAAA;IAC3B,+BAAuB,CAAA;IACvB,iCAAyB,CAAA;IACzB,qCAA6B,CAAA;AAC9B,CAAC,EA5BW,IAAI,KAAJ,IAAI,QA4Bf;AAED,MAAM,UAAU,GAAG,CAAC,MAAM;IACzB,IAAI,MAAM,GAAG,CAAC,CAAC,EAAE;QAChB,MAAM,GAAG,CAAC,CAAC,CAAC;K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[\"quadInOut\"] = \"quadInOut\";\r\n Ease[\"cubicIn\"] = \"cubicIn\";\r\n Ease[\"cubicOut\"] = \"cubicOut\";\r\n Ease[\"cubicInOut\"] = \"cubicInOut\";\r\n Ease[\"quartIn\"] = \"quartIn\";\r\n Ease[\"quartOut\"] = \"quartOut\";\r\n Ease[\"quartInOut\"] = \"quartInOut\";\r\n Ease[\"quintIn\"] = \"quintIn\";\r\n Ease[\"quintOut\"] = \"quintOut\";\r\n Ease[\"quintInOut\"] = \"quintInOut\";\r\n Ease[\"sineIn\"] = \"sineIn\";\r\n Ease[\"sineOut\"] = \"sineOut\";\r\n Ease[\"sineInOut\"] = \"sineInOut\";\r\n Ease[\"backIn\"] = \"backIn\";\r\n Ease[\"backOut\"] = \"backOut\";\r\n Ease[\"backInOut\"] = \"backInOut\";\r\n Ease[\"circIn\"] = \"circIn\";\r\n Ease[\"circOut\"] = \"circOut\";\r\n Ease[\"circInOut\"] = \"circInOut\";\r\n Ease[\"bounceIn\"] = \"bounceIn\";\r\n Ease[\"bounceOut\"] = \"bounceOut\";\r\n Ease[\"bounceInOut\"] = \"bounceInOut\";\r\n Ease[\"elasticIn\"] = \"elasticIn\";\r\n Ease[\"elasticOut\"] = \"elasticOut\";\r\n Ease[\"elasticInOut\"] = \"elasticInOut\";\r\n})(Ease || (Ease = {}));\r\nexport function get(amount) {\r\n if (amount < -1) {\r\n amount = -1;\r\n }\r\n if (amount > 1) {\r\n amount = 1;\r\n }\r\n return function (t) {\r\n if (amount == 0) {\r\n return t;\r\n }\r\n if (amount < 0) {\r\n return t * (t * -amount + 1 + amount);\r\n }\r\n return t * ((2 - t) * amount + (1 - amount));\r\n };\r\n}\r\nexport function getPowIn(pow) {\r\n return function (t) {\r\n return Math.pow(t, pow);\r\n };\r\n}\r\nexport function getPowOut(pow) {\r\n return function (t) {\r\n return 1 - Math.pow(1 - t, pow);\r\n };\r\n}\r\nexport function getPowInOut(pow) {\r\n return function (t) {\r\n if ((t *= 2) < 1)\r\n return 0.5 * Math.pow(t, pow);\r\n return 1 - 0.5 * Math.abs(Math.pow(2 - t, pow));\r\n };\r\n}\r\nexport var quadIn = getPowIn(2);\r\nexport var quadOut = getPowOut(2);\r\nexport var quadInOut = getPowInOut(2);\r\nexport var cubicIn = getPowIn(3);\r\nexport var cubicOut = getPowOut(3);\r\nexport var cubicInOut = getPowInOut(3);\r\nexport var quartIn = getPowIn(4);\r\nexport var quartOut = getPowOut(4);\r\nexport var quartInOut = getPowInOut(4);\r\nexport var quintIn = getPowIn(5);\r\nexport var quintOut = getPowOut(5);\r\nexport var quintInOut = getPowInOut(5);\r\nexport function sineIn(t) {\r\n return 1 - Math.cos(t * Math.PI / 2);\r\n}\r\nexport function sineOut(t) {\r\n return Math.sin(t * Math.PI / 2);\r\n}\r\nexport function sineInOut(t) {\r\n return -0.5 * (Math.cos(Math.PI * t) - 1);\r\n}\r\nexport function getBackIn(amount) {\r\n return function (t) {\r\n return t * t * ((amount + 1) * t - amount);\r\n };\r\n}\r\nexport var backIn = getBackIn(1.7);\r\nexport function getBackOut(amount) {\r\n return function (t) {\r\n return (--t * t * ((amount + 1) * t + amount) + 1);\r\n };\r\n}\r\nexport var backOut = getBackOut(1.7);\r\nexport function getBackInOut(amount) {\r\n amount *= 1.525;\r\n return function (t) {\r\n if ((t *= 2) < 1)\r\n return 0.5 * (t * t * ((amount + 1) * t - amount));\r\n return 0.5 * ((t -= 2) * t * ((amount + 1) * t + amount) + 2);\r\n };\r\n}\r\nexport var backInOut = getBackInOut(1.7);\r\nexport function circIn(t) {\r\n return -(Math.sqrt(1 - t * t) - 1);\r\n}\r\nexport function circOut(t) {\r\n return Math.sqrt(1 - (--t) * t);\r\n}\r\nexport function circInOut(t) {\r\n if ((t *= 2) < 1) {\r\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\r\n }\r\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\r\n}\r\nexport function bounceIn(t) {\r\n return 1 - bounceOut(1 - t);\r\n}\r\nexport function bounceOut(t) {\r\n if (t < 1 / 2.75) {\r\n return (7.5625 * t * t);\r\n }\r\n else if (t < 2 / 2.75) {\r\n return (7.5625 * (t -= 1.5 / 2.75) * t + 0.75);\r\n }\r\n else if (t < 2.5 / 2.75) {\r\n return (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375);\r\n }\r\n else {\r\n return (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375);\r\n }\r\n}\r\nexport function bounceInOut(t) {\r\n if (t < 0.5)\r\n return bounceIn(t * 2) * .5;\r\n return bounceOut(t * 2 - 1) * 0.5 + 0.5;\r\n}\r\nexport function getElasticIn(amplitude, period) {\r\n var pi2 = Math.PI * 2;\r\n return function (t) {\r\n if (t == 0 || t == 1)\r\n return t;\r\n var s = period / pi2 * Math.asin(1 / amplitude);\r\n return -(amplitude * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * pi2 / period));\r\n };\r\n}\r\nexport var elasticIn = getElasticIn(1, 0.3);\r\nexport function getElasticOut(amplitude, period) {\r\n var pi2 = Math.PI * 2;\r\n return function (t) {\r\n if (t == 0 || t == 1)\r\n return t;\r\n var s = period / pi2 * Math.asin(1 / amplitude);\r\n return (amplitude * Math.pow(2, -10 * t) * Math.sin((t - s) * pi2 / period) + 1);\r\n };\r\n}\r\nexport var elasticOut = getElasticOut(1, 0.3);\r\nexport function getElasticInOut(amplitude, period) {\r\n var pi2 = Math.PI * 2;\r\n return function (t) {\r\n var s = period / pi2 * Math.asin(1 / amplitude);\r\n if ((t *= 2) < 1)\r\n return -0.5 * (amplitude * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * pi2 / period));\r\n return amplitude * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * pi2 / period) * 0.5 + 1;\r\n };\r\n}\r\nexport var elasticInOut = getElasticInOut(1, 0.3 * 1.5);\r\n//# sourceMappingURL=ease.js.map"}
{"map":"{\"version\":3,\"file\":\"ScillaComponent.js\",\"sourceRoot\":\"\",\"sources\":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QACrB,OAAO,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAClC,CAAC;IAED,6CAAmB,GAAnB,UAAoB,CAAC;QACpB,OAAO,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC;IAMD,4CAAkB,GAAlB,UAAmB,CAAC;IAEpB,CAAC;IAMD,2CAAiB,GAAjB,UAAkB,CAAC;IAEnB,CAAC;IAMD,0CAAgB,GAAhB,UAAiB,CAAC;IAElB,CAAC;IAED,sBAAI,sCAAS;aAAb;YACC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC;QAC9D,CAAC;;;OAAA;IASD,mCAAS,GAAT,UAAU,MAAM,EAAE,KAAU;QAAV,sBAAA,EAAA,SAAS,CAAC;QAAE,gBAAS;aAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;YAAT,+BAAS;;;QACtC,CAAA,KAAA,IAAI,CAAC,MAAM,CAAA,CAAC,SAAS,6BAAC,MAAM,EAAE,KAAK,GAAK,MAAM,GAAE;IACjD,CAAC;IAQD,kCAAQ,GAAR,UAAS,MAAM;QAAE,gBAAS;aAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;YAAT,+BAAS;;;QACzB,CAAA,KAAA,IAAI,CAAC,MAAM,CAAA,CAAC,QAAQ,6BAAC,MAAM,GAAK,MAAM,GAAE;IACzC,CAAC;IACF,sBAAC;AAAD,CAAC,AAtPD,CAAqC,UAAU,GAsP9C\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport HashObject from \"./HashObject\";\r\nimport { EngineConfig } from \"../engine-config\";\r\nvar interactiveMap = [\r\n '_dealGlobalTouchBegin',\r\n '_dealGlobalTouchMove',\r\n '_dealGlobalTouchEnd',\r\n];\r\nvar ScillaComponent = (function (_super) {\r\n tslib_1.__extends(ScillaComponent, _super);\r\n function ScillaComponent() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.delayCallbacks = [];\r\n _this._enabled = EngineConfig.componentEnabled;\r\n return _this;\r\n }\r\n Object.defineProperty(ScillaComponent.prototype, \"enabled\", {\r\n get: function () {\r\n return this._enabled;\r\n },\r\n set: function (value) {\r\n if (this._enabled !== value) {\r\n this._enabled = value;\r\n if (this.entity && this.entity.isActive) {\r\n if (this._enabled) {\r\n this.onEnable();\r\n }\r\n else {\r\n this.onDisable();\r\n }\r\n }\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ScillaComponent.prototype._setup = function (entity) {\r\n this.entity = entity;\r\n this.onCreate();\r\n };\r\n ScillaComponent.prototype._unSetup = function () {\r\n this.entity = null;\r\n this.onDestroy();\r\n };\r\n ScillaComponent.prototype.onCreate = function () {\r\n };\r\n ScillaComponent.prototype.onAwake = function () {\r\n this._firstUpdate = true;\r\n };\r\n ScillaComponent.prototype.onEnable = function () {\r\n };\r\n ScillaComponent.prototype.onDisable = function () {\r\n };\r\n ScillaComponent.prototype.$onUpdate = function (t) {\r\n this.onUpdate(t);\r\n if (!this._firstUpdate) {\r\n this.invokeDelayCallback(t);\r\n }\r\n this._firstUpdate = false;\r\n };\r\n ScillaComponent.prototype.invokeDelayCallback = function (t) {\r\n var e_1, _a;\r\n var removed = [];\r\n if (this.entity.name.indexOf('progress') >= 0) {\r\n console.log();\r\n }\r\n for (var i = 0, li = this.delayCallbacks.length; i < li; i++) {\r\n var _b = this.delayCallbacks[i], callback = _b.callback, once = _b.once;\r\n if (once) {\r\n removed.push(i);\r\n }\r\n callback.call(this, t);\r\n }\r\n try {\r\n for (var removed_1 = tslib_1.__values(removed), removed_1_1 = removed_1.next(); !removed_1_1.done; removed_1_1 = removed_1.next()) {\r\n var item = removed_1_1.value;\r\n this.delayCallbacks.splice(item, 1);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (removed_1_1 && !removed_1_1.done && (_a = removed_1.return)) _a.call(removed_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n };\r\n ScillaComponent.prototype.onUpdate = function (t) {\r\n };\r\n ScillaComponent.prototype.afterUpdate = function () {\r\n };\r\n ScillaComponent.prototype.onSleep = function () {\r\n };\r\n ScillaComponent.prototype.onDestroy = function () {\r\n };\r\n ScillaComponent.prototype.onModify = function (value, key, oldValue) {\r\n };\r\n ScillaComponent.prototype.getDelayCallback = function (callback) {\r\n var e_2, _a;\r\n var result;\r\n try {\r\n for (var _b = tslib_1.__values(this.delayCallbacks), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var item = _c.value;\r\n if (item.callback == callback) {\r\n result = item;\r\n break;\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n return result;\r\n };\r\n ScillaComponent.prototype.callOnNextTick = function (callback, once) {\r\n if (once === void 0) { once = true; }\r\n var item = this.getDelayCallback(callback);\r\n if (!item) {\r\n this.delayCallbacks.push({ callback: callback, once: once });\r\n }\r\n };\r\n ScillaComponent.prototype.cancelOnNextTick = function (callback) {\r\n var item = this.getDelayCallback(callback);\r\n var index = this.delayCallbacks.indexOf(item);\r\n if (index >= 0) {\r\n this.delayCallbacks.splice(index, 1);\r\n }\r\n };\r\n ScillaComponent.prototype.onInteract = function (type, event) {\r\n try {\r\n var hitOn = this[interactiveMap[type]](event);\r\n return hitOn && this['touchInterrupt'];\r\n }\r\n catch (e) {\r\n console.warn(e);\r\n }\r\n };\r\n ScillaComponent.prototype._dealGlobalTouchBegin = function (e) {\r\n return this.onGlobalTouchBegin(e);\r\n };\r\n ScillaComponent.prototype._dealGlobalTouchMove = function (e) {\r\n return this.onGlobalTouchMove(e);\r\n };\r\n ScillaComponent.prototype._dealGlobalTouchEnd = function (e) {\r\n return this.onGlobalTouchEnd(e);\r\n };\r\n ScillaComponent.prototype.onGlobalTouchBegin = function (e) {\r\n };\r\n ScillaComponent.prototype.onGlobalTouchMove = function (e) {\r\n };\r\n ScillaComponent.prototype.onGlobalTouchEnd = function (e) {\r\n };\r\n Object.defineProperty(ScillaComponent.prototype, \"transform\", {\r\n get: function () {\r\n return this.entity.getComponent('components/base/Transform');\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ScillaComponent.prototype.broadcast = function (method, level) {\r\n if (level === void 0) { level = -1; }\r\n var params = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n params[_i - 2] = arguments[_i];\r\n }\r\n var _a;\r\n (_a = this.entity).broadcast.apply(_a, tslib_1.__spread([method, level], params));\r\n };\r\n ScillaComponent.prototype.bubbling = function (method) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n var _a;\r\n (_a = this.entity).bubbling.apply(_a, tslib_1.__spread([method], params));\r\n };\r\n return ScillaComponent;\r\n}(HashObject));\r\nexport { ScillaComponent };\r\n//# sourceMappingURL=ScillaComponent.js.map"}
{"map":"{\"version\":3,\"file\":\"InteractComponent.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/InteractComponent.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,MAAM,EAAE,eAAe,EAAE,UAAU,EAAC,MAAM,QAAQ,CAAC;AAC3D,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAErC,IAAA,gDAAiB,CAAe;AAKvC;IAA+C,6CAAe;IAkB7D;QAAA,YACC,iBAAO,SAEP;QAhBD,kBAAY,GAAG,IAAI,CAAC;QAKpB,oBAAc,GAAY,KAAK,CAAC;QAEtB,kBAAY,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;QAC/B,cAAQ,GAAQ,EAAE,CAAC;QACnB,WAAK,GAAG,IAAI,CAAC;;IAOvB,CAAC;IAED,iDAAqB,GAArB,UAAsB,CAAC;QACtB,IAAI,SAAS,GAAG,iBAAM,qBAAqB,YA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,CAAC,YAAY,EAAE;wBAC1B,SAAQ;qBACR;yBAAM;wBACN,MAAM,GAAG,IAAI,CAAC;wBACd,MAAK;qBACL;iBACD;qBAAM,IAAI,QAAQ,CAAC,YAAY,EAAE;oBACjC,OAAO,KAAK,CAAA;iBACZ;aACD;;;;;;;;;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IA/HD;QADC,iBAAiB;2DACE;IAgIrB,wBAAC;CAAA,AArID,CAA+C,eAAe,GAqI7D;eArIoB,iBAAiB\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Matrix, ScillaComponent, decorators } from \"scilla\";\r\nimport Renderer from \"../renderer/Renderer\";\r\nvar dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nvar InteractComponent = (function (_super) {\r\n tslib_1.__extends(InteractComponent, _super);\r\n function InteractComponent() {\r\n var _this = _super.call(this) || this;\r\n _this.interactable = true;\r\n _this.touchInterrupt = false;\r\n _this.invertMatrix = Matrix.create();\r\n _this.localPos = {};\r\n _this.isOut = true;\r\n return _this;\r\n }\r\n InteractComponent.prototype._dealGlobalTouchBegin = function (e) {\r\n var interrupt = _super.prototype._dealGlobalTouchBegin.call(this, e);\r\n var hitOn = this.hitTest(e);\r\n if (hitOn) {\r\n this._touchBeginFlag = true;\r\n this.onTouchBegin(e);\r\n this._dealTouchOver(e);\r\n }\r\n return hitOn && interrupt;\r\n };\r\n InteractComponent.prototype._dealGlobalTouchMove = function (e) {\r\n var interrupt = _super.prototype._dealGlobalTouchMove.call(this, e);\r\n var hitOn = this.hitTest(e);\r\n if (hitOn) {\r\n this._dealTouchOver(e);\r\n this.onTouchMove(e);\r\n }\r\n else {\r\n this._dealTouchOut(e);\r\n }\r\n return hitOn && interrupt;\r\n };\r\n InteractComponent.prototype._dealGlobalTouchEnd = function (e) {\r\n var interrupt = _super.prototype._dealGlobalTouchEnd.call(this, e);\r\n var hitOn = this.hitTest(e);\r\n if (hitOn) {\r\n this.onTouchEnd(e);\r\n if (this._touchBeginFlag) {\r\n this.onTouchTap(e);\r\n this._touchBeginFlag = false;\r\n }\r\n }\r\n this.isOut = true;\r\n return hitOn && interrupt;\r\n };\r\n InteractComponent.prototype._dealTouchOver = function (e) {\r\n if (this.isOut) {\r\n this.isOut = false;\r\n this.onTouchOver(e);\r\n }\r\n };\r\n InteractComponent.prototype._dealTouchOut = function (e) {\r\n if (!this.isOut) {\r\n this.isOut = true;\r\n this.onTouchOut(e);\r\n }\r\n };\r\n InteractComponent.prototype.onTouchBegin = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchMove = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchOver = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchOut = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchEnd = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchTap = function (e) {\r\n };\r\n InteractComponent.prototype.hitTest = function (e) {\r\n var e_1, _a;\r\n var matrix = this.transform.getMatrix();\r\n var invertMatrix = this.invertMatrix;\r\n invertMatrix.copyFrom(matrix);\r\n invertMatrix.invert();\r\n invertMatrix.transformPoint(e.x, e.y, this.localPos);\r\n var result = false;\r\n var renderers = this.entity.getComponents(Renderer);\r\n try {\r\n for (var renderers_1 = tslib_1.__values(renderers), renderers_1_1 = renderers_1.next(); !renderers_1_1.done; renderers_1_1 = renderers_1.next()) {\r\n var renderer = renderers_1_1.value;\r\n if (renderer.hitTest(this.localPos.x, this.localPos.y)) {\r\n if (renderer.isUsedToMask) {\r\n continue;\r\n }\r\n else {\r\n result = true;\r\n break;\r\n }\r\n }\r\n else if (renderer.isUsedToMask) {\r\n return false;\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (renderers_1_1 && !renderers_1_1.done && (_a = renderers_1.return)) _a.call(renderers_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n return result;\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], InteractComponent.prototype, \"interactable\", void 0);\r\n return InteractComponent;\r\n}(ScillaComponent));\r\nexport default InteractComponent;\r\n//# sourceMappingURL=InteractComponent.js.map"}
{"map":"{\"version\":3,\"file\":\"Sheet.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Sheet.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AAKxC;IAA2B,iCAAU;IAYpC,eAAY,GAAI,EAAE,MAAO;QAAzB,YACC,iBAAO,SAQP;QAXO,mBAAa,GAAQ,EAAE,CAAC;QAK/B,IAAG,GAAG,EAAC;YACN,KAAI,CAAC,GAAG,GAAG,GAAG,CAAC;SACf;QACD,IAAG,MAAM,EAAC;YACT,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;SACrB;;IACF,CAAC;IAKD,2BAAW,GAAX;QACC,KAAK,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE;YAC5B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;SAC1B;IACF,CAAC;IAOD,+BAAe,GAAf,UAAgB,IAAI,EAAE,KAAa;QAAb,sBAAA,EAAA,aAAa;QAC5B,IAAA,SAAmC,EAAlC,YAAG,EAAE,kBAAM,EAAE,gCAAqB,CAAC;QAE1C,IAAI,CAAC,KAAK,IAAI,aAAa,CAAC,IAAI,CAAC,EAAE;YAClC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC;SAC3B;QAED,IAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QAC3B,IAAI,KAAK,EAAE;YACV,OAAO,aAAa,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SACvD;IACF,CAAC;IAMD,0BAAU,GAAV,UAAW,IAAI;QACd,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAMD,0BAAU,GAAV,UAAW,IAAI;QACd,IAAI,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,OAAO,EAAE;YACZ,OAAO,OAAO,CAAC;SACf;aAAM;YACN,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SAClC;IACF,CAAC;IAKD,8BAAc,GAAd;QACC,OAAO,IAAI,CAAC,aAAa,CAAC;IAC3B,CAAC;IAKD,uBAAO,GAAP;QACC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAEhB,KAAK,IAAI,GAAG,IAAI,IAAI,CAAC,aAAa,EAAE;YACnC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;SAC/B;IACF,CAAC;IACF,YAAC;AAAD,CAAC,AAzFD,CAA2B,UAAU,GAyFpC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport HashObject from \"../core/HashObject\";\r\nimport { createTexture } from \"./Texture\";\r\nvar Sheet = (function (_super) {\r\n tslib_1.__extends(Sheet, _super);\r\n function Sheet(img, frames) {\r\n var _this = _super.call(this) || this;\r\n _this._textureCache = {};\r\n if (img) {\r\n _this.img = img;\r\n }\r\n if (frames) {\r\n _this.frames = frames;\r\n }\r\n return _this;\r\n }\r\n Sheet.prototype.generateAll = function () {\r\n for (var key in this.frames) {\r\n this.generateTexture(key);\r\n }\r\n };\r\n Sheet.prototype.generateTexture = function (name, force) {\r\n if (force === void 0) { force = false; }\r\n var _a = this, img = _a.img, frames = _a.frames, _textureCache = _a._textureCache;\r\n if (!force && _textureCache[name]) {\r\n return _textureCache[name];\r\n }\r\n var frame = frames[name];\r\n if (frame) {\r\n return _textureCache[name] = createTexture(img, frame);\r\n }\r\n };\r\n Sheet.prototype.hasTexture = function (name) {\r\n return !!frames[name];\r\n };\r\n Sheet.prototype.getTexture = function (name) {\r\n var texture = this._textureCache[name];\r\n if (texture) {\r\n return texture;\r\n }\r\n else {\r\n return this.generateTexture(name);\r\n }\r\n };\r\n Sheet.prototype.getAllTextures = function () {\r\n return this._textureCache;\r\n };\r\n Sheet.prototype.destroy = function () {\r\n this.img = null;\r\n for (var key in this._textureCache) {\r\n this._textureCache[key].destroy();\r\n delete this._textureCache[key];\r\n }\r\n };\r\n return Sheet;\r\n}(HashObject));\r\nexport { Sheet };\r\n//# sourceMappingURL=Sheet.js.map"}
{"map":"{\"version\":3,\"file\":\"main.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/main.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EACN,KAAK,EACL,WAAW,EAAE,kBAAkB,EAC/B,QAAQ,EACR,UAAU,EACV,KAAK,GACL,MAAM,QAAQ,CAAA;AAEf,OAAO,yBAAyB,CAAA;AAEhC,OAAO,aAAa,EAAE,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AAEpD,kBAAkB,CAAC;IAClB,eAAe,EAAE,GAAG;IACpB,aAAa,EAAE,KAAK;IACpB,uBAAuB,EAAE,KAAK;IAC9B,yBAAyB,EAAE,KAAK;IAChC,cAAc,EAAE,KAAK;CACrB,CAAC,CAAC;AAEH,MAAM,UAAgB,OAAO,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU;;;;;wBACjD,WAAM,QAAQ,CAAC,eAAe,CAAC,EAAA;;oBAA1C,QAAQ,GAAG,SAA+B;oBAEhD,MAAM,CAAC,QAAQ,CAAC,CAAC;oBACjB,MAAM,CAAC,OAAO,CAAC,CAAC;oBAEhB,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;oBAElD,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;oBAC9C,gBAAgB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;oBAEjC,MAAM,GAAG;wBACZ,MAAM,QAAA;qBACN,CAAC;oBACF,IAAI,OAAO,CAAC,MAAM,EAAE;wBACnB,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;qBACzC;oBACD,KAAK,CAAC,MAAM,CAAC,CAAC;oBAEd,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,UAAA,CAAC;wBACtC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;oBAChB,CAAC,CAAC,CAAC;;;;;CACH\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { setup, launchScene, modifyEngineConfig, loadJson, setResPath, utils, } from 'scilla';\r\nimport './generated/MustCompile';\r\nimport launchOptions, { inject } from \"launchOptions\";\r\nmodifyEngineConfig({\r\n lineHeightRatio: 1.2,\r\n entityEnabled: false,\r\n awakeComponentWhenAdded: false,\r\n sleepComponentWhenRemoved: false,\r\n drawRenderRect: false,\r\n});\r\nexport function startup(containerElement, options, onProgress) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var manifest, canvas, config;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadJson('manifest.json')];\r\n case 1:\r\n manifest = _a.sent();\r\n inject(manifest);\r\n inject(options);\r\n setResPath(DEBUG ? 'assets/' : launchOptions.resPath);\r\n canvas = document.createElement('canvas');\r\n containerElement.appendChild(canvas);\r\n config = {\r\n canvas: canvas,\r\n };\r\n if (options.config) {\r\n utils.injectProp(config, options.config);\r\n }\r\n setup(config);\r\n launchScene('main', onProgress).catch(function (e) {\r\n console.log(e);\r\n });\r\n return [2];\r\n }\r\n });\r\n });\r\n}\r\n//# sourceMappingURL=main.js.map"}
{"map":"{\"version\":3,\"file\":\"Scene.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Scene.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE/C;IAAA;QAGC,mBAAc,GAAQ;YACrB,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,EAAE;SACT,CAAC;IAiBH,CAAC;IAbA,4BAAY,GAAZ,UAAa,MAAM;QAClB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QAExB,IAAM,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;QACjD,KAAI,IAAI,GAAG,IAAI,cAAc,EAAC;YAC7B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;SAC/C;IACF,CAAC;IAEK,4BAAY,GAAlB,UAAmB,IAAI,EAAE,QAAS;;;;4BACjC,WAAM,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,EAAA;;wBAAvD,SAAuD,CAAC;;;;;KACxD;IACF,YAAC;AAAD,CAAC,AAvBD,IAuBC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { loadResItems } from \"../assets-manager\";\r\nvar Scene = (function () {\r\n function Scene() {\r\n this.resourceGroups = {\r\n preload: [],\r\n delay: [],\r\n };\r\n }\r\n Scene.prototype.initByConfig = function (config) {\r\n this.config = config;\r\n this.name = config.name;\r\n var resourceGroups = config['resource-groups'];\r\n for (var key in resourceGroups) {\r\n this.resourceGroups[key] = resourceGroups[key];\r\n }\r\n };\r\n Scene.prototype.loadResGroup = function (name, progress) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadResItems(this.resourceGroups[name], progress)];\r\n case 1:\r\n _a.sent();\r\n return [2];\r\n }\r\n });\r\n });\r\n };\r\n return Scene;\r\n}());\r\nexport { Scene };\r\n//# sourceMappingURL=Scene.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../node_modules/scilla-core/src/index.ts\"],\"names\":[],\"mappings\":\"AAIA,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA\"}","code":"export * from './core';\r\nexport * from './editor';\r\nexport * from './assets-manager';\r\nexport * from './support';\r\nexport * from './tools';\r\nexport * from './filter';\r\nexport * from './engine-config';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"engine-config.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../node_modules/scilla-core/src/engine-config.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,MAAM,CAAC,IAAM,YAAY,GAAG;IAC3B,eAAe,EAAE,GAAG;IACpB,aAAa,EAAE,IAAI;IACnB,gBAAgB,EAAE,IAAI;IACtB,uBAAuB,EAAE,IAAI;IAC7B,yBAAyB,EAAE,IAAI;IAC/B,cAAc,EAAE,KAAK;IACrB,cAAc,EAAE,IAAI;CACpB,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,QAAQ;IAC1C,UAAU,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AACpC,CAAC\"}","code":"import { injectProp } from \"./tools/utils\";\r\nexport var EngineConfig = {\r\n lineHeightRatio: 1.2,\r\n entityEnabled: true,\r\n componentEnabled: true,\r\n awakeComponentWhenAdded: true,\r\n sleepComponentWhenRemoved: true,\r\n drawRenderRect: false,\r\n imgCrossOrigin: true,\r\n};\r\nexport function modifyEngineConfig(_options) {\r\n injectProp(EngineConfig, _options);\r\n}\r\n//# sourceMappingURL=engine-config.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/filter/index.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC\"}","code":"export { ShadowFilter } from './Filters';\r\nexport { ColorFilter } from './Filters';\r\nexport { ColorMatrixFilter } from './Filters';\r\nexport { BlurFilter } from './Filters';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"Entity.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Entity.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAW9C,MAAM,UAAU,QAAQ,CAAC,MAAc,EAAE,QAA+C,EAAE,KAAU,EAAE,WAAmB,EAAE,YAAwC;IAAzE,sBAAA,EAAA,SAAS,CAAC;IAAE,4BAAA,EAAA,mBAAmB;IAA4C,gBAAS;SAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;QAAT,+BAAS;;;IAC7K,IAAI,SAAS,CAAC;IACd,IAAI,WAAW,EAAE;QAChB,QAAQ,iCAAC,MAAM,GAAK,MAAM,GAAE;KAC5B;IAED,IAAI,KAAK,KAAK,CAAC,EAAE;;YAChB,KAAkB,IAAA,KAAA,iBAAA,MAAM,CAAC,QAAQ,CAAA,gBAAA,4BAAE;gBAA9B,IAAI,KAAK,WAAA;gBACb,IAAI,QAAQ,iCAAC,KAAK,GAAK,MAAM,IAAG;oBAC/B,SAAS,GAAG,IAAI,CAAC;oBACjB,SAAS;iBACT;gBACD,IAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAC;oBAC5B,QAAQ,iCAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAG,CAAC,EAAE,KAAK,EAA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AAO,EAAE,CAAC;SACpB;IACF,CAAC;IAMD,kCAAiB,GAAjB,UAAkB,SAA0B;QAC3C,IAAI,YAAY,CAAC,yBAAyB,EAAE;YAC3C,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;SAC/B;QACD,SAAS,CAAC,QAAQ,EAAE,CAAC;IACtB,CAAC;IAMD,+BAAc,GAAd,UAAe,SAAS;QACvB,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;YACnC,SAAS,CAAC,OAAO,EAAE,CAAC;SACpB;IACF,CAAC;IASD,0BAAS,GAAT,UAAU,MAAM,EAAE,KAAU;QAAV,sBAAA,EAAA,SAAS,CAAC;QAAE,gBAAS;aAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;YAAT,+BAAS;;QACtC,QAAQ,iCAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAK,MAAM,GAAC;IAC1E,CAAC;IAQD,yBAAQ,GAAR,UAAS,MAAM;QAAE,gBAAS;aAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;YAAT,+BAAS;;QACzB,QAAQ,iCAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,KAAK,EAAE,MAAM,GAAK,MAAM,GAAE;IAC/D,CAAC;IAwBF,aAAC;AAAD,CAAC,AAjeD,CAA4B,UAAU,GAierC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport HashObject from \"./HashObject\";\r\nimport { EngineConfig } from \"../engine-config\";\r\nexport function traverse(target, hitChild, level, includeSelf, fullCallback) {\r\n if (level === void 0) { level = -1; }\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n var params = [];\r\n for (var _i = 5; _i < arguments.length; _i++) {\r\n params[_i - 5] = arguments[_i];\r\n }\r\n var e_1, _a;\r\n var interrupt;\r\n if (includeSelf) {\r\n hitChild.apply(void 0, tslib_1.__spread([target], params));\r\n }\r\n if (level !== 0) {\r\n try {\r\n for (var _b = tslib_1.__values(target.children), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var child = _c.value;\r\n if (hitChild.apply(void 0, tslib_1.__spread([child], params))) {\r\n interrupt = true;\r\n continue;\r\n }\r\n if (child.children.length > 0) {\r\n traverse.apply(void 0, tslib_1.__spread([child, hitChild, level - 1, false, fullCallback], params));\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n }\r\n !interrupt && fullCallback && fullCallback(target);\r\n}\r\nexport function traversePostorder(target, hitChild, level, includeSelf, fullCallback) {\r\n if (level === void 0) { level = -1; }\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n var params = [];\r\n for (var _i = 5; _i < arguments.length; _i++) {\r\n params[_i - 5] = arguments[_i];\r\n }\r\n var interrupt;\r\n if (level !== 0) {\r\n for (var i = target.children.length - 1; i >= 0; i--) {\r\n var child = target.children[i];\r\n if (traversePostorder.apply(void 0, tslib_1.__spread([child, hitChild, level - 1, false, fullCallback], params))) {\r\n return true;\r\n }\r\n if (hitChild.apply(void 0, tslib_1.__spread([child], params))) {\r\n return true;\r\n }\r\n }\r\n }\r\n if (includeSelf) {\r\n hitChild.apply(void 0, tslib_1.__spread([target], params));\r\n }\r\n !interrupt && fullCallback && fullCallback(target);\r\n}\r\nexport function bubbling(target, hitParent, includeSelf) {\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n var params = [];\r\n for (var _i = 3; _i < arguments.length; _i++) {\r\n params[_i - 3] = arguments[_i];\r\n }\r\n if (includeSelf) {\r\n hitParent.apply(void 0, tslib_1.__spread([target], params));\r\n }\r\n var entity = target;\r\n while (entity = entity.parent) {\r\n if (hitParent.apply(void 0, tslib_1.__spread([entity], params))) {\r\n break;\r\n }\r\n }\r\n}\r\nvar Entity = (function (_super) {\r\n tslib_1.__extends(Entity, _super);\r\n function Entity(name, uuid) {\r\n var _this = _super.call(this) || this;\r\n _this.name = 'Entity';\r\n _this._isFree = true;\r\n _this._enabled = EngineConfig.entityEnabled;\r\n _this._parent = null;\r\n _this._children = [];\r\n _this._components = [];\r\n _this.invokeOnEntity = function (hitEntity, method) {\r\n var params = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n params[_i - 2] = arguments[_i];\r\n }\r\n var hitBreak = false;\r\n hitEntity.forEachComponent(function (comp) {\r\n var m = comp[method];\r\n if (m) {\r\n var result = m.apply(comp, params);\r\n if (result) {\r\n hitBreak = true;\r\n }\r\n }\r\n return false;\r\n });\r\n if (hitBreak) {\r\n return true;\r\n }\r\n };\r\n if (name) {\r\n _this.name = name;\r\n }\r\n if (uuid) {\r\n _this._uuid = uuid;\r\n }\r\n return _this;\r\n }\r\n Object.defineProperty(Entity.prototype, \"uuid\", {\r\n get: function () {\r\n return this._uuid;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Entity.prototype, \"enabled\", {\r\n get: function () {\r\n return this._enabled;\r\n },\r\n set: function (value) {\r\n if (this._enabled !== value) {\r\n this._enabled = value;\r\n traverse(this, function (child) {\r\n child._invokeEnabledState(value);\r\n return false;\r\n }, -1, true);\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype._invokeEnabledState = function (enabled) {\r\n if (this._enabled && enabled) {\r\n this.onEnable();\r\n }\r\n else if (!this._enabled && !enabled) {\r\n this.onDisable();\r\n }\r\n };\r\n Object.defineProperty(Entity.prototype, \"isParentActive\", {\r\n get: function () {\r\n return this._parent && this._parent.enabled && !this._parent.isFree;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Entity.prototype, \"isActive\", {\r\n get: function () {\r\n return this.isParentActive && this._enabled;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Entity.prototype, \"isFree\", {\r\n get: function () {\r\n return this._isFree;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype._free = function () {\r\n this._isFree = true;\r\n var that = this;\r\n traverse(this, function (child) {\r\n child._free();\r\n return false;\r\n }, 1);\r\n };\r\n Entity.prototype._restrict = function () {\r\n this._isFree = false;\r\n var that = this;\r\n traverse(this, function (child) {\r\n child._restrict();\r\n return false;\r\n }, 1);\r\n };\r\n Object.defineProperty(Entity.prototype, \"parent\", {\r\n get: function () {\r\n return this._parent;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype.containsChild = function (child) {\r\n return this.getChildIndex(child) >= 0;\r\n };\r\n Entity.prototype._onChildAdded = function (child) {\r\n child._parent = this;\r\n if (!this._isFree && child._isFree) {\r\n if (child.isParentActive) {\r\n child._invokeEnabledState(true);\r\n }\r\n child._restrict();\r\n }\r\n };\r\n Entity.prototype._onChildRemoved = function (child) {\r\n child._parent = null;\r\n if (!this._isFree && !child._isFree) {\r\n if (child.isActive) {\r\n child._invokeEnabledState(false);\r\n }\r\n child._free();\r\n }\r\n };\r\n Entity.prototype.addChild = function (child) {\r\n this.addChildAt(child, this._children.length);\r\n };\r\n Entity.prototype.addChildAt = function (child, index) {\r\n if (child.parent && child.parent !== this) {\r\n child.parent.removeChild(child);\r\n }\r\n var currentIndex = this.getChildIndex(child);\r\n if (index < 0 || currentIndex == index) {\r\n return;\r\n }\r\n index = Math.min(this._children.length, index);\r\n if (currentIndex >= 0 || index < this._children.length) {\r\n if (currentIndex >= 0) {\r\n this._children.splice(currentIndex, 1);\r\n }\r\n this._children.splice(index, 0, child);\r\n }\r\n else {\r\n this._children.push(child);\r\n }\r\n this._onChildAdded(child);\r\n };\r\n Entity.prototype.removeChild = function (child) {\r\n var index = this.getChildIndex(child);\r\n if (index >= 0) {\r\n this.removeChildAt(index);\r\n }\r\n };\r\n Entity.prototype.removeChildAt = function (index) {\r\n var child = this._children[index];\r\n this._onChildRemoved(child);\r\n this._children.splice(index, 1);\r\n };\r\n Entity.prototype.getChildIndex = function (child) {\r\n return this._children.indexOf(child);\r\n };\r\n Entity.prototype.getChildByIndex = function (index) {\r\n return this._children[index];\r\n };\r\n Entity.prototype.removeChildren = function () {\r\n while (this._children.length > 0) {\r\n this.removeChildAt(0);\r\n }\r\n };\r\n Object.defineProperty(Entity.prototype, \"children\", {\r\n get: function () {\r\n return this._children;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype.addComponent = function (component) {\r\n this.onAddComponent(component);\r\n this._components.push(component);\r\n };\r\n Entity.prototype.addComponentAt = function (component, index) {\r\n var currentIndex = this._components.indexOf(component);\r\n if (currentIndex == index) {\r\n return;\r\n }\r\n if (currentIndex >= 0) {\r\n this._components.splice(currentIndex, 1);\r\n }\r\n this._components.splice(index, 0, component);\r\n this.onAddComponent(component);\r\n };\r\n Entity.prototype.removeComponent = function (component) {\r\n this.onRemoveComponent(component);\r\n var index = this._components.indexOf(component);\r\n if (index >= 0) {\r\n this._components.splice(index, 1);\r\n }\r\n };\r\n Entity.prototype.removeAllComponents = function () {\r\n while (this._components.length > 0) {\r\n this.removeComponent(this._components[0]);\r\n }\r\n };\r\n Entity.prototype.getComponents = function (clazz) {\r\n return this._components.filter(function (component) {\r\n return typeof clazz === 'string' ? component.constructor.__class__ === clazz : component instanceof clazz;\r\n });\r\n };\r\n Entity.prototype.getComponent = function (clazz) {\r\n return this.getComponents(clazz)[0];\r\n };\r\n Object.defineProperty(Entity.prototype, \"components\", {\r\n get: function () {\r\n return this._components;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Entity.prototype.forEachComponent = function (func) {\r\n var e_2, _a;\r\n try {\r\n for (var _b = tslib_1.__values(this._components), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var component = _c.value;\r\n if (func(component)) {\r\n break;\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n };\r\n Entity.prototype.onEnable = function () {\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled) {\r\n return comp.onAwake();\r\n }\r\n });\r\n };\r\n Entity.prototype.onDisable = function () {\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled) {\r\n return comp.onSleep();\r\n }\r\n });\r\n };\r\n Entity.prototype.onUpdate = function (t) {\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled) {\r\n return comp.$onUpdate(t);\r\n }\r\n });\r\n };\r\n Entity.prototype.afterUpdate = function () {\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled) {\r\n return comp.afterUpdate();\r\n }\r\n });\r\n };\r\n Entity.prototype.onInteract = function (type, event) {\r\n if (!this.isFree && this.enabled) {\r\n var interrupt_1 = false;\r\n this.forEachComponent(function (comp) {\r\n if (comp.enabled && comp.interactable) {\r\n var r = comp.onInteract(type, event);\r\n if (r) {\r\n interrupt_1 = true;\r\n }\r\n return false;\r\n }\r\n });\r\n return interrupt_1;\r\n }\r\n else {\r\n return false;\r\n }\r\n };\r\n Entity.prototype.onAddComponent = function (component) {\r\n component._setup(this);\r\n if (EngineConfig.awakeComponentWhenAdded) {\r\n this.awakeComponent(component);\r\n }\r\n };\r\n Entity.prototype.awakeComponent = function (component) {\r\n if (!this._isFree && this._enabled) {\r\n component.onAwake();\r\n }\r\n };\r\n Entity.prototype.onRemoveComponent = function (component) {\r\n if (EngineConfig.sleepComponentWhenRemoved) {\r\n this.sleepComponent(component);\r\n }\r\n component._unSetup();\r\n };\r\n Entity.prototype.sleepComponent = function (component) {\r\n if (!this._isFree && this._enabled) {\r\n component.onSleep();\r\n }\r\n };\r\n Entity.prototype.broadcast = function (method, level) {\r\n if (level === void 0) { level = -1; }\r\n var params = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n params[_i - 2] = arguments[_i];\r\n }\r\n traverse.apply(void 0, tslib_1.__spread([this, this.invokeOnEntity, level, true, null, method], params));\r\n };\r\n Entity.prototype.bubbling = function (method) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n bubbling.apply(void 0, tslib_1.__spread([this, this.invokeOnEntity, false, method], params));\r\n };\r\n return Entity;\r\n}(HashObject));\r\nexport { Entity };\r\n//# sourceMappingURL=Entity.js.map"}
{"map":"{\"version\":3,\"file\":\"TextureRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/TextureRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAU,UAAU,EAAC,MAAM,QAAQ,CAAC;AAEpC,IAAA,kDAAkB,CAAe;AAExC,MAAM,CAAN,IAAY,QAaX;AAbD,WAAY,QAAQ;IAInB,2CAAM,CAAA;IAIN,2CAAM,CAAA;IAIN,yCAAK,CAAA;AACN,CAAC,EAbW,QAAQ,KAAR,QAAQ,QAanB;AAKD;IAA6C,2CAAQ;IAArD;QAAA,qEAqIC;QA1HA,cAAQ,GAAa,QAAQ,CAAC,MAAM,CAAC;QAMrC,aAAO,GAAG,EAAE,CAAC;;IAoHd,CAAC;IAlHA,sBAAY,uCAAU;aAAtB;YACC,OAAO,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;QAChD,CAAC;;;OAAA;IAKD,8BAAI,GAAJ;QACC,iBAAM,IAAI,WAAE,CAAC;QAEb,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,YAAY,EAAE,CAAC;IAmCrB,CAAC;IAKD,sCAAY,GAAZ;;QACC,IAAI,CAAC,IAAI,CAAC,UAAU;YAAE,OAAO;QAEvB,IAAA,SAAkC,EAAjC,oBAAO,EAAE,oBAAO,EAAE,oBAAe,CAAC;QAClC,IAAA,mBAAoD,EAA3C,uBAAmB,EAAE,yBAAsB,CAAY;QA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AA3E,kBAAM,EAAE,iBAA2D,EAA/C,yBAAqB,EAAE,2BAAgC,CAAC;QAEnF,IAAI,IAAI,CAAC,OAAO,EAAE;YACX,IAAA,iBAA2D,EAA1D,uBAAmB,EAAE,yBAAqC,CAAC;YAElE,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC;YACrD,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC;SACzD;aAAM;YACN,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;YAC1C,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;SAC7C;QAED,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IA/HD;QADC,kBAAkB;oDACF;IAMjB;QADC,kBAAkB;qDACkB;IAMrC;QADC,kBAAkB;oDACN;IAoHd,sBAAC;CAAA,AArID,CAA6C,QAAQ,GAqIpD;eArIoB,eAAe\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Renderer from \"./Renderer\";\r\nimport { decorators } from \"scilla\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector;\r\nexport var FillMode;\r\n(function (FillMode) {\r\n FillMode[FillMode[\"NORMAL\"] = 0] = \"NORMAL\";\r\n FillMode[FillMode[\"SLICED\"] = 1] = \"SLICED\";\r\n FillMode[FillMode[\"TILED\"] = 2] = \"TILED\";\r\n})(FillMode || (FillMode = {}));\r\nvar TextureRenderer = (function (_super) {\r\n tslib_1.__extends(TextureRenderer, _super);\r\n function TextureRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.fillMode = FillMode.NORMAL;\r\n _this.filters = [];\r\n return _this;\r\n }\r\n Object.defineProperty(TextureRenderer.prototype, \"hasFilters\", {\r\n get: function () {\r\n return this.filters && this.filters.length > 0;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n TextureRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n this.drawImage();\r\n this.applyFilters();\r\n };\r\n TextureRenderer.prototype.applyFilters = function () {\r\n var e_1, _a;\r\n if (!this.hasFilters)\r\n return;\r\n var _b = this, texture = _b.texture, filters = _b.filters, context = _b.context;\r\n var _c = texture.bounds, textureWidth = _c.width, textureHeight = _c.height;\r\n var imageData = context.getImageData(0, 0, textureWidth, textureHeight);\r\n try {\r\n for (var filters_1 = tslib_1.__values(filters), filters_1_1 = filters_1.next(); !filters_1_1.done; filters_1_1 = filters_1.next()) {\r\n var filter = filters_1_1.value;\r\n filter.drawFilter(imageData);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (filters_1_1 && !filters_1_1.done && (_a = filters_1.return)) _a.call(filters_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n context.putImageData(imageData, 0, 0);\r\n };\r\n TextureRenderer.prototype.drawImage = function () {\r\n if (!this.texture) {\r\n return;\r\n }\r\n var _a = this, texture = _a.texture, fillMode = _a.fillMode, context = _a.context, _b = _a.bounds, width = _b.width, height = _b.height;\r\n var _c = texture.bounds, x = _c.x, y = _c.y, textureWidth = _c.width, textureHeight = _c.height;\r\n switch (fillMode) {\r\n case FillMode.NORMAL:\r\n texture.drawToCanvas(context);\r\n break;\r\n case FillMode.SLICED:\r\n break;\r\n case FillMode.TILED:\r\n var textureCanvas = texture.getCacheCanvas();\r\n var pattern = context.createPattern(textureCanvas, 'repeat');\r\n context.rect(0, 0, width, height);\r\n context.fillStyle = pattern;\r\n context.fill();\r\n break;\r\n }\r\n };\r\n TextureRenderer.prototype.measureBounds = function () {\r\n if (!this.dirty) {\r\n return;\r\n }\r\n var _a = this, bounds = _a.bounds, _b = _a.transform, tWidth = _b.explicitWidth, tHeight = _b.explicitHeight;\r\n if (this.texture) {\r\n var _c = this.texture, textureWidth = _c.width, textureHeight = _c.height;\r\n bounds.width = isNaN(tWidth) ? textureWidth : tWidth;\r\n bounds.height = isNaN(tHeight) ? textureHeight : tHeight;\r\n }\r\n else {\r\n bounds.width = isNaN(tWidth) ? 0 : tWidth;\r\n bounds.height = isNaN(tHeight) ? 0 : tHeight;\r\n }\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextureRenderer.prototype, \"texture\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextureRenderer.prototype, \"fillMode\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextureRenderer.prototype, \"filters\", void 0);\r\n return TextureRenderer;\r\n}(Renderer));\r\nexport default TextureRenderer;\r\n//# sourceMappingURL=TextureRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"LineRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/LineRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAKhD;IAA0C,wCAAe;IAAzD;QAAA,qEA4BC;QA3BA,QAAE,GAAW,CAAC,CAAC;QACf,QAAE,GAAW,CAAC,CAAC;QACf,QAAE,GAAW,CAAC,CAAC;QACf,QAAE,GAAW,CAAC,CAAC;;IAwBhB,CAAC;IAnBA,2BAAI,GAAJ;QACC,iBAAM,IAAI,WAAE,CAAC;QAEP,IAAA,SAAgC,EAA/B,oBAAO,EAAE,UAAE,EAAE,UAAE,EAAE,UAAE,EAAE,UAAU,CAAC;QAEvC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACvB,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACxB,CAAC;IAKD,oCAAa,GAAb;QACQ,IAAA,oBAAM,CAAS;QACtB,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;QACjB,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QAElB,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IACF,mBAAC;AAAD,CAAC,AA5BD,CAA0C,eAAe,GA4BxD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nvar LineRenderer = (function (_super) {\r\n tslib_1.__extends(LineRenderer, _super);\r\n function LineRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.x0 = 0;\r\n _this.y0 = 0;\r\n _this.x1 = 0;\r\n _this.y1 = 0;\r\n return _this;\r\n }\r\n LineRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n var _a = this, context = _a.context, x0 = _a.x0, y0 = _a.y0, x1 = _a.x1, y1 = _a.y1;\r\n context.moveTo(x0, y0);\r\n context.lineTo(x1, y1);\r\n };\r\n LineRenderer.prototype.measureBounds = function () {\r\n var bounds = this.bounds;\r\n bounds.width = 0;\r\n bounds.height = 0;\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n return LineRenderer;\r\n}(GraphicRenderer));\r\nexport default LineRenderer;\r\n//# sourceMappingURL=LineRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,0BAA0B,CAAA;AAC1E,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mBAAmB,CAAA\"}","code":"export { default as CircleRenderer } from './CircleRenderer';\r\nexport { default as FrameAnimationRenderer } from './FrameAnimationRenderer';\r\nexport { default as GraphicRenderer } from './GraphicRenderer';\r\nexport { default as LineRenderer } from './LineRenderer';\r\nexport { default as RectRenderer } from './RectRenderer';\r\nexport { default as Renderer } from './Renderer';\r\nexport { default as TextRenderer } from './TextRenderer';\r\nexport { default as TextureRenderer } from './TextureRenderer';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"MustCompile.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/generated/MustCompile.ts\"],\"names\":[],\"mappings\":\"AAKA,OAAO,EAAC,WAAW,EAAC,MAAM,QAAQ,CAAA;AAElC,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,WAAW,CAAC,2BAA2B,EAAE,UAAU,CAAC,CAAC;AAErD,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,WAAW,CAAC,mCAAmC,EAAE,UAAU,CAAC,CAAC;AAE7D,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,WAAW,CAAC,qCAAqC,EAAE,UAAU,CAAC,CAAC;AAE/D,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,WAAW,CAAC,gCAAgC,EAAE,UAAU,CAAC,CAAC;AAE1D,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,WAAW,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC;AAEhD,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC\"}","code":"import { registerDef } from 'scilla';\r\nimport component0 from 'components/base/Transform';\r\nregisterDef('components/base/Transform', component0);\r\nimport component1 from 'components/other/CameraController';\r\nregisterDef('components/other/CameraController', component1);\r\nimport component2 from 'components/renderer/TextureRenderer';\r\nregisterDef('components/renderer/TextureRenderer', component2);\r\nimport component3 from 'components/renderer/RectRenderer';\r\nregisterDef('components/renderer/RectRenderer', component3);\r\nimport component4 from 'components/animation/TouchZoom';\r\nregisterDef('components/animation/TouchZoom', component4);\r\nimport component5 from 'components/ui/Button';\r\nregisterDef('components/ui/Button', component5);\r\nimport component6 from 'components/renderer/TextRenderer';\r\nregisterDef('components/renderer/TextRenderer', component6);\r\n//# sourceMappingURL=MustCompile.js.map"}
{"map":"{\"version\":3,\"file\":\"decorators.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/decorators.ts\"],\"names\":[],\"mappings\":\"AAUA,MAAM,UAAU,YAAY,CAAC,QAAQ;IACpC,OAAO,UAAU,MAAW,EAAE,GAAW;QACxC,IAAM,UAAU,GAAG,GAAG,GAAG,GAAG,CAAC;QAC7B,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE;YAClC,UAAU,EAAE,IAAI;YAChB,GAAG,EAAE;gBACJ,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC;YACzB,CAAC;YACD,GAAG,EAAE,UAAU,CAAC;gBACf,IAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;gBAClC,IAAI,QAAQ,KAAK,CAAC,EAAE;oBACnB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;oBACrB,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;iBACzC;YACF,CAAC;SACD,CAAC,CAAA;IACH,CAAC,CAAA;AACF,CAAC;AAKD,MAAM,CAAC,IAAM,kBAAkB,GAAG,YAAY,CAC7C,UAAU,KAAK,EAAE,GAAG,EAAE,QAAQ;IAC7B,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;AACtB,CAAC,CACD,CAAC;AAKF,MAAM,CAAC,IAAM,iBAAiB,GAAG,YAAY,CAC5C,UAAU,KAAK,EAAE,GAAG,EAAE,QAAQ;IAC7B,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;AAC5D,CAAC,CACD,CAAC\"}","code":"export function fieldChanged(onChange) {\r\n return function (target, key) {\r\n var privateKey = '_' + key;\r\n Object.defineProperty(target, key, {\r\n enumerable: true,\r\n get: function () {\r\n return this[privateKey];\r\n },\r\n set: function (v) {\r\n var oldValue = this[privateKey];\r\n if (oldValue !== v) {\r\n this[privateKey] = v;\r\n onChange.apply(this, [v, key, oldValue]);\r\n }\r\n }\r\n });\r\n };\r\n}\r\nexport var dirtyFieldDetector = fieldChanged(function (value, key, oldValue) {\r\n this['dirty'] = true;\r\n});\r\nexport var dirtyFieldTrigger = fieldChanged(function (value, key, oldValue) {\r\n this['onModify'] && this['onModify'](value, key, oldValue);\r\n});\r\n//# sourceMappingURL=decorators.js.map"}
{"map":"{\"version\":3,\"file\":\"Filters.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/filter/Filters.ts\"],\"names\":[],\"mappings\":\"AAMA;IA0DI,sBAAmB,KAAuB,EAAE,OAAmB,EAAE,OAAmB,EAAE,IAAgB;QAAnF,sBAAA,EAAA,eAAuB;QAAE,wBAAA,EAAA,WAAmB;QAAE,wBAAA,EAAA,WAAmB;QAAE,qBAAA,EAAA,QAAgB;QAhD/F,UAAK,GAAW,OAAO,CAAC;QAUxB,YAAO,GAAW,CAAC,CAAC;QAUpB,YAAO,GAAW,CAAC,CAAC;QAUpB,SAAI,GAAW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,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;IAmKlvC,iBAAC;CAAA,AAlOD,IAkOC;SAlOY,UAAU\"}","code":"var ShadowFilter = (function () {\r\n function ShadowFilter(color, offsetX, offsetY, blur) {\r\n if (color === void 0) { color = \"black\"; }\r\n if (offsetX === void 0) { offsetX = 2; }\r\n if (offsetY === void 0) { offsetY = 2; }\r\n if (blur === void 0) { blur = 2; }\r\n this.color = \"black\";\r\n this.offsetX = 2;\r\n this.offsetY = 2;\r\n this.blur = 2;\r\n this.type = \"Shadow\";\r\n var s = this;\r\n s.offsetX = offsetX;\r\n s.offsetY = offsetY;\r\n s.blur = blur;\r\n s.color = color;\r\n }\r\n ShadowFilter.prototype.toString = function () {\r\n var s = this;\r\n return s.type + s.offsetX + s.offsetY + s.blur + s.color;\r\n };\r\n ShadowFilter.prototype.drawFilter = function (imageData) {\r\n if (imageData === void 0) { imageData = null; }\r\n };\r\n ShadowFilter.prototype.destroy = function () {\r\n };\r\n return ShadowFilter;\r\n}());\r\nexport { ShadowFilter };\r\nvar ColorFilter = (function () {\r\n function ColorFilter(colorArrays) {\r\n this.redMultiplier = 0;\r\n this.redOffset = 0;\r\n this.greenMultiplier = 0;\r\n this.greenOffset = 0;\r\n this.blueMultiplier = 0;\r\n this.blueOffset = 0;\r\n this.alphaMultiplier = 0;\r\n this.alphaOffset = 0;\r\n this.type = \"Color\";\r\n var s = this;\r\n s.redMultiplier = colorArrays[0];\r\n s.greenMultiplier = colorArrays[1];\r\n s.blueMultiplier = colorArrays[2];\r\n s.alphaMultiplier = colorArrays[3];\r\n s.redOffset = colorArrays[4];\r\n s.greenOffset = colorArrays[5];\r\n s.blueOffset = colorArrays[6];\r\n s.alphaOffset = colorArrays[7];\r\n }\r\n ColorFilter.prototype.drawFilter = function (imageData) {\r\n if (imageData === void 0) { imageData = null; }\r\n if (!imageData)\r\n return;\r\n var s = this;\r\n var data = imageData.data;\r\n var l = data.length;\r\n for (var i = 0; i < l; i += 4) {\r\n data[i] = data[i] * s.redMultiplier + s.redOffset;\r\n data[i + 1] = data[i + 1] * s.greenMultiplier + s.greenOffset;\r\n data[i + 2] = data[i + 2] * s.blueMultiplier + s.blueOffset;\r\n data[i + 3] = data[i + 3] * s.alphaMultiplier + s.alphaOffset;\r\n }\r\n };\r\n ColorFilter.prototype.toString = function () {\r\n var s = this;\r\n return s.type + s.redMultiplier + s.greenMultiplier + s.blueMultiplier + s.alphaMultiplier + s.redOffset + s.greenOffset + s.blueOffset + s.alphaOffset;\r\n };\r\n ColorFilter.prototype.destroy = function () {\r\n };\r\n return ColorFilter;\r\n}());\r\nexport { ColorFilter };\r\nvar ColorMatrixFilter = (function () {\r\n function ColorMatrixFilter(brightness, contrast, saturation, hue) {\r\n this.brightness = 0;\r\n this.contrast = 0;\r\n this.saturation = 0;\r\n this.hue = 0;\r\n this.type = \"ColorMatrix\";\r\n var s = this;\r\n s.brightness = brightness;\r\n s.contrast = contrast;\r\n s.saturation = saturation;\r\n s.hue = hue;\r\n s.colorMatrix = [\r\n 1, 0, 0, 0, 0,\r\n 0, 1, 0, 0, 0,\r\n 0, 0, 1, 0, 0,\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ];\r\n brightness = s._cleanValue(brightness, 255);\r\n if (brightness != 0) {\r\n s._multiplyMatrix([\r\n 1, 0, 0, 0, brightness,\r\n 0, 1, 0, 0, brightness,\r\n 0, 0, 1, 0, brightness,\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ]);\r\n }\r\n contrast = this._cleanValue(contrast, 100);\r\n var x;\r\n if (contrast != 0) {\r\n if (contrast < 0) {\r\n x = 127 + contrast / 100 * 127;\r\n }\r\n else {\r\n x = contrast % 1;\r\n if (x == 0) {\r\n x = ColorMatrixFilter.DELTA_INDEX[contrast];\r\n }\r\n else {\r\n x = ColorMatrixFilter.DELTA_INDEX[(contrast << 0)] * (1 - x) + ColorMatrixFilter.DELTA_INDEX[(contrast << 0) + 1] * x;\r\n }\r\n x = x * 127 + 127;\r\n }\r\n s._multiplyMatrix([\r\n x / 127, 0, 0, 0, 0.5 * (127 - x),\r\n 0, x / 127, 0, 0, 0.5 * (127 - x),\r\n 0, 0, x / 127, 0, 0.5 * (127 - x),\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ]);\r\n }\r\n saturation = this._cleanValue(saturation, 100);\r\n if (saturation != 0) {\r\n x = 1 + ((saturation > 0) ? 3 * saturation / 100 : saturation / 100);\r\n var lumR = 0.3086;\r\n var lumG = 0.6094;\r\n var lumB = 0.0820;\r\n s._multiplyMatrix([\r\n lumR * (1 - x) + x, lumG * (1 - x), lumB * (1 - x), 0, 0,\r\n lumR * (1 - x), lumG * (1 - x) + x, lumB * (1 - x), 0, 0,\r\n lumR * (1 - x), lumG * (1 - x), lumB * (1 - x) + x, 0, 0,\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ]);\r\n }\r\n hue = this._cleanValue(hue, 180) / 180 * Math.PI;\r\n if (hue != 0) {\r\n var cosVal = Math.cos(hue);\r\n var sinVal = Math.sin(hue);\r\n var lumR = 0.213;\r\n var lumG = 0.715;\r\n var lumB = 0.072;\r\n s._multiplyMatrix([\r\n lumR + cosVal * (1 - lumR) + sinVal * (-lumR), lumG + cosVal * (-lumG) + sinVal * (-lumG), lumB + cosVal * (-lumB) + sinVal * (1 - lumB), 0, 0,\r\n lumR + cosVal * (-lumR) + sinVal * (0.143), lumG + cosVal * (1 - lumG) + sinVal * (0.140), lumB + cosVal * (-lumB) + sinVal * (-0.283), 0, 0,\r\n lumR + cosVal * (-lumR) + sinVal * (-(1 - lumR)), lumG + cosVal * (-lumG) + sinVal * (lumG), lumB + cosVal * (1 - lumB) + sinVal * (lumB), 0, 0,\r\n 0, 0, 0, 1, 0,\r\n 0, 0, 0, 0, 1\r\n ]);\r\n }\r\n }\r\n ColorMatrixFilter.prototype.drawFilter = function (imageData) {\r\n if (imageData === void 0) { imageData = null; }\r\n if (!imageData)\r\n return;\r\n var data = imageData.data;\r\n var l = data.length;\r\n var r, g, b, a;\r\n var mtx = this.colorMatrix;\r\n var m0 = mtx[0], m1 = mtx[1], m2 = mtx[2], m3 = mtx[3], m4 = mtx[4];\r\n var m5 = mtx[5], m6 = mtx[6], m7 = mtx[7], m8 = mtx[8], m9 = mtx[9];\r\n var m10 = mtx[10], m11 = mtx[11], m12 = mtx[12], m13 = mtx[13], m14 = mtx[14];\r\n var m15 = mtx[15], m16 = mtx[16], m17 = mtx[17], m18 = mtx[18], m19 = mtx[19];\r\n for (var i = 0; i < l; i += 4) {\r\n r = data[i];\r\n g = data[i + 1];\r\n b = data[i + 2];\r\n a = data[i + 3];\r\n data[i] = r * m0 + g * m1 + b * m2 + a * m3 + m4;\r\n data[i + 1] = r * m5 + g * m6 + b * m7 + a * m8 + m9;\r\n data[i + 2] = r * m10 + g * m11 + b * m12 + a * m13 + m14;\r\n data[i + 3] = r * m15 + g * m16 + b * m17 + a * m18 + m19;\r\n }\r\n };\r\n ColorMatrixFilter.prototype._multiplyMatrix = function (colorMat) {\r\n var i, j, k, col = [];\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j < 5; j++) {\r\n col[j] = this.colorMatrix[j + i * 5];\r\n }\r\n for (j = 0; j < 5; j++) {\r\n var val = 0;\r\n for (k = 0; k < 5; k++) {\r\n val += colorMat[j + k * 5] * col[k];\r\n }\r\n this.colorMatrix[j + i * 5] = val;\r\n }\r\n }\r\n };\r\n ColorMatrixFilter.prototype._cleanValue = function (value, limit) {\r\n return Math.min(limit, Math.max(-limit, value));\r\n };\r\n ColorMatrixFilter.prototype.toString = function () {\r\n var s = this;\r\n return s.type + s.brightness + s.hue + s.saturation + s.contrast;\r\n };\r\n ColorMatrixFilter.prototype.destroy = function () {\r\n this.colorMatrix = null;\r\n };\r\n ColorMatrixFilter.DELTA_INDEX = [\r\n 0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 0.08, 0.1, 0.11,\r\n 0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.20, 0.21, 0.22, 0.24,\r\n 0.25, 0.27, 0.28, 0.30, 0.32, 0.34, 0.36, 0.38, 0.40, 0.42,\r\n 0.44, 0.46, 0.48, 0.5, 0.53, 0.56, 0.59, 0.62, 0.65, 0.68,\r\n 0.71, 0.74, 0.77, 0.80, 0.83, 0.86, 0.89, 0.92, 0.95, 0.98,\r\n 1.0, 1.06, 1.12, 1.18, 1.24, 1.30, 1.36, 1.42, 1.48, 1.54,\r\n 1.60, 1.66, 1.72, 1.78, 1.84, 1.90, 1.96, 2.0, 2.12, 2.25,\r\n 2.37, 2.50, 2.62, 2.75, 2.87, 3.0, 3.2, 3.4, 3.6, 3.8,\r\n 4.0, 4.3, 4.7, 4.9, 5.0, 5.5, 6.0, 6.5, 6.8, 7.0,\r\n 7.3, 7.5, 7.8, 8.0, 8.4, 8.7, 9.0, 9.4, 9.6, 9.8,\r\n 10.0\r\n ];\r\n return ColorMatrixFilter;\r\n}());\r\nexport { ColorMatrixFilter };\r\nvar BlurFilter = (function () {\r\n function BlurFilter(blurX, blurY, quality) {\r\n if (blurX === void 0) { blurX = 2; }\r\n if (blurY === void 0) { blurY = 2; }\r\n if (quality === void 0) { quality = 1; }\r\n this.type = \"blur\";\r\n this.blurX = 0;\r\n this.blurY = 0;\r\n this.quality = 1;\r\n var s = this;\r\n s.blurX = blurX;\r\n s.blurY = blurY;\r\n s.quality = quality;\r\n }\r\n BlurFilter.prototype.toString = function () {\r\n var s = this;\r\n return s.type + s.blurX + s.blurY + s.quality;\r\n };\r\n BlurFilter.prototype.drawFilter = function (imageData) {\r\n if (imageData === void 0) { imageData = null; }\r\n var s = this;\r\n var radiusX = s.blurX >> 1;\r\n if (isNaN(radiusX) || radiusX < 0)\r\n return false;\r\n var radiusY = s.blurY >> 1;\r\n if (isNaN(radiusY) || radiusY < 0)\r\n return false;\r\n if (radiusX == 0 && radiusY == 0)\r\n return false;\r\n var iterations = s.quality;\r\n if (isNaN(iterations) || iterations < 1)\r\n iterations = 1;\r\n iterations |= 0;\r\n if (iterations > 3)\r\n iterations = 3;\r\n if (iterations < 1)\r\n iterations = 1;\r\n var px = imageData.data;\r\n var x = 0, y = 0, i = 0, p = 0, yp = 0, yi = 0, yw = 0, r = 0, g = 0, b = 0, a = 0, pr = 0, pg = 0, pb = 0, pa = 0;\r\n var divx = (radiusX + radiusX + 1) | 0;\r\n var divy = (radiusY + radiusY + 1) | 0;\r\n var w = imageData.width | 0;\r\n var h = imageData.height | 0;\r\n var w1 = (w - 1) | 0;\r\n var h1 = (h - 1) | 0;\r\n var rxp1 = (radiusX + 1) | 0;\r\n var ryp1 = (radiusY + 1) | 0;\r\n var ssx = { r: 0, b: 0, g: 0, a: 0 };\r\n var sx = ssx;\r\n for (i = 1; i < divx; i++) {\r\n sx = sx.n = { r: 0, b: 0, g: 0, a: 0 };\r\n }\r\n sx.n = ssx;\r\n var ssy = { r: 0, b: 0, g: 0, a: 0 };\r\n var sy = ssy;\r\n for (i = 1; i < divy; i++) {\r\n sy = sy.n = { r: 0, b: 0, g: 0, a: 0 };\r\n }\r\n sy.n = ssy;\r\n var si = null;\r\n var mtx = BlurFilter.MUL_TABLE[radiusX] | 0;\r\n var stx = BlurFilter.SHG_TABLE[radiusX] | 0;\r\n var mty = BlurFilter.MUL_TABLE[radiusY] | 0;\r\n var sty = BlurFilter.SHG_TABLE[radiusY] | 0;\r\n while (iterations-- > 0) {\r\n yw = yi = 0;\r\n var ms = mtx;\r\n var ss = stx;\r\n for (y = h; --y > -1;) {\r\n r = rxp1 * (pr = px[(yi) | 0]);\r\n g = rxp1 * (pg = px[(yi + 1) | 0]);\r\n b = rxp1 * (pb = px[(yi + 2) | 0]);\r\n a = rxp1 * (pa = px[(yi + 3) | 0]);\r\n sx = ssx;\r\n for (i = rxp1; --i > -1;) {\r\n sx.r = pr;\r\n sx.g = pg;\r\n sx.b = pb;\r\n sx.a = pa;\r\n sx = sx.n;\r\n }\r\n for (i = 1; i < rxp1; i++) {\r\n p = (yi + ((w1 < i ? w1 : i) << 2)) | 0;\r\n r += (sx.r = px[p]);\r\n g += (sx.g = px[p + 1]);\r\n b += (sx.b = px[p + 2]);\r\n a += (sx.a = px[p + 3]);\r\n sx = sx.n;\r\n }\r\n si = ssx;\r\n for (x = 0; x < w; x++) {\r\n px[yi++] = (r * ms) >>> ss;\r\n px[yi++] = (g * ms) >>> ss;\r\n px[yi++] = (b * ms) >>> ss;\r\n px[yi++] = (a * ms) >>> ss;\r\n p = ((yw + ((p = x + radiusX + 1) < w1 ? p : w1)) << 2);\r\n r -= si.r - (si.r = px[p]);\r\n g -= si.g - (si.g = px[p + 1]);\r\n b -= si.b - (si.b = px[p + 2]);\r\n a -= si.a - (si.a = px[p + 3]);\r\n si = si.n;\r\n }\r\n yw += w;\r\n }\r\n ms = mty;\r\n ss = sty;\r\n for (x = 0; x < w; x++) {\r\n yi = (x << 2) | 0;\r\n r = (ryp1 * (pr = px[yi])) | 0;\r\n g = (ryp1 * (pg = px[(yi + 1) | 0])) | 0;\r\n b = (ryp1 * (pb = px[(yi + 2) | 0])) | 0;\r\n a = (ryp1 * (pa = px[(yi + 3) | 0])) | 0;\r\n sy = ssy;\r\n for (i = 0; i < ryp1; i++) {\r\n sy.r = pr;\r\n sy.g = pg;\r\n sy.b = pb;\r\n sy.a = pa;\r\n sy = sy.n;\r\n }\r\n yp = w;\r\n for (i = 1; i <= radiusY; i++) {\r\n yi = (yp + x) << 2;\r\n r += (sy.r = px[yi]);\r\n g += (sy.g = px[yi + 1]);\r\n b += (sy.b = px[yi + 2]);\r\n a += (sy.a = px[yi + 3]);\r\n sy = sy.n;\r\n if (i < h1) {\r\n yp += w;\r\n }\r\n }\r\n yi = x;\r\n si = ssy;\r\n if (iterations > 0) {\r\n for (y = 0; y < h; y++) {\r\n p = yi << 2;\r\n px[p + 3] = pa = (a * ms) >>> ss;\r\n if (pa > 0) {\r\n px[p] = ((r * ms) >>> ss);\r\n px[p + 1] = ((g * ms) >>> ss);\r\n px[p + 2] = ((b * ms) >>> ss);\r\n }\r\n else {\r\n px[p] = px[p + 1] = px[p + 2] = 0;\r\n }\r\n p = (x + (((p = y + ryp1) < h1 ? p : h1) * w)) << 2;\r\n r -= si.r - (si.r = px[p]);\r\n g -= si.g - (si.g = px[p + 1]);\r\n b -= si.b - (si.b = px[p + 2]);\r\n a -= si.a - (si.a = px[p + 3]);\r\n si = si.n;\r\n yi += w;\r\n }\r\n }\r\n else {\r\n for (y = 0; y < h; y++) {\r\n p = yi << 2;\r\n px[p + 3] = pa = (a * ms) >>> ss;\r\n if (pa > 0) {\r\n pa = 255 / pa;\r\n px[p] = ((r * ms) >>> ss) * pa;\r\n px[p + 1] = ((g * ms) >>> ss) * pa;\r\n px[p + 2] = ((b * ms) >>> ss) * pa;\r\n }\r\n else {\r\n px[p] = px[p + 1] = px[p + 2] = 0;\r\n }\r\n p = (x + (((p = y + ryp1) < h1 ? p : h1) * w)) << 2;\r\n r -= si.r - (si.r = px[p]);\r\n g -= si.g - (si.g = px[p + 1]);\r\n b -= si.b - (si.b = px[p + 2]);\r\n a -= si.a - (si.a = px[p + 3]);\r\n si = si.n;\r\n yi += w;\r\n }\r\n }\r\n }\r\n }\r\n };\r\n BlurFilter.prototype.destroy = function () {\r\n };\r\n BlurFilter.SHG_TABLE = [0, 9, 10, 11, 9, 12, 10, 11, 12, 9, 13, 13, 10, 9, 13, 13, 14, 14, 14, 14, 10, 13, 14, 14, 14, 13, 13, 13, 9, 14, 14, 14, 15, 14, 15, 14, 15, 15, 14, 15, 15, 15, 14, 15, 15, 15, 15, 15, 14, 15, 15, 15, 15, 15, 15, 12, 14, 15, 15, 13, 15, 15, 15, 15, 16, 16, 16, 15, 16, 14, 16, 16, 14, 16, 13, 16, 16, 16, 15, 16, 13, 16, 15, 16, 14, 9, 16, 16, 16, 16, 16, 16, 16, 16, 16, 13, 14, 16, 16, 15, 16, 16, 10, 16, 15, 16, 14, 16, 16, 14, 16, 16, 14, 16, 16, 14, 15, 16, 16, 16, 14, 15, 14, 15, 13, 16, 16, 15, 17, 17, 17, 17, 17, 17, 14, 15, 17, 17, 16, 16, 17, 16, 15, 17, 16, 17, 11, 17, 16, 17, 16, 17, 16, 17, 17, 16, 17, 17, 16, 17, 17, 16, 16, 17, 17, 17, 16, 14, 17, 17, 17, 17, 15, 16, 14, 16, 15, 16, 13, 16, 15, 16, 14, 16, 15, 16, 12, 16, 15, 16, 17, 17, 17, 17, 17, 13, 16, 15, 17, 17, 17, 16, 15, 17, 17, 17, 16, 15, 17, 17, 14, 16, 17, 17, 16, 17, 17, 16, 15, 17, 16, 14, 17, 16, 15, 17, 16, 17, 17, 16, 17, 15, 16, 17, 14, 17, 16, 15, 17, 16, 17, 13, 17, 16, 17, 17, 16, 17, 14, 17, 16, 17, 16, 17, 16, 17, 9];\r\n BlurFilter.MUL_TABLE = [1, 171, 205, 293, 57, 373, 79, 137, 241, 27, 391, 357, 41, 19, 283, 265, 497, 469, 443, 421, 25, 191, 365, 349, 335, 161, 155, 149, 9, 278, 269, 261, 505, 245, 475, 231, 449, 437, 213, 415, 405, 395, 193, 377, 369, 361, 353, 345, 169, 331, 325, 319, 313, 307, 301, 37, 145, 285, 281, 69, 271, 267, 263, 259, 509, 501, 493, 243, 479, 118, 465, 459, 113, 446, 55, 435, 429, 423, 209, 413, 51, 403, 199, 393, 97, 3, 379, 375, 371, 367, 363, 359, 355, 351, 347, 43, 85, 337, 333, 165, 327, 323, 5, 317, 157, 311, 77, 305, 303, 75, 297, 294, 73, 289, 287, 71, 141, 279, 277, 275, 68, 135, 67, 133, 33, 262, 260, 129, 511, 507, 503, 499, 495, 491, 61, 121, 481, 477, 237, 235, 467, 232, 115, 457, 227, 451, 7, 445, 221, 439, 218, 433, 215, 427, 425, 211, 419, 417, 207, 411, 409, 203, 202, 401, 399, 396, 197, 49, 389, 387, 385, 383, 95, 189, 47, 187, 93, 185, 23, 183, 91, 181, 45, 179, 89, 177, 11, 175, 87, 173, 345, 343, 341, 339, 337, 21, 167, 83, 331, 329, 327, 163, 81, 323, 321, 319, 159, 79, 315, 313, 39, 155, 309, 307, 153, 305, 303, 151, 75, 299, 149, 37, 295, 147, 73, 291, 145, 289, 287, 143, 285, 71, 141, 281, 35, 279, 139, 69, 275, 137, 273, 17, 271, 135, 269, 267, 133, 265, 33, 263, 131, 261, 130, 259, 129, 257, 1];\r\n return BlurFilter;\r\n}());\r\nexport { BlurFilter };\r\n//# sourceMappingURL=Filters.js.map"}
{"map":"{\"version\":3,\"file\":\"CircleRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/CircleRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAE3B,IAAA,kDAAkB,CAAe;AAKxC;IAA4C,0CAAe;IAA3D;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CAAC,CAAC;aACzB;SACD;QAED,iBAAM,IAAI,WAAE,CAAC;IACd,CAAC;IAhDD;QADC,kBAAkB;kDACP;IAMZ;QADC,kBAAkB;sDACI;IAMvB;QADC,kBAAkB;oDACI;IAMvB;QADC,kBAAkB;wDACU;IA+B9B,qBAAC;CAAA,AAtDD,CAA4C,eAAe,GAsD1D;eAtDoB,cAAc\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nimport { decorators } from \"scilla\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector;\r\nvar CircleRenderer = (function (_super) {\r\n tslib_1.__extends(CircleRenderer, _super);\r\n function CircleRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.radius = 50;\r\n _this.startAngle = 0;\r\n _this.endAngle = 360;\r\n _this.backToCenter = true;\r\n return _this;\r\n }\r\n CircleRenderer.prototype.getRenderSize = function () {\r\n var radius = this.radius;\r\n return { width: radius * 2, height: radius * 2 };\r\n };\r\n CircleRenderer.prototype.draw = function () {\r\n var _a = this, context = _a.context, _b = _a.bounds, width = _b.width, height = _b.height, startAngle = _a.startAngle, endAngle = _a.endAngle, backToCenter = _a.backToCenter, _margin = _a._margin, _useCacheMode = _a._useCacheMode;\r\n var offset = _useCacheMode ? _margin : 0;\r\n var radius = Math.min(width, height) / 2;\r\n var pos = offset + radius;\r\n if (startAngle == 0 && endAngle == 360) {\r\n context.arc(pos, pos, radius, 0, 2 * Math.PI);\r\n }\r\n else {\r\n if (backToCenter) {\r\n context.moveTo(pos, pos);\r\n }\r\n context.arc(pos, pos, radius, startAngle * Math.PI / 180, endAngle * Math.PI / 180);\r\n if (backToCenter) {\r\n context.lineTo(pos, pos);\r\n }\r\n }\r\n _super.prototype.draw.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"radius\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"startAngle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"endAngle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"backToCenter\", void 0);\r\n return CircleRenderer;\r\n}(GraphicRenderer));\r\nexport default CircleRenderer;\r\n//# sourceMappingURL=CircleRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"utils.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/utils.ts\"],\"names\":[],\"mappings\":\"AAMA,MAAM,UAAU,UAAU,CAAC,MAAW,EAAE,IAAU,EAAE,QAAmB,EAAE,YAA4B,EAAE,UAA0B;IAAxD,6BAAA,EAAA,mBAA4B;IAAE,2BAAA,EAAA,iBAA0B;IAChI,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE;QACrB,OAAO,KAAK,CAAC;KACb;IAED,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE;QACrB,IAAI,KAAK,GAAQ,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3B,IAAI,CAAC,CAAC,YAAY,IAAI,OAAO,KAAK,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,IAAI,IAAI,CAAC,EAAE;YACpF,IAAI,QAAQ,EAAE;gBACb,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;aAC7B;iBAAM;gBACN,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;aACpB;SACD;KACD;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAG;IAClC,IAAI,CAAC,GAAG,EAAE;QACT,OAAO,EAAE,CAAC;KACV;IACD,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,KAAK,IAAI,GAAG,IAAI,GAAG,EAAE;QACpB,GAAG,CAAC,I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E;QACd,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;KACxB;IACD,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AAC7B,CAAC\"}","code":"export function injectProp(target, data, callback, ignoreMethod, ignoreNull) {\r\n if (ignoreMethod === void 0) { ignoreMethod = true; }\r\n if (ignoreNull === void 0) { ignoreNull = true; }\r\n if (!target || !data) {\r\n return false;\r\n }\r\n var result = true;\r\n for (var key in data) {\r\n var value = data[key];\r\n if ((!ignoreMethod || typeof value != 'function') && (!ignoreNull || value != null)) {\r\n if (callback) {\r\n callback(target, key, value);\r\n }\r\n else {\r\n target[key] = value;\r\n }\r\n }\r\n }\r\n return result;\r\n}\r\nexport function objectStringify(obj) {\r\n if (!obj) {\r\n return '';\r\n }\r\n var arr = [];\r\n for (var key in obj) {\r\n arr.push(key + '=' + obj[key]);\r\n }\r\n return arr.join('&');\r\n}\r\nexport function waitPromise(duration) {\r\n return new Promise(function (resolve) {\r\n setTimeout(resolve, duration);\r\n });\r\n}\r\nexport function format(formatStr) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n return formatApply(formatStr, params);\r\n}\r\nexport function formatApply(formatStr, params) {\r\n var result = formatStr;\r\n for (var i = 0, len = params.length; i < len; i++) {\r\n var reg = new RegExp(\"\\\\{\" + i + \"\\\\}\", 'g');\r\n result = result.replace(reg, params[i]);\r\n }\r\n return result;\r\n}\r\nvar zeros = [\r\n \"0\",\r\n \"00\",\r\n \"000\",\r\n \"0000\",\r\n \"00000\",\r\n \"000000\",\r\n \"0000000\",\r\n \"00000000\",\r\n \"000000000\",\r\n \"0000000000\"\r\n];\r\nexport function supplement(value, count) {\r\n var index = count - value.toString().length - 1;\r\n if (index < 0) {\r\n return value.toString();\r\n }\r\n return zeros[index] + value;\r\n}\r\n//# sourceMappingURL=utils.js.map"}
{"map":"{\"version\":3,\"file\":\"LocalStorage.js\",\"sourceRoot\":\"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AAqB;QAArB,uBAAA,EAAA,aAAqB;QAC1D,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;IACF,mBAAC;AAAD,CAAC,AAnCD,IAmCC\"}","code":"var LocalStorage = (function () {\r\n function LocalStorage(ID) {\r\n this.ID = ID;\r\n }\r\n LocalStorage.prototype.getName = function (key, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n return (prefix || !this.ID || this.ID == '' ? prefix : this.ID) + '_' + key;\r\n };\r\n LocalStorage.prototype.getItem = function (key, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n return localStorage.getItem(this.getName(key, prefix));\r\n };\r\n LocalStorage.prototype.setItem = function (key, value, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n localStorage.setItem(this.getName(key, prefix), value);\r\n };\r\n LocalStorage.prototype.getItemObj = function (key, defaultObj, prefix) {\r\n if (defaultObj === void 0) { defaultObj = null; }\r\n if (prefix === void 0) { prefix = null; }\r\n var result;\r\n try {\r\n result = JSON.parse(this.getItem(key, prefix));\r\n }\r\n catch (e) {\r\n }\r\n if (!result) {\r\n result = defaultObj;\r\n }\r\n return result;\r\n };\r\n LocalStorage.prototype.setItemObj = function (key, itemObj, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n this.setItem(key, JSON.stringify(itemObj), prefix);\r\n };\r\n return LocalStorage;\r\n}());\r\nexport default LocalStorage;\r\n//# sourceMappingURL=LocalStorage.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/editor/index.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,YAAY,EAAE,UAAU,GAAG,MAAM,eAAe,CAAC;AACzD,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAC,MAAM,mBAAmB,CAAC;AA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C,WAAO,KAAK,EAAC;;;;CACb;AAUD,MAAM,UAAgB,UAAU,CAAC,GAAG,EAAE,IAAK,EAAE,KAAY,EAAE,MAAO;IAArB,sBAAA,EAAA,YAAY;;;;;wBAC7C,WAAM,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,EAAA;;oBAAxC,IAAI,GAAG,SAAiC;oBAC5C,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;oBAC1B,WAAO,IAAI,EAAC;;;;CACZ;AAED,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { destroyScene, setupScene, } from \"./interpreter\";\r\nimport { addLoader, cacheRes, destroyRes, getAllResUuids, loadJson5 } from \"../assets-manager\";\r\nimport { getRoot, pause, Scene, start } from \"../core\";\r\nexport * from './interpreter';\r\nvar currentScene;\r\nvar resUUIDs;\r\nexport function launchScene(name, progress) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var scene;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadScene(\"scenes/\" + name + \".scene\", 'scene_' + name)];\r\n case 1:\r\n scene = _a.sent();\r\n resUUIDs = getAllResUuids();\r\n return [4, scene.loadResGroup('preload', progress)];\r\n case 2:\r\n _a.sent();\r\n if (currentScene) {\r\n unmountScene(currentScene);\r\n }\r\n currentScene = scene;\r\n mountScene(scene);\r\n scene.loadResGroup('delay', progress);\r\n return [2];\r\n }\r\n });\r\n });\r\n}\r\nexport function mountScene(scene) {\r\n pause();\r\n setupScene(scene, getRoot());\r\n start();\r\n}\r\nexport function unmountScene(scene) {\r\n pause();\r\n destroyScene(scene);\r\n destroyRes(resUUIDs);\r\n}\r\nfunction loadScene(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = false; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var sceneConfig, scene;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadJson5(url)];\r\n case 1:\r\n sceneConfig = _a.sent();\r\n scene = new Scene();\r\n scene.initByConfig(sceneConfig);\r\n return [2, scene];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadPrefab(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var data;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadJson5(url, uuid, false)];\r\n case 1:\r\n data = _a.sent();\r\n cacheRes(data, url, uuid);\r\n return [2, data];\r\n }\r\n });\r\n });\r\n}\r\naddLoader('.pfb', loadPrefab);\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"TouchZoom.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/animation/TouchZoom.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,EAAS,QAAQ,GAAE,MAAM,QAAQ,CAAC;AACjF,OAAO,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAE1C;IAAuC,qCAAiB;IAAxD;QAAA,qEA+CC;QA9CA,iBAAW,GAAa,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACjD,cAAQ,GAAW,GAAG,CAAC;QACvB,cAAQ,GAAS,IAAI,CAAC,OAAO,CAAC;;IA4C/B,CAAC;IAtCA,2BAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAEhB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACZ,IAAA,SAAyC,EAAxC,4BAAW,EAAE,sBAAQ,EAAE,wBAAiB,CAAC;YAEhD,IAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAErC,IAAM,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YAC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ector2D, ease, Ease, Vector2D, } from \"scilla\";\r\nimport { InteractComponent } from \"../base\";\r\nvar TouchZoom = (function (_super) {\r\n tslib_1.__extends(TouchZoom, _super);\r\n function TouchZoom() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.scaleOffset = createVector2D(0.1, 0.1);\r\n _this.duration = 200;\r\n _this.easeName = Ease.backOut;\r\n return _this;\r\n }\r\n TouchZoom.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n if (!this._zoomIn) {\r\n var _a = this, scaleOffset = _a.scaleOffset, duration = _a.duration, transform = _a.transform;\r\n var easeFunc = ease[this.easeName];\r\n var scaleFrom = transform.scale.clone();\r\n var scaleTo = transform.scale.clone().add(scaleOffset);\r\n this._zoomIn = createTween(transform, false, { autoPlay: false, clazz: Vector2D, fields: ['x', 'y'] })\r\n .to({ scale: scaleTo }, duration, easeFunc);\r\n this._zoomOut = createTween(transform, false, { autoPlay: false, clazz: Vector2D, fields: ['x', 'y'] })\r\n .to({ scale: scaleFrom }, duration, easeFunc);\r\n }\r\n };\r\n TouchZoom.prototype.onTouchBegin = function (e) {\r\n _super.prototype.onTouchOver.call(this, e);\r\n if (this.interactable) {\r\n this._touchBegin = true;\r\n this._zoomIn.play(true);\r\n }\r\n };\r\n TouchZoom.prototype.onGlobalTouchEnd = function (e) {\r\n _super.prototype.onGlobalTouchEnd.call(this, e);\r\n if (this._touchBegin) {\r\n this._touchBegin = false;\r\n this._zoomOut.play(true);\r\n }\r\n return false;\r\n };\r\n return TouchZoom;\r\n}(InteractComponent));\r\nexport default TouchZoom;\r\n//# sourceMappingURL=TouchZoom.js.map"}
{"map":"{\"version\":3,\"file\":\"ObjectPool.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/ObjectPool.ts\"],\"names\":[],\"mappings\":\";AAMA,IAAI,GAAG,GAAG,EAAE,CAAC;AAEb,SAAS,QAAQ,CAAC,IAAI;IACrB,IAAI,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;IACtB,IAAG,CAAC,KAAK,EAAC;QACT,MAAM,IAAI,KAAK,CAAC,QAAQ,GAAG,IAAI,GAAG,kBAAkB,CAAC,CAAC;KACtD;IAED,OAAO,KAAK,CAAC;AACd,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ;IAC/C,GAAG,CAAC,IAAI,CAAC,GAAG,EAAC,IAAI,MAAA,EAAE,OAAO,SAAA,EAAE,QAAQ,UAAA,EAAE,IAAI,EAAE,EAAE,EAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,IAAI;IAAE,gBAAS;SAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;QAAT,+BAAS;;IAClC,IAAI,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEtB,IAAA,uBAAO,EAAE,yBAAQ,EAAE,iBAAI,CAAU;IAEtC,IAAI,QAAQ,CAAC;IACb,IAAG,IAAI,CAAC,MAAM,IAAI,CAAC,EAAC;QACnB,QAAQ,GAAG,OAAO,EAAE,CAAC;KACrB;SAAI;QACJ,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;KACtB;IAED,QAAQ,iCAAC,QAAQ,GAAK,MAAM,GAAE;IAE9B,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,IAAI,EAAE,QAAQ;IACrC,IAAI,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC3B,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nvar all = {};\r\nfunction getGroup(name) {\r\n var group = all[name];\r\n if (!group) {\r\n throw new Error('group ' + name + ' not registered.');\r\n }\r\n return group;\r\n}\r\nexport function register(name, newFunc, initFunc) {\r\n all[name] = { name: name, newFunc: newFunc, initFunc: initFunc, pool: [] };\r\n}\r\nexport function get(name) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n var group = getGroup(name);\r\n var newFunc = group.newFunc, initFunc = group.initFunc, pool = group.pool;\r\n var instance;\r\n if (pool.length == 0) {\r\n instance = newFunc();\r\n }\r\n else {\r\n instance = pool.pop();\r\n }\r\n initFunc.apply(void 0, tslib_1.__spread([instance], params));\r\n return instance;\r\n}\r\nexport function recycle(name, instance) {\r\n var group = getGroup(name);\r\n group.pool.push(instance);\r\n}\r\n//# sourceMappingURL=ObjectPool.js.map"}
{"map":"{\"version\":3,\"file\":\"TouchInterrupt.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/TouchInterrupt.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD;IAA4C,0CAAiB;IAA7D;QAAA,qEAEC;QADA,oBAAc,GAAY,IAAI,CAAC;;IAChC,CAAC;IAAD,qBAAC;AAAD,CAAC,AAFD,CAA4C,iBAAiB,GAE5D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport InteractComponent from \"./InteractComponent\";\r\nvar TouchInterrupt = (function (_super) {\r\n tslib_1.__extends(TouchInterrupt, _super);\r\n function TouchInterrupt() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.touchInterrupt = true;\r\n return _this;\r\n }\r\n return TouchInterrupt;\r\n}(InteractComponent));\r\nexport default TouchInterrupt;\r\n//# sourceMappingURL=TouchInterrupt.js.map"}
{"map":"{\"version\":3,\"file\":\"HashObject.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/HashObject.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAI,aAAa,GAAG,CAAC,CAAC;AAEtB,SAAS,WAAW;IACnB,OAAO,EAAE,aAAa,CAAC;AACxB,CAAC;AAKD;IAGC;QACC,IAAI,CAAC,SAAS,GAAG,WAAW,EAAE,CAAC;IAChC,CAAC;IAED,sBAAI,gCAAQ;aAAZ;YACC,OAAO,IAAI,CAAC,SAAS,CAAC;QACvB,CAAC;;;OAAA;IACF,iBAAC;AAAD,CAAC,AAVD,IAUC\"}","code":"var HASH_CODE_INK = 0;\r\nfunction getHashCode() {\r\n return ++HASH_CODE_INK;\r\n}\r\nvar HashObject = (function () {\r\n function HashObject() {\r\n this._hashCode = getHashCode();\r\n }\r\n Object.defineProperty(HashObject.prototype, \"hashCode\", {\r\n get: function () {\r\n return this._hashCode;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return HashObject;\r\n}());\r\nexport default HashObject;\r\n//# sourceMappingURL=HashObject.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/assets-manager/index.ts\"],\"names\":[],\"mappings\":\";AAOA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAiB,iBAAiB,EAAE,YAAY,EAAC,MAAM,wBAAwB,CAAA;AACtF,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAA;AAEnC,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAE9C,IAAI,QAAQ,GAAG,EAAE,CAAC;AAClB,IAAI,OAAO,GAAG,EAAE,CAAC;AAEjB,IAAM,aAAa,GAAG;IACrB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,SAAS;IACnB,MAAM,EAAE,OAAO;IACf,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,WAAW;IACnB,OAAO,EAAE,mBAAmB;IAC5B,MAAM,EAAE,SAAS;IACjB,eAAe,EAAE,iBAAiB;IAClC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,QAAQ;CACjB,CAAC;AAMF,MAAM,UAAU,UAAU,CAAC,IAAI;IAC9B,OAAO,GAAG,IAAI,CAAC;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AI,CAAC,GAAG,IAAI,UAAU,EAAE,CAAC;QACzB,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC;YACrB,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC7B,CAAC,CAAC;QACF,CAAC,CAAC,OAAO,GAAG,UAAU,CAAC;YACtB,MAAM,CAAC,CAAC,CAAC,CAAC;QACX,CAAC,CAAA;IACF,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,SAAe,WAAW,CAAC,IAAI;;;;;wBACd,WAAM,mBAAmB,CAAC,IAAI,CAAC,EAAA;;oBAAzC,OAAO,GAAG,SAA+B;oBAE/C,WAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;4BAClC,IAAI,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;4BACtB,IAAI,YAAY,CAAC,cAAc,EAAE;gCAChC,GAAG,CAAC,YAAY,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;6BAC7C;4BACD,GAAG,CAAC,MAAM,GAAG;gCACZ,OAAO,CAAC,GAAG,CAAC,CAAC;4BACd,CAAC,CAAC;4BACF,GAAG,CAAC,OAAO,GAAG,UAAU,CAAC;gCACxB,MAAM,CAAC,CAAC,CAAC,CAAC;4BACX,CAAC,CAAC;4BACF,GAAG,CAAC,GAAG,GAAG,OAAO,CAAC;wBACnB,CAAC,CAAC,EAAA;;;;CACF\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { createTexture } from '../core/Texture';\r\nimport { getFrameAnimation, putFrameAnim } from '../core/FrameAnimation';\r\nimport { Sheet } from '../core/Sheet';\r\nimport { EngineConfig } from \"../engine-config\";\r\nvar resCache = {};\r\nvar resPath = '';\r\nvar resLoaderType = {\r\n '.json': loadJson,\r\n '.json5': loadJson5,\r\n '.txt': loadTxt,\r\n '.png': loadTexture,\r\n '.jpg': loadTexture,\r\n '.svg': loadTexture,\r\n '.bimg': loadTextureFromBlob,\r\n '.sht': loadSheet,\r\n '.sht-disperse': loadSheetDisperse,\r\n '.fnt': loadFont,\r\n '.anim': loadAnim,\r\n};\r\nexport function setResPath(path) {\r\n resPath = path;\r\n}\r\nexport function loadResItems(items, progress) {\r\n var total = items.length;\r\n var count = 0;\r\n return Promise.all(items.map(function (item) {\r\n var uuid, url, config, ext;\r\n if (typeof item === 'string') {\r\n url = item;\r\n }\r\n else {\r\n url = item.url;\r\n }\r\n if (!url) {\r\n return Promise.resolve();\r\n }\r\n if (typeof item === 'string') {\r\n uuid = getUUIDFromUrl(url);\r\n }\r\n else {\r\n uuid = item.uuid || getUUIDFromUrl(url);\r\n ext = item.ext;\r\n config = item.config;\r\n }\r\n var loader = getLoader(ext, url);\r\n return loader(url, uuid, true, config).then(function (res) {\r\n count++;\r\n progress && progress(count / total);\r\n return res;\r\n });\r\n }));\r\n}\r\nexport function loadAny(url, uuid, cache, config, options, type) {\r\n if (cache === void 0) { cache = true; }\r\n if (options === void 0) { options = {}; }\r\n if (type === void 0) { type = 'arraybuffer'; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var response, result;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, fetch(resolveUrl(url), options)];\r\n case 1:\r\n response = _a.sent();\r\n switch (type) {\r\n case 'json':\r\n result = response.json();\r\n break;\r\n case 'text':\r\n result = response.text();\r\n break;\r\n case 'arraybuffer':\r\n result = response.arrayBuffer();\r\n break;\r\n case 'blob':\r\n result = response.blob();\r\n break;\r\n }\r\n return [4, result];\r\n case 2: return [2, _a.sent()];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadTxt(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n var p = loadAny(url, uuid, cache, config, undefined, 'text');\r\n if (cache) {\r\n p.then(function (data) {\r\n cacheRes(data, url, uuid);\r\n return data;\r\n });\r\n }\r\n return p;\r\n}\r\nexport function loadJson(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n var p = loadAny(url, uuid, cache, config, undefined, 'json');\r\n if (cache) {\r\n p.then(function (data) {\r\n cacheRes(data, url, uuid);\r\n return data;\r\n });\r\n }\r\n return p;\r\n}\r\nexport function loadJson5(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var txt, jsonData;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadTxt(url, uuid)];\r\n case 1:\r\n txt = _a.sent();\r\n jsonData = window['eval'](\"(\" + txt + \")\");\r\n cacheRes(jsonData, url, uuid);\r\n return [2, jsonData];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadSheet(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n var pngFile = url.substring(0, url.lastIndexOf('.')) + '.png';\r\n return Promise.all([\r\n loadJson(url, null, false),\r\n loadImage(pngFile, null, false),\r\n ]).then(function (result) {\r\n var e_1, _a;\r\n var data = result[0];\r\n var img = result[1];\r\n var sheet = new Sheet(img, data.frames);\r\n sheet.generateAll();\r\n if (cache) {\r\n cacheRes(sheet, url, uuid);\r\n if (config) {\r\n try {\r\n for (var _b = tslib_1.__values(config.textures), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var textureConfig = _c.value;\r\n var name_1 = textureConfig.name, uuid_1 = textureConfig.uuid;\r\n var texture = sheet.getTexture(name_1);\r\n cacheRes(texture, name_1, uuid_1);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n }\r\n else {\r\n var textures = sheet.getAllTextures();\r\n for (var key in textures) {\r\n cacheRes(textures[key], key, key);\r\n }\r\n }\r\n }\r\n return sheet;\r\n });\r\n}\r\nexport function loadSheetDisperse(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var e_2, _a, _b, _c, _d, name_2, uuid_2, subUrl, e_2_1;\r\n return tslib_1.__generator(this, function (_e) {\r\n switch (_e.label) {\r\n case 0:\r\n _e.trys.push([0, 5, 6, 7]);\r\n _b = tslib_1.__values(config.textures), _c = _b.next();\r\n _e.label = 1;\r\n case 1:\r\n if (!!_c.done) return [3, 4];\r\n _d = _c.value, name_2 = _d.name, uuid_2 = _d.uuid;\r\n subUrl = url.replace('-disperse', '') + '/' + name_2 + '.png';\r\n return [4, loadTexture(subUrl, uuid_2)];\r\n case 2:\r\n _e.sent();\r\n _e.label = 3;\r\n case 3:\r\n _c = _b.next();\r\n return [3, 1];\r\n case 4: return [3, 7];\r\n case 5:\r\n e_2_1 = _e.sent();\r\n e_2 = { error: e_2_1 };\r\n return [3, 7];\r\n case 6:\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n return [7];\r\n case 7: return [2, null];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadFont(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return loadSheet(url, null, false).then(function (sheet) {\r\n if (cache) {\r\n cacheRes(sheet, url, uuid);\r\n }\r\n return sheet;\r\n });\r\n}\r\nfunction findAnimConfig(animations, name) {\r\n var result;\r\n animations.some(function (item) {\r\n if (item.name === name) {\r\n result = item;\r\n return true;\r\n }\r\n });\r\n return result;\r\n}\r\nexport function loadAnim(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n var pngFile = url.substring(0, url.lastIndexOf('.')) + '.png';\r\n return Promise.all([\r\n loadJson(url, null, false),\r\n loadImage(pngFile, null, false),\r\n ]).then(function (result) {\r\n var data = result[0];\r\n var img = result[1];\r\n putFrameAnim(img, data);\r\n var animations = [];\r\n for (var name_3 in data.mc) {\r\n var animation = getFrameAnimation(name_3);\r\n if (cache) {\r\n var uuid_3 = name_3;\r\n if (config) {\r\n var cfg = findAnimConfig(config.animations, name_3);\r\n uuid_3 = cfg.uuid;\r\n }\r\n cacheRes(animation, name_3, uuid_3);\r\n }\r\n animations.push(animation);\r\n }\r\n return animations;\r\n });\r\n}\r\nexport function loadImage(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return new Promise(function (resolve, reject) {\r\n var img = new Image();\r\n if (EngineConfig.imgCrossOrigin) {\r\n img.setAttribute('crossOrigin', 'anonymous');\r\n }\r\n img.onload = function (e) {\r\n resolve(img);\r\n };\r\n img.onerror = function (e) {\r\n reject(e);\r\n };\r\n img.src = resolveUrl(url);\r\n });\r\n}\r\nexport function loadImageFromBlob(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var imgBlob, e_3;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 3, , 4]);\r\n return [4, loadAny(url, uuid, false, config, undefined, 'blob')];\r\n case 1:\r\n imgBlob = _a.sent();\r\n return [4, blobToImage(imgBlob)];\r\n case 2: return [2, _a.sent()];\r\n case 3:\r\n e_3 = _a.sent();\r\n console.log(e_3);\r\n return [3, 4];\r\n case 4: return [2];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadTexture(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var img, texture;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadImage(url, uuid, false)];\r\n case 1:\r\n img = _a.sent();\r\n texture = createTexture(img);\r\n if (cache) {\r\n cacheRes(texture, url, uuid);\r\n }\r\n return [2, texture];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadTextureFromBlob(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var img, texture;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadImageFromBlob(url, uuid, false)];\r\n case 1:\r\n img = _a.sent();\r\n texture = createTexture(img);\r\n if (cache) {\r\n cacheRes(texture, url, uuid);\r\n }\r\n return [2, texture];\r\n }\r\n });\r\n });\r\n}\r\nfunction resolveUrl(url) {\r\n if (url.indexOf('//') === 0 || url.indexOf('http:') === 0 || url.indexOf('https:') === 0) {\r\n return url;\r\n }\r\n return resPath + url;\r\n}\r\nfunction getLoader(ext, url) {\r\n ext = ext || url.substr(url.lastIndexOf('.'));\r\n return resLoaderType[ext] || loadAny;\r\n}\r\nfunction getUUIDFromUrl(url) {\r\n return url.substring(url.lastIndexOf('/') + 1, url.lastIndexOf('.'));\r\n}\r\nexport function cacheRes(res, url, uuid) {\r\n uuid = uuid || getUUIDFromUrl(url);\r\n resCache[uuid] = res;\r\n}\r\nexport function addLoader(ext, loader) {\r\n resLoaderType[ext] = loader;\r\n}\r\nexport function getRes(uuid) {\r\n return resCache[uuid];\r\n}\r\nexport function destroyRes(uuidOrUuids) {\r\n if (Array.isArray(uuidOrUuids)) {\r\n while (uuidOrUuids.length > 0) {\r\n delete resCache[uuidOrUuids.pop()];\r\n }\r\n }\r\n else {\r\n delete resCache[uuidOrUuids];\r\n }\r\n}\r\nexport function destroyAllRes() {\r\n for (var key in resCache) {\r\n destroyRes(key);\r\n }\r\n}\r\nexport function getAllResUuids() {\r\n return Object.keys(resCache);\r\n}\r\nfunction fileOrBlobToDataURL(obj) {\r\n return new Promise(function (resolve, reject) {\r\n var a = new FileReader();\r\n a.readAsDataURL(obj);\r\n a.onload = function (e) {\r\n resolve(e.target['result']);\r\n };\r\n a.onerror = function (e) {\r\n reject(e);\r\n };\r\n });\r\n}\r\nfunction blobToImage(blob) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var dataUrl;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, fileOrBlobToDataURL(blob)];\r\n case 1:\r\n dataUrl = _a.sent();\r\n return [2, new Promise(function (resolve, reject) {\r\n var img = new Image();\r\n if (EngineConfig.imgCrossOrigin) {\r\n img.setAttribute('crossOrigin', 'anonymous');\r\n }\r\n img.onload = function () {\r\n resolve(img);\r\n };\r\n img.onerror = function (e) {\r\n reject(e);\r\n };\r\n img.src = dataUrl;\r\n })];\r\n }\r\n });\r\n });\r\n}\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"Transform.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/Transform.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAC,MAAM,QAAQ,CAAC;AACrE,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAErC,IAAA,kDAAkB,EAAE,gDAAiB,CAAe;AAO3D,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACvB,+DAAY,CAAA;IACZ,+DAAY,CAAA;AACb,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AAMD;IAAuC,qCAAe;IAAtD;QAAA,qEA2LC;QA1LA,sBAAgB,GAAG,UAAC,KAAK,EAAE,GAAG,EAAE,QAAQ;YACvC,KAAI,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;QACtC,CAAC,CAAC;QAMF,cAAQ,GAAa,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC;QAMrC,WAAK,GAAW,CAAC,CAAC;QAeV,YAAM,GAAW,GAAG,CAAC;QACrB,aAAO,GAAW,GAAG,CAAC;QAK9B,WAAK,GAAa,IAAI,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAKrC,WAAK,GAAa,IAAI,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAEzC,cAAQ,GAAG,CAAC,CAAC;QAEL,WAAK,GAAiB,YAAY,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AAT,UAAU,SAAiB;QAAjB,0BAAA,EAAA,iBAAiB;QAC1B,OAAO,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;IACjE,CAAC;IAED,4BAAQ,GAAR,UAAS,CAAC;QACT,IAAI,IAAI,CAAC,KAAK,EAAE;YACf,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACnB;QAED,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAE1B,iBAAM,QAAQ,YAAC,CAAC,CAAC,CAAC;IACnB,CAAC;IAjLD;QADC,iBAAiB;+CACmB;IAMrC;QADC,iBAAiB;4CACA;IAqBlB;QADC,iBAAiB;4CACmB;IAKrC;QADC,iBAAiB;4CACuB;IAEzC;QADC,kBAAkB;+CACN;IAgJd,gBAAC;CAAA,AA3LD,CAAuC,eAAe,GA2LrD;eA3LoB,SAAS\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent, Vector2D, Matrix, decorators } from \"scilla\";\r\nimport Renderer from \"../renderer/Renderer\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector, dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nexport var MATRIX_ORDER;\r\n(function (MATRIX_ORDER) {\r\n MATRIX_ORDER[MATRIX_ORDER[\"SCALE_ROTATE\"] = 0] = \"SCALE_ROTATE\";\r\n MATRIX_ORDER[MATRIX_ORDER[\"ROTATE_SCALE\"] = 1] = \"ROTATE_SCALE\";\r\n})(MATRIX_ORDER || (MATRIX_ORDER = {}));\r\nvar Transform = (function (_super) {\r\n tslib_1.__extends(Transform, _super);\r\n function Transform() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.onVector2DModify = function (value, key, oldValue) {\r\n _this.makeDirty(value, key, oldValue);\r\n };\r\n _this.position = new Vector2D(0);\r\n _this.alpha = 1;\r\n _this._width = NaN;\r\n _this._height = NaN;\r\n _this.scale = new Vector2D(1, 1);\r\n _this.pivot = new Vector2D(0.5, 0.5);\r\n _this.rotation = 0;\r\n _this.order = MATRIX_ORDER.SCALE_ROTATE;\r\n _this._localMatrix = Matrix.create();\r\n _this._globalMatrix = Matrix.create();\r\n _this._globalPivotMatrix = Matrix.create();\r\n return _this;\r\n }\r\n Object.defineProperty(Transform.prototype, \"renderAlpha\", {\r\n get: function () {\r\n return this._renderAlpha;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Transform.prototype, \"width\", {\r\n get: function () {\r\n var renderer = this.entity.getComponent(Renderer);\r\n return renderer ? renderer.bounds.width : (isNaN(this._width) ? 0 : this._width);\r\n },\r\n set: function (value) {\r\n if (this._width != value) {\r\n this._width = value;\r\n this.makeDirty(value, 'width');\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Transform.prototype, \"explicitWidth\", {\r\n get: function () {\r\n return this._width;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Transform.prototype, \"height\", {\r\n get: function () {\r\n var renderer = this.entity.getComponent(Renderer);\r\n return renderer ? renderer.bounds.height : (isNaN(this._height) ? 0 : this._height);\r\n },\r\n set: function (value) {\r\n if (this._height != value) {\r\n this._height = value;\r\n this.makeDirty(value, 'height');\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Transform.prototype, \"explicitHeight\", {\r\n get: function () {\r\n return this._height;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Transform.prototype.makeDirty = function (value, key, oldValue) {\r\n var e_1, _a;\r\n this.dirty = true;\r\n switch (key) {\r\n case 'width':\r\n case 'height':\r\n var renderers = this.entity.getComponents(Renderer);\r\n try {\r\n for (var renderers_1 = tslib_1.__values(renderers), renderers_1_1 = renderers_1.next(); !renderers_1_1.done; renderers_1_1 = renderers_1.next()) {\r\n var renderer = renderers_1_1.value;\r\n renderer.makeDirty();\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (renderers_1_1 && !renderers_1_1.done && (_a = renderers_1.return)) _a.call(renderers_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n break;\r\n }\r\n };\r\n Transform.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n this.makeDirty(value, key, oldValue);\r\n switch (key) {\r\n case 'position':\r\n case 'scale':\r\n value.onChange = this.onVector2DModify;\r\n break;\r\n }\r\n };\r\n Transform.prototype.updateLocalMatrix = function () {\r\n var _a = this, _b = _a.position, x = _b.x, y = _b.y, _c = _a.scale, sx = _c.x, sy = _c.y, rotation = _a.rotation;\r\n var matrix = this._localMatrix;\r\n matrix.identity();\r\n if (this.order = MATRIX_ORDER.ROTATE_SCALE) {\r\n matrix.scale(sx, sy);\r\n matrix.rotate(rotation * Math.PI / 180);\r\n }\r\n else {\r\n matrix.rotate(rotation * Math.PI / 180);\r\n matrix.scale(sx, sy);\r\n }\r\n matrix.translate(x, y);\r\n };\r\n Transform.prototype.updateGlobalMatrix = function () {\r\n var _a = this, entity = _a.entity, _globalMatrix = _a._globalMatrix, _localMatrix = _a._localMatrix, _globalPivotMatrix = _a._globalPivotMatrix, _b = _a.pivot, px = _b.x, py = _b.y, width = _a.width, height = _a.height;\r\n _globalMatrix.copyFrom(_localMatrix);\r\n if (entity.parent) {\r\n var parentTransform = entity.parent.getComponent(Transform);\r\n if (parentTransform) {\r\n this._renderAlpha = parentTransform._renderAlpha * this.alpha;\r\n _globalMatrix.concat(parentTransform.getMatrix());\r\n }\r\n }\r\n else {\r\n this._renderAlpha = this.alpha;\r\n }\r\n _globalPivotMatrix.copyFrom(_globalMatrix);\r\n _globalPivotMatrix.translate(-(px - 0.5) * width, -(py - 0.5) * height);\r\n };\r\n Transform.prototype.getMatrix = function (withPivot) {\r\n if (withPivot === void 0) { withPivot = false; }\r\n return withPivot ? this._globalPivotMatrix : this._globalMatrix;\r\n };\r\n Transform.prototype.onUpdate = function (t) {\r\n if (this.dirty) {\r\n this.updateLocalMatrix();\r\n this.dirty = false;\r\n }\r\n this.updateGlobalMatrix();\r\n _super.prototype.onUpdate.call(this, t);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Transform.prototype, \"position\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Transform.prototype, \"alpha\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Transform.prototype, \"scale\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Transform.prototype, \"pivot\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], Transform.prototype, \"rotation\", void 0);\r\n return Transform;\r\n}(ScillaComponent));\r\nexport default Transform;\r\n//# sourceMappingURL=Transform.js.map"}
{"map":"{\"version\":3,\"file\":\"GraphicRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/GraphicRenderer.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAMlC;IAA6C,2CAAQ;IAArD;QAAA,qEAsGC;QArGA,eAAS,GAAU,SAAS,CAAC;QAC7B,iBAAW,GAAU,SAAS,CAAC;QAC/B,iBAAW,GAAG,CAAC,CAAC;QAGhB,kBAAY,GAAG,KAAK,CAAC;QAErB,iBAAW,GAAG,KAAK,CAAC;;IA8FrB,CAAC;IA5FU,yCAAe,GAAzB;QACC,OAAO,IAAI,CAAC,aAAa,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;IACjD,CAAC;IAKS,uCAAa,GAAvB;QACC,OAAO,EAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC,CAAC;IAC9B,CAAC;IAKS,oCAAU,GAApB;QACC,iBAAM,UAAU,WAAE,CAAC;QACnB,IAAI,CAAC,UAAU,EAAE,C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W,CAAC;QAE1B,IAAA,SAA4E,EAA3E,kBAAM,EAAE,iBAA2D,EAA/C,yBAAqB,EAAE,2BAAgC,CAAC;QAC7E,IAAA,yBAAuD,EAAtD,iBAAa,EAAE,mBAAuC,CAAC;QAE9D,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;QAC/C,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;QAEnD,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IACF,sBAAC;AAAD,CAAC,AAtGD,CAA6C,QAAQ,GAsGpD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Renderer from \"./Renderer\";\r\nvar GraphicRenderer = (function (_super) {\r\n tslib_1.__extends(GraphicRenderer, _super);\r\n function GraphicRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.fillColor = '#42bce4';\r\n _this.borderColor = '#0899d0';\r\n _this.borderWidth = 0;\r\n _this.isUsedToMask = false;\r\n _this.maskVisible = false;\r\n return _this;\r\n }\r\n GraphicRenderer.prototype.getUseCacheMode = function () {\r\n return this._useCacheMode && !this.isUsedToMask;\r\n };\r\n GraphicRenderer.prototype.getRenderSize = function () {\r\n return { width: 0, height: 0 };\r\n };\r\n GraphicRenderer.prototype.beforeDraw = function () {\r\n _super.prototype.beforeDraw.call(this);\r\n this.applyStyle();\r\n this.context.beginPath();\r\n };\r\n GraphicRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n if (this.isUsedToMask) {\r\n this._context.clip();\r\n this.maskVisible && this.fillAndStoke();\r\n }\r\n else {\r\n this.fillAndStoke();\r\n }\r\n };\r\n GraphicRenderer.prototype.applyStyle = function () {\r\n var _a = this, context = _a.context, fillColor = _a.fillColor, borderColor = _a.borderColor, borderWidth = _a.borderWidth;\r\n context.fillStyle = fillColor;\r\n if (borderWidth > 0) {\r\n context.strokeStyle = borderColor;\r\n context.lineWidth = borderWidth;\r\n }\r\n };\r\n GraphicRenderer.prototype.fillAndStoke = function () {\r\n var _a = this, context = _a.context, borderWidth = _a.borderWidth;\r\n context.fill();\r\n if (borderWidth > 0) {\r\n context.stroke();\r\n }\r\n };\r\n GraphicRenderer.prototype.drawClip = function () {\r\n this.isUsedToMask && this.context.save();\r\n };\r\n GraphicRenderer.prototype.afterUpdate = function () {\r\n this.isUsedToMask && this.context.restore();\r\n };\r\n GraphicRenderer.prototype.measureBounds = function () {\r\n if (this.entity.name == 'content') {\r\n console.log();\r\n }\r\n if (!this.dirty) {\r\n return;\r\n }\r\n this._margin = this.borderWidth;\r\n var _a = this, bounds = _a.bounds, _b = _a.transform, tWidth = _b.explicitWidth, tHeight = _b.explicitHeight;\r\n var _c = this.getRenderSize(), sWidth = _c.width, sHeight = _c.height;\r\n bounds.width = isNaN(tWidth) ? sWidth : tWidth;\r\n bounds.height = isNaN(tHeight) ? sHeight : tHeight;\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n return GraphicRenderer;\r\n}(Renderer));\r\nexport default GraphicRenderer;\r\n//# sourceMappingURL=GraphicRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"LaunchOptions.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/LaunchOptions.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EACN,KAAK,GACL,MAAM,QAAQ,CAAA;AAEf,IAAM,OAAO,GAAQ,EAAE,CAAC;AAExB,MAAM,UAAU,MAAM,CAAC,IAAI;IAC1B,KAAK,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AACjC,CAAC;AAED,eAAe,OAAO,CAAC\"}","code":"import { utils, } from 'scilla';\r\nvar options = {};\r\nexport function inject(data) {\r\n utils.injectProp(options, data);\r\n}\r\nexport default options;\r\n//# sourceMappingURL=LaunchOptions.js.map"}
{"map":"{\"version\":3,\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AAI,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;YACtB,CAAC,IAAI,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;YACzC,CAAC,IAAI,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;YACzC,EAAE,IAAI,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;YACxB,EAAE,IAAI,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;SACxB;QAED,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACb,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACb,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACb,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACb,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IAChB,CAAC;IAEF,aAAC;AAAD,CAAC,AA3hBD,IA2hBC\"}","code":"var PI = Math.PI;\r\nvar TwoPI = PI * 2;\r\nvar DEG_TO_RAD = PI / 180;\r\nvar matrixPool = [];\r\nvar Matrix = (function () {\r\n function Matrix(a, b, c, d, tx, ty) {\r\n if (a === void 0) { a = 1; }\r\n if (b === void 0) { b = 0; }\r\n if (c === void 0) { c = 0; }\r\n if (d === void 0) { d = 1; }\r\n if (tx === void 0) { tx = 0; }\r\n if (ty === void 0) { ty = 0; }\r\n this.a = a;\r\n this.b = b;\r\n this.c = c;\r\n this.d = d;\r\n this.tx = tx;\r\n this.ty = ty;\r\n }\r\n Matrix.release = function (matrix) {\r\n if (!matrix) {\r\n return;\r\n }\r\n matrixPool.push(matrix);\r\n };\r\n Matrix.create = function () {\r\n var matrix = matrixPool.pop();\r\n if (!matrix) {\r\n matrix = new Matrix();\r\n }\r\n return matrix;\r\n };\r\n Matrix.prototype.clone = function () {\r\n var m = Matrix.create();\r\n m.setTo(this.a, this.b, this.c, this.d, this.tx, this.ty);\r\n return m;\r\n };\r\n Matrix.prototype.concat = function (other) {\r\n var a = this.a * other.a;\r\n var b = 0.0;\r\n var c = 0.0;\r\n var d = this.d * other.d;\r\n var tx = this.tx * other.a + other.tx;\r\n var ty = this.ty * other.d + other.ty;\r\n if (this.b !== 0.0 || this.c !== 0.0 || other.b !== 0.0 || other.c !== 0.0) {\r\n a += this.b * other.c;\r\n d += this.c * other.b;\r\n b += this.a * other.b + this.b * other.d;\r\n c += this.c * other.a + this.d * other.c;\r\n tx += this.ty * other.c;\r\n ty += this.tx * other.b;\r\n }\r\n this.a = a;\r\n this.b = b;\r\n this.c = c;\r\n this.d = d;\r\n this.tx = tx;\r\n this.ty = ty;\r\n };\r\n Matrix.prototype.copyFrom = function (other) {\r\n this.a = other.a;\r\n this.b = other.b;\r\n this.c = other.c;\r\n this.d = other.d;\r\n this.tx = other.tx;\r\n this.ty = other.ty;\r\n return this;\r\n };\r\n Matrix.prototype.identity = function () {\r\n this.a = this.d = 1;\r\n this.b = this.c = this.tx = this.ty = 0;\r\n };\r\n Matrix.prototype.invert = function () {\r\n this.$invertInto(this);\r\n };\r\n Matrix.prototype.$invertInto = function (target) {\r\n var a = this.a;\r\n var b = this.b;\r\n var c = this.c;\r\n var d = this.d;\r\n var tx = this.tx;\r\n var ty = this.ty;\r\n if (b == 0 && c == 0) {\r\n target.b = target.c = 0;\r\n if (a == 0 || d == 0) {\r\n target.a = target.d = target.tx = target.ty = 0;\r\n }\r\n else {\r\n a = target.a = 1 / a;\r\n d = target.d = 1 / d;\r\n target.tx = -a * tx;\r\n target.ty = -d * ty;\r\n }\r\n return;\r\n }\r\n var determinant = a * d - b * c;\r\n if (determinant == 0) {\r\n target.identity();\r\n return;\r\n }\r\n determinant = 1 / determinant;\r\n var k = target.a = d * determinant;\r\n b = target.b = -b * determinant;\r\n c = target.c = -c * determinant;\r\n d = target.d = a * determinant;\r\n target.tx = -(k * tx + c * ty);\r\n target.ty = -(b * tx + d * ty);\r\n };\r\n Matrix.prototype.rotate = function (radian) {\r\n radian = +radian;\r\n if (radian !== 0) {\r\n var u = Math.cos(radian);\r\n var v = Math.sin(radian);\r\n var _a = this, a = _a.a, b = _a.b, c = _a.c, d = _a.d, tx = _a.tx, ty = _a.ty;\r\n this.a = a * u - b * v;\r\n this.b = a * v + b * u;\r\n this.c = c * u - d * v;\r\n this.d = c * v + d * u;\r\n this.tx = tx * u - ty * v;\r\n this.ty = tx * v + ty * u;\r\n }\r\n };\r\n Matrix.prototype.scale = function (sx, sy) {\r\n if (sx !== 1) {\r\n this.a *= sx;\r\n this.c *= sx;\r\n this.tx *= sx;\r\n }\r\n if (sy !== 1) {\r\n this.b *= sy;\r\n this.d *= sy;\r\n this.ty *= sy;\r\n }\r\n };\r\n Matrix.prototype.setTo = function (a, b, c, d, tx, ty) {\r\n this.a = a;\r\n this.b = b;\r\n this.c = c;\r\n this.d = d;\r\n this.tx = tx;\r\n this.ty = ty;\r\n return this;\r\n };\r\n Matrix.prototype.transformPoint = function (pointX, pointY, resultPoint) {\r\n var _a = this, a = _a.a, b = _a.b, c = _a.c, d = _a.d, tx = _a.tx, ty = _a.ty;\r\n var x = a * pointX + c * pointY + tx;\r\n var y = b * pointX + d * pointY + ty;\r\n if (resultPoint) {\r\n resultPoint.x = x;\r\n resultPoint.y = y;\r\n return resultPoint;\r\n }\r\n return { x: x, y: y };\r\n };\r\n Matrix.prototype.deltaTransformPoint = function (pointX, pointY, resultPoint) {\r\n var _a = this, a = _a.a, b = _a.b, c = _a.c, d = _a.d;\r\n var x = a * pointX + c * pointY;\r\n var y = b * pointX + d * pointY;\r\n if (resultPoint) {\r\n resultPoint.x = x;\r\n resultPoint.y = y;\r\n return resultPoint;\r\n }\r\n return { x: x, y: y };\r\n };\r\n Matrix.prototype.translate = function (dx, dy) {\r\n this.tx += dx;\r\n this.ty += dy;\r\n };\r\n Matrix.prototype.equals = function (other) {\r\n return this.a == other.a && this.b == other.b &&\r\n this.c == other.c && this.d == other.d &&\r\n this.tx == other.tx && this.ty == other.ty;\r\n };\r\n Matrix.prototype.prepend = function (a, b, c, d, tx, ty) {\r\n var tx1 = this.tx;\r\n if (a != 1 || b != 0 || c != 0 || d != 1) {\r\n var a1 = this.a;\r\n var c1 = this.c;\r\n this.a = a1 * a + this.b * c;\r\n this.b = a1 * b + this.b * d;\r\n this.c = c1 * a + this.d * c;\r\n this.d = c1 * b + this.d * d;\r\n }\r\n this.tx = tx1 * a + this.ty * c + tx;\r\n this.ty = tx1 * b + this.ty * d + ty;\r\n return this;\r\n };\r\n Matrix.prototype.append = function (a, b, c, d, tx, ty) {\r\n var a1 = this.a;\r\n var b1 = this.b;\r\n var c1 = this.c;\r\n var d1 = this.d;\r\n if (a != 1 || b != 0 || c != 0 || d != 1) {\r\n this.a = a * a1 + b * c1;\r\n this.b = a * b1 + b * d1;\r\n this.c = c * a1 + d * c1;\r\n this.d = c * b1 + d * d1;\r\n }\r\n this.tx = tx * a1 + ty * c1 + this.tx;\r\n this.ty = tx * b1 + ty * d1 + this.ty;\r\n return this;\r\n };\r\n Matrix.prototype.toString = function () {\r\n return \"(a=\" + this.a + \", b=\" + this.b + \", c=\" + this.c + \", d=\" + this.d + \", tx=\" + this.tx + \", ty=\" + this.ty + \")\";\r\n };\r\n Matrix.prototype.createBox = function (scaleX, scaleY, rotation, tx, ty) {\r\n if (rotation === void 0) { rotation = 0; }\r\n if (tx === void 0) { tx = 0; }\r\n if (ty === void 0) { ty = 0; }\r\n var self = this;\r\n if (rotation !== 0) {\r\n rotation = rotation / DEG_TO_RAD;\r\n var u = Math.cos(rotation);\r\n var v = Math.sin(rotation);\r\n self.a = u * scaleX;\r\n self.b = v * scaleY;\r\n self.c = -v * scaleX;\r\n self.d = u * scaleY;\r\n }\r\n else {\r\n self.a = scaleX;\r\n self.b = 0;\r\n self.c = 0;\r\n self.d = scaleY;\r\n }\r\n self.tx = tx;\r\n self.ty = ty;\r\n };\r\n Matrix.prototype.createGradientBox = function (width, height, rotation, tx, ty) {\r\n if (rotation === void 0) { rotation = 0; }\r\n if (tx === void 0) { tx = 0; }\r\n if (ty === void 0) { ty = 0; }\r\n this.createBox(width / 1638.4, height / 1638.4, rotation, tx + width / 2, ty + height / 2);\r\n };\r\n Matrix.prototype.$transformBounds = function (bounds) {\r\n var a = this.a;\r\n var b = this.b;\r\n var c = this.c;\r\n var d = this.d;\r\n var tx = this.tx;\r\n var ty = this.ty;\r\n var x = bounds.x;\r\n var y = bounds.y;\r\n var xMax = x + bounds.width;\r\n var yMax = y + bounds.height;\r\n var x0 = a * x + c * y + tx;\r\n var y0 = b * x + d * y + ty;\r\n var x1 = a * xMax + c * y + tx;\r\n var y1 = b * xMax + d * y + ty;\r\n var x2 = a * xMax + c * yMax + tx;\r\n var y2 = b * xMax + d * yMax + ty;\r\n var x3 = a * x + c * yMax + tx;\r\n var y3 = b * x + d * yMax + ty;\r\n var tmp = 0;\r\n if (x0 > x1) {\r\n tmp = x0;\r\n x0 = x1;\r\n x1 = tmp;\r\n }\r\n if (x2 > x3) {\r\n tmp = x2;\r\n x2 = x3;\r\n x3 = tmp;\r\n }\r\n bounds.x = Math.floor(x0 < x2 ? x0 : x2);\r\n bounds.width = Math.ceil((x1 > x3 ? x1 : x3) - bounds.x);\r\n if (y0 > y1) {\r\n tmp = y0;\r\n y0 = y1;\r\n y1 = tmp;\r\n }\r\n if (y2 > y3) {\r\n tmp = y2;\r\n y2 = y3;\r\n y3 = tmp;\r\n }\r\n bounds.y = Math.floor(y0 < y2 ? y0 : y2);\r\n bounds.height = Math.ceil((y1 > y3 ? y1 : y3) - bounds.y);\r\n };\r\n Matrix.prototype.getDeterminant = function () {\r\n return this.a * this.d - this.b * this.c;\r\n };\r\n Matrix.prototype.$getScaleX = function () {\r\n var m = this;\r\n if (m.b == 0) {\r\n return m.a;\r\n }\r\n var result = Math.sqrt(m.a * m.a + m.b * m.b);\r\n return this.getDeterminant() < 0 ? -result : result;\r\n };\r\n Matrix.prototype.$getScaleY = function () {\r\n var m = this;\r\n if (m.c == 0) {\r\n return m.d;\r\n }\r\n var result = Math.sqrt(m.c * m.c + m.d * m.d);\r\n return this.getDeterminant() < 0 ? -result : result;\r\n };\r\n Matrix.prototype.$getSkewX = function () {\r\n if (this.d < 0) {\r\n return Math.atan2(this.d, this.c) + (PI / 2);\r\n }\r\n else {\r\n return Math.atan2(this.d, this.c) - (PI / 2);\r\n }\r\n };\r\n Matrix.prototype.$getSkewY = function () {\r\n if (this.a < 0) {\r\n return Math.atan2(this.b, this.a) - PI;\r\n }\r\n else {\r\n return Math.atan2(this.b, this.a);\r\n }\r\n };\r\n Matrix.prototype.$updateScaleAndRotation = function (scaleX, scaleY, skewX, skewY) {\r\n if ((skewX == 0 || skewX == TwoPI) && (skewY == 0 || skewY == TwoPI)) {\r\n this.a = scaleX;\r\n this.b = this.c = 0;\r\n this.d = scaleY;\r\n return;\r\n }\r\n skewX = skewX / DEG_TO_RAD;\r\n skewY = skewY / DEG_TO_RAD;\r\n var u = Math.cos(skewX);\r\n var v = Math.sin(skewX);\r\n if (skewX == skewY) {\r\n this.a = u * scaleX;\r\n this.b = v * scaleX;\r\n }\r\n else {\r\n this.a = Math.cos(skewY) * scaleX;\r\n this.b = Math.sin(skewY) * scaleX;\r\n }\r\n this.c = -v * scaleY;\r\n this.d = u * scaleY;\r\n };\r\n Matrix.prototype.$preMultiplyInto = function (other, target) {\r\n var a = other.a * this.a;\r\n var b = 0.0;\r\n var c = 0.0;\r\n var d = other.d * this.d;\r\n var tx = other.tx * this.a + this.tx;\r\n var ty = other.ty * this.d + this.ty;\r\n if (other.b !== 0.0 || other.c !== 0.0 || this.b !== 0.0 || this.c !== 0.0) {\r\n a += other.b * this.c;\r\n d += other.c * this.b;\r\n b += other.a * this.b + other.b * this.d;\r\n c += other.c * this.a + other.d * this.c;\r\n tx += other.ty * this.c;\r\n ty += other.tx * this.b;\r\n }\r\n target.a = a;\r\n target.b = b;\r\n target.c = c;\r\n target.d = d;\r\n target.tx = tx;\r\n target.ty = ty;\r\n };\r\n return Matrix;\r\n}());\r\nexport default Matrix;\r\n//# sourceMappingURL=Matrix.js.map"}
{"map":"{\"version\":3,\"file\":\"Button.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/ui/Button.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,WAAW,GAAW,MAAM,QAAQ,CAAC;AAC7C,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAE5C;IAAoC,kCAAiB;IAWpD;QAAA,YACC,iBAAO,SAGP;QADA,KAAI,CAAC,cAAc,GAAG,IAAI,CAAC;;IAC5B,CAAC;IAED,sBAAI,6BAAS;aAAb;YACC,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC3D,CAAC;;;OAAA;IAED,yBAAQ,GAAR,UAAS,KAAK,EAAE,GAAG,EAAE,QAAQ;QAC5B,iBAAM,QAAQ,YAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;QAErC,IAAI,GAAG,KAAK,cAAc,EAAE;YAC3B,IAAG,IAAI,CAAC,SAAS,EAAC;gBACjB,IAAI,CAAC,SAAS,CAAC,YAAY,GAAG,KAAK,CAAC;aACpC;YACD,IAAI;gBACH,IAAI,CAAC,aAAa,EAAE,CAAC;aACrB;YAAA,OAAO,CAAC,EAAE,GAAE;SACb;IACF,CAAC;IAED,yBAAQ,GAAR;QACC,iBAAM,QAAQ,WAAE,CAAC;QAEjB,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;IAClC,CAAC;IAED,wBAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC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AC,IAAI,CAAC,UAAU,EAAC;YACnB,OAAO;SACP;QAED,IAAI,CAAC,UAAU,GAAG,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC;QACpC,IAAG,IAAI,CAAC,YAAY,EAAC;YACpB,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;SAC1C;aAAI;YACJ,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC;SAC3C;IACF,CAAC;IACF,aAAC;AAAD,CAAC,AAlGD,CAAoC,iBAAiB,GAkGpD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaEvent, } from \"scilla\";\r\nimport TouchZoom from \"../animation/TouchZoom\";\r\nimport { InteractComponent } from \"../base\";\r\nimport { TextureRenderer } from \"../renderer\";\r\nvar Button = (function (_super) {\r\n tslib_1.__extends(Button, _super);\r\n function Button() {\r\n var _this = _super.call(this) || this;\r\n _this.touchInterrupt = true;\r\n return _this;\r\n }\r\n Object.defineProperty(Button.prototype, \"touchZoom\", {\r\n get: function () {\r\n return this.entity && this.entity.getComponent(TouchZoom);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Button.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n if (key === 'interactable') {\r\n if (this.touchZoom) {\r\n this.touchZoom.interactable = value;\r\n }\r\n try {\r\n this.changeTexture();\r\n }\r\n catch (e) { }\r\n }\r\n };\r\n Button.prototype.onCreate = function () {\r\n _super.prototype.onCreate.call(this);\r\n this.onClick = new ScillaEvent();\r\n };\r\n Button.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n this.bgRenderer = this.entity.getComponent(TextureRenderer);\r\n this.changeTexture(this.upRes);\r\n };\r\n Button.prototype.onTouchBegin = function (e) {\r\n _super.prototype.onTouchBegin.call(this, e);\r\n this.touchBeginWithSelf = true;\r\n this.changeTexture(this.downRes);\r\n };\r\n Button.prototype.onTouchOver = function (e) {\r\n _super.prototype.onTouchOver.call(this, e);\r\n if (this.touchBeginWithSelf) {\r\n this.touchBeginWithSelf = true;\r\n this.changeTexture(this.downRes);\r\n }\r\n this.touchOut = false;\r\n };\r\n Button.prototype.onTouchOut = function (e) {\r\n _super.prototype.onTouchOut.call(this, e);\r\n if (this.touchBeginWithSelf) {\r\n this.changeTexture(this.upRes);\r\n }\r\n this.touchOut = true;\r\n };\r\n Button.prototype.onGlobalTouchEnd = function (e) {\r\n _super.prototype.onGlobalTouchEnd.call(this, e);\r\n if (this.touchBeginWithSelf && !this.touchOut) {\r\n this.onClick.invoke();\r\n }\r\n this.touchBeginWithSelf = false;\r\n this.changeTexture(this.upRes);\r\n };\r\n Button.prototype.changeTexture = function (res) {\r\n if (!this.bgRenderer) {\r\n return;\r\n }\r\n this.currentRes = res || this.upRes;\r\n if (this.interactable) {\r\n this.bgRenderer.texture = this.currentRes;\r\n }\r\n else {\r\n this.bgRenderer.texture = this.disabledRes;\r\n }\r\n };\r\n return Button;\r\n}(InteractComponent));\r\nexport default Button;\r\n//# sourceMappingURL=Button.js.map"}
{"map":"{\"version\":3,\"file\":\"RectRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/RectRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAA;AAE1B,IAAA,kDAAkB,CAAe;AAKxC;IAA0C,wCAAe;IAAzD;QAAA,qEAsCC;QApCA,WAAK,GAAG,GAAG,CAAC;QAEZ,YAAM,GAAG,GAAG,CAAC;QAEb,kBAAY,GAAG,CAAC,CAAC;;IAgClB,CAAC;IA9BU,oCAAa,GAAvB;QACO,IAAA,SAAsB,EAArB,gBAAK,EAAE,kBAAc,CAAC;QAC7B,OAAO,EAAC,KAAK,OAAA,EAAE,MAAM,QAAA,EAAC,CAAC;IACxB,CAAC;IAKS,2B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AAE,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;SACvD;aAAM;YACN,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;SAC5C;QAED,iBAAM,IAAI,WAAE,CAAC;IACd,CAAC;IAnCD;QADC,kBAAkB;+CACP;IAEZ;QADC,kBAAkB;gDACN;IAEb;QADC,kBAAkB;sDACF;IAgClB,mBAAC;CAAA,AAtCD,CAA0C,eAAe,GAsCxD;eAtCoB,YAAY\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nimport { decorators } from 'scilla';\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector;\r\nvar RectRenderer = (function (_super) {\r\n tslib_1.__extends(RectRenderer, _super);\r\n function RectRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.width = 100;\r\n _this.height = 100;\r\n _this.cornerRadius = 0;\r\n return _this;\r\n }\r\n RectRenderer.prototype.getRenderSize = function () {\r\n var _a = this, width = _a.width, height = _a.height;\r\n return { width: width, height: height };\r\n };\r\n RectRenderer.prototype.draw = function () {\r\n var PI = Math.PI;\r\n var _a = this, context = _a.context, r = _a.cornerRadius, _b = _a.bounds, width = _b.width, height = _b.height, _margin = _a._margin, _useCacheMode = _a._useCacheMode;\r\n var offset = _useCacheMode ? _margin : 0;\r\n if (r) {\r\n context.moveTo(offset + r, offset + 0);\r\n context.lineTo(offset + width - r, offset + 0);\r\n context.arc(offset + width - r, offset + r, r, PI * 3 / 2, PI * 2);\r\n context.lineTo(offset + width, offset + height - r);\r\n context.arc(offset + width - r, offset + height - r, r, 0, PI / 2);\r\n context.lineTo(offset + r, offset + height);\r\n context.arc(offset + r, offset + height - r, r, PI / 2, PI);\r\n context.lineTo(offset + 0, offset + r);\r\n context.arc(offset + r, offset + r, r, PI, PI * 3 / 2);\r\n }\r\n else {\r\n context.rect(offset, offset, width, height);\r\n }\r\n _super.prototype.draw.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], RectRenderer.prototype, \"width\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], RectRenderer.prototype, \"height\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], RectRenderer.prototype, \"cornerRadius\", void 0);\r\n return RectRenderer;\r\n}(GraphicRenderer));\r\nexport default RectRenderer;\r\n//# sourceMappingURL=RectRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"Vector2D.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Vector2D.ts\"],\"names\":[],\"mappings\":\"AAKA,OAAO,EAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAC;AAEpD,IAAM,IAAI,GAAG,UAAU,CAAC;AACxB,QAAQ,CAAC,IAAI,EAAE;IACd,OAAO,IAAI,QAAQ,EAAE,CAAC;AACvB,CAAC,EAAE,UAAS,QAAkB,EAAE,CAAC,EAAE,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACtB,CAAC,CAAC,CAAC;AAOH,MAAM,UAAU,cAAc,CAAC,CAAK,EAAE,CAAK;IAAZ,kBAAA,EAAA,KAAK;IAAE,kBAAA,EAAA,KAAK;IAC1C,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACxB,CAAC;AAMD,MAAM,UAAU,eAAe,CAAC,MAAM;IACrC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACvB,CAAC;AAKD;IASC,kBAAY,CAAK,EAAE,CAAK,EAAE,QAAS;QAAvB,kBAAA,EAAA,KAAK;QAAE,kBAAA,EAAA,KAAK;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,IAAI,C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;;OAAA;IAED,sBAAI,2BAAK;aAAT;YACC,OAAO,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QACxB,CAAC;;;OAAA;IAED,2BAAQ,GAAR;QACC,OAAO,eAAe,GAAG,IAAI,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC;IAC1D,CAAC;IAEM,eAAM,GAAb,UAAc,EAAE,EAAE,EAAE;QACnB,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5D,CAAC;IACF,eAAC;AAAD,CAAC,AAtLD,IAsLC;;AAED,IAAM,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAC\"}","code":"import { get, recycle, register } from \"./ObjectPool\";\r\nvar name = 'Vector2D';\r\nregister(name, function () {\r\n return new Vector2D();\r\n}, function (instance, x, y) {\r\n instance.setXY(x, y);\r\n});\r\nexport function createVector2D(x, y) {\r\n if (x === void 0) { x = 0; }\r\n if (y === void 0) { y = 0; }\r\n return get(name, x, y);\r\n}\r\nexport function releaseVector2D(target) {\r\n recycle(name, target);\r\n}\r\nvar Vector2D = (function () {\r\n function Vector2D(x, y, onChange) {\r\n if (x === void 0) { x = 0; }\r\n if (y === void 0) { y = 0; }\r\n this.onChange = onChange;\r\n this._x = 0;\r\n this._y = 0;\r\n this.setXY(x, y);\r\n }\r\n Object.defineProperty(Vector2D, \"zero\", {\r\n get: function () {\r\n return zero;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"x\", {\r\n get: function () {\r\n return this._x;\r\n },\r\n set: function (v) {\r\n if (this._x !== v) {\r\n var old = this._x;\r\n this._x = v;\r\n this.onChange && this.onChange(v, 'x', old);\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"y\", {\r\n get: function () {\r\n return this._y;\r\n },\r\n set: function (v) {\r\n if (this._y !== v) {\r\n var old = this._y;\r\n this._y = v;\r\n this.onChange && this.onChange(v, 'y', old);\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.setXY = function (x, y) {\r\n if (x === void 0) { x = 0; }\r\n if (y === void 0) { y = 0; }\r\n this.x = x;\r\n this.y = y;\r\n return this;\r\n };\r\n Vector2D.prototype.copyFrom = function (v2) {\r\n this.x = v2.x;\r\n this.y = v2.y;\r\n return this;\r\n };\r\n Vector2D.prototype.clone = function () {\r\n return new Vector2D(this.x, this.y);\r\n };\r\n Vector2D.prototype.zero = function () {\r\n this.x = 0;\r\n this.y = 0;\r\n return this;\r\n };\r\n Object.defineProperty(Vector2D.prototype, \"isZero\", {\r\n get: function () {\r\n return this.x == 0 && this.y == 0;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.normalize = function () {\r\n var len = this.length;\r\n if (len == 0) {\r\n this.x = 1;\r\n return this;\r\n }\r\n this.x /= len;\r\n this.y /= len;\r\n return this;\r\n };\r\n Object.defineProperty(Vector2D.prototype, \"isNormalized\", {\r\n get: function () {\r\n return this.length == 1.0;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.truncate = function (max) {\r\n this.length = Math.min(max, this.length);\r\n return this;\r\n };\r\n Vector2D.prototype.reverse = function () {\r\n this.x = -this.x;\r\n this.y = -this.y;\r\n return this;\r\n };\r\n Vector2D.prototype.dotProd = function (v2) {\r\n return this.x * v2.x + this.y * v2.y;\r\n };\r\n Vector2D.prototype.crossProd = function (v2) {\r\n return this.x * v2.y - this.y * v2.x;\r\n };\r\n Vector2D.prototype.distSQ = function (v2) {\r\n var dx = v2.x - this.x;\r\n var dy = v2.y - this.y;\r\n return dx * dx + dy * dy;\r\n };\r\n Vector2D.prototype.distance = function (v2) {\r\n return Math.sqrt(this.distSQ(v2));\r\n };\r\n Vector2D.prototype.add = function (v2) {\r\n this.x += v2.x;\r\n this.y += v2.y;\r\n return this;\r\n };\r\n Vector2D.prototype.subtract = function (v2) {\r\n this.x -= v2.x;\r\n this.y -= v2.y;\r\n return this;\r\n };\r\n Vector2D.prototype.multiply = function (value) {\r\n this.x *= value;\r\n this.y *= value;\r\n return this;\r\n };\r\n Vector2D.prototype.divide = function (value) {\r\n this.x /= value;\r\n this.y /= value;\r\n return this;\r\n };\r\n Object.defineProperty(Vector2D.prototype, \"angle\", {\r\n get: function () {\r\n return this.radian * 180 / Math.PI;\r\n },\r\n set: function (value) {\r\n this.radian = value * Math.PI / 180;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"radian\", {\r\n get: function () {\r\n return Math.atan2(this.y, this.x);\r\n },\r\n set: function (value) {\r\n var len = this.length;\r\n this.setXY(Math.cos(value) * len, Math.sin(value) * len);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.equals = function (v2) {\r\n return this.x == v2.x && this.y == v2.y;\r\n };\r\n Object.defineProperty(Vector2D.prototype, \"length\", {\r\n get: function () {\r\n return Math.sqrt(this.lengthSQ);\r\n },\r\n set: function (value) {\r\n var a = this.radian;\r\n this.setXY(Math.cos(a) * value, Math.sin(a) * value);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"lengthSQ\", {\r\n get: function () {\r\n return this.x * this.x + this.y * this.y;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Vector2D.prototype, \"slope\", {\r\n get: function () {\r\n return this.y / this.x;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Vector2D.prototype.toString = function () {\r\n return \"[Vector2D (x:\" + this.x + \", y:\" + this.y + \")]\";\r\n };\r\n Vector2D.corner = function (v1, v2) {\r\n return Math.acos(v1.dotProd(v2) / (v1.length * v2.length));\r\n };\r\n return Vector2D;\r\n}());\r\nexport default Vector2D;\r\nvar zero = new Vector2D();\r\n//# sourceMappingURL=Vector2D.js.map"}
{"map":"{\"version\":3,\"file\":\"ScillaEvent.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/ScillaEvent.ts\"],\"names\":[],\"mappings\":\";AAQA;IAGC;QACC,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IACxB,CAAC;IAEO,kCAAY,GAApB,UAAqB,QAAQ;QACrB,IAAA,gCAAY,CAAS;QAE5B,IAAI,MAAM,CAAC;QACX,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;YACtD,IAAM,UAAU,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;YAEnC,IAAI,UAAU,CAAC,QAAQ,IAAI,QAAQ,EAAE;gBACpC,MAAM,GAAG;oBACR,UAAU,YAAA;oBACV,KAAK,EAAE,CAAC;iBACR,CAAC;gBACF,MAAM;aACN;SACD;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IASD,iCAAW,GAAX,UAAY,QAAQ,EAAE,OAAQ,EAAE,QAAY;QAAZ,yBAAA,EAAA,YAAY;QAAE,gBAAS;aAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;YAAT,+BAAS;;QACtD,IAAI,CAAC,QAAQ,EAAE;YACd,OAAO;SACP;QAEM,IAAA,gCAAY,CAAS;QAE5B,IAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC7C,IAAI,CAAC,QAAQ,EAAE;YACd,YAAY,CAAC,IAAI,CAAC;gBACjB,QAAQ,UAAA;gBACR,OAAO,SAAA;gBACP,QAAQ,UAAA;gBACR,MAAM,QAAA;aACN,CAAC,CAAC;SACH;IACF,CAAC;IASD,0BAAI,GAAJ,UAAK,QAAQ,EAAE,OAAQ,EAAE,QAAY;QAAZ,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,sBAAI,EAAE,0BAAM,CAAc;oBACpD,IAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;oBAE3C,IAAI;wBACH,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;qBACnC;oBAAA,OAAO,CAAC,EAAE;wBACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;qBACf;oBAED,IAAG,IAAI,EAAC;wBACP,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;qBAC9B;iBACD;aACD;;;;;;;;;IACF,CAAC;IACF,kBAAC;AAAD,CAAC,AAnID,IAmIC\"}","code":"import * as tslib_1 from \"tslib\";\r\nvar ScillaEvent = (function () {\r\n function ScillaEvent() {\r\n this._subscribers = [];\r\n }\r\n ScillaEvent.prototype.findListener = function (callback) {\r\n var _subscribers = this._subscribers;\r\n var result;\r\n for (var i = 0, li = _subscribers.length; i < li; i++) {\r\n var subscriber = _subscribers[i];\r\n if (subscriber.callback == callback) {\r\n result = {\r\n subscriber: subscriber,\r\n index: i,\r\n };\r\n break;\r\n }\r\n }\r\n return result;\r\n };\r\n ScillaEvent.prototype.addListener = function (callback, thisObj, priority) {\r\n if (priority === void 0) { priority = 0; }\r\n var params = [];\r\n for (var _i = 3; _i < arguments.length; _i++) {\r\n params[_i - 3] = arguments[_i];\r\n }\r\n if (!callback) {\r\n return;\r\n }\r\n var _subscribers = this._subscribers;\r\n var listener = this.findListener(callback);\r\n if (!listener) {\r\n _subscribers.push({\r\n callback: callback,\r\n thisObj: thisObj,\r\n priority: priority,\r\n params: params,\r\n });\r\n }\r\n };\r\n ScillaEvent.prototype.once = function (callback, thisObj, priority) {\r\n if (priority === void 0) { priority = 0; }\r\n var params = [];\r\n for (var _i = 3; _i < arguments.length; _i++) {\r\n params[_i - 3] = arguments[_i];\r\n }\r\n if (!callback) {\r\n return;\r\n }\r\n var _subscribers = this._subscribers;\r\n var listener = this.findListener(callback);\r\n if (!listener) {\r\n _subscribers.push({\r\n callback: callback,\r\n thisObj: thisObj,\r\n priority: priority,\r\n params: params,\r\n once: true,\r\n });\r\n }\r\n };\r\n ScillaEvent.prototype.removeListener = function (callback) {\r\n if (!callback) {\r\n return;\r\n }\r\n var _subscribers = this._subscribers;\r\n var listener = this.findListener(callback);\r\n if (listener) {\r\n _subscribers.splice(listener.index, 1);\r\n }\r\n };\r\n ScillaEvent.prototype.hasListener = function (callback) {\r\n return !!this.findListener(callback);\r\n };\r\n ScillaEvent.prototype.invoke = function () {\r\n var paramsNew = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n paramsNew[_i] = arguments[_i];\r\n }\r\n var e_1, _a;\r\n var _subscribers = this._subscribers;\r\n _subscribers.sort(function (a, b) {\r\n return a.priority - b.priority;\r\n });\r\n try {\r\n for (var _subscribers_1 = tslib_1.__values(_subscribers), _subscribers_1_1 = _subscribers_1.next(); !_subscribers_1_1.done; _subscribers_1_1 = _subscribers_1.next()) {\r\n var subscriber = _subscribers_1_1.value;\r\n if (subscriber) {\r\n var callback = subscriber.callback, thisObj = subscriber.thisObj, once = subscriber.once, params = subscriber.params;\r\n var allParams = params.concat(paramsNew);\r\n try {\r\n callback.apply(thisObj, allParams);\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n if (once) {\r\n this.removeListener(callback);\r\n }\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_subscribers_1_1 && !_subscribers_1_1.done && (_a = _subscribers_1.return)) _a.call(_subscribers_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n };\r\n return ScillaEvent;\r\n}());\r\nexport { ScillaEvent };\r\n//# sourceMappingURL=ScillaEvent.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/index.ts\"],\"names\":[],\"mappings\":\"AAMA,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAC,MAAM,YAAY,CAAA;AAC/E,OAAO,EAAC,WAAW,EAAE,KAAK,EAAC,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAA;AAEtC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AAErC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC\"}","code":"export { default as Bounds } from './Bounds';\r\nexport { default as Vector2D, createVector2D, releaseVector2D } from './Vector2D';\r\nexport { createTween, Tween } from './Tween';\r\nexport { default as Matrix } from './Matrix';\r\nexport { default as Size } from './Size';\r\nexport { default as LocalStorage } from './LocalStorage';\r\nexport { TextStyle } from './TextStyle';\r\nexport { default as EventEmitter } from './EventEmitter';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"Texture.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Texture.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAKrD;IAAqC,mCAAU;IAM9C;QAAA,YACC,iBAAO,SAGP;QADA,KAAI,CAAC,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;;IAC5B,CAAC;IAMD,0BAAQ,GAAR,UAAS,KAAK;QACR,IAAA,WAAC,EAAE,WAAC,EAAE,WAAC,EAAE,WAAC,CAAU;QACzB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,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C,CAAC;IACjG,CAAC;IAKD,yBAAO,GAAP;QACC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QAEnB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC3B,CAAC;IAKD,oCAAkB,GAAlB;QACC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC1B,CAAC;IACF,cAAC;AAAD,CAAC,AA7FD,CAAqC,UAAU,GA6F9C;;AAOD,MAAM,UAAU,aAAa,CAAC,GAAG,EAAE,KAAM;IACxC,IAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC9B,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,MAAM,EAAC,CAAC,CAAC;IAErE,OAAO,OAAO,CAAC;AAChB,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Bounds from \"../support/Bounds\";\r\nimport HashObject from \"../core/HashObject\";\r\nimport { createCanvas } from \"./context/RenderContext\";\r\nvar Texture = (function (_super) {\r\n tslib_1.__extends(Texture, _super);\r\n function Texture() {\r\n var _this = _super.call(this) || this;\r\n _this.bounds = new Bounds();\r\n return _this;\r\n }\r\n Texture.prototype.setFrame = function (frame) {\r\n var x = frame.x, y = frame.y, w = frame.w, h = frame.h;\r\n this.bounds.setTo(x, y, w, h);\r\n };\r\n Texture.prototype.setImg = function (img) {\r\n this.img = img;\r\n };\r\n Object.defineProperty(Texture.prototype, \"width\", {\r\n get: function () {\r\n return this.bounds.width;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Texture.prototype, \"height\", {\r\n get: function () {\r\n return this.bounds.height;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Texture.prototype.getCacheCanvas = function () {\r\n var _a = this.bounds, width = _a.width, height = _a.height;\r\n var canvas = this._cacheCanvas;\r\n if (!canvas) {\r\n canvas = this._cacheCanvas = createCanvas();\r\n }\r\n canvas.width = width;\r\n canvas.height = height;\r\n var context = canvas.getContext('2d');\r\n this.drawToCanvas(context);\r\n return canvas;\r\n };\r\n Texture.prototype.drawToCanvas = function (context, dx, dy, sx, sy, dw, dh) {\r\n if (dx === void 0) { dx = 0; }\r\n if (dy === void 0) { dy = 0; }\r\n var _a = this.bounds, x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n context.drawImage(this.img, sx || x, sy || y, width, height, dx, dy, dw || width, dh || height);\r\n };\r\n Texture.prototype.destroy = function () {\r\n this.img = null;\r\n this.bounds = null;\r\n this.destroyCacheCanvas();\r\n };\r\n Texture.prototype.destroyCacheCanvas = function () {\r\n this._cacheCanvas = null;\r\n };\r\n return Texture;\r\n}(HashObject));\r\nexport default Texture;\r\nexport function createTexture(img, frame) {\r\n var texture = new Texture();\r\n texture.setImg(img);\r\n texture.setFrame(frame || { x: 0, y: 0, w: img.width, h: img.height });\r\n return texture;\r\n}\r\n//# sourceMappingURL=Texture.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAA;AAChE,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAA\"}","code":"export { default as InteractComponent } from './InteractComponent';\r\nexport { default as TouchInterrupt } from './TouchInterrupt';\r\nexport { default as Transform } from './Transform';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"time.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/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M,EAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;AAChI,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,MAAa,EAAE,MAA6B,EAAE,SAAwB;IAAvD,uBAAA,EAAA,sBAA6B;IAAE,0BAAA,EAAA,gBAAwB;IAClG,IAAI,EAAE,GAAO,MAAM,GAAG,EAAE,CAAC;IACzB,IAAI,EAAE,GAAO,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;IAC1C,IAAI,EAAE,GAAO,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC5C,IAAI,EAAE,GAAO,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC;IAE5C,IAAI,SAAS,EAAE;QACd,EAAE,GAAG,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACvB,EAAE,GAAG,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACvB,EAAE,GAAG,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACvB,EAAE,GAAG,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;KACvB;IAED,OAAO,YAAY,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7C,CAAC\"}","code":"import { format as stringFormat, supplement } from './utils';\r\nexport function ts2Date(ts) {\r\n var newDate = new Date();\r\n newDate.setTime(ts);\r\n return newDate;\r\n}\r\nexport function dateToDateString(date, format) {\r\n if (format === void 0) { format = '{0}/{1}/{2}'; }\r\n return stringFormat(format, date.getFullYear(), supplement(date.getMonth() + 1, 2), supplement(date.getDate(), 2));\r\n}\r\nexport function dateToTimeString(date, format) {\r\n if (format === void 0) { format = '{0}:{1}:{2}'; }\r\n return stringFormat(format, supplement(date.getHours(), 2), supplement(date.getMinutes(), 2), supplement(date.getSeconds(), 2));\r\n}\r\nexport function dateToString(date, dayFormat, timeFormat) {\r\n return dateToDateString(date, dayFormat) + dateToTimeString(date, timeFormat);\r\n}\r\nexport function tsToTimeString(ts, format) {\r\n if (format === void 0) { format = '{0}:{1}:{2}'; }\r\n var date = ts2Date(ts);\r\n return stringFormat(format, supplement(date.getHours(), 2), supplement(date.getMinutes(), 2), supplement(date.getSeconds(), 2));\r\n}\r\nexport function secondFormat(second, format, placeZero) {\r\n if (format === void 0) { format = '{2}:{1}:{0}'; }\r\n if (placeZero === void 0) { placeZero = true; }\r\n var ss = second % 60;\r\n var mm = Math.floor(second / 60) % 60;\r\n var hh = Math.floor(second / 3600) % 24;\r\n var dd = Math.floor(second / 3600 / 24);\r\n if (placeZero) {\r\n ss = supplement(ss, 2);\r\n mm = supplement(mm, 2);\r\n hh = supplement(hh, 2);\r\n dd = supplement(dd, 2);\r\n }\r\n return stringFormat(format, ss, mm, hh, dd);\r\n}\r\n//# sourceMappingURL=time.js.map"}
{"map":"{\"version\":3,\"file\":\"interpreter.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/editor/interpreter.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,MAAM,EAAS,WAAW,EAAC,MAAM,SAAS,CAAC;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,IAAI,WAAW,GAAG,EAAE,CAAC;AACrB,IAAI,iBAAiB,CAAC;AACtB,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,IAAI,QAAQ,GAAW,CAAC,CAAC;AAEzB,MAAM,UAAU,WAAW,CAAC,IAAI,EAAE,GAAG;IACpC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC;IACnB,GAAG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,CAAC;AACf,CAAC;AAED,SAAS,eAAe,CAAC,IAAI,EAAE,GAAG;IACjC,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AACtC,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Entity, ScillaEvent } from \"../core\";\r\nimport { getRes } from \"../assets-manager\";\r\nvar entityCache = {};\r\nvar entityCacheConfig;\r\nvar defMap = {};\r\nvar prefabID = 0;\r\nexport function registerDef(name, def) {\r\n defMap[name] = def;\r\n def.__class__ = name;\r\n}\r\nfunction getEntityCacheConfig(config) {\r\n return config['entity-cache'] ? config['entity-cache'].concat() : [];\r\n}\r\nexport function setupScene(scene, root) {\r\n scene.root = root;\r\n var config = scene.config;\r\n entityCacheConfig = getEntityCacheConfig(config);\r\n instantiateConfig(config.root, root);\r\n entityCache = {};\r\n return scene;\r\n}\r\nexport function destroyScene(scene) {\r\n var root = scene.root;\r\n root.removeAllComponents();\r\n root.removeChildren();\r\n}\r\nexport function instantiate(config) {\r\n var pid = ++prefabID;\r\n entityCacheConfig = getEntityCacheConfig(config);\r\n for (var i = 0, li = entityCacheConfig.length; i < li; i++) {\r\n entityCacheConfig[i] = pid + '_' + entityCacheConfig[i];\r\n }\r\n var rootConfig = config.root;\r\n var entity = setupEntity(rootConfig, null, pid);\r\n setupComponent(rootConfig, entity, true);\r\n injectComponent(rootConfig, entity, true, pid);\r\n entityCache = {};\r\n return entity.children[0];\r\n}\r\nfunction instantiateConfig(config, root) {\r\n var entity = setupEntity(config, root);\r\n setupComponent(config, entity, true);\r\n injectComponent(config, entity, true);\r\n return entity;\r\n}\r\nfunction setupEntity(config, root, pid) {\r\n var entity = null;\r\n if (config) {\r\n var name_1 = config.name, uuid = config.uuid, children = config.children;\r\n if (pid !== undefined && uuid !== undefined) {\r\n uuid = pid + '_' + uuid;\r\n }\r\n entity = root || new Entity(name_1, uuid);\r\n if (entityCacheConfig.indexOf(uuid) >= 0) {\r\n entityCache[uuid] = entity;\r\n }\r\n if (children) {\r\n for (var i = 0, li = children.length; i < li; i++) {\r\n var child = children[i];\r\n var childEntity = setupEntity(child, null, pid);\r\n entity.addChild(childEntity);\r\n }\r\n }\r\n if (!root) {\r\n entity.enabled = !config.disabled;\r\n }\r\n }\r\n return entity;\r\n}\r\nfunction setupComponent(config, root, includeSelf) {\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n if (includeSelf) {\r\n instantiateComponents(root, config);\r\n }\r\n if (config && config.children) {\r\n for (var i = 0, li = root.children.length; i < li; i++) {\r\n var child = config.children[i];\r\n var entity = root.children[i];\r\n instantiateComponents(entity, child);\r\n setupComponent(child, entity);\r\n }\r\n }\r\n}\r\nfunction injectComponent(config, root, includeSelf, pid) {\r\n if (includeSelf === void 0) { includeSelf = false; }\r\n if (includeSelf) {\r\n injectComponents(root, config, pid);\r\n }\r\n if (config && config.children) {\r\n for (var i = 0, li = root.children.length; i < li; i++) {\r\n var child = config.children[i];\r\n var entity = root.children[i];\r\n injectComponents(entity, child, pid);\r\n injectComponent(child, entity, false, pid);\r\n }\r\n }\r\n}\r\nfunction instantiateComponents(entity, config) {\r\n var e_1, _a;\r\n if (config.components) {\r\n try {\r\n for (var _b = tslib_1.__values(config.components), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var component = _c.value;\r\n instantiateComponent(entity, component);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n }\r\n}\r\nfunction injectComponents(entity, config, pid) {\r\n if (config.components) {\r\n var components = entity.components;\r\n for (var i = 0, li = config.components.length; i < li; i++) {\r\n var component = config.components[i];\r\n var properties = component.properties;\r\n if (properties) {\r\n injectProperties(components[i], properties, pid);\r\n }\r\n }\r\n }\r\n}\r\nfunction instantiateComponent(entity, config) {\r\n var script = config.script, properties = config.properties;\r\n var def = getDefByName(script);\r\n if (!def) {\r\n return;\r\n }\r\n var instance = new def();\r\n instance.enabled = !config.disabled;\r\n entity.addComponent(instance);\r\n}\r\nfunction getDefByName(name) {\r\n var def;\r\n def = defMap[name];\r\n if (!def) {\r\n console.warn('missing def:', name);\r\n return;\r\n }\r\n return def;\r\n}\r\nvar skipKeys = ['_type_', '_constructor_'];\r\nfunction injectProperties(node, propertiesConfig, pid) {\r\n if (!node) {\r\n console.warn('node is null.');\r\n return;\r\n }\r\n for (var key in propertiesConfig) {\r\n if (skipKeys.indexOf(key) >= 0) {\r\n continue;\r\n }\r\n var propertyOfConfig = propertiesConfig[key];\r\n var propertyOfInstance = node[key];\r\n if (typeof propertyOfConfig === 'object') {\r\n if (propertyOfInstance instanceof ScillaEvent) {\r\n injectEvent(propertyOfInstance, propertyOfConfig, pid);\r\n }\r\n else if (propertyOfConfig._type_ === 'raw') {\r\n node[key] = propertyOfInstance = propertyOfConfig.data;\r\n }\r\n else {\r\n if (Array.isArray(propertyOfConfig) && !propertyOfInstance) {\r\n node[key] = propertyOfInstance = [];\r\n }\r\n node[key] = injectObject(propertyOfInstance, propertyOfConfig, pid);\r\n }\r\n }\r\n else {\r\n injectBaseType(node, key, propertyOfConfig, pid);\r\n }\r\n }\r\n}\r\nfunction injectObject(propertyOfInstance, propertyOfConfig, pid) {\r\n if (propertyOfInstance === undefined) {\r\n if (propertyOfConfig._type_) {\r\n var def = getDefByName(propertyOfConfig._type_);\r\n if (def) {\r\n var constructorArgs = propertyOfConfig._constructor_;\r\n if (constructorArgs && constructorArgs.length > 0) {\r\n propertyOfInstance = def.constructor.apply(null, constructorArgs);\r\n }\r\n else {\r\n propertyOfInstance = new def();\r\n }\r\n }\r\n }\r\n }\r\n if (propertyOfInstance) {\r\n injectProperties(propertyOfInstance, propertyOfConfig, pid);\r\n }\r\n return propertyOfInstance;\r\n}\r\nfunction injectBaseType(node, key, propertyOfConfig, pid) {\r\n var propertyValue;\r\n if (typeof propertyOfConfig === 'string') {\r\n propertyValue = getLink(propertyOfConfig, pid);\r\n }\r\n else {\r\n propertyValue = propertyOfConfig;\r\n }\r\n node[key] = propertyValue;\r\n}\r\nfunction injectEvent(event, config, pid) {\r\n var e_2, _a;\r\n try {\r\n for (var config_1 = tslib_1.__values(config), config_1_1 = config_1.next(); !config_1_1.done; config_1_1 = config_1.next()) {\r\n var _b = config_1_1.value, entityName = _b.entity, componentIndex = _b.component, methodName = _b.method, param = _b.param;\r\n if (entityName && componentIndex >= 0 && methodName) {\r\n var entity = getLink(entityName, pid);\r\n var component = entity.components[componentIndex];\r\n var method = component[methodName];\r\n if (method) {\r\n if (param == undefined) {\r\n event.addListener(method, component, 0);\r\n }\r\n else {\r\n event.addListener(method, component, 0, param);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (config_1_1 && !config_1_1.done && (_a = config_1.return)) _a.call(config_1);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n}\r\nfunction getLink(str, pid) {\r\n var result;\r\n if (str.indexOf('res|') == 0) {\r\n var uuid = str.substr(4);\r\n result = getRes(uuid);\r\n }\r\n else if (str.indexOf('entity|') == 0) {\r\n var uuid = transPrefabUUID(str.substr(7), pid);\r\n result = entityCache[uuid];\r\n }\r\n else {\r\n result = str;\r\n }\r\n return result;\r\n}\r\nfunction transPrefabUUID(uuid, pid) {\r\n return pid ? pid + '_' + uuid : uuid;\r\n}\r\n//# sourceMappingURL=interpreter.js.map"}
{"map":"{\"version\":3,\"file\":\"math.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/math.ts\"],\"names\":[],\"mappings\":\";AAcA,MAAM,UAAU,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,gBAAwB;IAAxB,iCAAA,EAAA,wBAAwB;IAC3D,IAAM,IAAI,GAAG,OAAO,KAAK,CAAC;IAC1B,I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,CAAC,GAAW,EAAE,GAAe;IAAf,oBAAA,EAAA,OAAe;IACzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;AACtD,CAAC;AAOD,MAAM,UAAU,QAAQ,CAAC,GAAQ;IAChC,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,GAAG,GAAW,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;QAC/E,IAAI,CAAC,GAAW,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,GAAW,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QAClB,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QAChB,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;KACd;IAED,OAAO,GAAG,CAAC;AACZ,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nexport function lerp(begin, end, t, allowOutOfBounds) {\r\n if (allowOutOfBounds === void 0) { allowOutOfBounds = false; }\r\n var type = typeof begin;\r\n if (type !== typeof end) {\r\n console.error('begin and end need same type');\r\n }\r\n if (!allowOutOfBounds) {\r\n t = Math.max(0, Math.min(1, t));\r\n }\r\n var sign = end - begin;\r\n sign = sign > 0 ? 1 : (sign < 0 ? -1 : 0);\r\n var distance = Math.abs(end - begin);\r\n return begin + distance * t * sign;\r\n}\r\nexport function lerpObj(begin, end, t, clazz, fields, allowOutOfBounds) {\r\n if (allowOutOfBounds === void 0) { allowOutOfBounds = false; }\r\n var e_1, _a;\r\n var type = typeof begin;\r\n if (type !== typeof end) {\r\n console.error('begin and end need same type');\r\n }\r\n var temp = new clazz();\r\n try {\r\n for (var fields_1 = tslib_1.__values(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) {\r\n var field = fields_1_1.value;\r\n temp[field] = lerp(begin[field], end[field], t, allowOutOfBounds);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (fields_1_1 && !fields_1_1.done && (_a = fields_1.return)) _a.call(fields_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n return temp;\r\n}\r\nexport function makeRandomInt(max, min) {\r\n if (min === void 0) { min = 0; }\r\n return Math.floor(Math.random() * (max - min)) + min;\r\n}\r\nexport function mixArray(arr) {\r\n for (var i = 0, len = Math.round(arr.length / 2); i < len; i++) {\r\n var a = makeRandomInt(arr.length);\r\n var b = makeRandomInt(arr.length);\r\n var temp = arr[a];\r\n arr[a] = arr[b];\r\n arr[b] = temp;\r\n }\r\n return arr;\r\n}\r\n//# sourceMappingURL=math.js.map"}
{"map":"{\"version\":3,\"file\":\"requestAnimationFrame.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/requestAnimationFrame.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,IAAI,OAAO,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AAChC,KAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,EAAE,CAAC,EAAE;IACrE,MAAM,CAAC,qBAAqB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,uBAAuB,CAAC,CAAC;IAC5E,MAAM,CAAC,oBAAoB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC;QACvE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,6BAA6B,CAAC,CAAC;CACxD;AAED,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE;IAC/B,MAAM,CAAC,qBAAqB,GAAG,UAAS,QAAQ;QAC5C,IAAI,QAAQ,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;QACpC,IAAI,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC;QAC3D,IAAI,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;YACvB,QAAQ,CAAC,QAAQ,GAAG,UAAU,CAAC,CAAC;QACpC,CAAC,EAAE,UAAU,CAAC,CAAC;QACf,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;QACjC,OAAO,EAAE,CAAC;IACd,CAAC,CAAC;CACL;AACD,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE;IAC9B,MAAM,CAAC,oBAAoB,GAAG,UAAS,EAAE;QACrC,YAAY,CAAC,EAAE,CAAC,CAAC;IACrB,CAAC,CAAC;CACL\"}","code":"var lastTime = 0;\r\nvar vendors = ['webkit', 'moz'];\r\nfor (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {\r\n window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'];\r\n window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] ||\r\n window[vendors[x] + 'CancelRequestAnimationFrame'];\r\n}\r\nif (!window.requestAnimationFrame) {\r\n window.requestAnimationFrame = function (callback) {\r\n var currTime = new Date().getTime();\r\n var timeToCall = Math.max(0, 16.7 - (currTime - lastTime));\r\n var id = window.setTimeout(function () {\r\n callback(currTime + timeToCall);\r\n }, timeToCall);\r\n lastTime = currTime + timeToCall;\r\n return id;\r\n };\r\n}\r\nif (!window.cancelAnimationFrame) {\r\n window.cancelAnimationFrame = function (id) {\r\n clearTimeout(id);\r\n };\r\n}\r\n//# sourceMappingURL=requestAnimationFrame.js.map"}
{"map":"{\"version\":3,\"file\":\"Tween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,EAAC;YACpB,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;SACtB;QACD,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAE7C,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;IAOD,wBAAQ,GAAR;QACC,IAAI,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;YAC/B,OAAO;SACP;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;QACd,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,IAAI,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,EAAE;YAC5C,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;SACxC;QACD,IAAI,CAAC,aAAa,EAAE,CAAC;IACtB,CAAC;IAAA,CAAC;IAiCH,YAAC;AAAD,CAAC,AA1PD,CAA2B,UAAU,GA0PpC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { lerp, lerpObj } from \"../tools/math\";\r\nimport { injectProp } from \"../tools/utils\";\r\nimport HashObject from \"../core/HashObject\";\r\nvar STATUS;\r\n(function (STATUS) {\r\n STATUS[STATUS[\"IDLE\"] = 0] = \"IDLE\";\r\n STATUS[STATUS[\"PENDING\"] = 1] = \"PENDING\";\r\n STATUS[STATUS[\"DO_SET\"] = 2] = \"DO_SET\";\r\n STATUS[STATUS[\"DO_TO\"] = 3] = \"DO_TO\";\r\n STATUS[STATUS[\"DO_WAIT\"] = 4] = \"DO_WAIT\";\r\n STATUS[STATUS[\"DO_CALL\"] = 5] = \"DO_CALL\";\r\n})(STATUS || (STATUS = {}));\r\nexport function createTween(target, override, options, plugins) {\r\n if (override === void 0) { override = false; }\r\n if (plugins === void 0) { plugins = []; }\r\n if (override) {\r\n killTweens(target);\r\n }\r\n var tween = new Tween(target, options);\r\n addTween(target, tween);\r\n return tween;\r\n}\r\nexport function killTweens(target) {\r\n var e_1, _a;\r\n var tweens = target['tweens'];\r\n if (tweens) {\r\n try {\r\n for (var tweens_1 = tslib_1.__values(tweens), tweens_1_1 = tweens_1.next(); !tweens_1_1.done; tweens_1_1 = tweens_1.next()) {\r\n var tween = tweens_1_1.value;\r\n tween.stop();\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (tweens_1_1 && !tweens_1_1.done && (_a = tweens_1.return)) _a.call(tweens_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n tweens.splice(0);\r\n }\r\n}\r\nfunction addTween(target, tween) {\r\n var tweens = target['tweens'];\r\n if (!tweens) {\r\n tweens = target['tweens'] = [];\r\n }\r\n tweens.push(tween);\r\n}\r\nvar Tween = (function (_super) {\r\n tslib_1.__extends(Tween, _super);\r\n function Tween(target, options, plugins) {\r\n if (plugins === void 0) { plugins = []; }\r\n var _this = _super.call(this) || this;\r\n _this.queue = [];\r\n _this.loopCounting = 0;\r\n _this.status = STATUS.IDLE;\r\n _this.onUpdate = function (t) {\r\n _this.t = t;\r\n switch (_this.status) {\r\n case STATUS.DO_TO:\r\n var _a = _this, target = _a.target, startTime = _a.startTime, fromProps = _a.fromProps, toProps = _a.toProps, duration = _a.duration, ease = _a.ease, clazz = _a.clazz, fields = _a.fields;\r\n var passTime = t - startTime;\r\n var timeRatio = Math.min(1, passTime / duration);\r\n var ratio = timeRatio;\r\n if (ease) {\r\n ratio = ease(ratio);\r\n }\r\n for (var key in fromProps) {\r\n var toValue = toProps[key];\r\n var fromValue = fromProps[key];\r\n var currentValue = void 0;\r\n if (timeRatio < 1) {\r\n if (typeof toValue == 'object') {\r\n currentValue = lerpObj(fromValue, toValue, ratio, clazz, fields || Object.keys(toValue), true);\r\n }\r\n else {\r\n currentValue = lerp(fromValue, toValue, ratio, true);\r\n }\r\n }\r\n else {\r\n currentValue = toValue;\r\n }\r\n target[key] = currentValue;\r\n if (timeRatio >= 1) {\r\n _this._doNextAction();\r\n }\r\n }\r\n break;\r\n case STATUS.DO_WAIT:\r\n var _b = _this, startTime = _b.startTime, duration = _b.duration;\r\n var passTime = t - startTime;\r\n if (passTime > duration) {\r\n _this._doNextAction();\r\n }\r\n break;\r\n }\r\n };\r\n _this._doPlay = function (resetLoopCounting) {\r\n addTween(_this.target, _this);\r\n _this._start(resetLoopCounting);\r\n };\r\n _this._readyStart = function (t) {\r\n _this.t = t;\r\n _this._doStart();\r\n };\r\n _this._doNextAction = function () {\r\n if (_this.step < _this.queue.length) {\r\n var action = _this.queue[_this.step++];\r\n switch (action.action) {\r\n case 'set':\r\n _this._set(action.props);\r\n break;\r\n case 'to':\r\n if (action.duration > 0) {\r\n _this._to(action.props, action.duration, action.ease);\r\n }\r\n else {\r\n _this._set(action.props);\r\n }\r\n break;\r\n case 'wait':\r\n _this._wait(action.duration);\r\n break;\r\n case 'call':\r\n _this._call(action.func, action.thisObj, action.params);\r\n break;\r\n }\r\n }\r\n else {\r\n if (_this.loop < 0) {\r\n _this._doStart();\r\n }\r\n else if (_this.loopCounting < _this.loop) {\r\n _this._doStart();\r\n }\r\n else {\r\n _this.status = STATUS.IDLE;\r\n }\r\n }\r\n };\r\n _this.target = target;\r\n _this.loop = options ? options.loop : 0;\r\n _this.autoPlay = options ? (options.hasOwnProperty('autoPlay') ? options.autoPlay : true) : true;\r\n _this.clazz = options ? options.clazz : null;\r\n _this.fields = options ? options.fields : null;\r\n _this.plugins = plugins;\r\n if (options && options.initFields && options.initFields.length > 0) {\r\n _this.initProps = _this.getInitProps(options.initFields);\r\n }\r\n return _this;\r\n }\r\n Tween.prototype.getInitProps = function (fields) {\r\n var e_2, _a;\r\n var props = {};\r\n try {\r\n for (var fields_1 = tslib_1.__values(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) {\r\n var field = fields_1_1.value;\r\n if (field in this.target) {\r\n props[field] = this.target[field];\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (fields_1_1 && !fields_1_1.done && (_a = fields_1.return)) _a.call(fields_1);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n return props;\r\n };\r\n Tween.prototype.set = function (props) {\r\n this.queue.push({ action: 'set', props: props });\r\n if (this.autoPlay) {\r\n this._start();\r\n }\r\n return this;\r\n };\r\n Tween.prototype.to = function (props, duration, ease) {\r\n this.queue.push({ action: 'to', props: props, duration: duration, ease: ease });\r\n if (this.autoPlay) {\r\n this._start();\r\n }\r\n return this;\r\n };\r\n Tween.prototype.wait = function (duration) {\r\n this.queue.push({ action: 'wait', duration: duration });\r\n if (this.autoPlay) {\r\n this._start();\r\n }\r\n return this;\r\n };\r\n Tween.prototype.call = function (func, thisObj, params) {\r\n this.queue.push({ action: 'call', func: func, thisObj: thisObj, params: params });\r\n if (this.autoPlay) {\r\n this._start();\r\n }\r\n return this;\r\n };\r\n Tween.prototype.play = function (override, delay, resetLoopCounting) {\r\n if (override === void 0) { override = false; }\r\n if (delay === void 0) { delay = 0; }\r\n if (resetLoopCounting === void 0) { resetLoopCounting = true; }\r\n if (override) {\r\n killTweens(this.target);\r\n }\r\n if (delay > 0) {\r\n setTimeout(this._doPlay, delay, resetLoopCounting);\r\n }\r\n else {\r\n this._doPlay(resetLoopCounting);\r\n }\r\n };\r\n Tween.prototype.stop = function () {\r\n this.status = STATUS.IDLE;\r\n this.target.cancelOnNextTick(this.onUpdate);\r\n };\r\n Tween.prototype._set = function (props) {\r\n this.status = STATUS.DO_SET;\r\n injectProp(this.target, props);\r\n this._doNextAction();\r\n };\r\n Tween.prototype._to = function (props, duration, ease) {\r\n this.status = STATUS.DO_TO;\r\n this.startTime = this.t;\r\n this.fromProps = {};\r\n for (var key in props) {\r\n this.fromProps[key] = this.target[key];\r\n }\r\n this.toProps = {};\r\n injectProp(this.toProps, props);\r\n this.ease = ease;\r\n this.duration = duration;\r\n };\r\n Tween.prototype._wait = function (duration) {\r\n this.status = STATUS.DO_WAIT;\r\n this.startTime = this.t;\r\n this.duration = duration;\r\n };\r\n Tween.prototype._call = function (func, thisObj, params) {\r\n this.status = STATUS.DO_CALL;\r\n func.apply(thisObj, params);\r\n this._doNextAction();\r\n };\r\n Tween.prototype._start = function (resetLoopCounting) {\r\n if (resetLoopCounting === void 0) { resetLoopCounting = true; }\r\n this.status = STATUS.PENDING;\r\n if (resetLoopCounting) {\r\n this.loopCounting = 0;\r\n }\r\n this.target.callOnNextTick(this._readyStart);\r\n this.target.callOnNextTick(this.onUpdate, false);\r\n };\r\n Tween.prototype._doStart = function () {\r\n if (this.status == STATUS.IDLE) {\r\n return;\r\n }\r\n this.step = 0;\r\n this.loopCounting++;\r\n if (this.loopCounting > 1 && this.initProps) {\r\n injectProp(this.target, this.initProps);\r\n }\r\n this._doNextAction();\r\n };\r\n ;\r\n return Tween;\r\n}(HashObject));\r\nexport { Tween };\r\n//# sourceMappingURL=Tween.js.map"}
{"map":"{\"version\":3,\"file\":\"EventEmitter.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/EventEmitter.ts\"],\"names\":[],\"mappings\":\"AAIA,YAAY,CAAC;AAEb,IAAI,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,EACtC,MAAM,GAAG,GAAG,CAAC;AAShB,SAAS,MAAM,KAAI,CAAC;AASpB,IAAI,MAAM,CAAC,MAAM,EAAE;IAClB,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAMvC,IAAI,CAAC,IAAI,MAAM,EAAE,CAAC,SAAS;QAAE,MAAM,GAAG,EAAE,CAAC;CACzC;AAWD,SAAS,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI;IAC5B,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACvB,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AAC,CAAC;iBAC1B;aACD;YAKD,IAAI,MAAM,CAAC,MAAM;gBAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;;gBAC3E,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;SAC3B;QAED,OAAO,IAAI,CAAC;IACb,CAAC;IASD,yCAAkB,GAAlB,UAAmB,KAAK;QACvB,IAAI,GAAG,CAAC;QAER,IAAI,KAAK,EAAE;YACV,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;YACtC,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;gBAAE,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;SAC7C;aAAM;YACN,IAAI,CAAC,OAAO,GAAG,IAAI,MAAM,EAAE,CAAC;YAC5B,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;SACtB;QAED,OAAO,IAAI,CAAC;IACb,CAAC;IACF,mBAAC;AAAD,CAAC,AA9OD,IA8OC\"}","code":"'use strict';\r\nvar has = Object.prototype.hasOwnProperty, prefix = '~';\r\nfunction Events() { }\r\nif (Object.create) {\r\n Events.prototype = Object.create(null);\r\n if (!new Events().__proto__)\r\n prefix = '';\r\n}\r\nfunction EE(fn, context, once) {\r\n this.fn = fn;\r\n this.context = context;\r\n this.once = once || false;\r\n}\r\nfunction addListener(emitter, event, fn, context, once) {\r\n if (typeof fn !== 'function') {\r\n throw new TypeError('The listener must be a function');\r\n }\r\n var listener = new EE(fn, context || emitter, once), evt = prefix ? prefix + event : event;\r\n if (!emitter._events[evt])\r\n emitter._events[evt] = listener, emitter._eventsCount++;\r\n else if (!emitter._events[evt].fn)\r\n emitter._events[evt].push(listener);\r\n else\r\n emitter._events[evt] = [emitter._events[evt], listener];\r\n return emitter;\r\n}\r\nfunction clearEvent(emitter, evt) {\r\n if (--emitter._eventsCount === 0)\r\n emitter._events = new Events();\r\n else\r\n delete emitter._events[evt];\r\n}\r\nvar EventEmitter = (function () {\r\n function EventEmitter() {\r\n this._events = new Events();\r\n this._eventsCount = 0;\r\n this.off = this.removeListener;\r\n this.addListener = this.on;\r\n }\r\n Object.defineProperty(EventEmitter, \"prefixed\", {\r\n get: function () {\r\n return prefix;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n EventEmitter.prototype.eventNames = function () {\r\n var names = [], events, name;\r\n if (this._eventsCount === 0)\r\n return names;\r\n for (name in (events = this._events)) {\r\n if (has.call(events, name))\r\n names.push(prefix ? name.slice(1) : name);\r\n }\r\n return names;\r\n };\r\n EventEmitter.prototype.listeners = function (event) {\r\n var evt = prefix ? prefix + event : event, handlers = this._events[evt];\r\n if (!handlers)\r\n return [];\r\n if (handlers.fn)\r\n return [handlers.fn];\r\n for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\r\n ee[i] = handlers[i].fn;\r\n }\r\n return ee;\r\n };\r\n EventEmitter.prototype.listenerCount = function (event) {\r\n var evt = prefix ? prefix + event : event, listeners = this._events[evt];\r\n if (!listeners)\r\n return 0;\r\n if (listeners.fn)\r\n return 1;\r\n return listeners.length;\r\n };\r\n EventEmitter.prototype.emit = function (event, a1, a2, a3, a4, a5) {\r\n var evt = prefix ? prefix + event : event;\r\n if (!this._events[evt])\r\n return false;\r\n var listeners = this._events[evt], len = arguments.length, args, i;\r\n if (listeners.fn) {\r\n if (listeners.once)\r\n this.removeListener(event, listeners.fn, undefined, true);\r\n switch (len) {\r\n case 1: return listeners.fn.call(listeners.context), true;\r\n case 2: return listeners.fn.call(listeners.context, a1), true;\r\n case 3: return listeners.fn.call(listeners.context, a1, a2), true;\r\n case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\r\n case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\r\n case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\r\n }\r\n for (i = 1, args = new Array(len - 1); i < len; i++) {\r\n args[i - 1] = arguments[i];\r\n }\r\n listeners.fn.apply(listeners.context, args);\r\n }\r\n else {\r\n var length = listeners.length, j;\r\n for (i = 0; i < length; i++) {\r\n if (listeners[i].once)\r\n this.removeListener(event, listeners[i].fn, undefined, true);\r\n switch (len) {\r\n case 1:\r\n listeners[i].fn.call(listeners[i].context);\r\n break;\r\n case 2:\r\n listeners[i].fn.call(listeners[i].context, a1);\r\n break;\r\n case 3:\r\n listeners[i].fn.call(listeners[i].context, a1, a2);\r\n break;\r\n case 4:\r\n listeners[i].fn.call(listeners[i].context, a1, a2, a3);\r\n break;\r\n default:\r\n if (!args)\r\n for (j = 1, args = new Array(len - 1); j < len; j++) {\r\n args[j - 1] = arguments[j];\r\n }\r\n listeners[i].fn.apply(listeners[i].context, args);\r\n }\r\n }\r\n }\r\n return true;\r\n };\r\n EventEmitter.prototype.on = function (event, fn, context) {\r\n return addListener(this, event, fn, context, false);\r\n };\r\n ;\r\n EventEmitter.prototype.once = function (event, fn, context) {\r\n return addListener(this, event, fn, context, true);\r\n };\r\n EventEmitter.prototype.removeListener = function (event, fn, context, once) {\r\n var evt = prefix ? prefix + event : event;\r\n if (!this._events[evt])\r\n return this;\r\n if (!fn) {\r\n clearEvent(this, evt);\r\n return this;\r\n }\r\n var listeners = this._events[evt];\r\n if (listeners.fn) {\r\n if (listeners.fn === fn &&\r\n (!once || listeners.once) &&\r\n (!context || listeners.context === context)) {\r\n clearEvent(this, evt);\r\n }\r\n }\r\n else {\r\n for (var i = 0, events = [], length = listeners.length; i < length; i++) {\r\n if (listeners[i].fn !== fn ||\r\n (once && !listeners[i].once) ||\r\n (context && listeners[i].context !== context)) {\r\n events.push(listeners[i]);\r\n }\r\n }\r\n if (events.length)\r\n this._events[evt] = events.length === 1 ? events[0] : events;\r\n else\r\n clearEvent(this, evt);\r\n }\r\n return this;\r\n };\r\n EventEmitter.prototype.removeAllListeners = function (event) {\r\n var evt;\r\n if (event) {\r\n evt = prefix ? prefix + event : event;\r\n if (this._events[evt])\r\n clearEvent(this, evt);\r\n }\r\n else {\r\n this._events = new Events();\r\n this._eventsCount = 0;\r\n }\r\n return this;\r\n };\r\n return EventEmitter;\r\n}());\r\nexport default EventEmitter;\r\n//# sourceMappingURL=EventEmitter.js.map"}
{"map":"{\"version\":3,\"file\":\"RenderContext.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../node_modules/scilla-core/src/core/context/RenderContext.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAGlD,IAAI,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC;AAEpC,IAAI,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAG,CAAC,CAAC;AAEjC,IAAI,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,iBAAiB,CAAC;AAE/D,IAAI,cAAc,CAAC;AASnB,MAAM,CAAC,IAAM,SAAS,GAAG;IACxB,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CAC3B,CAAC;AAMF,MAAM,UAAU,YAAY,CAAC,OAAiB;IAAjB,wBAAA,EAAA,YAAiB;IACtC,IAAA,uBAAM,EAAE,iCAAW,EAAE,mCAAY,EAAE,sBAA8B,EAA9B,mDAA8B,EAAE,6BAAwB,EAAxB,6CAAwB,CAAY;IAE9G,YAAY,GAAG,WAAW,CAAC;IAC3B,aAAa,GAAG,YAAY,CAAC;IAC7B,UAAU,GAAG,SAAS,CAAC;IACvB,iBAAiB,GAAG,gBAAgB,CAAC;IAErC,OAAO,GAAG,MAAM,CAAC;IACjB,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAElC,mBAAmB,EAAE,CAAC;AACvB,CAAC;AAKD,MAAM,UAAU,KAAK;IACpB,OAAO,CAAC,YAAY,CAAC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,CAAC,WAAW;YACzB,KAAK,GAAG,WAAW,CAAC;YACpB,IAAG,iBAAiB,EAAC;gBACpB,MAAM,GAAG,YAAY,CAAC;aACtB;iBAAI;gBACJ,MAAM,GAAG,eAAe,GAAG,MAAM,CAAC;aAClC;YACD,MAAM,GAAG,MAAM,CAAC;YAChB,MAAM;QACP,KAAK,SAAS,CAAC,YAAY;YAC1B,IAAG,iBAAiB,EAAC;gBACpB,KAAK,GAAG,WAAW,CAAC;aACpB;iBAAI;gBACJ,KAAK,GAAG,cAAc,GAAG,MAAM,CAAC;aAChC;YACD,MAAM,GAAG,YAAY,CAAC;YACtB,MAAM,GAAG,MAAM,CAAC;YAChB,MAAM;KACP;IAED,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IAE1C,IAAI,UAAU,GAAG,iBAAiB,CAAC,CAAC,CAAC,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC;IAC3E,IAAI,WAAW,GAAG,iBAAiB,CAAC,CAAC,CAAC,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC;IAE9E,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;IACtB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,UAAU,GAAG,IAAI,CAAC;IACxC,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,WAAW,GAAG,IAAI,CAAC;AAC3C,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { updateScaleMode } from \"./InteractContext\";\r\nvar _canvas, context, width, height;\r\nvar scaleX, scaleY, rotation = 0;\r\nvar _designWidth, _designHeight, _scaleMode, _modifyCanvasSize;\r\nvar shortcutCanvas;\r\nexport var ScaleMode = {\r\n SHOW_ALL: 'showAll',\r\n FIXED_WIDTH: 'fixedWidth',\r\n FIXED_HEIGHT: 'fixedHeight',\r\n};\r\nexport function setupContext(options) {\r\n if (options === void 0) { options = {}; }\r\n var canvas = options.canvas, designWidth = options.designWidth, designHeight = options.designHeight, _a = options.scaleMode, scaleMode = _a === void 0 ? ScaleMode.SHOW_ALL : _a, _b = options.modifyCanvasSize, modifyCanvasSize = _b === void 0 ? false : _b;\r\n _designWidth = designWidth;\r\n _designHeight = designHeight;\r\n _scaleMode = scaleMode;\r\n _modifyCanvasSize = modifyCanvasSize;\r\n _canvas = canvas;\r\n context = canvas.getContext('2d');\r\n updateScaleModeSelf();\r\n}\r\nexport function clear() {\r\n context.setTransform(1, 0, 0, 1, 0, 0);\r\n context.clearRect(0, 0, width, height);\r\n}\r\nexport function getContext() {\r\n return context;\r\n}\r\nexport function getStageSize() {\r\n return {\r\n width: width,\r\n height: height,\r\n };\r\n}\r\nexport function getStageScale() {\r\n return {\r\n x: scaleX,\r\n y: scaleY,\r\n };\r\n}\r\nexport function getStageCenter() {\r\n return {\r\n x: width / 2,\r\n y: height / 2,\r\n };\r\n}\r\nexport function createCanvas() {\r\n return document.createElement('canvas');\r\n}\r\nexport function shortcut(type, params) {\r\n if (type === void 0) { type = 0; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var targetImg, dataUrl, img;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (!(params.bounds || params.zoomToDom)) return [3, 3];\r\n dataUrl = _canvas.toDataURL('image/png');\r\n return [4, dataUrlToImage(dataUrl)];\r\n case 1:\r\n img = _a.sent();\r\n return [4, shortcutWithSize(img, type, params.imgType, params.quality, params.bounds, params.zoomToDom ? scaleX : 1)];\r\n case 2:\r\n targetImg = _a.sent();\r\n return [3, 4];\r\n case 3:\r\n targetImg = _canvas.toDataURL(params.imgType, params.quality);\r\n _a.label = 4;\r\n case 4: return [2, targetImg];\r\n }\r\n });\r\n });\r\n}\r\nfunction dataUrlToImage(dataUrl) {\r\n return new Promise(function (resolve, reject) {\r\n var image = new Image();\r\n image.onload = function () {\r\n resolve(image);\r\n };\r\n image.onerror = function (e) {\r\n reject(e);\r\n };\r\n image.src = dataUrl;\r\n });\r\n}\r\nfunction shortcutWithSize(img, type, imgType, quality, bounds, scale) {\r\n if (scale === void 0) { scale = 1; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var sx, sy, sw, sh, dw, dh, context, dataUrl, _a;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n if (!shortcutCanvas) {\r\n shortcutCanvas = createCanvas();\r\n }\r\n sx = bounds ? bounds.x || 0 : 0;\r\n sy = bounds ? bounds.y || 0 : 0;\r\n sw = bounds ? (bounds.width ? Math.min(bounds.width, width) : width) : width;\r\n sh = bounds ? (bounds.height ? Math.min(bounds.height, height) : height) : height;\r\n dw = sw * scale;\r\n dh = sh * scale;\r\n shortcutCanvas.width = dw;\r\n shortcutCanvas.height = dh;\r\n context = shortcutCanvas.getContext('2d');\r\n context.drawImage(img, sx, sy, sw, sh, 0, 0, dw, dh);\r\n dataUrl = shortcutCanvas.toDataURL('image/' + imgType, quality);\r\n _a = type;\r\n switch (_a) {\r\n case 0: return [3, 1];\r\n case 1: return [3, 3];\r\n }\r\n return [3, 4];\r\n case 1: return [4, dataUrlToImage(dataUrl)];\r\n case 2: return [2, _b.sent()];\r\n case 3: return [2, dataUrl];\r\n case 4: return [2];\r\n }\r\n });\r\n });\r\n}\r\nfunction updateScaleModeSelf() {\r\n var parent = _canvas.parentElement;\r\n var containerWidth = parent.clientWidth;\r\n var containerHeight = parent.clientHeight;\r\n var designWidth = _designWidth || containerWidth;\r\n var designHeight = _designHeight || containerHeight;\r\n scaleX = containerWidth / designWidth;\r\n scaleY = containerHeight / designHeight;\r\n switch (_scaleMode) {\r\n case ScaleMode.SHOW_ALL:\r\n width = designWidth;\r\n height = designHeight;\r\n break;\r\n case ScaleMode.FIXED_WIDTH:\r\n width = designWidth;\r\n if (_modifyCanvasSize) {\r\n height = designHeight;\r\n }\r\n else {\r\n height = containerHeight / scaleX;\r\n }\r\n scaleY = scaleX;\r\n break;\r\n case ScaleMode.FIXED_HEIGHT:\r\n if (_modifyCanvasSize) {\r\n width = designWidth;\r\n }\r\n else {\r\n width = containerWidth / scaleY;\r\n }\r\n height = designHeight;\r\n scaleX = scaleY;\r\n break;\r\n }\r\n updateScaleMode(scaleX, scaleY, rotation);\r\n var styleWidth = _modifyCanvasSize ? designWidth * scaleX : containerWidth;\r\n var styleHeight = _modifyCanvasSize ? designHeight * scaleY : containerHeight;\r\n _canvas.width = width;\r\n _canvas.height = height;\r\n _canvas.style.display = 'block';\r\n _canvas.style.width = styleWidth + 'px';\r\n _canvas.style.height = styleHeight + 'px';\r\n}\r\n//# sourceMappingURL=RenderContext.js.map"}
{"map":"{\"version\":3,\"file\":\"manager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/manager.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,YAAY,IAAI,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAC,KAAK,EAAE,SAAS,EAAE,YAAY,IAAI,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAC7F,OAAO,yBAAyB,CAAC;AAMjC,IAAI,OAAO,GAAQ;IAClB,GAAG,EAAE,EAAE;IACP,WAAW,EAAE,GAAG;IAChB,YAAY,EAAE,IAAI;IAClB,SAAS,EAAE,SAAS,CAAC,WAAW;CAChC,CAAC;AAEF,IAAI,IAAY,CAAC;AAEjB,IAAI,MAAM,GAAG,CAAC,EAAE,aAAa,GAAG,CAAC,CAAC;AAClC,IAAI,OAAO,EAAE,MAAM,CAAC;AACpB,IAAI,OAAO,GAAG,CAAC,CAAC;AAMhB,MAAM,UAAU,KA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,KAAK;IACzB,iBAAiB,CAAC,IAAI,EAAE,UAAU,KAAK;QACtC,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAA;AACH,CAAC;AAMD,SAAS,UAAU,CAAC,KAAK;IACxB,iBAAiB,CAAC,IAAI,EAAE,UAAU,KAAK;QACtC,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAA;AACH,CAAC\"}","code":"import { Entity, traverse, traversePostorder } from \"./Entity\";\r\nimport { injectProp } from \"../tools/utils\";\r\nimport { setupContext as setupInteractContext } from \"./context/InteractContext\";\r\nimport { clear, ScaleMode, setupContext as setupRenderContext } from \"./context/RenderContext\";\r\nimport './requestAnimationFrame';\r\nvar options = {\r\n fps: 60,\r\n designWidth: 750,\r\n designHeight: 1334,\r\n scaleMode: ScaleMode.FIXED_WIDTH,\r\n};\r\nvar root;\r\nvar _flush = 0, _currentFlush = 0;\r\nvar tsStart, tsLast;\r\nvar lastFPS = 0;\r\nexport function setup(_options) {\r\n injectProp(options, _options);\r\n var canvas = options.canvas, designWidth = options.designWidth, designHeight = options.designHeight, scaleMode = options.scaleMode, modifyCanvasSize = options.modifyCanvasSize;\r\n var canvasElement = typeof canvas == 'object' ? canvas : document.getElementById(canvas);\r\n setupInteractContext({\r\n canvas: canvasElement,\r\n touchHandler: {\r\n onTouchBegin: onTouchBegin,\r\n onTouchMove: onTouchMove,\r\n onTouchEnd: onTouchEnd,\r\n }\r\n });\r\n setupRenderContext({\r\n canvas: canvasElement,\r\n designWidth: designWidth,\r\n designHeight: designHeight,\r\n scaleMode: scaleMode,\r\n modifyCanvasSize: modifyCanvasSize,\r\n });\r\n root = new Entity('root');\r\n root._restrict();\r\n}\r\nexport function start() {\r\n root.enabled = true;\r\n tsStart = Date.now();\r\n startTick();\r\n}\r\nexport function pause() {\r\n root.enabled = false;\r\n stopTick();\r\n}\r\nexport function getRoot() {\r\n return root;\r\n}\r\nexport function getFPS() {\r\n return lastFPS;\r\n}\r\nfunction startTick() {\r\n _flush = 60 / options.fps - 1 >> 0;\r\n if (_flush < 0) {\r\n _flush = 0;\r\n }\r\n requestAnimationFrame(flush);\r\n}\r\nfunction stopTick() {\r\n}\r\nvar tsLast2;\r\nfunction flush(tsNow) {\r\n if (_flush == 0) {\r\n onFrameTick(tsNow);\r\n }\r\n else {\r\n if (_currentFlush == 0) {\r\n onFrameTick(tsNow);\r\n _currentFlush = _flush;\r\n }\r\n else {\r\n _currentFlush--;\r\n }\r\n }\r\n requestAnimationFrame(flush);\r\n}\r\nfunction onFrameTick(tsNow) {\r\n clear();\r\n var tsNow2 = Date.now();\r\n lastFPS = Math.floor(1000 / (tsNow - tsLast));\r\n tsLast = tsNow;\r\n tsLast2 = tsNow2;\r\n var ts = tsNow - tsStart;\r\n traverse(root, function (child) {\r\n if (!child.isFree && child.enabled) {\r\n child.onUpdate(ts);\r\n }\r\n else {\r\n return true;\r\n }\r\n }, -1, true, function (current) {\r\n current.afterUpdate();\r\n });\r\n}\r\nfunction onTouchBegin(event) {\r\n traversePostorder(root, function (child) {\r\n return child.onInteract(0, event);\r\n });\r\n}\r\nfunction onTouchMove(event) {\r\n traversePostorder(root, function (child) {\r\n return child.onInteract(1, event);\r\n });\r\n}\r\nfunction onTouchEnd(event) {\r\n traversePostorder(root, function (child) {\r\n return child.onInteract(2, event);\r\n });\r\n}\r\n//# sourceMappingURL=manager.js.map"}
{"map":"{\"version\":3,\"file\":\"Bounds.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Bounds.ts\"],\"names\":[],\"mappings\":\"AAQA;IAMC,gBAAY,CAAK,EAAE,CAAK,EAAE,KAAS,EAAE,MAAU;QAAnC,kBAAA,EAAA,KAAK;QAAE,kBAAA,EAAA,KAAK;QAAE,sBAAA,EAAA,SAAS;QAAE,uBAAA,EAAA,UAAU;QAC9C,IAAI,CAAC,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IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,MAAM,CAAC;IACxE,CAAC;IAED,yBAAQ,GAAR;QACO,IAAA,SAA4B,EAA3B,QAAC,EAAE,QAAC,EAAE,gBAAK,EAAE,kBAAc,CAAC;QACnC,OAAO,KAAK,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,UAAU,GAAG,KAAK,GAAG,WAAW,GAAG,MAAM,GAAG,GAAG,CAAC;IACjF,CAAC;IACF,aAAC;AAAD,CAAC,AAjHD,IAiHC\"}","code":"var Bounds = (function () {\r\n function Bounds(x, y, width, height) {\r\n if (x === void 0) { x = 0; }\r\n if (y === void 0) { y = 0; }\r\n if (width === void 0) { width = 0; }\r\n if (height === void 0) { height = 0; }\r\n this.x = x;\r\n this.y = y;\r\n this.width = width;\r\n this.height = height;\r\n }\r\n Object.defineProperty(Bounds.prototype, \"left\", {\r\n get: function () {\r\n return this.x;\r\n },\r\n set: function (v) {\r\n this.x = v;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Bounds.prototype, \"top\", {\r\n get: function () {\r\n return this.y;\r\n },\r\n set: function (v) {\r\n this.y = v;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Bounds.prototype, \"right\", {\r\n get: function () {\r\n return this.x + this.width;\r\n },\r\n set: function (v) {\r\n this.width = v - this.x;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Bounds.prototype, \"bottom\", {\r\n get: function () {\r\n return this.y + this.height;\r\n },\r\n set: function (v) {\r\n this.height = v - this.y;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Bounds.prototype.contains = function (x, y) {\r\n return this.x <= x &&\r\n this.x + this.width >= x &&\r\n this.y <= y &&\r\n this.y + this.height >= y;\r\n };\r\n Bounds.prototype.setTo = function (x, y, width, height) {\r\n this.x = x;\r\n this.y = y;\r\n this.width = width;\r\n this.height = height;\r\n };\r\n Bounds.prototype.copyFrom = function (target) {\r\n this.x = target.x;\r\n this.y = target.y;\r\n this.width = target.width;\r\n this.height = target.height;\r\n };\r\n Bounds.prototype.clone = function () {\r\n return new Bounds(this.x, this.y, this.width, this.height);\r\n };\r\n Bounds.prototype.inflate = function (dx, dy) {\r\n this.x -= dx;\r\n this.width += 2 * dx;\r\n this.y -= dy;\r\n this.height += 2 * dy;\r\n };\r\n Bounds.prototype.isEmpty = function () {\r\n return this.width <= 0 || this.height <= 0;\r\n };\r\n Bounds.prototype.setEmpty = function () {\r\n this.x = 0;\r\n this.y = 0;\r\n this.width = 0;\r\n this.height = 0;\r\n };\r\n Bounds.prototype.intersects = function (toIntersect) {\r\n return Math.max(this.x, toIntersect.x) <= Math.min(this.right, toIntersect.right)\r\n && Math.max(this.y, toIntersect.y) <= Math.min(this.bottom, toIntersect.bottom);\r\n };\r\n Bounds.prototype.containsBounds = function (bounds) {\r\n var r1 = bounds.x + bounds.width;\r\n var b1 = bounds.y + bounds.height;\r\n var r2 = this.x + this.width;\r\n var b2 = this.y + this.height;\r\n return (bounds.x >= this.x) && (bounds.x < r2) && (bounds.y >= this.y) && (bounds.y < b2) && (r1 > this.x) && (r1 <= r2) && (b1 > this.y) && (b1 <= b2);\r\n };\r\n Bounds.prototype.equals = function (toCompare) {\r\n if (this === toCompare) {\r\n return true;\r\n }\r\n return this.x === toCompare.x && this.y === toCompare.y\r\n && this.width === toCompare.width && this.height === toCompare.height;\r\n };\r\n Bounds.prototype.toString = function () {\r\n var _a = this, x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n return \"(x=\" + x + \", y=\" + y + \", width=\" + width + \", height=\" + height + \")\";\r\n };\r\n return Bounds;\r\n}());\r\nexport default Bounds;\r\n//# sourceMappingURL=Bounds.js.map"}
{"map":"{\"version\":3,\"file\":\"Size.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Size.ts\"],\"names\":[],\"mappings\":\";AAGA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAKtD;IAQC,cAAY,KAAW,EAAE,MAAY;QAAzB,sBAAA,EAAA,WAAW;QAAE,uBAAA,EAAA,YAAY;QACpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,qBAAM,GAAN;QACC,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;IACnB,CAAC;IAED,sBAAO,GAAP;IAEA,CAAC;IAED,kBAAG,GAAH,UAAI,KAAM,EAAE,MAAO;QAClB,IAAI,KAAK,KAAK,SAAS,EAAE;YACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACnB;QAED,IAAI,MAAM,KAAK,SAAS,EAAE;YACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;SACrB;IACF,CAAC;IAED,oBAAK,GAAL;QACC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED,uBAAQ,GAAR,UAAS,MAAM;QACd,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,uBAAQ,GAAR,UAAS,KAAK,EAAE,GAAG,EAAE,QAAQ;QAC5B,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtD,CAAC;IAzCD;QADC,iBAAiB;uCACJ;IAEd;QADC,iBAAiB;wCACH;IAwChB,WAAC;CAAA,AA5CD,IA4CC;eA5CoB,IAAI\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { dirtyFieldTrigger } from \"../tools/decorators\";\r\nvar Size = (function () {\r\n function Size(width, height) {\r\n if (width === void 0) { width = NaN; }\r\n if (height === void 0) { height = NaN; }\r\n this.width = width;\r\n this.height = height;\r\n }\r\n Size.prototype.setNaN = function () {\r\n this.width = NaN;\r\n this.height = NaN;\r\n };\r\n Size.prototype.isEmpty = function () {\r\n };\r\n Size.prototype.set = function (width, height) {\r\n if (width !== undefined) {\r\n this.width = width;\r\n }\r\n if (height !== undefined) {\r\n this.height = height;\r\n }\r\n };\r\n Size.prototype.clone = function () {\r\n return new Size(this.width, this.height);\r\n };\r\n Size.prototype.copyFrom = function (target) {\r\n this.width = target.width;\r\n this.height = target.height;\r\n };\r\n Size.prototype.onModify = function (value, key, oldValue) {\r\n this.onChange && this.onChange(value, key, oldValue);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Size.prototype, \"width\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Size.prototype, \"height\", void 0);\r\n return Size;\r\n}());\r\nexport default Size;\r\n//# sourceMappingURL=Size.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,yBAAyB,CAAC;AACnI,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAC,OAAO,IAAI,OAAO,EAAE,aAAa,EAAC,MAAM,WAAW,CAAA;AAC3D,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA\"}","code":"export { ScillaComponent } from \"./ScillaComponent\";\r\nexport { Entity } from './Entity';\r\nexport { Scene } from './Scene';\r\nexport { ScillaEvent } from './ScillaEvent';\r\nexport { getContext, createCanvas, getStageSize, getStageScale, getStageCenter, shortcut, ScaleMode } from './context/RenderContext';\r\nexport * from './manager';\r\nexport { default as Texture, createTexture } from './Texture';\r\nexport * from './Sheet';\r\nexport * from './FrameAnimation';\r\n//# sourceMappingURL=index.js.map"}
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:3001",
"webRoot": "${workspaceFolder}"
}
]
}
\ No newline at end of file
No preview for this file type
...@@ -4,15 +4,6 @@ ...@@ -4,15 +4,6 @@
"components": [ "components": [
{ {
"script": "components/base/Transform" "script": "components/base/Transform"
},
{
"script": "components/other/CameraController",
"properties": {
"viewportAnchor": {
"x": 0.5,
"y": 0.5
}
}
} }
], ],
"children": [ "children": [
...@@ -22,30 +13,62 @@ ...@@ -22,30 +13,62 @@
"components": [ "components": [
{ {
"script": "components/base/Transform", "script": "components/base/Transform",
"properties": {} "properties": {
"pivot": {
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
}, },
{ {
"script": "components/renderer/TextureRenderer", "script": "components/renderer/TextureRenderer",
"properties": { "properties": {
"texture": "res|69227bac-6549-4561-87ba-cc9ca243882d" "texture": "res|69227bac-6549-4561-87ba-cc9ca243882d"
} }
},
{
"script": "./scripts/MainController",
"properties": {}
},
{
"script": "components/other/CameraController",
"properties": {
"viewportAnchor": {
"x": 0.5,
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
} }
], ],
"children": [ "children": [
{ {
"name": "Button", "name": "mainbottom",
"components": [ "components": [
{ {
"script": "components/base/Transform", "script": "components/base/Transform",
"properties": {} "properties": {}
}, },
{ {
"script": "components/renderer/RectRenderer", "script": "components/renderer/TextureRenderer",
"properties": { "properties": {
"fillColor": "rgba(0, 192, 255, 1)", "texture": "res|53b2bf73-1ee6-43ba-af3f-2af10b432ffa"
"width": 150, }
"height": 60, }
"cornerRadius": 10 ],
"uuid": "6f5efe1f-ee26-4741-b447-4d4ca9a818af"
},
{
"name": "withdrawBtn",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": -297,
"y": -762,
"_type_": "scilla/support/Vector2D"
}
} }
}, },
{ {
...@@ -56,7 +79,260 @@ ...@@ -56,7 +79,260 @@
}, },
{ {
"script": "components/ui/Button", "script": "components/ui/Button",
"properties": {} "properties": {
"upRes": "res|36a7e2ae-8426-46d3-8d63-64045ad7527a",
"downRes": "res|36a7e2ae-8426-46d3-8d63-64045ad7527a",
"onClick": [
{
"entity": "entity|20181212032053",
"component": 2,
"method": "onWithdrawBtnTap"
}
]
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|36a7e2ae-8426-46d3-8d63-64045ad7527a"
}
}
],
"children": [
{
"name": "label",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "",
"fillColor": "rgba(255, 255, 255, 1)"
}
}
],
"uuid": "d31f7998-1c8c-4c19-bc71-5bc0a270a648"
}
],
"uuid": "284cdcb2-7830-4d38-b984-ca6bc71a15d7"
},
{
"name": "recordBtn",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 296.5,
"y": -762,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"upRes": "res|bec9f772-1392-4b9c-83dc-456a97885f9f",
"downRes": "res|bec9f772-1392-4b9c-83dc-456a97885f9f",
"onClick": [
{
"entity": "entity|20181212032053",
"component": 2,
"method": "onRecordBtnTap"
}
]
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|bec9f772-1392-4b9c-83dc-456a97885f9f"
}
}
],
"children": [
{
"name": "label",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "",
"fillColor": "rgba(255, 255, 255, 1)"
}
}
],
"uuid": "04a34126-7ef0-43a3-a254-b053bde5a9a8"
}
],
"uuid": "975f0da0-857f-4289-b88a-edfdf2726383"
},
{
"name": "ruleBtn",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 296.5,
"y": -702,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"upRes": "res|2257099a-016f-4fb8-9049-47ee93da4e0f",
"downRes": "res|2257099a-016f-4fb8-9049-47ee93da4e0f",
"onClick": [
{
"entity": "entity|20181212032053",
"component": 2,
"method": "onRuleBtnTap"
}
]
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|2257099a-016f-4fb8-9049-47ee93da4e0f"
}
}
],
"children": [
{
"name": "label",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "",
"fillColor": "rgba(255, 255, 255, 1)"
}
}
],
"uuid": "fea9fcf6-e9dd-4964-a301-8ebd9dc22911"
}
],
"uuid": "2d627639-ca10-4414-a9ca-a29bfaaef46c"
},
{
"name": "eggsBtn",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"y": 100,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"onClick": [
{
"entity": "entity|20181212032053",
"component": 2,
"method": "onEggsBtnTap"
}
],
"disabledRes": "res|19cc0f39-3a5d-4e06-a4a3-9a722b69b52c",
"downRes": "res|19cc0f39-3a5d-4e06-a4a3-9a722b69b52c",
"upRes": "res|19cc0f39-3a5d-4e06-a4a3-9a722b69b52c"
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|19cc0f39-3a5d-4e06-a4a3-9a722b69b52c"
}
}
],
"children": [
{
"name": "label",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "",
"fillColor": "rgba(255, 255, 255, 1)"
}
}
],
"uuid": "e142df49-43dd-4cc7-9cdd-ed0583a7aa59"
}
],
"uuid": "5c2e75f3-83cd-440c-bc0d-ef18149bd30e"
},
{
"name": "tasksBtn",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"y": 400,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"downRes": "res|1029947c-ac65-49c5-a2f0-0cccba73cc9f",
"upRes": "res|1029947c-ac65-49c5-a2f0-0cccba73cc9f",
"disabledRes": "res|1029947c-ac65-49c5-a2f0-0cccba73cc9f"
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|1029947c-ac65-49c5-a2f0-0cccba73cc9f"
}
} }
], ],
"children": [ "children": [
...@@ -70,36 +346,324 @@ ...@@ -70,36 +346,324 @@
{ {
"script": "components/renderer/TextRenderer", "script": "components/renderer/TextRenderer",
"properties": { "properties": {
"text": "button", "text": "",
"fillColor": "rgba(255, 255, 255, 1)" "fillColor": "rgba(255, 255, 255, 1)"
} }
} }
], ],
"uuid": "b902e1d9-c1a1-4008-8d3a-5696ceee59a7" "uuid": "27b61e9c-8fd0-451c-8c59-9896a148ec21"
}
],
"uuid": "f5333e72-ad59-4a82-8390-770d601202b4"
},
{
"name": "addTimesBtnTip",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|ee82006d-123d-4463-8cd4-4c9904aaa65c"
}
}
],
"uuid": "7df5486b-06ac-4e55-a5f4-e06433530fe2"
},
{
"name": "sliderbg",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|9e6302b3-cde4-4a25-96b9-6b74baab93b5"
}
}
],
"uuid": "6bb74bb8-11f9-414c-afcb-20a32808a0cf",
"children": []
},
{
"name": "rulePanel",
"components": [
{
"script": "components/base/Transform",
"properties": {
"alpha": 0
}
}
],
"uuid": "702054c6-f4db-4b72-9b71-d2016408e511",
"children": [
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|32117cd8-e67c-4875-89de-e10368409a6d"
}
}
],
"uuid": "88ce1e4f-c008-4970-a963-b58105003e95"
},
{
"name": "Label",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "hello"
}
}
],
"uuid": "6553edc4-39c3-4a8d-8d56-b7efe591ab70"
}
]
},
{
"name": "mainwrapper",
"components": [
{
"script": "components/base/Transform",
"properties": {}
} }
], ],
"uuid": "f5f271ae-4af2-4e4d-9398-00f366bec620" "uuid": "0961456e-d52a-447c-a9f2-d5a9d516a610",
"children": [
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|e7fb8664-3d0e-46aa-978b-08d5a53f377a"
}
}
],
"uuid": "9d0590bf-f5c8-4dd5-9b75-332f226a9845"
},
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|663c6d8e-a2f6-4022-a19f-00be63f9debc"
}
}
],
"uuid": "14b49110-4d87-412e-b5d7-02c2798688dd"
},
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|86fe7352-2826-4219-9d52-11b5162a2a6e"
}
}
],
"uuid": "d1c872c3-880f-4390-910a-dd9f785c7e68"
},
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|5188c337-79fa-4b48-930e-7bdc81f4fe90"
}
}
],
"uuid": "684bd63a-1475-49d6-9f7c-22058fcd9de9"
}
]
}, },
{ {
"name": "helloPanel", "name": "countTxtWrapper",
"components": [ "components": [
{ {
"script": "components/base/Transform", "script": "components/base/Transform",
"properties": {} "properties": {}
} }
], ],
"uuid": "702054c6-f4db-4b72-9b71-d2016408e511" "uuid": "d1acd99a-da62-4eb2-a2b8-7885ff080de6"
},
{
"name": "progress",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": -292,
"y": -273,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|561d9875-a3c1-47c9-90a2-017b1f40c76b"
}
}
],
"uuid": "90e21483-3c35-43f7-b1e7-cc0fd3038f26",
"children": [
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|8534d43e-c1b0-42da-83af-027b43a88447"
}
}
],
"uuid": "e0685657-132d-429e-b728-cc342f6d44f7"
}
]
} }
] ]
} }
] ]
}, },
"entity-cache": [], "entity-cache": [
"20181212032053",
"20181212032053",
"20181212032053",
"20181212032053"
],
"resource-groups": { "resource-groups": {
"preload": [ "preload": [
{ {
"uuid": "69227bac-6549-4561-87ba-cc9ca243882d", "uuid": "69227bac-6549-4561-87ba-cc9ca243882d",
"url": "bg/bg.jpg" "url": "bg/bg.jpg"
},
{
"uuid": "6fe5aa11-4868-46e0-9619-6c515ec538f7",
"url": "sheets/main.sht-disperse",
"config": {
"textures": [
{
"name": "addTimesBtn",
"uuid": "1029947c-ac65-49c5-a2f0-0cccba73cc9f"
},
{
"name": "addTimesBtnTips",
"uuid": "ee82006d-123d-4463-8cd4-4c9904aaa65c"
},
{
"name": "bottom",
"uuid": "e7fb8664-3d0e-46aa-978b-08d5a53f377a"
},
{
"name": "countTxtBg",
"uuid": "33e58a7f-3ce4-4307-9642-cec604c74cb8"
},
{
"name": "eggListBtn",
"uuid": "19cc0f39-3a5d-4e06-a4a3-9a722b69b52c"
},
{
"name": "glass",
"uuid": "c6af92fe-15a7-4d1c-b864-70bde2cfd7c5"
},
{
"name": "main_bottom_bg",
"uuid": "53b2bf73-1ee6-43ba-af3f-2af10b432ffa"
},
{
"name": "middle",
"uuid": "663c6d8e-a2f6-4022-a19f-00be63f9debc"
},
{
"name": "progressbar_inner",
"uuid": "8534d43e-c1b0-42da-83af-027b43a88447"
},
{
"name": "progressbar",
"uuid": "561d9875-a3c1-47c9-90a2-017b1f40c76b"
},
{
"name": "recordBtn",
"uuid": "bec9f772-1392-4b9c-83dc-456a97885f9f"
},
{
"name": "ruleBtn",
"uuid": "2257099a-016f-4fb8-9049-47ee93da4e0f"
},
{
"name": "shadow",
"uuid": "b0d5515e-187b-4a5b-ad7a-97c1343bb205"
},
{
"name": "sliderbg",
"uuid": "9e6302b3-cde4-4a25-96b9-6b74baab93b5"
},
{
"name": "title",
"uuid": "86fe7352-2826-4219-9d52-11b5162a2a6e"
},
{
"name": "title2",
"uuid": "5188c337-79fa-4b48-930e-7bdc81f4fe90"
},
{
"name": "withdrawBtn",
"uuid": "36a7e2ae-8426-46d3-8d63-64045ad7527a"
}
]
}
},
{
"uuid": "d79b80f9-cd09-46a4-9167-d712ba3ecdbe",
"url": "sheets/rule.sht-disperse",
"config": {
"textures": [
{
"name": "ruleBg",
"uuid": "32117cd8-e67c-4875-89de-e10368409a6d"
}
]
}
} }
] ]
} }
......
{"ver":"1.0.1","uuid":"6e749926-b1a7-4165-8953-04b0e29f0a66","subMetas":{},"isGroup":true}
import { ScillaComponent } from 'scilla-core/src';
export default class MainController extends ScillaComponent {
constructor() {
super();
// DataManager.ins.customCfgData = window['CFG'];
// NetManager.ins.doJoin(() => { });
}
onWithdrawBtnTap() {
alert('onWithdrawBtnTap')
}
onRecordBtnTap() {
alert('onRecordBtnTap')
}
onRuleBtnTap() {
alert('onRuleBtnTap')
}
onTasksBtnTap() {
alert('onTasksBtnTap')
}
onEggsBtnTap() {
alert('onEggsBtnTap')
}
}
\ No newline at end of file
{"ver":"1.0.1","uuid":"72184411-29a9-4157-a8a5-206a6af1cba6","subMetas":{},"type":"script"}
No preview for this file type
{"ver":"1.0.1","uuid":"d79b80f9-cd09-46a4-9167-d712ba3ecdbe","subMetas":{"ruleBg":{"ver":"1.0.1","uuid":"32117cd8-e67c-4875-89de-e10368409a6d","rawTextureUuid":"d79b80f9-cd09-46a4-9167-d712ba3ecdbe","type":"texture"}},"type":"sheet"}
...@@ -33,14 +33,80 @@ ...@@ -33,14 +33,80 @@
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
} }
function __decorate(decorators, target, key, desc) { function __awaiter(thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics$1 = function(d, b) {
extendStatics$1 = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics$1(d, b);
};
function __extends$1(d, b) {
extendStatics$1(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
function __decorate$1(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r; return c > 3 && r && Object.defineProperty(target, key, r), r;
} }
function __awaiter(thisArg, _arguments, P, generator) { function __awaiter$1(thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) { return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
...@@ -49,7 +115,7 @@ ...@@ -49,7 +115,7 @@
}); });
} }
function __generator(thisArg, body) { function __generator$1(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; } function verb(n) { return function (v) { return step([n, v]); }; }
...@@ -77,7 +143,7 @@ ...@@ -77,7 +143,7 @@
} }
} }
function __values(o) { function __values$1(o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o); if (m) return m.call(o);
return { return {
...@@ -88,7 +154,7 @@ ...@@ -88,7 +154,7 @@
}; };
} }
function __read(o, n) { function __read$1(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator]; var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o; if (!m) return o;
var i = m.call(o), r, ar = [], e; var i = m.call(o), r, ar = [], e;
...@@ -105,9 +171,9 @@ ...@@ -105,9 +171,9 @@
return ar; return ar;
} }
function __spread() { function __spread$1() {
for (var ar = [], i = 0; i < arguments.length; i++) for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i])); ar = ar.concat(__read$1(arguments[i]));
return ar; return ar;
} }
...@@ -169,7 +235,7 @@ ...@@ -169,7 +235,7 @@
'_dealGlobalTouchEnd', '_dealGlobalTouchEnd',
]; ];
var ScillaComponent = (function (_super) { var ScillaComponent = (function (_super) {
__extends(ScillaComponent, _super); __extends$1(ScillaComponent, _super);
function ScillaComponent() { function ScillaComponent() {
var _this = _super !== null && _super.apply(this, arguments) || this; var _this = _super !== null && _super.apply(this, arguments) || this;
_this.delayCallbacks = []; _this.delayCallbacks = [];
...@@ -234,7 +300,7 @@ ...@@ -234,7 +300,7 @@
callback.call(this, t); callback.call(this, t);
} }
try { try {
for (var removed_1 = __values(removed), removed_1_1 = removed_1.next(); !removed_1_1.done; removed_1_1 = removed_1.next()) { for (var removed_1 = __values$1(removed), removed_1_1 = removed_1.next(); !removed_1_1.done; removed_1_1 = removed_1.next()) {
var item = removed_1_1.value; var item = removed_1_1.value;
this.delayCallbacks.splice(item, 1); this.delayCallbacks.splice(item, 1);
} }
...@@ -261,7 +327,7 @@ ...@@ -261,7 +327,7 @@
var e_2, _a; var e_2, _a;
var result; var result;
try { try {
for (var _b = __values(this.delayCallbacks), _c = _b.next(); !_c.done; _c = _b.next()) { for (var _b = __values$1(this.delayCallbacks), _c = _b.next(); !_c.done; _c = _b.next()) {
var item = _c.value; var item = _c.value;
if (item.callback == callback) { if (item.callback == callback) {
result = item; result = item;
...@@ -330,7 +396,7 @@ ...@@ -330,7 +396,7 @@
params[_i - 2] = arguments[_i]; params[_i - 2] = arguments[_i];
} }
var _a; var _a;
(_a = this.entity).broadcast.apply(_a, __spread([method, level], params)); (_a = this.entity).broadcast.apply(_a, __spread$1([method, level], params));
}; };
ScillaComponent.prototype.bubbling = function (method) { ScillaComponent.prototype.bubbling = function (method) {
var params = []; var params = [];
...@@ -338,7 +404,7 @@ ...@@ -338,7 +404,7 @@
params[_i - 1] = arguments[_i]; params[_i - 1] = arguments[_i];
} }
var _a; var _a;
(_a = this.entity).bubbling.apply(_a, __spread([method], params)); (_a = this.entity).bubbling.apply(_a, __spread$1([method], params));
}; };
return ScillaComponent; return ScillaComponent;
}(HashObject)); }(HashObject));
...@@ -351,20 +417,18 @@ ...@@ -351,20 +417,18 @@
params[_i - 5] = arguments[_i]; params[_i - 5] = arguments[_i];
} }
var e_1, _a; var e_1, _a;
var interrupt;
if (includeSelf) { if (includeSelf) {
hitChild.apply(void 0, __spread([target], params)); hitChild.apply(void 0, __spread$1([target], params));
} }
if (level !== 0) { if (level !== 0) {
try { try {
for (var _b = __values(target.children), _c = _b.next(); !_c.done; _c = _b.next()) { for (var _b = __values$1(target.children), _c = _b.next(); !_c.done; _c = _b.next()) {
var child = _c.value; var child = _c.value;
if (hitChild.apply(void 0, __spread([child], params))) { if (hitChild.apply(void 0, __spread$1([child], params))) {
interrupt = true;
continue; continue;
} }
if (child.children.length > 0) { if (child.children.length > 0) {
traverse.apply(void 0, __spread([child, hitChild, level - 1, false, fullCallback], params)); traverse.apply(void 0, __spread$1([child, hitChild, level - 1, false, fullCallback], params));
} }
} }
} }
...@@ -376,7 +440,7 @@ ...@@ -376,7 +440,7 @@
finally { if (e_1) throw e_1.error; } finally { if (e_1) throw e_1.error; }
} }
} }
!interrupt && fullCallback && fullCallback(target); fullCallback && fullCallback(target);
} }
function traversePostorder(target, hitChild, level, includeSelf, fullCallback) { function traversePostorder(target, hitChild, level, includeSelf, fullCallback) {
if (level === void 0) { level = -1; } if (level === void 0) { level = -1; }
...@@ -388,16 +452,16 @@ ...@@ -388,16 +452,16 @@
if (level !== 0) { if (level !== 0) {
for (var i = target.children.length - 1; i >= 0; i--) { for (var i = target.children.length - 1; i >= 0; i--) {
var child = target.children[i]; var child = target.children[i];
if (traversePostorder.apply(void 0, __spread([child, hitChild, level - 1, false, fullCallback], params))) { if (traversePostorder.apply(void 0, __spread$1([child, hitChild, level - 1, false, fullCallback], params))) {
return true; return true;
} }
if (hitChild.apply(void 0, __spread([child], params))) { if (hitChild.apply(void 0, __spread$1([child], params))) {
return true; return true;
} }
} }
} }
if (includeSelf) { if (includeSelf) {
hitChild.apply(void 0, __spread([target], params)); hitChild.apply(void 0, __spread$1([target], params));
} }
fullCallback && fullCallback(target); fullCallback && fullCallback(target);
} }
...@@ -408,17 +472,17 @@ ...@@ -408,17 +472,17 @@
params[_i - 3] = arguments[_i]; params[_i - 3] = arguments[_i];
} }
if (includeSelf) { if (includeSelf) {
hitParent.apply(void 0, __spread([target], params)); hitParent.apply(void 0, __spread$1([target], params));
} }
var entity = target; var entity = target;
while (entity = entity.parent) { while (entity = entity.parent) {
if (hitParent.apply(void 0, __spread([entity], params))) { if (hitParent.apply(void 0, __spread$1([entity], params))) {
break; break;
} }
} }
} }
var Entity = (function (_super) { var Entity = (function (_super) {
__extends(Entity, _super); __extends$1(Entity, _super);
function Entity(name, uuid) { function Entity(name, uuid) {
var _this = _super.call(this) || this; var _this = _super.call(this) || this;
_this.name = 'Entity'; _this.name = 'Entity';
...@@ -646,7 +710,7 @@ ...@@ -646,7 +710,7 @@
Entity.prototype.forEachComponent = function (func) { Entity.prototype.forEachComponent = function (func) {
var e_2, _a; var e_2, _a;
try { try {
for (var _b = __values(this._components), _c = _b.next(); !_c.done; _c = _b.next()) { for (var _b = __values$1(this._components), _c = _b.next(); !_c.done; _c = _b.next()) {
var component = _c.value; var component = _c.value;
if (func(component)) { if (func(component)) {
break; break;
...@@ -735,14 +799,14 @@ ...@@ -735,14 +799,14 @@
for (var _i = 2; _i < arguments.length; _i++) { for (var _i = 2; _i < arguments.length; _i++) {
params[_i - 2] = arguments[_i]; params[_i - 2] = arguments[_i];
} }
traverse.apply(void 0, __spread([this, this.invokeOnEntity, level, true, null, method], params)); traverse.apply(void 0, __spread$1([this, this.invokeOnEntity, level, true, null, method], params));
}; };
Entity.prototype.bubbling = function (method) { Entity.prototype.bubbling = function (method) {
var params = []; var params = [];
for (var _i = 1; _i < arguments.length; _i++) { for (var _i = 1; _i < arguments.length; _i++) {
params[_i - 1] = arguments[_i]; params[_i - 1] = arguments[_i];
} }
bubbling.apply(void 0, __spread([this, this.invokeOnEntity, false, method], params)); bubbling.apply(void 0, __spread$1([this, this.invokeOnEntity, false, method], params));
}; };
return Entity; return Entity;
}(HashObject)); }(HashObject));
...@@ -1066,7 +1130,7 @@ ...@@ -1066,7 +1130,7 @@
} }
var Texture = (function (_super) { var Texture = (function (_super) {
__extends(Texture, _super); __extends$1(Texture, _super);
function Texture() { function Texture() {
var _this = _super.call(this) || this; var _this = _super.call(this) || this;
_this.bounds = new Bounds(); _this.bounds = new Bounds();
...@@ -1129,7 +1193,7 @@ ...@@ -1129,7 +1193,7 @@
} }
var Sheet = (function (_super) { var Sheet = (function (_super) {
__extends(Sheet, _super); __extends$1(Sheet, _super);
function Sheet(img, frames) { function Sheet(img, frames) {
var _this = _super.call(this) || this; var _this = _super.call(this) || this;
_this._textureCache = {}; _this._textureCache = {};
...@@ -1246,7 +1310,7 @@ ...@@ -1246,7 +1310,7 @@
var e_1, _a; var e_1, _a;
var result; var result;
try { try {
for (var _b = __values(this._animData.labels), _c = _b.next(); !_c.done; _c = _b.next()) { for (var _b = __values$1(this._animData.labels), _c = _b.next(); !_c.done; _c = _b.next()) {
var label = _c.value; var label = _c.value;
if (label.name == name) { if (label.name == name) {
result = label; result = label;
...@@ -1340,9 +1404,9 @@ ...@@ -1340,9 +1404,9 @@
if (cache === void 0) { cache = true; } if (cache === void 0) { cache = true; }
if (options === void 0) { options = {}; } if (options === void 0) { options = {}; }
if (type === void 0) { type = 'arraybuffer'; } if (type === void 0) { type = 'arraybuffer'; }
return __awaiter(this, void 0, void 0, function () { return __awaiter$1(this, void 0, void 0, function () {
var response, result; var response, result;
return __generator(this, function (_a) { return __generator$1(this, function (_a) {
switch (_a.label) { switch (_a.label) {
case 0: return [4, fetch(resolveUrl(url), options)]; case 0: return [4, fetch(resolveUrl(url), options)];
case 1: case 1:
...@@ -1391,9 +1455,9 @@ ...@@ -1391,9 +1455,9 @@
} }
function loadJson5(url, uuid, cache, config) { function loadJson5(url, uuid, cache, config) {
if (cache === void 0) { cache = true; } if (cache === void 0) { cache = true; }
return __awaiter(this, void 0, void 0, function () { return __awaiter$1(this, void 0, void 0, function () {
var txt, jsonData; var txt, jsonData;
return __generator(this, function (_a) { return __generator$1(this, function (_a) {
switch (_a.label) { switch (_a.label) {
case 0: return [4, loadTxt(url, uuid)]; case 0: return [4, loadTxt(url, uuid)];
case 1: case 1:
...@@ -1421,7 +1485,7 @@ ...@@ -1421,7 +1485,7 @@
cacheRes(sheet, url, uuid); cacheRes(sheet, url, uuid);
if (config) { if (config) {
try { try {
for (var _b = __values(config.textures), _c = _b.next(); !_c.done; _c = _b.next()) { for (var _b = __values$1(config.textures), _c = _b.next(); !_c.done; _c = _b.next()) {
var textureConfig = _c.value; var textureConfig = _c.value;
var name_1 = textureConfig.name, uuid_1 = textureConfig.uuid; var name_1 = textureConfig.name, uuid_1 = textureConfig.uuid;
var texture = sheet.getTexture(name_1); var texture = sheet.getTexture(name_1);
...@@ -1448,13 +1512,13 @@ ...@@ -1448,13 +1512,13 @@
} }
function loadSheetDisperse(url, uuid, cache, config) { function loadSheetDisperse(url, uuid, cache, config) {
if (cache === void 0) { cache = true; } if (cache === void 0) { cache = true; }
return __awaiter(this, void 0, void 0, function () { return __awaiter$1(this, void 0, void 0, function () {
var e_2, _a, _b, _c, _d, name_2, uuid_2, subUrl, e_2_1; var e_2, _a, _b, _c, _d, name_2, uuid_2, subUrl, e_2_1;
return __generator(this, function (_e) { return __generator$1(this, function (_e) {
switch (_e.label) { switch (_e.label) {
case 0: case 0:
_e.trys.push([0, 5, 6, 7]); _e.trys.push([0, 5, 6, 7]);
_b = __values(config.textures), _c = _b.next(); _b = __values$1(config.textures), _c = _b.next();
_e.label = 1; _e.label = 1;
case 1: case 1:
if (!!_c.done) return [3, 4]; if (!!_c.done) return [3, 4];
...@@ -1546,9 +1610,9 @@ ...@@ -1546,9 +1610,9 @@
} }
function loadImageFromBlob(url, uuid, cache, config) { function loadImageFromBlob(url, uuid, cache, config) {
if (cache === void 0) { cache = true; } if (cache === void 0) { cache = true; }
return __awaiter(this, void 0, void 0, function () { return __awaiter$1(this, void 0, void 0, function () {
var imgBlob, e_3; var imgBlob, e_3;
return __generator(this, function (_a) { return __generator$1(this, function (_a) {
switch (_a.label) { switch (_a.label) {
case 0: case 0:
_a.trys.push([0, 3, , 4]); _a.trys.push([0, 3, , 4]);
...@@ -1568,9 +1632,9 @@ ...@@ -1568,9 +1632,9 @@
} }
function loadTexture(url, uuid, cache, config) { function loadTexture(url, uuid, cache, config) {
if (cache === void 0) { cache = true; } if (cache === void 0) { cache = true; }
return __awaiter(this, void 0, void 0, function () { return __awaiter$1(this, void 0, void 0, function () {
var img, texture; var img, texture;
return __generator(this, function (_a) { return __generator$1(this, function (_a) {
switch (_a.label) { switch (_a.label) {
case 0: return [4, loadImage(url, uuid, false)]; case 0: return [4, loadImage(url, uuid, false)];
case 1: case 1:
...@@ -1586,9 +1650,9 @@ ...@@ -1586,9 +1650,9 @@
} }
function loadTextureFromBlob(url, uuid, cache, config) { function loadTextureFromBlob(url, uuid, cache, config) {
if (cache === void 0) { cache = true; } if (cache === void 0) { cache = true; }
return __awaiter(this, void 0, void 0, function () { return __awaiter$1(this, void 0, void 0, function () {
var img, texture; var img, texture;
return __generator(this, function (_a) { return __generator$1(this, function (_a) {
switch (_a.label) { switch (_a.label) {
case 0: return [4, loadImageFromBlob(url, uuid, false)]; case 0: return [4, loadImageFromBlob(url, uuid, false)];
case 1: case 1:
...@@ -1651,9 +1715,9 @@ ...@@ -1651,9 +1715,9 @@
}); });
} }
function blobToImage(blob) { function blobToImage(blob) {
return __awaiter(this, void 0, void 0, function () { return __awaiter$1(this, void 0, void 0, function () {
var dataUrl; var dataUrl;
return __generator(this, function (_a) { return __generator$1(this, function (_a) {
switch (_a.label) { switch (_a.label) {
case 0: return [4, fileOrBlobToDataURL(blob)]; case 0: return [4, fileOrBlobToDataURL(blob)];
case 1: case 1:
...@@ -1692,8 +1756,8 @@ ...@@ -1692,8 +1756,8 @@
} }
}; };
Scene.prototype.loadResGroup = function (name, progress) { Scene.prototype.loadResGroup = function (name, progress) {
return __awaiter(this, void 0, void 0, function () { return __awaiter$1(this, void 0, void 0, function () {
return __generator(this, function (_a) { return __generator$1(this, function (_a) {
switch (_a.label) { switch (_a.label) {
case 0: return [4, loadResItems(this.resourceGroups[name], progress)]; case 0: return [4, loadResItems(this.resourceGroups[name], progress)];
case 1: case 1:
...@@ -1790,7 +1854,7 @@ ...@@ -1790,7 +1854,7 @@
return a.priority - b.priority; return a.priority - b.priority;
}); });
try { try {
for (var _subscribers_1 = __values(_subscribers), _subscribers_1_1 = _subscribers_1.next(); !_subscribers_1_1.done; _subscribers_1_1 = _subscribers_1.next()) { for (var _subscribers_1 = __values$1(_subscribers), _subscribers_1_1 = _subscribers_1.next(); !_subscribers_1_1.done; _subscribers_1_1 = _subscribers_1.next()) {
var subscriber = _subscribers_1_1.value; var subscriber = _subscribers_1_1.value;
if (subscriber) { if (subscriber) {
var callback = subscriber.callback, thisObj = subscriber.thisObj, once = subscriber.once, params = subscriber.params; var callback = subscriber.callback, thisObj = subscriber.thisObj, once = subscriber.once, params = subscriber.params;
...@@ -2021,7 +2085,7 @@ ...@@ -2021,7 +2085,7 @@
var e_1, _a; var e_1, _a;
if (config.components) { if (config.components) {
try { try {
for (var _b = __values(config.components), _c = _b.next(); !_c.done; _c = _b.next()) { for (var _b = __values$1(config.components), _c = _b.next(); !_c.done; _c = _b.next()) {
var component = _c.value; var component = _c.value;
instantiateComponent(entity, component); instantiateComponent(entity, component);
} }
...@@ -2130,7 +2194,7 @@ ...@@ -2130,7 +2194,7 @@
function injectEvent(event, config, pid) { function injectEvent(event, config, pid) {
var e_2, _a; var e_2, _a;
try { try {
for (var config_1 = __values(config), config_1_1 = config_1.next(); !config_1_1.done; config_1_1 = config_1.next()) { for (var config_1 = __values$1(config), config_1_1 = config_1.next(); !config_1_1.done; config_1_1 = config_1.next()) {
var _b = config_1_1.value, entityName = _b.entity, componentIndex = _b.component, methodName = _b.method, param = _b.param; var _b = config_1_1.value, entityName = _b.entity, componentIndex = _b.component, methodName = _b.method, param = _b.param;
if (entityName && componentIndex >= 0 && methodName) { if (entityName && componentIndex >= 0 && methodName) {
var entity = getLink(entityName, pid); var entity = getLink(entityName, pid);
...@@ -2177,9 +2241,9 @@ ...@@ -2177,9 +2241,9 @@
var currentScene; var currentScene;
var resUUIDs; var resUUIDs;
function launchScene(name, progress) { function launchScene(name, progress) {
return __awaiter(this, void 0, void 0, function () { return __awaiter$1(this, void 0, void 0, function () {
var scene; var scene;
return __generator(this, function (_a) { return __generator$1(this, function (_a) {
switch (_a.label) { switch (_a.label) {
case 0: return [4, loadScene("scenes/" + name + ".scene", 'scene_' + name)]; case 0: return [4, loadScene("scenes/" + name + ".scene", 'scene_' + name)];
case 1: case 1:
...@@ -2211,9 +2275,9 @@ ...@@ -2211,9 +2275,9 @@
} }
function loadScene(url, uuid, cache, config) { function loadScene(url, uuid, cache, config) {
if (cache === void 0) { cache = false; } if (cache === void 0) { cache = false; }
return __awaiter(this, void 0, void 0, function () { return __awaiter$1(this, void 0, void 0, function () {
var sceneConfig, scene; var sceneConfig, scene;
return __generator(this, function (_a) { return __generator$1(this, function (_a) {
switch (_a.label) { switch (_a.label) {
case 0: return [4, loadJson5(url)]; case 0: return [4, loadJson5(url)];
case 1: case 1:
...@@ -2227,9 +2291,9 @@ ...@@ -2227,9 +2291,9 @@
} }
function loadPrefab(url, uuid, cache, config) { function loadPrefab(url, uuid, cache, config) {
if (cache === void 0) { cache = true; } if (cache === void 0) { cache = true; }
return __awaiter(this, void 0, void 0, function () { return __awaiter$1(this, void 0, void 0, function () {
var data; var data;
return __generator(this, function (_a) { return __generator$1(this, function (_a) {
switch (_a.label) { switch (_a.label) {
case 0: return [4, loadJson5(url, uuid, false)]; case 0: return [4, loadJson5(url, uuid, false)];
case 1: case 1:
...@@ -2267,7 +2331,7 @@ ...@@ -2267,7 +2331,7 @@
else { else {
instance = pool.pop(); instance = pool.pop();
} }
initFunc.apply(void 0, __spread([instance], params)); initFunc.apply(void 0, __spread$1([instance], params));
return instance; return instance;
} }
...@@ -2495,7 +2559,7 @@ ...@@ -2495,7 +2559,7 @@
} }
var temp = new clazz(); var temp = new clazz();
try { try {
for (var fields_1 = __values(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) { for (var fields_1 = __values$1(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) {
var field = fields_1_1.value; var field = fields_1_1.value;
temp[field] = lerp(begin[field], end[field], t, allowOutOfBounds); temp[field] = lerp(begin[field], end[field], t, allowOutOfBounds);
} }
...@@ -2538,7 +2602,7 @@ ...@@ -2538,7 +2602,7 @@
var tweens = target['tweens']; var tweens = target['tweens'];
if (tweens) { if (tweens) {
try { try {
for (var tweens_1 = __values(tweens), tweens_1_1 = tweens_1.next(); !tweens_1_1.done; tweens_1_1 = tweens_1.next()) { for (var tweens_1 = __values$1(tweens), tweens_1_1 = tweens_1.next(); !tweens_1_1.done; tweens_1_1 = tweens_1.next()) {
var tween = tweens_1_1.value; var tween = tweens_1_1.value;
tween.stop(); tween.stop();
} }
...@@ -2561,7 +2625,7 @@ ...@@ -2561,7 +2625,7 @@
tweens.push(tween); tweens.push(tween);
} }
var Tween = (function (_super) { var Tween = (function (_super) {
__extends(Tween, _super); __extends$1(Tween, _super);
function Tween(target, options, plugins) { function Tween(target, options, plugins) {
if (plugins === void 0) { plugins = []; } if (plugins === void 0) { plugins = []; }
var _this = _super.call(this) || this; var _this = _super.call(this) || this;
...@@ -2667,7 +2731,7 @@ ...@@ -2667,7 +2731,7 @@
var e_2, _a; var e_2, _a;
var props = {}; var props = {};
try { try {
for (var fields_1 = __values(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) { for (var fields_1 = __values$1(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) {
var field = fields_1_1.value; var field = fields_1_1.value;
if (field in this.target) { if (field in this.target) {
props[field] = this.target[field]; props[field] = this.target[field];
...@@ -3197,10 +3261,10 @@ ...@@ -3197,10 +3261,10 @@
Size.prototype.onModify = function (value, key, oldValue) { Size.prototype.onModify = function (value, key, oldValue) {
this.onChange && this.onChange(value, key, oldValue); this.onChange && this.onChange(value, key, oldValue);
}; };
__decorate([ __decorate$1([
dirtyFieldTrigger dirtyFieldTrigger
], Size.prototype, "width", void 0); ], Size.prototype, "width", void 0);
__decorate([ __decorate$1([
dirtyFieldTrigger dirtyFieldTrigger
], Size.prototype, "height", void 0); ], Size.prototype, "height", void 0);
return Size; return Size;
...@@ -3235,19 +3299,19 @@ ...@@ -3235,19 +3299,19 @@
TextStyle.prototype.onModify = function (value, key, oldValue) { TextStyle.prototype.onModify = function (value, key, oldValue) {
this.onChange && this.onChange(value, key, oldValue, 'textStyle'); this.onChange && this.onChange(value, key, oldValue, 'textStyle');
}; };
__decorate([ __decorate$1([
dirtyFieldTrigger dirtyFieldTrigger
], TextStyle.prototype, "fontStyle", void 0); ], TextStyle.prototype, "fontStyle", void 0);
__decorate([ __decorate$1([
dirtyFieldTrigger dirtyFieldTrigger
], TextStyle.prototype, "fontVariant", void 0); ], TextStyle.prototype, "fontVariant", void 0);
__decorate([ __decorate$1([
dirtyFieldTrigger dirtyFieldTrigger
], TextStyle.prototype, "fontWeight", void 0); ], TextStyle.prototype, "fontWeight", void 0);
__decorate([ __decorate$1([
dirtyFieldTrigger dirtyFieldTrigger
], TextStyle.prototype, "fontSize", void 0); ], TextStyle.prototype, "fontSize", void 0);
__decorate([ __decorate$1([
dirtyFieldTrigger dirtyFieldTrigger
], TextStyle.prototype, "fontFamily", void 0); ], TextStyle.prototype, "fontFamily", void 0);
return TextStyle; return TextStyle;
...@@ -3642,9 +3706,56 @@ ...@@ -3642,9 +3706,56 @@
elasticInOut: elasticInOut elasticInOut: elasticInOut
}); });
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics$2 = function(d, b) {
extendStatics$2 = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics$2(d, b);
};
function __extends$2(d, b) {
extendStatics$2(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
function __decorate$2(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __values$2(o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
}
var dirtyFieldTrigger$1 = dirtyFieldTrigger; var dirtyFieldTrigger$1 = dirtyFieldTrigger;
var Renderer = (function (_super) { var Renderer = (function (_super) {
__extends(Renderer, _super); __extends$2(Renderer, _super);
function Renderer() { function Renderer() {
var _this = _super.call(this) || this; var _this = _super.call(this) || this;
_this.onVector2DModify = function () { _this.onVector2DModify = function () {
...@@ -3794,7 +3905,7 @@ ...@@ -3794,7 +3905,7 @@
Renderer.prototype.hitTest = function (x, y) { Renderer.prototype.hitTest = function (x, y) {
return this.bounds.contains(x, y); return this.bounds.contains(x, y);
}; };
__decorate([ __decorate$2([
dirtyFieldTrigger$1 dirtyFieldTrigger$1
], Renderer.prototype, "anchor", void 0); ], Renderer.prototype, "anchor", void 0);
return Renderer; return Renderer;
...@@ -3807,7 +3918,7 @@ ...@@ -3807,7 +3918,7 @@
MATRIX_ORDER[MATRIX_ORDER["ROTATE_SCALE"] = 1] = "ROTATE_SCALE"; MATRIX_ORDER[MATRIX_ORDER["ROTATE_SCALE"] = 1] = "ROTATE_SCALE";
})(MATRIX_ORDER || (MATRIX_ORDER = {})); })(MATRIX_ORDER || (MATRIX_ORDER = {}));
var Transform = (function (_super) { var Transform = (function (_super) {
__extends(Transform, _super); __extends$2(Transform, _super);
function Transform() { function Transform() {
var _this = _super !== null && _super.apply(this, arguments) || this; var _this = _super !== null && _super.apply(this, arguments) || this;
_this.onVector2DModify = function (value, key, oldValue) { _this.onVector2DModify = function (value, key, oldValue) {
...@@ -3883,7 +3994,7 @@ ...@@ -3883,7 +3994,7 @@
case 'height': case 'height':
var renderers = this.entity.getComponents(Renderer); var renderers = this.entity.getComponents(Renderer);
try { try {
for (var renderers_1 = __values(renderers), renderers_1_1 = renderers_1.next(); !renderers_1_1.done; renderers_1_1 = renderers_1.next()) { for (var renderers_1 = __values$2(renderers), renderers_1_1 = renderers_1.next(); !renderers_1_1.done; renderers_1_1 = renderers_1.next()) {
var renderer = renderers_1_1.value; var renderer = renderers_1_1.value;
renderer.makeDirty(); renderer.makeDirty();
} }
...@@ -3929,7 +4040,7 @@ ...@@ -3929,7 +4040,7 @@
var parentTransform = entity.parent.getComponent(Transform); var parentTransform = entity.parent.getComponent(Transform);
if (parentTransform) { if (parentTransform) {
this._renderAlpha = parentTransform._renderAlpha * this.alpha; this._renderAlpha = parentTransform._renderAlpha * this.alpha;
_globalMatrix.concat(parentTransform.getMatrix()); _globalMatrix.concat(parentTransform.getMatrix(true));
} }
} }
else { else {
...@@ -3950,69 +4061,24 @@ ...@@ -3950,69 +4061,24 @@
this.updateGlobalMatrix(); this.updateGlobalMatrix();
_super.prototype.onUpdate.call(this, t); _super.prototype.onUpdate.call(this, t);
}; };
__decorate([ __decorate$2([
dirtyFieldTrigger$2 dirtyFieldTrigger$2
], Transform.prototype, "position", void 0); ], Transform.prototype, "position", void 0);
__decorate([ __decorate$2([
dirtyFieldTrigger$2 dirtyFieldTrigger$2
], Transform.prototype, "alpha", void 0); ], Transform.prototype, "alpha", void 0);
__decorate([ __decorate$2([
dirtyFieldTrigger$2 dirtyFieldTrigger$2
], Transform.prototype, "scale", void 0); ], Transform.prototype, "scale", void 0);
__decorate([ __decorate$2([
dirtyFieldTrigger$2 dirtyFieldTrigger$2
], Transform.prototype, "pivot", void 0); ], Transform.prototype, "pivot", void 0);
__decorate([ __decorate$2([
dirtyFieldDetector$1 dirtyFieldDetector$1
], Transform.prototype, "rotation", void 0); ], Transform.prototype, "rotation", void 0);
return Transform; return Transform;
}(ScillaComponent)); }(ScillaComponent));
var CameraController = (function (_super) {
__extends(CameraController, _super);
function CameraController() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.viewportAnchor = createVector2D();
_this.maxScale = 1.2;
return _this;
}
CameraController.prototype.onCreate = function () {
_super.prototype.onCreate.call(this);
};
CameraController.prototype.onAwake = function () {
_super.prototype.onAwake.call(this);
var _a = this, target = _a.target, viewportAnchor = _a.viewportAnchor;
this.stageSize = getStageSize();
if (target) {
this.targetPosition = target.getComponent(Transform).position;
}
this.followPosition = createVector2D();
if (viewportAnchor) {
var _b = this.stageSize, width = _b.width, height = _b.height;
var _c = this.viewportAnchor, x_1 = _c.x, y = _c.y;
this.transform.position.setXY(width * x_1, height * y);
}
};
CameraController.prototype.onUpdate = function (t) {
_super.prototype.onUpdate.call(this, t);
if (!this.targetPosition) {
return;
}
var _a = this, _b = _a.transform, scale = _b.scale, position = _b.position, _c = _a.stageSize, width = _c.width, height = _c.height, _d = _a.targetPosition, x = _d.x, y = _d.y, length = _d.length, maxScale = _a.maxScale;
var newScale = maxScale - length * maxScale / 2048;
scale.setXY(newScale, newScale);
this.followPosition.setXY(width / 2, height / 2).subtract(this.targetPosition);
position.copyFrom(lerpObj(position, this.followPosition, 0.1, Vector2D, ['x', 'y']));
};
CameraController.prototype.onSleep = function () {
_super.prototype.onSleep.call(this);
};
CameraController.prototype.onDestroy = function () {
_super.prototype.onDestroy.call(this);
};
return CameraController;
}(ScillaComponent));
var dirtyFieldDetector$2 = dirtyFieldDetector; var dirtyFieldDetector$2 = dirtyFieldDetector;
var FillMode; var FillMode;
(function (FillMode) { (function (FillMode) {
...@@ -4021,7 +4087,7 @@ ...@@ -4021,7 +4087,7 @@
FillMode[FillMode["TILED"] = 2] = "TILED"; FillMode[FillMode["TILED"] = 2] = "TILED";
})(FillMode || (FillMode = {})); })(FillMode || (FillMode = {}));
var TextureRenderer = (function (_super) { var TextureRenderer = (function (_super) {
__extends(TextureRenderer, _super); __extends$2(TextureRenderer, _super);
function TextureRenderer() { function TextureRenderer() {
var _this = _super !== null && _super.apply(this, arguments) || this; var _this = _super !== null && _super.apply(this, arguments) || this;
_this.fillMode = FillMode.NORMAL; _this.fillMode = FillMode.NORMAL;
...@@ -4048,7 +4114,7 @@ ...@@ -4048,7 +4114,7 @@
var _c = texture.bounds, textureWidth = _c.width, textureHeight = _c.height; var _c = texture.bounds, textureWidth = _c.width, textureHeight = _c.height;
var imageData = context.getImageData(0, 0, textureWidth, textureHeight); var imageData = context.getImageData(0, 0, textureWidth, textureHeight);
try { try {
for (var filters_1 = __values(filters), filters_1_1 = filters_1.next(); !filters_1_1.done; filters_1_1 = filters_1.next()) { for (var filters_1 = __values$2(filters), filters_1_1 = filters_1.next(); !filters_1_1.done; filters_1_1 = filters_1.next()) {
var filter = filters_1_1.value; var filter = filters_1_1.value;
filter.drawFilter(imageData); filter.drawFilter(imageData);
} }
...@@ -4099,137 +4165,66 @@ ...@@ -4099,137 +4165,66 @@
} }
_super.prototype.measureBounds.call(this); _super.prototype.measureBounds.call(this);
}; };
__decorate([ __decorate$2([
dirtyFieldDetector$2 dirtyFieldDetector$2
], TextureRenderer.prototype, "texture", void 0); ], TextureRenderer.prototype, "texture", void 0);
__decorate([ __decorate$2([
dirtyFieldDetector$2 dirtyFieldDetector$2
], TextureRenderer.prototype, "fillMode", void 0); ], TextureRenderer.prototype, "fillMode", void 0);
__decorate([ __decorate$2([
dirtyFieldDetector$2 dirtyFieldDetector$2
], TextureRenderer.prototype, "filters", void 0); ], TextureRenderer.prototype, "filters", void 0);
return TextureRenderer; return TextureRenderer;
}(Renderer)); }(Renderer));
var GraphicRenderer = (function (_super) { var CameraController = (function (_super) {
__extends(GraphicRenderer, _super); __extends$2(CameraController, _super);
function GraphicRenderer() { function CameraController() {
var _this = _super !== null && _super.apply(this, arguments) || this; var _this = _super !== null && _super.apply(this, arguments) || this;
_this.fillColor = '#42bce4'; _this.viewportAnchor = createVector2D();
_this.borderColor = '#0899d0'; _this.maxScale = 1.2;
_this.borderWidth = 0;
_this.isUsedToMask = false;
_this.maskVisible = false;
return _this; return _this;
} }
GraphicRenderer.prototype.getUseCacheMode = function () { CameraController.prototype.onCreate = function () {
return this._useCacheMode && !this.isUsedToMask; _super.prototype.onCreate.call(this);
};
GraphicRenderer.prototype.getRenderSize = function () {
return { width: 0, height: 0 };
};
GraphicRenderer.prototype.beforeDraw = function () {
_super.prototype.beforeDraw.call(this);
this.applyStyle();
this.context.beginPath();
};
GraphicRenderer.prototype.draw = function () {
_super.prototype.draw.call(this);
if (this.isUsedToMask) {
this._context.clip();
this.maskVisible && this.fillAndStoke();
}
else {
this.fillAndStoke();
}
}; };
GraphicRenderer.prototype.applyStyle = function () { CameraController.prototype.onAwake = function () {
var _a = this, context = _a.context, fillColor = _a.fillColor, borderColor = _a.borderColor, borderWidth = _a.borderWidth; _super.prototype.onAwake.call(this);
context.fillStyle = fillColor; var _a = this, target = _a.target, viewportAnchor = _a.viewportAnchor;
if (borderWidth > 0) { this.stageSize = getStageSize();
context.strokeStyle = borderColor; if (target) {
context.lineWidth = borderWidth; this.targetPosition = target.getComponent(Transform).position;
} }
}; this.followPosition = createVector2D();
GraphicRenderer.prototype.fillAndStoke = function () { if (viewportAnchor) {
var _a = this, context = _a.context, borderWidth = _a.borderWidth; var _b = this.stageSize, width = _b.width, height = _b.height;
context.fill(); var _c = this.viewportAnchor, x_1 = _c.x, y = _c.y;
if (borderWidth > 0) { this.transform.position.setXY(width * x_1, height * y);
context.stroke();
} }
}; };
GraphicRenderer.prototype.drawClip = function () { CameraController.prototype.onUpdate = function (t) {
this.isUsedToMask && this.context.save(); _super.prototype.onUpdate.call(this, t);
}; if (!this.targetPosition) {
GraphicRenderer.prototype.afterUpdate = function () {
this.isUsedToMask && this.context.restore();
};
GraphicRenderer.prototype.measureBounds = function () {
if (this.entity.name == 'content') {
console.log();
}
if (!this.dirty) {
return; return;
} }
this._margin = this.borderWidth; var _a = this, _b = _a.transform, scale = _b.scale, position = _b.position, _c = _a.stageSize, width = _c.width, height = _c.height, _d = _a.targetPosition, x = _d.x, y = _d.y, length = _d.length, maxScale = _a.maxScale;
var _a = this, bounds = _a.bounds, _b = _a.transform, tWidth = _b.explicitWidth, tHeight = _b.explicitHeight; var newScale = maxScale - length * maxScale / 2048;
var _c = this.getRenderSize(), sWidth = _c.width, sHeight = _c.height; scale.setXY(newScale, newScale);
bounds.width = isNaN(tWidth) ? sWidth : tWidth; this.followPosition.setXY(width / 2, height / 2).subtract(this.targetPosition);
bounds.height = isNaN(tHeight) ? sHeight : tHeight; position.copyFrom(lerpObj(position, this.followPosition, 0.1, Vector2D, ['x', 'y']));
_super.prototype.measureBounds.call(this);
}; };
return GraphicRenderer; CameraController.prototype.onSleep = function () {
}(Renderer)); _super.prototype.onSleep.call(this);
var dirtyFieldDetector$3 = dirtyFieldDetector;
var RectRenderer = (function (_super) {
__extends(RectRenderer, _super);
function RectRenderer() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.width = 100;
_this.height = 100;
_this.cornerRadius = 0;
return _this;
}
RectRenderer.prototype.getRenderSize = function () {
var _a = this, width = _a.width, height = _a.height;
return { width: width, height: height };
}; };
RectRenderer.prototype.draw = function () { CameraController.prototype.onDestroy = function () {
var PI = Math.PI; _super.prototype.onDestroy.call(this);
var _a = this, context = _a.context, r = _a.cornerRadius, _b = _a.bounds, width = _b.width, height = _b.height, _margin = _a._margin, _useCacheMode = _a._useCacheMode;
var offset = _useCacheMode ? _margin : 0;
if (r) {
context.moveTo(offset + r, offset + 0);
context.lineTo(offset + width - r, offset + 0);
context.arc(offset + width - r, offset + r, r, PI * 3 / 2, PI * 2);
context.lineTo(offset + width, offset + height - r);
context.arc(offset + width - r, offset + height - r, r, 0, PI / 2);
context.lineTo(offset + r, offset + height);
context.arc(offset + r, offset + height - r, r, PI / 2, PI);
context.lineTo(offset + 0, offset + r);
context.arc(offset + r, offset + r, r, PI, PI * 3 / 2);
}
else {
context.rect(offset, offset, width, height);
}
_super.prototype.draw.call(this);
}; };
__decorate([ return CameraController;
dirtyFieldDetector$3 }(ScillaComponent));
], RectRenderer.prototype, "width", void 0);
__decorate([
dirtyFieldDetector$3
], RectRenderer.prototype, "height", void 0);
__decorate([
dirtyFieldDetector$3
], RectRenderer.prototype, "cornerRadius", void 0);
return RectRenderer;
}(GraphicRenderer));
var dirtyFieldTrigger$3 = dirtyFieldTrigger; var dirtyFieldTrigger$3 = dirtyFieldTrigger;
var InteractComponent = (function (_super) { var InteractComponent = (function (_super) {
__extends(InteractComponent, _super); __extends$2(InteractComponent, _super);
function InteractComponent() { function InteractComponent() {
var _this = _super.call(this) || this; var _this = _super.call(this) || this;
_this.interactable = true; _this.interactable = true;
...@@ -4308,7 +4303,7 @@ ...@@ -4308,7 +4303,7 @@
var result = false; var result = false;
var renderers = this.entity.getComponents(Renderer); var renderers = this.entity.getComponents(Renderer);
try { try {
for (var renderers_1 = __values(renderers), renderers_1_1 = renderers_1.next(); !renderers_1_1.done; renderers_1_1 = renderers_1.next()) { for (var renderers_1 = __values$2(renderers), renderers_1_1 = renderers_1.next(); !renderers_1_1.done; renderers_1_1 = renderers_1.next()) {
var renderer = renderers_1_1.value; var renderer = renderers_1_1.value;
if (renderer.hitTest(this.localPos.x, this.localPos.y)) { if (renderer.hitTest(this.localPos.x, this.localPos.y)) {
if (renderer.isUsedToMask) { if (renderer.isUsedToMask) {
...@@ -4333,14 +4328,14 @@ ...@@ -4333,14 +4328,14 @@
} }
return result; return result;
}; };
__decorate([ __decorate$2([
dirtyFieldTrigger$3 dirtyFieldTrigger$3
], InteractComponent.prototype, "interactable", void 0); ], InteractComponent.prototype, "interactable", void 0);
return InteractComponent; return InteractComponent;
}(ScillaComponent)); }(ScillaComponent));
var TouchInterrupt = (function (_super) { var TouchInterrupt = (function (_super) {
__extends(TouchInterrupt, _super); __extends$2(TouchInterrupt, _super);
function TouchInterrupt() { function TouchInterrupt() {
var _this = _super !== null && _super.apply(this, arguments) || this; var _this = _super !== null && _super.apply(this, arguments) || this;
_this.touchInterrupt = true; _this.touchInterrupt = true;
...@@ -4350,7 +4345,7 @@ ...@@ -4350,7 +4345,7 @@
}(InteractComponent)); }(InteractComponent));
var TouchZoom = (function (_super) { var TouchZoom = (function (_super) {
__extends(TouchZoom, _super); __extends$2(TouchZoom, _super);
function TouchZoom() { function TouchZoom() {
var _this = _super !== null && _super.apply(this, arguments) || this; var _this = _super !== null && _super.apply(this, arguments) || this;
_this.scaleOffset = createVector2D(0.1, 0.1); _this.scaleOffset = createVector2D(0.1, 0.1);
...@@ -4389,9 +4384,79 @@ ...@@ -4389,9 +4384,79 @@
return TouchZoom; return TouchZoom;
}(InteractComponent)); }(InteractComponent));
var dirtyFieldDetector$4 = dirtyFieldDetector; var GraphicRenderer = (function (_super) {
__extends$2(GraphicRenderer, _super);
function GraphicRenderer() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.fillColor = '#42bce4';
_this.borderColor = '#0899d0';
_this.borderWidth = 0;
_this.isUsedToMask = false;
_this.maskVisible = false;
return _this;
}
GraphicRenderer.prototype.getUseCacheMode = function () {
return this._useCacheMode && !this.isUsedToMask;
};
GraphicRenderer.prototype.getRenderSize = function () {
return { width: 0, height: 0 };
};
GraphicRenderer.prototype.beforeDraw = function () {
_super.prototype.beforeDraw.call(this);
this.applyStyle();
this.context.beginPath();
};
GraphicRenderer.prototype.draw = function () {
_super.prototype.draw.call(this);
if (this.isUsedToMask) {
this._context.clip();
this.maskVisible && this.fillAndStoke();
}
else {
this.fillAndStoke();
}
};
GraphicRenderer.prototype.applyStyle = function () {
var _a = this, context = _a.context, fillColor = _a.fillColor, borderColor = _a.borderColor, borderWidth = _a.borderWidth;
context.fillStyle = fillColor;
if (borderWidth > 0) {
context.strokeStyle = borderColor;
context.lineWidth = borderWidth;
}
};
GraphicRenderer.prototype.fillAndStoke = function () {
var _a = this, context = _a.context, borderWidth = _a.borderWidth;
context.fill();
if (borderWidth > 0) {
context.stroke();
}
};
GraphicRenderer.prototype.drawClip = function () {
this.isUsedToMask && this.context.save();
};
GraphicRenderer.prototype.afterUpdate = function () {
this.isUsedToMask && this.context.restore();
};
GraphicRenderer.prototype.measureBounds = function () {
if (this.entity.name == 'content') {
console.log();
}
if (!this.dirty) {
return;
}
this._margin = this.borderWidth;
var _a = this, bounds = _a.bounds, _b = _a.transform, tWidth = _b.explicitWidth, tHeight = _b.explicitHeight;
var _c = this.getRenderSize(), sWidth = _c.width, sHeight = _c.height;
bounds.width = isNaN(tWidth) ? sWidth : tWidth;
bounds.height = isNaN(tHeight) ? sHeight : tHeight;
_super.prototype.measureBounds.call(this);
};
return GraphicRenderer;
}(Renderer));
var dirtyFieldDetector$3 = dirtyFieldDetector;
var CircleRenderer = (function (_super) { var CircleRenderer = (function (_super) {
__extends(CircleRenderer, _super); __extends$2(CircleRenderer, _super);
function CircleRenderer() { function CircleRenderer() {
var _this = _super !== null && _super.apply(this, arguments) || this; var _this = _super !== null && _super.apply(this, arguments) || this;
_this.radius = 50; _this.radius = 50;
...@@ -4423,23 +4488,23 @@ ...@@ -4423,23 +4488,23 @@
} }
_super.prototype.draw.call(this); _super.prototype.draw.call(this);
}; };
__decorate([ __decorate$2([
dirtyFieldDetector$4 dirtyFieldDetector$3
], CircleRenderer.prototype, "radius", void 0); ], CircleRenderer.prototype, "radius", void 0);
__decorate([ __decorate$2([
dirtyFieldDetector$4 dirtyFieldDetector$3
], CircleRenderer.prototype, "startAngle", void 0); ], CircleRenderer.prototype, "startAngle", void 0);
__decorate([ __decorate$2([
dirtyFieldDetector$4 dirtyFieldDetector$3
], CircleRenderer.prototype, "endAngle", void 0); ], CircleRenderer.prototype, "endAngle", void 0);
__decorate([ __decorate$2([
dirtyFieldDetector$4 dirtyFieldDetector$3
], CircleRenderer.prototype, "backToCenter", void 0); ], CircleRenderer.prototype, "backToCenter", void 0);
return CircleRenderer; return CircleRenderer;
}(GraphicRenderer)); }(GraphicRenderer));
var FrameAnimationRenderer = (function (_super) { var FrameAnimationRenderer = (function (_super) {
__extends(FrameAnimationRenderer, _super); __extends$2(FrameAnimationRenderer, _super);
function FrameAnimationRenderer() { function FrameAnimationRenderer() {
var _this = _super !== null && _super.apply(this, arguments) || this; var _this = _super !== null && _super.apply(this, arguments) || this;
_this.autoPlay = false; _this.autoPlay = false;
...@@ -4537,7 +4602,7 @@ ...@@ -4537,7 +4602,7 @@
}(Renderer)); }(Renderer));
var LineRenderer = (function (_super) { var LineRenderer = (function (_super) {
__extends(LineRenderer, _super); __extends$2(LineRenderer, _super);
function LineRenderer() { function LineRenderer() {
var _this = _super !== null && _super.apply(this, arguments) || this; var _this = _super !== null && _super.apply(this, arguments) || this;
_this.x0 = 0; _this.x0 = 0;
...@@ -4561,6 +4626,52 @@ ...@@ -4561,6 +4626,52 @@
return LineRenderer; return LineRenderer;
}(GraphicRenderer)); }(GraphicRenderer));
var dirtyFieldDetector$4 = dirtyFieldDetector;
var RectRenderer = (function (_super) {
__extends$2(RectRenderer, _super);
function RectRenderer() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.width = 100;
_this.height = 100;
_this.cornerRadius = 0;
return _this;
}
RectRenderer.prototype.getRenderSize = function () {
var _a = this, width = _a.width, height = _a.height;
return { width: width, height: height };
};
RectRenderer.prototype.draw = function () {
var PI = Math.PI;
var _a = this, context = _a.context, r = _a.cornerRadius, _b = _a.bounds, width = _b.width, height = _b.height, _margin = _a._margin, _useCacheMode = _a._useCacheMode;
var offset = _useCacheMode ? _margin : 0;
if (r) {
context.moveTo(offset + r, offset + 0);
context.lineTo(offset + width - r, offset + 0);
context.arc(offset + width - r, offset + r, r, PI * 3 / 2, PI * 2);
context.lineTo(offset + width, offset + height - r);
context.arc(offset + width - r, offset + height - r, r, 0, PI / 2);
context.lineTo(offset + r, offset + height);
context.arc(offset + r, offset + height - r, r, PI / 2, PI);
context.lineTo(offset + 0, offset + r);
context.arc(offset + r, offset + r, r, PI, PI * 3 / 2);
}
else {
context.rect(offset, offset, width, height);
}
_super.prototype.draw.call(this);
};
__decorate$2([
dirtyFieldDetector$4
], RectRenderer.prototype, "width", void 0);
__decorate$2([
dirtyFieldDetector$4
], RectRenderer.prototype, "height", void 0);
__decorate$2([
dirtyFieldDetector$4
], RectRenderer.prototype, "cornerRadius", void 0);
return RectRenderer;
}(GraphicRenderer));
var dirtyFieldDetector$5 = dirtyFieldDetector, dirtyFieldTrigger$4 = dirtyFieldTrigger; var dirtyFieldDetector$5 = dirtyFieldDetector, dirtyFieldTrigger$4 = dirtyFieldTrigger;
var TextAlign; var TextAlign;
(function (TextAlign) { (function (TextAlign) {
...@@ -4575,7 +4686,7 @@ ...@@ -4575,7 +4686,7 @@
VerticalAlign["BOTTOM"] = "bottom"; VerticalAlign["BOTTOM"] = "bottom";
})(VerticalAlign || (VerticalAlign = {})); })(VerticalAlign || (VerticalAlign = {}));
var TextRenderer = (function (_super) { var TextRenderer = (function (_super) {
__extends(TextRenderer, _super); __extends$2(TextRenderer, _super);
function TextRenderer() { function TextRenderer() {
var _this = _super !== null && _super.apply(this, arguments) || this; var _this = _super !== null && _super.apply(this, arguments) || this;
_this.text = ''; _this.text = '';
...@@ -4610,7 +4721,7 @@ ...@@ -4610,7 +4721,7 @@
var text = ''; var text = '';
if (this.textFlow) { if (this.textFlow) {
try { try {
for (var _b = __values(this.textFlow), _c = _b.next(); !_c.done; _c = _b.next()) { for (var _b = __values$2(this.textFlow), _c = _b.next(); !_c.done; _c = _b.next()) {
var item = _c.value; var item = _c.value;
text += item.text; text += item.text;
} }
...@@ -4738,7 +4849,7 @@ ...@@ -4738,7 +4849,7 @@
var targetItem; var targetItem;
var count = 0; var count = 0;
try { try {
for (var _b = __values(this.textFlow), _c = _b.next(); !_c.done; _c = _b.next()) { for (var _b = __values$2(this.textFlow), _c = _b.next(); !_c.done; _c = _b.next()) {
var item = _c.value; var item = _c.value;
count += item.text.length; count += item.text.length;
if (index < count) { if (index < count) {
...@@ -4808,7 +4919,7 @@ ...@@ -4808,7 +4919,7 @@
else { else {
var totalWidth = 0, totalHeight = 0; var totalWidth = 0, totalHeight = 0;
try { try {
for (var text_1 = __values(text), text_1_1 = text_1.next(); !text_1_1.done; text_1_1 = text_1.next()) { for (var text_1 = __values$2(text), text_1_1 = text_1.next(); !text_1_1.done; text_1_1 = text_1.next()) {
var char = text_1_1.value; var char = text_1_1.value;
var measureResult = this.measureText(char); var measureResult = this.measureText(char);
totalWidth += measureResult.width; totalWidth += measureResult.width;
...@@ -4842,7 +4953,7 @@ ...@@ -4842,7 +4953,7 @@
} }
if (letterSpacing != 0 && text.length > 1 || this.textFlow) { if (letterSpacing != 0 && text.length > 1 || this.textFlow) {
try { try {
for (var text_2 = __values(text), text_2_1 = text_2.next(); !text_2_1.done; text_2_1 = text_2.next()) { for (var text_2 = __values$2(text), text_2_1 = text_2.next(); !text_2_1.done; text_2_1 = text_2.next()) {
var char = text_2_1.value; var char = text_2_1.value;
this.measureCache[char] = this.measureText(char); this.measureCache[char] = this.measureText(char);
} }
...@@ -4868,7 +4979,7 @@ ...@@ -4868,7 +4979,7 @@
if (isNaN(explicitWidth)) { if (isNaN(explicitWidth)) {
var lines = text.split('\n'); var lines = text.split('\n');
try { try {
for (var lines_1 = __values(lines), lines_1_1 = lines_1.next(); !lines_1_1.done; lines_1_1 = lines_1.next()) { for (var lines_1 = __values$2(lines), lines_1_1 = lines_1.next(); !lines_1_1.done; lines_1_1 = lines_1.next()) {
var line = lines_1_1.value; var line = lines_1_1.value;
measureResult = this.measureText(line); measureResult = this.measureText(line);
var mw = measureResult.width; var mw = measureResult.width;
...@@ -4970,38 +5081,38 @@ ...@@ -4970,38 +5081,38 @@
this.splitText(); this.splitText();
_super.prototype.measureBounds.call(this); _super.prototype.measureBounds.call(this);
}; };
__decorate([ __decorate$2([
dirtyFieldDetector$5 dirtyFieldDetector$5
], TextRenderer.prototype, "text", void 0); ], TextRenderer.prototype, "text", void 0);
__decorate([ __decorate$2([
dirtyFieldTrigger$4 dirtyFieldTrigger$4
], TextRenderer.prototype, "textFlow", void 0); ], TextRenderer.prototype, "textFlow", void 0);
__decorate([ __decorate$2([
dirtyFieldDetector$5 dirtyFieldDetector$5
], TextRenderer.prototype, "textAlign", void 0); ], TextRenderer.prototype, "textAlign", void 0);
__decorate([ __decorate$2([
dirtyFieldDetector$5 dirtyFieldDetector$5
], TextRenderer.prototype, "verticalAlign", void 0); ], TextRenderer.prototype, "verticalAlign", void 0);
__decorate([ __decorate$2([
dirtyFieldDetector$5 dirtyFieldDetector$5
], TextRenderer.prototype, "lineSpacing", void 0); ], TextRenderer.prototype, "lineSpacing", void 0);
__decorate([ __decorate$2([
dirtyFieldDetector$5 dirtyFieldDetector$5
], TextRenderer.prototype, "letterSpacing", void 0); ], TextRenderer.prototype, "letterSpacing", void 0);
__decorate([ __decorate$2([
dirtyFieldDetector$5 dirtyFieldDetector$5
], TextRenderer.prototype, "fontRes", void 0); ], TextRenderer.prototype, "fontRes", void 0);
__decorate([ __decorate$2([
dirtyFieldDetector$5 dirtyFieldDetector$5
], TextRenderer.prototype, "textStyle", void 0); ], TextRenderer.prototype, "textStyle", void 0);
__decorate([ __decorate$2([
dirtyFieldDetector$5 dirtyFieldDetector$5
], TextRenderer.prototype, "useCacheMode", void 0); ], TextRenderer.prototype, "useCacheMode", void 0);
return TextRenderer; return TextRenderer;
}(GraphicRenderer)); }(GraphicRenderer));
var Button = (function (_super) { var Button = (function (_super) {
__extends(Button, _super); __extends$2(Button, _super);
function Button() { function Button() {
var _this = _super.call(this) || this; var _this = _super.call(this) || this;
_this.touchInterrupt = true; _this.touchInterrupt = true;
...@@ -5078,13 +5189,36 @@ ...@@ -5078,13 +5189,36 @@
return Button; return Button;
}(InteractComponent)); }(InteractComponent));
var MainController = (function (_super) {
__extends(MainController, _super);
function MainController() {
return _super.call(this) || this;
}
MainController.prototype.onWithdrawBtnTap = function () {
alert('onWithdrawBtnTap');
};
MainController.prototype.onRecordBtnTap = function () {
alert('onRecordBtnTap');
};
MainController.prototype.onRuleBtnTap = function () {
alert('onRuleBtnTap');
};
MainController.prototype.onTasksBtnTap = function () {
alert('onTasksBtnTap');
};
MainController.prototype.onEggsBtnTap = function () {
alert('onEggsBtnTap');
};
return MainController;
}(ScillaComponent));
registerDef('components/base/Transform', Transform); registerDef('components/base/Transform', Transform);
registerDef('components/other/CameraController', CameraController);
registerDef('components/renderer/TextureRenderer', TextureRenderer); registerDef('components/renderer/TextureRenderer', TextureRenderer);
registerDef('components/renderer/RectRenderer', RectRenderer); registerDef('components/other/CameraController', CameraController);
registerDef('components/animation/TouchZoom', TouchZoom); registerDef('components/animation/TouchZoom', TouchZoom);
registerDef('components/ui/Button', Button); registerDef('components/ui/Button', Button);
registerDef('components/renderer/TextRenderer', TextRenderer); registerDef('components/renderer/TextRenderer', TextRenderer);
registerDef('./scripts/MainController', MainController);
var options$1 = {}; var options$1 = {};
function inject(data) { function inject(data) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
No preview for this file type
...@@ -20,9 +20,15 @@ ...@@ -20,9 +20,15 @@
background-color: #282C34; background-color: #282C34;
} }
</style> </style>
<script src="libs/zepto.min.js"></script>
<script src="libs/security.js"></script>
<script src="libs/downloadApp.js"></script>
<script src='http://127.0.0.1:35729/livereload.js?ext=Chrome&extver=2.1.0'></script> <script src='http://127.0.0.1:35729/livereload.js?ext=Chrome&extver=2.1.0'></script>
<!--<script src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script>--> <!--<script src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script>-->
<script> <script>
window['host'] = 'http://localhost:3000';
var CFG = { "actId": "3335069", "oaId": "3335069", "unitName": "积分", "btnUnitName": "积分", "doJoin": "/hdtool/doJoin?dpm=1.3.1.0&activityId=3335069", "quireOrder": "/hdtool/getOrderStatus", "styleConfig": "/hdtool/getHdtoolConfig", "getElement": "/hdtool/ajaxElement", "getPrizeDetail": "/hdtool/prizeDetail", "ajaxThroughInfo": "/hdtool/ajaxThroughInfo", "throughSubmit": "/hdtool/throughSubmit", "gameGetOrder": "/hdtool/getOrderInfo", "gameSubmit": "/hdtool/gameSubmit", "doSubmit": "/hdtool/submit", "adslotId": "", "consumerId": "1", "isNotLoginUser": false, "uid": "1", "hdType": "duiba", "hdToolId": "42363", "appType": "credits", "subType": "custom", "directSendCoupon": "false", "ajaxAction": "", "recommendQueue": "/recommend/getRecommend", "recommendSkin": "/recommend/getRecommendSkin", "isShowDetail": true, "preview": false, "from": "", "login": "//activity.m.duiba.com.cn/hdtool/login?dpm=1.3.3.0", "flowRedirectUrl": "", "flowRedirectTuiaUrl": "", "isOpenRecommend": false, "getCreditsLink": "http://baidu.com?uid=1&dbnewopen", "appId": "1", "recordUrl": "//activity.m.duiba.com.cn/crecord/record?dbnewopen&dpm=1.3.2.0", "shareDesc": "分享分享文案文案", "entranceDesc": "测试领奖,也可到我的奖品领奖,24小时内有效哦", "isSHowMeat": true, "needCouponModal": true, "needRecommendModal": true, "asyncFiles": [], "shareAndroidLinkActivity": "http://www.duiba.com.cn", "shareIosLinkActivity": "http://www.iqiyi.com", "appName": "custom", "needShare": true, "shareTitle": "", "shareSubTitle": "", "sharePicUrl": "", "shareLink": "", "shareAndroidDeeplink": "", "shareIOSDeeplink": "" };
//var vConsole = new VConsole(); //var vConsole = new VConsole();
var cms_scheduler = { var cms_scheduler = {
......
/**
* @note 函数 window.downloadApp
* @modify by zsl@duiba.com.cn
* @date 2016-07-31
* @modify 2016-09-01
*/
;
(function($) {
var ua = navigator.userAgent.toLowerCase();
// -------------------------- downloadApp主要函数 --------------------------//
var downloadApp = function() {
if (window.downloadAppConfig) {
if (ua.match(/iphone/ig) || ua.match(/ipad/ig)){
//ios
download();
}else{
if (window.downloadAppConfig.confirm || window.downloadAppConfig.confirm == 'true') {
$.modal({
type: 'confirm',
title: '下载确认',
section: '即将开始下载,是否继续',
callback: {
save: function() {
if (window.downloadAppConfig.stats) {
$.ajax({
url: window.downloadAppConfig.stats,
complete: function() {
download();
}
})
} else {
download();
}
}
}
})
}else{
download();
}
}
}else {
console.error('请先配置参数window.downloadAppConfig');
}
}
// -------------------------- format函数 --------------------------//
var formatUrl = function(downloadUrl) {
if (downloadUrl.indexOf('dbnewopen') != -1) {
window.location.href = downloadUrl;
} else {
if (downloadUrl.indexOf('?') !== -1) {
// modify by zsl date2016-07-28
if (downloadUrl.indexOf('#') !== -1) {
// 如果包含#号
window.location.href = downloadUrl.split('#')[0] + '&dbnewopen#' + downloadUrl.split('#')[1];
}else {
window.location.href = downloadUrl + '&dbnewopen';
}
} else if (downloadUrl !== '') {
window.location.href = downloadUrl + '?dbnewopen';
}
}
}
// -------------------------- URL处理函数 --------------------------//
var download = function() {
var openUrl = window.downloadAppConfig.openUrl || '';
var downloadUrl = '';
// 淘客url处理 start ------------------------------------------------------------
var TKHelper,
isSpecial = false;
if ( window.TBSDK_ADA !== undefined ) {
TKHelper = function(downloadUrl) {
var isTBSDK = function() {
isSpecial = true;
if (window.isSpecialApp) {
window.location.href = downloadUrl;
} else {
window.BC_SDK.openPage({
url: downloadUrl
});
}
};
// 如果包含手淘url 唤起手淘App的功能
if (downloadUrl.indexOf('taoquan.taobao.com') !== -1 || downloadUrl.indexOf('shop.m.taobao.com') !== -1 ) {
window.BC_SDK = TBSDK_ADA.init({
"appkey": '23402401',
openTBAPP: true
});
isTBSDK();
}
// 如果是s.click.taobao.com的URL,点击则调用百川goTaoke方法唤起手淘
if(downloadUrl.indexOf('s.click.taobao.com') !== -1) {
window.BC_SDK = TBSDK_ADA.init({
"appkey": '23454468',
"appSecret": '3846ae97316a0b31321a8f493f826986',
openTBAPP: true
});
isTBSDK();
}
};
}
// 淘客url处理 end -----------------------------------------------------------
// 特殊处理
var handleSpecial = function(downloadUrl) {
// 如果downloadUrl是weixin直接打开url(加了&dbnewopen SDK唤起weixin 中间会产生一个空白页)
if (downloadUrl && downloadUrl.indexOf('weixin://') !== -1) {
isSpecial = true;
window.location.href = downloadUrl;
return;
}
// @special openUrl为微信服务,
if (openUrl && openUrl.indexOf('weixin://') !== -1) {
return;
}
// 如果含有手淘url 唤起手淘App的功能
if (window.TBSDK_ADA !== undefined ) {
TKHelper(downloadUrl);
}
};
if (ua.match(/iphone/ig) || ua.match(/ipad/ig)) {
// ios
downloadUrl = window.downloadAppConfig.iosDownloadUrl;
handleSpecial(downloadUrl);
if(isSpecial){
return;
}
if (ua.match(/MicroMessenger/ig)) {
formatUrl(downloadUrl);
} else {
if (openUrl) {
window.location.href = openUrl;
} else {
if (downloadUrl.indexOf('itunes.apple.com') != -1) {
var ifr = document.createElement('iframe');
ifr.src = downloadUrl;
ifr.style.display = 'none';
window.setTimeout(function() {
document.body.appendChild(ifr);
}, 300)
} else {
formatUrl(downloadUrl);
}
}
}
} else {
// android
downloadUrl = window.downloadAppConfig.androidDownloadUrl;
handleSpecial(downloadUrl);
if(isSpecial){
return;
}
// 如果有oepnUrl
if (openUrl) {
window.location.href = openUrl;
return;
}
if (downloadUrl.indexOf('.apk') != -1 || downloadUrl.indexOf('dbnewopen') != -1) {
window.location.href = downloadUrl;
} else {
formatUrl(downloadUrl);
}
}
}
window.downloadApp = downloadApp;
})(Zepto);
;
(function ($) {
function safe_add(x, y) {
var lsw = (x & 65535) + (y & 65535), msw = (x >> 16) + (y >> 16) + (lsw >> 16);
return (msw << 16) | (lsw & 65535)
}
function bit_rol(num, cnt) {
return (num << cnt) | (num >>> (32 - cnt))
}
function md5_cmn(q, a, b, x, s, t) {
return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b)
}
function md5_ff(a, b, c, d, x, s, t) {
return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t)
}
function md5_gg(a, b, c, d, x, s, t) {
return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t)
}
function md5_hh(a, b, c, d, x, s, t) {
return md5_cmn(b ^ c ^ d, a, b, x, s, t)
}
function md5_ii(a, b, c, d, x, s, t) {
return md5_cmn(c ^ (b | (~d)), a, b, x, s, t)
}
function binl_md5(x, len) {
x[len >> 5] |= 128 << ((len) % 32);
x[(((len + 64) >>> 9) << 4) + 14] = len;
var i, olda, oldb, oldc, oldd, a = 1732584193, b = -271733879, c = -1732584194, d = 271733878;
for (i = 0; i < x.length; i += 16) {
olda = a;
oldb = b;
oldc = c;
oldd = d;
a = md5_ff(a, b, c, d, x[i], 7, -680876936);
d = md5_ff(d, a, b, c, x[i + 1], 12, -389564586);
c = md5_ff(c, d, a, b, x[i + 2], 17, 606105819);
b = md5_ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = md5_ff(a, b, c, d, x[i + 4], 7, -176418897);
d = md5_ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = md5_ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = md5_ff(b, c, d, a, x[i + 7], 22, -45705983);
a = md5_ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = md5_ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = md5_ff(c, d, a, b, x[i + 10], 17, -42063);
b = md5_ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = md5_ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = md5_ff(d, a, b, c, x[i + 13], 12, -40341101);
c = md5_ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = md5_ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = md5_gg(a, b, c, d, x[i + 1], 5, -165796510);
d = md5_gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = md5_gg(c, d, a, b, x[i + 11], 14, 643717713);
b = md5_gg(b, c, d, a, x[i], 20, -373897302);
a = md5_gg(a, b, c, d, x[i + 5], 5, -701558691);
d = md5_gg(d, a, b, c, x[i + 10], 9, 38016083);
c = md5_gg(c, d, a, b, x[i + 15], 14, -660478335);
b = md5_gg(b, c, d, a, x[i + 4], 20, -405537848);
a = md5_gg(a, b, c, d, x[i + 9], 5, 568446438);
d = md5_gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = md5_gg(c, d, a, b, x[i + 3], 14, -187363961);
b = md5_gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = md5_gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = md5_gg(d, a, b, c, x[i + 2], 9, -51403784);
c = md5_gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = md5_gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = md5_hh(a, b, c, d, x[i + 5], 4, -378558);
d = md5_hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = md5_hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = md5_hh(b, c, d, a, x[i + 14], 23, -35309556);
a = md5_hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = md5_hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = md5_hh(c, d, a, b, x[i + 7], 16, -155497632);
b = md5_hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = md5_hh(a, b, c, d, x[i + 13], 4, 681279174);
d = md5_hh(d, a, b, c, x[i], 11, -358537222);
c = md5_hh(c, d, a, b, x[i + 3], 16, -722521979);
b = md5_hh(b, c, d, a, x[i + 6], 23, 76029189);
a = md5_hh(a, b, c, d, x[i + 9], 4, -640364487);
d = md5_hh(d, a, b, c, x[i + 12], 11, -421815835);
c = md5_hh(c, d, a, b, x[i + 15], 16, 530742520);
b = md5_hh(b, c, d, a, x[i + 2], 23, -995338651);
a = md5_ii(a, b, c, d, x[i], 6, -198630844);
d = md5_ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = md5_ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = md5_ii(b, c, d, a, x[i + 5], 21, -57434055);
a = md5_ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = md5_ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = md5_ii(c, d, a, b, x[i + 10], 15, -1051523);
b = md5_ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = md5_ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = md5_ii(d, a, b, c, x[i + 15], 10, -30611744);
c = md5_ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = md5_ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = md5_ii(a, b, c, d, x[i + 4], 6, -145523070);
d = md5_ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = md5_ii(c, d, a, b, x[i + 2], 15, 718787259);
b = md5_ii(b, c, d, a, x[i + 9], 21, -343485551);
a = safe_add(a, olda);
b = safe_add(b, oldb);
c = safe_add(c, oldc);
d = safe_add(d, oldd)
}
return [a, b, c, d]
}
function binl2rstr(input) {
var i, output = "";
for (i = 0; i < input.length * 32; i += 8) {
output += String.fromCharCode((input[i >> 5] >>> (i % 32)) & 255)
}
return output
}
function rstr2binl(input) {
var i, output = [];
output[(input.length >> 2) - 1] = undefined;
for (i = 0; i < output.length; i += 1) {
output[i] = 0
}
for (i = 0; i < input.length * 8; i += 8) {
output[i >> 5] |= (input.charCodeAt(i / 8) & 255) << (i % 32)
}
return output
}
function rstr_md5(s) {
return binl2rstr(binl_md5(rstr2binl(s), s.length * 8))
}
function rstr_hmac_md5(key, data) {
var i, bkey = rstr2binl(key), ipad = [], opad = [], hash;
ipad[15] = opad[15] = undefined;
if (bkey.length > 16) {
bkey = binl_md5(bkey, key.length * 8)
}
for (i = 0; i < 16; i += 1) {
ipad[i] = bkey[i] ^ 909522486;
opad[i] = bkey[i] ^ 1549556828
}
hash = binl_md5(ipad.concat(rstr2binl(data)), 512 + data.length * 8);
return binl2rstr(binl_md5(opad.concat(hash), 512 + 128))
}
function rstr2hex(input) {
var hex_tab = "0123456789abcdef", output = "", x, i;
for (i = 0; i < input.length; i += 1) {
x = input.charCodeAt(i);
output += hex_tab.charAt((x >>> 4) & 15) + hex_tab.charAt(x & 15)
}
return output
}
function str2rstr_utf8(input) {
return unescape(encodeURIComponent(input))
}
function raw_md5(s) {
return rstr_md5(str2rstr_utf8(s))
}
function hex_md5(s) {
return rstr2hex(raw_md5(s))
}
function raw_hmac_md5(k, d) {
return rstr_hmac_md5(str2rstr_utf8(k), str2rstr_utf8(d))
}
function hex_hmac_md5(k, d) {
return rstr2hex(raw_hmac_md5(k, d))
}
duiba_md5 = function (string, key, raw) {
if (!key) {
if (!raw) {
return hex_md5(string)
} else {
return raw_md5(string)
}
}
if (!raw) {
return hex_hmac_md5(key, string)
} else {
return raw_hmac_md5(key, string)
}
};
var hexcase = 0;
var b64pad = "";
var chrsz = 8;
$.extend({
duiba_b64_sha: function (input) {
return binb2b64(core_sha1(str2binb(input), input.length * chrsz))
}
});
function core_sha1(x, len) {
x[len >> 5] |= 128 << (24 - len % 32);
x[((len + 64 >> 9) << 4) + 15] = len;
var w = Array(80);
var a = 1732584193;
var b = -271733879;
var c = -1732584194;
var d = 271733878;
var e = -1009589776;
for (var i = 0; i < x.length; i += 16) {
var olda = a;
var oldb = b;
var oldc = c;
var oldd = d;
var olde = e;
for (var j = 0; j < 80; j++) {
if (j < 16) {
w[j] = x[i + j]
} else {
w[j] = rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1)
}
var t = safe_add(safe_add(rol(a, 5), sha1_ft(j, b, c, d)), safe_add(safe_add(e, w[j]), sha1_kt(j)));
e = d;
d = c;
c = rol(b, 30);
b = a;
a = t
}
a = safe_add(a, olda);
b = safe_add(b, oldb);
c = safe_add(c, oldc);
d = safe_add(d, oldd);
e = safe_add(e, olde)
}
return Array(a, b, c, d, e)
}
function sha1_ft(t, b, c, d) {
if (t < 20) {
return (b & c) | ((~b) & d)
}
if (t < 40) {
return b ^ c ^ d
}
if (t < 60) {
return (b & c) | (b & d) | (c & d)
}
return b ^ c ^ d
}
function sha1_kt(t) {
return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 : (t < 60) ? -1894007588 : -899497514
}
function core_hmac_sha1(key, data) {
var bkey = str2binb(key);
if (bkey.length > 16) {
bkey = core_sha1(bkey, key.length * chrsz)
}
var ipad = Array(16), opad = Array(16);
for (var i = 0; i < 16; i++) {
ipad[i] = bkey[i] ^ 909522486;
opad[i] = bkey[i] ^ 1549556828
}
var hash = core_sha1(ipad.concat(str2binb(data)), 512 + data.length * chrsz);
return core_sha1(opad.concat(hash), 512 + 160)
}
function safe_add(x, y) {
var lsw = (x & 65535) + (y & 65535);
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
return (msw << 16) | (lsw & 65535)
}
function rol(num, cnt) {
return (num << cnt) | (num >>> (32 - cnt))
}
function str2binb(str) {
var bin = Array();
var mask = (1 << chrsz) - 1;
for (var i = 0; i < str.length * chrsz; i += chrsz) {
bin[i >> 5] |= (str.charCodeAt(i / chrsz) & mask) << (32 - chrsz - i % 32)
}
return bin
}
function binb2str(bin) {
var str = "";
var mask = (1 << chrsz) - 1;
for (var i = 0; i < bin.length * 32; i += chrsz) {
str += String.fromCharCode((bin[i >> 5] >>> (32 - chrsz - i % 32)) & mask)
}
return str
}
function binb2hex(binarray) {
var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
var str = "";
for (var i = 0; i < binarray.length * 4; i++) {
str += hex_tab.charAt((binarray[i >> 2] >> ((3 - i % 4) * 8 + 4)) & 15) + hex_tab.charAt((binarray[i >> 2] >> ((3 - i % 4) * 8)) & 15)
}
return str
}
function binb2b64(binarray) {
var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var str = "";
for (var i = 0; i < binarray.length * 4; i += 3) {
var triplet = (((binarray[i >> 2] >> 8 * (3 - i % 4)) & 255) << 16) | (((binarray[i + 1 >> 2] >> 8 * (3 - (i + 1) % 4)) & 255) << 8) | ((binarray[i + 2 >> 2] >> 8 * (3 - (i + 2) % 4)) & 255);
for (var j = 0; j < 4; j++) {
if (i * 8 + j * 6 > binarray.length * 32) {
str += b64pad
} else {
str += tab.charAt((triplet >> 6 * (3 - j)) & 63)
}
}
}
str = str + "=";
return str
}
window.duiba_md5 = duiba_md5;
}(Zepto));
\ No newline at end of file
// Zepto 1.1.4 (generated with Zepto Builder) - zepto event ajax form ie selector - zeptojs.com/license
var Zepto=function(){function t(t){return null==t?t+"":U[J.call(t)]||"object"}function e(e){return"function"==t(e)}function n(t){return null!=t&&t==t.window}function r(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function i(e){return"object"==t(e)}function o(t){return i(t)&&!n(t)&&Object.getPrototypeOf(t)==Object.prototype}function s(t){return"number"==typeof t.length}function a(t){return P.call(t,function(t){return null!=t})}function u(t){return t.length>0?j.fn.concat.apply([],t):t}function c(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function l(t){return t in $?$[t]:$[t]=RegExp("(^|\\s)"+t+"(\\s|$)")}function f(t,e){return"number"!=typeof e||L[c(t)]?e:e+"px"}function h(t){var e,n;return Z[t]||(e=A.createElement(t),A.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),Z[t]=n),Z[t]}function p(t){return"children"in t?O.call(t.children):j.map(t.childNodes,function(t){return 1==t.nodeType?t:w})}function d(t,e,n){for(E in e)n&&(o(e[E])||G(e[E]))?(o(e[E])&&!o(t[E])&&(t[E]={}),G(e[E])&&!G(t[E])&&(t[E]=[]),d(t[E],e[E],n)):e[E]!==w&&(t[E]=e[E])}function m(t,e){return null==e?j(t):j(t).filter(e)}function v(t,n,r,i){return e(n)?n.call(t,r,i):n}function g(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function y(t,e){var n=t.className||"",r=n&&n.baseVal!==w;return e===w?r?n.baseVal:n:(r?n.baseVal=e:t.className=e,w)}function x(t){var e;try{return t?"true"==t||("false"==t?!1:"null"==t?null:/^0/.test(t)||isNaN(e=Number(t))?/^[\[\{]/.test(t)?j.parseJSON(t):t:e):t}catch(n){return t}}function b(t,e){e(t);for(var n=0,r=t.childNodes.length;r>n;n++)b(t.childNodes[n],e)}var w,E,j,N,C,T,S=[],O=S.slice,P=S.filter,A=window.document,Z={},$={},L={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},_=/^\s*<(\w+|!)[^>]*>/,D=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,k=/^(?:body|html)$/i,q=/([A-Z])/g,M=["val","css","html","text","data","width","height","offset"],z=["after","prepend","before","append"],F=A.createElement("table"),H=A.createElement("tr"),I={tr:A.createElement("tbody"),tbody:F,thead:F,tfoot:F,td:H,th:H,"*":A.createElement("div")},V=/complete|loaded|interactive/,B=/^[\w-]*$/,U={},J=U.toString,X={},W=A.createElement("div"),Y={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},G=Array.isArray||function(t){return t instanceof Array};return X.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r,i=t.parentNode,o=!i;return o&&(i=W).appendChild(t),r=~X.qsa(i,e).indexOf(t),o&&W.removeChild(t),r},C=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},T=function(t){return P.call(t,function(e,n){return t.indexOf(e)==n})},X.fragment=function(t,e,n){var r,i,s;return D.test(t)&&(r=j(A.createElement(RegExp.$1))),r||(t.replace&&(t=t.replace(R,"<$1></$2>")),e===w&&(e=_.test(t)&&RegExp.$1),e in I||(e="*"),s=I[e],s.innerHTML=""+t,r=j.each(O.call(s.childNodes),function(){s.removeChild(this)})),o(n)&&(i=j(r),j.each(n,function(t,e){M.indexOf(t)>-1?i[t](e):i.attr(t,e)})),r},X.Z=function(t,e){return t=t||[],t.__proto__=j.fn,t.selector=e||"",t},X.isZ=function(t){return t instanceof X.Z},X.init=function(t,n){var r;if(!t)return X.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&_.test(t))r=X.fragment(t,RegExp.$1,n),t=null;else{if(n!==w)return j(n).find(t);r=X.qsa(A,t)}else{if(e(t))return j(A).ready(t);if(X.isZ(t))return t;if(G(t))r=a(t);else if(i(t))r=[t],t=null;else if(_.test(t))r=X.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==w)return j(n).find(t);r=X.qsa(A,t)}}return X.Z(r,t)},j=function(t,e){return X.init(t,e)},j.extend=function(t){var e,n=O.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){d(t,n,e)}),t},X.qsa=function(t,e){var n,i="#"==e[0],o=!i&&"."==e[0],s=i||o?e.slice(1):e,a=B.test(s);return r(t)&&a&&i?(n=t.getElementById(s))?[n]:[]:1!==t.nodeType&&9!==t.nodeType?[]:O.call(a&&!i?o?t.getElementsByClassName(s):t.getElementsByTagName(e):t.querySelectorAll(e))},j.contains=A.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},j.type=t,j.isFunction=e,j.isWindow=n,j.isArray=G,j.isPlainObject=o,j.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},j.inArray=function(t,e,n){return S.indexOf.call(e,t,n)},j.camelCase=C,j.trim=function(t){return null==t?"":String.prototype.trim.call(t)},j.uuid=0,j.support={},j.expr={},j.map=function(t,e){var n,r,i,o=[];if(s(t))for(r=0;t.length>r;r++)n=e(t[r],r),null!=n&&o.push(n);else for(i in t)n=e(t[i],i),null!=n&&o.push(n);return u(o)},j.each=function(t,e){var n,r;if(s(t)){for(n=0;t.length>n;n++)if(e.call(t[n],n,t[n])===!1)return t}else for(r in t)if(e.call(t[r],r,t[r])===!1)return t;return t},j.grep=function(t,e){return P.call(t,e)},window.JSON&&(j.parseJSON=JSON.parse),j.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){U["[object "+e+"]"]=e.toLowerCase()}),j.fn={forEach:S.forEach,reduce:S.reduce,push:S.push,sort:S.sort,indexOf:S.indexOf,concat:S.concat,map:function(t){return j(j.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return j(O.apply(this,arguments))},ready:function(t){return V.test(A.readyState)&&A.body?t(j):A.addEventListener("DOMContentLoaded",function(){t(j)},!1),this},get:function(t){return t===w?O.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return S.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return e(t)?this.not(this.not(t)):j(P.call(this,function(e){return X.matches(e,t)}))},add:function(t,e){return j(T(this.concat(j(t,e))))},is:function(t){return this.length>0&&X.matches(this[0],t)},not:function(t){var n=[];if(e(t)&&t.call!==w)this.each(function(e){t.call(this,e)||n.push(this)});else{var r="string"==typeof t?this.filter(t):s(t)&&e(t.item)?O.call(t):j(t);this.forEach(function(t){0>r.indexOf(t)&&n.push(t)})}return j(n)},has:function(t){return this.filter(function(){return i(t)?j.contains(this,t):j(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!i(t)?t:j(t)},last:function(){var t=this[this.length-1];return t&&!i(t)?t:j(t)},find:function(t){var e,n=this;return e=t?"object"==typeof t?j(t).filter(function(){var t=this;return S.some.call(n,function(e){return j.contains(e,t)})}):1==this.length?j(X.qsa(this[0],t)):this.map(function(){return X.qsa(this,t)}):[]},closest:function(t,e){var n=this[0],i=!1;for("object"==typeof t&&(i=j(t));n&&!(i?i.indexOf(n)>=0:X.matches(n,t));)n=n!==e&&!r(n)&&n.parentNode;return j(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=j.map(n,function(t){return(t=t.parentNode)&&!r(t)&&0>e.indexOf(t)?(e.push(t),t):w});return m(e,t)},parent:function(t){return m(T(this.pluck("parentNode")),t)},children:function(t){return m(this.map(function(){return p(this)}),t)},contents:function(){return this.map(function(){return O.call(this.childNodes)})},siblings:function(t){return m(this.map(function(t,e){return P.call(p(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return j.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=h(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var n=e(t);if(this[0]&&!n)var r=j(t).get(0),i=r.parentNode||this.length>1;return this.each(function(e){j(this).wrapAll(n?t.call(this,e):i?r.cloneNode(!0):r)})},wrapAll:function(t){if(this[0]){j(this[0]).before(t=j(t));for(var e;(e=t.children()).length;)t=e.first();j(t).append(this)}return this},wrapInner:function(t){var n=e(t);return this.each(function(e){var r=j(this),i=r.contents(),o=n?t.call(this,e):t;i.length?i.wrapAll(o):r.append(o)})},unwrap:function(){return this.parent().each(function(){j(this).replaceWith(j(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=j(this);(t===w?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return j(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return j(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;j(this).empty().append(v(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=v(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this[0].textContent:null},attr:function(t,e){var n;return"string"!=typeof t||1 in arguments?this.each(function(n){if(1===this.nodeType)if(i(t))for(E in t)g(this,E,t[E]);else g(this,t,v(this,e,n,this.getAttribute(t)))}):this.length&&1===this[0].nodeType?!(n=this[0].getAttribute(t))&&t in this[0]?this[0][t]:n:w},removeAttr:function(t){return this.each(function(){1===this.nodeType&&g(this,t)})},prop:function(t,e){return t=Y[t]||t,1 in arguments?this.each(function(n){this[t]=v(this,e,n,this[t])}):this[0]&&this[0][t]},data:function(t,e){var n="data-"+t.replace(q,"-$1").toLowerCase(),r=1 in arguments?this.attr(n,e):this.attr(n);return null!==r?x(r):w},val:function(t){return 0 in arguments?this.each(function(e){this.value=v(this,t,e,this.value)}):this[0]&&(this[0].multiple?j(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each(function(e){var n=j(this),r=v(this,t,e,n.offset()),i=n.offsetParent().offset(),o={top:r.top-i.top,left:r.left-i.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)});if(!this.length)return null;var e=this[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:Math.round(e.width),height:Math.round(e.height)}},css:function(e,n){if(2>arguments.length){var r=this[0],i=getComputedStyle(r,"");if(!r)return;if("string"==typeof e)return r.style[C(e)]||i.getPropertyValue(e);if(G(e)){var o={};return j.each(e,function(t,e){o[e]=r.style[C(e)]||i.getPropertyValue(e)}),o}}var s="";if("string"==t(e))n||0===n?s=c(e)+":"+f(e,n):this.each(function(){this.style.removeProperty(c(e))});else for(E in e)e[E]||0===e[E]?s+=c(E)+":"+f(E,e[E])+";":this.each(function(){this.style.removeProperty(c(E))});return this.each(function(){this.style.cssText+=";"+s})},index:function(t){return t?this.indexOf(j(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?S.some.call(this,function(t){return this.test(y(t))},l(t)):!1},addClass:function(t){return t?this.each(function(e){if("className"in this){N=[];var n=y(this),r=v(this,t,e,n);r.split(/\s+/g).forEach(function(t){j(this).hasClass(t)||N.push(t)},this),N.length&&y(this,n+(n?" ":"")+N.join(" "))}}):this},removeClass:function(t){return this.each(function(e){if("className"in this){if(t===w)return y(this,"");N=y(this),v(this,t,e,N).split(/\s+/g).forEach(function(t){N=N.replace(l(t)," ")}),y(this,N.trim())}})},toggleClass:function(t,e){return t?this.each(function(n){var r=j(this),i=v(this,t,n,y(this));i.split(/\s+/g).forEach(function(t){(e===w?!r.hasClass(t):e)?r.addClass(t):r.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===w?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===w?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),r=k.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(j(t).css("margin-top"))||0,n.left-=parseFloat(j(t).css("margin-left"))||0,r.top+=parseFloat(j(e[0]).css("border-top-width"))||0,r.left+=parseFloat(j(e[0]).css("border-left-width"))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||A.body;t&&!k.test(t.nodeName)&&"static"==j(t).css("position");)t=t.offsetParent;return t})}},j.fn.detach=j.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});j.fn[t]=function(i){var o,s=this[0];return i===w?n(s)?s["inner"+e]:r(s)?s.documentElement["scroll"+e]:(o=this.offset())&&o[t]:this.each(function(e){s=j(this),s.css(t,v(this,i,e,s[t]()))})}}),z.forEach(function(e,n){var r=n%2;j.fn[e]=function(){var e,i,o=j.map(arguments,function(n){return e=t(n),"object"==e||"array"==e||null==n?n:X.fragment(n)}),s=this.length>1;return 1>o.length?this:this.each(function(t,e){i=r?e:e.parentNode,e=0==n?e.nextSibling:1==n?e.firstChild:2==n?e:null;var a=j.contains(A.documentElement,i);o.forEach(function(t){if(s)t=t.cloneNode(!0);else if(!i)return j(t).remove();i.insertBefore(t,e),a&&b(t,function(t){null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src||window.eval.call(window,t.innerHTML)})})})},j.fn[r?e+"To":"insert"+(n?"Before":"After")]=function(t){return j(t)[e](this),this}}),X.Z.prototype=j.fn,X.uniq=T,X.deserializeValue=x,j.zepto=X,j}();window.Zepto=Zepto,void 0===window.$&&(window.$=Zepto),function(t){function e(e,n,r){var i=t.Event(n);return t(e).trigger(i,r),!i.isDefaultPrevented()}function n(t,n,r,i){return t.global?e(n||y,r,i):void 0}function r(e){e.global&&0===t.active++&&n(e,null,"ajaxStart")}function i(e){e.global&&!--t.active&&n(e,null,"ajaxStop")}function o(t,e){var r=e.context;return e.beforeSend.call(r,t,e)===!1||n(e,r,"ajaxBeforeSend",[t,e])===!1?!1:(n(e,r,"ajaxSend",[t,e]),void 0)}function s(t,e,r,i){var o=r.context,s="success";r.success.call(o,t,s,e),i&&i.resolveWith(o,[t,s,e]),n(r,o,"ajaxSuccess",[e,r,t]),u(s,e,r)}function a(t,e,r,i,o){var s=i.context;i.error.call(s,r,e,t),o&&o.rejectWith(s,[r,e,t]),n(i,s,"ajaxError",[r,i,t||e]),u(e,r,i)}function u(t,e,r){var o=r.context;r.complete.call(o,e,t),n(r,o,"ajaxComplete",[e,r]),i(r)}function c(){}function l(t){return t&&(t=t.split(";",2)[0]),t&&(t==j?"html":t==E?"json":b.test(t)?"script":w.test(t)&&"xml")||"text"}function f(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function h(e){e.processData&&e.data&&"string"!=t.type(e.data)&&(e.data=t.param(e.data,e.traditional)),!e.data||e.type&&"GET"!=e.type.toUpperCase()||(e.url=f(e.url,e.data),e.data=void 0)}function p(e,n,r,i){return t.isFunction(n)&&(i=r,r=n,n=void 0),t.isFunction(r)||(i=r,r=void 0),{url:e,data:n,success:r,dataType:i}}function d(e,n,r,i){var o,s=t.isArray(n),a=t.isPlainObject(n);t.each(n,function(n,u){o=t.type(u),i&&(n=r?i:i+"["+(a||"object"==o||"array"==o?n:"")+"]"),!i&&s?e.add(u.name,u.value):"array"==o||!r&&"object"==o?d(e,u,r,n):e.add(n,u)})}var m,v,g=0,y=window.document,x=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,b=/^(?:text|application)\/javascript/i,w=/^(?:text|application)\/xml/i,E="application/json",j="text/html",N=/^\s*$/;t.active=0,t.ajaxJSONP=function(e,n){if(!("type"in e))return t.ajax(e);var r,i,u=e.jsonpCallback,c=(t.isFunction(u)?u():u)||"jsonp"+ ++g,l=y.createElement("script"),f=window[c],h=function(e){t(l).triggerHandler("error",e||"abort")},p={abort:h};return n&&n.promise(p),t(l).on("load error",function(o,u){clearTimeout(i),t(l).off().remove(),"error"!=o.type&&r?s(r[0],p,e,n):a(null,u||"error",p,e,n),window[c]=f,r&&t.isFunction(f)&&f(r[0]),f=r=void 0}),o(p,e)===!1?(h("abort"),p):(window[c]=function(){r=arguments},l.src=e.url.replace(/\?(.+)=\?/,"?$1="+c),y.head.appendChild(l),e.timeout>0&&(i=setTimeout(function(){h("timeout")},e.timeout)),p)},t.ajaxSettings={type:"GET",beforeSend:c,success:c,error:c,complete:c,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:E,xml:"application/xml, text/xml",html:j,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},t.ajax=function(e){var n=t.extend({},e||{}),i=t.Deferred&&t.Deferred();for(m in t.ajaxSettings)void 0===n[m]&&(n[m]=t.ajaxSettings[m]);r(n),n.crossDomain||(n.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(n.url)&&RegExp.$2!=window.location.host),n.url||(n.url=""+window.location),h(n);var u=n.dataType,p=/\?.+=\?/.test(n.url);if(p&&(u="jsonp"),n.cache!==!1&&(e&&e.cache===!0||"script"!=u&&"jsonp"!=u)||(n.url=f(n.url,"_="+Date.now())),"jsonp"==u)return p||(n.url=f(n.url,n.jsonp?n.jsonp+"=?":n.jsonp===!1?"":"callback=?")),t.ajaxJSONP(n,i);var d,g=n.accepts[u],y={},x=function(t,e){y[t.toLowerCase()]=[t,e]},b=/^([\w-]+:)\/\//.test(n.url)?RegExp.$1:window.location.protocol,w=n.xhr(),E=w.setRequestHeader;if(i&&i.promise(w),n.crossDomain||x("X-Requested-With","XMLHttpRequest"),x("Accept",g||"*/*"),(g=n.mimeType||g)&&(g.indexOf(",")>-1&&(g=g.split(",",2)[0]),w.overrideMimeType&&w.overrideMimeType(g)),(n.contentType||n.contentType!==!1&&n.data&&"GET"!=n.type.toUpperCase())&&x("Content-Type",n.contentType||"application/x-www-form-urlencoded"),n.headers)for(v in n.headers)x(v,n.headers[v]);if(w.setRequestHeader=x,w.onreadystatechange=function(){if(4==w.readyState){w.onreadystatechange=c,clearTimeout(d);var e,r=!1;if(w.status>=200&&300>w.status||304==w.status||0==w.status&&"file:"==b){u=u||l(n.mimeType||w.getResponseHeader("content-type")),e=w.responseText;try{"script"==u?(1,eval)(e):"xml"==u?e=w.responseXML:"json"==u&&(e=N.test(e)?null:t.parseJSON(e))}catch(o){r=o}r?a(r,"parsererror",w,n,i):s(e,w,n,i)}else a(w.statusText||null,w.status?"error":"abort",w,n,i)}},o(w,n)===!1)return w.abort(),a(null,"abort",w,n,i),w;if(n.xhrFields)for(v in n.xhrFields)w[v]=n.xhrFields[v];var j="async"in n?n.async:!0;w.open(n.type,n.url,j,n.username,n.password);for(v in y)E.apply(w,y[v]);return n.timeout>0&&(d=setTimeout(function(){w.onreadystatechange=c,w.abort(),a(null,"timeout",w,n,i)},n.timeout)),w.send(n.data?n.data:null),w},t.get=function(){return t.ajax(p.apply(null,arguments))},t.post=function(){var e=p.apply(null,arguments);return e.type="POST",t.ajax(e)},t.getJSON=function(){var e=p.apply(null,arguments);return e.dataType="json",t.ajax(e)},t.fn.load=function(e,n,r){if(!this.length)return this;var i,o=this,s=e.split(/\s/),a=p(e,n,r),u=a.success;return s.length>1&&(a.url=s[0],i=s[1]),a.success=function(e){o.html(i?t("<div>").html(e.replace(x,"")).find(i):e),u&&u.apply(o,arguments)},t.ajax(a),this};var C=encodeURIComponent;t.param=function(t,e){var n=[];return n.add=function(t,e){this.push(C(t)+"="+C(e))},d(n,t,e),n.join("&").replace(/%20/g,"+")}}(Zepto),function(t){function e(t){return t._zid||(t._zid=h++)}function n(t,n,o,s){if(n=r(n),n.ns)var a=i(n.ns);return(v[e(t)]||[]).filter(function(t){return!(!t||n.e&&t.e!=n.e||n.ns&&!a.test(t.ns)||o&&e(t.fn)!==e(o)||s&&t.sel!=s)})}function r(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function i(t){return RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function o(t,e){return t.del&&!y&&t.e in x||!!e}function s(t){return b[t]||y&&x[t]||t}function a(n,i,a,u,l,h,p){var d=e(n),m=v[d]||(v[d]=[]);i.split(/\s/).forEach(function(e){if("ready"==e)return t(document).ready(a);var i=r(e);i.fn=a,i.sel=l,i.e in b&&(a=function(e){var n=e.relatedTarget;return!n||n!==this&&!t.contains(this,n)?i.fn.apply(this,arguments):f}),i.del=h;var d=h||a;i.proxy=function(t){if(t=c(t),!t.isImmediatePropagationStopped()){t.data=u;var e=d.apply(n,t._args==f?[t]:[t].concat(t._args));return e===!1&&(t.preventDefault(),t.stopPropagation()),e}},i.i=m.length,m.push(i),"addEventListener"in n&&n.addEventListener(s(i.e),i.proxy,o(i,p))})}function u(t,r,i,a,u){var c=e(t);(r||"").split(/\s/).forEach(function(e){n(t,e,i,a).forEach(function(e){delete v[c][e.i],"removeEventListener"in t&&t.removeEventListener(s(e.e),e.proxy,o(e,u))})})}function c(e,n){return(n||!e.isDefaultPrevented)&&(n||(n=e),t.each(N,function(t,r){var i=n[t];e[t]=function(){return this[r]=w,i&&i.apply(n,arguments)},e[r]=E}),(n.defaultPrevented!==f?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(e.isDefaultPrevented=w)),e}function l(t){var e,n={originalEvent:t};for(e in t)j.test(e)||t[e]===f||(n[e]=t[e]);return c(n,t)}var f,h=1,p=Array.prototype.slice,d=t.isFunction,m=function(t){return"string"==typeof t},v={},g={},y="onfocusin"in window,x={focus:"focusin",blur:"focusout"},b={mouseenter:"mouseover",mouseleave:"mouseout"};g.click=g.mousedown=g.mouseup=g.mousemove="MouseEvents",t.event={add:a,remove:u},t.proxy=function(n,r){var i=2 in arguments&&p.call(arguments,2);if(d(n)){var o=function(){return n.apply(r,i?i.concat(p.call(arguments)):arguments)};return o._zid=e(n),o}if(m(r))return i?(i.unshift(n[r],n),t.proxy.apply(null,i)):t.proxy(n[r],n);throw new TypeError("expected function")},t.fn.bind=function(t,e,n){return this.on(t,e,n)},t.fn.unbind=function(t,e){return this.off(t,e)},t.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var w=function(){return!0},E=function(){return!1},j=/^([A-Z]|returnValue$|layer[XY]$)/,N={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.fn.delegate=function(t,e,n){return this.on(e,t,n)},t.fn.undelegate=function(t,e,n){return this.off(e,t,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,n,r,i,o){var s,c,h=this;return e&&!m(e)?(t.each(e,function(t,e){h.on(t,n,r,e,o)}),h):(m(n)||d(i)||i===!1||(i=r,r=n,n=f),(d(r)||r===!1)&&(i=r,r=f),i===!1&&(i=E),h.each(function(h,d){o&&(s=function(t){return u(d,t.type,i),i.apply(this,arguments)}),n&&(c=function(e){var r,o=t(e.target).closest(n,d).get(0);return o&&o!==d?(r=t.extend(l(e),{currentTarget:o,liveFired:d}),(s||i).apply(o,[r].concat(p.call(arguments,1)))):f}),a(d,e,i,r,n,c||s)}))},t.fn.off=function(e,n,r){var i=this;return e&&!m(e)?(t.each(e,function(t,e){i.off(t,n,e)}),i):(m(n)||d(r)||r===!1||(r=n,n=f),r===!1&&(r=E),i.each(function(){u(this,e,r,n)}))},t.fn.trigger=function(e,n){return e=m(e)||t.isPlainObject(e)?t.Event(e):c(e),e._args=n,this.each(function(){"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)})},t.fn.triggerHandler=function(e,r){var i,o;return this.each(function(s,a){i=l(m(e)?t.Event(e):e),i._args=r,i.target=a,t.each(n(a,e.type||e),function(t,e){return o=e.proxy(i),i.isImmediatePropagationStopped()?!1:f})}),o},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(e){t.fn[e]=function(t){return t?this.bind(e,t):this.trigger(e)}}),["focus","blur"].forEach(function(e){t.fn[e]=function(t){return t?this.bind(e,t):this.each(function(){try{this[e]()}catch(t){}}),this}}),t.Event=function(t,e){m(t)||(e=t,t=e.type);var n=document.createEvent(g[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),c(n)}}(Zepto),function(t){t.fn.serializeArray=function(){var e,n,r=[];return t([].slice.call(this.get(0).elements)).each(function(){e=t(this),n=e.attr("type"),"fieldset"!=this.nodeName.toLowerCase()&&!this.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&("radio"!=n&&"checkbox"!=n||this.checked)&&r.push({name:e.attr("name"),value:e.val()})}),r},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")},t.fn.submit=function(e){if(e)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(Zepto),function(t){"__proto__"in{}||t.extend(t.zepto,{Z:function(e,n){return e=e||[],t.extend(e,t.fn),e.selector=n||"",e.__Z=!0,e},isZ:function(e){return"array"===t.type(e)&&"__Z"in e}});try{getComputedStyle(void 0)}catch(e){var n=getComputedStyle;window.getComputedStyle=function(t){try{return n(t)}catch(e){return null}}}}(Zepto),function(t){function e(e){return e=t(e),!(!e.width()&&!e.height())&&"none"!==e.css("display")}function n(t,e){t=t.replace(/=#\]/g,'="#"]');var n,r,i=a.exec(t);if(i&&i[2]in s&&(n=s[i[2]],r=i[3],t=i[1],r)){var o=Number(r);r=isNaN(o)?r.replace(/^["']|["']$/g,""):o}return e(t,n,r)}var r=t.zepto,i=r.qsa,o=r.matches,s=t.expr[":"]={visible:function(){return e(this)?this:void 0},hidden:function(){return e(this)?void 0:this},selected:function(){return this.selected?this:void 0},checked:function(){return this.checked?this:void 0},parent:function(){return this.parentNode},first:function(t){return 0===t?this:void 0},last:function(t,e){return t===e.length-1?this:void 0},eq:function(t,e,n){return t===n?this:void 0},contains:function(e,n,r){return t(this).text().indexOf(r)>-1?this:void 0},has:function(t,e,n){return r.qsa(this,n).length?this:void 0}},a=RegExp("(.*):(\\w+)(?:\\(([^)]+)\\))?$\\s*"),u=/^\s*>/,c="Zepto"+ +new Date;r.qsa=function(e,o){return n(o,function(n,s,a){try{var l;!n&&s?n="*":u.test(n)&&(l=t(e).addClass(c),n="."+c+" "+n);var f=i(e,n)}catch(h){throw console.error("error performing selector: %o",o),h}finally{l&&l.removeClass(c)}return s?r.uniq(t.map(f,function(t,e){return s.call(t,e,f,a)})):f})},r.matches=function(t,e){return n(e,function(e,n,r){return!(e&&!o(t,e)||n&&n.call(t,null,r)!==t)})}}(Zepto);
\ No newline at end of file
{
"success":true,
"code":"000000",
"desc":"成功",
"timestamp":1552548376799,
"data":{
"newFlag":false,
"addTimes":0,
"leftTimes":21,
"mySongCount":18
}
}
\ No newline at end of file
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless
/.rpt2_cache/
*.js linguist-language=TypeScript
\ No newline at end of file
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
You must give any other recipients of the Work or Derivative Works a copy of this License; and
You must cause any modified files to carry prominent notices stating that You changed the files; and
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
# tslib
This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
This library is primarily used by the `--importHelpers` flag in TypeScript.
When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file:
```ts
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
exports.x = {};
exports.y = __assign({}, exports.x);
```
will instead be emitted as something like the following:
```ts
var tslib_1 = require("tslib");
exports.x = {};
exports.y = tslib_1.__assign({}, exports.x);
```
Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead.
For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`.
# Installing
For the latest stable version, run:
## npm
```sh
# TypeScript 2.3.3 or later
npm install --save tslib
# TypeScript 2.3.2 or earlier
npm install --save tslib@1.6.1
```
## bower
```sh
# TypeScript 2.3.3 or later
bower install tslib
# TypeScript 2.3.2 or earlier
bower install tslib@1.6.1
```
## JSPM
```sh
# TypeScript 2.3.3 or later
jspm install tslib
# TypeScript 2.3.2 or earlier
jspm install tslib@1.6.1
```
# Usage
Set the `importHelpers` compiler option on the command line:
```
tsc --importHelpers file.ts
```
or in your tsconfig.json:
```json
{
"compilerOptions": {
"importHelpers": true
}
}
```
#### For bower and JSPM users
You will need to add a `paths` mapping for `tslib`, e.g. For Bower users:
```json
{
"compilerOptions": {
"module": "amd",
"importHelpers": true,
"baseUrl": "./",
"paths": {
"tslib" : ["bower_components/tslib/tslib.d.ts"]
}
}
}
```
For JSPM users:
```json
{
"compilerOptions": {
"module": "system",
"importHelpers": true,
"baseUrl": "./",
"paths": {
"tslib" : ["jspm_packages/npm/tslib@1.9.3/tslib.d.ts"]
}
}
}
```
# Contribute
There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.
* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls).
* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript).
* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter.
* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md).
* Read the language specification ([docx](http://go.microsoft.com/fwlink/?LinkId=267121), [pdf](http://go.microsoft.com/fwlink/?LinkId=267238)).
# Documentation
* [Quick tutorial](http://www.typescriptlang.org/Tutorial)
* [Programming handbook](http://www.typescriptlang.org/Handbook)
* [Language specification](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md)
* [Homepage](http://www.typescriptlang.org/)
{
"name": "tslib",
"authors": [
"Microsoft Corp."
],
"homepage": "http://typescriptlang.org/",
"version": "1.9.3",
"license": "Apache-2.0",
"description": "Runtime library for TypeScript helper functions",
"keywords": [
"TypeScript",
"Microsoft",
"compiler",
"language",
"javascript",
"tslib",
"runtime"
],
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/tslib.git"
},
"main": "tslib.js",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"docs",
"package.json",
".npmignore",
".gitignore",
".gitattributes"
]
}
# The `__generator` helper
The `__generator` helper is a function designed to support TypeScript's down-level emit for
async functions when targeting ES5 and earlier. But how, exactly, does it work?
Here's the body of the `__generator` helper:
```js
__generator = function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t;
return { next: verb(0), "throw": verb(1), "return": verb(2) };
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
```
And here's an example of it in use:
```ts
// source
async function func(x) {
try {
await x;
}
catch (e) {
console.error(e);
}
finally {
console.log("finally");
}
}
// generated
function func(x) {
return __awaiter(this, void 0, void 0, function () {
var e_1;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 1, 3, 4]);
return [4 /*yield*/, x];
case 1:
_a.sent();
return [3 /*break*/, 4];
case 2:
e_1 = _a.sent();
console.error(e_1);
return [3 /*break*/, 4];
case 3:
console.log("finally");
return [7 /*endfinally*/];
case 4: return [2 /*return*/];
}
});
});
}
```
There is a lot going on in this function, so the following will break down what each part of the
`__generator` helper does and how it works.
# Opcodes
The `__generator` helper uses opcodes which represent various operations that are interpreted by
the helper to affect its internal state. The following table lists the various opcodes, their
arguments, and their purpose:
| Opcode | Arguments | Purpose |
|----------------|-----------|--------------------------------------------------------------------------------------------------------------------------------|
| 0 (next) | *value* | Starts the generator, or resumes the generator with *value* as the result of the `AwaitExpression` where execution was paused. |
| 1 (throw) | *value* | Resumes the generator, throwing *value* at `AwaitExpression` where execution was paused. |
| 2 (return) | *value* | Exits the generator, executing any `finally` blocks starting at the `AwaitExpression` where execution was paused. |
| 3 (break) | *label* | Performs an unconditional jump to the specified label, executing any `finally` between the current instruction and the label. |
| 4 (yield) | *value* | Suspends the generator, setting the resume point at the next label and yielding the value. |
| 5 (yieldstar) | *value* | Suspends the generator, setting the resume point at the next label and delegating operations to the supplied value. |
| 6 (catch) | *error* | An internal instruction used to indicate an exception that was thrown from the body of the generator. |
| 7 (endfinally) | | Exits a finally block, resuming any previous operation (such as a break, return, throw, etc.) |
# State
The `_`, `f`, `y`, and `t` variables make up the persistent state of the `__generator` function. Each variable
has a specific purpose, as described in the following sections:
## The `_` variable
The `__generator` helper must share state between its internal `step` orchestration function and
the `body` function passed to the helper.
```ts
var _ = {
label: 0,
sent: function() {
if (t[0] & 1) // NOTE: true for `throw`, but not `next` or `catch`
throw t[1];
return sent[1];
},
trys: [],
ops: []
};
```
The following table describes the members of the `_` state object and their purpose:
| Name | Description |
|---------|---------------------------------------------------------------------------------------------------------------------------|
| `label` | Specifies the next switch case to execute in the `body` function. |
| `sent` | Handles the completion result passed to the generator. |
| `trys` | A stack of **Protected Regions**, which are 4-tuples that describe the labels that make up a `try..catch..finally` block. |
| `ops` | A stack of pending operations used for `try..finally` blocks. |
The `__generator` helper passes this state object to the `body` function for use with switching
between switch cases in the body, handling completions from `AwaitExpression`, etc.
## The `f` variable
The `f` variable indicates whether the generator is currently executing, to prevent re-entry of
the same generator during its execution.
## The `y` variable
The `y` variable stores the iterator passed to a `yieldstar` instruction to which operations should be delegated.
## The `t` variable
The `t` variable is a temporary variable that stores one of the following values:
- The completion value when resuming from a `yield` or `yield*`.
- The error value for a catch block.
- The current **Protected Region**.
- The verb (`next`, `throw`, or `return` method) to delegate to the expression of a `yield*`.
- The result of evaluating the verb delegated to the expression of a `yield*`.
> NOTE: None of the above cases overlap.
# Protected Regions
A **Protected Region** is a region within the `body` function that indicates a
`try..catch..finally` statement. It consists of a 4-tuple that contains 4 labels:
| Offset | Description |
|--------|-----------------------------------------------------------------------------------------|
| 0 | *Required* The label that indicates the beginning of a `try..catch..finally` statement. |
| 1 | *Optional* The label that indicates the beginning of a `catch` clause. |
| 2 | *Optional* The label that indicates the beginning of a `finally` clause. |
| 3 | *Required* The label that indicates the end of the `try..catch..finally` statement. |
# The generator object
The final step of the `__generator` helper is the allocation of an object that implements the
`Generator` protocol, to be used by the `__awaiter` helper:
```ts
return { next: verb(0), "throw": verb(1), "return": verb(2) };
function verb(n) { return function (v) { return step([n, v]); }; }
```
This object translates calls to `next`, `throw`, and `return` to the appropriate Opcodes and
invokes the `step` orchestration function to continue execution. The `throw` and `return` method
names are quoted to better support ES3.
# Orchestration
The `step` function is the main orechestration mechanism for the `__generator` helper. It
interprets opcodes, handles **protected regions**, and communicates results back to the caller.
Here's a closer look at the `step` function:
```ts
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
```
The main body of `step` exists in a `while` loop. This allows us to continually interpret
operations until we have reached some completion value, be it a `return`, `await`, or `throw`.
## Preventing re-entry
The first part of the `step` function is used as a check to prevent re-entry into a currently
executing generator:
```ts
if (f) throw new TypeError("Generator is already executing.");
```
## Running the generator
The main body of the `step` function consists of a `while` loop which continues to evaluate
instructions until the generator exits or is suspended:
```ts
while (_) try ...
```
When the generator has run to completion, the `_` state variable will be cleared, forcing the loop
to exit.
## Evaluating the generator body.
```ts
try {
...
op = body.call(thisArg, _);
}
catch (e) {
op = [6, e];
y = 0;
}
finally {
f = t = 0;
}
```
Depending on the current operation, we re-enter the generator body to start or continue execution.
Here we invoke `body` with `thisArg` as the `this` binding and the `_` state object as the only
argument. The result is a tuple that contains the next Opcode and argument.
If evaluation of the body resulted in an exception, we convert this into an Opcode 6 ("catch")
operation to be handled in the next spin of the `while` loop. We also clear the `y` variable in
case it is set to ensure we are no longer delegating operations as the exception occurred in
user code *outside* of, or at the function boundary of, the delegated iterator (otherwise the
iterator would have handled the exception itself).
After executing user code, we clear the `f` flag that indicates we are executing the generator,
as well as the `t` temporary value so that we don't hold onto values sent to the generator for
longer than necessary.
Inside of the `try..finally` statement are a series of statements that are used to evaluate the
operations of the transformed generator body.
The first thing we do is mark the generator as executing:
```ts
if (f = 1, ...)
```
Despite the fact this expression is part of the head of an `if` statement, the comma operator
causes it to be evaluated and the result thrown out. This is a minification added purely to
reduce the overall footprint of the helper.
## Delegating `yield*`
The first two statements of the `try..finally` statement handle delegation for `yield*`:
```ts
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
```
If the `y` variable is set, and `y` has a `next`, `throw`, or `return` method (depending on the
current operation), we invoke this method and store the return value (an IteratorResult) in `t`.
If `t` indicates it is a yielded value (e.g. `t.done === false`), we return `t` to the caller.
If `t` indicates it is a returned value (e.g. `t.done === true`), we mark the operation with the
`next` Opcode, and the returned value.
If `y` did not have the appropriate method, or `t` was a returned value, we reset `y` to a falsey
value and continue processing the operation.
## Handling operations
The various Opcodes are handled in the following switch statement:
```ts
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
```
The following sections describe the various Opcodes:
### Opcode 0 ("next") and Opcode 1 ("throw")
```ts
case 0: // next
case 1: // throw
t = op;
break;
```
Both Opcode 0 ("next") and Opcode 1 ("throw") have the same behavior. The current operation is
stored in the `t` variable and the `body` function is invoked. The `body` function should call
`_.sent()` which will evaluate the appropriate completion result.
### Opcode 4 ("yield")
```ts
case 4: // yield
_.label++;
return { value: op[1], done: false };
```
When we encounter Opcode 4 ("yield"), we increment the label by one to indicate the point at which
the generator will resume execution. We then return an `IteratorResult` whose `value` is the
yielded value, and `done` is `false`.
### Opcode 5 ("yieldstar")
```ts
case 5: // yieldstar
_.label++;
y = op[1];
op = [0];
continue;
```
When we receive Opcode 5 ("yieldstar"), we increment the label by one to indicate the point at which
the generator will resume execution. We then store the iterator in `op[1]` in the `y` variable, and
set the operation to delegate to Opcode 0 ("next") with no value. Finally, we continue execution at
the top of the loop to start delegation.
### Opcode 7 ("endfinally")
```ts
case 7:
op = _.ops.pop();
_.trys.pop();
continue;
```
Opcode 7 ("endfinally") indicates that we have hit the end of a `finally` clause, and that the last
operation recorded before entering the `finally` block should be evaluated.
### Opcode 2 ("return"), Opcode 3 ("break"), and Opcode 6 ("catch")
```ts
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
if (t[2])
_.ops.pop();
_.trys.pop();
continue;
}
```
The handling for Opcode 2 ("return"), Opcode 3 ("break") and Opcode 6 ("catch") is more
complicated, as we must obey the specified runtime semantics of generators. The first line in this
clause gets the current **Protected Region** if found and stores it in the `t` temp variable:
```ts
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && ...) ...
```
The remainder of this statement, as well as the following by several `if` statements test for more
complex conditions. The first of these is the following:
```ts
if (!(t = ...) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
```
If we encounter an Opcode 6 ("catch") or Opcode 2 ("return"), and we are not in a protected region,
then this operation completes the generator by setting the `_` variable to a falsey value. The
`continue` statement resumes execution at the top of the `while` statement, which will exit the loop
so that we continue execution at the statement following the loop.
```ts
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
_.label = op[1];
break;
}
```
The `if` statement above handles Opcode 3 ("break") when we are either not in a **protected region**, or
are performing an unconditional jump to a label inside of the current **protected region**. In this case
we can unconditionally jump to the specified label.
```ts
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
```
The `if` statement above handles Opcode 6 ("catch") when inside the `try` block of a **protected
region**. In this case we jump to the `catch` block, if present. We replace the value of `t` with
the operation so that the exception can be read as the first statement of the transformed `catch`
clause of the transformed generator body.
```ts
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
```
This `if` statement handles all Opcodes when in a **protected region** with a `finally` clause.
As long as we are not already inside the `finally` clause, we jump to the `finally` clause and
push the pending operation onto the `_.ops` stack. This allows us to resume execution of the
pending operation once we have completed execution of the `finally` clause, as long as it does not
supersede this operation with its own completion value.
```ts
if (t[2])
_.ops.pop();
```
Any other completion value inside of a `finally` clause will supersede the pending completion value
from the `try` or `catch` clauses. The above `if` statement pops the pending completion from the
stack.
```ts
_.trys.pop();
continue;
```
The remaining statements handle the point at which we exit a **protected region**. Here we pop the
current **protected region** from the stack and spin the `while` statement to evaluate the current
operation again in the next **protected region** or at the function boundary.
## Handling a completed generator
Once the generator has completed, the `_` state variable will be falsey. As a result, the `while`
loop will terminate and hand control off to the final statement of the orchestration function,
which deals with how a completed generator is evaluated:
```ts
if (op[0] & 5)
throw op[1];
return { value: op[0] ? op[1] : void 0, done: true };
```
If the caller calls `throw` on the generator it will send Opcode 1 ("throw"). If an exception
is uncaught within the body of the generator, it will send Opcode 6 ("catch"). As the generator has
completed, it throws the exception. Both of these cases are caught by the bitmask `5`, which does
not collide with the only two other valid completion Opcodes.
If the caller calls `next` on the generator, it will send Opcode 0 ("next"). As the generator has
completed, it returns an `IteratorResult` where `value` is `undefined` and `done` is true.
If the caller calls `return` on the generator, it will send Opcode 2 ("return"). As the generator
has completed, it returns an `IteratorResult` where `value` is the value provided to `return`, and
`done` is true.
\ No newline at end of file
{
"_from": "tslib@1.9.3",
"_id": "tslib@1.9.3",
"_inBundle": false,
"_integrity": "sha1-1+TdeSRdhUKMTX5IIqeZF5VMooY=",
"_location": "/scilla-components/tslib",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "tslib@1.9.3",
"name": "tslib",
"escapedName": "tslib",
"rawSpec": "1.9.3",
"saveSpec": null,
"fetchSpec": "1.9.3"
},
"_requiredBy": [
"/scilla-components"
],
"_resolved": "http://npm.dui88.com:80/tslib/-/tslib-1.9.3.tgz",
"_shasum": "d7e4dd79245d85428c4d7e4822a79917954ca286",
"_spec": "tslib@1.9.3",
"_where": "/Users/wanghongyuan/kuwo/node_modules/scilla-components",
"author": {
"name": "Microsoft Corp."
},
"bugs": {
"url": "https://github.com/Microsoft/TypeScript/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Runtime library for TypeScript helper functions",
"homepage": "http://typescriptlang.org/",
"jsnext:main": "tslib.es6.js",
"keywords": [
"TypeScript",
"Microsoft",
"compiler",
"language",
"javascript",
"tslib",
"runtime"
],
"license": "Apache-2.0",
"main": "tslib.js",
"module": "tslib.es6.js",
"name": "tslib",
"repository": {
"type": "git",
"url": "git+https://github.com/Microsoft/tslib.git"
},
"typings": "tslib.d.ts",
"version": "1.9.3"
}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
export declare function __extends(d: Function, b: Function): void;
export declare function __assign(t: any, ...sources: any[]): any;
export declare function __rest(t: any, propertyNames: (string | symbol)[]): any;
export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any;
export declare function __param(paramIndex: number, decorator: Function): Function;
export declare function __metadata(metadataKey: any, metadataValue: any): Function;
export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any;
export declare function __generator(thisArg: any, body: Function): any;
export declare function __exportStar(m: any, exports: any): void;
export declare function __values(o: any): any;
export declare function __read(o: any, n?: number): any[];
export declare function __spread(...args: any[]): any[];
export declare function __await(v: any): any;
export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any;
export declare function __asyncDelegator(o: any): any;
export declare function __asyncValues(o: any): any;
export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray;
export declare function __importStar<T>(mod: T): T;
export declare function __importDefault<T>(mod: T): T | { default: T };
<script src="tslib.es6.js"></script>
\ No newline at end of file
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
export function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
export var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
}
return __assign.apply(this, arguments);
}
export function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
return t;
}
export function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
export function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
}
export function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
export function __awaiter(thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
export function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
export function __exportStar(m, exports) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
export function __values(o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
}
export function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
}
export function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
export function __await(v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
}
export function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}
export function __asyncDelegator(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
}
export function __asyncValues(o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}
export function __makeTemplateObject(cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
export function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result.default = mod;
return result;
}
export function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
}
<script src="tslib.js"></script>
\ No newline at end of file
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global global, define, System, Reflect, Promise */
var __extends;
var __assign;
var __rest;
var __decorate;
var __param;
var __metadata;
var __awaiter;
var __generator;
var __exportStar;
var __values;
var __read;
var __spread;
var __await;
var __asyncGenerator;
var __asyncDelegator;
var __asyncValues;
var __makeTemplateObject;
var __importStar;
var __importDefault;
(function (factory) {
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
if (typeof define === "function" && define.amd) {
define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); });
}
else if (typeof module === "object" && typeof module.exports === "object") {
factory(createExporter(root, createExporter(module.exports)));
}
else {
factory(createExporter(root));
}
function createExporter(exports, previous) {
if (exports !== root) {
if (typeof Object.create === "function") {
Object.defineProperty(exports, "__esModule", { value: true });
}
else {
exports.__esModule = true;
}
}
return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };
}
})
(function (exporter) {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
__extends = function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
__assign = Object.assign || function (t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
__rest = function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
return t;
};
__decorate = function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
__param = function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
__metadata = function (metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
};
__awaiter = function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
__generator = function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
__exportStar = function (m, exports) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
};
__values = function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
};
__read = function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
__spread = function () {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
};
__await = function (v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
};
__asyncGenerator = function (thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
};
__asyncDelegator = function (o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
};
__asyncValues = function (o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
};
__makeTemplateObject = function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
__importStar = function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
__importDefault = function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
exporter("__extends", __extends);
exporter("__assign", __assign);
exporter("__rest", __rest);
exporter("__decorate", __decorate);
exporter("__param", __param);
exporter("__metadata", __metadata);
exporter("__awaiter", __awaiter);
exporter("__generator", __generator);
exporter("__exportStar", __exportStar);
exporter("__values", __values);
exporter("__read", __read);
exporter("__spread", __spread);
exporter("__await", __await);
exporter("__asyncGenerator", __asyncGenerator);
exporter("__asyncDelegator", __asyncDelegator);
exporter("__asyncValues", __asyncValues);
exporter("__makeTemplateObject", __makeTemplateObject);
exporter("__importStar", __importStar);
exporter("__importDefault", __importDefault);
});
{ {
"name": "scilla-components", "_from": "git+http://gitlab2.dui88.com/laoqifeng/scilla-components.git",
"version": "1.0.0", "_id": "scilla-components@1.0.0",
"main": "./dist/bundle.js", "_inBundle": false,
"types": "./types/index.d.ts", "_integrity": "",
"license": "MIT", "_location": "/scilla-components",
"scripts": { "_phantomChildren": {},
"build": "rollup -c" "_requested": {
}, "type": "git",
"dependencies": { "raw": "git+http://gitlab2.dui88.com/laoqifeng/scilla-components.git",
"tslib": "^1.9.3" "rawSpec": "git+http://gitlab2.dui88.com/laoqifeng/scilla-components.git",
}, "saveSpec": "git+http://gitlab2.dui88.com/laoqifeng/scilla-components.git",
"devDependencies": { "fetchSpec": "http://gitlab2.dui88.com/laoqifeng/scilla-components.git",
"rollup": "^0.66.6", "gitCommittish": null
"rollup-plugin-commonjs": "^9.2.0", },
"rollup-plugin-node-resolve": "^3.4.0", "_requiredBy": [
"rollup-plugin-typescript2": "^0.18.0", "#USER",
"rollup-plugin-uglify": "^6.0.0", "/"
"tslib": "^1.9.3", ],
"typescript": "^3.1.6" "_resolved": "git+http://gitlab2.dui88.com/laoqifeng/scilla-components.git#1738e61183bc06977f08ae4cf2675916346e9bd2",
} "_spec": "git+http://gitlab2.dui88.com/laoqifeng/scilla-components.git",
"_where": "/Users/wanghongyuan/kuwo",
"bundleDependencies": false,
"dependencies": {
"tslib": "^1.9.3"
},
"deprecated": false,
"devDependencies": {
"rollup": "^0.66.6",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-typescript2": "^0.18.0",
"rollup-plugin-uglify": "^6.0.0",
"tslib": "^1.9.3",
"typescript": "^3.1.6"
},
"license": "MIT",
"main": "./dist/bundle.js",
"name": "scilla-components",
"scripts": {
"build": "rollup -c"
},
"types": "./types/index.d.ts",
"version": "1.0.0"
} }
...@@ -63,6 +63,9 @@ export default class Transform extends ScillaComponent { ...@@ -63,6 +63,9 @@ export default class Transform extends ScillaComponent {
*/ */
@dirtyFieldTrigger @dirtyFieldTrigger
pivot: Vector2D = new Vector2D(0.5, 0.5); pivot: Vector2D = new Vector2D(0.5, 0.5);
/**
* 旋转
*/
@dirtyFieldDetector @dirtyFieldDetector
rotation = 0; rotation = 0;
...@@ -179,7 +182,7 @@ export default class Transform extends ScillaComponent { ...@@ -179,7 +182,7 @@ export default class Transform extends ScillaComponent {
const parentTransform: Transform = entity.parent.getComponent(Transform); const parentTransform: Transform = entity.parent.getComponent(Transform);
if (parentTransform) { if (parentTransform) {
this._renderAlpha = parentTransform._renderAlpha * this.alpha; this._renderAlpha = parentTransform._renderAlpha * this.alpha;
_globalMatrix.concat(parentTransform.getMatrix()); _globalMatrix.concat(parentTransform.getMatrix(true));
} }
}else{ }else{
this._renderAlpha = this.alpha; this._renderAlpha = this.alpha;
......
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless
/.rpt2_cache/
*.js linguist-language=TypeScript
\ No newline at end of file
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
You must give any other recipients of the Work or Derivative Works a copy of this License; and
You must cause any modified files to carry prominent notices stating that You changed the files; and
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
# tslib
This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
This library is primarily used by the `--importHelpers` flag in TypeScript.
When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file:
```ts
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
exports.x = {};
exports.y = __assign({}, exports.x);
```
will instead be emitted as something like the following:
```ts
var tslib_1 = require("tslib");
exports.x = {};
exports.y = tslib_1.__assign({}, exports.x);
```
Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead.
For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`.
# Installing
For the latest stable version, run:
## npm
```sh
# TypeScript 2.3.3 or later
npm install --save tslib
# TypeScript 2.3.2 or earlier
npm install --save tslib@1.6.1
```
## bower
```sh
# TypeScript 2.3.3 or later
bower install tslib
# TypeScript 2.3.2 or earlier
bower install tslib@1.6.1
```
## JSPM
```sh
# TypeScript 2.3.3 or later
jspm install tslib
# TypeScript 2.3.2 or earlier
jspm install tslib@1.6.1
```
# Usage
Set the `importHelpers` compiler option on the command line:
```
tsc --importHelpers file.ts
```
or in your tsconfig.json:
```json
{
"compilerOptions": {
"importHelpers": true
}
}
```
#### For bower and JSPM users
You will need to add a `paths` mapping for `tslib`, e.g. For Bower users:
```json
{
"compilerOptions": {
"module": "amd",
"importHelpers": true,
"baseUrl": "./",
"paths": {
"tslib" : ["bower_components/tslib/tslib.d.ts"]
}
}
}
```
For JSPM users:
```json
{
"compilerOptions": {
"module": "system",
"importHelpers": true,
"baseUrl": "./",
"paths": {
"tslib" : ["jspm_packages/npm/tslib@1.9.3/tslib.d.ts"]
}
}
}
```
# Contribute
There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.
* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls).
* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript).
* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter.
* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md).
* Read the language specification ([docx](http://go.microsoft.com/fwlink/?LinkId=267121), [pdf](http://go.microsoft.com/fwlink/?LinkId=267238)).
# Documentation
* [Quick tutorial](http://www.typescriptlang.org/Tutorial)
* [Programming handbook](http://www.typescriptlang.org/Handbook)
* [Language specification](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md)
* [Homepage](http://www.typescriptlang.org/)
{
"name": "tslib",
"authors": [
"Microsoft Corp."
],
"homepage": "http://typescriptlang.org/",
"version": "1.9.3",
"license": "Apache-2.0",
"description": "Runtime library for TypeScript helper functions",
"keywords": [
"TypeScript",
"Microsoft",
"compiler",
"language",
"javascript",
"tslib",
"runtime"
],
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/tslib.git"
},
"main": "tslib.js",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"docs",
"package.json",
".npmignore",
".gitignore",
".gitattributes"
]
}
# The `__generator` helper
The `__generator` helper is a function designed to support TypeScript's down-level emit for
async functions when targeting ES5 and earlier. But how, exactly, does it work?
Here's the body of the `__generator` helper:
```js
__generator = function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t;
return { next: verb(0), "throw": verb(1), "return": verb(2) };
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
```
And here's an example of it in use:
```ts
// source
async function func(x) {
try {
await x;
}
catch (e) {
console.error(e);
}
finally {
console.log("finally");
}
}
// generated
function func(x) {
return __awaiter(this, void 0, void 0, function () {
var e_1;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 1, 3, 4]);
return [4 /*yield*/, x];
case 1:
_a.sent();
return [3 /*break*/, 4];
case 2:
e_1 = _a.sent();
console.error(e_1);
return [3 /*break*/, 4];
case 3:
console.log("finally");
return [7 /*endfinally*/];
case 4: return [2 /*return*/];
}
});
});
}
```
There is a lot going on in this function, so the following will break down what each part of the
`__generator` helper does and how it works.
# Opcodes
The `__generator` helper uses opcodes which represent various operations that are interpreted by
the helper to affect its internal state. The following table lists the various opcodes, their
arguments, and their purpose:
| Opcode | Arguments | Purpose |
|----------------|-----------|--------------------------------------------------------------------------------------------------------------------------------|
| 0 (next) | *value* | Starts the generator, or resumes the generator with *value* as the result of the `AwaitExpression` where execution was paused. |
| 1 (throw) | *value* | Resumes the generator, throwing *value* at `AwaitExpression` where execution was paused. |
| 2 (return) | *value* | Exits the generator, executing any `finally` blocks starting at the `AwaitExpression` where execution was paused. |
| 3 (break) | *label* | Performs an unconditional jump to the specified label, executing any `finally` between the current instruction and the label. |
| 4 (yield) | *value* | Suspends the generator, setting the resume point at the next label and yielding the value. |
| 5 (yieldstar) | *value* | Suspends the generator, setting the resume point at the next label and delegating operations to the supplied value. |
| 6 (catch) | *error* | An internal instruction used to indicate an exception that was thrown from the body of the generator. |
| 7 (endfinally) | | Exits a finally block, resuming any previous operation (such as a break, return, throw, etc.) |
# State
The `_`, `f`, `y`, and `t` variables make up the persistent state of the `__generator` function. Each variable
has a specific purpose, as described in the following sections:
## The `_` variable
The `__generator` helper must share state between its internal `step` orchestration function and
the `body` function passed to the helper.
```ts
var _ = {
label: 0,
sent: function() {
if (t[0] & 1) // NOTE: true for `throw`, but not `next` or `catch`
throw t[1];
return sent[1];
},
trys: [],
ops: []
};
```
The following table describes the members of the `_` state object and their purpose:
| Name | Description |
|---------|---------------------------------------------------------------------------------------------------------------------------|
| `label` | Specifies the next switch case to execute in the `body` function. |
| `sent` | Handles the completion result passed to the generator. |
| `trys` | A stack of **Protected Regions**, which are 4-tuples that describe the labels that make up a `try..catch..finally` block. |
| `ops` | A stack of pending operations used for `try..finally` blocks. |
The `__generator` helper passes this state object to the `body` function for use with switching
between switch cases in the body, handling completions from `AwaitExpression`, etc.
## The `f` variable
The `f` variable indicates whether the generator is currently executing, to prevent re-entry of
the same generator during its execution.
## The `y` variable
The `y` variable stores the iterator passed to a `yieldstar` instruction to which operations should be delegated.
## The `t` variable
The `t` variable is a temporary variable that stores one of the following values:
- The completion value when resuming from a `yield` or `yield*`.
- The error value for a catch block.
- The current **Protected Region**.
- The verb (`next`, `throw`, or `return` method) to delegate to the expression of a `yield*`.
- The result of evaluating the verb delegated to the expression of a `yield*`.
> NOTE: None of the above cases overlap.
# Protected Regions
A **Protected Region** is a region within the `body` function that indicates a
`try..catch..finally` statement. It consists of a 4-tuple that contains 4 labels:
| Offset | Description |
|--------|-----------------------------------------------------------------------------------------|
| 0 | *Required* The label that indicates the beginning of a `try..catch..finally` statement. |
| 1 | *Optional* The label that indicates the beginning of a `catch` clause. |
| 2 | *Optional* The label that indicates the beginning of a `finally` clause. |
| 3 | *Required* The label that indicates the end of the `try..catch..finally` statement. |
# The generator object
The final step of the `__generator` helper is the allocation of an object that implements the
`Generator` protocol, to be used by the `__awaiter` helper:
```ts
return { next: verb(0), "throw": verb(1), "return": verb(2) };
function verb(n) { return function (v) { return step([n, v]); }; }
```
This object translates calls to `next`, `throw`, and `return` to the appropriate Opcodes and
invokes the `step` orchestration function to continue execution. The `throw` and `return` method
names are quoted to better support ES3.
# Orchestration
The `step` function is the main orechestration mechanism for the `__generator` helper. It
interprets opcodes, handles **protected regions**, and communicates results back to the caller.
Here's a closer look at the `step` function:
```ts
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
```
The main body of `step` exists in a `while` loop. This allows us to continually interpret
operations until we have reached some completion value, be it a `return`, `await`, or `throw`.
## Preventing re-entry
The first part of the `step` function is used as a check to prevent re-entry into a currently
executing generator:
```ts
if (f) throw new TypeError("Generator is already executing.");
```
## Running the generator
The main body of the `step` function consists of a `while` loop which continues to evaluate
instructions until the generator exits or is suspended:
```ts
while (_) try ...
```
When the generator has run to completion, the `_` state variable will be cleared, forcing the loop
to exit.
## Evaluating the generator body.
```ts
try {
...
op = body.call(thisArg, _);
}
catch (e) {
op = [6, e];
y = 0;
}
finally {
f = t = 0;
}
```
Depending on the current operation, we re-enter the generator body to start or continue execution.
Here we invoke `body` with `thisArg` as the `this` binding and the `_` state object as the only
argument. The result is a tuple that contains the next Opcode and argument.
If evaluation of the body resulted in an exception, we convert this into an Opcode 6 ("catch")
operation to be handled in the next spin of the `while` loop. We also clear the `y` variable in
case it is set to ensure we are no longer delegating operations as the exception occurred in
user code *outside* of, or at the function boundary of, the delegated iterator (otherwise the
iterator would have handled the exception itself).
After executing user code, we clear the `f` flag that indicates we are executing the generator,
as well as the `t` temporary value so that we don't hold onto values sent to the generator for
longer than necessary.
Inside of the `try..finally` statement are a series of statements that are used to evaluate the
operations of the transformed generator body.
The first thing we do is mark the generator as executing:
```ts
if (f = 1, ...)
```
Despite the fact this expression is part of the head of an `if` statement, the comma operator
causes it to be evaluated and the result thrown out. This is a minification added purely to
reduce the overall footprint of the helper.
## Delegating `yield*`
The first two statements of the `try..finally` statement handle delegation for `yield*`:
```ts
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
```
If the `y` variable is set, and `y` has a `next`, `throw`, or `return` method (depending on the
current operation), we invoke this method and store the return value (an IteratorResult) in `t`.
If `t` indicates it is a yielded value (e.g. `t.done === false`), we return `t` to the caller.
If `t` indicates it is a returned value (e.g. `t.done === true`), we mark the operation with the
`next` Opcode, and the returned value.
If `y` did not have the appropriate method, or `t` was a returned value, we reset `y` to a falsey
value and continue processing the operation.
## Handling operations
The various Opcodes are handled in the following switch statement:
```ts
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
```
The following sections describe the various Opcodes:
### Opcode 0 ("next") and Opcode 1 ("throw")
```ts
case 0: // next
case 1: // throw
t = op;
break;
```
Both Opcode 0 ("next") and Opcode 1 ("throw") have the same behavior. The current operation is
stored in the `t` variable and the `body` function is invoked. The `body` function should call
`_.sent()` which will evaluate the appropriate completion result.
### Opcode 4 ("yield")
```ts
case 4: // yield
_.label++;
return { value: op[1], done: false };
```
When we encounter Opcode 4 ("yield"), we increment the label by one to indicate the point at which
the generator will resume execution. We then return an `IteratorResult` whose `value` is the
yielded value, and `done` is `false`.
### Opcode 5 ("yieldstar")
```ts
case 5: // yieldstar
_.label++;
y = op[1];
op = [0];
continue;
```
When we receive Opcode 5 ("yieldstar"), we increment the label by one to indicate the point at which
the generator will resume execution. We then store the iterator in `op[1]` in the `y` variable, and
set the operation to delegate to Opcode 0 ("next") with no value. Finally, we continue execution at
the top of the loop to start delegation.
### Opcode 7 ("endfinally")
```ts
case 7:
op = _.ops.pop();
_.trys.pop();
continue;
```
Opcode 7 ("endfinally") indicates that we have hit the end of a `finally` clause, and that the last
operation recorded before entering the `finally` block should be evaluated.
### Opcode 2 ("return"), Opcode 3 ("break"), and Opcode 6 ("catch")
```ts
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
if (t[2])
_.ops.pop();
_.trys.pop();
continue;
}
```
The handling for Opcode 2 ("return"), Opcode 3 ("break") and Opcode 6 ("catch") is more
complicated, as we must obey the specified runtime semantics of generators. The first line in this
clause gets the current **Protected Region** if found and stores it in the `t` temp variable:
```ts
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && ...) ...
```
The remainder of this statement, as well as the following by several `if` statements test for more
complex conditions. The first of these is the following:
```ts
if (!(t = ...) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
```
If we encounter an Opcode 6 ("catch") or Opcode 2 ("return"), and we are not in a protected region,
then this operation completes the generator by setting the `_` variable to a falsey value. The
`continue` statement resumes execution at the top of the `while` statement, which will exit the loop
so that we continue execution at the statement following the loop.
```ts
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
_.label = op[1];
break;
}
```
The `if` statement above handles Opcode 3 ("break") when we are either not in a **protected region**, or
are performing an unconditional jump to a label inside of the current **protected region**. In this case
we can unconditionally jump to the specified label.
```ts
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
```
The `if` statement above handles Opcode 6 ("catch") when inside the `try` block of a **protected
region**. In this case we jump to the `catch` block, if present. We replace the value of `t` with
the operation so that the exception can be read as the first statement of the transformed `catch`
clause of the transformed generator body.
```ts
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
```
This `if` statement handles all Opcodes when in a **protected region** with a `finally` clause.
As long as we are not already inside the `finally` clause, we jump to the `finally` clause and
push the pending operation onto the `_.ops` stack. This allows us to resume execution of the
pending operation once we have completed execution of the `finally` clause, as long as it does not
supersede this operation with its own completion value.
```ts
if (t[2])
_.ops.pop();
```
Any other completion value inside of a `finally` clause will supersede the pending completion value
from the `try` or `catch` clauses. The above `if` statement pops the pending completion from the
stack.
```ts
_.trys.pop();
continue;
```
The remaining statements handle the point at which we exit a **protected region**. Here we pop the
current **protected region** from the stack and spin the `while` statement to evaluate the current
operation again in the next **protected region** or at the function boundary.
## Handling a completed generator
Once the generator has completed, the `_` state variable will be falsey. As a result, the `while`
loop will terminate and hand control off to the final statement of the orchestration function,
which deals with how a completed generator is evaluated:
```ts
if (op[0] & 5)
throw op[1];
return { value: op[0] ? op[1] : void 0, done: true };
```
If the caller calls `throw` on the generator it will send Opcode 1 ("throw"). If an exception
is uncaught within the body of the generator, it will send Opcode 6 ("catch"). As the generator has
completed, it throws the exception. Both of these cases are caught by the bitmask `5`, which does
not collide with the only two other valid completion Opcodes.
If the caller calls `next` on the generator, it will send Opcode 0 ("next"). As the generator has
completed, it returns an `IteratorResult` where `value` is `undefined` and `done` is true.
If the caller calls `return` on the generator, it will send Opcode 2 ("return"). As the generator
has completed, it returns an `IteratorResult` where `value` is the value provided to `return`, and
`done` is true.
\ No newline at end of file
{
"_from": "tslib@^1.9.3",
"_id": "tslib@1.9.3",
"_inBundle": false,
"_integrity": "sha1-1+TdeSRdhUKMTX5IIqeZF5VMooY=",
"_location": "/scilla-core/tslib",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "tslib@^1.9.3",
"name": "tslib",
"escapedName": "tslib",
"rawSpec": "^1.9.3",
"saveSpec": null,
"fetchSpec": "^1.9.3"
},
"_requiredBy": [
"/scilla-core"
],
"_resolved": "http://npm.dui88.com:80/tslib/-/tslib-1.9.3.tgz",
"_shasum": "d7e4dd79245d85428c4d7e4822a79917954ca286",
"_spec": "tslib@^1.9.3",
"_where": "/Users/wanghongyuan/kuwo/node_modules/scilla-core",
"author": {
"name": "Microsoft Corp."
},
"bugs": {
"url": "https://github.com/Microsoft/TypeScript/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Runtime library for TypeScript helper functions",
"homepage": "http://typescriptlang.org/",
"jsnext:main": "tslib.es6.js",
"keywords": [
"TypeScript",
"Microsoft",
"compiler",
"language",
"javascript",
"tslib",
"runtime"
],
"license": "Apache-2.0",
"main": "tslib.js",
"module": "tslib.es6.js",
"name": "tslib",
"repository": {
"type": "git",
"url": "git+https://github.com/Microsoft/tslib.git"
},
"typings": "tslib.d.ts",
"version": "1.9.3"
}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
export declare function __extends(d: Function, b: Function): void;
export declare function __assign(t: any, ...sources: any[]): any;
export declare function __rest(t: any, propertyNames: (string | symbol)[]): any;
export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any;
export declare function __param(paramIndex: number, decorator: Function): Function;
export declare function __metadata(metadataKey: any, metadataValue: any): Function;
export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any;
export declare function __generator(thisArg: any, body: Function): any;
export declare function __exportStar(m: any, exports: any): void;
export declare function __values(o: any): any;
export declare function __read(o: any, n?: number): any[];
export declare function __spread(...args: any[]): any[];
export declare function __await(v: any): any;
export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any;
export declare function __asyncDelegator(o: any): any;
export declare function __asyncValues(o: any): any;
export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray;
export declare function __importStar<T>(mod: T): T;
export declare function __importDefault<T>(mod: T): T | { default: T };
<script src="tslib.es6.js"></script>
\ No newline at end of file
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
export function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
export var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
}
return __assign.apply(this, arguments);
}
export function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
return t;
}
export function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
export function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
}
export function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
export function __awaiter(thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
export function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
export function __exportStar(m, exports) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
export function __values(o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
}
export function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
}
export function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
export function __await(v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
}
export function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}
export function __asyncDelegator(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
}
export function __asyncValues(o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}
export function __makeTemplateObject(cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
export function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result.default = mod;
return result;
}
export function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
}
<script src="tslib.js"></script>
\ No newline at end of file
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global global, define, System, Reflect, Promise */
var __extends;
var __assign;
var __rest;
var __decorate;
var __param;
var __metadata;
var __awaiter;
var __generator;
var __exportStar;
var __values;
var __read;
var __spread;
var __await;
var __asyncGenerator;
var __asyncDelegator;
var __asyncValues;
var __makeTemplateObject;
var __importStar;
var __importDefault;
(function (factory) {
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
if (typeof define === "function" && define.amd) {
define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); });
}
else if (typeof module === "object" && typeof module.exports === "object") {
factory(createExporter(root, createExporter(module.exports)));
}
else {
factory(createExporter(root));
}
function createExporter(exports, previous) {
if (exports !== root) {
if (typeof Object.create === "function") {
Object.defineProperty(exports, "__esModule", { value: true });
}
else {
exports.__esModule = true;
}
}
return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };
}
})
(function (exporter) {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
__extends = function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
__assign = Object.assign || function (t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
__rest = function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
return t;
};
__decorate = function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
__param = function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
__metadata = function (metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
};
__awaiter = function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
__generator = function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
__exportStar = function (m, exports) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
};
__values = function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
};
__read = function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
__spread = function () {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
};
__await = function (v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
};
__asyncGenerator = function (thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
};
__asyncDelegator = function (o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
};
__asyncValues = function (o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
};
__makeTemplateObject = function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
__importStar = function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
__importDefault = function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
exporter("__extends", __extends);
exporter("__assign", __assign);
exporter("__rest", __rest);
exporter("__decorate", __decorate);
exporter("__param", __param);
exporter("__metadata", __metadata);
exporter("__awaiter", __awaiter);
exporter("__generator", __generator);
exporter("__exportStar", __exportStar);
exporter("__values", __values);
exporter("__read", __read);
exporter("__spread", __spread);
exporter("__await", __await);
exporter("__asyncGenerator", __asyncGenerator);
exporter("__asyncDelegator", __asyncDelegator);
exporter("__asyncValues", __asyncValues);
exporter("__makeTemplateObject", __makeTemplateObject);
exporter("__importStar", __importStar);
exporter("__importDefault", __importDefault);
});
{ {
"name": "scilla-core", "_from": "git+http://gitlab2.dui88.com/laoqifeng/scilla-core.git",
"version": "1.0.0", "_id": "scilla-core@1.0.0",
"main": "./dist/bundle.js", "_inBundle": false,
"types": "./types/index.d.ts", "_integrity": "",
"license": "MIT", "_location": "/scilla-core",
"scripts": { "_phantomChildren": {},
"build": "rollup -c" "_requested": {
}, "type": "git",
"dependencies": { "raw": "git+http://gitlab2.dui88.com/laoqifeng/scilla-core.git",
"tslib": "^1.9.3" "rawSpec": "git+http://gitlab2.dui88.com/laoqifeng/scilla-core.git",
}, "saveSpec": "git+http://gitlab2.dui88.com/laoqifeng/scilla-core.git",
"devDependencies": { "fetchSpec": "http://gitlab2.dui88.com/laoqifeng/scilla-core.git",
"rollup": "^0.66.6", "gitCommittish": null
"rollup-plugin-commonjs": "^9.2.0", },
"rollup-plugin-node-resolve": "^3.4.0", "_requiredBy": [
"rollup-plugin-typescript2": "^0.18.0", "#USER",
"rollup-plugin-uglify": "^6.0.0", "/"
"tslib": "^1.9.3", ],
"typescript": "^3.1.6" "_resolved": "git+http://gitlab2.dui88.com/laoqifeng/scilla-core.git#5424a3f331ffa8d9ec018ba8d706b0ffa45af806",
} "_spec": "git+http://gitlab2.dui88.com/laoqifeng/scilla-core.git",
"_where": "/Users/wanghongyuan/kuwo",
"bundleDependencies": false,
"dependencies": {
"tslib": "^1.9.3"
},
"deprecated": false,
"devDependencies": {
"rollup": "^0.66.6",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-typescript2": "^0.18.0",
"rollup-plugin-uglify": "^6.0.0",
"tslib": "^1.9.3",
"typescript": "^3.1.6"
},
"license": "MIT",
"main": "./dist/bundle.js",
"name": "scilla-core",
"scripts": {
"build": "rollup -c"
},
"types": "./types/index.d.ts",
"version": "1.0.0"
} }
...@@ -33,7 +33,7 @@ export function traverse(target: Entity, hitChild: (child: Entity, ...params) => ...@@ -33,7 +33,7 @@ export function traverse(target: Entity, hitChild: (child: Entity, ...params) =>
} }
} }
!interrupt && fullCallback && fullCallback(target); fullCallback && fullCallback(target);
} }
/** /**
......
...@@ -85,7 +85,7 @@ export function getRoot(): Entity { ...@@ -85,7 +85,7 @@ export function getRoot(): Entity {
/** /**
* 获取当前帧率 * 获取当前帧率
*/ */
export function getFPS(){ export function getFPS() {
return lastFPS; return lastFPS;
} }
...@@ -128,7 +128,7 @@ function flush(tsNow): void { ...@@ -128,7 +128,7 @@ function flush(tsNow): void {
requestAnimationFrame(flush); requestAnimationFrame(flush);
} }
function onFrameTick(tsNow){ function onFrameTick(tsNow) {
clear(); clear();
const tsNow2 = Date.now(); const tsNow2 = Date.now();
lastFPS = Math.floor(1000 / (tsNow - tsLast)); lastFPS = Math.floor(1000 / (tsNow - tsLast));
...@@ -136,12 +136,12 @@ function onFrameTick(tsNow){ ...@@ -136,12 +136,12 @@ function onFrameTick(tsNow){
tsLast2 = tsNow2; tsLast2 = tsNow2;
const ts = tsNow - tsStart; const ts = tsNow - tsStart;
traverse(root, function (child) { traverse(root, function (child) {
if(!child.isFree && child.enabled){ if (!child.isFree && child.enabled) {
child.onUpdate(ts); child.onUpdate(ts);
}else{ } else {
return true; return true;
} }
}, -1, true, function(current){ }, -1, true, function (current) {
current.afterUpdate(); current.afterUpdate();
}); });
//const tsPass = Date.now() - tsNow; //const tsPass = Date.now() - tsNow;
......
{ {
"name": "tslib", "_from": "tslib@^1.9.3",
"author": "Microsoft Corp.", "_id": "tslib@1.9.3",
"homepage": "http://typescriptlang.org/", "_inBundle": false,
"version": "1.9.3", "_integrity": "sha1-1+TdeSRdhUKMTX5IIqeZF5VMooY=",
"license": "Apache-2.0", "_location": "/tslib",
"description": "Runtime library for TypeScript helper functions", "_phantomChildren": {},
"keywords": [ "_requested": {
"TypeScript", "type": "range",
"Microsoft", "registry": true,
"compiler", "raw": "tslib@^1.9.3",
"language", "name": "tslib",
"javascript", "escapedName": "tslib",
"tslib", "rawSpec": "^1.9.3",
"runtime" "saveSpec": null,
], "fetchSpec": "^1.9.3"
"bugs": { },
"url": "https://github.com/Microsoft/TypeScript/issues" "_requiredBy": [
}, "/"
"repository": { ],
"type": "git", "_resolved": "http://npm.dui88.com:80/tslib/-/tslib-1.9.3.tgz",
"url": "https://github.com/Microsoft/tslib.git" "_shasum": "d7e4dd79245d85428c4d7e4822a79917954ca286",
}, "_spec": "tslib@^1.9.3",
"main": "tslib.js", "_where": "/Users/wanghongyuan/kuwo",
"module": "tslib.es6.js", "author": {
"jsnext:main": "tslib.es6.js", "name": "Microsoft Corp."
"typings": "tslib.d.ts" },
} "bugs": {
"url": "https://github.com/Microsoft/TypeScript/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Runtime library for TypeScript helper functions",
"homepage": "http://typescriptlang.org/",
"jsnext:main": "tslib.es6.js",
"keywords": [
"TypeScript",
"Microsoft",
"compiler",
"language",
"javascript",
"tslib",
"runtime"
],
"license": "Apache-2.0",
"main": "tslib.js",
"module": "tslib.es6.js",
"name": "tslib",
"repository": {
"type": "git",
"url": "git+https://github.com/Microsoft/tslib.git"
},
"typings": "tslib.d.ts",
"version": "1.9.3"
}
{
"name": "scilla-kuwo",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"scilla-components": {
"version": "git+http://gitlab2.dui88.com/laoqifeng/scilla-components.git#1738e61183bc06977f08ae4cf2675916346e9bd2",
"from": "git+http://gitlab2.dui88.com/laoqifeng/scilla-components.git",
"requires": {
"tslib": "^1.9.3"
},
"dependencies": {
"tslib": {
"version": "1.9.3",
"resolved": "http://npm.dui88.com:80/tslib/-/tslib-1.9.3.tgz",
"integrity": "sha1-1+TdeSRdhUKMTX5IIqeZF5VMooY="
}
}
},
"scilla-core": {
"version": "git+http://gitlab2.dui88.com/laoqifeng/scilla-core.git#5424a3f331ffa8d9ec018ba8d706b0ffa45af806",
"from": "git+http://gitlab2.dui88.com/laoqifeng/scilla-core.git",
"requires": {
"tslib": "^1.9.3"
},
"dependencies": {
"tslib": {
"version": "1.9.3",
"resolved": "http://npm.dui88.com:80/tslib/-/tslib-1.9.3.tgz",
"integrity": "sha1-1+TdeSRdhUKMTX5IIqeZF5VMooY="
}
}
},
"tslib": {
"version": "1.9.3",
"resolved": "http://npm.dui88.com:80/tslib/-/tslib-1.9.3.tgz",
"integrity": "sha1-1+TdeSRdhUKMTX5IIqeZF5VMooY="
}
}
}
File added
...@@ -8,20 +8,20 @@ import {registerDef} from 'scilla' ...@@ -8,20 +8,20 @@ import {registerDef} from 'scilla'
import component0 from 'components/base/Transform'; import component0 from 'components/base/Transform';
registerDef('components/base/Transform', component0); registerDef('components/base/Transform', component0);
import component1 from 'components/other/CameraController'; import component1 from 'components/renderer/TextureRenderer';
registerDef('components/other/CameraController', component1); registerDef('components/renderer/TextureRenderer', component1);
import component2 from 'components/renderer/TextureRenderer'; import component2 from 'components/other/CameraController';
registerDef('components/renderer/TextureRenderer', component2); registerDef('components/other/CameraController', component2);
import component3 from 'components/renderer/RectRenderer'; import component3 from 'components/animation/TouchZoom';
registerDef('components/renderer/RectRenderer', component3); registerDef('components/animation/TouchZoom', component3);
import component4 from 'components/animation/TouchZoom'; import component4 from 'components/ui/Button';
registerDef('components/animation/TouchZoom', component4); registerDef('components/ui/Button', component4);
import component5 from 'components/ui/Button'; import component5 from 'components/renderer/TextRenderer';
registerDef('components/ui/Button', component5); registerDef('components/renderer/TextRenderer', component5);
import component6 from 'components/renderer/TextRenderer'; import component6 from '../../assets/scripts/MainController';
registerDef('components/renderer/TextRenderer', component6); registerDef('./scripts/MainController', component6);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment