diff --git a/bower.json b/bower.json index b3029cff8..b15fe002b 100644 --- a/bower.json +++ b/bower.json @@ -8,7 +8,7 @@ "dist/tui-calendar.js", "dist/tui-calendar.css" ], - "version": "1.12.10", + "version": "1.12.11", "description": "TOAST UI Calendar", "ignore": [ "**/.*", diff --git a/dist/tui-calendar.css b/dist/tui-calendar.css index 1b66c9143..e337a1f6d 100644 --- a/dist/tui-calendar.css +++ b/dist/tui-calendar.css @@ -1,6 +1,6 @@ /*! * TOAST UI Calendar - * @version 1.12.10 | Thu Jan 23 2020 + * @version 1.12.11 | Wed Feb 05 2020 * @author NHN FE Development Lab * @license MIT */ diff --git a/dist/tui-calendar.js b/dist/tui-calendar.js index 572925a48..9e50799d5 100644 --- a/dist/tui-calendar.js +++ b/dist/tui-calendar.js @@ -1,6 +1,6 @@ /*! * TOAST UI Calendar - * @version 1.12.10 | Thu Jan 23 2020 + * @version 1.12.11 | Wed Feb 05 2020 * @author NHN FE Development Lab * @license MIT */ @@ -221,9 +221,7 @@ var _logger = __webpack_require__(/*! ./logger */ "./node_modules/handlebars/dis var _logger2 = _interopRequireDefault(_logger); -var _internalProtoAccess = __webpack_require__(/*! ./internal/proto-access */ "./node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js"); - -var VERSION = '4.7.2'; +var VERSION = '4.5.3'; exports.VERSION = VERSION; var COMPILER_REVISION = 8; exports.COMPILER_REVISION = COMPILER_REVISION; @@ -299,13 +297,6 @@ HandlebarsEnvironment.prototype = { }, unregisterDecorator: function unregisterDecorator(name) { delete this.decorators[name]; - }, - /** - * Reset the memory of illegal property accesses that have already been logged. - * @deprecated should only be used in handlebars test-cases - */ - resetLoggedPropertyAccesses: function resetLoggedPropertyAccesses() { - _internalProtoAccess.resetLoggedProperties(); } }; @@ -314,7 +305,7 @@ var log = _logger2['default'].log; exports.log = log; exports.createFrame = _utils.createFrame; exports.logger = _logger2['default']; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb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B9XG4gICAgICBleHRlbmQodGhpcy5kZWNvcmF0b3JzLCBuYW1lKTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5kZWNvcmF0b3JzW25hbWVdID0gZm47XG4gICAgfVxuICB9LFxuICB1bnJlZ2lzdGVyRGVjb3JhdG9yOiBmdW5jdGlvbihuYW1lKSB7XG4gICAgZGVsZXRlIHRoaXMuZGVjb3JhdG9yc1tuYW1lXTtcbiAgfVxufTtcblxuZXhwb3J0IGxldCBsb2cgPSBsb2dnZXIubG9nO1xuXG5leHBvcnQge2NyZWF0ZUZyYW1lLCBsb2dnZXJ9O1xuIl19 /***/ }), @@ -342,7 +333,7 @@ var _decoratorsInline2 = _interopRequireDefault(_decoratorsInline); function registerDefaultDecorators(instance) { _decoratorsInline2['default'](instance); } -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG4iXX0= +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG5cbiJdfQ== /***/ }), @@ -383,7 +374,7 @@ exports['default'] = function (instance) { }; module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQXVCLFVBQVU7O3FCQUVsQixVQUFTLFFBQVEsRUFBRTtBQUNoQyxVQUFRLENBQUMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVMsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFO0FBQzNFLFFBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUNiLFFBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxFQUFFO0FBQ25CLFdBQUssQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO0FBQ3BCLFNBQUcsR0FBRyxVQUFTLE9BQU8sRUFBRSxPQUFPLEVBQUU7O0FBRS9CLFlBQUksUUFBUSxHQUFHLFNBQVMsQ0FBQyxRQUFRLENBQUM7QUFDbEMsaUJBQVMsQ0FBQy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AgcmV0dXJuIHJldDtcbiAgfSk7XG59XG4iXX0= /***/ }), @@ -399,6 +390,7 @@ module.exports = exports['default']; exports.__esModule = true; + var errorProps = ['description', 'fileName', 'lineNumber', 'endLineNumber', 'message', 'name', 'number', 'stack']; function Exception(message, node) { @@ -459,7 +451,7 @@ Exception.prototype = new Error(); exports['default'] = Exception; module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxJQUFNLFVBQVUsR0FBRyxDQUNqQixhQUFhLEVBQ2IsVUFBVSxFQUNWLFlBQVksRUFDWixlQUFlLEVBQ2YsU0FBUyxFQUNULE1BQU0sRUFDTixRQUFRLEVBQ1IsT0FBTyxDQUNSLENBQUM7O0FBRUYsU0FBUyxTQUFTLENBQUMsT0FBTyxFQUFFLElBQUksRUFBRTtBQUNoQyxNQUFJLEdBQUcsR0FBRyxJQUFJLElBQUksSUFBSSxDQUFDLEdBQUc7TUFDeEIsSUFBSSxZQUFBO01BQ0osYUFBYSxZQUFBO01BQ2IsTUFBTSxZQUFBO01BQ04sU0FBUyxZQUFBLENBQUM7O0FBRVosTUFBSSxHQUFHLEVBQUU7QUFDUCxRQUFJLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUM7QUFDdEIsaUJBQWEsR0FBRyxHQUFHLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQztBQUM3QixVQUFNLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUM7QUFDMUIsYUFBUyxHQUFHLEdBQUcsQ0FBQyxHQUFHLENBQUMsTUFBTSxDQUFDOztBQUUzQixXQUFPLElBQUksS0FBSyxHQUFHLElBQUksR0FBRyxHQUFHLEdBQUcsTUFBTSxDQUFDO0dBQ3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pY3VsYXIgKi9cbiAgfVxufVxuXG5FeGNlcHRpb24ucHJvdG90eXBlID0gbmV3IEVycm9yKCk7XG5cbmV4cG9ydCBkZWZhdWx0IEV4Y2VwdGlvbjtcbiJdfQ== /***/ }), @@ -578,7 +570,7 @@ exports['default'] = function (instance) { }; module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBd0QsVUFBVTs7cUJBRW5ELFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsb0JBQW9CLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3ZFLFFBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPO1FBQzNCLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVsQixRQUFJLE9BQU8sS0FBSyxJQUFJLEVBQUU7QUFDcEIsYUFBTyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDakIsTUFBTSxJQUFJLE9BQU8sS0FBSyxLQUFLLElBQUksT0FBTyxJQUFJLElBQUksRUFBRTtBQUMvQyxhQUFPLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUN0QixNQUFNLElBQUksZUFBUSxPQUFPLENBQUMsRUFBRTtBQUMzQixVQUFJLE9BQU8sQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFO0FBQ3RCLFlBQUksT0FBTyxDQUFDLEdBQUcsRUFBRTtBQUNmLGlCQUFPLENBQUMsR0FBRyxHQUFHLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO1NBQzlCOztBQUVELGVBQU8sUUFBUSxDQUFDLE9BQU8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ZSB8fCBjb250ZXh0ID09IG51bGwpIHtcbiAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgIH0gZWxzZSBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgaWYgKGNvbnRleHQubGVuZ3RoID4gMCkge1xuICAgICAgICBpZiAob3B0aW9ucy5pZHMpIHtcbiAgICAgICAgICBvcHRpb25zLmlkcyA9IFtvcHRpb25zLm5hbWVdO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnMuZWFjaChjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKFxuICAgICAgICAgIG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCxcbiAgICAgICAgICBvcHRpb25zLm5hbWVcbiAgICAgICAgKTtcbiAgICAgICAgb3B0aW9ucyA9IHsgZGF0YTogZGF0YSB9O1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gZm4oY29udGV4dCwgb3B0aW9ucyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ== +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBc0QsVUFBVTs7cUJBRWpELFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQy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ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCwgb3B0aW9ucy5uYW1lKTtcbiAgICAgICAgb3B0aW9ucyA9IHtkYXRhOiBkYXRhfTtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIGZuKGNvbnRleHQsIG9wdGlvbnMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0= /***/ }), @@ -694,7 +686,7 @@ exports['default'] = function (instance) { }; module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvZWFjaC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQU1PLFVBQVU7O3lCQUNLLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLFVBQVMsT0FBTyxFQUFFLE9BQU8sRUFBRTtBQUN6RCxRQUFJLENBQUMsT0FBTyxFQUFFO0FBQ1osWUFBTSwyQkFBYyw2QkFBNkIsQ0FBQyxDQUFDO0tBQ3BEOztBQUVELFFBQUksRUFBRSxHQUFHLE9BQU8sQ0FBQyxFQUFFO1FBQ2pCLE9BQU8sR0FBRyxPQUFPLENBQUMsT0FBTztRQUN6QixDQUFDLEdBQUcsQ0FBQztRQUNMLEdBQUcsR0FBRyxFQUFFO1FBQ1IsSUFBSSxZQUFBO1FBQ0osV0FBVyxZQUFBLENBQUM7O0FBRWQsUUFBSSxPQUFPLENBQUMsSUFBSSxJQUFJLE9BQU8sQ0FBQyxHQUFHLEVB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gICAgICBmb3IgKGxldCBqID0gY29udGV4dC5sZW5ndGg7IGkgPCBqOyBpKyspIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKGksIGksIGkgPT09IGNvbnRleHQubGVuZ3RoIC0gMSk7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGxldCBwcmlvcktleTtcblxuICAgICAgICBPYmplY3Qua2V5cyhjb250ZXh0KS5mb3JFYWNoKGtleSA9PiB7XG4gICAgICAgICAgLy8gV2UncmUgcnVubmluZyB0aGUgaXRlcmF0aW9ucyBvbmUgc3RlcCBvdXQgb2Ygc3luYyBzbyB3ZSBjYW4gZGV0ZWN0XG4gICAgICAgICAgLy8gdGhlIGxhc3QgaXRlcmF0aW9uIHdpdGhvdXQgaGF2ZSB0byBzY2FuIHRoZSBvYmplY3QgdHdpY2UgYW5kIGNyZWF0ZVxuICAgICAgICAgIC8vIGFuIGl0ZXJtZWRpYXRlIGtleXMgYXJyYXkuXG4gICAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGV4ZWNJdGVyYXRpb24ocHJpb3JLZXksIGkgLSAxKTtcbiAgICAgICAgICB9XG4gICAgICAgICAgcHJpb3JLZXkgPSBrZXk7XG4gICAgICAgICAgaSsrO1xuICAgICAgICB9KTtcbiAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSwgdHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ== +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL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UGF0aCwgb3B0aW9ucy5pZHNbMF0pICsgJy4nO1xuICAgIH1cblxuICAgIGlmIChpc0Z1bmN0aW9uKGNvbnRleHQpKSB7IGNvbnRleHQgPSBjb250ZXh0LmNhbGwodGhpcyk7IH1cblxuICAgIGlmIChvcHRpb25zLmRhdGEpIHtcbiAgICAgIGRhdGEgPSBjcmVhdGVGcmFtZShvcHRpb25zLmRhdGEpO1xuICAgIH1cblxuICAgIGZ1bmN0aW9uIGV4ZWNJdGVyYXRpb24oZmllbGQsIGluZGV4LCBsYXN0KSB7XG4gICAgICBpZiAoZGF0YSkge1xuICAgICAgICBkYXRhLmtleSA9IGZpZWxkO1xuICAgICAgICBkYXRhLmluZGV4ID0gaW5kZXg7XG4gICAgICAgIGRhdGEuZmlyc3QgPSBpbmRleCA9PT0gMDtcbiAgICAgICAgZGF0YS5sYXN0ID0gISFsYXN0O1xuXG4gICAgICAgIGlmIChjb250ZXh0UGF0aCkge1xuICAgICAgICAgIGRhdGEuY29udGV4dFBhdGggPSBjb250ZXh0UGF0aCArIGZpZWxkO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIHJldCA9IHJldCArIGZuKGNvbnRleHRbZmllbGRdLCB7XG4gICAgICAgIGRhdGE6IGRhdGEsXG4gICAgICAgIGJsb2NrUGFyYW1zOiBibG9ja1BhcmFtcyhbY29udGV4dFtmaWVsZF0sIGZpZWxkXSwgW2NvbnRleHRQYXRoICsgZmllbGQsIG51bGxdKVxuICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKGNvbnRleHQgJiYgdHlwZW9mIGNvbnRleHQgPT09ICdvYmplY3QnKSB7XG4gICAgICBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgICBmb3IgKGxldCBqID0gY29udGV4dC5sZW5ndGg7IGkgPCBqOyBpKyspIHtcbiAgICAgICAgICBpZiAoaSBpbiBjb250ZXh0KSB7XG4gICAgICAgICAgICBleGVjSXRlcmF0aW9uKGksIGksIGkgPT09IGNvb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SXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSk7XG4gICAgICAgICAgfVxuICAgICAgICAgIHByaW9yS2V5ID0ga2V5O1xuICAgICAgICAgIGkrKztcbiAgICAgICAgfSk7XG4gICAgICAgIGlmIChwcmlvcktleSAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgZXhlY0l0ZXJhdGlvbihwcmlvcktleSwgaSAtIDEsIHRydWUpO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuXG4gICAgaWYgKGkgPT09IDApIHtcbiAgICAgIHJldCA9IGludmVyc2UodGhpcyk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHJldDtcbiAgfSk7XG59XG4iXX0= /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) @@ -732,7 +724,7 @@ exports['default'] = function (instance) { }; module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozt5QkFBc0IsY0FBYzs7OztxQkFFckIsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxlQUFlLEVBQUUsaUNBQWdDO0FBQ3ZFLFFBQUksU0FBUyxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUU7O0FBRTFCLGFBQU8sU0FBUyxDQUFDO0tBQ2xCLE1BQU07O0FBRUwsWUFBTSwyQkFDSixtQkFBbUIsR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUNqRSxDQUFDO0tBQ0g7R0FDRixDQUFDLENBQUM7Q0FDSiIs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LE1BQU07O0FBRUwsWUFBTSwyQkFBYyxtQkFBbUIsR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFDLENBQUM7S0FDdkY7R0FDRixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJoZWxwZXItbWlzc2luZy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBFeGNlcHRpb24gZnJvbSAnLi4vZXhjZXB0aW9uJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ2hlbHBlck1pc3NpbmcnLCBmdW5jdGlvbigvKiBbYXJncywgXW9wdGlvbnMgKi8pIHtcbiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCA9PT0gMSkge1xuICAgICAgLy8gQSBtaXNzaW5nIGZpZWxkIGluIGEge3tmb299fSBjb25zdHJ1Y3QuXG4gICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBTb21lb25lIGlzIGFjdHVhbGx5IHRyeWluZyB0byBjYWxsIHNvbWV0aGluZywgYmxvdyB1cC5cbiAgICAgIHRocm93IG5ldyBFeGNlcHRpb24oJ01pc3NpbmcgaGVscGVyOiBcIicgKyBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdLm5hbWUgKyAnXCInKTtcbiAgICB9XG4gIH0pO1xufVxuIl19 /***/ }), @@ -781,16 +773,12 @@ exports['default'] = function (instance) { if (arguments.length != 2) { throw new _exception2['default']('#unless requires exactly one argument'); } - return instance.helpers['if'].call(this, conditional, { - fn: options.inverse, - inverse: options.fn, - hash: options.hash - }); + return instance.helpers['if'].call(this, conditional, { fn: options.inverse, inverse: options.fn, hash: options.hash }); }); }; module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2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KHRoaXMpO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gb3B0aW9ucy5mbih0aGlzKTtcbiAgICB9XG4gIH0pO1xuXG4gIGluc3RhbmNlLnJlZ2lzdGVySGVscGVyKCd1bmxlc3MnLCBmdW5jdGlvbihjb25kaXRpb25hbCwgb3B0aW9ucykge1xuICAgIGlmIChhcmd1bWVudHMubGVuZ3RoICE9IDIpIHsgdGhyb3cgbmV3IEV4Y2VwdGlvbignI3VubGVzcyByZXF1aXJlcyBleGFjdGx5IG9uZSBhcmd1bWVudCcpO31cbiAgICByZXR1cm4gaW5zdGFuY2UuaGVscGVyc1snaWYnXS5jYWxsKHRoaXMsIGNvbmRpdGlvbmFsLCB7Zm46IG9wdGlvbnMuaW52ZXJzZSwgaW52ZXJzZTogb3B0aW9ucy5mbiwgaGFzaDogb3B0aW9ucy5oYXNofSk7XG4gIH0pO1xufVxuIl19 /***/ }), @@ -828,7 +816,7 @@ exports['default'] = function (instance) { }; module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ3BCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUM1QyxTQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7QUFDN0MsVUFBSSxDQU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), @@ -844,19 +832,22 @@ module.exports = exports['default']; exports.__esModule = true; +var dangerousPropertyRegex = /^(constructor|__defineGetter__|__defineSetter__|__lookupGetter__|__proto__)$/; + +exports.dangerousPropertyRegex = dangerousPropertyRegex; exports['default'] = function (instance) { - instance.registerHelper('lookup', function (obj, field, options) { + instance.registerHelper('lookup', function (obj, field) { if (!obj) { - // Note for 5.0: Change to "obj == null" in 5.0 return obj; } - return options.lookupProperty(obj, field); + if (dangerousPropertyRegex.test(String(field)) && !Object.prototype.propertyIsEnumerable.call(obj, field)) { + return undefined; + } + return obj[field]; }); }; - -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9va3VwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxHQUFHLEVBQUUsS0FBSyxFQUFFLE9BQU8sRUFBRTtBQUM5RCxRQUFJLENBQUMsR0FBRyxFQUFFOztBQUVSLGFBQU8sR0FBRyxDQUFDO0tBQ1o7QUFDRCxXQUFPLE9BQU8sQ0FBQyxjQUFjLENBQUMsR0FBRyxFQUFFLEtBQUssQ0FBQyxDQUFDO0dBQzNDLENBQUMsQ0FBQztDQUNKIiwiZmlsZSI6Imxvb2t1cC5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uKGluc3RhbmNlKSB7XG4gIGluc3RhbmNlLnJlZ2lzdGVySGVscGVyKCdsb29rdXAnLCBmdW5jdGlvbihvYmosIGZpZWxkLCBvcHRpb25zKSB7XG4gICAgaWYgKCFvYmopIHtcbiAgICAgIC8vIE5vdGUgZm9yIDUuMDogQ2hhbmdlIHRvIFwib2JqID09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mN0aW9uKGluc3RhbmNlKSB7XG4gIGluc3RhbmNlLnJlZ2lzdGVySGVscGVyKCdsb29rdXAnLCBmdW5jdGlvbihvYmosIGZpZWxkKSB7XG4gICAgaWYgKCFvYmopIHtcbiAgICAgIHJldHVybiBvYmo7XG4gICAgfVxuICAgIGlmIChkYW5nZXJvdXNQcm9wZXJ0eVJlZ2V4LnRlc3QoU3RyaW5nKGZpZWxkKSkgJiYgIU9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChvYmosIGZpZWxkKSkge1xuICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICB9XG4gICAgcmV0dXJuIG9ialtmaWVsZF07XG4gIH0pO1xufVxuIl19 /***/ }), @@ -911,157 +902,7 @@ exports['default'] = function (instance) { }; module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQU1PLFVBQVU7O3lCQUNLLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLFVBQVMsT0FBTyxFQUFFLE9BQU8sRUFBRTtBQUN6RCxRQUFJLFNBQVMsQ0FBQyxNQUFNLElBQUksQ0FBQyxFQUFFO0FBQ3pCLFlBQU0sMkJBQWMscUNBQXFDLENBQUMsQ0FBQztLQUM1RDtBQUNELFFBQUksa0JBQVcsT0FBTyxDQUFDLEVBQUU7QUFDdkIsYUFBTyxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDOUI7O0FBRUQsUUFBSSxFQUFFLEdBQUcsT0FBTyxDQUFDLEVBQUUsQ0FBQzs7QUFFcEIsU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ge1xuICAgIGlmIChhcmd1bWVudHMubGVuZ3RoICE9IDIpIHtcbiAgICAgIHRocm93IG5ldyBFeGNlcHRpb24oJyN3aXRoIHJlcXVpcmVzIGV4YWN0bHkgb25lIGFyZ3VtZW50Jyk7XG4gICAgfVxuICAgIGlmIChpc0Z1bmN0aW9uKGNvbnRleHQpKSB7XG4gICAgICBjb250ZXh0ID0gY29udGV4dC5jYWxsKHRoaXMpO1xuICAgIH1cblxuICAgIGxldCBmbiA9IG9wdGlvbnMuZm47XG5cbiAgICBpZiAoIWlzRW1wdHkoY29udGV4dCkpIHtcbiAgICAgIGxldCBkYXRhID0gb3B0aW9ucy5kYXRhO1xuICAgICAgaWYgKG9wdGlvbnMuZGF0YSAmJiBvcHRpb25zLmlkcykge1xuICAgICAgICBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKFxuICAgICAgICAgIG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCxcbiAgICAgICAgICBvcHRpb25zLmlkc1swXVxuICAgICAgICApO1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gZm4oY29udGV4dCwge1xuICAgICAgICBkYXRhOiBkYXRhLFxuICAgICAgICBibG9ja1BhcmFtczogYmxvY2tQYXJhbXMoW2NvbnRleHRdLCBbZGF0YSAmJiBkYXRhLmNvbnRleHRQYXRoXSlcbiAgICAgIH0pO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gb3B0aW9ucy5pbnZlcnNlKHRoaXMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0= - - -/***/ }), - -/***/ "./node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js": -/*!******************************************************************************************!*\ - !*** ./node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.createNewLookupObject = createNewLookupObject; - -var _utils = __webpack_require__(/*! ../utils */ "./node_modules/handlebars/dist/cjs/handlebars/utils.js"); - -/** - * Create a new object with "null"-prototype to avoid truthy results on prototype properties. - * The resulting object can be used with "object[property]" to check if a property exists - * @param {...object} sources a varargs parameter of source objects that will be merged - * @returns {object} - */ - -function createNewLookupObject() { - for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) { - sources[_key] = arguments[_key]; - } - - return _utils.extend.apply(undefined, [Object.create(null)].concat(sources)); -} -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL2NyZWF0ZS1uZXctbG9va3VwLW9iamVjdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztxQkFBdUIsVUFBVTs7Ozs7Ozs7O0FBUTFCLFNBQVMscUJBQXFCLEdBQWE7b0NBQVQsT0FBTztBQUFQLFdBQU87OztBQUM5QyxTQUFPLGdDQUFPLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLFNBQUssT0FBTyxFQUFDLENBQUM7Q0FDaEQiLCJmaWxlIjoiY3JlYXRlLW5ldy1sb29rdXAtb2JqZWN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgZXh0ZW5kIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vKipcbiAqIENyZWF0ZSBhIG5ldyBvYmplY3Qgd2l0aCBcIm51bGxcIi1wcm90b3R5cGUgdG8gYXZvaWQgdHJ1dGh5IHJlc3VsdHMgb24gcHJvdG90eXBlIHByb3BlcnRpZXMuXG4gKiBUaGUgcmVzdWx0aW5nIG9iamVjdCBjYW4gYmUgdXNlZCB3aXRoIFwib2JqZWN0W3Byb3BlcnR5XVwiIHRvIGNoZWNrIGlmIGEgcHJvcGVydHkgZXhpc3RzXG4gKiBAcGFyYW0gey4uLm9iamVjdH0gc291cmNlcyBhIHZhcmFyZ3MgcGFyYW1ldGVyIG9mIHNvdXJjZSBvYmplY3RzIHRoYXQgd2lsbCBiZSBtZXJnZWRcbiAqIEByZXR1cm5zIHtvYmplY3R9XG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGVOZXdMb29rdXBPYmplY3QoLi4uc291cmNlcykge1xuICByZXR1cm4gZXh0ZW5kKE9iamVjdC5jcmVhdGUobnVsbCksIC4uLnNvdXJjZXMpO1xufVxuIl19 - - -/***/ }), - -/***/ "./node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js": -/*!******************************************************************************!*\ - !*** ./node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js ***! - \******************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.createProtoAccessControl = createProtoAccessControl; -exports.resultIsAllowed = resultIsAllowed; -exports.resetLoggedProperties = resetLoggedProperties; -// istanbul ignore next - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } - -var _createNewLookupObject = __webpack_require__(/*! ./create-new-lookup-object */ "./node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js"); - -var _logger = __webpack_require__(/*! ../logger */ "./node_modules/handlebars/dist/cjs/handlebars/logger.js"); - -var logger = _interopRequireWildcard(_logger); - -var loggedProperties = Object.create(null); - -function createProtoAccessControl(runtimeOptions) { - var defaultMethodWhiteList = Object.create(null); - defaultMethodWhiteList['constructor'] = false; - defaultMethodWhiteList['__defineGetter__'] = false; - defaultMethodWhiteList['__defineSetter__'] = false; - defaultMethodWhiteList['__lookupGetter__'] = false; - - var defaultPropertyWhiteList = Object.create(null); - // eslint-disable-next-line no-proto - defaultPropertyWhiteList['__proto__'] = false; - - return { - properties: { - whitelist: _createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList, runtimeOptions.allowedProtoProperties), - defaultValue: runtimeOptions.allowProtoPropertiesByDefault - }, - methods: { - whitelist: _createNewLookupObject.createNewLookupObject(defaultMethodWhiteList, runtimeOptions.allowedProtoMethods), - defaultValue: runtimeOptions.allowProtoMethodsByDefault - } - }; -} - -function resultIsAllowed(result, protoAccessControl, propertyName) { - if (typeof result === 'function') { - return checkWhiteList(protoAccessControl.methods, propertyName); - } else { - return checkWhiteList(protoAccessControl.properties, propertyName); - } -} - -function checkWhiteList(protoAccessControlForType, propertyName) { - if (protoAccessControlForType.whitelist[propertyName] !== undefined) { - return protoAccessControlForType.whitelist[propertyName] === true; - } - if (protoAccessControlForType.defaultValue !== undefined) { - return protoAccessControlForType.defaultValue; - } - logUnexpecedPropertyAccessOnce(propertyName); - return false; -} - -function logUnexpecedPropertyAccessOnce(propertyName) { - if (loggedProperties[propertyName] !== true) { - loggedProperties[propertyName] = true; - logger.log('error', 'Handlebars: Access has been denied to resolve the property "' + propertyName + '" because it is not an "own property" of its parent.\n' + 'You can add a runtime option to disable the check or this warning:\n' + 'See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'); - } -} - -function resetLoggedProperties() { - Object.keys(loggedProperties).forEach(function (propertyName) { - delete loggedProperties[propertyName]; - }); -} -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3Byb3RvLWFjY2Vzcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O3FDQUFzQyw0QkFBNEI7O3NCQUMxQyxXQUFXOztJQUF2QixNQUFNOztBQUVsQixJQUFNLGdCQUFnQixHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUM7O0FBRXRDLFN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FtZSA9PiB7XG4gICAgZGVsZXRlIGxvZ2dlZFByb3BlcnRpZXNbcHJvcGVydHlOYW1lXTtcbiAgfSk7XG59XG4iXX0= - - -/***/ }), - -/***/ "./node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js": -/*!****************************************************************************!*\ - !*** ./node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js ***! - \****************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.wrapHelper = wrapHelper; - -function wrapHelper(helper, transformOptionsFn) { - if (typeof helper !== 'function') { - // This should not happen, but apparently it does in https://github.com/wycats/handlebars.js/issues/1639 - // We try to make the wrapper least-invasive by not wrapping it, if the helper is not a function. - return helper; - } - var wrapper = function wrapper() /* dynamic arguments */{ - var options = arguments[arguments.length - 1]; - arguments[arguments.length - 1] = transformOptionsFn(options); - return helper.apply(this, arguments); - }; - return wrapper; -} -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3dyYXBIZWxwZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBTyxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUUsa0JBQWtCLEVBQUU7QUFDckQsTUFBSSxPQUFPLE1BQU0sS0FBSyxVQUFVLEVBQUU7OztBQUdoQyxXQUFPLE1BQU0sQ0FBQztHQUNmO0FBQ0QsTUFBSSxPQUFPLEdBQUcsU0FBVixPQUFPLDBCQUFxQztBQUM5QyxRQUFNLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUNoRCxhQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsR0FBRyxrQkFBa0IsQ0FBQyxPQUFPLENBQUM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H1cblxuICAgICAgcmV0dXJuIGZuKGNvbnRleHQsIHtcbiAgICAgICAgZGF0YTogZGF0YSxcbiAgICAgICAgYmxvY2tQYXJhbXM6IGJsb2NrUGFyYW1zKFtjb250ZXh0XSwgW2RhdGEgJiYgZGF0YS5jb250ZXh0UGF0aF0pXG4gICAgICB9KTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIG9wdGlvbnMuaW52ZXJzZSh0aGlzKTtcbiAgICB9XG4gIH0pO1xufVxuIl19 /***/ }), @@ -1104,8 +945,8 @@ var logger = { if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) { var method = logger.methodMap[level]; - // eslint-disable-next-line no-console if (!console[method]) { + // eslint-disable-line no-console method = 'log'; } @@ -1120,7 +961,7 @@ var logger = { exports['default'] = logger; module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUF3QixTQUFTOztBQUVqQyxJQUFJLE1BQU0sR0FBRztBQUNYLFdBQVMsRUFBRSxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE9BQU8sQ0FBQztBQUM3QyxPQUFLLEVBQUUsTUFBTTs7O0FBR2IsYUFBVyxFQUFFLHFCQUFTLEtBQUssRUFBRTtBQUMzQixRQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsRUFBRTtBQUM3QixVQUFJLFFBQVEsR0FBRyxlQUFRLE1BQU0sQ0FBQyxTQUFTLEVBQUUsS0FBSyxDQUFDLFdBQVcsRUFBRSxDQUFDLENBQUM7QUFDOUQsVUFBSSxRQUFRLElBQUksQ0FBQyxFQUFFO0FBQ2pCLGFBQUssR0FBRyxRQUFRLENBQUM7T0FDbEIsTUFBTTtBQUNMLGFBQUssR0FBRyxRQUF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G4gICAgICBsZXQgbGV2ZWxNYXAgPSBpbmRleE9mKGxvZ2dlci5tZXRob2RNYXAsIGxldmVsLnRvTG93ZXJDYXNlKCkpO1xuICAgICAgaWYgKGxldmVsTWFwID49IDApIHtcbiAgICAgICAgbGV2ZWwgPSBsZXZlbE1hcDtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGxldmVsID0gcGFyc2VJbnQobGV2ZWwsIDEwKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gbGV2ZWw7XG4gIH0sXG5cbiAgLy8gQ2FuIGJlIG92ZXJyaWRkZW4gaW4gdGhlIGhvc3QgZW52aXJvbm1lbnRcbiAgbG9nOiBmdW5jdGlvbihsZXZlbCwgLi4ubWVzc2FnZSkge1xuICAgIGxldmVsID0gbG9nZ2VyLmxvb2t1cExldmVsKGxldmVsKTtcblxuICAgIGlmIChcbiAgICAgIHR5cGVvZiBjb25zb2xlICE9PSAndW5kZWZpbmVkJyAmJlxuICAgICAgbG9nZ2VyLmxvb2t1cExldmVsKGxvZ2dlci5sZXZlbCkgPD0gbGV2ZWxcbiAgICApIHtcbiAgICAgIGxldCBtZXRob2QgPSBsb2dnZXIubWV0aG9kTWFwW2xldmVsXTtcbiAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby1jb25zb2xlXG4gICAgICBpZiAoIWNvbnNvbGVbbWV0aG9kXSkge1xuICAgICAgICBtZXRob2QgPSAnbG9nJztcbiAgICAgIH1cbiAgICAgIGNvbnNvbGVbbWV0aG9kXSguLi5tZXNzYWdlKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgfVxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBsb2dnZXI7XG4iXX0= +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qcyJdLCJuY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bGV2ZWwpIHtcbiAgICAgIGxldCBtZXRob2QgPSBsb2dnZXIubWV0aG9kTWFwW2xldmVsXTtcbiAgICAgIGlmICghY29uc29sZVttZXRob2RdKSB7IC8vIGVzbGludC1kaXNhYmxlLWxpbmUgbm8tY29uc29sZVxuICAgICAgICBtZXRob2QgPSAnbG9nJztcbiAgICAgIH1cbiAgICAgIGNvbnNvbGVbbWV0aG9kXSguLi5tZXNzYWdlKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgfVxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBsb2dnZXI7XG4iXX0= /***/ }), @@ -1133,7 +974,8 @@ module.exports = exports['default']; /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(global) { +/* WEBPACK VAR INJECTION */(function(global) {/* global window */ + exports.__esModule = true; @@ -1151,7 +993,7 @@ exports['default'] = function (Handlebars) { }; module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL25vLWNvbmZsaWN0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxVQUFVLEVBQUU7O0FBRWxDLE1BQUksSUFBSSxHQUFHLE9BQU8sTUFBTSxLQUFLLFdBQVcsR0FBRyxNQUFNLEdBQUcsTUFBTTtNQUN4RCxXQUFXLEdBQUcsSUFBSSxDQUFDLFVBQVUsQ0FBQzs7QUFFaEMsWUFBVSxDQUFDLFVBQVUsR0FBRyxZQUFXO0FBQ2pDLFFBQUksSUFBSSxDQUFDLFVBQVUsS0FBSyxVQUFVLEVBQUU7QUFDbEMsVUFBSSxDQUFDLFVBQVUsR0FBRyxXQUFXLENBQUM7S0FDL0I7QUFDRCxXQUFPLFVBQVUsQ0FBQztHQUNuQixDQUFDO0NBQ0giLCJmaWxlIjoibm8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saWN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyogZ2xvYmFsIHdpbmRvdyAqL1xuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oSGFuZGxlYmFycykge1xuICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICBsZXQgcm9vdCA9IHR5cGVvZiBnbG9iYWwgIT09ICd1bmRlZmluZWQnID8gZ2xvYmFsIDogd2luZG93LFxuICAgICAgJEhhbmRsZWJhcnMgPSByb290LkhhbmRsZWJhcnM7XG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gIEhhbmRsZWJhcnMubm9Db25mbGljdCA9IGZ1bmN0aW9uKCkge1xuICAgIGlmIChyb290LkhhbmRsZWJhcnMgPT09IEhhbmRsZWJhcnMpIHtcbiAgICAgIHJvb3QuSGFuZGxlYmFycyA9ICRIYW5kbGViYXJzO1xuICAgIH1cbiAgICByZXR1cm4gSGFuZGxlYmFycztcbiAgfTtcbn1cbiJdfQ== /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) @@ -1194,10 +1036,6 @@ var _base = __webpack_require__(/*! ./base */ "./node_modules/handlebars/dist/cj var _helpers = __webpack_require__(/*! ./helpers */ "./node_modules/handlebars/dist/cjs/handlebars/helpers.js"); -var _internalWrapHelper = __webpack_require__(/*! ./internal/wrapHelper */ "./node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js"); - -var _internalProtoAccess = __webpack_require__(/*! ./internal/proto-access */ "./node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js"); - function checkRevision(compilerInfo) { var compilerRevision = compilerInfo && compilerInfo[0] || 1, currentRevision = _base.COMPILER_REVISION; @@ -1217,6 +1055,7 @@ function checkRevision(compilerInfo) { } function template(templateSpec, env) { + /* istanbul ignore next */ if (!env) { throw new _exception2['default']('No environment passed to template'); @@ -1243,16 +1082,13 @@ function template(templateSpec, env) { } partial = env.VM.resolvePartial.call(this, partial, context, options); - var extendedOptions = Utils.extend({}, options, { - hooks: this.hooks, - protoAccessControl: this.protoAccessControl - }); + var optionsWithHooks = Utils.extend({}, options, { hooks: this.hooks }); - var result = env.VM.invokePartial.call(this, partial, context, extendedOptions); + var result = env.VM.invokePartial.call(this, partial, context, optionsWithHooks); if (result == null && env.compile) { options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env); - result = options.partials[options.name](context, extendedOptions); + result = options.partials[options.name](context, optionsWithHooks); } if (result != null) { if (options.indent) { @@ -1276,31 +1112,14 @@ function template(templateSpec, env) { var container = { strict: function strict(obj, name, loc) { if (!obj || !(name in obj)) { - throw new _exception2['default']('"' + name + '" not defined in ' + obj, { - loc: loc - }); + throw new _exception2['default']('"' + name + '" not defined in ' + obj, { loc: loc }); } return obj[name]; }, - lookupProperty: function lookupProperty(parent, propertyName) { - var result = parent[propertyName]; - if (result == null) { - return result; - } - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return result; - } - - if (_internalProtoAccess.resultIsAllowed(result, container.protoAccessControl, propertyName)) { - return result; - } - return undefined; - }, lookup: function lookup(depths, name) { var len = depths.length; for (var i = 0; i < len; i++) { - var result = depths[i] && container.lookupProperty(depths[i], name); - if (result != null) { + if (depths[i] && depths[i][name] != null) { return depths[i][name]; } } @@ -1336,15 +1155,6 @@ function template(templateSpec, env) { } return value; }, - mergeIfNeeded: function mergeIfNeeded(param, common) { - var obj = param || common; - - if (param && common && param !== common) { - obj = Utils.extend({}, common, param); - } - - return obj; - }, // An empty object to use as replacement for null-contexts nullContext: Object.seal({}), @@ -1374,35 +1184,28 @@ function template(templateSpec, env) { function main(context /*, options*/) { return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths); } - main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams); return main(context, options); } - ret.isTop = true; ret._setup = function (options) { if (!options.partial) { - var mergedHelpers = Utils.extend({}, env.helpers, options.helpers); - wrapHelpersToPassLookupProperty(mergedHelpers, container); - container.helpers = mergedHelpers; + container.helpers = Utils.extend({}, env.helpers, options.helpers); if (templateSpec.usePartial) { - // Use mergeIfNeeded here to prevent compiling global partials multiple times - container.partials = container.mergeIfNeeded(options.partials, env.partials); + container.partials = Utils.extend({}, env.partials, options.partials); } if (templateSpec.usePartial || templateSpec.useDecorators) { container.decorators = Utils.extend({}, env.decorators, options.decorators); } container.hooks = {}; - container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options); var keepHelperInHelpers = options.allowCallsToHelperMissing || templateWasPrecompiledWithCompilerV7; _helpers.moveHelperToHooks(container, 'helperMissing', keepHelperInHelpers); _helpers.moveHelperToHooks(container, 'blockHelperMissing', keepHelperInHelpers); } else { - container.protoAccessControl = options.protoAccessControl; // internal option container.helpers = options.helpers; container.partials = options.partials; container.decorators = options.decorators; @@ -1522,21 +1325,7 @@ function executeDecorators(fn, prog, container, depths, data, blockParams) { } return prog; } - -function wrapHelpersToPassLookupProperty(mergedHelpers, container) { - Object.keys(mergedHelpers).forEach(function (helperName) { - var helper = mergedHelpers[helperName]; - mergedHelpers[helperName] = passLookupPropertyOption(helper, container); - }); -} - -function passLookupPropertyOption(helper, container) { - var lookupProperty = container.lookupProperty; - return _internalWrapHelper.wrapHelper(helper, function (options) { - return Utils.extend({ lookupProperty: lookupProperty }, options); - }); -} -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3lCQUNLLGFBQWE7Ozs7b0JBTTVCLFFBQVE7O3VCQUNtQixXQUFXOztrQ0FDbEIsdUJBQXVCOzttQ0FJM0MseUJBQXlCOztBQUV6QixTQUFTLGFBQWEsQ0FBQyxZQUFZLEVB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}), @@ -1586,6 +1375,7 @@ exports.isEmpty = isEmpty; exports.createFrame = createFrame; exports.blockParams = blockParams; exports.appendContextPath = appendContextPath; + var escape = { '&': '&', '<': '<', @@ -1699,7 +1489,7 @@ function blockParams(params, ids) { function appendContextPath(contextPath, id) { return (contextPath ? contextPath + '.' : '') + id; } -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFNLE1BQU0sR0FBRztBQUNiLEtBQUcsRUFBRSxPQUFPO0FBQ1osS0FBRyxFQUFFLE1BQU07QUFDWCxLQUFHLEVBQUUsTUFBTTtBQUNYLEtBQUcsRUFBRSxRQUFRO0FBQ2IsS0FBRyxFQUFFLFFBQVE7QUFDYixLQUFHLEVBQUUsUUFBUTtBQUNiLEtBQUcsRUFBRSxRQUFRO0NBQ2QsQ0FBQzs7QUFFRixJQUFNLFFBQVEsR0FBRyxZQUFZO0lBQzNCLFFBQVEsR0FBRyxXQUFXLENBQUM7O0FBRXpCLFNBQVMsVUFBVSxDQUFDLEdBQUcsRUFBRTtBQUN2QixTQUFPLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztDQUNwQjs7QUFFTSxTQUFTLE1BQU0sQ0FBQyxHQUFHLG9CQUFvQjtBQUM1QyxPQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sRUFBRSxDQUFDLEVBQUUsRUFBRTtBQUN6QyxTQUFLLElBQUksR0FBRyxJQUFJLFNBQVMsQ0FBQyxDQUFDLENBQUMsRUFBRTtBQUM1QixVQUFJLE1BQU0sQ0FBQyxTQUFTLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLEVB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2JqZWN0J3MgdG8gc3RyaW5nIGhhcyBlc2NhcGVkIGNoYXJhY3RlcnMgaW4gaXQuXG4gICAgc3RyaW5nID0gJycgKyBzdHJpbmc7XG4gIH1cblxuICBpZiAoIXBvc3NpYmxlLnRlc3Qoc3RyaW5nKSkgeyByZXR1cm4gc3RyaW5nOyB9XG4gIHJldHVybiBzdHJpbmcucmVwbGFjZShiYWRDaGFycywgZXNjYXBlQ2hhcik7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc0VtcHR5KHZhbHVlKSB7XG4gIGlmICghdmFsdWUgJiYgdmFsdWUgIT09IDApIHtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSBlbHNlIGlmIChpc0FycmF5KHZhbHVlKSAmJiB2YWx1ZS5sZW5ndGggPT09IDApIHtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZUZyYW1lKG9iamVjdCkge1xuICBsZXQgZnJhbWUgPSBleHRlbmQoe30sIG9iamVjdCk7XG4gIGZyYW1lLl9wYXJlbnQgPSBvYmplY3Q7XG4gIHJldHVybiBmcmFtZTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGJsb2NrUGFyYW1zKHBhcmFtcywgaWRzKSB7XG4gIHBhcmFtcy5wYXRoID0gaWRzO1xuICByZXR1cm4gcGFyYW1zO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYXBwZW5kQ29udGV4dFBhdGgoY29udGV4dFBhdGgsIGlkKSB7XG4gIHJldHVybiAoY29udGV4dFBhdGggPyBjb250ZXh0UGF0aCArICcuJyA6ICcnKSArIGlkO1xufVxuIl19 /***/ }), @@ -8837,7 +8627,7 @@ var mmin = Math.min; */ /** - * {@link https://nhn.github.io/tui.code-snippet/latest/tui.util.CustomEvents.html CustomEvents} document at {@link https://github.com/nhn/tui.code-snippet tui-code-snippet} + * {@link https://nhn.github.io/tui.code-snippet/latest/CustomEvents CustomEvents} document at {@link https://github.com/nhn/tui.code-snippet tui-code-snippet} * @typedef {class} CustomEvents */ @@ -9060,24 +8850,8 @@ Calendar.prototype._initialize = function(options) { allday: null, time: null }, util.pick(options, 'template') || {}), - week: util.extend( - { - startDayOfWeek: 0, - workweek: false - }, - util.pick(options, 'week') || {} - ), - month: util.extend( - { - startDayOfWeek: 0, - workweek: false, - scheduleFilter: function(schedule) { - return Boolean(schedule.isVisible) && - (schedule.category === 'allday' || schedule.category === 'time'); - } - }, - util.pick(options, 'month') || {} - ), + week: util.extend({}, util.pick(options, 'week') || {}), + month: util.extend({}, util.pick(options, 'month') || {}), calendars: [], useCreationPopup: false, useDetailPopup: false, @@ -9087,6 +8861,20 @@ Calendar.prototype._initialize = function(options) { isReadOnly: false }, options); + this._options.week = util.extend({ + startDayOfWeek: 0, + workweek: false + }, util.pick(this._options, 'week') || {}); + + this._options.month = util.extend({ + startDayOfWeek: 0, + workweek: false, + scheduleFilter: function(schedule) { + return Boolean(schedule.isVisible) && + (schedule.category === 'allday' || schedule.category === 'time'); + } + }, util.pick(options, 'month') || {}); + if (this._options.isReadOnly) { this._options.useCreationPopup = false; } @@ -13800,95 +13588,70 @@ module.exports = MonthCreationGuide; var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=container.escapeExpression, alias2=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=container.escapeExpression, alias2=container.lambda; return "
\n"; },"3":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
\n
\n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"isAllDay") : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.program(6, data, 0),"data":data,"loc":{"start":{"line":9,"column":12},"end":{"line":13,"column":19}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isAllDay : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.program(6, data, 0),"data":data,"loc":{"start":{"line":9,"column":12},"end":{"line":13,"column":19}}})) != null ? stack1 : "") + "
\n
 
\n
\n"; },"4":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " " - + ((stack1 = (lookupProperty(helpers,"allday-tmpl")||(depth0 && lookupProperty(depth0,"allday-tmpl"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"allday-tmpl","hash":{},"data":data,"loc":{"start":{"line":10,"column":16},"end":{"line":10,"column":38}}})) != null ? stack1 : "") + + ((stack1 = (helpers["allday-tmpl"]||(depth0 && depth0["allday-tmpl"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"allday-tmpl","hash":{},"data":data,"loc":{"start":{"line":10,"column":16},"end":{"line":10,"column":38}}})) != null ? stack1 : "") + "\n"; },"6":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " " - + ((stack1 = (lookupProperty(helpers,"time-tmpl")||(depth0 && lookupProperty(depth0,"time-tmpl"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"time-tmpl","hash":{},"data":data,"loc":{"start":{"line":12,"column":16},"end":{"line":12,"column":36}}})) != null ? stack1 : "") + + ((stack1 = (helpers["time-tmpl"]||(depth0 && depth0["time-tmpl"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"time-tmpl","hash":{},"data":data,"loc":{"start":{"line":12,"column":16},"end":{"line":12,"column":36}}})) != null ? stack1 : "") + "\n"; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
\n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"isCreationMode") : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data,"loc":{"start":{"line":2,"column":4},"end":{"line":17,"column":11}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isCreationMode : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data,"loc":{"start":{"line":2,"column":4},"end":{"line":17,"column":11}}})) != null ? stack1 : "") + "
\n"; },"useData":true}); @@ -14055,9 +13818,12 @@ MonthGuide.prototype._getGuideElement = function(y) { * @returns {number[]} coordinate (x, y) */ MonthGuide.prototype._getCoordByDate = function(date) { - var weeks = this.weeks, - days = this.days, - getIdxFromDiff = function(d1, d2) { + var WEEKEND_DAYS = 2; + var weeks = this.weeks; + var isWorkWeek = this.view.options.workweek; + var days = isWorkWeek ? this.days + WEEKEND_DAYS : this.days; + + var getIdxFromDiff = function(d1, d2) { return mfloor(datetime.millisecondsTo('day', mabs(d2 - d1))); }, monthStart = datetime.start(weeks[0].options.renderStartDate), @@ -14670,101 +14436,71 @@ module.exports = MonthMove; var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " border-left:3px solid " - + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"borderColor") : stack1), depth0)) + + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0)) + ";\n "; },"3":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return " \n"; },"5":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; - return container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":16,"column":110},"end":{"line":16,"column":124}}}) : helper))) + return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":16,"column":110},"end":{"line":16,"column":124}}}) : helper))) + "weekday-schedule-title-focused\""; },"7":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " " - + ((stack1 = (lookupProperty(helpers,"allday-tmpl")||(depth0 && lookupProperty(depth0,"allday-tmpl"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"allday-tmpl","hash":{},"data":data,"loc":{"start":{"line":18,"column":12},"end":{"line":18,"column":35}}})) != null ? stack1 : "") + + ((stack1 = (helpers["allday-tmpl"]||(depth0 && depth0["allday-tmpl"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{"name":"allday-tmpl","hash":{},"data":data,"loc":{"start":{"line":18,"column":12},"end":{"line":18,"column":35}}})) != null ? stack1 : "") + "\n"; },"9":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " " - + ((stack1 = (lookupProperty(helpers,"time-tmpl")||(depth0 && lookupProperty(depth0,"time-tmpl"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"time-tmpl","hash":{},"data":data,"loc":{"start":{"line":20,"column":12},"end":{"line":20,"column":33}}})) != null ? stack1 : "") + + ((stack1 = (helpers["time-tmpl"]||(depth0 && depth0["time-tmpl"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{"name":"time-tmpl","hash":{},"data":data,"loc":{"start":{"line":20,"column":12},"end":{"line":20,"column":33}}})) != null ? stack1 : "") + "\n"; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
\n" - + ((stack1 = lookupProperty(helpers,"unless").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"isAllDay") : stack1),{"name":"unless","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":13,"column":4},"end":{"line":15,"column":15}}})) != null ? stack1 : "") + + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{"name":"unless","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":13,"column":4},"end":{"line":15,"column":15}}})) != null ? stack1 : "") + "
\n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"isAllDay") : stack1),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.program(9, data, 0),"data":data,"loc":{"start":{"line":17,"column":8},"end":{"line":21,"column":15}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.program(9, data, 0),"data":data,"loc":{"start":{"line":17,"column":8},"end":{"line":21,"column":15}}})) != null ? stack1 : "") + "
\n
\n
\n"; },"useData":true}); @@ -21177,69 +20913,54 @@ Handlebars.registerHelper(helpers); var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
\n \n " - + ((stack1 = (lookupProperty(helpers,"monthDayname-tmpl")||(depth0 && lookupProperty(depth0,"monthDayname-tmpl"))||alias2).call(alias1,depth0,{"name":"monthDayname-tmpl","hash":{},"data":data,"loc":{"start":{"line":16,"column":12},"end":{"line":16,"column":40}}})) != null ? stack1 : "") + + ((stack1 = (helpers["monthDayname-tmpl"]||(depth0 && depth0["monthDayname-tmpl"])||alias2).call(alias1,depth0,{"name":"monthDayname-tmpl","hash":{},"data":data,"loc":{"start":{"line":16,"column":12},"end":{"line":16,"column":40}}})) != null ? stack1 : "") + "\n \n
\n"; },"2":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " border-right: " - + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"borderLeft")), depth0)) + + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderLeft), depth0)) + ";\n"; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, alias3=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, alias3=container.lambda; return "
\n" - + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"daynames") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":0},"end":{"line":19,"column":9}}})) != null ? stack1 : "") + + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.daynames : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":0},"end":{"line":19,"column":9}}})) != null ? stack1 : "") + "
\n"; },"useData":true}); @@ -21254,300 +20975,225 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = (lookupProperty(helpers,"fi")||(depth0 && lookupProperty(depth0,"fi"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"isAllDay") : stack1),"||",(depth0 != null ? lookupProperty(depth0,"hasMultiDates") : depth0),{"name":"fi","hash":{},"fn":container.program(2, data, 0),"inverse":container.program(7, data, 0),"data":data,"loc":{"start":{"line":9,"column":8},"end":{"line":65,"column":15}}})) != null ? stack1 : ""); + return ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),"||",(depth0 != null ? depth0.hasMultiDates : depth0),{"name":"fi","hash":{},"fn":container.program(2, data, 0),"inverse":container.program(7, data, 0),"data":data,"loc":{"start":{"line":9,"column":8},"end":{"line":65,"column":15}}})) != null ? stack1 : ""); },"2":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5="function", lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5="function"; return "
\n " - + ((stack1 = (lookupProperty(helpers,"allday-tmpl")||(depth0 && lookupProperty(depth0,"allday-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"allday-tmpl","hash":{},"data":data,"loc":{"start":{"line":20,"column":20},"end":{"line":20,"column":43}}})) != null ? stack1 : "") + + ((stack1 = (helpers["allday-tmpl"]||(depth0 && depth0["allday-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{"name":"allday-tmpl","hash":{},"data":data,"loc":{"start":{"line":20,"column":20},"end":{"line":20,"column":43}}})) != null ? stack1 : "") + "\n
\n"; },"3":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " color: #ffffff; background-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "; border-left:3px solid " - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"borderColor") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0)) + ";\n"; },"5":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "; background-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"bgColor") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0)) + "; border-left:3px solid " - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"borderColor") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0)) + ";\n"; },"7":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = (lookupProperty(helpers,"fi")||(depth0 && lookupProperty(depth0,"fi"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"category") : stack1),"===","time",{"name":"fi","hash":{},"fn":container.program(8, data, 0),"inverse":container.program(17, data, 0),"data":data,"loc":{"start":{"line":23,"column":12},"end":{"line":64,"column":19}}})) != null ? stack1 : ""); + return ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.category : stack1),"===","time",{"name":"fi","hash":{},"fn":container.program(8, data, 0),"inverse":container.program(17, data, 0),"data":data,"loc":{"start":{"line":23,"column":12},"end":{"line":64,"column":19}}})) != null ? stack1 : ""); },"8":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5="function", lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5="function"; return "
\n \n " - + ((stack1 = (lookupProperty(helpers,"time-tmpl")||(depth0 && lookupProperty(depth0,"time-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"time-tmpl","hash":{},"data":data,"loc":{"start":{"line":42,"column":53},"end":{"line":42,"column":74}}})) != null ? stack1 : "") + + ((stack1 = (helpers["time-tmpl"]||(depth0 && depth0["time-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{"name":"time-tmpl","hash":{},"data":data,"loc":{"start":{"line":42,"column":53},"end":{"line":42,"column":74}}})) != null ? stack1 : "") + "\n
\n"; },"9":function(container,depth0,helpers,partials,data) { return " background: #ffffff\n"; },"11":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " background:" - + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"borderColor") : stack1), depth0)) + + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0)) + "\n "; },"13":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return "\n color: #ffffff;\n background-color: " - + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "\n"; },"15":function(container,depth0,helpers,partials,data) { return " color:#333;\n "; },"17":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5="function", lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5="function"; return "
\n " - + ((stack1 = (lookupProperty(helpers,"schedule-tmpl")||(depth0 && lookupProperty(depth0,"schedule-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"schedule-tmpl","hash":{},"data":data,"loc":{"start":{"line":62,"column":65},"end":{"line":62,"column":90}}})) != null ? stack1 : "") + + ((stack1 = (helpers["schedule-tmpl"]||(depth0 && depth0["schedule-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{"name":"schedule-tmpl","hash":{},"data":data,"loc":{"start":{"line":62,"column":65},"end":{"line":62,"column":90}}})) != null ? stack1 : "") + "\n
\n"; },"18":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; - return container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":47,"column":115},"end":{"line":47,"column":129}}}) : helper))) + return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":47,"column":115},"end":{"line":47,"column":129}}}) : helper))) + "weekday-schedule-focused "; },"20":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " margin-left: " - + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"marginLeft")), depth0)) + + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginLeft), depth0)) + ";\n"; },"22":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " margin-right: " - + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"marginRight")), depth0)) + + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginRight), depth0)) + ";\n"; },"24":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " color: #ffffff; background-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "; border-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + ";\n"; },"26":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "; background-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"bgColor") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0)) + "; border-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"borderColor") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0)) + ";\n"; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
\n
\n " - + ((stack1 = (lookupProperty(helpers,"monthMoreTitleDate-tmpl")||(depth0 && lookupProperty(depth0,"monthMoreTitleDate-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"date") : depth0),(depth0 != null ? lookupProperty(depth0,"dayname") : depth0),{"name":"monthMoreTitleDate-tmpl","hash":{},"data":data,"loc":{"start":{"line":4,"column":58},"end":{"line":4,"column":100}}})) != null ? stack1 : "") + + ((stack1 = (helpers["monthMoreTitleDate-tmpl"]||(depth0 && depth0["monthMoreTitleDate-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.date : depth0),(depth0 != null ? depth0.dayname : depth0),{"name":"monthMoreTitleDate-tmpl","hash":{},"data":data,"loc":{"start":{"line":4,"column":58},"end":{"line":4,"column":100}}})) != null ? stack1 : "") + "\n \n
\n
\n" - + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"schedules") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":8,"column":8},"end":{"line":66,"column":17}}})) != null ? stack1 : "") + + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":8,"column":8},"end":{"line":66,"column":17}}})) != null ? stack1 : "") + "
\n
\n"; },"useData":true}); @@ -21562,139 +21208,99 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
\n
\n " - + ((stack1 = (lookupProperty(helpers,"monthGridHeader-tmpl")||(depth0 && lookupProperty(depth0,"monthGridHeader-tmpl"))||alias2).call(alias1,depth0,{"name":"monthGridHeader-tmpl","hash":{},"data":data,"loc":{"start":{"line":14,"column":44},"end":{"line":14,"column":75}}})) != null ? stack1 : "") + + ((stack1 = (helpers["monthGridHeader-tmpl"]||(depth0 && depth0["monthGridHeader-tmpl"])||alias2).call(alias1,depth0,{"name":"monthGridHeader-tmpl","hash":{},"data":data,"loc":{"start":{"line":14,"column":44},"end":{"line":14,"column":75}}})) != null ? stack1 : "") + "\n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"hiddenSchedules") : depth0),{"name":"if","hash":{},"fn":container.program(10, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":15,"column":12},"end":{"line":17,"column":19}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{"name":"if","hash":{},"fn":container.program(10, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":15,"column":12},"end":{"line":17,"column":19}}})) != null ? stack1 : "") + "
\n
\n " - + ((stack1 = (lookupProperty(helpers,"monthGridFooter-tmpl")||(depth0 && lookupProperty(depth0,"monthGridFooter-tmpl"))||alias2).call(alias1,depth0,{"name":"monthGridFooter-tmpl","hash":{},"data":data,"loc":{"start":{"line":20,"column":44},"end":{"line":20,"column":75}}})) != null ? stack1 : "") + + ((stack1 = (helpers["monthGridFooter-tmpl"]||(depth0 && depth0["monthGridFooter-tmpl"])||alias2).call(alias1,depth0,{"name":"monthGridFooter-tmpl","hash":{},"data":data,"loc":{"start":{"line":20,"column":44},"end":{"line":20,"column":75}}})) != null ? stack1 : "") + "\n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"hiddenSchedules") : depth0),{"name":"if","hash":{},"fn":container.program(12, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":21,"column":12},"end":{"line":23,"column":19}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{"name":"if","hash":{},"fn":container.program(12, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":21,"column":12},"end":{"line":23,"column":19}}})) != null ? stack1 : "") + "
\n
\n"; },"2":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; return " " - + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":7,"column":84},"end":{"line":7,"column":98}}}) : helper))) + + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":7,"column":84},"end":{"line":7,"column":98}}}) : helper))) + "near-month-day"; },"4":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; return " " - + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":7,"column":135},"end":{"line":7,"column":149}}}) : helper))) + + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":7,"column":135},"end":{"line":7,"column":149}}}) : helper))) + "today"; },"6":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; return " " - + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":7,"column":182},"end":{"line":7,"column":196}}}) : helper))) + + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":7,"column":182},"end":{"line":7,"column":196}}}) : helper))) + "extra-date"; },"8":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " border-right:" - + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"borderLeft")), depth0)) + + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderLeft), depth0)) + ";\n"; },"10":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return " " - + ((stack1 = (lookupProperty(helpers,"monthGridHeaderExceed-tmpl")||(depth0 && lookupProperty(depth0,"monthGridHeaderExceed-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"hiddenSchedules") : depth0),{"name":"monthGridHeaderExceed-tmpl","hash":{},"data":data,"loc":{"start":{"line":16,"column":87},"end":{"line":16,"column":135}}})) != null ? stack1 : "") + + ((stack1 = (helpers["monthGridHeaderExceed-tmpl"]||(depth0 && depth0["monthGridHeaderExceed-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{"name":"monthGridHeaderExceed-tmpl","hash":{},"data":data,"loc":{"start":{"line":16,"column":87},"end":{"line":16,"column":135}}})) != null ? stack1 : "") + "\n"; },"12":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return " " - + ((stack1 = (lookupProperty(helpers,"monthGridFooterExceed-tmpl")||(depth0 && lookupProperty(depth0,"monthGridFooterExceed-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"hiddenSchedules") : depth0),{"name":"monthGridFooterExceed-tmpl","hash":{},"data":data,"loc":{"start":{"line":22,"column":87},"end":{"line":22,"column":135}}})) != null ? stack1 : "") + + ((stack1 = (helpers["monthGridFooterExceed-tmpl"]||(depth0 && depth0["monthGridFooterExceed-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{"name":"monthGridFooterExceed-tmpl","hash":{},"data":data,"loc":{"start":{"line":22,"column":87},"end":{"line":22,"column":135}}})) != null ? stack1 : "") + "\n"; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
\n
\n" - + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"dates") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":6,"column":0},"end":{"line":26,"column":11}}})) != null ? stack1 : "") + + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":6,"column":0},"end":{"line":26,"column":11}}})) != null ? stack1 : "") + "
\n
\n"; },"useData":true}); @@ -21709,369 +21315,249 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":0},"end":{"line":80,"column":11}}})) != null ? stack1 : ""); + return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":0},"end":{"line":80,"column":11}}})) != null ? stack1 : ""); },"2":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return "\n" - + ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":0},"end":{"line":79,"column":11}}})) != null ? stack1 : ""); + + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":0},"end":{"line":79,"column":11}}})) != null ? stack1 : ""); },"3":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return "\n" - + ((stack1 = lookupProperty(helpers,"if").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":0},"end":{"line":78,"column":9}}})) != null ? stack1 : ""); + + ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":0},"end":{"line":78,"column":9}}})) != null ? stack1 : ""); },"4":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return "\n" - + ((stack1 = (lookupProperty(helpers,"fi")||(depth0 && lookupProperty(depth0,"fi"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"top") : depth0),"<",((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"renderLimitIdx")),{"name":"fi","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":5,"column":4},"end":{"line":77,"column":13}}})) != null ? stack1 : ""); + + ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.top : depth0),"<",((stack1 = (data && data.root)) && stack1.renderLimitIdx),{"name":"fi","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":5,"column":4},"end":{"line":77,"column":13}}})) != null ? stack1 : ""); },"5":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4="function", lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4="function"; return "
\n" - + ((stack1 = (lookupProperty(helpers,"fi")||(depth0 && lookupProperty(depth0,"fi"))||alias2).call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"isAllDay") : stack1),"||",(depth0 != null ? lookupProperty(depth0,"hasMultiDates") : depth0),{"name":"fi","hash":{},"fn":container.program(10, data, 0),"inverse":container.program(23, data, 0),"data":data,"loc":{"start":{"line":13,"column":8},"end":{"line":75,"column":15}}})) != null ? stack1 : "") + + ((stack1 = (helpers.fi||(depth0 && depth0.fi)||alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),"||",(depth0 != null ? depth0.hasMultiDates : depth0),{"name":"fi","hash":{},"fn":container.program(10, data, 0),"inverse":container.program(23, data, 0),"data":data,"loc":{"start":{"line":13,"column":8},"end":{"line":75,"column":15}}})) != null ? stack1 : "") + "
\n"; },"6":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; return " " - + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":9,"column":31},"end":{"line":9,"column":45}}}) : helper))) + + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":9,"column":31},"end":{"line":9,"column":45}}}) : helper))) + "weekday-exceed-left"; },"8":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; return " " - + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":10,"column":32},"end":{"line":10,"column":46}}}) : helper))) + + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":10,"column":32},"end":{"line":10,"column":46}}}) : helper))) + "weekday-exceed-right"; },"10":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5="function", lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5="function"; return "
\n " - + ((stack1 = (lookupProperty(helpers,"allday-tmpl")||(depth0 && lookupProperty(depth0,"allday-tmpl"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"allday-tmpl","hash":{},"data":data,"loc":{"start":{"line":29,"column":47},"end":{"line":29,"column":70}}})) != null ? stack1 : "") + + ((stack1 = (helpers["allday-tmpl"]||(depth0 && depth0["allday-tmpl"])||alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{"name":"allday-tmpl","hash":{},"data":data,"loc":{"start":{"line":29,"column":47},"end":{"line":29,"column":70}}})) != null ? stack1 : "") + "\n " - + ((stack1 = lookupProperty(helpers,"unless").call(alias3,(lookupProperty(helpers,"or")||(depth0 && lookupProperty(depth0,"or"))||alias4).call(alias3,((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"isReadOnly")),((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"isReadOnly") : stack1),{"name":"or","hash":{},"data":data,"loc":{"start":{"line":30,"column":22},"end":{"line":30,"column":60}}}),{"name":"unless","hash":{},"fn":container.program(21, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":30,"column":12},"end":{"line":30,"column":194}}})) != null ? stack1 : "") + + ((stack1 = helpers.unless.call(alias3,(helpers.or||(depth0 && depth0.or)||alias4).call(alias3,((stack1 = (data && data.root)) && stack1.isReadOnly),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{"name":"or","hash":{},"data":data,"loc":{"start":{"line":30,"column":22},"end":{"line":30,"column":60}}}),{"name":"unless","hash":{},"fn":container.program(21, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":30,"column":12},"end":{"line":30,"column":194}}})) != null ? stack1 : "") + "\n
\n"; },"11":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; - return container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":14,"column":146},"end":{"line":14,"column":160}}}) : helper))) + return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":14,"column":146},"end":{"line":14,"column":160}}}) : helper))) + "weekday-schedule-focused "; },"13":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " margin-left: " - + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"marginLeft")), depth0)) + + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginLeft), depth0)) + ";\n"; },"15":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " margin-right: " - + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"marginRight")), depth0)) + + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginRight), depth0)) + ";\n"; },"17":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " color: #ffffff; background-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "; border-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + ";\n"; },"19":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "; background-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"bgColor") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0)) + "; border-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"borderColor") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0)) + ";\n"; },"21":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=container.escapeExpression; return " "; },"23":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = (lookupProperty(helpers,"fi")||(depth0 && lookupProperty(depth0,"fi"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"category") : stack1),"===","time",{"name":"fi","hash":{},"fn":container.program(24, data, 0),"inverse":container.program(33, data, 0),"data":data,"loc":{"start":{"line":33,"column":12},"end":{"line":74,"column":19}}})) != null ? stack1 : ""); + return ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.category : stack1),"===","time",{"name":"fi","hash":{},"fn":container.program(24, data, 0),"inverse":container.program(33, data, 0),"data":data,"loc":{"start":{"line":33,"column":12},"end":{"line":74,"column":19}}})) != null ? stack1 : ""); },"24":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5="function", lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5="function"; return "
\n \n " - + ((stack1 = (lookupProperty(helpers,"time-tmpl")||(depth0 && lookupProperty(depth0,"time-tmpl"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"time-tmpl","hash":{},"data":data,"loc":{"start":{"line":54,"column":53},"end":{"line":54,"column":74}}})) != null ? stack1 : "") + + ((stack1 = (helpers["time-tmpl"]||(depth0 && depth0["time-tmpl"])||alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{"name":"time-tmpl","hash":{},"data":data,"loc":{"start":{"line":54,"column":53},"end":{"line":54,"column":74}}})) != null ? stack1 : "") + "\n
\n"; },"25":function(container,depth0,helpers,partials,data) { return " background: #ffffff\n"; },"27":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " background:" - + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"borderColor") : stack1), depth0)) + + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0)) + "\n"; },"29":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " color: #ffffff;\n background-color: " - + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "\n"; },"31":function(container,depth0,helpers,partials,data) { return " color:#333;\n"; },"33":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5="function", lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5="function"; return "
\n " - + ((stack1 = (lookupProperty(helpers,"schedule-tmpl")||(depth0 && lookupProperty(depth0,"schedule-tmpl"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"schedule-tmpl","hash":{},"data":data,"loc":{"start":{"line":72,"column":65},"end":{"line":72,"column":90}}})) != null ? stack1 : "") + + ((stack1 = (helpers["schedule-tmpl"]||(depth0 && depth0["schedule-tmpl"])||alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{"name":"schedule-tmpl","hash":{},"data":data,"loc":{"start":{"line":72,"column":65},"end":{"line":72,"column":90}}})) != null ? stack1 : "") + "\n
\n"; },"34":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " margin-left: " - + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"marginLeft")), depth0)) + + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginLeft), depth0)) + ";\n"; },"36":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " margin-right: " - + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"marginRight")), depth0)) + + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginRight), depth0)) + ";\n"; },"38":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " color: #ffffff; background-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "; border-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + ";\n"; },"40":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "; background-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"bgColor") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0)) + "; border-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"borderColor") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0)) + ";\n"; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"matrices") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":1,"column":0},"end":{"line":81,"column":11}}})) != null ? stack1 : ""); + return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.matrices : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":1,"column":0},"end":{"line":81,"column":11}}})) != null ? stack1 : ""); },"useData":true}); /***/ }), @@ -22085,326 +21571,286 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; return " " - + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":3,"column":150},"end":{"line":3,"column":164}}}) : helper))) + + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":3,"column":150},"end":{"line":3,"column":164}}}) : helper))) + "hide"; },"3":function(container,depth0,helpers,partials,data) { - var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
  • \n \n " - + alias4(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":14,"column":60},"end":{"line":14,"column":68}}}) : helper))) + + alias4(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":14,"column":60},"end":{"line":14,"column":68}}}) : helper))) + "\n
  • \n"; },"5":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; return " " - + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":24,"column":135},"end":{"line":24,"column":149}}}) : helper))) + + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":24,"column":135},"end":{"line":24,"column":149}}}) : helper))) + "public"; },"7":function(container,depth0,helpers,partials,data) { return " checked"; },"9":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; - return container.escapeExpression(((helper = (helper = lookupProperty(helpers,"state") || (depth0 != null ? lookupProperty(depth0,"state") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"state","hash":{},"data":data,"loc":{"start":{"line":55,"column":99},"end":{"line":55,"column":108}}}) : helper))); + return container.escapeExpression(((helper = (helper = helpers.state || (depth0 != null ? depth0.state : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"state","hash":{},"data":data,"loc":{"start":{"line":55,"column":99},"end":{"line":55,"column":108}}}) : helper))); },"11":function(container,depth0,helpers,partials,data) { - var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper; - return ((stack1 = ((helper = (helper = lookupProperty(helpers,"popupStateBusy-tmpl") || (depth0 != null ? lookupProperty(depth0,"popupStateBusy-tmpl") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"popupStateBusy-tmpl","hash":{},"data":data,"loc":{"start":{"line":55,"column":116},"end":{"line":55,"column":141}}}) : helper))) != null ? stack1 : ""); + return ((stack1 = ((helper = (helper = helpers["popupStateBusy-tmpl"] || (depth0 != null ? depth0["popupStateBusy-tmpl"] : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"popupStateBusy-tmpl","hash":{},"data":data,"loc":{"start":{"line":55,"column":116},"end":{"line":55,"column":141}}}) : helper))) != null ? stack1 : ""); },"13":function(container,depth0,helpers,partials,data) { - var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper; - return ((stack1 = ((helper = (helper = lookupProperty(helpers,"popupUpdate-tmpl") || (depth0 != null ? lookupProperty(depth0,"popupUpdate-tmpl") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"popupUpdate-tmpl","hash":{},"data":data,"loc":{"start":{"line":70,"column":163},"end":{"line":70,"column":185}}}) : helper))) != null ? stack1 : ""); + return ((stack1 = ((helper = (helper = helpers["popupUpdate-tmpl"] || (depth0 != null ? depth0["popupUpdate-tmpl"] : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"popupUpdate-tmpl","hash":{},"data":data,"loc":{"start":{"line":70,"column":163},"end":{"line":70,"column":185}}}) : helper))) != null ? stack1 : ""); },"15":function(container,depth0,helpers,partials,data) { - var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper; - return ((stack1 = ((helper = (helper = lookupProperty(helpers,"popupSave-tmpl") || (depth0 != null ? lookupProperty(depth0,"popupSave-tmpl") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"popupSave-tmpl","hash":{},"data":data,"loc":{"start":{"line":70,"column":193},"end":{"line":70,"column":213}}}) : helper))) != null ? stack1 : ""); + return ((stack1 = ((helper = (helper = helpers["popupSave-tmpl"] || (depth0 != null ? depth0["popupSave-tmpl"] : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"popupSave-tmpl","hash":{},"data":data,"loc":{"start":{"line":70,"column":193},"end":{"line":70,"column":213}}}) : helper))) != null ? stack1 : ""); },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    \n
    \n
    \n \n
      \n" - + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"calendars") : depth0),{"name":"each","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":11,"column":16},"end":{"line":16,"column":25}}})) != null ? stack1 : "") + + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.calendars : depth0),{"name":"each","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":11,"column":16},"end":{"line":16,"column":25}}})) != null ? stack1 : "") + "
    \n
    \n
    \n
    \n \n \n
    \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n -\n
    \n \n \n
    \n
    \n
    \n \n \n " - + ((stack1 = ((helper = (helper = lookupProperty(helpers,"popupIsAllDay-tmpl") || (depth0 != null ? lookupProperty(depth0,"popupIsAllDay-tmpl") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"popupIsAllDay-tmpl","hash":{},"data":data,"loc":{"start":{"line":49,"column":52},"end":{"line":49,"column":76}}}) : helper))) != null ? stack1 : "") + + ((stack1 = ((helper = (helper = helpers["popupIsAllDay-tmpl"] || (depth0 != null ? depth0["popupIsAllDay-tmpl"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"popupIsAllDay-tmpl","hash":{},"data":data,"loc":{"start":{"line":49,"column":52},"end":{"line":49,"column":76}}}) : helper))) != null ? stack1 : "") + "\n
    \n
    \n
    \n \n
      \n
    • \n \n " - + ((stack1 = ((helper = (helper = lookupProperty(helpers,"popupStateBusy-tmpl") || (depth0 != null ? lookupProperty(depth0,"popupStateBusy-tmpl") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"popupStateBusy-tmpl","hash":{},"data":data,"loc":{"start":{"line":61,"column":52},"end":{"line":61,"column":77}}}) : helper))) != null ? stack1 : "") + + ((stack1 = ((helper = (helper = helpers["popupStateBusy-tmpl"] || (depth0 != null ? depth0["popupStateBusy-tmpl"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"popupStateBusy-tmpl","hash":{},"data":data,"loc":{"start":{"line":61,"column":52},"end":{"line":61,"column":77}}}) : helper))) != null ? stack1 : "") + "\n
    • \n
    • \n \n " - + ((stack1 = ((helper = (helper = lookupProperty(helpers,"popupStateFree-tmpl") || (depth0 != null ? lookupProperty(depth0,"popupStateFree-tmpl") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"popupStateFree-tmpl","hash":{},"data":data,"loc":{"start":{"line":65,"column":52},"end":{"line":65,"column":77}}}) : helper))) != null ? stack1 : "") + + ((stack1 = ((helper = (helper = helpers["popupStateFree-tmpl"] || (depth0 != null ? depth0["popupStateFree-tmpl"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"popupStateFree-tmpl","hash":{},"data":data,"loc":{"start":{"line":65,"column":52},"end":{"line":65,"column":77}}}) : helper))) != null ? stack1 : "") + "\n
    • \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n"; },"useData":true}); @@ -22419,220 +21865,180 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
    " - + ((stack1 = (lookupProperty(helpers,"popupDetailLocation-tmpl")||(depth0 && lookupProperty(depth0,"popupDetailLocation-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"schedule") : depth0),{"name":"popupDetailLocation-tmpl","hash":{},"data":data,"loc":{"start":{"line":11,"column":182},"end":{"line":11,"column":221}}})) != null ? stack1 : "") + + ((stack1 = (helpers["popupDetailLocation-tmpl"]||(depth0 && depth0["popupDetailLocation-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{"name":"popupDetailLocation-tmpl","hash":{},"data":data,"loc":{"start":{"line":11,"column":182},"end":{"line":11,"column":221}}})) != null ? stack1 : "") + "
    "; },"3":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
    " - + ((stack1 = (lookupProperty(helpers,"popupDetailRepeat-tmpl")||(depth0 && lookupProperty(depth0,"popupDetailRepeat-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"schedule") : depth0),{"name":"popupDetailRepeat-tmpl","hash":{},"data":data,"loc":{"start":{"line":12,"column":186},"end":{"line":12,"column":223}}})) != null ? stack1 : "") + + ((stack1 = (helpers["popupDetailRepeat-tmpl"]||(depth0 && depth0["popupDetailRepeat-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{"name":"popupDetailRepeat-tmpl","hash":{},"data":data,"loc":{"start":{"line":12,"column":186},"end":{"line":12,"column":223}}})) != null ? stack1 : "") + "
    "; },"5":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
    " - + ((stack1 = (lookupProperty(helpers,"popupDetailUser-tmpl")||(depth0 && lookupProperty(depth0,"popupDetailUser-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"schedule") : depth0),{"name":"popupDetailUser-tmpl","hash":{},"data":data,"loc":{"start":{"line":13,"column":218},"end":{"line":13,"column":253}}})) != null ? stack1 : "") + + ((stack1 = (helpers["popupDetailUser-tmpl"]||(depth0 && depth0["popupDetailUser-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{"name":"popupDetailUser-tmpl","hash":{},"data":data,"loc":{"start":{"line":13,"column":218},"end":{"line":13,"column":253}}})) != null ? stack1 : "") + "
    "; },"7":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
    " - + ((stack1 = (lookupProperty(helpers,"popupDetailState-tmpl")||(depth0 && lookupProperty(depth0,"popupDetailState-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"schedule") : depth0),{"name":"popupDetailState-tmpl","hash":{},"data":data,"loc":{"start":{"line":14,"column":176},"end":{"line":14,"column":212}}})) != null ? stack1 : "") + + ((stack1 = (helpers["popupDetailState-tmpl"]||(depth0 && depth0["popupDetailState-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{"name":"popupDetailState-tmpl","hash":{},"data":data,"loc":{"start":{"line":14,"column":176},"end":{"line":14,"column":212}}})) != null ? stack1 : "") + "
    "; },"9":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    " - + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,"calendar") : depth0)) != null ? lookupProperty(stack1,"name") : stack1), depth0)) + + alias4(alias5(((stack1 = (depth0 != null ? depth0.calendar : depth0)) != null ? stack1.name : stack1), depth0)) + "
    \n"; },"11":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
    " - + ((stack1 = (lookupProperty(helpers,"popupDetailBody-tmpl")||(depth0 && lookupProperty(depth0,"popupDetailBody-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"schedule") : depth0),{"name":"popupDetailBody-tmpl","hash":{},"data":data,"loc":{"start":{"line":18,"column":151},"end":{"line":18,"column":186}}})) != null ? stack1 : "") + + ((stack1 = (helpers["popupDetailBody-tmpl"]||(depth0 && depth0["popupDetailBody-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{"name":"popupDetailBody-tmpl","hash":{},"data":data,"loc":{"start":{"line":18,"column":151},"end":{"line":18,"column":186}}})) != null ? stack1 : "") + "
    "; },"13":function(container,depth0,helpers,partials,data) { return ""; },"15":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
    \n \n
    \n \n
    \n"; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    \n
    \n
    \n
    \n \n " - + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,"schedule") : depth0)) != null ? lookupProperty(stack1,"title") : stack1), depth0)) + + alias4(alias5(((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.title : stack1), depth0)) + "\n
    \n
    " - + ((stack1 = (lookupProperty(helpers,"popupDetailDate-tmpl")||(depth0 && lookupProperty(depth0,"popupDetailDate-tmpl"))||alias2).call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"schedule") : depth0)) != null ? lookupProperty(stack1,"isAllDay") : stack1),((stack1 = (depth0 != null ? lookupProperty(depth0,"schedule") : depth0)) != null ? lookupProperty(stack1,"start") : stack1),((stack1 = (depth0 != null ? lookupProperty(depth0,"schedule") : depth0)) != null ? lookupProperty(stack1,"end") : stack1),{"name":"popupDetailDate-tmpl","hash":{},"data":data,"loc":{"start":{"line":8,"column":73},"end":{"line":8,"column":145}}})) != null ? stack1 : "") + + ((stack1 = (helpers["popupDetailDate-tmpl"]||(depth0 && depth0["popupDetailDate-tmpl"])||alias2).call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.isAllDay : stack1),((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.start : stack1),((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.end : stack1),{"name":"popupDetailDate-tmpl","hash":{},"data":data,"loc":{"start":{"line":8,"column":73},"end":{"line":8,"column":145}}})) != null ? stack1 : "") + "
    \n
    \n
    \n " - + ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"schedule") : depth0)) != null ? lookupProperty(stack1,"location") : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":11,"column":8},"end":{"line":11,"column":241}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.location : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":11,"column":8},"end":{"line":11,"column":241}}})) != null ? stack1 : "") + "\n " - + ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"schedule") : depth0)) != null ? lookupProperty(stack1,"recurrenceRule") : stack1),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":12,"column":8},"end":{"line":12,"column":243}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.recurrenceRule : stack1),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":12,"column":8},"end":{"line":12,"column":243}}})) != null ? stack1 : "") + "\n " - + ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"schedule") : depth0)) != null ? lookupProperty(stack1,"attendees") : stack1),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":13,"column":8},"end":{"line":13,"column":273}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.attendees : stack1),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":13,"column":8},"end":{"line":13,"column":273}}})) != null ? stack1 : "") + "\n " - + ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"schedule") : depth0)) != null ? lookupProperty(stack1,"state") : stack1),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":14,"column":8},"end":{"line":14,"column":232}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.state : stack1),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":14,"column":8},"end":{"line":14,"column":232}}})) != null ? stack1 : "") + "\n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"calendar") : depth0),{"name":"if","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":15,"column":8},"end":{"line":17,"column":15}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.calendar : depth0),{"name":"if","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":15,"column":8},"end":{"line":17,"column":15}}})) != null ? stack1 : "") + " " - + ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"schedule") : depth0)) != null ? lookupProperty(stack1,"body") : stack1),{"name":"if","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":18,"column":8},"end":{"line":18,"column":206}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.body : stack1),{"name":"if","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":18,"column":8},"end":{"line":18,"column":206}}})) != null ? stack1 : "") + "\n
    \n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"schedule") : depth0)) != null ? lookupProperty(stack1,"isReadOnly") : stack1),{"name":"if","hash":{},"fn":container.program(13, data, 0),"inverse":container.program(15, data, 0),"data":data,"loc":{"start":{"line":20,"column":4},"end":{"line":27,"column":11}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.isReadOnly : stack1),{"name":"if","hash":{},"fn":container.program(13, data, 0),"inverse":container.program(15, data, 0),"data":data,"loc":{"start":{"line":20,"column":4},"end":{"line":27,"column":11}}})) != null ? stack1 : "") + "
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n"; },"useData":true}); @@ -22647,138 +22053,93 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
    \n"; },"2":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " border-right: " - + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"borderRight")), depth0)) + + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRight), depth0)) + ";\n"; },"4":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"days") : depth0),{"name":"each","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":17,"column":8},"end":{"line":27,"column":19}}})) != null ? stack1 : ""); + return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.days : depth0),{"name":"each","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":17,"column":8},"end":{"line":27,"column":19}}})) != null ? stack1 : ""); },"5":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = lookupProperty(helpers,"if").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"collapsed")),{"name":"if","hash":{},"fn":container.program(6, data, 0),"inverse":container.program(9, data, 0),"data":data,"loc":{"start":{"line":18,"column":12},"end":{"line":26,"column":19}}})) != null ? stack1 : ""); + return ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (data && data.root)) && stack1.collapsed),{"name":"if","hash":{},"fn":container.program(6, data, 0),"inverse":container.program(9, data, 0),"data":data,"loc":{"start":{"line":18,"column":12},"end":{"line":26,"column":19}}})) != null ? stack1 : ""); },"6":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = lookupProperty(helpers,"if").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"hiddenSchedules") : depth0),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":19,"column":16},"end":{"line":21,"column":23}}})) != null ? stack1 : ""); + return ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.hiddenSchedules : depth0),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":19,"column":16},"end":{"line":21,"column":23}}})) != null ? stack1 : ""); },"7":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return " " - + ((stack1 = (lookupProperty(helpers,"weekGridFooterExceed-tmpl")||(depth0 && lookupProperty(depth0,"weekGridFooterExceed-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"hiddenSchedules") : depth0),{"name":"weekGridFooterExceed-tmpl","hash":{},"data":data,"loc":{"start":{"line":20,"column":145},"end":{"line":20,"column":192}}})) != null ? stack1 : "") + + ((stack1 = (helpers["weekGridFooterExceed-tmpl"]||(depth0 && depth0["weekGridFooterExceed-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{"name":"weekGridFooterExceed-tmpl","hash":{},"data":data,"loc":{"start":{"line":20,"column":145},"end":{"line":20,"column":192}}})) != null ? stack1 : "") + "\n"; },"9":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = (lookupProperty(helpers,"fi")||(depth0 && lookupProperty(depth0,"fi"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && lookupProperty(data,"key")),"===",((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"collapseBtnIndex")),{"name":"fi","hash":{},"fn":container.program(10, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":23,"column":16},"end":{"line":25,"column":23}}})) != null ? stack1 : ""); + return ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && data.key),"===",((stack1 = (data && data.root)) && stack1.collapseBtnIndex),{"name":"fi","hash":{},"fn":container.program(10, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":23,"column":16},"end":{"line":25,"column":23}}})) != null ? stack1 : ""); },"10":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return " " - + ((stack1 = ((helper = (helper = lookupProperty(helpers,"collapseBtnTitle-tmpl") || (depth0 != null ? lookupProperty(depth0,"collapseBtnTitle-tmpl") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"collapseBtnTitle-tmpl","hash":{},"data":data,"loc":{"start":{"line":24,"column":121},"end":{"line":24,"column":148}}}) : helper))) != null ? stack1 : "") + + ((stack1 = ((helper = (helper = helpers["collapseBtnTitle-tmpl"] || (depth0 != null ? depth0["collapseBtnTitle-tmpl"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"collapseBtnTitle-tmpl","hash":{},"data":data,"loc":{"start":{"line":24,"column":121},"end":{"line":24,"column":148}}}) : helper))) != null ? stack1 : "") + "\n"; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    \n " - + ((stack1 = (lookupProperty(helpers,"dayGridTitle-tmpl")||(depth0 && lookupProperty(depth0,"dayGridTitle-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"viewName") : depth0),{"name":"dayGridTitle-tmpl","hash":{},"data":data,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":36}}})) != null ? stack1 : "") + + ((stack1 = (helpers["dayGridTitle-tmpl"]||(depth0 && depth0["dayGridTitle-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.viewName : depth0),{"name":"dayGridTitle-tmpl","hash":{},"data":data,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":36}}})) != null ? stack1 : "") + "\n
    \n
    \n
    \n
    \n" - + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"days") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":7,"column":8},"end":{"line":14,"column":19}}})) != null ? stack1 : "") - + ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"showExpandableButton")),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":16,"column":8},"end":{"line":28,"column":15}}})) != null ? stack1 : "") + + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.days : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":7,"column":8},"end":{"line":14,"column":19}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,((stack1 = (data && data.root)) && stack1.showExpandableButton),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":16,"column":8},"end":{"line":28,"column":15}}})) != null ? stack1 : "") + "
    \n
    \n
    \n"; },"useData":true}); @@ -22793,172 +22154,117 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":4},"end":{"line":27,"column":15}}})) != null ? stack1 : ""); + return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":4},"end":{"line":27,"column":15}}})) != null ? stack1 : ""); },"2":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return "\n " - + ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":4},"end":{"line":26,"column":15}}})) != null ? stack1 : ""); + + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":4},"end":{"line":26,"column":15}}})) != null ? stack1 : ""); },"3":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return "\n " - + ((stack1 = lookupProperty(helpers,"if").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":5,"column":4},"end":{"line":25,"column":13}}})) != null ? stack1 : ""); + + ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":5,"column":4},"end":{"line":25,"column":13}}})) != null ? stack1 : ""); },"4":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4="function", alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4="function", alias5=container.lambda; return "\n
    \n
    \n " - + ((stack1 = (lookupProperty(helpers,"schedule-tmpl")||(depth0 && lookupProperty(depth0,"schedule-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"schedule-tmpl","hash":{},"data":data,"loc":{"start":{"line":21,"column":87},"end":{"line":21,"column":112}}})) != null ? stack1 : "") + + ((stack1 = (helpers["schedule-tmpl"]||(depth0 && depth0["schedule-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{"name":"schedule-tmpl","hash":{},"data":data,"loc":{"start":{"line":21,"column":87},"end":{"line":21,"column":112}}})) != null ? stack1 : "") + "\n " - + ((stack1 = lookupProperty(helpers,"unless").call(alias1,(lookupProperty(helpers,"or")||(depth0 && lookupProperty(depth0,"or"))||alias2).call(alias1,((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"isReadOnly")),((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"isReadOnly") : stack1),{"name":"or","hash":{},"data":data,"loc":{"start":{"line":22,"column":22},"end":{"line":22,"column":60}}}),{"name":"unless","hash":{},"fn":container.program(15, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":22,"column":12},"end":{"line":22,"column":193}}})) != null ? stack1 : "") + + ((stack1 = helpers.unless.call(alias1,(helpers.or||(depth0 && depth0.or)||alias2).call(alias1,((stack1 = (data && data.root)) && stack1.isReadOnly),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{"name":"or","hash":{},"data":data,"loc":{"start":{"line":22,"column":22},"end":{"line":22,"column":60}}}),{"name":"unless","hash":{},"fn":container.program(15, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":22,"column":12},"end":{"line":22,"column":193}}})) != null ? stack1 : "") + "\n
    \n
    \n"; },"5":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; return " " - + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":8,"column":31},"end":{"line":8,"column":45}}}) : helper))) + + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":8,"column":31},"end":{"line":8,"column":45}}}) : helper))) + "weekday-exceed-left"; },"7":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; return " " - + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":9,"column":32},"end":{"line":9,"column":46}}}) : helper))) + + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":9,"column":32},"end":{"line":9,"column":46}}}) : helper))) + "weekday-exceed-right"; },"9":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; - return container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":13,"column":146},"end":{"line":13,"column":160}}}) : helper))) + return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":13,"column":146},"end":{"line":13,"column":160}}}) : helper))) + "weekday-schedule-focused "; },"11":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " color: #ffffff; background-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "; border-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + ";\n"; },"13":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "; background-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"bgColor") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0)) + "; border-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"borderColor") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0)) + ";\n"; },"15":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=container.escapeExpression; return " "; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
    \n" - + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"matrices") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":4},"end":{"line":28,"column":15}}})) != null ? stack1 : "") + + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":4},"end":{"line":28,"column":15}}})) != null ? stack1 : "") + "
    \n"; },"useData":true}); @@ -22973,62 +22279,47 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    \n \n " - + ((stack1 = (lookupProperty(helpers,"weekDayname-tmpl")||(depth0 && lookupProperty(depth0,"weekDayname-tmpl"))||alias2).call(alias1,depth0,{"name":"weekDayname-tmpl","hash":{},"data":data,"loc":{"start":{"line":7,"column":8},"end":{"line":7,"column":35}}})) != null ? stack1 : "") + + ((stack1 = (helpers["weekDayname-tmpl"]||(depth0 && depth0["weekDayname-tmpl"])||alias2).call(alias1,depth0,{"name":"weekDayname-tmpl","hash":{},"data":data,"loc":{"start":{"line":7,"column":8},"end":{"line":7,"column":35}}})) != null ? stack1 : "") + "\n \n
    \n"; },"2":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; - return container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":3,"column":49},"end":{"line":3,"column":63}}}) : helper))) + return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":3,"column":49},"end":{"line":3,"column":63}}}) : helper))) + "today"; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression; return "
    \n" - + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"dayNames") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":0},"end":{"line":10,"column":9}}})) != null ? stack1 : "") + + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dayNames : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":0},"end":{"line":10,"column":9}}})) != null ? stack1 : "") + "
    \n"; },"useData":true}); @@ -23043,280 +22334,185 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":4},"end":{"line":60,"column":13}}})) != null ? stack1 : ""); + return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":4},"end":{"line":60,"column":13}}})) != null ? stack1 : ""); },"2":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":8},"end":{"line":59,"column":17}}})) != null ? stack1 : ""); + return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":8},"end":{"line":59,"column":17}}})) != null ? stack1 : ""); },"3":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = lookupProperty(helpers,"if").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":5,"column":8},"end":{"line":58,"column":17}}})) != null ? stack1 : ""); + return ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":5,"column":8},"end":{"line":58,"column":17}}})) != null ? stack1 : ""); },"4":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    \n
    \n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"hasGoingDuration") : depth0),{"name":"if","hash":{},"fn":container.program(19, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":29,"column":12},"end":{"line":37,"column":19}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.hasGoingDuration : depth0),{"name":"if","hash":{},"fn":container.program(19, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":29,"column":12},"end":{"line":37,"column":19}}})) != null ? stack1 : "") + "
    \n " - + ((stack1 = (lookupProperty(helpers,"time-tmpl")||(depth0 && lookupProperty(depth0,"time-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"time-tmpl","hash":{},"data":data,"loc":{"start":{"line":45,"column":20},"end":{"line":45,"column":41}}})) != null ? stack1 : "") + + ((stack1 = (helpers["time-tmpl"]||(depth0 && depth0["time-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{"name":"time-tmpl","hash":{},"data":data,"loc":{"start":{"line":45,"column":20},"end":{"line":45,"column":41}}})) != null ? stack1 : "") + "\n
    \n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"hasComingDuration") : depth0),{"name":"if","hash":{},"fn":container.program(26, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":47,"column":12},"end":{"line":54,"column":19}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.hasComingDuration : depth0),{"name":"if","hash":{},"fn":container.program(26, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":47,"column":12},"end":{"line":54,"column":19}}})) != null ? stack1 : "") + "
    \n " - + ((stack1 = lookupProperty(helpers,"unless").call(alias1,(lookupProperty(helpers,"or")||(depth0 && lookupProperty(depth0,"or"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"croppedEnd") : depth0),((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"isReadOnly")),((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"isReadOnly") : stack1),{"name":"or","hash":{},"data":data,"loc":{"start":{"line":56,"column":22},"end":{"line":56,"column":71}}}),{"name":"unless","hash":{},"fn":container.program(29, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":56,"column":12},"end":{"line":56,"column":202}}})) != null ? stack1 : "") + + ((stack1 = helpers.unless.call(alias1,(helpers.or||(depth0 && depth0.or)||alias2).call(alias1,(depth0 != null ? depth0.croppedEnd : depth0),((stack1 = (data && data.root)) && stack1.isReadOnly),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{"name":"or","hash":{},"data":data,"loc":{"start":{"line":56,"column":22},"end":{"line":56,"column":71}}}),{"name":"unless","hash":{},"fn":container.program(29, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":56,"column":12},"end":{"line":56,"column":202}}})) != null ? stack1 : "") + "\n
    \n"; },"5":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; return " " - + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":6,"column":83},"end":{"line":6,"column":97}}}) : helper))) + + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":6,"column":83},"end":{"line":6,"column":97}}}) : helper))) + "time-date-schedule-block-pending"; },"7":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " padding-left: " - + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"paddingLeft")), depth0)) + + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.paddingLeft), depth0)) + ";\n"; },"9":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; - return container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":12,"column":147},"end":{"line":12,"column":161}}}) : helper))) + return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":12,"column":147},"end":{"line":12,"column":161}}}) : helper))) + "time-schedule-focused "; },"11":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " border-bottom-left-radius: " - + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"borderRadius")), depth0)) + + alias2(alias1(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRadius), depth0)) + ";\n border-bottom-right-radius: " - + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"borderRadius")), depth0)) + + alias2(alias1(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRadius), depth0)) + ";\n"; },"13":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " border-top-left-radius: " - + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"borderRadius")), depth0)) + + alias2(alias1(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRadius), depth0)) + ";\n border-top-right-radius: " - + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"borderRadius")), depth0)) + + alias2(alias1(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRadius), depth0)) + ";\n"; },"15":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " color: #ffffff; background-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "; border-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + ";\n"; },"17":function(container,depth0,helpers,partials,data) { - var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=container.lambda, alias2=container.escapeExpression; return " color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + "; background-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"bgColor") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0)) + "; border-color:" - + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"borderColor") : stack1), depth0)) + + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0)) + ";\n"; },"19":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
    " - + ((stack1 = (lookupProperty(helpers,"goingDuration-tmpl")||(depth0 && lookupProperty(depth0,"goingDuration-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"goingDuration-tmpl","hash":{},"data":data,"loc":{"start":{"line":36,"column":66},"end":{"line":36,"column":96}}})) != null ? stack1 : "") + + ((stack1 = (helpers["goingDuration-tmpl"]||(depth0 && depth0["goingDuration-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{"name":"goingDuration-tmpl","hash":{},"data":data,"loc":{"start":{"line":36,"column":66},"end":{"line":36,"column":96}}})) != null ? stack1 : "") + "
    \n"; },"20":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " border-color:" - + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"color") : stack1), depth0)) + + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0)) + ";\n"; },"22":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " border-color:" - + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"borderColor") : stack1), depth0)) + + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0)) + ";\n"; },"24":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; return "border-bottom: 1px dashed " - + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"travelBorderColor") || (depth0 != null ? lookupProperty(depth0,"travelBorderColor") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"travelBorderColor","hash":{},"data":data,"loc":{"start":{"line":44,"column":67},"end":{"line":44,"column":88}}}) : helper))) + + container.escapeExpression(((helper = (helper = helpers.travelBorderColor || (depth0 != null ? depth0.travelBorderColor : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"travelBorderColor","hash":{},"data":data,"loc":{"start":{"line":44,"column":67},"end":{"line":44,"column":88}}}) : helper))) + ";"; },"26":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
    " - + ((stack1 = (lookupProperty(helpers,"comingDuration-tmpl")||(depth0 && lookupProperty(depth0,"comingDuration-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"comingDuration-tmpl","hash":{},"data":data,"loc":{"start":{"line":53,"column":26},"end":{"line":53,"column":57}}})) != null ? stack1 : "") + + ((stack1 = (helpers["comingDuration-tmpl"]||(depth0 && depth0["comingDuration-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{"name":"comingDuration-tmpl","hash":{},"data":data,"loc":{"start":{"line":53,"column":26},"end":{"line":53,"column":57}}})) != null ? stack1 : "") + "
    \n"; },"27":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " border-color:" - + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,"model") : depth0)) != null ? lookupProperty(stack1,"borderColor") : stack1), depth0)) + + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0)) + ";\n "; },"29":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=container.escapeExpression; return "
     
    "; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression; return "
    \n" - + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"matrices") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":0},"end":{"line":61,"column":9}}})) != null ? stack1 : "") + + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":0},"end":{"line":61,"column":9}}})) != null ? stack1 : "") + "
    \n"; },"useData":true}); @@ -23331,249 +22527,194 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
    \n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"isPrimary") : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.program(10, data, 0),"data":data,"loc":{"start":{"line":4,"column":8},"end":{"line":26,"column":15}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isPrimary : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.program(10, data, 0),"data":data,"loc":{"start":{"line":4,"column":8},"end":{"line":26,"column":15}}})) != null ? stack1 : "") + "
    \n"; },"2":function(container,depth0,helpers,partials,data) { return "display:none;"; },"4":function(container,depth0,helpers,partials,data) { - var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}); - return ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"timeSlots") : depth0),{"name":"each","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":5,"column":12},"end":{"line":9,"column":23}}})) != null ? stack1 : "") - + ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"showHourMarker")),{"name":"if","hash":{},"fn":container.program(8, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":10,"column":12},"end":{"line":14,"column":19}}})) != null ? stack1 : ""); + return ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.timeSlots : depth0),{"name":"each","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":5,"column":12},"end":{"line":9,"column":23}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,((stack1 = (data && data.root)) && stack1.showHourMarker),{"name":"if","hash":{},"fn":container.program(8, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":10,"column":12},"end":{"line":14,"column":19}}})) != null ? stack1 : ""); },"5":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
    \n " - + ((stack1 = (lookupProperty(helpers,"timegridDisplayPrimayTime-tmpl")||(depth0 && lookupProperty(depth0,"timegridDisplayPrimayTime-tmpl"))||alias2).call(alias1,depth0,{"name":"timegridDisplayPrimayTime-tmpl","hash":{},"data":data,"loc":{"start":{"line":7,"column":68},"end":{"line":7,"column":109}}})) != null ? stack1 : "") + + ((stack1 = (helpers["timegridDisplayPrimayTime-tmpl"]||(depth0 && depth0["timegridDisplayPrimayTime-tmpl"])||alias2).call(alias1,depth0,{"name":"timegridDisplayPrimayTime-tmpl","hash":{},"data":data,"loc":{"start":{"line":7,"column":68},"end":{"line":7,"column":109}}})) != null ? stack1 : "") + "\n
    \n"; },"6":function(container,depth0,helpers,partials,data) { return "display:none"; },"8":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    \n
    " - + ((stack1 = (lookupProperty(helpers,"timegridCurrentTime-tmpl")||(depth0 && lookupProperty(depth0,"timegridCurrentTime-tmpl"))||alias2).call(alias1,depth0,{"name":"timegridCurrentTime-tmpl","hash":{},"data":data,"loc":{"start":{"line":12,"column":223},"end":{"line":12,"column":258}}})) != null ? stack1 : "") + + ((stack1 = (helpers["timegridCurrentTime-tmpl"]||(depth0 && depth0["timegridCurrentTime-tmpl"])||alias2).call(alias1,depth0,{"name":"timegridCurrentTime-tmpl","hash":{},"data":data,"loc":{"start":{"line":12,"column":223},"end":{"line":12,"column":258}}})) != null ? stack1 : "") + "
    \n
    \n"; },"10":function(container,depth0,helpers,partials,data) { - var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}); - return ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"timeSlots") : depth0),{"name":"each","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":16,"column":12},"end":{"line":20,"column":23}}})) != null ? stack1 : "") - + ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"showHourMarker")),{"name":"if","hash":{},"fn":container.program(13, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":21,"column":12},"end":{"line":25,"column":19}}})) != null ? stack1 : ""); + return ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.timeSlots : depth0),{"name":"each","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":16,"column":12},"end":{"line":20,"column":23}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,((stack1 = (data && data.root)) && stack1.showHourMarker),{"name":"if","hash":{},"fn":container.program(13, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":21,"column":12},"end":{"line":25,"column":19}}})) != null ? stack1 : ""); },"11":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression; return "
    \n " - + ((stack1 = (lookupProperty(helpers,"timegridDisplayTime-tmpl")||(depth0 && lookupProperty(depth0,"timegridDisplayTime-tmpl"))||alias2).call(alias1,depth0,{"name":"timegridDisplayTime-tmpl","hash":{},"data":data,"loc":{"start":{"line":18,"column":68},"end":{"line":18,"column":103}}})) != null ? stack1 : "") + + ((stack1 = (helpers["timegridDisplayTime-tmpl"]||(depth0 && depth0["timegridDisplayTime-tmpl"])||alias2).call(alias1,depth0,{"name":"timegridDisplayTime-tmpl","hash":{},"data":data,"loc":{"start":{"line":18,"column":68},"end":{"line":18,"column":103}}})) != null ? stack1 : "") + "\n
    \n"; },"13":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    \n
    " - + ((stack1 = (lookupProperty(helpers,"timegridCurrentTime-tmpl")||(depth0 && lookupProperty(depth0,"timegridCurrentTime-tmpl"))||alias2).call(alias1,depth0,{"name":"timegridCurrentTime-tmpl","hash":{},"data":data,"loc":{"start":{"line":23,"column":171},"end":{"line":23,"column":206}}})) != null ? stack1 : "") + + ((stack1 = (helpers["timegridCurrentTime-tmpl"]||(depth0 && depth0["timegridCurrentTime-tmpl"])||alias2).call(alias1,depth0,{"name":"timegridCurrentTime-tmpl","hash":{},"data":data,"loc":{"start":{"line":23,"column":171},"end":{"line":23,"column":206}}})) != null ? stack1 : "") + "
    \n
    \n"; },"15":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    \n
    \n
    \n"; },"16":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; return " border-bottom: " - + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"styles"))) && lookupProperty(stack1,"borderBottom")), depth0)) + + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderBottom), depth0)) + ";\n"; },"18":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    \n
    \n
    today
    \n
    \n
    \n
    \n"; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    \n" - + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"timezones") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":4},"end":{"line":28,"column":15}}})) != null ? stack1 : "") + + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.timezones : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":4},"end":{"line":28,"column":15}}})) != null ? stack1 : "") + "
    \n
    \n
    \n" - + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"hoursLabels") : depth0),{"name":"each","hash":{},"fn":container.program(15, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":32,"column":8},"end":{"line":40,"column":19}}})) != null ? stack1 : "") + + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{"name":"each","hash":{},"fn":container.program(15, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":32,"column":8},"end":{"line":40,"column":19}}})) != null ? stack1 : "") + "
    \n
    \n
    \n
    \n\n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"showHourMarker") : depth0),{"name":"if","hash":{},"fn":container.program(18, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":46,"column":4},"end":{"line":53,"column":11}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.showHourMarker : depth0),{"name":"if","hash":{},"fn":container.program(18, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":46,"column":4},"end":{"line":53,"column":11}}})) != null ? stack1 : "") + "
    \n"; },"useData":true}); @@ -23588,14 +22729,9 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1; - return ((stack1 = (lookupProperty(helpers,"timegridCurrentTime-tmpl")||(depth0 && lookupProperty(depth0,"timegridCurrentTime-tmpl"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"timegridCurrentTime-tmpl","hash":{},"data":data,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}})) != null ? stack1 : "") + return ((stack1 = (helpers["timegridCurrentTime-tmpl"]||(depth0 && depth0["timegridCurrentTime-tmpl"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"timegridCurrentTime-tmpl","hash":{},"data":data,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}})) != null ? stack1 : "") + "\n"; },"useData":true}); @@ -23610,92 +22746,72 @@ module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8," var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    " - + ((stack1 = (lookupProperty(helpers,"goingDuration-tmpl")||(depth0 && lookupProperty(depth0,"goingDuration-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"goingDuration-tmpl","hash":{},"data":data,"loc":{"start":{"line":4,"column":230},"end":{"line":4,"column":260}}})) != null ? stack1 : "") + + ((stack1 = (helpers["goingDuration-tmpl"]||(depth0 && depth0["goingDuration-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{"name":"goingDuration-tmpl","hash":{},"data":data,"loc":{"start":{"line":4,"column":230},"end":{"line":4,"column":260}}})) != null ? stack1 : "") + "
    \n"; },"3":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    " - + ((stack1 = (lookupProperty(helpers,"comingDuration-tmpl")||(depth0 && lookupProperty(depth0,"comingDuration-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"comingDuration-tmpl","hash":{},"data":data,"loc":{"start":{"line":10,"column":228},"end":{"line":10,"column":259}}})) != null ? stack1 : "") + + ((stack1 = (helpers["comingDuration-tmpl"]||(depth0 && depth0["comingDuration-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{"name":"comingDuration-tmpl","hash":{},"data":data,"loc":{"start":{"line":10,"column":228},"end":{"line":10,"column":259}}})) != null ? stack1 : "") + "
    \n"; },"5":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; return "
     
    "; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    \n
    \n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"hasGoingDuration") : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":8},"end":{"line":5,"column":15}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.hasGoingDuration : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":8},"end":{"line":5,"column":15}}})) != null ? stack1 : "") + "
    \n " - + ((stack1 = (lookupProperty(helpers,"time-tmpl")||(depth0 && lookupProperty(depth0,"time-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"model") : depth0),{"name":"time-tmpl","hash":{},"data":data,"loc":{"start":{"line":7,"column":16},"end":{"line":7,"column":37}}})) != null ? stack1 : "") + + ((stack1 = (helpers["time-tmpl"]||(depth0 && depth0["time-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{"name":"time-tmpl","hash":{},"data":data,"loc":{"start":{"line":7,"column":16},"end":{"line":7,"column":37}}})) != null ? stack1 : "") + "\n
    \n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"hasComingDuration") : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":9,"column":8},"end":{"line":11,"column":15}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.hasComingDuration : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":9,"column":8},"end":{"line":11,"column":15}}})) != null ? stack1 : "") + "
    \n " - + ((stack1 = lookupProperty(helpers,"unless").call(alias1,(depth0 != null ? lookupProperty(depth0,"croppedEnd") : depth0),{"name":"unless","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":13,"column":4},"end":{"line":13,"column":104}}})) != null ? stack1 : "") + + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.croppedEnd : depth0),{"name":"unless","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":13,"column":4},"end":{"line":13,"column":104}}})) != null ? stack1 : "") + "\n
    \n
    \n"; },"useData":true}); @@ -23710,90 +22826,65 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co var Handlebars = __webpack_require__(/*! ./node_modules/handlebars/runtime.js */ "./node_modules/handlebars/runtime.js"); module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    \n
    \n" - + ((stack1 = lookupProperty(helpers,"if").call(alias1,(lookupProperty(helpers,"and")||(depth0 && lookupProperty(depth0,"and"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"isPrimary") : depth0),((stack1 = (data && lookupProperty(data,"root"))) && lookupProperty(stack1,"showTimezoneCollapseButton")),{"name":"and","hash":{},"data":data,"loc":{"start":{"line":4,"column":14},"end":{"line":4,"column":62}}}),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":8},"end":{"line":10,"column":15}}})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(helpers.and||(depth0 && depth0.and)||alias2).call(alias1,(depth0 != null ? depth0.isPrimary : depth0),((stack1 = (data && data.root)) && stack1.showTimezoneCollapseButton),{"name":"and","hash":{},"data":data,"loc":{"start":{"line":4,"column":14},"end":{"line":4,"column":62}}}),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":8},"end":{"line":10,"column":15}}})) != null ? stack1 : "") + "
    " - + ((stack1 = (lookupProperty(helpers,"timezoneDisplayLabel-tmpl")||(depth0 && lookupProperty(depth0,"timezoneDisplayLabel-tmpl"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"timezoneOffset") : depth0),(depth0 != null ? lookupProperty(depth0,"displayLabel") : depth0),{"name":"timezoneDisplayLabel-tmpl","hash":{},"data":data,"loc":{"start":{"line":11,"column":59},"end":{"line":11,"column":118}}})) != null ? stack1 : "") + + ((stack1 = (helpers["timezoneDisplayLabel-tmpl"]||(depth0 && depth0["timezoneDisplayLabel-tmpl"])||alias2).call(alias1,(depth0 != null ? depth0.timezoneOffset : depth0),(depth0 != null ? depth0.displayLabel : depth0),{"name":"timezoneDisplayLabel-tmpl","hash":{},"data":data,"loc":{"start":{"line":11,"column":59},"end":{"line":11,"column":118}}})) != null ? stack1 : "") + "
    \n
    \n
    \n"; },"2":function(container,depth0,helpers,partials,data) { return "display:none;"; },"4":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; return "
    \n \n \n \n
    \n"; },"5":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; - return container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":7,"column":84},"end":{"line":7,"column":98}}}) : helper))) + return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":7,"column":84},"end":{"line":7,"column":98}}}) : helper))) + "ic-arrow-right"; },"7":function(container,depth0,helpers,partials,data) { - var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var helper; - return container.escapeExpression(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":7,"column":120},"end":{"line":7,"column":134}}}) : helper))) + return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":7,"column":120},"end":{"line":7,"column":134}}}) : helper))) + "ic-arrow-left"; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; + var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}); - return ((stack1 = lookupProperty(helpers,"each").call(alias1,(lookupProperty(helpers,"reverse")||(depth0 && lookupProperty(depth0,"reverse"))||container.hooks.helperMissing).call(alias1,(depth0 != null ? lookupProperty(depth0,"timezones") : depth0),{"name":"reverse","hash":{},"data":data,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":27}}}),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":1,"column":0},"end":{"line":14,"column":11}}})) != null ? stack1 : ""); + return ((stack1 = helpers.each.call(alias1,(helpers.reverse||(depth0 && depth0.reverse)||container.hooks.helperMissing).call(alias1,(depth0 != null ? depth0.timezones : depth0),{"name":"reverse","hash":{},"data":data,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":27}}}),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":1,"column":0},"end":{"line":14,"column":11}}})) != null ? stack1 : ""); },"useData":true}); /***/ }), diff --git a/dist/tui-calendar.js.map b/dist/tui-calendar.js.map index 88b8b6170..39ac004c1 100644 --- a/dist/tui-calendar.js.map +++ b/dist/tui-calendar.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://tui.Calendar/webpack/universalModuleDefinition","webpack://tui.Calendar/webpack/bootstrap","webpack://tui.Calendar/./node_modules/handlebars-template-loader/runtime/index.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars.runtime.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/base.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/decorators.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/exception.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/each.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/if.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/log.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/with.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/logger.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/no-conflict.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/runtime.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/safe-string.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/utils.js","webpack://tui.Calendar/./node_modules/handlebars/runtime.js","webpack://tui.Calendar/(webpack)/buildin/global.js","webpack://tui.Calendar/./src/css/main.styl","webpack://tui.Calendar/./src/index.js","webpack://tui.Calendar/./src/js/common/array.js","webpack://tui.Calendar/./src/js/common/autoScroll.js","webpack://tui.Calendar/./src/js/common/collection.js","webpack://tui.Calendar/./src/js/common/common.js","webpack://tui.Calendar/./src/js/common/datetime.js","webpack://tui.Calendar/./src/js/common/dirty.js","webpack://tui.Calendar/./src/js/common/domevent.js","webpack://tui.Calendar/./src/js/common/domutil.js","webpack://tui.Calendar/./src/js/common/dw.js","webpack://tui.Calendar/./src/js/common/floatingLayer.js","webpack://tui.Calendar/./src/js/common/model.js","webpack://tui.Calendar/./src/js/common/point.js","webpack://tui.Calendar/./src/js/common/reqAnimFrame.js","webpack://tui.Calendar/./src/js/common/timezone.js","webpack://tui.Calendar/./src/js/common/vlayout.js","webpack://tui.Calendar/./src/js/common/vpanel.js","webpack://tui.Calendar/./src/js/config.js","webpack://tui.Calendar/./src/js/controller/base.js","webpack://tui.Calendar/./src/js/controller/viewMixin/core.js","webpack://tui.Calendar/./src/js/controller/viewMixin/month.js","webpack://tui.Calendar/./src/js/controller/viewMixin/week.js","webpack://tui.Calendar/./src/js/factory/calendar.js","webpack://tui.Calendar/./src/js/factory/controller.js","webpack://tui.Calendar/./src/js/factory/monthView.js","webpack://tui.Calendar/./src/js/factory/weekView.js","webpack://tui.Calendar/./src/js/handler/daygrid/click.js","webpack://tui.Calendar/./src/js/handler/daygrid/core.js","webpack://tui.Calendar/./src/js/handler/daygrid/creation.js","webpack://tui.Calendar/./src/js/handler/daygrid/creationGuide.js","webpack://tui.Calendar/./src/js/handler/daygrid/move.js","webpack://tui.Calendar/./src/js/handler/daygrid/moveGuide.js","webpack://tui.Calendar/./src/js/handler/daygrid/resize.js","webpack://tui.Calendar/./src/js/handler/daygrid/resizeGuide.js","webpack://tui.Calendar/./src/js/handler/drag.js","webpack://tui.Calendar/./src/js/handler/month/click.js","webpack://tui.Calendar/./src/js/handler/month/core.js","webpack://tui.Calendar/./src/js/handler/month/creation.js","webpack://tui.Calendar/./src/js/handler/month/creationGuide.js","webpack://tui.Calendar/./src/js/handler/month/guide.hbs","webpack://tui.Calendar/./src/js/handler/month/guide.js","webpack://tui.Calendar/./src/js/handler/month/move.js","webpack://tui.Calendar/./src/js/handler/month/moveGuide.hbs","webpack://tui.Calendar/./src/js/handler/month/moveGuide.js","webpack://tui.Calendar/./src/js/handler/month/resize.js","webpack://tui.Calendar/./src/js/handler/month/resizeGuide.js","webpack://tui.Calendar/./src/js/handler/time/click.js","webpack://tui.Calendar/./src/js/handler/time/clickDayname.js","webpack://tui.Calendar/./src/js/handler/time/core.js","webpack://tui.Calendar/./src/js/handler/time/creation.js","webpack://tui.Calendar/./src/js/handler/time/creationGuide.js","webpack://tui.Calendar/./src/js/handler/time/move.js","webpack://tui.Calendar/./src/js/handler/time/moveGuide.js","webpack://tui.Calendar/./src/js/handler/time/resize.js","webpack://tui.Calendar/./src/js/handler/time/resizeGuide.js","webpack://tui.Calendar/./src/js/model/schedule.js","webpack://tui.Calendar/./src/js/model/viewModel/scheduleViewModel.js","webpack://tui.Calendar/./src/js/theme/standard.js","webpack://tui.Calendar/./src/js/theme/theme.js","webpack://tui.Calendar/./src/js/theme/themeConfig.js","webpack://tui.Calendar/./src/js/view/layout.js","webpack://tui.Calendar/./src/js/view/month/month.js","webpack://tui.Calendar/./src/js/view/month/more.js","webpack://tui.Calendar/./src/js/view/month/weekdayInMonth.js","webpack://tui.Calendar/./src/js/view/popup/scheduleCreationPopup.js","webpack://tui.Calendar/./src/js/view/popup/scheduleDetailPopup.js","webpack://tui.Calendar/./src/js/view/template/helper.js","webpack://tui.Calendar/./src/js/view/template/month/month.hbs","webpack://tui.Calendar/./src/js/view/template/month/more.hbs","webpack://tui.Calendar/./src/js/view/template/month/weekdayInMonth.hbs","webpack://tui.Calendar/./src/js/view/template/month/weekdayInMonthSchedule.hbs","webpack://tui.Calendar/./src/js/view/template/popup/scheduleCreationPopup.hbs","webpack://tui.Calendar/./src/js/view/template/popup/scheduleDetailPopup.hbs","webpack://tui.Calendar/./src/js/view/template/week/dayGrid.hbs","webpack://tui.Calendar/./src/js/view/template/week/dayGridSchedule.hbs","webpack://tui.Calendar/./src/js/view/template/week/daynames.hbs","webpack://tui.Calendar/./src/js/view/template/week/time.hbs","webpack://tui.Calendar/./src/js/view/template/week/timeGrid.hbs","webpack://tui.Calendar/./src/js/view/template/week/timeGridCurrentTime.hbs","webpack://tui.Calendar/./src/js/view/template/week/timeMoveGuide.hbs","webpack://tui.Calendar/./src/js/view/template/week/timezoneSticky.hbs","webpack://tui.Calendar/./src/js/view/view.js","webpack://tui.Calendar/./src/js/view/week/dayGrid.js","webpack://tui.Calendar/./src/js/view/week/dayGridSchedule.js","webpack://tui.Calendar/./src/js/view/week/dayname.js","webpack://tui.Calendar/./src/js/view/week/time.js","webpack://tui.Calendar/./src/js/view/week/timeGrid.js","webpack://tui.Calendar/./src/js/view/week/week.js","webpack://tui.Calendar/./src/js/view/weekday.js","webpack://tui.Calendar/external {\"commonjs\":\"tui-code-snippet\",\"commonjs2\":\"tui-code-snippet\",\"amd\":\"tui-code-snippet\",\"root\":[\"tui\",\"util\"]}","webpack://tui.Calendar/external {\"commonjs\":\"tui-date-picker\",\"commonjs2\":\"tui-date-picker\",\"amd\":\"tui-date-picker\",\"root\":[\"tui\",\"DatePicker\"]}"],"names":[],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFA,iBAAiB,mBAAO,CAAC,oFAAoB,E;;;;;;;;;;;;ACAhC;;AAEb;AACA;;AAEA,sCAAsC,u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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;ACvD5C;;AAEb;;AAEA,aAAa,mBAAO,CAAC,wEAAU;;AAE/B;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;ACtCzD,8CAAa;;AAEb;AACA;;AAEA,sCAAsC,uCAAuC,kBAAkB;;AAE/F,aAAa,mBAAO,CAAC,wEAAU;;AAE/B,iBAAiB,mBAAO,CAAC,gFAAc;;AAEvC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA,oCAAoC,OAAO;AAC3C;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,sCAAsC,UAAU;AAChD;AACA;AACA;AACA,oCAAoC,OAAO;AAC3C;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;;ACvG5C;;AAEb;AACA;;AAEA,sCAAsC,uCAAuC,kBAAkB;;AAE/F,iBAAiB,mBAAO,CAAC,gFAAc;;AAEvC;;AAEA;AACA;AACA;AACA,gCAAgC,KAAK;AACrC;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;AACH;;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AO,CAAC,uEAAS;;AAE9B;;AAEA,iBAAiB,mBAAO,CAAC,+EAAa;;AAEtC;;AAEA,YAAY,mBAAO,CAAC,qEAAQ;;AAE5B,eAAe,mBAAO,CAAC,2EAAW;;AAElC,0BAA0B,mBAAO,CAAC,mGAAuB;;AAEzD,2BAA2B,mBAAO,CAAC,uGAAyB;;AAE5D;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;;AAEA,yCAAyC;AACzC;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,OAAO;AAChD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,6BAA6B;AAC7B;;AAEA;AACA,KAAK;AACL;AACA,+BAA+B;;AAE/B;AACA;AACA;;AAEA;AACA,0EAA0E;;AAE1E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,yCAAyC;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,gEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,0EAA0E;;AAE1E;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8EAA8E;;AAE9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,yBAAyB,iCAAiC;AAC1D,GAAG;AACH;AACA,2CAA2C,cAAc;;;;;;;;;;;;;ACnXzD;AACa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;ACd5C;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,YAAY;AACZ,YAAY;AACZ,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,sBAAsB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,qCAAqC,SAAS;AAC9C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA,uBAAuB;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA2C,cAAc;;;;;;;;;;;;AC3HzD;AACA;AACA,iBAAiB,mBAAO,CAAC,+FAA+B;;;;;;;;;;;;ACFxD;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;;;;;ACnBA,uC;;;;;;;;;;;;ACAA;AACA;AACA;AACA;;AAEa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,eAAe,mBAAO,CAAC,2DAAuB;;AAE9C,mBAAO,CAAC,4CAAiB;AACzB,mBAAO,CAAC,mEAA2B;;AAEnC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;;ACxCA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,eAAe,mBAAO,CAAC,uDAAoB;;AAE3C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,wBAAwB;AACnC,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,qDAAqD;AACrD;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,2BAA2B;AACtC,WAAW,2BAA2B;AACtC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC7RA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,eAAe,mBAAO,CAAC,uDAAoB;AAC3C,cAAc,mBAAO,CAAC,qDAAmB;AACzC,YAAY,mBAAO,CAAC,iDAAiB;;AAErC;AACA;AACA,+BAA+B;;AAE/B;AACA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,UAAU;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,YAAY;AACvB,WAAW,WAAW;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;;ACpPA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,iEAAiE;AACjE;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,cAAc,SAAS;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,cAAc,SAAS;AACvB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,aAAa,WAAW;AACxB;AACA,0CAA0C;AAC1C;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,0BAA0B;AACrC,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,gCAAgC;AAC3C,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,6BAA6B;AAC7B;;AAEA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,gBAAgB;AAC3B,WAAW,SAAS;AACpB,WAAW,EAAE;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,WAAW;AACxB;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,+BAA+B;AAC1C;AACA,WAAW,SAAS;AACpB,aAAa,4BAA4B;AACzC;AACA;AACA;AACA,gCAAgC;AAChC,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,yBAAyB;AACzB;AACA;AACA;;AAEA,yBAAyB;AACzB;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,EAAE;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;;;;;;;;;;;;;ACzbA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC;;AAEA,cAAc,mBAAO,CAAC,qDAAmB;AACzC,iBAAiB,mBAAO,CAAC,2DAAsB;AAC/C,eAAe,mBAAO,CAAC,uDAAoB;;AAE3C;AACA;AACA,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB,iBAAiB,WAAW;AAC5B;AACA,mDAAmD;AACnD;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,MAAM;AACrB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,UAAU;AACzB,iBAAiB,OAAO;AACxB;AACA,iCAAiC;AACjC;AACA;;AAEA;AACA;AACA,yBAAyB,EAAE;AAC3B;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,uBAAuB,gBAAgB;AACvC,yBAAyB,EAAE;AAC3B;AACA;AACA;;AAEA;AACA,qCAAqC;AACrC;;AAEA;;AAEA;AACA,kEAAkE;AAClE;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,MAAM;AACrB,eAAe,MAAM;AACrB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,cAAc;AAC7B,iBAAiB,EAAE;AACnB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,cAAc;AAC7B,iBAAiB,EAAE;AACnB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,OAAO,0BAA0B;AAChD,eAAe,YAAY;AAC3B,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,EAAE;AACjB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,YAAY;AACnC;AACA;AACA,SAAS;AACT,uBAAuB,YAAY;AACnC;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;;AAET;AACA;AACA;;;;;;;;;;;;;ACrVA;AACA;AACA;AACA;AACa;;AAEb,aAAa,mBAAO,CAAC,+CAAY;AACjC,SAAS,mBAAO,CAAC,2CAAc;AAC/B,WAAW,mBAAO,CAAC,0CAAkB;AACrC;AACA,yBAAyB,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE;AACzE;;AAEA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,KAAK;AACpB;AACA,eAAe,MAAM;AACrB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,KAAK;AACpB,eAAe,MAAM;AACrB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,cAAc,kBAAkB;AAChC;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,SAAS;AACxB,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;;AClnBA;AACA;AACA;AACA;AACa;;AAEb,aAAa,mBAAO,CAAC,0CAAkB;AACvC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,iBAAiB;AACjB,8BAA8B;AAC9B,6BAA6B;AAC7B;AACA;AACA,iBAAiB;AACjB,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,EAAE;AACjB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;;AAEA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,gBAAgB;AAC/B;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;;AAEA;AACA;AACA,uBAAuB,SAAS;AAChC,uBAAuB,QAAQ;AAC/B,yBAAyB,EAAE;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD,4CAA4C;;AAE5C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC3MA;AACA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,gBAAgB;AAC/B,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,gBAAgB;AAC/B,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,WAAW;AAC1B,eAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,aAAa,aAAa;AAC1B;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,gBAAgB;AAC/B,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB,eAAe,YAAY;AAC3B,iBAAiB,SAAS;AAC1B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,WAAW;AAC1B,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,WAAW;AAC1B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,aAAa;AACb,0BAA0B;AAC1B;AACA,qBAAqB;AACrB;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,WAAW;AAC1B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;AClbA;AACA;AACA;AACA;AACA;AACa;;AAEb,eAAe,mBAAO,CAAC,+CAAY;AACnC,iBAAiB,mBAAO,CAAC,mDAAc;AACvC,WAAW,mBAAO,CAAC,0CAAkB;;AAErC;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,YAAY;AAC3B;AACA,eAAe,OAAO;AACtB,iBAAiB,YAAY;AAC7B;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,qBAAqB;AACpC;AACA,eAAe,iBAAiB;AAChC;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,mBAAmB,YAAY;AAC/B,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,SAAS;AAC3B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,iBAAiB,YAAY;AAC7B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC,IAAI;AAC5C;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,cAAc;AAC7B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,iBAAiB,cAAc;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yCAAyC,EAAE;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,QAAQ;AACvB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,MAAM;AACrB,iBAAiB,iBAAiB;AAClC;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;;AAEA,cAAc,SAAS;AACvB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,gBAAgB;AAC/B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;ACtoBA;AACA;AACA;AACA;AACa;;AAEb,aAAa,mBAAO,CAAC,+CAAY;;AAEjC;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,GAAG;AAChB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,GAAG;AAChB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,GAAG;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,GAAG;AAChB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC9HA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,qCAAW;AAChC,cAAc,mBAAO,CAAC,qDAAmB;AACzC,WAAW,mBAAO,CAAC,2CAAc;;AAEjC;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,cAAc;AACd;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,UAAU,SAAS;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,cAAc;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;ACvLA;AACA;AACA;AACA;AACa;;AAEb,aAAa,mBAAO,CAAC,uDAAoB;AACzC,WAAW,mBAAO,CAAC,0CAAkB;AACrC;AACA;;AAEA,eAAe,mBAAO,CAAC,uDAAoB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B,mBAAmB,SAAS;AAC5B,qBAAqB,QAAQ;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,aAAa;;AAEb;AACA,SAAS;;AAET;AACA;AACA,mBAAmB,OAAO;AAC1B,mBAAmB,OAAO;AAC1B,qBAAqB,QAAQ;AAC7B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,6BAA6B;AAC7B;;AAEA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,iBAAiB,OAAO;AACxB;AACA;AACA,sBAAsB;AACtB;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;;;;;;;;;;;;ACtJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;;AAErC;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,wBAAwB;AACnC,WAAW,iBAAiB;AAC5B,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;ACnVA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,SAAS;AACxB,eAAe,EAAE;AACjB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;;;ACxDA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;;AAErC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,mBAAmB;AAC9B,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,0BAA0B;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,SAAS;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACzSA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,qCAAW;AAChC,aAAa,mBAAO,CAAC,2CAAU;AAC/B,cAAc,mBAAO,CAAC,6CAAW;AACjC,eAAe,mBAAO,CAAC,+CAAY;AACnC,WAAW,mBAAO,CAAC,2CAAc;AACjC,aAAa,mBAAO,CAAC,2CAAU;AAC/B,WAAW,mBAAO,CAAC,iDAAiB;;AAEpC;;AAEA;AACA;AACA,UAAU;AACV,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,OAAO;AACrB;;AAEA;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,YAAY,eAAe;AAC3B,YAAY,SAAS;AACrB,WAAW,YAAY;AACvB,WAAW,MAAM;AACjB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,aAAa,SAAS;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,OAAO;AAClB,aAAa,YAAY;AACzB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,eAAe;AAC1B,WAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;;;;;;;;;;;;;AC1aA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,qCAAW;AAChC,aAAa,mBAAO,CAAC,2CAAU;AAC/B,cAAc,mBAAO,CAAC,6CAAW;AACjC,WAAW,mBAAO,CAAC,2CAAc;;AAEjC;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB,YAAY,QAAQ;AACpB,YAAY,OAAO;AACnB,WAAW,YAAY;AACvB,WAAW,MAAM;AACjB;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,eAAe;AAC1B;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;ACjNA;AACA;AACA;AACA;AACa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC3CA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,eAAe,mBAAO,CAAC,qDAAmB;AAC1C,wBAAwB,mBAAO,CAAC,2FAAsC;AACtE,eAAe,mBAAO,CAAC,uDAAoB;AAC3C,aAAa,mBAAO,CAAC,mDAAkB;AACvC,YAAY,mBAAO,CAAC,+CAAgB;;AAEpC;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS,uDAAuD;AAC3E,WAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,eAAe,kBAAkB;AACjC,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,oBAAoB;AAC/B,WAAW,QAAQ;AACnB,aAAa,WAAW;AACxB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,KAAK;AAChB,WAAW,WAAW;AACtB,aAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,eAAe;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC7YA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC;AACA;;AAEA,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,0DAAuB;AAC5C,iBAAiB,mBAAO,CAAC,8DAAyB;AAClD,wBAAwB,mBAAO,CAAC,8FAAyC;;AAEzE;AACA;AACA;AACA,eAAe,MAAM;AACrB,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,yCAAyC;AACzC;;AAEA;AACA,qBAAqB;;AAErB,iCAAiC;AACjC;;AAEA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,WAAW;AAC1B,eAAe,QAAQ;AACvB,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;;AAEb;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,KAAK;AACpB,eAAe,KAAK;AACpB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,KAAK;AACpB,eAAe,KAAK;AACpB,eAAe,MAAM;AACrB,eAAe,SAAS;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,6BAA6B;AAC5C;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC,qBAAqB,kBAAkB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,WAAW;AAC1B,iBAAiB,WAAW;AAC5B;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;;;;;;;;;;;;;AC7PA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,YAAY,mBAAO,CAAC,oDAAoB;AACxC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,iBAAiB,mBAAO,CAAC,8DAAyB;AAClD;;AAEA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,kBAAkB;AACjC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,WAAW;AAC1B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;;AAEA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,WAAW;AAC1B,eAAe,QAAQ;AACvB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;AClNA;AACA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;;AAErC,iBAAiB,mBAAO,CAAC,8DAAyB;AAClD,YAAY,mBAAO,CAAC,oDAAoB;AACxC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb,qBAAqB,iBAAiB;AACtC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,iBAAiB;AAChC,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,uCAAuC,kBAAkB;AACzD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,eAAe,KAAK;AACpB,eAAe,KAAK;AACpB,eAAe,WAAW;AAC1B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,eAAe,KAAK;AACpB,eAAe,KAAK;AACpB,eAAe,WAAW;AAC1B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAE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ACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA,mGAAmG,MAAM;AACzG,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,8CAA8C;AAC9C,yCAAyC;AACzC,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,yCAAyC;AACzC,oCAAoC;AACpC,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YA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A;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA,kCAAkC,aAAa;;AAE/C;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,sCAAsC;AAC/C;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,iBAAiB,cAAc,eAAe;AACzD,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA,UAAU,eAAe;AACzB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO,gBAAgB,eAAe;AACjD,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,WAAW,YAAY;AACvB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2CAA2C;AAC3C;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,cAAc;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,cAAc,eAAe,oBAAoB;AAC5D,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA,oEAAoE,2BAA2B;AAC/F;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS,iBAAiB,eAAe;AAC3D,kBAAkB,WAAW;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,YAAY;AAC9B;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,kBAAkB,UAAU,wBAAwB;AACtE,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B,YAAY;AACZ;AACA,2BAA2B;AAC3B;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO,8BAA8B,eAAe;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS,0BAA0B,eAAe;AACpE,kBAAkB,OAAO,gBAAgB,eAAe;AACxD,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS,iBAAiB,eAAe;AAC3D;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS,wBAAwB,eAAe;AAClE;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ,sBAAsB,QAAQ;AAC9D;AACA;AACA;AACA,wBAAwB,QAAQ,sBAAsB;AACtD;AACA;AACA;AACA,wBAAwB,QAAQ,sBAAsB;AACtD;AACA;AACA;AACA,wBAAwB,QAAQ,qBAAqB;AACrD,wBAAwB,OAAO,qBAAqB;AACpD;AACA;AACA;AACA,wBAAwB,OAAO,mBAAmB;AAClD,wBAAwB,QAAQ,mBAAmB;AACnD;AACA;AACA;AACA,wBAAwB,OAAO,gBAAgB;AAC/C,wBAAwB,QAAQ,gBAAgB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,eAAe;AAC5B;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ,gBAAgB;AACnC,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,cAAc;AAC9B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,aAAa;AACxC,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA,uCAAuC,aAAa;AACpD,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA,qCAAqC,aAAa;AAClD,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,sBAAsB,cAAc,oBAAoB;AACnE;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS,wBAAwB,eAAe;AAC3D;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,KAAK;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,YAAY;AACvB,WAAW,KAAK;AAChB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,YAAY;AACvB,WAAW,KAAK;AAChB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA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ACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,KAAK;AAChB,WAAW,YAAY;AACvB,WAAW,KAAK;AAChB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2DAA2D,kCAAkC;AAC7F;AACA,aAAa;;AAEb;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA,mDAAmD,uBAAuB,iBAAiB;AAC3F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;AClQA;AACA;AACA;AACA;AACa;;AAE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AuC;AACvC;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,SAAS;AACT;;AAEA,+BAA+B,eAAe;;AAE9C;AACA;AACA,iBAAiB;AACjB,mBAAmB;AACnB,oBAAoB;AACpB,gBAAgB;AAChB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA,mDAAmD,uBAAuB,iBAAiB;AAC3F;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AClXA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,kBAAkB,mBAAO,CAAC,gDAAQ;;AAElC;AACA;AACA,gBAAgB;AAChB;AACA,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB,0BAA0B,SAAS;AACnC,0BAA0B,WAAW;AACrC;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;;AAEA;;AAEA;;;;;;;;;;;;;AClIA;AACA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,eAAe,mBAAO,CAAC,0DAAuB;;AAE9C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB,eAAe,WAAW;AAC1B,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,WAAW;AAC9B,qBAAqB,OAAO;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,KAAK;AACpB,eAAe,OAAO;AACtB,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,mBAAmB,OAAO;AAC1B,qBAAqB,OAAO;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,UAAU,YAAY;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACzJA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,kBAAkB,mBAAO,CAAC,gDAAQ;AAClC,2BAA2B,mBAAO,CAAC,kEAAiB;AACpD,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C;;AAEA;AACA;AACA,gBAAgB;AAChB;AACA;AACA,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,sBAAsB;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,QAAQ;AAC1B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,qBAAqB;AACvC,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACjVA;AACA;AACA;AACA;AACa;;AAEb,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,mBAAmB,mBAAO,CAAC,kEAA2B;;AAEtD;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,UAAU,mBAAmB;AAC7B;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC1JA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,kBAAkB,mBAAO,CAAC,gDAAQ;AAClC,uBAAuB,mBAAO,CAAC,0DAAa;AAC5C,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C;AACA;AACA,gBAAgB;AAChB;AACA;AACA,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB,WAAW,KAAK;AAChB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,wBAAwB;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,SAAS;AAC3B,kBAAkB,eAAe;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,mBAAmB,KAAK;AACxB,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACzRA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,mBAAmB,mBAAO,CAAC,kEAA2B;;AAEtD;AACA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,UAAU,UAAU;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;;AChRA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,kBAAkB,mBAAO,CAAC,gDAAQ;AAClC,yBAAyB,mBAAO,CAAC,8DAAe;AAChD,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C;AACA;AACA,gBAAgB;AAChB;AACA;AACA,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB,WAAW,KAAK;AAChB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,sBAAsB;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,SAAS;AAC3B,kBAAkB,eAAe;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACrRA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,mBAAmB,mBAAO,CAAC,kEAA2B;;AAEtD;AACA;AACA,WAAW,cAAc;AACzB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,cAAc,YAAY;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;;AC5JA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,cAAc,mBAAO,CAAC,qDAAmB;AACzC,eAAe,mBAAO,CAAC,uDAAoB;;AAE3C;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,WAAW;AACtB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,WAAW;AAC7B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB,sBAAsB,YAAY;AAClC,sBAAsB,WAAW;AACjC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,WAAW;AAC7B;AACA;AACA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB,sBAAsB,YAAY;AAClC,sBAAsB,WAAW;AACjC;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,kBAAkB;AAClB,sBAAsB,YAAY;AAClC,sBAAsB,WAAW;AACjC;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;;ACpPA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;;AAE5C;AACA;AACA,gBAAgB;AAChB;AACA,WAAW,KAAK;AAChB,WAAW,MAAM;AACjB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA,sBAAsB;AACtB,0BAA0B,SAAS;AACnC,0BAA0B,WAAW;AACrC;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;;AAEA;;AAEA;;;;;;;;;;;;;AC1FA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC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;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,kBAAkB;AACpC,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;AC/VA;AACA;AACA;AACA;AACa;;AAEb,iBAAiB,mBAAO,CAAC,gDAAS;;AAElC;AACA;AACA,WAAW,cAAc;AACzB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3EA,iBAAiB,mBAAO,CAAC,kFAAqF;AAC9G,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+RAA+R,GAAG,6BAA6B,oBAAoB,SAAS,qBAAqB,QAAQ,uBAAuB;AA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+FAA+F,SAAS,oBAAoB,QAAQ,wBAAwB;AAChT;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;AC5FjB;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,0DAAuB;AAC5C,WAAW,mBAAO,CAAC,qDAAa;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB,WAAW,MAAM;AACjB;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA,qCAAqC;;AAErC;AACA;;AAEA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,aAAa;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV,cAAc,YAAY;AAC1B,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB;;AAEA;AACA;AACA,WAAW,mBAAmB;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACtdA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;;AAErC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,sBAAsB,mBAAO,CAAC,8CAAQ;AACtC,qBAAqB,mBAAO,CAAC,wDAAa;AAC1C,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C;AACA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,MAAM;AACjB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,mBAAmB,KAAK;AACxB,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,YAAY;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,YAAY;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,YAAY;AACvB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB,kBAAkB,YAAY;AAC9B,kBAAkB,SAAS;AAC3B;AACA;AACA;;AAEA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,K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;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;;AClMA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;;AAErC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,sBAAsB,mBAAO,CAAC,8CAAQ;AACtC,uBAAuB,mBAAO,CAAC,4DAAe;AAC9C,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C,aAAa,mBAAO,CAAC,sDAAqB;;AAE1C;AACA;AACA,WAAW,KAAK;AAChB,WAAW,MAAM;AACjB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB,kBAAkB,YAAY;AAC9B,kBAAkB,SAAS;AAC3B;AACA;AACA;;AAEA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB;AACA;AACA;;AAEA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB;AACA;;AAEA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;AC7NA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;;AAErC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,iBAAiB,mBAAO,CAAC,gDAAS;;AAElC;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;;AClHA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;;AAE5C;AACA;AACA,gBAAgB;AAChB;AACA,WAAW,KAAK;AAChB,WAAW,SAAS;AACpB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO,gCAAgC;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB,sBAAsB,SAAS;AAC/B,sBAAsB,WAAW;AACjC;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;;AAEA;;;;;;;;;;;;;ACvGA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;;AAE5C;AACA;AACA,gBAAgB;AAChB;AACA,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO,gCAAgC;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,OAAO;AACzB;AACA;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;;;;;;;;;;;;;ACzFA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,YAAY,mBAAO,CAAC,oDAAoB;AACxC,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,KAAK;AACpB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,WAAW;AAC9B,mBAAmB,OAAO;AAC1B,qBAAqB,OAAO;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA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ACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,eAAe;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,kBAAkB;AACpC,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,SAAS;AAC3B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC3YA;AACA;AACA;AACA;AACa;;AAEb,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,mBAAmB,mBAAO,CAAC,kEAA2B;AACtD,YAAY,mBAAO,CAAC,sDAAqB;AACzC,aAAa,mBAAO,CAAC,0DAAuB;AAC5C;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;;AChSA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,0DAAuB;AAC5C,eAAe,mBAAO,CAAC,6CAAQ;AAC/B,oBAAoB,mBAAO,CAAC,uDAAa;;AAEzC;AACA;AACA,gBAAgB;AAChB;AACA;AACA,WAAW,KAAK;AAChB,WAAW,SAAS;AACpB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,eAAe;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,eAAe;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,SAAS;AAC3B;AACA;AACA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,mBAAmB,KAAK;AACxB,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AAC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O,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,sDAAqB;;AAE1C;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sDAAsD,aAAa;AACnE,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;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ACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,SAAS;AAC3B,kBAAkB,SAAS;AAC3B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC7TA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,mBAAmB,mBAAO,CAAC,kEAA2B;AACtD,YAAY,mBAAO,CAAC,sDAAqB;AACzC,eAAe,mBAAO,CAAC,0DAAuB;;AAE9C;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;;ACxMA;AACA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,uDAAoB;AACzC,eAAe,mBAAO,CAAC,uDAAoB;AAC3C,YAAY,mBAAO,CAAC,iDAAiB;AACrC,YAAY,mBAAO,CAAC,iDAAiB;;AAErC;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;;AAEA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;;AAEA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC3aA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,eAAe,mBAAO,CAAC,0DAAuB;;AAE9C;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,2BAA2B;AACtC,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC9MA;AACA;AACA;AACA;AACa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC1HA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,oBAAoB,mBAAO,CAAC,8CAAY;AACxC,kBAAkB,mBAAO,CAAC,oDAAe;AACzC,aAAa,mBAAO,CAAC,mDAAkB;;AAEvC;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,eAAe;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;;;;;;;;;;;;;AChGA;AACA;AACA;AACA;AACa;;AAEb;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC9PA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,C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kE;AAC/E,aAAa;AACb;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,eAAe;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,eAAe;AAC1B,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,kCAAkC;AACxF;AACA,aAAa;AACb,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACrVA;AACA;AACA;AACA;AACa;;AAEb;AACA;AACA,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,WAAW,mBAAO,CAAC,8CAAiB;AACpC,oBAAoB,mBAAO,CAAC,oEAA4B;AACxD,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,WAAW,mBAAO,CAAC,yEAA4B;;AAE/C;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,WAAW,OAAO;AAClB;AACA,WAAW,YAAY;AACvB,WAAW,MAAM;AACjB;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC5RA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,aAAa,mBAAO,CAAC,yDAAwB;AAC7C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,WAAW,mBAAO,CAAC,8CAAiB;AACpC,cAAc,mBAAO,CAAC,4CAAY;AAClC,eAAe,mBAAO,CAAC,6FAAsC;AAC7D,mBAAmB,mBAAO,CAAC,6GAA8C;AACzE;AACA;;AAEA;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,6CAA6C;AAC7C;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;;;;;;;;;;;;;ACnLA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,8CAAiB;AACpC,oBAAoB,mBAAO,CAAC,oEAA4B;AACxD,WAAW,mBAAO,CAAC,0CAAkB;AACrC,iBAAiB,mBAAO,CAAC,wCAAiB;AAC1C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,WAAW,mBAAO,CAAC,2GAA6C;AAChE;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb,WAAW,YAAY;AACvB,WAAW,iBAAiB;AAC5B,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA,kBAAkB;AAClB,sBAAsB,SAAS;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,0DAA0D;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,yDAAyD;AACpE,aAAa,oBAAoB;AACjC;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,oBAAoB;AAC/B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY,QAAQ,OAAO,WAAW,SAAS;AAC/C,YAAY,MAAM,OAAO,SAAS,OAAO,UAAU,OAAO,WAAW,SAAS;AAC9E,YAAY,MAAM,OAAO,SAAS,OAAO,UAAU,OAAO,WAAW,SAAS;AAC9E,aAAa,mBAAmB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,OAAO;AACxB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC5mBA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,8CAAiB;AACpC,oBAAoB,mBAAO,CAAC,oEAA4B;AACxD,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,WAAW,mBAAO,CAAC,uGAA2C;AAC9D;;AAEA;AACA;AACA,aAAa;AACb,WAAW,YAAY;AACvB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY,QAAQ,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AAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,eAAe,OAAO;AACtB,eAAe,EAAE;AACjB,eAAe,WAAW;AAC1B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,2EAA2E;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,KAAK;AACpB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,MAAM;AACrB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,MAAM;AACrB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,kBAAkB;AACjC,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA,iDAAiD;AACjD,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA,iDAAiD;AACjD,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,+EAA+E,MAAM;AACrF,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;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A6B,oBAAoB,SAAS,qBAAqB,QAAQ,uBAAuB;AACva;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;;AAEA,sTAAsT,GAAG,6BAA6B,oBAAoB,SAAS,sBAAsB,QAAQ,wBAAwB;AACza;AACA,CAAC;AACD,6EAA6E;AAC7E;AACA;AACA;AACA;AACA;;AAEA,4PAA4P,0BAA0B,oBAAoB,SAAS,oBAAoB,QAAQ,uBAAuB,GAAG,uBAAuB,gFAAgF,SAAS,oBAAoB,QAAQ,wBAAwB;AAC7gB,CAAC,gBAAgB,E;;;;;;;;;;;;ACtFjB;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,cAAc,mBAAO,CAAC,qDAAmB;AACzC,iBAAiB,mBAAO,CAAC,2DAAsB;;AAE/C;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,SAAS;AACpB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;ACrNA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,aAAa,mBAAO,CAAC,0DAAuB;AAC5C,WAAW,mBAAO,CAAC,8CAAiB;AACpC,sBAAsB,mBAAO,CAAC,gEAAmB;AACjD,eAAe,mBAAO,CAAC,6EAA8B;AACrD,mBAAmB,mBAAO,CAAC,kEAA2B;AACtD;AACA;;AAEA;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,eAAe;AAC1B;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,iBAAiB;AAC5B,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;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,MAAM;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,KAAK;AAChB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC/KA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,WAAW,mBAAO,CAAC,sCAAS;AAC5B,eAAe,mBAAO,CAAC,uEAA2B;;AAElD;AACA;;AAEA;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,YAAY;AACvB,WAAW,MAAM;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,kBAAkB;AAC7B,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,kBAAkB;AAC7B,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gEAAgE;AAChE,gEAAgE;AAChE,kEAAkE;;AAElE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,kBAAkB;AAC7B,WAAW,OAAO;AAClB,WAAW,KAAK;AAChB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AAC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AW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,YAAY;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6CAA6C;;AAE7C;;AAEA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,WAAW,KAAK;AAChB;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,eAAe;AAC1B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,YAAY;AACvB,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,SAAS;;AAET;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC7pBA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,0DAAuB;AAC5C,WAAW,mBAAO,CAAC,sCAAS;;AAE5B;AACA;AACA,WAAW,UAAU;AACrB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,WAAW,OAAO;AAClB;AACA,WAAW,OAAO;AAClB,WAAW,YAAY;AACvB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gEAAgE;;AAEhE;AACA;AACA,aAAa;AACb;AACA;AACA,iBAAiB;AACjB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,kCAAkC;AACxF;AACA,aAAa;AACb,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;AClOA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,qCAAW;AAChC,cAAc,mBAAO,CAAC,qDAAmB;AACzC,eAAe,mBAAO,CAAC,uDAAoB;AAC3C,aAAa,mBAAO,CAAC,uDAAoB;AACzC,WAAW,mBAAO,CAAC,qCAAQ;;AAE3B;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,eAAe;AAC1B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,eAAe;AAC1B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;ACrNA,8D;;;;;;;;;;;ACAA,6D","file":"tui-calendar.js","sourcesContent":[null," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.js\");\n","module.exports = require('handlebars/runtime');","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _handlebarsBase = require('./handlebars/base');\n\nvar base = _interopRequireWildcard(_handlebarsBase);\n\n// Each of these augment the Handlebars object. No need to setup here.\n// (This is done to easily share code between commonjs and browse envs)\n\nvar _handlebarsSafeString = require('./handlebars/safe-string');\n\nvar _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);\n\nvar _handlebarsException = require('./handlebars/exception');\n\nvar _handlebarsException2 = _interopRequireDefault(_handlebarsException);\n\nvar _handlebarsUtils = require('./handlebars/utils');\n\nvar Utils = _interopRequireWildcard(_handlebarsUtils);\n\nvar _handlebarsRuntime = require('./handlebars/runtime');\n\nvar runtime = _interopRequireWildcard(_handlebarsRuntime);\n\nvar _handlebarsNoConflict = require('./handlebars/no-conflict');\n\nvar _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);\n\n// For compatibility and usage outside of module systems, make the Handlebars object a namespace\nfunction create() {\n var hb = new base.HandlebarsEnvironment();\n\n Utils.extend(hb, base);\n hb.SafeString = _handlebarsSafeString2['default'];\n hb.Exception = _handlebarsException2['default'];\n hb.Utils = Utils;\n hb.escapeExpression = Utils.escapeExpression;\n\n hb.VM = runtime;\n hb.template = function (spec) {\n return runtime.template(spec, hb);\n };\n\n return hb;\n}\n\nvar inst = create();\ninst.create = create;\n\n_handlebarsNoConflict2['default'](inst);\n\ninst['default'] = inst;\n\nexports['default'] = inst;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OEJBQXNCLG1CQUFtQjs7SUFBN0IsSUFBSTs7Ozs7b0NBSU8sMEJBQTBCOzs7O21DQUMzQix3QkFBd0I7Ozs7K0JBQ3ZCLG9CQUFvQjs7SUFBL0IsS0FBSzs7aUNBQ1Esc0JBQXNCOztJQUFuQyxPQUFPOztvQ0FFSSwwQkFBMEI7Ozs7O0FBR2pELFNBQVMsTUFBTSxHQUFHO0FBQ2hCLE1BQUksRUFBRSxHQUFHLElBQUksSUFBSSxDQUFDLHFCQUFxQixFQUFFLENBQUM7O0FBRTFDLE9BQUssQ0FBQyxNQUFNLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxDQUFDO0FBQ3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\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('./utils');\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _helpers = require('./helpers');\n\nvar _decorators = require('./decorators');\n\nvar _logger = require('./logger');\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nvar _internalProtoAccess = require('./internal/proto-access');\n\nvar VERSION = '4.7.2';\nexports.VERSION = VERSION;\nvar COMPILER_REVISION = 8;\nexports.COMPILER_REVISION = COMPILER_REVISION;\nvar LAST_COMPATIBLE_COMPILER_REVISION = 7;\n\nexports.LAST_COMPATIBLE_COMPILER_REVISION = LAST_COMPATIBLE_COMPILER_REVISION;\nvar REVISION_CHANGES = {\n 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it\n 2: '== 1.0.0-rc.3',\n 3: '== 1.0.0-rc.4',\n 4: '== 1.x.x',\n 5: '== 2.0.0-alpha.x',\n 6: '>= 2.0.0-beta.1',\n 7: '>= 4.0.0 <4.3.0',\n 8: '>= 4.3.0'\n};\n\nexports.REVISION_CHANGES = REVISION_CHANGES;\nvar objectType = '[object Object]';\n\nfunction HandlebarsEnvironment(helpers, partials, decorators) {\n this.helpers = helpers || {};\n this.partials = partials || {};\n this.decorators = decorators || {};\n\n _helpers.registerDefaultHelpers(this);\n _decorators.registerDefaultDecorators(this);\n}\n\nHandlebarsEnvironment.prototype = {\n constructor: HandlebarsEnvironment,\n\n logger: _logger2['default'],\n log: _logger2['default'].log,\n\n registerHelper: function registerHelper(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple helpers');\n }\n _utils.extend(this.helpers, name);\n } else {\n this.helpers[name] = fn;\n }\n },\n unregisterHelper: function unregisterHelper(name) {\n delete this.helpers[name];\n },\n\n registerPartial: function registerPartial(name, partial) {\n if (_utils.toString.call(name) === objectType) {\n _utils.extend(this.partials, name);\n } else {\n if (typeof partial === 'undefined') {\n throw new _exception2['default']('Attempting to register a partial called \"' + name + '\" as undefined');\n }\n this.partials[name] = partial;\n }\n },\n unregisterPartial: function unregisterPartial(name) {\n delete this.partials[name];\n },\n\n registerDecorator: function registerDecorator(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple decorators');\n }\n _utils.extend(this.decorators, name);\n } else {\n this.decorators[name] = fn;\n }\n },\n unregisterDecorator: function unregisterDecorator(name) {\n delete this.decorators[name];\n },\n /**\n * Reset the memory of illegal property accesses that have already been logged.\n * @deprecated should only be used in handlebars test-cases\n */\n resetLoggedPropertyAccesses: function resetLoggedPropertyAccesses() {\n _internalProtoAccess.resetLoggedProperties();\n }\n};\n\nvar log = _logger2['default'].log;\n\nexports.log = log;\nexports.createFrame = _utils.createFrame;\nexports.logger = _logger2['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQThDLFNBQVM7O3lCQUNqQyxhQUFhOzs7O3VCQUNJLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNyQyxVQUFVOzs7O21DQUNTLHlCQUF5Qjs7QUFFeEQsSUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDOztBQUN4QixJQUFNLGlCQUFpQixHQUFHLENBQUMsQ0FBQzs7QUFDNUIsSUFBTSxpQ0FBaUMsR0FBRyxDQUFDLENBQUM7OztBQUU1QyxJQUFNLGdCQUFnQixHQUFHO0FBQzlCLEdBQUMsRUFBRSxhQUFhO0FBQ2hCLEdBQUMsRUFBRSxlQUFlO0FBQ2xCLEdBQUMsRUFBRSxlQUFlO0FBQ2xCLEdBQUMsRUFBRSxVQUFVO0FBQ2IsR0FBQyxFQUFFLGtCQUFrQjtBQUNyQixHQUFD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tZV07XG4gIH0sXG4gIC8qKlxuICAgKiBSZXNldCB0aGUgbWVtb3J5IG9mIGlsbGVnYWwgcHJvcGVydHkgYWNjZXNzZXMgdGhhdCBoYXZlIGFscmVhZHkgYmVlbiBsb2dnZWQuXG4gICAqIEBkZXByZWNhdGVkIHNob3VsZCBvbmx5IGJlIHVzZWQgaW4gaGFuZGxlYmFycyB0ZXN0LWNhc2VzXG4gICAqL1xuICByZXNldExvZ2dlZFByb3BlcnR5QWNjZXNzZXMoKSB7XG4gICAgcmVzZXRMb2dnZWRQcm9wZXJ0aWVzKCk7XG4gIH1cbn07XG5cbmV4cG9ydCBsZXQgbG9nID0gbG9nZ2VyLmxvZztcblxuZXhwb3J0IHsgY3JlYXRlRnJhbWUsIGxvZ2dlciB9O1xuIl19\n","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultDecorators = registerDefaultDecorators;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _decoratorsInline = require('./decorators/inline');\n\nvar _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);\n\nfunction registerDefaultDecorators(instance) {\n _decoratorsInline2['default'](instance);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerDecorator('inline', function (fn, props, container, options) {\n var ret = fn;\n if (!props.partials) {\n props.partials = {};\n ret = function (context, options) {\n // Create a new partials stack frame prior to exec.\n var original = container.partials;\n container.partials = _utils.extend({}, original, props.partials);\n var ret = fn(context, options);\n container.partials = original;\n return ret;\n };\n }\n\n props.partials[options.args[0]] = options.fn;\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQXVCLFVBQVU7O3FCQUVsQixVQUFTLFFBQVEsRUFBRTtBQUNoQyxVQUFRLENBQUMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVMsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFO0FBQzNFLFFBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUNiLFFBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxFQUFFO0FBQ25CLFdBQUssQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO0FBQ3BCLFNBQUcsR0FBRyxVQUFTLE9BQU8sRUFBRSxPQUFPLEVBQUU7O0FBRS9CLFlBQUksUUFBUSxHQUFHLFNBQVMsQ0FBQyxRQUFRLENBQUM7QUFDbEMsaUJBQVMsQ0FBQyxRQUFRLEdBQUcsY0FBTyxFQUFFLEVBQUUsUUFBUSxFQUFFLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUM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iAgICAgICAgcmV0dXJuIHJldDtcbiAgICAgIH07XG4gICAgfVxuXG4gICAgcHJvcHMucGFydGlhbHNbb3B0aW9ucy5hcmdzWzBdXSA9IG9wdGlvbnMuZm47XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\nvar errorProps = ['description', 'fileName', 'lineNumber', 'endLineNumber', 'message', 'name', 'number', 'stack'];\n\nfunction Exception(message, node) {\n var loc = node && node.loc,\n line = undefined,\n endLineNumber = undefined,\n column = undefined,\n endColumn = undefined;\n\n if (loc) {\n line = loc.start.line;\n endLineNumber = loc.end.line;\n column = loc.start.column;\n endColumn = loc.end.column;\n\n message += ' - ' + line + ':' + column;\n }\n\n var tmp = Error.prototype.constructor.call(this, message);\n\n // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n for (var idx = 0; idx < errorProps.length; idx++) {\n this[errorProps[idx]] = tmp[errorProps[idx]];\n }\n\n /* istanbul ignore else */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, Exception);\n }\n\n try {\n if (loc) {\n this.lineNumber = line;\n this.endLineNumber = endLineNumber;\n\n // Work around issue under safari where we can't directly set the column value\n /* istanbul ignore next */\n if (Object.defineProperty) {\n Object.defineProperty(this, 'column', {\n value: column,\n enumerable: true\n });\n Object.defineProperty(this, 'endColumn', {\n value: endColumn,\n enumerable: true\n });\n } else {\n this.column = column;\n this.endColumn = endColumn;\n }\n }\n } catch (nop) {\n /* Ignore if the browser is very particular */\n }\n}\n\nException.prototype = new Error();\n\nexports['default'] = Exception;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxJQUFNLFVBQVUsR0FBRyxDQUN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AgICAgIC8vIFdvcmsgYXJvdW5kIGlzc3VlIHVuZGVyIHNhZmFyaSB3aGVyZSB3ZSBjYW4ndCBkaXJlY3RseSBzZXQgdGhlIGNvbHVtbiB2YWx1ZVxuICAgICAgLyogaXN0YW5idWwgaWdub3JlIG5leHQgKi9cbiAgICAgIGlmIChPYmplY3QuZGVmaW5lUHJvcGVydHkpIHtcbiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMsICdjb2x1bW4nLCB7XG4gICAgICAgICAgdmFsdWU6IGNvbHVtbixcbiAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlXG4gICAgICAgIH0pO1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcywgJ2VuZENvbHVtbicsIHtcbiAgICAgICAgICB2YWx1ZTogZW5kQ29sdW1uLFxuICAgICAgICAgIGVudW1lcmFibGU6IHRydWVcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmNvbHVtbiA9IGNvbHVtbjtcbiAgICAgICAgdGhpcy5lbmRDb2x1bW4gPSBlbmRDb2x1bW47XG4gICAgICB9XG4gICAgfVxuICB9IGNhdGNoIChub3ApIHtcbiAgICAvKiBJZ25vcmUgaWYgdGhlIGJyb3dzZXIgaXMgdmVyeSBwYXJ0aWN1bGFyICovXG4gIH1cbn1cblxuRXhjZXB0aW9uLnByb3RvdHlwZSA9IG5ldyBFcnJvcigpO1xuXG5leHBvcnQgZGVmYXVsdCBFeGNlcHRpb247XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultHelpers = registerDefaultHelpers;\nexports.moveHelperToHooks = moveHelperToHooks;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _helpersBlockHelperMissing = require('./helpers/block-helper-missing');\n\nvar _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);\n\nvar _helpersEach = require('./helpers/each');\n\nvar _helpersEach2 = _interopRequireDefault(_helpersEach);\n\nvar _helpersHelperMissing = require('./helpers/helper-missing');\n\nvar _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);\n\nvar _helpersIf = require('./helpers/if');\n\nvar _helpersIf2 = _interopRequireDefault(_helpersIf);\n\nvar _helpersLog = require('./helpers/log');\n\nvar _helpersLog2 = _interopRequireDefault(_helpersLog);\n\nvar _helpersLookup = require('./helpers/lookup');\n\nvar _helpersLookup2 = _interopRequireDefault(_helpersLookup);\n\nvar _helpersWith = require('./helpers/with');\n\nvar _helpersWith2 = _interopRequireDefault(_helpersWith);\n\nfunction registerDefaultHelpers(instance) {\n _helpersBlockHelperMissing2['default'](instance);\n _helpersEach2['default'](instance);\n _helpersHelperMissing2['default'](instance);\n _helpersIf2['default'](instance);\n _helpersLog2['default'](instance);\n _helpersLookup2['default'](instance);\n _helpersWith2['default'](instance);\n}\n\nfunction moveHelperToHooks(instance, helperName, keepHelper) {\n if (instance.helpers[helperName]) {\n instance.hooks[helperName] = instance.helpers[helperName];\n if (!keepHelper) {\n delete instance.helpers[helperName];\n }\n }\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O3lDQUF1QyxnQ0FBZ0M7Ozs7MkJBQzlDLGdCQUFnQjs7OztvQ0FDUCwwQkFBMEI7Ozs7eUJBQ3JDLGNBQWM7Ozs7MEJBQ2IsZUFBZTs7Ozs2QkFDWixrQkFBa0I7Ozs7MkJBQ3BCLGdCQUFnQjs7OztBQUVsQyxTQUFTLHNCQUFzQixDQUFDLFFBQVEsRUFBRTtBQUMvQyx5Q0FBMkIsUUFBUSxDQUFDLENBQUM7QUFDckMsMkJBQWEsUUFBUSxDQUFDLENBQUM7QUFDdkIsb0NB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GVycy93aXRoJztcblxuZXhwb3J0IGZ1bmN0aW9uIHJlZ2lzdGVyRGVmYXVsdEhlbHBlcnMoaW5zdGFuY2UpIHtcbiAgcmVnaXN0ZXJCbG9ja0hlbHBlck1pc3NpbmcoaW5zdGFuY2UpO1xuICByZWdpc3RlckVhY2goaW5zdGFuY2UpO1xuICByZWdpc3RlckhlbHBlck1pc3NpbmcoaW5zdGFuY2UpO1xuICByZWdpc3RlcklmKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJMb2coaW5zdGFuY2UpO1xuICByZWdpc3Rlckxvb2t1cChpbnN0YW5jZSk7XG4gIHJlZ2lzdGVyV2l0aChpbnN0YW5jZSk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBtb3ZlSGVscGVyVG9Ib29rcyhpbnN0YW5jZSwgaGVscGVyTmFtZSwga2VlcEhlbHBlcikge1xuICBpZiAoaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXSkge1xuICAgIGluc3RhbmNlLmhvb2tzW2hlbHBlck5hbWVdID0gaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXTtcbiAgICBpZiAoIWtlZXBIZWxwZXIpIHtcbiAgICAgIGRlbGV0ZSBpbnN0YW5jZS5oZWxwZXJzW2hlbHBlck5hbWVdO1xuICAgIH1cbiAgfVxufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('blockHelperMissing', function (context, options) {\n var inverse = options.inverse,\n fn = options.fn;\n\n if (context === true) {\n return fn(this);\n } else if (context === false || context == null) {\n return inverse(this);\n } else if (_utils.isArray(context)) {\n if (context.length > 0) {\n if (options.ids) {\n options.ids = [options.name];\n }\n\n return instance.helpers.each(context, options);\n } else {\n return inverse(this);\n }\n } else {\n if (options.data && options.ids) {\n var data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name);\n options = { data: data };\n }\n\n return fn(context, options);\n }\n });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ge1xuICAgICAgICBpZiAob3B0aW9ucy5pZHMpIHtcbiAgICAgICAgICBvcHRpb25zLmlkcyA9IFtvcHRpb25zLm5hbWVdO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnMuZWFjaChjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKFxuICAgICAgICAgIG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCxcbiAgICAgICAgICBvcHRpb25zLm5hbWVcbiAgICAgICAgKTtcbiAgICAgICAgb3B0aW9ucyA9IHsgZGF0YTogZGF0YSB9O1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gZm4oY29udGV4dCwgb3B0aW9ucyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('each', function (context, options) {\n if (!options) {\n throw new _exception2['default']('Must pass iterator to #each');\n }\n\n var fn = options.fn,\n inverse = options.inverse,\n i = 0,\n ret = '',\n data = undefined,\n contextPath = undefined;\n\n if (options.data && options.ids) {\n contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + '.';\n }\n\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n if (options.data) {\n data = _utils.createFrame(options.data);\n }\n\n function execIteration(field, index, last) {\n if (data) {\n data.key = field;\n data.index = index;\n data.first = index === 0;\n data.last = !!last;\n\n if (contextPath) {\n data.contextPath = contextPath + field;\n }\n }\n\n ret = ret + fn(context[field], {\n data: data,\n blockParams: _utils.blockParams([context[field], field], [contextPath + field, null])\n });\n }\n\n if (context && typeof context === 'object') {\n if (_utils.isArray(context)) {\n for (var j = context.length; i < j; i++) {\n if (i in context) {\n execIteration(i, i, i === context.length - 1);\n }\n }\n } else if (global.Symbol && context[global.Symbol.iterator]) {\n var newContext = [];\n var iterator = context[global.Symbol.iterator]();\n for (var it = iterator.next(); !it.done; it = iterator.next()) {\n newContext.push(it.value);\n }\n context = newContext;\n for (var j = context.length; i < j; i++) {\n execIteration(i, i, i === context.length - 1);\n }\n } else {\n (function () {\n var priorKey = undefined;\n\n Object.keys(context).forEach(function (key) {\n // We're running the iterations one step out of sync so we can detect\n // the last iteration without have to scan the object twice and create\n // an itermediate keys array.\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1);\n }\n priorKey = key;\n i++;\n });\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1, true);\n }\n })();\n }\n }\n\n if (i === 0) {\n ret = inverse(this);\n }\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvZWFjaC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQU1PLFVBQVU7O3lCQUNLLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLFVBQVMsT0FBTyxFQUFFLE9BQU8sRUFBRTtBQUN6RCxRQUFJLENBQUMsT0FBTyxFQUFFO0FBQ1osWUFBTSwyQkFBYyw2QkFBN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ICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSwgdHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('helperMissing', function () /* [args, ]options */{\n if (arguments.length === 1) {\n // A missing field in a {{foo}} construct.\n return undefined;\n } else {\n // Someone is actually trying to call something, blow up.\n throw new _exception2['default']('Missing helper: \"' + arguments[arguments.length - 1].name + '\"');\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozt5QkFBc0IsY0FBYzs7OztxQkFFckIsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxlQUFlLEVBQUUsaUNBQWdDO0FBQ3ZFLFFBQUksU0FBUyxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUU7O0FBRTFCLGFBQU8sU0FBUyxDQUFDO0tBQ2xCLE1BQU07O0FBRUwsWUFBTSwyQkFDSixtQkFBbUIsR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUNqRSxDQUFDO0tBQ0g7R0FDRixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJoZWxwZXItbWlzc2luZy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBFeGNlcHRpb24gZnJvbSAnLi4vZXhjZXB0aW9uJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ2hlbHBlck1pc3NpbmcnLCBmdW5jdGlvbigvKiBbYXJncywgXW9wdGlvbnMgKi8pIHtcbiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCA9PT0gMSkge1xuICAgICAgLy8gQSBtaXNzaW5nIGZpZWxkIGluIGEge3tmb299fSBjb25zdHJ1Y3QuXG4gICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBTb21lb25lIGlzIGFjdHVhbGx5IHRyeWluZyB0byBjYWxsIHNvbWV0aGluZywgYmxvdyB1cC5cbiAgICAgIHRocm93IG5ldyBFeGNlcHRpb24oXG4gICAgICAgICdNaXNzaW5nIGhlbHBlcjogXCInICsgYXJndW1lbnRzW2FyZ3VtZW50cy5sZW5ndGggLSAxXS5uYW1lICsgJ1wiJ1xuICAgICAgKTtcbiAgICB9XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('if', function (conditional, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#if requires exactly one argument');\n }\n if (_utils.isFunction(conditional)) {\n conditional = conditional.call(this);\n }\n\n // Default behavior is to render the positive path if the value is truthy and not empty.\n // The `includeZero` option may be set to treat the condtional as purely not empty based on the\n // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.\n if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) {\n return options.inverse(this);\n } else {\n return options.fn(this);\n }\n });\n\n instance.registerHelper('unless', function (conditional, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#unless requires exactly one argument');\n }\n return instance.helpers['if'].call(this, conditional, {\n fn: options.inverse,\n inverse: options.fn,\n hash: options.hash\n });\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztxQkFBb0MsVUFBVTs7eUJBQ3hCLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLFVBQVMsV0FBVyxFQUFFLE9BQU8sRUFBRTtBQUMzRCxRQUFJLFNBQVMsQ0FBQyxNQUFNLElBQUksQ0FBQyxFQUFFO0FBQ3pCLFlBQU0sMkJBQWMsbUNBQW1DLENBQUMsQ0FBQztLQUMxRDtBQUNELFFBQUksa0JBQVcsV0FBVyxDQUFDLEVBQUU7QUFDM0IsaUJBQVcsR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQ3RDOzs7OztBQUtELFFBQUksQUFBQyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsV0FBVyxJQUFJLENBQUMsV0FBVyxJQUFLLGVBQVEsV0FBVyxDQUFDLEVBQUU7QUFDdkUsYUFBTyxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQzlCLE1BQU07QUFDTCxhQUFPLE9BQU8sQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDekI7R0FDRixDQUFDLENBQUM7O0FBRU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Module = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('log', function () /* message, options */{\n var args = [undefined],\n options = arguments[arguments.length - 1];\n for (var i = 0; i < arguments.length - 1; i++) {\n args.push(arguments[i]);\n }\n\n var level = 1;\n if (options.hash.level != null) {\n level = options.hash.level;\n } else if (options.data && options.data.level != null) {\n level = options.data.level;\n }\n args[0] = level;\n\n instance.log.apply(instance, args);\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ3BCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUM1QyxTQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7QUFDN0MsVUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztLQUN6Qjs7QUFFRCxRQUFJLEtBQUssR0FBRyxDQUFDLENBQUM7QUFDZCxRQUFJLE9BQU8sQ0FBQyxJQUFJLENBQUMsS0FBSyxJQUFJLElBQUksRUFBRTtBQUM5QixXQUFLLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUM7S0FDNUIsTUFBTSxJQUFJLE9BQU8sQ0FBQyxJQUFJLElBQUksT0FBTyxDQUFDLElB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instance) {\n instance.registerHelper('lookup', function (obj, field, options) {\n if (!obj) {\n // Note for 5.0: Change to \"obj == null\" in 5.0\n return obj;\n }\n return options.lookupProperty(obj, field);\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9va3VwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxHQUFHLEVBQUUsS0FBSyxFQUFFLE9BQU8sRUFBRTtBQUM5RCxRQUFJLENBQUMsR0FBRyxFQUFFOztBQUVSLGFBQU8sR0FBRyxDQUFDO0tBQ1o7QUFDRCxXQUFPLE9BQU8sQ0FBQyxjQUFjLENBQUMsR0FBRyxFQUFFLEtBQUssQ0FBQyxDQUFDO0dBQzNDLENBQUMsQ0FBQztDQUNKIiwiZmlsZSI6Imxvb2t1cC5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uKGluc3RhbmNlKSB7XG4gIGluc3RhbmNlLnJlZ2lzdGVySGVscGVyKCdsb29rdXAnLCBmdW5jdGlvbihvYmosIGZpZWxkLCBvcHRpb25zKSB7XG4gICAgaWYgKCFvYmopIHtcbiAgICAgIC8vIE5vdGUgZm9yIDUuMDogQ2hhbmdlIHRvIFwib2JqID09IG51bGxcIiBpbiA1LjBcbiAgICAgIHJldHVybiBvYmo7XG4gICAgfVxuICAgIHJldHVybiBvcHRpb25zLmxvb2t1cFByb3BlcnR5KG9iaiwgZmllbGQpO1xuICB9KTtcbn1cbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('with', function (context, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#with requires exactly one argument');\n }\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n var fn = options.fn;\n\n if (!_utils.isEmpty(context)) {\n var data = options.data;\n if (options.data && options.ids) {\n data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]);\n }\n\n return fn(context, {\n data: data,\n blockParams: _utils.blockParams([context], [data && data.contextPath])\n });\n } else {\n return options.inverse(this);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQU1PLFVBQVU7O3lCQUNLLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLFVBQVMsT0FBTyxFQUFFLE9BQU8sRUFBRTtBQUN6RCxRQUFJLFNBQVMsQ0FBQyxNQUFNLElBQUksQ0FBQyxFQUFFO0FBQ3pCLFlBQU0sMkJBQWMscUNBQXFDLENBQUMsQ0FBQztLQUM1RDtBQUNELFFBQUksa0JBQVcsT0FBTyxDQUFDLEVBQUU7QUFDdkIsYUFBTyxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDOUI7O0FBRUQsUUFBSSxFQUFFLEdBQUcsT0FBTyxDQUFDLEVBQUUsQ0FBQzs7QUFFcEIsUUFBSSxDQUFDLGVBQVEsT0FBTyxDQUFDLEVBQUU7QUFDckIsVUFB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gIHRocm93IG5ldyBFeGNlcHRpb24oJyN3aXRoIHJlcXVpcmVzIGV4YWN0bHkgb25lIGFyZ3VtZW50Jyk7XG4gICAgfVxuICAgIGlmIChpc0Z1bmN0aW9uKGNvbnRleHQpKSB7XG4gICAgICBjb250ZXh0ID0gY29udGV4dC5jYWxsKHRoaXMpO1xuICAgIH1cblxuICAgIGxldCBmbiA9IG9wdGlvbnMuZm47XG5cbiAgICBpZiAoIWlzRW1wdHkoY29udGV4dCkpIHtcbiAgICAgIGxldCBkYXRhID0gb3B0aW9ucy5kYXRhO1xuICAgICAgaWYgKG9wdGlvbnMuZGF0YSAmJiBvcHRpb25zLmlkcykge1xuICAgICAgICBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKFxuICAgICAgICAgIG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCxcbiAgICAgICAgICBvcHRpb25zLmlkc1swXVxuICAgICAgICApO1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gZm4oY29udGV4dCwge1xuICAgICAgICBkYXRhOiBkYXRhLFxuICAgICAgICBibG9ja1BhcmFtczogYmxvY2tQYXJhbXMoW2NvbnRleHRdLCBbZGF0YSAmJiBkYXRhLmNvbnRleHRQYXRoXSlcbiAgICAgIH0pO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gb3B0aW9ucy5pbnZlcnNlKHRoaXMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\nexports.createNewLookupObject = createNewLookupObject;\n\nvar _utils = require('../utils');\n\n/**\n * Create a new object with \"null\"-prototype to avoid truthy results on prototype properties.\n * The resulting object can be used with \"object[property]\" to check if a property exists\n * @param {...object} sources a varargs parameter of source objects that will be merged\n * @returns {object}\n */\n\nfunction createNewLookupObject() {\n for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) {\n sources[_key] = arguments[_key];\n }\n\n return _utils.extend.apply(undefined, [Object.create(null)].concat(sources));\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL2NyZWF0ZS1uZXctbG9va3VwLW9iamVjdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztxQkFBdUIsVUFBVTs7Ozs7Ozs7O0FBUTFCLFNBQVMscUJBQXFCLEdBQWE7b0NBQVQsT0FBTztBQUFQLFdBQU87OztBQUM5QyxTQUFPLGdDQUFPLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLFNBQUssT0FBTyxFQUFDLENBQUM7Q0FDaEQiLCJmaWxlIjoiY3JlYXRlLW5ldy1sb29rdXAtb2JqZWN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgZXh0ZW5kIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vKipcbiAqIENyZWF0ZSBhIG5ldyBvYmplY3Qgd2l0aCBcIm51bGxcIi1wcm90b3R5cGUgdG8gYXZvaWQgdHJ1dGh5IHJlc3VsdHMgb24gcHJvdG90eXBlIHByb3BlcnRpZXMuXG4gKiBUaGUgcmVzdWx0aW5nIG9iamVjdCBjYW4gYmUgdXNlZCB3aXRoIFwib2JqZWN0W3Byb3BlcnR5XVwiIHRvIGNoZWNrIGlmIGEgcHJvcGVydHkgZXhpc3RzXG4gKiBAcGFyYW0gey4uLm9iamVjdH0gc291cmNlcyBhIHZhcmFyZ3MgcGFyYW1ldGVyIG9mIHNvdXJjZSBvYmplY3RzIHRoYXQgd2lsbCBiZSBtZXJnZWRcbiAqIEByZXR1cm5zIHtvYmplY3R9XG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGVOZXdMb29rdXBPYmplY3QoLi4uc291cmNlcykge1xuICByZXR1cm4gZXh0ZW5kKE9iamVjdC5jcmVhdGUobnVsbCksIC4uLnNvdXJjZXMpO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\nexports.createProtoAccessControl = createProtoAccessControl;\nexports.resultIsAllowed = resultIsAllowed;\nexports.resetLoggedProperties = resetLoggedProperties;\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _createNewLookupObject = require('./create-new-lookup-object');\n\nvar _logger = require('../logger');\n\nvar logger = _interopRequireWildcard(_logger);\n\nvar loggedProperties = Object.create(null);\n\nfunction createProtoAccessControl(runtimeOptions) {\n var defaultMethodWhiteList = Object.create(null);\n defaultMethodWhiteList['constructor'] = false;\n defaultMethodWhiteList['__defineGetter__'] = false;\n defaultMethodWhiteList['__defineSetter__'] = false;\n defaultMethodWhiteList['__lookupGetter__'] = false;\n\n var defaultPropertyWhiteList = Object.create(null);\n // eslint-disable-next-line no-proto\n defaultPropertyWhiteList['__proto__'] = false;\n\n return {\n properties: {\n whitelist: _createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList, runtimeOptions.allowedProtoProperties),\n defaultValue: runtimeOptions.allowProtoPropertiesByDefault\n },\n methods: {\n whitelist: _createNewLookupObject.createNewLookupObject(defaultMethodWhiteList, runtimeOptions.allowedProtoMethods),\n defaultValue: runtimeOptions.allowProtoMethodsByDefault\n }\n };\n}\n\nfunction resultIsAllowed(result, protoAccessControl, propertyName) {\n if (typeof result === 'function') {\n return checkWhiteList(protoAccessControl.methods, propertyName);\n } else {\n return checkWhiteList(protoAccessControl.properties, propertyName);\n }\n}\n\nfunction checkWhiteList(protoAccessControlForType, propertyName) {\n if (protoAccessControlForType.whitelist[propertyName] !== undefined) {\n return protoAccessControlForType.whitelist[propertyName] === true;\n }\n if (protoAccessControlForType.defaultValue !== undefined) {\n return protoAccessControlForType.defaultValue;\n }\n logUnexpecedPropertyAccessOnce(propertyName);\n return false;\n}\n\nfunction logUnexpecedPropertyAccessOnce(propertyName) {\n if (loggedProperties[propertyName] !== true) {\n loggedProperties[propertyName] = true;\n logger.log('error', 'Handlebars: Access has been denied to resolve the property \"' + propertyName + '\" because it is not an \"own property\" of its parent.\\n' + 'You can add a runtime option to disable the check or this warning:\\n' + 'See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details');\n }\n}\n\nfunction resetLoggedProperties() {\n Object.keys(loggedProperties).forEach(function (propertyName) {\n delete loggedProperties[propertyName];\n });\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3Byb3RvLWFjY2Vzcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O3FDQUFzQyw0QkFBNEI7O3NCQUMxQyxXQUFXOztJQUF2QixNQUFNOztBQUVsQixJQUFNLGdCQUFnQixHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUM7O0FBRXRDLFNBQVMsd0JBQXdCLENBQUMsY0FBYyxFQUFFO0FBQ3ZELE1BQUksc0JBQXNCLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUNqRCx3QkFBc0IsQ0FBQyxhQUFhLENBQUMsR0FBRyxLQUFLLENBQUM7QUFDOUMsd0JBQXNCLENBQUMsa0JBQWtCLENBQUMsR0FBRyxLQUFLLENBQUM7QUFDbkQsd0JBQXNCLENBQUMsa0JBQWtCLENBQUMsR0FBRyxLQUFLLENBQUM7QUFDbkQsd0JBQXNCLENBQUMsa0JBQWtCLENBQUMsR0FBRyxLQUFLLENBQUM7O0FBRW5ELE1BQUksd0JBQXdCLEdBQUcsTUFBTSxDQUF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hbWVdID0gdHJ1ZTtcbiAgICBsb2dnZXIubG9nKFxuICAgICAgJ2Vycm9yJyxcbiAgICAgIGBIYW5kbGViYXJzOiBBY2Nlc3MgaGFzIGJlZW4gZGVuaWVkIHRvIHJlc29sdmUgdGhlIHByb3BlcnR5IFwiJHtwcm9wZXJ0eU5hbWV9XCIgYmVjYXVzZSBpdCBpcyBub3QgYW4gXCJvd24gcHJvcGVydHlcIiBvZiBpdHMgcGFyZW50LlxcbmAgK1xuICAgICAgICBgWW91IGNhbiBhZGQgYSBydW50aW1lIG9wdGlvbiB0byBkaXNhYmxlIHRoZSBjaGVjayBvciB0aGlzIHdhcm5pbmc6XFxuYCArXG4gICAgICAgIGBTZWUgaHR0cHM6Ly9oYW5kbGViYXJzanMuY29tL2FwaS1yZWZlcmVuY2UvcnVudGltZS1vcHRpb25zLmh0bWwjb3B0aW9ucy10by1jb250cm9sLXByb3RvdHlwZS1hY2Nlc3MgZm9yIGRldGFpbHNgXG4gICAgKTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gcmVzZXRMb2dnZWRQcm9wZXJ0aWVzKCkge1xuICBPYmplY3Qua2V5cyhsb2dnZWRQcm9wZXJ0aWVzKS5mb3JFYWNoKHByb3BlcnR5TmFtZSA9PiB7XG4gICAgZGVsZXRlIGxvZ2dlZFByb3BlcnRpZXNbcHJvcGVydHlOYW1lXTtcbiAgfSk7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\nexports.wrapHelper = wrapHelper;\n\nfunction wrapHelper(helper, transformOptionsFn) {\n if (typeof helper !== 'function') {\n // This should not happen, but apparently it does in https://github.com/wycats/handlebars.js/issues/1639\n // We try to make the wrapper least-invasive by not wrapping it, if the helper is not a function.\n return helper;\n }\n var wrapper = function wrapper() /* dynamic arguments */{\n var options = arguments[arguments.length - 1];\n arguments[arguments.length - 1] = transformOptionsFn(options);\n return helper.apply(this, arguments);\n };\n return wrapper;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64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IG5vdCB3cmFwcGluZyBpdCwgaWYgdGhlIGhlbHBlciBpcyBub3QgYSBmdW5jdGlvbi5cbiAgICByZXR1cm4gaGVscGVyO1xuICB9XG4gIGxldCB3cmFwcGVyID0gZnVuY3Rpb24oLyogZHluYW1pYyBhcmd1bWVudHMgKi8pIHtcbiAgICBjb25zdCBvcHRpb25zID0gYXJndW1lbnRzW2FyZ3VtZW50cy5sZW5ndGggLSAxXTtcbiAgICBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdID0gdHJhbnNmb3JtT3B0aW9uc0ZuKG9wdGlvbnMpO1xuICAgIHJldHVybiBoZWxwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgfTtcbiAgcmV0dXJuIHdyYXBwZXI7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('./utils');\n\nvar logger = {\n methodMap: ['debug', 'info', 'warn', 'error'],\n level: 'info',\n\n // Maps a given level value to the `methodMap` indexes above.\n lookupLevel: function lookupLevel(level) {\n if (typeof level === 'string') {\n var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase());\n if (levelMap >= 0) {\n level = levelMap;\n } else {\n level = parseInt(level, 10);\n }\n }\n\n return level;\n },\n\n // Can be overridden in the host environment\n log: function log(level) {\n level = logger.lookupLevel(level);\n\n if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) {\n var method = logger.methodMap[level];\n // eslint-disable-next-line no-console\n if (!console[method]) {\n method = 'log';\n }\n\n for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n message[_key - 1] = arguments[_key];\n }\n\n console[method].apply(console, message); // eslint-disable-line no-console\n }\n }\n};\n\nexports['default'] = logger;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qc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mVsKGxvZ2dlci5sZXZlbCkgPD0gbGV2ZWxcbiAgICApIHtcbiAgICAgIGxldCBtZXRob2QgPSBsb2dnZXIubWV0aG9kTWFwW2xldmVsXTtcbiAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby1jb25zb2xlXG4gICAgICBpZiAoIWNvbnNvbGVbbWV0aG9kXSkge1xuICAgICAgICBtZXRob2QgPSAnbG9nJztcbiAgICAgIH1cbiAgICAgIGNvbnNvbGVbbWV0aG9kXSguLi5tZXNzYWdlKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgfVxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBsb2dnZXI7XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (Handlebars) {\n /* istanbul ignore next */\n var root = typeof global !== 'undefined' ? global : window,\n $Handlebars = root.Handlebars;\n /* istanbul ignore next */\n Handlebars.noConflict = function () {\n if (root.Handlebars === Handlebars) {\n root.Handlebars = $Handlebars;\n }\n return Handlebars;\n };\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL25vLWNvbmZsaWN0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxVQUFVLEVBQUU7O0FBRWxDLE1BQUksSUFBSSxHQUFHLE9BQU8sTUFBTSxLQUFLLFdBQVcsR0FBRyxNQUFNLEdBQUcsTUFBTTtNQUN4RCxXQUFXLEdBQUcsSUFBSSxDQUFDLFVBQVUsQ0FBQzs7QUFFaEMsWUFBVSxDQUFDLFVBQVUsR0FBRyxZQUFXO0FBQ2pDLFFBQUksSUFBSSxDQUFDLFVBQVUsS0FBSyxVQUFVLEVBQUU7QUFDbEMsVUFBSSxDQUFDLFVBQVUsR0FBRyxXQUFXLENBQUM7S0FDL0I7QUFDRCxXQUFPLFVBQVUsQ0FBQztHQUNuQixDQUFDO0NBQ0giLCJmaWxlIjoibm8tY29uZmxpY3QuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbihIYW5kbGViYXJzKSB7XG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gIGxldCByb290ID0gdHlwZW9mIGdsb2JhbCAhPT0gJ3VuZGVmaW5lZCcgPyBnbG9iYWwgOiB3aW5kb3csXG4gICAgJEhhbmRsZWJhcnMgPSByb290LkhhbmRsZWJhcnM7XG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gIEhhbmRsZWJhcnMubm9Db25mbGljdCA9IGZ1bmN0aW9uKCkge1xuICAgIGlmIChyb290LkhhbmRsZWJhcnMgPT09IEhhbmRsZWJhcnMpIHtcbiAgICAgIHJvb3QuSGFuZGxlYmFycyA9ICRIYW5kbGViYXJzO1xuICAgIH1cbiAgICByZXR1cm4gSGFuZGxlYmFycztcbiAgfTtcbn1cbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\nexports.checkRevision = checkRevision;\nexports.template = template;\nexports.wrapProgram = wrapProgram;\nexports.resolvePartial = resolvePartial;\nexports.invokePartial = invokePartial;\nexports.noop = noop;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _utils = require('./utils');\n\nvar Utils = _interopRequireWildcard(_utils);\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _base = require('./base');\n\nvar _helpers = require('./helpers');\n\nvar _internalWrapHelper = require('./internal/wrapHelper');\n\nvar _internalProtoAccess = require('./internal/proto-access');\n\nfunction checkRevision(compilerInfo) {\n var compilerRevision = compilerInfo && compilerInfo[0] || 1,\n currentRevision = _base.COMPILER_REVISION;\n\n if (compilerRevision >= _base.LAST_COMPATIBLE_COMPILER_REVISION && compilerRevision <= _base.COMPILER_REVISION) {\n return;\n }\n\n if (compilerRevision < _base.LAST_COMPATIBLE_COMPILER_REVISION) {\n var runtimeVersions = _base.REVISION_CHANGES[currentRevision],\n compilerVersions = _base.REVISION_CHANGES[compilerRevision];\n throw new _exception2['default']('Template was precompiled with an older version of Handlebars than the current runtime. ' + 'Please update your precompiler to a newer version (' + runtimeVersions + ') or downgrade your runtime to an older version (' + compilerVersions + ').');\n } else {\n // Use the embedded version info since the runtime doesn't know about this revision yet\n throw new _exception2['default']('Template was precompiled with a newer version of Handlebars than the current runtime. ' + 'Please update your runtime to a newer version (' + compilerInfo[1] + ').');\n }\n}\n\nfunction template(templateSpec, env) {\n /* istanbul ignore next */\n if (!env) {\n throw new _exception2['default']('No environment passed to template');\n }\n if (!templateSpec || !templateSpec.main) {\n throw new _exception2['default']('Unknown template object: ' + typeof templateSpec);\n }\n\n templateSpec.main.decorator = templateSpec.main_d;\n\n // Note: Using env.VM references rather than local var references throughout this section to allow\n // for external users to override these as pseudo-supported APIs.\n env.VM.checkRevision(templateSpec.compiler);\n\n // backwards compatibility for precompiled templates with compiler-version 7 (<4.3.0)\n var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;\n\n function invokePartialWrapper(partial, context, options) {\n if (options.hash) {\n context = Utils.extend({}, context, options.hash);\n if (options.ids) {\n options.ids[0] = true;\n }\n }\n partial = env.VM.resolvePartial.call(this, partial, context, options);\n\n var extendedOptions = Utils.extend({}, options, {\n hooks: this.hooks,\n protoAccessControl: this.protoAccessControl\n });\n\n var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);\n\n if (result == null && env.compile) {\n options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);\n result = options.partials[options.name](context, extendedOptions);\n }\n if (result != null) {\n if (options.indent) {\n var lines = result.split('\\n');\n for (var i = 0, l = lines.length; i < l; i++) {\n if (!lines[i] && i + 1 === l) {\n break;\n }\n\n lines[i] = options.indent + lines[i];\n }\n result = lines.join('\\n');\n }\n return result;\n } else {\n throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode');\n }\n }\n\n // Just add water\n var container = {\n strict: function strict(obj, name, loc) {\n if (!obj || !(name in obj)) {\n throw new _exception2['default']('\"' + name + '\" not defined in ' + obj, {\n loc: loc\n });\n }\n return obj[name];\n },\n lookupProperty: function lookupProperty(parent, propertyName) {\n var result = parent[propertyName];\n if (result == null) {\n return result;\n }\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return result;\n }\n\n if (_internalProtoAccess.resultIsAllowed(result, container.protoAccessControl, propertyName)) {\n return result;\n }\n return undefined;\n },\n lookup: function lookup(depths, name) {\n var len = depths.length;\n for (var i = 0; i < len; i++) {\n var result = depths[i] && container.lookupProperty(depths[i], name);\n if (result != null) {\n return depths[i][name];\n }\n }\n },\n lambda: function lambda(current, context) {\n return typeof current === 'function' ? current.call(context) : current;\n },\n\n escapeExpression: Utils.escapeExpression,\n invokePartial: invokePartialWrapper,\n\n fn: function fn(i) {\n var ret = templateSpec[i];\n ret.decorator = templateSpec[i + '_d'];\n return ret;\n },\n\n programs: [],\n program: function program(i, data, declaredBlockParams, blockParams, depths) {\n var programWrapper = this.programs[i],\n fn = this.fn(i);\n if (data || depths || blockParams || declaredBlockParams) {\n programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);\n } else if (!programWrapper) {\n programWrapper = this.programs[i] = wrapProgram(this, i, fn);\n }\n return programWrapper;\n },\n\n data: function data(value, depth) {\n while (value && depth--) {\n value = value._parent;\n }\n return value;\n },\n mergeIfNeeded: function mergeIfNeeded(param, common) {\n var obj = param || common;\n\n if (param && common && param !== common) {\n obj = Utils.extend({}, common, param);\n }\n\n return obj;\n },\n // An empty object to use as replacement for null-contexts\n nullContext: Object.seal({}),\n\n noop: env.VM.noop,\n compilerInfo: templateSpec.compiler\n };\n\n function ret(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var data = options.data;\n\n ret._setup(options);\n if (!options.partial && templateSpec.useData) {\n data = initData(context, data);\n }\n var depths = undefined,\n blockParams = templateSpec.useBlockParams ? [] : undefined;\n if (templateSpec.useDepths) {\n if (options.depths) {\n depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;\n } else {\n depths = [context];\n }\n }\n\n function main(context /*, options*/) {\n return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);\n }\n\n main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);\n return main(context, options);\n }\n\n ret.isTop = true;\n\n ret._setup = function (options) {\n if (!options.partial) {\n var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);\n wrapHelpersToPassLookupProperty(mergedHelpers, container);\n container.helpers = mergedHelpers;\n\n if (templateSpec.usePartial) {\n // Use mergeIfNeeded here to prevent compiling global partials multiple times\n container.partials = container.mergeIfNeeded(options.partials, env.partials);\n }\n if (templateSpec.usePartial || templateSpec.useDecorators) {\n container.decorators = Utils.extend({}, env.decorators, options.decorators);\n }\n\n container.hooks = {};\n container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);\n\n var keepHelperInHelpers = options.allowCallsToHelperMissing || templateWasPrecompiledWithCompilerV7;\n _helpers.moveHelperToHooks(container, 'helperMissing', keepHelperInHelpers);\n _helpers.moveHelperToHooks(container, 'blockHelperMissing', keepHelperInHelpers);\n } else {\n container.protoAccessControl = options.protoAccessControl; // internal option\n container.helpers = options.helpers;\n container.partials = options.partials;\n container.decorators = options.decorators;\n container.hooks = options.hooks;\n }\n };\n\n ret._child = function (i, data, blockParams, depths) {\n if (templateSpec.useBlockParams && !blockParams) {\n throw new _exception2['default']('must pass block params');\n }\n if (templateSpec.useDepths && !depths) {\n throw new _exception2['default']('must pass parent depths');\n }\n\n return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);\n };\n return ret;\n}\n\nfunction wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {\n function prog(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var currentDepths = depths;\n if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {\n currentDepths = [context].concat(depths);\n }\n\n return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);\n }\n\n prog = executeDecorators(fn, prog, container, depths, data, blockParams);\n\n prog.program = i;\n prog.depth = depths ? depths.length : 0;\n prog.blockParams = declaredBlockParams || 0;\n return prog;\n}\n\n/**\n * This is currently part of the official API, therefore implementation details should not be changed.\n */\n\nfunction resolvePartial(partial, context, options) {\n if (!partial) {\n if (options.name === '@partial-block') {\n partial = options.data['partial-block'];\n } else {\n partial = options.partials[options.name];\n }\n } else if (!partial.call && !options.name) {\n // This is a dynamic partial that returned a string\n options.name = partial;\n partial = options.partials[partial];\n }\n return partial;\n}\n\nfunction invokePartial(partial, context, options) {\n // Use the current closure context to save the partial-block if this partial\n var currentPartialBlock = options.data && options.data['partial-block'];\n options.partial = true;\n if (options.ids) {\n options.data.contextPath = options.ids[0] || options.data.contextPath;\n }\n\n var partialBlock = undefined;\n if (options.fn && options.fn !== noop) {\n (function () {\n options.data = _base.createFrame(options.data);\n // Wrapper function to get access to currentPartialBlock from the closure\n var fn = options.fn;\n partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n // Restore the partial-block from the closure for the execution of the block\n // i.e. the part inside the block of the partial call.\n options.data = _base.createFrame(options.data);\n options.data['partial-block'] = currentPartialBlock;\n return fn(context, options);\n };\n if (fn.partials) {\n options.partials = Utils.extend({}, options.partials, fn.partials);\n }\n })();\n }\n\n if (partial === undefined && partialBlock) {\n partial = partialBlock;\n }\n\n if (partial === undefined) {\n throw new _exception2['default']('The partial ' + options.name + ' could not be found');\n } else if (partial instanceof Function) {\n return partial(context, options);\n }\n}\n\nfunction noop() {\n return '';\n}\n\nfunction initData(context, data) {\n if (!data || !('root' in data)) {\n data = data ? _base.createFrame(data) : {};\n data.root = context;\n }\n return data;\n}\n\nfunction executeDecorators(fn, prog, container, depths, data, blockParams) {\n if (fn.decorator) {\n var props = {};\n prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);\n Utils.extend(prog, props);\n }\n return prog;\n}\n\nfunction wrapHelpersToPassLookupProperty(mergedHelpers, container) {\n Object.keys(mergedHelpers).forEach(function (helperName) {\n var helper = mergedHelpers[helperName];\n mergedHelpers[helperName] = passLookupPropertyOption(helper, container);\n });\n}\n\nfunction passLookupPropertyOption(helper, container) {\n var lookupProperty = container.lookupProperty;\n return _internalWrapHelper.wrapHelper(helper, function (options) {\n return Utils.extend({ lookupProperty: lookupProperty }, options);\n });\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3lCQUNLLGFBQWE7Ozs7b0JBTTVCLFFBQVE7O3VCQUNtQixXQUFXOztrQ0FDbEIsdUJBQXVCOzttQ0FJM0MseUJBQXlCOztBQUV6QixTQUFTLGFBQWEsQ0FBQyxZQUFZLEVBQUU7QUFDMUMsTUFBTSxnQkFBZ0IsR0FBRyxBQUFDLFlBQVksSUFBSSxZQUFZLENBQUMsQ0FBQyxDQUFDLElBQUssQ0FBQztNQUM3RCxlQUFlLDBCQUFvQixDQUFDOztBQUV0QyxNQUNFLGdCQUFnQiwyQ0FBcUMsSUFDckQsZ0JBQWdCLDJC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0aW9ucyA9IHt9KSB7XG4gICAgbGV0IGRhdGEgPSBvcHRpb25zLmRhdGE7XG5cbiAgICByZXQuX3NldHVwKG9wdGlvbnMpO1xuICAgIGlmICghb3B0aW9ucy5wYXJ0aWFsICYmIHRlbXBsYXRlU3BlYy51c2VEYXRhKSB7XG4gICAgICBkYXRhID0gaW5pdERhdGEoY29udGV4dCwgZGF0YSk7XG4gICAgfVxuICAgIGxldCBkZXB0aHMsXG4gICAgICBibG9ja1BhcmFtcyA9IHRlbXBsYXRlU3BlYy51c2VCbG9ja1BhcmFtcyA/IFtdIDogdW5kZWZpbmVkO1xuICAgIGlmICh0ZW1wbGF0ZVNwZWMudXNlRGVwdGhzKSB7XG4gICAgICBpZiAob3B0aW9ucy5kZXB0aHMpIHtcbiAgICAgICAgZGVwdGhzID1cbiAgICAgICAgICBjb250ZXh0ICE9IG9wdGlvbnMuZGVwdGhzWzBdXG4gICAgICAgICAgICA/IFtjb250ZXh0XS5jb25jYXQob3B0aW9ucy5kZXB0aHMpXG4gICAgICAgICAgICA6IG9wdGlvbnMuZGVwdGhzO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgZGVwdGhzID0gW2NvbnRleHRdO1xuICAgICAgfVxuICAgIH1cblxuICAgIGZ1bmN0aW9uIG1haW4oY29udGV4dCAvKiwgb3B0aW9ucyovKSB7XG4gICAgICByZXR1cm4gKFxuICAgICAgICAnJyArXG4gICAgICAgIHRlbXBsYXRlU3BlYy5tYWluKFxuICAgICAgICAgIGNvbnRhaW5lcixcbiAgICAgICAgICBjb250ZXh0LFxuICAgICAgICAgIGNvbnRhaW5lci5oZWxwZXJzLFxuICAgICAgICAgIGNvbnRhaW5lci5wYXJ0aWFscyxcbiAgICAgICAgICBkYXRhLFxuICAgICAgICAgIGJsb2NrUGFyYW1zLFxuICAgICAgICAgIGRlcHRoc1xuICAgICAgICApXG4gICAgICApO1xuICAgIH1cblxuICAgIG1haW4gPSBleGVjdXRlRGVjb3JhdG9ycyhcbiAgIC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G4gICAgcmV0dXJuIFV0aWxzLmV4dGVuZCh7IGxvb2t1cFByb3BlcnR5IH0sIG9wdGlvbnMpO1xuICB9KTtcbn1cbiJdfQ==\n","// Build out our basic SafeString type\n'use strict';\n\nexports.__esModule = true;\nfunction SafeString(string) {\n this.string = string;\n}\n\nSafeString.prototype.toString = SafeString.prototype.toHTML = function () {\n return '' + this.string;\n};\n\nexports['default'] = SafeString;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3NhZmUtc3RyaW5nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUU7QUFDMUIsTUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7Q0FDdEI7O0FBRUQsVUFBVSxDQUFDLFNBQVMsQ0FBQyxRQUFRLEdBQUcsVUFBVSxDQUFDLFNBQVMsQ0FBQyxNQUFNLEdBQUcsWUFBVztBQUN2RSxTQUFPLEVBQUUsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDO0NBQ3pCLENBQUM7O3FCQUVhLFVBQVUiLCJmaWxlIjoic2FmZS1zdHJpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBCdWlsZCBvdXQgb3VyIGJhc2ljIFNhZmVTdHJpbmcgdHlwZVxuZnVuY3Rpb24gU2FmZVN0cmluZyhzdHJpbmcpIHtcbiAgdGhpcy5zdHJpbmcgPSBzdHJpbmc7XG59XG5cblNhZmVTdHJpbmcucHJvdG90eXBlLnRvU3RyaW5nID0gU2FmZVN0cmluZy5wcm90b3R5cGUudG9IVE1MID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiAnJyArIHRoaXMuc3RyaW5nO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2FmZVN0cmluZztcbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\nexports.extend = extend;\nexports.indexOf = indexOf;\nexports.escapeExpression = escapeExpression;\nexports.isEmpty = isEmpty;\nexports.createFrame = createFrame;\nexports.blockParams = blockParams;\nexports.appendContextPath = appendContextPath;\nvar escape = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`',\n '=': '='\n};\n\nvar badChars = /[&<>\"'`=]/g,\n possible = /[&<>\"'`=]/;\n\nfunction escapeChar(chr) {\n return escape[chr];\n}\n\nfunction extend(obj /* , ...source */) {\n for (var i = 1; i < arguments.length; i++) {\n for (var key in arguments[i]) {\n if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {\n obj[key] = arguments[i][key];\n }\n }\n }\n\n return obj;\n}\n\nvar toString = Object.prototype.toString;\n\nexports.toString = toString;\n// Sourced from lodash\n// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt\n/* eslint-disable func-style */\nvar isFunction = function isFunction(value) {\n return typeof value === 'function';\n};\n// fallback for older versions of Chrome and Safari\n/* istanbul ignore next */\nif (isFunction(/x/)) {\n exports.isFunction = isFunction = function (value) {\n return typeof value === 'function' && toString.call(value) === '[object Function]';\n };\n}\nexports.isFunction = isFunction;\n\n/* eslint-enable func-style */\n\n/* istanbul ignore next */\nvar isArray = Array.isArray || function (value) {\n return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false;\n};\n\nexports.isArray = isArray;\n// Older IE versions do not directly support indexOf so we must implement our own, sadly.\n\nfunction indexOf(array, value) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (array[i] === value) {\n return i;\n }\n }\n return -1;\n}\n\nfunction escapeExpression(string) {\n if (typeof string !== 'string') {\n // don't escape SafeStrings, since they're already safe\n if (string && string.toHTML) {\n return string.toHTML();\n } else if (string == null) {\n return '';\n } else if (!string) {\n return string + '';\n }\n\n // Force a string conversion as this will be done by the append regardless and\n // the regex test will do this transparently behind the scenes, causing issues if\n // an object's to string has escaped characters in it.\n string = '' + string;\n }\n\n if (!possible.test(string)) {\n return string;\n }\n return string.replace(badChars, escapeChar);\n}\n\nfunction isEmpty(value) {\n if (!value && value !== 0) {\n return true;\n } else if (isArray(value) && value.length === 0) {\n return true;\n } else {\n return false;\n }\n}\n\nfunction createFrame(object) {\n var frame = extend({}, object);\n frame._parent = object;\n return frame;\n}\n\nfunction blockParams(params, ids) {\n params.path = ids;\n return params;\n}\n\nfunction appendContextPath(contextPath, id) {\n return (contextPath ? contextPath + '.' : '') + id;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFNLE1BQU0sR0FBRztBQUNiLEtBQUcsRUFBRSxPQUFPO0FBQ1osS0FBRyxFQUFFLE1BQU07QUFDWCxLQUFHLEVBQUUsTUFBTTtBQUNYLEtBQUcsRUFBRSxRQUFRO0FBQ2IsS0FBRyxFQUFFLFFBQVE7QUFDYixLQUFHLEVBQUUsUUFBUTtBQUNiLEtBQUcsRUFBRSxRQUFRO0NBQ2QsQ0FBQzs7QUFFRixJQUFNLFFBQVEsR0FBRyxZQUFZO0lBQzNCLFFBQVEsR0FBRyxXQUFXLENBQUM7O0FBRXpCLFNBQVMsVUFBVSxDQUFDLEdBQUcsRUFBRTtBQUN2QixTQUFPLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztDQUNwQjs7QUFFTSxTQUFTLE1BQU0sQ0FBQyxHQUFHLG9CQUFvQjtBQUM1QyxPQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sRUFBRSxDQUFDLEVBQUUsRUFBRTtBQUN6QyxTQUFLLElBQUksR0FBRyxJQUFJLFNBQVMsQ0FBQyxDQUFDLENBQUMsRUFBR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5cbmV4cG9ydCBmdW5jdGlvbiBhcHBlbmRDb250ZXh0UGF0aChjb250ZXh0UGF0aCwgaWQpIHtcbiAgcmV0dXJuIChjb250ZXh0UGF0aCA/IGNvbnRleHRQYXRoICsgJy4nIDogJycpICsgaWQ7XG59XG4iXX0=\n","// Create a simple path alias to allow browserify to resolve\n// the runtime on a supported path.\nmodule.exports = require('./dist/cjs/handlebars.runtime')['default'];\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","// extracted by mini-css-extract-plugin","/**\n * @fileoverview The entry file of fullcalendar\n * @author NHN FE Development Lab\n */\n\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Calendar = require('./js/factory/calendar');\n\nrequire('./css/main.styl');\nrequire('./js/view/template/helper');\n\n// for jquery\nif (global.jQuery) {\n global.jQuery.fn.tuiCalendar = function() {\n var options, instance;\n\n var el = this.get(0);\n var args = Array.prototype.slice.apply(arguments);\n\n if (el) {\n options = util.pick(args, 0) || {};\n\n instance = global.jQuery.data(el, 'tuiCalendar');\n\n if (instance) {\n if (typeof options === 'string' && instance[options]) {\n return instance[options].apply(instance, args.slice(1));\n }\n } else {\n instance = new Calendar(el, options);\n global.jQuery.data(el, 'tuiCalendar', instance);\n }\n }\n\n return this;\n };\n}\n\nmodule.exports = Calendar;\n","/**\n * @fileoverview Utility module for array sort, binary search.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar datetime = require('../common/datetime');\n\n/**\n * A module for sorting array.\n * @module array\n */\n\n/**********\n * Search\n **********/\n\n/**\n * search item index using binary search algorithm.\n *\n * the array must be sorted.\n * @param {array} arr array to search.\n * @param {(string|number|boolean)} search value to search.\n * @param {function} [fn] iteratee for retrieve each element's value to search.\n * @param {function} [compare] compare function for specific sort status. default is string ascending.\n * @returns {number} The number of item index searched. return negative number when no exist that item.\n * It can use insert index after Math.abs()\n * @example\n *\n * var arr = [1, 3, 7, 11, 15, 23];\n *\n * function sortNumber(a, b) {\n * return a - b;\n * }\n *\n * bsearch(arr, 15, null, sortNumber); // 4\n * bsearch(arr, 21, null, sortNumber); // -5\n *\n * arr.splice(Math.abs(bsearch(arr, 21, null, sortNumber)), 0, 21);\n * // [1, 2, 7, 11, 15, 21, 23]\n */\nfunction bsearch(arr, search, fn, compare) {\n var minIndex = 0,\n maxIndex = arr.length - 1,\n currentIndex,\n value,\n comp;\n\n compare = compare || stringASC;\n\n while (minIndex <= maxIndex) {\n currentIndex = (minIndex + maxIndex) / 2 | 0; // Math.floor\n value = fn ? fn(arr[currentIndex]) : arr[currentIndex];\n comp = compare(value, search);\n\n if (comp < 0) {\n minIndex = currentIndex + 1;\n } else if (comp > 0) {\n maxIndex = currentIndex - 1;\n } else {\n return currentIndex;\n }\n }\n\n return ~maxIndex;\n}\n\n/**********\n * Compare Functions\n **********/\n\n/**\n * compare function for array sort.\n *\n * sort array by ascending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanASC(a, b) {\n if (a !== b) {\n return a ? -1 : 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by descending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanDESC(a, b) {\n if (a !== b) {\n return a ? 1 : -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number ascending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberASC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return a - b;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number descending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberDESC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return b - a;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * Compare schedule models for sort.\n *\n * 1. all day schedule first.\n * 2. early start.\n * 3. longest duration.\n * 4. early created.\n * @param {Schedule|ScheduleViewModel} a The object schedule instance.\n * @param {Schedule|ScheduleViewModel} b The object schedule instance.\n * @returns {number} Result of comparison.\n */\nfunction scheduleASC(a, b) {\n var durationA, durationB;\n var allDayCompare, startsCompare;\n var modelA = a.valueOf();\n var modelB = b.valueOf();\n\n allDayCompare = booleanASC(modelA.isAllDay || a.hasMultiDates, modelB.isAllDay || b.hasMultiDates);\n\n if (allDayCompare) {\n return allDayCompare;\n }\n\n startsCompare = datetime.compare(a.getStarts(), b.getStarts());\n\n if (startsCompare) {\n return startsCompare;\n }\n\n durationA = a.duration();\n durationB = b.duration();\n\n if (durationA < durationB) {\n return 1;\n }\n if (durationA > durationB) {\n return -1;\n }\n\n return util.stamp(modelA) - util.stamp(modelB);\n}\n\nmodule.exports = {\n bsearch: bsearch,\n compare: {\n schedule: {\n asc: scheduleASC\n },\n bool: {\n asc: booleanASC,\n desc: booleanDESC\n },\n num: {\n asc: numberASC,\n desc: numberDESC\n },\n str: {\n asc: stringASC,\n desc: stringDESC,\n ascIgnoreCase: stringASCIgnoreCase,\n descIgnoreCase: stringDESCIgnoreCase\n }\n }\n};\n","/**\n * @fileoverview Add autoscroll feature to elements that prevented text selection.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domevent = require('../common/domevent');\nvar domutil = require('../common/domutil');\nvar Point = require('../common/point');\n\nvar SCROLL_INTERVAL = 30;\nvar SCROLL_MAX = 15;\nvar SCROLL_CLICK_INCREASED = 2; // In IE, the offset of the actual UI pixel when the scroll bar is clicked is offset.\n\n/**\n * Add autoscroll feature to elements that prevented text selection.\n * @constructor\n * @param {HTMLElement} container - HTMLElement to add autoscroll features.\n */\nfunction AutoScroll(container) {\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * @type {AutoScroll.DIRECTION}\n */\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n /**\n * @type {number}\n */\n this._offset = 0;\n\n /**\n * interval to scrolling\n * @type {number}\n */\n this._intervalID = 0;\n\n domevent.on(container, {\n 'mousedown': this._onMouseDown\n }, this);\n}\n\n/**\n * @enum\n */\nAutoScroll.DIRECTION = {\n INSIDE: 0,\n TOP: 1,\n RIGHT: 2,\n BOTTOM: 3,\n LEFT: 4\n};\n\n/**\n * Instance destroy method.\n */\nAutoScroll.prototype.destroy = function() {\n domevent.off(this.container, {\n 'mousedown': this._onMouseDown,\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n\n window.clearInterval(this._intervalID);\n this._intervalID = this._direction = this.container = null;\n};\n\n/**\n * Normalize ClientRect and calculate each position of edges.\n * @param {ClientRect} clientRect - ClientRect object of element.\n * @returns {object} edges.\n */\nAutoScroll.prototype._getEdgePositions = function(clientRect) {\n return {\n top: clientRect.top,\n right: clientRect.left + clientRect.width,\n bottom: clientRect.bottom,\n left: clientRect.left\n };\n};\n\n/**\n * Get element real size (\"real size\" -> size without scrollbar)\n * @param {HTMLElement} el - element want to know real size (\"real size\" -> size without scrollbar)\n * @returns {number[]} real size [width, height]\n */\nAutoScroll.prototype.getRealSize = function(el) {\n var computed = domutil.getComputedStyle(el),\n border,\n padding;\n\n border = parseFloat(computed.getPropertyValue('border-top-width')) +\n parseFloat(computed.getPropertyValue('border-bottom-width'));\n padding = parseFloat(computed.getPropertyValue('padding-top')) +\n parseFloat(computed.getPropertyValue('padding-bottom'));\n\n return [el.clientWidth + border + padding, el.clientHeight + border + padding];\n};\n\n/**\n * Check supplied element has scrollbar.\n * @param {HTMLElement} el - element want to know has scrollbar.\n * @returns {boolean[]} has scrollbar? [horizontal, vertical]\n */\nAutoScroll.prototype.hasScrollbar = function(el) {\n var realSize = this.getRealSize(el);\n\n return [\n el.offsetWidth > Math.ceil(realSize[0]),\n el.offsetHeight > Math.ceil(realSize[1])\n ];\n};\n\n/**\n * @param {HTMLElement} el - element want to know.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {boolean} mouse pointer is on the scrollbar?\n */\nAutoScroll.prototype.isOnScrollbar = function(el, mouseEvent) {\n var realSize = this.getRealSize(el),\n pos = domevent.getMousePosition(mouseEvent, el),\n mouseInScrollbar = false;\n\n mouseInScrollbar = (realSize[0] - SCROLL_CLICK_INCREASED < pos[0] ||\n realSize[1] - SCROLL_CLICK_INCREASED < pos[1]);\n\n return mouseInScrollbar;\n};\n\n/**\n * MouseDown event handler\n * @param {MouseEvent} mouseDownEvent - mouse down event\n */\nAutoScroll.prototype._onMouseDown = function(mouseDownEvent) {\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n // deactivate autoscroll feature when mouse is on the scrollbar. (IE)\n if (util.browser.msie && this.isOnScrollbar(this.container, mouseDownEvent)) {\n return;\n }\n\n window.clearInterval(this._intervalID);\n this._intervalID = window.setInterval(util.bind(this._onTick, this), SCROLL_INTERVAL);\n\n domevent.on(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * MouseMove event handler\n * @param {MouseEvent} mouseEvent - mouse move event object.\n */\nAutoScroll.prototype._onMouseMove = function(mouseEvent) {\n var edge = this._getEdgePositions(this.container.getBoundingClientRect()),\n pos = Point.n(domevent.getMousePosition(mouseEvent));\n\n if (pos.y >= edge.top && pos.y <= edge.bottom &&\n pos.x >= edge.left && pos.x <= edge.right) {\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n return;\n }\n\n if (pos.y < edge.top) {\n this._direction = AutoScroll.DIRECTION.TOP;\n this._offset = edge.top - pos.y;\n\n return;\n }\n\n if (pos.y > edge.bottom) {\n this._direction = AutoScroll.DIRECTION.BOTTOM;\n this._offset = pos.y - edge.bottom;\n\n return;\n }\n\n if (pos.x < edge.left) {\n this._direction = AutoScroll.DIRECTION.LEFT;\n this._offset = edge.left - pos.x;\n\n return;\n }\n\n this._direction = AutoScroll.DIRECTION.RIGHT;\n this._offset = pos.x - edge.right;\n};\n\n/**\n * MouseUp event handler.\n */\nAutoScroll.prototype._onMouseUp = function() {\n window.clearInterval(this._intervalID);\n this._intervalID = 0;\n this._direction = AutoScroll.DIRECTION.INSIDE;\n this._offset = 0;\n\n domevent.off(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * Interval tick event handler\n */\nAutoScroll.prototype._onTick = function() {\n var direction = this._direction,\n container,\n factor;\n\n if (!direction) {\n return;\n }\n\n container = this.container;\n factor = Math.min(this._offset, SCROLL_MAX);\n\n switch (direction) {\n case AutoScroll.DIRECTION.TOP:\n container.scrollTop -= factor;\n break;\n case AutoScroll.DIRECTION.RIGHT:\n container.scrollLeft += factor;\n break;\n case AutoScroll.DIRECTION.BOTTOM:\n container.scrollTop += factor;\n break;\n default:\n container.scrollLeft -= factor;\n break;\n }\n};\n\nmodule.exports = AutoScroll;\n","/**\n * @fileoverview Common collections.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachProp = util.forEachOwnProperties,\n forEachArr = util.forEachArray,\n isFunc = util.isFunction,\n isObj = util.isObject;\n\nvar aps = Array.prototype.slice;\n\n/**\n * Common collection.\n *\n * It need function for get model's unique id.\n *\n * if the function is not supplied then it use default function {@link Collection#getItemID}\n * @constructor\n * @param {function} [getItemIDFn] function for get model's id.\n */\nfunction Collection(getItemIDFn) {\n /**\n * @type {object.}\n */\n this.items = {};\n\n /**\n * @type {number}\n */\n this.length = 0;\n\n if (isFunc(getItemIDFn)) {\n /**\n * @type {function}\n */\n this.getItemID = getItemIDFn;\n }\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Combind supplied function filters and condition.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.and = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 0;\n\n for (; i < cnt; i += 1) {\n if (!filters[i].call(null, item)) {\n return false;\n }\n }\n\n return true;\n };\n};\n\n/**\n * Combine multiple function filters with OR clause.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.or = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 1,\n result = filters[0].call(null, item);\n\n for (; i < cnt; i += 1) {\n result = (result || filters[i].call(null, item));\n }\n\n return result;\n };\n};\n\n/**\n * Merge several collections.\n *\n * You can\\'t merge collections different _getScheduleID functions. Take case of use.\n * @param {...Collection} collections collection arguments to merge\n * @returns {Collection} merged collection.\n */\nCollection.merge = function(collections) { // eslint-disable-line\n var cols = aps.call(arguments),\n newItems = {},\n merged = new Collection(cols[0].getItemID),\n extend = util.extend;\n\n forEachArr(cols, function(col) {\n extend(newItems, col.items);\n });\n\n merged.items = newItems;\n merged.length = util.keys(merged.items).length;\n\n return merged;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * get model's unique id.\n * @param {object} item model instance.\n * @returns {number} model unique id.\n */\nCollection.prototype.getItemID = function(item) {\n return String(item._id);\n};\n\n/**\n * add models.\n * @param {...*} item models to add this collection.\n */\nCollection.prototype.add = function(item) {\n var self = this,\n id,\n ownItems;\n\n if (arguments.length > 1) {\n forEachArr(aps.call(arguments), function(o) {\n self.add(o);\n });\n\n return;\n }\n\n id = this.getItemID(item);\n ownItems = this.items;\n\n if (!ownItems[id]) {\n this.length += 1;\n }\n ownItems[id] = item;\n};\n\n/**\n * remove models.\n * @param {...(object|string|number)} id model instance or unique id to delete.\n * @returns {array} deleted model list.\n */\nCollection.prototype.remove = function(id) {\n var self = this,\n removed = [],\n ownItems,\n itemToRemove;\n\n if (!this.length) {\n return removed;\n }\n\n if (arguments.length > 1) {\n removed = util.map(aps.call(arguments), function(_id) {\n return self.remove(_id);\n });\n\n return removed;\n }\n\n ownItems = this.items;\n\n if (isObj(id)) {\n id = this.getItemID(id);\n }\n\n if (!ownItems[id]) {\n return removed;\n }\n\n this.length -= 1;\n itemToRemove = ownItems[id];\n delete ownItems[id];\n\n return itemToRemove;\n};\n\n/**\n * remove all models in collection.\n */\nCollection.prototype.clear = function() {\n this.items = {};\n this.length = 0;\n};\n\n/**\n * check collection has specific model.\n * @param {(object|string|number|function)} id model instance or id or filter function to check\n * @returns {boolean} is has model?\n */\nCollection.prototype.has = function(id) {\n var isFilter,\n has;\n\n if (!this.length) {\n return false;\n }\n\n isFilter = isFunc(id);\n has = false;\n\n if (isFilter) {\n this.each(function(item) {\n if (id(item) === true) {\n has = true;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n } else {\n id = isObj(id) ? this.getItemID(id) : id;\n has = util.isExisty(this.items[id]);\n }\n\n return has;\n};\n\n/**\n * invoke callback when model exist in collection.\n * @param {(string|number)} id model unique id.\n * @param {function} fn the callback.\n * @param {*} [context] callback context.\n */\nCollection.prototype.doWhenHas = function(id, fn, context) {\n var item = this.items[id];\n\n if (!util.isExisty(item)) {\n return;\n }\n\n fn.call(context || this, item);\n};\n\n/**\n * Search model. and return new collection.\n * @param {function} filter filter function.\n * @returns {Collection} new collection with filtered models.\n * @example\n * collection.find(function(item) {\n * return item.edited === true;\n * });\n *\n * function filter1(item) {\n * return item.edited === false;\n * }\n *\n * function filter2(item) {\n * return item.disabled === false;\n * }\n *\n * collection.find(Collection.and(filter1, filter2));\n *\n * collection.find(Collection.or(filter1, filter2));\n */\nCollection.prototype.find = function(filter) {\n var result = new Collection();\n\n if (this.hasOwnProperty('getItemID')) {\n result.getItemID = this.getItemID;\n }\n\n this.each(function(item) {\n if (filter(item) === true) {\n result.add(item);\n }\n });\n\n return result;\n};\n\n/**\n * Group element by specific key values.\n *\n * if key parameter is function then invoke it and use returned value.\n * @param {(string|number|function|array)} key key property or getter function.\n * if string[] supplied, create each collection before grouping.\n * @param {function} [groupFunc] - function that return each group's key\n * @returns {object.} grouped object\n * @example\n *\n * // pass `string`, `number`, `boolean` type value then group by property value.\n * collection.groupBy('gender'); // group by 'gender' property value.\n * collection.groupBy(50); // group by '50' property value.\n *\n * // pass `function` then group by return value. each invocation `function` is called with `(item)`.\n * collection.groupBy(function(item) {\n * if (item.score > 60) {\n * return 'pass';\n * }\n * return 'fail';\n * });\n *\n * // pass `array` with first arguments then create each collection before grouping.\n * collection.groupBy(['go', 'ruby', 'javascript']);\n * // result: { 'go': empty Collection, 'ruby': empty Collection, 'javascript': empty Collection }\n *\n * // can pass `function` with `array` then group each elements.\n * collection.groupBy(['go', 'ruby', 'javascript'], function(item) {\n * if (item.isFast) {\n * return 'go';\n * }\n *\n * return item.name;\n * });\n */\nCollection.prototype.groupBy = function(key, groupFunc) {\n var result = {},\n collection,\n baseValue,\n keyIsFunc = isFunc(key),\n getItemIDFn = this.getItemID;\n\n if (util.isArray(key)) {\n util.forEachArray(key, function(k) {\n result[String(k)] = new Collection(getItemIDFn);\n });\n\n if (!groupFunc) {\n return result;\n }\n\n key = groupFunc;\n keyIsFunc = true;\n }\n\n this.each(function(item) {\n if (keyIsFunc) {\n baseValue = key(item);\n } else {\n baseValue = item[key];\n\n if (isFunc(baseValue)) {\n baseValue = baseValue.apply(item);\n }\n }\n\n collection = result[baseValue];\n\n if (!collection) {\n collection = result[baseValue] = new Collection(getItemIDFn);\n }\n\n collection.add(item);\n });\n\n return result;\n};\n\n/**\n * Return single item in collection.\n *\n * Returned item is inserted in this collection firstly.\n * @param {function} [filter] - function filter\n * @returns {object} item.\n */\nCollection.prototype.single = function(filter) {\n var result,\n useFilter = util.isFunction(filter);\n\n this.each(function(item) {\n if (!useFilter) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n if (filter(item)) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n }, this);\n\n return result;\n};\n\n/**\n * sort a basis of supplied compare function.\n * @param {function} compareFunction compareFunction\n * @returns {array} sorted array.\n */\nCollection.prototype.sort = function(compareFunction) {\n var arr = [];\n\n this.each(function(item) {\n arr.push(item);\n });\n\n if (isFunc(compareFunction)) {\n arr = arr.sort(compareFunction);\n }\n\n return arr;\n};\n\n/**\n * iterate each model element.\n *\n * when iteratee return false then break the loop.\n * @param {function} iteratee iteratee(item, index, items)\n * @param {*} [context] context\n */\nCollection.prototype.each = function(iteratee, context) {\n forEachProp(this.items, iteratee, context || this);\n};\n\n/**\n * return new array with collection items.\n * @returns {array} new array.\n */\nCollection.prototype.toArray = function() {\n if (!this.length) {\n return [];\n }\n\n return util.map(this.items, function(item) {\n return item;\n });\n};\n\nmodule.exports = Collection;\n","/**\n * @fileoverview common/general utilities.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar aps = Array.prototype.slice;\n\nvar domutil = require('../common/domutil'),\n Collection = require('../common/collection');\nvar datetime = require('../common/datetime');\n\n/**\n * Default schedule id getter for collection\n * @param {Schedule} schedule - schedule instance\n * @returns {string} schedule id\n */\nfunction scheduleIDGetter(schedule) {\n return schedule.cid();\n}\n\nmodule.exports = {\n /**\n * @param {...*} initItems - items to add newly created collection.\n * @returns {Collection} new collection for schedule models.\n */\n createScheduleCollection: function(initItems) { // eslint-disable-line\n var collection = new Collection(scheduleIDGetter);\n\n if (arguments.length) {\n collection.add.apply(collection, arguments);\n }\n\n return collection;\n },\n\n /**\n * Get ratio value.\n *\n * a : b = y : X;\n *\n * =\n *\n * X = (b * y) / a;\n * @param {number} a - a\n * @param {number} b - b\n * @param {number} y - y\n * @returns {number} ratio value\n */\n ratio: function(a, b, y) {\n // a : b = y : x;\n return (b * y) / a;\n },\n\n /**\n * Find nearest value from supplied params.\n * @param {number} value - value to find.\n * @param {array} nearest - nearest array.\n * @returns {number} nearest value\n */\n nearest: function(value, nearest) {\n var diff = util.map(nearest, function(v) {\n return Math.abs(value - v);\n }),\n nearestIndex = util.inArray(Math.min.apply(null, diff), diff);\n\n return nearest[nearestIndex];\n },\n\n /**\n * pick value from object then return utility object to treat it.\n * @param {object} obj - object to search supplied path property.\n * @param {...string} paths - rest parameter that string value to search property in object.\n * @returns {object} pick object.\n */\n pick2: function(obj, paths) { // eslint-disable-line\n var result = util.pick.apply(null, arguments),\n pick;\n\n pick = {\n /**\n * @returns {*} picked value.\n */\n val: function() {\n return result;\n },\n\n /**\n * invoke supplied function in picked object.\n *\n * the callback context is set picked object.\n * @param {string|function} fn - function to invoke in picked object.\n * @returns {*} result of invoke.\n */\n then: function(fn) {\n var args;\n\n if (!result) {\n return undefined; //eslint-disable-line\n }\n\n args = aps.call(arguments, 1);\n\n if (util.isString(fn)) {\n return (util.pick(result, fn) || function() {}).apply(result, args);\n }\n\n return fn.call(result, result);\n }\n };\n\n return pick;\n },\n\n /**\n * Mixin method.\n *\n * (extend methods except property name 'mixin')\n * @param {object} from - mixin object.\n * @param {object} to - object to mixin.\n */\n mixin: function(from, to) {\n util.extend(to.prototype, from);\n },\n\n /**\n * Limit supplied value base on `minArr`, `maxArr`\n * @param {number} value - value\n * @param {array} minArr - min\n * @param {array} maxArr - max\n * @returns {number} limited value\n */\n limit: function(value, minArr, maxArr) {\n var v = Math.max.apply(null, [value].concat(minArr));\n v = Math.min.apply(null, [v].concat(maxArr));\n\n return v;\n },\n\n /**\n * Limit supplied date base on `min`, `max`\n * @param {TZDate} date - date\n * @param {TZDate} min - min\n * @param {TZDate} max - max\n * @returns {TZDate} limited value\n */\n limitDate: function(date, min, max) {\n if (date < min) {\n return min;\n }\n if (date > max) {\n return max;\n }\n\n return date;\n },\n\n /**\n * Max value with TZDate type for timezone calculation\n * @param {TZDate} d1 - date 1\n * @param {TZDate} d2 - date 2\n * @returns {TZDate}\n */\n maxDate: function(d1, d2) {\n if (d1 > d2) {\n return d1;\n }\n\n return d2;\n },\n\n stripTags: function(str) {\n return str.replace(/<([^>]+)>/ig, '');\n },\n\n /**\n * Get first value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} first value in 2d array\n */\n firstIn2dArray: function(arr2d) {\n return util.pick(arr2d, '0', '0');\n },\n\n /**\n * Get last value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} last value in 2d array\n */\n lastIn2dArray: function(arr2d) {\n var lastRow = arr2d.length - 1,\n lastCol = arr2d[lastRow].length - 1;\n\n return util.pick(arr2d, lastRow, lastCol);\n },\n\n /**\n * Set 'title' attribute for all element that has exceeded content in\n * container\n * @param {string} selector - CSS selector {@see domutil#find}\n * @param {HTMLElement} container - container element\n * @param {boolean} force - force to apply\n */\n setAutoEllipsis: function(selector, container, force) {\n util.forEach(domutil.find(selector, container, true), function(el) {\n if (force || el.offsetWidth < el.scrollWidth) {\n el.setAttribute('title', domutil.getData(el, 'title'));\n }\n });\n },\n\n /**\n * Set the value at path of object.\n * @param {object} object - the object to modify\n * @param {string} path -the path of property to set\n * @param {*} value - the value to set\n */\n set: function(object, path, value) {\n var names = path.split('.');\n var store = object;\n\n util.forEach(names, function(name, index) {\n store[name] = store[name] || {};\n\n if (index === names.length - 1) {\n store[name] = value;\n } else {\n store = store[name];\n }\n });\n },\n\n /**\n * shift a array\n * @param {Array.} array - array\n * @param {number} shift - positive or negative integer to shift\n * @returns {Array.} shifted array\n */\n shiftArray: function(array, shift) {\n var length = Math.abs(shift);\n var i;\n\n if (shift > 0) {\n for (i = 0; i < length; i += 1) {\n array.push(array.shift());\n }\n } else if (shift < 0) {\n for (i = 0; i < length; i += 1) {\n array.unshift(array.pop());\n }\n }\n\n return array;\n },\n\n /**\n * take elements from array between start and end.\n * @param {Array.} array - array\n * @param {number} start - start index\n * @param {number} end - end index\n * @returns {Array.}\n */\n takeArray: function(array, start, end) {\n var length = array.length;\n var rightCount = length - end;\n var leftCount = start;\n\n // remove right\n array.splice(end, rightCount);\n // remove left\n array.splice(0, leftCount);\n\n return array;\n },\n\n /**\n * shift hours\n * @param {number} hours - hours\n * @param {number} shift - positive or negative integer to shift\n * @returns {number} shifted hours\n */\n shiftHours: function(hours, shift) {\n if (shift > 0) {\n hours = (hours + shift) % 24;\n } else if (shift < 0) {\n hours += shift;\n hours = hours > 0 ? hours : 24 + hours;\n }\n\n return hours;\n },\n\n /**\n * Parse css value into number and units\n * @param {string} cssValue - css value like '72px'\n * @returns {Array} [number, unit]\n */\n parseUnit: function(cssValue) {\n var number = parseFloat(cssValue, 10);\n var unit = cssValue.match(/[\\d.\\-+]*\\s*(.*)/)[1] || '';\n\n return [number, unit];\n },\n\n find: function(array, iteratee, contextopt) {\n var found;\n\n util.forEach(array, function(item) {\n if (iteratee) {\n found = iteratee(item);\n }\n\n if (found) {\n found = item;\n\n return false;\n }\n\n return true;\n }, contextopt);\n\n return found;\n },\n\n getScheduleChanges: function(schedule, propNames, data) {\n var changes = {};\n var dateProps = ['start', 'end'];\n\n util.forEach(propNames, function(propName) {\n if (dateProps.indexOf(propName) > -1) {\n if (datetime.compare(schedule[propName], data[propName])) {\n changes[propName] = data[propName];\n }\n } else if (data[propName] && schedule[propName] !== data[propName]) {\n changes[propName] = data[propName];\n }\n });\n\n return util.isEmpty(changes) ? null : changes;\n }\n};\n","/**\n * @fileoverview datetime utility module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar TZDate = require('./timezone').Date,\n dw = require('../common/dw');\nvar util = require('tui-code-snippet');\n/* eslint-disable no-useless-escape */\nvar dateFormatRx = /^(\\d{4}[-|\\/]*\\d{2}[-|\\/]*\\d{2})\\s?(\\d{2}:\\d{2}:\\d{2})?$/;\nvar datetime, tokenFunc;\n\nvar memo = {\n millisecondsTo: {},\n millisecondsFrom: {}\n};\n\ntokenFunc = {\n /**\n * @param {TZDate} date date object.\n * @returns {string} YYYYMMDD\n */\n 'YYYYMMDD': function(date) {\n return [\n date.getFullYear(),\n datetime.leadingZero(date.getMonth() + 1, 2),\n datetime.leadingZero(date.getDate(), 2)\n ].join('');\n },\n /**\n * @param {TZDate} date date object\n * @returns {string} four digit year number\n */\n 'YYYY': function(date) {\n return String(date.getFullYear());\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit month number\n */\n 'MM': function(date) {\n return datetime.leadingZero(date.getMonth() + 1, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit date number\n */\n 'DD': function(date) {\n return datetime.leadingZero(date.getDate(), 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} HH:mm\n */\n 'HH:mm': function(date) {\n var hour = date.getHours(),\n minutes = date.getMinutes();\n\n return datetime.leadingZero(hour, 2) + ':' +\n datetime.leadingZero(minutes, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} hh:mm\n */\n 'hh:mm': function(date) {\n var hour = date.getHours();\n var minutes = date.getMinutes();\n\n if (hour > 12) {\n hour = hour % 12;\n }\n\n return datetime.leadingZero(hour, 2) + ':' +\n datetime.leadingZero(minutes, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} tt\n */\n 'tt': function(date) {\n var hour = date.getHours();\n\n return hour < 12 ? 'am' : 'pm';\n }\n};\n\ndatetime = {\n /**\n * The number of milliseconds one day.\n * @type {number}\n */\n MILLISECONDS_PER_DAY: 86400000,\n\n /**\n * The number of milliseconds one hour.\n * @type {number}\n */\n MILLISECONDS_PER_HOUR: 3600000,\n\n /**\n * The number of milliseconds one minutes.\n * @type {number}\n */\n MILLISECONDS_PER_MINUTES: 60000,\n\n /**\n * The number of milliseconds 20 minutes for schedule min duration\n * @type {number}\n */\n MILLISECONDS_SCHEDULE_MIN_DURATION: 20 * 60000,\n\n /**\n * convert milliseconds\n * @param {string} type - type of value.\n * @param {number} value - value to convert.\n * @param {function} iteratee - iteratee function to use reduce.\n * @returns {number} converted value.\n */\n _convMilliseconds: function(type, value, iteratee) {\n var conv = [24, 60, 60, 1000],\n index = {\n day: 0,\n hour: 1,\n minutes: 2,\n seconds: 3\n };\n\n if (!(type in index) || global.isNaN(value)) {\n return false;\n }\n\n return util.reduce([value].concat(conv.slice(index[type])), iteratee);\n },\n\n /**\n * Convert milliseconds value to other type\n * @param {type} type convert to type want to. support \"day\", \"hour\",\n * \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsTo: function(type, value) {\n var cache = memo.millisecondsTo,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m / v;\n });\n\n return cache[key];\n },\n\n /**\n * Convert value to milliseconds\n * @param {type} type - type of supplied value. support \"hour\", \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsFrom: function(type, value) {\n var cache = memo.millisecondsFrom,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m * v;\n });\n\n return cache[key];\n },\n\n /**\n * Convert hours to minutes\n * @param {number} hours - hours\n * @returns {number} minutes\n */\n minutesFromHours: function(hours) {\n return hours * 60;\n },\n\n /**\n * Make date array from supplied paramters.\n * @param {TZDate} start Start date.\n * @param {TZDate} end End date.\n * @param {number} step The number of milliseconds to use increment.\n * @returns {TZDate[]} TZDate array.\n */\n range: function(start, end, step) {\n var startTime = start.getTime();\n var endTime = end.getTime();\n var cursor = startTime;\n var date = dw(new TZDate(start));\n var result = [];\n\n while (cursor <= endTime && endTime >= date.d.getTime()) {\n result.push(datetime.start(date.d));\n cursor = cursor + step;\n date.addDate(1);\n }\n\n return result;\n },\n\n /**\n * Clone supplied date.\n * @param {TZDate} date date object to clone.\n * @returns {TZDate} Cloned date object\n */\n clone: function(date) {\n return new TZDate(date);\n },\n\n /**\n * Compare two dates.\n *\n * when first date is latest then seconds then return -1.\n *\n * return +1 reverse, and return 0 is same.\n * @param {TZDate} d1 Date object to compare.\n * @param {TZDate} d2 Date object to compare.\n * @returns {number} result of compare\n */\n compare: function(d1, d2) {\n var _d1 = d1.getTime(),\n _d2 = d2.getTime();\n\n if (_d1 < _d2) {\n return -1;\n }\n if (_d1 > _d2) {\n return 1;\n }\n\n return 0;\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month?\n */\n isSameMonth: function(d1, d2) {\n return (d1.getFullYear() === d2.getFullYear() &&\n d1.getMonth() === d2.getMonth());\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month, date?\n */\n isSameDate: function(d1, d2) {\n var sameMonth = datetime.isSameMonth(d1, d2);\n\n return sameMonth && (d1.getDate() === d2.getDate());\n },\n\n /**\n * Check supplied parameter is valid date object.\n * @param {*} d Object to validate.\n * @returns {boolean} return true when parameter is valid date object.\n */\n isValid: function(d) {\n if (d instanceof TZDate) {\n return !window.isNaN(d.getTime());\n }\n\n return false;\n },\n\n /**\n * convert non local date to UTC date.\n * @param {TZDate} d Date to convert UTC.\n * @returns {TZDate} The UTC Date.\n */\n toUTC: function(d) {\n var l = d.getTime(),\n offset = datetime.millisecondsFrom('minutes', new Date().getTimezoneOffset());\n\n return new TZDate(l + offset);\n },\n\n /**\n * pad left zero characters.\n * @param {number} number number value to pad zero.\n * @param {number} length pad length to want.\n * @returns {string} padded string.\n */\n leadingZero: function(number, length) {\n var zero = '',\n i = 0;\n\n if (String(number).length > length) {\n return String(number);\n }\n\n for (; i < (length - 1); i += 1) {\n zero += '0';\n }\n\n return (zero + number).slice(length * -1);\n },\n\n /**\n * Convert date string to date object.\n *\n * Only listed below formats avaliable.\n *\n * - YYYYMMDD\n * - YYYY/MM/DD\n * - YYYY-MM-DD\n * - YYYY/MM/DD HH:mm:SS\n * - YYYY-MM-DD HH:mm:SS\n *\n * @param {string} str Formatted string.\n * @param {number} [fixMonth=-1] - number for fix month calculating.\n * @returns {(TZDate|boolean)} Converted Date object. when supplied str is not available then return false.\n */\n parse: function(str, fixMonth) {\n var separator,\n matches = str.match(dateFormatRx),\n ymd,\n hms;\n\n if (util.isUndefined(fixMonth)) {\n fixMonth = -1;\n }\n\n if (!matches) {\n return false;\n }\n\n if (str.length > 8) {\n // YYYY/MM/DD\n // YYYY-MM-DD\n // YYYY/MM/DD HH:mm:SS\n // YYYY-MM-DD HH:mm:SS\n separator = ~str.indexOf('/') ? '/' : '-';\n matches = matches.splice(1);\n\n ymd = matches[0].split(separator);\n hms = matches[1] ? matches[1].split(':') : [0, 0, 0];\n } else {\n // YYYYMMDD\n matches = matches[0];\n ymd = [matches.substr(0, 4), matches.substr(4, 2), matches.substr(6, 2)];\n hms = [0, 0, 0];\n }\n\n return new TZDate().setWithRaw(\n Number(ymd[0]),\n Number(ymd[1]) + fixMonth,\n Number(ymd[2]),\n Number(hms[0]),\n Number(hms[1]),\n Number(hms[2]),\n 0\n );\n },\n\n /**\n * Return date object from Date.\n * @param {TZDate} date date\n * @returns {object} Date object.\n */\n raw: function(date) {\n return {\n y: date.getFullYear(),\n M: date.getMonth(),\n d: date.getDate(),\n h: date.getHours(),\n m: date.getMinutes(),\n s: date.getSeconds(),\n ms: date.getMilliseconds()\n };\n },\n\n /**\n * Return 00:00:00 supplied date.\n * @param {TZDate} date date. if undefined, use now.\n * @returns {TZDate} start date.\n */\n start: function(date) {\n var d = date ? new TZDate(date) : new TZDate();\n d.setHours(0, 0, 0, 0);\n\n return d;\n },\n\n /**\n * Return 23:59:59 supplied date.\n * @param {TZDate} date date. if undefined, use now.\n * @returns {TZDate} end date.\n */\n end: function(date) {\n var d = date ? new TZDate(date) : new TZDate();\n d.setHours(23, 59, 59, 0);\n\n return d;\n },\n\n /**\n * Return formatted string as basis of supplied string.\n *\n * Supported Token Lists.\n *\n * - YYYY => 1988\n * - MM => 01 ~ 12\n * - DD => 01 ~ 31\n * - YYYYMMDD => 19880925\n * @param {TZDate} date String want to formatted.\n * @param {string} format format str.\n * @returns {string} Formatted date string.\n */\n format: function(date, format) {\n var result = format;\n util.forEachOwnProperties(tokenFunc, function(converter, token) {\n result = result.replace(token, converter(date));\n });\n\n return result;\n },\n\n /**\n * Get start date of specific month\n * @param {TZDate} date - date to get start date\n * @returns {TZDate} start date of supplied month\n */\n startDateOfMonth: function(date) {\n var startDate = new TZDate(date);\n\n startDate.setDate(1);\n startDate.setHours(0, 0, 0, 0);\n\n return startDate;\n },\n\n /**\n * Get end date of specific month\n * @param {TZDate} date - date to get end date\n * @returns {TZDate} end date of supplied month\n */\n endDateOfMonth: function(date) {\n var endDate = datetime.startDateOfMonth(date);\n\n endDate.setMonth(endDate.getMonth() + 1);\n endDate.setDate(endDate.getDate() - 1);\n endDate.setHours(23, 59, 59);\n\n return endDate;\n },\n\n /**\n * Return 2-dimensional array month calendar\n *\n * dates that different month with given date are negative values\n * @param {TZDate} month - date want to calculate month calendar\n * @param {object} options - options\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {boolean} options.isAlways6Week - whether the number of weeks are always 6\n * @param {number} options.visibleWeeksCount visible weeks count\n * @param {boolean} options.workweek - only show work week\n * @param {function} [iteratee] - iteratee for customizing calendar object\n * @returns {Array.} calendar 2d array\n */\n arr2dCalendar: function(month, options, iteratee) {\n var weekArr,\n start, end,\n startIndex, endIndex,\n totalDate, afterDates,\n cursor, week,\n calendar = [],\n startDayOfWeek = options.startDayOfWeek,\n isAlways6Week = util.isUndefined(options.isAlways6Week) ? true : options.isAlways6Week,\n visibleWeeksCount = options.visibleWeeksCount,\n workweek = options.workweek;\n\n if (visibleWeeksCount) {\n start = new TZDate(month);\n end = dw(new TZDate(month));\n end.addDate(7 * (visibleWeeksCount - 1));\n end = end.d;\n } else {\n start = datetime.startDateOfMonth(month);\n end = datetime.endDateOfMonth(month);\n }\n\n // create day number array by startDayOfWeek number\n // 4 -> [4, 5, 6, 0, 1, 2, 3]\n // 2 -> [2, 3, 4, 5, 6, 0, 1]\n weekArr = util.range(startDayOfWeek, 7).concat(util.range(7)).slice(0, 7);\n startIndex = util.inArray(start.getDay(), weekArr);\n endIndex = util.inArray(end.getDay(), weekArr);\n // free dates after last date of this month\n afterDates = 7 - (endIndex + 1);\n\n if (visibleWeeksCount) {\n totalDate = 7 * visibleWeeksCount;\n } else {\n totalDate = isAlways6Week ? (7 * 6) : (startIndex + end.getDate() + afterDates);\n }\n cursor = datetime.start(start).addDate(-startIndex);\n // iteratee all dates to render\n util.forEachArray(util.range(totalDate), function(i) {\n var date;\n\n if (!(i % 7)) {\n // group each date by week\n week = calendar[i / 7] = [];\n }\n\n date = datetime.start(cursor);\n date = iteratee ? iteratee(date) : date;\n if (!workweek || !datetime.isWeekend(date.getDay())) {\n week.push(date);\n }\n\n // add date\n cursor.setDate(cursor.getDate() + 1);\n });\n\n return calendar;\n },\n\n /**\n * Calculate grid left(%), width(%) by narrowWeekend, startDayOfWeek, workweek\n *\n * @param {number} days - day length of week\n * @param {boolean} narrowWeekend - narrow weekend\n * @param {number} startDayOfWeek - start day of week\n * @param {boolean} workweek - only show work week\n * @returns {Array} day, left, width\n */\n getGridLeftAndWidth: function(days, narrowWeekend, startDayOfWeek, workweek) {\n var limitDaysToApplyNarrowWeekend = 5;\n var uniformWidth = 100 / days;\n var wideWidth = days > limitDaysToApplyNarrowWeekend ? 100 / (days - 1) : uniformWidth;\n var accumulatedWidth = 0;\n var dates = util.range(startDayOfWeek, 7).concat(util.range(days)).slice(0, 7);\n\n if (workweek) {\n dates = util.filter(dates, function(day) {\n return !datetime.isWeekend(day);\n });\n }\n\n narrowWeekend = workweek ? false : narrowWeekend;\n\n return util.map(dates, function(day) {\n var model;\n var width = narrowWeekend ? wideWidth : uniformWidth;\n if (days > limitDaysToApplyNarrowWeekend && narrowWeekend && datetime.isWeekend(day)) {\n width = wideWidth / 2;\n }\n\n model = {\n day: day,\n width: width,\n left: accumulatedWidth\n };\n\n accumulatedWidth += width;\n\n return model;\n });\n },\n\n /**\n * Get that day is weekend\n * @param {number} day number\n * @returns {boolean} true if weekend or false\n */\n isWeekend: function(day) {\n return day === 0 || day === 6;\n },\n\n /**\n * Whether date is between supplied dates with date value?\n * @param {TZDate} d - target date\n * @param {TZDate} d1 - from date\n * @param {TZDate} d2 - to date\n * @returns {boolean} is between?\n */\n isBetweenWithDate: function(d, d1, d2) {\n var format = 'YYYYMMDD';\n d = parseInt(datetime.format(d, format), 10);\n d1 = parseInt(datetime.format(d1, format), 10);\n d2 = parseInt(datetime.format(d2, format), 10);\n\n return d1 <= d && d <= d2;\n },\n\n isStartOfDay: function(d) {\n return !datetime.compare(datetime.start(d), d);\n },\n\n convertStartDayToLastDay: function(d) {\n var date = new TZDate(d);\n if (datetime.isStartOfDay(d)) {\n date.setDate(date.getDate() - 1);\n }\n\n return date;\n },\n\n getStartOfNextDay: function(d) {\n var date = datetime.start(d);\n date.setHours(24);\n\n return date;\n }\n};\n\nmodule.exports = datetime;\n","/**\n * @fileoverview Dirty flagging module for objects.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar common = require('tui-code-snippet');\nvar existy = common.isExisty,\n pick = common.pick,\n isFunc = common.isFunction;\n\n/**\n * Mixin module for dirty flagging on specific objects.\n * @mixin\n * @example\n * var obj = { hello: 'good', test: '123' };\n * dirty.mixin(obj);\n *\n * obj.set('hello', 'world');\n * obj.isDirty(); // true\n * obj.isPropChanged('hello'); // true\n * obj.isPropChanged('test'); // false\n * obj.dirty(false);\n *\n * obj.isDirty(); // false\n * obj.isPropChanged('hello'); // false\n */\nvar dirty = {\n /**\n * Set property value with dirty flagging.\n * @param {string} propName Property name.\n * @param {*} value Proprty value.\n */\n set: function(propName, value) {\n var originValue = this[propName];\n\n if (originValue === value) {\n return;\n }\n\n this[propName] = value;\n\n if (!this._changed) {\n /**\n * Save changed properties.\n * @memberof dirty\n * @name _changed\n * @type {Object}\n */\n this._changed = {};\n }\n\n this._changed[propName] = true;\n\n /**\n * Dirty flag\n * @type {Boolean}\n * @name _dirty\n * @memberof dirty\n */\n this._dirty = true;\n },\n\n /**\n * Check dirty flag.\n * @returns {boolean} Property is changed.\n */\n isDirty: function() {\n return !!this._dirty;\n },\n\n /**\n * Set dirty flag manually.\n * @param {Boolean} [toDirty=true] This will set dirty flag directly.\n */\n dirty: function(toDirty) {\n toDirty = existy(toDirty) ? toDirty : true;\n\n /* istanbul ignore else */\n if (!toDirty) {\n this._changed = {};\n }\n\n this._dirty = toDirty;\n },\n\n /**\n * Delete property safety.\n * @param {String} propName The name of property.\n */\n deleteProp: function(propName) {\n delete this[propName];\n\n if (this._changed) {\n delete this._changed[propName];\n }\n },\n\n /**\n * Check the changes with specific property.\n * @param {String} propName The name of property you want.\n * @returns {boolean} Is property changed?\n */\n isPropChanged: function(propName) {\n if (!this._changed) {\n return false;\n }\n\n return this._changed[propName] === true;\n },\n\n /**\n * Mixin to specific objects.\n * @param {Object} target The object to mix this module.\n * @memberof module:util/dirty\n * @example\n * function Animal() {}\n * dirty.mixin(Animal.prototype);\n */\n mixin: function(target) {\n var methodFilterR = /(^_|mixin|wrap)/;\n\n common.forEachOwnProperties(dirty, function(o, k) {\n if (!methodFilterR.test(k)) {\n target[k] = dirty[k];\n }\n });\n },\n\n /**\n * Wrapper method for dirty flagging.\n *\n * This method invoke after invoked specific method that added by you.\n *\n * The method want to add are must exist before add.\n * @param {object} target Target object to method wrap.\n * @param {(string|object)} methodName\n * Method name to wrap or methodName: flag objects.\n * @param {boolean} [flag=true]\n * this will used to flagging by dirty flagger after invoke the methods added by you.\n * @memberof module:util/dirty\n * @example\n * function Animal(name) {\n * this.name = name;\n * }\n * Animal.prototype.growl = jasmine.createSpy('growl');\n * Animal.prototype.test = function() {\n * return this.name;\n * };\n *\n * dirty.mixin(Animal.prototype);\n * // single\n * dirty.wrap(Animal.prototype, 'growl', true);\n * // multiple\n * dirty.wrap(Animap.prototype, {\n * growl: true,\n * test: false\n * });\n *\n */\n wrap: function(target, methodName, flag) {\n var wrap = dirty.wrap,\n fn;\n\n if (common.isObject(methodName)) {\n common.forEachOwnProperties(methodName, function(_flag, _name) {\n wrap(target, _name, _flag);\n });\n\n return;\n }\n\n flag = existy(flag) ? flag : true;\n\n if (!target._wrapper) {\n /**\n * @param {function} _fn Original method to wrap.\n * @param {boolean} flagToSet The boolean value to using dirty flagging.\n * @returns {*} The result value of original method.\n * @name _wrapper\n * @memberof dirty\n */\n target._wrapper = function(_fn, flagToSet) {\n return function() {\n var args = Array.prototype.slice.call(arguments);\n var result = _fn.apply(this, args); // eslint-disable-line\n this._dirty = flagToSet; // eslint-disable-line\n\n return result;\n };\n };\n }\n\n if (existy(pick(target, methodName)) &&\n isFunc(target[methodName]) &&\n !existy(pick(target, methodName, '_wrapped'))) {\n fn = target[methodName];\n target[methodName] = target._wrapper(fn, flag);\n target[methodName]._wrapped = true;\n }\n }\n};\n\nmodule.exports = dirty;\n","/* eslint complexity: 0 */\n/**\n * @fileoverview Utility module for handling DOM events.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar browser = util.browser,\n eventKey = '_evt',\n DRAG = {\n START: ['touchstart', 'mousedown'],\n END: {\n mousedown: 'mouseup',\n touchstart: 'touchend',\n pointerdown: 'touchend',\n MSPointerDown: 'touchend'\n },\n MOVE: {\n mousedown: 'mousemove',\n touchstart: 'touchmove',\n pointerdown: 'touchmove',\n MSPointerDown: 'touchmove'\n }\n };\n\nvar domevent = {\n /**\n * Bind dom events.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n on: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._on(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._on(obj, type, handler, fn);\n });\n },\n\n /**\n * DOM event binding.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {String} type The name of events.\n * @param {*} fn handler function\n * @param {*} [context] context object for handler method.\n * @private\n */\n _on: function(obj, type, fn, context) {\n var id,\n handler,\n originHandler;\n\n id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : '');\n\n if (obj[eventKey] && obj[eventKey][id]) {\n return;\n }\n\n handler = function(e) {\n fn.call(context || obj, e || window.event);\n };\n\n originHandler = handler;\n\n if ('addEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n handler = function(e) {\n e = e || window.event;\n if (!domevent._checkMouse(obj, e)) {\n return;\n }\n originHandler(e);\n };\n obj.addEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.addEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.addEventListener(type, handler, false);\n }\n } else if ('attachEvent' in obj) {\n obj.attachEvent('on' + type, handler);\n }\n\n obj[eventKey] = obj[eventKey] || {};\n obj[eventKey][id] = handler;\n },\n\n /**\n * Unbind DOM Event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n off: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._off(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._off(obj, type, handler, fn);\n });\n },\n\n /**\n * Unbind DOM event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {String} type The name of event to unbind.\n * @param {function()} fn Event handler that supplied when binding.\n * @param {*} context context object that supplied when binding.\n * @private\n */\n _off: function(obj, type, fn, context) {\n var id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : ''),\n handler = obj[eventKey] && obj[eventKey][id];\n\n if (!handler) {\n return;\n }\n\n if ('removeEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n obj.removeEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.removeEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.removeEventListener(type, handler, false);\n }\n } else if ('detachEvent' in obj) {\n try {\n obj.detachEvent('on' + type, handler);\n } catch (e) {} //eslint-disable-line\n }\n\n delete obj[eventKey][id];\n\n if (util.keys(obj[eventKey]).length) {\n return;\n }\n\n // throw exception when deleting host object's property in below IE8\n if (util.browser.msie && util.browser.version < 9) {\n obj[eventKey] = null;\n\n return;\n }\n\n delete obj[eventKey];\n },\n\n /**\n * Bind DOM event. this event will unbind after invokes.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n once: function(obj, types, fn, context) {\n var self = this;\n\n if (util.isObject(types)) {\n util.forEachOwnProperties(types, function(handler, type) {\n domevent.once(obj, type, handler, fn);\n });\n\n return;\n }\n\n /**\n * Handler for temporary usage for once implementation\n */\n function onceHandler() {\n fn.apply(context || obj, arguments);\n self._off(obj, types, onceHandler, context);\n }\n\n domevent.on(obj, types, onceHandler, context);\n },\n\n /**\n * Cancel event bubbling.\n * @param {Event} e Event object.\n */\n stopPropagation: function(e) {\n if (e.stopPropagation) {\n e.stopPropagation();\n } else {\n e.cancelBubble = true;\n }\n },\n\n /**\n * Cancel browser default actions.\n * @param {Event} e Event object.\n */\n preventDefault: function(e) {\n if (e.preventDefault) {\n e.preventDefault();\n } else {\n e.returnValue = false;\n }\n },\n\n /**\n * Syntatic sugar of stopPropagation and preventDefault\n * @param {Event} e Event object.\n */\n stop: function(e) {\n domevent.preventDefault(e);\n domevent.stopPropagation(e);\n },\n\n /**\n * Stop scroll events.\n * @param {HTMLElement} el HTML element to prevent scroll.\n */\n disableScrollPropagation: function(el) {\n domevent.on(el, 'mousewheel MozMousePixelScroll', domevent.stopPropagation);\n },\n\n /**\n * Stop all events related with click.\n * @param {HTMLElement} el HTML element to prevent all event related with click.\n */\n disableClickPropagation: function(el) {\n domevent.on(el, DRAG.START.join(' ') + ' click dblclick', domevent.stopPropagation);\n },\n\n /**\n * Get mouse position from mouse event.\n *\n * If supplied relatveElement parameter then return relative position based on element.\n * @param {Event} mouseEvent Mouse event object\n * @param {HTMLElement} relativeElement HTML element that calculate relative position.\n * @returns {number[]} mouse position.\n */\n getMousePosition: function(mouseEvent, relativeElement) {\n var rect;\n\n if (!relativeElement) {\n return [mouseEvent.clientX, mouseEvent.clientY];\n }\n\n rect = relativeElement.getBoundingClientRect();\n\n return [\n mouseEvent.clientX - rect.left - relativeElement.clientLeft,\n mouseEvent.clientY - rect.top - relativeElement.clientTop\n ];\n },\n\n /**\n * Normalize mouse wheel event that different each browsers.\n * @param {MouseEvent} e Mouse wheel event.\n * @returns {Number} delta\n */\n getWheelDelta: function(e) {\n var delta = 0;\n\n if (e.wheelDelta) {\n delta = e.wheelDelta / 120;\n }\n\n if (e.detail) {\n delta = -e.detail / 3;\n }\n\n return delta;\n },\n\n /**\n * prevent firing mouseleave event when mouse entered child elements.\n * @param {HTMLElement} el HTML element\n * @param {MouseEvent} e Mouse event\n * @returns {Boolean} leave?\n * @private\n */\n _checkMouse: function(el, e) {\n var related = e.relatedTarget;\n\n if (!related) {\n return true;\n }\n\n try {\n while (related && (related !== el)) {\n related = related.parentNode;\n }\n } catch (err) {\n return false;\n }\n\n return (related !== el);\n },\n\n /**\n * Trigger specific events to html element.\n * @param {HTMLElement} obj HTMLElement\n * @param {string} type Event type name\n * @param {object} [eventData] Event data\n */\n trigger: function(obj, type, eventData) {\n var rMouseEvent = /(mouse|click)/;\n if (util.isUndefined(eventData) && rMouseEvent.exec(type)) {\n eventData = domevent.mouseEvent(type);\n }\n\n if (obj.dispatchEvent) {\n obj.dispatchEvent(eventData);\n } else if (obj.fireEvent) {\n obj.fireEvent('on' + type, eventData);\n }\n },\n\n /**\n * Create virtual mouse event.\n *\n * Tested at\n *\n * - IE7 ~ IE11\n * - Chrome\n * - Firefox\n * - Safari\n * @param {string} type Event type\n * @param {object} [eventObj] Event data\n * @returns {MouseEvent} Virtual mouse event.\n */\n mouseEvent: function(type, eventObj) {\n var evt,\n e;\n\n e = util.extend({\n bubbles: true,\n cancelable: (type !== 'mousemove'),\n view: window,\n wheelDelta: 0,\n detail: 0,\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n ctrlKey: false,\n altKey: false,\n shiftKey: false,\n metaKey: false,\n button: 0,\n relatedTarget: undefined // eslint-disable-line\n }, eventObj);\n\n // prevent throw error when inserting wheelDelta property to mouse event on below IE8\n if (browser.msie && browser.version < 9) {\n delete e.wheelDelta;\n }\n\n if (typeof document.createEvent === 'function') {\n evt = document.createEvent('MouseEvents');\n evt.initMouseEvent(type,\n e.bubbles, e.cancelable, e.view, e.detail,\n e.screenX, e.screenY, e.clientX, e.clientY,\n e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\n e.button, document.body.parentNode\n );\n } else if (document.createEventObject) {\n evt = document.createEventObject();\n\n util.forEach(e, function(value, propName) {\n evt[propName] = value;\n }, this);\n evt.button = {0: 1,\n 1: 4,\n 2: 2}[evt.button] || evt.button;\n }\n\n return evt;\n },\n\n /**\n * Normalize mouse event's button attributes.\n *\n * Can detect which button is clicked by this method.\n *\n * Meaning of return numbers\n *\n * - 0: primary mouse button\n * - 1: wheel button or center button\n * - 2: secondary mouse button\n * @param {MouseEvent} mouseEvent - The mouse event object want to know.\n * @returns {number} - The value of meaning which button is clicked?\n */\n getMouseButton: function(mouseEvent) {\n var button,\n primary = '0,1,3,5,7',\n secondary = '2,6',\n wheel = '4';\n\n /* istanbul ignore else */\n if (document.implementation.hasFeature('MouseEvents', '2.0')) {\n return mouseEvent.button;\n }\n\n button = String(mouseEvent.button);\n if (primary.indexOf(button) > -1) {\n return 0;\n }\n if (secondary.indexOf(button) > -1) {\n return 2;\n }\n if (~wheel.indexOf(button)) {\n return 1;\n }\n\n return -1;\n }\n};\n\nmodule.exports = domevent;\n","/* eslint complexity: 0, no-shadow: 0, max-nested-callbacks: 0 */\n/**\n * @fileoverview Utility modules for manipulate DOM elements.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar domevent = require('./domevent');\nvar Collection = require('./collection');\nvar util = require('tui-code-snippet');\n\nvar posKey = '_pos',\n domutil;\n\nvar CSS_AUTO_REGEX = /^auto$|^$|%/;\n\n/**\n * Trim leading, trailing whitespace\n * @param {string} str - string to trim\n * @returns {string} trimmed string\n */\nfunction trim(str) {\n return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n}\n\ndomutil = {\n /**\n * Create DOM element and return it.\n * @param {string} tagName Tag name to append.\n * @param {HTMLElement} [container] HTML element will be parent to created element.\n * if not supplied, will use **document.body**\n * @param {string} [className] Design class names to appling created element.\n * @returns {HTMLElement} HTML element created.\n */\n appendHTMLElement: function(tagName, container, className) {\n var el;\n\n className = className || '';\n\n el = document.createElement(tagName);\n el.className = className;\n\n if (container) {\n container.appendChild(el);\n } else {\n document.body.appendChild(el);\n }\n\n return el;\n },\n\n /**\n * Remove element from parent node.\n * @param {HTMLElement} el - element to remove.\n */\n remove: function(el) {\n if (el && el.parentNode) {\n el.parentNode.removeChild(el);\n }\n },\n\n /**\n * Get element by id\n * @param {string} id element id attribute\n * @returns {HTMLElement} element\n */\n get: function(id) {\n return document.getElementById(id);\n },\n\n /**\n * Check supplied element is matched selector.\n * @param {HTMLElement} el - element to check\n * @param {string} selector - selector string to check\n * @returns {boolean} match?\n */\n _matcher: function(el, selector) {\n var cssClassSelector = /^\\./,\n idSelector = /^#/;\n\n if (cssClassSelector.test(selector)) {\n return domutil.hasClass(el, selector.replace('.', ''));\n }\n if (idSelector.test(selector)) {\n return el.id === selector.replace('#', '');\n }\n\n return el.nodeName.toLowerCase() === selector.toLowerCase();\n },\n\n /**\n * Find DOM element by specific selectors.\n * below three selector only supported.\n *\n * 1. css selector\n * 2. id selector\n * 3. nodeName selector\n * @param {string} selector selector\n * @param {(HTMLElement|string)} [root] You can assign root element to find\n * if not supplied, document.body will use.\n * @param {boolean|function} [multiple=false] - set true then return all\n * elements that meet condition, if set function then use it filter function.\n * @returns {HTMLElement} HTML element finded.\n */\n find: function(selector, root, multiple) {\n var result = [],\n found = false,\n isFirst = util.isUndefined(multiple) || multiple === false,\n isFilter = util.isFunction(multiple);\n\n if (util.isString(root)) {\n root = domutil.get(root);\n }\n\n root = root || window.document.body;\n\n /**\n * Function for recursive find specific node\n * @param {HTMLElement} el - element to search\n * @param {string} selector - selector\n */\n function recurse(el, selector) {\n var childNodes = el.childNodes,\n i = 0,\n len = childNodes.length,\n cursor;\n\n for (; i < len; i += 1) {\n cursor = childNodes[i];\n\n if (cursor.nodeName === '#text') {\n continue;\n }\n\n if (domutil._matcher(cursor, selector)) {\n if ((isFilter && multiple(cursor)) || !isFilter) {\n result.push(cursor);\n }\n\n if (isFirst) {\n found = true;\n break;\n }\n } else if (cursor.childNodes.length > 0) {\n recurse(cursor, selector);\n if (found) {\n break;\n }\n }\n }\n }\n\n recurse(root, selector);\n\n return isFirst ? (result[0] || null) : result;\n },\n\n /**\n * Find parent element recursively.\n * @param {HTMLElement} el - base element to start find.\n * @param {string} selector - selector string for find\n * @param {boolean} excludeEl - exclude the base element to find\n * @returns {HTMLElement} - element finded or null.\n */\n closest: function(el, selector, excludeEl) {\n var parent = el.parentNode;\n\n if (!excludeEl && domutil._matcher(el, selector)) {\n return el;\n }\n\n while (parent && parent !== window.document.body) {\n if (domutil._matcher(parent, selector)) {\n return parent;\n }\n\n parent = parent.parentNode;\n }\n\n return null;\n },\n\n /**\n * Return texts inside element.\n * @param {HTMLElement} el target element\n * @returns {string} text inside node\n */\n text: function(el) {\n var ret = '',\n i = 0,\n nodeType = el.nodeType;\n\n if (nodeType) {\n if (nodeType === 1 || nodeType === 9 || nodeType === 11) {\n // nodes that available contain other nodes\n if (typeof el.textContent === 'string') {\n return el.textContent;\n }\n\n for (el = el.firstChild; el; el = el.nextSibling) {\n ret += domutil.text(el);\n }\n } else if (nodeType === 3 || nodeType === 4) {\n // TEXT, CDATA SECTION\n return el.nodeValue;\n }\n } else {\n for (; el[i]; i += 1) {\n ret += domutil.text(el[i]);\n }\n }\n\n return ret;\n },\n\n /**\n * Set data attribute to target element\n * @param {HTMLElement} el - element to set data attribute\n * @param {string} key - key\n * @param {string|number} data - data value\n */\n setData: function(el, key, data) {\n if ('dataset' in el) {\n el.dataset[key] = data;\n\n return;\n }\n\n el.setAttribute('data-' + key, data);\n },\n\n /**\n * Get data value from data-attribute\n * @param {HTMLElement} el - target element\n * @param {string} key - key\n * @returns {string} value\n */\n getData: function(el, key) {\n if ('dataset' in el) {\n return el.dataset[key];\n }\n\n return el.getAttribute('data-' + key);\n },\n\n /**\n * Check element has specific design class name.\n * @param {HTMLElement} el target element\n * @param {string} name css class\n * @returns {boolean} return true when element has that css class name\n */\n hasClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n return el.classList.contains(name);\n }\n\n className = domutil.getClass(el);\n\n return className.length > 0 && new RegExp('(^|\\\\s)' + name + '(\\\\s|$)').test(className);\n },\n\n /**\n * Add design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n addClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n util.forEachArray(name.split(' '), function(value) {\n el.classList.add(value);\n });\n } else if (!domutil.hasClass(el, name)) {\n className = domutil.getClass(el);\n domutil.setClass(el, (className ? className + ' ' : '') + name);\n }\n },\n\n /**\n *\n * Overwrite design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n setClass: function(el, name) {\n if (util.isUndefined(el.className.baseVal)) {\n el.className = name;\n } else {\n el.className.baseVal = name;\n }\n },\n\n /**\n * Element에 cssClass속성을 제거하는 메서드\n * Remove specific design class from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name class name to remove\n */\n removeClass: function(el, name) {\n var removed = '';\n\n if (!util.isUndefined(el.classList)) {\n el.classList.remove(name);\n } else {\n removed = (' ' + domutil.getClass(el) + ' ').replace(' ' + name + ' ', ' ');\n domutil.setClass(el, trim(removed));\n }\n },\n\n /**\n * Get HTML element's design classes.\n * @param {HTMLElement} el target element\n * @returns {string} element css class name\n */\n getClass: function(el) {\n if (!el || !el.className) {\n return '';\n }\n\n return util.isUndefined(el.className.baseVal) ? el.className : el.className.baseVal;\n },\n\n /**\n * Get specific CSS style value from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} style css attribute name\n * @returns {(string|null)} css style value\n */\n getStyle: function(el, style) {\n var value = el.style[style] || (el.currentStyle && el.currentStyle[style]),\n css;\n\n if ((!value || value === 'auto') && document.defaultView) {\n css = document.defaultView.getComputedStyle(el, null);\n value = css ? css[style] : null;\n }\n\n return value === 'auto' ? null : value;\n },\n\n /**\n * get element's computed style values.\n *\n * in lower IE8. use polyfill function that return object. it has only one function 'getPropertyValue'\n * @param {HTMLElement} el - element want to get style.\n * @returns {object} virtual CSSStyleDeclaration object.\n */\n getComputedStyle: function(el) {\n var defaultView = document.defaultView;\n\n if (!defaultView || !defaultView.getComputedStyle) {\n return {\n getPropertyValue: function(prop) {\n /* eslint-disable no-useless-escape */\n var re = /(\\-([a-z]){1})/g;\n if (prop === 'float') {\n prop = 'styleFloat';\n }\n\n if (re.test(prop)) {\n prop = prop.replace(re, function() {\n return arguments[2].toUpperCase();\n });\n }\n\n return el.currentStyle[prop] ? el.currentStyle[prop] : null;\n }\n };\n }\n\n return document.defaultView.getComputedStyle(el);\n },\n\n /**\n * Set position CSS style.\n * @param {HTMLElement} el target element\n * @param {number} [x=0] left pixel value.\n * @param {number} [y=0] top pixel value.\n */\n setPosition: function(el, x, y) {\n x = util.isUndefined(x) ? 0 : x;\n y = util.isUndefined(y) ? 0 : y;\n\n el[posKey] = [x, y];\n\n el.style.left = util.isNumber(x) ? (x + 'px') : x;\n el.style.top = util.isNumber(y) ? (y + 'px') : y;\n },\n\n /**\n * Set position CSS style with left, top, right, bottom\n * @param {HTMLElement} el target element\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\n setLTRB: function(el, ltrb) {\n var props = ['left', 'top', 'right', 'bottom'];\n var value;\n props.forEach(function(prop) {\n value = util.isUndefined(ltrb[prop]) ? '' : ltrb[prop];\n el.style[prop] = util.isNumber(value) ? (value + 'px') : value;\n });\n },\n\n /**\n * Get position from HTML element.\n * @param {HTMLElement} el target element\n * @param {boolean} [clear=false] clear cache before calculating position.\n * @returns {number[]} point\n */\n getPosition: function(el, clear) {\n var left,\n top,\n bound;\n\n if (clear) {\n el[posKey] = null;\n }\n\n if (el[posKey]) {\n return el[posKey];\n }\n\n left = 0;\n top = 0;\n\n if ((CSS_AUTO_REGEX.test(el.style.left) || CSS_AUTO_REGEX.test(el.style.top)) &&\n 'getBoundingClientRect' in el) {\n // When the element's left or top is 'auto'\n bound = el.getBoundingClientRect();\n\n left = bound.left;\n top = bound.top;\n } else {\n left = parseFloat(el.style.left || 0);\n top = parseFloat(el.style.top || 0);\n }\n\n return [left, top];\n },\n\n /**\n * Return element's size\n * @param {HTMLElement} el target element\n * @returns {number[]} width, height\n */\n getSize: function(el) {\n var bound,\n width = domutil.getStyle(el, 'width'),\n height = domutil.getStyle(el, 'height');\n\n if ((CSS_AUTO_REGEX.test(width) || CSS_AUTO_REGEX.test(height) ||\n util.isNull(width) || util.isNull(height)) &&\n 'getBoundingClientRect' in el) {\n bound = el.getBoundingClientRect();\n width = bound.width || el.offsetWidth;\n height = bound.height || el.offsetHeight;\n } else {\n width = parseFloat(width || 0);\n height = parseFloat(height || 0);\n }\n\n return [width, height];\n },\n\n /**\n * Fallback of getBoundingClientRect\n * @param {HTMLElement} el - element\n * @returns {object} rect\n */\n getBCRect: function(el) {\n var rect = el.getBoundingClientRect();\n\n rect = util.extend({\n width: el.offsetWidth,\n height: el.offsetHeight\n }, rect);\n\n return rect;\n },\n\n /**\n * Check specific CSS style is available.\n * @param {array} props property name to testing\n * @returns {(string|boolean)} return true when property is available\n * @example\n * var props = ['transform', '-webkit-transform'];\n * domutil.testProp(props); // 'transform'\n */\n testProp: function(props) {\n var style = document.documentElement.style,\n i = 0,\n len = props.length;\n\n for (; i < len; i += 1) {\n if (props[i] in style) {\n return props[i];\n }\n }\n\n return false;\n },\n\n /**\n * Get form data\n * @param {HTMLFormElement} formElement - form element to extract data\n * @returns {object} form data\n */\n getFormData: function(formElement) {\n var groupedByName = new Collection(function() {\n return this.length;\n }),\n noDisabledFilter = function(el) {\n return !el.disabled;\n },\n output = {};\n\n groupedByName.add.apply(\n groupedByName,\n domutil.find('input', formElement, noDisabledFilter)\n .concat(domutil.find('select', formElement, noDisabledFilter))\n .concat(domutil.find('textarea', formElement, noDisabledFilter))\n );\n\n groupedByName = groupedByName.groupBy(function(el) {\n return (el && el.getAttribute('name')) || '_other';\n });\n\n util.forEach(groupedByName, function(elements, name) {\n if (name === '_other') {\n return;\n }\n\n elements.each(function(el) {\n var nodeName = el.nodeName.toLowerCase(),\n type = el.type,\n result = [];\n\n if (type === 'radio') {\n result = [elements.find(function(el) {\n return el.checked;\n }).toArray().pop()];\n } else if (type === 'checkbox') {\n result = elements.find(function(el) {\n return el.checked;\n }).toArray();\n } else if (nodeName === 'select') {\n elements.find(function(el) {\n return !!el.childNodes.length;\n }).each(function(el) {\n result = result.concat(\n domutil.find('option', el, function(opt) {\n return opt.selected;\n })\n );\n });\n } else {\n result = elements.find(function(el) {\n return el.value !== '';\n }).toArray();\n }\n\n result = util.map(result, function(el) {\n return el.value;\n });\n\n if (!result.length) {\n result = '';\n } else if (result.length === 1) {\n result = result[0];\n }\n\n output[name] = result;\n });\n });\n\n return output;\n }\n};\n\n/*eslint-disable*/\nvar userSelectProperty = domutil.testProp([\n 'userSelect',\n 'WebkitUserSelect',\n 'OUserSelect',\n 'MozUserSelect',\n 'msUserSelect'\n]);\nvar supportSelectStart = 'onselectstart' in document;\nvar prevSelectStyle = '';\n/* eslint-enable*/\n\n/**\n * Disable browser's text selection behaviors.\n * @method\n */\ndomutil.disableTextSelection = (function() {\n if (supportSelectStart) {\n return function(dom) {\n domevent.on(dom, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function(dom) {\n var style = dom.style;\n prevSelectStyle = style[userSelectProperty];\n style[userSelectProperty] = 'none';\n };\n})();\n\n/**\n * Enable browser's text selection behaviors.\n * @method\n */\ndomutil.enableTextSelection = (function() {\n if (supportSelectStart) {\n return function() {\n domevent.off(window, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function() {\n document.documentElement.style[userSelectProperty] = prevSelectStyle;\n };\n})();\n\n/**\n * Disable browser's image drag behaviors.\n */\ndomutil.disableImageDrag = function() {\n domevent.on(window, 'dragstart', domevent.preventDefault);\n};\n\n/**\n * Enable browser's image drag behaviors.\n */\ndomutil.enableImageDrag = function() {\n domevent.off(window, 'dragstart', domevent.preventDefault);\n};\n\nmodule.exports = domutil;\n","/**\n * @fileoverview Wrapper module for easy calc date object\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar TZDate = require('./timezone').Date;\n\n/**\n * @constructor\n * @param {TZDate} date to wrapping DW class\n */\nfunction DW(date) {\n if (!(this instanceof DW)) {\n return new DW(date);\n }\n\n if (!(date instanceof TZDate)) {\n date = new TZDate(date);\n }\n\n /**\n * @type {TZDate}\n */\n this.d = date;\n}\n\n/**\n * Return d property when supplied object is DW. else return itself\n * @param {*} obj - object\n * @returns {TZDate} date\n */\nDW.prototype.safe = function(obj) {\n if (obj.constructor === DW) {\n return obj.d;\n }\n\n return obj;\n};\n\n/**\n * Clone DW object\n * @returns {DW} cloned dwrap object\n */\nDW.prototype.clone = function() {\n return new DW(new TZDate(this.d));\n};\n\n/**\n * Add days\n * @param {number} day - day to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addDate = function(day) {\n this.d.setDate(this.d.getDate() + day);\n\n return this;\n};\n\n/**\n * Add month.\n * @param {number} m - month to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addMonth = function(m) {\n var currentMonth = this.d.getMonth();\n var currentDay = this.d.getDate();\n var leapYear = this._isLeapYear();\n var targetMonth = currentMonth + m;\n var clone = this.clone();\n var targetDaysOfMonth = currentDay;\n\n if (m) {\n if (targetMonth === 1) {\n targetDaysOfMonth = leapYear ? 29 : 28;\n } else {\n if (m > 0) {\n clone.d.setMonth(targetMonth + 1, 0);\n } else {\n clone.d.setMonth(currentMonth, 0);\n }\n targetDaysOfMonth = clone.d.getDate();\n }\n }\n\n this.d.setMonth(targetMonth, Math.min(currentDay, targetDaysOfMonth));\n\n return this;\n};\n\n/**\n * Is leap year or not\n * @returns {boolean}\n */\nDW.prototype._isLeapYear = function() {\n var year = this.d.getFullYear();\n\n return ((year % 4 === 0) && (year % 100 !== 0)) || !(year % 400);\n};\n\n/**\n * Set hour, minutes, seconds, milliseconds\n * @param {number} h - hours\n * @param {number} m - minutes\n * @param {number} s - seconds\n * @param {number} ms - milliseconds\n * @returns {DW} wrapper object\n */\nDW.prototype.setHours = function(h, m, s, ms) {\n this.d.setHours(h, m, s, ms);\n\n return this;\n};\n\n/**\n * Whether date is between supplied dates?\n * @param {TZDate|DW} d1 - from date\n * @param {TZDate|DW} d2 - to date\n * @returns {boolean} is between?\n */\nDW.prototype.isBetween = function(d1, d2) {\n var safe = this.safe;\n\n return safe(d1) <= this.d && this.d <= safe(d2);\n};\n\nmodule.exports = DW;\n","/**\n * @fileoverview Floating layer module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for floating layer module\n * @param {HTMLElement} container - parent continer for floating layer\n */\nfunction FloatingLayer(options, container) {\n var sibling = container[FloatingLayer.PROP_KEY],\n layerContainer;\n\n if (!sibling) {\n sibling = container[FloatingLayer.PROP_KEY] = [];\n }\n\n sibling.push(this);\n\n /**\n * @type {Collection}\n */\n this.sibling = sibling;\n\n /**\n * @type {number}\n */\n this.zIndex = this.getLargestZIndex() || FloatingLayer.INIT_ZINDEX;\n\n layerContainer = document.createElement('div');\n layerContainer.style.display = 'none';\n layerContainer.style.position = 'absolute';\n domutil.addClass(layerContainer, config.classname('floating-layer'));\n container.appendChild(layerContainer);\n\n View.call(this, layerContainer);\n\n /**\n * @type {HTMLElement}\n */\n this.parent = container;\n}\n\nutil.inherit(FloatingLayer, View);\n\n/**\n * @const\n */\nFloatingLayer.PROP_KEY = '__fe_floating_layer';\n\n/**\n * @const\n */\nFloatingLayer.INIT_ZINDEX = 999;\n\n/**\n * Destroy floating layer instance. if there no instnace in parent container\n *\n * remove instance cache property in container element\n */\nFloatingLayer.prototype.destroy = function() {\n var parent = this.parent,\n sibling = this.sibling,\n i = 0, cnt = sibling.length;\n\n for (; i < cnt; i += 1) {\n if (sibling[i] === this) {\n sibling.splice(i, 1);\n break;\n }\n }\n\n if (!sibling.length) {\n try {\n delete parent[FloatingLayer.PROP_KEY];\n } catch (e) {\n parent[FloatingLayer.PROP_KEY] = null;\n }\n\n parent.style.position = '';\n }\n\n domutil.remove(this.container);\n\n this.sibling = null;\n\n View.prototype.destroy.call(this);\n};\n\n/**\n * @returns {boolean} whether layer is visible?\n */\nFloatingLayer.prototype.isVisible = function() {\n return this.container.style.display !== 'none';\n};\n\n/**\n * Set layer position\n * @param {number} x - x coordinate of layer\n * @param {number} y - y coordinate of layer\n */\nFloatingLayer.prototype.setPosition = function(x, y) {\n domutil.setPosition(this.container, x, y);\n};\n\n/**\n * Set layer left, top, right, bottom position\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\nFloatingLayer.prototype.setLTRB = function(ltrb) {\n domutil.setLTRB(this.container, ltrb);\n};\n\n/**\n * Set layer size\n * @param {number|string} w - layer width\n * @param {number|string} h - layer height\n */\nFloatingLayer.prototype.setSize = function(w, h) {\n var container = this.container;\n\n w = util.isNumber(w) ? w + 'px' : w;\n h = util.isNumber(h) ? h + 'px' : h;\n\n container.style.width = w;\n container.style.height = h;\n};\n\n/**\n * Set layer content\n * @param {string} html - html string\n */\nFloatingLayer.prototype.setContent = function(html) {\n this.container.innerHTML = html;\n};\n\n/**\n * Get largest z-index from sibling layers\n * @returns {number} largest z-index value\n */\nFloatingLayer.prototype.getLargestZIndex = function() {\n var zIndexes = util.map(this.sibling, function(layer) {\n return layer.zIndex;\n });\n\n return Math.max.apply(null, zIndexes);\n};\n\n/**\n * Set focus to layer\n */\nFloatingLayer.prototype.focus = function() {\n var zIndexForShow = this.getLargestZIndex() + 1;\n this.container.style.zIndex = this.zIndex = zIndexForShow;\n};\n\n/**\n * Show layer\n */\nFloatingLayer.prototype.show = function() {\n this.focus();\n this.container.style.display = 'block';\n};\n\n/**\n * Hide layer\n */\nFloatingLayer.prototype.hide = function() {\n this.container.style.display = 'none';\n};\n\nmodule.exports = FloatingLayer;\n","/**\n * @fileoverview Mixin module for models.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar TZDate = require('../common/timezone').Date;\nvar util = require('tui-code-snippet');\nvar spaceRx = /^\\s*|\\s*$/g,\n model;\n\nvar datetime = require('../common/datetime');\n\n/**\n * Mixin module for models.\n * @mixin\n */\nmodel = {\n /**\n * string trim\n * @param {string} str string to trim\n * @returns {string} trimed string\n */\n trim: function(str) {\n return str.replace(spaceRx, '');\n },\n /**\n * The collections of validator functions.\n */\n validators: {\n /**\n * check all of supplied fields(property) is not undefined or empty string.\n * @param {object} instance model instance.\n * @param {string[]} fields property names to check.\n * @returns {boolean} return true when supplied fields are not undefined or empty string.\n */\n required: function(instance, fields) {\n var valid = true,\n isValid = function(obj) {\n return !util.isUndefined(obj) && model.trim(obj) !== '';\n };\n\n util.forEach(fields, function(fieldName) {\n valid = isValid(instance[fieldName]);\n\n return valid;\n });\n\n return valid;\n },\n\n /**\n * check supplied fields are valid dates and valid date ranges.\n * @param {object} instance model instance.\n * @param {Date[]} fields array of date range (start, end)\n * @returns {boolean} is valid date range?\n */\n dateRange: function(instance, fields) {\n var start, end;\n\n if (!util.isExisty(instance) || fields.length !== 2) {\n return true;\n }\n\n start = new TZDate(instance[fields[0]]);\n end = new TZDate(instance[fields[1]]);\n\n if (!datetime.isValid(start) || !datetime.isValid(end)) {\n return false;\n }\n\n if (datetime.compare(start, end) === 1) {\n return false;\n }\n\n return true;\n }\n },\n\n /**\n * Check validate for model instance.\n *\n * The validate are works on a basis of constructor's \"schema\" property.\n *\n * You can customize validators add some method to model#validators.\n * @returns {Boolean} model is valid?\n */\n isValid: function() {\n var self = this,\n schema = this.constructor.schema,\n validators = model.validators,\n validator,\n valid = true;\n\n if (!schema) {\n return true;\n }\n\n util.forEach(schema, function(values, validatorName) {\n validator = validators[validatorName];\n\n if (validator) {\n valid = validator(self, values);\n\n return valid; // returning false can stop this loop\n }\n\n return true;\n });\n\n return valid;\n },\n\n /**\n * Make data object form instance.\n *\n * It return object fill with all owned properties but exclude functions.\n * @returns {object} Data object\n */\n parameterize: function() {\n var param = {},\n isFunc = util.isFunction;\n\n util.forEach(this, function(value, propName) {\n if (!isFunc(value)) {\n param[propName] = value;\n }\n });\n\n return param;\n },\n\n /**\n * Mixin model module to supplied target.\n * @param {Object} target The object of want to mixed.\n * @example\n * function Man() {\n * this.name = 'john';\n * }\n * model.mixin(Man.prototype);\n */\n mixin: function(target) {\n util.forEach(model, function(method, name) {\n if (name !== 'mixin') {\n target[name] = method;\n }\n });\n }\n};\n\nmodule.exports = model;\n","/**\n * @fileoverview\n * Class for represent two dimensional x, y coordinates.\n *\n * It suppliy a group of functions for manipulate coordinates.\n * @author NHN FE Development Lab \n * @example\n * var p = point(10, 10);\n * var r1 = p.add(Point(5, 5));\n * console.log(p.toString()) // \"Point(10, 10)\"\n * console.log(r1.toString()) // \"Point(15, 15)\"\n *\n * var p2 = new Point(10, 10);\n * p2._add(point(5, 5));\n * console.log(p2.toString()) // \"Point(15, 15)\"\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\n/**\n * Class for represent two dimentional x, y coordinates.\n * @constructor\n * @param {number} x The number of X coordinates.\n * @param {number} y The number of Y coordinates.\n * @param {boolean} [useRound=false] set true when each coordinates are rounded before initialize.\n * @example\n * var t = new Point(13, 5);\n */\nfunction Point(x, y, useRound) {\n /**\n * @type {number}\n */\n this.x = (useRound ? Math.round(x) : x);\n\n /**\n * @type {number}\n */\n this.y = (useRound ? Math.round(y) : y);\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Calculate point ratio.\n * @param {Point} point The instance of point.\n * @param {number} factor From factor\n * @param {number} toFactor To factor\n * @returns {Point} Point instance calculated.\n */\nPoint.getRatio = function(point, factor, toFactor) {\n if (factor === toFactor) {\n return point.clone();\n }\n\n return point.multiplyBy(toFactor)._divideBy(factor);\n};\n\n/**\n * Syntatic sugar of new Point()\n * @param {(Point|number|number[])} x X coordinate value.\n * @param {(number|boolean)} [y] Y coordinate value or boolean value for coordinates round.\n * @param {boolean} [useRound] Set true then round initial coordinate values.\n * @returns {Point} The instance of point.\n * @example\n * var p1 = point(10, 15);\n * var p2 = point([10, 15]);\n */\nPoint.n = function(x, y, useRound) {\n if (x instanceof Point) {\n return x;\n }\n\n if (util.isArray(x)) {\n return new Point(x[0], x[1], y);\n }\n\n return new Point(x, y, useRound);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Clone points\n * @returns {Point} The point instance cloned.\n */\nPoint.prototype.clone = function() {\n return new Point(this.x, this.y);\n};\n\n/**\n * Add points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.add = function(point) {\n return this.clone()._add(Point.n(point));\n};\n\n/**\n * Add self points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._add = function(point) {\n this.x += point.x;\n this.y += point.y;\n\n return this;\n};\n\n/**\n * Subtract points.\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.subtract = function(point) {\n return this.clone()._subtract(Point.n(point));\n};\n\n/**\n * Subtract points. (manipulate self)\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._subtract = function(point) {\n this.x -= point.x;\n this.y -= point.y;\n\n return this;\n};\n\n/**\n * Divide points.\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.divideBy = function(num) {\n return this.clone()._divideBy(num);\n};\n\n/**\n * Divide points. (manipulate self)\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._divideBy = function(num) {\n this.x /= num;\n this.y /= num;\n\n return this;\n};\n\n/**\n * Multiply coordinates.\n * @param {number} num Thyen number to multiply\n * @returns {Point} Point calculated.\n */\nPoint.prototype.multiplyBy = function(num) {\n return this.clone()._multiplyBy(num);\n};\n\n/**\n * Multiply self coordinates.\n * @param {number} num The number to multiply.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._multiplyBy = function(num) {\n this.x *= num;\n this.y *= num;\n\n return this;\n};\n\n/**\n * Round coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.round = function() {\n return this.clone()._round();\n};\n\n/**\n * Round self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._round = function() {\n this.x = Math.round(this.x);\n this.y = Math.round(this.y);\n\n return this;\n};\n\n/**\n * Reverse values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.reverse = function() {\n return this.clone()._reverse();\n};\n\n/**\n * Reverse self values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._reverse = function() {\n this.x *= -1;\n this.y *= -1;\n\n return this;\n};\n\n/**\n * Floor coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.floor = function() {\n return this.clone()._floor();\n};\n\n/**\n * Floor self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._floor = function() {\n this.x = Math.floor(this.x);\n this.y = Math.floor(this.y);\n\n return this;\n};\n\n/**\n * Ceil coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.ceil = function() {\n return this.clone()._ceil();\n};\n\n/**\n * Ceil self coodinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._ceil = function() {\n this.x = Math.ceil(this.x);\n this.y = Math.ceil(this.y);\n\n return this;\n};\n\n/**\n * Rotate point.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype.rotate = function(deg, center, cos, sin) {\n return this.clone()._rotate(deg, center, cos, sin);\n};\n\n/**\n * Rotate self.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype._rotate = function(deg, center, cos, sin) {\n var rad = deg * (Math.PI / 180),\n x,\n y;\n\n cos = cos || parseFloat(Math.cos(rad).toFixed(8));\n sin = sin || parseFloat(Math.sin(rad).toFixed(8));\n\n this._subtract(center);\n\n x = this.x;\n y = this.y;\n\n this.x = (x * cos) - (y * sin);\n this.y = (x * sin) + (y * cos);\n\n this._add(center);\n\n return this;\n};\n\n/**\n * Calculate distance between two points.\n * @param {Point} point Point instance.\n * @returns {number} The number of distance between two points.\n */\nPoint.prototype.distanceTo = function(point) {\n var x,\n y;\n\n point = Point.n(point);\n\n x = point.x - this.x;\n y = point.y - this.y;\n\n return Math.sqrt((x * x) + (y * y));\n};\n\n/**\n * Check point equals.\n * @param {Point} point Point instance to compare\n * @returns {boolean} equality\n */\nPoint.prototype.equals = function(point) {\n point = Point.n(point);\n\n return point.x === this.x && point.y === this.y;\n};\n\n/**\n * Return formatted string. 'Point(x, y)'\n * @returns {string} string\n */\nPoint.prototype.toString = function() {\n return 'Point(' + this.x + ', ' + this.y + ')';\n};\n\n/**\n * Return coodinates to array. [x, y]\n * @returns {number[]} coordinate array.\n */\nPoint.prototype.toArray = function() {\n return [this.x, this.y];\n};\n\nmodule.exports = Point;\n","/**\n * @fileoverview RequestAnimFrame\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar requestFn,\n cancelFn;\n\n/**\n * Get name with vendor prefix\n * @param {string} name - name to prepend prefix\n * @returns {string} vendor prefixed name\n */\nfunction getPrefixed(name) {\n return global['webkit' + name] || global['moz' + name] || global['ms' + name];\n}\n\nrequestFn = global.requestAnimationFrame ||\n getPrefixed('RequestAnimationFrame') ||\n function(fn, context) {\n fn.call(context);\n };\n\ncancelFn = global.cancelAnimationFrame ||\n getPrefixed('CancelAnimationFrame') ||\n getPrefixed('CancelRequestAnimationFrame') ||\n function() {};\n\n/**\n * @module module:reqAnimFrame\n */\n\nmodule.exports = {\n /**\n * Shim of requestAnimationFrame\n * @param {function} fn callback function\n * @param {*} context context for callback\n * @returns {number} Unique id\n */\n requestAnimFrame: function(fn, context) {\n return requestFn.call(global, util.bind(fn, context));\n },\n\n /**\n * Shim of cancelAnimationFrame\n * @param {number} id requestAnimationFrame id\n */\n cancelAnimFrame: function(id) {\n if (!id) {\n return;\n }\n\n cancelFn.call(global, id);\n }\n};\n","/**\n * @fileoverview timezone\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar MIN_TO_MS = 60 * 1000;\nvar nativeOffsetMs = getTimezoneOffset();\nvar customOffsetMs = nativeOffsetMs;\nvar timezoneOffsetCallback = null;\nvar setByTimezoneOption = false;\n\nvar getterMethods = [\n 'getDate',\n 'getDay',\n 'getFullYear',\n 'getHours',\n 'getMilliseconds',\n 'getMinutes',\n 'getMonth',\n 'getSeconds'\n];\n\nvar setterMethods = [\n 'setDate',\n 'setFullYear',\n 'setHours',\n 'setMilliseconds',\n 'setMinutes',\n 'setMonth',\n 'setSeconds'\n];\n\n/**\n * Get the timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n * @private\n */\nfunction getTimezoneOffset(timestamp) {\n timestamp = timestamp || Date.now();\n\n return new Date(timestamp).getTimezoneOffset() * MIN_TO_MS;\n}\n\n/**\n * Get the custome timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n * @private\n */\nfunction getCustomTimezoneOffset(timestamp) {\n if (!setByTimezoneOption && timezoneOffsetCallback) {\n return timezoneOffsetCallback(timestamp) * MIN_TO_MS;\n }\n\n return customOffsetMs;\n}\n\n/**\n * Convert to local time\n * @param {number} time - time\n * @returns {number} local time\n */\nfunction getLocalTime(time) {\n var timezoneOffset = getTimezoneOffset(time);\n var customTimezoneOffset = getCustomTimezoneOffset(time);\n var timezoneOffsetDiff = customTimezoneOffset ? 0 : nativeOffsetMs - timezoneOffset;\n var localTime = time - customTimezoneOffset + timezoneOffset + timezoneOffsetDiff;\n\n return localTime;\n}\n\n/**\n * Create a Date instance with multiple arguments\n * @param {Array} args - arguments\n * @returns {Date}\n * @private\n */\nfunction createDateWithMultipleArgs(args) {\n var utc = Date.UTC.apply(null, args);\n\n return new Date(utc + getTimezoneOffset(utc));\n}\n\n/**\n * To convert a Date to TZDate as it is.\n * @param {TZDate|number|null} arg - date\n * @returns {Date}\n */\nfunction createDateWithUTCTime(arg) {\n var time;\n\n if (arg instanceof TZDate) {\n time = arg.getUTCTime();\n } else if ((typeof arg) === 'number') {\n time = arg;\n } else if (arg === null) {\n time = 0;\n } else {\n throw new Error('Invalid Type');\n }\n\n return new Date(time);\n}\n\n/**\n * Convert time to local time. Those times are only from API and not from inner source code.\n * @param {Date|string} arg - date\n * @returns {Date}\n */\nfunction createDateAsLocalTime(arg) {\n var time;\n\n if (arg instanceof Date) {\n time = arg.getTime();\n } else if ((typeof arg) === 'string') {\n time = Date.parse(arg);\n } else {\n throw new Error('Invalid Type');\n }\n\n time = getLocalTime(time);\n\n return new Date(time);\n}\n\n/**\n * is it for local time? These type can be used from Calendar API.\n * @param {Date|string} arg - date\n * @returns {boolean}\n */\nfunction useLocalTimeConverter(arg) {\n return arg instanceof Date || (typeof arg) === 'string';\n}\n\n/**\n * Timezone Date Class\n * @param {number|TZDate|Date|string} date - date to be converted\n * @constructor\n */\nfunction TZDate(date) {\n var nativeDate;\n\n if (util.isUndefined(date)) {\n date = Date.now();\n }\n\n if (arguments.length > 1) {\n nativeDate = createDateWithMultipleArgs(arguments);\n } else if (useLocalTimeConverter(date)) {\n nativeDate = createDateAsLocalTime(date);\n } else {\n nativeDate = createDateWithUTCTime(date);\n }\n\n this._date = nativeDate;\n}\n\n/**\n * Get milliseconds which is converted by timezone\n * @returns {number} milliseconds\n */\nTZDate.prototype.getTime = function() {\n var time = this._date.getTime();\n\n return time + getCustomTimezoneOffset(time) - getTimezoneOffset(time);\n};\n\n/**\n * Get UTC milliseconds\n * @returns {number} milliseconds\n */\nTZDate.prototype.getUTCTime = function() {\n return this._date.getTime();\n};\n\n/**\n * toUTCString\n * @returns {string}\n */\nTZDate.prototype.toUTCString = function() {\n return this._date.toUTCString();\n};\n\n/**\n * to Date\n * @returns {Date}\n */\nTZDate.prototype.toDate = function() {\n return this._date;\n};\n\nTZDate.prototype.valueOf = function() {\n return this.getTime();\n};\n\nTZDate.prototype.addDate = function(day) {\n this.setDate(this.getDate() + day);\n\n return this;\n};\n\nTZDate.prototype.addMinutes = function(minutes) {\n this.setMinutes(this.getMinutes() + minutes);\n\n return this;\n};\n\nTZDate.prototype.addMilliseconds = function(milliseconds) {\n this.setMilliseconds(this.getMilliseconds() + milliseconds);\n\n return this;\n};\n\n/* eslint-disable max-params*/\nTZDate.prototype.setWithRaw = function(y, M, d, h, m, s, ms) {\n this.setFullYear(y, M, d);\n this.setHours(h, m, s, ms);\n\n return this;\n};\n\n/**\n * @returns {TZDate} local time\n */\nTZDate.prototype.toLocalTime = function() {\n var time = this.getTime();\n var utcTime = this.getUTCTime();\n var diff = time - utcTime;\n\n return new TZDate(utcTime - diff);\n};\n\ngetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n return this._date[methodName].apply(this._date, arguments);\n };\n});\n\nsetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n this._date[methodName].apply(this._date, arguments);\n\n return this.getTime();\n };\n});\n\nmodule.exports = {\n Date: TZDate,\n\n /**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\n setOffset: function(offset) {\n customOffsetMs = offset * MIN_TO_MS;\n },\n\n /**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\n setOffsetByTimezoneOption: function(offset) {\n this.setOffset(-offset);\n setByTimezoneOption = true;\n },\n\n /**\n * Get offset in case of `setByTimezoneOption`. Or return 0.\n * @returns {number} timezone offset offset minutes\n */\n getOffset: function() {\n if (setByTimezoneOption) {\n return customOffsetMs / MIN_TO_MS;\n }\n\n return 0;\n },\n\n /**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - callback function\n */\n setOffsetCallback: function(callback) {\n timezoneOffsetCallback = callback;\n },\n\n /**\n * (Use this method only for testing)\n * Reset system timezone and custom timezone\n */\n restoreOffset: function() {\n customOffsetMs = getTimezoneOffset();\n }\n};\n","/**\n * @fileoverview Layout module that supplied split height, resize height features.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n domevent = require('./domevent'),\n View = require('../view/view'),\n VPanel = require('./vpanel'),\n Drag = require('../handler/drag');\n\nvar mAbs = Math.abs;\n\n/**\n * @typedef PanelOptions\n * @type {object}\n * @property {number} [minHeight=0] - minimum height of panel\n * @property {number} [height=0] - current panel height\n * @property {boolean} [splitter=false] - is this panel uses splitter?\n * @property {boolean} [autoHeight=false] - is this panel uses remain height of container?\n * @property {string} [className=''] - className string for add created element\n */\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VLayout module\n * @param {PanelOptions[]} [options.panels] - panels to add layout when initialize\n * @param {number[]} [options.panelHeights] - panel height list\n * @param {HTMLElement} container - container element\n * @param {Theme} theme - theme instance\n */\nfunction VLayout(options, container, theme) {\n var opt, tempHeights;\n\n if (!(this instanceof VLayout)) {\n return new VLayout(options, container);\n }\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('vlayout-container'));\n\n /**\n * @type {object}\n */\n opt = this.options = util.extend({\n panels: [],\n panelHeights: []\n }, options);\n\n /**\n * @type {VPanel[]}\n */\n this.panels = [];\n\n /**\n * @type {Drag}\n */\n this._drag = new Drag({\n distance: 10,\n exclude: function(target) {\n return !domutil.hasClass(target, config.classname('splitter'));\n }\n }, container);\n\n this._drag.on({\n dragStart: this._onDragStart,\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @type {object}\n */\n this._dragData = null;\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n if (opt.panels.length) {\n if (opt.panelHeights.length) {\n tempHeights = opt.panelHeights.slice();\n util.forEach(opt.panels, function(panelOpt) {\n if (!panelOpt.isSplitter && !panelOpt.autoHeight) {\n panelOpt.height = tempHeights.shift();\n }\n });\n }\n\n this.addPanels(opt.panels, this.container);\n }\n\n this.refresh();\n}\n\nutil.inherit(VLayout, View);\n\n/**\n * Get current panels height in layout\n * @returns {number[]} height of panels with `autoHeight` false\n */\nVLayout.prototype.getLayoutData = function() {\n var heightList = [];\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n heightList.push(panel.getHeight());\n });\n\n return heightList;\n};\n\n/**\n * Set panels height in layout\n * @param {number[]} heightList of panels with `autoHeight` false\n */\nVLayout.prototype.setLayoutData = function(heightList) {\n if (!heightList.length) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n panel.setHeight(null, heightList.shift());\n });\n\n this.refresh();\n};\n\n/**\n * Get next panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} next panel\n */\nVLayout.prototype.nextPanel = function(panel) {\n return this.panels[panel.index + 1];\n};\n\n/**\n * Get previous panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} previous panel\n */\nVLayout.prototype.prevPanel = function(panel) {\n return this.panels[panel.index - 1];\n};\n\n/**\n * Initialize resizing guide element\n * @param {HTMLElement} element - element to use guide element after cloned\n * @param {number} top - top pixel value for guide element\n * @returns {HTMLElement} cloned element == guide element\n */\nVLayout.prototype._initializeGuideElement = function(element, top) {\n var cloned = element.cloneNode(true);\n\n domutil.addClass(cloned, config.classname('splitter-guide'));\n this._refreshGuideElement(cloned, top);\n this.container.appendChild(cloned);\n\n return cloned;\n};\n\n/**\n * Refresh guide element position\n * @param {HTMLElement} element - guide element\n * @param {number} top - top pixel value for guide element\n */\nVLayout.prototype._refreshGuideElement = function(element, top) {\n element.style.top = top + 'px';\n};\n\n/**\n * Clear guide element position\n * @param {HTMLElement} element - guide element\n */\nVLayout.prototype._clearGuideElement = function(element) {\n domutil.remove(element);\n};\n\n/**\n * Resize overall panels size\n * @param {VPanel} splPanel - splitter panel instance\n * @param {number} startY - dragstart Y position\n * @param {number} mouseY - dragend Y position\n */\nVLayout.prototype._resize = function(splPanel, startY, mouseY) {\n var diffY = startY - mouseY,\n resizedHeight = mAbs(diffY),\n resizeMap = [],\n toDown = mouseY > startY,\n backwardMethod = toDown ? 'prevPanel' : 'nextPanel',\n forwardMethod = toDown ? 'nextPanel' : 'prevPanel',\n cursor, resizeInfo;\n\n cursor = this[backwardMethod](splPanel);\n resizeInfo = cursor.getResizeInfoByGrowth(resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n\n for (cursor = this[forwardMethod](cursor);\n util.isExisty(cursor);\n cursor = this[forwardMethod](cursor)) {\n if (cursor.isSplitter()) {\n continue;\n }\n\n resizeInfo = cursor.getResizeInfoByGrowth(-resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n resizedHeight -= resizeInfo[1];\n }\n\n util.forEach(resizeMap, function(pair) {\n pair[0].setHeight(null, pair[1], true);\n pair[0].fire('resize');\n });\n};\n\n/**\n * Get summation of splitter and panel's minimum height upper and below of supplied splitter\n * @param {VPanel} splPanel - splitter panel instance\n * @returns {number[]} upper and below splitter's height and panel minimum height summation.\n */\nVLayout.prototype._getMouseYAdditionalLimit = function(splPanel) {\n var upper = 0,\n below = 0,\n cursor,\n func = function(panel) {\n if (panel.isSplitter()) {\n return panel.getHeight();\n }\n\n return panel.options.minHeight;\n };\n\n for (cursor = this.prevPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.prevPanel(cursor)) {\n upper += func(cursor);\n }\n\n for (cursor = this.nextPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.nextPanel(cursor)) {\n below += func(cursor);\n }\n\n return [upper, below];\n};\n\n/**********\n * Drag Handlers\n **********/\n\n/**\n * Drag start schedule handler\n * @param {object} e - drag start schedule data\n */\nVLayout.prototype._onDragStart = function(e) {\n var oEvent = e.originEvent,\n target = e.target,\n splIndex = domutil.getData(target, 'panelIndex'),\n splPanel = this.panels[splIndex],\n splHeight = splPanel.getHeight(),\n splOffsetY = domevent.getMousePosition(oEvent, target)[1],\n mouseY = domevent.getMousePosition(oEvent, this.container)[1],\n guideElement = this._initializeGuideElement(target, mouseY);\n\n splPanel.addClass(config.classname('splitter-focused'));\n\n this._dragData = {\n splPanel: splPanel,\n splOffsetY: splOffsetY,\n guideElement: guideElement,\n startY: mouseY - splOffsetY,\n minY: 0,\n maxY: this.getViewBound().height - splHeight\n };\n\n if (!util.browser.msie) {\n domutil.addClass(document.body, config.classname('resizing'));\n }\n};\n\n/**\n * Drag schedule handler\n * @param {object} e - drag schedule data\n */\nVLayout.prototype._onDrag = function(e) {\n var dragData = this._dragData,\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n mouseY = common.limit(mouseY - dragData.splOffsetY, [dragData.minY], [dragData.maxY]);\n\n this._refreshGuideElement(dragData.guideElement, mouseY);\n};\n\n/**\n * Drag end schedule handler\n * @fires VLayout#resize\n * @param {object} e - dragend schedule data\n */\nVLayout.prototype._onDragEnd = function(e) {\n var dragData = this._dragData,\n asideMinMax = this._getMouseYAdditionalLimit(dragData.splPanel),\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n // mouseY value can't exceed summation of splitter height and panel's minimum height based on target splitter.\n mouseY = common.limit(\n mouseY - dragData.splOffsetY,\n [dragData.minY + asideMinMax[0]],\n [dragData.maxY - asideMinMax[1]]\n );\n\n this._resize(dragData.splPanel, dragData.startY, mouseY);\n\n /**\n * @event VLayout#resize\n * @type {object}\n * @property {number[]} layoutData - layout data after resized\n */\n this.fire('resize', {\n layoutData: this.getLayoutData()\n });\n\n this._dragData = null;\n this._clearGuideElement(dragData.guideElement);\n dragData.splPanel.removeClass(config.classname('splitter-focused'));\n domutil.removeClass(document.body, config.classname('resizing'));\n};\n\n/**********\n * Methods\n **********/\n\n/**\n * refresh each panels\n */\nVLayout.prototype.refresh = function() {\n var panelToFillHeight = [];\n var layoutHeight = this.getViewBound().height;\n var usedHeight = 0;\n var remainHeight;\n\n if (!layoutHeight) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.options.autoHeight) {\n panelToFillHeight.push(panel);\n } else {\n usedHeight += panel.getHeight();\n }\n });\n\n remainHeight = (layoutHeight - usedHeight) / panelToFillHeight.length;\n\n util.forEach(panelToFillHeight, function(panel) {\n panel.setHeight(null, remainHeight);\n });\n};\n\n/**\n * add panel\n * @param {PanelOptions} options - options for panel\n * @param {container} [container] - container element\n */\nVLayout.prototype.addPanel = function(options, container) {\n var element = document.createElement('div'),\n panels = this.panels,\n index = panels.length;\n\n options = util.extend({\n index: index\n }, options);\n\n panels.push(new VPanel(options, element, this.theme));\n\n container.appendChild(element);\n};\n\n/**\n * Add multiple panel\n * @param {PanelOptions[]} options - panel options list\n * @param {HTMLElement} container - container element\n */\nVLayout.prototype.addPanels = function(options, container) {\n var self = this,\n frag = document.createDocumentFragment();\n\n util.forEach(options, function(option) {\n self.addPanel(option, frag);\n });\n\n container.appendChild(frag);\n};\n\n/**\n * Get a panel by name\n * @param {string} name - panel's name\n * @returns {VPanel}\n */\nVLayout.prototype.getPanelByName = function(name) {\n var found;\n util.forEach(this.panels, function(panel) {\n if (panel.name === name) {\n found = panel;\n }\n });\n\n return found;\n};\n\nmodule.exports = VLayout;\n","/**\n * @fileoverview Panel class for VLayout module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VPanel\n * @param {number} options.index - index of panel in vlayout\n * @param {number} [options.minHeight=0] - minimum height of panel\n * @param {number} [options.height] - initial height of panel\n * @param {boolean} [options.isSplitter=false] - set true then this panel works splitter\n * @param {boolean} [options.autoHeight=false] - set true then this panel use remain height after other panel resized.\n * @param {string} [options.className] - additional class name to add element\n * @param {HTMLElement} container - container element\n * @param {Theme} theme - theme instance\n */\nfunction VPanel(options, container, theme) {\n View.call(this, container);\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n index: 0,\n name: '0',\n minHeight: 0,\n maxHeight: null,\n height: null,\n isSplitter: false,\n autoHeight: false,\n className: ''\n }, options);\n\n /**\n * @type {number}\n */\n this.index = this.options.index;\n\n /**\n * @type {string}\n */\n this.name = this.options.name || String(this.index);\n\n this.isHeightForcedSet = false;\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n this._initPanel(this.options, container);\n}\n\nutil.inherit(VPanel, View);\n\n/**\n * whether this panel is splitter?\n * @returns {boolean} panel is splitter?\n */\nVPanel.prototype.isSplitter = function() {\n return this.options.isSplitter;\n};\n\n/**\n * set max height of panel\n * @param {number} maxHeight - maxHeight\n */\nVPanel.prototype.setMaxHeight = function(maxHeight) {\n if (!this.options.autoHeight) {\n this.options.maxHeight = maxHeight;\n }\n};\n\n/**\n * set forced height flag\n * @param {boolean} set - enable or not\n */\nVPanel.prototype.setHeightForcedSet = function(set) {\n this.isHeightForcedSet = set;\n};\n\n/**\n * get forced height flag\n * @returns {boolean} set - enable or not\n */\nVPanel.prototype.getHeightForcedSet = function() {\n return this.isHeightForcedSet;\n};\n\n/**\n * set height of html element\n * @param {HTMLElement} [container] - container element\n * @param {number} newHeight - height\n * @param {boolean} force - whether ignore max-length\n */\nVPanel.prototype.setHeight = function(container, newHeight, force) {\n var maxHeight = this.options.maxHeight;\n var minHeight = this.options.minHeight;\n var autoHeight = this.options.autoHeight;\n container = container || this.container;\n\n // 한번 force 호출이 일어난 이후에는 force 호출만 허용한다\n if (!force && this.isHeightForcedSet && !autoHeight) {\n return;\n }\n\n if (force) {\n this.isHeightForcedSet = true;\n } else if (maxHeight) {\n newHeight = Math.min(newHeight, maxHeight);\n }\n newHeight = Math.max(minHeight, newHeight);\n\n container.style.height = newHeight + 'px';\n};\n\n/**\n * Calculate new height of panel and remains by supplied height growth\n * @param {number} growth - growth value\n * @returns {number[]} newHeight, remainHeight\n */\nVPanel.prototype.getResizeInfoByGrowth = function(growth) {\n var height = this.getHeight(),\n newHeight = height + growth,\n resizeTo = Math.max(0, newHeight, this.options.minHeight);\n\n return [resizeTo, height - resizeTo];\n};\n\n/**\n * get outer height of panel element\n * @returns {number} outer height of panel element\n */\nVPanel.prototype.getHeight = function() {\n return domutil.getSize(this.container)[1];\n};\n\n/**\n * add design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.addClass = function(className) {\n domutil.addClass(this.container, className);\n};\n\n/**\n * remove design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.removeClass = function(className) {\n domutil.removeClass(this.container, className);\n};\n\n/**\n * initialize panel element\n * @param {PanelOptions} options - options for panel\n * @param {HTMLDivElement} container - panel element\n */\nVPanel.prototype._initPanel = function(options, container) {\n var height;\n\n domutil.setData(container, 'panelIndex', options.index);\n\n if (options.isSplitter) {\n domutil.addClass(container, config.classname('splitter'));\n this.applyTheme();\n\n return;\n }\n\n if (options.className) {\n domutil.addClass(container, options.className);\n }\n\n if (options.autoHeight) {\n domutil.setData(container, 'autoHeight', true);\n } else {\n height = common.limit(options.height || 0,\n [options.minHeight],\n [options.maxHeight || options.height]\n );\n\n options.height = height;\n this.setHeight(container, height);\n }\n};\n\nVPanel.prototype.applyTheme = function() {\n var style = this.container.style;\n var theme = this.theme;\n\n if (!theme) {\n return;\n }\n\n style.borderTop = theme.week.vpanelSplitter.border || theme.common.border;\n style.borderBottom = theme.week.vpanelSplitter.border || theme.common.border;\n style.height = theme.week.vpanelSplitter.height;\n};\n\nmodule.exports = VPanel;\n","/**\n * @fileoverview Global configuration object module. This @echo syntax will change preprocess context. See gulpfile.js\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar cssPrefix = 'tui-full-calendar-',\n alldayGetViewID = new RegExp('^' + cssPrefix + 'weekday[\\\\s]tui-view-(\\\\d+)'),\n alldayCheckPermission = new RegExp('^' + cssPrefix + 'schedule(-title)?$'),\n timeGetViewID = new RegExp('^' + cssPrefix + 'time-date[\\\\s]tui-view-(\\\\d+)');\n\nvar config = {\n throwError: function(msg) {\n throw new Error(msg);\n },\n\n cssPrefix: cssPrefix,\n\n classname: function(str) {\n str = str || '';\n\n if (str.charAt(0) === '.') {\n return '.' + config.cssPrefix + str.slice(1);\n }\n\n return config.cssPrefix + str;\n },\n\n allday: {\n getViewIDRegExp: alldayGetViewID,\n checkCondRegExp: alldayCheckPermission\n },\n\n daygrid: {\n getViewIDRegExp: alldayGetViewID,\n checkCondRegExp: alldayCheckPermission\n },\n\n time: {\n getViewIDRegExp: timeGetViewID\n }\n};\n\nmodule.exports = config;\n","/**\n * @fileoverview Base calendar controller\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Schedule = require('../model/schedule');\nvar ScheduleViewModel = require('../model/viewModel/scheduleViewModel');\nvar datetime = require('../common/datetime');\nvar common = require('../common/common');\nvar Theme = require('../theme/theme');\n\n/**\n * @constructor\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @param {themeConfig} [options.theme] - theme object\n * @mixes util.CustomEvents\n */\nfunction Base(options) {\n options = options || {};\n\n /**\n * function for group each schedule models.\n * @type {function}\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {string} group key\n */\n this.groupFunc = options.groupFunc || function(viewModel) {\n var model = viewModel.model;\n\n if (viewModel.model.isAllDay) {\n return 'allday';\n }\n\n if (model.category === 'time' && (model.end - model.start > datetime.MILLISECONDS_PER_DAY)) {\n return 'allday';\n }\n\n return model.category;\n };\n\n /**\n * schedules collection.\n * @type {Collection}\n */\n this.schedules = common.createScheduleCollection();\n\n /**\n * Matrix for multidate schedules.\n * @type {object.}\n */\n this.dateMatrix = {};\n\n /**\n * Theme\n * @type {Theme}\n */\n this.theme = new Theme(options.theme);\n\n /**\n * Calendar list\n * @type {Array.}\n */\n this.calendars = [];\n}\n\n/**\n * Calculate contain dates in schedule.\n * @private\n * @param {Schedule} schedule The instance of schedule.\n * @returns {array} contain dates.\n */\nBase.prototype._getContainDatesInSchedule = function(schedule) {\n var scheduleStart = schedule.getStarts();\n var scheduleEnd = schedule.getEnds();\n var start = datetime.start(scheduleStart);\n var equalStartEnd = datetime.compare(scheduleStart, scheduleEnd) === 0;\n var endDate = equalStartEnd ? scheduleEnd : datetime.convertStartDayToLastDay(scheduleEnd);\n var end = datetime.end(endDate);\n var range = datetime.range(\n start,\n end,\n datetime.MILLISECONDS_PER_DAY\n );\n\n return range;\n};\n\n/****************\n * CRUD Schedule\n ****************/\n\n/**\n * Create a schedule instance from raw data.\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {object} options Data object to create schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that created.\n */\nBase.prototype.createSchedule = function(options, silent) {\n var schedule,\n scheduleData = {\n data: options\n };\n\n /**\n * @event Base#beforeCreateSchedule\n * @type {Calendar~Schedule[]}\n */\n if (!this.invoke('beforeCreateSchedule', scheduleData)) {\n return null;\n }\n\n schedule = this.addSchedule(Schedule.create(options));\n\n if (!silent) {\n /**\n * @event Base#createdSchedule\n * @type {Schedule}\n */\n this.fire('createdSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {Calendar~Schedule[]} dataList - dataObject list to create schedule.\n * @param {boolean} [silent=false] - set true then don't fire events.\n * @returns {Schedule[]} The instance list of Schedule that created.\n */\nBase.prototype.createSchedules = function(dataList, silent) {\n var self = this;\n\n return util.map(dataList, function(data) {\n return self.createSchedule(data, silent);\n });\n};\n\n/**\n * Update a schedule.\n * @emits Base#updateSchedule\n * @param {Schedule} schedule - schedule instance to update\n * @param {object} options updated object data.\n * @returns {Schedule} updated schedule instance\n */\nBase.prototype.updateSchedule = function(schedule, options) {\n var start = options.start || schedule.start;\n var end = options.end || schedule.end;\n\n options = options || {};\n\n if (options.category === 'allday') {\n options.isAllDay = true;\n }\n\n if (!util.isUndefined(options.isAllDay)) {\n schedule.set('isAllDay', options.isAllDay);\n }\n\n if (!util.isUndefined(options.calendarId)) {\n schedule.set('calendarId', options.calendarId);\n }\n\n if (options.title) {\n schedule.set('title', options.title);\n }\n\n if (options.body) {\n schedule.set('body', options.body);\n }\n\n if (options.start || options.end) {\n if (schedule.isAllDay) {\n schedule.setAllDayPeriod(start, end);\n } else {\n schedule.setTimePeriod(start, end);\n }\n }\n\n if (options.color) {\n schedule.set('color', options.color);\n }\n\n if (options.bgColor) {\n schedule.set('bgColor', options.bgColor);\n }\n\n if (options.borderColor) {\n schedule.set('borderColor', options.borderColor);\n }\n\n if (options.origin) {\n schedule.set('origin', options.origin);\n }\n\n if (!util.isUndefined(options.isPending)) {\n schedule.set('isPending', options.isPending);\n }\n\n if (!util.isUndefined(options.isFocused)) {\n schedule.set('isFocused', options.isFocused);\n }\n\n if (options.location) {\n schedule.set('location', options.location);\n }\n\n if (options.state) {\n schedule.set('state', options.state);\n }\n\n this._removeFromMatrix(schedule);\n this._addToMatrix(schedule);\n\n /**\n * @event Base#updateSchedule\n */\n this.fire('updateSchedule');\n\n return schedule;\n};\n\n/**\n * Delete schedule instance from controller.\n * @param {Schedule} schedule - schedule instance to delete\n * @returns {Schedule} deleted model instance.\n */\nBase.prototype.deleteSchedule = function(schedule) {\n this._removeFromMatrix(schedule);\n this.schedules.remove(schedule);\n\n return schedule;\n};\n\n/**\n * Set date matrix to supplied schedule instance.\n * @param {Schedule} schedule - instance of schedule.\n */\nBase.prototype._addToMatrix = function(schedule) {\n var ownMatrix = this.dateMatrix;\n var containDates = this._getContainDatesInSchedule(schedule);\n\n util.forEach(containDates, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd] = ownMatrix[ymd] || [];\n\n matrix.push(util.stamp(schedule));\n });\n};\n\n/**\n * Remove schedule's id from matrix.\n * @param {Schedule} schedule - instance of schedule\n */\nBase.prototype._removeFromMatrix = function(schedule) {\n var modelID = util.stamp(schedule);\n\n util.forEach(this.dateMatrix, function(matrix) {\n var index = util.inArray(modelID, matrix);\n\n if (~index) {\n matrix.splice(index, 1);\n }\n }, this);\n};\n\n/**\n * Add a schedule instance.\n * @emits Base#addedSchedule\n * @param {Schedule} schedule The instance of Schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that added.\n */\nBase.prototype.addSchedule = function(schedule, silent) {\n this.schedules.add(schedule);\n this._addToMatrix(schedule);\n\n if (!silent) {\n /**\n * @event Base#addedSchedule\n * @type {object}\n */\n this.fire('addedSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * split schedule model by ymd.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @param {Collection} scheduleCollection - collection of schedule model.\n * @returns {object.} splitted schedule model collections.\n */\nBase.prototype.splitScheduleByDateRange = function(start, end, scheduleCollection) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownMatrix = this.dateMatrix,\n result = {};\n\n util.forEachArray(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd],\n collection;\n\n collection = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n util.forEachArray(matrix, function(id) {\n scheduleCollection.doWhenHas(id, function(schedule) {\n collection.add(schedule);\n });\n });\n }\n });\n\n return result;\n};\n\n/**\n * Return schedules in supplied date range.\n *\n * available only YMD.\n * @param {TZDate} start start date.\n * @param {TZDate} end end date.\n * @returns {object.} schedule collection grouped by dates.\n */\nBase.prototype.findByDateRange = function(start, end) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownSchedules = this.schedules.items,\n ownMatrix = this.dateMatrix,\n dformat = datetime.format,\n result = {},\n matrix,\n ymd,\n viewModels;\n\n util.forEachArray(range, function(date) {\n ymd = dformat(date, 'YYYYMMDD');\n matrix = ownMatrix[ymd];\n viewModels = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n viewModels.add.apply(viewModels, util.map(matrix, function(id) {\n return ScheduleViewModel.create(ownSchedules[id]);\n }));\n }\n });\n\n return result;\n};\n\nBase.prototype.clearSchedules = function() {\n this.dateMatrix = {};\n this.schedules.clear();\n /**\n * for inner view when clear schedules\n * @event Base#clearSchedules\n * @type {Schedule}\n */\n this.fire('clearSchedules');\n};\n\n/**\n * Set a theme.\n * @param {themeConfig} theme - theme keys, styles\n * @returns {Array.} keys - error keys not predefined.\n */\nBase.prototype.setTheme = function(theme) {\n return this.theme.setStyles(theme);\n};\n\n/**\n * Set calendar list\n * @param {Array.} calendars - calendar list\n */\nBase.prototype.setCalendars = function(calendars) {\n this.calendars = calendars;\n};\n\n// mixin\nutil.CustomEvents.mixin(Base);\n\nmodule.exports = Base;\n","/**\n * @fileoverview Core methods for schedule block placing\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachArr = util.forEachArray,\n aps = Array.prototype.slice;\n\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar Collection = require('../../common/collection');\nvar ScheduleViewModel = require('../../model/viewModel/scheduleViewModel');\n\nvar Core = {\n /**\n * Calculate collision group.\n * @param {array} viewModels List of viewmodels.\n * @returns {array} Collision Group.\n */\n getCollisionGroup: function(viewModels) {\n var collisionGroups = [],\n foundPrevCollisionSchedule = false,\n previousScheduleList;\n\n if (!viewModels.length) {\n return collisionGroups;\n }\n\n collisionGroups[0] = [util.stamp(viewModels[0].valueOf())];\n forEachArr(viewModels.slice(1), function(schedule, index) {\n foundPrevCollisionSchedule = false;\n previousScheduleList = aps.apply(viewModels, [0, index + 1]).reverse();\n\n forEachArr(previousScheduleList, function(previous) {\n if (schedule.collidesWith(previous)) {\n // If overlapping previous schedules, find a Collision Group of overlapping schedules and add this schedules\n foundPrevCollisionSchedule = true;\n\n forEachArr(collisionGroups.slice(0).reverse(), function(group) {\n if (~util.inArray(util.stamp(previous.valueOf()), group)) {\n // If you find a previous schedule that overlaps, include it in the Collision Group to which it belongs.\n group.push(util.stamp(schedule.valueOf()));\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n if (!foundPrevCollisionSchedule) {\n // This schedule is a schedule that does not overlap with the previous schedule, so a new Collision Group is constructed.\n collisionGroups.push([util.stamp(schedule.valueOf())]);\n }\n });\n\n return collisionGroups;\n },\n\n /**\n * Get row length by column index in 2d matrix.\n * @param {array[]} arr2d Matrix\n * @param {number} col Column index.\n * @returns {number} Last row number in column.\n */\n getLastRowInColumn: function(arr2d, col) {\n var row = arr2d.length;\n\n while (row > 0) {\n row -= 1;\n if (!util.isUndefined(arr2d[row][col])) {\n return row;\n }\n }\n\n return false;\n },\n\n /**\n * Calculate matrix for appointment block element placing.\n * @param {Collection} collection model collection.\n * @param {array[]} collisionGroups Collision groups for schedule set.\n * @returns {array} matrices\n */\n getMatrices: function(collection, collisionGroups) {\n var result = [],\n getLastRowInColumn = Core.getLastRowInColumn;\n\n forEachArr(collisionGroups, function(group) {\n var matrix = [[]];\n\n forEachArr(group, function(scheduleID) {\n var schedule = collection.items[scheduleID],\n col = 0,\n found = false,\n nextRow,\n lastRowInColumn;\n\n while (!found) {\n lastRowInColumn = getLastRowInColumn(matrix, col);\n\n if (lastRowInColumn === false) {\n matrix[0].push(schedule);\n found = true;\n } else if (!schedule.collidesWith(matrix[lastRowInColumn][col])) {\n nextRow = lastRowInColumn + 1;\n if (util.isUndefined(matrix[nextRow])) {\n matrix[nextRow] = [];\n }\n matrix[nextRow][col] = schedule;\n found = true;\n }\n\n col += 1;\n }\n });\n\n result.push(matrix);\n });\n\n return result;\n },\n\n /**\n * Filter that get schedule model in supplied date ranges.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @returns {function} schedule filter function\n */\n getScheduleInDateRangeFilter: function(start, end) {\n return function(model) {\n var ownStarts = model.getStarts(),\n ownEnds = model.getEnds();\n\n // shorthand condition of\n //\n // (ownStarts >= start && ownEnds <= end) ||\n // (ownStarts < start && ownEnds >= start) ||\n // (ownEnds > end && ownStarts <= end)\n return !(ownEnds < start || ownStarts > end);\n };\n },\n\n /**\n * Position each view model for placing into container\n * @param {Date} start - start date to render\n * @param {Date} end - end date to render\n * @param {array} matrices - matrices from controller\n * @param {function} [iteratee] - iteratee function invoke each view models\n */\n positionViewModels: function(start, end, matrices, iteratee) {\n var ymdListToRender;\n\n ymdListToRender = util.map(\n datetime.range(start, end, datetime.MILLISECONDS_PER_DAY),\n function(date) {\n return datetime.format(date, 'YYYYMMDD');\n }\n );\n\n forEachArr(matrices, function(matrix) {\n forEachArr(matrix, function(column) {\n forEachArr(column, function(viewModel, index) {\n var ymd, dateLength;\n\n if (!viewModel) {\n return;\n }\n\n ymd = datetime.format(viewModel.getStarts(), 'YYYYMMDD');\n dateLength = datetime.range(\n datetime.start(viewModel.getStarts()),\n datetime.end(viewModel.getEnds()),\n datetime.MILLISECONDS_PER_DAY\n ).length;\n\n viewModel.top = index;\n viewModel.left = util.inArray(ymd, ymdListToRender);\n viewModel.width = dateLength;\n\n if (iteratee) {\n iteratee(viewModel);\n }\n });\n });\n });\n },\n\n /**\n * Limit start, end date each view model for render properly\n * @param {TZDate} start - start date to render\n * @param {TZDate} end - end date to render\n * @param {Collection|ScheduleViewModel} viewModelColl - schedule view\n * model collection or ScheduleViewModel\n * @returns {ScheduleViewModel} return view model when third parameter is\n * view model\n */\n limitRenderRange: function(start, end, viewModelColl) {\n /**\n * Limit render range for view models\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {ScheduleViewModel} view model that limited render range\n */\n function limit(viewModel) {\n if (viewModel.getStarts() < start) {\n viewModel.exceedLeft = true;\n viewModel.renderStarts = new TZDate(start);\n }\n\n if (viewModel.getEnds() > end) {\n viewModel.exceedRight = true;\n viewModel.renderEnds = new TZDate(end);\n }\n\n return viewModel;\n }\n\n if (viewModelColl.constructor === Collection) {\n viewModelColl.each(limit);\n\n return null;\n }\n\n return limit(viewModelColl);\n },\n\n /**\n * Convert schedule model collection to view model collection.\n * @param {Collection} modelColl - collection of schedule model\n * @returns {Collection} collection of schedule view model\n */\n convertToViewModel: function(modelColl) {\n var viewModelColl;\n\n viewModelColl = new Collection(function(viewModel) {\n return viewModel.cid();\n });\n\n modelColl.each(function(model) {\n viewModelColl.add(ScheduleViewModel.create(model));\n });\n\n return viewModelColl;\n }\n};\n\nmodule.exports = Core;\n","/**\n * @fileoverview Controller mixin for Month View\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar array = require('../../common/array'),\n datetime = require('../../common/datetime'),\n Collection = require('../../common/collection');\nvar mmax = Math.max;\n\nvar Month = {\n /**\n * Filter function for find time schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is time schedule?\n */\n _onlyTimeFilter: function(viewModel) {\n return !viewModel.model.isAllDay && !viewModel.hasMultiDates;\n },\n\n /**\n * Filter function for find allday schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is allday schedule?\n */\n _onlyAlldayFilter: function(viewModel) {\n return viewModel.model.isAllDay || viewModel.hasMultiDates;\n },\n\n /**\n * Weight top value +1 for month view render\n * @param {ScheduleViewModel} viewModel - schedule view model\n */\n _weightTopValue: function(viewModel) {\n viewModel.top = viewModel.top || 0;\n viewModel.top += 1;\n },\n\n /**\n * Adjust render range to render properly.\n *\n * Limit start, end for each allday schedules and expand start, end for\n * each time schedules\n * @this Base\n * @param {TZDate} start - render start date\n * @param {TZDate} end - render end date\n * @param {Collection} vColl - view model collection\n * property.\n */\n _adjustRenderRange: function(start, end, vColl) {\n var ctrlCore = this.Core;\n\n vColl.each(function(viewModel) {\n if (viewModel.model.isAllDay || viewModel.hasMultiDates) {\n ctrlCore.limitRenderRange(start, end, viewModel);\n }\n });\n },\n\n /**\n * Get max top index value for allday schedules in specific date (YMD)\n * @this Base\n * @param {string} ymd - yyyymmdd formatted value\n * @param {Collection} vAlldayColl - collection of allday schedules\n * @returns {number} max top index value in date\n */\n _getAlldayMaxTopIndexAtYMD: function(ymd, vAlldayColl) {\n var dateMatrix = this.dateMatrix,\n topIndexesInDate = [];\n util.forEach(dateMatrix[ymd], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topIndexesInDate.push(viewModel.top);\n });\n });\n\n if (topIndexesInDate.length > 0) {\n return mmax.apply(null, topIndexesInDate);\n }\n\n return 0;\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _adjustTimeTopIndex: function(vColl) {\n var ctrlMonth = this.Month;\n var getAlldayMaxTopIndexAtYMD = ctrlMonth._getAlldayMaxTopIndexAtYMD;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var maxIndexInYMD = {};\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD];\n\n if (util.isUndefined(alldayMaxTopInYMD)) {\n alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD] =\n getAlldayMaxTopIndexAtYMD(scheduleYMD, vAlldayColl);\n }\n maxIndexInYMD[scheduleYMD] = timeViewModel.top =\n (alldayMaxTopInYMD + 1);\n });\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _stackTimeFromTop: function(vColl) {\n var ctrlMonth = this.Month;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var indiceInYMD = {};\n var dateMatrix = this.dateMatrix;\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var topArrayInYMD = indiceInYMD[scheduleYMD];\n var maxTopInYMD;\n var i;\n\n if (util.isUndefined(topArrayInYMD)) {\n topArrayInYMD = indiceInYMD[scheduleYMD] = [];\n util.forEach(dateMatrix[scheduleYMD], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topArrayInYMD.push(viewModel.top);\n });\n });\n }\n\n if (util.inArray(timeViewModel.top, topArrayInYMD) >= 0) {\n maxTopInYMD = mmax.apply(null, topArrayInYMD) + 1;\n for (i = 1; i <= maxTopInYMD; i += 1) {\n timeViewModel.top = i;\n if (util.inArray(timeViewModel.top, topArrayInYMD) < 0) {\n break;\n }\n }\n }\n topArrayInYMD.push(timeViewModel.top);\n });\n },\n\n /**\n * Convert multi-date time schedule to all-day schedule\n * @this Base\n * @param {Collection} vColl - view model collection\n * property.\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n var start = model.getStarts();\n var end = model.getEnds();\n\n viewModel.hasMultiDates = !datetime.isSameDate(start, end);\n\n if (!model.isAllDay && viewModel.hasMultiDates) {\n viewModel.renderStarts = datetime.start(start);\n viewModel.renderEnds = datetime.convertStartDayToLastDay(end);\n }\n });\n },\n\n /**\n * Find schedule and get view model for specific month\n * @this Base\n * @param {TZDate} start - start date to find schedules\n * @param {TZDate} end - end date to find schedules\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @param {boolean} [alldayFirstMode=false] if true, time schedule is lower than all-day schedule. Or stack schedules from the top.\n * @returns {object} view model data\n */\n findByDateRange: function(start, end, andFilters, alldayFirstMode) {\n var ctrlCore = this.Core,\n ctrlMonth = this.Month,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n coll, vColl, vList,\n collisionGroup,\n matrices;\n\n alldayFirstMode = alldayFirstMode || false;\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n coll = this.schedules.find(filter);\n vColl = ctrlCore.convertToViewModel(coll);\n ctrlMonth._addMultiDatesInfo(vColl);\n ctrlMonth._adjustRenderRange(start, end, vColl);\n vList = vColl.sort(array.compare.schedule.asc);\n\n collisionGroup = ctrlCore.getCollisionGroup(vList);\n matrices = ctrlCore.getMatrices(vColl, collisionGroup);\n ctrlCore.positionViewModels(start, end, matrices, ctrlMonth._weightTopValue);\n if (alldayFirstMode) {\n ctrlMonth._adjustTimeTopIndex(vColl);\n } else {\n ctrlMonth._stackTimeFromTop(vColl);\n }\n\n return matrices;\n }\n};\n\nmodule.exports = Month;\n","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Controller mixin modules for day views.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar Collection = require('../../common/collection');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * @mixin Base.Week\n */\nvar Week = {\n /**********\n * TIME GRID VIEW\n **********/\n\n /**\n * Make array with start and end times on schedules.\n * @this Base.Week\n * @param {array[]} matrix - matrix from controller.\n * @returns {array[]} starttime, endtime array (exclude first row's schedules)\n */\n generateTimeArrayInRow: function(matrix) {\n var row,\n col,\n schedule,\n start,\n end,\n map = [],\n cursor = [],\n maxColLen = Math.max.apply(null, util.map(matrix, function(col) {\n return col.length;\n }));\n\n for (col = 1; col < maxColLen; col += 1) {\n row = 0;\n schedule = util.pick(matrix, row, col);\n\n while (schedule) {\n start = schedule.getStarts().getTime() - datetime.millisecondsFrom('minutes', schedule.valueOf().goingDuration);\n end = schedule.getEnds().getTime() + datetime.millisecondsFrom('minutes', schedule.valueOf().comingDuration);\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n cursor.push([start, end]);\n\n row += 1;\n schedule = util.pick(matrix, row, col);\n }\n\n map.push(cursor);\n cursor = [];\n }\n\n return map;\n },\n\n /**\n * Get collision information from list\n * @this Base\n * @param {array.} arr - list to detecting collision. [[start, end], [start, end]]\n * @param {number} start - schedule start time that want to detect collisions.\n * @param {number} end - schedule end time that want to detect collisions.\n * @returns {boolean} target has collide in supplied array?\n */\n hasCollide: function(arr, start, end) {\n var startStart,\n startEnd,\n endStart,\n endEnd,\n getFunc = function(index) {\n return function(block) {\n return block[index];\n };\n },\n abs = Math.abs,\n compare = array.compare.num.asc,\n hasCollide;\n\n if (!arr.length) {\n return false;\n }\n\n startStart = abs(array.bsearch(arr, start, getFunc(0), compare));\n startEnd = abs(array.bsearch(arr, start, getFunc(1), compare));\n endStart = abs(array.bsearch(arr, end, getFunc(0), compare));\n endEnd = abs(array.bsearch(arr, end, getFunc(1), compare));\n hasCollide = !(startStart === startEnd && startEnd === endStart && endStart === endEnd);\n\n return hasCollide;\n },\n\n /**\n * Initialize values to viewmodels for detect real collision at rendering phase.\n * @this Base\n * @param {array[]} matrices - Matrix data.\n */\n getCollides: function(matrices) {\n util.forEachArray(matrices, function(matrix) {\n var binaryMap,\n maxRowLength;\n\n binaryMap = Week.generateTimeArrayInRow(matrix);\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n util.forEachArray(matrix, function(row) {\n util.forEachArray(row, function(viewModel, col) {\n var startTime,\n endTime,\n hasCollide,\n i;\n\n if (!viewModel) {\n return;\n }\n\n startTime = viewModel.getStarts().getTime();\n endTime = viewModel.getEnds().getTime();\n\n if (Math.abs(endTime - startTime) < SCHEDULE_MIN_DURATION) {\n endTime += SCHEDULE_MIN_DURATION;\n }\n\n startTime -= datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration);\n endTime += datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n\n endTime -= 1;\n\n for (i = (col + 1); i < maxRowLength; i += 1) {\n hasCollide = Week.hasCollide(binaryMap[i - 1], startTime, endTime);\n\n if (hasCollide) {\n viewModel.hasCollide = true;\n break;\n }\n\n viewModel.extraSpace += 1;\n }\n });\n });\n });\n },\n\n /**\n * create view model for time view part\n * @this Base\n * @param {Date} start - start date.\n * @param {Date} end - end date.\n * @param {Collection} time - view model collection.\n * @param {number} hourStart - start hour to be shown\n * @param {number} hourEnd - end hour to be shown\n * @returns {object} view model for time part.\n */\n getViewModelForTimeView: function(start, end, time, hourStart, hourEnd) {\n var self = this,\n ymdSplitted = this.splitScheduleByDateRange(start, end, time),\n result = {};\n\n var _getViewModel = Week._makeGetViewModelFuncForTimeView(hourStart, hourEnd);\n\n util.forEach(ymdSplitted, function(collection, ymd) {\n var viewModels = _getViewModel(collection);\n var collisionGroups, matrices;\n\n collisionGroups = self.Core.getCollisionGroup(viewModels);\n matrices = self.Core.getMatrices(collection, collisionGroups);\n self.Week.getCollides(matrices);\n\n result[ymd] = matrices;\n });\n\n return result;\n },\n\n /**\n * make view model function depending on start and end hour\n * if time view option has start or end hour condition\n * it add filter\n * @param {number} hourStart - start hour to be shown\n * @param {number} hourEnd - end hour to be shown\n * @returns {function} function\n */\n _makeGetViewModelFuncForTimeView: function(hourStart, hourEnd) {\n if (hourStart === 0 && hourEnd === 24) {\n return function(collection) {\n return collection.sort(array.compare.schedule.asc);\n };\n }\n\n return function(collection) {\n return collection.find(Week._makeHourRangeFilter(hourStart, hourEnd))\n .sort(array.compare.schedule.asc);\n };\n },\n\n /**\n * make a filter function that is not included range of start, end hour\n * @param {number} hStart - hour start\n * @param {number} hEnd - hour end\n * @returns {function} - filtering function\n */\n _makeHourRangeFilter: function(hStart, hEnd) {\n return function(schedule) {\n var ownHourStart = schedule.model.start;\n var ownHourEnd = schedule.model.end;\n var yyyy = ownHourStart.getFullYear();\n var mm = ownHourStart.getMonth();\n var dd = ownHourStart.getDate();\n\n var hourStart = new TZDate(yyyy, mm, dd).setHours(hStart);\n var hourEnd = new TZDate(yyyy, mm, dd).setHours(hEnd);\n\n return (ownHourStart >= hourStart && ownHourStart < hourEnd) ||\n (ownHourEnd > hourStart && ownHourEnd <= hourEnd) ||\n (ownHourStart < hourStart && ownHourEnd > hourStart) ||\n (ownHourEnd > hourEnd && ownHourStart < hourEnd);\n };\n },\n\n /**********\n * ALLDAY VIEW\n **********/\n\n /**\n * Set hasMultiDates flag to true and set date ranges for rendering\n * @this Base\n * @param {Collection} vColl - view model collection\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n viewModel.hasMultiDates = true;\n viewModel.renderStarts = datetime.start(model.getStarts());\n viewModel.renderEnds = datetime.end(model.getEnds());\n });\n },\n\n /**\n * create view model for allday view part\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {Collection} viewModelColl - allday schedule viewModel viewModels.\n * @returns {object} allday viewModel.\n */\n getViewModelForAlldayView: function(start, end, viewModelColl) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n viewModels,\n collisionGroups,\n matrices;\n\n if (!viewModelColl || !viewModelColl.length) {\n return [];\n }\n\n ctrlWeek._addMultiDatesInfo(viewModelColl);\n ctrlCore.limitRenderRange(start, end, viewModelColl);\n\n viewModels = viewModelColl.sort(array.compare.schedule.asc);\n collisionGroups = ctrlCore.getCollisionGroup(viewModels);\n\n matrices = ctrlCore.getMatrices(viewModelColl, collisionGroups);\n ctrlCore.positionViewModels(start, end, matrices);\n\n return matrices;\n },\n\n /**********\n * READ\n **********/\n\n /**\n * Populate schedules in date range.\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {Array.} panels - schedule panels like 'milestone', 'task', 'allday', 'time'\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @param {Object} options - week view options\n * @returns {object} schedules grouped by dates.\n */\n findByDateRange: function(start, end, panels, andFilters, options) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n scheduleTypes = util.pluck(panels, 'name'),\n hourStart = util.pick(options, 'hourStart'),\n hourEnd = util.pick(options, 'hourEnd'),\n modelColl,\n group;\n\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n modelColl = this.schedules.find(filter);\n modelColl = ctrlCore.convertToViewModel(modelColl);\n\n group = modelColl.groupBy(scheduleTypes, this.groupFunc);\n util.forEach(panels, function(panel) {\n var name = panel.name;\n if (panel.type === 'daygrid') {\n group[name] = ctrlWeek.getViewModelForAlldayView(start, end, group[name]);\n } else if (panel.type === 'timegrid') {\n group[name] = ctrlWeek.getViewModelForTimeView(start, end, group[name], hourStart, hourEnd);\n }\n });\n\n return group;\n },\n\n /* eslint max-nested-callbacks: 0 */\n /**\n * Make exceed date information\n * @param {number} maxCount - exceed schedule count\n * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n * @param {Array.} range - date range of one week\n * @returns {object} exceedDate\n */\n getExceedDate: function(maxCount, eventsInDateRange, range) {\n var exceedDate = {};\n\n util.forEach(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] = 0;\n });\n\n util.forEach(eventsInDateRange, function(matrix) {\n util.forEach(matrix, function(column) {\n util.forEach(column, function(viewModel) {\n var period;\n if (!viewModel || viewModel.top < maxCount) {\n return;\n }\n\n period = datetime.range(\n viewModel.getStarts(),\n viewModel.getEnds(),\n datetime.MILLISECONDS_PER_DAY\n );\n\n util.forEach(period, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] += 1;\n });\n });\n });\n });\n\n return exceedDate;\n },\n\n /**\n * Exclude overflow schedules from matrices\n * @param {array} matrices - The matrices for schedule placing.\n * @param {number} visibleScheduleCount - maximum visible count on panel\n * @returns {array} - The matrices for schedule placing except overflowed schedules.\n */\n excludeExceedSchedules: function(matrices, visibleScheduleCount) {\n return matrices.map(function(matrix) {\n return matrix.map(function(row) {\n if (row.length > visibleScheduleCount) {\n return row.filter(function(item) {\n return item.top < visibleScheduleCount;\n }, this);\n }\n\n return row;\n }, this);\n }, this);\n }\n};\n\nmodule.exports = Week;\n","/**\n * @fileoverview Factory module for control all other factory.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar GA_TRACKING_ID = 'UA-129951699-1';\n\nvar util = require('tui-code-snippet'),\n Handlebars = require('handlebars-template-loader/runtime');\nvar dw = require('../common/dw'),\n datetime = require('../common/datetime'),\n Layout = require('../view/layout'),\n Drag = require('../handler/drag'),\n controllerFactory = require('./controller'),\n weekViewFactory = require('./weekView'),\n monthViewFactory = require('./monthView'),\n TZDate = require('../common/timezone').Date,\n config = require('../config'),\n timezone = require('../common/timezone'),\n reqAnimFrame = require('../common/reqAnimFrame');\n\nvar mmin = Math.min;\n\n/**\n * Schedule information\n * @typedef {object} Schedule\n * @property {string} [id] - The unique schedule id depends on calendar id\n * @property {string} calendarId - The unique calendar id\n * @property {string} [title] - The schedule title\n * @property {string} [body] - The schedule body text which is text/plain\n * @property {string|TZDate} [start] - The start time. It's 'string' for input. It's 'TZDate' for output like event handler.\n * @property {string|TZDate} [end] - The end time. It's 'string' for input. It's 'TZDate' for output like event handler.\n * @property {number} [goingDuration] - The travel time: Going duration minutes\n * @property {number} [comingDuration] - The travel time: Coming duration minutes\n * @property {boolean} [isAllDay] - The all day schedule\n * @property {string} [category] - The schedule type('milestone', 'task', allday', 'time')\n * @property {string} [dueDateClass] - The task schedule type string\n * (any string value is ok and mandatory if category is 'task')\n * @property {string} [location] - The location\n * @property {Array.} [attendees] - The attendees\n * @property {string} [recurrenceRule] - The recurrence rule\n * @property {boolean} [isPending] - The in progress flag to do something like network job(The schedule will be transparent.)\n * @property {boolean} [isFocused] - The focused schedule flag\n * @property {boolean} [isVisible] - The schedule visibility flag\n * @property {boolean} [isReadOnly] - The schedule read-only flag\n * @property {boolean} [isPrivate] - The private schedule\n * @property {string} [color] - The schedule text color\n * @property {string} [bgColor] - The schedule background color\n * @property {string} [dragBgColor] - The schedule background color when dragging it\n * @property {string} [borderColor] - The schedule left border color\n * @property {string} [customStyle] - The schedule's custom css class\n * @property {any} [raw] - The user data\n * @property {string} [state] - The schedule's state ('busy', 'free')\n */\n\n/**\n * Template functions to support customer renderer\n * @typedef {object} Template\n * @property {function} [milestoneTitle] - The milestone title(at left column) template function\n * @property {function} [milestone] - The milestone template function\n * @property {function} [taskTitle] - The task title(at left column) template function\n * @property {function} [task] - The task template function\n * @property {function} [alldayTitle] - The allday title(at left column) template function\n * @property {function} [allday] - The allday template function\n * @property {function} [time] - The time template function\n * @property {function} [goingDuration] - The travel time(going duration) template function\n * @property {function} [comingDuration] - The travel time(coming duration) template function\n * @property {function} [monthMoreTitleDate] - The month more layer title template function\n * @property {function} [monthMoreClose] - The month more layer close button template function\n * @property {function} [monthGridHeader] - The month grid header(date, decorator, title) template function\n * @property {function} [monthGridHeaderExceed] - The month grid header(exceed schedule count) template function\n * @property {function} [monthGridFooter] - The month grid footer(date, decorator, title) template function\n * @property {function} [monthGridFooterExceed] - The month grid footer(exceed schedule count) template function\n * @property {function} [monthDayname] - The monthly dayname template function\n * @property {function} [weekDayname] - The weekly dayname template function\n * @property {function} [weekGridFooterExceed] - The week/day grid footer(exceed schedule count) template function\n * @property {function} [dayGridTitle] - The week/day grid title template function(e.g. milestone, task, allday)\n * @property {function} [schedule] - The week/day schedule template function(When the schedule category attribute is milestone, task, or all day)\n * @property {function} [collapseBtnTitle] - The week/day (exceed schedule more view) collapse button title template function\n * @property {function} [timezoneDisplayLabel] - The timezone display label template function in time grid\n * @property {function} [timegridDisplayPrimayTime] - Deprecated: use 'timegridDisplayPrimaryTime'\n * @property {function} [timegridDisplayPrimaryTime] - The display label template function of primary timezone in time grid\n * @property {function} [timegridDisplayTime] - The display time template function in time grid\n * @property {function} [timegridCurrentTime] - The current time template function in time grid\n * @property {function} [popupIsAllDay] - The all day checkbox label text template function in the default creation popup\n * @property {function} [popupStateFree] - The free option template function in the state select box of the default creation popup\n * @property {function} [popupStateBusy] - The busy option template function in the state select box of the default creation popup\n * @property {function} [titlePlaceholder] - The title input placeholder text template function in the default creation popup\n * @property {function} [locationPlaceholder] - The location input placeholder text template function in the default creation popup\n * @property {function} [startDatePlaceholder] - The start date input placeholder text template function in the default creation popup\n * @property {function} [endDatePlaceholder] - The end date input placeholder text template function in the default creation popup\n * @property {function} [popupSave] - The 'Save' button text template function in the default creation popup\n * @property {function} [popupUpdate] - The 'Update' button text template function in the default creation popup when in edit mode\n * @property {function} [popupDetailDate] - The schedule date information's template function on the default detail popup\n * @property {function} [popupDetailLocation] - The schedule location text information's template function on the default detail popup\n * @property {function} [popupDetailUser] - The schedule user text information's template function on the default detail popup\n * @property {function} [popupDetailState] - The schedule state(busy or free) text information's template function on the default detail popup\n * @property {function} [popupDetailRepeat] - The schedule repeat information's template function on the default detail popup\n * @property {function} [popupDetailBody] - The schedule body text information's template function on the default detail popup\n * @property {function} [popupEdit] - The 'Edit' button text template function on the default detail popup\n * @property {function} [popupDelete] - The 'Delete' button text template function on the default detail popup\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * ...\n * template: {\n * milestone: function(schedule) {\n * return ' ' + schedule.title + '';\n * },\n * milestoneTitle: function() {\n * return 'MILESTONE';\n * },\n * task: function(schedule) {\n * return '#' + schedule.title;\n * },\n * taskTitle: function() {\n * return 'TASK';\n * },\n * allday: function(schedule) {\n * return getTimeTemplate(schedule, true);\n * },\n * alldayTitle: function() {\n * return 'ALL DAY';\n * },\n * time: function(schedule) {\n * return '' + moment(schedule.start.getTime()).format('HH:mm') + ' ' + schedule.title;\n * },\n * goingDuration: function(schedule) {\n * return '' + schedule.goingDuration + 'min.';\n * },\n * comingDuration: function(schedule) {\n * return '' + schedule.comingDuration + 'min.';\n * },\n * monthMoreTitleDate: function(date, dayname) {\n * var day = date.split('.')[2];\n *\n * return '' + day + ' ' + dayname + '';\n * },\n * monthMoreClose: function() {\n * return '';\n * },\n * monthGridHeader: function(dayModel) {\n * var date = parseInt(dayModel.date.split('-')[2], 10);\n * var classNames = ['tui-full-calendar-weekday-grid-date '];\n *\n * if (dayModel.isToday) {\n * classNames.push('tui-full-calendar-weekday-grid-date-decorator');\n * }\n *\n * return '' + date + '';\n * },\n * monthGridHeaderExceed: function(hiddenSchedules) {\n * return '+' + hiddenSchedules + '';\n * },\n * monthGridFooter: function() {\n * return '';\n * },\n * monthGridFooterExceed: function(hiddenSchedules) {\n * return '';\n * },\n * monthDayname: function(model) {\n * return (model.label).toString().toLocaleUpperCase();\n * },\n * weekDayname: function(model) {\n * return '' + model.date + '  ' + model.dayName + '';\n * },\n * weekGridFooterExceed: function(hiddenSchedules) {\n * return '+' + hiddenSchedules;\n * },\n * dayGridTitle: function(viewName) {\n *\n * // use another functions instead of 'dayGridTitle'\n * // milestoneTitle: function() {...}\n * // taskTitle: function() {...}\n * // alldayTitle: function() {...}\n *\n * var title = '';\n * switch(viewName) {\n * case 'milestone':\n * title = 'MILESTONE';\n * break;\n * case 'task':\n * title = 'TASK';\n * break;\n * case 'allday':\n * title = 'ALL DAY';\n * break;\n * }\n *\n * return title;\n * },\n * schedule: function(schedule) {\n *\n * // use another functions instead of 'schedule'\n * // milestone: function() {...}\n * // task: function() {...}\n * // allday: function() {...}\n *\n * var tpl;\n *\n * switch(category) {\n * case 'milestone':\n * tpl = ' ' + schedule.title + '';\n * break;\n * case 'task':\n * tpl = '#' + schedule.title;\n * break;\n * case 'allday':\n * tpl = getTimeTemplate(schedule, true);\n * break;\n * }\n *\n * return tpl;\n * },\n * collapseBtnTitle: function() {\n * return '';\n * },\n * timezoneDisplayLabel: function(timezoneOffset, displayLabel) {\n * var gmt, hour, minutes;\n *\n * if (!displayLabel) {\n * gmt = timezoneOffset < 0 ? '-' : '+';\n * hour = Math.abs(parseInt(timezoneOffset / 60, 10));\n * minutes = Math.abs(timezoneOffset % 60);\n * displayLabel = gmt + getPadStart(hour) + ':' + getPadStart(minutes);\n * }\n *\n * return displayLabel;\n * },\n * timegridDisplayPrimayTime: function(time) {\n * // will be deprecated. use 'timegridDisplayPrimaryTime'\n * var meridiem = 'am';\n * var hour = time.hour;\n *\n * if (time.hour > 12) {\n * meridiem = 'pm';\n * hour = time.hour - 12;\n * }\n *\n * return hour + ' ' + meridiem;\n * },\n * timegridDisplayPrimaryTime: function(time) {\n * var meridiem = 'am';\n * var hour = time.hour;\n *\n * if (time.hour > 12) {\n * meridiem = 'pm';\n * hour = time.hour - 12;\n * }\n *\n * return hour + ' ' + meridiem;\n * },\n * timegridDisplayTime: function(time) {\n * return getPadStart(time.hour) + ':' + getPadStart(time.hour);\n * },\n * timegridCurrentTime: function(timezone) {\n * var templates = [];\n *\n * if (timezone.dateDifference) {\n * templates.push('[' + timezone.dateDifferenceSign + timezone.dateDifference + ']
    ');\n * }\n *\n * templates.push(moment(timezone.hourmarker).format('HH:mm a'));\n *\n * return templates.join('');\n * },\n * popupIsAllDay: function() {\n * return 'All Day';\n * },\n * popupStateFree: function() {\n * return 'Free';\n * },\n * popupStateBusy: function() {\n * return 'Busy';\n * },\n * titlePlaceholder: function() {\n * return 'Subject';\n * },\n * locationPlaceholder: function() {\n * return 'Location';\n * },\n * startDatePlaceholder: function() {\n * return 'Start date';\n * },\n * endDatePlaceholder: function() {\n * return 'End date';\n * },\n * popupSave: function() {\n * return 'Save';\n * },\n * popupUpdate: function() {\n * return 'Update';\n * },\n * popupDetailDate: function(isAllDay, start, end) {\n * var isSameDate = moment(start).isSame(end);\n * var endFormat = (isSameDate ? '' : 'YYYY.MM.DD ') + 'hh:mm a';\n *\n * if (isAllDay) {\n * return moment(start).format('YYYY.MM.DD') + (isSameDate ? '' : ' - ' + moment(end).format('YYYY.MM.DD'));\n * }\n *\n * return (moment(start).format('YYYY.MM.DD hh:mm a') + ' - ' + moment(end).format(endFormat));\n * },\n * popupDetailLocation: function(schedule) {\n * return 'Location : ' + schedule.location;\n * },\n * popupDetailUser: function(schedule) {\n * return 'User : ' + (schedule.attendees || []).join(', ');\n * },\n * popupDetailState: function(schedule) {\n * return 'State : ' + schedule.state || 'Busy';\n * },\n * popupDetailRepeat: function(schedule) {\n * return 'Repeat : ' + schedule.recurrenceRule;\n * },\n * popupDetailBody: function(schedule) {\n * return 'Body : ' + schedule.body;\n * },\n * popupEdit: function() {\n * return 'Edit';\n * },\n * popupDelete: function() {\n * return 'Delete';\n * }\n * }\n * }\n */\n\n/**\n * Options for daily, weekly view.\n * @typedef {object} WeekOptions\n * @property {number} [startDayOfWeek=0] - The start day of week,\n * @property {Array.} [daynames] - The day names in weekly and daily. Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {boolean} [narrowWeekend=false] - Make weekend column narrow(1/2 width)\n * @property {boolean} [workweek=false] - Show only 5 days except for weekend\n * @property {boolean} [showTimezoneCollapseButton=false] - Show a collapse button to close multiple timezones\n * @property {boolean} [timezonesCollapsed=false] - An initial multiple timezones collapsed state\n * @property {number} [hourStart=0] - Can limit of render hour start.\n * @property {number} [hourEnd=24] - Can limit of render hour end.\n */\n\n/**\n * Options for monthly view.\n * @typedef {object} MonthOptions\n * @property {Array.} [daynames] - The day names in monthly. Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {number} [startDayOfWeek=0] - The start day of week\n * @property {boolean} [narrowWeekend=false] - Make weekend column narrow(1/2 width)\n * @property {number} [visibleWeeksCount=6] - The visible week count in monthly(0 or null are same with 6)\n * @property {boolean} [isAlways6Week=true] - Always show 6 weeks. If false, show 5 weeks or 6 weeks based on the month.\n * @property {boolean} [workweek=false] - Show only 5 days except for weekend\n * @property {number} [visibleScheduleCount] - The visible schedule count in monthly grid\n * @property {object} [moreLayerSize] - The more layer size\n * @property {object} [moreLayerSize.width=null] - The css width value(px, 'auto').\n* The default value 'null' is to fit a grid cell.\n * @property {object} [moreLayerSize.height=null] - The css height value(px, 'auto').\n* The default value 'null' is to fit a grid cell.\n * @property {object} [grid] - The grid's header and footer information\n * @property {object} [grid.header] - The grid's header informatioin\n * @property {number} [grid.header.height=34] - The grid's header height\n * @property {object} [grid.footer] - The grid's footer informatioin\n * @property {number} [grid.footer.height=34] - The grid's footer height\n * @property {function} [scheduleFilter=null] - The filter schedules on month view. A parameter is {Schedule} object.\n */\n\n/**\n * @typedef {object} CalendarColor\n * @property {string} [color] - The calendar color\n * @property {string} [bgColor] - The calendar background color\n * @property {string} [borderColor] - The calendar left border color\n * @property {string} [dragBgColor] - The Background color displayed when you drag a calendar's schedule\n */\n\n/**\n * @typedef {object} Timezone\n * @property {number} [timezoneOffset] - The minutes for your timezone offset. If null, use the browser's timezone. Refer to Date.prototype.getTimezoneOffset()\n * @property {string} [displayLabel] - The display label of your timezone at weekly/daily view(e.g. 'GMT+09:00')\n * @property {string} [tooltip] - The tooltip(e.g. 'Seoul')\n * @example\n * var cal = new Calendar('#calendar', {\n * timezones: [{\n * timezoneOffset: 540,\n * displayLabel: 'GMT+09:00',\n * tooltip: 'Seoul'\n * }, {\n * timezoneOffset: -420,\n * displayLabel: 'GMT-08:00',\n * tooltip: 'Los Angeles'\n * }]\n * });\n */\n\n/**\n * @typedef {object} CalendarProps\n * @property {string|number} id - The calendar id\n * @property {string} name - The calendar name\n * @property {string} color - The text color when schedule is displayed\n * @property {string} bgColor - The background color schedule is displayed\n * @property {string} borderColor - The color of left border or bullet point when schedule is displayed\n * @property {string} dragBgColor - The background color when schedule dragging\n * @example\n * var cal = new Calendar('#calendar', {\n * ...\n * calendars: [\n * {\n * id: '1',\n * name: 'My Calendar',\n * color: '#ffffff',\n * bgColor: '#9e5fff',\n * dragBgColor: '#9e5fff',\n * borderColor: '#9e5fff'\n * },\n * {\n * id: '2',\n * name: 'Company',\n * color: '#00a9ff',\n * bgColor: '#00a9ff',\n * dragBgColor: '#00a9ff',\n * borderColor: '#00a9ff'\n * },\n * ]\n * });\n */\n\n/**\n * @typedef {object} Options - Calendar option object\n * @property {string} [defaultView='week'] - Default view of calendar. The default value is 'week'.\n * @property {boolean|Array.} [taskView=true] - Show the milestone and task in weekly, daily view. The default value is true. If the value is array, it can be ['milestone', 'task'].\n * @property {boolean|Array.} [scheduleView=true] - Show the all day and time grid in weekly, daily view. The default value is false. If the value is array, it can be ['allday', 'time'].\n * @property {themeConfig} [theme=themeConfig] - {@link themeConfig} for custom style.\n * @property {Template} [template={}] - {@link Template} for further information\n * @property {WeekOptions} [week={}] - {@link WeekOptions} for week view\n * @property {MonthOptions} [month={}] - {@link MonthOptions} for month view\n * @property {Array.} [calendars=[]] - {@link CalendarProps} List that can be used to add new schedule. The default value is [].\n * @property {boolean} [useCreationPopup=false] - Whether use default creation popup or not. The default value is false.\n * @property {boolean} [useDetailPopup=false] - Whether use default detail popup or not. The default value is false.\n * @property {Array.} [timezones] - {@link Timezone} array.\n * The first Timezone element is primary and can override Calendar#setTimezoneOffset function\n * The rest timezone elements are shown in left timegrid of weekly/daily view\n * @property {boolean} [disableDblClick=false] - Disable double click to create a schedule. The default value is false.\n * @property {boolean} [disableClick=false] - Disable click to create a schedule. The default value is false.\n * @property {boolean} [isReadOnly=false] - {@link Calendar} is read-only mode and a user can't create and modify any schedule. The default value is false.\n * @property {boolean} [usageStatistics=true] - Let us know the hostname. If you don't want to send the hostname, please set to false.\n */\n\n/**\n * {@link https://nhn.github.io/tui.code-snippet/latest/tui.util.CustomEvents.html CustomEvents} document at {@link https://github.com/nhn/tui.code-snippet tui-code-snippet}\n * @typedef {class} CustomEvents\n */\n\n/**\n * @typedef {object} TimeCreationGuide - Time creation guide instance to present selected time period\n * @property {HTMLElement} guideElement - Guide element\n * @property {Object.} guideElements - Map by key. It can be used in monthly view\n * @property {function} clearGuideElement - Hide the creation guide\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var guide = event.guide;\n * // Use guideEl$'s left, top to locate your schedule creation popup\n * var guideEl$ = guide.guideElement ?\n * guide.guideElement : guide.guideElements[Object.keys(guide.guideElements)[0]];\n *\n * // After that call this to hide the creation guide\n * guide.clearGuideElement();\n * });\n */\n\n/**\n * Calendar class\n * @constructor\n * @mixes CustomEvents\n * @param {HTMLElement|string} container - The container element or selector id\n * @param {Options} options - The calendar {@link Options} object\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * defaultView: 'week',\n * taskView: true, // Can be also ['milestone', 'task']\n * scheduleView: true, // Can be also ['allday', 'time']\n * template: {\n * milestone: function(schedule) {\n * return ' ' + schedule.title + '';\n * },\n * milestoneTitle: function() {\n * return 'Milestone';\n * },\n * task: function(schedule) {\n * return '  #' + schedule.title;\n * },\n * taskTitle: function() {\n * return '';\n * },\n * allday: function(schedule) {\n * return schedule.title + ' ';\n * },\n * alldayTitle: function() {\n * return 'All Day';\n * },\n * time: function(schedule) {\n * return schedule.title + ' ' + schedule.start;\n * }\n * },\n * month: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * },\n * week: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * }\n * });\n */\nfunction Calendar(container, options) {\n options = util.extend({\n usageStatistics: true\n }, options);\n\n if (options.usageStatistics === true && util.sendHostname) {\n util.sendHostname('calendar', GA_TRACKING_ID);\n }\n\n if (util.isString(container)) {\n container = document.querySelector(container);\n }\n\n /**\n * Calendar color map\n * @type {object}\n * @private\n */\n this._calendarColor = {};\n\n /**\n * Current rendered date\n * @type {TZDate}\n * @private\n */\n this._renderDate = datetime.start();\n\n /**\n * start and end date of weekly, monthly\n * @type {object}\n * @private\n */\n this._renderRange = {\n start: null,\n end: null\n };\n\n /**\n * base controller\n * @type {Base}\n * @private\n */\n this._controller = _createController(options);\n this._controller.setCalendars(options.calendars);\n\n /**\n * layout view (layout manager)\n * @type {Layout}\n * @private\n */\n this._layout = new Layout(container, this._controller.theme);\n\n /**\n * global drag handler\n * @type {Drag}\n * @private\n */\n this._dragHandler = new Drag({distance: 10}, this._layout.container);\n\n /**\n * current rendered view name. ('day', 'week', 'month')\n * @type {string}\n * @default 'week'\n * @private\n */\n this._viewName = options.defaultView || 'week';\n\n /**\n * Refresh method. it can be ref different functions for each view modes.\n * @type {function}\n * @private\n */\n this._refreshMethod = null;\n\n /**\n * Scroll to now. It can be called for 'week', 'day' view modes.\n * @type {function}\n * @private\n */\n this._scrollToNowMethod = null;\n\n /**\n * It's true if Calendar.prototype.scrollToNow() is called.\n * @type {boolean}\n * @private\n */\n this._requestScrollToNow = false;\n\n /**\n * Open schedule creation popup\n * @type {function}\n * @private\n */\n this._openCreationPopup = null;\n\n /**\n * Hide the more view\n * @type {function}\n * @private\n */\n this._hideMoreView = null;\n\n /**\n * Unique id for requestAnimFrame()\n * @type {number}\n * @private\n */\n this._requestRender = 0;\n\n /**\n * calendar options\n * @type {Options}\n * @private\n */\n this._options = {};\n\n this._initialize(options);\n}\n\n/**\n * destroy calendar instance.\n */\nCalendar.prototype.destroy = function() {\n this._dragHandler.destroy();\n this._controller.off();\n this._layout.clear();\n this._layout.destroy();\n\n util.forEach(this._options.template, function(func, name) {\n if (func) {\n Handlebars.unregisterHelper(name + '-tmpl');\n }\n });\n\n this._options = this._renderDate = this._controller =\n this._layout = this._dragHandler = this._viewName =\n this._refreshMethod = this._scrollToNowMethod = null;\n};\n\n/**\n * Initialize calendar\n * @param {Options} options - calendar options\n * @private\n */\nCalendar.prototype._initialize = function(options) {\n var controller = this._controller,\n viewName = this._viewName;\n\n this._options = util.extend({\n defaultView: viewName,\n taskView: true,\n scheduleView: true,\n template: util.extend({\n allday: null,\n time: null\n }, util.pick(options, 'template') || {}),\n week: util.extend(\n {\n startDayOfWeek: 0,\n workweek: false\n },\n util.pick(options, 'week') || {}\n ),\n month: util.extend(\n {\n startDayOfWeek: 0,\n workweek: false,\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible) &&\n (schedule.category === 'allday' || schedule.category === 'time');\n }\n },\n util.pick(options, 'month') || {}\n ),\n calendars: [],\n useCreationPopup: false,\n useDetailPopup: false,\n timezones: options.timezones || [],\n disableDblClick: false,\n disableClick: false,\n isReadOnly: false\n }, options);\n\n if (this._options.isReadOnly) {\n this._options.useCreationPopup = false;\n }\n\n this._layout.controller = controller;\n\n this._setAdditionalInternalOptions(options);\n\n this.changeView(viewName, true);\n};\n\n/**\n * Set additional internal options\n * 1. Register to the template handlebar\n * 2. Update the calendar list and set the color of the calendar.\n * 3. Change the primary timezone offset of the timezones.\n * @param {Options} options - calendar options\n * @private\n */\nCalendar.prototype._setAdditionalInternalOptions = function(options) {\n var timezones = options.timezones || [];\n\n util.forEach(options.template, function(func, name) {\n if (func) {\n Handlebars.registerHelper(name + '-tmpl', func);\n }\n });\n\n util.forEach(options.calendars || [], function(calendar) {\n this.setCalendarColor(calendar.id, calendar, true);\n }, this);\n\n if (timezones.length) {\n timezone.setOffsetByTimezoneOption(timezones[0].timezoneOffset);\n }\n};\n\n/**********\n * CRUD Methods\n **********/\n\n/**\n * Create schedules and render calendar.\n * @param {Array.} schedules - {@link Schedule} data list\n * @param {boolean} [silent=false] - no auto render after creation when set true\n * @example\n * calendar.createSchedules([\n * {\n * id: '1',\n * calendarId: '1',\n * title: 'my schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T22:30:00+09:00',\n * end: '2018-01-19T02:30:00+09:00'\n * },\n * {\n * id: '2',\n * calendarId: '1',\n * title: 'second schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T17:30:00+09:00',\n * end: '2018-01-19T17:31:00+09:00'\n * }\n * ]);\n */\nCalendar.prototype.createSchedules = function(schedules, silent) {\n util.forEach(schedules, function(obj) {\n this._setScheduleColor(obj.calendarId, obj);\n }, this);\n\n this._controller.createSchedules(schedules, silent);\n\n if (!silent) {\n this.render();\n }\n};\n\n/**\n * Get a {@link Schedule} object by schedule id and calendar id.\n * @param {string} scheduleId - ID of schedule\n * @param {string} calendarId - calendarId of the schedule\n * @returns {Schedule} schedule object\n * @example\n * var schedule = calendar.getSchedule(scheduleId, calendarId);\n * console.log(schedule.title);\n */\nCalendar.prototype.getSchedule = function(scheduleId, calendarId) {\n return this._controller.schedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n};\n\n/**\n * Update the schedule\n * @param {string} scheduleId - ID of the original schedule to update\n * @param {string} calendarId - The calendarId of the original schedule to update\n * @param {object} changes - The {@link Schedule} properties and values with changes to update\n * @param {boolean} [silent=false] - No auto render after creation when set true\n * @example\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * title: 'Changed schedule',\n * start: new Date('2019-11-05T09:00:00'),\n * end: new Date('2019-11-05T10:00:00'),\n * category: 'time'\n * });\n */\nCalendar.prototype.updateSchedule = function(scheduleId, calendarId, changes, silent) {\n var ctrl = this._controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n var hasChangedCalendar = false;\n\n if (!changes || !schedule) {\n return;\n }\n\n hasChangedCalendar = this._hasChangedCalendar(schedule, changes);\n changes = hasChangedCalendar ?\n this._setScheduleColor(changes.calendarId, changes) :\n changes;\n\n ctrl.updateSchedule(schedule, changes);\n\n if (!silent) {\n this.render();\n }\n};\n\nCalendar.prototype._hasChangedCalendar = function(schedule, changes) {\n return schedule &&\n changes.calendarId &&\n schedule.calendarId !== changes.calendarId;\n};\n\nCalendar.prototype._setScheduleColor = function(calendarId, schedule) {\n var calColor = this._calendarColor;\n var color = calColor[calendarId];\n\n if (color) {\n schedule.color = schedule.color || color.color;\n schedule.bgColor = schedule.bgColor || color.bgColor;\n schedule.borderColor = schedule.borderColor || color.borderColor;\n schedule.dragBgColor = schedule.dragBgColor || color.dragBgColor;\n }\n\n return schedule;\n};\n\n/**\n * Delete a schedule.\n * @param {string} scheduleId - ID of schedule to delete\n * @param {string} calendarId - The CalendarId of the schedule to delete\n * @param {boolean} [silent=false] - No auto render after creation when set true\n */\nCalendar.prototype.deleteSchedule = function(scheduleId, calendarId, silent) {\n var ctrl = this._controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n\n if (!schedule) {\n return;\n }\n\n ctrl.deleteSchedule(schedule);\n if (!silent) {\n this.render();\n }\n};\n\n/**********\n * Private Methods\n **********/\n\n/**\n * @param {string|Date} date - The Date to show in calendar\n * @param {number} [startDayOfWeek=0] - The Start day of week\n * @param {boolean} [workweek=false] - The only show work week\n * @returns {array} render range\n * @private\n */\nCalendar.prototype._getWeekDayRange = function(date, startDayOfWeek, workweek) {\n var day;\n var start;\n var end;\n var range;\n\n startDayOfWeek = (startDayOfWeek || 0); // eslint-disable-line\n date = util.isDate(date) ? date : new TZDate(date);\n day = date.getDay();\n\n // calculate default render range first.\n start = new TZDate(date).addDate(-day + startDayOfWeek);\n\n end = new TZDate(start).addDate(6);\n\n if (day < startDayOfWeek) {\n start = new TZDate(start).addDate(-7);\n end = new TZDate(end).addDate(-7);\n }\n\n if (workweek) {\n range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n );\n\n range = util.filter(range, function(weekday) {\n return !datetime.isWeekend(weekday.getDay());\n });\n\n start = range[0];\n end = range[range.length - 1];\n }\n\n start = datetime.start(start);\n end = datetime.start(end);\n\n return [start, end];\n};\n\n/**\n * Toggle schedules' visibility by calendar ID\n * @param {string} calendarId - The calendar id value\n * @param {boolean} toHide - Set true to hide schedules\n * @param {boolean} [render=true] - set true then render after change visible property each models\n */\nCalendar.prototype.toggleSchedules = function(calendarId, toHide, render) {\n var ownSchedules = this._controller.schedules;\n\n render = util.isExisty(render) ? render : true;\n calendarId = util.isArray(calendarId) ? calendarId : [calendarId];\n\n ownSchedules.each(function(schedule) {\n if (~util.inArray(schedule.calendarId, calendarId)) {\n schedule.set('isVisible', !toHide);\n }\n });\n\n if (render) {\n this.render();\n }\n};\n\n/**********\n * General Methods\n **********/\n\n/**\n * Render the calendar. The real rendering occurs after requestAnimationFrame.\n * If you have to render immediately, use the 'immediately' parameter as true.\n * @param {boolean} [immediately=false] - Render it immediately\n * @example\n * var silent = true;\n * calendar.clear();\n * calendar.createSchedules(schedules, silent);\n * calendar.render();\n * @example\n * // Render a calendar when resizing a window.\n * window.addEventListener('resize', function() {\n * calendar.render();\n * });\n */\nCalendar.prototype.render = function(immediately) {\n if (this._requestRender) {\n reqAnimFrame.cancelAnimFrame(this._requestRender);\n }\n\n if (immediately) {\n this._renderFunc();\n } else {\n this._requestRender = reqAnimFrame.requestAnimFrame(this._renderFunc, this);\n }\n};\n\n/**\n * Render and refresh all layout and process requests.\n * @private\n */\nCalendar.prototype._renderFunc = function() {\n if (this._refreshMethod) {\n this._refreshMethod();\n }\n if (this._layout) {\n this._layout.render();\n }\n if (this._scrollToNowMethod && this._requestScrollToNow) {\n this._scrollToNowMethod();\n }\n\n this._requestScrollToNow = false;\n this._requestRender = null;\n};\n\n/**\n * Delete all schedules and clear view. The real rendering occurs after requestAnimationFrame.\n * If you have to render immediately, use the 'immediately' parameter as true.\n * @param {boolean} [immediately=false] - Render it immediately\n * @example\n * calendar.clear();\n * calendar.createSchedules(schedules, true);\n * calendar.render();\n */\nCalendar.prototype.clear = function(immediately) {\n this._controller.clearSchedules();\n this.render(immediately);\n};\n\n/**\n * Scroll to current time on today in case of daily, weekly view\n * @example\n * function onNewSchedules(schedules) {\n * calendar.createSchedules(schedules);\n * if (calendar.getViewName() !== 'month') {\n * calendar.scrollToNow();\n * }\n * }\n */\nCalendar.prototype.scrollToNow = function() {\n if (this._scrollToNowMethod) {\n this._requestScrollToNow = true;\n // this._scrollToNowMethod() will be called at next frame rendering.\n }\n};\n\n/**\n * Move to today.\n * @example\n * function onClickTodayBtn() {\n * calendar.today();\n * }\n */\nCalendar.prototype.today = function() {\n this._renderDate = datetime.start();\n\n this._setViewName(this._viewName);\n this.move();\n this.render();\n};\n\n/**\n * Move the calendar amount of offset value\n * @param {number} offset - The offset value.\n * @private\n * @example\n * // move previous week when \"week\" view.\n * // move previous month when \"month\" view.\n * calendar.move(-1);\n */\nCalendar.prototype.move = function(offset) {\n var renderDate = dw(datetime.start(this._renderDate)),\n viewName = this._viewName,\n view = this._getCurrentView(),\n recursiveSet = _setOptionRecurseively,\n startDate, endDate, tempDate,\n startDayOfWeek, visibleWeeksCount, workweek, isAlways6Week, datetimeOptions;\n\n offset = util.isExisty(offset) ? offset : 0;\n\n if (viewName === 'month') {\n startDayOfWeek = util.pick(this._options, 'month', 'startDayOfWeek') || 0;\n visibleWeeksCount = mmin(util.pick(this._options, 'month', 'visibleWeeksCount') || 0, 6);\n workweek = util.pick(this._options, 'month', 'workweek') || false;\n isAlways6Week = util.pick(this._options, 'month', 'isAlways6Week');\n\n if (visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n\n renderDate.addDate(offset * 7 * datetimeOptions.visibleWeeksCount);\n tempDate = datetime.arr2dCalendar(renderDate.d, datetimeOptions);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderMonth = new TZDate(renderDate.d);\n });\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: isAlways6Week,\n workweek: workweek\n };\n\n renderDate.addMonth(offset);\n tempDate = datetime.arr2dCalendar(renderDate.d, datetimeOptions);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderMonth = new TZDate(renderDate.d);\n });\n }\n\n startDate = tempDate[0][0];\n endDate = tempDate[tempDate.length - 1][tempDate[tempDate.length - 1].length - 1];\n } else if (viewName === 'week') {\n renderDate.addDate(offset * 7);\n startDayOfWeek = util.pick(this._options, 'week', 'startDayOfWeek') || 0;\n workweek = util.pick(this._options, 'week', 'workweek') || false;\n tempDate = this._getWeekDayRange(renderDate.d, startDayOfWeek, workweek);\n\n startDate = tempDate[0];\n endDate = tempDate[1];\n\n recursiveSet(view, function(childView, opt) {\n opt.renderStartDate = new TZDate(startDate);\n opt.renderEndDate = new TZDate(endDate);\n\n childView.setState({\n collapsed: true\n });\n });\n } else if (viewName === 'day') {\n renderDate.addDate(offset);\n startDate = datetime.start(renderDate.d);\n endDate = datetime.end(renderDate.d);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderStartDate = new TZDate(startDate);\n opt.renderEndDate = new TZDate(endDate);\n\n childView.setState({\n collapsed: true\n });\n });\n }\n\n this._renderDate = renderDate.d;\n this._renderRange = {\n start: startDate,\n end: endDate\n };\n};\n\n/**\n * Move to specific date\n * @param {(Date|string)} date - The date to move\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.getViewName() === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.changeView('day', true);\n * }\n * });\n */\nCalendar.prototype.setDate = function(date) {\n if (util.isString(date)) {\n date = datetime.parse(date);\n }\n\n this._renderDate = new TZDate(date);\n this._setViewName(this._viewName);\n this.move(0);\n this.render();\n};\n\n/**\n * Move the calendar forward a day, a week, a month, 2 weeks, 3 weeks.\n * @example\n * function moveToNextOrPrevRange(val) {\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.next = function() {\n this.move(1);\n this.render();\n};\n\n/**\n * Move the calendar backward a day, a week, a month, 2 weeks, 3 weeks.\n * @example\n * function moveToNextOrPrevRange(val) {\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.prev = function() {\n this.move(-1);\n this.render();\n};\n\n/**\n * Return current rendered view.\n * @returns {View} current view instance\n * @private\n */\nCalendar.prototype._getCurrentView = function() {\n var viewName = this._viewName;\n\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n return util.pick(this._layout.children.items, viewName);\n};\n\n/**\n * Change calendar's schedule color with option\n * @param {string} calendarId - The calendar ID\n * @param {CalendarColor} option - The {@link CalendarColor} object\n * @param {boolean} [silent=false] - No auto render after creation when set true\n * @example\n * calendar.setCalendarColor('1', {\n * color: '#e8e8e8',\n * bgColor: '#585858',\n * borderColor: '#a1b56c'\n * dragBgColor: '#585858',\n * });\n * calendar.setCalendarColor('2', {\n * color: '#282828',\n * bgColor: '#dc9656',\n * borderColor: '#a1b56c',\n * dragBgColor: '#dc9656',\n * });\n * calendar.setCalendarColor('3', {\n * color: '#a16946',\n * bgColor: '#ab4642',\n * borderColor: '#a1b56c',\n * dragBgColor: '#ab4642',\n * });\n */\nCalendar.prototype.setCalendarColor = function(calendarId, option, silent) {\n var calColor = this._calendarColor,\n ownSchedules = this._controller.schedules,\n ownColor = calColor[calendarId];\n\n if (!util.isObject(option)) {\n config.throwError('Calendar#changeCalendarColor(): color 는 {color: \\'\\', bgColor: \\'\\'} 형태여야 합니다.');\n }\n\n ownColor = calColor[calendarId] = util.extend({\n color: '#000',\n bgColor: '#a1b56c',\n borderColor: '#a1b56c',\n dragBgColor: '#a1b56c'\n }, option);\n\n ownSchedules.each(function(model) {\n if (model.calendarId !== calendarId) {\n return;\n }\n\n model.color = ownColor.color;\n model.bgColor = ownColor.bgColor;\n model.borderColor = ownColor.borderColor;\n model.dragBgColor = ownColor.dragBgColor;\n });\n\n if (!silent) {\n this.render();\n }\n};\n\n/**********\n * Custom Events\n **********/\n\n/**\n * A bridge-based event handler for connecting a click handler to a user click event handler for each view\n * @fires Calendar#clickSchedule\n * @param {object} clickScheduleData - The event data of 'clickSchedule' handler\n * @private\n */\nCalendar.prototype._onClick = function(clickScheduleData) {\n /**\n * Fire this event when click a schedule.\n * @event Calendar#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - The {@link Schedule} instance\n * @property {MouseEvent} event - MouseEvent\n * @example\n * calendar.on('clickSchedule', function(event) {\n * var schedule = event.schedule;\n *\n * if (lastClickSchedule) {\n * calendar.updateSchedule(lastClickSchedule.id, lastClickSchedule.calendarId, {\n * isFocused: false\n * });\n * }\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * isFocused: true\n * });\n *\n * lastClickSchedule = schedule;\n * // open detail view\n * });\n */\n this.fire('clickSchedule', clickScheduleData);\n};\n\n/**\n * A bridge-based event handler for connecting a click handler to a user click event handler for each view\n * @fires Calendar#clickMore\n * @param {object} clickMoreSchedule - The event data of 'clickMore' handler\n * @private\n */\nCalendar.prototype._onClickMore = function(clickMoreSchedule) {\n /**\n * Fire this event when click a schedule.\n * @event Calendar#clickMore\n * @type {object}\n * @property {Date} date - The Clicked date\n * @property {HTMLElement} target - The more element\n * @example\n * calendar.on('clickMore', function(event) {\n * console.log('clickMore', event.date, event.target);\n * });\n */\n this.fire('clickMore', clickMoreSchedule);\n};\n\n/**\n * dayname click event handler\n * @fires Calendar#clickDayname\n * @param {object} clickScheduleData - The event data of 'clickDayname' handler\n * @private\n */\nCalendar.prototype._onClickDayname = function(clickScheduleData) {\n /**\n * Fire this event when click a day name in weekly.\n * @event Calendar#clickDayname\n * @type {object}\n * @property {string} date - The date string by format 'YYYY-MM-DD'\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.getViewName() === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.changeView('day', true);\n * }\n * });\n */\n this.fire('clickDayname', clickScheduleData);\n};\n\n/**\n * @fires {Calendar#n('beforeCreateSchedule', function}\n * @param {object} createScheduleData - select schedule data from allday, time\n * @private\n */\nCalendar.prototype._onBeforeCreate = function(createScheduleData) {\n if (this._options.useCreationPopup && !createScheduleData.useCreationPopup) {\n if (this._showCreationPopup) {\n this._showCreationPopup(createScheduleData);\n\n return;\n }\n }\n /**\n * Fire this event when select time period in daily, weekly, monthly.\n * @event Calendar#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - The allday schedule\n * @property {Date} start - The selected start time\n * @property {Date} end - The selected end time\n * @property {TimeCreationGuide} guide - {@link TimeCreationGuide} instance\n * @property {string} triggerEventName - The event name like 'click', 'dblclick'\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var startTime = event.start;\n * var endTime = event.end;\n * var isAllDay = event.isAllDay;\n * var guide = event.guide;\n * var triggerEventName = event.triggerEventName;\n * var schedule;\n *\n * if (triggerEventName === 'click') {\n * // open writing simple schedule popup\n * schedule = {...};\n * } else if (triggerEventName === 'dblclick') {\n * // open writing detail schedule popup\n * schedule = {...};\n * }\n *\n * calendar.createSchedules([schedule]);\n * });\n */\n this.fire('beforeCreateSchedule', createScheduleData);\n};\n\n/**\n * @fires Calendar#beforeUpdateSchedule\n * @param {object} updateScheduleData - update {@link Schedule} data\n * @private\n */\nCalendar.prototype._onBeforeUpdate = function(updateScheduleData) {\n /**\n * Fire this event when drag a schedule to change time in daily, weekly, monthly.\n * @event Calendar#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original {@link Schedule} instance\n * @property {object} changes - The {@link Schedule} properties and values with changes to update\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @example\n * calendar.on('beforeUpdateSchedule', function(event) {\n * var schedule = event.schedule;\n * var changes = event.changes;\n *\n * calendar.updateSchedule(schedule.id, schedule.calendarId, changes);\n * });\n */\n this.fire('beforeUpdateSchedule', updateScheduleData);\n};\n\n/**\n * @fires Calendar#beforeDeleteSchedule\n * @param {object} deleteScheduleData - delete schedule data\n * @private\n */\nCalendar.prototype._onBeforeDelete = function(deleteScheduleData) {\n /**\n * Fire this event when delete a schedule.\n * @event Calendar#beforeDeleteSchedule\n * @type {object}\n * @property {Schedule} schedule - The {@link Schedule} instance to delete\n * @example\n * calendar.on('beforeDeleteSchedule', function(event) {\n * var schedule = event.schedule;\n * alert('The schedule is removed.', schedule);\n * });\n */\n this.fire('beforeDeleteSchedule', deleteScheduleData);\n};\n\n/**\n * @fires Calendar#afterRenderSchedule\n * @param {Schedule} scheduleData - The schedule data\n * @private\n */\nCalendar.prototype._onAfterRenderSchedule = function(scheduleData) {\n /**\n * Fire this event by every single schedule after rendering whole calendar.\n * @event Calendar#afterRenderSchedule\n * @type {object}\n * @property {Schedule} schedule - A rendered {@link Schedule} instance\n * @example\n * calendar.on('afterRenderSchedule', function(event) {\n * var schedule = event.schedule;\n * var element = calendar.getElement(schedule.id, schedule.calendarId);\n * // use the element\n * console.log(element);\n * });\n */\n this.fire('afterRenderSchedule', scheduleData);\n};\n\n/**\n * @fires Calendar#clickTimezonesCollapseBtn\n * @param {boolean} timezonesCollapsed - timezones collapsed flag\n * @private\n */\nCalendar.prototype._onClickTimezonesCollapseBtn = function(timezonesCollapsed) {\n /**\n * Fire this event by clicking timezones collapse button\n * @event Calendar#clickTimezonesCollapseBtn\n * @type {object}\n * @property {boolean} timezonesCollapsed - The timezones collapes flag\n * @example\n * calendar.on('clickTimezonesCollapseBtn', function(timezonesCollapsed) {\n * console.log(timezonesCollapsed);\n * });\n */\n this.fire('clickTimezonesCollapseBtn', timezonesCollapsed);\n};\n\n/**\n * Toggle calendar factory class, main view, wallview event connection\n * @param {boolean} isAttach - attach events if true.\n * @param {Week|Month} view - Weekly view or Monthly view\n * @private\n */\nCalendar.prototype._toggleViewSchedule = function(isAttach, view) {\n var self = this,\n handler = view.handler,\n method = isAttach ? 'on' : 'off';\n\n util.forEach(handler.click, function(clickHandler) {\n clickHandler[method]('clickSchedule', self._onClick, self);\n });\n\n util.forEach(handler.dayname, function(clickHandler) {\n clickHandler[method]('clickDayname', self._onClickDayname, self);\n });\n\n util.forEach(handler.creation, function(creationHandler) {\n creationHandler[method]('beforeCreateSchedule', self._onBeforeCreate, self);\n creationHandler[method]('beforeDeleteSchedule', self._onBeforeDelete, self);\n });\n\n util.forEach(handler.move, function(moveHandler) {\n moveHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n util.forEach(handler.resize, function(resizeHandler) {\n resizeHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n // bypass events from view\n view[method]('afterRenderSchedule', self._onAfterRenderSchedule, self);\n view[method]('clickTimezonesCollapseBtn', self._onClickTimezonesCollapseBtn, self);\n view[method]('clickMore', self._onClickMore, self);\n};\n\n/**\n * Change current view with view name('day', 'week', 'month')\n * @param {string} newViewName - The New view name to render\n * @param {boolean} force - Force render despite of current view and new view are equal\n * @example\n * // daily view\n * calendar.changeView('day', true);\n *\n * // weekly view\n * calendar.changeView('week', true);\n *\n * // monthly view(default 6 weeks view)\n * calendar.setOptions({month: {visibleWeeksCount: 6}}, true); // or null\n * calendar.changeView('month', true);\n *\n * // 2 weeks monthly view\n * calendar.setOptions({month: {visibleWeeksCount: 2}}, true);\n * calendar.changeView('month', true);\n *\n * // 3 weeks monthly view\n * calendar.setOptions({month: {visibleWeeksCount: 3}}, true);\n * calendar.changeView('month', true);\n *\n * // narrow weekend\n * calendar.setOptions({month: {narrowWeekend: true}}, true);\n * calendar.setOptions({week: {narrowWeekend: true}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n *\n * // change start day of week(from monday)\n * calendar.setOptions({week: {startDayOfWeek: 1}}, true);\n * calendar.setOptions({month: {startDayOfWeek: 1}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n *\n * // work week\n * calendar.setOptions({week: {workweek: true}}, true);\n * calendar.setOptions({month: {workweek: true}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n */\nCalendar.prototype.changeView = function(newViewName, force) {\n var self = this,\n layout = this._layout,\n controller = this._controller,\n dragHandler = this._dragHandler,\n options = this._options,\n viewName = this._viewName,\n created;\n\n if (!force && viewName === newViewName) {\n return;\n }\n\n this._setViewName(newViewName);\n\n // convert day to week\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n if (newViewName === 'day') {\n newViewName = 'week';\n }\n layout.children.doWhenHas(viewName, function(view) {\n self._toggleViewSchedule(false, view);\n });\n\n layout.clear();\n\n if (newViewName === 'month') {\n created = _createMonthView(\n controller,\n layout.container,\n dragHandler,\n options\n );\n } else if (newViewName === 'week' || newViewName === 'day') {\n created = _createWeekView(\n controller,\n layout.container,\n dragHandler,\n options,\n this.getViewName()\n );\n }\n\n layout.addChild(created.view);\n\n layout.children.doWhenHas(newViewName, function(view) {\n self._toggleViewSchedule(true, view);\n });\n\n this._refreshMethod = created.refresh;\n this._scrollToNowMethod = created.scrollToNow;\n this._openCreationPopup = created.openCreationPopup;\n this._showCreationPopup = created.showCreationPopup;\n this._hideMoreView = created.hideMoreView;\n\n this.move();\n this.render();\n};\n\n/**\n * @deprecated\n * Toggle task view('Milestone', 'Task') panel\n * @param {boolean} enabled - use task view\n * @example\n * // There is no milestone, task, so hide those view panel\n * calendar.toggleTaskView(false);\n *\n * // There are some milestone, task, so show those view panel.\n * calendar.toggleTaskView(true);\n */\nCalendar.prototype.toggleTaskView = function(enabled) {\n var viewName = this._viewName,\n options = this._options;\n\n options.taskView = enabled;\n\n this.changeView(viewName, true);\n};\n\n/**\n * @deprecated\n * Toggle schedule view('AllDay', TimeGrid') panel\n * @param {boolean} enabled - use task view\n * @example\n * // hide those view panel to show only 'Milestone', 'Task'\n * calendar.toggleScheduleView(false);\n *\n * // show those view panel.\n * calendar.toggleScheduleView(true);\n */\nCalendar.prototype.toggleScheduleView = function(enabled) {\n var viewName = this._viewName,\n options = this._options;\n\n options.scheduleView = enabled;\n\n this.changeView(viewName, true);\n};\n\n/**\n * Set current view name\n * @param {string} viewName - new view name to render\n * @private\n */\nCalendar.prototype._setViewName = function(viewName) {\n this._viewName = viewName;\n};\n\n/**\n * Get a schedule element by schedule id and calendar id.\n * @param {string} scheduleId - ID of schedule\n * @param {string} calendarId - calendarId of schedule\n * @returns {HTMLElement} schedule element if found or null\n * @example\n * var element = calendar.getElement(scheduleId, calendarId);\n * console.log(element);\n */\nCalendar.prototype.getElement = function(scheduleId, calendarId) {\n var schedule = this.getSchedule(scheduleId, calendarId);\n if (schedule) {\n return document.querySelector('[data-schedule-id=\"' + scheduleId + '\"][data-calendar-id=\"' + calendarId + '\"]');\n }\n\n return null;\n};\n\n/**\n * Set a theme. If some keys are not defined in the preset, will be return.\n * @param {object} theme - multiple styles map\n * @returns {Array.} keys - error keys not predefined.\n * @example\n * cal.setTheme({\n 'month.dayname.height': '31px',\n 'common.dayname.color': '#333',\n 'month.dayname.borderBottom': '1px solid #e5e5e5' // Not valid key will be return.\n * });\n */\nCalendar.prototype.setTheme = function(theme) {\n var result = this._controller.setTheme(theme);\n this.render(true);\n\n return result;\n};\n\n/**\n * Set options of calendar\n * @param {Options} options - set {@link Options}\n * @param {boolean} [silent=false] - no auto render after creation when set true\n */\nCalendar.prototype.setOptions = function(options, silent) {\n util.forEach(options, function(value, name) {\n if (util.isObject(value) && !util.isArray(value)) {\n util.forEach(value, function(innerValue, innerName) {\n this._options[name][innerName] = innerValue;\n }, this);\n } else {\n this._options[name] = value;\n }\n }, this);\n\n this._setAdditionalInternalOptions(options);\n\n if (!silent) {\n this.changeView(this._viewName, true);\n }\n};\n\n/**\n * Get current {@link Options}.\n * @returns {Options} options\n */\nCalendar.prototype.getOptions = function() {\n return this._options;\n};\n\n/**\n * Current rendered date ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDate = function() {\n return this._renderDate;\n};\n\n/**\n * Start time of rendered date range ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDateRangeStart = function() {\n return this._renderRange.start;\n};\n\n/**\n * End time of rendered date range ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDateRangeEnd = function() {\n return this._renderRange.end;\n};\n\n/**\n * Get current view name('day', 'week', 'month')\n * @returns {string} view name\n */\nCalendar.prototype.getViewName = function() {\n return this._viewName;\n};\n\n/**\n * Set calendar list\n * @param {Array.} calendars - {@link CalendarProps} List\n */\nCalendar.prototype.setCalendars = function(calendars) {\n util.forEach(calendars || [], function(calendar) {\n this.setCalendarColor(calendar.id, calendar, true);\n }, this);\n\n this._controller.setCalendars(calendars);\n\n this.render();\n};\n\n/**\n * Open schedule creation popup\n * @param {Schedule} schedule - The preset {@link Schedule} data\n */\nCalendar.prototype.openCreationPopup = function(schedule) {\n if (this._openCreationPopup) {\n this._openCreationPopup(schedule);\n }\n};\n\n/**\n * Hide the more view\n */\nCalendar.prototype.hideMoreView = function() {\n if (this._hideMoreView) {\n this._hideMoreView();\n }\n};\n\n/**\n * Set timezone offset\n * @param {number} offset - The offset (min)\n * @static\n * @deprecated\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffset(moment.tz.zone(timezoneName).utcOffset(moment()));\n */\nCalendar.setTimezoneOffset = function(offset) {\n timezone.setOffset(offset);\n};\n\n/**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - The callback function\n * @static\n * @deprecated\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffsetCallback(function(timestamp) {\n * return moment.tz.zone(timezoneName).utcOffset(timestamp));\n * });\n */\nCalendar.setTimezoneOffsetCallback = function(callback) {\n timezone.setOffsetCallback(callback);\n};\n\n/**\n * Create controller instance\n * @returns {Base} controller instance\n * @param {Options} options - calendar options\n * @private\n */\nfunction _createController(options) {\n return controllerFactory(options);\n}\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @param {string} viewName - 'week', 'day'\n * @returns {Week} week view instance\n * @private\n */\nfunction _createWeekView(controller, container, dragHandler, options, viewName) {\n return weekViewFactory(\n controller,\n container,\n dragHandler,\n options,\n viewName\n );\n}\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @returns {Month} month view instance\n * @private\n */\nfunction _createMonthView(controller, container, dragHandler, options) {\n return monthViewFactory(\n controller,\n container,\n dragHandler,\n options\n );\n}\n\n/**\n * Set child view's options recursively\n * @param {View} view - parent view\n * @param {function} func - option manipulate function\n * @private\n */\nfunction _setOptionRecurseively(view, func) {\n view.recursive(function(childView) {\n var opt = childView.options;\n\n if (!opt) {\n return;\n }\n\n func(childView, opt);\n });\n}\n\nutil.CustomEvents.mixin(Calendar);\n\nmodule.exports = Calendar;\n","/**\n * @fileoverview Controller factory module.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Base = require('../controller/base'),\n Core = require('../controller/viewMixin/core'),\n Week = require('../controller/viewMixin/week'),\n Month = require('../controller/viewMixin/month');\n\n/**\n * Mixin object. create object property to target and mix to that\n * @param {object} from - source object\n * @param {object} to - target object\n * @param {string} propertyName - property name\n */\nfunction mixin(from, to, propertyName) {\n var obj = to[propertyName] = {};\n\n util.forEach(from, function(method, methodName) {\n obj[methodName] = util.bind(method, to);\n });\n}\n\n/**\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @returns {Base} The controller instance.\n */\nmodule.exports = function(options) {\n var controller = new Base(options);\n\n mixin(Core, controller, 'Core');\n mixin(Week, controller, 'Week');\n mixin(Month, controller, 'Month');\n\n // for Theme\n controller.Core.theme = controller.theme;\n controller.Week.theme = controller.theme;\n controller.Month.theme = controller.theme;\n\n return controller;\n};\n","/**\n * @fileoverview Month view factory module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n array = require('../common/array'),\n datetime = require('../common/datetime'),\n domutil = require('../common/domutil'),\n common = require('../common/common'),\n Month = require('../view/month/month'),\n MonthClick = require('../handler/month/click'),\n MonthCreation = require('../handler/month/creation'),\n MonthResize = require('../handler/month/resize'),\n MonthMove = require('../handler/month/move'),\n More = require('../view/month/more'),\n ScheduleCreationPopup = require('../view/popup/scheduleCreationPopup'),\n ScheduleDetailPopup = require('../view/popup/scheduleDetailPopup'),\n Schedule = require('../model/schedule');\n\n/**\n * Get the view model for more layer\n * @param {TZDate} date - date has more schedules\n * @param {HTMLElement} target - target element\n * @param {Collection} schedules - schedule collection\n * @param {string[]} daynames - daynames to use upside of month more view\n * @returns {object} view model\n */\nfunction getViewModelForMoreLayer(date, target, schedules, daynames) {\n schedules.each(function(schedule) {\n var model = schedule.model;\n schedule.hasMultiDates = !datetime.isSameDate(model.start, model.end);\n });\n\n return {\n target: target,\n date: datetime.format(date, 'YYYY.MM.DD'),\n dayname: daynames[date.getDay()],\n schedules: schedules.sort(array.compare.schedule.asc)\n };\n}\n\n/**\n * @param {Base} baseController - controller instance\n * @param {HTMLElement} layoutContainer - container element for month view\n * @param {Drag} dragHandler - drag handler instance\n * @param {object} options - options\n * @returns {object} view instance and refresh method\n */\nfunction createMonthView(baseController, layoutContainer, dragHandler, options) {\n var monthViewContainer, monthView, moreView, createView;\n var clickHandler, creationHandler, resizeHandler, moveHandler, clearSchedulesHandler, onUpdateSchedule;\n var onShowCreationPopup, onSaveNewSchedule, onShowEditPopup;\n var detailView, onShowDetailPopup, onDeleteSchedule, onEditSchedule;\n\n monthViewContainer = domutil.appendHTMLElement(\n 'div', layoutContainer, config.classname('month'));\n\n monthView = new Month(options, monthViewContainer, baseController.Month);\n moreView = new More(options.month, layoutContainer, baseController.theme);\n\n // handlers\n clickHandler = new MonthClick(dragHandler, monthView, baseController);\n if (!options.isReadOnly) {\n creationHandler = new MonthCreation(dragHandler, monthView, baseController, options);\n resizeHandler = new MonthResize(dragHandler, monthView, baseController);\n moveHandler = new MonthMove(dragHandler, monthView, baseController);\n }\n\n clearSchedulesHandler = function() {\n if (moreView) {\n moreView.hide();\n }\n };\n\n onUpdateSchedule = function() {\n if (moreView) {\n moreView.refresh();\n }\n };\n\n // binding +n click schedule\n clickHandler.on('clickMore', function(clickMoreSchedule) {\n var date = clickMoreSchedule.date,\n target = clickMoreSchedule.target,\n schedules = util.pick(baseController.findByDateRange(\n datetime.start(date),\n datetime.end(date)\n ), clickMoreSchedule.ymd);\n\n schedules.items = util.filter(schedules.items, function(item) {\n return options.month.scheduleFilter(item.model);\n });\n\n if (schedules && schedules.length) {\n moreView.render(getViewModelForMoreLayer(date, target, schedules, monthView.options.daynames));\n\n schedules.each(function(scheduleViewModel) {\n if (scheduleViewModel) {\n /**\n * @event More#afterRenderSchedule\n */\n monthView.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n\n monthView.fire('clickMore', {\n date: clickMoreSchedule.date,\n target: moreView.getMoreViewElement()\n });\n }\n });\n\n // binding popup for schedules creation\n if (options.useCreationPopup) {\n createView = new ScheduleCreationPopup(layoutContainer, baseController.calendars, options.usageStatistics);\n\n onSaveNewSchedule = function(scheduleData) {\n creationHandler.fire('beforeCreateSchedule', util.extend(scheduleData, {\n useCreationPopup: true\n }));\n };\n createView.on('beforeCreateSchedule', onSaveNewSchedule);\n }\n\n // binding popup for schedule detail\n if (options.useDetailPopup) {\n detailView = new ScheduleDetailPopup(layoutContainer, baseController.calendars);\n onShowDetailPopup = function(eventData) {\n var scheduleId = eventData.schedule.calendarId;\n eventData.calendar = common.find(baseController.calendars, function(calendar) {\n return calendar.id === scheduleId;\n });\n\n if (options.isReadOnly) {\n eventData.schedule = util.extend({}, eventData.schedule, {isReadOnly: true});\n }\n\n detailView.render(eventData);\n };\n onDeleteSchedule = function(eventData) {\n if (creationHandler) {\n creationHandler.fire('beforeDeleteSchedule', eventData);\n }\n };\n onEditSchedule = function(eventData) {\n moveHandler.fire('beforeUpdateSchedule', eventData);\n };\n\n clickHandler.on('clickSchedule', onShowDetailPopup);\n\n detailView.on('beforeDeleteSchedule', onDeleteSchedule);\n\n if (options.useCreationPopup) {\n onShowEditPopup = function(eventData) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n };\n createView.on('beforeUpdateSchedule', onEditSchedule);\n detailView.on('beforeUpdateSchedule', onShowEditPopup);\n } else {\n detailView.on('beforeUpdateSchedule', onEditSchedule);\n }\n }\n\n // binding clear schedules\n baseController.on('clearSchedules', clearSchedulesHandler);\n\n // bind update schedule event\n baseController.on('updateSchedule', onUpdateSchedule);\n\n if (moveHandler) {\n moveHandler.on('monthMoveStart_from_morelayer', function() {\n moreView.hide();\n });\n }\n\n monthView.handler = {\n click: {\n 'default': clickHandler\n }\n };\n\n if (!options.isReadOnly) {\n monthView.handler = util.extend(monthView.handler, {\n creation: {\n 'default': creationHandler\n },\n resize: {\n 'default': resizeHandler\n },\n move: {\n 'default': moveHandler\n }\n });\n }\n\n monthView._beforeDestroy = function() {\n moreView.destroy();\n baseController.off('clearSchedules', clearSchedulesHandler);\n baseController.off('updateSchedule', onUpdateSchedule);\n\n util.forEach(monthView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n\n if (options.useCreationPopup && options.useDetailPopup) {\n createView.off('beforeUpdateSchedule', onUpdateSchedule);\n }\n\n if (options.useCreationPopup) {\n if (creationHandler) {\n creationHandler.off('beforeCreateSchedule', onShowCreationPopup);\n }\n createView.off('saveSchedule', onSaveNewSchedule);\n createView.destroy();\n }\n\n if (options.useDetailPopup) {\n clickHandler.off('clickSchedule', onShowDetailPopup);\n detailView.off('beforeUpdateSchedule', onUpdateSchedule);\n detailView.off('beforeDeleteSchedule', onDeleteSchedule);\n detailView.destroy();\n }\n };\n\n // add controller\n monthView.controller = baseController.Month;\n\n return {\n view: monthView,\n refresh: function() {\n monthView.vLayout.refresh();\n },\n openCreationPopup: function(schedule) {\n if (createView && creationHandler) {\n creationHandler.invokeCreationClick(Schedule.create(schedule));\n }\n },\n showCreationPopup: function(eventData) {\n if (createView) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n }\n },\n hideMoreView: function() {\n if (moreView) {\n moreView.hide();\n }\n }\n };\n}\n\nmodule.exports = createMonthView;\n","/**\n * @fileoverview Factory module for WeekView\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar common = require('../common/common');\nvar VLayout = require('../common/vlayout');\nvar reqAnimFrame = require('../common/reqAnimFrame');\nvar Schedule = require('../model/schedule');\n// Parent views\nvar Week = require('../view/week/week');\n\n// Sub views\nvar DayName = require('../view/week/dayname');\nvar DayGrid = require('../view/week/dayGrid');\nvar TimeGrid = require('../view/week/timeGrid');\nvar ScheduleCreationPopup = require('../view/popup/scheduleCreationPopup');\nvar ScheduleDetailPopup = require('../view/popup/scheduleDetailPopup');\n\n// Handlers\nvar DayNameClick = require('../handler/time/clickDayname');\nvar DayGridClick = require('../handler/daygrid/click');\nvar DayGridCreation = require('../handler/daygrid/creation');\nvar DayGridMove = require('../handler/daygrid/move');\nvar DayGridResize = require('../handler/daygrid/resize');\nvar TimeClick = require('../handler/time/click');\nvar TimeCreation = require('../handler/time/creation');\nvar TimeMove = require('../handler/time/move');\nvar TimeResize = require('../handler/time/resize');\n\nvar DAYGRID_HANDLDERS = {\n 'click': DayGridClick,\n 'creation': DayGridCreation,\n 'move': DayGridMove,\n 'resize': DayGridResize\n};\nvar TIMEGRID_HANDLERS = {\n 'click': TimeClick,\n 'creation': TimeCreation,\n 'move': TimeMove,\n 'resize': TimeResize\n};\nvar DEFAULT_PANELS = [\n {\n name: 'milestone',\n type: 'daygrid',\n minHeight: 20,\n maxHeight: 80,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click'],\n show: true\n },\n {\n name: 'task',\n type: 'daygrid',\n minHeight: 40,\n maxHeight: 120,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click', 'move'],\n show: true\n },\n {\n name: 'allday',\n type: 'daygrid',\n minHeight: 30,\n maxHeight: 80,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click', 'creation', 'move', 'resize'],\n show: true\n },\n {\n name: 'time',\n type: 'timegrid',\n autoHeight: true,\n handlers: ['click', 'creation', 'move', 'resize'],\n show: true\n }\n];\n\n/* eslint-disable complexity*/\nmodule.exports = function(baseController, layoutContainer, dragHandler, options, viewName) {\n var panels = [],\n vpanels = [];\n var weekView, dayNameContainer, dayNameView, vLayoutContainer, vLayout;\n var createView, onSaveNewSchedule, onSetCalendars, lastVPanel;\n var detailView, onShowDetailPopup, onDeleteSchedule, onShowEditPopup, onEditSchedule;\n var taskView = options.taskView;\n var scheduleView = options.scheduleView;\n var viewVisibilities = {\n 'milestone': util.isArray(taskView) ? util.inArray('milestone', taskView) >= 0 : taskView,\n 'task': util.isArray(taskView) ? util.inArray('task', taskView) >= 0 : taskView,\n 'allday': util.isArray(scheduleView) ? util.inArray('allday', scheduleView) >= 0 : scheduleView,\n 'time': util.isArray(scheduleView) ? util.inArray('time', scheduleView) >= 0 : scheduleView\n };\n\n // Make panels by view sequence and visibilities\n util.forEach(DEFAULT_PANELS, function(panel) {\n var name = panel.name;\n\n panel = util.extend({}, panel);\n panels.push(panel);\n\n // Change visibilities\n panel.show = viewVisibilities[name];\n\n if (panel.show) {\n if (vpanels.length) {\n vpanels.push({\n isSplitter: true\n });\n }\n vpanels.push(util.extend({}, panel));\n }\n });\n\n if (vpanels.length) {\n lastVPanel = vpanels[vpanels.length - 1];\n lastVPanel.autoHeight = true;\n lastVPanel.maxHeight = null;\n lastVPanel.showExpandableButton = false;\n\n util.forEach(panels, function(panel) {\n if (panel.name === lastVPanel.name) {\n panel.showExpandableButton = false;\n\n return false;\n }\n\n return true;\n });\n }\n\n util.extend(options.week, {panels: panels});\n\n weekView = new Week(null, options.week, layoutContainer, panels, viewName);\n weekView.handler = {\n click: {},\n dayname: {},\n creation: {},\n move: {},\n resize: {}\n };\n\n dayNameContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('dayname-layout'));\n\n /**********\n * Day name (top row(Mon, Tue, Wed...))\n **********/\n dayNameView = new DayName(options, dayNameContainer, baseController.theme);\n weekView.handler.dayname.date = new DayNameClick(dragHandler, dayNameView, baseController);\n weekView.addChild(dayNameView);\n\n /**********\n * Initialize vertical layout module\n **********/\n vLayoutContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('vlayout-area'));\n vLayoutContainer.style.height = (domutil.getSize(weekView.container)[1] - dayNameView.container.offsetHeight) + 'px';\n\n vLayout = new VLayout({\n panels: vpanels,\n panelHeights: options.week.panelHeights || []\n }, vLayoutContainer, baseController.theme);\n\n weekView.vLayout = vLayout;\n\n util.forEach(panels, function(panel) {\n var name = panel.name;\n var handlers = panel.handlers;\n var view;\n\n if (!panel.show) {\n return;\n }\n\n if (panel.type === 'daygrid') {\n /**********\n * Schedule panel by Grid\n **********/\n view = new DayGrid(name, options, vLayout.getPanelByName(panel.name).container, baseController.theme);\n view.on('afterRender', function(viewModel) {\n vLayout.getPanelByName(name).setHeight(null, viewModel.height);\n });\n\n weekView.addChild(view);\n\n util.forEach(handlers, function(type) {\n if (!options.isReadOnly || type === 'click') {\n weekView.handler[type][name] =\n new DAYGRID_HANDLDERS[type](dragHandler, view, baseController, options);\n view.addHandler(type, weekView.handler[type][name], vLayout.getPanelByName(name));\n }\n });\n } else if (panel.type === 'timegrid') {\n /**********\n * Schedule panel by TimeGrid\n **********/\n view = new TimeGrid(name, options, vLayout.getPanelByName(name).container);\n weekView.addChild(view);\n util.forEach(handlers, function(type) {\n if (!options.isReadOnly || type === 'click') {\n weekView.handler[type][name] =\n new TIMEGRID_HANDLERS[type](dragHandler, view, baseController, options);\n }\n });\n\n view.on('clickTimezonesCollapsedBtn', function() {\n var timezonesCollapsed = !weekView.state.timezonesCollapsed;\n\n weekView.setState({\n timezonesCollapsed: timezonesCollapsed\n });\n reqAnimFrame.requestAnimFrame(function() {\n if (!weekView.invoke('clickTimezonesCollapseBtn', timezonesCollapsed)) {\n weekView.render();\n }\n });\n });\n }\n });\n\n vLayout.on('resize', function() {\n reqAnimFrame.requestAnimFrame(function() {\n weekView.render();\n });\n });\n\n // binding create schedules event\n if (options.useCreationPopup) {\n createView = new ScheduleCreationPopup(layoutContainer, baseController.calendars, options.usageStatistics);\n\n onSaveNewSchedule = function(scheduleData) {\n util.extend(scheduleData, {\n useCreationPopup: true\n });\n if (scheduleData.isAllDay) {\n weekView.handler.creation.allday.fire('beforeCreateSchedule', scheduleData);\n } else {\n weekView.handler.creation.time.fire('beforeCreateSchedule', scheduleData);\n }\n };\n createView.on('beforeCreateSchedule', onSaveNewSchedule);\n }\n\n onSetCalendars = function(calendars) {\n if (createView) {\n createView.setCalendars(calendars);\n }\n };\n\n baseController.on('setCalendars', onSetCalendars);\n\n // binding popup for schedule detail\n if (options.useDetailPopup) {\n detailView = new ScheduleDetailPopup(layoutContainer, baseController.calendars);\n onShowDetailPopup = function(eventData) {\n var scheduleId = eventData.schedule.calendarId;\n eventData.calendar = common.find(baseController.calendars, function(calendar) {\n return calendar.id === scheduleId;\n });\n\n if (options.isReadOnly) {\n eventData.schedule = util.extend({}, eventData.schedule, {isReadOnly: true});\n }\n\n detailView.render(eventData);\n };\n onDeleteSchedule = function(eventData) {\n if (eventData.isAllDay) {\n weekView.handler.creation.allday.fire('beforeDeleteSchedule', eventData);\n } else {\n weekView.handler.creation.time.fire('beforeDeleteSchedule', eventData);\n }\n };\n onEditSchedule = function(eventData) {\n if (eventData.isAllDay) {\n weekView.handler.move.allday.fire('beforeUpdateSchedule', eventData);\n } else {\n weekView.handler.move.time.fire('beforeUpdateSchedule', eventData);\n }\n };\n\n util.forEach(weekView.handler.click, function(panel) {\n panel.on('clickSchedule', onShowDetailPopup);\n });\n if (options.useCreationPopup) {\n onShowEditPopup = function(eventData) {\n var calendars = baseController.calendars;\n eventData.isEditMode = true;\n createView.setCalendars(calendars);\n createView.render(eventData);\n };\n createView.on('beforeUpdateSchedule', onEditSchedule);\n detailView.on('beforeUpdateSchedule', onShowEditPopup);\n } else {\n detailView.on('beforeUpdateSchedule', onEditSchedule);\n }\n detailView.on('beforeDeleteSchedule', onDeleteSchedule);\n }\n\n weekView.on('afterRender', function() {\n vLayout.refresh();\n });\n\n // add controller\n weekView.controller = baseController.Week;\n\n // add destroy\n weekView._beforeDestroy = function() {\n util.forEach(weekView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n\n if (options.useCreationPopup) {\n createView.off('beforeCreateSchedule', onSaveNewSchedule);\n createView.destroy();\n }\n\n if (options.useDetailPopup) {\n detailView.off('beforeDeleteSchedule', onDeleteSchedule);\n detailView.destroy();\n }\n\n weekView.off();\n };\n\n return {\n view: weekView,\n refresh: function() {\n var weekViewHeight = weekView.getViewBound().height,\n daynameViewHeight = domutil.getBCRect(\n dayNameView.container\n ).height;\n\n vLayout.container.style.height =\n weekViewHeight - daynameViewHeight + 'px';\n vLayout.refresh();\n },\n scrollToNow: function() {\n weekView.children.each(function(childView) {\n if (childView.scrollToNow) {\n childView.scrollToNow();\n }\n });\n },\n openCreationPopup: function(schedule) {\n if (createView) {\n if (schedule.isAllDay) {\n weekView.handler.creation.allday.invokeCreationClick(Schedule.create(schedule));\n } else {\n weekView.handler.creation.time.invokeCreationClick(Schedule.create(schedule));\n }\n }\n },\n showCreationPopup: function(eventData) {\n if (createView) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n }\n }\n };\n};\n","/**\n * @fileoverview Click handle module for daygrid schedules\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar DayGridMove = require('./move');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - daygrid view instance.\n * @param {Base} [controller] - Base controller instance.\n */\nfunction DayGridClick(dragHandler, view, controller) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * @type {Base}\n */\n this.controller = controller;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy handler module\n */\nDayGridClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.view = this.controller = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nDayGridClick.prototype.checkExpectCondition = DayGridMove.prototype.checkExpectedCondition;\n\n/**\n * Click event handler\n * @param {object} clickEvent - click event data\n * @emits DayGridClick#clickSchedule\n * @emits DayGridClick#collapse\n * @emits DayGridClick#expand\n */\nDayGridClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n dayGridScheduleView = this.checkExpectCondition(target),\n scheduleCollection = this.controller.schedules,\n collapseBtnElement = domutil.closest(\n target,\n config.classname('.weekday-collapse-btn')\n ),\n expandBtnElement = domutil.closest(\n target,\n config.classname('.weekday-exceed-in-week')\n ),\n containsTarget = this.view.container.contains(target);\n var blockElement, scheduleElement;\n\n if (!containsTarget) {\n return;\n }\n\n if (collapseBtnElement) {\n /**\n * click collpase btn event\n * @events DayGridClick#collapse\n */\n self.fire('collapse');\n\n return;\n }\n\n if (expandBtnElement) {\n this.view.setState({\n clickedExpandBtnIndex: parseInt(domutil.getData(expandBtnElement, 'index'), 10)\n });\n\n /**\n * click expand btn event\n * @events DayGridClick#expand\n */\n self.fire('expand');\n\n return;\n }\n\n if (!dayGridScheduleView) {\n return;\n }\n\n scheduleElement = domutil.closest(target, config.classname('.weekday-schedule'));\n if (scheduleElement) {\n blockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events DayGridClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(DayGridClick);\n\nmodule.exports = DayGridClick;\n","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Base mixin object for handler/daygrid\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\n\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @mixin dayGridCore\n */\nvar dayGridCore = {\n /**\n * @param {view} view - view instance.\n * @param {MouseEvent} mouseEvent - mouse schedule object.\n * @returns {function|boolean} function that return schedule data by mouse events.\n */\n _retriveScheduleData: function(view, mouseEvent) {\n var weekdayView = view.children.single(),\n container,\n datesInRange,\n containerWidth,\n mousePos,\n dragStartXIndex,\n grids,\n range;\n\n if (!weekdayView) {\n return false;\n }\n\n container = weekdayView.container;\n range = weekdayView.getRenderDateRange();\n datesInRange = range.length;\n grids = weekdayView.getRenderDateGrids();\n\n containerWidth = domutil.getSize(container)[0];\n mousePos = domevent.getMousePosition(mouseEvent, container);\n dragStartXIndex = getX(grids, common.ratio(containerWidth, 100, mousePos[0]));\n\n /**\n * @param {MouseEvent} mouseEvent - mouse schedule in drag actions.\n * @returns {object} schedule data.\n */\n return function(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, container),\n mouseX = pos[0],\n xIndex = getX(grids, common.ratio(containerWidth, 100, mouseX));\n\n // apply limitation of creation schedule X index.\n xIndex = mmax(xIndex, 0);\n xIndex = mmin(xIndex, datesInRange - 1);\n\n return {\n relatedView: view,\n dragStartXIndex: dragStartXIndex,\n datesInRange: datesInRange,\n xIndex: xIndex,\n triggerEvent: mouseEvent.type,\n grids: grids,\n range: range\n };\n };\n },\n\n /**\n * @param {view} view - view instance.\n * @param {TZDate} startDate - start date\n * @returns {function|boolean} function that return schedule data by mouse events.\n */\n _retriveScheduleDataFromDate: function(view, startDate) {\n var weekdayView = view.children.single(),\n datesInRange,\n dragStartXIndex = 0,\n grids,\n range;\n\n if (!weekdayView) {\n return false;\n }\n\n range = weekdayView.getRenderDateRange();\n datesInRange = range.length;\n grids = weekdayView.getRenderDateGrids();\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, startDate)) {\n dragStartXIndex = index;\n }\n });\n\n /**\n * @param {TZDate} targetDate - target date\n * @returns {object} schedule data.\n */\n return function(targetDate) {\n var xIndex = 0;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, targetDate)) {\n xIndex = index;\n }\n });\n\n // apply limitation of creation schedule X index.\n xIndex = mmax(xIndex, 0);\n xIndex = mmin(xIndex, datesInRange - 1);\n\n return {\n relatedView: view,\n dragStartXIndex: dragStartXIndex,\n datesInRange: datesInRange,\n xIndex: xIndex,\n triggerEvent: 'manual',\n grids: grids,\n range: range\n };\n };\n }\n};\n\n/**\n * Get the left index\n * @param {Array} grids - grid size information\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\nfunction getX(grids, left) {\n var i = 0;\n var length = grids.length;\n var grid;\n if (left < 0) {\n left = 0;\n }\n\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return i;\n}\n\nmodule.exports = dayGridCore;\n","/**\n * @fileoverview Handler module for WeekdayInWeek view's creation actions.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar dayGridCore = require('./core');\nvar DayGridCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CutomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - DayGrid view instance.\n * @param {Base} [controller] - Base controller instance.\n * @param {Options} [options] - calendar Options\n */\nfunction DayGridCreation(dragHandler, view, controller, options) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {DayGridCreationGuide}\n */\n this.guide = new DayGridCreationGuide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(view.container, 'dblclick', this._onDblClick, this);\n }\n}\n\n/**\n * Destroy method\n */\nDayGridCreation.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (this.view && this.view.container) {\n domevent.off(this.view.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.view = this.controller = this.getScheduleDataFunc = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nDayGridCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target).trim();\n var excludeTarget = true;\n var matches, schedulesElement;\n\n if (domutil.closest(target, config.classname('.weekday-exceed-in-week'))\n || domutil.closest(target, config.classname('.weekday-collapse-btn'))\n ) {\n return false;\n }\n\n if (domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget)) {\n return false;\n }\n\n schedulesElement = domutil.closest(target, config.classname('.weekday-schedules'));\n if (!schedulesElement && cssClass !== config.classname('weekday-schedules')) {\n return false;\n }\n\n target = schedulesElement ? schedulesElement.parentNode : target.parentNode;\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * Request schedule model creation to controller by custom schedules.\n * @fires {DayGridCreation#beforeCreateSchedule}\n * @param {object} scheduleData - schedule data from DayGridCreation module.\n */\nDayGridCreation.prototype._createSchedule = function(scheduleData) {\n var dateRange = scheduleData.range,\n startXIndex = scheduleData.dragStartXIndex,\n xIndex = scheduleData.xIndex,\n start, end;\n\n // when inverse start, end then change it.\n if (xIndex < startXIndex) {\n startXIndex = xIndex + startXIndex;\n xIndex = startXIndex - xIndex;\n startXIndex = startXIndex - xIndex;\n }\n\n start = new TZDate(dateRange[startXIndex]);\n end = datetime.end(dateRange[xIndex]);\n\n /**\n * @event {DayGridCreation#beforeCreateSchedule}\n * @type {object}\n * @property {string} category - schedule category\n * @property {boolean} isAllDay - whether schedule is fired in view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {DayGridCreationGuide} guide - DayGridCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n category: this.view.options.viewName,\n isAllDay: true,\n start: start,\n end: end,\n guide: this.guide,\n triggerEventName: scheduleData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler method.\n * @emits DayGridCreation#dragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler schedule data.\n */\nDayGridCreation.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n\n scheduleData = getScheduleDataFunc(dragStartEventData.originEvent);\n\n /**\n * @event DayGridCreation#dragstart\n * @type {object}\n * @property {DayGridView} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridCreation#drag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nDayGridCreation.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent);\n\n /**\n * @event DayGridCreation#drag\n * @type {object}\n * @property {DayGridView} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('drag', scheduleData);\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridCreation#dragend\n * @param {object} dragEndEventData - Drag#dragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n */\nDayGridCreation.prototype._onDragEnd = function(dragEndEventData, overrideEventName) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n var scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\n this._createSchedule(scheduleData);\n\n /**\n * @event DayGridCreation#dragend\n * @type {object}\n * @property {DayGridView} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridCreation#click\n * @param {object} clickEventData - Drag#click event handler data.\n */\nDayGridCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target) || this._disableClick) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, clickEventData.originEvent);\n scheduleData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('click', scheduleData);\n self._createSchedule(scheduleData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Dblclick event handler method.\n * @emits DayGridCreation#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridCreation.prototype._onDblClick = function(clickEventData) {\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target)) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, clickEventData);\n scheduleData = getScheduleDataFunc(clickEventData);\n\n this.fire('click', scheduleData);\n\n this._createSchedule(scheduleData);\n\n this._requestOnClick = false;\n};\n\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nDayGridCreation.prototype.invokeCreationClick = function(schedule) {\n var getScheduleDataFunc, scheduleData;\n\n getScheduleDataFunc = this._retriveScheduleDataFromDate(this.view, schedule.start);\n scheduleData = getScheduleDataFunc(schedule.start);\n\n this.fire('click', scheduleData);\n\n this._createSchedule(scheduleData);\n};\n\ncommon.mixin(dayGridCore, DayGridCreation);\nutil.CustomEvents.mixin(DayGridCreation);\n\nmodule.exports = DayGridCreation;\n","/**\n * @fileoverview Guide element for DayGrid.Creation\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * Class for DayGrid.Creation dragging effect.\n * @constructor\n * @param {DayGridCreation} creation - instance of DayGridCreation.\n */\nfunction DayGridCreationGuide(creation) {\n /**\n * @type {DayGridCreation}\n */\n this.creation = creation;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = document.createElement('div');\n\n this.initializeGuideElement();\n this.applyTheme(creation.controller.theme);\n\n creation.on({\n dragstart: this._createGuideElement,\n drag: this._onDrag,\n click: this._createGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.creation.off(this);\n this.creation = this.scheduleContainer = this.guideElement = null;\n};\n\n/**\n * initialize guide element's default style.\n */\nDayGridCreationGuide.prototype.initializeGuideElement = function() {\n domutil.addClass(this.guideElement, config.classname('daygrid-guide-creation-block'));\n};\n\n/**\n * Drag event handler\n * @param {object} scheduleData - schedule data from DayGrid.Creation handler.\n */\nDayGridCreationGuide.prototype._onDrag = function(scheduleData) {\n this._refreshGuideElement(scheduleData, true);\n};\n\n/**\n * Get element width based on narrowWeekend\n * @param {number} dragStartIndex - grid start index\n * @param {number} dragEndIndex - grid end index\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nDayGridCreationGuide.prototype._getGuideWidth = function(dragStartIndex, dragEndIndex, grids) {\n var width = 0;\n var i = dragStartIndex;\n for (; i <= dragEndIndex; i += 1) {\n width += grids[i] ? grids[i].width : 0;\n }\n\n return width;\n};\n\n/**\n * Refresh guide element.\n * @param {object} scheduleData - schedule data from DayGrid.Creation handler.\n * @param {boolean} defer - If set to true, set style in the next frame\n */\nDayGridCreationGuide.prototype._refreshGuideElement = function(scheduleData, defer) {\n var guideElement = this.guideElement,\n data = scheduleData,\n dragStartXIndex = data.dragStartXIndex < data.xIndex ? data.dragStartXIndex : data.xIndex,\n dragEndXIndex = data.dragStartXIndex < data.xIndex ? data.xIndex : data.dragStartXIndex,\n leftPercent,\n widthPercent;\n\n leftPercent = data.grids[dragStartXIndex] ? data.grids[dragStartXIndex].left : 0;\n widthPercent = this._getGuideWidth(dragStartXIndex, dragEndXIndex, data.grids);\n\n /** eslint-disable require-jsdoc */\n function setStyle() {\n guideElement.style.display = 'block';\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n }\n\n if (defer) {\n reqAnimFrame.requestAnimFrame(setStyle);\n } else {\n setStyle();\n }\n};\n\n/**\n * Clear guide element.\n */\nDayGridCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement;\n\n domutil.remove(guideElement);\n\n guideElement.style.display = 'none';\n guideElement.style.left = '';\n guideElement.style.width = '';\n};\n\n/**\n * Create guide element\n * @param {object} dragStartEventData - schedule data object of DayGrid.Creation.\n */\nDayGridCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var creation = this.creation,\n view = creation.view,\n container = view.container,\n scheduleContainer = domutil.find(config.classname('.weekday-grid'), container);\n\n scheduleContainer.appendChild(this.guideElement);\n this._refreshGuideElement(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - event data object of DayGrid.Creation.\n */\nDayGridCreationGuide.prototype._onDrag = function(dragEventData) {\n this._refreshGuideElement(dragEventData);\n};\n\nDayGridCreationGuide.prototype.applyTheme = function(theme) {\n var style = this.guideElement.style;\n\n style.backgroundColor = theme.common.creationGuide.backgroundColor;\n style.border = theme.common.creationGuide.border;\n};\n\nmodule.exports = DayGridCreationGuide;\n","/**\n * @fileoverview Move handler for DayGrid view.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar dayGridCore = require('./core');\nvar DayGridMoveGuide = require('./moveGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CustomEvents\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {DayGrid} view - view instance.\n * @param {Base} controller - Base controller instance.\n */\nfunction DayGridMove(dragHandler, view, controller) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\n\n /**\n * Temporary variable for dragstart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {DayGridMoveGuide}\n */\n this.guide = new DayGridMoveGuide(this);\n}\n\nDayGridMove.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.view = this.controller =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|DayGridSchedule} return DayGridSchedule view instance when satiate condition.\n */\nDayGridMove.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n parentView,\n matches;\n\n if (~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n parentView = domutil.closest(target, config.classname('.weekday'));\n\n if (!parentView) {\n return false;\n }\n\n cssClass = domutil.getClass(parentView);\n matches = cssClass.match(config.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler method.\n * @emits DayGridMove#dragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler event data.\n */\nDayGridMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.controller,\n excludeTarget = true,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget);\n if (!scheduleBlockElement) {\n return;\n }\n\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event DayGridMove#dragstart\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridMove#drag\n * @param {object} dragEventData - Drag#drag event handler eventdata.\n */\nDayGridMove.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @schedule DayGridMove#drag\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('drag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule model to base controller.\n * @fires DayGridMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from DayGridMove handler module.\n */\nDayGridMove.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newStarts = new TZDate(schedule.start),\n newEnds = new TZDate(schedule.end);\n\n newStarts = newStarts.addDate(dateOffset);\n newEnds = newEnds.addDate(dateOffset);\n\n /**\n * @event DayGridMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: {\n start: newStarts,\n end: newEnds\n },\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridMove#dragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nDayGridMove.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event DayGridMove#dragend\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridMove#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridMove.prototype._onClick = function(clickEventData) {\n /**\n * @event DayGridMove#click\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'click', true);\n};\n\ncommon.mixin(dayGridCore, DayGridMove);\nutil.CustomEvents.mixin(DayGridMove);\n\nmodule.exports = DayGridMove;\n","/**\n * @fileoverview Effect module for DayGrid.Move\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * Class for DayGrid.Move dragging effect.\n * @constructor\n * @param {DayGridMove} daygridMove - instance of DayGridMove.\n */\nfunction DayGridMoveGuide(daygridMove) {\n /**\n * @type {DayGridMove}\n */\n this.daygridMove = daygridMove;\n\n /**\n * The element that actually contains the event element\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {number}\n */\n this._dragStartXIndex = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n daygridMove.on({\n 'dragstart': this._onDragStart,\n 'drag': this._onDrag,\n 'dragend': this._clearGuideElement,\n 'click': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.daygridMove.off(this);\n this.daygridMove = this.scheduleContainer = this._dragStartXIndex =\n this.elements = this.guideElement = null;\n};\n\n/**\n * Clear guide element.\n */\nDayGridMoveGuide.prototype._clearGuideElement = function() {\n this._showOriginScheduleBlocks();\n\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._dragStartXIndex = this.getScheduleDataFunc = this.guideElement = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nDayGridMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n var scheduleBlocks = domutil.find(\n config.classname('.weekday-schedule-block'),\n this.daygridMove.view.container,\n true\n );\n\n this.elements = util.filter(scheduleBlocks, function(schedule) {\n return domutil.getData(schedule, 'id') === modelID;\n });\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nDayGridMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\n/**\n * Highlight element blocks\n * @param {Schedule} model - model\n * @param {HTMLElement} parent - parent element\n */\nDayGridMoveGuide.prototype._highlightScheduleBlocks = function(model, parent) {\n var elements = domutil.find(config.classname('.weekday-schedule'), parent, true);\n\n util.forEach(elements, function(el) {\n el.style.margin = '0';\n\n if (!model.isFocused) {\n el.style.backgroundColor = model.dragBgColor;\n el.style.borderLeftColor = model.borderColor;\n el.style.color = '#ffffff';\n }\n });\n};\n\n/**\n * Refresh guide element.\n * @param {number} leftPercent - left percent of guide element.\n * @param {number} widthPercent - width percent of guide element.\n * @param {boolean} isExceededLeft - schedule start is faster then render start date?\n * @param {boolean} isExceededRight - schedule end is later then render end date?\n */\nDayGridMoveGuide.prototype.refreshGuideElement = function(leftPercent, widthPercent, isExceededLeft, isExceededRight) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n\n if (isExceededLeft) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-left'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-left'));\n }\n\n if (isExceededRight) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-right'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-right'));\n }\n });\n};\n\n/**\n * Get schedule block information from schedule data.\n *\n * For example, there is single schedule has 10 length. but render range in view is 5 then\n * rendered block must be cut out to render properly. in this case, this method return\n * how many block are cut before rendering.\n *\n * @param {object} dragStartEventData - schedule data from DayGrid.Move handler.\n * @returns {function} function that return schedule block information.\n */\nDayGridMoveGuide.prototype._getScheduleBlockDataFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n datesInRange = dragStartEventData.datesInRange,\n range = dragStartEventData.range,\n baseWidthPercent = (100 / datesInRange),\n originScheduleStarts = datetime.start(model.start),\n originScheduleEnds = datetime.end(model.end),\n renderStartDate = datetime.start(range[0]),\n renderEndDate = datetime.end(range[range.length - 1]),\n fromLeft = Math.ceil((originScheduleStarts.getTime() -\n renderStartDate.getTime()) / datetime.MILLISECONDS_PER_DAY) || 0,\n fromRight = Math.ceil((originScheduleEnds.getTime() -\n renderEndDate.getTime()) / datetime.MILLISECONDS_PER_DAY) || 0;\n\n return function(indexOffset) {\n return {\n baseWidthPercent: baseWidthPercent,\n fromLeft: fromLeft + indexOffset,\n fromRight: fromRight + indexOffset\n };\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nDayGridMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var container = this.daygridMove.view.container,\n guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n this._hideOriginScheduleBlocks(String(dragStartEventData.model.cid()));\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), container);\n domutil.appendHTMLElement('div', guideElement, config.classname('weekday-schedule-cover'));\n scheduleContainer.appendChild(guideElement);\n\n this._dragStartXIndex = dragStartEventData.xIndex;\n this.getScheduleDataFunc = this._getScheduleBlockDataFunc(dragStartEventData);\n\n this._highlightScheduleBlocks(dragStartEventData.model, guideElement);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nDayGridMoveGuide.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStartXIndex = this._dragStartXIndex,\n datesInRange = dragEventData.datesInRange,\n grids = dragEventData.grids,\n scheduleData,\n isExceededLeft,\n isExceededRight,\n originLength,\n leftIndex,\n size,\n newLeft,\n newWidth;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.xIndex - dragStartXIndex);\n isExceededLeft = scheduleData.fromLeft < 0;\n isExceededRight = scheduleData.fromRight > 0;\n\n leftIndex = Math.max(0, scheduleData.fromLeft);\n originLength = (scheduleData.fromLeft * -1) + (datesInRange + scheduleData.fromRight);\n size = isExceededLeft ? (originLength + scheduleData.fromLeft) : originLength;\n size = isExceededRight ? (size - scheduleData.fromRight) : size;\n\n newLeft = grids[leftIndex] ? grids[leftIndex].left : 0;\n newWidth = getScheduleBlockWidth(leftIndex, size, grids);\n\n this.refreshGuideElement(newLeft, newWidth, isExceededLeft, isExceededRight);\n};\n\n/**\n * Get schedule width based on grids\n * @param {number} left - left index\n * @param {number} size - schedule width\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getScheduleBlockWidth(left, size, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n for (; i < size; i += 1) {\n left = (left + i) % length;\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nmodule.exports = DayGridMoveGuide;\n","/**\n * @fileoverview Resize handler module for DayGrid view.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar common = require('../../common/common');\nvar dayGridCore = require('./core');\nvar DayGridResizeGuide = require('./resizeGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - view instance.\n * @param {Base} [controller] - Base controller instance.\n */\nfunction DayGridResize(dragHandler, view, controller) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\n\n /**\n * Temporary variable for dragStart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {DayGridResizeGuide}\n */\n this.guide = new DayGridResizeGuide(this);\n}\n\n/**\n * Destroy method\n */\nDayGridResize.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.view = this.controller =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nDayGridResize.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (!~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n target = domutil.closest(target, config.classname('.weekday'));\n\n if (!target) {\n return false;\n }\n\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler.\n * @emits DayGridResize#dragstart\n * @param {object} dragStartEventData - schedule data.\n */\nDayGridResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.controller,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event DayGridResize#dragstart\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridResize#drag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nDayGridResize.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @event DayGridResize#drag\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('drag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule instance to base controller.\n * @fires DayGridResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from DayGridResize handler.\n */\nDayGridResize.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newEnds = new TZDate(schedule.end);\n var changes;\n\n newEnds = newEnds.addDate(dateOffset);\n newEnds = new TZDate(common.maxDate(datetime.end(schedule.start), newEnds));\n\n changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnds}\n );\n\n /**\n * @event DayGridResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridResize#dragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nDayGridResize.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event DayGridResize#dragend\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridResize#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridResize.prototype._onClick = function(clickEventData) {\n /**\n * @event DayGridResize#click\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'click', true);\n};\n\ncommon.mixin(dayGridCore, DayGridResize);\nutil.CustomEvents.mixin(DayGridResize);\n\nmodule.exports = DayGridResize;\n","/**\n * @fileoverview Resize Guide module.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * @constructor\n * @param {DayGridResize} resizeHandler - instance of DayGridResize\n */\nfunction DayGridResizeGuide(resizeHandler) {\n /**\n * @type {DayGridResize}\n */\n this.resizeHandler = resizeHandler;\n\n /**\n * The element that actually contains the event element\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.scheduleBlockElement = null;\n\n resizeHandler.on({\n 'dragstart': this._onDragStart,\n 'drag': this._onDrag,\n 'dragend': this._clearGuideElement,\n 'click': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.resizeHandler.off(this);\n this.resizeHandler = this.scheduleContainer = this.getScheduleDataFunc =\n this.guideElement = this.scheduleBlockElement = null;\n};\n\n/**\n * Clear guide element.\n */\nDayGridResizeGuide.prototype._clearGuideElement = function() {\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n\n if (this.scheduleBlockElement) {\n domutil.removeClass(this.scheduleBlockElement, config.classname('weekday-schedule-block-dragging-dim'));\n }\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Refresh guide element\n * @param {number} newWidth - new width percentage value to resize guide element.\n */\nDayGridResizeGuide.prototype.refreshGuideElement = function(newWidth) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.width = newWidth + '%';\n });\n};\n\n/**\n * Return function that calculate guide element's new width percentage value.\n * @param {object} dragStartEventData - dragstart schedule data.\n * @returns {function} return function that calculate guide element new width percentage.\n */\nDayGridResizeGuide.prototype.getGuideElementWidthFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n viewOptions = this.resizeHandler.view.options,\n fromLeft = Math.ceil(\n (model.start - viewOptions.renderStartDate) / datetime.MILLISECONDS_PER_DAY\n ) || 0,\n grids = dragStartEventData.grids;\n\n return function(xIndex) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n width += grids[fromLeft] ? grids[fromLeft].width : 0;\n\n for (; i < length; i += 1) {\n if (i > fromLeft && i <= xIndex) {\n width += grids[i] ? grids[i].width : 0;\n }\n }\n\n return width;\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nDayGridResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var container = this.resizeHandler.view.container,\n scheduleBlockElement = this.scheduleBlockElement = dragStartEventData.scheduleBlockElement,\n guideElement = this.guideElement = scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), container);\n domutil.addClass(guideElement, config.classname('daygrid-guide-move'));\n domutil.addClass(scheduleBlockElement, config.classname('weekday-schedule-block-dragging-dim'));\n\n scheduleContainer.appendChild(guideElement);\n\n this.getScheduleDataFunc = this.getGuideElementWidthFunc(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nDayGridResizeGuide.prototype._onDrag = function(dragEventData) {\n var func = this.getScheduleDataFunc;\n\n if (!func) {\n return;\n }\n\n this.refreshGuideElement(func(dragEventData.xIndex));\n};\n\nmodule.exports = DayGridResizeGuide;\n","/**\n * @fileoverview Drag handler for calendar.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar domevent = require('../common/domevent');\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {object} options - options for drag handler\n * @param {number} [options.distance=10] - distance in pixels after mouse must move before dragging should start\n * @param {function} [options.exclude] - filter function for don't fire drag events that specific conditions.\n * @param {HTMLElement} container element to watching drag interaction.\n */\nfunction Drag(options, container) {\n domevent.on(container, 'mousedown', this._onMouseDown, this);\n\n this.options = util.extend({\n distance: 10,\n exclude: null\n }, options);\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * Flag for represent current dragging session has been cancelled for exclude option.\n * @type {boolean}\n */\n this._cancelled = false;\n\n /**\n * @type {boolean}\n */\n this._isMoved = false;\n\n /**\n * dragging distance in pixel between mousedown and firing dragStart events\n * @type {number}\n */\n this._distance = 0;\n\n /**\n * @type {boolean}\n */\n this._dragStartFired = false;\n\n /**\n * @type {object}\n */\n this._dragStartEventData = null;\n}\n\n/**\n * Destroy method.\n */\nDrag.prototype.destroy = function() {\n domevent.off(this.container, 'mousedown', this._onMouseDown, this);\n this._isMoved = null;\n this.container = null;\n};\n\n/**\n * Clear cache data for single dragging session.\n */\nDrag.prototype._clearData = function() {\n this._cancelled = false;\n this._distance = 0;\n this._isMoved = false;\n this._dragStartFired = false;\n this._dragStartEventData = null;\n};\n\n/**\n * Toggle events for mouse dragging.\n * @param {boolean} toBind - bind events related with dragging when supplied \"true\"\n */\nDrag.prototype._toggleDragEvent = function(toBind) {\n var container = this.container,\n domMethod,\n method;\n\n if (toBind) {\n domMethod = 'on';\n method = 'disable';\n } else {\n domMethod = 'off';\n method = 'enable';\n }\n\n domutil[method + 'TextSelection'](container);\n domutil[method + 'ImageDrag'](container);\n domevent[domMethod](global.document, {\n mousemove: this._onMouseMove,\n mouseup: this._onMouseUp\n }, this);\n};\n\n/**\n * Normalize mouse event object.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {object} normalized mouse event data.\n */\nDrag.prototype._getEventData = function(mouseEvent) {\n return {\n target: mouseEvent.target || mouseEvent.srcElement,\n originEvent: mouseEvent\n };\n};\n\n/**\n * MouseDown DOM event handler.\n * @param {MouseEvent} mouseDownEvent MouseDown event object.\n */\nDrag.prototype._onMouseDown = function(mouseDownEvent) {\n var opt = this.options,\n target = (mouseDownEvent.srcElement || mouseDownEvent.target);\n\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n if (opt.exclude && opt.exclude(target)) {\n this._cancelled = true;\n\n return;\n }\n\n this._clearData();\n this._dragStartEventData = this._getEventData(mouseDownEvent);\n\n this._toggleDragEvent(true);\n\n /**\n * mousedown event for firefox bug. cancelable.\n * @event Drag#mouseDown\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('mousedown', this._dragStartEventData);\n};\n\n/**\n * MouseMove DOM event handler.\n * @emits Drag#drag\n * @emits Drag#dragStart\n * @param {MouseEvent} mouseMoveEvent MouseMove event object.\n */\nDrag.prototype._onMouseMove = function(mouseMoveEvent) {\n var distance;\n\n if (this._cancelled) {\n this._clearData();\n\n return;\n }\n\n distance = this.options.distance;\n // prevent automatic scrolling.\n domevent.preventDefault(mouseMoveEvent);\n\n if (this._distance < distance) {\n this._distance += 1;\n\n return;\n }\n this._isMoved = true;\n\n if (!this._dragStartFired) {\n this._dragStartFired = true;\n\n /**\n * Drag start events. cancelable.\n * @event Drag#dragStart\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n if (!this.invoke('dragStart', this._dragStartEventData)) {\n this._toggleDragEvent(false);\n this._clearData();\n\n return;\n }\n }\n\n /**\n * CalEvents while dragging.\n * @event Drag#drag\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('drag', this._getEventData(mouseMoveEvent));\n};\n\n/**\n * MouseUp DOM event handler.\n * @param {MouseEvent} mouseUpEvent MouseUp event object.\n * @emits Drag#dragEnd\n * @emits Drag#click\n */\nDrag.prototype._onMouseUp = function(mouseUpEvent) {\n if (this._cancelled) {\n return;\n }\n\n this._toggleDragEvent(false);\n\n // emit \"click\" event when not emitted drag event between mousedown and mouseup.\n if (this._isMoved) {\n this._isMoved = false;\n /**\n * Drag end events.\n * @event Drag#dragEnd\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('dragEnd', this._getEventData(mouseUpEvent));\n } else {\n /**\n * Click events.\n * @event Drag#click\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('click', this._getEventData(mouseUpEvent));\n }\n\n this._clearData();\n};\n\nutil.CustomEvents.mixin(Drag);\n\nmodule.exports = Drag;\n","/**\n * @fileoverview Click handler for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Month} [monthView] - Month view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction MonthClick(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.monthView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * @fires MonthClick#clickMore\n * @param {object} clickEvent - click event object\n */\nMonthClick.prototype._onClick = function(clickEvent) {\n var self = this,\n moreElement,\n scheduleCollection = this.baseController.schedules,\n blockElement = domutil.closest(clickEvent.target, config.classname('.weekday-schedule-block'))\n || domutil.closest(clickEvent.target, config.classname('.month-more-schedule'));\n\n moreElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-exceed-in-month')\n );\n\n if (moreElement) {\n self.fire('clickMore', {\n date: datetime.parse(domutil.getData(moreElement, 'ymd')),\n target: moreElement,\n ymd: domutil.getData(moreElement, 'ymd')\n });\n }\n\n if (blockElement) {\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events AlldayClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(MonthClick);\n\nmodule.exports = MonthClick;\n","/**\n * @fileoverview Module for calculate date by month view and mouse event object\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent');\nvar mfloor = Math.floor;\n\n/**\n * Get high order function that can calc date in mouse point\n * @param {Month} monthView - month view\n * @returns {function} function return event data by mouse event object\n */\nfunction getMousePosDate(monthView) {\n var weekColl = monthView.children,\n weeks = weekColl.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n }),\n weekCount = weekColl.length,\n days = weekColl.single().getRenderDateRange(),\n dayCount = days.length,\n relativeContainer = util.pick(monthView.vLayout.panels[1], 'container'),\n size = domutil.getSize(relativeContainer),\n grids = monthView.grids;\n\n /**\n * Get the left index\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\n function getX(left) {\n var i = 0;\n var length = grids.length;\n var grid;\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return left < 0 ? -1 : i;\n }\n\n /**\n * Get date related with mouse event object\n * @param {object} mouseEvent - click event data\n * @returns {object} data related with mouse event\n */\n function getDate(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, relativeContainer),\n x = getX(common.ratio(size[0], 100, pos[0])),\n y = mfloor(common.ratio(size[1], weekCount, pos[1])),\n weekdayView,\n date,\n dateRange;\n\n if (y < 0) {\n y = 0;\n }\n if (y >= weeks.length) {\n y = weeks.length - 1;\n }\n\n weekdayView = util.pick(weeks, y);\n\n if (!weekdayView) {\n return null;\n }\n\n dateRange = weekdayView.getRenderDateRange();\n if (x < 0) {\n x = 0;\n }\n if (x >= dateRange.length) {\n x = dateRange.length - 1;\n }\n\n date = util.pick(dateRange, x);\n\n if (!date) {\n return null;\n }\n\n return {\n x: x,\n y: y,\n sizeX: dayCount,\n sizeY: weekCount,\n date: date,\n weekdayView: weekdayView,\n triggerEvent: mouseEvent.type\n };\n }\n\n return getDate;\n}\n\nmodule.exports = getMousePosDate;\n","/**\n * @fileoverview Creation handler for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar array = require('../../common/array');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar getMousePosDate = require('./core');\nvar Guide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n * @param {Options} [options] - calendar Options\n */\nfunction MonthCreation(dragHandler, monthView, baseController, options) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * Cache for dragging session\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthCreationGuide}\n */\n this.guide = new Guide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(monthView.container, 'dblclick', this._onDblClick, this);\n }\n}\n\n/**\n * Destructor\n */\nMonthCreation.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.guide.destroy();\n\n if (this.monthView && this.monthView.container) {\n domevent.off(this.monthView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.monthView = this.baseController =\n this.getScheduleData = this._cache = this.guide = null;\n};\n\n/**\n * Fire before create schedule\n * @fires {MonthCreation#beforeCreateSchedule}\n * @param {object} eventData - cache data from single dragging session\n */\nMonthCreation.prototype._createSchedule = function(eventData) {\n /**\n * @event {MonthCreation#beforeCreateSchedule}\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: eventData.isAllDay,\n start: eventData.start,\n end: eventData.end,\n guide: this.guide.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {object} dragStartEvent - dragStart event data\n */\nMonthCreation.prototype._onDragStart = function(dragStartEvent) {\n var eventData;\n\n if (!isElementWeekdayGrid(dragStartEvent.target)) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosDate(this.monthView);\n\n eventData = this.getScheduleData(dragStartEvent.originEvent);\n\n this._cache = {\n start: new TZDate(eventData.date)\n };\n\n /**\n * @event {MonthCreation#monthCreationDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragstart', eventData);\n};\n\n/**\n * Drag event handler\n * @fires {MonthCreation#monthCreationDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthCreation.prototype._onDrag = function(dragEvent) {\n var eventData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEvent.originEvent);\n\n if (!eventData) {\n return;\n }\n\n /**\n * @event {MonthCreation#monthCreationDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDrag', eventData);\n};\n\n/**\n * DragEnd event handler\n * @fires {MonthCreation#monthCreationDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthCreation.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var eventData;\n var times;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (eventData) {\n cache.end = new TZDate(eventData.date);\n cache.isAllDay = true;\n\n times = [\n cache.start,\n cache.end\n ].sort(array.compare.num.asc);\n\n cache.start = new TZDate(times[0]);\n cache.end = datetime.end(times[1]);\n\n this._createSchedule(cache);\n }\n\n /**\n * @event {MonthCreation#monthCreationDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragend', eventData);\n\n this.getScheduleData = this._cache = null;\n};\n\n/**\n * Dblclick event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onDblClick = function(e) {\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target)) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e);\n\n this.fire('monthCreationClick', eventData);\n\n range = this._adjustStartAndEndTime(new TZDate(eventData.date), new TZDate(eventData.date));\n\n this._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n\n this._requestOnClick = false;\n};\n\n/**\n * Click event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onClick = function(e) {\n var self = this;\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target) || this._disableClick) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('monthCreationClick', eventData);\n\n range = self._adjustStartAndEndTime(new TZDate(eventData.date), new TZDate(eventData.date));\n\n self._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Adjust time to our o'clock\n * @param {TZDate} start - start time\n * @param {TZDate} end - end time\n * @returns {Object} start and end\n */\nMonthCreation.prototype._adjustStartAndEndTime = function(start, end) {\n var now = new TZDate();\n var hours = now.getHours();\n var minutes = now.getMinutes();\n\n // adjust start to less time. Adjusting had been greater time in monthly view when clicking grid\n if (minutes <= 30) {\n minutes = 0;\n } else {\n minutes = 30;\n }\n start.setHours(hours, minutes, 0, 0);\n end.setHours(hours + 1, minutes, 0, 0);\n\n return {\n start: start,\n end: end\n };\n};\n\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nMonthCreation.prototype.invokeCreationClick = function(schedule) {\n var eventData = {\n model: schedule\n };\n\n this.fire('monthCreationClick', eventData);\n\n this._createSchedule({\n start: schedule.start,\n end: schedule.end,\n isAllDay: schedule.isAllDay,\n triggerEvent: 'manual'\n });\n};\n\n/**\n * Returns whether the given element is Weekday-Schedule.\n * @param {HTMLElement} el - target element\n * @returns {boolean}\n */\nfunction isElementWeekdayGrid(el) {\n return domutil.closest(el, config.classname('.weekday-grid'))\n && !domutil.closest(el, config.classname('.weekday-exceed-in-month'));\n}\n\nutil.CustomEvents.mixin(MonthCreation);\n\nmodule.exports = MonthCreation;\n","/**\n * @fileoverview Creation guide module for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthCreation} monthCreation - instance of MonthCreation\n */\nfunction MonthCreationGuide(monthCreation) {\n /**\n * @type {MonthCreation}\n */\n this.monthCreation = monthCreation;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthCreation.on({\n monthCreationDragstart: this._createGuideElement,\n monthCreationDrag: this._onDrag,\n monthCreationDragend: this._onDragEnd,\n monthCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthCreationGuide.prototype.destroy = function() {\n this.monthCreation.off(this);\n\n if (this.guide) {\n this.guide.destroy();\n }\n\n this.guide = this.monthCreation = null;\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._createGuideElement = function(dragStartEvent) {\n var options = {\n isCreationMode: true,\n height: '100%',\n top: 0\n };\n\n this.guide = new MonthGuide(options, this.monthCreation.monthView);\n this.guide.start(dragStartEvent);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthCreationGuide.prototype._onDragEnd = function() {\n // Do nothing. User calls destroy directly.\n this.guide = null;\n};\n\nmodule.exports = MonthCreationGuide;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, alias2=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isAllDay\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.program(6, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":12},\"end\":{\"line\":13,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
     
    \\n
    \\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"allday-tmpl\")||(depth0 && lookupProperty(depth0,\"allday-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":16},\"end\":{\"line\":10,\"column\":38}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":16},\"end\":{\"line\":12,\"column\":36}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isCreationMode\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":17,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Guide element controller for creation, resize in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n TZDate = require('../../common/timezone').Date,\n tmpl = require('./guide.hbs');\nvar mmax = Math.max,\n mmin = Math.min,\n mabs = Math.abs,\n mfloor = Math.floor;\n\n/**\n * @constructor\n * @param {object} [options] - options\n * @param {boolean} [options.useHandle=false] - whether displaying resize handle on\n * guide element?\n * @param {boolean} [options.isResizeMode=false] - whether resize mode?\n * @param {Month} monthView - Month view instance\n */\nfunction MonthGuide(options, monthView) {\n var self = this;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n top: 0,\n height: '20px',\n bgColor: '#f7ca88',\n label: 'New event',\n isResizeMode: false,\n isCreationMode: false,\n styles: this._getStyles(monthView.controller.theme)\n }, options);\n\n /**\n * @type {Month}\n */\n this.view = monthView;\n\n /**\n * @type {WeekdayInMonth[]}\n */\n this.weeks = monthView.children.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n });\n\n /**\n * @type {number}\n */\n this.days = monthView.children.single().getRenderDateRange().length;\n\n /**\n * @type {function}\n */\n this.ratio = util.bind(function(value) {\n return common.ratio(self.days, 100, value);\n });\n\n /**\n * start coordinate of guide effect. (x, y) (days, weeks) effect can't\n * start lower than this coordinate.\n * @type {number[]}\n */\n this.startCoord = [0, 0];\n\n /**\n * @type {Object.}\n */\n this.guideElements = {};\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = monthView.grids;\n}\n\n/**\n * Destructor\n */\nMonthGuide.prototype.destroy = function() {\n this.clear();\n\n this.options = this.view = this.weeks = this.days =\n this.ratio = this.startCoord = this.guideElements = null;\n};\n\nMonthGuide.prototype.clearGuideElement = function() {\n this.destroy();\n};\n\n/**\n * Get ratio value in week.\n * @param {number} value - value for calc ratio in week\n * @returns {number} percent value\n */\nMonthGuide.prototype._getRatioValueInWeek = function(value) {\n var grid = this.grids[value] || {left: 100};\n\n return grid.left;\n};\n\n/**\n * Create guide element\n * @returns {HTMLElement} guide element\n */\nMonthGuide.prototype._createGuideElement = function() {\n var guide = document.createElement('div');\n\n guide.innerHTML = tmpl(this.options);\n\n return guide.firstChild;\n};\n\n/**\n * Get guide element. if not exist then create one\n * @param {number} y - y coordinate\n * @returns {?HTMLElement} guide element\n */\nMonthGuide.prototype._getGuideElement = function(y) {\n var guideElements = this.guideElements,\n guide = guideElements[y],\n weekdayView = this.weeks[y],\n container;\n\n if (!weekdayView) {\n return null;\n }\n\n if (!guide) {\n guide = this._createGuideElement();\n container = weekdayView.container;\n container.appendChild(guide);\n guideElements[y] = guide;\n }\n\n return guide;\n};\n\n/**\n * Get coordinate by supplied date in month\n * @param {TZDate} date - date to find coordinate\n * @returns {number[]} coordinate (x, y)\n */\nMonthGuide.prototype._getCoordByDate = function(date) {\n var weeks = this.weeks,\n days = this.days,\n getIdxFromDiff = function(d1, d2) {\n return mfloor(datetime.millisecondsTo('day', mabs(d2 - d1)));\n },\n monthStart = datetime.start(weeks[0].options.renderStartDate),\n isBefore = date < monthStart,\n start = new TZDate(monthStart),\n end = new TZDate(monthStart).addDate(isBefore ? -days : days).addDate(-1),\n x = getIdxFromDiff(date, start),\n y = 0;\n\n while (!datetime.isBetweenWithDate(date, start, end)) {\n start.addDate(isBefore ? -days : days);\n end = new TZDate(start).addDate(days - 1);\n x = getIdxFromDiff(date, start);\n y += (isBefore ? -1 : 1);\n }\n\n return [x, y];\n};\n\n/**\n * Get limited coordinate by supplied coodinates\n * @param {number[]} coord - coordinate need to limit\n * @param {number[]} [min] - minimum limitaion of coordinate\n * @param {number[]} [max] - maximum limitation of coordinate\n * @returns {number[]} limited coordiate\n */\nMonthGuide.prototype._getLimitedCoord = function(coord, min, max) {\n var toIndex = 1,\n x = coord[0],\n y = coord[1],\n result;\n\n min = min || [0, 0];\n max = max || [this.days - toIndex, this.weeks.length - toIndex];\n\n if (y < min[1]) {\n result = min.slice(0);\n } else if (y > max[1]) {\n result = max.slice(0);\n } else {\n x = mmax(min[0], x);\n x = mmin(max[0], x);\n result = [x, y];\n }\n\n return result;\n};\n\n/**\n * Prepare guide element modification\n * @param {object} dragStartEvent - dragStart schedule data from *guide\n */\nMonthGuide.prototype.start = function(dragStartEvent) {\n var opt = this.options,\n target = dragStartEvent.target,\n model = dragStartEvent.model,\n x = dragStartEvent.x,\n y = dragStartEvent.y,\n renderMonth = new TZDate(this.view.options.renderMonth),\n temp;\n\n if (opt.isCreationMode) {\n if (model && !datetime.isSameMonth(renderMonth, model.start)) {\n model.start.setMonth(renderMonth.getMonth());\n model.start.setDate(1);\n model.end.setMonth(renderMonth.getMonth());\n model.end.setDate(1);\n }\n } else {\n temp = this._getCoordByDate(model.getStarts());\n x = temp[0];\n y = temp[1];\n\n util.extend(this.options, {\n top: parseInt(target.style.top, 10) + 'px',\n height: parseInt(target.style.height, 10) + 'px',\n label: model.title\n }, model);\n }\n\n if (util.isUndefined(x) || util.isUndefined(y)) {\n temp = this._getCoordByDate(model.getStarts());\n x = temp[0];\n y = temp[1];\n }\n\n this.startCoord = [x, y];\n this.update(x, y);\n};\n\n/**\n * Data for update several guide elements\n * @typedef UpdateIndication\n * @type {object}\n * @property {HTMLElement} guide - guide element\n * @property {number} left - left style value\n * @property {number} width - width style value\n * @property {boolean} [exceedL=false] - whether schedule is exceeded past weeks?\n * @property {boolean} [exceedR=false] - whether schedule is exceeded future weeks?\n */\n\n/**\n * Modify HTML element that uses for guide element\n * @param {UpdateIndication[]} inds - indication of update severel guide element\n */\nMonthGuide.prototype._updateGuides = function(inds) {\n util.forEach(inds, function(ind) {\n var guide = ind.guide,\n exceedLClass = config.classname('month-exceed-left'),\n exceedRClass = config.classname('month-exceed-right');\n\n guide.style.display = 'block';\n guide.style.left = ind.left + '%';\n guide.style.width = ind.width + '%';\n\n if (ind.exceedL) {\n domutil.addClass(guide, exceedLClass);\n } else {\n domutil.removeClass(guide, exceedLClass);\n }\n\n if (ind.exceedR) {\n domutil.addClass(guide, exceedRClass);\n } else {\n domutil.removeClass(guide, exceedRClass);\n }\n });\n};\n\n/**\n * Get guide element indicate for origin week\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getOriginIndicate = function(startCoord, mouseCoord) {\n var left = mmin(startCoord[0], mouseCoord[0]),\n right = mmax(startCoord[0], mouseCoord[0]) + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = startCoord[0];\n right = this.days;\n exceedR = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n left = 0;\n right = startCoord[0] + 1;\n exceedL = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for week related with mouse position\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getMouseIndicate = function(startCoord, mouseCoord) {\n var left = mouseCoord[0],\n right = mouseCoord[0] + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = 0;\n exceedL = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n right = this.days;\n exceedR = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for contained weeks\n * @returns {object} indicate\n */\nMonthGuide.prototype._getContainIndicate = function() {\n return {\n left: 0,\n width: 100,\n exceedL: true,\n exceedR: true\n };\n};\n\n/**\n * Remove several guide element that supplied by parameter\n * @param {number[]} yCoords - array of y coordinate to remove guide element\n */\nMonthGuide.prototype._removeGuideElements = function(yCoords) {\n var guides = this.guideElements;\n\n util.forEach(yCoords, function(y) {\n domutil.remove(guides[y]);\n delete guides[y];\n });\n};\n\n/**\n * Get excluded numbers in range\n * @param {number[]} range - the range. value must be sequencial.\n * @param {number[]} numbers - numbers to check\n * @returns {number[]} excluded numbers\n */\nMonthGuide.prototype._getExcludesInRange = function(range, numbers) {\n var min = mmin.apply(null, range),\n max = mmax.apply(null, range),\n excludes = [];\n\n util.forEach(numbers, function(num) {\n num = parseInt(num, 10);\n if (num < min || num > max) {\n excludes.push(num);\n }\n });\n\n return excludes;\n};\n\n/**\n * Update guide elements by coordinate in month grid from mousemove event\n * @param {number} x - x coordinate\n * @param {number} y - y coordinate\n */\nMonthGuide.prototype.update = function(x, y) {\n var self = this,\n startCoord = this.startCoord,\n mouseCoord = [x, y],\n limitedCoord = this.options.isResizeMode ?\n this._getLimitedCoord(mouseCoord, startCoord) : mouseCoord,\n renderedYIndex = util.keys(this.guideElements),\n yCoordsToUpdate = util.range(\n mmin(startCoord[1], limitedCoord[1]),\n mmax(startCoord[1], limitedCoord[1]) + 1\n ),\n yCoordsToRemove = this._getExcludesInRange(\n yCoordsToUpdate,\n renderedYIndex\n ),\n renderIndication = {};\n\n this._removeGuideElements(yCoordsToRemove);\n\n util.forEach(yCoordsToUpdate, function(guideYCoord) {\n var guide = self._getGuideElement(guideYCoord),\n indicate;\n\n if (!guide) {\n return;\n }\n\n if (guideYCoord === startCoord[1]) {\n indicate = self._getOriginIndicate(startCoord, limitedCoord);\n } else if (guideYCoord === mouseCoord[1]) {\n indicate = self._getMouseIndicate(startCoord, mouseCoord);\n } else {\n indicate = self._getContainIndicate();\n }\n\n renderIndication[guideYCoord] = util.extend({\n guide: guide\n }, indicate);\n });\n\n this._updateGuides(renderIndication);\n};\n\n/**\n * Clear all guide elements\n */\nMonthGuide.prototype.clear = function() {\n util.forEach(this.guideElements, function(element) {\n domutil.remove(element);\n });\n\n this.guideElements = {};\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMonthGuide.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.border = theme.common.creationGuide.border;\n styles.backgroundColor = theme.common.creationGuide.backgroundColor;\n styles.scheduleHeight = theme.month.schedule.height;\n styles.scheduleGutter = theme.month.schedule.marginTop;\n styles.marginLeft = theme.month.schedule.marginLeft;\n styles.marginRight = theme.month.schedule.marginRight;\n styles.borderRadius = theme.month.schedule.borderRadius;\n }\n\n return styles;\n};\n\nmodule.exports = MonthGuide;\n","/**\n * @fileoverview Move handler for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n getMousePosData = require('./core'),\n MonthMoveGuide = require('./moveGuide'),\n TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthMove(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthMoveGuide}\n */\n this.guide = new MonthMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthMove.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Update target schedule\n * @fires {MonthMove#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthMove.prototype.updateSchedule = function(scheduleCache) {\n var schedule = scheduleCache.model;\n var duration = schedule.duration();\n var startDateRaw = datetime.raw(schedule.start);\n var dragEndTime = new TZDate(scheduleCache.end);\n var newStartDate = new TZDate(dragEndTime);\n\n newStartDate.setHours(startDateRaw.h, startDateRaw.m, startDateRaw.s, startDateRaw.ms);\n\n /**\n * @event MonthMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: {\n start: newStartDate,\n end: new TZDate(newStartDate).addMilliseconds(duration)\n },\n start: newStartDate,\n end: new TZDate(newStartDate).addMilliseconds(duration)\n });\n};\n\n/**\n * Get schedule block to clone for month guide effect\n * @param {HTMLElement} target - target element that related with drag schedule\n * @returns {HTMLElement} element to create guide effect\n */\nMonthMove.prototype.getMonthScheduleBlock = function(target) {\n var blockSelector = config.classname('.weekday-schedule-block');\n\n return domutil.closest(target, blockSelector);\n};\n\n/**\n * Get schedule block from more layer\n * @param {HTMLElement} target - element to check\n * @returns {HTMLElement} schedule element\n */\nMonthMove.prototype.getMoreLayerScheduleBlock = function(target) {\n var className = config.classname('.month-more-schedule');\n\n return domutil.closest(target, className);\n};\n\n/**\n * Check handler has permission to handle fired schedule\n * @fires {MonthMove#monthMoveStart_from_morelayer}\n * @param {HTMLElement} target - target element of fired schedule\n * @returns {(string|null)} model instance ID related with schedule. if handle\n * has not permission to handle the schedule then return null.\n */\nMonthMove.prototype.hasPermissionToHandle = function(target) {\n var modelID = null;\n var blockElement;\n\n if (domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return null;\n }\n\n blockElement = this.getMonthScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n } else {\n blockElement = this.getMoreLayerScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n /**\n * Fire for notificate that the drag schedule start at more layer view.\n * @event {MonthMove#monthMoveStart_from_morelayer}\n */\n this.fire('monthMoveStart_from_morelayer');\n }\n }\n\n return modelID;\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthMove#monthMoveDragstart}\n * @param {object} dragStartEvent - drag start schedule data\n */\nMonthMove.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID = this.hasPermissionToHandle(target),\n model = this.baseController.schedules.items[modelID],\n scheduleData;\n\n if (!modelID || !model || model.isReadOnly || model.isPending) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.originEvent = dragStartEvent.originEvent;\n scheduleData.target = this.getMonthScheduleBlock(target);\n scheduleData.model = model;\n\n this._cache = {\n model: model,\n target: target,\n start: new TZDate(Number(scheduleData.date))\n };\n\n /**\n * @event {MonthMove#monthMoveDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthMoveDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthMove#monthMoveDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthMove.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = util.extend({\n originEvent: dragEvent.originEvent\n }, this.getScheduleData(dragEvent.originEvent));\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthMove#monthMoveDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDrag', scheduleData);\n};\n\n/**\n * Event handler for Drag#dragEnd\n * @fires {MonthMove#monthMoveDragend}\n * @param {object} dragEndEvent - dragend event data\n */\nMonthMove.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n cache.end = new TZDate(scheduleData.date);\n this.updateSchedule(cache);\n }\n\n /**\n * @event {MonthResize#monthMoveDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthMove);\n\nmodule.exports = MonthMove;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-left:3px solid \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n \";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":110},\"end\":{\"line\":16,\"column\":124}}}) : helper)))\n + \"weekday-schedule-title-focused\\\"\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"allday-tmpl\")||(depth0 && lookupProperty(depth0,\"allday-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":12},\"end\":{\"line\":18,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":12},\"end\":{\"line\":20,\"column\":33}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":4},\"end\":{\"line\":15,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.program(9, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":17,\"column\":8},\"end\":{\"line\":21,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Module for modification of guide element for move in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent'),\n FloatingLayer = require('../../common/floatingLayer'),\n tmpl = require('./moveGuide.hbs'),\n Schedule = require('../../model/schedule');\n\n/**\n * @constructor\n * @param {MonthMove} monthMove - month/move module instance\n */\nfunction MonthMoveGuide(monthMove) {\n /**\n * @type {MonthMove}\n */\n this.monthMove = monthMove;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = null;\n\n monthMove.on({\n monthMoveDragstart: this._onDragStart,\n monthMoveDrag: this._onDrag,\n monthMoveDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthMoveGuide.prototype.destroy = function() {\n this.monthMove.off(this);\n this._clearGridBgColor();\n\n if (this.layer) {\n this.layer.destroy();\n }\n\n if (this.element) {\n domutil.remove(this.element);\n }\n\n this.monthMove = this.elements = this.layer = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthMove.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nMonthMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\n/**\n * Clear background color for filled grid element.\n */\nMonthMoveGuide.prototype._clearGridBgColor = function() {\n var selector = config.classname('.weekday-filled'),\n className = config.classname('weekday-filled'),\n beforeGridElement = domutil.find(selector,\n this.monthMove.monthView.container);\n\n if (beforeGridElement) {\n domutil.removeClass(beforeGridElement, className);\n }\n};\n\n/**\n * Fill background color of date grids relatied with model updates.\n * @param {object} dragEvent - drag event data from MonthMoveGuide#_onDrag\n */\nMonthMoveGuide.prototype._updateGridBgColor = function(dragEvent) {\n var gridElements = domutil.find(config.classname('.weekday-grid-line'), this.monthMove.monthView.container, true),\n className = config.classname('weekday-filled'),\n targetIndex = (dragEvent.x + (dragEvent.sizeX * dragEvent.y));\n\n this._clearGridBgColor();\n\n if (!gridElements || !gridElements[targetIndex]) {\n return;\n }\n\n domutil.addClass(gridElements[targetIndex], className);\n};\n\n/**\n * Handler for MonthMove#dragStart\n * @param {object} dragStartEvent - dragStart schedule data object\n */\nMonthMoveGuide.prototype._onDragStart = function(dragStartEvent) {\n var monthView = this.monthMove.monthView,\n firstWeekdayView = monthView.children.single(),\n weekdayOptions = firstWeekdayView.options,\n widthPercent = 100 / firstWeekdayView.getRenderDateRange().length,\n height = weekdayOptions.scheduleGutter + weekdayOptions.scheduleHeight,\n container = monthView.container,\n mousePos = domevent.getMousePosition(dragStartEvent.originEvent, container),\n model = dragStartEvent.model,\n layer = new FloatingLayer(null, container);\n\n this._hideOriginScheduleBlocks(model.cid());\n\n this.layer = layer;\n layer.setSize(widthPercent + '%', height);\n layer.setPosition(mousePos[0], mousePos[1]);\n layer.setContent(tmpl({\n model: util.extend(\n Schedule.create(model),\n model\n ),\n styles: {\n scheduleHeight: weekdayOptions.scheduleHeight,\n scheduleBulletTop: weekdayOptions.scheduleHeight / 3,\n borderRadius: monthView.controller.theme.month.schedule.borderRadius\n }\n }));\n layer.show();\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n};\n\n/**\n * Handler for MonthMove#drag\n * @param {object} dragEvent - drag event data object\n */\nMonthMoveGuide.prototype._onDrag = function(dragEvent) {\n var container = this.monthMove.monthView.container,\n mousePos = domevent.getMousePosition(\n dragEvent.originEvent,\n container\n );\n\n this._updateGridBgColor(dragEvent);\n\n if (!this.layer) {\n return;\n }\n\n this.layer.setPosition(mousePos[0], mousePos[1]);\n};\n\n/**\n * Handler for MonthMove#dragEnd\n */\nMonthMoveGuide.prototype._onDragEnd = function() {\n this._showOriginScheduleBlocks();\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._clearGridBgColor();\n this.layer.destroy();\n this.layer = null;\n};\n\nmodule.exports = MonthMoveGuide;\n","/**\n * @fileoverview Module for resize schedule in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n getMousePosData = require('./core'),\n MonthResizeGuide = require('./resizeGuide'),\n TZDate = require('../../common/timezone').Date;\n\nvar common = require('../../common/common');\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthResize(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthResizeGuide}\n */\n this.guide = new MonthResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthResize.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Fire event for update model\n * @fires {MonthResize#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthResize.prototype._updateSchedule = function(scheduleCache) {\n // You can not change the start date of the event. Only the end time can be changed.\n var newEnd = datetime.end(new TZDate(scheduleCache.end)),\n schedule = scheduleCache.schedule;\n var changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnd}\n );\n\n /**\n * @event MonthResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: new TZDate(schedule.getStarts()),\n end: newEnd\n });\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthResize#monthResizeDragstart}\n * @param {object} dragStartEvent - drag start event data\n */\nMonthResize.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID, schedule,\n scheduleData;\n\n if (!domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return;\n }\n\n target = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\n if (!target) {\n return;\n }\n\n modelID = domutil.getData(target, 'id');\n schedule = this.baseController.schedules.items[modelID];\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.target = target;\n scheduleData.model = schedule;\n\n this._cache = {\n schedule: schedule,\n target: target,\n start: new TZDate(scheduleData.date)\n };\n\n /**\n * @event {MonthCreation#monthResizeDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthResizeDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthResize.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEvent.originEvent);\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthResize#monthResizeDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDrag', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthResize.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var scheduleData;\n var start, end;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n start = new TZDate(cache.schedule.getStarts());\n end = new TZDate(scheduleData.date);\n cache.end = end;\n\n if (start <= cache.end) {\n this._updateSchedule(cache);\n }\n }\n\n /**\n * @event {MonthResize#monthResizeDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthResize);\n\nmodule.exports = MonthResize;\n","/**\n * @fileoverview Module for modification of guide element in schedule resize\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthResize} monthResize - month/resize module instance\n */\nfunction MonthResizeGuide(monthResize) {\n /**\n * @type {MonthResize}\n */\n this.monthResize = monthResize;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthResize.on({\n monthResizeDragstart: this._onDragStart,\n monthResizeDrag: this._onDrag,\n monthResizeDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthResizeGuide.prototype.destroy = function() {\n this.monthResize.off(this);\n this.guide.destroy();\n\n this.guide = this.monthResize = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthResizeGuide.prototype._hideScheduleBlocks = function(modelID) {\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthResize.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n el.style.display = 'none';\n });\n};\n\n/**\n * Show element blocks\n */\nMonthResizeGuide.prototype._showScheduleBlocks = function() {\n util.forEach(this.elements, function(el) {\n el.style.display = 'block';\n });\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthResize\n */\nMonthResizeGuide.prototype._onDragStart = function(dragStartEvent) {\n this.guide = new MonthGuide({\n isResizeMode: true\n }, this.monthResize.monthView);\n\n this.guide.start(dragStartEvent);\n\n this._hideScheduleBlocks(dragStartEvent.model.cid());\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - event data from MonthCreation\n */\nMonthResizeGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthResizeGuide.prototype._onDragEnd = function() {\n this._showScheduleBlocks();\n\n this.guide.destroy();\n this.elements = this.guide = null;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\nmodule.exports = MonthResizeGuide;\n","/**\n * @fileoverview Allday event click event hander module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeClick(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.timeGridView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nTimeClick.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits TimeClick#clickEvent\n */\nTimeClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n schedulesCollection = this.baseController.schedules;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n schedulesCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events TimeClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n};\n\nutil.CustomEvents.mixin(TimeClick);\n\nmodule.exports = TimeClick;\n","/**\n * @fileoverview Dayname click event hander module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayName} [dayNameView] - DayName view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction DayNameClick(dragHandler, dayNameView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {DayName}\n */\n this.dayNameView = dayNameView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayNameClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.dayNameView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nDayNameClick.prototype.checkExpectCondition = function(target) {\n var container = domutil.closest(target, config.classname('.dayname-date-area'));\n\n if (!container) {\n return false;\n }\n\n return true;\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits DayNameClick#clickDayname\n */\nDayNameClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n daynameView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.dayname'));\n\n if (!daynameView || !blockElement) {\n return;\n }\n\n /**\n * @events DayNameClick#clickDayname\n * @type {object}\n * @property {string} date - click date\n */\n self.fire('clickDayname', {\n date: domutil.getData(blockElement, 'date')\n });\n};\n\nutil.CustomEvents.mixin(DayNameClick);\n\nmodule.exports = DayNameClick;\n","/**\n * @fileoverview Core methods for dragging actions\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar domevent = require('../../common/domevent');\nvar Point = require('../../common/point');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @mixin Time.Core\n */\nvar timeCore = {\n /**\n * Get Y index ratio(hour) in time grids by supplied parameters.\n * @param {number} baseMil - base milliseconds number for supplied height.\n * @param {number} height - container element height.\n * @param {number} y - Y coordinate to calculate hour ratio.\n * @returns {number} hour index ratio value.\n */\n _calcGridYIndex: function(baseMil, height, y) {\n // get ratio from right expression > point.y : x = session.height : baseMil\n // and convert milliseconds value to hours.\n var result = datetime.millisecondsTo('hour', (y * baseMil) / height),\n floored = result | 0,\n nearest = common.nearest(result - floored, [0, 1]);\n\n return floored + (nearest ? 0.5 : 0);\n },\n\n /**\n * Get function to makes event data from Time and mouseEvent\n * @param {Time} timeView - Instance of time view.\n * @returns {function} - Function that return event data from mouse event.\n */\n _retriveScheduleData: function(timeView) {\n var self = this,\n container = timeView.container,\n options = timeView.options,\n viewHeight = timeView.getViewBound().height,\n viewTime = timeView.getDate(),\n hourLength = options.hourEnd - options.hourStart,\n baseMil = datetime.millisecondsFrom('hour', hourLength);\n\n /**\n * @param {MouseEvent} mouseEvent - mouse event object to get common event data.\n * @param {object} [extend] - object to extend event data before return.\n * @returns {object} - common event data for time.*\n */\n return util.bind(function(mouseEvent, extend) {\n var mouseY = Point.n(domevent.getMousePosition(mouseEvent, container)).y,\n gridY = common.ratio(viewHeight, hourLength, mouseY),\n timeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(gridY)),\n nearestGridY = self._calcGridYIndex(baseMil, viewHeight, mouseY),\n nearestGridTimeY = new TZDate(viewTime).addMinutes(\n datetime.minutesFromHours(nearestGridY + options.hourStart)\n );\n\n return util.extend({\n target: mouseEvent.target || mouseEvent.srcElement,\n relatedView: timeView,\n originEvent: mouseEvent,\n mouseY: mouseY,\n gridY: gridY,\n timeY: timeY,\n nearestGridY: nearestGridY,\n nearestGridTimeY: nearestGridTimeY,\n triggerEvent: mouseEvent.type\n }, extend);\n }, this);\n },\n\n /**\n * Get function to makes event data from Time and mouseEvent\n * @param {Time} timeView - Instance of time view.\n * @param {number} xIndex - Time view index\n * @returns {function} - Function that return event data from mouse event.\n */\n _retriveScheduleDataFromDate: function(timeView) {\n var viewTime = timeView.getDate();\n\n /**\n * @param {TZDate} startDate - start date\n * @param {TZDate} endDate - end date\n * @param {number} hourStart Can limit of render hour start.\n * @returns {object} - common event data for time.*\n */\n return util.bind(function(startDate, endDate, hourStart) {\n var gridY, timeY, nearestGridY, nearestGridTimeY, nearestGridEndY, nearestGridEndTimeY;\n\n gridY = startDate.getHours() - hourStart + getNearestHour(startDate.getMinutes());\n timeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(gridY));\n nearestGridY = gridY;\n nearestGridTimeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(nearestGridY));\n nearestGridEndY = endDate.getHours() - hourStart + getNearestHour(endDate.getMinutes());\n nearestGridEndTimeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(nearestGridEndY));\n\n return util.extend({\n target: timeView,\n relatedView: timeView,\n gridY: gridY,\n timeY: timeY,\n nearestGridY: nearestGridY,\n nearestGridTimeY: nearestGridTimeY,\n nearestGridEndY: nearestGridEndY,\n nearestGridEndTimeY: nearestGridEndTimeY,\n triggerEvent: 'manual',\n hourStart: hourStart\n });\n }, this);\n },\n\n /**\n * Mixin method.\n * @param {(TimeCreation|TimeMove)} obj - Constructor functions\n */\n mixin: function(obj) {\n var proto = obj.prototype;\n util.forEach(timeCore, function(method, methodName) {\n if (methodName === 'mixin') {\n return;\n }\n\n proto[methodName] = method;\n });\n }\n};\n\n/**\n * Get the nearest hour\n * @param {number} minutes - minutes\n * @returns {number} hour\n */\nfunction getNearestHour(minutes) {\n var nearestHour;\n if (minutes === 0) {\n nearestHour = 0;\n } else if (minutes > 30) {\n nearestHour = 1;\n } else if (minutes <= 30) {\n nearestHour = 0.5;\n }\n\n return nearestHour;\n}\n\nmodule.exports = timeCore;\n","/**\n * @fileoverview Handling creation events from drag handler and time grid view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar common = require('../../common/common');\nvar TimeCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n * @param {Options} [options] - calendar Options\n */\nfunction TimeCreation(dragHandler, timeGridView, baseController, options) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * TimeGrid view instance.\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {TimeCreationGuide}\n */\n this.guide = new TimeCreationGuide(this);\n\n /**\n * Temporary function for single drag session's calc.\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * Temporary function for drag start data cache.\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(timeGridView.container, 'dblclick', this._onDblClick, this);\n }\n}\n\n/**\n * Destroy method\n */\nTimeCreation.prototype.destroy = function() {\n var timeGridView = this.timeGridView;\n\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (timeGridView && timeGridView.container) {\n domevent.off(timeGridView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this.guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {(boolean|Time)} - return Time view instance when satiate condition.\n */\nTimeCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (cssClass === config.classname('time-date-schedule-block-wrap')) {\n target = target.parentNode;\n cssClass = domutil.getClass(target);\n }\n\n matches = cssClass.match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, matches[1]);\n};\n\n/**\n * Drag#dragStart event handler.\n * @emits TimeCreation#timeCreationDragstart\n * @param {object} dragStartEventData - Drag#dragStart event data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDragStart = function(dragStartEventData, overrideEventName, revise) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n eventData;\n\n if (!result) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(result);\n eventData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @event TimeCreation#timeCreationDragstart\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDragstart', eventData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeCreation#timeCreationDrag\n * @param {object} dragEventData - event data from Drag#drag.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n eventData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n eventData = getScheduleDataFunc(dragEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDrag\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDrag', eventData);\n};\n\n/**\n * @fires TimeCreation#beforeCreateSchedule\n * @param {object} eventData - event data object from TimeCreation#timeCreationDragend\n * or TimeCreation#timeCreationClick\n */\nTimeCreation.prototype._createSchedule = function(eventData) {\n var relatedView = eventData.relatedView,\n createRange = eventData.createRange,\n nearestGridTimeY = eventData.nearestGridTimeY,\n nearestGridEndTimeY = eventData.nearestGridEndTimeY\n ? eventData.nearestGridEndTimeY\n : new TZDate(nearestGridTimeY).addMinutes(30),\n baseDate,\n dateStart,\n dateEnd,\n start,\n end;\n\n if (!createRange) {\n createRange = [\n nearestGridTimeY,\n nearestGridEndTimeY\n ];\n }\n\n baseDate = new TZDate(relatedView.getDate());\n dateStart = datetime.start(baseDate);\n dateEnd = datetime.getStartOfNextDay(baseDate);\n start = common.limitDate(createRange[0], dateStart, dateEnd);\n end = common.limitDate(createRange[1], dateStart, dateEnd);\n\n /**\n * @event TimeCreation#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: false,\n start: new TZDate(start),\n end: new TZDate(end),\n guide: this.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeCreation#timeCreationDragend\n * @param {object} dragEndEventData - event data from Drag#dragend\n */\nTimeCreation.prototype._onDragEnd = function(dragEndEventData) {\n var self = this,\n dragStart = this._dragStart;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * Function for manipulate event data before firing event\n * @param {object} eventData - event data\n */\n function reviseFunc(eventData) {\n var range = [\n dragStart.nearestGridTimeY,\n eventData.nearestGridTimeY\n ].sort(array.compare.num.asc);\n range[1].addMinutes(30);\n\n eventData.createRange = range;\n\n self._createSchedule(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDragend\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {number[]} createRange - milliseconds range between drag start and end to create.\n */\n this._onDrag(dragEndEventData, 'timeCreationDragend', reviseFunc);\n\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Drag#click event handler\n * @emits TimeCreation#timeCreationClick\n * @param {object} clickEventData - event data from Drag#click.\n */\nTimeCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var condResult, getScheduleDataFunc, eventData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n condResult = this.checkExpectedCondition(clickEventData.target);\n if (!condResult || this._disableClick) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('timeCreationClick', eventData);\n self._createSchedule(eventData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Dblclick event handler\n * @param {MouseEvent} e - Native MouseEvent\n */\nTimeCreation.prototype._onDblClick = function(e) {\n var condResult, getScheduleDataFunc, eventData;\n\n condResult = this.checkExpectedCondition(e.target);\n if (!condResult) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(e);\n\n this.fire('timeCreationClick', eventData);\n\n this._createSchedule(eventData);\n\n this._requestOnClick = false;\n};\n\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nTimeCreation.prototype.invokeCreationClick = function(schedule) {\n var opt = this.timeGridView.options,\n range = datetime.range(\n opt.renderStartDate,\n opt.renderEndDate,\n datetime.MILLISECONDS_PER_DAY),\n hourStart = opt.hourStart,\n targetDate = schedule.start;\n var getScheduleDataFunc, eventData, timeView;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, targetDate)) {\n timeView = this.timeGridView.children.toArray()[index];\n }\n }, this);\n\n // If start date is not in current date, set start date as first date.\n if (!timeView) {\n timeView = this.timeGridView.children.toArray()[0];\n }\n\n getScheduleDataFunc = this._retriveScheduleDataFromDate(timeView);\n eventData = getScheduleDataFunc(schedule.start, schedule.end, hourStart);\n\n this.fire('timeCreationClick', eventData);\n\n this._createSchedule(eventData);\n};\n\ntimeCore.mixin(TimeCreation);\nutil.CustomEvents.mixin(TimeCreation);\n\nmodule.exports = TimeCreation;\n","/**\n * @fileoverview Module for Time.Creation effect while dragging.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar TZDate = require('../../common/timezone').Date;\nvar MIN60 = (datetime.MILLISECONDS_PER_MINUTES * 60);\n\n/**\n * Class for Time.Creation dragging effect.\n * @constructor\n * @param {TimeCreation} timeCreation - instance of TimeCreation.\n */\nfunction TimeCreationGuide(timeCreation) {\n /**\n * Guide element for creation effect.\n * @type {HTMLElement}\n */\n this.guideElement = global.document.createElement('div');\n\n /**\n * @type {HTMLDivElement}\n */\n this.guideTimeElement = domutil.appendHTMLElement(\n 'span',\n this.guideElement,\n config.classname('time-guide-creation-label')\n );\n\n domutil.addClass(this.guideElement, config.classname('time-guide-creation'));\n\n /**\n * @type {TimeCreation}\n */\n this.timeCreation = timeCreation;\n\n /**\n * @type {array}\n */\n this._styleUnit = null;\n\n /**\n * @type {array}\n */\n this._styleStart = null;\n\n /**\n * @type {function}\n */\n this._styleFunc = null;\n\n timeCreation.on({\n timeCreationDragstart: this._createGuideElement,\n timeCreationDrag: this._onDrag,\n timeCreationClick: this._createGuideElement\n }, this);\n\n this.applyTheme(timeCreation.baseController.theme);\n}\n\n/**\n * Destroy method.\n */\nTimeCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.timeCreation.off(this);\n this.timeCreation = this._styleUnit = this._styleStart =\n this._styleFunc = this.guideElement = this.guideTimeElement = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement,\n timeElement = this.guideTimeElement;\n\n domutil.remove(guideElement);\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.display = 'none';\n guideElement.style.top = '';\n guideElement.style.height = '';\n timeElement.innerHTML = '';\n });\n};\n\n/**\n * Refresh guide element\n * @param {number} top - The number of guide element's style top\n * @param {number} height - The number of guide element's style height\n * @param {TZDate} start - start time of schedule to create\n * @param {TZDate} end - end time of schedule to create\n * @param {boolean} bottomLabel - is label need to render bottom of guide element?\n */\nTimeCreationGuide.prototype._refreshGuideElement = function(top, height, start, end, bottomLabel) {\n var guideElement = this.guideElement;\n var timeElement = this.guideTimeElement;\n\n guideElement.style.top = top + 'px';\n guideElement.style.height = height + 'px';\n guideElement.style.display = 'block';\n\n timeElement.innerHTML = datetime.format(start, 'HH:mm') +\n ' - ' + datetime.format(end, 'HH:mm');\n\n if (bottomLabel) {\n domutil.removeClass(timeElement, config.classname('time-guide-bottom'));\n } else {\n domutil.addClass(timeElement, config.classname('time-guide-bottom'));\n }\n};\n\n/**\n * Get unit data of calculating new style of guide element by user interaction\n * @param {Time} relatedView - time view instance related with schedule\n * @returns {array} unit data.\n */\nTimeCreationGuide.prototype._getUnitData = function(relatedView) {\n var viewOpt = relatedView.options,\n viewHeight = relatedView.getViewBound().height,\n hourLength = viewOpt.hourEnd - viewOpt.hourStart,\n todayStart = datetime.parse(viewOpt.ymd),\n todayEnd = datetime.getStartOfNextDay(todayStart);\n\n todayStart.setHours(0, 0, 0, 0);\n todayStart.setHours(viewOpt.hourStart);\n\n // [0] height of view\n // [1] hour length of view\n // [2] start time of view\n // [3] end time of view\n // [4] height of view for one hour\n return [\n viewHeight,\n hourLength,\n todayStart,\n todayEnd,\n viewHeight / hourLength\n ];\n};\n\n/**\n * Applying limitation to supplied data and return it.\n * @param {number} top - top pixel of guide element\n * @param {number} height - height pixel of guide element\n * @param {TZDate} start - relative time value of dragstart point\n * @param {TZDate} end - relative time value of dragend point\n * @returns {array} limited style data\n */\nTimeCreationGuide.prototype._limitStyleData = function(top, height, start, end) {\n var unitData = this._styleUnit;\n\n top = common.limit(top, [0], [unitData[0]]);\n height = common.limit(top + height, [0], [unitData[0]]) - top;\n start = common.limitDate(start, unitData[2], unitData[3]);\n end = common.limitDate(end, unitData[2], unitData[3]);\n\n return [top, height, start, end];\n};\n\n/**\n * Get function to calculate guide element UI data from supplied units\n * @param {number} viewHeight - total height of view's container element\n * @param {number} hourLength - hour length that rendered in time view\n * @param {TZDate} todayStart - time for view's start date\n * @returns {function} UI data calculator function\n */\nTimeCreationGuide.prototype._getStyleDataFunc = function(viewHeight, hourLength, todayStart) {\n var todayStartTime = todayStart;\n var todayEndTime = datetime.end(todayStart);\n\n /**\n * Get top, time value from schedule data\n * @param {object} scheduleData - schedule data object\n * @returns {number[]} top, time\n */\n function getStyleData(scheduleData) {\n var minMinutes = 30;\n var gridY = scheduleData.nearestGridY,\n gridTimeY = scheduleData.nearestGridTimeY,\n gridEndTimeY = scheduleData.nearestGridEndTimeY || new TZDate(gridTimeY).addMinutes(minMinutes),\n top, startTime, endTime;\n\n top = common.limit(ratio(hourLength, viewHeight, gridY), [0], [viewHeight]);\n startTime = common.limitDate(gridTimeY, todayStartTime, todayEndTime);\n endTime = common.limitDate(gridEndTimeY, todayStartTime, todayEndTime);\n\n return [top, startTime, endTime];\n }\n\n return getStyleData;\n};\n\n/**\n * DragStart event handler\n * @param {object} dragStartEventData - dragStart schedule data.\n */\nTimeCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var relatedView = dragStartEventData.relatedView,\n hourStart = datetime.millisecondsFrom('hour', dragStartEventData.hourStart) || 0,\n unitData, styleFunc, styleData, result, top, height, start, end;\n\n unitData = this._styleUnit = this._getUnitData(relatedView);\n styleFunc = this._styleFunc = this._getStyleDataFunc.apply(this, unitData);\n styleData = this._styleStart = styleFunc(dragStartEventData);\n\n start = new TZDate(styleData[1]).addMinutes(datetime.minutesFromHours(hourStart));\n end = new TZDate(styleData[2]).addMinutes(datetime.minutesFromHours(hourStart));\n top = styleData[0];\n height = (unitData[4] * (end - start) / MIN60);\n\n result = this._limitStyleData(\n top,\n height,\n start,\n end\n );\n\n this._refreshGuideElement.apply(this, result);\n\n relatedView.container.appendChild(this.guideElement);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEventData - drag schedule data.\n */\nTimeCreationGuide.prototype._onDrag = function(dragEventData) {\n var minutes30 = 30;\n var styleFunc = this._styleFunc,\n unitData = this._styleUnit,\n startStyle = this._styleStart,\n refreshGuideElement = this._refreshGuideElement.bind(this),\n heightOfHalfHour,\n endStyle,\n result;\n\n if (!styleFunc || !unitData || !startStyle) {\n return;\n }\n\n heightOfHalfHour = (unitData[4] / 2);\n endStyle = styleFunc(dragEventData);\n\n if (endStyle[0] > startStyle[0]) {\n result = this._limitStyleData(\n startStyle[0],\n (endStyle[0] - startStyle[0]) + heightOfHalfHour,\n startStyle[1],\n new TZDate(endStyle[1]).addMinutes(minutes30)\n );\n } else {\n result = this._limitStyleData(\n endStyle[0],\n (startStyle[0] - endStyle[0]) + heightOfHalfHour,\n endStyle[1],\n new TZDate(startStyle[1]).addMinutes(minutes30)\n );\n result.push(true);\n }\n\n reqAnimFrame.requestAnimFrame(function() {\n refreshGuideElement.apply(null, result);\n });\n};\n\nTimeCreationGuide.prototype.applyTheme = function(theme) {\n var style = this.guideElement.style;\n var timeStyle = this.guideTimeElement.style;\n\n // block\n style.backgroundColor = theme.common.creationGuide.backgroundColor;\n style.border = theme.common.creationGuide.border;\n\n // label\n timeStyle.color = theme.week.creationGuide.color;\n timeStyle.fontSize = theme.week.creationGuide.fontSize;\n timeStyle.fontWeight = theme.week.creationGuide.fontWeight;\n};\n\nmodule.exports = TimeCreationGuide;\n","/**\n * @fileoverview Handling move schedules from drag handler and time grid view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\nvar TimeMoveGuide = require('./moveGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeMove(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeMoveGuide}\n */\n this._guide = new TimeMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('mousedown', this._onMouseDown, this);\n}\n\n/**\n * Destroy method.\n */\nTimeMove.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {boolean|object} - return object when satiate condition.\n */\nTimeMove.prototype.checkExpectCondition = function(target) {\n if (!domutil.closest(target, config.classname('.time-schedule'))) {\n return false;\n }\n\n return this._getTimeView(target);\n};\n\n/**\n * Get Time view container from supplied element.\n * @param {HTMLElement} target - element to find time view container.\n * @returns {object|boolean} - return time view instance when finded.\n */\nTimeMove.prototype._getTimeView = function(target) {\n var container = domutil.closest(target, config.classname('.time-date')),\n matches;\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeMove#mousedown\n * @param {object} mouseDownEventData - Drag#mousedown schedule data.\n */\nTimeMove.prototype._onMouseDown = function(mouseDownEventData) {\n var target = mouseDownEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block'));\n\n if (!timeView || !blockElement) {\n return;\n }\n\n // EventTarget.target is not changed in mousemove event even if mouse is over the other element.\n // It's different with other browsers(IE, Chrome, Safari)\n if (util.browser.firefox) {\n domevent.preventDefault(mouseDownEventData.originEvent);\n }\n};\n\n/**\n * @emits TimeMove#timeMoveDragstart\n * @param {object} dragStartEventData - Drag#dragStart schedule data.\n */\nTimeMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n getScheduleDataFunc,\n scheduleData,\n ctrl = this.baseController,\n targetModelID,\n targetModel;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n targetModelID = domutil.getData(blockElement, 'id');\n targetModel = ctrl.schedules.items[targetModelID];\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: targetModelID,\n model: targetModel\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeMove#timeMoveDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {Schedule} model - model instance\n */\n this.fire('timeMoveDragstart', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveDrag\n * @param {MouseEvent} dragEventData - mousemove event object\n * @param {string} [overrideEventName] - name of emitting event to override.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeMove.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n timeView = this._getTimeView(dragEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n if (!timeView || !getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n currentView: timeView,\n targetModelID: dragStart.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeMove#timeMoveDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeMoveDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeMove#timeMoveDragend\n */\nTimeMove.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n dateDiff = 0,\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n currentView = scheduleData.currentView,\n newStarts,\n newEnds;\n\n if (!schedule || !currentView) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n newStarts = new TZDate(schedule.getStarts()).addMilliseconds(timeDiff);\n newEnds = new TZDate(schedule.getEnds()).addMilliseconds(timeDiff);\n\n if (currentView) {\n dateDiff = currentView.getDate() - relatedView.getDate();\n }\n\n newStarts.addMilliseconds(dateDiff);\n newEnds.addMilliseconds(dateDiff);\n\n /**\n * @event TimeMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: {\n start: newStarts,\n end: newEnds\n },\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * @emits TimeMove#timeMoveDragend\n * @param {MouseEvent} dragEndEventData - mouseup mouse event object.\n */\nTimeMove.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n currentView = this._getTimeView(dragEndEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n currentView: currentView,\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n new TZDate(scheduleData.timeY).addMinutes(30)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n new TZDate(scheduleData.nearestGridTimeY).addMinutes(30)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeMove#timeMoveDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeMoveDragend', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveClick\n * @param {MouseEvent} clickEventData - click mouse event object.\n */\nTimeMove.prototype._onClick = function(clickEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(clickEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n /**\n * @event TimeMove#timeMoveClick\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire('timeMoveClick', scheduleData);\n};\n\ntimeCore.mixin(TimeMove);\nutil.CustomEvents.mixin(TimeMove);\n\nmodule.exports = TimeMove;\n","/**\n * @fileoverview Module for Time.Move effect while dragging.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar FloatingLayer = require('../../common/floatingLayer');\nvar tmpl = require('../../view/template/week/timeMoveGuide.hbs');\nvar TZDate = require('../../common/timezone').Date;\nvar Schedule = require('../../model/schedule');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * Class for Time.Move effect.\n * @constructor\n * @param {TimeMove} timeMove - The instance of TimeMove.\n */\nfunction TimeMoveGuide(timeMove) {\n /**\n * @type {FloatingLayer}\n */\n this._guideLayer = null;\n\n /**\n * @Type {Schedule}\n */\n this._model = null;\n\n /**\n * @type {object}\n */\n this._viewModel = null;\n\n /**\n * @type {object}\n */\n this._lastDrag = null;\n\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeMove}\n */\n this.timeMove = timeMove;\n\n /**\n * @type {HTMLElement}\n */\n this._container = null;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n timeMove.on({\n 'timeMoveDragstart': this._onDragStart,\n 'timeMoveDrag': this._onDrag,\n 'timeMoveDragend': this._clearGuideElement,\n 'timeMoveClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeMove.off(this);\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n this.guideElement = this.timeMove = this._container = this._guideLayer = this._lastDrag =\n this._getTopFunc = this._startGridY = this._startTopPixel = this._viewModel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeMoveGuide.prototype._clearGuideElement = function() {\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n\n this._showOriginScheduleBlocks();\n\n this.guideElement = this._getTopFunc = this._guideLayer = this._model = this._lastDrag =\n this._startGridY = this._startTopPixel = this._viewModel = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nTimeMoveGuide.prototype._hideOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.addClass(this.guideElement, className);\n }\n};\n\n/**\n * Show element blocks\n */\nTimeMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.removeClass(this.guideElement, className);\n }\n};\n\n/**\n * Refresh guide element\n * @param {string} top - guide element's style top.\n * @param {Schedule} model - updated model\n * @param {object} viewModel - view model\n */\nTimeMoveGuide.prototype._refreshGuideElement = function(top, model, viewModel) {\n var self = this;\n\n reqAnimFrame.requestAnimFrame(function() {\n if (!self._guideLayer) {\n return;\n }\n self._guideLayer.setPosition(0, top);\n self._guideLayer.setContent(tmpl(util.extend({model: model}, viewModel)));\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var guideElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n );\n var duration, modelDuration, goingDuration, comingDuration;\n\n if (!guideElement) {\n return;\n }\n\n this._startTopPixel = parseFloat(guideElement.style.top);\n this._startGridY = dragStartEventData.nearestGridY;\n this.guideElement = guideElement;\n this._container = dragStartEventData.relatedView.container;\n\n this._model = util.extend(\n Schedule.create(dragStartEventData.model),\n dragStartEventData.model\n );\n\n modelDuration = this._model.duration();\n modelDuration = modelDuration > SCHEDULE_MIN_DURATION ? modelDuration : SCHEDULE_MIN_DURATION;\n goingDuration = datetime.millisecondsFrom('minutes', this._model.goingDuration);\n comingDuration = datetime.millisecondsFrom('minutes', this._model.comingDuration);\n duration = goingDuration + modelDuration + comingDuration;\n\n this._lastDrag = dragStartEventData;\n this._viewModel = {\n hasGoingDuration: goingDuration > 0,\n hasComingDuration: comingDuration > 0,\n goingDurationHeight: common.ratio(duration, goingDuration, 100),\n modelDurationHeight: common.ratio(duration, modelDuration, 100),\n comingDurationHeight: common.ratio(duration, comingDuration, 100)\n };\n\n this._resetGuideLayer();\n this._hideOriginScheduleBlocks();\n};\n\n/**\n * TimeMove#timeMoveDrag event handler\n * @param {object} dragEventData - drag event data\n */\nTimeMoveGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.currentView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n guideHeight = parseFloat(this.guideElement.style.height),\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n gridDiff = dragEventData.nearestGridY - this._lastDrag.nearestGridY,\n bottomLimit,\n top;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n if (this._container !== timeView.container) {\n this._container = timeView.container;\n this._resetGuideLayer();\n }\n\n top = this._startTopPixel + gridYOffsetPixel;\n bottomLimit = viewHeight - guideHeight;\n\n top = Math.max(top, 0);\n top = Math.min(top, bottomLimit);\n\n // update time\n this._model.start = new TZDate(this._model.getStarts()).addMinutes(datetime.minutesFromHours(gridDiff));\n this._model.end = new TZDate(this._model.getEnds()).addMinutes(datetime.minutesFromHours(gridDiff));\n this._lastDrag = dragEventData;\n\n this._refreshGuideElement(top, this._model, this._viewModel);\n};\n\nTimeMoveGuide.prototype._resetGuideLayer = function() {\n if (this._guideLayer) {\n this._guideLayer.destroy();\n this._guideLayer = null;\n }\n this._guideLayer = new FloatingLayer(null, this._container);\n this._guideLayer.setSize(this._container.getBoundingClientRect().width, this.guideElement.style.height);\n this._guideLayer.setPosition(0, this.guideElement.style.top);\n this._guideLayer.setContent(tmpl(util.extend({model: this._model}, this._viewModel)));\n this._guideLayer.show();\n};\n\nmodule.exports = TimeMoveGuide;\n","/**\n * @fileoverview Handling resize schedules from drag handler and time grid view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar common = require('../../common/common');\nvar timeCore = require('./core');\nvar TimeResizeGuide = require('./resizeGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeResize(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeResizeGuide}\n */\n this._guide = new TimeResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destroy method\n */\nTimeResize.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * @param {HTMLElement} target - element to check condition.\n * @returns {object|boolean} - return time view instance or false\n */\nTimeResize.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n if (!domutil.hasClass(target, config.classname('time-resize-handle'))) {\n return false;\n }\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeResize#timeResizeDragstart\n * @param {object} dragStartEventData - event data of Drag#dragstart\n */\nTimeResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n ctrl = this.baseController,\n targetModelID,\n getScheduleDataFunc,\n scheduleData;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n targetModelID = domutil.getData(blockElement, 'id');\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: targetModelID,\n schedule: ctrl.schedules.items[targetModelID]\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {Schedule} schedule - schedule data\n */\n this.fire('timeResizeDragstart', scheduleData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeResize#timeResizeDrag\n * @param {object} dragEventData - event data of Drag#drag custom event.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeResize.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n startScheduleData = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !startScheduleData) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n targetModelID: startScheduleData.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeResize#timeResizeDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeResizeDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeResize#timeResizeDragend\n */\nTimeResize.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n dateEnd,\n newEnds,\n baseDate;\n var changes;\n\n if (!schedule) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n\n baseDate = new TZDate(relatedView.getDate());\n dateEnd = datetime.end(baseDate);\n newEnds = new TZDate(schedule.getEnds()).addMilliseconds(timeDiff);\n\n if (newEnds > dateEnd) {\n newEnds = new TZDate(dateEnd);\n }\n\n if (newEnds.getTime() - schedule.getStarts().getTime() < datetime.millisecondsFrom('minutes', 30)) {\n newEnds = new TZDate(schedule.getStarts()).addMinutes(30);\n }\n\n changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnds}\n );\n\n /**\n * @event TimeResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeResize#timeResizeDragend\n * @param {MouseEvent} dragEndEventData - Mouse event of Drag#dragEnd custom event.\n */\nTimeResize.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n new TZDate(scheduleData.timeY).addMinutes(30)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n scheduleData.nearestGridTimeY.addMinutes(30)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeResize#timeResizeDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeResizeDragend', scheduleData);\n\n this._getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * @emits TimeResize#timeResizeClick\n */\nTimeResize.prototype._onClick = function() {\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeClick\n */\n this.fire('timeResizeClick');\n};\n\ntimeCore.mixin(TimeResize);\nutil.CustomEvents.mixin(TimeResize);\n\nmodule.exports = TimeResize;\n","/**\n * @fileoverview Module for Time.Resize effect while dragging.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar datetime = require('../../common/datetime');\n\n/**\n * Class for Time.Resize effect.\n * @constructor\n * @param {TimeResize} timeResize - the instance of TimeResize handler.\n */\nfunction TimeResizeGuide(timeResize) {\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeResize}\n */\n this.timeResize = timeResize;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {HTMLElement}\n */\n this._originScheduleElement = null;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n /**\n * @type {number}\n */\n this._startHeightPixel = 0;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n /**\n * @type {Schedule}\n */\n this._schedule = null;\n\n timeResize.on({\n 'timeResizeDragstart': this._onDragStart,\n 'timeResizeDrag': this._onDrag,\n 'timeResizeDragend': this._clearGuideElement,\n 'timeResizeClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeResize.off(this);\n this.guideElement = this.timeResize = this._getTopFunc =\n this._originScheduleElement = this._startHeightPixel =\n this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeResizeGuide.prototype._clearGuideElement = function() {\n var guideElement = this.guideElement,\n originElement = this._originScheduleElement;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing'));\n }\n\n if (originElement) {\n originElement.style.display = 'block';\n }\n\n domutil.remove(guideElement);\n\n this.guideElement = this._getTopFunc = this._originScheduleElement =\n this._startHeightPixel = this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Refresh guide element\n * @param {number} guideHeight - guide element's style height.\n * @param {number} minTimeHeight - time element's min height\n * @param {number} timeHeight - time element's height.\n */\nTimeResizeGuide.prototype._refreshGuideElement = function(guideHeight, minTimeHeight, timeHeight) {\n var guideElement = this.guideElement;\n var timeElement;\n\n if (!guideElement) {\n return;\n }\n\n timeElement = domutil.find(config.classname('.time-schedule-content-time'), guideElement);\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.height = guideHeight + 'px';\n guideElement.style.display = 'block';\n\n if (timeElement) {\n timeElement.style.height = timeHeight + 'px';\n timeElement.style.minHeight = minTimeHeight + 'px';\n }\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var originElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n ),\n schedule = dragStartEventData.schedule,\n guideElement;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing'));\n }\n\n if (!originElement || !schedule) {\n return;\n }\n\n this._startGridY = dragStartEventData.nearestGridY;\n this._startHeightPixel = parseFloat(originElement.style.height);\n this._startTopPixel = parseFloat(originElement.style.top);\n\n this._originScheduleElement = originElement;\n this._schedule = schedule;\n\n guideElement = this.guideElement = originElement.cloneNode(true);\n domutil.addClass(guideElement, config.classname('time-guide-resize'));\n\n originElement.style.display = 'none';\n dragStartEventData.relatedView.container.appendChild(guideElement);\n};\n\n/**\n * @param {object} dragEventData - event data from Drag#drag.\n */\nTimeResizeGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.relatedView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n guideElement = this.guideElement,\n guideTop = parseFloat(guideElement.style.top),\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n // hourLength : viewHeight = gridYOffset : X;\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n goingDuration = this._schedule.goingDuration,\n modelDuration = this._schedule.duration() / datetime.MILLISECONDS_PER_MINUTES,\n comingDuration = this._schedule.comingDuration,\n minutesLength = hourLength * 60,\n timeHeight,\n timeMinHeight,\n minHeight,\n maxHeight,\n height;\n\n height = (this._startHeightPixel + gridYOffsetPixel);\n // at least large than 30min from schedule start time.\n minHeight = guideTop + ratio(hourLength, viewHeight, 0.5);\n minHeight -= this._startTopPixel;\n timeMinHeight = minHeight;\n minHeight += ratio(minutesLength, viewHeight, goingDuration) + ratio(minutesLength, viewHeight, comingDuration);\n // smaller than 24h\n maxHeight = viewHeight - guideTop;\n\n height = Math.max(height, minHeight);\n height = Math.min(height, maxHeight);\n\n timeHeight = ratio(minutesLength, viewHeight, modelDuration) + gridYOffsetPixel;\n\n this._refreshGuideElement(height, timeMinHeight, timeHeight);\n};\n\nmodule.exports = TimeResizeGuide;\n","/* eslint complexity: 0 */\n/**\n * @fileoverview Model of schedule.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar TZDate = require('../common/timezone').Date;\nvar datetime = require('../common/datetime');\nvar dirty = require('../common/dirty');\nvar model = require('../common/model');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * Schedule category\n * @readonly\n * @enum {string}\n */\nvar SCHEDULE_CATEGORY = {\n /** milestone */\n MILESTONE: 'milestone',\n\n /** task */\n TASK: 'task',\n\n /** all-day schedule */\n ALLDAY: 'allday',\n\n /** normal schedule */\n TIME: 'time'\n};\n\n/**\n * The model of calendar schedules.\n * @constructor\n * @mixes dirty\n * @mixes model\n */\nfunction Schedule() {\n /**\n * `Optional` unique id for various use.\n * @type {string}\n */\n this.id = '';\n\n /**\n * title for schedule.\n * @type {string}\n */\n this.title = '';\n\n /**\n * body for schedule.\n * @type {string}\n */\n this.body = '';\n\n /**\n * is schedule is all day schedule?\n * @type {boolean}\n */\n this.isAllDay = false;\n\n /**\n * schedule start\n * @type {TZDate}\n */\n this.start = null;\n\n /**\n * schedule end\n * @type {TZDate}\n */\n this.end = null;\n\n /**\n * schedule text color\n * @type {string}\n */\n this.color = '#000';\n\n /**\n * schedule block visibility\n * @type {boolean}\n */\n this.isVisible = true;\n\n /**\n * schedule background color\n * @type {string}\n */\n this.bgColor = '#a1b56c';\n\n /**\n * schedule background color when dragging it\n * @type {string}\n */\n this.dragBgColor = '#a1b56c';\n\n /**\n * schedule left border color\n * @type {string}\n */\n this.borderColor = '#000';\n\n /**\n * calendar ID\n * @type {string}\n */\n this.calendarId = '';\n\n /**\n * Schedule category(milestone, task, allday, time)\n * @type {string}\n */\n this.category = '';\n\n /**\n * Classification of work schedules (before work, before lunch, before work)\n * @type {string}\n */\n this.dueDateClass = '';\n\n /**\n * Custom style for schedule element\n * @type {string}\n */\n this.customStyle = '';\n\n /**\n * in progress flag to do something\n * @type {boolean}\n */\n this.isPending = false;\n\n /**\n * focused schedule flag\n * @type {boolean}\n */\n this.isFocused = false;\n\n /**\n * read-only schedule flag\n * @type {boolean}\n */\n this.isReadOnly = false;\n\n /**\n * private schedule\n * @type {boolean}\n */\n this.isPrivate = false;\n\n /**\n * location\n * @type {string}\n */\n this.location = '';\n\n /**\n * attendees\n * @type {Array.}\n */\n this.attendees = [];\n\n /**\n * recurrence rule\n * @type {any}\n */\n this.recurrenceRule = '';\n\n /**\n * state. 'Busy' is default.\n * @type {string}\n */\n this.state = '';\n\n /**\n * travelTime: going-Duration minutes\n * @type {number}\n */\n this.goingDuration = 0;\n\n /**\n * travelTime: coming-Duration minutes\n * @type {number}\n */\n this.comingDuration = 0;\n\n /**\n * Separate data storage space independent of rendering.\n * @type {object}\n */\n this.raw = null;\n\n // initialize model id\n util.stamp(this);\n}\n\n/**********\n * static props\n **********/\n\nSchedule.schema = {\n required: ['title'],\n dateRange: ['start', 'end']\n};\n\n/**\n * create schedule model from json(object) data.\n * @param {object} data object for model.\n * @returns {Schedule} Schedule model instance.\n */\nSchedule.create = function(data) {\n var inst = new Schedule();\n inst.init(data);\n\n return inst;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Initialize schedule instance.\n * @param {object} options options.\n */\nSchedule.prototype.init = function(options) {\n options = util.extend({}, options);\n if (options.category === SCHEDULE_CATEGORY.ALLDAY) {\n options.isAllDay = true;\n }\n\n this.id = options.id || '';\n this.title = options.title || '';\n this.body = options.body || '';\n this.isAllDay = util.isExisty(options.isAllDay) ? options.isAllDay : false;\n this.isVisible = util.isExisty(options.isVisible) ? options.isVisible : true;\n\n this.color = options.color || this.color;\n this.bgColor = options.bgColor || this.bgColor;\n this.dragBgColor = options.dragBgColor || this.dragBgColor;\n this.borderColor = options.borderColor || this.borderColor;\n this.calendarId = options.calendarId || '';\n this.category = options.category || '';\n this.dueDateClass = options.dueDateClass || '';\n this.customStyle = options.customStyle || '';\n this.location = options.location || '';\n this.attendees = options.attendees || [];\n this.recurrenceRule = options.recurrenceRule || '';\n this.isPrivate = options.isPrivate || false;\n this.isPending = options.isPending || false;\n this.isFocused = options.isFocused || false;\n this.isReadOnly = options.isReadOnly || false;\n this.goingDuration = options.goingDuration || 0;\n this.comingDuration = options.comingDuration || 0;\n this.state = options.state || '';\n\n if (this.isAllDay) {\n this.setAllDayPeriod(options.start, options.end);\n } else {\n this.setTimePeriod(options.start, options.end);\n }\n\n this.raw = options.raw || null;\n};\n\nSchedule.prototype.setAllDayPeriod = function(start, end) {\n // If it is an all-day schedule, only the date information of the string is used.\n if (util.isString(start)) {\n start = datetime.parse(start.substring(0, 10));\n } else {\n start = new TZDate(start || Date.now());\n }\n if (util.isString(end)) {\n end = datetime.parse(end.substring(0, 10));\n } else {\n end = new TZDate(end || this.start);\n }\n\n this.start = start;\n this.start.setHours(0, 0, 0);\n this.end = end || new TZDate(this.start);\n this.end.setHours(23, 59, 59);\n};\n\nSchedule.prototype.setTimePeriod = function(start, end) {\n this.start = new TZDate(start || Date.now());\n this.end = new TZDate(end || this.start);\n\n if (!end) {\n this.end.setMinutes(this.end.getMinutes() + 30);\n }\n};\n\n/**\n * @returns {Date} render start date.\n */\nSchedule.prototype.getStarts = function() {\n return this.start;\n};\n\n/**\n * @returns {Date} render end date.\n */\nSchedule.prototype.getEnds = function() {\n return this.end;\n};\n\n/**\n * @returns {number} instance unique id.\n */\nSchedule.prototype.cid = function() {\n return util.stamp(this);\n};\n\n/**\n * Check two schedule are equals (means title, isAllDay, start, end are same)\n * @param {Schedule} schedule Schedule model instance to compare.\n * @returns {boolean} Return false when not same.\n */\nSchedule.prototype.equals = function(schedule) {\n if (this.id !== schedule.id) {\n return false;\n }\n\n if (this.title !== schedule.title) {\n return false;\n }\n\n if (this.body !== schedule.body) {\n return false;\n }\n\n if (this.isAllDay !== schedule.isAllDay) {\n return false;\n }\n\n if (datetime.compare(this.getStarts(), schedule.getStarts()) !== 0) {\n return false;\n }\n\n if (datetime.compare(this.getEnds(), schedule.getEnds()) !== 0) {\n return false;\n }\n\n if (this.color !== schedule.color) {\n return false;\n }\n\n if (this.bgColor !== schedule.bgColor) {\n return false;\n }\n\n if (this.dragBgColor !== schedule.dragBgColor) {\n return false;\n }\n\n if (this.borderColor !== schedule.borderColor) {\n return false;\n }\n\n return true;\n};\n\n/**\n * return duration between start and end.\n * @returns {Date} duration (UTC)\n */\nSchedule.prototype.duration = function() {\n var start = this.getStarts(),\n end = this.getEnds(),\n duration;\n\n if (this.isAllDay) {\n duration = datetime.end(end) - datetime.start(start);\n } else {\n duration = end - start;\n }\n\n return duration;\n};\n\n/**\n * Returns true if the given Schedule coincides with the same time as the\n * calling Schedule.\n * @param {Schedule} schedule The other schedule to compare with this Schedule.\n * @returns {boolean} If the other schedule occurs within the same time as the first object.\n */\nSchedule.prototype.collidesWith = function(schedule) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = schedule.getStarts(),\n end = schedule.getEnds();\n var ownGoingDuration = datetime.millisecondsFrom('minutes', this.goingDuration),\n ownComingDuration = datetime.millisecondsFrom('minutes', this.comingDuration),\n goingDuration = datetime.millisecondsFrom('minutes', schedule.goingDuration),\n comingDuration = datetime.millisecondsFrom('minutes', schedule.comingDuration);\n\n if (Math.abs(ownEnds - ownStarts) < SCHEDULE_MIN_DURATION) {\n ownEnds += SCHEDULE_MIN_DURATION;\n }\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n ownStarts -= ownGoingDuration;\n ownEnds += ownComingDuration;\n start -= goingDuration;\n end += comingDuration;\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodel.mixin(Schedule.prototype);\ndirty.mixin(Schedule.prototype);\n\nmodule.exports = Schedule;\n","/**\n * @fileoverview Model for views\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar datetime = require('../../common/datetime');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * Schedule ViewModel\n * @constructor\n * @param {Schedule} schedule Schedule instance.\n */\nfunction ScheduleViewModel(schedule) {\n /**\n * The model of schedule.\n * @type {Schedule}\n */\n this.model = schedule;\n\n /**\n * @type {number}\n */\n this.top = 0;\n\n /**\n * @type {number}\n */\n this.left = 0;\n\n /**\n * @type {number}\n */\n this.width = 0;\n\n /**\n * @type {number}\n */\n this.height = 0;\n\n /**\n * Represent schedule has collide with other schedules when rendering.\n * @type {boolean}\n */\n this.hasCollide = false;\n\n /**\n * Extra space at rigth side of this schedule.\n * @type {number}\n */\n this.extraSpace = 0;\n\n /**\n * represent this schedule block is not visible after rendered.\n *\n * in month view, some viewmodel in date need to hide when already rendered before dates.\n *\n * set true then it just shows empty space.\n * @type {boolean}\n */\n this.hidden = false;\n\n /**\n * whether the schedule includes multiple dates\n */\n this.hasMultiDates = false;\n\n /**\n * represent render start date used at rendering.\n *\n * if set null then use model's 'start' property.\n * @type {TZDate}\n */\n this.renderStarts = null;\n\n /**\n * whether the actual start-date is before the render-start-date\n * @type {boolean}\n */\n this.exceedLeft = false;\n\n /**\n * represent render end date used at rendering.\n *\n * if set null then use model's 'end' property.\n * @type {TZDate}\n */\n this.renderEnds = null;\n\n /**\n * whether the actual end-date is after the render-end-date\n * @type {boolean}\n */\n this.exceedRight = false;\n}\n\n/**********\n * static props\n **********/\n\n/**\n * ScheduleViewModel factory method.\n * @param {Schedule} schedule Schedule instance.\n * @returns {ScheduleViewModel} ScheduleViewModel instance.\n */\nScheduleViewModel.create = function(schedule) {\n return new ScheduleViewModel(schedule);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderStarts is not set. return model's start property.\n * @override\n * @returns {Date} render start date.\n */\nScheduleViewModel.prototype.getStarts = function() {\n if (this.renderStarts) {\n return this.renderStarts;\n }\n\n return this.model.start;\n};\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderEnds is not set. return model's end property.\n * @override\n * @returns {Date} render end date.\n */\nScheduleViewModel.prototype.getEnds = function() {\n if (this.renderEnds) {\n return this.renderEnds;\n }\n\n return this.model.end;\n};\n\n/**\n * @returns {number} unique number for model.\n */\nScheduleViewModel.prototype.cid = function() {\n return util.stamp(this.model);\n};\n\n/**\n * Shadowing valueOf method for schedule sorting.\n * @returns {Schedule} The model of schedule.\n */\nScheduleViewModel.prototype.valueOf = function() {\n return this.model;\n};\n\n/**\n * Link duration method\n * @returns {number} Schedule#duration result.\n */\nScheduleViewModel.prototype.duration = function() {\n return this.model.duration();\n};\n\n/**\n * Link collidesWith method\n * @param {Schedule|ScheduleViewModel} viewModel - Model or viewmodel instance of Schedule.\n * @returns {boolean} Schedule#collidesWith result.\n */\nScheduleViewModel.prototype.collidesWith = function(viewModel) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = viewModel.getStarts(),\n end = viewModel.getEnds();\n var ownGoingDuration = datetime.millisecondsFrom('minutes', this.valueOf().goingDuration),\n ownComingDuration = datetime.millisecondsFrom('minutes', this.valueOf().comingDuration),\n goingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration),\n comingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n\n if (Math.abs(ownEnds - ownStarts) < SCHEDULE_MIN_DURATION) {\n ownEnds += SCHEDULE_MIN_DURATION;\n }\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n ownStarts -= ownGoingDuration;\n ownEnds += ownComingDuration;\n start -= goingDuration;\n end += comingDuration;\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodule.exports = ScheduleViewModel;\n","/**\n * @fileoverview The standard theme\n * @author NHN FE Development Lab \n */\n'use strict';\n\n/**\n * \"common\" prefix is for entire calendar. \"common\" properties can be overriden by \"week\", \"month\".\n * \"week\" prefix is for weekly and daily view.\n * \"month\" prefix is for monthly view.\n */\nvar theme = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': 'none',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '0',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'none',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': 'inherit',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n\nmodule.exports = theme;\n","/**\n * @fileoverview The all configuration of a theme\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar themeStandard = require('./standard');\nvar themeConfig = require('./themeConfig');\nvar common = require('../common/common');\n\n/**\n * Theme manager\n * @param {object} customTheme - custom theme\n */\nfunction Theme(customTheme) {\n var theme = customTheme || themeStandard;\n\n /**\n * @type {util.HashMap}\n */\n this._map = new util.HashMap();\n\n this.setStyles(theme);\n}\n\n/**\n * Get a style with key\n * @param {string} key - key for getting a style\n * @returns {string|undefined} style\n */\nTheme.prototype.getStyle = function(key) {\n return this._map.get(key);\n};\n\n/**\n * Set a style\n * @param {string} key - key for setting a style\n * @param {string} style - style value\n * @returns {boolean} true if the give key is valid or false\n */\nTheme.prototype.setStyle = function(key, style) {\n var styles = {};\n styles[key] = style;\n\n return this.setStyles(styles).length === 0;\n};\n\n/**\n * Set styles\n * @param {object} styles - multiple styles map\n * @returns {Array.} error keys\n */\nTheme.prototype.setStyles = function(styles) {\n var errors = [];\n\n util.forEach(styles, function(style, key) {\n if (util.isUndefined(themeConfig[key])) {\n errors.push(key);\n } else {\n this._map.set(key, style);\n common.set(this, key, style);\n }\n }, this);\n\n // apply missing styles which have to be default\n util.forEach(themeConfig, function(style, key) {\n if (!this.getStyle(key)) {\n this._map.set(key, style);\n common.set(this, key, style);\n }\n }, this);\n\n return errors;\n};\n\n/**\n * Delete all styles\n */\nTheme.prototype.clear = function() {\n var keys = this._map.keys();\n var categories = {};\n util.forEach(keys, function(key) {\n var category = key.split('.')[0];\n if (!categories[category]) {\n categories[category] = category;\n }\n });\n\n util.forEach(categories, function(child) {\n delete this[child];\n }, this);\n\n this._map.removeAll();\n};\n\nmodule.exports = Theme;\n","/**\n * @fileoverview The all configuration of a theme\n * @author NHN FE Development Lab \n */\n'use strict';\n\n/**\n * Full configuration for theme.\n * \"common\" prefix is for entire calendar. \"common\" properties can be overriden by \"week\", \"month\".\n * \"week\" prefix is for weekly and daily view.\n * \"month\" prefix is for monthly view.\n * @typedef {object} themeConfig\n * @example\n // default keys and styles\n var themeConfig = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': '1px solid #e5e5e5',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '10px',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.backgroundColor': 'inherit',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'inherit',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': '#333',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n 'week.timegridLeftTimezoneLabel.height': '40px',\n 'week.timegridLeftAdditionalTimezone.backgroundColor': 'white',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.pastTime.color': '#bbb',\n 'week.pastTime.fontWeight': 'normal',\n\n 'week.futureTime.color': '#333',\n 'week.futureTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n */\nvar themeConfig = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': '1px solid #e5e5e5',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '10px',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.backgroundColor': 'inherit',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'inherit',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': '#333',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n 'week.timegridLeftTimezoneLabel.height': '40px',\n 'week.timegridLeftAdditionalTimezone.backgroundColor': 'white',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.pastTime.color': '#bbb',\n 'week.pastTime.fontWeight': 'normal',\n\n 'week.futureTime.color': '#333',\n 'week.futureTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n\nmodule.exports = themeConfig;\n","/**\n * @fileoverview Layout view. wrap all view containers at outside.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\nvar View = require('./view');\n\n/**\n * Layout view for toggle each child view. It will controlled via navigation UI.\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container Container element to use layout view.\n * @param {Theme} theme - theme instance\n */\nfunction Layout(container, theme) {\n container = domutil.appendHTMLElement('div', container, config.classname('layout'));\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * @type {Collection} Child view collection.\n */\n this.children = new Collection(function(childView) {\n return childView.viewName;\n });\n /* eslint-enable*/\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n this.applyTheme();\n}\n\nutil.inherit(Layout, View);\n\n/**\n * Clear child views.\n */\nLayout.prototype.clear = function() {\n this.children.each(function(childView) {\n childView.destroy();\n });\n\n this.children.clear();\n this.container.innerHTML = '';\n};\n\n/**\n * Remove child view.\n * @override\n * @param {(string|View)} viewName - name of view or instance.\n */\nLayout.prototype.removeChild = function(viewName) {\n this.children.remove(viewName);\n};\n\n/**\n * Toggle child views.\n * @param {string} viewName - Name of view.\n */\nLayout.prototype.toggleChildView = function(viewName) {\n var container,\n prefix = ['add', 'remove'],\n flag;\n\n this.children.each(function(childView) {\n container = childView.container;\n flag = Number(childView.viewName === viewName);\n domutil[prefix[flag] + 'Class'](container, config.classname('hidden'));\n });\n};\n\nLayout.prototype.applyTheme = function() {\n var style = this.container.style;\n var theme = this.theme.common;\n\n // background color\n style.backgroundColor = theme.backgroundColor;\n};\n\nmodule.exports = Layout;\n","/**\n * @fileoverview Month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n TZDate = require('../../common/timezone').Date,\n tmpl = require('../template/month/month.hbs'),\n View = require('../view'),\n VLayout = require('../..//common/vlayout'),\n WeekdayInMonth = require('./weekdayInMonth');\nvar mmin = Math.min;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {function} [options.scheduleFilter] - schedule filter\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {string} [options.renderMonth='2015-12'] - render month\n * @param {string[]} [options.daynames] - daynames to use upside of month view\n * @param {HTMLElement} container - container element\n * @param {Base.Month} controller - controller instance\n */\nfunction Month(options, container, controller) {\n var theme = controller ? controller.theme : null;\n var monthOption;\n\n options = options || {};\n monthOption = options ? options.month : {};\n\n View.call(this, container);\n\n /**\n * @type {Base.Month}\n */\n this.controller = controller;\n\n /**\n * @type {VLayout}\n */\n this.vLayout = new VLayout({\n panels: [\n {height: parseInt(controller.theme.month.dayname.height, 10) || 42},\n {autoHeight: true}\n ]\n }, container, theme);\n\n /**\n * @type {string}\n */\n this.options = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible);\n },\n startDayOfWeek: 0,\n renderMonth: '2018-01',\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n narrowWeekend: false,\n visibleWeeksCount: null,\n isAlways6Week: true,\n isReadOnly: options.isReadOnly,\n grid: {\n header: {\n height: 34\n },\n footer: {\n height: 3\n }\n }\n }, monthOption);\n\n this.options.grid.header = util.extend({\n height: 34\n }, util.pick(monthOption, 'grid', 'header'));\n this.options.grid.footer = util.extend({\n height: 3\n }, util.pick(monthOption, 'grid', 'footer'));\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = datetime.getGridLeftAndWidth(\n this.options.daynames.length,\n this.options.narrowWeekend,\n this.options.startDayOfWeek);\n}\n\nutil.inherit(Month, View);\n\n/**\n * Name of view. for managing subview at layout view\n * @type {string}\n */\nMonth.prototype.viewName = 'month';\n\n/**\n * Get calendar array by supplied date\n * @param {string} renderMonth - month to render YYYY-MM, weeks2/3 to render YYYY-MM-DD\n * @returns {array.} calendar array\n */\nMonth.prototype._getMonthCalendar = function(renderMonth) {\n var date = new TZDate(renderMonth);\n var startDayOfWeek = this.options.startDayOfWeek || 0;\n var visibleWeeksCount = mmin(this.options.visibleWeeksCount || 0, 6);\n var workweek = this.options.workweek || false;\n var datetimeOptions, calendar;\n\n if (this.options.visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: this.options.isAlways6Week,\n workweek: workweek\n };\n }\n\n calendar = datetime.arr2dCalendar(date, datetimeOptions);\n\n return calendar;\n};\n\n/**\n * Create children view (week) and add children\n * @param {HTMLElement} container - container element to render weeks\n * @param {array.} calendar - calendar array from datetime#arr2dCalendar\n * @param {Theme} theme - theme instance\n */\nMonth.prototype._renderChildren = function(container, calendar, theme) {\n var self = this;\n var weekCount = calendar.length;\n var heightPercent = 100 / weekCount;\n var opt = this.options;\n var renderMonth = opt.renderMonth;\n var narrowWeekend = opt.narrowWeekend;\n var startDayOfWeek = opt.startDayOfWeek;\n var visibleWeeksCount = opt.visibleWeeksCount;\n var visibleScheduleCount = opt.visibleScheduleCount;\n var gridOption = opt.grid;\n var isReadOnly = opt.isReadOnly;\n\n container.innerHTML = '';\n this.children.clear();\n\n util.forEach(calendar, function(weekArr) {\n var start = new TZDate(weekArr[0]),\n end = new TZDate(weekArr[weekArr.length - 1]),\n weekdayViewContainer,\n weekdayView;\n\n weekdayViewContainer = domutil.appendHTMLElement(\n 'div', container, config.classname('month-week-item'));\n\n weekdayView = new WeekdayInMonth({\n renderMonth: renderMonth,\n heightPercent: heightPercent,\n renderStartDate: start,\n renderEndDate: end,\n narrowWeekend: narrowWeekend,\n startDayOfWeek: startDayOfWeek,\n visibleWeeksCount: visibleWeeksCount,\n visibleScheduleCount: visibleScheduleCount,\n grid: gridOption,\n scheduleHeight: parseInt(theme.month.schedule.height, 10),\n scheduleGutter: parseInt(theme.month.schedule.marginTop, 10),\n isReadOnly: isReadOnly\n }, weekdayViewContainer);\n\n self.addChild(weekdayView);\n });\n};\n\n/**\n * Render month view\n * @override\n */\nMonth.prototype.render = function() {\n var self = this,\n opt = this.options,\n vLayout = this.vLayout,\n controller = this.controller,\n daynames = opt.daynames,\n workweek = opt.workweek,\n calendar = this._getMonthCalendar(opt.renderMonth),\n scheduleFilter = opt.scheduleFilter,\n theme = controller ? controller.theme : null,\n styles = this._getStyles(theme),\n grids,\n daynameViewModel,\n baseViewModel;\n\n grids = this.grids = datetime.getGridLeftAndWidth(\n opt.daynames.length,\n opt.narrowWeekend,\n opt.startDayOfWeek\n );\n\n daynameViewModel = util.map(\n util.range(opt.startDayOfWeek, 7).concat(util.range(7)).slice(0, 7),\n function(day, index) {\n return {\n day: day,\n label: daynames[day],\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0,\n color: this._getDayNameColor(theme, day)\n };\n },\n this\n );\n\n if (workweek) {\n grids = this.grids = datetime.getGridLeftAndWidth(5, opt.narrowWeekend, opt.startDayOfWeek, workweek);\n\n daynameViewModel = util.filter(daynameViewModel, function(daynameModel) {\n return !datetime.isWeekend(daynameModel.day);\n });\n\n util.forEach(daynameViewModel, function(daynameModel, index) {\n daynameModel.width = grids[index] ? grids[index].width : 0;\n daynameModel.left = grids[index] ? grids[index].left : 0;\n });\n }\n\n baseViewModel = {\n daynames: daynameViewModel,\n styles: styles\n };\n\n vLayout.panels[0].container.innerHTML = tmpl(baseViewModel);\n\n this._renderChildren(vLayout.panels[1].container, calendar, theme);\n\n baseViewModel.panelHeight = vLayout.panels[1].getHeight();\n\n this.children.each(function(childView) {\n var start = datetime.start(childView.options.renderStartDate);\n var end = datetime.start(childView.options.renderEndDate);\n var eventsInDateRange = controller.findByDateRange(\n datetime.start(start),\n datetime.end(end),\n scheduleFilter\n );\n var dateRange = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY);\n var viewModel = {\n eventsInDateRange: eventsInDateRange,\n range: dateRange.slice(0, grids.length),\n grids: grids,\n panelHeight: baseViewModel.panelHeight,\n theme: theme\n };\n\n childView.render(viewModel);\n\n self._invokeAfterRenderSchedule(eventsInDateRange);\n });\n};\n\n/**\n * Fire 'afterRenderSchedule' event\n * @param {Array} matrices - schedule matrices from view model\n * @fires Month#afterRenderSchedule\n */\nMonth.prototype._invokeAfterRenderSchedule = function(matrices) {\n var self = this;\n util.forEachArray(matrices, function(matrix) {\n util.forEachArray(matrix, function(column) {\n util.forEachArray(column, function(scheduleViewModel) {\n if (scheduleViewModel && !scheduleViewModel.hidden) {\n /**\n * @event Month#afterRenderSchedule\n */\n self.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n });\n });\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMonth.prototype._getStyles = function(theme) {\n var styles = {};\n var dayname;\n\n if (theme) {\n dayname = theme.month.dayname;\n\n styles.borderTop = dayname.borderTop || theme.common.border;\n styles.borderLeft = dayname.borderLeft || theme.common.border;\n styles.height = dayname.height;\n styles.paddingLeft = dayname.paddingLeft;\n styles.paddingRight = dayname.paddingRight;\n styles.fontSize = dayname.fontSize;\n styles.backgroundColor = dayname.backgroundColor;\n styles.fontWeight = dayname.fontWeight;\n styles.textAlign = dayname.textAlign;\n }\n\n return styles;\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @returns {string} style - color style\n */\nMonth.prototype._getDayNameColor = function(theme, day) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = theme.common.holiday.color;\n } else if (day === 6) {\n color = theme.common.saturday.color;\n } else {\n color = theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\nmodule.exports = Month;\n","/**\n * @fileoverview Floating layer for displaying schedule in specific date\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar OUT_PADDING = 5;\nvar VIEW_MIN_WIDTH = 280;\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domevent = require('../../common/domevent'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n FloatingLayer = require('../../common/floatingLayer'),\n common = require('../../common/common'),\n tmpl = require('../template/month/more.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {object} [options.moreLayerSize] - more layer size\n * @param {object} [options.moreLayerSize.width=null] - css width value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {object} [options.moreLayerSize.height=null] - css height value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {HTMLElement} container = container element\n * @param {Theme} theme - theme instance\n */\nfunction More(options, container, theme) {\n View.call(this, container);\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n moreLayerSize: {\n width: null,\n height: null\n },\n scheduleHeight: parseInt(theme.month.schedule.height, 10) || 18,\n scheduleGutter: parseInt(theme.month.schedule.marginTop, 10) || 2,\n scheduleBulletTop: (parseInt(theme.month.schedule.height, 10) || 18) / 3,\n borderRadius: theme.month.schedule.borderRadius\n }, options);\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(More, View);\n\n/**\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nMore.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n var className = config.classname('month-more-close');\n\n if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Mousedown event handler for hiding more layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nMore.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n moreLayer = domutil.closest(target, config.classname('.month-more'));\n\n if (moreLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Get new position for more layer by +n element itself\n * @param {HTMLElement} target - parent grid-line element of +n element\n * @param {HTMLElement} weekItem - weekItem container element\n * @returns {number[]} new position of more layer\n */\nMore.prototype._getRenderPosition = function(target, weekItem) {\n var pos = domevent.getMousePosition({\n clientX: domutil.getPosition(target)[0],\n clientY: domutil.getPosition(weekItem)[1]\n }, this.container);\n var containerSize = domutil.getSize(this.container);\n var left = pos[0] - OUT_PADDING;\n var top = pos[1] - OUT_PADDING;\n\n left = common.ratio(containerSize[0], 100, left);\n top = common.ratio(containerSize[1], 100, top);\n\n return [left, top];\n};\n\n/**\n * @override\n */\nMore.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nMore.prototype.render = function(viewModel) {\n var target = domutil.closest(viewModel.target, config.classname('.weekday-grid-line'));\n var weekItem = domutil.closest(target, config.classname('.month-week-item'));\n var layer = this.layer;\n var self = this;\n var pos = this._getRenderPosition(target, weekItem);\n var minHeight = domutil.getSize(weekItem)[1] + (OUT_PADDING * 2);\n var width = target.offsetWidth + (OUT_PADDING * 2);\n var opt = this.options;\n var optMoreLayerSize = opt.moreLayerSize;\n var styles = this._getStyles(this.theme);\n var maxVisibleSchedulesInLayer = 10;\n var height = '';\n var containerSize = domutil.getSize(this.container);\n var calWidth = 0;\n var calHeight = 0;\n var isOverWidth = false;\n var isOverHeight = false;\n var leftPos = pos[0];\n var topPos = pos[1];\n\n this._viewModel = util.extend(viewModel, {\n scheduleGutter: opt.scheduleGutter,\n scheduleHeight: opt.scheduleHeight,\n scheduleBulletTop: opt.scheduleBulletTop,\n borderRadius: opt.borderRadius,\n styles: styles\n });\n\n width = Math.max(width, VIEW_MIN_WIDTH);\n height = parseInt(styles.titleHeight, 10);\n height += parseInt(styles.titleMarginBottom, 10);\n if (viewModel.schedules.length <= maxVisibleSchedulesInLayer) {\n height += (opt.scheduleGutter + opt.scheduleHeight) * viewModel.schedules.length;\n } else {\n height += (opt.scheduleGutter + opt.scheduleHeight) * maxVisibleSchedulesInLayer;\n }\n height += parseInt(styles.paddingBottom, 10);\n height += OUT_PADDING; // for border\n\n if (optMoreLayerSize.width) {\n width = optMoreLayerSize.width;\n }\n\n if (optMoreLayerSize.height) {\n height = optMoreLayerSize.height;\n }\n\n if (isNaN(height) || height < minHeight) {\n height = minHeight;\n }\n\n layer.setContent(tmpl(viewModel));\n\n calWidth = leftPos * containerSize[0] / 100;\n calHeight = topPos * containerSize[1] / 100;\n isOverWidth = calWidth + width >= containerSize[0];\n isOverHeight = calHeight + height >= containerSize[1];\n leftPos = leftPos + '%';\n topPos = topPos + '%';\n\n if (isOverWidth && isOverHeight) {\n layer.setLTRB({\n right: 0,\n bottom: 0\n });\n } else if (!isOverWidth && isOverHeight) {\n layer.setLTRB({\n left: leftPos,\n bottom: 0\n });\n } else if (isOverWidth && !isOverHeight) {\n layer.setLTRB({\n right: 0,\n top: topPos\n });\n } else {\n layer.setPosition(leftPos, topPos);\n }\n\n layer.setSize(width, height);\n\n layer.show();\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Hide layer\n */\nMore.prototype.hide = function() {\n this.layer.hide();\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nMore.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(tmpl(this._viewModel));\n }\n};\n\n/**\n * Return more layer root element\n * @returns {HTMLElement} root element\n */\nMore.prototype.getMoreViewElement = function() {\n return domutil.find(config.classname('.month-more'), this.layer.container);\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMore.prototype._getStyles = function(theme) {\n var styles = {};\n var listHeight = '';\n\n if (theme) {\n styles.border = theme.month.moreView.border || theme.common.border;\n styles.boxShadow = theme.month.moreView.boxShadow;\n styles.backgroundColor = theme.month.moreView.backgroundColor || theme.common.backgroundColor;\n styles.paddingBottom = theme.month.moreView.paddingBottom;\n styles.titleHeight = theme.month.moreViewTitle.height;\n styles.titleMarginBottom = theme.month.moreViewTitle.marginBottom;\n styles.titleBackgroundColor = theme.month.moreViewTitle.backgroundColor;\n styles.titleBorderBottom = theme.month.moreViewTitle.borderBottom;\n styles.titlePadding = theme.month.moreViewTitle.padding;\n styles.listPadding = theme.month.moreViewList.padding;\n listHeight = 'calc(100%';\n\n if (parseInt(styles.titleHeight, 10)) {\n listHeight += ' - ' + styles.titleHeight;\n }\n if (parseInt(styles.titleMarginBottom, 10)) {\n listHeight += ' - ' + styles.titleMarginBottom;\n }\n listHeight += ')';\n\n styles.listHeight = listHeight;\n }\n\n return styles;\n};\n\nmodule.exports = More;\n","/**\n * @fileoverview Monthday in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common.js'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n Weekday = require('../weekday'),\n baseTmpl = require('../template/month/weekdayInMonth.hbs'),\n scheduleTmpl = require('../template/month/weekdayInMonthSchedule.hbs');\nvar mfloor = Math.floor,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for WeekdayInWeek view\n * @param {number} [options.heightPercent] - height percent of view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction WeekdayInMonth(options, container) {\n Weekday.call(this, options, container);\n container.style.height = options.heightPercent + '%';\n}\n\nutil.inherit(WeekdayInMonth, Weekday);\n\n/**\n * Get schedule container element's bound properly by override\n *\n * View#getViewBound.\n * @override\n */\nWeekdayInMonth.prototype.getViewBound = function() {\n var bound = View.prototype.getViewBound.call(this);\n\n return bound;\n};\n\n/**\n * Get limit index of schedule block in current view\n * @param {number} panelHeight - panel's height for pre-calculation\n * @returns {number} limit index\n */\nWeekdayInMonth.prototype._getRenderLimitIndex = function(panelHeight) {\n var opt = this.options;\n var containerHeight = panelHeight || this.getViewBound().height;\n var gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0;\n var gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0;\n var visibleScheduleCount = opt.visibleScheduleCount || 0;\n var count;\n\n containerHeight -= (gridHeaderHeight + gridFooterHeight);\n\n count = mfloor(containerHeight / (opt.scheduleHeight + opt.scheduleGutter));\n\n if (!visibleScheduleCount) {\n visibleScheduleCount = count;\n }\n\n return mmin(count, visibleScheduleCount); // subtraction for '+n' label block\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options,\n gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0,\n gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0,\n renderLimitIdx = this._getRenderLimitIndex() + 1,\n exceedDate = this.getExceedDate(renderLimitIdx, viewModel.eventsInDateRange, viewModel.range),\n styles = this._getStyles(viewModel.theme);\n var baseViewModel;\n\n viewModel = util.extend({\n exceedDate: exceedDate\n }, viewModel);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n matrices: viewModel.eventsInDateRange,\n gridHeaderHeight: gridHeaderHeight,\n gridFooterHeight: gridFooterHeight,\n renderLimitIdx: renderLimitIdx,\n isReadOnly: opt.isReadOnly,\n styles: styles\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.render = function(viewModel) {\n var container = this.container,\n baseViewModel = this.getBaseViewModel(viewModel),\n scheduleContainer;\n\n if (!this.options.visibleWeeksCount) {\n setIsOtherMonthFlag(baseViewModel.dates, this.options.renderMonth, viewModel.theme);\n }\n\n container.innerHTML = baseTmpl(baseViewModel);\n\n scheduleContainer = domutil.find(\n config.classname('.weekday-schedules'),\n container\n );\n\n if (!scheduleContainer) {\n return;\n }\n\n scheduleContainer.innerHTML = scheduleTmpl(baseViewModel);\n\n common.setAutoEllipsis(\n config.classname('.weekday-schedule-title'),\n container,\n true\n );\n};\n\nWeekdayInMonth.prototype._beforeDestroy = function() {\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nWeekdayInMonth.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.borderTop = theme.common.border;\n styles.borderLeft = theme.common.border;\n styles.fontSize = theme.month.day.fontSize;\n styles.borderRadius = theme.month.schedule.borderRadius;\n styles.marginLeft = theme.month.schedule.marginLeft;\n styles.marginRight = theme.month.schedule.marginRight;\n styles.scheduleBulletTop = this.options.scheduleHeight / 3;\n }\n\n return styles;\n};\n\n/**\n * 현재 달이 아닌 날짜에 대해 isOtherMonth = true 플래그를 추가한다.\n * @param {Array} dates - 날짜정보 배열\n * @param {TZDate} renderMonth - 현재 렌더링중인 월 (YYYYMM)\n * @param {Theme} theme - theme instance\n */\nfunction setIsOtherMonthFlag(dates, renderMonth, theme) {\n var month = renderMonth.getMonth() + 1;\n\n util.forEach(dates, function(dateObj) {\n var isOtherMonth = dateObj.month !== month;\n dateObj.isOtherMonth = isOtherMonth;\n\n if (isOtherMonth) {\n dateObj.color = Weekday.prototype._getDayNameColor(theme, dateObj.day, dateObj.isToday, isOtherMonth);\n }\n });\n}\n\nmodule.exports = WeekdayInMonth;\n","/**\n * @fileoverview Floating layer for writing new schedules\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar View = require('../../view/view');\nvar FloatingLayer = require('../../common/floatingLayer');\nvar util = require('tui-code-snippet');\nvar DatePicker = require('tui-date-picker');\nvar timezone = require('../../common/timezone');\nvar config = require('../../config');\nvar domevent = require('../../common/domevent');\nvar domutil = require('../../common/domutil');\nvar common = require('../../common/common');\nvar tmpl = require('../template/popup/scheduleCreationPopup.hbs');\nvar TZDate = timezone.Date;\nvar MAX_WEEK_OF_MONTH = 6;\nvar ARROW_WIDTH_HALF = 8;\n\n/**\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container - container element\n * @param {Array.} calendars - calendar list used to create new schedule\n * @param {boolean} usageStatistics - GA tracking options in Calendar\n */\nfunction ScheduleCreationPopup(container, calendars, usageStatistics) {\n View.call(this, container);\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n this._selectedCal = null;\n this._schedule = null;\n this.calendars = calendars;\n this._focusedDropdown = null;\n this._usageStatistics = usageStatistics;\n this._onClickListeners = [\n this._selectDropdownMenuItem.bind(this),\n this._toggleDropdownMenuView.bind(this),\n this._closeDropdownMenuView.bind(this, null),\n this._closePopup.bind(this),\n this._toggleIsAllday.bind(this),\n this._toggleIsPrivate.bind(this),\n this._onClickSaveSchedule.bind(this)\n ];\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(ScheduleCreationPopup, View);\n\n/**\n * Mousedown event handler for hiding popup layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nScheduleCreationPopup.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n popupLayer = domutil.closest(target, config.classname('.floating-layer'));\n\n if (popupLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * @override\n */\nScheduleCreationPopup.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nScheduleCreationPopup.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n\n util.forEach(this._onClickListeners, function(listener) {\n return !listener(target);\n });\n};\n\n/**\n * Test click event target is close button, and return layer is closed(hidden)\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether popup layer is closed or not\n */\nScheduleCreationPopup.prototype._closePopup = function(target) {\n var className = config.classname('popup-close');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.hide();\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Toggle dropdown menu view, when user clicks dropdown button\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether user clicked dropdown button or not\n */\nScheduleCreationPopup.prototype._toggleDropdownMenuView = function(target) {\n var className = config.classname('dropdown-button');\n var dropdownBtn = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n\n if (!dropdownBtn) {\n return false;\n }\n\n if (domutil.hasClass(dropdownBtn.parentNode, config.classname('open'))) {\n this._closeDropdownMenuView(dropdownBtn.parentNode);\n } else {\n this._openDropdownMenuView(dropdownBtn.parentNode);\n }\n\n return true;\n};\n\n/**\n * Close drop down menu\n * @param {HTMLElement} dropdown - dropdown element that has a opened dropdown menu\n */\nScheduleCreationPopup.prototype._closeDropdownMenuView = function(dropdown) {\n dropdown = dropdown || this._focusedDropdown;\n if (dropdown) {\n domutil.removeClass(dropdown, config.classname('open'));\n this._focusedDropdown = null;\n }\n};\n\n/**\n * Open drop down menu\n * @param {HTMLElement} dropdown - dropdown element that has a closed dropdown menu\n */\nScheduleCreationPopup.prototype._openDropdownMenuView = function(dropdown) {\n domutil.addClass(dropdown, config.classname('open'));\n this._focusedDropdown = dropdown;\n};\n\n/**\n * If click dropdown menu item, close dropdown menu\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether\n */\nScheduleCreationPopup.prototype._selectDropdownMenuItem = function(target) {\n var itemClassName = config.classname('dropdown-menu-item');\n var iconClassName = config.classname('icon');\n var contentClassName = config.classname('content');\n var selectedItem = domutil.hasClass(target, itemClassName) ? target : domutil.closest(target, '.' + itemClassName);\n var bgColor, title, dropdown, dropdownBtn;\n\n if (!selectedItem) {\n return false;\n }\n\n bgColor = domutil.find('.' + iconClassName, selectedItem).style.backgroundColor || 'transparent';\n title = domutil.find('.' + contentClassName, selectedItem).innerHTML;\n\n dropdown = domutil.closest(selectedItem, config.classname('.dropdown'));\n dropdownBtn = domutil.find(config.classname('.dropdown-button'), dropdown);\n domutil.find('.' + contentClassName, dropdownBtn).innerText = title;\n\n if (domutil.hasClass(dropdown, config.classname('section-calendar'))) {\n domutil.find('.' + iconClassName, dropdownBtn).style.backgroundColor = bgColor;\n this._selectedCal = common.find(this.calendars, function(cal) {\n return cal.id === domutil.getData(selectedItem, 'calendarId');\n });\n }\n\n domutil.removeClass(dropdown, config.classname('open'));\n\n return true;\n};\n\n/**\n * Toggle allday checkbox state\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether event target is allday section or not\n */\nScheduleCreationPopup.prototype._toggleIsAllday = function(target) {\n var className = config.classname('section-allday');\n var alldaySection = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n var checkbox;\n\n if (alldaySection) {\n checkbox = domutil.find(config.classname('.checkbox-square'), alldaySection);\n checkbox.checked = !checkbox.checked;\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Toggle private button\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether event target is private section or not\n */\nScheduleCreationPopup.prototype._toggleIsPrivate = function(target) {\n var className = config.classname('section-private');\n var privateSection = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n\n if (privateSection) {\n if (domutil.hasClass(privateSection, config.classname('public'))) {\n domutil.removeClass(privateSection, config.classname('public'));\n } else {\n domutil.addClass(privateSection, config.classname('public'));\n }\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Save new schedule if user clicked save button\n * @emits ScheduleCreationPopup#saveSchedule\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether save button is clicked or not\n */\nScheduleCreationPopup.prototype._onClickSaveSchedule = function(target) {\n var className = config.classname('popup-save');\n var cssPrefix = config.cssPrefix;\n var title, isPrivate, location, isAllDay, startDate, endDate, state;\n var start, end, calendarId;\n var changes;\n\n if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n return false;\n }\n\n title = domutil.get(cssPrefix + 'schedule-title');\n startDate = new TZDate(this.rangePicker.getStartDate()).toLocalTime();\n endDate = new TZDate(this.rangePicker.getEndDate()).toLocalTime();\n\n if (!title.value) {\n title.focus();\n\n return true;\n }\n\n if (!startDate && !endDate) {\n return true;\n }\n\n isPrivate = !domutil.hasClass(domutil.get(cssPrefix + 'schedule-private'), config.classname('public'));\n location = domutil.get(cssPrefix + 'schedule-location');\n state = domutil.get(cssPrefix + 'schedule-state');\n isAllDay = !!domutil.get(cssPrefix + 'schedule-allday').checked;\n\n if (isAllDay) {\n startDate.setHours(0, 0, 0);\n endDate.setHours(23, 59, 59);\n }\n\n start = new TZDate(startDate);\n end = new TZDate(endDate);\n\n if (this._selectedCal) {\n calendarId = this._selectedCal.id;\n }\n\n if (this._isEditMode) {\n changes = common.getScheduleChanges(\n this._schedule,\n ['calendarId', 'title', 'location', 'start', 'end', 'isAllDay', 'state'],\n {\n calendarId: calendarId,\n title: title.value,\n location: location.value,\n start: start,\n end: end,\n isAllDay: isAllDay,\n state: state.innerText\n }\n );\n\n this.fire('beforeUpdateSchedule', {\n schedule: util.extend({\n raw: {\n class: isPrivate ? 'private' : 'public'\n }\n }, this._schedule),\n changes: changes,\n start: start,\n end: end,\n calendar: this._selectedCal,\n triggerEventName: 'click'\n });\n } else {\n /**\n * @event ScheduleCreationPopup#beforeCreateSchedule\n * @type {object}\n * @property {Schedule} schedule - new schedule instance to be added\n */\n this.fire('beforeCreateSchedule', {\n calendarId: calendarId,\n title: title.value,\n location: location.value,\n raw: {\n class: isPrivate ? 'private' : 'public'\n },\n start: start,\n end: end,\n isAllDay: isAllDay,\n state: state.innerText\n });\n }\n\n this.hide();\n\n return true;\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nScheduleCreationPopup.prototype.render = function(viewModel) {\n var calendars = this.calendars;\n var layer = this.layer;\n var self = this;\n var boxElement, guideElements;\n\n viewModel.zIndex = this.layer.zIndex + 5;\n viewModel.calendars = calendars;\n if (calendars.length) {\n viewModel.selectedCal = this._selectedCal = calendars[0];\n }\n\n this._isEditMode = viewModel.schedule && viewModel.schedule.id;\n if (this._isEditMode) {\n boxElement = viewModel.target;\n viewModel = this._makeEditModeData(viewModel);\n } else {\n this.guide = viewModel.guide;\n guideElements = this._getGuideElements(this.guide);\n boxElement = guideElements.length ? guideElements[0] : null;\n }\n layer.setContent(tmpl(viewModel));\n this._createDatepicker(viewModel.start, viewModel.end, viewModel.isAllDay);\n layer.show();\n\n if (boxElement) {\n this._setPopupPositionAndArrowDirection(boxElement.getBoundingClientRect());\n }\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Make view model for edit mode\n * @param {object} viewModel - original view model from 'beforeCreateEditPopup'\n * @returns {object} - edit mode view model\n */\nScheduleCreationPopup.prototype._makeEditModeData = function(viewModel) {\n var schedule = viewModel.schedule;\n var title, isPrivate, location, startDate, endDate, isAllDay, state;\n var raw = schedule.raw || {};\n var calendars = this.calendars;\n\n var id = schedule.id;\n title = schedule.title;\n isPrivate = raw['class'] === 'private';\n location = schedule.location;\n startDate = schedule.start;\n endDate = schedule.end;\n isAllDay = schedule.isAllDay;\n state = schedule.state;\n\n viewModel.selectedCal = this._selectedCal = common.find(this.calendars, function(cal) {\n return cal.id === viewModel.schedule.calendarId;\n });\n\n this._schedule = schedule;\n\n return {\n id: id,\n selectedCal: this._selectedCal,\n calendars: calendars,\n title: title,\n isPrivate: isPrivate,\n location: location,\n isAllDay: isAllDay,\n state: state,\n start: startDate,\n end: endDate,\n raw: {\n class: isPrivate ? 'private' : 'public'\n },\n zIndex: this.layer.zIndex + 5,\n isEditMode: this._isEditMode\n };\n};\n\n/**\n * Set popup position and arrow direction to apear near guide element\n * @param {MonthCreationGuide|TimeCreationGuide|DayGridCreationGuide} guideBound - creation guide element\n */\nScheduleCreationPopup.prototype._setPopupPositionAndArrowDirection = function(guideBound) {\n var layer = domutil.find(config.classname('.popup'), this.layer.container);\n var layerSize = {\n width: layer.offsetWidth,\n height: layer.offsetHeight\n };\n var windowSize = {\n right: window.innerWidth,\n bottom: window.innerHeight\n };\n var parentRect = this.layer.parent.getBoundingClientRect();\n var parentBounds = {\n left: parentRect.left,\n top: parentRect.top\n };\n var pos;\n\n pos = this._calcRenderingData(layerSize, windowSize, guideBound);\n pos.x -= parentBounds.left;\n pos.y -= (parentBounds.top + 6);\n this.layer.setPosition(pos.x, pos.y);\n this._setArrowDirection(pos.arrow);\n};\n\n/**\n * Get guide elements from creation guide object\n * It is used to calculate rendering position of popup\n * It will be disappeared when hiding popup\n * @param {MonthCreationGuide|TimeCreationGuide|AlldayCreationGuide} guide - creation guide\n * @returns {Array.} creation guide element\n */\nScheduleCreationPopup.prototype._getGuideElements = function(guide) {\n var guideElements = [];\n var i = 0;\n\n if (guide.guideElement) {\n guideElements.push(guide.guideElement);\n } else if (guide.guideElements) {\n for (; i < MAX_WEEK_OF_MONTH; i += 1) {\n if (guide.guideElements[i]) {\n guideElements.push(guide.guideElements[i]);\n }\n }\n }\n\n return guideElements;\n};\n\n/**\n * Get guide element's bound data which only includes top, right, bottom, left\n * @param {Array.} guideElements - creation guide elements\n * @returns {Object} - popup bound data\n */\nScheduleCreationPopup.prototype._getBoundOfFirstRowGuideElement = function(guideElements) {\n var bound;\n\n if (!guideElements.length) {\n return null;\n }\n\n bound = guideElements[0].getBoundingClientRect();\n\n return {\n top: bound.top,\n left: bound.left,\n bottom: bound.bottom,\n right: bound.right\n };\n};\n\n/**\n * Calculate rendering position usering guide elements\n * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} parentSize - width and height of the upper layer, that acts as a border of popup\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} guideBound - guide element bound data\n * @returns {PopupRenderingData} rendering position of popup and popup arrow\n */\nScheduleCreationPopup.prototype._calcRenderingData = function(layerSize, parentSize, guideBound) {\n var guideHorizontalCenter = (guideBound.left + guideBound.right) / 2;\n var x = guideHorizontalCenter - (layerSize.width / 2);\n var y = guideBound.top - layerSize.height + 3;\n var arrowDirection = 'arrow-bottom';\n var arrowLeft;\n\n if (y < 0) {\n y = guideBound.bottom + 9;\n arrowDirection = 'arrow-top';\n }\n\n if (x > 0 && (x + layerSize.width > parentSize.right)) {\n x = parentSize.right - layerSize.width;\n }\n\n if (x < 0) {\n x = 0;\n }\n\n if (guideHorizontalCenter - x !== layerSize.width / 2) {\n arrowLeft = guideHorizontalCenter - x - ARROW_WIDTH_HALF;\n }\n\n /**\n * @typedef {Object} PopupRenderingData\n * @property {number} x - left position\n * @property {number} y - top position\n * @property {string} arrow.direction - direction of popup arrow\n * @property {number} [arrow.position] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n x: x,\n y: y,\n arrow: {\n direction: arrowDirection,\n position: arrowLeft\n }\n };\n};\n\n/**\n * Set arrow's direction and position\n * @param {Object} arrow rendering data for popup arrow\n */\nScheduleCreationPopup.prototype._setArrowDirection = function(arrow) {\n var direction = arrow.direction || 'arrow-bottom';\n var arrowEl = domutil.get(config.classname('popup-arrow'));\n var borderElement = domutil.find(config.classname('.popup-arrow-border', arrowEl));\n\n if (direction !== config.classname('arrow-bottom')) {\n domutil.removeClass(arrowEl, config.classname('arrow-bottom'));\n domutil.addClass(arrowEl, config.classname(direction));\n }\n\n if (arrow.position) {\n borderElement.style.left = arrow.position + 'px';\n }\n};\n\n/**\n * Create date range picker using start date and end date\n * @param {TZDate} start - start date\n * @param {TZDate} end - end date\n * @param {boolean} isAllDay - isAllDay\n */\nScheduleCreationPopup.prototype._createDatepicker = function(start, end, isAllDay) {\n var cssPrefix = config.cssPrefix;\n\n this.rangePicker = DatePicker.createRangePicker({\n startpicker: {\n date: new TZDate(start).toDate(),\n input: '#' + cssPrefix + 'schedule-start-date',\n container: '#' + cssPrefix + 'startpicker-container'\n },\n endpicker: {\n date: new TZDate(end).toDate(),\n input: '#' + cssPrefix + 'schedule-end-date',\n container: '#' + cssPrefix + 'endpicker-container'\n },\n format: isAllDay ? 'yyyy-MM-dd' : 'yyyy-MM-dd HH:mm',\n timepicker: isAllDay ? null : {\n showMeridiem: false,\n usageStatistics: this._usageStatistics\n },\n usageStatistics: this._usageStatistics\n });\n};\n\n/**\n * Hide layer\n */\nScheduleCreationPopup.prototype.hide = function() {\n this.layer.hide();\n\n if (this.guide) {\n this.guide.clearGuideElement();\n this.guide = null;\n }\n\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nScheduleCreationPopup.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(this.tmpl(this._viewModel));\n }\n};\n\n/**\n * Set calendar list\n * @param {Array.} calendars - calendar list\n */\nScheduleCreationPopup.prototype.setCalendars = function(calendars) {\n this.calendars = calendars || [];\n};\n\nmodule.exports = ScheduleCreationPopup;\n","/**\n * @fileoverview Floating layer for showing detail schedule\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar View = require('../../view/view');\nvar FloatingLayer = require('../../common/floatingLayer');\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domevent = require('../../common/domevent'),\n domutil = require('../../common/domutil');\nvar tmpl = require('../template/popup/scheduleDetailPopup.hbs');\nvar ARROW_WIDTH_HALF = 8;\n\n/**\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container - container element\n */\nfunction ScheduleDetailPopup(container) {\n View.call(this, container);\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n this._schedule = null;\n this._calendar = null;\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(ScheduleDetailPopup, View);\n\n/**\n * Mousedown event handler for hiding popup layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nScheduleDetailPopup.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n popupLayer = domutil.closest(target, config.classname('.floating-layer'));\n\n if (popupLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * @override\n */\nScheduleDetailPopup.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nScheduleDetailPopup.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n\n this._onClickEditSchedule(target);\n\n this._onClickDeleteSchedule(target);\n};\n\n/**\n * @fires ScheduleDetailPopup#clickEditSchedule\n * @param {HTMLElement} target - event target\n */\nScheduleDetailPopup.prototype._onClickEditSchedule = function(target) {\n var className = config.classname('popup-edit');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.fire('beforeUpdateSchedule', {\n schedule: this._schedule,\n triggerEventName: 'click',\n target: this._scheduleEl\n });\n\n this.hide();\n }\n};\n\n/**\n * @fires ScheduleDetailPopup#clickEditSchedule\n * @param {HTMLElement} target - event target\n */\nScheduleDetailPopup.prototype._onClickDeleteSchedule = function(target) {\n var className = config.classname('popup-delete');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.fire('beforeDeleteSchedule', {\n schedule: this._schedule\n });\n\n this.hide();\n }\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nScheduleDetailPopup.prototype.render = function(viewModel) {\n var layer = this.layer;\n var self = this;\n\n layer.setContent(tmpl({\n schedule: viewModel.schedule,\n calendar: viewModel.calendar\n }));\n layer.show();\n this._setPopupPositionAndArrowDirection(viewModel.event);\n\n this._schedule = viewModel.schedule;\n this._calendar = viewModel.calendar;\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Set popup position and arrow direction to apear near guide element\n * @param {Event} event - creation guide element\n */\nScheduleDetailPopup.prototype._setPopupPositionAndArrowDirection = function(event) {\n var layer = domutil.find(config.classname('.popup'), this.layer.container);\n var layerSize = {\n width: layer.offsetWidth,\n height: layer.offsetHeight\n };\n var windowSize = {\n right: window.innerWidth,\n bottom: window.innerHeight\n };\n var parentRect = this.layer.parent.getBoundingClientRect();\n var parentBounds = {\n left: parentRect.left,\n top: parentRect.top\n };\n var scheduleEl = event.target || event.srcElement;\n var blockEl = domutil.closest(scheduleEl, config.classname('.time-date-schedule-block'))\n || domutil.closest(scheduleEl, config.classname('.weekday-schedule'))\n || scheduleEl;\n var scheduleBound = blockEl.getBoundingClientRect();\n var pos;\n\n this._scheduleEl = blockEl;\n\n pos = this._calcRenderingData(layerSize, windowSize, scheduleBound);\n pos.x -= parentBounds.left + 4;\n pos.y -= (parentBounds.top + ARROW_WIDTH_HALF);\n this.layer.setPosition(pos.x, pos.y);\n this._setArrowDirection(pos.arrow);\n};\n\n/**\n * Calculate rendering position usering guide elements\n * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} parentSize - width and height of the upper layer, that acts as a border of popup\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} guideBound - guide element bound data\n * @returns {PopupRenderingData} rendering position of popup and popup arrow\n */\nScheduleDetailPopup.prototype._calcRenderingData = function(layerSize, parentSize, guideBound) {\n var guideVerticalCenter = (guideBound.top + guideBound.bottom) / 2;\n var x = guideBound.right;\n var y = guideVerticalCenter;\n var arrowDirection = 'arrow-left';\n var arrowTop;\n\n if (y < 0) {\n y = y + (layerSize.height / 2) - guideVerticalCenter;\n }\n\n if (x > 0 && (x + layerSize.width > parentSize.right)) {\n x = guideBound.left - layerSize.width - ARROW_WIDTH_HALF - 3;\n arrowDirection = 'arrow-right';\n }\n\n if (x < 0) {\n x = 0;\n }\n\n if (guideBound.right > x + layerSize.width) {\n arrowDirection = 'arrow-right';\n }\n\n /**\n * @typedef {Object} PopupRenderingData\n * @property {number} x - left position\n * @property {number} y - top position\n * @property {string} arrow.direction - direction of popup arrow\n * @property {number} [arrow.position] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n x: x + ARROW_WIDTH_HALF,\n y: y - (layerSize.height / 2) + ARROW_WIDTH_HALF,\n arrow: {\n direction: arrowDirection,\n position: arrowTop\n }\n };\n};\n\n/**\n * Set arrow's direction and position\n * @param {Object} arrow rendering data for popup arrow\n */\nScheduleDetailPopup.prototype._setArrowDirection = function(arrow) {\n var direction = arrow.direction || 'arrow-left';\n var arrowEl = domutil.find(config.classname('.popup-arrow'), this.layer.container);\n var borderElement = domutil.find(config.classname('.popup-arrow-border', arrowEl));\n\n if (direction !== config.classname('arrow-left')) {\n domutil.removeClass(arrowEl, config.classname('arrow-left'));\n domutil.addClass(arrowEl, config.classname(direction));\n }\n\n if (arrow.position) {\n borderElement.style.top = arrow.position + 'px';\n }\n};\n\n/**\n * Hide layer\n */\nScheduleDetailPopup.prototype.hide = function() {\n this.layer.hide();\n\n if (this.guide) {\n this.guide.clearGuideElement();\n this.guide = null;\n }\n\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nScheduleDetailPopup.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(this.tmpl(this._viewModel));\n }\n};\n\nmodule.exports = ScheduleDetailPopup;\n","/* eslint complexity: 0 */\n/**\n * @fileoverview Helpers for handlebar templates.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Handlebars = require('handlebars-template-loader/runtime');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar config = require('../../config');\nvar mmax = Math.max;\nvar SIXTY_MINUTES = 60;\nvar helpers = {\n /**\n * Stamp supplied object\n *\n * Commonly use for rendering object's unique ID to rendered view\n * @param {object} obj - object to stamp\n * @returns {number} stamp value\n */\n 'stamp': function(obj) {\n return util.stamp(obj);\n },\n\n /**\n * Whether supplied object are equal?\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} result of operation\n */\n 'equal': function(a, b) {\n return a === b;\n },\n\n /**\n * OR\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} or\n */\n 'or': function(a, b) {\n return a || b;\n },\n\n /**\n * AND\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} or\n */\n 'and': function(a, b) {\n return a && b;\n },\n\n /**\n * Compare object or apply logical operation by customizable oper parameter\n * @param {*} a - a\n * @param {string} oper - operator ex) '==', '<'\n * @param {*} b - b\n * @param {Handlebars} options - handlebar options\n * @returns {boolean} result of operation\n */\n 'fi': function(a, oper, b, options) {\n switch (oper) {\n case '==':\n return (a == b) ? options.fn(this) : options.inverse(this); // eslint-disable-line\n case '===':\n return (a === b) ? options.fn(this) : options.inverse(this);\n case '!==':\n return (a !== b) ? options.fn(this) : options.inverse(this);\n case '<':\n return (a < b) ? options.fn(this) : options.inverse(this);\n case '||':\n return (a || b) ? options.fn(this) : options.inverse(this);\n default:\n throw new Error('Not match operation');\n }\n },\n\n /**\n * Get hhmm formatted time str\n * @param {Date} date - date object\n * @returns {string} formatted value\n */\n 'hhmm': function(date) {\n return datetime.format(date, 'HH:mm');\n },\n\n /**\n * Get `width` stylesheet string\n * @param {number} width - width percentage\n * @returns {string} css style part\n */\n 'common-width': function(width) {\n return getElSize(width, '%', 'width');\n },\n\n /**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\n 'grid-left': function(viewModel, grids) {\n return getElLeft(viewModel, grids);\n },\n\n /**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\n 'grid-width': function(viewModel, grids) {\n return getElWidth(viewModel, grids);\n },\n\n /**\n * Use in time.hbs\n * @param {ScheduleViewModel} viewModel viewModel\n * @returns {string} element size css class\n */\n 'time-scheduleBlock': function(viewModel) {\n var top = getElSize(viewModel.top, 'px', 'top'),\n left = getElSize(viewModel.left, '%', 'left'),\n width = getElSize(viewModel.width, '%', 'width'),\n height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'month-scheduleBlock': function(viewModel, grids, blockHeight, paddingTop) {\n var top = getElSize(((viewModel.top - 1) * blockHeight) + paddingTop, 'px', 'top');\n var left = getElSize(grids[viewModel.left] ? grids[viewModel.left].left : 0, '%', 'left');\n var width = getElSize(getElWidth(viewModel, grids), '%', 'width');\n var height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'holiday': function(day) {\n var cssClass = '';\n\n if (day === 0) {\n cssClass = config.classname('holiday-sun');\n }\n\n if (day === 6) {\n cssClass = config.classname('holiday-sat');\n }\n\n return cssClass;\n },\n\n /**\n * Add supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'add': function(a, b) {\n return a + b;\n },\n\n /**\n * Multiply supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'multiply': function(a, b) {\n return a * b;\n },\n\n /**\n * Divide supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'divide': function(a, b) {\n return a / b;\n },\n\n /**\n * Subtract supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'subtract': function(a, b) {\n return a - b;\n },\n\n 'getRight': function(a, b) {\n return mmax(0, 100 - (a + b));\n },\n\n /**\n * Get css prefix in global configuration\n * @returns {string} css prefix\n */\n 'CSS_PREFIX': function() {\n return config.cssPrefix;\n },\n\n 'reverse': function(array) {\n return array.slice().reverse();\n },\n\n /**********\n * Default schedule template\n **********/\n\n 'milestone-tmpl': function(model) {\n var icon = config.classname('icon');\n var iconName = config.classname('ic-milestone');\n\n return '' + common.stripTags(model.title) + '';\n },\n\n 'milestoneTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return 'Milestone';\n },\n\n 'task-tmpl': function(model) {\n return '#' + model.title;\n },\n\n 'taskTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return 'Task';\n },\n\n 'alldayTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return 'All Day';\n },\n\n 'allday-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'time-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'goingDuration-tmpl': function(model) {\n var goingDuration = model.goingDuration;\n var hour = parseInt(goingDuration / SIXTY_MINUTES, 10);\n var minutes = goingDuration % SIXTY_MINUTES;\n\n return 'GoingTime ' + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n },\n\n 'comingDuration-tmpl': function(model) {\n var goingDuration = model.goingDuration;\n var hour = parseInt(goingDuration / SIXTY_MINUTES, 10);\n var minutes = goingDuration % SIXTY_MINUTES;\n\n return 'ComingTime ' + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n },\n\n 'monthMoreTitleDate-tmpl': function(date, dayname) {\n var classDay = config.classname('month-more-title-day');\n var classDayLabel = config.classname('month-more-title-day-label');\n var day = util.pick(date.split('.'), 2);\n\n return '' + day + ' ' + dayname + '';\n },\n\n 'monthMoreClose-tmpl': function() {\n return '';\n },\n\n 'monthGridHeader-tmpl': function(model) {\n var date = parseInt(model.date.split('-')[2], 10);\n var classNames = [];\n\n classNames.push(config.classname('weekday-grid-date'));\n if (model.isToday) {\n classNames.push(config.classname('weekday-grid-date-decorator'));\n }\n\n return '' + date + '';\n },\n\n 'monthGridHeaderExceed-tmpl': function(hiddenSchedules) {\n var className = config.classname('weekday-grid-more-schedules');\n\n return '' + hiddenSchedules + ' more';\n },\n\n 'monthGridFooter-tmpl': function() {\n return '';\n },\n\n /* eslint no-unused-vars: 0 */\n 'monthGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '';\n },\n\n 'monthDayname-tmpl': function(model) {\n return model.label;\n },\n\n 'weekDayname-tmpl': function(model) {\n var classDate = config.classname('dayname-date');\n var className = config.classname('dayname-name');\n\n return '' + model.date + '  ' + model.dayName + '';\n },\n\n 'weekGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '+' + hiddenSchedules;\n },\n\n 'dayGridTitle-tmpl': function(viewName) {\n var tmpl = Handlebars.helpers[viewName + 'Title-tmpl'];\n if (tmpl) {\n return tmpl(viewName);\n }\n\n return viewName;\n },\n\n 'schedule-tmpl': function(model) {\n var tmpl = Handlebars.helpers[model.category + '-tmpl'];\n if (tmpl) {\n return tmpl(model);\n }\n\n return '';\n },\n\n 'collapseBtnTitle-tmpl': function() {\n var iconName = config.classname('icon');\n var closeIconName = config.classname('ic-arrow-solid-top');\n\n return '';\n },\n\n 'timezoneDisplayLabel-tmpl': function(timezoneOffset, displayLabel) {\n var gmt, hour, minutes;\n\n if (util.isUndefined(displayLabel)) {\n gmt = timezoneOffset < 0 ? '-' : '+';\n hour = Math.abs(parseInt(timezoneOffset / SIXTY_MINUTES, 10));\n minutes = Math.abs(timezoneOffset % SIXTY_MINUTES);\n displayLabel = gmt + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n }\n\n return displayLabel;\n },\n\n 'timegridDisplayPrimayTime-tmpl': function(time) {\n /* TODO: 삭제 필요 (will be deprecated) */\n return Handlebars.helpers['timegridDisplayPrimaryTime-tmpl'](time);\n },\n\n 'timegridDisplayPrimaryTime-tmpl': function(time) {\n var hour = time.hour;\n var meridiem = hour >= 12 ? 'pm' : 'am';\n\n if (hour > 12) {\n hour = hour - 12;\n }\n\n return hour + ' ' + meridiem;\n },\n\n 'timegridDisplayTime-tmpl': function(time) {\n return datetime.leadingZero(time.hour, 2) + ':' + datetime.leadingZero(time.minutes, 2);\n },\n\n 'timegridCurrentTime-tmpl': function(timezone) {\n var templates = [];\n\n if (timezone.dateDifference) {\n templates.push('[' + timezone.dateDifferenceSign + timezone.dateDifference + ']
    ');\n }\n\n templates.push(datetime.format(timezone.hourmarker, 'HH:mm'));\n\n return templates.join('');\n },\n\n 'popupIsAllDay-tmpl': function() {\n return 'All day';\n },\n\n 'popupStateFree-tmpl': function() {\n return 'Free';\n },\n\n 'popupStateBusy-tmpl': function() {\n return 'Busy';\n },\n\n 'titlePlaceholder-tmpl': function() {\n return 'Subject';\n },\n\n 'locationPlaceholder-tmpl': function() {\n return 'Location';\n },\n\n 'startDatePlaceholder-tmpl': function() {\n return 'Start date';\n },\n\n 'endDatePlaceholder-tmpl': function() {\n return 'End date';\n },\n 'popupSave-tmpl': function() {\n return 'Save';\n },\n 'popupUpdate-tmpl': function() {\n return 'Update';\n },\n 'popupDetailDate-tmpl': function(isAllDay, start, end) {\n var isSameDate = datetime.isSameDate(start, end);\n var endFormat = (isSameDate ? '' : 'YYYY.MM.DD ') + 'hh:mm tt';\n\n if (isAllDay) {\n return datetime.format(start, 'YYYY.MM.DD') + (isSameDate ? '' : ' - ' + datetime.format(end, 'YYYY.MM.DD'));\n }\n\n return (datetime.format(start, 'YYYY.MM.DD hh:mm tt') + ' - ' + datetime.format(end, endFormat));\n },\n 'popupDetailLocation-tmpl': function(schedule) {\n return schedule.location;\n },\n 'popupDetailUser-tmpl': function(schedule) {\n return (schedule.attendees || []).join(', ');\n },\n 'popupDetailState-tmpl': function(schedule) {\n return schedule.state || 'Busy';\n },\n 'popupDetailRepeat-tmpl': function(schedule) {\n return schedule.recurrenceRule;\n },\n 'popupDetailBody-tmpl': function(schedule) {\n return schedule.body;\n },\n 'popupEdit-tmpl': function() {\n return 'Edit';\n },\n 'popupDelete-tmpl': function() {\n return 'Delete';\n }\n};\n\n/**\n * Get CSS syntax for element size\n * @param {number} value - size value to apply element\n * @param {string} postfix - postfix string ex) px, em, %\n * @param {string} prefix - property name ex) width, height\n * @returns {string} CSS syntax\n */\nfunction getElSize(value, postfix, prefix) {\n prefix = prefix || '';\n if (util.isNumber(value)) {\n return prefix + ':' + value + postfix;\n }\n\n return prefix + ':auto';\n}\n\n/**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\nfunction getElLeft(viewModel, grids) {\n return grids[viewModel.left] ? grids[viewModel.left].left : 0;\n}\n\n/**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getElWidth(viewModel, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n var left;\n for (; i < viewModel.width; i += 1) {\n left = (viewModel.left + i) % length;\n left += parseInt((viewModel.left + i) / length, 10);\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nHandlebars.registerHelper(helpers);\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \\n \"\n + ((stack1 = (lookupProperty(helpers,\"monthDayname-tmpl\")||(depth0 && lookupProperty(depth0,\"monthDayname-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"monthDayname-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":12},\"end\":{\"line\":16,\"column\":40}}})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderLeft\")), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, alias3=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"daynames\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":0},\"end\":{\"line\":19,\"column\":9}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),\"||\",(depth0 != null ? lookupProperty(depth0,\"hasMultiDates\") : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":8},\"end\":{\"line\":65,\"column\":15}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"allday-tmpl\")||(depth0 && lookupProperty(depth0,\"allday-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":20},\"end\":{\"line\":20,\"column\":43}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"category\") : stack1),\"===\",\"time\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.program(17, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":12},\"end\":{\"line\":64,\"column\":19}}})) != null ? stack1 : \"\");\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \\n \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":42,\"column\":53},\"end\":{\"line\":42,\"column\":74}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \"\\n \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n \";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"schedule-tmpl\")||(depth0 && lookupProperty(depth0,\"schedule-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":62,\"column\":65},\"end\":{\"line\":62,\"column\":90}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":115},\"end\":{\"line\":47,\"column\":129}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginLeft\")), depth0))\n + \";\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginRight\")), depth0))\n + \";\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"monthMoreTitleDate-tmpl\")||(depth0 && lookupProperty(depth0,\"monthMoreTitleDate-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"date\") : depth0),(depth0 != null ? lookupProperty(depth0,\"dayname\") : depth0),{\"name\":\"monthMoreTitleDate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":58},\"end\":{\"line\":4,\"column\":100}}})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedules\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":8},\"end\":{\"line\":66,\"column\":17}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"monthGridHeader-tmpl\")||(depth0 && lookupProperty(depth0,\"monthGridHeader-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"monthGridHeader-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":44},\"end\":{\"line\":14,\"column\":75}}})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":12},\"end\":{\"line\":17,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"monthGridFooter-tmpl\")||(depth0 && lookupProperty(depth0,\"monthGridFooter-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"monthGridFooter-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":44},\"end\":{\"line\":20,\"column\":75}}})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(12, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":12},\"end\":{\"line\":23,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":84},\"end\":{\"line\":7,\"column\":98}}}) : helper)))\n + \"near-month-day\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":135},\"end\":{\"line\":7,\"column\":149}}}) : helper)))\n + \"today\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":182},\"end\":{\"line\":7,\"column\":196}}}) : helper)))\n + \"extra-date\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-right:\"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderLeft\")), depth0))\n + \";\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"monthGridHeaderExceed-tmpl\")||(depth0 && lookupProperty(depth0,\"monthGridHeaderExceed-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"monthGridHeaderExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":87},\"end\":{\"line\":16,\"column\":135}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"monthGridFooterExceed-tmpl\")||(depth0 && lookupProperty(depth0,\"monthGridFooterExceed-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"monthGridFooterExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":87},\"end\":{\"line\":22,\"column\":135}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"dates\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":0},\"end\":{\"line\":26,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":80,\"column\":11}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":0},\"end\":{\"line\":79,\"column\":11}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":0},\"end\":{\"line\":78,\"column\":9}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n\"\n + ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"top\") : depth0),\"<\",((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"renderLimitIdx\")),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":4},\"end\":{\"line\":77,\"column\":13}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||alias2).call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),\"||\",(depth0 != null ? lookupProperty(depth0,\"hasMultiDates\") : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.program(23, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":8},\"end\":{\"line\":75,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":31},\"end\":{\"line\":9,\"column\":45}}}) : helper)))\n + \"weekday-exceed-left\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":32},\"end\":{\"line\":10,\"column\":46}}}) : helper)))\n + \"weekday-exceed-right\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"allday-tmpl\")||(depth0 && lookupProperty(depth0,\"allday-tmpl\"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":29,\"column\":47},\"end\":{\"line\":29,\"column\":70}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias3,(lookupProperty(helpers,\"or\")||(depth0 && lookupProperty(depth0,\"or\"))||alias4).call(alias3,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"isReadOnly\")),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isReadOnly\") : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":22},\"end\":{\"line\":30,\"column\":60}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(21, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":12},\"end\":{\"line\":30,\"column\":194}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":146},\"end\":{\"line\":14,\"column\":160}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginLeft\")), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginRight\")), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"21\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \";\n},\"23\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"category\") : stack1),\"===\",\"time\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.program(33, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":33,\"column\":12},\"end\":{\"line\":74,\"column\":19}}})) != null ? stack1 : \"\");\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \\n \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":54,\"column\":53},\"end\":{\"line\":54,\"column\":74}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"25\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \"\\n\";\n},\"29\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"\\n\";\n},\"31\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n\";\n},\"33\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"schedule-tmpl\")||(depth0 && lookupProperty(depth0,\"schedule-tmpl\"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":72,\"column\":65},\"end\":{\"line\":72,\"column\":90}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"34\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginLeft\")), depth0))\n + \";\\n\";\n},\"36\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginRight\")), depth0))\n + \";\\n\";\n},\"38\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"40\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"matrices\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":81,\"column\":11}}})) != null ? stack1 : \"\");\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":150},\"end\":{\"line\":3,\"column\":164}}}) : helper)))\n + \"hide\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
  • \\n \\n \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"name\") || (depth0 != null ? lookupProperty(depth0,\"name\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"name\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":60},\"end\":{\"line\":14,\"column\":68}}}) : helper)))\n + \"\\n
  • \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":135},\"end\":{\"line\":24,\"column\":149}}}) : helper)))\n + \"public\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n return \" checked\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"state\") || (depth0 != null ? lookupProperty(depth0,\"state\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"state\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":55,\"column\":99},\"end\":{\"line\":55,\"column\":108}}}) : helper)));\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupStateBusy-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupStateBusy-tmpl\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupStateBusy-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":55,\"column\":116},\"end\":{\"line\":55,\"column\":141}}}) : helper))) != null ? stack1 : \"\");\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupUpdate-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupUpdate-tmpl\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupUpdate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":70,\"column\":163},\"end\":{\"line\":70,\"column\":185}}}) : helper))) != null ? stack1 : \"\");\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupSave-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupSave-tmpl\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupSave-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":70,\"column\":193},\"end\":{\"line\":70,\"column\":213}}}) : helper))) != null ? stack1 : \"\");\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n
    \\n \\n
      \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"calendars\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":16},\"end\":{\"line\":16,\"column\":25}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n \\n \\n
    \\n \\n
    \\n
    \\n
    \\n \\n \\n
    \\n
    \\n
    \\n
    \\n \\n \\n
    \\n
    \\n -\\n
    \\n \\n \\n
    \\n
    \\n
    \\n \\n \\n \"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupIsAllDay-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupIsAllDay-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupIsAllDay-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":49,\"column\":52},\"end\":{\"line\":49,\"column\":76}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n \\n
      \\n
    • \\n \\n \"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupStateBusy-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupStateBusy-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupStateBusy-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":61,\"column\":52},\"end\":{\"line\":61,\"column\":77}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    • \\n
    • \\n \\n \"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupStateFree-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupStateFree-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupStateFree-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":65,\"column\":52},\"end\":{\"line\":65,\"column\":77}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    • \\n
    \\n
    \\n \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailLocation-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailLocation-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailLocation-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":182},\"end\":{\"line\":11,\"column\":221}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailRepeat-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailRepeat-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailRepeat-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":186},\"end\":{\"line\":12,\"column\":223}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailUser-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailUser-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailUser-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":218},\"end\":{\"line\":13,\"column\":253}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailState-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailState-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailState-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":176},\"end\":{\"line\":14,\"column\":212}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"calendar\") : depth0)) != null ? lookupProperty(stack1,\"name\") : stack1), depth0))\n + \"
    \\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailBody-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailBody-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailBody-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":151},\"end\":{\"line\":18,\"column\":186}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n return \"\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \\n
    \\n \\n
    \\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n
    \\n
    \\n \\n \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"title\") : stack1), depth0))\n + \"\\n
    \\n
    \"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailDate-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailDate-tmpl\"))||alias2).call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"start\") : stack1),((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"end\") : stack1),{\"name\":\"popupDetailDate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":73},\"end\":{\"line\":8,\"column\":145}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"location\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":8},\"end\":{\"line\":11,\"column\":241}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"recurrenceRule\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":8},\"end\":{\"line\":12,\"column\":243}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"attendees\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":8},\"end\":{\"line\":13,\"column\":273}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"state\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":8},\"end\":{\"line\":14,\"column\":232}}})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"calendar\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(9, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":8},\"end\":{\"line\":17,\"column\":15}}})) != null ? stack1 : \"\")\n + \" \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"body\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":8},\"end\":{\"line\":18,\"column\":206}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"isReadOnly\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.program(15, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":4},\"end\":{\"line\":27,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRight\")), depth0))\n + \";\\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"days\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":17,\"column\":8},\"end\":{\"line\":27,\"column\":19}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"collapsed\")),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.program(9, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":12},\"end\":{\"line\":26,\"column\":19}}})) != null ? stack1 : \"\");\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":19,\"column\":16},\"end\":{\"line\":21,\"column\":23}}})) != null ? stack1 : \"\");\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"weekGridFooterExceed-tmpl\")||(depth0 && lookupProperty(depth0,\"weekGridFooterExceed-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"weekGridFooterExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":145},\"end\":{\"line\":20,\"column\":192}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && lookupProperty(data,\"key\")),\"===\",((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"collapseBtnIndex\")),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":16},\"end\":{\"line\":25,\"column\":23}}})) != null ? stack1 : \"\");\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"collapseBtnTitle-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"collapseBtnTitle-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"collapseBtnTitle-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":121},\"end\":{\"line\":24,\"column\":148}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"dayGridTitle-tmpl\")||(depth0 && lookupProperty(depth0,\"dayGridTitle-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"viewName\") : depth0),{\"name\":\"dayGridTitle-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":2,\"column\":36}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"days\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":8},\"end\":{\"line\":14,\"column\":19}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"showExpandableButton\")),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":8},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":4},\"end\":{\"line\":27,\"column\":15}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":4},\"end\":{\"line\":26,\"column\":15}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":4},\"end\":{\"line\":25,\"column\":13}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=\"function\", alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n
    \\n
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"schedule-tmpl\")||(depth0 && lookupProperty(depth0,\"schedule-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":87},\"end\":{\"line\":21,\"column\":112}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(lookupProperty(helpers,\"or\")||(depth0 && lookupProperty(depth0,\"or\"))||alias2).call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"isReadOnly\")),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isReadOnly\") : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":22},\"end\":{\"line\":22,\"column\":60}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":12},\"end\":{\"line\":22,\"column\":193}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":31},\"end\":{\"line\":8,\"column\":45}}}) : helper)))\n + \"weekday-exceed-left\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":32},\"end\":{\"line\":9,\"column\":46}}}) : helper)))\n + \"weekday-exceed-right\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":146},\"end\":{\"line\":13,\"column\":160}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"matrices\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \\n \"\n + ((stack1 = (lookupProperty(helpers,\"weekDayname-tmpl\")||(depth0 && lookupProperty(depth0,\"weekDayname-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"weekDayname-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":8},\"end\":{\"line\":7,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":49},\"end\":{\"line\":3,\"column\":63}}}) : helper)))\n + \"today\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"dayNames\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":10,\"column\":9}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":4},\"end\":{\"line\":60,\"column\":13}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":59,\"column\":17}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":8},\"end\":{\"line\":58,\"column\":17}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hasGoingDuration\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(19, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":29,\"column\":12},\"end\":{\"line\":37,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":45,\"column\":20},\"end\":{\"line\":45,\"column\":41}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hasComingDuration\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":12},\"end\":{\"line\":54,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(lookupProperty(helpers,\"or\")||(depth0 && lookupProperty(depth0,\"or\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"croppedEnd\") : depth0),((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"isReadOnly\")),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isReadOnly\") : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":22},\"end\":{\"line\":56,\"column\":71}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(29, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":12},\"end\":{\"line\":56,\"column\":202}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":83},\"end\":{\"line\":6,\"column\":97}}}) : helper)))\n + \"time-date-schedule-block-pending\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" padding-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"paddingLeft\")), depth0))\n + \";\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":147},\"end\":{\"line\":12,\"column\":161}}}) : helper)))\n + \"time-schedule-focused \";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-bottom-left-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n border-bottom-right-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-top-left-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n border-top-right-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"goingDuration-tmpl\")||(depth0 && lookupProperty(depth0,\"goingDuration-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"goingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":36,\"column\":66},\"end\":{\"line\":36,\"column\":96}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"border-bottom: 1px dashed \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"travelBorderColor\") || (depth0 != null ? lookupProperty(depth0,\"travelBorderColor\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"travelBorderColor\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":44,\"column\":67},\"end\":{\"line\":44,\"column\":88}}}) : helper)))\n + \";\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"comingDuration-tmpl\")||(depth0 && lookupProperty(depth0,\"comingDuration-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"comingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":53,\"column\":26},\"end\":{\"line\":53,\"column\":57}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n \";\n},\"29\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
     
    \";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"matrices\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":61,\"column\":9}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isPrimary\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.program(10, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":26,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none;\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"timeSlots\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":12},\"end\":{\"line\":9,\"column\":23}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"showHourMarker\")),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":12},\"end\":{\"line\":14,\"column\":19}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"timegridDisplayPrimayTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridDisplayPrimayTime-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"timegridDisplayPrimayTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":68},\"end\":{\"line\":7,\"column\":109}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n return \"display:none\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \"\n + ((stack1 = (lookupProperty(helpers,\"timegridCurrentTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridCurrentTime-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":223},\"end\":{\"line\":12,\"column\":258}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"timeSlots\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":12},\"end\":{\"line\":20,\"column\":23}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"showHourMarker\")),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":12},\"end\":{\"line\":25,\"column\":19}}})) != null ? stack1 : \"\");\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"timegridDisplayTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridDisplayTime-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"timegridDisplayTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":68},\"end\":{\"line\":18,\"column\":103}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \"\n + ((stack1 = (lookupProperty(helpers,\"timegridCurrentTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridCurrentTime-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":171},\"end\":{\"line\":23,\"column\":206}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n
    \\n\";\n},\"16\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-bottom: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderBottom\")), depth0))\n + \";\\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n
    today
    \\n
    \\n
    \\n
    \\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"timezones\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hoursLabels\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":32,\"column\":8},\"end\":{\"line\":40,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"showHourMarker\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(18, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":46,\"column\":4},\"end\":{\"line\":53,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"timegridCurrentTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridCurrentTime-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":1,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"goingDuration-tmpl\")||(depth0 && lookupProperty(depth0,\"goingDuration-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"goingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":230},\"end\":{\"line\":4,\"column\":260}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"comingDuration-tmpl\")||(depth0 && lookupProperty(depth0,\"comingDuration-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"comingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":228},\"end\":{\"line\":10,\"column\":259}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
     
    \";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hasGoingDuration\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":8},\"end\":{\"line\":5,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":16},\"end\":{\"line\":7,\"column\":37}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hasComingDuration\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":8},\"end\":{\"line\":11,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"croppedEnd\") : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":4},\"end\":{\"line\":13,\"column\":104}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(lookupProperty(helpers,\"and\")||(depth0 && lookupProperty(depth0,\"and\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"isPrimary\") : depth0),((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"showTimezoneCollapseButton\")),{\"name\":\"and\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":14},\"end\":{\"line\":4,\"column\":62}}}),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":10,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"timezoneDisplayLabel-tmpl\")||(depth0 && lookupProperty(depth0,\"timezoneDisplayLabel-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"timezoneOffset\") : depth0),(depth0 != null ? lookupProperty(depth0,\"displayLabel\") : depth0),{\"name\":\"timezoneDisplayLabel-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":59},\"end\":{\"line\":11,\"column\":118}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none;\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \\n \\n \\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":84},\"end\":{\"line\":7,\"column\":98}}}) : helper)))\n + \"ic-arrow-right\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":120},\"end\":{\"line\":7,\"column\":134}}}) : helper)))\n + \"ic-arrow-left\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(lookupProperty(helpers,\"reverse\")||(depth0 && lookupProperty(depth0,\"reverse\"))||container.hooks.helperMissing).call(alias1,(depth0 != null ? lookupProperty(depth0,\"timezones\") : depth0),{\"name\":\"reverse\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":8},\"end\":{\"line\":1,\"column\":27}}}),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":14,\"column\":11}}})) != null ? stack1 : \"\");\n},\"useData\":true});","/**\n * @fileoverview The base class of views.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\n\n/**\n * Base class of views.\n *\n * All views create own container element inside supplied container element.\n * @constructor\n * @param {HTMLElement} container Default container element for view.\n * you can use this element for this.container syntax.\n */\nfunction View(container) {\n var id = util.stamp(this);\n\n if (util.isUndefined(container)) {\n container = domutil.appendHTMLElement('div');\n }\n\n domutil.addClass(container, this.cssprefix(id));\n\n /**\n * unique id\n * @type {number}\n */\n this.id = id;\n\n /**\n * base element of view.\n * @type {HTMLDIVElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * child views.\n * @type {Collection}\n */\n this.children = new Collection(function(view) {\n return util.stamp(view);\n });\n /* eslint-enable*/\n\n /**\n * parent view instance.\n * @type {View}\n */\n this.parent = null;\n\n /**\n * state of view\n */\n this.state = {};\n}\n\n/**\n * CSS classname prefix\n * @type {string}\n */\nView.prototype.cssPrefix = 'tui-view-';\n\n/**\n * Add child views.\n * @param {View} view The view instance to add.\n * @param {function} [fn] Function for invoke before add. parent view class is supplied first arguments.\n */\nView.prototype.addChild = function(view, fn) {\n if (fn) {\n fn.call(view, this);\n }\n // add parent view\n view.parent = this;\n\n this.children.add(view);\n};\n\n/**\n * Remove added child view.\n * @param {(number|View)} id View id or instance itself to remove.\n * @param {function} [fn] Function for invoke before remove. parent view class is supplied first arguments.\n */\nView.prototype.removeChild = function(id, fn) {\n var view = util.isNumber(id) ? this.children.items[id] : id;\n\n id = util.stamp(view);\n\n if (fn) {\n fn.call(view, this);\n }\n\n this.children.remove(id);\n};\n\n/**\n * Render view recursively.\n */\nView.prototype.render = function() {\n this.children.each(function(childView) {\n childView.render();\n });\n};\n\n/**\n * Invoke function recursively.\n * @param {function} fn - function to invoke child view recursively\n * @param {boolean} [skipThis=false] - set true then skip invoke with this(root) view.\n */\nView.prototype.recursive = function(fn, skipThis) {\n if (!util.isFunction(fn)) {\n return;\n }\n\n if (!skipThis) {\n fn(this);\n }\n\n this.children.each(function(childView) {\n childView.recursive(fn);\n });\n};\n\n/**\n * Resize view recursively to parent.\n */\nView.prototype.resize = function() {\n var args = Array.prototype.slice.call(arguments),\n parent = this.parent;\n\n while (parent) {\n if (util.isFunction(parent._onResize)) {\n parent._onResize.apply(parent, args);\n }\n\n parent = parent.parent;\n }\n};\n\n/**\n * Invoking method before destroying.\n */\nView.prototype._beforeDestroy = function() {};\n\n/**\n * Clear properties\n */\nView.prototype._destroy = function() {\n this._beforeDestroy();\n this.children.clear();\n this.container.innerHTML = '';\n\n this.id = this.parent = this.children = this.container = null;\n};\n\n/*eslint-disable*/\n/**\n * Destroy child view recursively.\n */\nView.prototype.destroy = function(isChildView) {\n this.children.each(function(childView) {\n childView.destroy(true);\n childView._destroy();\n });\n\n if (isChildView) {\n return;\n }\n\n this._destroy();\n};\n/* eslint-enable*/\n\n/**\n * Calculate view's container element bound.\n * @returns {object} The bound of container element.\n */\nView.prototype.getViewBound = function() {\n var container = this.container,\n position = domutil.getPosition(container),\n size = domutil.getSize(container);\n\n return {\n x: position[0],\n y: position[1],\n width: size[0],\n height: size[1]\n };\n};\n\n/**\n * Return view default CSS prefix\n * @param {string} [className] - if supplied then return prefix added class name\n * @returns {string} CSS prefix value\n */\nView.prototype.cssprefix = function(className) {\n return this.cssPrefix + (className || '');\n};\n\n/**\n * set state\n * @param {object} state - state\n */\nView.prototype.setState = function(state) {\n util.extend(this.state, state);\n};\n\nutil.CustomEvents.mixin(View);\n\nmodule.exports = View;\n","/**\n * @fileoverview DayGrid in weekly view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n TZDate = require('../../common/timezone').Date,\n View = require('../../view/view'),\n DayGridSchedule = require('./dayGridSchedule'),\n baseTmpl = require('../template/week/dayGrid.hbs'),\n reqAnimFrame = require('../../common/reqAnimFrame');\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {string} name - view name\n * @param {object} options - options for DayGridSchedule view\n * @param {number} [options.heightPercent] - height percent of view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n * @param {Theme} theme - theme instance\n */\nfunction DayGrid(name, options, container, theme) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('daygrid-layout')\n );\n View.call(this, container);\n\n name = name || 'daygrid';\n\n this.options = util.extend({\n viewName: name,\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n renderStartDate: '',\n renderEndDate: '',\n containerBottomGutter: 18,\n scheduleHeight: parseInt(theme.week.dayGridSchedule.height, 10),\n scheduleGutter: parseInt(theme.week.dayGridSchedule.marginTop, 10),\n scheduleContainerTop: 1,\n timezones: options.timezones,\n isReadOnly: options.isReadOnly,\n getViewModelFunc: function(viewModel) {\n return viewModel.schedulesInDateRange[name];\n },\n setViewModelFunc: function(viewModel, matrices) {\n viewModel.schedulesInDateRange[name] = matrices;\n }\n }, options.week);\n\n this.handler = {};\n this.vPanel = null;\n\n this.state.collapsed = true;\n}\n\nutil.inherit(DayGrid, View);\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGrid.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options,\n daynames = opt.daynames,\n range = viewModel.range,\n grids = viewModel.grids,\n matrices = opt.getViewModelFunc(viewModel),\n exceedDate = {},\n panel = getPanel(opt.panels, opt.viewName),\n panelHeight = this.getViewBound().height,\n collapsed = this.state.collapsed,\n heightForcedSet = this.vPanel ? this.vPanel.getHeightForcedSet() : false,\n timezonesCollapsed = viewModel.state.timezonesCollapsed,\n styles = this._getStyles(viewModel.theme, timezonesCollapsed);\n\n var baseViewModel, visibleScheduleCount;\n var now = new TZDate().toLocalTime();\n\n if (panel.showExpandableButton) {\n if (!heightForcedSet) {\n if (collapsed) {\n panelHeight = mmax(panelHeight, panel.maxHeight);\n } else {\n panelHeight = mmin(panelHeight, panel.maxExpandableHeight);\n }\n }\n\n visibleScheduleCount = Math.floor(panelHeight / (opt.scheduleHeight + opt.scheduleGutter));\n if (collapsed) {\n exceedDate = this.parent.controller.getExceedDate(visibleScheduleCount,\n matrices,\n viewModel.range\n );\n matrices = this.parent.controller.excludeExceedSchedules(matrices, visibleScheduleCount);\n opt.setViewModelFunc(viewModel, matrices);\n }\n }\n\n baseViewModel = {\n viewName: opt.viewName,\n range: range,\n grids: grids,\n days: util.map(viewModel.range, function(d, index) {\n var day = d.getDay();\n var ymd = datetime.format(d, 'YYYYMMDD');\n var isToday = datetime.isSameDate(now, d);\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: isToday,\n date: d.getDate(),\n renderDate: datetime.format(d, 'YYYY-MM-DD'),\n hiddenSchedules: exceedDate[ymd] || 0,\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0,\n backgroundColor: viewModel.range.length > 1 ?\n getWeekBackgroundColor(day, isToday, styles) : styles.backgroundColor\n };\n }),\n exceedDate: exceedDate,\n showExpandableButton: panel.showExpandableButton,\n collapsed: collapsed,\n collapseBtnIndex: this.state.clickedExpandBtnIndex,\n styles: styles\n };\n\n return baseViewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGrid.prototype.render = function(viewModel) {\n var opt = this.options,\n container = this.container,\n baseViewModel = this.getBaseViewModel(viewModel),\n scheduleContainerTop = this.options.scheduleContainerTop;\n var dayGridSchedule;\n\n container.innerHTML = baseTmpl(baseViewModel);\n\n this.children.clear();\n\n dayGridSchedule = new DayGridSchedule(\n opt,\n domutil.find(config.classname('.container'), container)\n );\n this.addChild(dayGridSchedule);\n\n dayGridSchedule.on('afterRender', function(weekdayViewModel) {\n baseViewModel.height = weekdayViewModel.minHeight + scheduleContainerTop;\n });\n\n this.children.each(function(childView) {\n childView.render(viewModel);\n }, this);\n\n this.fire('afterRender', baseViewModel);\n};\n\nDayGrid.prototype._beforeDestroy = function() {\n};\n\nDayGrid.prototype.addHandler = function(type, handler, vPanel) {\n var self = this;\n\n this.handler[type] = handler;\n this.vPanel = vPanel;\n\n if (type === 'click') {\n handler.on('expand', function() {\n self.setState({\n collapsed: false\n });\n }, this);\n handler.on('collapse', function() {\n self.setState({\n collapsed: true\n });\n }, this);\n }\n};\n\nDayGrid.prototype._expand = function() {\n reqAnimFrame.requestAnimFrame(function() {\n var vPanel = this.vPanel;\n var opt = this.options;\n var panel = getPanel(opt.panels, opt.viewName);\n\n vPanel.setMaxHeight(panel.maxExpandableHeight);\n vPanel.setHeightForcedSet(false);\n vPanel.setHeight(null, panel.maxExpandableHeight);\n\n if (this.parent) {\n this.parent.render();\n }\n }, this);\n};\n\nDayGrid.prototype._collapse = function() {\n reqAnimFrame.requestAnimFrame(function() {\n var vPanel = this.vPanel;\n var opt = this.options;\n var panel = getPanel(opt.panels, opt.viewName);\n\n vPanel.setMaxHeight(panel.maxHeight);\n vPanel.setHeightForcedSet(false);\n vPanel.setHeight(null, panel.minHeight);\n\n if (this.parent) {\n this.parent.render();\n }\n }, this);\n};\n\n/**\n * set state\n * @param {object} state - state\n */\nDayGrid.prototype.setState = function(state) {\n var collapsed = this.state.collapsed;\n View.prototype.setState.call(this, state);\n\n if (this.state.collapsed === collapsed) {\n return;\n }\n\n if (this.state.collapsed) {\n this._collapse();\n } else {\n this._expand();\n }\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nDayGrid.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderRight = theme.week.daygrid.borderRight || theme.common.border;\n styles.todayBackgroundColor = theme.week.today.backgroundColor;\n styles.weekendBackgroundColor = theme.week.weekend.backgroundColor;\n styles.backgroundColor = theme.week.daygrid.backgroundColor;\n styles.leftWidth = theme.week.daygridLeft.width;\n styles.leftBackgroundColor = theme.week.daygridLeft.backgroundColor;\n styles.leftPaddingRight = theme.week.daygridLeft.paddingRight;\n styles.leftBorderRight = theme.week.daygridLeft.borderRight;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.leftWidth);\n styles.leftWidth = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\n/**\n * Get a background color based on day.\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {object} styles - style object\n * @returns {string} backgroundColor\n */\nfunction getWeekBackgroundColor(day, isToday, styles) {\n var backgroundColor = '';\n\n if (day === 0 || day === 6) {\n backgroundColor = styles.weekendBackgroundColor;\n } else if (isToday) {\n backgroundColor = styles.todayBackgroundColor;\n } else {\n backgroundColor = styles.backgroundColor;\n }\n\n return backgroundColor;\n}\n\n/**\n * get a panel infomation\n * @param {Array.} panels - panel infomations\n * @param {string} name - panel name\n * @returns {object} panel information\n */\nfunction getPanel(panels, name) {\n var found;\n\n util.forEach(panels, function(panel) {\n if (panel.name === name) {\n found = panel;\n }\n });\n\n return found;\n}\n\nmodule.exports = DayGrid;\n","/**\n * @fileoverview Weekday view for week\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Weekday = require('../weekday'),\n tmpl = require('../template/week/dayGridSchedule.hbs');\nvar mmax = Math.max;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for DayGridSchedule view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction DayGridSchedule(options, container) {\n Weekday.call(this, options, container);\n\n this.collapsed = true;\n}\n\nutil.inherit(DayGridSchedule, Weekday);\n\n/**\n * Render Weekday view\n * @override\n */\nDayGridSchedule.prototype.render = function(viewModel) {\n var container = this.container;\n var baseViewModel;\n\n baseViewModel = this.getBaseViewModel(viewModel);\n\n container.innerHTML = tmpl(baseViewModel);\n\n this.fire('afterRender', baseViewModel);\n};\n\n/**\n * returns maximum schedule count in day\n * @param {array} matrices - The matrices for schedule placing.\n * @returns {number} maximum schedule count in day\n */\nDayGridSchedule.prototype._getMaxScheduleInDay = function(matrices) {\n return mmax.apply(\n null,\n util.map(matrices, function(matrix) {\n return Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n })\n );\n};\n\n/**\n * returns minimum height for container.\n * @param {number} maxScheduleInDay - max schedule blocks in one day\n * @returns {number}\n */\nDayGridSchedule.prototype._getMinHeight = function(maxScheduleInDay) {\n var opt = this.options;\n var contentHeight = (maxScheduleInDay * opt.scheduleHeight)\n + ((maxScheduleInDay - 1) * opt.scheduleGutter);\n\n // if (this.collapsed && this.aboutMe.maxHeight >= contentHeight + opt.containerBottomGutter) {\n // contentHeight += opt.containerBottomGutter;\n // }\n\n return contentHeight;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGridSchedule.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var matrices = opt.getViewModelFunc(viewModel);\n var maxScheduleInDay = this._getMaxScheduleInDay(matrices);\n var baseViewModel;\n var styles = this._getStyles(viewModel.theme);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n minHeight: this._getMinHeight(maxScheduleInDay),\n matrices: matrices,\n scheduleContainerTop: this.options.scheduleContainerTop,\n maxScheduleInDay: maxScheduleInDay,\n isReadOnly: opt.isReadOnly,\n styles: styles\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nDayGridSchedule.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.borderRadius = theme.week.dayGridSchedule.borderRadius;\n }\n\n return styles;\n};\n\nmodule.exports = DayGridSchedule;\n","/**\n * @fileoverview View for rendering daynames\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar domutil = require('../../common/domutil');\nvar View = require('../view');\nvar daynameTmpl = require('../template/week/daynames.hbs');\n\n/**\n * @constructor\n * @param {object} options - options for dayname view\n * @param {HTMLElement} container Container element to use.\n * @param {Theme} theme - theme instance\n * @extends {View}\n */\nfunction DayName(options, container, theme) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('dayname-container')\n );\n\n this.options = util.extend({\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n timezones: options.timezones\n }, options.week);\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n View.call(this, container);\n\n this.applyTheme();\n}\n\nutil.inherit(DayName, View);\n\n/**\n * Get default viewmodels.\n * @param {Date} start The date of start render\n * @param {Date} end The end of end render\n * @param {object} grids grid data(width, left, day)\n * @returns {array} viewmodel.\n */\nDayName.prototype._getBaseViewModel = function(start, end, grids) {\n var daynames = this.options.daynames,\n theme = this.theme,\n now = new TZDate().toLocalTime(),\n viewModel;\n\n viewModel = util.map(datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ), function(d, i) {\n var day = d.getDay();\n var isToday = datetime.isSameDate(d, now);\n var isPastDay = d < now && !isToday;\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: isToday,\n date: d.getDate(),\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n renderDate: datetime.format(d, 'YYYY-MM-DD'),\n color: this._getDayNameColor(theme, day, isToday, isPastDay)\n };\n }, this);\n\n return viewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel View model from parent (WeekView)\n */\nDayName.prototype.render = function(viewModel) {\n var dayNames = this._getBaseViewModel(\n viewModel.renderStartDate,\n viewModel.renderEndDate,\n viewModel.grids\n );\n var timezonesCollapsed = viewModel.state.timezonesCollapsed;\n var styles = this._getStyles(this.theme, timezonesCollapsed);\n var baseViewModel = util.extend({}, {\n dayNames: dayNames,\n styles: styles\n });\n\n this.container.innerHTML = daynameTmpl(baseViewModel);\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {boolean} isPastDay - is past day flag\n * @returns {string} style - color style\n */\nDayName.prototype._getDayNameColor = function(theme, day, isToday, isPastDay) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = theme.common.holiday.color;\n } else if (isPastDay) {\n color = theme.week.pastDay.color || theme.common.dayname.color;\n } else if (day === 6) {\n color = theme.common.saturday.color;\n } else if (isToday) {\n color = theme.week.today.color || theme.common.today.color;\n } else {\n color = theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nDayName.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderTop = theme.week.dayname.borderTop || theme.common.border;\n styles.borderBottom = theme.week.dayname.borderBottom || theme.common.border;\n styles.borderLeft = theme.week.dayname.borderLeft || theme.common.border;\n styles.paddingLeft = theme.week.dayname.paddingLeft;\n styles.backgroundColor = theme.week.dayname.backgroundColor;\n styles.height = theme.week.dayname.height;\n styles.textAlign = theme.week.dayname.textAlign;\n styles.marginLeft = theme.week.daygridLeft.width;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.marginLeft);\n styles.marginLeft = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\nDayName.prototype.applyTheme = function() {\n var styles = this._getStyles(this.theme);\n var style = this.container.style;\n\n style.borderTop = styles.borderTop;\n style.borderBottom = styles.borderBottom;\n style.height = styles.height;\n style.backgroundColor = styles.backgroundColor;\n style.textAlign = styles.textAlign;\n\n return style;\n};\n\nmodule.exports = DayName;\n","/**\n * @fileoverview View of time.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar View = require('../view');\nvar timeTmpl = require('../template/week/time.hbs');\n\nvar forEachArr = util.forEachArray;\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options Options\n * @param {number} options.index Date index in week view.\n * @param {number} options.width Date element width (percent)\n * @param {string} options.ymd YYYMMDD string for this view\n * @param {boolean} options.isToday when set true then assign today design class to container.\n * @param {number} options.hourStart Can limit of render hour start.\n * @param {number} options.hourEnd Can limit of render hour end.\n * @param {HTMLElement} container Element to use container for this view.\n * @param {Theme} theme - theme instance\n */\nfunction Time(options, container, theme) {\n View.call(this, container);\n\n this.options = util.extend({\n index: 0,\n width: 0,\n ymd: '',\n isToday: false,\n pending: false,\n hourStart: 0,\n hourEnd: 24,\n defaultMarginBottom: 2,\n minHeight: 18.5,\n isReadOnly: false\n }, options);\n\n this.timeTmpl = timeTmpl;\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n container.style.width = options.width + '%';\n container.style.left = options.left + '%';\n\n if (this.options.isToday) {\n domutil.addClass(this.container, config.classname('today'));\n }\n\n this.applyTheme();\n}\n\nutil.inherit(Time, View);\n\n/**\n * Convert YYYYMMDD formatted string date to Date.\n * @param {string} str formatted string.\n * @returns {Date} start of date.\n */\nTime.prototype._parseDateGroup = function(str) {\n var y = parseInt(str.substr(0, 4), 10),\n m = parseInt(str.substr(4, 2), 10),\n d = parseInt(str.substr(6, 2), 10);\n var date = datetime.start();\n\n date.setFullYear(y, m - 1, d);\n\n return datetime.start(date);\n};\n\n/**\n * calculate left and width\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @returns {object} - left and width\n */\nTime.prototype._getScheduleViewBoundX = function(viewModel, options) {\n var width = options.baseWidth * (viewModel.extraSpace + 1);\n\n // set width auto when has no collisions.\n if (!viewModel.hasCollide) {\n width = null;\n }\n\n return {\n left: options.baseLeft[options.columnIndex],\n width: width\n };\n};\n\n/**\n * calculate top, height, croppedStart and croppedEnd\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @returns {object} - left and width\n */\nTime.prototype._getScheduleViewBoundY = function(viewModel, options) {\n var baseMS = options.baseMS;\n var baseHeight = options.baseHeight;\n var croppedStart = false;\n var croppedEnd = false;\n var goingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration);\n var comingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n var offsetStart = viewModel.valueOf().start - goingDuration - options.todayStart;\n // containerHeight : milliseconds in day = x : schedule's milliseconds\n var top = (baseHeight * offsetStart) / baseMS;\n var modelDuration = viewModel.duration();\n var height;\n var duration;\n var goingDurationHeight;\n var modelDurationHeight;\n var comingDurationHeight;\n\n modelDuration = modelDuration > SCHEDULE_MIN_DURATION ? modelDuration : SCHEDULE_MIN_DURATION;\n duration = modelDuration + goingDuration + comingDuration;\n height = (baseHeight * duration) / baseMS;\n\n goingDurationHeight = (baseHeight * goingDuration) / baseMS; // common.ratio(duration, goingDuration, 100);\n modelDurationHeight = (baseHeight * modelDuration) / baseMS; // common.ratio(duration, modelDuration, 100);\n comingDurationHeight = (baseHeight * comingDuration) / baseMS; // common.ratio(duration, comingDuration, 100);\n\n if (offsetStart < 0) {\n top = 0;\n height += ((baseHeight * offsetStart) / baseMS);\n croppedStart = true;\n }\n\n if (height + top > baseHeight) {\n height = baseHeight - top;\n croppedEnd = true;\n }\n\n return {\n top: top,\n height: Math.max(height, this.options.minHeight) - this.options.defaultMarginBottom,\n modelDurationHeight: modelDurationHeight,\n goingDurationHeight: goingDurationHeight,\n comingDurationHeight: comingDurationHeight,\n hasGoingDuration: goingDuration > 0,\n hasComingDuration: comingDuration > 0,\n croppedStart: croppedStart,\n croppedEnd: croppedEnd\n };\n};\n\n/**\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @param {Date} options.todayStart - date object represent schedule date's start (00:00:00)\n * @param {number} options.baseMS - the number of milliseconds to render schedule blocks.\n * @param {number} options.baseHeight - pixel value related with baseMS options.\n * @param {number[]} options.baseLeft - left position percents for each columns.\n * @param {number} options.baseWidth - the unit of schedule blocks width percent.\n * @param {number} options.columnIndex - the number index of schedule blocks.\n * it represent rendering index from left sides in view.\n * @returns {object} bound object for supplied view model.\n */\nTime.prototype.getScheduleViewBound = function(viewModel, options) {\n var boundX = this._getScheduleViewBoundX(viewModel, options);\n var boundY = this._getScheduleViewBoundY(viewModel, options);\n var schedule = viewModel.model;\n var isReadOnly = util.pick(schedule, 'isReadOnly') || false;\n var travelBorderColor = schedule.isFocused ? '#ffffff' : schedule.borderColor;\n if (travelBorderColor === schedule.bgColor) {\n travelBorderColor = null; // follow text color\n }\n\n return util.extend({\n isReadOnly: isReadOnly,\n travelBorderColor: travelBorderColor\n }, boundX, boundY);\n};\n\n/**\n * Set viewmodels for rendering.\n * @param {string} ymd The date of schedules. YYYYMMDD format.\n * @param {array} matrices The matrices for schedule placing.\n * @param {number} containerHeight - container's height\n */\nTime.prototype._getBaseViewModel = function(ymd, matrices, containerHeight) {\n var self = this,\n options = this.options,\n hourStart = options.hourStart,\n hourEnd = options.hourEnd,\n isReadOnly = options.isReadOnly,\n todayStart,\n baseMS;\n\n /**\n * Calculate each schedule element bounds relative with rendered hour milliseconds and\n * wrap each schedule model to viewmodels.\n */\n containerHeight = containerHeight || this.getViewBound().height;\n todayStart = this._parseDateGroup(ymd);\n todayStart.setHours(hourStart);\n baseMS = datetime.millisecondsFrom('hour', (hourEnd - hourStart));\n\n forEachArr(matrices, function(matrix) {\n var maxRowLength,\n widthPercent,\n leftPercents,\n i;\n\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n widthPercent = 100 / maxRowLength;\n\n leftPercents = [];\n for (i = 0; i < maxRowLength; i += 1) {\n leftPercents[i] = widthPercent * i;\n }\n\n forEachArr(matrix, function(row) {\n forEachArr(row, function(viewModel, col) {\n var viewBound;\n\n if (!viewModel) {\n return;\n }\n\n viewBound = self.getScheduleViewBound(viewModel, {\n todayStart: todayStart,\n baseMS: baseMS,\n baseLeft: leftPercents,\n baseWidth: widthPercent,\n baseHeight: containerHeight,\n columnIndex: col,\n isReadOnly: isReadOnly\n });\n\n util.extend(viewModel, viewBound);\n });\n });\n });\n};\n\n/**\n * @returns {Date} - Date of this view.\n */\nTime.prototype.getDate = function() {\n return this._parseDateGroup(this.options.ymd);\n};\n\n/**\n * @override\n * @param {string} ymd The date of schedules. YYYYMMDD format\n * @param {array} matrices Matrices for placing schedules\n * @param {number} containerHeight - container's height\n */\nTime.prototype.render = function(ymd, matrices, containerHeight) {\n this._getBaseViewModel(ymd, matrices, containerHeight);\n this.container.innerHTML = this.timeTmpl({\n matrices: matrices,\n styles: this._getStyles(this.theme),\n isReadOnly: this.options.isReadOnly\n });\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nTime.prototype._getStyles = function(theme) {\n var styles = {};\n var options = this.options;\n\n if (theme) {\n styles.borderRight = theme.week.timegrid.borderRight || theme.common.border;\n styles.marginRight = theme.week.timegrid.paddingRight;\n styles.borderRadius = theme.week.timegridSchedule.borderRadius;\n styles.paddingLeft = theme.week.timegridSchedule.paddingLeft;\n styles.backgroundColor = options.isToday ? theme.week.today.backgroundColor : 'inherit';\n }\n\n return styles;\n};\n\nTime.prototype.applyTheme = function() {\n var style = this.container.style;\n var styles = this._getStyles(this.theme);\n\n style.borderRight = styles.borderRight;\n style.backgroundColor = styles.backgroundColor;\n};\n\nmodule.exports = Time;\n","/**\n * @fileoverview View for rendered schedules by times.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar datetime = require('../../common/datetime');\nvar Timezone = require('../../common/timezone');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar View = require('../view');\nvar Time = require('./time');\nvar AutoScroll = require('../../common/autoScroll');\nvar mainTmpl = require('../template/week/timeGrid.hbs');\nvar timezoneStickyTmpl = require('../template/week/timezoneSticky.hbs');\nvar timegridCurrentTimeTmpl = require('../template/week/timeGridCurrentTime.hbs');\nvar TZDate = Timezone.Date;\nvar HOURMARKER_REFRESH_INTERVAL = 1000 * 60;\nvar SIXTY_SECONDS = 60;\nvar SIXTY_MINUTES = 60;\n\n/**\n * Returns a list of time labels from start to end.\n * For hidden labels near the current time, set to hidden: true.\n * @param {object} opt - TimeGrid.options\n * @param {boolean} hasHourMarker - Whether the current time is displayed\n * @param {number} timezoneOffset - timezone offset\n * @param {object} styles - styles\n * @returns {Array.}\n */\nfunction getHoursLabels(opt, hasHourMarker, timezoneOffset, styles) {\n var hourStart = opt.hourStart;\n var hourEnd = opt.hourEnd;\n var renderEndDate = new TZDate(opt.renderEndDate);\n var shiftByOffset = parseInt(timezoneOffset / SIXTY_MINUTES, 10);\n var shiftMinutes = Math.abs(timezoneOffset % SIXTY_MINUTES);\n var now = new TZDate().toLocalTime();\n var nowMinutes = now.getMinutes();\n var hoursRange = util.range(0, 24);\n var nowAroundHours = null;\n var nowHours, nowHoursIndex;\n var isNegativeZero = 1 / -Infinity === shiftByOffset;\n\n if ((shiftByOffset < 0 || isNegativeZero) && shiftMinutes > 0) {\n shiftByOffset -= 1;\n }\n\n // shift the array and take elements between start and end\n common.shiftArray(hoursRange, shiftByOffset);\n common.takeArray(hoursRange, hourStart, hourEnd);\n\n nowHours = common.shiftHours(now.getHours(), shiftByOffset) % 24;\n nowHoursIndex = util.inArray(nowHours, hoursRange);\n\n if (hasHourMarker) {\n if (nowMinutes < 20) {\n nowAroundHours = nowHours;\n } else if (nowMinutes > 40) {\n nowAroundHours = nowHours + 1;\n }\n\n if (util.isNumber(nowAroundHours)) {\n nowAroundHours %= 24;\n }\n }\n\n return util.map(hoursRange, function(hour, index) {\n var color;\n var fontWeight;\n var isPast = (hasHourMarker && index <= nowHoursIndex) ||\n (renderEndDate < now && !datetime.isSameDate(renderEndDate, now));\n\n if (isPast) {\n // past\n color = styles.pastTimeColor;\n fontWeight = styles.pastTimeFontWeight;\n } else {\n // future\n color = styles.futureTimeColor;\n fontWeight = styles.futureTimeFontWeight;\n }\n\n return {\n hour: hour,\n minutes: shiftMinutes,\n hidden: nowAroundHours === hour || index === 0,\n color: color || '',\n fontWeight: fontWeight || ''\n };\n });\n}\n/**\n * @constructor\n * @extends {View}\n * @param {string} name - view name\n * @param {object} options The object for view customization.\n * @param {string} options.renderStartDate - render start date. YYYY-MM-DD\n * @param {string} options.renderEndDate - render end date. YYYY-MM-DD\n * @param {number} [options.hourStart=0] You can change view's start hours.\n * @param {number} [options.hourEnd=0] You can change view's end hours.\n * @param {HTMLElement} panelElement panel element.\n */\nfunction TimeGrid(name, options, panelElement) {\n var container = domutil.appendHTMLElement(\n 'div',\n panelElement,\n config.classname('timegrid-container')\n );\n var stickyContainer = domutil.appendHTMLElement(\n 'div',\n panelElement,\n config.classname('timegrid-sticky-container')\n );\n\n panelElement.style.position = 'relative'; // for stickyContainer\n\n name = name || 'time';\n\n View.call(this, container);\n\n if (!util.browser.safari) {\n /**\n * @type {AutoScroll}\n */\n this._autoScroll = new AutoScroll(container);\n }\n\n this.stickyContainer = stickyContainer;\n\n /**\n * Time view options.\n * @type {object}\n */\n this.options = util.extend({\n viewName: name,\n renderStartDate: '',\n renderEndDate: '',\n hourStart: 0,\n hourEnd: 24,\n timezones: options.timezones,\n isReadOnly: options.isReadOnly,\n showTimezoneCollapseButton: false\n }, options.week);\n\n if (this.options.timezones.length < 1) {\n this.options.timezones = [{\n timezoneOffset: Timezone.getOffset()\n }];\n }\n\n /**\n * Interval id for hourmarker animation.\n * @type {number}\n */\n this.intervalID = 0;\n\n /**\n * timer id for hourmarker initial state\n * @type {number}\n */\n this.timerID = 0;\n\n /**\n * @type {boolean}\n */\n this._scrolled = false;\n\n /**\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n /**\n * cache hoursLabels view model to render again TimeGrid\n * @type {object}\n */\n this._cacheHoursLabels = null;\n\n this.attachEvent();\n}\n\nutil.inherit(TimeGrid, View);\n\n/**********\n * Prototype props\n **********/\n\n/**\n * @type {string}\n */\nTimeGrid.prototype.viewName = 'timegrid';\n\n/**\n * Destroy view.\n * @override\n */\nTimeGrid.prototype._beforeDestroy = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n\n if (this._autoScroll) {\n this._autoScroll.destroy();\n }\n\n domevent.off(this.stickyContainer, 'click', this._onClickStickyContainer, this);\n\n this._autoScroll = this.hourmarkers = this.intervalID =\n this.timerID = this._cacheParentViewModel = this.stickyContainer = null;\n};\n\n/**\n * @param {Date} [time] - date object to convert pixel in grids.\n * use **Date.now()** when not supplied.\n * @returns {number} The pixel value represent current time in grids.\n */\nTimeGrid.prototype._getTopPercentByTime = function(time) {\n var opt = this.options,\n raw = datetime.raw(time || new TZDate()),\n hourLength = util.range(opt.hourStart, opt.hourEnd).length,\n maxMilliseconds = hourLength * datetime.MILLISECONDS_PER_HOUR,\n hmsMilliseconds = datetime.millisecondsFrom('hour', raw.h) +\n datetime.millisecondsFrom('minutes', raw.m) +\n datetime.millisecondsFrom('seconds', raw.s) +\n raw.ms,\n topPercent;\n\n topPercent = common.ratio(maxMilliseconds, 100, hmsMilliseconds);\n topPercent -= common.ratio(maxMilliseconds, 100, datetime.millisecondsFrom('hour', opt.hourStart));\n\n return common.limit(topPercent, [0], [100]);\n};\n\n/**\n * Get Hourmarker viewmodel.\n * @param {TZDate} now - now\n * @param {object} grids grid information(width, left, day)\n * @param {Array.} range render range\n * @returns {object} ViewModel of hourmarker.\n */\nTimeGrid.prototype._getHourmarkerViewModel = function(now, grids, range) {\n var todaymarkerLeft = -1;\n var todaymarkerWidth = -1;\n var hourmarkerTimzones = [];\n var opt = this.options;\n var primaryOffset = Timezone.getOffset();\n var timezones = opt.timezones;\n var viewModel;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(now, date)) {\n todaymarkerLeft = grids[index] ? grids[index].left : 0;\n todaymarkerWidth = grids[index] ? grids[index].width : 0;\n }\n });\n\n util.forEach(timezones, function(timezone) {\n var timezoneDifference = timezone.timezoneOffset + primaryOffset;\n var hourmarker = new TZDate(now);\n var dateDifference;\n\n hourmarker.setMinutes(hourmarker.getMinutes() + timezoneDifference);\n dateDifference = hourmarker.getDate() - now.getDate();\n\n hourmarkerTimzones.push({\n hourmarker: hourmarker,\n dateDifferenceSign: (dateDifference < 0) ? '-' : '+',\n dateDifference: Math.abs(dateDifference)\n });\n });\n\n viewModel = {\n currentHours: now.getHours(),\n hourmarkerTop: this._getTopPercentByTime(now),\n hourmarkerTimzones: hourmarkerTimzones,\n todaymarkerLeft: todaymarkerLeft,\n todaymarkerWidth: todaymarkerWidth,\n todaymarkerRight: todaymarkerLeft + todaymarkerWidth\n };\n\n return viewModel;\n};\n\n/**\n * Get timezone view model\n * @param {number} currentHours - current hour\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @param {object} styles - styles\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getTimezoneViewModel = function(currentHours, timezonesCollapsed, styles) {\n var opt = this.options;\n var primaryOffset = Timezone.getOffset();\n var timezones = opt.timezones;\n var timezonesLength = timezones.length;\n var timezoneViewModel = [];\n var collapsed = timezonesCollapsed;\n var width = collapsed ? 100 : 100 / timezonesLength;\n var now = new TZDate().toLocalTime();\n var backgroundColor = styles.displayTimezoneLabelBackgroundColor;\n\n util.forEach(timezones, function(timezone, index) {\n var hourmarker = new TZDate(now);\n var timezoneDifference;\n var timeSlots;\n var dateDifference;\n\n timezoneDifference = timezone.timezoneOffset + primaryOffset;\n timeSlots = getHoursLabels(opt, currentHours >= 0, timezoneDifference, styles);\n\n hourmarker.setMinutes(hourmarker.getMinutes() + timezoneDifference);\n dateDifference = hourmarker.getDate() - now.getDate();\n\n if (index > 0) {\n backgroundColor = styles.additionalTimezoneBackgroundColor;\n }\n\n timezoneViewModel.push({\n timeSlots: timeSlots,\n displayLabel: timezone.displayLabel,\n timezoneOffset: timezone.timezoneOffset,\n tooltip: timezone.tooltip || '',\n width: width,\n left: collapsed ? 0 : (timezones.length - index - 1) * width,\n isPrimary: index === 0,\n backgroundColor: backgroundColor || '',\n hidden: index !== 0 && collapsed,\n hourmarker: hourmarker,\n dateDifferenceSign: (dateDifference < 0) ? '-' : '+',\n dateDifference: Math.abs(dateDifference)\n });\n });\n\n return timezoneViewModel;\n};\n\n/**\n * Get base viewModel.\n * @param {object} viewModel - view model\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getBaseViewModel = function(viewModel) {\n var grids = viewModel.grids;\n var range = viewModel.range;\n var opt = this.options;\n var baseViewModel = this._getHourmarkerViewModel(new TZDate().toLocalTime(), grids, range);\n var timezonesCollapsed = util.pick(viewModel, 'state', 'timezonesCollapsed');\n var styles = this._getStyles(viewModel.theme, timezonesCollapsed);\n\n return util.extend(baseViewModel, {\n timezones: this._getTimezoneViewModel(baseViewModel.todaymarkerLeft, timezonesCollapsed, styles),\n hoursLabels: getHoursLabels(opt, baseViewModel.todaymarkerLeft >= 0, 0, styles),\n styles: styles,\n showTimezoneCollapseButton: util.pick(opt, 'showTimezoneCollapseButton'),\n timezonesCollapsed: timezonesCollapsed\n });\n};\n\n/**\n * Reconcilation child views and render.\n * @param {object} viewModels Viewmodel\n * @param {object} grids grid information(width, left, day)\n * @param {HTMLElement} container Container element for each time view.\n * @param {Theme} theme - theme instance\n */\nTimeGrid.prototype._renderChildren = function(viewModels, grids, container, theme) {\n var self = this,\n options = this.options,\n childOption,\n child,\n isToday,\n containerHeight,\n today = datetime.format(new TZDate(), 'YYYYMMDD'),\n i = 0;\n\n // clear contents\n container.innerHTML = '';\n this.children.clear();\n\n containerHeight = domutil.getSize(container.parentElement)[1];\n\n // reconcilation of child views\n util.forEach(viewModels, function(schedules, ymd) {\n isToday = ymd === today;\n\n childOption = {\n index: i,\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n ymd: ymd,\n isToday: isToday,\n isPending: options.isPending,\n isFocused: options.isFocused,\n isReadOnly: options.isReadOnly,\n hourStart: options.hourStart,\n hourEnd: options.hourEnd\n };\n\n child = new Time(\n childOption,\n domutil.appendHTMLElement('div', container, config.classname('time-date')),\n theme\n );\n child.render(ymd, schedules, containerHeight);\n\n self.addChild(child);\n\n i += 1;\n });\n};\n\n/**\n * @override\n * @param {object} viewModel ViewModel list from Week view.\n */\nTimeGrid.prototype.render = function(viewModel) {\n var opt = this.options,\n timeViewModel = viewModel.schedulesInDateRange[opt.viewName],\n container = this.container,\n grids = viewModel.grids,\n baseViewModel = this._getBaseViewModel(viewModel),\n scheduleLen = util.keys(timeViewModel).length;\n\n this._cacheParentViewModel = viewModel;\n this._cacheHoursLabels = baseViewModel.hoursLabels;\n\n if (!scheduleLen) {\n return;\n }\n\n baseViewModel.showHourMarker = baseViewModel.todaymarkerLeft >= 0;\n\n container.innerHTML = mainTmpl(baseViewModel);\n\n /**********\n * Render sticky container for timezone display label\n **********/\n this.renderStickyContainer(baseViewModel);\n\n /**********\n * Render children\n **********/\n this._renderChildren(\n timeViewModel,\n grids,\n domutil.find(config.classname('.timegrid-schedules-container'), container),\n viewModel.theme\n );\n\n this._hourLabels = domutil.find('ul', container);\n\n /**********\n * Render hourmarker\n **********/\n this.hourmarkers = domutil.find(config.classname('.timegrid-hourmarker'), container, true);\n\n if (!this._scrolled) {\n this._scrolled = true;\n this.scrollToNow();\n }\n};\n\nTimeGrid.prototype.renderStickyContainer = function(baseViewModel) {\n var stickyContainer = this.stickyContainer;\n\n stickyContainer.innerHTML = timezoneStickyTmpl(baseViewModel);\n\n stickyContainer.style.display = baseViewModel.timezones.length > 1 ? 'block' : 'none';\n stickyContainer.style.width = baseViewModel.styles.leftWidth;\n stickyContainer.style.height = baseViewModel.styles.displayTimezoneLabelHeight;\n stickyContainer.style.borderBottom = baseViewModel.styles.leftBorderRight;\n};\n\n/**\n * Refresh hourmarker element.\n */\nTimeGrid.prototype.refreshHourmarker = function() {\n var hourmarkers = this.hourmarkers;\n var viewModel = this._cacheParentViewModel;\n var hoursLabels = this._cacheHoursLabels;\n var baseViewModel;\n\n if (!hourmarkers || !viewModel) {\n return;\n }\n\n baseViewModel = this._getBaseViewModel(viewModel);\n\n reqAnimFrame.requestAnimFrame(function() {\n var needsRender = false;\n\n util.forEach(hoursLabels, function(hoursLabel, index) {\n if (hoursLabel.hidden !== baseViewModel.hoursLabels[index].hidden) {\n needsRender = true;\n\n return false;\n }\n\n return true;\n });\n\n if (needsRender) {\n this.render(viewModel);\n } else {\n util.forEach(hourmarkers, function(hourmarker) {\n var todaymarker = domutil.find(config.classname('.timegrid-todaymarker'), hourmarker);\n var hourmarkerContainer = domutil.find(config.classname('.timegrid-hourmarker-time'), hourmarker);\n var timezone = domutil.closest(hourmarker, config.classname('.timegrid-timezone'));\n var timezoneIndex = timezone ? domutil.getData(timezone, 'timezoneIndex') : 0;\n\n hourmarker.style.top = baseViewModel.hourmarkerTop + '%';\n\n if (todaymarker) {\n todaymarker.style.display = (baseViewModel.todaymarkerLeft >= 0) ? 'block' : 'none';\n }\n if (hourmarkerContainer) {\n hourmarkerContainer.innerHTML = timegridCurrentTimeTmpl(\n baseViewModel.hourmarkerTimzones[timezoneIndex]\n );\n }\n });\n }\n }, this);\n};\n\n/**\n * Attach events\n */\nTimeGrid.prototype.attachEvent = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n this.intervalID = this.timerID = null;\n\n this.timerID = setTimeout(util.bind(this.onTick, this), (SIXTY_SECONDS - new TZDate().getSeconds()) * 1000);\n\n domevent.on(this.stickyContainer, 'click', this._onClickStickyContainer, this);\n};\n\n/**\n * Scroll time grid to current hourmarker.\n */\nTimeGrid.prototype.scrollToNow = function() {\n var container = this.container;\n var offsetTop,\n viewBound,\n scrollTop,\n scrollAmount,\n scrollBy,\n scrollFn;\n\n if (!this.hourmarkers || !this.hourmarkers.length) {\n return;\n }\n\n offsetTop = this.hourmarkers[0].offsetTop;\n viewBound = this.getViewBound();\n scrollTop = offsetTop;\n scrollAmount = viewBound.height / 4;\n scrollBy = 10;\n\n scrollFn = function() {\n if (scrollTop > offsetTop - scrollAmount) {\n scrollTop -= scrollBy;\n container.scrollTop = scrollTop;\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n } else {\n container.scrollTop = offsetTop - scrollAmount;\n }\n };\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n};\n\n/**********\n * Schedule handlers\n **********/\n\n/**\n * Interval tick handler\n */\nTimeGrid.prototype.onTick = function() {\n if (this.timerID) {\n clearTimeout(this.timerID);\n this.timerID = null;\n }\n\n if (!this.intervalID) {\n this.intervalID = setInterval(util.bind(this.onTick, this), HOURMARKER_REFRESH_INTERVAL);\n }\n this.refreshHourmarker();\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nTimeGrid.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderBottom = theme.week.timegridHorizontalLine.borderBottom || theme.common.border;\n styles.halfHourBorderBottom = theme.week.timegridHalfHour.borderBottom || theme.common.border;\n\n styles.todayBackgroundColor = theme.week.today.backgroundColor;\n styles.weekendBackgroundColor = theme.week.weekend.backgroundColor;\n styles.backgroundColor = theme.week.daygrid.backgroundColor;\n styles.leftWidth = theme.week.timegridLeft.width;\n styles.leftBackgroundColor = theme.week.timegridLeft.backgroundColor;\n styles.leftBorderRight = theme.week.timegridLeft.borderRight || theme.common.border;\n styles.leftFontSize = theme.week.timegridLeft.fontSize;\n styles.timezoneWidth = theme.week.timegridLeft.width;\n styles.additionalTimezoneBackgroundColor = theme.week.timegridLeftAdditionalTimezone.backgroundColor\n || styles.leftBackgroundColor;\n\n styles.displayTimezoneLabelHeight = theme.week.timegridLeftTimezoneLabel.height;\n styles.displayTimezoneLabelBackgroundColor = theme.week.timegridLeft.backgroundColor === 'inherit' ? 'white' : theme.week.timegridLeft.backgroundColor;\n\n styles.oneHourHeight = theme.week.timegridOneHour.height;\n styles.halfHourHeight = theme.week.timegridHalfHour.height;\n styles.quaterHourHeight = (parseInt(styles.halfHourHeight, 10) / 2) + 'px';\n\n styles.currentTimeColor = theme.week.currentTime.color;\n styles.currentTimeFontSize = theme.week.currentTime.fontSize;\n styles.currentTimeFontWeight = theme.week.currentTime.fontWeight;\n\n styles.pastTimeColor = theme.week.pastTime.color;\n styles.pastTimeFontWeight = theme.week.pastTime.fontWeight;\n\n styles.futureTimeColor = theme.week.futureTime.color;\n styles.futureTimeFontWeight = theme.week.futureTime.fontWeight;\n\n styles.currentTimeLeftBorderTop = theme.week.currentTimeLinePast.border;\n styles.currentTimeBulletBackgroundColor = theme.week.currentTimeLineBullet.backgroundColor;\n styles.currentTimeTodayBorderTop = theme.week.currentTimeLineToday.border;\n styles.currentTimeRightBorderTop = theme.week.currentTimeLineFuture.border;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.leftWidth);\n styles.leftWidth = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\n/**\n * @param {MouseEvent} event - mouse event object\n */\nTimeGrid.prototype._onClickStickyContainer = function(event) {\n var target = event.target || event.srcElement;\n var closeBtn = domutil.closest(target, config.classname('.timegrid-timezone-close-btn'));\n\n if (!closeBtn) {\n return;\n }\n\n this.fire('clickTimezonesCollapsedBtn');\n};\n\nmodule.exports = TimeGrid;\n","/**\n * @fileoverview View of days UI.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../view');\n\n/**\n * @constructor\n * @param {Base.Week} controller The controller mixin part.\n * @param {object} options View options\n * @param {string} [options.renderStartDate] Start date of render.\n * if not supplied then use -3d from today. YYYY-MM-DD format.\n * @param {string} [options.renderEndDate] End date of render.\n * if not supplied then use +3d from today. YYYY-MM-DD format.\n * @param {string} [options.cssPrefix] - CSS classname prefix\n * @param {HTMLElement} container The element to use container for this view.\n * @param {object} panels - schedule panels like 'milestone', 'task', 'allday', 'time'\n * @param {string} viewName - 'week', 'day'\n * @extends {View}\n */\nfunction Week(controller, options, container, panels, viewName) {\n var range;\n\n container = domutil.appendHTMLElement('div', container);\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('week-container'));\n\n range = this._getRenderDateRange(new TZDate());\n\n /**\n * @type {object} Options for view.\n */\n this.options = util.extend({\n scheduleFilter: [function(schedule) {\n return Boolean(schedule.isVisible);\n }],\n renderStartDate: datetime.format(range.start, 'YYYY-MM-DD'),\n renderEndDate: datetime.format(range.end, 'YYYY-MM-DD'),\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false,\n showTimezoneCollapseButton: false,\n timezonesCollapsed: false,\n hourStart: 0,\n hourEnd: 24\n }, options);\n\n /**\n * Week controller mixin.\n * @type {Base.Week}\n */\n this.controller = controller;\n\n /**\n * Schedule Panels\n * @type {Array.}\n */\n this.panels = panels;\n\n /**\n * Week view states\n * @type {object}\n */\n this.state = {\n timezonesCollapsed: this.options.timezonesCollapsed\n };\n\n if (viewName === 'day') {\n _disableDayOptions(this.options);\n }\n}\n\nutil.inherit(Week, View);\n\n/**********\n * Override props\n **********/\n\n/**\n * Render each child view with schedules in ranges.\n * @fires Week#afterRender\n * @override\n */\nWeek.prototype.render = function() {\n var self = this,\n options = this.options,\n scheduleFilter = options.scheduleFilter,\n narrowWeekend = options.narrowWeekend,\n startDayOfWeek = options.startDayOfWeek,\n workweek = options.workweek,\n theme = this.controller.theme || {},\n state = this.state;\n var renderStartDate, renderEndDate, schedulesInDateRange, viewModel, grids, range;\n\n renderStartDate = new TZDate(options.renderStartDate);\n renderEndDate = new TZDate(options.renderEndDate);\n\n range = datetime.range(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n datetime.MILLISECONDS_PER_DAY\n );\n\n if (options.workweek && datetime.compare(renderStartDate, renderEndDate)) {\n range = util.filter(range, function(date) {\n return !datetime.isWeekend(date.getDay());\n });\n\n renderStartDate = range[0];\n renderEndDate = range[range.length - 1];\n }\n\n schedulesInDateRange = this.controller.findByDateRange(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n this.panels,\n scheduleFilter,\n this.options\n );\n\n grids = datetime.getGridLeftAndWidth(\n range.length,\n narrowWeekend,\n startDayOfWeek,\n workweek\n );\n\n viewModel = {\n schedulesInDateRange: schedulesInDateRange,\n renderStartDate: renderStartDate,\n renderEndDate: renderEndDate,\n grids: grids,\n range: range,\n theme: theme,\n state: state\n };\n\n this.children.each(function(childView) {\n var matrices;\n var viewName = util.pick(childView.options, 'viewName');\n childView.render(viewModel);\n\n if (viewName) {\n matrices = viewModel.schedulesInDateRange[viewName]; // DayGrid limits schedule count by visibleScheduleCount after rendering it.\n\n if (util.isArray(matrices)) {\n self._invokeAfterRenderSchedule(matrices);\n } else {\n util.forEach(matrices, function(matricesOfDay) {\n self._invokeAfterRenderSchedule(matricesOfDay);\n });\n }\n }\n });\n\n /**\n * @event Week#afterRender\n */\n this.fire('afterRender');\n};\n\n/**\n * Fire 'afterRenderSchedule' event\n * @param {Array} matrices - schedule matrices from view model\n * @fires Week#afterRenderSchedule\n */\nWeek.prototype._invokeAfterRenderSchedule = function(matrices) {\n var self = this;\n util.forEachArray(matrices, function(matrix) {\n util.forEachArray(matrix, function(column) {\n util.forEachArray(column, function(scheduleViewModel) {\n if (scheduleViewModel) {\n /**\n * @event Week#afterRenderSchedule\n */\n self.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n });\n });\n};\n\n/**********\n * Prototype props\n **********/\n\nWeek.prototype.viewName = 'week';\n\n/**\n * Calculate default render date range from supplied date.\n * @param {Date} baseDate base date.\n * @returns {object} date range.\n */\nWeek.prototype._getRenderDateRange = function(baseDate) {\n var base = datetime.start(baseDate),\n start = new TZDate(Number(base)),\n end = new TZDate(Number(base));\n\n start.setDate(start.getDate() - 3);\n end.setDate(end.getDate() + 3);\n\n return {\n start: start,\n end: end\n };\n};\n\n/**\n * disable options for day view\n * @param {WeekOptions} options - week options to disable\n */\nfunction _disableDayOptions(options) {\n options.workweek = false;\n}\n\nutil.CustomEvents.mixin(Week);\n\nmodule.exports = Week;\n","/**\n * @fileoverview Weekday view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n datetime = require('../common/datetime'),\n TZDate = require('../common/timezone').Date,\n View = require('./view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - view options.\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction Weekday(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('weekday')\n );\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n containerBottomGutter: 8,\n scheduleHeight: 18,\n scheduleGutter: 2,\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false\n }, options);\n\n /*\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n View.call(this, container);\n}\n\nutil.inherit(Weekday, View);\n\n/**\n * Get render date range\n * @returns {Date[]} rendered date range\n */\nWeekday.prototype.getRenderDateRange = function() {\n return this._cacheParentViewModel.range;\n};\n\n/**\n * Get render date grids information\n * @returns {Date[]} rendered date grids information\n */\nWeekday.prototype.getRenderDateGrids = function() {\n return this._cacheParentViewModel.grids;\n};\n\n/**\n * Get default view model.\n * @param {object} viewModel parent's view model\n * @returns {object} viewModel to rendering.\n */\nWeekday.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var range = viewModel.range;\n var gridWidth = (100 / range.length);\n var grids = viewModel.grids;\n var exceedDate = viewModel.exceedDate || {};\n var theme = viewModel.theme;\n var now = new TZDate().toLocalTime();\n\n this._cacheParentViewModel = viewModel;\n\n return {\n width: gridWidth,\n scheduleHeight: opt.scheduleHeight,\n scheduleBlockHeight: (opt.scheduleHeight + opt.scheduleGutter),\n scheduleBlockGutter: opt.scheduleGutter,\n dates: util.map(range, function(date, index) {\n var day = date.getDay();\n var ymd = datetime.format(new TZDate(date), 'YYYYMMDD');\n var isToday = datetime.isSameDate(now, date);\n\n return {\n date: datetime.format(date, 'YYYY-MM-DD'),\n month: date.getMonth() + 1,\n day: day,\n isToday: isToday,\n ymd: ymd,\n hiddenSchedules: exceedDate[ymd] || 0,\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0,\n color: this._getDayNameColor(theme, day, isToday),\n backgroundColor: this._getDayBackgroundColor(theme, day)\n };\n }, this)\n };\n};\n\n/* eslint max-nested-callbacks: 0 */\n/**\n * Make exceed date information\n * @param {number} maxCount - exceed schedule count\n * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n * @param {Array.} range - date range of one week\n * @returns {object} exceedDate\n */\nWeekday.prototype.getExceedDate = function(maxCount, eventsInDateRange, range) {\n var exceedDate = this._initExceedDate(range);\n\n util.forEach(eventsInDateRange, function(matrix) {\n util.forEach(matrix, function(column) {\n util.forEach(column, function(viewModel) {\n var period;\n if (!viewModel || viewModel.top < maxCount) {\n return;\n }\n\n // check that this schedule block is not visible after rendered.\n viewModel.hidden = true;\n\n period = datetime.range(\n viewModel.getStarts(),\n viewModel.getEnds(),\n datetime.MILLISECONDS_PER_DAY\n );\n\n util.forEach(period, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] += 1;\n });\n });\n });\n });\n\n return exceedDate;\n};\n\n/**\n * Initiate exceed date information\n * @param {Array.} range - date range of one week\n * @returns {Object} - initiated exceed date\n */\nWeekday.prototype._initExceedDate = function(range) {\n var exceedDate = {};\n\n util.forEach(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] = 0;\n });\n\n return exceedDate;\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {boolean} isOtherMonth - not this month flag\n * @returns {string} style - color style\n */\nWeekday.prototype._getDayNameColor = function(theme, day, isToday, isOtherMonth) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = isOtherMonth ? theme.month.holidayExceptThisMonth.color : theme.common.holiday.color;\n } else if (day === 6) {\n color = isOtherMonth ? theme.month.dayExceptThisMonth.color : theme.common.saturday.color;\n } else if (isToday) {\n color = theme.common.today.color;\n } else {\n color = isOtherMonth ? theme.month.dayExceptThisMonth.color : theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\n/**\n * Get a day background color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @returns {string} style - color style\n */\nWeekday.prototype._getDayBackgroundColor = function(theme, day) {\n var color = '';\n\n if (theme) {\n if (day === 0 || day === 6) {\n color = theme.month.weekend.backgroundColor;\n } else {\n color = 'inherit';\n }\n }\n\n return color;\n};\n\nmodule.exports = Weekday;\n","module.exports = __WEBPACK_EXTERNAL_MODULE_tui_code_snippet__;","module.exports = __WEBPACK_EXTERNAL_MODULE_tui_date_picker__;"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://tui.Calendar/webpack/universalModuleDefinition","webpack://tui.Calendar/webpack/bootstrap","webpack://tui.Calendar/./node_modules/handlebars-template-loader/runtime/index.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars.runtime.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/base.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/decorators.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/exception.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/each.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/if.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/log.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/with.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/logger.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/no-conflict.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/runtime.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/safe-string.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/utils.js","webpack://tui.Calendar/./node_modules/handlebars/runtime.js","webpack://tui.Calendar/(webpack)/buildin/global.js","webpack://tui.Calendar/./src/css/main.styl","webpack://tui.Calendar/./src/index.js","webpack://tui.Calendar/./src/js/common/array.js","webpack://tui.Calendar/./src/js/common/autoScroll.js","webpack://tui.Calendar/./src/js/common/collection.js","webpack://tui.Calendar/./src/js/common/common.js","webpack://tui.Calendar/./src/js/common/datetime.js","webpack://tui.Calendar/./src/js/common/dirty.js","webpack://tui.Calendar/./src/js/common/domevent.js","webpack://tui.Calendar/./src/js/common/domutil.js","webpack://tui.Calendar/./src/js/common/dw.js","webpack://tui.Calendar/./src/js/common/floatingLayer.js","webpack://tui.Calendar/./src/js/common/model.js","webpack://tui.Calendar/./src/js/common/point.js","webpack://tui.Calendar/./src/js/common/reqAnimFrame.js","webpack://tui.Calendar/./src/js/common/timezone.js","webpack://tui.Calendar/./src/js/common/vlayout.js","webpack://tui.Calendar/./src/js/common/vpanel.js","webpack://tui.Calendar/./src/js/config.js","webpack://tui.Calendar/./src/js/controller/base.js","webpack://tui.Calendar/./src/js/controller/viewMixin/core.js","webpack://tui.Calendar/./src/js/controller/viewMixin/month.js","webpack://tui.Calendar/./src/js/controller/viewMixin/week.js","webpack://tui.Calendar/./src/js/factory/calendar.js","webpack://tui.Calendar/./src/js/factory/controller.js","webpack://tui.Calendar/./src/js/factory/monthView.js","webpack://tui.Calendar/./src/js/factory/weekView.js","webpack://tui.Calendar/./src/js/handler/daygrid/click.js","webpack://tui.Calendar/./src/js/handler/daygrid/core.js","webpack://tui.Calendar/./src/js/handler/daygrid/creation.js","webpack://tui.Calendar/./src/js/handler/daygrid/creationGuide.js","webpack://tui.Calendar/./src/js/handler/daygrid/move.js","webpack://tui.Calendar/./src/js/handler/daygrid/moveGuide.js","webpack://tui.Calendar/./src/js/handler/daygrid/resize.js","webpack://tui.Calendar/./src/js/handler/daygrid/resizeGuide.js","webpack://tui.Calendar/./src/js/handler/drag.js","webpack://tui.Calendar/./src/js/handler/month/click.js","webpack://tui.Calendar/./src/js/handler/month/core.js","webpack://tui.Calendar/./src/js/handler/month/creation.js","webpack://tui.Calendar/./src/js/handler/month/creationGuide.js","webpack://tui.Calendar/./src/js/handler/month/guide.hbs","webpack://tui.Calendar/./src/js/handler/month/guide.js","webpack://tui.Calendar/./src/js/handler/month/move.js","webpack://tui.Calendar/./src/js/handler/month/moveGuide.hbs","webpack://tui.Calendar/./src/js/handler/month/moveGuide.js","webpack://tui.Calendar/./src/js/handler/month/resize.js","webpack://tui.Calendar/./src/js/handler/month/resizeGuide.js","webpack://tui.Calendar/./src/js/handler/time/click.js","webpack://tui.Calendar/./src/js/handler/time/clickDayname.js","webpack://tui.Calendar/./src/js/handler/time/core.js","webpack://tui.Calendar/./src/js/handler/time/creation.js","webpack://tui.Calendar/./src/js/handler/time/creationGuide.js","webpack://tui.Calendar/./src/js/handler/time/move.js","webpack://tui.Calendar/./src/js/handler/time/moveGuide.js","webpack://tui.Calendar/./src/js/handler/time/resize.js","webpack://tui.Calendar/./src/js/handler/time/resizeGuide.js","webpack://tui.Calendar/./src/js/model/schedule.js","webpack://tui.Calendar/./src/js/model/viewModel/scheduleViewModel.js","webpack://tui.Calendar/./src/js/theme/standard.js","webpack://tui.Calendar/./src/js/theme/theme.js","webpack://tui.Calendar/./src/js/theme/themeConfig.js","webpack://tui.Calendar/./src/js/view/layout.js","webpack://tui.Calendar/./src/js/view/month/month.js","webpack://tui.Calendar/./src/js/view/month/more.js","webpack://tui.Calendar/./src/js/view/month/weekdayInMonth.js","webpack://tui.Calendar/./src/js/view/popup/scheduleCreationPopup.js","webpack://tui.Calendar/./src/js/view/popup/scheduleDetailPopup.js","webpack://tui.Calendar/./src/js/view/template/helper.js","webpack://tui.Calendar/./src/js/view/template/month/month.hbs","webpack://tui.Calendar/./src/js/view/template/month/more.hbs","webpack://tui.Calendar/./src/js/view/template/month/weekdayInMonth.hbs","webpack://tui.Calendar/./src/js/view/template/month/weekdayInMonthSchedule.hbs","webpack://tui.Calendar/./src/js/view/template/popup/scheduleCreationPopup.hbs","webpack://tui.Calendar/./src/js/view/template/popup/scheduleDetailPopup.hbs","webpack://tui.Calendar/./src/js/view/template/week/dayGrid.hbs","webpack://tui.Calendar/./src/js/view/template/week/dayGridSchedule.hbs","webpack://tui.Calendar/./src/js/view/template/week/daynames.hbs","webpack://tui.Calendar/./src/js/view/template/week/time.hbs","webpack://tui.Calendar/./src/js/view/template/week/timeGrid.hbs","webpack://tui.Calendar/./src/js/view/template/week/timeGridCurrentTime.hbs","webpack://tui.Calendar/./src/js/view/template/week/timeMoveGuide.hbs","webpack://tui.Calendar/./src/js/view/template/week/timezoneSticky.hbs","webpack://tui.Calendar/./src/js/view/view.js","webpack://tui.Calendar/./src/js/view/week/dayGrid.js","webpack://tui.Calendar/./src/js/view/week/dayGridSchedule.js","webpack://tui.Calendar/./src/js/view/week/dayname.js","webpack://tui.Calendar/./src/js/view/week/time.js","webpack://tui.Calendar/./src/js/view/week/timeGrid.js","webpack://tui.Calendar/./src/js/view/week/week.js","webpack://tui.Calendar/./src/js/view/weekday.js","webpack://tui.Calendar/external {\"commonjs\":\"tui-code-snippet\",\"commonjs2\":\"tui-code-snippet\",\"amd\":\"tui-code-snippet\",\"root\":[\"tui\",\"util\"]}","webpack://tui.Calendar/external {\"commonjs\":\"tui-date-picker\",\"commonjs2\":\"tui-date-picker\",\"amd\":\"tui-date-picker\",\"root\":[\"tui\",\"DatePicker\"]}"],"names":[],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFA,iBAAiB,mBAAO,CAAC,oFAAoB,E;;;;;;;;;;;;ACAhC;;AAEb;AACA;;AAEA,sCAAsC,uCAAuC,kBAAkB;;AAE/F;;AAEA,uCAAuC,6BAA6B,YAAY,EAAE,OAAO,iBAAiB,mBAAmB,uBAAuB,4EAA4E,EAAE,EAAE,yBAAyB,eAAe,EAAE;;A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ACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;ACtCzD,8CAAa;;AAEb;AACA;;AAEA,sCAAsC,uCAAuC,kBAAkB;;AAE/F,aAAa,mBAAO,CAAC,wEAAU;;AAE/B,iBAAiB,mBAAO,CAAC,gFAAc;;AAEvC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA,oCAAoC,OAAO;AAC3C;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,sCAAsC,UAAU;AAChD;AACA;AACA;AACA,oCAAoC,OAAO;AAC3C;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;;ACvG5C;;AAEb;AACA;;AAEA,sCAAsC,uCAAuC,kBAAkB;;AAE/F,iBAAiB,mBAAO,CAAC,gFAAc;;AAEvC;;AAEA;AACA;AACA;AACA,gCAAgC,KAAK;AACrC;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;ACxB5C;;AAEb;AACA;;AAEA,sCAAsC,uCAAuC,kBAAkB;;AAE/F,aAAa,mBAAO,CAAC,wEAAU;;AAE/B,iBAAiB,mBAAO,CAAC,gFAAc;;AAEvC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,2DAA2D,+DAA+D;AAC1H,GAAG;AACH;;AAEA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;ACzC5C;;AAEb;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;ACzB5C;;AAEb;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,2CAA2C,cAAc;;;;;;;;;;;;;AClB5C;;AAEb;AACA;;AAEA,sCAAsC,uCAAuC,kBAAkB;;AAE/F,aAAa,mBAAO,CAAC,wEAAU;;AAE/B,iBAAiB,mBAAO,CAAC,gFAAc;;AAEvC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA,GAAG;AACH;;AAEA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;AC1C5C;;AAEb;;AAEA,aAAa,mBAAO,CAAC,uEAAS;;AAE9B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,2FAA2F,aAAa;AACxG;AACA;;AAEA,8CAA8C;AAC9C;AACA;AACA;;AAEA;AACA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;AC9CzD;AACa;;AAEb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;;ACnB5C;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC,uCAAuC,kBAAkB;;AAE/F;;AAEA,uCAAuC,6BAA6B,YAAY,EAAE,OAAO,iBAAiB,mBAAmB,uBAAuB,4EAA4E,EAAE,EAAE,yBAAyB,eAAe,EAAE;;AAE9Q,aAAa,mBAAO,CAAC,uEAAS;;AAE9B;;AAEA,iBAAiB,mBAAO,CAAC,+EAAa;;AAEtC;;AAEA,YAAY,mBAAO,CAAC,qEAAQ;;AAE5B,eAAe,mBAAO,CAAC,2EAAW;;AAElC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;;AAEA,0CAA0C,YAAY,oBAAoB;;AAE1E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,OAAO;AAChD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kFAAkF,WAAW;AAC7F;AACA;AACA,KAAK;AACL;AACA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,+BAA+B;;AAE/B;AACA;AACA;;AAEA;AACA,0EAA0E;;AAE1E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yCAAyC;;AAEzC;AACA,4CAA4C;AAC5C;AACA;AACA,8CAA8C;AAC9C;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,0EAA0E;;AAE1E;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8EAA8E;;AAE9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;AC9TzD;AACa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;ACd5C;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb,YAAY;AACZ,YAAY;AACZ,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,sBAAsB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,qCAAqC,SAAS;AAC9C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA,uBAAuB;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA2C,cAAc;;;;;;;;;;;;AC5HzD;AACA;AACA,iBAAiB,mBAAO,CAAC,+FAA+B;;;;;;;;;;;;ACFxD;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;;;;;ACnBA,uC;;;;;;;;;;;;ACAA;AACA;AACA;AACA;;AAEa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,eAAe,mBAAO,CAAC,2DAAuB;;AAE9C,mBAAO,CAAC,4CAAiB;AACzB,mBAAO,CAAC,mEAA2B;;AAEnC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;;ACxCA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,eAAe,mBAAO,CAAC,uDAAoB;;AAE3C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,wBAAwB;AACnC,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,qDAAqD;AACrD;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,2BAA2B;AACtC,WAAW,2BAA2B;AACtC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC7RA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,eAAe,mBAAO,CAAC,uDAAoB;AAC3C,cAAc,mBAAO,CAAC,qDAAmB;AACzC,YAAY,mBAAO,CAAC,iDAAiB;;AAErC;AACA;AACA,+BAA+B;;AAE/B;AACA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,UAAU;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,YAAY;AACvB,WAAW,WAAW;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;;ACpPA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,iEAAiE;AACjE;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,cAAc,SAAS;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,cAAc,SAAS;AACvB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,aAAa,WAAW;AACxB;AACA,0CAA0C;AAC1C;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,0BAA0B;AACrC,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,gCAAgC;AAC3C,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,6BAA6B;AAC7B;;AAEA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,gBAAgB;AAC3B,WAAW,SAAS;AACpB,WAAW,EAAE;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,WAAW;AACxB;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,+BAA+B;AAC1C;AACA,WAAW,SAAS;AACpB,aAAa,4BAA4B;AACzC;AACA;AACA;AACA,gCAAgC;AAChC,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,yBAAyB;AACzB;AACA;AACA;;AAEA,yBAAyB;AACzB;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,EAAE;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;;;;;;;;;;;;;ACzbA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC;;AAEA,cAAc,mBAAO,CAAC,qDAAmB;AACzC,iBAAiB,mBAAO,CAAC,2DAAsB;AAC/C,eAAe,mBAAO,CAAC,uDAAoB;;AAE3C;AACA;AACA,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,KAAK;AACpB,iBAAiB,WAAW;AAC5B;AACA,mDAAmD;AACnD;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,MAAM;AACrB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,UAAU;AACzB,iBAAiB,OAAO;AACxB;AACA,iCAAiC;AACjC;AACA;;AAEA;AACA;AACA,yBAAyB,EAAE;AAC3B;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,uBAAuB,gBAAgB;AACvC,yBAAyB,EAAE;AAC3B;AACA;AACA;;AAEA;AACA,qCAAqC;AACrC;;AAEA;;AAEA;AACA,kEAAkE;AAClE;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,MAAM;AACrB,eAAe,MAAM;AACrB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,cAAc;AAC7B,iBAAiB,EAAE;AACnB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,cAAc;AAC7B,iBAAiB,EAAE;AACnB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,OAAO,0BAA0B;AAChD,eAAe,YAAY;AAC3B,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,EAAE;AACjB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,YAAY;AACnC;AACA;AACA,SAAS;AACT,uBAAuB,YAAY;AACnC;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;;AAET;AACA;AACA;;;;;;;;;;;;;ACrVA;AACA;AACA;AACA;AACa;;AAEb,aAAa,mBAAO,CAAC,+CAAY;AACjC,SAAS,mBAAO,CAAC,2CAAc;AAC/B,WAAW,mBAAO,CAAC,0CAAkB;AACrC;AACA,yBAAyB,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE;AACzE;;AAEA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,KAAK;AACpB;AACA,eAAe,MAAM;AACrB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,KAAK;AACpB,eAAe,MAAM;AACrB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,cAAc,kBAAkB;AAChC;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,SAAS;AACxB,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;;AClnBA;AACA;AACA;AACA;AACa;;AAEb,aAAa,mBAAO,CAAC,0CAAkB;AACvC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,iBAAiB;AACjB,8BAA8B;AAC9B,6BAA6B;AAC7B;AACA;AACA,iBAAiB;AACjB,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,EAAE;AACjB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;;AAEA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,gBAAgB;AAC/B;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;;AAEA;AACA;AACA,uBAAuB,SAAS;AAChC,uBAAuB,QAAQ;AAC/B,yBAAyB,EAAE;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD,4CAA4C;;AAE5C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC3MA;AACA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,gBAAgB;AAC/B,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,gBAAgB;AAC/B,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,WAAW;AAC1B,eAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,aAAa,aAAa;AAC1B;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,gBAAgB;AAC/B,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB,eAAe,YAAY;AAC3B,iBAAiB,SAAS;AAC1B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,WAAW;AAC1B,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,WAAW;AAC1B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,aAAa;AACb,0BAA0B;AAC1B;AACA,qBAAqB;AACrB;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,WAAW;AAC1B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;AClbA;AACA;AACA;AACA;AACA;AACa;;AAEb,eAAe,mBAAO,CAAC,+CAAY;AACnC,iBAAiB,mBAAO,CAAC,mDAAc;AACvC,WAAW,mBAAO,CAAC,0CAAkB;;AAErC;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,YAAY;AAC3B;AACA,eAAe,OAAO;AACtB,iBAAiB,YAAY;AAC7B;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,qBAAqB;AACpC;AACA,eAAe,iBAAiB;AAChC;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,mBAAmB,YAAY;AAC/B,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,SAAS;AAC3B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,iBAAiB,YAAY;AAC7B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC,IAAI;AAC5C;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,cAAc;AAC7B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,iBAAiB,cAAc;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yCAAyC,EAAE;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,eAAe,QAAQ;AACvB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,YAAY;AAC3B,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,MAAM;AACrB,iBAAiB,iBAAiB;AAClC;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;;AAEA,cAAc,SAAS;AACvB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,gBAAgB;AAC/B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;ACtoBA;AACA;AACA;AACA;AACa;;AAEb,aAAa,mBAAO,CAAC,+CAAY;;AAEjC;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,GAAG;AAChB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,GAAG;AAChB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,GAAG;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,GAAG;AAChB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC9HA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,qCAAW;AAChC,cAAc,mBAAO,CAAC,qDAAmB;AACzC,WAAW,mBAAO,CAAC,2CAAc;;AAEjC;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,cAAc;AACd;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,UAAU,SAAS;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,cAAc;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;ACvLA;AACA;AACA;AACA;AACa;;AAEb,aAAa,mBAAO,CAAC,uDAAoB;AACzC,WAAW,mBAAO,CAAC,0CAAkB;AACrC;AACA;;AAEA,eAAe,mBAAO,CAAC,uDAAoB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B,mBAAmB,SAAS;AAC5B,qBAAqB,QAAQ;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,aAAa;;AAEb;AACA,SAAS;;AAET;AACA;AACA,mBAAmB,OAAO;AAC1B,mBAAmB,OAAO;AAC1B,qBAAqB,QAAQ;AAC7B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,6BAA6B;AAC7B;;AAEA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,iBAAiB,OAAO;AACxB;AACA;AACA,sBAAsB;AACtB;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;;;;;;;;;;;;ACtJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;;AAErC;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,wBAAwB;AACnC,WAAW,iBAAiB;AAC5B,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;ACnVA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,SAAS;AACxB,eAAe,EAAE;AACjB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;;;ACxDA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;;AAErC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,mBAAmB;AAC9B,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,0BAA0B;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA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A;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,OAAO;AAClB,aAAa,YAAY;AACzB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,eAAe;AAC1B,WAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;;;;;;;;;;;;;AC1aA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,qCAAW;AAChC,aAAa,mBAAO,CAAC,2CAAU;AAC/B,cAAc,mBAAO,CAAC,6CAAW;AACjC,WAAW,mBAAO,CAAC,2CAAc;;AAEjC;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB,YAAY,QAAQ;AACpB,YAAY,OAAO;AACnB,WAAW,YAAY;AACvB,WAAW,MAAM;AACjB;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,eAAe;AAC1B;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;ACjNA;AACA;AACA;AACA;AACa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC3CA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,eAAe,mBAAO,CAAC,qDAAmB;AAC1C,wBAAwB,mBAAO,CAAC,2FAAsC;AACtE,eAAe,mBAAO,CAAC,uDAAoB;AAC3C,aAAa,mBAAO,CAAC,mDAAkB;AACvC,YAAY,mBAAO,CAAC,+CAAgB;;AAEpC;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS,uDAAuD;AAC3E,WAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,eAAe,kBAAkB;AACjC,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,oBAAoB;AAC/B,WAAW,QAAQ;AACnB,aAAa,WAAW;AACxB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,KAAK;AAChB,WAAW,WAAW;AACtB,aAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,eAAe;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC7YA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC;AACA;;AAEA,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,0DAAuB;AAC5C,iBAAiB,mBAAO,CAAC,8DAAyB;AAClD,wBAAwB,mBAAO,CAAC,8FAAyC;;AAEzE;AACA;AACA;AACA,eAAe,MAAM;AACrB,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,yCAAyC;AACzC;;AAEA;AACA,qBAAqB;;AAErB,iCAAiC;AACjC;;AAEA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,WAAW;AAC1B,eAAe,QAAQ;AACvB,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;;AAEb;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,KAAK;AACpB,eAAe,KAAK;AACpB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,KAAK;AACpB,eAAe,KAAK;AACpB,eAAe,MAAM;AACrB,eAAe,SAAS;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,6BAA6B;AAC5C;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC,qBAAqB,kBAAkB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,WAAW;AAC1B,iBAAiB,WAAW;AAC5B;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;;;;;;;;;;;;;AC7PA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,YAAY,mBAAO,CAAC,oDAAoB;AACxC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,iBAAiB,mBAAO,CAAC,8DAAyB;AAClD;;AAEA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,kBAAkB;AACjC,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,WAAW;AAC1B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;;AAEA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,WAAW;AAC1B,eAAe,QAAQ;AACvB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;AClNA;AACA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;;AAErC,iBAAiB,mBAAO,CAAC,8DAAyB;AAClD,YAAY,mBAAO,CAAC,oDAAoB;AACxC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb,qBAAqB,iBAAiB;AACtC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,iBAAiB;AAChC,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,uCAAuC,kBAAkB;AACzD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,eAAe,KAAK;AACpB,eAAe,KAAK;AACpB,eAAe,WAAW;AAC1B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,eAAe,KAAK;AACpB,eAAe,KAAK;AACpB,eAAe,WAAW;AAC1B,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,KAAK;AACpB,eAAe,KAAK;AACpB,eAAe,eAAe;AAC9B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;AACvB,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA,mGAAmG,MAAM;AACzG,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,8CAA8C;AAC9C,yCAAyC;AACzC,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,yCAAyC;AACzC,oCAAoC;AACpC,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AAC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ACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA,kCAAkC,aAAa;;AAE/C;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,sCAAsC;AAC/C,4BAA4B,kCAAkC;AAC9D,6BAA6B,mCAAmC;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK,wCAAwC;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,mCAAmC;;AAExC;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,iBAAiB,cAAc,eAAe;AACzD,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA,UAAU,eAAe;AACzB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO,gBAAgB,eAAe;AACjD,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,WAAW,YAAY;AACvB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2CAA2C;AAC3C;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,cAAc;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,cAAc,eAAe,oBAAoB;AAC5D,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA,oEAAoE,2BAA2B;AAC/F;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS,iBAAiB,eAAe;AAC3D,kBAAkB,WAAW;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,YAAY;AAC9B;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,kBAAkB,UAAU,wBAAwB;AACtE,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B,YAAY;AACZ;AACA,2BAA2B;AAC3B;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO,8BAA8B,eAAe;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS,0BAA0B,eAAe;AACpE,kBAAkB,OAAO,gBAAgB,eAAe;AACxD,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS,iBAAiB,eAAe;AAC3D;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS,wBAAwB,eAAe;AAClE;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ,sBAAsB,QAAQ;AAC9D;AACA;AACA;AACA,wBAAwB,QAAQ,sBAAsB;AACtD;AACA;AACA;AACA,wBAAwB,QAAQ,sBAAsB;AACtD;AACA;AACA;AACA,wBAAwB,QAAQ,qBAAqB;AACrD,wBAAwB,OAAO,qBAAqB;AACpD;AACA;AACA;AACA,wBAAwB,OAAO,mBAAmB;AAClD,wBAAwB,QAAQ,mBAAmB;AACnD;AACA;AACA;AACA,wBAAwB,OAAO,gBAAgB;AAC/C,wBAAwB,QAAQ,gBAAgB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,eAAe;AAC5B;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ,gBAAgB;AACnC,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,cAAc;AAC9B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,aAAa;AACxC,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA,uCAAuC,aAAa;AACpD,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA,qCAAqC,aAAa;AAClD,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,sBAAsB,cAAc,oBAAoB;AACnE;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS,wBAAwB,eAAe;AAC3D;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,KAAK;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,YAAY;AACvB,WAAW,KAAK;AAChB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,YAAY;AACvB,WAAW,KAAK;AAChB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA;;AAEA;;;;;;;;;;;;;AC/1DA;AACA;AACA;AACA;AACa;;AAE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aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2DAA2D,kCAAkC;AAC7F;AACA,aAAa;;AAEb;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA,mDAAmD,uBAAuB,iBAAiB;AAC3F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;AClQA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,qCAAW;AAChC,cAAc,mBAAO,CAAC,qDAAmB;AACzC,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AEA,+BAA+B,eAAe;;AAE9C;AACA;AACA,iBAAiB;AACjB,mBAAmB;AACnB,oBAAoB;AACpB,gBAAgB;AAChB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA,mDAAmD,uBAAuB,iBAAiB;AAC3F;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AClXA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,kBAAkB,mBAAO,CAAC,gDAAQ;;AAElC;AACA;AACA,gBAAgB;AAChB;AACA,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB,0BAA0B,SAAS;AACnC,0BAA0B,WAAW;AACrC;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;;AAEA;;AAEA;;;;;;;;;;;;;AClIA;AACA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,eAAe,mBAAO,CAAC,0DAAuB;;AAE9C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK;AACpB,eAAe,WAAW;AAC1B,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB,WAAW;AAC9B,qBAAqB,OAAO;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,eAAe,KAAK;AACpB,eAAe,OAAO;AACtB,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,mBAAmB,OAAO;AAC1B,qBAAqB,OAAO;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,UAAU,YAAY;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACzJA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,kBAAkB,mBAAO,CAAC,gDAAQ;AAClC,2BAA2B,mBAAO,CAAC,kEAAiB;AACpD,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C;;AAEA;AACA;AACA,gBAAgB;AAChB;AACA;AACA,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,sBAAsB;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,QAAQ;AAC1B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,qBAAqB;AACvC,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACjVA;AACA;AACA;AACA;AACa;;AAEb,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,mBAAmB,mBAAO,CAAC,kEAA2B;;AAEtD;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,UAAU,mBAAmB;AAC7B;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC1JA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,kBAAkB,mBAAO,CAAC,gDAAQ;AAClC,uBAAuB,mBAAO,CAAC,0DAAa;AAC5C,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C;AACA;AACA,gBAAgB;AAChB;AACA;AACA,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB,WAAW,KAAK;AAChB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,wBAAwB;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,SAAS;AAC3B,kBAAkB,eAAe;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,mBAAmB,KAAK;AACxB,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACzRA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,mBAAmB,mBAAO,CAAC,kEAA2B;;AAEtD;AACA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,UAAU,UAAU;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;;AChRA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,kBAAkB,mBAAO,CAAC,gDAAQ;AAClC,yBAAyB,mBAAO,CAAC,8DAAe;AAChD,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C;AACA;AACA,gBAAgB;AAChB;AACA;AACA,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB,WAAW,KAAK;AAChB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,sBAAsB;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,SAAS;AAC3B,kBAAkB,eAAe;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACrRA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,mBAAmB,mBAAO,CAAC,kEAA2B;;AAEtD;AACA;AACA,WAAW,cAAc;AACzB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,cAAc,YAAY;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;;AC5JA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,cAAc,mBAAO,CAAC,qDAAmB;AACzC,eAAe,mBAAO,CAAC,uDAAoB;;AAE3C;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,WAAW;AACtB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,WAAW;AAC7B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB,sBAAsB,YAAY;AAClC,sBAAsB,WAAW;AACjC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,WAAW;AAC7B;AACA;AACA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB,sBAAsB,YAAY;AAClC,sBAAsB,WAAW;AACjC;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,kBAAkB;AAClB,sBAAsB,YAAY;AAClC,sBAAsB,WAAW;AACjC;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;;ACpPA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;;AAE5C;AACA;AACA,gBAAgB;AAChB;AACA,WAAW,KAAK;AAChB,WAAW,MAAM;AACjB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA,sBAAsB;AACtB,0BAA0B,SAAS;AACnC,0BAA0B,WAAW;AACrC;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;;AAEA;;AAEA;;;;;;;;;;;;;AC1FA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA,cAAc,YAAY;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACtGA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;;AAErC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,YAAY,mBAAO,CAAC,oDAAoB;AACxC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,sBAAsB,mBAAO,CAAC,8CAAQ;AACtC,YAAY,mBAAO,CAAC,gEAAiB;AACrC,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,MAAM;AACjB,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,kBAAkB;AACpC,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;AC/VA;AACA;AACA;AACA;AACa;;AAEb,iBAAiB,mBAAO,CAAC,gDAAS;;AAElC;AACA;AACA,WAAW,cAAc;AACzB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3EA,iBAAiB,mBAAO,CAAC,kFAA0F;AACnH,iEAAiE;AACjE;;AAEA;AACA,2PAA2P,GAAG,6BAA6B,oBAAoB,SAAS,qBAAqB,QAAQ,uBAAuB;AAC5W;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR,CAAC;AACD,qFAAqF;;AAErF;AACA,kLAAkL,6BAA6B,oBAAoB,SAAS,qBAAqB,QAAQ,uBAAu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BAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,0DAAuB;AAC5C,WAAW,mBAAO,CAAC,qDAAa;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA,WAAW,QAAQ;AACnB,WAAW,MAAM;AACjB;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA,qCAAqC;;AAErC;AACA;;AAEA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,aAAa;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV,cAAc,YAAY;AAC1B,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB;;AAEA;AACA;AACA,WAAW,mBAAmB;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACzdA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;;AAErC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,sBAAsB,mBAAO,CAAC,8CAAQ;AACtC,qBAAqB,mBAAO,CAAC,wDAAa;AAC1C,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C;AACA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,MAAM;AACjB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,mBAAmB,KAAK;AACxB,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,YAAY;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,YAAY;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,YAAY;AACvB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB,kBAAkB,YAAY;AAC9B,kBAAkB,SAAS;AAC3B;AACA;AACA;;AAEA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB;AACA;;AAEA;AACA;;AAEA;;AAEA;;;;;;;;;;;;AC/QA,iBAAiB,mBAA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B,QAAQ,wBAAwB;AAClS;AACA;AACA,UAAU;AACV;AACA,QAAQ;AACR,CAAC,gBAAgB,E;;;;;;;;;;;;ACpEjB;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;;AAErC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,oBAAoB,mBAAO,CAAC,oEAA4B;AACxD,WAAW,mBAAO,CAAC,6DAAiB;AACpC,eAAe,mBAAO,CAAC,wDAAsB;;AAE7C;AACA;AACA,WAAW,UAAU;AACrB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA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AkB,SAAS;AAC3B;AACA;AACA;;AAEA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB;AACA;AACA;;AAEA;AACA,WAAW;AACX,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe;AACf,cAAc;AACd,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB;AACA;;AAEA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;AC7NA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;;AAErC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,iBAAiB,mBAAO,CAAC,gDAAS;;AAElC;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;;AClHA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;;AAE5C;AACA;AACA,gBAAgB;AAChB;AACA,WAAW,KAAK;AAChB,WAAW,SAAS;AACpB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO,gCAAgC;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB,sBAAsB,SAAS;AAC/B,sBAAsB,WAAW;AACjC;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;;AAEA;;;;;;;;;;;;;ACvGA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;;AAE5C;AACA;AACA,gBAAgB;AAChB;AACA,WAAW,KAAK;AAChB,WAAW,QAAQ;AACnB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO,gCAAgC;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,OAAO;AACzB;AACA;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;;;;;;;;;;;;;ACzFA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,YAAY,mBAAO,CAAC,oDAAoB;AACxC,aAAa,mBAAO,CAAC,0DAAuB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,KAAK;AACpB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,WAAW;AAC9B,mBAAmB,OAAO;AAC1B,qBAAqB,OAAO;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,KAAK;AACpB,eAAe,OAAO;AACtB,iBAAiB,SAAS;AAC1B;AACA;AACA;;AAEA;AACA,mBAAmB,OAAO;AAC1B,mBAAmB,OAAO;AAC1B,mBAAmB,OAAO;AAC1B,qBAAqB,OAAO;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA,eAAe,wBAAwB;AACvC;AACA;AACA;AACA;AACA;A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ClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,QAAQ;AAC1B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,kBAAkB;AACpC,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,SAAS;AAC3B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC3YA;AACA;AACA;AACA;AACa;;AAEb,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,mBAAmB,mBAAO,CAAC,kEAA2B;AACtD,YAAY,mBAAO,CAAC,sDAAqB;AACzC,aAAa,mBAAO,CAAC,0DAAuB;AAC5C;;AAEA;AACA;AACA;AACA,WAAW,aAAa;AACxB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;;AChSA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,0DAAuB;AAC5C,eAAe,mBAAO,CAAC,6CAAQ;AAC/B,oBAAoB,mBAAO,CAAC,uDAAa;;AAEzC;AACA;AACA,gBAAgB;AAChB;AACA;AACA,WAAW,KAAK;AAChB,WAAW,SAAS;AACpB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,eAAe;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,eAAe;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,SAAS;AAC3B;AACA;AACA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,OAAO;AACzB,mBAAmB,KAAK;AACxB,mBAAmB,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,KAAK;AACvB,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,k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AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sDAAsD,aAAa;AACnE,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,mBAAmB;AACrE;AACA;;AAEA;;;;;;;;;;;;;;ACxPA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,aAAa,mBAAO,CAAC,0DAAuB;AAC5C,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,eAAe,mBAAO,CAAC,6CAAQ;AAC/B,sBAAsB,mBAAO,CAAC,2DAAe;;AAE7C;AACA;AACA,gBAAgB;AAChB;AACA;AACA,WAAW,KAAK;AAChB,WAAW,SAAS;AACpB,WAAW,KAAK;AAChB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,YAAY;AACvB,aAAa,eAAe;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,SAAS;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,YAAY;AAC9B,kBAAkB,KAAK;AACvB,kBAAkB,WAAW;AAC7B,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAA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ACtB;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;;ACxMA;AACA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,uDAAoB;AACzC,eAAe,mBAAO,CAAC,uDAAoB;AAC3C,YAAY,mBAAO,CAAC,iDAAiB;AACrC,YAAY,mBAAO,CAAC,iDAAiB;;AAErC;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;;AAEA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;;AAEA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC3aA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,eAAe,mBAAO,CAAC,0DAAuB;;AAE9C;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,2BAA2B;AACtC,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC9MA;AACA;AACA;AACA;AACa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC1HA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,oBAAoB,mBAAO,CAAC,8CAAY;AACxC,kBAAkB,mBAAO,CAAC,oDAAe;AACzC,aAAa,mBAAO,CAAC,mDAAkB;;AAEvC;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,eAAe;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;;;;;;;;;;;;;AChGA;AACA;AACA;AACA;AACa;;AAEb;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC9PA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,qCAAW;AAChC,cAAc,mBAAO,CAAC,qDAAmB;AACzC,iBAAiB,mBAAO,CAAC,2DAAsB;AAC/C,WAAW,mBAAO,CAAC,qCAAQ;;AAE3B;AACA;AACA;AACA,aAAa;AACb,WAAW,YAAY;AACvB,WAAW,MAAM;AACjB;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc,WAAW;AACzB;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,cAAc;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC3FA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,aAAa,mBAAO,CAAC,0DAAuB;AAC5C,WAAW,mBAAO,CAAC,2EAA6B;AAChD,WAAW,mBAAO,CAAC,sCAAS;AAC5B,cAAc,mBAAO,CAAC,yDAAuB;AAC7C,qBAAqB,mBAAO,CAAC,+DAAkB;AAC/C;;AAEA;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,YAAY;AACvB,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA,aAAa,kEAAkE;AAC/E,aAAa;AACb;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,eAAe;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,eAAe;AAC1B,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,kCAAkC;AACxF;AACA,aAAa;AACb,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACrVA;AACA;AACA;AACA;AACa;;AAEb;AACA;AACA,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,WAAW,mBAAO,CAAC,8CAAiB;AACpC,oBAAoB,mBAAO,CAAC,oEAA4B;AACxD,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,WAAW,mBAAO,CAAC,yEAA4B;;AAE/C;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,WAAW,OAAO;AAClB;AACA,WAAW,YAAY;AACvB,WAAW,MAAM;AACjB;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC5RA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,aAAa,mBAAO,CAAC,yDAAwB;AAC7C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,WAAW,mBAAO,CAAC,8CAAiB;AACpC,cAAc,mBAAO,CAAC,4CAAY;AAClC,eAAe,mBAAO,CAAC,6FAAsC;AAC7D,mBAAmB,mBAAO,CAAC,6GAA8C;AACzE;AACA;;AAEA;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB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AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA,kBAAkB;AAClB,sBAAsB,SAAS;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,0DAA0D;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,yDAAyD;AACpE,aAAa,oBAAoB;AACjC;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,oBAAoB;AAC/B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY,QAAQ,OAAO,WAAW,SAAS;AAC/C,YAAY,MAAM,OAAO,SAAS,OAAO,UAAU,OAAO,WAAW,SAAS;AAC9E,YAAY,MAAM,OAAO,SAAS,OAAO,UAAU,OAAO,WAAW,SAAS;AAC9E,aAAa,mBAAmB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,OAAO;AACxB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC5mBA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,8CAAiB;AACpC,oBAAoB,mBAAO,CAAC,oEAA4B;AACxD,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,WAAW,mBAAO,CAAC,uGAA2C;AAC9D;;AAEA;AACA;AACA,aAAa;AACb,WAAW,YAAY;AACvB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY,QAAQ,OAAO,WAAW,SAAS;AAC/C,YAAY,MAAM,OAAO,SAAS,OAAO,UAAU,OAAO,WAAW,SAAS;AAC9E,YAAY,MAAM,OAAO,SAAS,OAAO,UAAU,OAAO,WAAW,SAAS;AAC9E,aAAa,mBAAmB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,OAAO;AACxB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;ACtQA;AACA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,iBAAiB,mBAAO,CAAC,sGAAoC;AAC7D,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,aAAa,mBAAO,CAAC,wCAAc;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,eAAe,OAAO;AACtB,eAAe,EAAE;AACjB,eAAe,WAAW;AAC1B,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,2EAA2E;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,KAAK;AACpB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,MAAM;AACrB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,OAAO;AACtB,eAAe,MAAM;AACrB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,kBAAkB;AACjC,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA,iDAAiD;AACjD,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA,iDAAiD;AACjD,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,+EAA+E,MAAM;AACrF,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,W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AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;ACrNA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,aAAa,mBAAO,CAAC,0DAAuB;AAC5C,WAAW,mBAAO,CAAC,8CAAiB;AACpC,sBAAsB,mBAAO,CAAC,gEAAmB;AACjD,eAAe,mBAAO,CAAC,6EAA8B;AACrD,mBAAmB,mBAAO,CAAC,kEAA2B;AACtD;AACA;;AAEA;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,eAAe;AAC1B;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,iBAAiB;AAC5B,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;;;;;;;;;;;;;AC/TA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,cAAc,mBAAO,CAAC,4CAAY;AAClC,WAAW,mBAAO,CAAC,6FAAsC;AACzD;;AAEA;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,eAAe;AAC1B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACtHA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,0DAAuB;AAC5C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,WAAW,mBAAO,CAAC,sCAAS;AAC5B,kBAAkB,mBAAO,CAAC,+EAA+B;;AAEzD;AACA;AACA,WAAW,OAAO;AAClB,WAAW,YAAY;AACvB,WAAW,MAAM;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA,cAAc;AACd;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,KAAK;AAChB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC/KA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,WAAW,mBAAO,CAAC,sCAAS;AAC5B,eAAe,mBAAO,CAAC,uEAA2B;;AAElD;AACA;;AAEA;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,YAAY;AACvB,WAAW,MAAM;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,kBAAkB;AAC7B,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,kBAAkB;AAC7B,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gEAAgE;AAChE,gEAAgE;AAChE,kEAAkE;;AAElE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,kBAAkB;AAC7B,WAAW,OAAO;AAClB,WAAW,KAAK;AAChB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;;AAEA;AACA,mBAAmB,kBAAkB;AACrC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA,aAAa;AACb,SAAS;AACT,KAAK;AACL;;AAEA;AACA,aAAa,KAAK;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;AC1SA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,aAAa,mBAAO,CAAC,sDAAqB;AAC1C,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,mBAAmB,mBAAO,CAAC,kEAA2B;AACtD,WAAW,mBAAO,CAAC,sCAAS;AAC5B,WAAW,mBAAO,CAAC,0CAAQ;AAC3B,iBAAiB,mBAAO,CAAC,8DAAyB;AAClD,eAAe,mBAAO,CAAC,+EAA+B;AACtD,yBAAyB,mBAAO,CAAC,2FAAqC;AACtE,8BAA8B,mBAAO,CAAC,qGAA0C;AAChF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,YAAY;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6CAA6C;;AAE7C;;AAEA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,WAAW,KAAK;AAChB;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,eAAe;AAC1B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,YAAY;AACvB,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,SAAS;;AAET;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC7pBA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,wCAAc;AACnC,cAAc,mBAAO,CAAC,wDAAsB;AAC5C,eAAe,mBAAO,CAAC,0DAAuB;AAC9C,aAAa,mBAAO,CAAC,0DAAuB;AAC5C,WAAW,mBAAO,CAAC,sCAAS;;AAE5B;AACA;AACA,WAAW,UAAU;AACrB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,WAAW,OAAO;AAClB;AACA,WAAW,OAAO;AAClB,WAAW,YAAY;AACvB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gEAAgE;;AAEhE;AACA;AACA,aAAa;AACb;AACA;AACA,iBAAiB;AACjB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,kCAAkC;AACxF;AACA,aAAa;AACb,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,KAAK;AAChB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;AClOA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,qCAAW;AAChC,cAAc,mBAAO,CAAC,qDAAmB;AACzC,eAAe,mBAAO,CAAC,uDAAoB;AAC3C,aAAa,mBAAO,CAAC,uDAAoB;AACzC,WAAW,mBAAO,CAAC,qCAAQ;;AAE3B;AACA;AACA,aAAa;AACb,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,eAAe;AAC1B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,eAAe;AAC1B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;ACrNA,8D;;;;;;;;;;;ACAA,6D","file":"tui-calendar.js","sourcesContent":[null," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.js\");\n","module.exports = require('handlebars/runtime');","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _handlebarsBase = require('./handlebars/base');\n\nvar base = _interopRequireWildcard(_handlebarsBase);\n\n// Each of these augment the Handlebars object. No need to setup here.\n// (This is done to easily share code between commonjs and browse envs)\n\nvar _handlebarsSafeString = require('./handlebars/safe-string');\n\nvar _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);\n\nvar _handlebarsException = require('./handlebars/exception');\n\nvar _handlebarsException2 = _interopRequireDefault(_handlebarsException);\n\nvar _handlebarsUtils = require('./handlebars/utils');\n\nvar Utils = _interopRequireWildcard(_handlebarsUtils);\n\nvar _handlebarsRuntime = require('./handlebars/runtime');\n\nvar runtime = _interopRequireWildcard(_handlebarsRuntime);\n\nvar _handlebarsNoConflict = require('./handlebars/no-conflict');\n\nvar _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);\n\n// For compatibility and usage outside of module systems, make the Handlebars object a namespace\nfunction create() {\n var hb = new base.HandlebarsEnvironment();\n\n Utils.extend(hb, base);\n hb.SafeString = _handlebarsSafeString2['default'];\n hb.Exception = _handlebarsException2['default'];\n hb.Utils = Utils;\n hb.escapeExpression = Utils.escapeExpression;\n\n hb.VM = runtime;\n hb.template = function (spec) {\n return runtime.template(spec, hb);\n };\n\n return hb;\n}\n\nvar inst = create();\ninst.create = create;\n\n_handlebarsNoConflict2['default'](inst);\n\ninst['default'] = inst;\n\nexports['default'] = inst;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OEJBQXNCLG1CQUFtQjs7SUFBN0IsSUFBSTs7Ozs7b0NBSU8sMEJBQTBCOzs7O21DQUMzQix3QkFBd0I7Ozs7K0JBQ3ZCLG9CQUFvQjs7SUFBL0IsS0FBSzs7aUNBQ1Esc0JBQXNCOzt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F0ZSgpO1xuaW5zdC5jcmVhdGUgPSBjcmVhdGU7XG5cbm5vQ29uZmxpY3QoaW5zdCk7XG5cbmluc3RbJ2RlZmF1bHQnXSA9IGluc3Q7XG5cbmV4cG9ydCBkZWZhdWx0IGluc3Q7XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\nexports.HandlebarsEnvironment = HandlebarsEnvironment;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('./utils');\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _helpers = require('./helpers');\n\nvar _decorators = require('./decorators');\n\nvar _logger = require('./logger');\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nvar VERSION = '4.5.3';\nexports.VERSION = VERSION;\nvar COMPILER_REVISION = 8;\nexports.COMPILER_REVISION = COMPILER_REVISION;\nvar LAST_COMPATIBLE_COMPILER_REVISION = 7;\n\nexports.LAST_COMPATIBLE_COMPILER_REVISION = LAST_COMPATIBLE_COMPILER_REVISION;\nvar REVISION_CHANGES = {\n 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it\n 2: '== 1.0.0-rc.3',\n 3: '== 1.0.0-rc.4',\n 4: '== 1.x.x',\n 5: '== 2.0.0-alpha.x',\n 6: '>= 2.0.0-beta.1',\n 7: '>= 4.0.0 <4.3.0',\n 8: '>= 4.3.0'\n};\n\nexports.REVISION_CHANGES = REVISION_CHANGES;\nvar objectType = '[object Object]';\n\nfunction HandlebarsEnvironment(helpers, partials, decorators) {\n this.helpers = helpers || {};\n this.partials = partials || {};\n this.decorators = decorators || {};\n\n _helpers.registerDefaultHelpers(this);\n _decorators.registerDefaultDecorators(this);\n}\n\nHandlebarsEnvironment.prototype = {\n constructor: HandlebarsEnvironment,\n\n logger: _logger2['default'],\n log: _logger2['default'].log,\n\n registerHelper: function registerHelper(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple helpers');\n }\n _utils.extend(this.helpers, name);\n } else {\n this.helpers[name] = fn;\n }\n },\n unregisterHelper: function unregisterHelper(name) {\n delete this.helpers[name];\n },\n\n registerPartial: function registerPartial(name, partial) {\n if (_utils.toString.call(name) === objectType) {\n _utils.extend(this.partials, name);\n } else {\n if (typeof partial === 'undefined') {\n throw new _exception2['default']('Attempting to register a partial called \"' + name + '\" as undefined');\n }\n this.partials[name] = partial;\n }\n },\n unregisterPartial: function unregisterPartial(name) {\n delete this.partials[name];\n },\n\n registerDecorator: function registerDecorator(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple decorators');\n }\n _utils.extend(this.decorators, name);\n } else {\n this.decorators[name] = fn;\n }\n },\n unregisterDecorator: function unregisterDecorator(name) {\n delete this.decorators[name];\n }\n};\n\nvar log = _logger2['default'].log;\n\nexports.log = log;\nexports.createFrame = _utils.createFrame;\nexports.logger = _logger2['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQTRDLFNBQVM7O3lCQUMvQixhQUFhOzs7O3VCQUNFLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNuQyxVQUFVOzs7O0FBRXRCLElBQU0sT0FBTyxHQUFHLE9BQU8sQ0FBQzs7QUFDeEIsSUFBTSxpQkFBaUIsR0FBRyxDQUFDLENBQUM7O0FBQzVCLElBQU0saUNBQWlDLEdBQUcsQ0FBQyxDQUFDOzs7QUFFNUMsSUFBTSxnQkFBZ0IsR0FBRztBQUM5QixHQUFDLEVBQUUsYUFBYTtBQUNoQixHQUFDLEVBQUUsZUFBZTtBQUNsQixHQUFDLEVBQUUsZUFBZTtBQUNsQixHQUFDLEVBQUUsVUF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GlhbHMsIG5hbWUpO1xuICAgIH0gZWxzZSB7XG4gICAgICBpZiAodHlwZW9mIHBhcnRpYWwgPT09ICd1bmRlZmluZWQnKSB7XG4gICAgICAgIHRocm93IG5ldyBFeGNlcHRpb24oYEF0dGVtcHRpbmcgdG8gcmVnaXN0ZXIgYSBwYXJ0aWFsIGNhbGxlZCBcIiR7bmFtZX1cIiBhcyB1bmRlZmluZWRgKTtcbiAgICAgIH1cbiAgICAgIHRoaXMucGFydGlhbHNbbmFtZV0gPSBwYXJ0aWFsO1xuICAgIH1cbiAgfSxcbiAgdW5yZWdpc3RlclBhcnRpYWw6IGZ1bmN0aW9uKG5hbWUpIHtcbiAgICBkZWxldGUgdGhpcy5wYXJ0aWFsc1tuYW1lXTtcbiAgfSxcblxuICByZWdpc3RlckRlY29yYXRvcjogZnVuY3Rpb24obmFtZSwgZm4pIHtcbiAgICBpZiAodG9TdHJpbmcuY2FsbChuYW1lKSA9PT0gb2JqZWN0VHlwZSkge1xuICAgICAgaWYgKGZuKSB7IHRocm93IG5ldyBFeGNlcHRpb24oJ0FyZyBub3Qgc3VwcG9ydGVkIHdpdGggbXVsdGlwbGUgZGVjb3JhdG9ycycpOyB9XG4gICAgICBleHRlbmQodGhpcy5kZWNvcmF0b3JzLCBuYW1lKTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5kZWNvcmF0b3JzW25hbWVdID0gZm47XG4gICAgfVxuICB9LFxuICB1bnJlZ2lzdGVyRGVjb3JhdG9yOiBmdW5jdGlvbihuYW1lKSB7XG4gICAgZGVsZXRlIHRoaXMuZGVjb3JhdG9yc1tuYW1lXTtcbiAgfVxufTtcblxuZXhwb3J0IGxldCBsb2cgPSBsb2dnZXIubG9nO1xuXG5leHBvcnQge2NyZWF0ZUZyYW1lLCBsb2dnZXJ9O1xuIl19\n","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultDecorators = registerDefaultDecorators;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _decoratorsInline = require('./decorators/inline');\n\nvar _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);\n\nfunction registerDefaultDecorators(instance) {\n _decoratorsInline2['default'](instance);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG5cbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerDecorator('inline', function (fn, props, container, options) {\n var ret = fn;\n if (!props.partials) {\n props.partials = {};\n ret = function (context, options) {\n // Create a new partials stack frame prior to exec.\n var original = container.partials;\n container.partials = _utils.extend({}, original, props.partials);\n var ret = fn(context, options);\n container.partials = original;\n return ret;\n };\n }\n\n props.partials[options.args[0]] = options.fn;\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hb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lZ2lzdGVyRGVjb3JhdG9yKCdpbmxpbmUnLCBmdW5jdGlvbihmbiwgcHJvcHMsIGNvbnRhaW5lciwgb3B0aW9ucykge1xuICAgIGxldCByZXQgPSBmbjtcbiAgICBpZiAoIXByb3BzLnBhcnRpYWxzKSB7XG4gICAgICBwcm9wcy5wYXJ0aWFscyA9IHt9O1xuICAgICAgcmV0ID0gZnVuY3Rpb24oY29udGV4dCwgb3B0aW9ucykge1xuICAgICAgICAvLyBDcmVhdGUgYSBuZXcgcGFydGlhbHMgc3RhY2sgZnJhbWUgcHJpb3IgdG8gZXhlYy5cbiAgICAgICAgbGV0IG9yaWdpbmFsID0gY29udGFpbmVyLnBhcnRpYWxzO1xuICAgICAgICBjb250YWluZXIucGFydGlhbHMgPSBleHRlbmQoe30sIG9yaWdpbmFsLCBwcm9wcy5wYXJ0aWFscyk7XG4gICAgICAgIGxldCByZXQgPSBmbihjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgICAgY29udGFpbmVyLnBhcnRpYWxzID0gb3JpZ2luYWw7XG4gICAgICAgIHJldHVybiByZXQ7XG4gICAgICB9O1xuICAgIH1cblxuICAgIHByb3BzLnBhcnRpYWxzW29wdGlvbnMuYXJnc1swXV0gPSBvcHRpb25zLmZuO1xuXG4gICAgcmV0dXJuIHJldDtcbiAgfSk7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\n\nvar errorProps = ['description', 'fileName', 'lineNumber', 'endLineNumber', 'message', 'name', 'number', 'stack'];\n\nfunction Exception(message, node) {\n var loc = node && node.loc,\n line = undefined,\n endLineNumber = undefined,\n column = undefined,\n endColumn = undefined;\n\n if (loc) {\n line = loc.start.line;\n endLineNumber = loc.end.line;\n column = loc.start.column;\n endColumn = loc.end.column;\n\n message += ' - ' + line + ':' + column;\n }\n\n var tmp = Error.prototype.constructor.call(this, message);\n\n // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n for (var idx = 0; idx < errorProps.length; idx++) {\n this[errorProps[idx]] = tmp[errorProps[idx]];\n }\n\n /* istanbul ignore else */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, Exception);\n }\n\n try {\n if (loc) {\n this.lineNumber = line;\n this.endLineNumber = endLineNumber;\n\n // Work around issue under safari where we can't directly set the column value\n /* istanbul ignore next */\n if (Object.defineProperty) {\n Object.defineProperty(this, 'column', {\n value: column,\n enumerable: true\n });\n Object.defineProperty(this, 'endColumn', {\n value: endColumn,\n enumerable: true\n });\n } else {\n this.column = column;\n this.endColumn = endColumn;\n }\n }\n } catch (nop) {\n /* Ignore if the browser is very particular */\n }\n}\n\nException.prototype = new Error();\n\nexports['default'] = Exception;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQ0EsSUFBTSxVQUFVLEdBQUcsQ0FBQyxhQUFhLEVBQUUsVUFBVSxFQUFFLFlBQVksRUFBRSxlQUFlLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxRQUFRLEVBQUUsT0FBTyxDQUFDLENBQUM7O0FBRXBILFNBQVMsU0FBUyxDQUFDLE9BQU8sRUFBRSxJQUFJLEVBQUU7QUFDaEMsTUFBSSxHQUFHLEdBQUcsSUFBSSxJQUFJLElBQUksQ0FBQyxHQUFHO01BQ3RCLElBQUksWUFBQTtNQUNKLGFBQWEsWUFBQTtNQUNiLE1BQU0sWUFBQTtNQUNOLFNBQVMsWUFBQSxDQUFDOztBQUVkLE1BQUksR0FBRyxFQUFFO0FBQ1AsUUFBSSxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDO0FBQ3RCLGlCQUFhLEdBQUcsR0FBRyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUM7QUFDN0IsVUFBTSxHQ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VxuICAgICAgICB9KTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMuY29sdW1uID0gY29sdW1uO1xuICAgICAgICB0aGlzLmVuZENvbHVtbiA9IGVuZENvbHVtbjtcbiAgICAgIH1cbiAgICB9XG4gIH0gY2F0Y2ggKG5vcCkge1xuICAgIC8qIElnbm9yZSBpZiB0aGUgYnJvd3NlciBpcyB2ZXJ5IHBhcnRpY3VsYXIgKi9cbiAgfVxufVxuXG5FeGNlcHRpb24ucHJvdG90eXBlID0gbmV3IEVycm9yKCk7XG5cbmV4cG9ydCBkZWZhdWx0IEV4Y2VwdGlvbjtcbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultHelpers = registerDefaultHelpers;\nexports.moveHelperToHooks = moveHelperToHooks;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _helpersBlockHelperMissing = require('./helpers/block-helper-missing');\n\nvar _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);\n\nvar _helpersEach = require('./helpers/each');\n\nvar _helpersEach2 = _interopRequireDefault(_helpersEach);\n\nvar _helpersHelperMissing = require('./helpers/helper-missing');\n\nvar _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);\n\nvar _helpersIf = require('./helpers/if');\n\nvar _helpersIf2 = _interopRequireDefault(_helpersIf);\n\nvar _helpersLog = require('./helpers/log');\n\nvar _helpersLog2 = _interopRequireDefault(_helpersLog);\n\nvar _helpersLookup = require('./helpers/lookup');\n\nvar _helpersLookup2 = _interopRequireDefault(_helpersLookup);\n\nvar _helpersWith = require('./helpers/with');\n\nvar _helpersWith2 = _interopRequireDefault(_helpersWith);\n\nfunction registerDefaultHelpers(instance) {\n _helpersBlockHelperMissing2['default'](instance);\n _helpersEach2['default'](instance);\n _helpersHelperMissing2['default'](instance);\n _helpersIf2['default'](instance);\n _helpersLog2['default'](instance);\n _helpersLookup2['default'](instance);\n _helpersWith2['default'](instance);\n}\n\nfunction moveHelperToHooks(instance, helperName, keepHelper) {\n if (instance.helpers[helperName]) {\n instance.hooks[helperName] = instance.helpers[helperName];\n if (!keepHelper) {\n delete instance.helpers[helperName];\n }\n }\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O3lDQUF1QyxnQ0FBZ0M7Ozs7MkJBQzlDLGdCQUFnQjs7OztvQ0FDUCwwQkFBMEI7Ozs7eUJBQ3JDLGNBQWM7Ozs7MEJBQ2IsZUFBZTs7Ozs2QkFDWixrQkFBa0I7Ozs7MkJBQ3BCLGdCQUFnQjs7OztBQUVsQyxTQUFTLHNCQUFzQixDQUFDLFFBQVEsRUFBRTtBQUMvQyx5Q0FBMkIsUUFBUSxDQUFDLENBQUM7QUFDckMsMkJBQWEsUUFBUSxDQUFDLENBQUM7QUFDdkIsb0NBQXNCLFFBQVEsQ0FBQyxDQUFDO0FBQ2hDLHlCQUFXLFFBQVEsQ0FBQyxDQUFDO0FBQ3JCLDBCQUFZLFFBQVEsQ0FBQyxDQUFDO0FBQ3RCLDZCQUFlLFFBQVEsQ0FBQyxDQUFDO0FBQ3pCLDJCQUFhLFFBQVEsQ0FBQyxDQUFDO0NBQ3hCOztBQUVNLFNBQVMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVUsRUFBRSxVQUFVLEVBQUU7QUFDbEUsTUFBSSxRQUFRLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxFQUFFO0FBQ2hDLFlBQVEsQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLEdBQUcsUUFBUSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztBQUMxRCxRQUFJLENBQUMsVUFBVSxFQUFFO0FBQ2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zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXSkge1xuICAgIGluc3RhbmNlLmhvb2tzW2hlbHBlck5hbWVdID0gaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXTtcbiAgICBpZiAoIWtlZXBIZWxwZXIpIHtcbiAgICAgIGRlbGV0ZSBpbnN0YW5jZS5oZWxwZXJzW2hlbHBlck5hbWVdO1xuICAgIH1cbiAgfVxufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('blockHelperMissing', function (context, options) {\n var inverse = options.inverse,\n fn = options.fn;\n\n if (context === true) {\n return fn(this);\n } else if (context === false || context == null) {\n return inverse(this);\n } else if (_utils.isArray(context)) {\n if (context.length > 0) {\n if (options.ids) {\n options.ids = [options.name];\n }\n\n return instance.helpers.each(context, options);\n } else {\n return inverse(this);\n }\n } else {\n if (options.data && options.ids) {\n var data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name);\n options = { data: data };\n }\n\n return fn(context, options);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBc0QsVUFBVTs7cUJBRWpELFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsb0JBQW9CLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3ZFLFFBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPO1FBQ3pCLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVwQixRQUFJLE9BQU8sS0FBSyxJQUFJLEV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lKTtcbiAgICAgICAgb3B0aW9ucyA9IHtkYXRhOiBkYXRhfTtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIGZuKGNvbnRleHQsIG9wdGlvbnMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('each', function (context, options) {\n if (!options) {\n throw new _exception2['default']('Must pass iterator to #each');\n }\n\n var fn = options.fn,\n inverse = options.inverse,\n i = 0,\n ret = '',\n data = undefined,\n contextPath = undefined;\n\n if (options.data && options.ids) {\n contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + '.';\n }\n\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n if (options.data) {\n data = _utils.createFrame(options.data);\n }\n\n function execIteration(field, index, last) {\n if (data) {\n data.key = field;\n data.index = index;\n data.first = index === 0;\n data.last = !!last;\n\n if (contextPath) {\n data.contextPath = contextPath + field;\n }\n }\n\n ret = ret + fn(context[field], {\n data: data,\n blockParams: _utils.blockParams([context[field], field], [contextPath + field, null])\n });\n }\n\n if (context && typeof context === 'object') {\n if (_utils.isArray(context)) {\n for (var j = context.length; i < j; i++) {\n if (i in context) {\n execIteration(i, i, i === context.length - 1);\n }\n }\n } else if (global.Symbol && context[global.Symbol.iterator]) {\n var newContext = [];\n var iterator = context[global.Symbol.iterator]();\n for (var it = iterator.next(); !it.done; it = iterator.next()) {\n newContext.push(it.value);\n }\n context = newContext;\n for (var j = context.length; i < j; i++) {\n execIteration(i, i, i === context.length - 1);\n }\n } else {\n (function () {\n var priorKey = undefined;\n\n Object.keys(context).forEach(function (key) {\n // We're running the iterations one step out of sync so we can detect\n // the last iteration without have to scan the object twice and create\n // an itermediate keys array.\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1);\n }\n priorKey = key;\n i++;\n });\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1, true);\n }\n })();\n }\n }\n\n if (i === 0) {\n ret = inverse(this);\n }\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvZWFjaC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQUErRSxVQUFVOzt5QkFDbkUsY0FBYzs7OztxQkFFckIsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3pELFFBQUksQ0FBQyxPQUFPLEVBQUU7QUFDWixZQUFNLDJCQUFjLDZCQUE2QixDQUFDLENBQUM7S0FDcEQ7O0FBRUQsUUFBSSxFQUFFLEdBQUcsT0FBTyxDQUFDLEVBQUU7UUFDZixPQUFPLEdBQUcsT0FBTyxDQUFDLE9BQU87UUFDekIsQ0FBQyxHQUFHLENBQUM7UUFDTCxHQUFHLEdBQUcsRUFBRTtRQUNSLElBQUksWUFBQTtRQUNKLFdBQVcsWUFBQSxDQUFDOztBQUVoQixRQUFJLE9BQU8sQ0FBQyxJQUFJLElBQUksT0FBTyxDQUFDLEdBQUcsRUFBRTtBQUMvQixpQkFBVyxHQUFHLHlCQUFrQixPQUFPLENBQUMsSUFBSSxDQUFDLFdBQVcsRUFBRSxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLEdBQUcsR0FBRyxDQUFDO0tBQ2pGOztBQUVELFFBQUksa0JBQVcsT0FBTyxDQUFDLEVBQUU7QUFBRSxhQUFPLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUF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ICAgICAgICAgIC8vIHRoZSBsYXN0IGl0ZXJhdGlvbiB3aXRob3V0IGhhdmUgdG8gc2NhbiB0aGUgb2JqZWN0IHR3aWNlIGFuZCBjcmVhdGVcbiAgICAgICAgICAvLyBhbiBpdGVybWVkaWF0ZSBrZXlzIGFycmF5LlxuICAgICAgICAgIGlmIChwcmlvcktleSAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSk7XG4gICAgICAgICAgfVxuICAgICAgICAgIHByaW9yS2V5ID0ga2V5O1xuICAgICAgICAgIGkrKztcbiAgICAgICAgfSk7XG4gICAgICAgIGlmIChwcmlvcktleSAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgZXhlY0l0ZXJhdGlvbihwcmlvcktleSwgaSAtIDEsIHRydWUpO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuXG4gICAgaWYgKGkgPT09IDApIHtcbiAgICAgIHJldCA9IGludmVyc2UodGhpcyk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHJldDtcbiAgfSk7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('helperMissing', function () /* [args, ]options */{\n if (arguments.length === 1) {\n // A missing field in a {{foo}} construct.\n return undefined;\n } else {\n // Someone is actually trying to call something, blow up.\n throw new _exception2['default']('Missing helper: \"' + arguments[arguments.length - 1].name + '\"');\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXM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O1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('if', function (conditional, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#if requires exactly one argument');\n }\n if (_utils.isFunction(conditional)) {\n conditional = conditional.call(this);\n }\n\n // Default behavior is to render the positive path if the value is truthy and not empty.\n // The `includeZero` option may be set to treat the condtional as purely not empty based on the\n // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.\n if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) {\n return options.inverse(this);\n } else {\n return options.fn(this);\n }\n });\n\n instance.registerHelper('unless', function (conditional, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#unless requires exactly one argument');\n }\n return instance.helpers['if'].call(this, conditional, { fn: options.inverse, inverse: options.fn, hash: options.hash });\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztxQkFBb0MsVUFBVTs7eUJBQ3hCLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLFVBQVMsV0FBVyxFQUFFLE9BQU8sRUFBRTtBQUMzRCxRQUFJLFNBQVMsQ0FBQyxNQUFNLElBQUksQ0FBQyxFQUFFO0FBQUUsWUFBTSwyQkFBYyxtQ0FBbUMsQ0FBQyxDQUFDO0tBQUM7QUFDdkYsUUFBSSxrQkFBVyxXQUFXLENBQUMsRUFBRTt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MubGVuZ3RoICE9IDIpIHsgdGhyb3cgbmV3IEV4Y2VwdGlvbignI3VubGVzcyByZXF1aXJlcyBleGFjdGx5IG9uZSBhcmd1bWVudCcpO31cbiAgICByZXR1cm4gaW5zdGFuY2UuaGVscGVyc1snaWYnXS5jYWxsKHRoaXMsIGNvbmRpdGlvbmFsLCB7Zm46IG9wdGlvbnMuaW52ZXJzZSwgaW52ZXJzZTogb3B0aW9ucy5mbiwgaGFzaDogb3B0aW9ucy5oYXNofSk7XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('log', function () /* message, options */{\n var args = [undefined],\n options = arguments[arguments.length - 1];\n for (var i = 0; i < arguments.length - 1; i++) {\n args.push(arguments[i]);\n }\n\n var level = 1;\n if (options.hash.level != null) {\n level = options.hash.level;\n } else if (options.data && options.data.level != null) {\n level = options.data.level;\n }\n args[0] = level;\n\n instance.log.apply(instance, args);\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ2xCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUM5QyxTQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7QUFDN0MsVUFBSSx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G4gICAgICBsZXZlbCA9IG9wdGlvbnMuaGFzaC5sZXZlbDtcbiAgICB9IGVsc2UgaWYgKG9wdGlvbnMuZGF0YSAmJiBvcHRpb25zLmRhdGEubGV2ZWwgIT0gbnVsbCkge1xuICAgICAgbGV2ZWwgPSBvcHRpb25zLmRhdGEubGV2ZWw7XG4gICAgfVxuICAgIGFyZ3NbMF0gPSBsZXZlbDtcblxuICAgIGluc3RhbmNlLmxvZyguLi4gYXJncyk7XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\nvar dangerousPropertyRegex = /^(constructor|__defineGetter__|__defineSetter__|__lookupGetter__|__proto__)$/;\n\nexports.dangerousPropertyRegex = dangerousPropertyRegex;\n\nexports['default'] = function (instance) {\n instance.registerHelper('lookup', function (obj, field) {\n if (!obj) {\n return obj;\n }\n if (dangerousPropertyRegex.test(String(field)) && !Object.prototype.propertyIsEnumerable.call(obj, field)) {\n return undefined;\n }\n return obj[field];\n });\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9va3VwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFPLElBQU0sc0JBQXNCLEdBQUcsOEVBQThFLENBQUM7Ozs7cUJBRXRHLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsUUFBUSxFQUFFLFVBQVMsR0FBRyxFQUFFLEtBQUssRUFBRTtBQUNyRCxRQUFJLENBQUMsR0FBRyxFQUFFO0FBQ1IsYUFBTyxHQUFHLENBQUM7S0FDWjtBQUNELFFBQUksc0JBQXNCLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLFNBQVMsQ0FBQyxvQkFBb0IsQ0FBQyxJQUFJLENBQUMsR0FBRyxFQUFFLEtBQUssQ0FBQyxFQUFFO0FBQ3pHLGFBQU8sU0FBUyxDQUFDO0tBQ2xCO0FBQ0QsV0FBTyxHQUFHLENBQUMsS0FBSyxDQUFDLENBQUM7R0FDbkIsQ0FBQyxDQUFDO0NBQ0oiLCJmaWxlIjoibG9va3VwLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IGRhbmdlcm91c1Byb3BlcnR5UmVnZXggPSAvXihjb25zdHJ1Y3RvcnxfX2RlZmluZUdldHRlcl9ffF9fZGVmaW5lU2V0dGVyX198X19sb29rdXBHZXR0ZXJfX3xfX3Byb3RvX18pJC87XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uKGluc3RhbmNlKSB7XG4gIGluc3RhbmNlLnJlZ2lzdGVySGVscGVyKCdsb29rdXAnLCBmdW5jdGlvbihvYmosIGZpZWxkKSB7XG4gICAgaWYgKCFvYmopIHtcbiAgICAgIHJldHVybiBvYmo7XG4gICAgfVxuICAgIGlmIChkYW5nZXJvdXNQcm9wZXJ0eVJlZ2V4LnRlc3QoU3RyaW5nKGZpZWxkKSkgJiYgIU9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChvYmosIGZpZWxkKSkge1xuICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICB9XG4gICAgcmV0dXJuIG9ialtmaWVsZF07XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('with', function (context, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#with requires exactly one argument');\n }\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n var fn = options.fn;\n\n if (!_utils.isEmpty(context)) {\n var data = options.data;\n if (options.data && options.ids) {\n data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]);\n }\n\n return fn(context, {\n data: data,\n blockParams: _utils.blockParams([context], [data && data.contextPath])\n });\n } else {\n return options.inverse(this);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQUFpRixVQUFVOzt5QkFDckUsY0FBYzs7OztxQkFFckIsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3pELFFBQUksU0FBUyxDQUFDLE1BQU0sSUFBSSxDQUFDLEVBQUU7QUFBRSxZQUFNLDJCQUFjLHFDQUFxQyxDQUFDLENBQUM7S0FBQztBQUN6RixRQUFJLGtCQUFXLE9BQU8sQ0FBQyxFQUFFO0FBQUUsYUFBTyxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7S0FBRTs7QUFFMUQsUUFBSSxFQUFFLEdBQUcsT0FBTyxDQUFDLEVBQUUsQ0FBQzs7QUFFcEIsUUFBSSxDQUFDLGVBQVEsT0FBTyxDQUFDLEVBQUU7QUFDckIsVUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQztBQUN4QixVQUFJLE9BQU8sQ0FBQyxJQUFJLElBQUksT0FBTyxDQUFDLEdBQUcsRUFBRTtBQUMvQixZQUFJLEdBQUcsbUJBQVksT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQ2pDLFlBQUksQ0FBQyxXQUFXLEdBQUc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vbnRleHQpKSB7XG4gICAgICBsZXQgZGF0YSA9IG9wdGlvbnMuZGF0YTtcbiAgICAgIGlmIChvcHRpb25zLmRhdGEgJiYgb3B0aW9ucy5pZHMpIHtcbiAgICAgICAgZGF0YSA9IGNyZWF0ZUZyYW1lKG9wdGlvbnMuZGF0YSk7XG4gICAgICAgIGRhdGEuY29udGV4dFBhdGggPSBhcHBlbmRDb250ZXh0UGF0aChvcHRpb25zLmRhdGEuY29udGV4dFBhdGgsIG9wdGlvbnMuaWRzWzBdKTtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIGZuKGNvbnRleHQsIHtcbiAgICAgICAgZGF0YTogZGF0YSxcbiAgICAgICAgYmxvY2tQYXJhbXM6IGJsb2NrUGFyYW1zKFtjb250ZXh0XSwgW2RhdGEgJiYgZGF0YS5jb250ZXh0UGF0aF0pXG4gICAgICB9KTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIG9wdGlvbnMuaW52ZXJzZSh0aGlzKTtcbiAgICB9XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('./utils');\n\nvar logger = {\n methodMap: ['debug', 'info', 'warn', 'error'],\n level: 'info',\n\n // Maps a given level value to the `methodMap` indexes above.\n lookupLevel: function lookupLevel(level) {\n if (typeof level === 'string') {\n var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase());\n if (levelMap >= 0) {\n level = levelMap;\n } else {\n level = parseInt(level, 10);\n }\n }\n\n return level;\n },\n\n // Can be overridden in the host environment\n log: function log(level) {\n level = logger.lookupLevel(level);\n\n if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) {\n var method = logger.methodMap[level];\n if (!console[method]) {\n // eslint-disable-line no-console\n method = 'log';\n }\n\n for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n message[_key - 1] = arguments[_key];\n }\n\n console[method].apply(console, message); // eslint-disable-line no-console\n }\n }\n};\n\nexports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gbG9nZ2VyLmxvb2t1cExldmVsKGxldmVsKTtcblxuICAgIGlmICh0eXBlb2YgY29uc29sZSAhPT0gJ3VuZGVmaW5lZCcgJiYgbG9nZ2VyLmxvb2t1cExldmVsKGxvZ2dlci5sZXZlbCkgPD0gbGV2ZWwpIHtcbiAgICAgIGxldCBtZXRob2QgPSBsb2dnZXIubWV0aG9kTWFwW2xldmVsXTtcbiAgICAgIGlmICghY29uc29sZVttZXRob2RdKSB7IC8vIGVzbGludC1kaXNhYmxlLWxpbmUgbm8tY29uc29sZVxuICAgICAgICBtZXRob2QgPSAnbG9nJztcbiAgICAgIH1cbiAgICAgIGNvbnNvbGVbbWV0aG9kXSguLi5tZXNzYWdlKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgfVxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBsb2dnZXI7XG4iXX0=\n","/* global window */\n'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (Handlebars) {\n /* istanbul ignore next */\n var root = typeof global !== 'undefined' ? global : window,\n $Handlebars = root.Handlebars;\n /* istanbul ignore next */\n Handlebars.noConflict = function () {\n if (root.Handlebars === Handlebars) {\n root.Handlebars = $Handlebars;\n }\n return Handlebars;\n };\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL25vLWNvbmZsaWN0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O3FCQUNlLFVBQVMsVUFBVSxFQUFFOztBQUVsQyxNQUFJLElBQUksR0FBRyxPQUFPLE1BQU0sS0FBSyxXQUFXLEdBQUcsTUFBTSxHQUFHLE1BQU07TUFDdEQsV0FBVyxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUM7O0FBRWxDLFlBQVUsQ0FBQyxVQUFVLEdBQUcsWUFBVztBQUNqQyxRQUFJLElBQUksQ0FBQyxVQUFVLEtBQUssVUFBVSxFQUFFO0FBQ2xDLFVBQUksQ0FBQyxVQUFVLEdBQUcsV0FBVyxDQUFDO0tBQy9CO0FBQ0QsV0FBTyxVQUFVLENBQUM7R0FDbkIsQ0FBQztDQUNIIiwiZmlsZSI6Im5vLWNvbmZsaWN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyogZ2xvYmFsIHdpbmRvdyAqL1xuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oSGFuZGxlYmFycykge1xuICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICBsZXQgcm9vdCA9IHR5cGVvZiBnbG9iYWwgIT09ICd1bmRlZmluZWQnID8gZ2xvYmFsIDogd2luZG93LFxuICAgICAgJEhhbmRsZWJhcnMgPSByb290LkhhbmRsZWJhcnM7XG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gIEhhbmRsZWJhcnMubm9Db25mbGljdCA9IGZ1bmN0aW9uKCkge1xuICAgIGlmIChyb290LkhhbmRsZWJhcnMgPT09IEhhbmRsZWJhcnMpIHtcbiAgICAgIHJvb3QuSGFuZGxlYmFycyA9ICRIYW5kbGViYXJzO1xuICAgIH1cbiAgICByZXR1cm4gSGFuZGxlYmFycztcbiAgfTtcbn1cbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\nexports.checkRevision = checkRevision;\nexports.template = template;\nexports.wrapProgram = wrapProgram;\nexports.resolvePartial = resolvePartial;\nexports.invokePartial = invokePartial;\nexports.noop = noop;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _utils = require('./utils');\n\nvar Utils = _interopRequireWildcard(_utils);\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _base = require('./base');\n\nvar _helpers = require('./helpers');\n\nfunction checkRevision(compilerInfo) {\n var compilerRevision = compilerInfo && compilerInfo[0] || 1,\n currentRevision = _base.COMPILER_REVISION;\n\n if (compilerRevision >= _base.LAST_COMPATIBLE_COMPILER_REVISION && compilerRevision <= _base.COMPILER_REVISION) {\n return;\n }\n\n if (compilerRevision < _base.LAST_COMPATIBLE_COMPILER_REVISION) {\n var runtimeVersions = _base.REVISION_CHANGES[currentRevision],\n compilerVersions = _base.REVISION_CHANGES[compilerRevision];\n throw new _exception2['default']('Template was precompiled with an older version of Handlebars than the current runtime. ' + 'Please update your precompiler to a newer version (' + runtimeVersions + ') or downgrade your runtime to an older version (' + compilerVersions + ').');\n } else {\n // Use the embedded version info since the runtime doesn't know about this revision yet\n throw new _exception2['default']('Template was precompiled with a newer version of Handlebars than the current runtime. ' + 'Please update your runtime to a newer version (' + compilerInfo[1] + ').');\n }\n}\n\nfunction template(templateSpec, env) {\n\n /* istanbul ignore next */\n if (!env) {\n throw new _exception2['default']('No environment passed to template');\n }\n if (!templateSpec || !templateSpec.main) {\n throw new _exception2['default']('Unknown template object: ' + typeof templateSpec);\n }\n\n templateSpec.main.decorator = templateSpec.main_d;\n\n // Note: Using env.VM references rather than local var references throughout this section to allow\n // for external users to override these as pseudo-supported APIs.\n env.VM.checkRevision(templateSpec.compiler);\n\n // backwards compatibility for precompiled templates with compiler-version 7 (<4.3.0)\n var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;\n\n function invokePartialWrapper(partial, context, options) {\n if (options.hash) {\n context = Utils.extend({}, context, options.hash);\n if (options.ids) {\n options.ids[0] = true;\n }\n }\n partial = env.VM.resolvePartial.call(this, partial, context, options);\n\n var optionsWithHooks = Utils.extend({}, options, { hooks: this.hooks });\n\n var result = env.VM.invokePartial.call(this, partial, context, optionsWithHooks);\n\n if (result == null && env.compile) {\n options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);\n result = options.partials[options.name](context, optionsWithHooks);\n }\n if (result != null) {\n if (options.indent) {\n var lines = result.split('\\n');\n for (var i = 0, l = lines.length; i < l; i++) {\n if (!lines[i] && i + 1 === l) {\n break;\n }\n\n lines[i] = options.indent + lines[i];\n }\n result = lines.join('\\n');\n }\n return result;\n } else {\n throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode');\n }\n }\n\n // Just add water\n var container = {\n strict: function strict(obj, name, loc) {\n if (!obj || !(name in obj)) {\n throw new _exception2['default']('\"' + name + '\" not defined in ' + obj, { loc: loc });\n }\n return obj[name];\n },\n lookup: function lookup(depths, name) {\n var len = depths.length;\n for (var i = 0; i < len; i++) {\n if (depths[i] && depths[i][name] != null) {\n return depths[i][name];\n }\n }\n },\n lambda: function lambda(current, context) {\n return typeof current === 'function' ? current.call(context) : current;\n },\n\n escapeExpression: Utils.escapeExpression,\n invokePartial: invokePartialWrapper,\n\n fn: function fn(i) {\n var ret = templateSpec[i];\n ret.decorator = templateSpec[i + '_d'];\n return ret;\n },\n\n programs: [],\n program: function program(i, data, declaredBlockParams, blockParams, depths) {\n var programWrapper = this.programs[i],\n fn = this.fn(i);\n if (data || depths || blockParams || declaredBlockParams) {\n programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);\n } else if (!programWrapper) {\n programWrapper = this.programs[i] = wrapProgram(this, i, fn);\n }\n return programWrapper;\n },\n\n data: function data(value, depth) {\n while (value && depth--) {\n value = value._parent;\n }\n return value;\n },\n // An empty object to use as replacement for null-contexts\n nullContext: Object.seal({}),\n\n noop: env.VM.noop,\n compilerInfo: templateSpec.compiler\n };\n\n function ret(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var data = options.data;\n\n ret._setup(options);\n if (!options.partial && templateSpec.useData) {\n data = initData(context, data);\n }\n var depths = undefined,\n blockParams = templateSpec.useBlockParams ? [] : undefined;\n if (templateSpec.useDepths) {\n if (options.depths) {\n depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;\n } else {\n depths = [context];\n }\n }\n\n function main(context /*, options*/) {\n return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);\n }\n main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);\n return main(context, options);\n }\n ret.isTop = true;\n\n ret._setup = function (options) {\n if (!options.partial) {\n container.helpers = Utils.extend({}, env.helpers, options.helpers);\n\n if (templateSpec.usePartial) {\n container.partials = Utils.extend({}, env.partials, options.partials);\n }\n if (templateSpec.usePartial || templateSpec.useDecorators) {\n container.decorators = Utils.extend({}, env.decorators, options.decorators);\n }\n\n container.hooks = {};\n\n var keepHelperInHelpers = options.allowCallsToHelperMissing || templateWasPrecompiledWithCompilerV7;\n _helpers.moveHelperToHooks(container, 'helperMissing', keepHelperInHelpers);\n _helpers.moveHelperToHooks(container, 'blockHelperMissing', keepHelperInHelpers);\n } else {\n container.helpers = options.helpers;\n container.partials = options.partials;\n container.decorators = options.decorators;\n container.hooks = options.hooks;\n }\n };\n\n ret._child = function (i, data, blockParams, depths) {\n if (templateSpec.useBlockParams && !blockParams) {\n throw new _exception2['default']('must pass block params');\n }\n if (templateSpec.useDepths && !depths) {\n throw new _exception2['default']('must pass parent depths');\n }\n\n return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);\n };\n return ret;\n}\n\nfunction wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {\n function prog(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var currentDepths = depths;\n if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {\n currentDepths = [context].concat(depths);\n }\n\n return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);\n }\n\n prog = executeDecorators(fn, prog, container, depths, data, blockParams);\n\n prog.program = i;\n prog.depth = depths ? depths.length : 0;\n prog.blockParams = declaredBlockParams || 0;\n return prog;\n}\n\n/**\n * This is currently part of the official API, therefore implementation details should not be changed.\n */\n\nfunction resolvePartial(partial, context, options) {\n if (!partial) {\n if (options.name === '@partial-block') {\n partial = options.data['partial-block'];\n } else {\n partial = options.partials[options.name];\n }\n } else if (!partial.call && !options.name) {\n // This is a dynamic partial that returned a string\n options.name = partial;\n partial = options.partials[partial];\n }\n return partial;\n}\n\nfunction invokePartial(partial, context, options) {\n // Use the current closure context to save the partial-block if this partial\n var currentPartialBlock = options.data && options.data['partial-block'];\n options.partial = true;\n if (options.ids) {\n options.data.contextPath = options.ids[0] || options.data.contextPath;\n }\n\n var partialBlock = undefined;\n if (options.fn && options.fn !== noop) {\n (function () {\n options.data = _base.createFrame(options.data);\n // Wrapper function to get access to currentPartialBlock from the closure\n var fn = options.fn;\n partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n // Restore the partial-block from the closure for the execution of the block\n // i.e. the part inside the block of the partial call.\n options.data = _base.createFrame(options.data);\n options.data['partial-block'] = currentPartialBlock;\n return fn(context, options);\n };\n if (fn.partials) {\n options.partials = Utils.extend({}, options.partials, fn.partials);\n }\n })();\n }\n\n if (partial === undefined && partialBlock) {\n partial = partialBlock;\n }\n\n if (partial === undefined) {\n throw new _exception2['default']('The partial ' + options.name + ' could not be found');\n } else if (partial instanceof Function) {\n return partial(context, options);\n }\n}\n\nfunction noop() {\n return '';\n}\n\nfunction initData(context, data) {\n if (!data || !('root' in data)) {\n data = data ? _base.createFrame(data) : {};\n data.root = context;\n }\n return data;\n}\n\nfunction executeDecorators(fn, prog, container, depths, data, blockParams) {\n if (fn.decorator) {\n var props = {};\n prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);\n Utils.extend(prog, props);\n }\n return prog;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpb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gaW5zdGFuY2VvZiBGdW5jdGlvbikge1xuICAgIHJldHVybiBwYXJ0aWFsKGNvbnRleHQsIG9wdGlvbnMpO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBub29wKCkgeyByZXR1cm4gJyc7IH1cblxuZnVuY3Rpb24gaW5pdERhdGEoY29udGV4dCwgZGF0YSkge1xuICBpZiAoIWRhdGEgfHwgISgncm9vdCcgaW4gZGF0YSkpIHtcbiAgICBkYXRhID0gZGF0YSA/IGNyZWF0ZUZyYW1lKGRhdGEpIDoge307XG4gICAgZGF0YS5yb290ID0gY29udGV4dDtcbiAgfVxuICByZXR1cm4gZGF0YTtcbn1cblxuZnVuY3Rpb24gZXhlY3V0ZURlY29yYXRvcnMoZm4sIHByb2csIGNvbnRhaW5lciwgZGVwdGhzLCBkYXRhLCBibG9ja1BhcmFtcykge1xuICBpZiAoZm4uZGVjb3JhdG9yKSB7XG4gICAgbGV0IHByb3BzID0ge307XG4gICAgcHJvZyA9IGZuLmRlY29yYXRvcihwcm9nLCBwcm9wcywgY29udGFpbmVyLCBkZXB0aHMgJiYgZGVwdGhzWzBdLCBkYXRhLCBibG9ja1BhcmFtcywgZGVwdGhzKTtcbiAgICBVdGlscy5leHRlbmQocHJvZywgcHJvcHMpO1xuICB9XG4gIHJldHVybiBwcm9nO1xufVxuIl19\n","// Build out our basic SafeString type\n'use strict';\n\nexports.__esModule = true;\nfunction SafeString(string) {\n this.string = string;\n}\n\nSafeString.prototype.toString = SafeString.prototype.toHTML = function () {\n return '' + this.string;\n};\n\nexports['default'] = SafeString;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3NhZmUtc3RyaW5nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUU7QUFDMUIsTUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7Q0FDdEI7O0FBRUQsVUFBVSxDQUFDLFNBQVMsQ0FBQyxRQUFRLEdBQUcsVUFBVSxDQUFDLFNBQVMsQ0FBQyxNQUFNLEdBQUcsWUFBVztBQUN2RSxTQUFPLEVBQUUsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDO0NBQ3pCLENBQUM7O3FCQUVhLFVBQVUiLCJmaWxlIjoic2FmZS1zdHJpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBCdWlsZCBvdXQgb3VyIGJhc2ljIFNhZmVTdHJpbmcgdHlwZVxuZnVuY3Rpb24gU2FmZVN0cmluZyhzdHJpbmcpIHtcbiAgdGhpcy5zdHJpbmcgPSBzdHJpbmc7XG59XG5cblNhZmVTdHJpbmcucHJvdG90eXBlLnRvU3RyaW5nID0gU2FmZVN0cmluZy5wcm90b3R5cGUudG9IVE1MID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiAnJyArIHRoaXMuc3RyaW5nO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2FmZVN0cmluZztcbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\nexports.extend = extend;\nexports.indexOf = indexOf;\nexports.escapeExpression = escapeExpression;\nexports.isEmpty = isEmpty;\nexports.createFrame = createFrame;\nexports.blockParams = blockParams;\nexports.appendContextPath = appendContextPath;\n\nvar escape = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`',\n '=': '='\n};\n\nvar badChars = /[&<>\"'`=]/g,\n possible = /[&<>\"'`=]/;\n\nfunction escapeChar(chr) {\n return escape[chr];\n}\n\nfunction extend(obj /* , ...source */) {\n for (var i = 1; i < arguments.length; i++) {\n for (var key in arguments[i]) {\n if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {\n obj[key] = arguments[i][key];\n }\n }\n }\n\n return obj;\n}\n\nvar toString = Object.prototype.toString;\n\nexports.toString = toString;\n// Sourced from lodash\n// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt\n/* eslint-disable func-style */\nvar isFunction = function isFunction(value) {\n return typeof value === 'function';\n};\n// fallback for older versions of Chrome and Safari\n/* istanbul ignore next */\nif (isFunction(/x/)) {\n exports.isFunction = isFunction = function (value) {\n return typeof value === 'function' && toString.call(value) === '[object Function]';\n };\n}\nexports.isFunction = isFunction;\n\n/* eslint-enable func-style */\n\n/* istanbul ignore next */\nvar isArray = Array.isArray || function (value) {\n return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false;\n};\n\nexports.isArray = isArray;\n// Older IE versions do not directly support indexOf so we must implement our own, sadly.\n\nfunction indexOf(array, value) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (array[i] === value) {\n return i;\n }\n }\n return -1;\n}\n\nfunction escapeExpression(string) {\n if (typeof string !== 'string') {\n // don't escape SafeStrings, since they're already safe\n if (string && string.toHTML) {\n return string.toHTML();\n } else if (string == null) {\n return '';\n } else if (!string) {\n return string + '';\n }\n\n // Force a string conversion as this will be done by the append regardless and\n // the regex test will do this transparently behind the scenes, causing issues if\n // an object's to string has escaped characters in it.\n string = '' + string;\n }\n\n if (!possible.test(string)) {\n return string;\n }\n return string.replace(badChars, escapeChar);\n}\n\nfunction isEmpty(value) {\n if (!value && value !== 0) {\n return true;\n } else if (isArray(value) && value.length === 0) {\n return true;\n } else {\n return false;\n }\n}\n\nfunction createFrame(object) {\n var frame = extend({}, object);\n frame._parent = object;\n return frame;\n}\n\nfunction blockParams(params, ids) {\n params.path = ids;\n return params;\n}\n\nfunction appendContextPath(contextPath, id) {\n return (contextPath ? contextPath + '.' : '') + id;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQ0Es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jYXBlQ2hhcik7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc0VtcHR5KHZhbHVlKSB7XG4gIGlmICghdmFsdWUgJiYgdmFsdWUgIT09IDApIHtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSBlbHNlIGlmIChpc0FycmF5KHZhbHVlKSAmJiB2YWx1ZS5sZW5ndGggPT09IDApIHtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZUZyYW1lKG9iamVjdCkge1xuICBsZXQgZnJhbWUgPSBleHRlbmQoe30sIG9iamVjdCk7XG4gIGZyYW1lLl9wYXJlbnQgPSBvYmplY3Q7XG4gIHJldHVybiBmcmFtZTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGJsb2NrUGFyYW1zKHBhcmFtcywgaWRzKSB7XG4gIHBhcmFtcy5wYXRoID0gaWRzO1xuICByZXR1cm4gcGFyYW1zO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYXBwZW5kQ29udGV4dFBhdGgoY29udGV4dFBhdGgsIGlkKSB7XG4gIHJldHVybiAoY29udGV4dFBhdGggPyBjb250ZXh0UGF0aCArICcuJyA6ICcnKSArIGlkO1xufVxuIl19\n","// Create a simple path alias to allow browserify to resolve\n// the runtime on a supported path.\nmodule.exports = require('./dist/cjs/handlebars.runtime')['default'];\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","// extracted by mini-css-extract-plugin","/**\n * @fileoverview The entry file of fullcalendar\n * @author NHN FE Development Lab\n */\n\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Calendar = require('./js/factory/calendar');\n\nrequire('./css/main.styl');\nrequire('./js/view/template/helper');\n\n// for jquery\nif (global.jQuery) {\n global.jQuery.fn.tuiCalendar = function() {\n var options, instance;\n\n var el = this.get(0);\n var args = Array.prototype.slice.apply(arguments);\n\n if (el) {\n options = util.pick(args, 0) || {};\n\n instance = global.jQuery.data(el, 'tuiCalendar');\n\n if (instance) {\n if (typeof options === 'string' && instance[options]) {\n return instance[options].apply(instance, args.slice(1));\n }\n } else {\n instance = new Calendar(el, options);\n global.jQuery.data(el, 'tuiCalendar', instance);\n }\n }\n\n return this;\n };\n}\n\nmodule.exports = Calendar;\n","/**\n * @fileoverview Utility module for array sort, binary search.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar datetime = require('../common/datetime');\n\n/**\n * A module for sorting array.\n * @module array\n */\n\n/**********\n * Search\n **********/\n\n/**\n * search item index using binary search algorithm.\n *\n * the array must be sorted.\n * @param {array} arr array to search.\n * @param {(string|number|boolean)} search value to search.\n * @param {function} [fn] iteratee for retrieve each element's value to search.\n * @param {function} [compare] compare function for specific sort status. default is string ascending.\n * @returns {number} The number of item index searched. return negative number when no exist that item.\n * It can use insert index after Math.abs()\n * @example\n *\n * var arr = [1, 3, 7, 11, 15, 23];\n *\n * function sortNumber(a, b) {\n * return a - b;\n * }\n *\n * bsearch(arr, 15, null, sortNumber); // 4\n * bsearch(arr, 21, null, sortNumber); // -5\n *\n * arr.splice(Math.abs(bsearch(arr, 21, null, sortNumber)), 0, 21);\n * // [1, 2, 7, 11, 15, 21, 23]\n */\nfunction bsearch(arr, search, fn, compare) {\n var minIndex = 0,\n maxIndex = arr.length - 1,\n currentIndex,\n value,\n comp;\n\n compare = compare || stringASC;\n\n while (minIndex <= maxIndex) {\n currentIndex = (minIndex + maxIndex) / 2 | 0; // Math.floor\n value = fn ? fn(arr[currentIndex]) : arr[currentIndex];\n comp = compare(value, search);\n\n if (comp < 0) {\n minIndex = currentIndex + 1;\n } else if (comp > 0) {\n maxIndex = currentIndex - 1;\n } else {\n return currentIndex;\n }\n }\n\n return ~maxIndex;\n}\n\n/**********\n * Compare Functions\n **********/\n\n/**\n * compare function for array sort.\n *\n * sort array by ascending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanASC(a, b) {\n if (a !== b) {\n return a ? -1 : 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by descending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanDESC(a, b) {\n if (a !== b) {\n return a ? 1 : -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number ascending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberASC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return a - b;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number descending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberDESC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return b - a;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * Compare schedule models for sort.\n *\n * 1. all day schedule first.\n * 2. early start.\n * 3. longest duration.\n * 4. early created.\n * @param {Schedule|ScheduleViewModel} a The object schedule instance.\n * @param {Schedule|ScheduleViewModel} b The object schedule instance.\n * @returns {number} Result of comparison.\n */\nfunction scheduleASC(a, b) {\n var durationA, durationB;\n var allDayCompare, startsCompare;\n var modelA = a.valueOf();\n var modelB = b.valueOf();\n\n allDayCompare = booleanASC(modelA.isAllDay || a.hasMultiDates, modelB.isAllDay || b.hasMultiDates);\n\n if (allDayCompare) {\n return allDayCompare;\n }\n\n startsCompare = datetime.compare(a.getStarts(), b.getStarts());\n\n if (startsCompare) {\n return startsCompare;\n }\n\n durationA = a.duration();\n durationB = b.duration();\n\n if (durationA < durationB) {\n return 1;\n }\n if (durationA > durationB) {\n return -1;\n }\n\n return util.stamp(modelA) - util.stamp(modelB);\n}\n\nmodule.exports = {\n bsearch: bsearch,\n compare: {\n schedule: {\n asc: scheduleASC\n },\n bool: {\n asc: booleanASC,\n desc: booleanDESC\n },\n num: {\n asc: numberASC,\n desc: numberDESC\n },\n str: {\n asc: stringASC,\n desc: stringDESC,\n ascIgnoreCase: stringASCIgnoreCase,\n descIgnoreCase: stringDESCIgnoreCase\n }\n }\n};\n","/**\n * @fileoverview Add autoscroll feature to elements that prevented text selection.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domevent = require('../common/domevent');\nvar domutil = require('../common/domutil');\nvar Point = require('../common/point');\n\nvar SCROLL_INTERVAL = 30;\nvar SCROLL_MAX = 15;\nvar SCROLL_CLICK_INCREASED = 2; // In IE, the offset of the actual UI pixel when the scroll bar is clicked is offset.\n\n/**\n * Add autoscroll feature to elements that prevented text selection.\n * @constructor\n * @param {HTMLElement} container - HTMLElement to add autoscroll features.\n */\nfunction AutoScroll(container) {\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * @type {AutoScroll.DIRECTION}\n */\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n /**\n * @type {number}\n */\n this._offset = 0;\n\n /**\n * interval to scrolling\n * @type {number}\n */\n this._intervalID = 0;\n\n domevent.on(container, {\n 'mousedown': this._onMouseDown\n }, this);\n}\n\n/**\n * @enum\n */\nAutoScroll.DIRECTION = {\n INSIDE: 0,\n TOP: 1,\n RIGHT: 2,\n BOTTOM: 3,\n LEFT: 4\n};\n\n/**\n * Instance destroy method.\n */\nAutoScroll.prototype.destroy = function() {\n domevent.off(this.container, {\n 'mousedown': this._onMouseDown,\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n\n window.clearInterval(this._intervalID);\n this._intervalID = this._direction = this.container = null;\n};\n\n/**\n * Normalize ClientRect and calculate each position of edges.\n * @param {ClientRect} clientRect - ClientRect object of element.\n * @returns {object} edges.\n */\nAutoScroll.prototype._getEdgePositions = function(clientRect) {\n return {\n top: clientRect.top,\n right: clientRect.left + clientRect.width,\n bottom: clientRect.bottom,\n left: clientRect.left\n };\n};\n\n/**\n * Get element real size (\"real size\" -> size without scrollbar)\n * @param {HTMLElement} el - element want to know real size (\"real size\" -> size without scrollbar)\n * @returns {number[]} real size [width, height]\n */\nAutoScroll.prototype.getRealSize = function(el) {\n var computed = domutil.getComputedStyle(el),\n border,\n padding;\n\n border = parseFloat(computed.getPropertyValue('border-top-width')) +\n parseFloat(computed.getPropertyValue('border-bottom-width'));\n padding = parseFloat(computed.getPropertyValue('padding-top')) +\n parseFloat(computed.getPropertyValue('padding-bottom'));\n\n return [el.clientWidth + border + padding, el.clientHeight + border + padding];\n};\n\n/**\n * Check supplied element has scrollbar.\n * @param {HTMLElement} el - element want to know has scrollbar.\n * @returns {boolean[]} has scrollbar? [horizontal, vertical]\n */\nAutoScroll.prototype.hasScrollbar = function(el) {\n var realSize = this.getRealSize(el);\n\n return [\n el.offsetWidth > Math.ceil(realSize[0]),\n el.offsetHeight > Math.ceil(realSize[1])\n ];\n};\n\n/**\n * @param {HTMLElement} el - element want to know.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {boolean} mouse pointer is on the scrollbar?\n */\nAutoScroll.prototype.isOnScrollbar = function(el, mouseEvent) {\n var realSize = this.getRealSize(el),\n pos = domevent.getMousePosition(mouseEvent, el),\n mouseInScrollbar = false;\n\n mouseInScrollbar = (realSize[0] - SCROLL_CLICK_INCREASED < pos[0] ||\n realSize[1] - SCROLL_CLICK_INCREASED < pos[1]);\n\n return mouseInScrollbar;\n};\n\n/**\n * MouseDown event handler\n * @param {MouseEvent} mouseDownEvent - mouse down event\n */\nAutoScroll.prototype._onMouseDown = function(mouseDownEvent) {\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n // deactivate autoscroll feature when mouse is on the scrollbar. (IE)\n if (util.browser.msie && this.isOnScrollbar(this.container, mouseDownEvent)) {\n return;\n }\n\n window.clearInterval(this._intervalID);\n this._intervalID = window.setInterval(util.bind(this._onTick, this), SCROLL_INTERVAL);\n\n domevent.on(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * MouseMove event handler\n * @param {MouseEvent} mouseEvent - mouse move event object.\n */\nAutoScroll.prototype._onMouseMove = function(mouseEvent) {\n var edge = this._getEdgePositions(this.container.getBoundingClientRect()),\n pos = Point.n(domevent.getMousePosition(mouseEvent));\n\n if (pos.y >= edge.top && pos.y <= edge.bottom &&\n pos.x >= edge.left && pos.x <= edge.right) {\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n return;\n }\n\n if (pos.y < edge.top) {\n this._direction = AutoScroll.DIRECTION.TOP;\n this._offset = edge.top - pos.y;\n\n return;\n }\n\n if (pos.y > edge.bottom) {\n this._direction = AutoScroll.DIRECTION.BOTTOM;\n this._offset = pos.y - edge.bottom;\n\n return;\n }\n\n if (pos.x < edge.left) {\n this._direction = AutoScroll.DIRECTION.LEFT;\n this._offset = edge.left - pos.x;\n\n return;\n }\n\n this._direction = AutoScroll.DIRECTION.RIGHT;\n this._offset = pos.x - edge.right;\n};\n\n/**\n * MouseUp event handler.\n */\nAutoScroll.prototype._onMouseUp = function() {\n window.clearInterval(this._intervalID);\n this._intervalID = 0;\n this._direction = AutoScroll.DIRECTION.INSIDE;\n this._offset = 0;\n\n domevent.off(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * Interval tick event handler\n */\nAutoScroll.prototype._onTick = function() {\n var direction = this._direction,\n container,\n factor;\n\n if (!direction) {\n return;\n }\n\n container = this.container;\n factor = Math.min(this._offset, SCROLL_MAX);\n\n switch (direction) {\n case AutoScroll.DIRECTION.TOP:\n container.scrollTop -= factor;\n break;\n case AutoScroll.DIRECTION.RIGHT:\n container.scrollLeft += factor;\n break;\n case AutoScroll.DIRECTION.BOTTOM:\n container.scrollTop += factor;\n break;\n default:\n container.scrollLeft -= factor;\n break;\n }\n};\n\nmodule.exports = AutoScroll;\n","/**\n * @fileoverview Common collections.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachProp = util.forEachOwnProperties,\n forEachArr = util.forEachArray,\n isFunc = util.isFunction,\n isObj = util.isObject;\n\nvar aps = Array.prototype.slice;\n\n/**\n * Common collection.\n *\n * It need function for get model's unique id.\n *\n * if the function is not supplied then it use default function {@link Collection#getItemID}\n * @constructor\n * @param {function} [getItemIDFn] function for get model's id.\n */\nfunction Collection(getItemIDFn) {\n /**\n * @type {object.}\n */\n this.items = {};\n\n /**\n * @type {number}\n */\n this.length = 0;\n\n if (isFunc(getItemIDFn)) {\n /**\n * @type {function}\n */\n this.getItemID = getItemIDFn;\n }\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Combind supplied function filters and condition.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.and = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 0;\n\n for (; i < cnt; i += 1) {\n if (!filters[i].call(null, item)) {\n return false;\n }\n }\n\n return true;\n };\n};\n\n/**\n * Combine multiple function filters with OR clause.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.or = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 1,\n result = filters[0].call(null, item);\n\n for (; i < cnt; i += 1) {\n result = (result || filters[i].call(null, item));\n }\n\n return result;\n };\n};\n\n/**\n * Merge several collections.\n *\n * You can\\'t merge collections different _getScheduleID functions. Take case of use.\n * @param {...Collection} collections collection arguments to merge\n * @returns {Collection} merged collection.\n */\nCollection.merge = function(collections) { // eslint-disable-line\n var cols = aps.call(arguments),\n newItems = {},\n merged = new Collection(cols[0].getItemID),\n extend = util.extend;\n\n forEachArr(cols, function(col) {\n extend(newItems, col.items);\n });\n\n merged.items = newItems;\n merged.length = util.keys(merged.items).length;\n\n return merged;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * get model's unique id.\n * @param {object} item model instance.\n * @returns {number} model unique id.\n */\nCollection.prototype.getItemID = function(item) {\n return String(item._id);\n};\n\n/**\n * add models.\n * @param {...*} item models to add this collection.\n */\nCollection.prototype.add = function(item) {\n var self = this,\n id,\n ownItems;\n\n if (arguments.length > 1) {\n forEachArr(aps.call(arguments), function(o) {\n self.add(o);\n });\n\n return;\n }\n\n id = this.getItemID(item);\n ownItems = this.items;\n\n if (!ownItems[id]) {\n this.length += 1;\n }\n ownItems[id] = item;\n};\n\n/**\n * remove models.\n * @param {...(object|string|number)} id model instance or unique id to delete.\n * @returns {array} deleted model list.\n */\nCollection.prototype.remove = function(id) {\n var self = this,\n removed = [],\n ownItems,\n itemToRemove;\n\n if (!this.length) {\n return removed;\n }\n\n if (arguments.length > 1) {\n removed = util.map(aps.call(arguments), function(_id) {\n return self.remove(_id);\n });\n\n return removed;\n }\n\n ownItems = this.items;\n\n if (isObj(id)) {\n id = this.getItemID(id);\n }\n\n if (!ownItems[id]) {\n return removed;\n }\n\n this.length -= 1;\n itemToRemove = ownItems[id];\n delete ownItems[id];\n\n return itemToRemove;\n};\n\n/**\n * remove all models in collection.\n */\nCollection.prototype.clear = function() {\n this.items = {};\n this.length = 0;\n};\n\n/**\n * check collection has specific model.\n * @param {(object|string|number|function)} id model instance or id or filter function to check\n * @returns {boolean} is has model?\n */\nCollection.prototype.has = function(id) {\n var isFilter,\n has;\n\n if (!this.length) {\n return false;\n }\n\n isFilter = isFunc(id);\n has = false;\n\n if (isFilter) {\n this.each(function(item) {\n if (id(item) === true) {\n has = true;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n } else {\n id = isObj(id) ? this.getItemID(id) : id;\n has = util.isExisty(this.items[id]);\n }\n\n return has;\n};\n\n/**\n * invoke callback when model exist in collection.\n * @param {(string|number)} id model unique id.\n * @param {function} fn the callback.\n * @param {*} [context] callback context.\n */\nCollection.prototype.doWhenHas = function(id, fn, context) {\n var item = this.items[id];\n\n if (!util.isExisty(item)) {\n return;\n }\n\n fn.call(context || this, item);\n};\n\n/**\n * Search model. and return new collection.\n * @param {function} filter filter function.\n * @returns {Collection} new collection with filtered models.\n * @example\n * collection.find(function(item) {\n * return item.edited === true;\n * });\n *\n * function filter1(item) {\n * return item.edited === false;\n * }\n *\n * function filter2(item) {\n * return item.disabled === false;\n * }\n *\n * collection.find(Collection.and(filter1, filter2));\n *\n * collection.find(Collection.or(filter1, filter2));\n */\nCollection.prototype.find = function(filter) {\n var result = new Collection();\n\n if (this.hasOwnProperty('getItemID')) {\n result.getItemID = this.getItemID;\n }\n\n this.each(function(item) {\n if (filter(item) === true) {\n result.add(item);\n }\n });\n\n return result;\n};\n\n/**\n * Group element by specific key values.\n *\n * if key parameter is function then invoke it and use returned value.\n * @param {(string|number|function|array)} key key property or getter function.\n * if string[] supplied, create each collection before grouping.\n * @param {function} [groupFunc] - function that return each group's key\n * @returns {object.} grouped object\n * @example\n *\n * // pass `string`, `number`, `boolean` type value then group by property value.\n * collection.groupBy('gender'); // group by 'gender' property value.\n * collection.groupBy(50); // group by '50' property value.\n *\n * // pass `function` then group by return value. each invocation `function` is called with `(item)`.\n * collection.groupBy(function(item) {\n * if (item.score > 60) {\n * return 'pass';\n * }\n * return 'fail';\n * });\n *\n * // pass `array` with first arguments then create each collection before grouping.\n * collection.groupBy(['go', 'ruby', 'javascript']);\n * // result: { 'go': empty Collection, 'ruby': empty Collection, 'javascript': empty Collection }\n *\n * // can pass `function` with `array` then group each elements.\n * collection.groupBy(['go', 'ruby', 'javascript'], function(item) {\n * if (item.isFast) {\n * return 'go';\n * }\n *\n * return item.name;\n * });\n */\nCollection.prototype.groupBy = function(key, groupFunc) {\n var result = {},\n collection,\n baseValue,\n keyIsFunc = isFunc(key),\n getItemIDFn = this.getItemID;\n\n if (util.isArray(key)) {\n util.forEachArray(key, function(k) {\n result[String(k)] = new Collection(getItemIDFn);\n });\n\n if (!groupFunc) {\n return result;\n }\n\n key = groupFunc;\n keyIsFunc = true;\n }\n\n this.each(function(item) {\n if (keyIsFunc) {\n baseValue = key(item);\n } else {\n baseValue = item[key];\n\n if (isFunc(baseValue)) {\n baseValue = baseValue.apply(item);\n }\n }\n\n collection = result[baseValue];\n\n if (!collection) {\n collection = result[baseValue] = new Collection(getItemIDFn);\n }\n\n collection.add(item);\n });\n\n return result;\n};\n\n/**\n * Return single item in collection.\n *\n * Returned item is inserted in this collection firstly.\n * @param {function} [filter] - function filter\n * @returns {object} item.\n */\nCollection.prototype.single = function(filter) {\n var result,\n useFilter = util.isFunction(filter);\n\n this.each(function(item) {\n if (!useFilter) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n if (filter(item)) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n }, this);\n\n return result;\n};\n\n/**\n * sort a basis of supplied compare function.\n * @param {function} compareFunction compareFunction\n * @returns {array} sorted array.\n */\nCollection.prototype.sort = function(compareFunction) {\n var arr = [];\n\n this.each(function(item) {\n arr.push(item);\n });\n\n if (isFunc(compareFunction)) {\n arr = arr.sort(compareFunction);\n }\n\n return arr;\n};\n\n/**\n * iterate each model element.\n *\n * when iteratee return false then break the loop.\n * @param {function} iteratee iteratee(item, index, items)\n * @param {*} [context] context\n */\nCollection.prototype.each = function(iteratee, context) {\n forEachProp(this.items, iteratee, context || this);\n};\n\n/**\n * return new array with collection items.\n * @returns {array} new array.\n */\nCollection.prototype.toArray = function() {\n if (!this.length) {\n return [];\n }\n\n return util.map(this.items, function(item) {\n return item;\n });\n};\n\nmodule.exports = Collection;\n","/**\n * @fileoverview common/general utilities.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar aps = Array.prototype.slice;\n\nvar domutil = require('../common/domutil'),\n Collection = require('../common/collection');\nvar datetime = require('../common/datetime');\n\n/**\n * Default schedule id getter for collection\n * @param {Schedule} schedule - schedule instance\n * @returns {string} schedule id\n */\nfunction scheduleIDGetter(schedule) {\n return schedule.cid();\n}\n\nmodule.exports = {\n /**\n * @param {...*} initItems - items to add newly created collection.\n * @returns {Collection} new collection for schedule models.\n */\n createScheduleCollection: function(initItems) { // eslint-disable-line\n var collection = new Collection(scheduleIDGetter);\n\n if (arguments.length) {\n collection.add.apply(collection, arguments);\n }\n\n return collection;\n },\n\n /**\n * Get ratio value.\n *\n * a : b = y : X;\n *\n * =\n *\n * X = (b * y) / a;\n * @param {number} a - a\n * @param {number} b - b\n * @param {number} y - y\n * @returns {number} ratio value\n */\n ratio: function(a, b, y) {\n // a : b = y : x;\n return (b * y) / a;\n },\n\n /**\n * Find nearest value from supplied params.\n * @param {number} value - value to find.\n * @param {array} nearest - nearest array.\n * @returns {number} nearest value\n */\n nearest: function(value, nearest) {\n var diff = util.map(nearest, function(v) {\n return Math.abs(value - v);\n }),\n nearestIndex = util.inArray(Math.min.apply(null, diff), diff);\n\n return nearest[nearestIndex];\n },\n\n /**\n * pick value from object then return utility object to treat it.\n * @param {object} obj - object to search supplied path property.\n * @param {...string} paths - rest parameter that string value to search property in object.\n * @returns {object} pick object.\n */\n pick2: function(obj, paths) { // eslint-disable-line\n var result = util.pick.apply(null, arguments),\n pick;\n\n pick = {\n /**\n * @returns {*} picked value.\n */\n val: function() {\n return result;\n },\n\n /**\n * invoke supplied function in picked object.\n *\n * the callback context is set picked object.\n * @param {string|function} fn - function to invoke in picked object.\n * @returns {*} result of invoke.\n */\n then: function(fn) {\n var args;\n\n if (!result) {\n return undefined; //eslint-disable-line\n }\n\n args = aps.call(arguments, 1);\n\n if (util.isString(fn)) {\n return (util.pick(result, fn) || function() {}).apply(result, args);\n }\n\n return fn.call(result, result);\n }\n };\n\n return pick;\n },\n\n /**\n * Mixin method.\n *\n * (extend methods except property name 'mixin')\n * @param {object} from - mixin object.\n * @param {object} to - object to mixin.\n */\n mixin: function(from, to) {\n util.extend(to.prototype, from);\n },\n\n /**\n * Limit supplied value base on `minArr`, `maxArr`\n * @param {number} value - value\n * @param {array} minArr - min\n * @param {array} maxArr - max\n * @returns {number} limited value\n */\n limit: function(value, minArr, maxArr) {\n var v = Math.max.apply(null, [value].concat(minArr));\n v = Math.min.apply(null, [v].concat(maxArr));\n\n return v;\n },\n\n /**\n * Limit supplied date base on `min`, `max`\n * @param {TZDate} date - date\n * @param {TZDate} min - min\n * @param {TZDate} max - max\n * @returns {TZDate} limited value\n */\n limitDate: function(date, min, max) {\n if (date < min) {\n return min;\n }\n if (date > max) {\n return max;\n }\n\n return date;\n },\n\n /**\n * Max value with TZDate type for timezone calculation\n * @param {TZDate} d1 - date 1\n * @param {TZDate} d2 - date 2\n * @returns {TZDate}\n */\n maxDate: function(d1, d2) {\n if (d1 > d2) {\n return d1;\n }\n\n return d2;\n },\n\n stripTags: function(str) {\n return str.replace(/<([^>]+)>/ig, '');\n },\n\n /**\n * Get first value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} first value in 2d array\n */\n firstIn2dArray: function(arr2d) {\n return util.pick(arr2d, '0', '0');\n },\n\n /**\n * Get last value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} last value in 2d array\n */\n lastIn2dArray: function(arr2d) {\n var lastRow = arr2d.length - 1,\n lastCol = arr2d[lastRow].length - 1;\n\n return util.pick(arr2d, lastRow, lastCol);\n },\n\n /**\n * Set 'title' attribute for all element that has exceeded content in\n * container\n * @param {string} selector - CSS selector {@see domutil#find}\n * @param {HTMLElement} container - container element\n * @param {boolean} force - force to apply\n */\n setAutoEllipsis: function(selector, container, force) {\n util.forEach(domutil.find(selector, container, true), function(el) {\n if (force || el.offsetWidth < el.scrollWidth) {\n el.setAttribute('title', domutil.getData(el, 'title'));\n }\n });\n },\n\n /**\n * Set the value at path of object.\n * @param {object} object - the object to modify\n * @param {string} path -the path of property to set\n * @param {*} value - the value to set\n */\n set: function(object, path, value) {\n var names = path.split('.');\n var store = object;\n\n util.forEach(names, function(name, index) {\n store[name] = store[name] || {};\n\n if (index === names.length - 1) {\n store[name] = value;\n } else {\n store = store[name];\n }\n });\n },\n\n /**\n * shift a array\n * @param {Array.} array - array\n * @param {number} shift - positive or negative integer to shift\n * @returns {Array.} shifted array\n */\n shiftArray: function(array, shift) {\n var length = Math.abs(shift);\n var i;\n\n if (shift > 0) {\n for (i = 0; i < length; i += 1) {\n array.push(array.shift());\n }\n } else if (shift < 0) {\n for (i = 0; i < length; i += 1) {\n array.unshift(array.pop());\n }\n }\n\n return array;\n },\n\n /**\n * take elements from array between start and end.\n * @param {Array.} array - array\n * @param {number} start - start index\n * @param {number} end - end index\n * @returns {Array.}\n */\n takeArray: function(array, start, end) {\n var length = array.length;\n var rightCount = length - end;\n var leftCount = start;\n\n // remove right\n array.splice(end, rightCount);\n // remove left\n array.splice(0, leftCount);\n\n return array;\n },\n\n /**\n * shift hours\n * @param {number} hours - hours\n * @param {number} shift - positive or negative integer to shift\n * @returns {number} shifted hours\n */\n shiftHours: function(hours, shift) {\n if (shift > 0) {\n hours = (hours + shift) % 24;\n } else if (shift < 0) {\n hours += shift;\n hours = hours > 0 ? hours : 24 + hours;\n }\n\n return hours;\n },\n\n /**\n * Parse css value into number and units\n * @param {string} cssValue - css value like '72px'\n * @returns {Array} [number, unit]\n */\n parseUnit: function(cssValue) {\n var number = parseFloat(cssValue, 10);\n var unit = cssValue.match(/[\\d.\\-+]*\\s*(.*)/)[1] || '';\n\n return [number, unit];\n },\n\n find: function(array, iteratee, contextopt) {\n var found;\n\n util.forEach(array, function(item) {\n if (iteratee) {\n found = iteratee(item);\n }\n\n if (found) {\n found = item;\n\n return false;\n }\n\n return true;\n }, contextopt);\n\n return found;\n },\n\n getScheduleChanges: function(schedule, propNames, data) {\n var changes = {};\n var dateProps = ['start', 'end'];\n\n util.forEach(propNames, function(propName) {\n if (dateProps.indexOf(propName) > -1) {\n if (datetime.compare(schedule[propName], data[propName])) {\n changes[propName] = data[propName];\n }\n } else if (data[propName] && schedule[propName] !== data[propName]) {\n changes[propName] = data[propName];\n }\n });\n\n return util.isEmpty(changes) ? null : changes;\n }\n};\n","/**\n * @fileoverview datetime utility module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar TZDate = require('./timezone').Date,\n dw = require('../common/dw');\nvar util = require('tui-code-snippet');\n/* eslint-disable no-useless-escape */\nvar dateFormatRx = /^(\\d{4}[-|\\/]*\\d{2}[-|\\/]*\\d{2})\\s?(\\d{2}:\\d{2}:\\d{2})?$/;\nvar datetime, tokenFunc;\n\nvar memo = {\n millisecondsTo: {},\n millisecondsFrom: {}\n};\n\ntokenFunc = {\n /**\n * @param {TZDate} date date object.\n * @returns {string} YYYYMMDD\n */\n 'YYYYMMDD': function(date) {\n return [\n date.getFullYear(),\n datetime.leadingZero(date.getMonth() + 1, 2),\n datetime.leadingZero(date.getDate(), 2)\n ].join('');\n },\n /**\n * @param {TZDate} date date object\n * @returns {string} four digit year number\n */\n 'YYYY': function(date) {\n return String(date.getFullYear());\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit month number\n */\n 'MM': function(date) {\n return datetime.leadingZero(date.getMonth() + 1, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit date number\n */\n 'DD': function(date) {\n return datetime.leadingZero(date.getDate(), 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} HH:mm\n */\n 'HH:mm': function(date) {\n var hour = date.getHours(),\n minutes = date.getMinutes();\n\n return datetime.leadingZero(hour, 2) + ':' +\n datetime.leadingZero(minutes, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} hh:mm\n */\n 'hh:mm': function(date) {\n var hour = date.getHours();\n var minutes = date.getMinutes();\n\n if (hour > 12) {\n hour = hour % 12;\n }\n\n return datetime.leadingZero(hour, 2) + ':' +\n datetime.leadingZero(minutes, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} tt\n */\n 'tt': function(date) {\n var hour = date.getHours();\n\n return hour < 12 ? 'am' : 'pm';\n }\n};\n\ndatetime = {\n /**\n * The number of milliseconds one day.\n * @type {number}\n */\n MILLISECONDS_PER_DAY: 86400000,\n\n /**\n * The number of milliseconds one hour.\n * @type {number}\n */\n MILLISECONDS_PER_HOUR: 3600000,\n\n /**\n * The number of milliseconds one minutes.\n * @type {number}\n */\n MILLISECONDS_PER_MINUTES: 60000,\n\n /**\n * The number of milliseconds 20 minutes for schedule min duration\n * @type {number}\n */\n MILLISECONDS_SCHEDULE_MIN_DURATION: 20 * 60000,\n\n /**\n * convert milliseconds\n * @param {string} type - type of value.\n * @param {number} value - value to convert.\n * @param {function} iteratee - iteratee function to use reduce.\n * @returns {number} converted value.\n */\n _convMilliseconds: function(type, value, iteratee) {\n var conv = [24, 60, 60, 1000],\n index = {\n day: 0,\n hour: 1,\n minutes: 2,\n seconds: 3\n };\n\n if (!(type in index) || global.isNaN(value)) {\n return false;\n }\n\n return util.reduce([value].concat(conv.slice(index[type])), iteratee);\n },\n\n /**\n * Convert milliseconds value to other type\n * @param {type} type convert to type want to. support \"day\", \"hour\",\n * \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsTo: function(type, value) {\n var cache = memo.millisecondsTo,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m / v;\n });\n\n return cache[key];\n },\n\n /**\n * Convert value to milliseconds\n * @param {type} type - type of supplied value. support \"hour\", \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsFrom: function(type, value) {\n var cache = memo.millisecondsFrom,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m * v;\n });\n\n return cache[key];\n },\n\n /**\n * Convert hours to minutes\n * @param {number} hours - hours\n * @returns {number} minutes\n */\n minutesFromHours: function(hours) {\n return hours * 60;\n },\n\n /**\n * Make date array from supplied paramters.\n * @param {TZDate} start Start date.\n * @param {TZDate} end End date.\n * @param {number} step The number of milliseconds to use increment.\n * @returns {TZDate[]} TZDate array.\n */\n range: function(start, end, step) {\n var startTime = start.getTime();\n var endTime = end.getTime();\n var cursor = startTime;\n var date = dw(new TZDate(start));\n var result = [];\n\n while (cursor <= endTime && endTime >= date.d.getTime()) {\n result.push(datetime.start(date.d));\n cursor = cursor + step;\n date.addDate(1);\n }\n\n return result;\n },\n\n /**\n * Clone supplied date.\n * @param {TZDate} date date object to clone.\n * @returns {TZDate} Cloned date object\n */\n clone: function(date) {\n return new TZDate(date);\n },\n\n /**\n * Compare two dates.\n *\n * when first date is latest then seconds then return -1.\n *\n * return +1 reverse, and return 0 is same.\n * @param {TZDate} d1 Date object to compare.\n * @param {TZDate} d2 Date object to compare.\n * @returns {number} result of compare\n */\n compare: function(d1, d2) {\n var _d1 = d1.getTime(),\n _d2 = d2.getTime();\n\n if (_d1 < _d2) {\n return -1;\n }\n if (_d1 > _d2) {\n return 1;\n }\n\n return 0;\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month?\n */\n isSameMonth: function(d1, d2) {\n return (d1.getFullYear() === d2.getFullYear() &&\n d1.getMonth() === d2.getMonth());\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month, date?\n */\n isSameDate: function(d1, d2) {\n var sameMonth = datetime.isSameMonth(d1, d2);\n\n return sameMonth && (d1.getDate() === d2.getDate());\n },\n\n /**\n * Check supplied parameter is valid date object.\n * @param {*} d Object to validate.\n * @returns {boolean} return true when parameter is valid date object.\n */\n isValid: function(d) {\n if (d instanceof TZDate) {\n return !window.isNaN(d.getTime());\n }\n\n return false;\n },\n\n /**\n * convert non local date to UTC date.\n * @param {TZDate} d Date to convert UTC.\n * @returns {TZDate} The UTC Date.\n */\n toUTC: function(d) {\n var l = d.getTime(),\n offset = datetime.millisecondsFrom('minutes', new Date().getTimezoneOffset());\n\n return new TZDate(l + offset);\n },\n\n /**\n * pad left zero characters.\n * @param {number} number number value to pad zero.\n * @param {number} length pad length to want.\n * @returns {string} padded string.\n */\n leadingZero: function(number, length) {\n var zero = '',\n i = 0;\n\n if (String(number).length > length) {\n return String(number);\n }\n\n for (; i < (length - 1); i += 1) {\n zero += '0';\n }\n\n return (zero + number).slice(length * -1);\n },\n\n /**\n * Convert date string to date object.\n *\n * Only listed below formats avaliable.\n *\n * - YYYYMMDD\n * - YYYY/MM/DD\n * - YYYY-MM-DD\n * - YYYY/MM/DD HH:mm:SS\n * - YYYY-MM-DD HH:mm:SS\n *\n * @param {string} str Formatted string.\n * @param {number} [fixMonth=-1] - number for fix month calculating.\n * @returns {(TZDate|boolean)} Converted Date object. when supplied str is not available then return false.\n */\n parse: function(str, fixMonth) {\n var separator,\n matches = str.match(dateFormatRx),\n ymd,\n hms;\n\n if (util.isUndefined(fixMonth)) {\n fixMonth = -1;\n }\n\n if (!matches) {\n return false;\n }\n\n if (str.length > 8) {\n // YYYY/MM/DD\n // YYYY-MM-DD\n // YYYY/MM/DD HH:mm:SS\n // YYYY-MM-DD HH:mm:SS\n separator = ~str.indexOf('/') ? '/' : '-';\n matches = matches.splice(1);\n\n ymd = matches[0].split(separator);\n hms = matches[1] ? matches[1].split(':') : [0, 0, 0];\n } else {\n // YYYYMMDD\n matches = matches[0];\n ymd = [matches.substr(0, 4), matches.substr(4, 2), matches.substr(6, 2)];\n hms = [0, 0, 0];\n }\n\n return new TZDate().setWithRaw(\n Number(ymd[0]),\n Number(ymd[1]) + fixMonth,\n Number(ymd[2]),\n Number(hms[0]),\n Number(hms[1]),\n Number(hms[2]),\n 0\n );\n },\n\n /**\n * Return date object from Date.\n * @param {TZDate} date date\n * @returns {object} Date object.\n */\n raw: function(date) {\n return {\n y: date.getFullYear(),\n M: date.getMonth(),\n d: date.getDate(),\n h: date.getHours(),\n m: date.getMinutes(),\n s: date.getSeconds(),\n ms: date.getMilliseconds()\n };\n },\n\n /**\n * Return 00:00:00 supplied date.\n * @param {TZDate} date date. if undefined, use now.\n * @returns {TZDate} start date.\n */\n start: function(date) {\n var d = date ? new TZDate(date) : new TZDate();\n d.setHours(0, 0, 0, 0);\n\n return d;\n },\n\n /**\n * Return 23:59:59 supplied date.\n * @param {TZDate} date date. if undefined, use now.\n * @returns {TZDate} end date.\n */\n end: function(date) {\n var d = date ? new TZDate(date) : new TZDate();\n d.setHours(23, 59, 59, 0);\n\n return d;\n },\n\n /**\n * Return formatted string as basis of supplied string.\n *\n * Supported Token Lists.\n *\n * - YYYY => 1988\n * - MM => 01 ~ 12\n * - DD => 01 ~ 31\n * - YYYYMMDD => 19880925\n * @param {TZDate} date String want to formatted.\n * @param {string} format format str.\n * @returns {string} Formatted date string.\n */\n format: function(date, format) {\n var result = format;\n util.forEachOwnProperties(tokenFunc, function(converter, token) {\n result = result.replace(token, converter(date));\n });\n\n return result;\n },\n\n /**\n * Get start date of specific month\n * @param {TZDate} date - date to get start date\n * @returns {TZDate} start date of supplied month\n */\n startDateOfMonth: function(date) {\n var startDate = new TZDate(date);\n\n startDate.setDate(1);\n startDate.setHours(0, 0, 0, 0);\n\n return startDate;\n },\n\n /**\n * Get end date of specific month\n * @param {TZDate} date - date to get end date\n * @returns {TZDate} end date of supplied month\n */\n endDateOfMonth: function(date) {\n var endDate = datetime.startDateOfMonth(date);\n\n endDate.setMonth(endDate.getMonth() + 1);\n endDate.setDate(endDate.getDate() - 1);\n endDate.setHours(23, 59, 59);\n\n return endDate;\n },\n\n /**\n * Return 2-dimensional array month calendar\n *\n * dates that different month with given date are negative values\n * @param {TZDate} month - date want to calculate month calendar\n * @param {object} options - options\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {boolean} options.isAlways6Week - whether the number of weeks are always 6\n * @param {number} options.visibleWeeksCount visible weeks count\n * @param {boolean} options.workweek - only show work week\n * @param {function} [iteratee] - iteratee for customizing calendar object\n * @returns {Array.} calendar 2d array\n */\n arr2dCalendar: function(month, options, iteratee) {\n var weekArr,\n start, end,\n startIndex, endIndex,\n totalDate, afterDates,\n cursor, week,\n calendar = [],\n startDayOfWeek = options.startDayOfWeek,\n isAlways6Week = util.isUndefined(options.isAlways6Week) ? true : options.isAlways6Week,\n visibleWeeksCount = options.visibleWeeksCount,\n workweek = options.workweek;\n\n if (visibleWeeksCount) {\n start = new TZDate(month);\n end = dw(new TZDate(month));\n end.addDate(7 * (visibleWeeksCount - 1));\n end = end.d;\n } else {\n start = datetime.startDateOfMonth(month);\n end = datetime.endDateOfMonth(month);\n }\n\n // create day number array by startDayOfWeek number\n // 4 -> [4, 5, 6, 0, 1, 2, 3]\n // 2 -> [2, 3, 4, 5, 6, 0, 1]\n weekArr = util.range(startDayOfWeek, 7).concat(util.range(7)).slice(0, 7);\n startIndex = util.inArray(start.getDay(), weekArr);\n endIndex = util.inArray(end.getDay(), weekArr);\n // free dates after last date of this month\n afterDates = 7 - (endIndex + 1);\n\n if (visibleWeeksCount) {\n totalDate = 7 * visibleWeeksCount;\n } else {\n totalDate = isAlways6Week ? (7 * 6) : (startIndex + end.getDate() + afterDates);\n }\n cursor = datetime.start(start).addDate(-startIndex);\n // iteratee all dates to render\n util.forEachArray(util.range(totalDate), function(i) {\n var date;\n\n if (!(i % 7)) {\n // group each date by week\n week = calendar[i / 7] = [];\n }\n\n date = datetime.start(cursor);\n date = iteratee ? iteratee(date) : date;\n if (!workweek || !datetime.isWeekend(date.getDay())) {\n week.push(date);\n }\n\n // add date\n cursor.setDate(cursor.getDate() + 1);\n });\n\n return calendar;\n },\n\n /**\n * Calculate grid left(%), width(%) by narrowWeekend, startDayOfWeek, workweek\n *\n * @param {number} days - day length of week\n * @param {boolean} narrowWeekend - narrow weekend\n * @param {number} startDayOfWeek - start day of week\n * @param {boolean} workweek - only show work week\n * @returns {Array} day, left, width\n */\n getGridLeftAndWidth: function(days, narrowWeekend, startDayOfWeek, workweek) {\n var limitDaysToApplyNarrowWeekend = 5;\n var uniformWidth = 100 / days;\n var wideWidth = days > limitDaysToApplyNarrowWeekend ? 100 / (days - 1) : uniformWidth;\n var accumulatedWidth = 0;\n var dates = util.range(startDayOfWeek, 7).concat(util.range(days)).slice(0, 7);\n\n if (workweek) {\n dates = util.filter(dates, function(day) {\n return !datetime.isWeekend(day);\n });\n }\n\n narrowWeekend = workweek ? false : narrowWeekend;\n\n return util.map(dates, function(day) {\n var model;\n var width = narrowWeekend ? wideWidth : uniformWidth;\n if (days > limitDaysToApplyNarrowWeekend && narrowWeekend && datetime.isWeekend(day)) {\n width = wideWidth / 2;\n }\n\n model = {\n day: day,\n width: width,\n left: accumulatedWidth\n };\n\n accumulatedWidth += width;\n\n return model;\n });\n },\n\n /**\n * Get that day is weekend\n * @param {number} day number\n * @returns {boolean} true if weekend or false\n */\n isWeekend: function(day) {\n return day === 0 || day === 6;\n },\n\n /**\n * Whether date is between supplied dates with date value?\n * @param {TZDate} d - target date\n * @param {TZDate} d1 - from date\n * @param {TZDate} d2 - to date\n * @returns {boolean} is between?\n */\n isBetweenWithDate: function(d, d1, d2) {\n var format = 'YYYYMMDD';\n d = parseInt(datetime.format(d, format), 10);\n d1 = parseInt(datetime.format(d1, format), 10);\n d2 = parseInt(datetime.format(d2, format), 10);\n\n return d1 <= d && d <= d2;\n },\n\n isStartOfDay: function(d) {\n return !datetime.compare(datetime.start(d), d);\n },\n\n convertStartDayToLastDay: function(d) {\n var date = new TZDate(d);\n if (datetime.isStartOfDay(d)) {\n date.setDate(date.getDate() - 1);\n }\n\n return date;\n },\n\n getStartOfNextDay: function(d) {\n var date = datetime.start(d);\n date.setHours(24);\n\n return date;\n }\n};\n\nmodule.exports = datetime;\n","/**\n * @fileoverview Dirty flagging module for objects.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar common = require('tui-code-snippet');\nvar existy = common.isExisty,\n pick = common.pick,\n isFunc = common.isFunction;\n\n/**\n * Mixin module for dirty flagging on specific objects.\n * @mixin\n * @example\n * var obj = { hello: 'good', test: '123' };\n * dirty.mixin(obj);\n *\n * obj.set('hello', 'world');\n * obj.isDirty(); // true\n * obj.isPropChanged('hello'); // true\n * obj.isPropChanged('test'); // false\n * obj.dirty(false);\n *\n * obj.isDirty(); // false\n * obj.isPropChanged('hello'); // false\n */\nvar dirty = {\n /**\n * Set property value with dirty flagging.\n * @param {string} propName Property name.\n * @param {*} value Proprty value.\n */\n set: function(propName, value) {\n var originValue = this[propName];\n\n if (originValue === value) {\n return;\n }\n\n this[propName] = value;\n\n if (!this._changed) {\n /**\n * Save changed properties.\n * @memberof dirty\n * @name _changed\n * @type {Object}\n */\n this._changed = {};\n }\n\n this._changed[propName] = true;\n\n /**\n * Dirty flag\n * @type {Boolean}\n * @name _dirty\n * @memberof dirty\n */\n this._dirty = true;\n },\n\n /**\n * Check dirty flag.\n * @returns {boolean} Property is changed.\n */\n isDirty: function() {\n return !!this._dirty;\n },\n\n /**\n * Set dirty flag manually.\n * @param {Boolean} [toDirty=true] This will set dirty flag directly.\n */\n dirty: function(toDirty) {\n toDirty = existy(toDirty) ? toDirty : true;\n\n /* istanbul ignore else */\n if (!toDirty) {\n this._changed = {};\n }\n\n this._dirty = toDirty;\n },\n\n /**\n * Delete property safety.\n * @param {String} propName The name of property.\n */\n deleteProp: function(propName) {\n delete this[propName];\n\n if (this._changed) {\n delete this._changed[propName];\n }\n },\n\n /**\n * Check the changes with specific property.\n * @param {String} propName The name of property you want.\n * @returns {boolean} Is property changed?\n */\n isPropChanged: function(propName) {\n if (!this._changed) {\n return false;\n }\n\n return this._changed[propName] === true;\n },\n\n /**\n * Mixin to specific objects.\n * @param {Object} target The object to mix this module.\n * @memberof module:util/dirty\n * @example\n * function Animal() {}\n * dirty.mixin(Animal.prototype);\n */\n mixin: function(target) {\n var methodFilterR = /(^_|mixin|wrap)/;\n\n common.forEachOwnProperties(dirty, function(o, k) {\n if (!methodFilterR.test(k)) {\n target[k] = dirty[k];\n }\n });\n },\n\n /**\n * Wrapper method for dirty flagging.\n *\n * This method invoke after invoked specific method that added by you.\n *\n * The method want to add are must exist before add.\n * @param {object} target Target object to method wrap.\n * @param {(string|object)} methodName\n * Method name to wrap or methodName: flag objects.\n * @param {boolean} [flag=true]\n * this will used to flagging by dirty flagger after invoke the methods added by you.\n * @memberof module:util/dirty\n * @example\n * function Animal(name) {\n * this.name = name;\n * }\n * Animal.prototype.growl = jasmine.createSpy('growl');\n * Animal.prototype.test = function() {\n * return this.name;\n * };\n *\n * dirty.mixin(Animal.prototype);\n * // single\n * dirty.wrap(Animal.prototype, 'growl', true);\n * // multiple\n * dirty.wrap(Animap.prototype, {\n * growl: true,\n * test: false\n * });\n *\n */\n wrap: function(target, methodName, flag) {\n var wrap = dirty.wrap,\n fn;\n\n if (common.isObject(methodName)) {\n common.forEachOwnProperties(methodName, function(_flag, _name) {\n wrap(target, _name, _flag);\n });\n\n return;\n }\n\n flag = existy(flag) ? flag : true;\n\n if (!target._wrapper) {\n /**\n * @param {function} _fn Original method to wrap.\n * @param {boolean} flagToSet The boolean value to using dirty flagging.\n * @returns {*} The result value of original method.\n * @name _wrapper\n * @memberof dirty\n */\n target._wrapper = function(_fn, flagToSet) {\n return function() {\n var args = Array.prototype.slice.call(arguments);\n var result = _fn.apply(this, args); // eslint-disable-line\n this._dirty = flagToSet; // eslint-disable-line\n\n return result;\n };\n };\n }\n\n if (existy(pick(target, methodName)) &&\n isFunc(target[methodName]) &&\n !existy(pick(target, methodName, '_wrapped'))) {\n fn = target[methodName];\n target[methodName] = target._wrapper(fn, flag);\n target[methodName]._wrapped = true;\n }\n }\n};\n\nmodule.exports = dirty;\n","/* eslint complexity: 0 */\n/**\n * @fileoverview Utility module for handling DOM events.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar browser = util.browser,\n eventKey = '_evt',\n DRAG = {\n START: ['touchstart', 'mousedown'],\n END: {\n mousedown: 'mouseup',\n touchstart: 'touchend',\n pointerdown: 'touchend',\n MSPointerDown: 'touchend'\n },\n MOVE: {\n mousedown: 'mousemove',\n touchstart: 'touchmove',\n pointerdown: 'touchmove',\n MSPointerDown: 'touchmove'\n }\n };\n\nvar domevent = {\n /**\n * Bind dom events.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n on: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._on(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._on(obj, type, handler, fn);\n });\n },\n\n /**\n * DOM event binding.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {String} type The name of events.\n * @param {*} fn handler function\n * @param {*} [context] context object for handler method.\n * @private\n */\n _on: function(obj, type, fn, context) {\n var id,\n handler,\n originHandler;\n\n id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : '');\n\n if (obj[eventKey] && obj[eventKey][id]) {\n return;\n }\n\n handler = function(e) {\n fn.call(context || obj, e || window.event);\n };\n\n originHandler = handler;\n\n if ('addEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n handler = function(e) {\n e = e || window.event;\n if (!domevent._checkMouse(obj, e)) {\n return;\n }\n originHandler(e);\n };\n obj.addEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.addEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.addEventListener(type, handler, false);\n }\n } else if ('attachEvent' in obj) {\n obj.attachEvent('on' + type, handler);\n }\n\n obj[eventKey] = obj[eventKey] || {};\n obj[eventKey][id] = handler;\n },\n\n /**\n * Unbind DOM Event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n off: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._off(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._off(obj, type, handler, fn);\n });\n },\n\n /**\n * Unbind DOM event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {String} type The name of event to unbind.\n * @param {function()} fn Event handler that supplied when binding.\n * @param {*} context context object that supplied when binding.\n * @private\n */\n _off: function(obj, type, fn, context) {\n var id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : ''),\n handler = obj[eventKey] && obj[eventKey][id];\n\n if (!handler) {\n return;\n }\n\n if ('removeEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n obj.removeEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.removeEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.removeEventListener(type, handler, false);\n }\n } else if ('detachEvent' in obj) {\n try {\n obj.detachEvent('on' + type, handler);\n } catch (e) {} //eslint-disable-line\n }\n\n delete obj[eventKey][id];\n\n if (util.keys(obj[eventKey]).length) {\n return;\n }\n\n // throw exception when deleting host object's property in below IE8\n if (util.browser.msie && util.browser.version < 9) {\n obj[eventKey] = null;\n\n return;\n }\n\n delete obj[eventKey];\n },\n\n /**\n * Bind DOM event. this event will unbind after invokes.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n once: function(obj, types, fn, context) {\n var self = this;\n\n if (util.isObject(types)) {\n util.forEachOwnProperties(types, function(handler, type) {\n domevent.once(obj, type, handler, fn);\n });\n\n return;\n }\n\n /**\n * Handler for temporary usage for once implementation\n */\n function onceHandler() {\n fn.apply(context || obj, arguments);\n self._off(obj, types, onceHandler, context);\n }\n\n domevent.on(obj, types, onceHandler, context);\n },\n\n /**\n * Cancel event bubbling.\n * @param {Event} e Event object.\n */\n stopPropagation: function(e) {\n if (e.stopPropagation) {\n e.stopPropagation();\n } else {\n e.cancelBubble = true;\n }\n },\n\n /**\n * Cancel browser default actions.\n * @param {Event} e Event object.\n */\n preventDefault: function(e) {\n if (e.preventDefault) {\n e.preventDefault();\n } else {\n e.returnValue = false;\n }\n },\n\n /**\n * Syntatic sugar of stopPropagation and preventDefault\n * @param {Event} e Event object.\n */\n stop: function(e) {\n domevent.preventDefault(e);\n domevent.stopPropagation(e);\n },\n\n /**\n * Stop scroll events.\n * @param {HTMLElement} el HTML element to prevent scroll.\n */\n disableScrollPropagation: function(el) {\n domevent.on(el, 'mousewheel MozMousePixelScroll', domevent.stopPropagation);\n },\n\n /**\n * Stop all events related with click.\n * @param {HTMLElement} el HTML element to prevent all event related with click.\n */\n disableClickPropagation: function(el) {\n domevent.on(el, DRAG.START.join(' ') + ' click dblclick', domevent.stopPropagation);\n },\n\n /**\n * Get mouse position from mouse event.\n *\n * If supplied relatveElement parameter then return relative position based on element.\n * @param {Event} mouseEvent Mouse event object\n * @param {HTMLElement} relativeElement HTML element that calculate relative position.\n * @returns {number[]} mouse position.\n */\n getMousePosition: function(mouseEvent, relativeElement) {\n var rect;\n\n if (!relativeElement) {\n return [mouseEvent.clientX, mouseEvent.clientY];\n }\n\n rect = relativeElement.getBoundingClientRect();\n\n return [\n mouseEvent.clientX - rect.left - relativeElement.clientLeft,\n mouseEvent.clientY - rect.top - relativeElement.clientTop\n ];\n },\n\n /**\n * Normalize mouse wheel event that different each browsers.\n * @param {MouseEvent} e Mouse wheel event.\n * @returns {Number} delta\n */\n getWheelDelta: function(e) {\n var delta = 0;\n\n if (e.wheelDelta) {\n delta = e.wheelDelta / 120;\n }\n\n if (e.detail) {\n delta = -e.detail / 3;\n }\n\n return delta;\n },\n\n /**\n * prevent firing mouseleave event when mouse entered child elements.\n * @param {HTMLElement} el HTML element\n * @param {MouseEvent} e Mouse event\n * @returns {Boolean} leave?\n * @private\n */\n _checkMouse: function(el, e) {\n var related = e.relatedTarget;\n\n if (!related) {\n return true;\n }\n\n try {\n while (related && (related !== el)) {\n related = related.parentNode;\n }\n } catch (err) {\n return false;\n }\n\n return (related !== el);\n },\n\n /**\n * Trigger specific events to html element.\n * @param {HTMLElement} obj HTMLElement\n * @param {string} type Event type name\n * @param {object} [eventData] Event data\n */\n trigger: function(obj, type, eventData) {\n var rMouseEvent = /(mouse|click)/;\n if (util.isUndefined(eventData) && rMouseEvent.exec(type)) {\n eventData = domevent.mouseEvent(type);\n }\n\n if (obj.dispatchEvent) {\n obj.dispatchEvent(eventData);\n } else if (obj.fireEvent) {\n obj.fireEvent('on' + type, eventData);\n }\n },\n\n /**\n * Create virtual mouse event.\n *\n * Tested at\n *\n * - IE7 ~ IE11\n * - Chrome\n * - Firefox\n * - Safari\n * @param {string} type Event type\n * @param {object} [eventObj] Event data\n * @returns {MouseEvent} Virtual mouse event.\n */\n mouseEvent: function(type, eventObj) {\n var evt,\n e;\n\n e = util.extend({\n bubbles: true,\n cancelable: (type !== 'mousemove'),\n view: window,\n wheelDelta: 0,\n detail: 0,\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n ctrlKey: false,\n altKey: false,\n shiftKey: false,\n metaKey: false,\n button: 0,\n relatedTarget: undefined // eslint-disable-line\n }, eventObj);\n\n // prevent throw error when inserting wheelDelta property to mouse event on below IE8\n if (browser.msie && browser.version < 9) {\n delete e.wheelDelta;\n }\n\n if (typeof document.createEvent === 'function') {\n evt = document.createEvent('MouseEvents');\n evt.initMouseEvent(type,\n e.bubbles, e.cancelable, e.view, e.detail,\n e.screenX, e.screenY, e.clientX, e.clientY,\n e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\n e.button, document.body.parentNode\n );\n } else if (document.createEventObject) {\n evt = document.createEventObject();\n\n util.forEach(e, function(value, propName) {\n evt[propName] = value;\n }, this);\n evt.button = {0: 1,\n 1: 4,\n 2: 2}[evt.button] || evt.button;\n }\n\n return evt;\n },\n\n /**\n * Normalize mouse event's button attributes.\n *\n * Can detect which button is clicked by this method.\n *\n * Meaning of return numbers\n *\n * - 0: primary mouse button\n * - 1: wheel button or center button\n * - 2: secondary mouse button\n * @param {MouseEvent} mouseEvent - The mouse event object want to know.\n * @returns {number} - The value of meaning which button is clicked?\n */\n getMouseButton: function(mouseEvent) {\n var button,\n primary = '0,1,3,5,7',\n secondary = '2,6',\n wheel = '4';\n\n /* istanbul ignore else */\n if (document.implementation.hasFeature('MouseEvents', '2.0')) {\n return mouseEvent.button;\n }\n\n button = String(mouseEvent.button);\n if (primary.indexOf(button) > -1) {\n return 0;\n }\n if (secondary.indexOf(button) > -1) {\n return 2;\n }\n if (~wheel.indexOf(button)) {\n return 1;\n }\n\n return -1;\n }\n};\n\nmodule.exports = domevent;\n","/* eslint complexity: 0, no-shadow: 0, max-nested-callbacks: 0 */\n/**\n * @fileoverview Utility modules for manipulate DOM elements.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar domevent = require('./domevent');\nvar Collection = require('./collection');\nvar util = require('tui-code-snippet');\n\nvar posKey = '_pos',\n domutil;\n\nvar CSS_AUTO_REGEX = /^auto$|^$|%/;\n\n/**\n * Trim leading, trailing whitespace\n * @param {string} str - string to trim\n * @returns {string} trimmed string\n */\nfunction trim(str) {\n return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n}\n\ndomutil = {\n /**\n * Create DOM element and return it.\n * @param {string} tagName Tag name to append.\n * @param {HTMLElement} [container] HTML element will be parent to created element.\n * if not supplied, will use **document.body**\n * @param {string} [className] Design class names to appling created element.\n * @returns {HTMLElement} HTML element created.\n */\n appendHTMLElement: function(tagName, container, className) {\n var el;\n\n className = className || '';\n\n el = document.createElement(tagName);\n el.className = className;\n\n if (container) {\n container.appendChild(el);\n } else {\n document.body.appendChild(el);\n }\n\n return el;\n },\n\n /**\n * Remove element from parent node.\n * @param {HTMLElement} el - element to remove.\n */\n remove: function(el) {\n if (el && el.parentNode) {\n el.parentNode.removeChild(el);\n }\n },\n\n /**\n * Get element by id\n * @param {string} id element id attribute\n * @returns {HTMLElement} element\n */\n get: function(id) {\n return document.getElementById(id);\n },\n\n /**\n * Check supplied element is matched selector.\n * @param {HTMLElement} el - element to check\n * @param {string} selector - selector string to check\n * @returns {boolean} match?\n */\n _matcher: function(el, selector) {\n var cssClassSelector = /^\\./,\n idSelector = /^#/;\n\n if (cssClassSelector.test(selector)) {\n return domutil.hasClass(el, selector.replace('.', ''));\n }\n if (idSelector.test(selector)) {\n return el.id === selector.replace('#', '');\n }\n\n return el.nodeName.toLowerCase() === selector.toLowerCase();\n },\n\n /**\n * Find DOM element by specific selectors.\n * below three selector only supported.\n *\n * 1. css selector\n * 2. id selector\n * 3. nodeName selector\n * @param {string} selector selector\n * @param {(HTMLElement|string)} [root] You can assign root element to find\n * if not supplied, document.body will use.\n * @param {boolean|function} [multiple=false] - set true then return all\n * elements that meet condition, if set function then use it filter function.\n * @returns {HTMLElement} HTML element finded.\n */\n find: function(selector, root, multiple) {\n var result = [],\n found = false,\n isFirst = util.isUndefined(multiple) || multiple === false,\n isFilter = util.isFunction(multiple);\n\n if (util.isString(root)) {\n root = domutil.get(root);\n }\n\n root = root || window.document.body;\n\n /**\n * Function for recursive find specific node\n * @param {HTMLElement} el - element to search\n * @param {string} selector - selector\n */\n function recurse(el, selector) {\n var childNodes = el.childNodes,\n i = 0,\n len = childNodes.length,\n cursor;\n\n for (; i < len; i += 1) {\n cursor = childNodes[i];\n\n if (cursor.nodeName === '#text') {\n continue;\n }\n\n if (domutil._matcher(cursor, selector)) {\n if ((isFilter && multiple(cursor)) || !isFilter) {\n result.push(cursor);\n }\n\n if (isFirst) {\n found = true;\n break;\n }\n } else if (cursor.childNodes.length > 0) {\n recurse(cursor, selector);\n if (found) {\n break;\n }\n }\n }\n }\n\n recurse(root, selector);\n\n return isFirst ? (result[0] || null) : result;\n },\n\n /**\n * Find parent element recursively.\n * @param {HTMLElement} el - base element to start find.\n * @param {string} selector - selector string for find\n * @param {boolean} excludeEl - exclude the base element to find\n * @returns {HTMLElement} - element finded or null.\n */\n closest: function(el, selector, excludeEl) {\n var parent = el.parentNode;\n\n if (!excludeEl && domutil._matcher(el, selector)) {\n return el;\n }\n\n while (parent && parent !== window.document.body) {\n if (domutil._matcher(parent, selector)) {\n return parent;\n }\n\n parent = parent.parentNode;\n }\n\n return null;\n },\n\n /**\n * Return texts inside element.\n * @param {HTMLElement} el target element\n * @returns {string} text inside node\n */\n text: function(el) {\n var ret = '',\n i = 0,\n nodeType = el.nodeType;\n\n if (nodeType) {\n if (nodeType === 1 || nodeType === 9 || nodeType === 11) {\n // nodes that available contain other nodes\n if (typeof el.textContent === 'string') {\n return el.textContent;\n }\n\n for (el = el.firstChild; el; el = el.nextSibling) {\n ret += domutil.text(el);\n }\n } else if (nodeType === 3 || nodeType === 4) {\n // TEXT, CDATA SECTION\n return el.nodeValue;\n }\n } else {\n for (; el[i]; i += 1) {\n ret += domutil.text(el[i]);\n }\n }\n\n return ret;\n },\n\n /**\n * Set data attribute to target element\n * @param {HTMLElement} el - element to set data attribute\n * @param {string} key - key\n * @param {string|number} data - data value\n */\n setData: function(el, key, data) {\n if ('dataset' in el) {\n el.dataset[key] = data;\n\n return;\n }\n\n el.setAttribute('data-' + key, data);\n },\n\n /**\n * Get data value from data-attribute\n * @param {HTMLElement} el - target element\n * @param {string} key - key\n * @returns {string} value\n */\n getData: function(el, key) {\n if ('dataset' in el) {\n return el.dataset[key];\n }\n\n return el.getAttribute('data-' + key);\n },\n\n /**\n * Check element has specific design class name.\n * @param {HTMLElement} el target element\n * @param {string} name css class\n * @returns {boolean} return true when element has that css class name\n */\n hasClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n return el.classList.contains(name);\n }\n\n className = domutil.getClass(el);\n\n return className.length > 0 && new RegExp('(^|\\\\s)' + name + '(\\\\s|$)').test(className);\n },\n\n /**\n * Add design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n addClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n util.forEachArray(name.split(' '), function(value) {\n el.classList.add(value);\n });\n } else if (!domutil.hasClass(el, name)) {\n className = domutil.getClass(el);\n domutil.setClass(el, (className ? className + ' ' : '') + name);\n }\n },\n\n /**\n *\n * Overwrite design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n setClass: function(el, name) {\n if (util.isUndefined(el.className.baseVal)) {\n el.className = name;\n } else {\n el.className.baseVal = name;\n }\n },\n\n /**\n * Element에 cssClass속성을 제거하는 메서드\n * Remove specific design class from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name class name to remove\n */\n removeClass: function(el, name) {\n var removed = '';\n\n if (!util.isUndefined(el.classList)) {\n el.classList.remove(name);\n } else {\n removed = (' ' + domutil.getClass(el) + ' ').replace(' ' + name + ' ', ' ');\n domutil.setClass(el, trim(removed));\n }\n },\n\n /**\n * Get HTML element's design classes.\n * @param {HTMLElement} el target element\n * @returns {string} element css class name\n */\n getClass: function(el) {\n if (!el || !el.className) {\n return '';\n }\n\n return util.isUndefined(el.className.baseVal) ? el.className : el.className.baseVal;\n },\n\n /**\n * Get specific CSS style value from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} style css attribute name\n * @returns {(string|null)} css style value\n */\n getStyle: function(el, style) {\n var value = el.style[style] || (el.currentStyle && el.currentStyle[style]),\n css;\n\n if ((!value || value === 'auto') && document.defaultView) {\n css = document.defaultView.getComputedStyle(el, null);\n value = css ? css[style] : null;\n }\n\n return value === 'auto' ? null : value;\n },\n\n /**\n * get element's computed style values.\n *\n * in lower IE8. use polyfill function that return object. it has only one function 'getPropertyValue'\n * @param {HTMLElement} el - element want to get style.\n * @returns {object} virtual CSSStyleDeclaration object.\n */\n getComputedStyle: function(el) {\n var defaultView = document.defaultView;\n\n if (!defaultView || !defaultView.getComputedStyle) {\n return {\n getPropertyValue: function(prop) {\n /* eslint-disable no-useless-escape */\n var re = /(\\-([a-z]){1})/g;\n if (prop === 'float') {\n prop = 'styleFloat';\n }\n\n if (re.test(prop)) {\n prop = prop.replace(re, function() {\n return arguments[2].toUpperCase();\n });\n }\n\n return el.currentStyle[prop] ? el.currentStyle[prop] : null;\n }\n };\n }\n\n return document.defaultView.getComputedStyle(el);\n },\n\n /**\n * Set position CSS style.\n * @param {HTMLElement} el target element\n * @param {number} [x=0] left pixel value.\n * @param {number} [y=0] top pixel value.\n */\n setPosition: function(el, x, y) {\n x = util.isUndefined(x) ? 0 : x;\n y = util.isUndefined(y) ? 0 : y;\n\n el[posKey] = [x, y];\n\n el.style.left = util.isNumber(x) ? (x + 'px') : x;\n el.style.top = util.isNumber(y) ? (y + 'px') : y;\n },\n\n /**\n * Set position CSS style with left, top, right, bottom\n * @param {HTMLElement} el target element\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\n setLTRB: function(el, ltrb) {\n var props = ['left', 'top', 'right', 'bottom'];\n var value;\n props.forEach(function(prop) {\n value = util.isUndefined(ltrb[prop]) ? '' : ltrb[prop];\n el.style[prop] = util.isNumber(value) ? (value + 'px') : value;\n });\n },\n\n /**\n * Get position from HTML element.\n * @param {HTMLElement} el target element\n * @param {boolean} [clear=false] clear cache before calculating position.\n * @returns {number[]} point\n */\n getPosition: function(el, clear) {\n var left,\n top,\n bound;\n\n if (clear) {\n el[posKey] = null;\n }\n\n if (el[posKey]) {\n return el[posKey];\n }\n\n left = 0;\n top = 0;\n\n if ((CSS_AUTO_REGEX.test(el.style.left) || CSS_AUTO_REGEX.test(el.style.top)) &&\n 'getBoundingClientRect' in el) {\n // When the element's left or top is 'auto'\n bound = el.getBoundingClientRect();\n\n left = bound.left;\n top = bound.top;\n } else {\n left = parseFloat(el.style.left || 0);\n top = parseFloat(el.style.top || 0);\n }\n\n return [left, top];\n },\n\n /**\n * Return element's size\n * @param {HTMLElement} el target element\n * @returns {number[]} width, height\n */\n getSize: function(el) {\n var bound,\n width = domutil.getStyle(el, 'width'),\n height = domutil.getStyle(el, 'height');\n\n if ((CSS_AUTO_REGEX.test(width) || CSS_AUTO_REGEX.test(height) ||\n util.isNull(width) || util.isNull(height)) &&\n 'getBoundingClientRect' in el) {\n bound = el.getBoundingClientRect();\n width = bound.width || el.offsetWidth;\n height = bound.height || el.offsetHeight;\n } else {\n width = parseFloat(width || 0);\n height = parseFloat(height || 0);\n }\n\n return [width, height];\n },\n\n /**\n * Fallback of getBoundingClientRect\n * @param {HTMLElement} el - element\n * @returns {object} rect\n */\n getBCRect: function(el) {\n var rect = el.getBoundingClientRect();\n\n rect = util.extend({\n width: el.offsetWidth,\n height: el.offsetHeight\n }, rect);\n\n return rect;\n },\n\n /**\n * Check specific CSS style is available.\n * @param {array} props property name to testing\n * @returns {(string|boolean)} return true when property is available\n * @example\n * var props = ['transform', '-webkit-transform'];\n * domutil.testProp(props); // 'transform'\n */\n testProp: function(props) {\n var style = document.documentElement.style,\n i = 0,\n len = props.length;\n\n for (; i < len; i += 1) {\n if (props[i] in style) {\n return props[i];\n }\n }\n\n return false;\n },\n\n /**\n * Get form data\n * @param {HTMLFormElement} formElement - form element to extract data\n * @returns {object} form data\n */\n getFormData: function(formElement) {\n var groupedByName = new Collection(function() {\n return this.length;\n }),\n noDisabledFilter = function(el) {\n return !el.disabled;\n },\n output = {};\n\n groupedByName.add.apply(\n groupedByName,\n domutil.find('input', formElement, noDisabledFilter)\n .concat(domutil.find('select', formElement, noDisabledFilter))\n .concat(domutil.find('textarea', formElement, noDisabledFilter))\n );\n\n groupedByName = groupedByName.groupBy(function(el) {\n return (el && el.getAttribute('name')) || '_other';\n });\n\n util.forEach(groupedByName, function(elements, name) {\n if (name === '_other') {\n return;\n }\n\n elements.each(function(el) {\n var nodeName = el.nodeName.toLowerCase(),\n type = el.type,\n result = [];\n\n if (type === 'radio') {\n result = [elements.find(function(el) {\n return el.checked;\n }).toArray().pop()];\n } else if (type === 'checkbox') {\n result = elements.find(function(el) {\n return el.checked;\n }).toArray();\n } else if (nodeName === 'select') {\n elements.find(function(el) {\n return !!el.childNodes.length;\n }).each(function(el) {\n result = result.concat(\n domutil.find('option', el, function(opt) {\n return opt.selected;\n })\n );\n });\n } else {\n result = elements.find(function(el) {\n return el.value !== '';\n }).toArray();\n }\n\n result = util.map(result, function(el) {\n return el.value;\n });\n\n if (!result.length) {\n result = '';\n } else if (result.length === 1) {\n result = result[0];\n }\n\n output[name] = result;\n });\n });\n\n return output;\n }\n};\n\n/*eslint-disable*/\nvar userSelectProperty = domutil.testProp([\n 'userSelect',\n 'WebkitUserSelect',\n 'OUserSelect',\n 'MozUserSelect',\n 'msUserSelect'\n]);\nvar supportSelectStart = 'onselectstart' in document;\nvar prevSelectStyle = '';\n/* eslint-enable*/\n\n/**\n * Disable browser's text selection behaviors.\n * @method\n */\ndomutil.disableTextSelection = (function() {\n if (supportSelectStart) {\n return function(dom) {\n domevent.on(dom, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function(dom) {\n var style = dom.style;\n prevSelectStyle = style[userSelectProperty];\n style[userSelectProperty] = 'none';\n };\n})();\n\n/**\n * Enable browser's text selection behaviors.\n * @method\n */\ndomutil.enableTextSelection = (function() {\n if (supportSelectStart) {\n return function() {\n domevent.off(window, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function() {\n document.documentElement.style[userSelectProperty] = prevSelectStyle;\n };\n})();\n\n/**\n * Disable browser's image drag behaviors.\n */\ndomutil.disableImageDrag = function() {\n domevent.on(window, 'dragstart', domevent.preventDefault);\n};\n\n/**\n * Enable browser's image drag behaviors.\n */\ndomutil.enableImageDrag = function() {\n domevent.off(window, 'dragstart', domevent.preventDefault);\n};\n\nmodule.exports = domutil;\n","/**\n * @fileoverview Wrapper module for easy calc date object\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar TZDate = require('./timezone').Date;\n\n/**\n * @constructor\n * @param {TZDate} date to wrapping DW class\n */\nfunction DW(date) {\n if (!(this instanceof DW)) {\n return new DW(date);\n }\n\n if (!(date instanceof TZDate)) {\n date = new TZDate(date);\n }\n\n /**\n * @type {TZDate}\n */\n this.d = date;\n}\n\n/**\n * Return d property when supplied object is DW. else return itself\n * @param {*} obj - object\n * @returns {TZDate} date\n */\nDW.prototype.safe = function(obj) {\n if (obj.constructor === DW) {\n return obj.d;\n }\n\n return obj;\n};\n\n/**\n * Clone DW object\n * @returns {DW} cloned dwrap object\n */\nDW.prototype.clone = function() {\n return new DW(new TZDate(this.d));\n};\n\n/**\n * Add days\n * @param {number} day - day to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addDate = function(day) {\n this.d.setDate(this.d.getDate() + day);\n\n return this;\n};\n\n/**\n * Add month.\n * @param {number} m - month to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addMonth = function(m) {\n var currentMonth = this.d.getMonth();\n var currentDay = this.d.getDate();\n var leapYear = this._isLeapYear();\n var targetMonth = currentMonth + m;\n var clone = this.clone();\n var targetDaysOfMonth = currentDay;\n\n if (m) {\n if (targetMonth === 1) {\n targetDaysOfMonth = leapYear ? 29 : 28;\n } else {\n if (m > 0) {\n clone.d.setMonth(targetMonth + 1, 0);\n } else {\n clone.d.setMonth(currentMonth, 0);\n }\n targetDaysOfMonth = clone.d.getDate();\n }\n }\n\n this.d.setMonth(targetMonth, Math.min(currentDay, targetDaysOfMonth));\n\n return this;\n};\n\n/**\n * Is leap year or not\n * @returns {boolean}\n */\nDW.prototype._isLeapYear = function() {\n var year = this.d.getFullYear();\n\n return ((year % 4 === 0) && (year % 100 !== 0)) || !(year % 400);\n};\n\n/**\n * Set hour, minutes, seconds, milliseconds\n * @param {number} h - hours\n * @param {number} m - minutes\n * @param {number} s - seconds\n * @param {number} ms - milliseconds\n * @returns {DW} wrapper object\n */\nDW.prototype.setHours = function(h, m, s, ms) {\n this.d.setHours(h, m, s, ms);\n\n return this;\n};\n\n/**\n * Whether date is between supplied dates?\n * @param {TZDate|DW} d1 - from date\n * @param {TZDate|DW} d2 - to date\n * @returns {boolean} is between?\n */\nDW.prototype.isBetween = function(d1, d2) {\n var safe = this.safe;\n\n return safe(d1) <= this.d && this.d <= safe(d2);\n};\n\nmodule.exports = DW;\n","/**\n * @fileoverview Floating layer module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for floating layer module\n * @param {HTMLElement} container - parent continer for floating layer\n */\nfunction FloatingLayer(options, container) {\n var sibling = container[FloatingLayer.PROP_KEY],\n layerContainer;\n\n if (!sibling) {\n sibling = container[FloatingLayer.PROP_KEY] = [];\n }\n\n sibling.push(this);\n\n /**\n * @type {Collection}\n */\n this.sibling = sibling;\n\n /**\n * @type {number}\n */\n this.zIndex = this.getLargestZIndex() || FloatingLayer.INIT_ZINDEX;\n\n layerContainer = document.createElement('div');\n layerContainer.style.display = 'none';\n layerContainer.style.position = 'absolute';\n domutil.addClass(layerContainer, config.classname('floating-layer'));\n container.appendChild(layerContainer);\n\n View.call(this, layerContainer);\n\n /**\n * @type {HTMLElement}\n */\n this.parent = container;\n}\n\nutil.inherit(FloatingLayer, View);\n\n/**\n * @const\n */\nFloatingLayer.PROP_KEY = '__fe_floating_layer';\n\n/**\n * @const\n */\nFloatingLayer.INIT_ZINDEX = 999;\n\n/**\n * Destroy floating layer instance. if there no instnace in parent container\n *\n * remove instance cache property in container element\n */\nFloatingLayer.prototype.destroy = function() {\n var parent = this.parent,\n sibling = this.sibling,\n i = 0, cnt = sibling.length;\n\n for (; i < cnt; i += 1) {\n if (sibling[i] === this) {\n sibling.splice(i, 1);\n break;\n }\n }\n\n if (!sibling.length) {\n try {\n delete parent[FloatingLayer.PROP_KEY];\n } catch (e) {\n parent[FloatingLayer.PROP_KEY] = null;\n }\n\n parent.style.position = '';\n }\n\n domutil.remove(this.container);\n\n this.sibling = null;\n\n View.prototype.destroy.call(this);\n};\n\n/**\n * @returns {boolean} whether layer is visible?\n */\nFloatingLayer.prototype.isVisible = function() {\n return this.container.style.display !== 'none';\n};\n\n/**\n * Set layer position\n * @param {number} x - x coordinate of layer\n * @param {number} y - y coordinate of layer\n */\nFloatingLayer.prototype.setPosition = function(x, y) {\n domutil.setPosition(this.container, x, y);\n};\n\n/**\n * Set layer left, top, right, bottom position\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\nFloatingLayer.prototype.setLTRB = function(ltrb) {\n domutil.setLTRB(this.container, ltrb);\n};\n\n/**\n * Set layer size\n * @param {number|string} w - layer width\n * @param {number|string} h - layer height\n */\nFloatingLayer.prototype.setSize = function(w, h) {\n var container = this.container;\n\n w = util.isNumber(w) ? w + 'px' : w;\n h = util.isNumber(h) ? h + 'px' : h;\n\n container.style.width = w;\n container.style.height = h;\n};\n\n/**\n * Set layer content\n * @param {string} html - html string\n */\nFloatingLayer.prototype.setContent = function(html) {\n this.container.innerHTML = html;\n};\n\n/**\n * Get largest z-index from sibling layers\n * @returns {number} largest z-index value\n */\nFloatingLayer.prototype.getLargestZIndex = function() {\n var zIndexes = util.map(this.sibling, function(layer) {\n return layer.zIndex;\n });\n\n return Math.max.apply(null, zIndexes);\n};\n\n/**\n * Set focus to layer\n */\nFloatingLayer.prototype.focus = function() {\n var zIndexForShow = this.getLargestZIndex() + 1;\n this.container.style.zIndex = this.zIndex = zIndexForShow;\n};\n\n/**\n * Show layer\n */\nFloatingLayer.prototype.show = function() {\n this.focus();\n this.container.style.display = 'block';\n};\n\n/**\n * Hide layer\n */\nFloatingLayer.prototype.hide = function() {\n this.container.style.display = 'none';\n};\n\nmodule.exports = FloatingLayer;\n","/**\n * @fileoverview Mixin module for models.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar TZDate = require('../common/timezone').Date;\nvar util = require('tui-code-snippet');\nvar spaceRx = /^\\s*|\\s*$/g,\n model;\n\nvar datetime = require('../common/datetime');\n\n/**\n * Mixin module for models.\n * @mixin\n */\nmodel = {\n /**\n * string trim\n * @param {string} str string to trim\n * @returns {string} trimed string\n */\n trim: function(str) {\n return str.replace(spaceRx, '');\n },\n /**\n * The collections of validator functions.\n */\n validators: {\n /**\n * check all of supplied fields(property) is not undefined or empty string.\n * @param {object} instance model instance.\n * @param {string[]} fields property names to check.\n * @returns {boolean} return true when supplied fields are not undefined or empty string.\n */\n required: function(instance, fields) {\n var valid = true,\n isValid = function(obj) {\n return !util.isUndefined(obj) && model.trim(obj) !== '';\n };\n\n util.forEach(fields, function(fieldName) {\n valid = isValid(instance[fieldName]);\n\n return valid;\n });\n\n return valid;\n },\n\n /**\n * check supplied fields are valid dates and valid date ranges.\n * @param {object} instance model instance.\n * @param {Date[]} fields array of date range (start, end)\n * @returns {boolean} is valid date range?\n */\n dateRange: function(instance, fields) {\n var start, end;\n\n if (!util.isExisty(instance) || fields.length !== 2) {\n return true;\n }\n\n start = new TZDate(instance[fields[0]]);\n end = new TZDate(instance[fields[1]]);\n\n if (!datetime.isValid(start) || !datetime.isValid(end)) {\n return false;\n }\n\n if (datetime.compare(start, end) === 1) {\n return false;\n }\n\n return true;\n }\n },\n\n /**\n * Check validate for model instance.\n *\n * The validate are works on a basis of constructor's \"schema\" property.\n *\n * You can customize validators add some method to model#validators.\n * @returns {Boolean} model is valid?\n */\n isValid: function() {\n var self = this,\n schema = this.constructor.schema,\n validators = model.validators,\n validator,\n valid = true;\n\n if (!schema) {\n return true;\n }\n\n util.forEach(schema, function(values, validatorName) {\n validator = validators[validatorName];\n\n if (validator) {\n valid = validator(self, values);\n\n return valid; // returning false can stop this loop\n }\n\n return true;\n });\n\n return valid;\n },\n\n /**\n * Make data object form instance.\n *\n * It return object fill with all owned properties but exclude functions.\n * @returns {object} Data object\n */\n parameterize: function() {\n var param = {},\n isFunc = util.isFunction;\n\n util.forEach(this, function(value, propName) {\n if (!isFunc(value)) {\n param[propName] = value;\n }\n });\n\n return param;\n },\n\n /**\n * Mixin model module to supplied target.\n * @param {Object} target The object of want to mixed.\n * @example\n * function Man() {\n * this.name = 'john';\n * }\n * model.mixin(Man.prototype);\n */\n mixin: function(target) {\n util.forEach(model, function(method, name) {\n if (name !== 'mixin') {\n target[name] = method;\n }\n });\n }\n};\n\nmodule.exports = model;\n","/**\n * @fileoverview\n * Class for represent two dimensional x, y coordinates.\n *\n * It suppliy a group of functions for manipulate coordinates.\n * @author NHN FE Development Lab \n * @example\n * var p = point(10, 10);\n * var r1 = p.add(Point(5, 5));\n * console.log(p.toString()) // \"Point(10, 10)\"\n * console.log(r1.toString()) // \"Point(15, 15)\"\n *\n * var p2 = new Point(10, 10);\n * p2._add(point(5, 5));\n * console.log(p2.toString()) // \"Point(15, 15)\"\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\n/**\n * Class for represent two dimentional x, y coordinates.\n * @constructor\n * @param {number} x The number of X coordinates.\n * @param {number} y The number of Y coordinates.\n * @param {boolean} [useRound=false] set true when each coordinates are rounded before initialize.\n * @example\n * var t = new Point(13, 5);\n */\nfunction Point(x, y, useRound) {\n /**\n * @type {number}\n */\n this.x = (useRound ? Math.round(x) : x);\n\n /**\n * @type {number}\n */\n this.y = (useRound ? Math.round(y) : y);\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Calculate point ratio.\n * @param {Point} point The instance of point.\n * @param {number} factor From factor\n * @param {number} toFactor To factor\n * @returns {Point} Point instance calculated.\n */\nPoint.getRatio = function(point, factor, toFactor) {\n if (factor === toFactor) {\n return point.clone();\n }\n\n return point.multiplyBy(toFactor)._divideBy(factor);\n};\n\n/**\n * Syntatic sugar of new Point()\n * @param {(Point|number|number[])} x X coordinate value.\n * @param {(number|boolean)} [y] Y coordinate value or boolean value for coordinates round.\n * @param {boolean} [useRound] Set true then round initial coordinate values.\n * @returns {Point} The instance of point.\n * @example\n * var p1 = point(10, 15);\n * var p2 = point([10, 15]);\n */\nPoint.n = function(x, y, useRound) {\n if (x instanceof Point) {\n return x;\n }\n\n if (util.isArray(x)) {\n return new Point(x[0], x[1], y);\n }\n\n return new Point(x, y, useRound);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Clone points\n * @returns {Point} The point instance cloned.\n */\nPoint.prototype.clone = function() {\n return new Point(this.x, this.y);\n};\n\n/**\n * Add points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.add = function(point) {\n return this.clone()._add(Point.n(point));\n};\n\n/**\n * Add self points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._add = function(point) {\n this.x += point.x;\n this.y += point.y;\n\n return this;\n};\n\n/**\n * Subtract points.\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.subtract = function(point) {\n return this.clone()._subtract(Point.n(point));\n};\n\n/**\n * Subtract points. (manipulate self)\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._subtract = function(point) {\n this.x -= point.x;\n this.y -= point.y;\n\n return this;\n};\n\n/**\n * Divide points.\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.divideBy = function(num) {\n return this.clone()._divideBy(num);\n};\n\n/**\n * Divide points. (manipulate self)\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._divideBy = function(num) {\n this.x /= num;\n this.y /= num;\n\n return this;\n};\n\n/**\n * Multiply coordinates.\n * @param {number} num Thyen number to multiply\n * @returns {Point} Point calculated.\n */\nPoint.prototype.multiplyBy = function(num) {\n return this.clone()._multiplyBy(num);\n};\n\n/**\n * Multiply self coordinates.\n * @param {number} num The number to multiply.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._multiplyBy = function(num) {\n this.x *= num;\n this.y *= num;\n\n return this;\n};\n\n/**\n * Round coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.round = function() {\n return this.clone()._round();\n};\n\n/**\n * Round self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._round = function() {\n this.x = Math.round(this.x);\n this.y = Math.round(this.y);\n\n return this;\n};\n\n/**\n * Reverse values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.reverse = function() {\n return this.clone()._reverse();\n};\n\n/**\n * Reverse self values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._reverse = function() {\n this.x *= -1;\n this.y *= -1;\n\n return this;\n};\n\n/**\n * Floor coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.floor = function() {\n return this.clone()._floor();\n};\n\n/**\n * Floor self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._floor = function() {\n this.x = Math.floor(this.x);\n this.y = Math.floor(this.y);\n\n return this;\n};\n\n/**\n * Ceil coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.ceil = function() {\n return this.clone()._ceil();\n};\n\n/**\n * Ceil self coodinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._ceil = function() {\n this.x = Math.ceil(this.x);\n this.y = Math.ceil(this.y);\n\n return this;\n};\n\n/**\n * Rotate point.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype.rotate = function(deg, center, cos, sin) {\n return this.clone()._rotate(deg, center, cos, sin);\n};\n\n/**\n * Rotate self.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype._rotate = function(deg, center, cos, sin) {\n var rad = deg * (Math.PI / 180),\n x,\n y;\n\n cos = cos || parseFloat(Math.cos(rad).toFixed(8));\n sin = sin || parseFloat(Math.sin(rad).toFixed(8));\n\n this._subtract(center);\n\n x = this.x;\n y = this.y;\n\n this.x = (x * cos) - (y * sin);\n this.y = (x * sin) + (y * cos);\n\n this._add(center);\n\n return this;\n};\n\n/**\n * Calculate distance between two points.\n * @param {Point} point Point instance.\n * @returns {number} The number of distance between two points.\n */\nPoint.prototype.distanceTo = function(point) {\n var x,\n y;\n\n point = Point.n(point);\n\n x = point.x - this.x;\n y = point.y - this.y;\n\n return Math.sqrt((x * x) + (y * y));\n};\n\n/**\n * Check point equals.\n * @param {Point} point Point instance to compare\n * @returns {boolean} equality\n */\nPoint.prototype.equals = function(point) {\n point = Point.n(point);\n\n return point.x === this.x && point.y === this.y;\n};\n\n/**\n * Return formatted string. 'Point(x, y)'\n * @returns {string} string\n */\nPoint.prototype.toString = function() {\n return 'Point(' + this.x + ', ' + this.y + ')';\n};\n\n/**\n * Return coodinates to array. [x, y]\n * @returns {number[]} coordinate array.\n */\nPoint.prototype.toArray = function() {\n return [this.x, this.y];\n};\n\nmodule.exports = Point;\n","/**\n * @fileoverview RequestAnimFrame\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar requestFn,\n cancelFn;\n\n/**\n * Get name with vendor prefix\n * @param {string} name - name to prepend prefix\n * @returns {string} vendor prefixed name\n */\nfunction getPrefixed(name) {\n return global['webkit' + name] || global['moz' + name] || global['ms' + name];\n}\n\nrequestFn = global.requestAnimationFrame ||\n getPrefixed('RequestAnimationFrame') ||\n function(fn, context) {\n fn.call(context);\n };\n\ncancelFn = global.cancelAnimationFrame ||\n getPrefixed('CancelAnimationFrame') ||\n getPrefixed('CancelRequestAnimationFrame') ||\n function() {};\n\n/**\n * @module module:reqAnimFrame\n */\n\nmodule.exports = {\n /**\n * Shim of requestAnimationFrame\n * @param {function} fn callback function\n * @param {*} context context for callback\n * @returns {number} Unique id\n */\n requestAnimFrame: function(fn, context) {\n return requestFn.call(global, util.bind(fn, context));\n },\n\n /**\n * Shim of cancelAnimationFrame\n * @param {number} id requestAnimationFrame id\n */\n cancelAnimFrame: function(id) {\n if (!id) {\n return;\n }\n\n cancelFn.call(global, id);\n }\n};\n","/**\n * @fileoverview timezone\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar MIN_TO_MS = 60 * 1000;\nvar nativeOffsetMs = getTimezoneOffset();\nvar customOffsetMs = nativeOffsetMs;\nvar timezoneOffsetCallback = null;\nvar setByTimezoneOption = false;\n\nvar getterMethods = [\n 'getDate',\n 'getDay',\n 'getFullYear',\n 'getHours',\n 'getMilliseconds',\n 'getMinutes',\n 'getMonth',\n 'getSeconds'\n];\n\nvar setterMethods = [\n 'setDate',\n 'setFullYear',\n 'setHours',\n 'setMilliseconds',\n 'setMinutes',\n 'setMonth',\n 'setSeconds'\n];\n\n/**\n * Get the timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n * @private\n */\nfunction getTimezoneOffset(timestamp) {\n timestamp = timestamp || Date.now();\n\n return new Date(timestamp).getTimezoneOffset() * MIN_TO_MS;\n}\n\n/**\n * Get the custome timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n * @private\n */\nfunction getCustomTimezoneOffset(timestamp) {\n if (!setByTimezoneOption && timezoneOffsetCallback) {\n return timezoneOffsetCallback(timestamp) * MIN_TO_MS;\n }\n\n return customOffsetMs;\n}\n\n/**\n * Convert to local time\n * @param {number} time - time\n * @returns {number} local time\n */\nfunction getLocalTime(time) {\n var timezoneOffset = getTimezoneOffset(time);\n var customTimezoneOffset = getCustomTimezoneOffset(time);\n var timezoneOffsetDiff = customTimezoneOffset ? 0 : nativeOffsetMs - timezoneOffset;\n var localTime = time - customTimezoneOffset + timezoneOffset + timezoneOffsetDiff;\n\n return localTime;\n}\n\n/**\n * Create a Date instance with multiple arguments\n * @param {Array} args - arguments\n * @returns {Date}\n * @private\n */\nfunction createDateWithMultipleArgs(args) {\n var utc = Date.UTC.apply(null, args);\n\n return new Date(utc + getTimezoneOffset(utc));\n}\n\n/**\n * To convert a Date to TZDate as it is.\n * @param {TZDate|number|null} arg - date\n * @returns {Date}\n */\nfunction createDateWithUTCTime(arg) {\n var time;\n\n if (arg instanceof TZDate) {\n time = arg.getUTCTime();\n } else if ((typeof arg) === 'number') {\n time = arg;\n } else if (arg === null) {\n time = 0;\n } else {\n throw new Error('Invalid Type');\n }\n\n return new Date(time);\n}\n\n/**\n * Convert time to local time. Those times are only from API and not from inner source code.\n * @param {Date|string} arg - date\n * @returns {Date}\n */\nfunction createDateAsLocalTime(arg) {\n var time;\n\n if (arg instanceof Date) {\n time = arg.getTime();\n } else if ((typeof arg) === 'string') {\n time = Date.parse(arg);\n } else {\n throw new Error('Invalid Type');\n }\n\n time = getLocalTime(time);\n\n return new Date(time);\n}\n\n/**\n * is it for local time? These type can be used from Calendar API.\n * @param {Date|string} arg - date\n * @returns {boolean}\n */\nfunction useLocalTimeConverter(arg) {\n return arg instanceof Date || (typeof arg) === 'string';\n}\n\n/**\n * Timezone Date Class\n * @param {number|TZDate|Date|string} date - date to be converted\n * @constructor\n */\nfunction TZDate(date) {\n var nativeDate;\n\n if (util.isUndefined(date)) {\n date = Date.now();\n }\n\n if (arguments.length > 1) {\n nativeDate = createDateWithMultipleArgs(arguments);\n } else if (useLocalTimeConverter(date)) {\n nativeDate = createDateAsLocalTime(date);\n } else {\n nativeDate = createDateWithUTCTime(date);\n }\n\n this._date = nativeDate;\n}\n\n/**\n * Get milliseconds which is converted by timezone\n * @returns {number} milliseconds\n */\nTZDate.prototype.getTime = function() {\n var time = this._date.getTime();\n\n return time + getCustomTimezoneOffset(time) - getTimezoneOffset(time);\n};\n\n/**\n * Get UTC milliseconds\n * @returns {number} milliseconds\n */\nTZDate.prototype.getUTCTime = function() {\n return this._date.getTime();\n};\n\n/**\n * toUTCString\n * @returns {string}\n */\nTZDate.prototype.toUTCString = function() {\n return this._date.toUTCString();\n};\n\n/**\n * to Date\n * @returns {Date}\n */\nTZDate.prototype.toDate = function() {\n return this._date;\n};\n\nTZDate.prototype.valueOf = function() {\n return this.getTime();\n};\n\nTZDate.prototype.addDate = function(day) {\n this.setDate(this.getDate() + day);\n\n return this;\n};\n\nTZDate.prototype.addMinutes = function(minutes) {\n this.setMinutes(this.getMinutes() + minutes);\n\n return this;\n};\n\nTZDate.prototype.addMilliseconds = function(milliseconds) {\n this.setMilliseconds(this.getMilliseconds() + milliseconds);\n\n return this;\n};\n\n/* eslint-disable max-params*/\nTZDate.prototype.setWithRaw = function(y, M, d, h, m, s, ms) {\n this.setFullYear(y, M, d);\n this.setHours(h, m, s, ms);\n\n return this;\n};\n\n/**\n * @returns {TZDate} local time\n */\nTZDate.prototype.toLocalTime = function() {\n var time = this.getTime();\n var utcTime = this.getUTCTime();\n var diff = time - utcTime;\n\n return new TZDate(utcTime - diff);\n};\n\ngetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n return this._date[methodName].apply(this._date, arguments);\n };\n});\n\nsetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n this._date[methodName].apply(this._date, arguments);\n\n return this.getTime();\n };\n});\n\nmodule.exports = {\n Date: TZDate,\n\n /**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\n setOffset: function(offset) {\n customOffsetMs = offset * MIN_TO_MS;\n },\n\n /**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\n setOffsetByTimezoneOption: function(offset) {\n this.setOffset(-offset);\n setByTimezoneOption = true;\n },\n\n /**\n * Get offset in case of `setByTimezoneOption`. Or return 0.\n * @returns {number} timezone offset offset minutes\n */\n getOffset: function() {\n if (setByTimezoneOption) {\n return customOffsetMs / MIN_TO_MS;\n }\n\n return 0;\n },\n\n /**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - callback function\n */\n setOffsetCallback: function(callback) {\n timezoneOffsetCallback = callback;\n },\n\n /**\n * (Use this method only for testing)\n * Reset system timezone and custom timezone\n */\n restoreOffset: function() {\n customOffsetMs = getTimezoneOffset();\n }\n};\n","/**\n * @fileoverview Layout module that supplied split height, resize height features.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n domevent = require('./domevent'),\n View = require('../view/view'),\n VPanel = require('./vpanel'),\n Drag = require('../handler/drag');\n\nvar mAbs = Math.abs;\n\n/**\n * @typedef PanelOptions\n * @type {object}\n * @property {number} [minHeight=0] - minimum height of panel\n * @property {number} [height=0] - current panel height\n * @property {boolean} [splitter=false] - is this panel uses splitter?\n * @property {boolean} [autoHeight=false] - is this panel uses remain height of container?\n * @property {string} [className=''] - className string for add created element\n */\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VLayout module\n * @param {PanelOptions[]} [options.panels] - panels to add layout when initialize\n * @param {number[]} [options.panelHeights] - panel height list\n * @param {HTMLElement} container - container element\n * @param {Theme} theme - theme instance\n */\nfunction VLayout(options, container, theme) {\n var opt, tempHeights;\n\n if (!(this instanceof VLayout)) {\n return new VLayout(options, container);\n }\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('vlayout-container'));\n\n /**\n * @type {object}\n */\n opt = this.options = util.extend({\n panels: [],\n panelHeights: []\n }, options);\n\n /**\n * @type {VPanel[]}\n */\n this.panels = [];\n\n /**\n * @type {Drag}\n */\n this._drag = new Drag({\n distance: 10,\n exclude: function(target) {\n return !domutil.hasClass(target, config.classname('splitter'));\n }\n }, container);\n\n this._drag.on({\n dragStart: this._onDragStart,\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @type {object}\n */\n this._dragData = null;\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n if (opt.panels.length) {\n if (opt.panelHeights.length) {\n tempHeights = opt.panelHeights.slice();\n util.forEach(opt.panels, function(panelOpt) {\n if (!panelOpt.isSplitter && !panelOpt.autoHeight) {\n panelOpt.height = tempHeights.shift();\n }\n });\n }\n\n this.addPanels(opt.panels, this.container);\n }\n\n this.refresh();\n}\n\nutil.inherit(VLayout, View);\n\n/**\n * Get current panels height in layout\n * @returns {number[]} height of panels with `autoHeight` false\n */\nVLayout.prototype.getLayoutData = function() {\n var heightList = [];\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n heightList.push(panel.getHeight());\n });\n\n return heightList;\n};\n\n/**\n * Set panels height in layout\n * @param {number[]} heightList of panels with `autoHeight` false\n */\nVLayout.prototype.setLayoutData = function(heightList) {\n if (!heightList.length) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n panel.setHeight(null, heightList.shift());\n });\n\n this.refresh();\n};\n\n/**\n * Get next panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} next panel\n */\nVLayout.prototype.nextPanel = function(panel) {\n return this.panels[panel.index + 1];\n};\n\n/**\n * Get previous panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} previous panel\n */\nVLayout.prototype.prevPanel = function(panel) {\n return this.panels[panel.index - 1];\n};\n\n/**\n * Initialize resizing guide element\n * @param {HTMLElement} element - element to use guide element after cloned\n * @param {number} top - top pixel value for guide element\n * @returns {HTMLElement} cloned element == guide element\n */\nVLayout.prototype._initializeGuideElement = function(element, top) {\n var cloned = element.cloneNode(true);\n\n domutil.addClass(cloned, config.classname('splitter-guide'));\n this._refreshGuideElement(cloned, top);\n this.container.appendChild(cloned);\n\n return cloned;\n};\n\n/**\n * Refresh guide element position\n * @param {HTMLElement} element - guide element\n * @param {number} top - top pixel value for guide element\n */\nVLayout.prototype._refreshGuideElement = function(element, top) {\n element.style.top = top + 'px';\n};\n\n/**\n * Clear guide element position\n * @param {HTMLElement} element - guide element\n */\nVLayout.prototype._clearGuideElement = function(element) {\n domutil.remove(element);\n};\n\n/**\n * Resize overall panels size\n * @param {VPanel} splPanel - splitter panel instance\n * @param {number} startY - dragstart Y position\n * @param {number} mouseY - dragend Y position\n */\nVLayout.prototype._resize = function(splPanel, startY, mouseY) {\n var diffY = startY - mouseY,\n resizedHeight = mAbs(diffY),\n resizeMap = [],\n toDown = mouseY > startY,\n backwardMethod = toDown ? 'prevPanel' : 'nextPanel',\n forwardMethod = toDown ? 'nextPanel' : 'prevPanel',\n cursor, resizeInfo;\n\n cursor = this[backwardMethod](splPanel);\n resizeInfo = cursor.getResizeInfoByGrowth(resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n\n for (cursor = this[forwardMethod](cursor);\n util.isExisty(cursor);\n cursor = this[forwardMethod](cursor)) {\n if (cursor.isSplitter()) {\n continue;\n }\n\n resizeInfo = cursor.getResizeInfoByGrowth(-resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n resizedHeight -= resizeInfo[1];\n }\n\n util.forEach(resizeMap, function(pair) {\n pair[0].setHeight(null, pair[1], true);\n pair[0].fire('resize');\n });\n};\n\n/**\n * Get summation of splitter and panel's minimum height upper and below of supplied splitter\n * @param {VPanel} splPanel - splitter panel instance\n * @returns {number[]} upper and below splitter's height and panel minimum height summation.\n */\nVLayout.prototype._getMouseYAdditionalLimit = function(splPanel) {\n var upper = 0,\n below = 0,\n cursor,\n func = function(panel) {\n if (panel.isSplitter()) {\n return panel.getHeight();\n }\n\n return panel.options.minHeight;\n };\n\n for (cursor = this.prevPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.prevPanel(cursor)) {\n upper += func(cursor);\n }\n\n for (cursor = this.nextPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.nextPanel(cursor)) {\n below += func(cursor);\n }\n\n return [upper, below];\n};\n\n/**********\n * Drag Handlers\n **********/\n\n/**\n * Drag start schedule handler\n * @param {object} e - drag start schedule data\n */\nVLayout.prototype._onDragStart = function(e) {\n var oEvent = e.originEvent,\n target = e.target,\n splIndex = domutil.getData(target, 'panelIndex'),\n splPanel = this.panels[splIndex],\n splHeight = splPanel.getHeight(),\n splOffsetY = domevent.getMousePosition(oEvent, target)[1],\n mouseY = domevent.getMousePosition(oEvent, this.container)[1],\n guideElement = this._initializeGuideElement(target, mouseY);\n\n splPanel.addClass(config.classname('splitter-focused'));\n\n this._dragData = {\n splPanel: splPanel,\n splOffsetY: splOffsetY,\n guideElement: guideElement,\n startY: mouseY - splOffsetY,\n minY: 0,\n maxY: this.getViewBound().height - splHeight\n };\n\n if (!util.browser.msie) {\n domutil.addClass(document.body, config.classname('resizing'));\n }\n};\n\n/**\n * Drag schedule handler\n * @param {object} e - drag schedule data\n */\nVLayout.prototype._onDrag = function(e) {\n var dragData = this._dragData,\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n mouseY = common.limit(mouseY - dragData.splOffsetY, [dragData.minY], [dragData.maxY]);\n\n this._refreshGuideElement(dragData.guideElement, mouseY);\n};\n\n/**\n * Drag end schedule handler\n * @fires VLayout#resize\n * @param {object} e - dragend schedule data\n */\nVLayout.prototype._onDragEnd = function(e) {\n var dragData = this._dragData,\n asideMinMax = this._getMouseYAdditionalLimit(dragData.splPanel),\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n // mouseY value can't exceed summation of splitter height and panel's minimum height based on target splitter.\n mouseY = common.limit(\n mouseY - dragData.splOffsetY,\n [dragData.minY + asideMinMax[0]],\n [dragData.maxY - asideMinMax[1]]\n );\n\n this._resize(dragData.splPanel, dragData.startY, mouseY);\n\n /**\n * @event VLayout#resize\n * @type {object}\n * @property {number[]} layoutData - layout data after resized\n */\n this.fire('resize', {\n layoutData: this.getLayoutData()\n });\n\n this._dragData = null;\n this._clearGuideElement(dragData.guideElement);\n dragData.splPanel.removeClass(config.classname('splitter-focused'));\n domutil.removeClass(document.body, config.classname('resizing'));\n};\n\n/**********\n * Methods\n **********/\n\n/**\n * refresh each panels\n */\nVLayout.prototype.refresh = function() {\n var panelToFillHeight = [];\n var layoutHeight = this.getViewBound().height;\n var usedHeight = 0;\n var remainHeight;\n\n if (!layoutHeight) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.options.autoHeight) {\n panelToFillHeight.push(panel);\n } else {\n usedHeight += panel.getHeight();\n }\n });\n\n remainHeight = (layoutHeight - usedHeight) / panelToFillHeight.length;\n\n util.forEach(panelToFillHeight, function(panel) {\n panel.setHeight(null, remainHeight);\n });\n};\n\n/**\n * add panel\n * @param {PanelOptions} options - options for panel\n * @param {container} [container] - container element\n */\nVLayout.prototype.addPanel = function(options, container) {\n var element = document.createElement('div'),\n panels = this.panels,\n index = panels.length;\n\n options = util.extend({\n index: index\n }, options);\n\n panels.push(new VPanel(options, element, this.theme));\n\n container.appendChild(element);\n};\n\n/**\n * Add multiple panel\n * @param {PanelOptions[]} options - panel options list\n * @param {HTMLElement} container - container element\n */\nVLayout.prototype.addPanels = function(options, container) {\n var self = this,\n frag = document.createDocumentFragment();\n\n util.forEach(options, function(option) {\n self.addPanel(option, frag);\n });\n\n container.appendChild(frag);\n};\n\n/**\n * Get a panel by name\n * @param {string} name - panel's name\n * @returns {VPanel}\n */\nVLayout.prototype.getPanelByName = function(name) {\n var found;\n util.forEach(this.panels, function(panel) {\n if (panel.name === name) {\n found = panel;\n }\n });\n\n return found;\n};\n\nmodule.exports = VLayout;\n","/**\n * @fileoverview Panel class for VLayout module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VPanel\n * @param {number} options.index - index of panel in vlayout\n * @param {number} [options.minHeight=0] - minimum height of panel\n * @param {number} [options.height] - initial height of panel\n * @param {boolean} [options.isSplitter=false] - set true then this panel works splitter\n * @param {boolean} [options.autoHeight=false] - set true then this panel use remain height after other panel resized.\n * @param {string} [options.className] - additional class name to add element\n * @param {HTMLElement} container - container element\n * @param {Theme} theme - theme instance\n */\nfunction VPanel(options, container, theme) {\n View.call(this, container);\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n index: 0,\n name: '0',\n minHeight: 0,\n maxHeight: null,\n height: null,\n isSplitter: false,\n autoHeight: false,\n className: ''\n }, options);\n\n /**\n * @type {number}\n */\n this.index = this.options.index;\n\n /**\n * @type {string}\n */\n this.name = this.options.name || String(this.index);\n\n this.isHeightForcedSet = false;\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n this._initPanel(this.options, container);\n}\n\nutil.inherit(VPanel, View);\n\n/**\n * whether this panel is splitter?\n * @returns {boolean} panel is splitter?\n */\nVPanel.prototype.isSplitter = function() {\n return this.options.isSplitter;\n};\n\n/**\n * set max height of panel\n * @param {number} maxHeight - maxHeight\n */\nVPanel.prototype.setMaxHeight = function(maxHeight) {\n if (!this.options.autoHeight) {\n this.options.maxHeight = maxHeight;\n }\n};\n\n/**\n * set forced height flag\n * @param {boolean} set - enable or not\n */\nVPanel.prototype.setHeightForcedSet = function(set) {\n this.isHeightForcedSet = set;\n};\n\n/**\n * get forced height flag\n * @returns {boolean} set - enable or not\n */\nVPanel.prototype.getHeightForcedSet = function() {\n return this.isHeightForcedSet;\n};\n\n/**\n * set height of html element\n * @param {HTMLElement} [container] - container element\n * @param {number} newHeight - height\n * @param {boolean} force - whether ignore max-length\n */\nVPanel.prototype.setHeight = function(container, newHeight, force) {\n var maxHeight = this.options.maxHeight;\n var minHeight = this.options.minHeight;\n var autoHeight = this.options.autoHeight;\n container = container || this.container;\n\n // 한번 force 호출이 일어난 이후에는 force 호출만 허용한다\n if (!force && this.isHeightForcedSet && !autoHeight) {\n return;\n }\n\n if (force) {\n this.isHeightForcedSet = true;\n } else if (maxHeight) {\n newHeight = Math.min(newHeight, maxHeight);\n }\n newHeight = Math.max(minHeight, newHeight);\n\n container.style.height = newHeight + 'px';\n};\n\n/**\n * Calculate new height of panel and remains by supplied height growth\n * @param {number} growth - growth value\n * @returns {number[]} newHeight, remainHeight\n */\nVPanel.prototype.getResizeInfoByGrowth = function(growth) {\n var height = this.getHeight(),\n newHeight = height + growth,\n resizeTo = Math.max(0, newHeight, this.options.minHeight);\n\n return [resizeTo, height - resizeTo];\n};\n\n/**\n * get outer height of panel element\n * @returns {number} outer height of panel element\n */\nVPanel.prototype.getHeight = function() {\n return domutil.getSize(this.container)[1];\n};\n\n/**\n * add design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.addClass = function(className) {\n domutil.addClass(this.container, className);\n};\n\n/**\n * remove design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.removeClass = function(className) {\n domutil.removeClass(this.container, className);\n};\n\n/**\n * initialize panel element\n * @param {PanelOptions} options - options for panel\n * @param {HTMLDivElement} container - panel element\n */\nVPanel.prototype._initPanel = function(options, container) {\n var height;\n\n domutil.setData(container, 'panelIndex', options.index);\n\n if (options.isSplitter) {\n domutil.addClass(container, config.classname('splitter'));\n this.applyTheme();\n\n return;\n }\n\n if (options.className) {\n domutil.addClass(container, options.className);\n }\n\n if (options.autoHeight) {\n domutil.setData(container, 'autoHeight', true);\n } else {\n height = common.limit(options.height || 0,\n [options.minHeight],\n [options.maxHeight || options.height]\n );\n\n options.height = height;\n this.setHeight(container, height);\n }\n};\n\nVPanel.prototype.applyTheme = function() {\n var style = this.container.style;\n var theme = this.theme;\n\n if (!theme) {\n return;\n }\n\n style.borderTop = theme.week.vpanelSplitter.border || theme.common.border;\n style.borderBottom = theme.week.vpanelSplitter.border || theme.common.border;\n style.height = theme.week.vpanelSplitter.height;\n};\n\nmodule.exports = VPanel;\n","/**\n * @fileoverview Global configuration object module. This @echo syntax will change preprocess context. See gulpfile.js\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar cssPrefix = 'tui-full-calendar-',\n alldayGetViewID = new RegExp('^' + cssPrefix + 'weekday[\\\\s]tui-view-(\\\\d+)'),\n alldayCheckPermission = new RegExp('^' + cssPrefix + 'schedule(-title)?$'),\n timeGetViewID = new RegExp('^' + cssPrefix + 'time-date[\\\\s]tui-view-(\\\\d+)');\n\nvar config = {\n throwError: function(msg) {\n throw new Error(msg);\n },\n\n cssPrefix: cssPrefix,\n\n classname: function(str) {\n str = str || '';\n\n if (str.charAt(0) === '.') {\n return '.' + config.cssPrefix + str.slice(1);\n }\n\n return config.cssPrefix + str;\n },\n\n allday: {\n getViewIDRegExp: alldayGetViewID,\n checkCondRegExp: alldayCheckPermission\n },\n\n daygrid: {\n getViewIDRegExp: alldayGetViewID,\n checkCondRegExp: alldayCheckPermission\n },\n\n time: {\n getViewIDRegExp: timeGetViewID\n }\n};\n\nmodule.exports = config;\n","/**\n * @fileoverview Base calendar controller\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Schedule = require('../model/schedule');\nvar ScheduleViewModel = require('../model/viewModel/scheduleViewModel');\nvar datetime = require('../common/datetime');\nvar common = require('../common/common');\nvar Theme = require('../theme/theme');\n\n/**\n * @constructor\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @param {themeConfig} [options.theme] - theme object\n * @mixes util.CustomEvents\n */\nfunction Base(options) {\n options = options || {};\n\n /**\n * function for group each schedule models.\n * @type {function}\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {string} group key\n */\n this.groupFunc = options.groupFunc || function(viewModel) {\n var model = viewModel.model;\n\n if (viewModel.model.isAllDay) {\n return 'allday';\n }\n\n if (model.category === 'time' && (model.end - model.start > datetime.MILLISECONDS_PER_DAY)) {\n return 'allday';\n }\n\n return model.category;\n };\n\n /**\n * schedules collection.\n * @type {Collection}\n */\n this.schedules = common.createScheduleCollection();\n\n /**\n * Matrix for multidate schedules.\n * @type {object.}\n */\n this.dateMatrix = {};\n\n /**\n * Theme\n * @type {Theme}\n */\n this.theme = new Theme(options.theme);\n\n /**\n * Calendar list\n * @type {Array.}\n */\n this.calendars = [];\n}\n\n/**\n * Calculate contain dates in schedule.\n * @private\n * @param {Schedule} schedule The instance of schedule.\n * @returns {array} contain dates.\n */\nBase.prototype._getContainDatesInSchedule = function(schedule) {\n var scheduleStart = schedule.getStarts();\n var scheduleEnd = schedule.getEnds();\n var start = datetime.start(scheduleStart);\n var equalStartEnd = datetime.compare(scheduleStart, scheduleEnd) === 0;\n var endDate = equalStartEnd ? scheduleEnd : datetime.convertStartDayToLastDay(scheduleEnd);\n var end = datetime.end(endDate);\n var range = datetime.range(\n start,\n end,\n datetime.MILLISECONDS_PER_DAY\n );\n\n return range;\n};\n\n/****************\n * CRUD Schedule\n ****************/\n\n/**\n * Create a schedule instance from raw data.\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {object} options Data object to create schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that created.\n */\nBase.prototype.createSchedule = function(options, silent) {\n var schedule,\n scheduleData = {\n data: options\n };\n\n /**\n * @event Base#beforeCreateSchedule\n * @type {Calendar~Schedule[]}\n */\n if (!this.invoke('beforeCreateSchedule', scheduleData)) {\n return null;\n }\n\n schedule = this.addSchedule(Schedule.create(options));\n\n if (!silent) {\n /**\n * @event Base#createdSchedule\n * @type {Schedule}\n */\n this.fire('createdSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {Calendar~Schedule[]} dataList - dataObject list to create schedule.\n * @param {boolean} [silent=false] - set true then don't fire events.\n * @returns {Schedule[]} The instance list of Schedule that created.\n */\nBase.prototype.createSchedules = function(dataList, silent) {\n var self = this;\n\n return util.map(dataList, function(data) {\n return self.createSchedule(data, silent);\n });\n};\n\n/**\n * Update a schedule.\n * @emits Base#updateSchedule\n * @param {Schedule} schedule - schedule instance to update\n * @param {object} options updated object data.\n * @returns {Schedule} updated schedule instance\n */\nBase.prototype.updateSchedule = function(schedule, options) {\n var start = options.start || schedule.start;\n var end = options.end || schedule.end;\n\n options = options || {};\n\n if (options.category === 'allday') {\n options.isAllDay = true;\n }\n\n if (!util.isUndefined(options.isAllDay)) {\n schedule.set('isAllDay', options.isAllDay);\n }\n\n if (!util.isUndefined(options.calendarId)) {\n schedule.set('calendarId', options.calendarId);\n }\n\n if (options.title) {\n schedule.set('title', options.title);\n }\n\n if (options.body) {\n schedule.set('body', options.body);\n }\n\n if (options.start || options.end) {\n if (schedule.isAllDay) {\n schedule.setAllDayPeriod(start, end);\n } else {\n schedule.setTimePeriod(start, end);\n }\n }\n\n if (options.color) {\n schedule.set('color', options.color);\n }\n\n if (options.bgColor) {\n schedule.set('bgColor', options.bgColor);\n }\n\n if (options.borderColor) {\n schedule.set('borderColor', options.borderColor);\n }\n\n if (options.origin) {\n schedule.set('origin', options.origin);\n }\n\n if (!util.isUndefined(options.isPending)) {\n schedule.set('isPending', options.isPending);\n }\n\n if (!util.isUndefined(options.isFocused)) {\n schedule.set('isFocused', options.isFocused);\n }\n\n if (options.location) {\n schedule.set('location', options.location);\n }\n\n if (options.state) {\n schedule.set('state', options.state);\n }\n\n this._removeFromMatrix(schedule);\n this._addToMatrix(schedule);\n\n /**\n * @event Base#updateSchedule\n */\n this.fire('updateSchedule');\n\n return schedule;\n};\n\n/**\n * Delete schedule instance from controller.\n * @param {Schedule} schedule - schedule instance to delete\n * @returns {Schedule} deleted model instance.\n */\nBase.prototype.deleteSchedule = function(schedule) {\n this._removeFromMatrix(schedule);\n this.schedules.remove(schedule);\n\n return schedule;\n};\n\n/**\n * Set date matrix to supplied schedule instance.\n * @param {Schedule} schedule - instance of schedule.\n */\nBase.prototype._addToMatrix = function(schedule) {\n var ownMatrix = this.dateMatrix;\n var containDates = this._getContainDatesInSchedule(schedule);\n\n util.forEach(containDates, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd] = ownMatrix[ymd] || [];\n\n matrix.push(util.stamp(schedule));\n });\n};\n\n/**\n * Remove schedule's id from matrix.\n * @param {Schedule} schedule - instance of schedule\n */\nBase.prototype._removeFromMatrix = function(schedule) {\n var modelID = util.stamp(schedule);\n\n util.forEach(this.dateMatrix, function(matrix) {\n var index = util.inArray(modelID, matrix);\n\n if (~index) {\n matrix.splice(index, 1);\n }\n }, this);\n};\n\n/**\n * Add a schedule instance.\n * @emits Base#addedSchedule\n * @param {Schedule} schedule The instance of Schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that added.\n */\nBase.prototype.addSchedule = function(schedule, silent) {\n this.schedules.add(schedule);\n this._addToMatrix(schedule);\n\n if (!silent) {\n /**\n * @event Base#addedSchedule\n * @type {object}\n */\n this.fire('addedSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * split schedule model by ymd.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @param {Collection} scheduleCollection - collection of schedule model.\n * @returns {object.} splitted schedule model collections.\n */\nBase.prototype.splitScheduleByDateRange = function(start, end, scheduleCollection) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownMatrix = this.dateMatrix,\n result = {};\n\n util.forEachArray(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd],\n collection;\n\n collection = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n util.forEachArray(matrix, function(id) {\n scheduleCollection.doWhenHas(id, function(schedule) {\n collection.add(schedule);\n });\n });\n }\n });\n\n return result;\n};\n\n/**\n * Return schedules in supplied date range.\n *\n * available only YMD.\n * @param {TZDate} start start date.\n * @param {TZDate} end end date.\n * @returns {object.} schedule collection grouped by dates.\n */\nBase.prototype.findByDateRange = function(start, end) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownSchedules = this.schedules.items,\n ownMatrix = this.dateMatrix,\n dformat = datetime.format,\n result = {},\n matrix,\n ymd,\n viewModels;\n\n util.forEachArray(range, function(date) {\n ymd = dformat(date, 'YYYYMMDD');\n matrix = ownMatrix[ymd];\n viewModels = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n viewModels.add.apply(viewModels, util.map(matrix, function(id) {\n return ScheduleViewModel.create(ownSchedules[id]);\n }));\n }\n });\n\n return result;\n};\n\nBase.prototype.clearSchedules = function() {\n this.dateMatrix = {};\n this.schedules.clear();\n /**\n * for inner view when clear schedules\n * @event Base#clearSchedules\n * @type {Schedule}\n */\n this.fire('clearSchedules');\n};\n\n/**\n * Set a theme.\n * @param {themeConfig} theme - theme keys, styles\n * @returns {Array.} keys - error keys not predefined.\n */\nBase.prototype.setTheme = function(theme) {\n return this.theme.setStyles(theme);\n};\n\n/**\n * Set calendar list\n * @param {Array.} calendars - calendar list\n */\nBase.prototype.setCalendars = function(calendars) {\n this.calendars = calendars;\n};\n\n// mixin\nutil.CustomEvents.mixin(Base);\n\nmodule.exports = Base;\n","/**\n * @fileoverview Core methods for schedule block placing\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachArr = util.forEachArray,\n aps = Array.prototype.slice;\n\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar Collection = require('../../common/collection');\nvar ScheduleViewModel = require('../../model/viewModel/scheduleViewModel');\n\nvar Core = {\n /**\n * Calculate collision group.\n * @param {array} viewModels List of viewmodels.\n * @returns {array} Collision Group.\n */\n getCollisionGroup: function(viewModels) {\n var collisionGroups = [],\n foundPrevCollisionSchedule = false,\n previousScheduleList;\n\n if (!viewModels.length) {\n return collisionGroups;\n }\n\n collisionGroups[0] = [util.stamp(viewModels[0].valueOf())];\n forEachArr(viewModels.slice(1), function(schedule, index) {\n foundPrevCollisionSchedule = false;\n previousScheduleList = aps.apply(viewModels, [0, index + 1]).reverse();\n\n forEachArr(previousScheduleList, function(previous) {\n if (schedule.collidesWith(previous)) {\n // If overlapping previous schedules, find a Collision Group of overlapping schedules and add this schedules\n foundPrevCollisionSchedule = true;\n\n forEachArr(collisionGroups.slice(0).reverse(), function(group) {\n if (~util.inArray(util.stamp(previous.valueOf()), group)) {\n // If you find a previous schedule that overlaps, include it in the Collision Group to which it belongs.\n group.push(util.stamp(schedule.valueOf()));\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n if (!foundPrevCollisionSchedule) {\n // This schedule is a schedule that does not overlap with the previous schedule, so a new Collision Group is constructed.\n collisionGroups.push([util.stamp(schedule.valueOf())]);\n }\n });\n\n return collisionGroups;\n },\n\n /**\n * Get row length by column index in 2d matrix.\n * @param {array[]} arr2d Matrix\n * @param {number} col Column index.\n * @returns {number} Last row number in column.\n */\n getLastRowInColumn: function(arr2d, col) {\n var row = arr2d.length;\n\n while (row > 0) {\n row -= 1;\n if (!util.isUndefined(arr2d[row][col])) {\n return row;\n }\n }\n\n return false;\n },\n\n /**\n * Calculate matrix for appointment block element placing.\n * @param {Collection} collection model collection.\n * @param {array[]} collisionGroups Collision groups for schedule set.\n * @returns {array} matrices\n */\n getMatrices: function(collection, collisionGroups) {\n var result = [],\n getLastRowInColumn = Core.getLastRowInColumn;\n\n forEachArr(collisionGroups, function(group) {\n var matrix = [[]];\n\n forEachArr(group, function(scheduleID) {\n var schedule = collection.items[scheduleID],\n col = 0,\n found = false,\n nextRow,\n lastRowInColumn;\n\n while (!found) {\n lastRowInColumn = getLastRowInColumn(matrix, col);\n\n if (lastRowInColumn === false) {\n matrix[0].push(schedule);\n found = true;\n } else if (!schedule.collidesWith(matrix[lastRowInColumn][col])) {\n nextRow = lastRowInColumn + 1;\n if (util.isUndefined(matrix[nextRow])) {\n matrix[nextRow] = [];\n }\n matrix[nextRow][col] = schedule;\n found = true;\n }\n\n col += 1;\n }\n });\n\n result.push(matrix);\n });\n\n return result;\n },\n\n /**\n * Filter that get schedule model in supplied date ranges.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @returns {function} schedule filter function\n */\n getScheduleInDateRangeFilter: function(start, end) {\n return function(model) {\n var ownStarts = model.getStarts(),\n ownEnds = model.getEnds();\n\n // shorthand condition of\n //\n // (ownStarts >= start && ownEnds <= end) ||\n // (ownStarts < start && ownEnds >= start) ||\n // (ownEnds > end && ownStarts <= end)\n return !(ownEnds < start || ownStarts > end);\n };\n },\n\n /**\n * Position each view model for placing into container\n * @param {Date} start - start date to render\n * @param {Date} end - end date to render\n * @param {array} matrices - matrices from controller\n * @param {function} [iteratee] - iteratee function invoke each view models\n */\n positionViewModels: function(start, end, matrices, iteratee) {\n var ymdListToRender;\n\n ymdListToRender = util.map(\n datetime.range(start, end, datetime.MILLISECONDS_PER_DAY),\n function(date) {\n return datetime.format(date, 'YYYYMMDD');\n }\n );\n\n forEachArr(matrices, function(matrix) {\n forEachArr(matrix, function(column) {\n forEachArr(column, function(viewModel, index) {\n var ymd, dateLength;\n\n if (!viewModel) {\n return;\n }\n\n ymd = datetime.format(viewModel.getStarts(), 'YYYYMMDD');\n dateLength = datetime.range(\n datetime.start(viewModel.getStarts()),\n datetime.end(viewModel.getEnds()),\n datetime.MILLISECONDS_PER_DAY\n ).length;\n\n viewModel.top = index;\n viewModel.left = util.inArray(ymd, ymdListToRender);\n viewModel.width = dateLength;\n\n if (iteratee) {\n iteratee(viewModel);\n }\n });\n });\n });\n },\n\n /**\n * Limit start, end date each view model for render properly\n * @param {TZDate} start - start date to render\n * @param {TZDate} end - end date to render\n * @param {Collection|ScheduleViewModel} viewModelColl - schedule view\n * model collection or ScheduleViewModel\n * @returns {ScheduleViewModel} return view model when third parameter is\n * view model\n */\n limitRenderRange: function(start, end, viewModelColl) {\n /**\n * Limit render range for view models\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {ScheduleViewModel} view model that limited render range\n */\n function limit(viewModel) {\n if (viewModel.getStarts() < start) {\n viewModel.exceedLeft = true;\n viewModel.renderStarts = new TZDate(start);\n }\n\n if (viewModel.getEnds() > end) {\n viewModel.exceedRight = true;\n viewModel.renderEnds = new TZDate(end);\n }\n\n return viewModel;\n }\n\n if (viewModelColl.constructor === Collection) {\n viewModelColl.each(limit);\n\n return null;\n }\n\n return limit(viewModelColl);\n },\n\n /**\n * Convert schedule model collection to view model collection.\n * @param {Collection} modelColl - collection of schedule model\n * @returns {Collection} collection of schedule view model\n */\n convertToViewModel: function(modelColl) {\n var viewModelColl;\n\n viewModelColl = new Collection(function(viewModel) {\n return viewModel.cid();\n });\n\n modelColl.each(function(model) {\n viewModelColl.add(ScheduleViewModel.create(model));\n });\n\n return viewModelColl;\n }\n};\n\nmodule.exports = Core;\n","/**\n * @fileoverview Controller mixin for Month View\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar array = require('../../common/array'),\n datetime = require('../../common/datetime'),\n Collection = require('../../common/collection');\nvar mmax = Math.max;\n\nvar Month = {\n /**\n * Filter function for find time schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is time schedule?\n */\n _onlyTimeFilter: function(viewModel) {\n return !viewModel.model.isAllDay && !viewModel.hasMultiDates;\n },\n\n /**\n * Filter function for find allday schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is allday schedule?\n */\n _onlyAlldayFilter: function(viewModel) {\n return viewModel.model.isAllDay || viewModel.hasMultiDates;\n },\n\n /**\n * Weight top value +1 for month view render\n * @param {ScheduleViewModel} viewModel - schedule view model\n */\n _weightTopValue: function(viewModel) {\n viewModel.top = viewModel.top || 0;\n viewModel.top += 1;\n },\n\n /**\n * Adjust render range to render properly.\n *\n * Limit start, end for each allday schedules and expand start, end for\n * each time schedules\n * @this Base\n * @param {TZDate} start - render start date\n * @param {TZDate} end - render end date\n * @param {Collection} vColl - view model collection\n * property.\n */\n _adjustRenderRange: function(start, end, vColl) {\n var ctrlCore = this.Core;\n\n vColl.each(function(viewModel) {\n if (viewModel.model.isAllDay || viewModel.hasMultiDates) {\n ctrlCore.limitRenderRange(start, end, viewModel);\n }\n });\n },\n\n /**\n * Get max top index value for allday schedules in specific date (YMD)\n * @this Base\n * @param {string} ymd - yyyymmdd formatted value\n * @param {Collection} vAlldayColl - collection of allday schedules\n * @returns {number} max top index value in date\n */\n _getAlldayMaxTopIndexAtYMD: function(ymd, vAlldayColl) {\n var dateMatrix = this.dateMatrix,\n topIndexesInDate = [];\n util.forEach(dateMatrix[ymd], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topIndexesInDate.push(viewModel.top);\n });\n });\n\n if (topIndexesInDate.length > 0) {\n return mmax.apply(null, topIndexesInDate);\n }\n\n return 0;\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _adjustTimeTopIndex: function(vColl) {\n var ctrlMonth = this.Month;\n var getAlldayMaxTopIndexAtYMD = ctrlMonth._getAlldayMaxTopIndexAtYMD;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var maxIndexInYMD = {};\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD];\n\n if (util.isUndefined(alldayMaxTopInYMD)) {\n alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD] =\n getAlldayMaxTopIndexAtYMD(scheduleYMD, vAlldayColl);\n }\n maxIndexInYMD[scheduleYMD] = timeViewModel.top =\n (alldayMaxTopInYMD + 1);\n });\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _stackTimeFromTop: function(vColl) {\n var ctrlMonth = this.Month;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var indiceInYMD = {};\n var dateMatrix = this.dateMatrix;\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var topArrayInYMD = indiceInYMD[scheduleYMD];\n var maxTopInYMD;\n var i;\n\n if (util.isUndefined(topArrayInYMD)) {\n topArrayInYMD = indiceInYMD[scheduleYMD] = [];\n util.forEach(dateMatrix[scheduleYMD], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topArrayInYMD.push(viewModel.top);\n });\n });\n }\n\n if (util.inArray(timeViewModel.top, topArrayInYMD) >= 0) {\n maxTopInYMD = mmax.apply(null, topArrayInYMD) + 1;\n for (i = 1; i <= maxTopInYMD; i += 1) {\n timeViewModel.top = i;\n if (util.inArray(timeViewModel.top, topArrayInYMD) < 0) {\n break;\n }\n }\n }\n topArrayInYMD.push(timeViewModel.top);\n });\n },\n\n /**\n * Convert multi-date time schedule to all-day schedule\n * @this Base\n * @param {Collection} vColl - view model collection\n * property.\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n var start = model.getStarts();\n var end = model.getEnds();\n\n viewModel.hasMultiDates = !datetime.isSameDate(start, end);\n\n if (!model.isAllDay && viewModel.hasMultiDates) {\n viewModel.renderStarts = datetime.start(start);\n viewModel.renderEnds = datetime.convertStartDayToLastDay(end);\n }\n });\n },\n\n /**\n * Find schedule and get view model for specific month\n * @this Base\n * @param {TZDate} start - start date to find schedules\n * @param {TZDate} end - end date to find schedules\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @param {boolean} [alldayFirstMode=false] if true, time schedule is lower than all-day schedule. Or stack schedules from the top.\n * @returns {object} view model data\n */\n findByDateRange: function(start, end, andFilters, alldayFirstMode) {\n var ctrlCore = this.Core,\n ctrlMonth = this.Month,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n coll, vColl, vList,\n collisionGroup,\n matrices;\n\n alldayFirstMode = alldayFirstMode || false;\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n coll = this.schedules.find(filter);\n vColl = ctrlCore.convertToViewModel(coll);\n ctrlMonth._addMultiDatesInfo(vColl);\n ctrlMonth._adjustRenderRange(start, end, vColl);\n vList = vColl.sort(array.compare.schedule.asc);\n\n collisionGroup = ctrlCore.getCollisionGroup(vList);\n matrices = ctrlCore.getMatrices(vColl, collisionGroup);\n ctrlCore.positionViewModels(start, end, matrices, ctrlMonth._weightTopValue);\n if (alldayFirstMode) {\n ctrlMonth._adjustTimeTopIndex(vColl);\n } else {\n ctrlMonth._stackTimeFromTop(vColl);\n }\n\n return matrices;\n }\n};\n\nmodule.exports = Month;\n","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Controller mixin modules for day views.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar Collection = require('../../common/collection');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * @mixin Base.Week\n */\nvar Week = {\n /**********\n * TIME GRID VIEW\n **********/\n\n /**\n * Make array with start and end times on schedules.\n * @this Base.Week\n * @param {array[]} matrix - matrix from controller.\n * @returns {array[]} starttime, endtime array (exclude first row's schedules)\n */\n generateTimeArrayInRow: function(matrix) {\n var row,\n col,\n schedule,\n start,\n end,\n map = [],\n cursor = [],\n maxColLen = Math.max.apply(null, util.map(matrix, function(col) {\n return col.length;\n }));\n\n for (col = 1; col < maxColLen; col += 1) {\n row = 0;\n schedule = util.pick(matrix, row, col);\n\n while (schedule) {\n start = schedule.getStarts().getTime() - datetime.millisecondsFrom('minutes', schedule.valueOf().goingDuration);\n end = schedule.getEnds().getTime() + datetime.millisecondsFrom('minutes', schedule.valueOf().comingDuration);\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n cursor.push([start, end]);\n\n row += 1;\n schedule = util.pick(matrix, row, col);\n }\n\n map.push(cursor);\n cursor = [];\n }\n\n return map;\n },\n\n /**\n * Get collision information from list\n * @this Base\n * @param {array.} arr - list to detecting collision. [[start, end], [start, end]]\n * @param {number} start - schedule start time that want to detect collisions.\n * @param {number} end - schedule end time that want to detect collisions.\n * @returns {boolean} target has collide in supplied array?\n */\n hasCollide: function(arr, start, end) {\n var startStart,\n startEnd,\n endStart,\n endEnd,\n getFunc = function(index) {\n return function(block) {\n return block[index];\n };\n },\n abs = Math.abs,\n compare = array.compare.num.asc,\n hasCollide;\n\n if (!arr.length) {\n return false;\n }\n\n startStart = abs(array.bsearch(arr, start, getFunc(0), compare));\n startEnd = abs(array.bsearch(arr, start, getFunc(1), compare));\n endStart = abs(array.bsearch(arr, end, getFunc(0), compare));\n endEnd = abs(array.bsearch(arr, end, getFunc(1), compare));\n hasCollide = !(startStart === startEnd && startEnd === endStart && endStart === endEnd);\n\n return hasCollide;\n },\n\n /**\n * Initialize values to viewmodels for detect real collision at rendering phase.\n * @this Base\n * @param {array[]} matrices - Matrix data.\n */\n getCollides: function(matrices) {\n util.forEachArray(matrices, function(matrix) {\n var binaryMap,\n maxRowLength;\n\n binaryMap = Week.generateTimeArrayInRow(matrix);\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n util.forEachArray(matrix, function(row) {\n util.forEachArray(row, function(viewModel, col) {\n var startTime,\n endTime,\n hasCollide,\n i;\n\n if (!viewModel) {\n return;\n }\n\n startTime = viewModel.getStarts().getTime();\n endTime = viewModel.getEnds().getTime();\n\n if (Math.abs(endTime - startTime) < SCHEDULE_MIN_DURATION) {\n endTime += SCHEDULE_MIN_DURATION;\n }\n\n startTime -= datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration);\n endTime += datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n\n endTime -= 1;\n\n for (i = (col + 1); i < maxRowLength; i += 1) {\n hasCollide = Week.hasCollide(binaryMap[i - 1], startTime, endTime);\n\n if (hasCollide) {\n viewModel.hasCollide = true;\n break;\n }\n\n viewModel.extraSpace += 1;\n }\n });\n });\n });\n },\n\n /**\n * create view model for time view part\n * @this Base\n * @param {Date} start - start date.\n * @param {Date} end - end date.\n * @param {Collection} time - view model collection.\n * @param {number} hourStart - start hour to be shown\n * @param {number} hourEnd - end hour to be shown\n * @returns {object} view model for time part.\n */\n getViewModelForTimeView: function(start, end, time, hourStart, hourEnd) {\n var self = this,\n ymdSplitted = this.splitScheduleByDateRange(start, end, time),\n result = {};\n\n var _getViewModel = Week._makeGetViewModelFuncForTimeView(hourStart, hourEnd);\n\n util.forEach(ymdSplitted, function(collection, ymd) {\n var viewModels = _getViewModel(collection);\n var collisionGroups, matrices;\n\n collisionGroups = self.Core.getCollisionGroup(viewModels);\n matrices = self.Core.getMatrices(collection, collisionGroups);\n self.Week.getCollides(matrices);\n\n result[ymd] = matrices;\n });\n\n return result;\n },\n\n /**\n * make view model function depending on start and end hour\n * if time view option has start or end hour condition\n * it add filter\n * @param {number} hourStart - start hour to be shown\n * @param {number} hourEnd - end hour to be shown\n * @returns {function} function\n */\n _makeGetViewModelFuncForTimeView: function(hourStart, hourEnd) {\n if (hourStart === 0 && hourEnd === 24) {\n return function(collection) {\n return collection.sort(array.compare.schedule.asc);\n };\n }\n\n return function(collection) {\n return collection.find(Week._makeHourRangeFilter(hourStart, hourEnd))\n .sort(array.compare.schedule.asc);\n };\n },\n\n /**\n * make a filter function that is not included range of start, end hour\n * @param {number} hStart - hour start\n * @param {number} hEnd - hour end\n * @returns {function} - filtering function\n */\n _makeHourRangeFilter: function(hStart, hEnd) {\n return function(schedule) {\n var ownHourStart = schedule.model.start;\n var ownHourEnd = schedule.model.end;\n var yyyy = ownHourStart.getFullYear();\n var mm = ownHourStart.getMonth();\n var dd = ownHourStart.getDate();\n\n var hourStart = new TZDate(yyyy, mm, dd).setHours(hStart);\n var hourEnd = new TZDate(yyyy, mm, dd).setHours(hEnd);\n\n return (ownHourStart >= hourStart && ownHourStart < hourEnd) ||\n (ownHourEnd > hourStart && ownHourEnd <= hourEnd) ||\n (ownHourStart < hourStart && ownHourEnd > hourStart) ||\n (ownHourEnd > hourEnd && ownHourStart < hourEnd);\n };\n },\n\n /**********\n * ALLDAY VIEW\n **********/\n\n /**\n * Set hasMultiDates flag to true and set date ranges for rendering\n * @this Base\n * @param {Collection} vColl - view model collection\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n viewModel.hasMultiDates = true;\n viewModel.renderStarts = datetime.start(model.getStarts());\n viewModel.renderEnds = datetime.end(model.getEnds());\n });\n },\n\n /**\n * create view model for allday view part\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {Collection} viewModelColl - allday schedule viewModel viewModels.\n * @returns {object} allday viewModel.\n */\n getViewModelForAlldayView: function(start, end, viewModelColl) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n viewModels,\n collisionGroups,\n matrices;\n\n if (!viewModelColl || !viewModelColl.length) {\n return [];\n }\n\n ctrlWeek._addMultiDatesInfo(viewModelColl);\n ctrlCore.limitRenderRange(start, end, viewModelColl);\n\n viewModels = viewModelColl.sort(array.compare.schedule.asc);\n collisionGroups = ctrlCore.getCollisionGroup(viewModels);\n\n matrices = ctrlCore.getMatrices(viewModelColl, collisionGroups);\n ctrlCore.positionViewModels(start, end, matrices);\n\n return matrices;\n },\n\n /**********\n * READ\n **********/\n\n /**\n * Populate schedules in date range.\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {Array.} panels - schedule panels like 'milestone', 'task', 'allday', 'time'\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @param {Object} options - week view options\n * @returns {object} schedules grouped by dates.\n */\n findByDateRange: function(start, end, panels, andFilters, options) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n scheduleTypes = util.pluck(panels, 'name'),\n hourStart = util.pick(options, 'hourStart'),\n hourEnd = util.pick(options, 'hourEnd'),\n modelColl,\n group;\n\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n modelColl = this.schedules.find(filter);\n modelColl = ctrlCore.convertToViewModel(modelColl);\n\n group = modelColl.groupBy(scheduleTypes, this.groupFunc);\n util.forEach(panels, function(panel) {\n var name = panel.name;\n if (panel.type === 'daygrid') {\n group[name] = ctrlWeek.getViewModelForAlldayView(start, end, group[name]);\n } else if (panel.type === 'timegrid') {\n group[name] = ctrlWeek.getViewModelForTimeView(start, end, group[name], hourStart, hourEnd);\n }\n });\n\n return group;\n },\n\n /* eslint max-nested-callbacks: 0 */\n /**\n * Make exceed date information\n * @param {number} maxCount - exceed schedule count\n * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n * @param {Array.} range - date range of one week\n * @returns {object} exceedDate\n */\n getExceedDate: function(maxCount, eventsInDateRange, range) {\n var exceedDate = {};\n\n util.forEach(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] = 0;\n });\n\n util.forEach(eventsInDateRange, function(matrix) {\n util.forEach(matrix, function(column) {\n util.forEach(column, function(viewModel) {\n var period;\n if (!viewModel || viewModel.top < maxCount) {\n return;\n }\n\n period = datetime.range(\n viewModel.getStarts(),\n viewModel.getEnds(),\n datetime.MILLISECONDS_PER_DAY\n );\n\n util.forEach(period, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] += 1;\n });\n });\n });\n });\n\n return exceedDate;\n },\n\n /**\n * Exclude overflow schedules from matrices\n * @param {array} matrices - The matrices for schedule placing.\n * @param {number} visibleScheduleCount - maximum visible count on panel\n * @returns {array} - The matrices for schedule placing except overflowed schedules.\n */\n excludeExceedSchedules: function(matrices, visibleScheduleCount) {\n return matrices.map(function(matrix) {\n return matrix.map(function(row) {\n if (row.length > visibleScheduleCount) {\n return row.filter(function(item) {\n return item.top < visibleScheduleCount;\n }, this);\n }\n\n return row;\n }, this);\n }, this);\n }\n};\n\nmodule.exports = Week;\n","/**\n * @fileoverview Factory module for control all other factory.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar GA_TRACKING_ID = 'UA-129951699-1';\n\nvar util = require('tui-code-snippet'),\n Handlebars = require('handlebars-template-loader/runtime');\nvar dw = require('../common/dw'),\n datetime = require('../common/datetime'),\n Layout = require('../view/layout'),\n Drag = require('../handler/drag'),\n controllerFactory = require('./controller'),\n weekViewFactory = require('./weekView'),\n monthViewFactory = require('./monthView'),\n TZDate = require('../common/timezone').Date,\n config = require('../config'),\n timezone = require('../common/timezone'),\n reqAnimFrame = require('../common/reqAnimFrame');\n\nvar mmin = Math.min;\n\n/**\n * Schedule information\n * @typedef {object} Schedule\n * @property {string} [id] - The unique schedule id depends on calendar id\n * @property {string} calendarId - The unique calendar id\n * @property {string} [title] - The schedule title\n * @property {string} [body] - The schedule body text which is text/plain\n * @property {string|TZDate} [start] - The start time. It's 'string' for input. It's 'TZDate' for output like event handler.\n * @property {string|TZDate} [end] - The end time. It's 'string' for input. It's 'TZDate' for output like event handler.\n * @property {number} [goingDuration] - The travel time: Going duration minutes\n * @property {number} [comingDuration] - The travel time: Coming duration minutes\n * @property {boolean} [isAllDay] - The all day schedule\n * @property {string} [category] - The schedule type('milestone', 'task', allday', 'time')\n * @property {string} [dueDateClass] - The task schedule type string\n * (any string value is ok and mandatory if category is 'task')\n * @property {string} [location] - The location\n * @property {Array.} [attendees] - The attendees\n * @property {string} [recurrenceRule] - The recurrence rule\n * @property {boolean} [isPending] - The in progress flag to do something like network job(The schedule will be transparent.)\n * @property {boolean} [isFocused] - The focused schedule flag\n * @property {boolean} [isVisible] - The schedule visibility flag\n * @property {boolean} [isReadOnly] - The schedule read-only flag\n * @property {boolean} [isPrivate] - The private schedule\n * @property {string} [color] - The schedule text color\n * @property {string} [bgColor] - The schedule background color\n * @property {string} [dragBgColor] - The schedule background color when dragging it\n * @property {string} [borderColor] - The schedule left border color\n * @property {string} [customStyle] - The schedule's custom css class\n * @property {any} [raw] - The user data\n * @property {string} [state] - The schedule's state ('busy', 'free')\n */\n\n/**\n * Template functions to support customer renderer\n * @typedef {object} Template\n * @property {function} [milestoneTitle] - The milestone title(at left column) template function\n * @property {function} [milestone] - The milestone template function\n * @property {function} [taskTitle] - The task title(at left column) template function\n * @property {function} [task] - The task template function\n * @property {function} [alldayTitle] - The allday title(at left column) template function\n * @property {function} [allday] - The allday template function\n * @property {function} [time] - The time template function\n * @property {function} [goingDuration] - The travel time(going duration) template function\n * @property {function} [comingDuration] - The travel time(coming duration) template function\n * @property {function} [monthMoreTitleDate] - The month more layer title template function\n * @property {function} [monthMoreClose] - The month more layer close button template function\n * @property {function} [monthGridHeader] - The month grid header(date, decorator, title) template function\n * @property {function} [monthGridHeaderExceed] - The month grid header(exceed schedule count) template function\n * @property {function} [monthGridFooter] - The month grid footer(date, decorator, title) template function\n * @property {function} [monthGridFooterExceed] - The month grid footer(exceed schedule count) template function\n * @property {function} [monthDayname] - The monthly dayname template function\n * @property {function} [weekDayname] - The weekly dayname template function\n * @property {function} [weekGridFooterExceed] - The week/day grid footer(exceed schedule count) template function\n * @property {function} [dayGridTitle] - The week/day grid title template function(e.g. milestone, task, allday)\n * @property {function} [schedule] - The week/day schedule template function(When the schedule category attribute is milestone, task, or all day)\n * @property {function} [collapseBtnTitle] - The week/day (exceed schedule more view) collapse button title template function\n * @property {function} [timezoneDisplayLabel] - The timezone display label template function in time grid\n * @property {function} [timegridDisplayPrimayTime] - Deprecated: use 'timegridDisplayPrimaryTime'\n * @property {function} [timegridDisplayPrimaryTime] - The display label template function of primary timezone in time grid\n * @property {function} [timegridDisplayTime] - The display time template function in time grid\n * @property {function} [timegridCurrentTime] - The current time template function in time grid\n * @property {function} [popupIsAllDay] - The all day checkbox label text template function in the default creation popup\n * @property {function} [popupStateFree] - The free option template function in the state select box of the default creation popup\n * @property {function} [popupStateBusy] - The busy option template function in the state select box of the default creation popup\n * @property {function} [titlePlaceholder] - The title input placeholder text template function in the default creation popup\n * @property {function} [locationPlaceholder] - The location input placeholder text template function in the default creation popup\n * @property {function} [startDatePlaceholder] - The start date input placeholder text template function in the default creation popup\n * @property {function} [endDatePlaceholder] - The end date input placeholder text template function in the default creation popup\n * @property {function} [popupSave] - The 'Save' button text template function in the default creation popup\n * @property {function} [popupUpdate] - The 'Update' button text template function in the default creation popup when in edit mode\n * @property {function} [popupDetailDate] - The schedule date information's template function on the default detail popup\n * @property {function} [popupDetailLocation] - The schedule location text information's template function on the default detail popup\n * @property {function} [popupDetailUser] - The schedule user text information's template function on the default detail popup\n * @property {function} [popupDetailState] - The schedule state(busy or free) text information's template function on the default detail popup\n * @property {function} [popupDetailRepeat] - The schedule repeat information's template function on the default detail popup\n * @property {function} [popupDetailBody] - The schedule body text information's template function on the default detail popup\n * @property {function} [popupEdit] - The 'Edit' button text template function on the default detail popup\n * @property {function} [popupDelete] - The 'Delete' button text template function on the default detail popup\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * ...\n * template: {\n * milestone: function(schedule) {\n * return ' ' + schedule.title + '';\n * },\n * milestoneTitle: function() {\n * return 'MILESTONE';\n * },\n * task: function(schedule) {\n * return '#' + schedule.title;\n * },\n * taskTitle: function() {\n * return 'TASK';\n * },\n * allday: function(schedule) {\n * return getTimeTemplate(schedule, true);\n * },\n * alldayTitle: function() {\n * return 'ALL DAY';\n * },\n * time: function(schedule) {\n * return '' + moment(schedule.start.getTime()).format('HH:mm') + ' ' + schedule.title;\n * },\n * goingDuration: function(schedule) {\n * return '' + schedule.goingDuration + 'min.';\n * },\n * comingDuration: function(schedule) {\n * return '' + schedule.comingDuration + 'min.';\n * },\n * monthMoreTitleDate: function(date, dayname) {\n * var day = date.split('.')[2];\n *\n * return '' + day + ' ' + dayname + '';\n * },\n * monthMoreClose: function() {\n * return '';\n * },\n * monthGridHeader: function(dayModel) {\n * var date = parseInt(dayModel.date.split('-')[2], 10);\n * var classNames = ['tui-full-calendar-weekday-grid-date '];\n *\n * if (dayModel.isToday) {\n * classNames.push('tui-full-calendar-weekday-grid-date-decorator');\n * }\n *\n * return '' + date + '';\n * },\n * monthGridHeaderExceed: function(hiddenSchedules) {\n * return '+' + hiddenSchedules + '';\n * },\n * monthGridFooter: function() {\n * return '';\n * },\n * monthGridFooterExceed: function(hiddenSchedules) {\n * return '';\n * },\n * monthDayname: function(model) {\n * return (model.label).toString().toLocaleUpperCase();\n * },\n * weekDayname: function(model) {\n * return '' + model.date + '  ' + model.dayName + '';\n * },\n * weekGridFooterExceed: function(hiddenSchedules) {\n * return '+' + hiddenSchedules;\n * },\n * dayGridTitle: function(viewName) {\n *\n * // use another functions instead of 'dayGridTitle'\n * // milestoneTitle: function() {...}\n * // taskTitle: function() {...}\n * // alldayTitle: function() {...}\n *\n * var title = '';\n * switch(viewName) {\n * case 'milestone':\n * title = 'MILESTONE';\n * break;\n * case 'task':\n * title = 'TASK';\n * break;\n * case 'allday':\n * title = 'ALL DAY';\n * break;\n * }\n *\n * return title;\n * },\n * schedule: function(schedule) {\n *\n * // use another functions instead of 'schedule'\n * // milestone: function() {...}\n * // task: function() {...}\n * // allday: function() {...}\n *\n * var tpl;\n *\n * switch(category) {\n * case 'milestone':\n * tpl = ' ' + schedule.title + '';\n * break;\n * case 'task':\n * tpl = '#' + schedule.title;\n * break;\n * case 'allday':\n * tpl = getTimeTemplate(schedule, true);\n * break;\n * }\n *\n * return tpl;\n * },\n * collapseBtnTitle: function() {\n * return '';\n * },\n * timezoneDisplayLabel: function(timezoneOffset, displayLabel) {\n * var gmt, hour, minutes;\n *\n * if (!displayLabel) {\n * gmt = timezoneOffset < 0 ? '-' : '+';\n * hour = Math.abs(parseInt(timezoneOffset / 60, 10));\n * minutes = Math.abs(timezoneOffset % 60);\n * displayLabel = gmt + getPadStart(hour) + ':' + getPadStart(minutes);\n * }\n *\n * return displayLabel;\n * },\n * timegridDisplayPrimayTime: function(time) {\n * // will be deprecated. use 'timegridDisplayPrimaryTime'\n * var meridiem = 'am';\n * var hour = time.hour;\n *\n * if (time.hour > 12) {\n * meridiem = 'pm';\n * hour = time.hour - 12;\n * }\n *\n * return hour + ' ' + meridiem;\n * },\n * timegridDisplayPrimaryTime: function(time) {\n * var meridiem = 'am';\n * var hour = time.hour;\n *\n * if (time.hour > 12) {\n * meridiem = 'pm';\n * hour = time.hour - 12;\n * }\n *\n * return hour + ' ' + meridiem;\n * },\n * timegridDisplayTime: function(time) {\n * return getPadStart(time.hour) + ':' + getPadStart(time.hour);\n * },\n * timegridCurrentTime: function(timezone) {\n * var templates = [];\n *\n * if (timezone.dateDifference) {\n * templates.push('[' + timezone.dateDifferenceSign + timezone.dateDifference + ']
    ');\n * }\n *\n * templates.push(moment(timezone.hourmarker).format('HH:mm a'));\n *\n * return templates.join('');\n * },\n * popupIsAllDay: function() {\n * return 'All Day';\n * },\n * popupStateFree: function() {\n * return 'Free';\n * },\n * popupStateBusy: function() {\n * return 'Busy';\n * },\n * titlePlaceholder: function() {\n * return 'Subject';\n * },\n * locationPlaceholder: function() {\n * return 'Location';\n * },\n * startDatePlaceholder: function() {\n * return 'Start date';\n * },\n * endDatePlaceholder: function() {\n * return 'End date';\n * },\n * popupSave: function() {\n * return 'Save';\n * },\n * popupUpdate: function() {\n * return 'Update';\n * },\n * popupDetailDate: function(isAllDay, start, end) {\n * var isSameDate = moment(start).isSame(end);\n * var endFormat = (isSameDate ? '' : 'YYYY.MM.DD ') + 'hh:mm a';\n *\n * if (isAllDay) {\n * return moment(start).format('YYYY.MM.DD') + (isSameDate ? '' : ' - ' + moment(end).format('YYYY.MM.DD'));\n * }\n *\n * return (moment(start).format('YYYY.MM.DD hh:mm a') + ' - ' + moment(end).format(endFormat));\n * },\n * popupDetailLocation: function(schedule) {\n * return 'Location : ' + schedule.location;\n * },\n * popupDetailUser: function(schedule) {\n * return 'User : ' + (schedule.attendees || []).join(', ');\n * },\n * popupDetailState: function(schedule) {\n * return 'State : ' + schedule.state || 'Busy';\n * },\n * popupDetailRepeat: function(schedule) {\n * return 'Repeat : ' + schedule.recurrenceRule;\n * },\n * popupDetailBody: function(schedule) {\n * return 'Body : ' + schedule.body;\n * },\n * popupEdit: function() {\n * return 'Edit';\n * },\n * popupDelete: function() {\n * return 'Delete';\n * }\n * }\n * }\n */\n\n/**\n * Options for daily, weekly view.\n * @typedef {object} WeekOptions\n * @property {number} [startDayOfWeek=0] - The start day of week,\n * @property {Array.} [daynames] - The day names in weekly and daily. Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {boolean} [narrowWeekend=false] - Make weekend column narrow(1/2 width)\n * @property {boolean} [workweek=false] - Show only 5 days except for weekend\n * @property {boolean} [showTimezoneCollapseButton=false] - Show a collapse button to close multiple timezones\n * @property {boolean} [timezonesCollapsed=false] - An initial multiple timezones collapsed state\n * @property {number} [hourStart=0] - Can limit of render hour start.\n * @property {number} [hourEnd=24] - Can limit of render hour end.\n */\n\n/**\n * Options for monthly view.\n * @typedef {object} MonthOptions\n * @property {Array.} [daynames] - The day names in monthly. Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {number} [startDayOfWeek=0] - The start day of week\n * @property {boolean} [narrowWeekend=false] - Make weekend column narrow(1/2 width)\n * @property {number} [visibleWeeksCount=6] - The visible week count in monthly(0 or null are same with 6)\n * @property {boolean} [isAlways6Week=true] - Always show 6 weeks. If false, show 5 weeks or 6 weeks based on the month.\n * @property {boolean} [workweek=false] - Show only 5 days except for weekend\n * @property {number} [visibleScheduleCount] - The visible schedule count in monthly grid\n * @property {object} [moreLayerSize] - The more layer size\n * @property {object} [moreLayerSize.width=null] - The css width value(px, 'auto').\n* The default value 'null' is to fit a grid cell.\n * @property {object} [moreLayerSize.height=null] - The css height value(px, 'auto').\n* The default value 'null' is to fit a grid cell.\n * @property {object} [grid] - The grid's header and footer information\n * @property {object} [grid.header] - The grid's header informatioin\n * @property {number} [grid.header.height=34] - The grid's header height\n * @property {object} [grid.footer] - The grid's footer informatioin\n * @property {number} [grid.footer.height=34] - The grid's footer height\n * @property {function} [scheduleFilter=null] - The filter schedules on month view. A parameter is {Schedule} object.\n */\n\n/**\n * @typedef {object} CalendarColor\n * @property {string} [color] - The calendar color\n * @property {string} [bgColor] - The calendar background color\n * @property {string} [borderColor] - The calendar left border color\n * @property {string} [dragBgColor] - The Background color displayed when you drag a calendar's schedule\n */\n\n/**\n * @typedef {object} Timezone\n * @property {number} [timezoneOffset] - The minutes for your timezone offset. If null, use the browser's timezone. Refer to Date.prototype.getTimezoneOffset()\n * @property {string} [displayLabel] - The display label of your timezone at weekly/daily view(e.g. 'GMT+09:00')\n * @property {string} [tooltip] - The tooltip(e.g. 'Seoul')\n * @example\n * var cal = new Calendar('#calendar', {\n * timezones: [{\n * timezoneOffset: 540,\n * displayLabel: 'GMT+09:00',\n * tooltip: 'Seoul'\n * }, {\n * timezoneOffset: -420,\n * displayLabel: 'GMT-08:00',\n * tooltip: 'Los Angeles'\n * }]\n * });\n */\n\n/**\n * @typedef {object} CalendarProps\n * @property {string|number} id - The calendar id\n * @property {string} name - The calendar name\n * @property {string} color - The text color when schedule is displayed\n * @property {string} bgColor - The background color schedule is displayed\n * @property {string} borderColor - The color of left border or bullet point when schedule is displayed\n * @property {string} dragBgColor - The background color when schedule dragging\n * @example\n * var cal = new Calendar('#calendar', {\n * ...\n * calendars: [\n * {\n * id: '1',\n * name: 'My Calendar',\n * color: '#ffffff',\n * bgColor: '#9e5fff',\n * dragBgColor: '#9e5fff',\n * borderColor: '#9e5fff'\n * },\n * {\n * id: '2',\n * name: 'Company',\n * color: '#00a9ff',\n * bgColor: '#00a9ff',\n * dragBgColor: '#00a9ff',\n * borderColor: '#00a9ff'\n * },\n * ]\n * });\n */\n\n/**\n * @typedef {object} Options - Calendar option object\n * @property {string} [defaultView='week'] - Default view of calendar. The default value is 'week'.\n * @property {boolean|Array.} [taskView=true] - Show the milestone and task in weekly, daily view. The default value is true. If the value is array, it can be ['milestone', 'task'].\n * @property {boolean|Array.} [scheduleView=true] - Show the all day and time grid in weekly, daily view. The default value is false. If the value is array, it can be ['allday', 'time'].\n * @property {themeConfig} [theme=themeConfig] - {@link themeConfig} for custom style.\n * @property {Template} [template={}] - {@link Template} for further information\n * @property {WeekOptions} [week={}] - {@link WeekOptions} for week view\n * @property {MonthOptions} [month={}] - {@link MonthOptions} for month view\n * @property {Array.} [calendars=[]] - {@link CalendarProps} List that can be used to add new schedule. The default value is [].\n * @property {boolean} [useCreationPopup=false] - Whether use default creation popup or not. The default value is false.\n * @property {boolean} [useDetailPopup=false] - Whether use default detail popup or not. The default value is false.\n * @property {Array.} [timezones] - {@link Timezone} array.\n * The first Timezone element is primary and can override Calendar#setTimezoneOffset function\n * The rest timezone elements are shown in left timegrid of weekly/daily view\n * @property {boolean} [disableDblClick=false] - Disable double click to create a schedule. The default value is false.\n * @property {boolean} [disableClick=false] - Disable click to create a schedule. The default value is false.\n * @property {boolean} [isReadOnly=false] - {@link Calendar} is read-only mode and a user can't create and modify any schedule. The default value is false.\n * @property {boolean} [usageStatistics=true] - Let us know the hostname. If you don't want to send the hostname, please set to false.\n */\n\n/**\n * {@link https://nhn.github.io/tui.code-snippet/latest/CustomEvents CustomEvents} document at {@link https://github.com/nhn/tui.code-snippet tui-code-snippet}\n * @typedef {class} CustomEvents\n */\n\n/**\n * @typedef {object} TimeCreationGuide - Time creation guide instance to present selected time period\n * @property {HTMLElement} guideElement - Guide element\n * @property {Object.} guideElements - Map by key. It can be used in monthly view\n * @property {function} clearGuideElement - Hide the creation guide\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var guide = event.guide;\n * // Use guideEl$'s left, top to locate your schedule creation popup\n * var guideEl$ = guide.guideElement ?\n * guide.guideElement : guide.guideElements[Object.keys(guide.guideElements)[0]];\n *\n * // After that call this to hide the creation guide\n * guide.clearGuideElement();\n * });\n */\n\n/**\n * Calendar class\n * @constructor\n * @mixes CustomEvents\n * @param {HTMLElement|string} container - The container element or selector id\n * @param {Options} options - The calendar {@link Options} object\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * defaultView: 'week',\n * taskView: true, // Can be also ['milestone', 'task']\n * scheduleView: true, // Can be also ['allday', 'time']\n * template: {\n * milestone: function(schedule) {\n * return ' ' + schedule.title + '';\n * },\n * milestoneTitle: function() {\n * return 'Milestone';\n * },\n * task: function(schedule) {\n * return '  #' + schedule.title;\n * },\n * taskTitle: function() {\n * return '';\n * },\n * allday: function(schedule) {\n * return schedule.title + ' ';\n * },\n * alldayTitle: function() {\n * return 'All Day';\n * },\n * time: function(schedule) {\n * return schedule.title + ' ' + schedule.start;\n * }\n * },\n * month: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * },\n * week: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * }\n * });\n */\nfunction Calendar(container, options) {\n options = util.extend({\n usageStatistics: true\n }, options);\n\n if (options.usageStatistics === true && util.sendHostname) {\n util.sendHostname('calendar', GA_TRACKING_ID);\n }\n\n if (util.isString(container)) {\n container = document.querySelector(container);\n }\n\n /**\n * Calendar color map\n * @type {object}\n * @private\n */\n this._calendarColor = {};\n\n /**\n * Current rendered date\n * @type {TZDate}\n * @private\n */\n this._renderDate = datetime.start();\n\n /**\n * start and end date of weekly, monthly\n * @type {object}\n * @private\n */\n this._renderRange = {\n start: null,\n end: null\n };\n\n /**\n * base controller\n * @type {Base}\n * @private\n */\n this._controller = _createController(options);\n this._controller.setCalendars(options.calendars);\n\n /**\n * layout view (layout manager)\n * @type {Layout}\n * @private\n */\n this._layout = new Layout(container, this._controller.theme);\n\n /**\n * global drag handler\n * @type {Drag}\n * @private\n */\n this._dragHandler = new Drag({distance: 10}, this._layout.container);\n\n /**\n * current rendered view name. ('day', 'week', 'month')\n * @type {string}\n * @default 'week'\n * @private\n */\n this._viewName = options.defaultView || 'week';\n\n /**\n * Refresh method. it can be ref different functions for each view modes.\n * @type {function}\n * @private\n */\n this._refreshMethod = null;\n\n /**\n * Scroll to now. It can be called for 'week', 'day' view modes.\n * @type {function}\n * @private\n */\n this._scrollToNowMethod = null;\n\n /**\n * It's true if Calendar.prototype.scrollToNow() is called.\n * @type {boolean}\n * @private\n */\n this._requestScrollToNow = false;\n\n /**\n * Open schedule creation popup\n * @type {function}\n * @private\n */\n this._openCreationPopup = null;\n\n /**\n * Hide the more view\n * @type {function}\n * @private\n */\n this._hideMoreView = null;\n\n /**\n * Unique id for requestAnimFrame()\n * @type {number}\n * @private\n */\n this._requestRender = 0;\n\n /**\n * calendar options\n * @type {Options}\n * @private\n */\n this._options = {};\n\n this._initialize(options);\n}\n\n/**\n * destroy calendar instance.\n */\nCalendar.prototype.destroy = function() {\n this._dragHandler.destroy();\n this._controller.off();\n this._layout.clear();\n this._layout.destroy();\n\n util.forEach(this._options.template, function(func, name) {\n if (func) {\n Handlebars.unregisterHelper(name + '-tmpl');\n }\n });\n\n this._options = this._renderDate = this._controller =\n this._layout = this._dragHandler = this._viewName =\n this._refreshMethod = this._scrollToNowMethod = null;\n};\n\n/**\n * Initialize calendar\n * @param {Options} options - calendar options\n * @private\n */\nCalendar.prototype._initialize = function(options) {\n var controller = this._controller,\n viewName = this._viewName;\n\n this._options = util.extend({\n defaultView: viewName,\n taskView: true,\n scheduleView: true,\n template: util.extend({\n allday: null,\n time: null\n }, util.pick(options, 'template') || {}),\n week: util.extend({}, util.pick(options, 'week') || {}),\n month: util.extend({}, util.pick(options, 'month') || {}),\n calendars: [],\n useCreationPopup: false,\n useDetailPopup: false,\n timezones: options.timezones || [],\n disableDblClick: false,\n disableClick: false,\n isReadOnly: false\n }, options);\n\n this._options.week = util.extend({\n startDayOfWeek: 0,\n workweek: false\n }, util.pick(this._options, 'week') || {});\n\n this._options.month = util.extend({\n startDayOfWeek: 0,\n workweek: false,\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible) &&\n (schedule.category === 'allday' || schedule.category === 'time');\n }\n }, util.pick(options, 'month') || {});\n\n if (this._options.isReadOnly) {\n this._options.useCreationPopup = false;\n }\n\n this._layout.controller = controller;\n\n this._setAdditionalInternalOptions(options);\n\n this.changeView(viewName, true);\n};\n\n/**\n * Set additional internal options\n * 1. Register to the template handlebar\n * 2. Update the calendar list and set the color of the calendar.\n * 3. Change the primary timezone offset of the timezones.\n * @param {Options} options - calendar options\n * @private\n */\nCalendar.prototype._setAdditionalInternalOptions = function(options) {\n var timezones = options.timezones || [];\n\n util.forEach(options.template, function(func, name) {\n if (func) {\n Handlebars.registerHelper(name + '-tmpl', func);\n }\n });\n\n util.forEach(options.calendars || [], function(calendar) {\n this.setCalendarColor(calendar.id, calendar, true);\n }, this);\n\n if (timezones.length) {\n timezone.setOffsetByTimezoneOption(timezones[0].timezoneOffset);\n }\n};\n\n/**********\n * CRUD Methods\n **********/\n\n/**\n * Create schedules and render calendar.\n * @param {Array.} schedules - {@link Schedule} data list\n * @param {boolean} [silent=false] - no auto render after creation when set true\n * @example\n * calendar.createSchedules([\n * {\n * id: '1',\n * calendarId: '1',\n * title: 'my schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T22:30:00+09:00',\n * end: '2018-01-19T02:30:00+09:00'\n * },\n * {\n * id: '2',\n * calendarId: '1',\n * title: 'second schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T17:30:00+09:00',\n * end: '2018-01-19T17:31:00+09:00'\n * }\n * ]);\n */\nCalendar.prototype.createSchedules = function(schedules, silent) {\n util.forEach(schedules, function(obj) {\n this._setScheduleColor(obj.calendarId, obj);\n }, this);\n\n this._controller.createSchedules(schedules, silent);\n\n if (!silent) {\n this.render();\n }\n};\n\n/**\n * Get a {@link Schedule} object by schedule id and calendar id.\n * @param {string} scheduleId - ID of schedule\n * @param {string} calendarId - calendarId of the schedule\n * @returns {Schedule} schedule object\n * @example\n * var schedule = calendar.getSchedule(scheduleId, calendarId);\n * console.log(schedule.title);\n */\nCalendar.prototype.getSchedule = function(scheduleId, calendarId) {\n return this._controller.schedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n};\n\n/**\n * Update the schedule\n * @param {string} scheduleId - ID of the original schedule to update\n * @param {string} calendarId - The calendarId of the original schedule to update\n * @param {object} changes - The {@link Schedule} properties and values with changes to update\n * @param {boolean} [silent=false] - No auto render after creation when set true\n * @example\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * title: 'Changed schedule',\n * start: new Date('2019-11-05T09:00:00'),\n * end: new Date('2019-11-05T10:00:00'),\n * category: 'time'\n * });\n */\nCalendar.prototype.updateSchedule = function(scheduleId, calendarId, changes, silent) {\n var ctrl = this._controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n var hasChangedCalendar = false;\n\n if (!changes || !schedule) {\n return;\n }\n\n hasChangedCalendar = this._hasChangedCalendar(schedule, changes);\n changes = hasChangedCalendar ?\n this._setScheduleColor(changes.calendarId, changes) :\n changes;\n\n ctrl.updateSchedule(schedule, changes);\n\n if (!silent) {\n this.render();\n }\n};\n\nCalendar.prototype._hasChangedCalendar = function(schedule, changes) {\n return schedule &&\n changes.calendarId &&\n schedule.calendarId !== changes.calendarId;\n};\n\nCalendar.prototype._setScheduleColor = function(calendarId, schedule) {\n var calColor = this._calendarColor;\n var color = calColor[calendarId];\n\n if (color) {\n schedule.color = schedule.color || color.color;\n schedule.bgColor = schedule.bgColor || color.bgColor;\n schedule.borderColor = schedule.borderColor || color.borderColor;\n schedule.dragBgColor = schedule.dragBgColor || color.dragBgColor;\n }\n\n return schedule;\n};\n\n/**\n * Delete a schedule.\n * @param {string} scheduleId - ID of schedule to delete\n * @param {string} calendarId - The CalendarId of the schedule to delete\n * @param {boolean} [silent=false] - No auto render after creation when set true\n */\nCalendar.prototype.deleteSchedule = function(scheduleId, calendarId, silent) {\n var ctrl = this._controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n\n if (!schedule) {\n return;\n }\n\n ctrl.deleteSchedule(schedule);\n if (!silent) {\n this.render();\n }\n};\n\n/**********\n * Private Methods\n **********/\n\n/**\n * @param {string|Date} date - The Date to show in calendar\n * @param {number} [startDayOfWeek=0] - The Start day of week\n * @param {boolean} [workweek=false] - The only show work week\n * @returns {array} render range\n * @private\n */\nCalendar.prototype._getWeekDayRange = function(date, startDayOfWeek, workweek) {\n var day;\n var start;\n var end;\n var range;\n\n startDayOfWeek = (startDayOfWeek || 0); // eslint-disable-line\n date = util.isDate(date) ? date : new TZDate(date);\n day = date.getDay();\n\n // calculate default render range first.\n start = new TZDate(date).addDate(-day + startDayOfWeek);\n\n end = new TZDate(start).addDate(6);\n\n if (day < startDayOfWeek) {\n start = new TZDate(start).addDate(-7);\n end = new TZDate(end).addDate(-7);\n }\n\n if (workweek) {\n range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n );\n\n range = util.filter(range, function(weekday) {\n return !datetime.isWeekend(weekday.getDay());\n });\n\n start = range[0];\n end = range[range.length - 1];\n }\n\n start = datetime.start(start);\n end = datetime.start(end);\n\n return [start, end];\n};\n\n/**\n * Toggle schedules' visibility by calendar ID\n * @param {string} calendarId - The calendar id value\n * @param {boolean} toHide - Set true to hide schedules\n * @param {boolean} [render=true] - set true then render after change visible property each models\n */\nCalendar.prototype.toggleSchedules = function(calendarId, toHide, render) {\n var ownSchedules = this._controller.schedules;\n\n render = util.isExisty(render) ? render : true;\n calendarId = util.isArray(calendarId) ? calendarId : [calendarId];\n\n ownSchedules.each(function(schedule) {\n if (~util.inArray(schedule.calendarId, calendarId)) {\n schedule.set('isVisible', !toHide);\n }\n });\n\n if (render) {\n this.render();\n }\n};\n\n/**********\n * General Methods\n **********/\n\n/**\n * Render the calendar. The real rendering occurs after requestAnimationFrame.\n * If you have to render immediately, use the 'immediately' parameter as true.\n * @param {boolean} [immediately=false] - Render it immediately\n * @example\n * var silent = true;\n * calendar.clear();\n * calendar.createSchedules(schedules, silent);\n * calendar.render();\n * @example\n * // Render a calendar when resizing a window.\n * window.addEventListener('resize', function() {\n * calendar.render();\n * });\n */\nCalendar.prototype.render = function(immediately) {\n if (this._requestRender) {\n reqAnimFrame.cancelAnimFrame(this._requestRender);\n }\n\n if (immediately) {\n this._renderFunc();\n } else {\n this._requestRender = reqAnimFrame.requestAnimFrame(this._renderFunc, this);\n }\n};\n\n/**\n * Render and refresh all layout and process requests.\n * @private\n */\nCalendar.prototype._renderFunc = function() {\n if (this._refreshMethod) {\n this._refreshMethod();\n }\n if (this._layout) {\n this._layout.render();\n }\n if (this._scrollToNowMethod && this._requestScrollToNow) {\n this._scrollToNowMethod();\n }\n\n this._requestScrollToNow = false;\n this._requestRender = null;\n};\n\n/**\n * Delete all schedules and clear view. The real rendering occurs after requestAnimationFrame.\n * If you have to render immediately, use the 'immediately' parameter as true.\n * @param {boolean} [immediately=false] - Render it immediately\n * @example\n * calendar.clear();\n * calendar.createSchedules(schedules, true);\n * calendar.render();\n */\nCalendar.prototype.clear = function(immediately) {\n this._controller.clearSchedules();\n this.render(immediately);\n};\n\n/**\n * Scroll to current time on today in case of daily, weekly view\n * @example\n * function onNewSchedules(schedules) {\n * calendar.createSchedules(schedules);\n * if (calendar.getViewName() !== 'month') {\n * calendar.scrollToNow();\n * }\n * }\n */\nCalendar.prototype.scrollToNow = function() {\n if (this._scrollToNowMethod) {\n this._requestScrollToNow = true;\n // this._scrollToNowMethod() will be called at next frame rendering.\n }\n};\n\n/**\n * Move to today.\n * @example\n * function onClickTodayBtn() {\n * calendar.today();\n * }\n */\nCalendar.prototype.today = function() {\n this._renderDate = datetime.start();\n\n this._setViewName(this._viewName);\n this.move();\n this.render();\n};\n\n/**\n * Move the calendar amount of offset value\n * @param {number} offset - The offset value.\n * @private\n * @example\n * // move previous week when \"week\" view.\n * // move previous month when \"month\" view.\n * calendar.move(-1);\n */\nCalendar.prototype.move = function(offset) {\n var renderDate = dw(datetime.start(this._renderDate)),\n viewName = this._viewName,\n view = this._getCurrentView(),\n recursiveSet = _setOptionRecurseively,\n startDate, endDate, tempDate,\n startDayOfWeek, visibleWeeksCount, workweek, isAlways6Week, datetimeOptions;\n\n offset = util.isExisty(offset) ? offset : 0;\n\n if (viewName === 'month') {\n startDayOfWeek = util.pick(this._options, 'month', 'startDayOfWeek') || 0;\n visibleWeeksCount = mmin(util.pick(this._options, 'month', 'visibleWeeksCount') || 0, 6);\n workweek = util.pick(this._options, 'month', 'workweek') || false;\n isAlways6Week = util.pick(this._options, 'month', 'isAlways6Week');\n\n if (visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n\n renderDate.addDate(offset * 7 * datetimeOptions.visibleWeeksCount);\n tempDate = datetime.arr2dCalendar(renderDate.d, datetimeOptions);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderMonth = new TZDate(renderDate.d);\n });\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: isAlways6Week,\n workweek: workweek\n };\n\n renderDate.addMonth(offset);\n tempDate = datetime.arr2dCalendar(renderDate.d, datetimeOptions);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderMonth = new TZDate(renderDate.d);\n });\n }\n\n startDate = tempDate[0][0];\n endDate = tempDate[tempDate.length - 1][tempDate[tempDate.length - 1].length - 1];\n } else if (viewName === 'week') {\n renderDate.addDate(offset * 7);\n startDayOfWeek = util.pick(this._options, 'week', 'startDayOfWeek') || 0;\n workweek = util.pick(this._options, 'week', 'workweek') || false;\n tempDate = this._getWeekDayRange(renderDate.d, startDayOfWeek, workweek);\n\n startDate = tempDate[0];\n endDate = tempDate[1];\n\n recursiveSet(view, function(childView, opt) {\n opt.renderStartDate = new TZDate(startDate);\n opt.renderEndDate = new TZDate(endDate);\n\n childView.setState({\n collapsed: true\n });\n });\n } else if (viewName === 'day') {\n renderDate.addDate(offset);\n startDate = datetime.start(renderDate.d);\n endDate = datetime.end(renderDate.d);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderStartDate = new TZDate(startDate);\n opt.renderEndDate = new TZDate(endDate);\n\n childView.setState({\n collapsed: true\n });\n });\n }\n\n this._renderDate = renderDate.d;\n this._renderRange = {\n start: startDate,\n end: endDate\n };\n};\n\n/**\n * Move to specific date\n * @param {(Date|string)} date - The date to move\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.getViewName() === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.changeView('day', true);\n * }\n * });\n */\nCalendar.prototype.setDate = function(date) {\n if (util.isString(date)) {\n date = datetime.parse(date);\n }\n\n this._renderDate = new TZDate(date);\n this._setViewName(this._viewName);\n this.move(0);\n this.render();\n};\n\n/**\n * Move the calendar forward a day, a week, a month, 2 weeks, 3 weeks.\n * @example\n * function moveToNextOrPrevRange(val) {\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.next = function() {\n this.move(1);\n this.render();\n};\n\n/**\n * Move the calendar backward a day, a week, a month, 2 weeks, 3 weeks.\n * @example\n * function moveToNextOrPrevRange(val) {\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.prev = function() {\n this.move(-1);\n this.render();\n};\n\n/**\n * Return current rendered view.\n * @returns {View} current view instance\n * @private\n */\nCalendar.prototype._getCurrentView = function() {\n var viewName = this._viewName;\n\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n return util.pick(this._layout.children.items, viewName);\n};\n\n/**\n * Change calendar's schedule color with option\n * @param {string} calendarId - The calendar ID\n * @param {CalendarColor} option - The {@link CalendarColor} object\n * @param {boolean} [silent=false] - No auto render after creation when set true\n * @example\n * calendar.setCalendarColor('1', {\n * color: '#e8e8e8',\n * bgColor: '#585858',\n * borderColor: '#a1b56c'\n * dragBgColor: '#585858',\n * });\n * calendar.setCalendarColor('2', {\n * color: '#282828',\n * bgColor: '#dc9656',\n * borderColor: '#a1b56c',\n * dragBgColor: '#dc9656',\n * });\n * calendar.setCalendarColor('3', {\n * color: '#a16946',\n * bgColor: '#ab4642',\n * borderColor: '#a1b56c',\n * dragBgColor: '#ab4642',\n * });\n */\nCalendar.prototype.setCalendarColor = function(calendarId, option, silent) {\n var calColor = this._calendarColor,\n ownSchedules = this._controller.schedules,\n ownColor = calColor[calendarId];\n\n if (!util.isObject(option)) {\n config.throwError('Calendar#changeCalendarColor(): color 는 {color: \\'\\', bgColor: \\'\\'} 형태여야 합니다.');\n }\n\n ownColor = calColor[calendarId] = util.extend({\n color: '#000',\n bgColor: '#a1b56c',\n borderColor: '#a1b56c',\n dragBgColor: '#a1b56c'\n }, option);\n\n ownSchedules.each(function(model) {\n if (model.calendarId !== calendarId) {\n return;\n }\n\n model.color = ownColor.color;\n model.bgColor = ownColor.bgColor;\n model.borderColor = ownColor.borderColor;\n model.dragBgColor = ownColor.dragBgColor;\n });\n\n if (!silent) {\n this.render();\n }\n};\n\n/**********\n * Custom Events\n **********/\n\n/**\n * A bridge-based event handler for connecting a click handler to a user click event handler for each view\n * @fires Calendar#clickSchedule\n * @param {object} clickScheduleData - The event data of 'clickSchedule' handler\n * @private\n */\nCalendar.prototype._onClick = function(clickScheduleData) {\n /**\n * Fire this event when click a schedule.\n * @event Calendar#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - The {@link Schedule} instance\n * @property {MouseEvent} event - MouseEvent\n * @example\n * calendar.on('clickSchedule', function(event) {\n * var schedule = event.schedule;\n *\n * if (lastClickSchedule) {\n * calendar.updateSchedule(lastClickSchedule.id, lastClickSchedule.calendarId, {\n * isFocused: false\n * });\n * }\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * isFocused: true\n * });\n *\n * lastClickSchedule = schedule;\n * // open detail view\n * });\n */\n this.fire('clickSchedule', clickScheduleData);\n};\n\n/**\n * A bridge-based event handler for connecting a click handler to a user click event handler for each view\n * @fires Calendar#clickMore\n * @param {object} clickMoreSchedule - The event data of 'clickMore' handler\n * @private\n */\nCalendar.prototype._onClickMore = function(clickMoreSchedule) {\n /**\n * Fire this event when click a schedule.\n * @event Calendar#clickMore\n * @type {object}\n * @property {Date} date - The Clicked date\n * @property {HTMLElement} target - The more element\n * @example\n * calendar.on('clickMore', function(event) {\n * console.log('clickMore', event.date, event.target);\n * });\n */\n this.fire('clickMore', clickMoreSchedule);\n};\n\n/**\n * dayname click event handler\n * @fires Calendar#clickDayname\n * @param {object} clickScheduleData - The event data of 'clickDayname' handler\n * @private\n */\nCalendar.prototype._onClickDayname = function(clickScheduleData) {\n /**\n * Fire this event when click a day name in weekly.\n * @event Calendar#clickDayname\n * @type {object}\n * @property {string} date - The date string by format 'YYYY-MM-DD'\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.getViewName() === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.changeView('day', true);\n * }\n * });\n */\n this.fire('clickDayname', clickScheduleData);\n};\n\n/**\n * @fires {Calendar#n('beforeCreateSchedule', function}\n * @param {object} createScheduleData - select schedule data from allday, time\n * @private\n */\nCalendar.prototype._onBeforeCreate = function(createScheduleData) {\n if (this._options.useCreationPopup && !createScheduleData.useCreationPopup) {\n if (this._showCreationPopup) {\n this._showCreationPopup(createScheduleData);\n\n return;\n }\n }\n /**\n * Fire this event when select time period in daily, weekly, monthly.\n * @event Calendar#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - The allday schedule\n * @property {Date} start - The selected start time\n * @property {Date} end - The selected end time\n * @property {TimeCreationGuide} guide - {@link TimeCreationGuide} instance\n * @property {string} triggerEventName - The event name like 'click', 'dblclick'\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var startTime = event.start;\n * var endTime = event.end;\n * var isAllDay = event.isAllDay;\n * var guide = event.guide;\n * var triggerEventName = event.triggerEventName;\n * var schedule;\n *\n * if (triggerEventName === 'click') {\n * // open writing simple schedule popup\n * schedule = {...};\n * } else if (triggerEventName === 'dblclick') {\n * // open writing detail schedule popup\n * schedule = {...};\n * }\n *\n * calendar.createSchedules([schedule]);\n * });\n */\n this.fire('beforeCreateSchedule', createScheduleData);\n};\n\n/**\n * @fires Calendar#beforeUpdateSchedule\n * @param {object} updateScheduleData - update {@link Schedule} data\n * @private\n */\nCalendar.prototype._onBeforeUpdate = function(updateScheduleData) {\n /**\n * Fire this event when drag a schedule to change time in daily, weekly, monthly.\n * @event Calendar#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original {@link Schedule} instance\n * @property {object} changes - The {@link Schedule} properties and values with changes to update\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @example\n * calendar.on('beforeUpdateSchedule', function(event) {\n * var schedule = event.schedule;\n * var changes = event.changes;\n *\n * calendar.updateSchedule(schedule.id, schedule.calendarId, changes);\n * });\n */\n this.fire('beforeUpdateSchedule', updateScheduleData);\n};\n\n/**\n * @fires Calendar#beforeDeleteSchedule\n * @param {object} deleteScheduleData - delete schedule data\n * @private\n */\nCalendar.prototype._onBeforeDelete = function(deleteScheduleData) {\n /**\n * Fire this event when delete a schedule.\n * @event Calendar#beforeDeleteSchedule\n * @type {object}\n * @property {Schedule} schedule - The {@link Schedule} instance to delete\n * @example\n * calendar.on('beforeDeleteSchedule', function(event) {\n * var schedule = event.schedule;\n * alert('The schedule is removed.', schedule);\n * });\n */\n this.fire('beforeDeleteSchedule', deleteScheduleData);\n};\n\n/**\n * @fires Calendar#afterRenderSchedule\n * @param {Schedule} scheduleData - The schedule data\n * @private\n */\nCalendar.prototype._onAfterRenderSchedule = function(scheduleData) {\n /**\n * Fire this event by every single schedule after rendering whole calendar.\n * @event Calendar#afterRenderSchedule\n * @type {object}\n * @property {Schedule} schedule - A rendered {@link Schedule} instance\n * @example\n * calendar.on('afterRenderSchedule', function(event) {\n * var schedule = event.schedule;\n * var element = calendar.getElement(schedule.id, schedule.calendarId);\n * // use the element\n * console.log(element);\n * });\n */\n this.fire('afterRenderSchedule', scheduleData);\n};\n\n/**\n * @fires Calendar#clickTimezonesCollapseBtn\n * @param {boolean} timezonesCollapsed - timezones collapsed flag\n * @private\n */\nCalendar.prototype._onClickTimezonesCollapseBtn = function(timezonesCollapsed) {\n /**\n * Fire this event by clicking timezones collapse button\n * @event Calendar#clickTimezonesCollapseBtn\n * @type {object}\n * @property {boolean} timezonesCollapsed - The timezones collapes flag\n * @example\n * calendar.on('clickTimezonesCollapseBtn', function(timezonesCollapsed) {\n * console.log(timezonesCollapsed);\n * });\n */\n this.fire('clickTimezonesCollapseBtn', timezonesCollapsed);\n};\n\n/**\n * Toggle calendar factory class, main view, wallview event connection\n * @param {boolean} isAttach - attach events if true.\n * @param {Week|Month} view - Weekly view or Monthly view\n * @private\n */\nCalendar.prototype._toggleViewSchedule = function(isAttach, view) {\n var self = this,\n handler = view.handler,\n method = isAttach ? 'on' : 'off';\n\n util.forEach(handler.click, function(clickHandler) {\n clickHandler[method]('clickSchedule', self._onClick, self);\n });\n\n util.forEach(handler.dayname, function(clickHandler) {\n clickHandler[method]('clickDayname', self._onClickDayname, self);\n });\n\n util.forEach(handler.creation, function(creationHandler) {\n creationHandler[method]('beforeCreateSchedule', self._onBeforeCreate, self);\n creationHandler[method]('beforeDeleteSchedule', self._onBeforeDelete, self);\n });\n\n util.forEach(handler.move, function(moveHandler) {\n moveHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n util.forEach(handler.resize, function(resizeHandler) {\n resizeHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n // bypass events from view\n view[method]('afterRenderSchedule', self._onAfterRenderSchedule, self);\n view[method]('clickTimezonesCollapseBtn', self._onClickTimezonesCollapseBtn, self);\n view[method]('clickMore', self._onClickMore, self);\n};\n\n/**\n * Change current view with view name('day', 'week', 'month')\n * @param {string} newViewName - The New view name to render\n * @param {boolean} force - Force render despite of current view and new view are equal\n * @example\n * // daily view\n * calendar.changeView('day', true);\n *\n * // weekly view\n * calendar.changeView('week', true);\n *\n * // monthly view(default 6 weeks view)\n * calendar.setOptions({month: {visibleWeeksCount: 6}}, true); // or null\n * calendar.changeView('month', true);\n *\n * // 2 weeks monthly view\n * calendar.setOptions({month: {visibleWeeksCount: 2}}, true);\n * calendar.changeView('month', true);\n *\n * // 3 weeks monthly view\n * calendar.setOptions({month: {visibleWeeksCount: 3}}, true);\n * calendar.changeView('month', true);\n *\n * // narrow weekend\n * calendar.setOptions({month: {narrowWeekend: true}}, true);\n * calendar.setOptions({week: {narrowWeekend: true}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n *\n * // change start day of week(from monday)\n * calendar.setOptions({week: {startDayOfWeek: 1}}, true);\n * calendar.setOptions({month: {startDayOfWeek: 1}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n *\n * // work week\n * calendar.setOptions({week: {workweek: true}}, true);\n * calendar.setOptions({month: {workweek: true}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n */\nCalendar.prototype.changeView = function(newViewName, force) {\n var self = this,\n layout = this._layout,\n controller = this._controller,\n dragHandler = this._dragHandler,\n options = this._options,\n viewName = this._viewName,\n created;\n\n if (!force && viewName === newViewName) {\n return;\n }\n\n this._setViewName(newViewName);\n\n // convert day to week\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n if (newViewName === 'day') {\n newViewName = 'week';\n }\n layout.children.doWhenHas(viewName, function(view) {\n self._toggleViewSchedule(false, view);\n });\n\n layout.clear();\n\n if (newViewName === 'month') {\n created = _createMonthView(\n controller,\n layout.container,\n dragHandler,\n options\n );\n } else if (newViewName === 'week' || newViewName === 'day') {\n created = _createWeekView(\n controller,\n layout.container,\n dragHandler,\n options,\n this.getViewName()\n );\n }\n\n layout.addChild(created.view);\n\n layout.children.doWhenHas(newViewName, function(view) {\n self._toggleViewSchedule(true, view);\n });\n\n this._refreshMethod = created.refresh;\n this._scrollToNowMethod = created.scrollToNow;\n this._openCreationPopup = created.openCreationPopup;\n this._showCreationPopup = created.showCreationPopup;\n this._hideMoreView = created.hideMoreView;\n\n this.move();\n this.render();\n};\n\n/**\n * @deprecated\n * Toggle task view('Milestone', 'Task') panel\n * @param {boolean} enabled - use task view\n * @example\n * // There is no milestone, task, so hide those view panel\n * calendar.toggleTaskView(false);\n *\n * // There are some milestone, task, so show those view panel.\n * calendar.toggleTaskView(true);\n */\nCalendar.prototype.toggleTaskView = function(enabled) {\n var viewName = this._viewName,\n options = this._options;\n\n options.taskView = enabled;\n\n this.changeView(viewName, true);\n};\n\n/**\n * @deprecated\n * Toggle schedule view('AllDay', TimeGrid') panel\n * @param {boolean} enabled - use task view\n * @example\n * // hide those view panel to show only 'Milestone', 'Task'\n * calendar.toggleScheduleView(false);\n *\n * // show those view panel.\n * calendar.toggleScheduleView(true);\n */\nCalendar.prototype.toggleScheduleView = function(enabled) {\n var viewName = this._viewName,\n options = this._options;\n\n options.scheduleView = enabled;\n\n this.changeView(viewName, true);\n};\n\n/**\n * Set current view name\n * @param {string} viewName - new view name to render\n * @private\n */\nCalendar.prototype._setViewName = function(viewName) {\n this._viewName = viewName;\n};\n\n/**\n * Get a schedule element by schedule id and calendar id.\n * @param {string} scheduleId - ID of schedule\n * @param {string} calendarId - calendarId of schedule\n * @returns {HTMLElement} schedule element if found or null\n * @example\n * var element = calendar.getElement(scheduleId, calendarId);\n * console.log(element);\n */\nCalendar.prototype.getElement = function(scheduleId, calendarId) {\n var schedule = this.getSchedule(scheduleId, calendarId);\n if (schedule) {\n return document.querySelector('[data-schedule-id=\"' + scheduleId + '\"][data-calendar-id=\"' + calendarId + '\"]');\n }\n\n return null;\n};\n\n/**\n * Set a theme. If some keys are not defined in the preset, will be return.\n * @param {object} theme - multiple styles map\n * @returns {Array.} keys - error keys not predefined.\n * @example\n * cal.setTheme({\n 'month.dayname.height': '31px',\n 'common.dayname.color': '#333',\n 'month.dayname.borderBottom': '1px solid #e5e5e5' // Not valid key will be return.\n * });\n */\nCalendar.prototype.setTheme = function(theme) {\n var result = this._controller.setTheme(theme);\n this.render(true);\n\n return result;\n};\n\n/**\n * Set options of calendar\n * @param {Options} options - set {@link Options}\n * @param {boolean} [silent=false] - no auto render after creation when set true\n */\nCalendar.prototype.setOptions = function(options, silent) {\n util.forEach(options, function(value, name) {\n if (util.isObject(value) && !util.isArray(value)) {\n util.forEach(value, function(innerValue, innerName) {\n this._options[name][innerName] = innerValue;\n }, this);\n } else {\n this._options[name] = value;\n }\n }, this);\n\n this._setAdditionalInternalOptions(options);\n\n if (!silent) {\n this.changeView(this._viewName, true);\n }\n};\n\n/**\n * Get current {@link Options}.\n * @returns {Options} options\n */\nCalendar.prototype.getOptions = function() {\n return this._options;\n};\n\n/**\n * Current rendered date ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDate = function() {\n return this._renderDate;\n};\n\n/**\n * Start time of rendered date range ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDateRangeStart = function() {\n return this._renderRange.start;\n};\n\n/**\n * End time of rendered date range ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDateRangeEnd = function() {\n return this._renderRange.end;\n};\n\n/**\n * Get current view name('day', 'week', 'month')\n * @returns {string} view name\n */\nCalendar.prototype.getViewName = function() {\n return this._viewName;\n};\n\n/**\n * Set calendar list\n * @param {Array.} calendars - {@link CalendarProps} List\n */\nCalendar.prototype.setCalendars = function(calendars) {\n util.forEach(calendars || [], function(calendar) {\n this.setCalendarColor(calendar.id, calendar, true);\n }, this);\n\n this._controller.setCalendars(calendars);\n\n this.render();\n};\n\n/**\n * Open schedule creation popup\n * @param {Schedule} schedule - The preset {@link Schedule} data\n */\nCalendar.prototype.openCreationPopup = function(schedule) {\n if (this._openCreationPopup) {\n this._openCreationPopup(schedule);\n }\n};\n\n/**\n * Hide the more view\n */\nCalendar.prototype.hideMoreView = function() {\n if (this._hideMoreView) {\n this._hideMoreView();\n }\n};\n\n/**\n * Set timezone offset\n * @param {number} offset - The offset (min)\n * @static\n * @deprecated\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffset(moment.tz.zone(timezoneName).utcOffset(moment()));\n */\nCalendar.setTimezoneOffset = function(offset) {\n timezone.setOffset(offset);\n};\n\n/**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - The callback function\n * @static\n * @deprecated\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffsetCallback(function(timestamp) {\n * return moment.tz.zone(timezoneName).utcOffset(timestamp));\n * });\n */\nCalendar.setTimezoneOffsetCallback = function(callback) {\n timezone.setOffsetCallback(callback);\n};\n\n/**\n * Create controller instance\n * @returns {Base} controller instance\n * @param {Options} options - calendar options\n * @private\n */\nfunction _createController(options) {\n return controllerFactory(options);\n}\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @param {string} viewName - 'week', 'day'\n * @returns {Week} week view instance\n * @private\n */\nfunction _createWeekView(controller, container, dragHandler, options, viewName) {\n return weekViewFactory(\n controller,\n container,\n dragHandler,\n options,\n viewName\n );\n}\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @returns {Month} month view instance\n * @private\n */\nfunction _createMonthView(controller, container, dragHandler, options) {\n return monthViewFactory(\n controller,\n container,\n dragHandler,\n options\n );\n}\n\n/**\n * Set child view's options recursively\n * @param {View} view - parent view\n * @param {function} func - option manipulate function\n * @private\n */\nfunction _setOptionRecurseively(view, func) {\n view.recursive(function(childView) {\n var opt = childView.options;\n\n if (!opt) {\n return;\n }\n\n func(childView, opt);\n });\n}\n\nutil.CustomEvents.mixin(Calendar);\n\nmodule.exports = Calendar;\n","/**\n * @fileoverview Controller factory module.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Base = require('../controller/base'),\n Core = require('../controller/viewMixin/core'),\n Week = require('../controller/viewMixin/week'),\n Month = require('../controller/viewMixin/month');\n\n/**\n * Mixin object. create object property to target and mix to that\n * @param {object} from - source object\n * @param {object} to - target object\n * @param {string} propertyName - property name\n */\nfunction mixin(from, to, propertyName) {\n var obj = to[propertyName] = {};\n\n util.forEach(from, function(method, methodName) {\n obj[methodName] = util.bind(method, to);\n });\n}\n\n/**\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @returns {Base} The controller instance.\n */\nmodule.exports = function(options) {\n var controller = new Base(options);\n\n mixin(Core, controller, 'Core');\n mixin(Week, controller, 'Week');\n mixin(Month, controller, 'Month');\n\n // for Theme\n controller.Core.theme = controller.theme;\n controller.Week.theme = controller.theme;\n controller.Month.theme = controller.theme;\n\n return controller;\n};\n","/**\n * @fileoverview Month view factory module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n array = require('../common/array'),\n datetime = require('../common/datetime'),\n domutil = require('../common/domutil'),\n common = require('../common/common'),\n Month = require('../view/month/month'),\n MonthClick = require('../handler/month/click'),\n MonthCreation = require('../handler/month/creation'),\n MonthResize = require('../handler/month/resize'),\n MonthMove = require('../handler/month/move'),\n More = require('../view/month/more'),\n ScheduleCreationPopup = require('../view/popup/scheduleCreationPopup'),\n ScheduleDetailPopup = require('../view/popup/scheduleDetailPopup'),\n Schedule = require('../model/schedule');\n\n/**\n * Get the view model for more layer\n * @param {TZDate} date - date has more schedules\n * @param {HTMLElement} target - target element\n * @param {Collection} schedules - schedule collection\n * @param {string[]} daynames - daynames to use upside of month more view\n * @returns {object} view model\n */\nfunction getViewModelForMoreLayer(date, target, schedules, daynames) {\n schedules.each(function(schedule) {\n var model = schedule.model;\n schedule.hasMultiDates = !datetime.isSameDate(model.start, model.end);\n });\n\n return {\n target: target,\n date: datetime.format(date, 'YYYY.MM.DD'),\n dayname: daynames[date.getDay()],\n schedules: schedules.sort(array.compare.schedule.asc)\n };\n}\n\n/**\n * @param {Base} baseController - controller instance\n * @param {HTMLElement} layoutContainer - container element for month view\n * @param {Drag} dragHandler - drag handler instance\n * @param {object} options - options\n * @returns {object} view instance and refresh method\n */\nfunction createMonthView(baseController, layoutContainer, dragHandler, options) {\n var monthViewContainer, monthView, moreView, createView;\n var clickHandler, creationHandler, resizeHandler, moveHandler, clearSchedulesHandler, onUpdateSchedule;\n var onShowCreationPopup, onSaveNewSchedule, onShowEditPopup;\n var detailView, onShowDetailPopup, onDeleteSchedule, onEditSchedule;\n\n monthViewContainer = domutil.appendHTMLElement(\n 'div', layoutContainer, config.classname('month'));\n\n monthView = new Month(options, monthViewContainer, baseController.Month);\n moreView = new More(options.month, layoutContainer, baseController.theme);\n\n // handlers\n clickHandler = new MonthClick(dragHandler, monthView, baseController);\n if (!options.isReadOnly) {\n creationHandler = new MonthCreation(dragHandler, monthView, baseController, options);\n resizeHandler = new MonthResize(dragHandler, monthView, baseController);\n moveHandler = new MonthMove(dragHandler, monthView, baseController);\n }\n\n clearSchedulesHandler = function() {\n if (moreView) {\n moreView.hide();\n }\n };\n\n onUpdateSchedule = function() {\n if (moreView) {\n moreView.refresh();\n }\n };\n\n // binding +n click schedule\n clickHandler.on('clickMore', function(clickMoreSchedule) {\n var date = clickMoreSchedule.date,\n target = clickMoreSchedule.target,\n schedules = util.pick(baseController.findByDateRange(\n datetime.start(date),\n datetime.end(date)\n ), clickMoreSchedule.ymd);\n\n schedules.items = util.filter(schedules.items, function(item) {\n return options.month.scheduleFilter(item.model);\n });\n\n if (schedules && schedules.length) {\n moreView.render(getViewModelForMoreLayer(date, target, schedules, monthView.options.daynames));\n\n schedules.each(function(scheduleViewModel) {\n if (scheduleViewModel) {\n /**\n * @event More#afterRenderSchedule\n */\n monthView.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n\n monthView.fire('clickMore', {\n date: clickMoreSchedule.date,\n target: moreView.getMoreViewElement()\n });\n }\n });\n\n // binding popup for schedules creation\n if (options.useCreationPopup) {\n createView = new ScheduleCreationPopup(layoutContainer, baseController.calendars, options.usageStatistics);\n\n onSaveNewSchedule = function(scheduleData) {\n creationHandler.fire('beforeCreateSchedule', util.extend(scheduleData, {\n useCreationPopup: true\n }));\n };\n createView.on('beforeCreateSchedule', onSaveNewSchedule);\n }\n\n // binding popup for schedule detail\n if (options.useDetailPopup) {\n detailView = new ScheduleDetailPopup(layoutContainer, baseController.calendars);\n onShowDetailPopup = function(eventData) {\n var scheduleId = eventData.schedule.calendarId;\n eventData.calendar = common.find(baseController.calendars, function(calendar) {\n return calendar.id === scheduleId;\n });\n\n if (options.isReadOnly) {\n eventData.schedule = util.extend({}, eventData.schedule, {isReadOnly: true});\n }\n\n detailView.render(eventData);\n };\n onDeleteSchedule = function(eventData) {\n if (creationHandler) {\n creationHandler.fire('beforeDeleteSchedule', eventData);\n }\n };\n onEditSchedule = function(eventData) {\n moveHandler.fire('beforeUpdateSchedule', eventData);\n };\n\n clickHandler.on('clickSchedule', onShowDetailPopup);\n\n detailView.on('beforeDeleteSchedule', onDeleteSchedule);\n\n if (options.useCreationPopup) {\n onShowEditPopup = function(eventData) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n };\n createView.on('beforeUpdateSchedule', onEditSchedule);\n detailView.on('beforeUpdateSchedule', onShowEditPopup);\n } else {\n detailView.on('beforeUpdateSchedule', onEditSchedule);\n }\n }\n\n // binding clear schedules\n baseController.on('clearSchedules', clearSchedulesHandler);\n\n // bind update schedule event\n baseController.on('updateSchedule', onUpdateSchedule);\n\n if (moveHandler) {\n moveHandler.on('monthMoveStart_from_morelayer', function() {\n moreView.hide();\n });\n }\n\n monthView.handler = {\n click: {\n 'default': clickHandler\n }\n };\n\n if (!options.isReadOnly) {\n monthView.handler = util.extend(monthView.handler, {\n creation: {\n 'default': creationHandler\n },\n resize: {\n 'default': resizeHandler\n },\n move: {\n 'default': moveHandler\n }\n });\n }\n\n monthView._beforeDestroy = function() {\n moreView.destroy();\n baseController.off('clearSchedules', clearSchedulesHandler);\n baseController.off('updateSchedule', onUpdateSchedule);\n\n util.forEach(monthView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n\n if (options.useCreationPopup && options.useDetailPopup) {\n createView.off('beforeUpdateSchedule', onUpdateSchedule);\n }\n\n if (options.useCreationPopup) {\n if (creationHandler) {\n creationHandler.off('beforeCreateSchedule', onShowCreationPopup);\n }\n createView.off('saveSchedule', onSaveNewSchedule);\n createView.destroy();\n }\n\n if (options.useDetailPopup) {\n clickHandler.off('clickSchedule', onShowDetailPopup);\n detailView.off('beforeUpdateSchedule', onUpdateSchedule);\n detailView.off('beforeDeleteSchedule', onDeleteSchedule);\n detailView.destroy();\n }\n };\n\n // add controller\n monthView.controller = baseController.Month;\n\n return {\n view: monthView,\n refresh: function() {\n monthView.vLayout.refresh();\n },\n openCreationPopup: function(schedule) {\n if (createView && creationHandler) {\n creationHandler.invokeCreationClick(Schedule.create(schedule));\n }\n },\n showCreationPopup: function(eventData) {\n if (createView) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n }\n },\n hideMoreView: function() {\n if (moreView) {\n moreView.hide();\n }\n }\n };\n}\n\nmodule.exports = createMonthView;\n","/**\n * @fileoverview Factory module for WeekView\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar common = require('../common/common');\nvar VLayout = require('../common/vlayout');\nvar reqAnimFrame = require('../common/reqAnimFrame');\nvar Schedule = require('../model/schedule');\n// Parent views\nvar Week = require('../view/week/week');\n\n// Sub views\nvar DayName = require('../view/week/dayname');\nvar DayGrid = require('../view/week/dayGrid');\nvar TimeGrid = require('../view/week/timeGrid');\nvar ScheduleCreationPopup = require('../view/popup/scheduleCreationPopup');\nvar ScheduleDetailPopup = require('../view/popup/scheduleDetailPopup');\n\n// Handlers\nvar DayNameClick = require('../handler/time/clickDayname');\nvar DayGridClick = require('../handler/daygrid/click');\nvar DayGridCreation = require('../handler/daygrid/creation');\nvar DayGridMove = require('../handler/daygrid/move');\nvar DayGridResize = require('../handler/daygrid/resize');\nvar TimeClick = require('../handler/time/click');\nvar TimeCreation = require('../handler/time/creation');\nvar TimeMove = require('../handler/time/move');\nvar TimeResize = require('../handler/time/resize');\n\nvar DAYGRID_HANDLDERS = {\n 'click': DayGridClick,\n 'creation': DayGridCreation,\n 'move': DayGridMove,\n 'resize': DayGridResize\n};\nvar TIMEGRID_HANDLERS = {\n 'click': TimeClick,\n 'creation': TimeCreation,\n 'move': TimeMove,\n 'resize': TimeResize\n};\nvar DEFAULT_PANELS = [\n {\n name: 'milestone',\n type: 'daygrid',\n minHeight: 20,\n maxHeight: 80,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click'],\n show: true\n },\n {\n name: 'task',\n type: 'daygrid',\n minHeight: 40,\n maxHeight: 120,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click', 'move'],\n show: true\n },\n {\n name: 'allday',\n type: 'daygrid',\n minHeight: 30,\n maxHeight: 80,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click', 'creation', 'move', 'resize'],\n show: true\n },\n {\n name: 'time',\n type: 'timegrid',\n autoHeight: true,\n handlers: ['click', 'creation', 'move', 'resize'],\n show: true\n }\n];\n\n/* eslint-disable complexity*/\nmodule.exports = function(baseController, layoutContainer, dragHandler, options, viewName) {\n var panels = [],\n vpanels = [];\n var weekView, dayNameContainer, dayNameView, vLayoutContainer, vLayout;\n var createView, onSaveNewSchedule, onSetCalendars, lastVPanel;\n var detailView, onShowDetailPopup, onDeleteSchedule, onShowEditPopup, onEditSchedule;\n var taskView = options.taskView;\n var scheduleView = options.scheduleView;\n var viewVisibilities = {\n 'milestone': util.isArray(taskView) ? util.inArray('milestone', taskView) >= 0 : taskView,\n 'task': util.isArray(taskView) ? util.inArray('task', taskView) >= 0 : taskView,\n 'allday': util.isArray(scheduleView) ? util.inArray('allday', scheduleView) >= 0 : scheduleView,\n 'time': util.isArray(scheduleView) ? util.inArray('time', scheduleView) >= 0 : scheduleView\n };\n\n // Make panels by view sequence and visibilities\n util.forEach(DEFAULT_PANELS, function(panel) {\n var name = panel.name;\n\n panel = util.extend({}, panel);\n panels.push(panel);\n\n // Change visibilities\n panel.show = viewVisibilities[name];\n\n if (panel.show) {\n if (vpanels.length) {\n vpanels.push({\n isSplitter: true\n });\n }\n vpanels.push(util.extend({}, panel));\n }\n });\n\n if (vpanels.length) {\n lastVPanel = vpanels[vpanels.length - 1];\n lastVPanel.autoHeight = true;\n lastVPanel.maxHeight = null;\n lastVPanel.showExpandableButton = false;\n\n util.forEach(panels, function(panel) {\n if (panel.name === lastVPanel.name) {\n panel.showExpandableButton = false;\n\n return false;\n }\n\n return true;\n });\n }\n\n util.extend(options.week, {panels: panels});\n\n weekView = new Week(null, options.week, layoutContainer, panels, viewName);\n weekView.handler = {\n click: {},\n dayname: {},\n creation: {},\n move: {},\n resize: {}\n };\n\n dayNameContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('dayname-layout'));\n\n /**********\n * Day name (top row(Mon, Tue, Wed...))\n **********/\n dayNameView = new DayName(options, dayNameContainer, baseController.theme);\n weekView.handler.dayname.date = new DayNameClick(dragHandler, dayNameView, baseController);\n weekView.addChild(dayNameView);\n\n /**********\n * Initialize vertical layout module\n **********/\n vLayoutContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('vlayout-area'));\n vLayoutContainer.style.height = (domutil.getSize(weekView.container)[1] - dayNameView.container.offsetHeight) + 'px';\n\n vLayout = new VLayout({\n panels: vpanels,\n panelHeights: options.week.panelHeights || []\n }, vLayoutContainer, baseController.theme);\n\n weekView.vLayout = vLayout;\n\n util.forEach(panels, function(panel) {\n var name = panel.name;\n var handlers = panel.handlers;\n var view;\n\n if (!panel.show) {\n return;\n }\n\n if (panel.type === 'daygrid') {\n /**********\n * Schedule panel by Grid\n **********/\n view = new DayGrid(name, options, vLayout.getPanelByName(panel.name).container, baseController.theme);\n view.on('afterRender', function(viewModel) {\n vLayout.getPanelByName(name).setHeight(null, viewModel.height);\n });\n\n weekView.addChild(view);\n\n util.forEach(handlers, function(type) {\n if (!options.isReadOnly || type === 'click') {\n weekView.handler[type][name] =\n new DAYGRID_HANDLDERS[type](dragHandler, view, baseController, options);\n view.addHandler(type, weekView.handler[type][name], vLayout.getPanelByName(name));\n }\n });\n } else if (panel.type === 'timegrid') {\n /**********\n * Schedule panel by TimeGrid\n **********/\n view = new TimeGrid(name, options, vLayout.getPanelByName(name).container);\n weekView.addChild(view);\n util.forEach(handlers, function(type) {\n if (!options.isReadOnly || type === 'click') {\n weekView.handler[type][name] =\n new TIMEGRID_HANDLERS[type](dragHandler, view, baseController, options);\n }\n });\n\n view.on('clickTimezonesCollapsedBtn', function() {\n var timezonesCollapsed = !weekView.state.timezonesCollapsed;\n\n weekView.setState({\n timezonesCollapsed: timezonesCollapsed\n });\n reqAnimFrame.requestAnimFrame(function() {\n if (!weekView.invoke('clickTimezonesCollapseBtn', timezonesCollapsed)) {\n weekView.render();\n }\n });\n });\n }\n });\n\n vLayout.on('resize', function() {\n reqAnimFrame.requestAnimFrame(function() {\n weekView.render();\n });\n });\n\n // binding create schedules event\n if (options.useCreationPopup) {\n createView = new ScheduleCreationPopup(layoutContainer, baseController.calendars, options.usageStatistics);\n\n onSaveNewSchedule = function(scheduleData) {\n util.extend(scheduleData, {\n useCreationPopup: true\n });\n if (scheduleData.isAllDay) {\n weekView.handler.creation.allday.fire('beforeCreateSchedule', scheduleData);\n } else {\n weekView.handler.creation.time.fire('beforeCreateSchedule', scheduleData);\n }\n };\n createView.on('beforeCreateSchedule', onSaveNewSchedule);\n }\n\n onSetCalendars = function(calendars) {\n if (createView) {\n createView.setCalendars(calendars);\n }\n };\n\n baseController.on('setCalendars', onSetCalendars);\n\n // binding popup for schedule detail\n if (options.useDetailPopup) {\n detailView = new ScheduleDetailPopup(layoutContainer, baseController.calendars);\n onShowDetailPopup = function(eventData) {\n var scheduleId = eventData.schedule.calendarId;\n eventData.calendar = common.find(baseController.calendars, function(calendar) {\n return calendar.id === scheduleId;\n });\n\n if (options.isReadOnly) {\n eventData.schedule = util.extend({}, eventData.schedule, {isReadOnly: true});\n }\n\n detailView.render(eventData);\n };\n onDeleteSchedule = function(eventData) {\n if (eventData.isAllDay) {\n weekView.handler.creation.allday.fire('beforeDeleteSchedule', eventData);\n } else {\n weekView.handler.creation.time.fire('beforeDeleteSchedule', eventData);\n }\n };\n onEditSchedule = function(eventData) {\n if (eventData.isAllDay) {\n weekView.handler.move.allday.fire('beforeUpdateSchedule', eventData);\n } else {\n weekView.handler.move.time.fire('beforeUpdateSchedule', eventData);\n }\n };\n\n util.forEach(weekView.handler.click, function(panel) {\n panel.on('clickSchedule', onShowDetailPopup);\n });\n if (options.useCreationPopup) {\n onShowEditPopup = function(eventData) {\n var calendars = baseController.calendars;\n eventData.isEditMode = true;\n createView.setCalendars(calendars);\n createView.render(eventData);\n };\n createView.on('beforeUpdateSchedule', onEditSchedule);\n detailView.on('beforeUpdateSchedule', onShowEditPopup);\n } else {\n detailView.on('beforeUpdateSchedule', onEditSchedule);\n }\n detailView.on('beforeDeleteSchedule', onDeleteSchedule);\n }\n\n weekView.on('afterRender', function() {\n vLayout.refresh();\n });\n\n // add controller\n weekView.controller = baseController.Week;\n\n // add destroy\n weekView._beforeDestroy = function() {\n util.forEach(weekView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n\n if (options.useCreationPopup) {\n createView.off('beforeCreateSchedule', onSaveNewSchedule);\n createView.destroy();\n }\n\n if (options.useDetailPopup) {\n detailView.off('beforeDeleteSchedule', onDeleteSchedule);\n detailView.destroy();\n }\n\n weekView.off();\n };\n\n return {\n view: weekView,\n refresh: function() {\n var weekViewHeight = weekView.getViewBound().height,\n daynameViewHeight = domutil.getBCRect(\n dayNameView.container\n ).height;\n\n vLayout.container.style.height =\n weekViewHeight - daynameViewHeight + 'px';\n vLayout.refresh();\n },\n scrollToNow: function() {\n weekView.children.each(function(childView) {\n if (childView.scrollToNow) {\n childView.scrollToNow();\n }\n });\n },\n openCreationPopup: function(schedule) {\n if (createView) {\n if (schedule.isAllDay) {\n weekView.handler.creation.allday.invokeCreationClick(Schedule.create(schedule));\n } else {\n weekView.handler.creation.time.invokeCreationClick(Schedule.create(schedule));\n }\n }\n },\n showCreationPopup: function(eventData) {\n if (createView) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n }\n }\n };\n};\n","/**\n * @fileoverview Click handle module for daygrid schedules\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar DayGridMove = require('./move');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - daygrid view instance.\n * @param {Base} [controller] - Base controller instance.\n */\nfunction DayGridClick(dragHandler, view, controller) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * @type {Base}\n */\n this.controller = controller;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy handler module\n */\nDayGridClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.view = this.controller = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nDayGridClick.prototype.checkExpectCondition = DayGridMove.prototype.checkExpectedCondition;\n\n/**\n * Click event handler\n * @param {object} clickEvent - click event data\n * @emits DayGridClick#clickSchedule\n * @emits DayGridClick#collapse\n * @emits DayGridClick#expand\n */\nDayGridClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n dayGridScheduleView = this.checkExpectCondition(target),\n scheduleCollection = this.controller.schedules,\n collapseBtnElement = domutil.closest(\n target,\n config.classname('.weekday-collapse-btn')\n ),\n expandBtnElement = domutil.closest(\n target,\n config.classname('.weekday-exceed-in-week')\n ),\n containsTarget = this.view.container.contains(target);\n var blockElement, scheduleElement;\n\n if (!containsTarget) {\n return;\n }\n\n if (collapseBtnElement) {\n /**\n * click collpase btn event\n * @events DayGridClick#collapse\n */\n self.fire('collapse');\n\n return;\n }\n\n if (expandBtnElement) {\n this.view.setState({\n clickedExpandBtnIndex: parseInt(domutil.getData(expandBtnElement, 'index'), 10)\n });\n\n /**\n * click expand btn event\n * @events DayGridClick#expand\n */\n self.fire('expand');\n\n return;\n }\n\n if (!dayGridScheduleView) {\n return;\n }\n\n scheduleElement = domutil.closest(target, config.classname('.weekday-schedule'));\n if (scheduleElement) {\n blockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events DayGridClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(DayGridClick);\n\nmodule.exports = DayGridClick;\n","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Base mixin object for handler/daygrid\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\n\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @mixin dayGridCore\n */\nvar dayGridCore = {\n /**\n * @param {view} view - view instance.\n * @param {MouseEvent} mouseEvent - mouse schedule object.\n * @returns {function|boolean} function that return schedule data by mouse events.\n */\n _retriveScheduleData: function(view, mouseEvent) {\n var weekdayView = view.children.single(),\n container,\n datesInRange,\n containerWidth,\n mousePos,\n dragStartXIndex,\n grids,\n range;\n\n if (!weekdayView) {\n return false;\n }\n\n container = weekdayView.container;\n range = weekdayView.getRenderDateRange();\n datesInRange = range.length;\n grids = weekdayView.getRenderDateGrids();\n\n containerWidth = domutil.getSize(container)[0];\n mousePos = domevent.getMousePosition(mouseEvent, container);\n dragStartXIndex = getX(grids, common.ratio(containerWidth, 100, mousePos[0]));\n\n /**\n * @param {MouseEvent} mouseEvent - mouse schedule in drag actions.\n * @returns {object} schedule data.\n */\n return function(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, container),\n mouseX = pos[0],\n xIndex = getX(grids, common.ratio(containerWidth, 100, mouseX));\n\n // apply limitation of creation schedule X index.\n xIndex = mmax(xIndex, 0);\n xIndex = mmin(xIndex, datesInRange - 1);\n\n return {\n relatedView: view,\n dragStartXIndex: dragStartXIndex,\n datesInRange: datesInRange,\n xIndex: xIndex,\n triggerEvent: mouseEvent.type,\n grids: grids,\n range: range\n };\n };\n },\n\n /**\n * @param {view} view - view instance.\n * @param {TZDate} startDate - start date\n * @returns {function|boolean} function that return schedule data by mouse events.\n */\n _retriveScheduleDataFromDate: function(view, startDate) {\n var weekdayView = view.children.single(),\n datesInRange,\n dragStartXIndex = 0,\n grids,\n range;\n\n if (!weekdayView) {\n return false;\n }\n\n range = weekdayView.getRenderDateRange();\n datesInRange = range.length;\n grids = weekdayView.getRenderDateGrids();\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, startDate)) {\n dragStartXIndex = index;\n }\n });\n\n /**\n * @param {TZDate} targetDate - target date\n * @returns {object} schedule data.\n */\n return function(targetDate) {\n var xIndex = 0;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, targetDate)) {\n xIndex = index;\n }\n });\n\n // apply limitation of creation schedule X index.\n xIndex = mmax(xIndex, 0);\n xIndex = mmin(xIndex, datesInRange - 1);\n\n return {\n relatedView: view,\n dragStartXIndex: dragStartXIndex,\n datesInRange: datesInRange,\n xIndex: xIndex,\n triggerEvent: 'manual',\n grids: grids,\n range: range\n };\n };\n }\n};\n\n/**\n * Get the left index\n * @param {Array} grids - grid size information\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\nfunction getX(grids, left) {\n var i = 0;\n var length = grids.length;\n var grid;\n if (left < 0) {\n left = 0;\n }\n\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return i;\n}\n\nmodule.exports = dayGridCore;\n","/**\n * @fileoverview Handler module for WeekdayInWeek view's creation actions.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar dayGridCore = require('./core');\nvar DayGridCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CutomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - DayGrid view instance.\n * @param {Base} [controller] - Base controller instance.\n * @param {Options} [options] - calendar Options\n */\nfunction DayGridCreation(dragHandler, view, controller, options) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {DayGridCreationGuide}\n */\n this.guide = new DayGridCreationGuide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(view.container, 'dblclick', this._onDblClick, this);\n }\n}\n\n/**\n * Destroy method\n */\nDayGridCreation.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (this.view && this.view.container) {\n domevent.off(this.view.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.view = this.controller = this.getScheduleDataFunc = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nDayGridCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target).trim();\n var excludeTarget = true;\n var matches, schedulesElement;\n\n if (domutil.closest(target, config.classname('.weekday-exceed-in-week'))\n || domutil.closest(target, config.classname('.weekday-collapse-btn'))\n ) {\n return false;\n }\n\n if (domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget)) {\n return false;\n }\n\n schedulesElement = domutil.closest(target, config.classname('.weekday-schedules'));\n if (!schedulesElement && cssClass !== config.classname('weekday-schedules')) {\n return false;\n }\n\n target = schedulesElement ? schedulesElement.parentNode : target.parentNode;\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * Request schedule model creation to controller by custom schedules.\n * @fires {DayGridCreation#beforeCreateSchedule}\n * @param {object} scheduleData - schedule data from DayGridCreation module.\n */\nDayGridCreation.prototype._createSchedule = function(scheduleData) {\n var dateRange = scheduleData.range,\n startXIndex = scheduleData.dragStartXIndex,\n xIndex = scheduleData.xIndex,\n start, end;\n\n // when inverse start, end then change it.\n if (xIndex < startXIndex) {\n startXIndex = xIndex + startXIndex;\n xIndex = startXIndex - xIndex;\n startXIndex = startXIndex - xIndex;\n }\n\n start = new TZDate(dateRange[startXIndex]);\n end = datetime.end(dateRange[xIndex]);\n\n /**\n * @event {DayGridCreation#beforeCreateSchedule}\n * @type {object}\n * @property {string} category - schedule category\n * @property {boolean} isAllDay - whether schedule is fired in view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {DayGridCreationGuide} guide - DayGridCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n category: this.view.options.viewName,\n isAllDay: true,\n start: start,\n end: end,\n guide: this.guide,\n triggerEventName: scheduleData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler method.\n * @emits DayGridCreation#dragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler schedule data.\n */\nDayGridCreation.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n\n scheduleData = getScheduleDataFunc(dragStartEventData.originEvent);\n\n /**\n * @event DayGridCreation#dragstart\n * @type {object}\n * @property {DayGridView} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridCreation#drag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nDayGridCreation.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent);\n\n /**\n * @event DayGridCreation#drag\n * @type {object}\n * @property {DayGridView} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('drag', scheduleData);\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridCreation#dragend\n * @param {object} dragEndEventData - Drag#dragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n */\nDayGridCreation.prototype._onDragEnd = function(dragEndEventData, overrideEventName) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n var scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\n this._createSchedule(scheduleData);\n\n /**\n * @event DayGridCreation#dragend\n * @type {object}\n * @property {DayGridView} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridCreation#click\n * @param {object} clickEventData - Drag#click event handler data.\n */\nDayGridCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target) || this._disableClick) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, clickEventData.originEvent);\n scheduleData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('click', scheduleData);\n self._createSchedule(scheduleData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Dblclick event handler method.\n * @emits DayGridCreation#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridCreation.prototype._onDblClick = function(clickEventData) {\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target)) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, clickEventData);\n scheduleData = getScheduleDataFunc(clickEventData);\n\n this.fire('click', scheduleData);\n\n this._createSchedule(scheduleData);\n\n this._requestOnClick = false;\n};\n\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nDayGridCreation.prototype.invokeCreationClick = function(schedule) {\n var getScheduleDataFunc, scheduleData;\n\n getScheduleDataFunc = this._retriveScheduleDataFromDate(this.view, schedule.start);\n scheduleData = getScheduleDataFunc(schedule.start);\n\n this.fire('click', scheduleData);\n\n this._createSchedule(scheduleData);\n};\n\ncommon.mixin(dayGridCore, DayGridCreation);\nutil.CustomEvents.mixin(DayGridCreation);\n\nmodule.exports = DayGridCreation;\n","/**\n * @fileoverview Guide element for DayGrid.Creation\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * Class for DayGrid.Creation dragging effect.\n * @constructor\n * @param {DayGridCreation} creation - instance of DayGridCreation.\n */\nfunction DayGridCreationGuide(creation) {\n /**\n * @type {DayGridCreation}\n */\n this.creation = creation;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = document.createElement('div');\n\n this.initializeGuideElement();\n this.applyTheme(creation.controller.theme);\n\n creation.on({\n dragstart: this._createGuideElement,\n drag: this._onDrag,\n click: this._createGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.creation.off(this);\n this.creation = this.scheduleContainer = this.guideElement = null;\n};\n\n/**\n * initialize guide element's default style.\n */\nDayGridCreationGuide.prototype.initializeGuideElement = function() {\n domutil.addClass(this.guideElement, config.classname('daygrid-guide-creation-block'));\n};\n\n/**\n * Drag event handler\n * @param {object} scheduleData - schedule data from DayGrid.Creation handler.\n */\nDayGridCreationGuide.prototype._onDrag = function(scheduleData) {\n this._refreshGuideElement(scheduleData, true);\n};\n\n/**\n * Get element width based on narrowWeekend\n * @param {number} dragStartIndex - grid start index\n * @param {number} dragEndIndex - grid end index\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nDayGridCreationGuide.prototype._getGuideWidth = function(dragStartIndex, dragEndIndex, grids) {\n var width = 0;\n var i = dragStartIndex;\n for (; i <= dragEndIndex; i += 1) {\n width += grids[i] ? grids[i].width : 0;\n }\n\n return width;\n};\n\n/**\n * Refresh guide element.\n * @param {object} scheduleData - schedule data from DayGrid.Creation handler.\n * @param {boolean} defer - If set to true, set style in the next frame\n */\nDayGridCreationGuide.prototype._refreshGuideElement = function(scheduleData, defer) {\n var guideElement = this.guideElement,\n data = scheduleData,\n dragStartXIndex = data.dragStartXIndex < data.xIndex ? data.dragStartXIndex : data.xIndex,\n dragEndXIndex = data.dragStartXIndex < data.xIndex ? data.xIndex : data.dragStartXIndex,\n leftPercent,\n widthPercent;\n\n leftPercent = data.grids[dragStartXIndex] ? data.grids[dragStartXIndex].left : 0;\n widthPercent = this._getGuideWidth(dragStartXIndex, dragEndXIndex, data.grids);\n\n /** eslint-disable require-jsdoc */\n function setStyle() {\n guideElement.style.display = 'block';\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n }\n\n if (defer) {\n reqAnimFrame.requestAnimFrame(setStyle);\n } else {\n setStyle();\n }\n};\n\n/**\n * Clear guide element.\n */\nDayGridCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement;\n\n domutil.remove(guideElement);\n\n guideElement.style.display = 'none';\n guideElement.style.left = '';\n guideElement.style.width = '';\n};\n\n/**\n * Create guide element\n * @param {object} dragStartEventData - schedule data object of DayGrid.Creation.\n */\nDayGridCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var creation = this.creation,\n view = creation.view,\n container = view.container,\n scheduleContainer = domutil.find(config.classname('.weekday-grid'), container);\n\n scheduleContainer.appendChild(this.guideElement);\n this._refreshGuideElement(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - event data object of DayGrid.Creation.\n */\nDayGridCreationGuide.prototype._onDrag = function(dragEventData) {\n this._refreshGuideElement(dragEventData);\n};\n\nDayGridCreationGuide.prototype.applyTheme = function(theme) {\n var style = this.guideElement.style;\n\n style.backgroundColor = theme.common.creationGuide.backgroundColor;\n style.border = theme.common.creationGuide.border;\n};\n\nmodule.exports = DayGridCreationGuide;\n","/**\n * @fileoverview Move handler for DayGrid view.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar dayGridCore = require('./core');\nvar DayGridMoveGuide = require('./moveGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CustomEvents\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {DayGrid} view - view instance.\n * @param {Base} controller - Base controller instance.\n */\nfunction DayGridMove(dragHandler, view, controller) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\n\n /**\n * Temporary variable for dragstart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {DayGridMoveGuide}\n */\n this.guide = new DayGridMoveGuide(this);\n}\n\nDayGridMove.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.view = this.controller =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|DayGridSchedule} return DayGridSchedule view instance when satiate condition.\n */\nDayGridMove.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n parentView,\n matches;\n\n if (~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n parentView = domutil.closest(target, config.classname('.weekday'));\n\n if (!parentView) {\n return false;\n }\n\n cssClass = domutil.getClass(parentView);\n matches = cssClass.match(config.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler method.\n * @emits DayGridMove#dragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler event data.\n */\nDayGridMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.controller,\n excludeTarget = true,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget);\n if (!scheduleBlockElement) {\n return;\n }\n\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event DayGridMove#dragstart\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridMove#drag\n * @param {object} dragEventData - Drag#drag event handler eventdata.\n */\nDayGridMove.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @schedule DayGridMove#drag\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('drag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule model to base controller.\n * @fires DayGridMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from DayGridMove handler module.\n */\nDayGridMove.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newStarts = new TZDate(schedule.start),\n newEnds = new TZDate(schedule.end);\n\n newStarts = newStarts.addDate(dateOffset);\n newEnds = newEnds.addDate(dateOffset);\n\n /**\n * @event DayGridMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: {\n start: newStarts,\n end: newEnds\n },\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridMove#dragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nDayGridMove.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event DayGridMove#dragend\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridMove#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridMove.prototype._onClick = function(clickEventData) {\n /**\n * @event DayGridMove#click\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'click', true);\n};\n\ncommon.mixin(dayGridCore, DayGridMove);\nutil.CustomEvents.mixin(DayGridMove);\n\nmodule.exports = DayGridMove;\n","/**\n * @fileoverview Effect module for DayGrid.Move\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * Class for DayGrid.Move dragging effect.\n * @constructor\n * @param {DayGridMove} daygridMove - instance of DayGridMove.\n */\nfunction DayGridMoveGuide(daygridMove) {\n /**\n * @type {DayGridMove}\n */\n this.daygridMove = daygridMove;\n\n /**\n * The element that actually contains the event element\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {number}\n */\n this._dragStartXIndex = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n daygridMove.on({\n 'dragstart': this._onDragStart,\n 'drag': this._onDrag,\n 'dragend': this._clearGuideElement,\n 'click': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.daygridMove.off(this);\n this.daygridMove = this.scheduleContainer = this._dragStartXIndex =\n this.elements = this.guideElement = null;\n};\n\n/**\n * Clear guide element.\n */\nDayGridMoveGuide.prototype._clearGuideElement = function() {\n this._showOriginScheduleBlocks();\n\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._dragStartXIndex = this.getScheduleDataFunc = this.guideElement = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nDayGridMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n var scheduleBlocks = domutil.find(\n config.classname('.weekday-schedule-block'),\n this.daygridMove.view.container,\n true\n );\n\n this.elements = util.filter(scheduleBlocks, function(schedule) {\n return domutil.getData(schedule, 'id') === modelID;\n });\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nDayGridMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\n/**\n * Highlight element blocks\n * @param {Schedule} model - model\n * @param {HTMLElement} parent - parent element\n */\nDayGridMoveGuide.prototype._highlightScheduleBlocks = function(model, parent) {\n var elements = domutil.find(config.classname('.weekday-schedule'), parent, true);\n\n util.forEach(elements, function(el) {\n el.style.margin = '0';\n\n if (!model.isFocused) {\n el.style.backgroundColor = model.dragBgColor;\n el.style.borderLeftColor = model.borderColor;\n el.style.color = '#ffffff';\n }\n });\n};\n\n/**\n * Refresh guide element.\n * @param {number} leftPercent - left percent of guide element.\n * @param {number} widthPercent - width percent of guide element.\n * @param {boolean} isExceededLeft - schedule start is faster then render start date?\n * @param {boolean} isExceededRight - schedule end is later then render end date?\n */\nDayGridMoveGuide.prototype.refreshGuideElement = function(leftPercent, widthPercent, isExceededLeft, isExceededRight) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n\n if (isExceededLeft) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-left'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-left'));\n }\n\n if (isExceededRight) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-right'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-right'));\n }\n });\n};\n\n/**\n * Get schedule block information from schedule data.\n *\n * For example, there is single schedule has 10 length. but render range in view is 5 then\n * rendered block must be cut out to render properly. in this case, this method return\n * how many block are cut before rendering.\n *\n * @param {object} dragStartEventData - schedule data from DayGrid.Move handler.\n * @returns {function} function that return schedule block information.\n */\nDayGridMoveGuide.prototype._getScheduleBlockDataFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n datesInRange = dragStartEventData.datesInRange,\n range = dragStartEventData.range,\n baseWidthPercent = (100 / datesInRange),\n originScheduleStarts = datetime.start(model.start),\n originScheduleEnds = datetime.end(model.end),\n renderStartDate = datetime.start(range[0]),\n renderEndDate = datetime.end(range[range.length - 1]),\n fromLeft = Math.ceil((originScheduleStarts.getTime() -\n renderStartDate.getTime()) / datetime.MILLISECONDS_PER_DAY) || 0,\n fromRight = Math.ceil((originScheduleEnds.getTime() -\n renderEndDate.getTime()) / datetime.MILLISECONDS_PER_DAY) || 0;\n\n return function(indexOffset) {\n return {\n baseWidthPercent: baseWidthPercent,\n fromLeft: fromLeft + indexOffset,\n fromRight: fromRight + indexOffset\n };\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nDayGridMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var container = this.daygridMove.view.container,\n guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n this._hideOriginScheduleBlocks(String(dragStartEventData.model.cid()));\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), container);\n domutil.appendHTMLElement('div', guideElement, config.classname('weekday-schedule-cover'));\n scheduleContainer.appendChild(guideElement);\n\n this._dragStartXIndex = dragStartEventData.xIndex;\n this.getScheduleDataFunc = this._getScheduleBlockDataFunc(dragStartEventData);\n\n this._highlightScheduleBlocks(dragStartEventData.model, guideElement);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nDayGridMoveGuide.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStartXIndex = this._dragStartXIndex,\n datesInRange = dragEventData.datesInRange,\n grids = dragEventData.grids,\n scheduleData,\n isExceededLeft,\n isExceededRight,\n originLength,\n leftIndex,\n size,\n newLeft,\n newWidth;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.xIndex - dragStartXIndex);\n isExceededLeft = scheduleData.fromLeft < 0;\n isExceededRight = scheduleData.fromRight > 0;\n\n leftIndex = Math.max(0, scheduleData.fromLeft);\n originLength = (scheduleData.fromLeft * -1) + (datesInRange + scheduleData.fromRight);\n size = isExceededLeft ? (originLength + scheduleData.fromLeft) : originLength;\n size = isExceededRight ? (size - scheduleData.fromRight) : size;\n\n newLeft = grids[leftIndex] ? grids[leftIndex].left : 0;\n newWidth = getScheduleBlockWidth(leftIndex, size, grids);\n\n this.refreshGuideElement(newLeft, newWidth, isExceededLeft, isExceededRight);\n};\n\n/**\n * Get schedule width based on grids\n * @param {number} left - left index\n * @param {number} size - schedule width\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getScheduleBlockWidth(left, size, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n for (; i < size; i += 1) {\n left = (left + i) % length;\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nmodule.exports = DayGridMoveGuide;\n","/**\n * @fileoverview Resize handler module for DayGrid view.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar common = require('../../common/common');\nvar dayGridCore = require('./core');\nvar DayGridResizeGuide = require('./resizeGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - view instance.\n * @param {Base} [controller] - Base controller instance.\n */\nfunction DayGridResize(dragHandler, view, controller) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\n\n /**\n * Temporary variable for dragStart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {DayGridResizeGuide}\n */\n this.guide = new DayGridResizeGuide(this);\n}\n\n/**\n * Destroy method\n */\nDayGridResize.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.view = this.controller =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nDayGridResize.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (!~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n target = domutil.closest(target, config.classname('.weekday'));\n\n if (!target) {\n return false;\n }\n\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler.\n * @emits DayGridResize#dragstart\n * @param {object} dragStartEventData - schedule data.\n */\nDayGridResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.controller,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event DayGridResize#dragstart\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridResize#drag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nDayGridResize.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @event DayGridResize#drag\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('drag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule instance to base controller.\n * @fires DayGridResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from DayGridResize handler.\n */\nDayGridResize.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newEnds = new TZDate(schedule.end);\n var changes;\n\n newEnds = newEnds.addDate(dateOffset);\n newEnds = new TZDate(common.maxDate(datetime.end(schedule.start), newEnds));\n\n changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnds}\n );\n\n /**\n * @event DayGridResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridResize#dragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nDayGridResize.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event DayGridResize#dragend\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridResize#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridResize.prototype._onClick = function(clickEventData) {\n /**\n * @event DayGridResize#click\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'click', true);\n};\n\ncommon.mixin(dayGridCore, DayGridResize);\nutil.CustomEvents.mixin(DayGridResize);\n\nmodule.exports = DayGridResize;\n","/**\n * @fileoverview Resize Guide module.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * @constructor\n * @param {DayGridResize} resizeHandler - instance of DayGridResize\n */\nfunction DayGridResizeGuide(resizeHandler) {\n /**\n * @type {DayGridResize}\n */\n this.resizeHandler = resizeHandler;\n\n /**\n * The element that actually contains the event element\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.scheduleBlockElement = null;\n\n resizeHandler.on({\n 'dragstart': this._onDragStart,\n 'drag': this._onDrag,\n 'dragend': this._clearGuideElement,\n 'click': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.resizeHandler.off(this);\n this.resizeHandler = this.scheduleContainer = this.getScheduleDataFunc =\n this.guideElement = this.scheduleBlockElement = null;\n};\n\n/**\n * Clear guide element.\n */\nDayGridResizeGuide.prototype._clearGuideElement = function() {\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n\n if (this.scheduleBlockElement) {\n domutil.removeClass(this.scheduleBlockElement, config.classname('weekday-schedule-block-dragging-dim'));\n }\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Refresh guide element\n * @param {number} newWidth - new width percentage value to resize guide element.\n */\nDayGridResizeGuide.prototype.refreshGuideElement = function(newWidth) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.width = newWidth + '%';\n });\n};\n\n/**\n * Return function that calculate guide element's new width percentage value.\n * @param {object} dragStartEventData - dragstart schedule data.\n * @returns {function} return function that calculate guide element new width percentage.\n */\nDayGridResizeGuide.prototype.getGuideElementWidthFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n viewOptions = this.resizeHandler.view.options,\n fromLeft = Math.ceil(\n (model.start - viewOptions.renderStartDate) / datetime.MILLISECONDS_PER_DAY\n ) || 0,\n grids = dragStartEventData.grids;\n\n return function(xIndex) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n width += grids[fromLeft] ? grids[fromLeft].width : 0;\n\n for (; i < length; i += 1) {\n if (i > fromLeft && i <= xIndex) {\n width += grids[i] ? grids[i].width : 0;\n }\n }\n\n return width;\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nDayGridResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var container = this.resizeHandler.view.container,\n scheduleBlockElement = this.scheduleBlockElement = dragStartEventData.scheduleBlockElement,\n guideElement = this.guideElement = scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), container);\n domutil.addClass(guideElement, config.classname('daygrid-guide-move'));\n domutil.addClass(scheduleBlockElement, config.classname('weekday-schedule-block-dragging-dim'));\n\n scheduleContainer.appendChild(guideElement);\n\n this.getScheduleDataFunc = this.getGuideElementWidthFunc(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nDayGridResizeGuide.prototype._onDrag = function(dragEventData) {\n var func = this.getScheduleDataFunc;\n\n if (!func) {\n return;\n }\n\n this.refreshGuideElement(func(dragEventData.xIndex));\n};\n\nmodule.exports = DayGridResizeGuide;\n","/**\n * @fileoverview Drag handler for calendar.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar domevent = require('../common/domevent');\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {object} options - options for drag handler\n * @param {number} [options.distance=10] - distance in pixels after mouse must move before dragging should start\n * @param {function} [options.exclude] - filter function for don't fire drag events that specific conditions.\n * @param {HTMLElement} container element to watching drag interaction.\n */\nfunction Drag(options, container) {\n domevent.on(container, 'mousedown', this._onMouseDown, this);\n\n this.options = util.extend({\n distance: 10,\n exclude: null\n }, options);\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * Flag for represent current dragging session has been cancelled for exclude option.\n * @type {boolean}\n */\n this._cancelled = false;\n\n /**\n * @type {boolean}\n */\n this._isMoved = false;\n\n /**\n * dragging distance in pixel between mousedown and firing dragStart events\n * @type {number}\n */\n this._distance = 0;\n\n /**\n * @type {boolean}\n */\n this._dragStartFired = false;\n\n /**\n * @type {object}\n */\n this._dragStartEventData = null;\n}\n\n/**\n * Destroy method.\n */\nDrag.prototype.destroy = function() {\n domevent.off(this.container, 'mousedown', this._onMouseDown, this);\n this._isMoved = null;\n this.container = null;\n};\n\n/**\n * Clear cache data for single dragging session.\n */\nDrag.prototype._clearData = function() {\n this._cancelled = false;\n this._distance = 0;\n this._isMoved = false;\n this._dragStartFired = false;\n this._dragStartEventData = null;\n};\n\n/**\n * Toggle events for mouse dragging.\n * @param {boolean} toBind - bind events related with dragging when supplied \"true\"\n */\nDrag.prototype._toggleDragEvent = function(toBind) {\n var container = this.container,\n domMethod,\n method;\n\n if (toBind) {\n domMethod = 'on';\n method = 'disable';\n } else {\n domMethod = 'off';\n method = 'enable';\n }\n\n domutil[method + 'TextSelection'](container);\n domutil[method + 'ImageDrag'](container);\n domevent[domMethod](global.document, {\n mousemove: this._onMouseMove,\n mouseup: this._onMouseUp\n }, this);\n};\n\n/**\n * Normalize mouse event object.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {object} normalized mouse event data.\n */\nDrag.prototype._getEventData = function(mouseEvent) {\n return {\n target: mouseEvent.target || mouseEvent.srcElement,\n originEvent: mouseEvent\n };\n};\n\n/**\n * MouseDown DOM event handler.\n * @param {MouseEvent} mouseDownEvent MouseDown event object.\n */\nDrag.prototype._onMouseDown = function(mouseDownEvent) {\n var opt = this.options,\n target = (mouseDownEvent.srcElement || mouseDownEvent.target);\n\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n if (opt.exclude && opt.exclude(target)) {\n this._cancelled = true;\n\n return;\n }\n\n this._clearData();\n this._dragStartEventData = this._getEventData(mouseDownEvent);\n\n this._toggleDragEvent(true);\n\n /**\n * mousedown event for firefox bug. cancelable.\n * @event Drag#mouseDown\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('mousedown', this._dragStartEventData);\n};\n\n/**\n * MouseMove DOM event handler.\n * @emits Drag#drag\n * @emits Drag#dragStart\n * @param {MouseEvent} mouseMoveEvent MouseMove event object.\n */\nDrag.prototype._onMouseMove = function(mouseMoveEvent) {\n var distance;\n\n if (this._cancelled) {\n this._clearData();\n\n return;\n }\n\n distance = this.options.distance;\n // prevent automatic scrolling.\n domevent.preventDefault(mouseMoveEvent);\n\n if (this._distance < distance) {\n this._distance += 1;\n\n return;\n }\n this._isMoved = true;\n\n if (!this._dragStartFired) {\n this._dragStartFired = true;\n\n /**\n * Drag start events. cancelable.\n * @event Drag#dragStart\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n if (!this.invoke('dragStart', this._dragStartEventData)) {\n this._toggleDragEvent(false);\n this._clearData();\n\n return;\n }\n }\n\n /**\n * CalEvents while dragging.\n * @event Drag#drag\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('drag', this._getEventData(mouseMoveEvent));\n};\n\n/**\n * MouseUp DOM event handler.\n * @param {MouseEvent} mouseUpEvent MouseUp event object.\n * @emits Drag#dragEnd\n * @emits Drag#click\n */\nDrag.prototype._onMouseUp = function(mouseUpEvent) {\n if (this._cancelled) {\n return;\n }\n\n this._toggleDragEvent(false);\n\n // emit \"click\" event when not emitted drag event between mousedown and mouseup.\n if (this._isMoved) {\n this._isMoved = false;\n /**\n * Drag end events.\n * @event Drag#dragEnd\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('dragEnd', this._getEventData(mouseUpEvent));\n } else {\n /**\n * Click events.\n * @event Drag#click\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('click', this._getEventData(mouseUpEvent));\n }\n\n this._clearData();\n};\n\nutil.CustomEvents.mixin(Drag);\n\nmodule.exports = Drag;\n","/**\n * @fileoverview Click handler for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Month} [monthView] - Month view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction MonthClick(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.monthView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * @fires MonthClick#clickMore\n * @param {object} clickEvent - click event object\n */\nMonthClick.prototype._onClick = function(clickEvent) {\n var self = this,\n moreElement,\n scheduleCollection = this.baseController.schedules,\n blockElement = domutil.closest(clickEvent.target, config.classname('.weekday-schedule-block'))\n || domutil.closest(clickEvent.target, config.classname('.month-more-schedule'));\n\n moreElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-exceed-in-month')\n );\n\n if (moreElement) {\n self.fire('clickMore', {\n date: datetime.parse(domutil.getData(moreElement, 'ymd')),\n target: moreElement,\n ymd: domutil.getData(moreElement, 'ymd')\n });\n }\n\n if (blockElement) {\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events AlldayClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(MonthClick);\n\nmodule.exports = MonthClick;\n","/**\n * @fileoverview Module for calculate date by month view and mouse event object\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent');\nvar mfloor = Math.floor;\n\n/**\n * Get high order function that can calc date in mouse point\n * @param {Month} monthView - month view\n * @returns {function} function return event data by mouse event object\n */\nfunction getMousePosDate(monthView) {\n var weekColl = monthView.children,\n weeks = weekColl.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n }),\n weekCount = weekColl.length,\n days = weekColl.single().getRenderDateRange(),\n dayCount = days.length,\n relativeContainer = util.pick(monthView.vLayout.panels[1], 'container'),\n size = domutil.getSize(relativeContainer),\n grids = monthView.grids;\n\n /**\n * Get the left index\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\n function getX(left) {\n var i = 0;\n var length = grids.length;\n var grid;\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return left < 0 ? -1 : i;\n }\n\n /**\n * Get date related with mouse event object\n * @param {object} mouseEvent - click event data\n * @returns {object} data related with mouse event\n */\n function getDate(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, relativeContainer),\n x = getX(common.ratio(size[0], 100, pos[0])),\n y = mfloor(common.ratio(size[1], weekCount, pos[1])),\n weekdayView,\n date,\n dateRange;\n\n if (y < 0) {\n y = 0;\n }\n if (y >= weeks.length) {\n y = weeks.length - 1;\n }\n\n weekdayView = util.pick(weeks, y);\n\n if (!weekdayView) {\n return null;\n }\n\n dateRange = weekdayView.getRenderDateRange();\n if (x < 0) {\n x = 0;\n }\n if (x >= dateRange.length) {\n x = dateRange.length - 1;\n }\n\n date = util.pick(dateRange, x);\n\n if (!date) {\n return null;\n }\n\n return {\n x: x,\n y: y,\n sizeX: dayCount,\n sizeY: weekCount,\n date: date,\n weekdayView: weekdayView,\n triggerEvent: mouseEvent.type\n };\n }\n\n return getDate;\n}\n\nmodule.exports = getMousePosDate;\n","/**\n * @fileoverview Creation handler for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar array = require('../../common/array');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar getMousePosDate = require('./core');\nvar Guide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n * @param {Options} [options] - calendar Options\n */\nfunction MonthCreation(dragHandler, monthView, baseController, options) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * Cache for dragging session\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthCreationGuide}\n */\n this.guide = new Guide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(monthView.container, 'dblclick', this._onDblClick, this);\n }\n}\n\n/**\n * Destructor\n */\nMonthCreation.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.guide.destroy();\n\n if (this.monthView && this.monthView.container) {\n domevent.off(this.monthView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.monthView = this.baseController =\n this.getScheduleData = this._cache = this.guide = null;\n};\n\n/**\n * Fire before create schedule\n * @fires {MonthCreation#beforeCreateSchedule}\n * @param {object} eventData - cache data from single dragging session\n */\nMonthCreation.prototype._createSchedule = function(eventData) {\n /**\n * @event {MonthCreation#beforeCreateSchedule}\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: eventData.isAllDay,\n start: eventData.start,\n end: eventData.end,\n guide: this.guide.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {object} dragStartEvent - dragStart event data\n */\nMonthCreation.prototype._onDragStart = function(dragStartEvent) {\n var eventData;\n\n if (!isElementWeekdayGrid(dragStartEvent.target)) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosDate(this.monthView);\n\n eventData = this.getScheduleData(dragStartEvent.originEvent);\n\n this._cache = {\n start: new TZDate(eventData.date)\n };\n\n /**\n * @event {MonthCreation#monthCreationDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragstart', eventData);\n};\n\n/**\n * Drag event handler\n * @fires {MonthCreation#monthCreationDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthCreation.prototype._onDrag = function(dragEvent) {\n var eventData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEvent.originEvent);\n\n if (!eventData) {\n return;\n }\n\n /**\n * @event {MonthCreation#monthCreationDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDrag', eventData);\n};\n\n/**\n * DragEnd event handler\n * @fires {MonthCreation#monthCreationDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthCreation.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var eventData;\n var times;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (eventData) {\n cache.end = new TZDate(eventData.date);\n cache.isAllDay = true;\n\n times = [\n cache.start,\n cache.end\n ].sort(array.compare.num.asc);\n\n cache.start = new TZDate(times[0]);\n cache.end = datetime.end(times[1]);\n\n this._createSchedule(cache);\n }\n\n /**\n * @event {MonthCreation#monthCreationDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragend', eventData);\n\n this.getScheduleData = this._cache = null;\n};\n\n/**\n * Dblclick event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onDblClick = function(e) {\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target)) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e);\n\n this.fire('monthCreationClick', eventData);\n\n range = this._adjustStartAndEndTime(new TZDate(eventData.date), new TZDate(eventData.date));\n\n this._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n\n this._requestOnClick = false;\n};\n\n/**\n * Click event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onClick = function(e) {\n var self = this;\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target) || this._disableClick) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('monthCreationClick', eventData);\n\n range = self._adjustStartAndEndTime(new TZDate(eventData.date), new TZDate(eventData.date));\n\n self._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Adjust time to our o'clock\n * @param {TZDate} start - start time\n * @param {TZDate} end - end time\n * @returns {Object} start and end\n */\nMonthCreation.prototype._adjustStartAndEndTime = function(start, end) {\n var now = new TZDate();\n var hours = now.getHours();\n var minutes = now.getMinutes();\n\n // adjust start to less time. Adjusting had been greater time in monthly view when clicking grid\n if (minutes <= 30) {\n minutes = 0;\n } else {\n minutes = 30;\n }\n start.setHours(hours, minutes, 0, 0);\n end.setHours(hours + 1, minutes, 0, 0);\n\n return {\n start: start,\n end: end\n };\n};\n\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nMonthCreation.prototype.invokeCreationClick = function(schedule) {\n var eventData = {\n model: schedule\n };\n\n this.fire('monthCreationClick', eventData);\n\n this._createSchedule({\n start: schedule.start,\n end: schedule.end,\n isAllDay: schedule.isAllDay,\n triggerEvent: 'manual'\n });\n};\n\n/**\n * Returns whether the given element is Weekday-Schedule.\n * @param {HTMLElement} el - target element\n * @returns {boolean}\n */\nfunction isElementWeekdayGrid(el) {\n return domutil.closest(el, config.classname('.weekday-grid'))\n && !domutil.closest(el, config.classname('.weekday-exceed-in-month'));\n}\n\nutil.CustomEvents.mixin(MonthCreation);\n\nmodule.exports = MonthCreation;\n","/**\n * @fileoverview Creation guide module for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthCreation} monthCreation - instance of MonthCreation\n */\nfunction MonthCreationGuide(monthCreation) {\n /**\n * @type {MonthCreation}\n */\n this.monthCreation = monthCreation;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthCreation.on({\n monthCreationDragstart: this._createGuideElement,\n monthCreationDrag: this._onDrag,\n monthCreationDragend: this._onDragEnd,\n monthCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthCreationGuide.prototype.destroy = function() {\n this.monthCreation.off(this);\n\n if (this.guide) {\n this.guide.destroy();\n }\n\n this.guide = this.monthCreation = null;\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._createGuideElement = function(dragStartEvent) {\n var options = {\n isCreationMode: true,\n height: '100%',\n top: 0\n };\n\n this.guide = new MonthGuide(options, this.monthCreation.monthView);\n this.guide.start(dragStartEvent);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthCreationGuide.prototype._onDragEnd = function() {\n // Do nothing. User calls destroy directly.\n this.guide = null;\n};\n\nmodule.exports = MonthCreationGuide;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, alias2=container.lambda;\n\n return \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.isAllDay : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.program(6, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":12},\"end\":{\"line\":13,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
     
    \\n
    \\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"allday-tmpl\"]||(depth0 && depth0[\"allday-tmpl\"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":16},\"end\":{\"line\":10,\"column\":38}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"time-tmpl\"]||(depth0 && depth0[\"time-tmpl\"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":16},\"end\":{\"line\":12,\"column\":36}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.isCreationMode : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":17,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Guide element controller for creation, resize in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n TZDate = require('../../common/timezone').Date,\n tmpl = require('./guide.hbs');\nvar mmax = Math.max,\n mmin = Math.min,\n mabs = Math.abs,\n mfloor = Math.floor;\n\n/**\n * @constructor\n * @param {object} [options] - options\n * @param {boolean} [options.useHandle=false] - whether displaying resize handle on\n * guide element?\n * @param {boolean} [options.isResizeMode=false] - whether resize mode?\n * @param {Month} monthView - Month view instance\n */\nfunction MonthGuide(options, monthView) {\n var self = this;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n top: 0,\n height: '20px',\n bgColor: '#f7ca88',\n label: 'New event',\n isResizeMode: false,\n isCreationMode: false,\n styles: this._getStyles(monthView.controller.theme)\n }, options);\n\n /**\n * @type {Month}\n */\n this.view = monthView;\n\n /**\n * @type {WeekdayInMonth[]}\n */\n this.weeks = monthView.children.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n });\n\n /**\n * @type {number}\n */\n this.days = monthView.children.single().getRenderDateRange().length;\n\n /**\n * @type {function}\n */\n this.ratio = util.bind(function(value) {\n return common.ratio(self.days, 100, value);\n });\n\n /**\n * start coordinate of guide effect. (x, y) (days, weeks) effect can't\n * start lower than this coordinate.\n * @type {number[]}\n */\n this.startCoord = [0, 0];\n\n /**\n * @type {Object.}\n */\n this.guideElements = {};\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = monthView.grids;\n}\n\n/**\n * Destructor\n */\nMonthGuide.prototype.destroy = function() {\n this.clear();\n\n this.options = this.view = this.weeks = this.days =\n this.ratio = this.startCoord = this.guideElements = null;\n};\n\nMonthGuide.prototype.clearGuideElement = function() {\n this.destroy();\n};\n\n/**\n * Get ratio value in week.\n * @param {number} value - value for calc ratio in week\n * @returns {number} percent value\n */\nMonthGuide.prototype._getRatioValueInWeek = function(value) {\n var grid = this.grids[value] || {left: 100};\n\n return grid.left;\n};\n\n/**\n * Create guide element\n * @returns {HTMLElement} guide element\n */\nMonthGuide.prototype._createGuideElement = function() {\n var guide = document.createElement('div');\n\n guide.innerHTML = tmpl(this.options);\n\n return guide.firstChild;\n};\n\n/**\n * Get guide element. if not exist then create one\n * @param {number} y - y coordinate\n * @returns {?HTMLElement} guide element\n */\nMonthGuide.prototype._getGuideElement = function(y) {\n var guideElements = this.guideElements,\n guide = guideElements[y],\n weekdayView = this.weeks[y],\n container;\n\n if (!weekdayView) {\n return null;\n }\n\n if (!guide) {\n guide = this._createGuideElement();\n container = weekdayView.container;\n container.appendChild(guide);\n guideElements[y] = guide;\n }\n\n return guide;\n};\n\n/**\n * Get coordinate by supplied date in month\n * @param {TZDate} date - date to find coordinate\n * @returns {number[]} coordinate (x, y)\n */\nMonthGuide.prototype._getCoordByDate = function(date) {\n var WEEKEND_DAYS = 2;\n var weeks = this.weeks;\n var isWorkWeek = this.view.options.workweek;\n var days = isWorkWeek ? this.days + WEEKEND_DAYS : this.days;\n\n var getIdxFromDiff = function(d1, d2) {\n return mfloor(datetime.millisecondsTo('day', mabs(d2 - d1)));\n },\n monthStart = datetime.start(weeks[0].options.renderStartDate),\n isBefore = date < monthStart,\n start = new TZDate(monthStart),\n end = new TZDate(monthStart).addDate(isBefore ? -days : days).addDate(-1),\n x = getIdxFromDiff(date, start),\n y = 0;\n\n while (!datetime.isBetweenWithDate(date, start, end)) {\n start.addDate(isBefore ? -days : days);\n end = new TZDate(start).addDate(days - 1);\n x = getIdxFromDiff(date, start);\n y += (isBefore ? -1 : 1);\n }\n\n return [x, y];\n};\n\n/**\n * Get limited coordinate by supplied coodinates\n * @param {number[]} coord - coordinate need to limit\n * @param {number[]} [min] - minimum limitaion of coordinate\n * @param {number[]} [max] - maximum limitation of coordinate\n * @returns {number[]} limited coordiate\n */\nMonthGuide.prototype._getLimitedCoord = function(coord, min, max) {\n var toIndex = 1,\n x = coord[0],\n y = coord[1],\n result;\n\n min = min || [0, 0];\n max = max || [this.days - toIndex, this.weeks.length - toIndex];\n\n if (y < min[1]) {\n result = min.slice(0);\n } else if (y > max[1]) {\n result = max.slice(0);\n } else {\n x = mmax(min[0], x);\n x = mmin(max[0], x);\n result = [x, y];\n }\n\n return result;\n};\n\n/**\n * Prepare guide element modification\n * @param {object} dragStartEvent - dragStart schedule data from *guide\n */\nMonthGuide.prototype.start = function(dragStartEvent) {\n var opt = this.options,\n target = dragStartEvent.target,\n model = dragStartEvent.model,\n x = dragStartEvent.x,\n y = dragStartEvent.y,\n renderMonth = new TZDate(this.view.options.renderMonth),\n temp;\n\n if (opt.isCreationMode) {\n if (model && !datetime.isSameMonth(renderMonth, model.start)) {\n model.start.setMonth(renderMonth.getMonth());\n model.start.setDate(1);\n model.end.setMonth(renderMonth.getMonth());\n model.end.setDate(1);\n }\n } else {\n temp = this._getCoordByDate(model.getStarts());\n x = temp[0];\n y = temp[1];\n\n util.extend(this.options, {\n top: parseInt(target.style.top, 10) + 'px',\n height: parseInt(target.style.height, 10) + 'px',\n label: model.title\n }, model);\n }\n\n if (util.isUndefined(x) || util.isUndefined(y)) {\n temp = this._getCoordByDate(model.getStarts());\n x = temp[0];\n y = temp[1];\n }\n\n this.startCoord = [x, y];\n this.update(x, y);\n};\n\n/**\n * Data for update several guide elements\n * @typedef UpdateIndication\n * @type {object}\n * @property {HTMLElement} guide - guide element\n * @property {number} left - left style value\n * @property {number} width - width style value\n * @property {boolean} [exceedL=false] - whether schedule is exceeded past weeks?\n * @property {boolean} [exceedR=false] - whether schedule is exceeded future weeks?\n */\n\n/**\n * Modify HTML element that uses for guide element\n * @param {UpdateIndication[]} inds - indication of update severel guide element\n */\nMonthGuide.prototype._updateGuides = function(inds) {\n util.forEach(inds, function(ind) {\n var guide = ind.guide,\n exceedLClass = config.classname('month-exceed-left'),\n exceedRClass = config.classname('month-exceed-right');\n\n guide.style.display = 'block';\n guide.style.left = ind.left + '%';\n guide.style.width = ind.width + '%';\n\n if (ind.exceedL) {\n domutil.addClass(guide, exceedLClass);\n } else {\n domutil.removeClass(guide, exceedLClass);\n }\n\n if (ind.exceedR) {\n domutil.addClass(guide, exceedRClass);\n } else {\n domutil.removeClass(guide, exceedRClass);\n }\n });\n};\n\n/**\n * Get guide element indicate for origin week\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getOriginIndicate = function(startCoord, mouseCoord) {\n var left = mmin(startCoord[0], mouseCoord[0]),\n right = mmax(startCoord[0], mouseCoord[0]) + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = startCoord[0];\n right = this.days;\n exceedR = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n left = 0;\n right = startCoord[0] + 1;\n exceedL = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for week related with mouse position\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getMouseIndicate = function(startCoord, mouseCoord) {\n var left = mouseCoord[0],\n right = mouseCoord[0] + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = 0;\n exceedL = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n right = this.days;\n exceedR = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for contained weeks\n * @returns {object} indicate\n */\nMonthGuide.prototype._getContainIndicate = function() {\n return {\n left: 0,\n width: 100,\n exceedL: true,\n exceedR: true\n };\n};\n\n/**\n * Remove several guide element that supplied by parameter\n * @param {number[]} yCoords - array of y coordinate to remove guide element\n */\nMonthGuide.prototype._removeGuideElements = function(yCoords) {\n var guides = this.guideElements;\n\n util.forEach(yCoords, function(y) {\n domutil.remove(guides[y]);\n delete guides[y];\n });\n};\n\n/**\n * Get excluded numbers in range\n * @param {number[]} range - the range. value must be sequencial.\n * @param {number[]} numbers - numbers to check\n * @returns {number[]} excluded numbers\n */\nMonthGuide.prototype._getExcludesInRange = function(range, numbers) {\n var min = mmin.apply(null, range),\n max = mmax.apply(null, range),\n excludes = [];\n\n util.forEach(numbers, function(num) {\n num = parseInt(num, 10);\n if (num < min || num > max) {\n excludes.push(num);\n }\n });\n\n return excludes;\n};\n\n/**\n * Update guide elements by coordinate in month grid from mousemove event\n * @param {number} x - x coordinate\n * @param {number} y - y coordinate\n */\nMonthGuide.prototype.update = function(x, y) {\n var self = this,\n startCoord = this.startCoord,\n mouseCoord = [x, y],\n limitedCoord = this.options.isResizeMode ?\n this._getLimitedCoord(mouseCoord, startCoord) : mouseCoord,\n renderedYIndex = util.keys(this.guideElements),\n yCoordsToUpdate = util.range(\n mmin(startCoord[1], limitedCoord[1]),\n mmax(startCoord[1], limitedCoord[1]) + 1\n ),\n yCoordsToRemove = this._getExcludesInRange(\n yCoordsToUpdate,\n renderedYIndex\n ),\n renderIndication = {};\n\n this._removeGuideElements(yCoordsToRemove);\n\n util.forEach(yCoordsToUpdate, function(guideYCoord) {\n var guide = self._getGuideElement(guideYCoord),\n indicate;\n\n if (!guide) {\n return;\n }\n\n if (guideYCoord === startCoord[1]) {\n indicate = self._getOriginIndicate(startCoord, limitedCoord);\n } else if (guideYCoord === mouseCoord[1]) {\n indicate = self._getMouseIndicate(startCoord, mouseCoord);\n } else {\n indicate = self._getContainIndicate();\n }\n\n renderIndication[guideYCoord] = util.extend({\n guide: guide\n }, indicate);\n });\n\n this._updateGuides(renderIndication);\n};\n\n/**\n * Clear all guide elements\n */\nMonthGuide.prototype.clear = function() {\n util.forEach(this.guideElements, function(element) {\n domutil.remove(element);\n });\n\n this.guideElements = {};\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMonthGuide.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.border = theme.common.creationGuide.border;\n styles.backgroundColor = theme.common.creationGuide.backgroundColor;\n styles.scheduleHeight = theme.month.schedule.height;\n styles.scheduleGutter = theme.month.schedule.marginTop;\n styles.marginLeft = theme.month.schedule.marginLeft;\n styles.marginRight = theme.month.schedule.marginRight;\n styles.borderRadius = theme.month.schedule.borderRadius;\n }\n\n return styles;\n};\n\nmodule.exports = MonthGuide;\n","/**\n * @fileoverview Move handler for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n getMousePosData = require('./core'),\n MonthMoveGuide = require('./moveGuide'),\n TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthMove(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthMoveGuide}\n */\n this.guide = new MonthMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthMove.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Update target schedule\n * @fires {MonthMove#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthMove.prototype.updateSchedule = function(scheduleCache) {\n var schedule = scheduleCache.model;\n var duration = schedule.duration();\n var startDateRaw = datetime.raw(schedule.start);\n var dragEndTime = new TZDate(scheduleCache.end);\n var newStartDate = new TZDate(dragEndTime);\n\n newStartDate.setHours(startDateRaw.h, startDateRaw.m, startDateRaw.s, startDateRaw.ms);\n\n /**\n * @event MonthMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: {\n start: newStartDate,\n end: new TZDate(newStartDate).addMilliseconds(duration)\n },\n start: newStartDate,\n end: new TZDate(newStartDate).addMilliseconds(duration)\n });\n};\n\n/**\n * Get schedule block to clone for month guide effect\n * @param {HTMLElement} target - target element that related with drag schedule\n * @returns {HTMLElement} element to create guide effect\n */\nMonthMove.prototype.getMonthScheduleBlock = function(target) {\n var blockSelector = config.classname('.weekday-schedule-block');\n\n return domutil.closest(target, blockSelector);\n};\n\n/**\n * Get schedule block from more layer\n * @param {HTMLElement} target - element to check\n * @returns {HTMLElement} schedule element\n */\nMonthMove.prototype.getMoreLayerScheduleBlock = function(target) {\n var className = config.classname('.month-more-schedule');\n\n return domutil.closest(target, className);\n};\n\n/**\n * Check handler has permission to handle fired schedule\n * @fires {MonthMove#monthMoveStart_from_morelayer}\n * @param {HTMLElement} target - target element of fired schedule\n * @returns {(string|null)} model instance ID related with schedule. if handle\n * has not permission to handle the schedule then return null.\n */\nMonthMove.prototype.hasPermissionToHandle = function(target) {\n var modelID = null;\n var blockElement;\n\n if (domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return null;\n }\n\n blockElement = this.getMonthScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n } else {\n blockElement = this.getMoreLayerScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n /**\n * Fire for notificate that the drag schedule start at more layer view.\n * @event {MonthMove#monthMoveStart_from_morelayer}\n */\n this.fire('monthMoveStart_from_morelayer');\n }\n }\n\n return modelID;\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthMove#monthMoveDragstart}\n * @param {object} dragStartEvent - drag start schedule data\n */\nMonthMove.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID = this.hasPermissionToHandle(target),\n model = this.baseController.schedules.items[modelID],\n scheduleData;\n\n if (!modelID || !model || model.isReadOnly || model.isPending) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.originEvent = dragStartEvent.originEvent;\n scheduleData.target = this.getMonthScheduleBlock(target);\n scheduleData.model = model;\n\n this._cache = {\n model: model,\n target: target,\n start: new TZDate(Number(scheduleData.date))\n };\n\n /**\n * @event {MonthMove#monthMoveDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthMoveDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthMove#monthMoveDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthMove.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = util.extend({\n originEvent: dragEvent.originEvent\n }, this.getScheduleData(dragEvent.originEvent));\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthMove#monthMoveDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDrag', scheduleData);\n};\n\n/**\n * Event handler for Drag#dragEnd\n * @fires {MonthMove#monthMoveDragend}\n * @param {object} dragEndEvent - dragend event data\n */\nMonthMove.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n cache.end = new TZDate(scheduleData.date);\n this.updateSchedule(cache);\n }\n\n /**\n * @event {MonthResize#monthMoveDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthMove);\n\nmodule.exports = MonthMove;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-left:3px solid \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n \";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":110},\"end\":{\"line\":16,\"column\":124}}}) : helper)))\n + \"weekday-schedule-title-focused\\\"\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"allday-tmpl\"]||(depth0 && depth0[\"allday-tmpl\"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":12},\"end\":{\"line\":18,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"time-tmpl\"]||(depth0 && depth0[\"time-tmpl\"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":12},\"end\":{\"line\":20,\"column\":33}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n\"\n + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":4},\"end\":{\"line\":15,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.program(9, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":17,\"column\":8},\"end\":{\"line\":21,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Module for modification of guide element for move in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent'),\n FloatingLayer = require('../../common/floatingLayer'),\n tmpl = require('./moveGuide.hbs'),\n Schedule = require('../../model/schedule');\n\n/**\n * @constructor\n * @param {MonthMove} monthMove - month/move module instance\n */\nfunction MonthMoveGuide(monthMove) {\n /**\n * @type {MonthMove}\n */\n this.monthMove = monthMove;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = null;\n\n monthMove.on({\n monthMoveDragstart: this._onDragStart,\n monthMoveDrag: this._onDrag,\n monthMoveDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthMoveGuide.prototype.destroy = function() {\n this.monthMove.off(this);\n this._clearGridBgColor();\n\n if (this.layer) {\n this.layer.destroy();\n }\n\n if (this.element) {\n domutil.remove(this.element);\n }\n\n this.monthMove = this.elements = this.layer = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthMove.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nMonthMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\n/**\n * Clear background color for filled grid element.\n */\nMonthMoveGuide.prototype._clearGridBgColor = function() {\n var selector = config.classname('.weekday-filled'),\n className = config.classname('weekday-filled'),\n beforeGridElement = domutil.find(selector,\n this.monthMove.monthView.container);\n\n if (beforeGridElement) {\n domutil.removeClass(beforeGridElement, className);\n }\n};\n\n/**\n * Fill background color of date grids relatied with model updates.\n * @param {object} dragEvent - drag event data from MonthMoveGuide#_onDrag\n */\nMonthMoveGuide.prototype._updateGridBgColor = function(dragEvent) {\n var gridElements = domutil.find(config.classname('.weekday-grid-line'), this.monthMove.monthView.container, true),\n className = config.classname('weekday-filled'),\n targetIndex = (dragEvent.x + (dragEvent.sizeX * dragEvent.y));\n\n this._clearGridBgColor();\n\n if (!gridElements || !gridElements[targetIndex]) {\n return;\n }\n\n domutil.addClass(gridElements[targetIndex], className);\n};\n\n/**\n * Handler for MonthMove#dragStart\n * @param {object} dragStartEvent - dragStart schedule data object\n */\nMonthMoveGuide.prototype._onDragStart = function(dragStartEvent) {\n var monthView = this.monthMove.monthView,\n firstWeekdayView = monthView.children.single(),\n weekdayOptions = firstWeekdayView.options,\n widthPercent = 100 / firstWeekdayView.getRenderDateRange().length,\n height = weekdayOptions.scheduleGutter + weekdayOptions.scheduleHeight,\n container = monthView.container,\n mousePos = domevent.getMousePosition(dragStartEvent.originEvent, container),\n model = dragStartEvent.model,\n layer = new FloatingLayer(null, container);\n\n this._hideOriginScheduleBlocks(model.cid());\n\n this.layer = layer;\n layer.setSize(widthPercent + '%', height);\n layer.setPosition(mousePos[0], mousePos[1]);\n layer.setContent(tmpl({\n model: util.extend(\n Schedule.create(model),\n model\n ),\n styles: {\n scheduleHeight: weekdayOptions.scheduleHeight,\n scheduleBulletTop: weekdayOptions.scheduleHeight / 3,\n borderRadius: monthView.controller.theme.month.schedule.borderRadius\n }\n }));\n layer.show();\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n};\n\n/**\n * Handler for MonthMove#drag\n * @param {object} dragEvent - drag event data object\n */\nMonthMoveGuide.prototype._onDrag = function(dragEvent) {\n var container = this.monthMove.monthView.container,\n mousePos = domevent.getMousePosition(\n dragEvent.originEvent,\n container\n );\n\n this._updateGridBgColor(dragEvent);\n\n if (!this.layer) {\n return;\n }\n\n this.layer.setPosition(mousePos[0], mousePos[1]);\n};\n\n/**\n * Handler for MonthMove#dragEnd\n */\nMonthMoveGuide.prototype._onDragEnd = function() {\n this._showOriginScheduleBlocks();\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._clearGridBgColor();\n this.layer.destroy();\n this.layer = null;\n};\n\nmodule.exports = MonthMoveGuide;\n","/**\n * @fileoverview Module for resize schedule in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n getMousePosData = require('./core'),\n MonthResizeGuide = require('./resizeGuide'),\n TZDate = require('../../common/timezone').Date;\n\nvar common = require('../../common/common');\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthResize(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthResizeGuide}\n */\n this.guide = new MonthResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthResize.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Fire event for update model\n * @fires {MonthResize#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthResize.prototype._updateSchedule = function(scheduleCache) {\n // You can not change the start date of the event. Only the end time can be changed.\n var newEnd = datetime.end(new TZDate(scheduleCache.end)),\n schedule = scheduleCache.schedule;\n var changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnd}\n );\n\n /**\n * @event MonthResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: new TZDate(schedule.getStarts()),\n end: newEnd\n });\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthResize#monthResizeDragstart}\n * @param {object} dragStartEvent - drag start event data\n */\nMonthResize.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID, schedule,\n scheduleData;\n\n if (!domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return;\n }\n\n target = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\n if (!target) {\n return;\n }\n\n modelID = domutil.getData(target, 'id');\n schedule = this.baseController.schedules.items[modelID];\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.target = target;\n scheduleData.model = schedule;\n\n this._cache = {\n schedule: schedule,\n target: target,\n start: new TZDate(scheduleData.date)\n };\n\n /**\n * @event {MonthCreation#monthResizeDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthResizeDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthResize.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEvent.originEvent);\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthResize#monthResizeDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDrag', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthResize.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var scheduleData;\n var start, end;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n start = new TZDate(cache.schedule.getStarts());\n end = new TZDate(scheduleData.date);\n cache.end = end;\n\n if (start <= cache.end) {\n this._updateSchedule(cache);\n }\n }\n\n /**\n * @event {MonthResize#monthResizeDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthResize);\n\nmodule.exports = MonthResize;\n","/**\n * @fileoverview Module for modification of guide element in schedule resize\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthResize} monthResize - month/resize module instance\n */\nfunction MonthResizeGuide(monthResize) {\n /**\n * @type {MonthResize}\n */\n this.monthResize = monthResize;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthResize.on({\n monthResizeDragstart: this._onDragStart,\n monthResizeDrag: this._onDrag,\n monthResizeDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthResizeGuide.prototype.destroy = function() {\n this.monthResize.off(this);\n this.guide.destroy();\n\n this.guide = this.monthResize = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthResizeGuide.prototype._hideScheduleBlocks = function(modelID) {\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthResize.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n el.style.display = 'none';\n });\n};\n\n/**\n * Show element blocks\n */\nMonthResizeGuide.prototype._showScheduleBlocks = function() {\n util.forEach(this.elements, function(el) {\n el.style.display = 'block';\n });\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthResize\n */\nMonthResizeGuide.prototype._onDragStart = function(dragStartEvent) {\n this.guide = new MonthGuide({\n isResizeMode: true\n }, this.monthResize.monthView);\n\n this.guide.start(dragStartEvent);\n\n this._hideScheduleBlocks(dragStartEvent.model.cid());\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - event data from MonthCreation\n */\nMonthResizeGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthResizeGuide.prototype._onDragEnd = function() {\n this._showScheduleBlocks();\n\n this.guide.destroy();\n this.elements = this.guide = null;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\nmodule.exports = MonthResizeGuide;\n","/**\n * @fileoverview Allday event click event hander module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeClick(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.timeGridView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nTimeClick.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits TimeClick#clickEvent\n */\nTimeClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n schedulesCollection = this.baseController.schedules;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n schedulesCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events TimeClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n};\n\nutil.CustomEvents.mixin(TimeClick);\n\nmodule.exports = TimeClick;\n","/**\n * @fileoverview Dayname click event hander module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayName} [dayNameView] - DayName view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction DayNameClick(dragHandler, dayNameView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {DayName}\n */\n this.dayNameView = dayNameView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayNameClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.dayNameView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nDayNameClick.prototype.checkExpectCondition = function(target) {\n var container = domutil.closest(target, config.classname('.dayname-date-area'));\n\n if (!container) {\n return false;\n }\n\n return true;\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits DayNameClick#clickDayname\n */\nDayNameClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n daynameView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.dayname'));\n\n if (!daynameView || !blockElement) {\n return;\n }\n\n /**\n * @events DayNameClick#clickDayname\n * @type {object}\n * @property {string} date - click date\n */\n self.fire('clickDayname', {\n date: domutil.getData(blockElement, 'date')\n });\n};\n\nutil.CustomEvents.mixin(DayNameClick);\n\nmodule.exports = DayNameClick;\n","/**\n * @fileoverview Core methods for dragging actions\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar domevent = require('../../common/domevent');\nvar Point = require('../../common/point');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @mixin Time.Core\n */\nvar timeCore = {\n /**\n * Get Y index ratio(hour) in time grids by supplied parameters.\n * @param {number} baseMil - base milliseconds number for supplied height.\n * @param {number} height - container element height.\n * @param {number} y - Y coordinate to calculate hour ratio.\n * @returns {number} hour index ratio value.\n */\n _calcGridYIndex: function(baseMil, height, y) {\n // get ratio from right expression > point.y : x = session.height : baseMil\n // and convert milliseconds value to hours.\n var result = datetime.millisecondsTo('hour', (y * baseMil) / height),\n floored = result | 0,\n nearest = common.nearest(result - floored, [0, 1]);\n\n return floored + (nearest ? 0.5 : 0);\n },\n\n /**\n * Get function to makes event data from Time and mouseEvent\n * @param {Time} timeView - Instance of time view.\n * @returns {function} - Function that return event data from mouse event.\n */\n _retriveScheduleData: function(timeView) {\n var self = this,\n container = timeView.container,\n options = timeView.options,\n viewHeight = timeView.getViewBound().height,\n viewTime = timeView.getDate(),\n hourLength = options.hourEnd - options.hourStart,\n baseMil = datetime.millisecondsFrom('hour', hourLength);\n\n /**\n * @param {MouseEvent} mouseEvent - mouse event object to get common event data.\n * @param {object} [extend] - object to extend event data before return.\n * @returns {object} - common event data for time.*\n */\n return util.bind(function(mouseEvent, extend) {\n var mouseY = Point.n(domevent.getMousePosition(mouseEvent, container)).y,\n gridY = common.ratio(viewHeight, hourLength, mouseY),\n timeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(gridY)),\n nearestGridY = self._calcGridYIndex(baseMil, viewHeight, mouseY),\n nearestGridTimeY = new TZDate(viewTime).addMinutes(\n datetime.minutesFromHours(nearestGridY + options.hourStart)\n );\n\n return util.extend({\n target: mouseEvent.target || mouseEvent.srcElement,\n relatedView: timeView,\n originEvent: mouseEvent,\n mouseY: mouseY,\n gridY: gridY,\n timeY: timeY,\n nearestGridY: nearestGridY,\n nearestGridTimeY: nearestGridTimeY,\n triggerEvent: mouseEvent.type\n }, extend);\n }, this);\n },\n\n /**\n * Get function to makes event data from Time and mouseEvent\n * @param {Time} timeView - Instance of time view.\n * @param {number} xIndex - Time view index\n * @returns {function} - Function that return event data from mouse event.\n */\n _retriveScheduleDataFromDate: function(timeView) {\n var viewTime = timeView.getDate();\n\n /**\n * @param {TZDate} startDate - start date\n * @param {TZDate} endDate - end date\n * @param {number} hourStart Can limit of render hour start.\n * @returns {object} - common event data for time.*\n */\n return util.bind(function(startDate, endDate, hourStart) {\n var gridY, timeY, nearestGridY, nearestGridTimeY, nearestGridEndY, nearestGridEndTimeY;\n\n gridY = startDate.getHours() - hourStart + getNearestHour(startDate.getMinutes());\n timeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(gridY));\n nearestGridY = gridY;\n nearestGridTimeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(nearestGridY));\n nearestGridEndY = endDate.getHours() - hourStart + getNearestHour(endDate.getMinutes());\n nearestGridEndTimeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(nearestGridEndY));\n\n return util.extend({\n target: timeView,\n relatedView: timeView,\n gridY: gridY,\n timeY: timeY,\n nearestGridY: nearestGridY,\n nearestGridTimeY: nearestGridTimeY,\n nearestGridEndY: nearestGridEndY,\n nearestGridEndTimeY: nearestGridEndTimeY,\n triggerEvent: 'manual',\n hourStart: hourStart\n });\n }, this);\n },\n\n /**\n * Mixin method.\n * @param {(TimeCreation|TimeMove)} obj - Constructor functions\n */\n mixin: function(obj) {\n var proto = obj.prototype;\n util.forEach(timeCore, function(method, methodName) {\n if (methodName === 'mixin') {\n return;\n }\n\n proto[methodName] = method;\n });\n }\n};\n\n/**\n * Get the nearest hour\n * @param {number} minutes - minutes\n * @returns {number} hour\n */\nfunction getNearestHour(minutes) {\n var nearestHour;\n if (minutes === 0) {\n nearestHour = 0;\n } else if (minutes > 30) {\n nearestHour = 1;\n } else if (minutes <= 30) {\n nearestHour = 0.5;\n }\n\n return nearestHour;\n}\n\nmodule.exports = timeCore;\n","/**\n * @fileoverview Handling creation events from drag handler and time grid view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar common = require('../../common/common');\nvar TimeCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n * @param {Options} [options] - calendar Options\n */\nfunction TimeCreation(dragHandler, timeGridView, baseController, options) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * TimeGrid view instance.\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {TimeCreationGuide}\n */\n this.guide = new TimeCreationGuide(this);\n\n /**\n * Temporary function for single drag session's calc.\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * Temporary function for drag start data cache.\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(timeGridView.container, 'dblclick', this._onDblClick, this);\n }\n}\n\n/**\n * Destroy method\n */\nTimeCreation.prototype.destroy = function() {\n var timeGridView = this.timeGridView;\n\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (timeGridView && timeGridView.container) {\n domevent.off(timeGridView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this.guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {(boolean|Time)} - return Time view instance when satiate condition.\n */\nTimeCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (cssClass === config.classname('time-date-schedule-block-wrap')) {\n target = target.parentNode;\n cssClass = domutil.getClass(target);\n }\n\n matches = cssClass.match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, matches[1]);\n};\n\n/**\n * Drag#dragStart event handler.\n * @emits TimeCreation#timeCreationDragstart\n * @param {object} dragStartEventData - Drag#dragStart event data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDragStart = function(dragStartEventData, overrideEventName, revise) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n eventData;\n\n if (!result) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(result);\n eventData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @event TimeCreation#timeCreationDragstart\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDragstart', eventData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeCreation#timeCreationDrag\n * @param {object} dragEventData - event data from Drag#drag.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n eventData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n eventData = getScheduleDataFunc(dragEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDrag\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDrag', eventData);\n};\n\n/**\n * @fires TimeCreation#beforeCreateSchedule\n * @param {object} eventData - event data object from TimeCreation#timeCreationDragend\n * or TimeCreation#timeCreationClick\n */\nTimeCreation.prototype._createSchedule = function(eventData) {\n var relatedView = eventData.relatedView,\n createRange = eventData.createRange,\n nearestGridTimeY = eventData.nearestGridTimeY,\n nearestGridEndTimeY = eventData.nearestGridEndTimeY\n ? eventData.nearestGridEndTimeY\n : new TZDate(nearestGridTimeY).addMinutes(30),\n baseDate,\n dateStart,\n dateEnd,\n start,\n end;\n\n if (!createRange) {\n createRange = [\n nearestGridTimeY,\n nearestGridEndTimeY\n ];\n }\n\n baseDate = new TZDate(relatedView.getDate());\n dateStart = datetime.start(baseDate);\n dateEnd = datetime.getStartOfNextDay(baseDate);\n start = common.limitDate(createRange[0], dateStart, dateEnd);\n end = common.limitDate(createRange[1], dateStart, dateEnd);\n\n /**\n * @event TimeCreation#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: false,\n start: new TZDate(start),\n end: new TZDate(end),\n guide: this.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeCreation#timeCreationDragend\n * @param {object} dragEndEventData - event data from Drag#dragend\n */\nTimeCreation.prototype._onDragEnd = function(dragEndEventData) {\n var self = this,\n dragStart = this._dragStart;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * Function for manipulate event data before firing event\n * @param {object} eventData - event data\n */\n function reviseFunc(eventData) {\n var range = [\n dragStart.nearestGridTimeY,\n eventData.nearestGridTimeY\n ].sort(array.compare.num.asc);\n range[1].addMinutes(30);\n\n eventData.createRange = range;\n\n self._createSchedule(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDragend\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {number[]} createRange - milliseconds range between drag start and end to create.\n */\n this._onDrag(dragEndEventData, 'timeCreationDragend', reviseFunc);\n\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Drag#click event handler\n * @emits TimeCreation#timeCreationClick\n * @param {object} clickEventData - event data from Drag#click.\n */\nTimeCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var condResult, getScheduleDataFunc, eventData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n condResult = this.checkExpectedCondition(clickEventData.target);\n if (!condResult || this._disableClick) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('timeCreationClick', eventData);\n self._createSchedule(eventData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Dblclick event handler\n * @param {MouseEvent} e - Native MouseEvent\n */\nTimeCreation.prototype._onDblClick = function(e) {\n var condResult, getScheduleDataFunc, eventData;\n\n condResult = this.checkExpectedCondition(e.target);\n if (!condResult) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(e);\n\n this.fire('timeCreationClick', eventData);\n\n this._createSchedule(eventData);\n\n this._requestOnClick = false;\n};\n\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nTimeCreation.prototype.invokeCreationClick = function(schedule) {\n var opt = this.timeGridView.options,\n range = datetime.range(\n opt.renderStartDate,\n opt.renderEndDate,\n datetime.MILLISECONDS_PER_DAY),\n hourStart = opt.hourStart,\n targetDate = schedule.start;\n var getScheduleDataFunc, eventData, timeView;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, targetDate)) {\n timeView = this.timeGridView.children.toArray()[index];\n }\n }, this);\n\n // If start date is not in current date, set start date as first date.\n if (!timeView) {\n timeView = this.timeGridView.children.toArray()[0];\n }\n\n getScheduleDataFunc = this._retriveScheduleDataFromDate(timeView);\n eventData = getScheduleDataFunc(schedule.start, schedule.end, hourStart);\n\n this.fire('timeCreationClick', eventData);\n\n this._createSchedule(eventData);\n};\n\ntimeCore.mixin(TimeCreation);\nutil.CustomEvents.mixin(TimeCreation);\n\nmodule.exports = TimeCreation;\n","/**\n * @fileoverview Module for Time.Creation effect while dragging.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar TZDate = require('../../common/timezone').Date;\nvar MIN60 = (datetime.MILLISECONDS_PER_MINUTES * 60);\n\n/**\n * Class for Time.Creation dragging effect.\n * @constructor\n * @param {TimeCreation} timeCreation - instance of TimeCreation.\n */\nfunction TimeCreationGuide(timeCreation) {\n /**\n * Guide element for creation effect.\n * @type {HTMLElement}\n */\n this.guideElement = global.document.createElement('div');\n\n /**\n * @type {HTMLDivElement}\n */\n this.guideTimeElement = domutil.appendHTMLElement(\n 'span',\n this.guideElement,\n config.classname('time-guide-creation-label')\n );\n\n domutil.addClass(this.guideElement, config.classname('time-guide-creation'));\n\n /**\n * @type {TimeCreation}\n */\n this.timeCreation = timeCreation;\n\n /**\n * @type {array}\n */\n this._styleUnit = null;\n\n /**\n * @type {array}\n */\n this._styleStart = null;\n\n /**\n * @type {function}\n */\n this._styleFunc = null;\n\n timeCreation.on({\n timeCreationDragstart: this._createGuideElement,\n timeCreationDrag: this._onDrag,\n timeCreationClick: this._createGuideElement\n }, this);\n\n this.applyTheme(timeCreation.baseController.theme);\n}\n\n/**\n * Destroy method.\n */\nTimeCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.timeCreation.off(this);\n this.timeCreation = this._styleUnit = this._styleStart =\n this._styleFunc = this.guideElement = this.guideTimeElement = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement,\n timeElement = this.guideTimeElement;\n\n domutil.remove(guideElement);\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.display = 'none';\n guideElement.style.top = '';\n guideElement.style.height = '';\n timeElement.innerHTML = '';\n });\n};\n\n/**\n * Refresh guide element\n * @param {number} top - The number of guide element's style top\n * @param {number} height - The number of guide element's style height\n * @param {TZDate} start - start time of schedule to create\n * @param {TZDate} end - end time of schedule to create\n * @param {boolean} bottomLabel - is label need to render bottom of guide element?\n */\nTimeCreationGuide.prototype._refreshGuideElement = function(top, height, start, end, bottomLabel) {\n var guideElement = this.guideElement;\n var timeElement = this.guideTimeElement;\n\n guideElement.style.top = top + 'px';\n guideElement.style.height = height + 'px';\n guideElement.style.display = 'block';\n\n timeElement.innerHTML = datetime.format(start, 'HH:mm') +\n ' - ' + datetime.format(end, 'HH:mm');\n\n if (bottomLabel) {\n domutil.removeClass(timeElement, config.classname('time-guide-bottom'));\n } else {\n domutil.addClass(timeElement, config.classname('time-guide-bottom'));\n }\n};\n\n/**\n * Get unit data of calculating new style of guide element by user interaction\n * @param {Time} relatedView - time view instance related with schedule\n * @returns {array} unit data.\n */\nTimeCreationGuide.prototype._getUnitData = function(relatedView) {\n var viewOpt = relatedView.options,\n viewHeight = relatedView.getViewBound().height,\n hourLength = viewOpt.hourEnd - viewOpt.hourStart,\n todayStart = datetime.parse(viewOpt.ymd),\n todayEnd = datetime.getStartOfNextDay(todayStart);\n\n todayStart.setHours(0, 0, 0, 0);\n todayStart.setHours(viewOpt.hourStart);\n\n // [0] height of view\n // [1] hour length of view\n // [2] start time of view\n // [3] end time of view\n // [4] height of view for one hour\n return [\n viewHeight,\n hourLength,\n todayStart,\n todayEnd,\n viewHeight / hourLength\n ];\n};\n\n/**\n * Applying limitation to supplied data and return it.\n * @param {number} top - top pixel of guide element\n * @param {number} height - height pixel of guide element\n * @param {TZDate} start - relative time value of dragstart point\n * @param {TZDate} end - relative time value of dragend point\n * @returns {array} limited style data\n */\nTimeCreationGuide.prototype._limitStyleData = function(top, height, start, end) {\n var unitData = this._styleUnit;\n\n top = common.limit(top, [0], [unitData[0]]);\n height = common.limit(top + height, [0], [unitData[0]]) - top;\n start = common.limitDate(start, unitData[2], unitData[3]);\n end = common.limitDate(end, unitData[2], unitData[3]);\n\n return [top, height, start, end];\n};\n\n/**\n * Get function to calculate guide element UI data from supplied units\n * @param {number} viewHeight - total height of view's container element\n * @param {number} hourLength - hour length that rendered in time view\n * @param {TZDate} todayStart - time for view's start date\n * @returns {function} UI data calculator function\n */\nTimeCreationGuide.prototype._getStyleDataFunc = function(viewHeight, hourLength, todayStart) {\n var todayStartTime = todayStart;\n var todayEndTime = datetime.end(todayStart);\n\n /**\n * Get top, time value from schedule data\n * @param {object} scheduleData - schedule data object\n * @returns {number[]} top, time\n */\n function getStyleData(scheduleData) {\n var minMinutes = 30;\n var gridY = scheduleData.nearestGridY,\n gridTimeY = scheduleData.nearestGridTimeY,\n gridEndTimeY = scheduleData.nearestGridEndTimeY || new TZDate(gridTimeY).addMinutes(minMinutes),\n top, startTime, endTime;\n\n top = common.limit(ratio(hourLength, viewHeight, gridY), [0], [viewHeight]);\n startTime = common.limitDate(gridTimeY, todayStartTime, todayEndTime);\n endTime = common.limitDate(gridEndTimeY, todayStartTime, todayEndTime);\n\n return [top, startTime, endTime];\n }\n\n return getStyleData;\n};\n\n/**\n * DragStart event handler\n * @param {object} dragStartEventData - dragStart schedule data.\n */\nTimeCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var relatedView = dragStartEventData.relatedView,\n hourStart = datetime.millisecondsFrom('hour', dragStartEventData.hourStart) || 0,\n unitData, styleFunc, styleData, result, top, height, start, end;\n\n unitData = this._styleUnit = this._getUnitData(relatedView);\n styleFunc = this._styleFunc = this._getStyleDataFunc.apply(this, unitData);\n styleData = this._styleStart = styleFunc(dragStartEventData);\n\n start = new TZDate(styleData[1]).addMinutes(datetime.minutesFromHours(hourStart));\n end = new TZDate(styleData[2]).addMinutes(datetime.minutesFromHours(hourStart));\n top = styleData[0];\n height = (unitData[4] * (end - start) / MIN60);\n\n result = this._limitStyleData(\n top,\n height,\n start,\n end\n );\n\n this._refreshGuideElement.apply(this, result);\n\n relatedView.container.appendChild(this.guideElement);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEventData - drag schedule data.\n */\nTimeCreationGuide.prototype._onDrag = function(dragEventData) {\n var minutes30 = 30;\n var styleFunc = this._styleFunc,\n unitData = this._styleUnit,\n startStyle = this._styleStart,\n refreshGuideElement = this._refreshGuideElement.bind(this),\n heightOfHalfHour,\n endStyle,\n result;\n\n if (!styleFunc || !unitData || !startStyle) {\n return;\n }\n\n heightOfHalfHour = (unitData[4] / 2);\n endStyle = styleFunc(dragEventData);\n\n if (endStyle[0] > startStyle[0]) {\n result = this._limitStyleData(\n startStyle[0],\n (endStyle[0] - startStyle[0]) + heightOfHalfHour,\n startStyle[1],\n new TZDate(endStyle[1]).addMinutes(minutes30)\n );\n } else {\n result = this._limitStyleData(\n endStyle[0],\n (startStyle[0] - endStyle[0]) + heightOfHalfHour,\n endStyle[1],\n new TZDate(startStyle[1]).addMinutes(minutes30)\n );\n result.push(true);\n }\n\n reqAnimFrame.requestAnimFrame(function() {\n refreshGuideElement.apply(null, result);\n });\n};\n\nTimeCreationGuide.prototype.applyTheme = function(theme) {\n var style = this.guideElement.style;\n var timeStyle = this.guideTimeElement.style;\n\n // block\n style.backgroundColor = theme.common.creationGuide.backgroundColor;\n style.border = theme.common.creationGuide.border;\n\n // label\n timeStyle.color = theme.week.creationGuide.color;\n timeStyle.fontSize = theme.week.creationGuide.fontSize;\n timeStyle.fontWeight = theme.week.creationGuide.fontWeight;\n};\n\nmodule.exports = TimeCreationGuide;\n","/**\n * @fileoverview Handling move schedules from drag handler and time grid view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\nvar TimeMoveGuide = require('./moveGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeMove(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeMoveGuide}\n */\n this._guide = new TimeMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('mousedown', this._onMouseDown, this);\n}\n\n/**\n * Destroy method.\n */\nTimeMove.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {boolean|object} - return object when satiate condition.\n */\nTimeMove.prototype.checkExpectCondition = function(target) {\n if (!domutil.closest(target, config.classname('.time-schedule'))) {\n return false;\n }\n\n return this._getTimeView(target);\n};\n\n/**\n * Get Time view container from supplied element.\n * @param {HTMLElement} target - element to find time view container.\n * @returns {object|boolean} - return time view instance when finded.\n */\nTimeMove.prototype._getTimeView = function(target) {\n var container = domutil.closest(target, config.classname('.time-date')),\n matches;\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeMove#mousedown\n * @param {object} mouseDownEventData - Drag#mousedown schedule data.\n */\nTimeMove.prototype._onMouseDown = function(mouseDownEventData) {\n var target = mouseDownEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block'));\n\n if (!timeView || !blockElement) {\n return;\n }\n\n // EventTarget.target is not changed in mousemove event even if mouse is over the other element.\n // It's different with other browsers(IE, Chrome, Safari)\n if (util.browser.firefox) {\n domevent.preventDefault(mouseDownEventData.originEvent);\n }\n};\n\n/**\n * @emits TimeMove#timeMoveDragstart\n * @param {object} dragStartEventData - Drag#dragStart schedule data.\n */\nTimeMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n getScheduleDataFunc,\n scheduleData,\n ctrl = this.baseController,\n targetModelID,\n targetModel;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n targetModelID = domutil.getData(blockElement, 'id');\n targetModel = ctrl.schedules.items[targetModelID];\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: targetModelID,\n model: targetModel\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeMove#timeMoveDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {Schedule} model - model instance\n */\n this.fire('timeMoveDragstart', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveDrag\n * @param {MouseEvent} dragEventData - mousemove event object\n * @param {string} [overrideEventName] - name of emitting event to override.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeMove.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n timeView = this._getTimeView(dragEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n if (!timeView || !getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n currentView: timeView,\n targetModelID: dragStart.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeMove#timeMoveDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeMoveDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeMove#timeMoveDragend\n */\nTimeMove.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n dateDiff = 0,\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n currentView = scheduleData.currentView,\n newStarts,\n newEnds;\n\n if (!schedule || !currentView) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n newStarts = new TZDate(schedule.getStarts()).addMilliseconds(timeDiff);\n newEnds = new TZDate(schedule.getEnds()).addMilliseconds(timeDiff);\n\n if (currentView) {\n dateDiff = currentView.getDate() - relatedView.getDate();\n }\n\n newStarts.addMilliseconds(dateDiff);\n newEnds.addMilliseconds(dateDiff);\n\n /**\n * @event TimeMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: {\n start: newStarts,\n end: newEnds\n },\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * @emits TimeMove#timeMoveDragend\n * @param {MouseEvent} dragEndEventData - mouseup mouse event object.\n */\nTimeMove.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n currentView = this._getTimeView(dragEndEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n currentView: currentView,\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n new TZDate(scheduleData.timeY).addMinutes(30)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n new TZDate(scheduleData.nearestGridTimeY).addMinutes(30)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeMove#timeMoveDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeMoveDragend', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveClick\n * @param {MouseEvent} clickEventData - click mouse event object.\n */\nTimeMove.prototype._onClick = function(clickEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(clickEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n /**\n * @event TimeMove#timeMoveClick\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire('timeMoveClick', scheduleData);\n};\n\ntimeCore.mixin(TimeMove);\nutil.CustomEvents.mixin(TimeMove);\n\nmodule.exports = TimeMove;\n","/**\n * @fileoverview Module for Time.Move effect while dragging.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar FloatingLayer = require('../../common/floatingLayer');\nvar tmpl = require('../../view/template/week/timeMoveGuide.hbs');\nvar TZDate = require('../../common/timezone').Date;\nvar Schedule = require('../../model/schedule');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * Class for Time.Move effect.\n * @constructor\n * @param {TimeMove} timeMove - The instance of TimeMove.\n */\nfunction TimeMoveGuide(timeMove) {\n /**\n * @type {FloatingLayer}\n */\n this._guideLayer = null;\n\n /**\n * @Type {Schedule}\n */\n this._model = null;\n\n /**\n * @type {object}\n */\n this._viewModel = null;\n\n /**\n * @type {object}\n */\n this._lastDrag = null;\n\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeMove}\n */\n this.timeMove = timeMove;\n\n /**\n * @type {HTMLElement}\n */\n this._container = null;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n timeMove.on({\n 'timeMoveDragstart': this._onDragStart,\n 'timeMoveDrag': this._onDrag,\n 'timeMoveDragend': this._clearGuideElement,\n 'timeMoveClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeMove.off(this);\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n this.guideElement = this.timeMove = this._container = this._guideLayer = this._lastDrag =\n this._getTopFunc = this._startGridY = this._startTopPixel = this._viewModel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeMoveGuide.prototype._clearGuideElement = function() {\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n\n this._showOriginScheduleBlocks();\n\n this.guideElement = this._getTopFunc = this._guideLayer = this._model = this._lastDrag =\n this._startGridY = this._startTopPixel = this._viewModel = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nTimeMoveGuide.prototype._hideOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.addClass(this.guideElement, className);\n }\n};\n\n/**\n * Show element blocks\n */\nTimeMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.removeClass(this.guideElement, className);\n }\n};\n\n/**\n * Refresh guide element\n * @param {string} top - guide element's style top.\n * @param {Schedule} model - updated model\n * @param {object} viewModel - view model\n */\nTimeMoveGuide.prototype._refreshGuideElement = function(top, model, viewModel) {\n var self = this;\n\n reqAnimFrame.requestAnimFrame(function() {\n if (!self._guideLayer) {\n return;\n }\n self._guideLayer.setPosition(0, top);\n self._guideLayer.setContent(tmpl(util.extend({model: model}, viewModel)));\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var guideElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n );\n var duration, modelDuration, goingDuration, comingDuration;\n\n if (!guideElement) {\n return;\n }\n\n this._startTopPixel = parseFloat(guideElement.style.top);\n this._startGridY = dragStartEventData.nearestGridY;\n this.guideElement = guideElement;\n this._container = dragStartEventData.relatedView.container;\n\n this._model = util.extend(\n Schedule.create(dragStartEventData.model),\n dragStartEventData.model\n );\n\n modelDuration = this._model.duration();\n modelDuration = modelDuration > SCHEDULE_MIN_DURATION ? modelDuration : SCHEDULE_MIN_DURATION;\n goingDuration = datetime.millisecondsFrom('minutes', this._model.goingDuration);\n comingDuration = datetime.millisecondsFrom('minutes', this._model.comingDuration);\n duration = goingDuration + modelDuration + comingDuration;\n\n this._lastDrag = dragStartEventData;\n this._viewModel = {\n hasGoingDuration: goingDuration > 0,\n hasComingDuration: comingDuration > 0,\n goingDurationHeight: common.ratio(duration, goingDuration, 100),\n modelDurationHeight: common.ratio(duration, modelDuration, 100),\n comingDurationHeight: common.ratio(duration, comingDuration, 100)\n };\n\n this._resetGuideLayer();\n this._hideOriginScheduleBlocks();\n};\n\n/**\n * TimeMove#timeMoveDrag event handler\n * @param {object} dragEventData - drag event data\n */\nTimeMoveGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.currentView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n guideHeight = parseFloat(this.guideElement.style.height),\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n gridDiff = dragEventData.nearestGridY - this._lastDrag.nearestGridY,\n bottomLimit,\n top;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n if (this._container !== timeView.container) {\n this._container = timeView.container;\n this._resetGuideLayer();\n }\n\n top = this._startTopPixel + gridYOffsetPixel;\n bottomLimit = viewHeight - guideHeight;\n\n top = Math.max(top, 0);\n top = Math.min(top, bottomLimit);\n\n // update time\n this._model.start = new TZDate(this._model.getStarts()).addMinutes(datetime.minutesFromHours(gridDiff));\n this._model.end = new TZDate(this._model.getEnds()).addMinutes(datetime.minutesFromHours(gridDiff));\n this._lastDrag = dragEventData;\n\n this._refreshGuideElement(top, this._model, this._viewModel);\n};\n\nTimeMoveGuide.prototype._resetGuideLayer = function() {\n if (this._guideLayer) {\n this._guideLayer.destroy();\n this._guideLayer = null;\n }\n this._guideLayer = new FloatingLayer(null, this._container);\n this._guideLayer.setSize(this._container.getBoundingClientRect().width, this.guideElement.style.height);\n this._guideLayer.setPosition(0, this.guideElement.style.top);\n this._guideLayer.setContent(tmpl(util.extend({model: this._model}, this._viewModel)));\n this._guideLayer.show();\n};\n\nmodule.exports = TimeMoveGuide;\n","/**\n * @fileoverview Handling resize schedules from drag handler and time grid view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar common = require('../../common/common');\nvar timeCore = require('./core');\nvar TimeResizeGuide = require('./resizeGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeResize(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeResizeGuide}\n */\n this._guide = new TimeResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destroy method\n */\nTimeResize.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * @param {HTMLElement} target - element to check condition.\n * @returns {object|boolean} - return time view instance or false\n */\nTimeResize.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n if (!domutil.hasClass(target, config.classname('time-resize-handle'))) {\n return false;\n }\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeResize#timeResizeDragstart\n * @param {object} dragStartEventData - event data of Drag#dragstart\n */\nTimeResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n ctrl = this.baseController,\n targetModelID,\n getScheduleDataFunc,\n scheduleData;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n targetModelID = domutil.getData(blockElement, 'id');\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: targetModelID,\n schedule: ctrl.schedules.items[targetModelID]\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {Schedule} schedule - schedule data\n */\n this.fire('timeResizeDragstart', scheduleData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeResize#timeResizeDrag\n * @param {object} dragEventData - event data of Drag#drag custom event.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeResize.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n startScheduleData = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !startScheduleData) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n targetModelID: startScheduleData.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeResize#timeResizeDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeResizeDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeResize#timeResizeDragend\n */\nTimeResize.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n dateEnd,\n newEnds,\n baseDate;\n var changes;\n\n if (!schedule) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n\n baseDate = new TZDate(relatedView.getDate());\n dateEnd = datetime.end(baseDate);\n newEnds = new TZDate(schedule.getEnds()).addMilliseconds(timeDiff);\n\n if (newEnds > dateEnd) {\n newEnds = new TZDate(dateEnd);\n }\n\n if (newEnds.getTime() - schedule.getStarts().getTime() < datetime.millisecondsFrom('minutes', 30)) {\n newEnds = new TZDate(schedule.getStarts()).addMinutes(30);\n }\n\n changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnds}\n );\n\n /**\n * @event TimeResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeResize#timeResizeDragend\n * @param {MouseEvent} dragEndEventData - Mouse event of Drag#dragEnd custom event.\n */\nTimeResize.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n new TZDate(scheduleData.timeY).addMinutes(30)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n scheduleData.nearestGridTimeY.addMinutes(30)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeResize#timeResizeDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeResizeDragend', scheduleData);\n\n this._getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * @emits TimeResize#timeResizeClick\n */\nTimeResize.prototype._onClick = function() {\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeClick\n */\n this.fire('timeResizeClick');\n};\n\ntimeCore.mixin(TimeResize);\nutil.CustomEvents.mixin(TimeResize);\n\nmodule.exports = TimeResize;\n","/**\n * @fileoverview Module for Time.Resize effect while dragging.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar datetime = require('../../common/datetime');\n\n/**\n * Class for Time.Resize effect.\n * @constructor\n * @param {TimeResize} timeResize - the instance of TimeResize handler.\n */\nfunction TimeResizeGuide(timeResize) {\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeResize}\n */\n this.timeResize = timeResize;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {HTMLElement}\n */\n this._originScheduleElement = null;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n /**\n * @type {number}\n */\n this._startHeightPixel = 0;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n /**\n * @type {Schedule}\n */\n this._schedule = null;\n\n timeResize.on({\n 'timeResizeDragstart': this._onDragStart,\n 'timeResizeDrag': this._onDrag,\n 'timeResizeDragend': this._clearGuideElement,\n 'timeResizeClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeResize.off(this);\n this.guideElement = this.timeResize = this._getTopFunc =\n this._originScheduleElement = this._startHeightPixel =\n this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeResizeGuide.prototype._clearGuideElement = function() {\n var guideElement = this.guideElement,\n originElement = this._originScheduleElement;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing'));\n }\n\n if (originElement) {\n originElement.style.display = 'block';\n }\n\n domutil.remove(guideElement);\n\n this.guideElement = this._getTopFunc = this._originScheduleElement =\n this._startHeightPixel = this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Refresh guide element\n * @param {number} guideHeight - guide element's style height.\n * @param {number} minTimeHeight - time element's min height\n * @param {number} timeHeight - time element's height.\n */\nTimeResizeGuide.prototype._refreshGuideElement = function(guideHeight, minTimeHeight, timeHeight) {\n var guideElement = this.guideElement;\n var timeElement;\n\n if (!guideElement) {\n return;\n }\n\n timeElement = domutil.find(config.classname('.time-schedule-content-time'), guideElement);\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.height = guideHeight + 'px';\n guideElement.style.display = 'block';\n\n if (timeElement) {\n timeElement.style.height = timeHeight + 'px';\n timeElement.style.minHeight = minTimeHeight + 'px';\n }\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var originElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n ),\n schedule = dragStartEventData.schedule,\n guideElement;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing'));\n }\n\n if (!originElement || !schedule) {\n return;\n }\n\n this._startGridY = dragStartEventData.nearestGridY;\n this._startHeightPixel = parseFloat(originElement.style.height);\n this._startTopPixel = parseFloat(originElement.style.top);\n\n this._originScheduleElement = originElement;\n this._schedule = schedule;\n\n guideElement = this.guideElement = originElement.cloneNode(true);\n domutil.addClass(guideElement, config.classname('time-guide-resize'));\n\n originElement.style.display = 'none';\n dragStartEventData.relatedView.container.appendChild(guideElement);\n};\n\n/**\n * @param {object} dragEventData - event data from Drag#drag.\n */\nTimeResizeGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.relatedView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n guideElement = this.guideElement,\n guideTop = parseFloat(guideElement.style.top),\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n // hourLength : viewHeight = gridYOffset : X;\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n goingDuration = this._schedule.goingDuration,\n modelDuration = this._schedule.duration() / datetime.MILLISECONDS_PER_MINUTES,\n comingDuration = this._schedule.comingDuration,\n minutesLength = hourLength * 60,\n timeHeight,\n timeMinHeight,\n minHeight,\n maxHeight,\n height;\n\n height = (this._startHeightPixel + gridYOffsetPixel);\n // at least large than 30min from schedule start time.\n minHeight = guideTop + ratio(hourLength, viewHeight, 0.5);\n minHeight -= this._startTopPixel;\n timeMinHeight = minHeight;\n minHeight += ratio(minutesLength, viewHeight, goingDuration) + ratio(minutesLength, viewHeight, comingDuration);\n // smaller than 24h\n maxHeight = viewHeight - guideTop;\n\n height = Math.max(height, minHeight);\n height = Math.min(height, maxHeight);\n\n timeHeight = ratio(minutesLength, viewHeight, modelDuration) + gridYOffsetPixel;\n\n this._refreshGuideElement(height, timeMinHeight, timeHeight);\n};\n\nmodule.exports = TimeResizeGuide;\n","/* eslint complexity: 0 */\n/**\n * @fileoverview Model of schedule.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar TZDate = require('../common/timezone').Date;\nvar datetime = require('../common/datetime');\nvar dirty = require('../common/dirty');\nvar model = require('../common/model');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * Schedule category\n * @readonly\n * @enum {string}\n */\nvar SCHEDULE_CATEGORY = {\n /** milestone */\n MILESTONE: 'milestone',\n\n /** task */\n TASK: 'task',\n\n /** all-day schedule */\n ALLDAY: 'allday',\n\n /** normal schedule */\n TIME: 'time'\n};\n\n/**\n * The model of calendar schedules.\n * @constructor\n * @mixes dirty\n * @mixes model\n */\nfunction Schedule() {\n /**\n * `Optional` unique id for various use.\n * @type {string}\n */\n this.id = '';\n\n /**\n * title for schedule.\n * @type {string}\n */\n this.title = '';\n\n /**\n * body for schedule.\n * @type {string}\n */\n this.body = '';\n\n /**\n * is schedule is all day schedule?\n * @type {boolean}\n */\n this.isAllDay = false;\n\n /**\n * schedule start\n * @type {TZDate}\n */\n this.start = null;\n\n /**\n * schedule end\n * @type {TZDate}\n */\n this.end = null;\n\n /**\n * schedule text color\n * @type {string}\n */\n this.color = '#000';\n\n /**\n * schedule block visibility\n * @type {boolean}\n */\n this.isVisible = true;\n\n /**\n * schedule background color\n * @type {string}\n */\n this.bgColor = '#a1b56c';\n\n /**\n * schedule background color when dragging it\n * @type {string}\n */\n this.dragBgColor = '#a1b56c';\n\n /**\n * schedule left border color\n * @type {string}\n */\n this.borderColor = '#000';\n\n /**\n * calendar ID\n * @type {string}\n */\n this.calendarId = '';\n\n /**\n * Schedule category(milestone, task, allday, time)\n * @type {string}\n */\n this.category = '';\n\n /**\n * Classification of work schedules (before work, before lunch, before work)\n * @type {string}\n */\n this.dueDateClass = '';\n\n /**\n * Custom style for schedule element\n * @type {string}\n */\n this.customStyle = '';\n\n /**\n * in progress flag to do something\n * @type {boolean}\n */\n this.isPending = false;\n\n /**\n * focused schedule flag\n * @type {boolean}\n */\n this.isFocused = false;\n\n /**\n * read-only schedule flag\n * @type {boolean}\n */\n this.isReadOnly = false;\n\n /**\n * private schedule\n * @type {boolean}\n */\n this.isPrivate = false;\n\n /**\n * location\n * @type {string}\n */\n this.location = '';\n\n /**\n * attendees\n * @type {Array.}\n */\n this.attendees = [];\n\n /**\n * recurrence rule\n * @type {any}\n */\n this.recurrenceRule = '';\n\n /**\n * state. 'Busy' is default.\n * @type {string}\n */\n this.state = '';\n\n /**\n * travelTime: going-Duration minutes\n * @type {number}\n */\n this.goingDuration = 0;\n\n /**\n * travelTime: coming-Duration minutes\n * @type {number}\n */\n this.comingDuration = 0;\n\n /**\n * Separate data storage space independent of rendering.\n * @type {object}\n */\n this.raw = null;\n\n // initialize model id\n util.stamp(this);\n}\n\n/**********\n * static props\n **********/\n\nSchedule.schema = {\n required: ['title'],\n dateRange: ['start', 'end']\n};\n\n/**\n * create schedule model from json(object) data.\n * @param {object} data object for model.\n * @returns {Schedule} Schedule model instance.\n */\nSchedule.create = function(data) {\n var inst = new Schedule();\n inst.init(data);\n\n return inst;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Initialize schedule instance.\n * @param {object} options options.\n */\nSchedule.prototype.init = function(options) {\n options = util.extend({}, options);\n if (options.category === SCHEDULE_CATEGORY.ALLDAY) {\n options.isAllDay = true;\n }\n\n this.id = options.id || '';\n this.title = options.title || '';\n this.body = options.body || '';\n this.isAllDay = util.isExisty(options.isAllDay) ? options.isAllDay : false;\n this.isVisible = util.isExisty(options.isVisible) ? options.isVisible : true;\n\n this.color = options.color || this.color;\n this.bgColor = options.bgColor || this.bgColor;\n this.dragBgColor = options.dragBgColor || this.dragBgColor;\n this.borderColor = options.borderColor || this.borderColor;\n this.calendarId = options.calendarId || '';\n this.category = options.category || '';\n this.dueDateClass = options.dueDateClass || '';\n this.customStyle = options.customStyle || '';\n this.location = options.location || '';\n this.attendees = options.attendees || [];\n this.recurrenceRule = options.recurrenceRule || '';\n this.isPrivate = options.isPrivate || false;\n this.isPending = options.isPending || false;\n this.isFocused = options.isFocused || false;\n this.isReadOnly = options.isReadOnly || false;\n this.goingDuration = options.goingDuration || 0;\n this.comingDuration = options.comingDuration || 0;\n this.state = options.state || '';\n\n if (this.isAllDay) {\n this.setAllDayPeriod(options.start, options.end);\n } else {\n this.setTimePeriod(options.start, options.end);\n }\n\n this.raw = options.raw || null;\n};\n\nSchedule.prototype.setAllDayPeriod = function(start, end) {\n // If it is an all-day schedule, only the date information of the string is used.\n if (util.isString(start)) {\n start = datetime.parse(start.substring(0, 10));\n } else {\n start = new TZDate(start || Date.now());\n }\n if (util.isString(end)) {\n end = datetime.parse(end.substring(0, 10));\n } else {\n end = new TZDate(end || this.start);\n }\n\n this.start = start;\n this.start.setHours(0, 0, 0);\n this.end = end || new TZDate(this.start);\n this.end.setHours(23, 59, 59);\n};\n\nSchedule.prototype.setTimePeriod = function(start, end) {\n this.start = new TZDate(start || Date.now());\n this.end = new TZDate(end || this.start);\n\n if (!end) {\n this.end.setMinutes(this.end.getMinutes() + 30);\n }\n};\n\n/**\n * @returns {Date} render start date.\n */\nSchedule.prototype.getStarts = function() {\n return this.start;\n};\n\n/**\n * @returns {Date} render end date.\n */\nSchedule.prototype.getEnds = function() {\n return this.end;\n};\n\n/**\n * @returns {number} instance unique id.\n */\nSchedule.prototype.cid = function() {\n return util.stamp(this);\n};\n\n/**\n * Check two schedule are equals (means title, isAllDay, start, end are same)\n * @param {Schedule} schedule Schedule model instance to compare.\n * @returns {boolean} Return false when not same.\n */\nSchedule.prototype.equals = function(schedule) {\n if (this.id !== schedule.id) {\n return false;\n }\n\n if (this.title !== schedule.title) {\n return false;\n }\n\n if (this.body !== schedule.body) {\n return false;\n }\n\n if (this.isAllDay !== schedule.isAllDay) {\n return false;\n }\n\n if (datetime.compare(this.getStarts(), schedule.getStarts()) !== 0) {\n return false;\n }\n\n if (datetime.compare(this.getEnds(), schedule.getEnds()) !== 0) {\n return false;\n }\n\n if (this.color !== schedule.color) {\n return false;\n }\n\n if (this.bgColor !== schedule.bgColor) {\n return false;\n }\n\n if (this.dragBgColor !== schedule.dragBgColor) {\n return false;\n }\n\n if (this.borderColor !== schedule.borderColor) {\n return false;\n }\n\n return true;\n};\n\n/**\n * return duration between start and end.\n * @returns {Date} duration (UTC)\n */\nSchedule.prototype.duration = function() {\n var start = this.getStarts(),\n end = this.getEnds(),\n duration;\n\n if (this.isAllDay) {\n duration = datetime.end(end) - datetime.start(start);\n } else {\n duration = end - start;\n }\n\n return duration;\n};\n\n/**\n * Returns true if the given Schedule coincides with the same time as the\n * calling Schedule.\n * @param {Schedule} schedule The other schedule to compare with this Schedule.\n * @returns {boolean} If the other schedule occurs within the same time as the first object.\n */\nSchedule.prototype.collidesWith = function(schedule) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = schedule.getStarts(),\n end = schedule.getEnds();\n var ownGoingDuration = datetime.millisecondsFrom('minutes', this.goingDuration),\n ownComingDuration = datetime.millisecondsFrom('minutes', this.comingDuration),\n goingDuration = datetime.millisecondsFrom('minutes', schedule.goingDuration),\n comingDuration = datetime.millisecondsFrom('minutes', schedule.comingDuration);\n\n if (Math.abs(ownEnds - ownStarts) < SCHEDULE_MIN_DURATION) {\n ownEnds += SCHEDULE_MIN_DURATION;\n }\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n ownStarts -= ownGoingDuration;\n ownEnds += ownComingDuration;\n start -= goingDuration;\n end += comingDuration;\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodel.mixin(Schedule.prototype);\ndirty.mixin(Schedule.prototype);\n\nmodule.exports = Schedule;\n","/**\n * @fileoverview Model for views\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar datetime = require('../../common/datetime');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * Schedule ViewModel\n * @constructor\n * @param {Schedule} schedule Schedule instance.\n */\nfunction ScheduleViewModel(schedule) {\n /**\n * The model of schedule.\n * @type {Schedule}\n */\n this.model = schedule;\n\n /**\n * @type {number}\n */\n this.top = 0;\n\n /**\n * @type {number}\n */\n this.left = 0;\n\n /**\n * @type {number}\n */\n this.width = 0;\n\n /**\n * @type {number}\n */\n this.height = 0;\n\n /**\n * Represent schedule has collide with other schedules when rendering.\n * @type {boolean}\n */\n this.hasCollide = false;\n\n /**\n * Extra space at rigth side of this schedule.\n * @type {number}\n */\n this.extraSpace = 0;\n\n /**\n * represent this schedule block is not visible after rendered.\n *\n * in month view, some viewmodel in date need to hide when already rendered before dates.\n *\n * set true then it just shows empty space.\n * @type {boolean}\n */\n this.hidden = false;\n\n /**\n * whether the schedule includes multiple dates\n */\n this.hasMultiDates = false;\n\n /**\n * represent render start date used at rendering.\n *\n * if set null then use model's 'start' property.\n * @type {TZDate}\n */\n this.renderStarts = null;\n\n /**\n * whether the actual start-date is before the render-start-date\n * @type {boolean}\n */\n this.exceedLeft = false;\n\n /**\n * represent render end date used at rendering.\n *\n * if set null then use model's 'end' property.\n * @type {TZDate}\n */\n this.renderEnds = null;\n\n /**\n * whether the actual end-date is after the render-end-date\n * @type {boolean}\n */\n this.exceedRight = false;\n}\n\n/**********\n * static props\n **********/\n\n/**\n * ScheduleViewModel factory method.\n * @param {Schedule} schedule Schedule instance.\n * @returns {ScheduleViewModel} ScheduleViewModel instance.\n */\nScheduleViewModel.create = function(schedule) {\n return new ScheduleViewModel(schedule);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderStarts is not set. return model's start property.\n * @override\n * @returns {Date} render start date.\n */\nScheduleViewModel.prototype.getStarts = function() {\n if (this.renderStarts) {\n return this.renderStarts;\n }\n\n return this.model.start;\n};\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderEnds is not set. return model's end property.\n * @override\n * @returns {Date} render end date.\n */\nScheduleViewModel.prototype.getEnds = function() {\n if (this.renderEnds) {\n return this.renderEnds;\n }\n\n return this.model.end;\n};\n\n/**\n * @returns {number} unique number for model.\n */\nScheduleViewModel.prototype.cid = function() {\n return util.stamp(this.model);\n};\n\n/**\n * Shadowing valueOf method for schedule sorting.\n * @returns {Schedule} The model of schedule.\n */\nScheduleViewModel.prototype.valueOf = function() {\n return this.model;\n};\n\n/**\n * Link duration method\n * @returns {number} Schedule#duration result.\n */\nScheduleViewModel.prototype.duration = function() {\n return this.model.duration();\n};\n\n/**\n * Link collidesWith method\n * @param {Schedule|ScheduleViewModel} viewModel - Model or viewmodel instance of Schedule.\n * @returns {boolean} Schedule#collidesWith result.\n */\nScheduleViewModel.prototype.collidesWith = function(viewModel) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = viewModel.getStarts(),\n end = viewModel.getEnds();\n var ownGoingDuration = datetime.millisecondsFrom('minutes', this.valueOf().goingDuration),\n ownComingDuration = datetime.millisecondsFrom('minutes', this.valueOf().comingDuration),\n goingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration),\n comingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n\n if (Math.abs(ownEnds - ownStarts) < SCHEDULE_MIN_DURATION) {\n ownEnds += SCHEDULE_MIN_DURATION;\n }\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n ownStarts -= ownGoingDuration;\n ownEnds += ownComingDuration;\n start -= goingDuration;\n end += comingDuration;\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodule.exports = ScheduleViewModel;\n","/**\n * @fileoverview The standard theme\n * @author NHN FE Development Lab \n */\n'use strict';\n\n/**\n * \"common\" prefix is for entire calendar. \"common\" properties can be overriden by \"week\", \"month\".\n * \"week\" prefix is for weekly and daily view.\n * \"month\" prefix is for monthly view.\n */\nvar theme = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': 'none',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '0',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'none',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': 'inherit',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n\nmodule.exports = theme;\n","/**\n * @fileoverview The all configuration of a theme\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar themeStandard = require('./standard');\nvar themeConfig = require('./themeConfig');\nvar common = require('../common/common');\n\n/**\n * Theme manager\n * @param {object} customTheme - custom theme\n */\nfunction Theme(customTheme) {\n var theme = customTheme || themeStandard;\n\n /**\n * @type {util.HashMap}\n */\n this._map = new util.HashMap();\n\n this.setStyles(theme);\n}\n\n/**\n * Get a style with key\n * @param {string} key - key for getting a style\n * @returns {string|undefined} style\n */\nTheme.prototype.getStyle = function(key) {\n return this._map.get(key);\n};\n\n/**\n * Set a style\n * @param {string} key - key for setting a style\n * @param {string} style - style value\n * @returns {boolean} true if the give key is valid or false\n */\nTheme.prototype.setStyle = function(key, style) {\n var styles = {};\n styles[key] = style;\n\n return this.setStyles(styles).length === 0;\n};\n\n/**\n * Set styles\n * @param {object} styles - multiple styles map\n * @returns {Array.} error keys\n */\nTheme.prototype.setStyles = function(styles) {\n var errors = [];\n\n util.forEach(styles, function(style, key) {\n if (util.isUndefined(themeConfig[key])) {\n errors.push(key);\n } else {\n this._map.set(key, style);\n common.set(this, key, style);\n }\n }, this);\n\n // apply missing styles which have to be default\n util.forEach(themeConfig, function(style, key) {\n if (!this.getStyle(key)) {\n this._map.set(key, style);\n common.set(this, key, style);\n }\n }, this);\n\n return errors;\n};\n\n/**\n * Delete all styles\n */\nTheme.prototype.clear = function() {\n var keys = this._map.keys();\n var categories = {};\n util.forEach(keys, function(key) {\n var category = key.split('.')[0];\n if (!categories[category]) {\n categories[category] = category;\n }\n });\n\n util.forEach(categories, function(child) {\n delete this[child];\n }, this);\n\n this._map.removeAll();\n};\n\nmodule.exports = Theme;\n","/**\n * @fileoverview The all configuration of a theme\n * @author NHN FE Development Lab \n */\n'use strict';\n\n/**\n * Full configuration for theme.\n * \"common\" prefix is for entire calendar. \"common\" properties can be overriden by \"week\", \"month\".\n * \"week\" prefix is for weekly and daily view.\n * \"month\" prefix is for monthly view.\n * @typedef {object} themeConfig\n * @example\n // default keys and styles\n var themeConfig = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': '1px solid #e5e5e5',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '10px',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.backgroundColor': 'inherit',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'inherit',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': '#333',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n 'week.timegridLeftTimezoneLabel.height': '40px',\n 'week.timegridLeftAdditionalTimezone.backgroundColor': 'white',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.pastTime.color': '#bbb',\n 'week.pastTime.fontWeight': 'normal',\n\n 'week.futureTime.color': '#333',\n 'week.futureTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n */\nvar themeConfig = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': '1px solid #e5e5e5',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '10px',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.backgroundColor': 'inherit',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'inherit',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': '#333',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n 'week.timegridLeftTimezoneLabel.height': '40px',\n 'week.timegridLeftAdditionalTimezone.backgroundColor': 'white',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.pastTime.color': '#bbb',\n 'week.pastTime.fontWeight': 'normal',\n\n 'week.futureTime.color': '#333',\n 'week.futureTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n\nmodule.exports = themeConfig;\n","/**\n * @fileoverview Layout view. wrap all view containers at outside.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\nvar View = require('./view');\n\n/**\n * Layout view for toggle each child view. It will controlled via navigation UI.\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container Container element to use layout view.\n * @param {Theme} theme - theme instance\n */\nfunction Layout(container, theme) {\n container = domutil.appendHTMLElement('div', container, config.classname('layout'));\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * @type {Collection} Child view collection.\n */\n this.children = new Collection(function(childView) {\n return childView.viewName;\n });\n /* eslint-enable*/\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n this.applyTheme();\n}\n\nutil.inherit(Layout, View);\n\n/**\n * Clear child views.\n */\nLayout.prototype.clear = function() {\n this.children.each(function(childView) {\n childView.destroy();\n });\n\n this.children.clear();\n this.container.innerHTML = '';\n};\n\n/**\n * Remove child view.\n * @override\n * @param {(string|View)} viewName - name of view or instance.\n */\nLayout.prototype.removeChild = function(viewName) {\n this.children.remove(viewName);\n};\n\n/**\n * Toggle child views.\n * @param {string} viewName - Name of view.\n */\nLayout.prototype.toggleChildView = function(viewName) {\n var container,\n prefix = ['add', 'remove'],\n flag;\n\n this.children.each(function(childView) {\n container = childView.container;\n flag = Number(childView.viewName === viewName);\n domutil[prefix[flag] + 'Class'](container, config.classname('hidden'));\n });\n};\n\nLayout.prototype.applyTheme = function() {\n var style = this.container.style;\n var theme = this.theme.common;\n\n // background color\n style.backgroundColor = theme.backgroundColor;\n};\n\nmodule.exports = Layout;\n","/**\n * @fileoverview Month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n TZDate = require('../../common/timezone').Date,\n tmpl = require('../template/month/month.hbs'),\n View = require('../view'),\n VLayout = require('../..//common/vlayout'),\n WeekdayInMonth = require('./weekdayInMonth');\nvar mmin = Math.min;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {function} [options.scheduleFilter] - schedule filter\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {string} [options.renderMonth='2015-12'] - render month\n * @param {string[]} [options.daynames] - daynames to use upside of month view\n * @param {HTMLElement} container - container element\n * @param {Base.Month} controller - controller instance\n */\nfunction Month(options, container, controller) {\n var theme = controller ? controller.theme : null;\n var monthOption;\n\n options = options || {};\n monthOption = options ? options.month : {};\n\n View.call(this, container);\n\n /**\n * @type {Base.Month}\n */\n this.controller = controller;\n\n /**\n * @type {VLayout}\n */\n this.vLayout = new VLayout({\n panels: [\n {height: parseInt(controller.theme.month.dayname.height, 10) || 42},\n {autoHeight: true}\n ]\n }, container, theme);\n\n /**\n * @type {string}\n */\n this.options = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible);\n },\n startDayOfWeek: 0,\n renderMonth: '2018-01',\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n narrowWeekend: false,\n visibleWeeksCount: null,\n isAlways6Week: true,\n isReadOnly: options.isReadOnly,\n grid: {\n header: {\n height: 34\n },\n footer: {\n height: 3\n }\n }\n }, monthOption);\n\n this.options.grid.header = util.extend({\n height: 34\n }, util.pick(monthOption, 'grid', 'header'));\n this.options.grid.footer = util.extend({\n height: 3\n }, util.pick(monthOption, 'grid', 'footer'));\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = datetime.getGridLeftAndWidth(\n this.options.daynames.length,\n this.options.narrowWeekend,\n this.options.startDayOfWeek);\n}\n\nutil.inherit(Month, View);\n\n/**\n * Name of view. for managing subview at layout view\n * @type {string}\n */\nMonth.prototype.viewName = 'month';\n\n/**\n * Get calendar array by supplied date\n * @param {string} renderMonth - month to render YYYY-MM, weeks2/3 to render YYYY-MM-DD\n * @returns {array.} calendar array\n */\nMonth.prototype._getMonthCalendar = function(renderMonth) {\n var date = new TZDate(renderMonth);\n var startDayOfWeek = this.options.startDayOfWeek || 0;\n var visibleWeeksCount = mmin(this.options.visibleWeeksCount || 0, 6);\n var workweek = this.options.workweek || false;\n var datetimeOptions, calendar;\n\n if (this.options.visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: this.options.isAlways6Week,\n workweek: workweek\n };\n }\n\n calendar = datetime.arr2dCalendar(date, datetimeOptions);\n\n return calendar;\n};\n\n/**\n * Create children view (week) and add children\n * @param {HTMLElement} container - container element to render weeks\n * @param {array.} calendar - calendar array from datetime#arr2dCalendar\n * @param {Theme} theme - theme instance\n */\nMonth.prototype._renderChildren = function(container, calendar, theme) {\n var self = this;\n var weekCount = calendar.length;\n var heightPercent = 100 / weekCount;\n var opt = this.options;\n var renderMonth = opt.renderMonth;\n var narrowWeekend = opt.narrowWeekend;\n var startDayOfWeek = opt.startDayOfWeek;\n var visibleWeeksCount = opt.visibleWeeksCount;\n var visibleScheduleCount = opt.visibleScheduleCount;\n var gridOption = opt.grid;\n var isReadOnly = opt.isReadOnly;\n\n container.innerHTML = '';\n this.children.clear();\n\n util.forEach(calendar, function(weekArr) {\n var start = new TZDate(weekArr[0]),\n end = new TZDate(weekArr[weekArr.length - 1]),\n weekdayViewContainer,\n weekdayView;\n\n weekdayViewContainer = domutil.appendHTMLElement(\n 'div', container, config.classname('month-week-item'));\n\n weekdayView = new WeekdayInMonth({\n renderMonth: renderMonth,\n heightPercent: heightPercent,\n renderStartDate: start,\n renderEndDate: end,\n narrowWeekend: narrowWeekend,\n startDayOfWeek: startDayOfWeek,\n visibleWeeksCount: visibleWeeksCount,\n visibleScheduleCount: visibleScheduleCount,\n grid: gridOption,\n scheduleHeight: parseInt(theme.month.schedule.height, 10),\n scheduleGutter: parseInt(theme.month.schedule.marginTop, 10),\n isReadOnly: isReadOnly\n }, weekdayViewContainer);\n\n self.addChild(weekdayView);\n });\n};\n\n/**\n * Render month view\n * @override\n */\nMonth.prototype.render = function() {\n var self = this,\n opt = this.options,\n vLayout = this.vLayout,\n controller = this.controller,\n daynames = opt.daynames,\n workweek = opt.workweek,\n calendar = this._getMonthCalendar(opt.renderMonth),\n scheduleFilter = opt.scheduleFilter,\n theme = controller ? controller.theme : null,\n styles = this._getStyles(theme),\n grids,\n daynameViewModel,\n baseViewModel;\n\n grids = this.grids = datetime.getGridLeftAndWidth(\n opt.daynames.length,\n opt.narrowWeekend,\n opt.startDayOfWeek\n );\n\n daynameViewModel = util.map(\n util.range(opt.startDayOfWeek, 7).concat(util.range(7)).slice(0, 7),\n function(day, index) {\n return {\n day: day,\n label: daynames[day],\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0,\n color: this._getDayNameColor(theme, day)\n };\n },\n this\n );\n\n if (workweek) {\n grids = this.grids = datetime.getGridLeftAndWidth(5, opt.narrowWeekend, opt.startDayOfWeek, workweek);\n\n daynameViewModel = util.filter(daynameViewModel, function(daynameModel) {\n return !datetime.isWeekend(daynameModel.day);\n });\n\n util.forEach(daynameViewModel, function(daynameModel, index) {\n daynameModel.width = grids[index] ? grids[index].width : 0;\n daynameModel.left = grids[index] ? grids[index].left : 0;\n });\n }\n\n baseViewModel = {\n daynames: daynameViewModel,\n styles: styles\n };\n\n vLayout.panels[0].container.innerHTML = tmpl(baseViewModel);\n\n this._renderChildren(vLayout.panels[1].container, calendar, theme);\n\n baseViewModel.panelHeight = vLayout.panels[1].getHeight();\n\n this.children.each(function(childView) {\n var start = datetime.start(childView.options.renderStartDate);\n var end = datetime.start(childView.options.renderEndDate);\n var eventsInDateRange = controller.findByDateRange(\n datetime.start(start),\n datetime.end(end),\n scheduleFilter\n );\n var dateRange = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY);\n var viewModel = {\n eventsInDateRange: eventsInDateRange,\n range: dateRange.slice(0, grids.length),\n grids: grids,\n panelHeight: baseViewModel.panelHeight,\n theme: theme\n };\n\n childView.render(viewModel);\n\n self._invokeAfterRenderSchedule(eventsInDateRange);\n });\n};\n\n/**\n * Fire 'afterRenderSchedule' event\n * @param {Array} matrices - schedule matrices from view model\n * @fires Month#afterRenderSchedule\n */\nMonth.prototype._invokeAfterRenderSchedule = function(matrices) {\n var self = this;\n util.forEachArray(matrices, function(matrix) {\n util.forEachArray(matrix, function(column) {\n util.forEachArray(column, function(scheduleViewModel) {\n if (scheduleViewModel && !scheduleViewModel.hidden) {\n /**\n * @event Month#afterRenderSchedule\n */\n self.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n });\n });\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMonth.prototype._getStyles = function(theme) {\n var styles = {};\n var dayname;\n\n if (theme) {\n dayname = theme.month.dayname;\n\n styles.borderTop = dayname.borderTop || theme.common.border;\n styles.borderLeft = dayname.borderLeft || theme.common.border;\n styles.height = dayname.height;\n styles.paddingLeft = dayname.paddingLeft;\n styles.paddingRight = dayname.paddingRight;\n styles.fontSize = dayname.fontSize;\n styles.backgroundColor = dayname.backgroundColor;\n styles.fontWeight = dayname.fontWeight;\n styles.textAlign = dayname.textAlign;\n }\n\n return styles;\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @returns {string} style - color style\n */\nMonth.prototype._getDayNameColor = function(theme, day) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = theme.common.holiday.color;\n } else if (day === 6) {\n color = theme.common.saturday.color;\n } else {\n color = theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\nmodule.exports = Month;\n","/**\n * @fileoverview Floating layer for displaying schedule in specific date\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar OUT_PADDING = 5;\nvar VIEW_MIN_WIDTH = 280;\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domevent = require('../../common/domevent'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n FloatingLayer = require('../../common/floatingLayer'),\n common = require('../../common/common'),\n tmpl = require('../template/month/more.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {object} [options.moreLayerSize] - more layer size\n * @param {object} [options.moreLayerSize.width=null] - css width value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {object} [options.moreLayerSize.height=null] - css height value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {HTMLElement} container = container element\n * @param {Theme} theme - theme instance\n */\nfunction More(options, container, theme) {\n View.call(this, container);\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n moreLayerSize: {\n width: null,\n height: null\n },\n scheduleHeight: parseInt(theme.month.schedule.height, 10) || 18,\n scheduleGutter: parseInt(theme.month.schedule.marginTop, 10) || 2,\n scheduleBulletTop: (parseInt(theme.month.schedule.height, 10) || 18) / 3,\n borderRadius: theme.month.schedule.borderRadius\n }, options);\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(More, View);\n\n/**\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nMore.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n var className = config.classname('month-more-close');\n\n if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Mousedown event handler for hiding more layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nMore.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n moreLayer = domutil.closest(target, config.classname('.month-more'));\n\n if (moreLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Get new position for more layer by +n element itself\n * @param {HTMLElement} target - parent grid-line element of +n element\n * @param {HTMLElement} weekItem - weekItem container element\n * @returns {number[]} new position of more layer\n */\nMore.prototype._getRenderPosition = function(target, weekItem) {\n var pos = domevent.getMousePosition({\n clientX: domutil.getPosition(target)[0],\n clientY: domutil.getPosition(weekItem)[1]\n }, this.container);\n var containerSize = domutil.getSize(this.container);\n var left = pos[0] - OUT_PADDING;\n var top = pos[1] - OUT_PADDING;\n\n left = common.ratio(containerSize[0], 100, left);\n top = common.ratio(containerSize[1], 100, top);\n\n return [left, top];\n};\n\n/**\n * @override\n */\nMore.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nMore.prototype.render = function(viewModel) {\n var target = domutil.closest(viewModel.target, config.classname('.weekday-grid-line'));\n var weekItem = domutil.closest(target, config.classname('.month-week-item'));\n var layer = this.layer;\n var self = this;\n var pos = this._getRenderPosition(target, weekItem);\n var minHeight = domutil.getSize(weekItem)[1] + (OUT_PADDING * 2);\n var width = target.offsetWidth + (OUT_PADDING * 2);\n var opt = this.options;\n var optMoreLayerSize = opt.moreLayerSize;\n var styles = this._getStyles(this.theme);\n var maxVisibleSchedulesInLayer = 10;\n var height = '';\n var containerSize = domutil.getSize(this.container);\n var calWidth = 0;\n var calHeight = 0;\n var isOverWidth = false;\n var isOverHeight = false;\n var leftPos = pos[0];\n var topPos = pos[1];\n\n this._viewModel = util.extend(viewModel, {\n scheduleGutter: opt.scheduleGutter,\n scheduleHeight: opt.scheduleHeight,\n scheduleBulletTop: opt.scheduleBulletTop,\n borderRadius: opt.borderRadius,\n styles: styles\n });\n\n width = Math.max(width, VIEW_MIN_WIDTH);\n height = parseInt(styles.titleHeight, 10);\n height += parseInt(styles.titleMarginBottom, 10);\n if (viewModel.schedules.length <= maxVisibleSchedulesInLayer) {\n height += (opt.scheduleGutter + opt.scheduleHeight) * viewModel.schedules.length;\n } else {\n height += (opt.scheduleGutter + opt.scheduleHeight) * maxVisibleSchedulesInLayer;\n }\n height += parseInt(styles.paddingBottom, 10);\n height += OUT_PADDING; // for border\n\n if (optMoreLayerSize.width) {\n width = optMoreLayerSize.width;\n }\n\n if (optMoreLayerSize.height) {\n height = optMoreLayerSize.height;\n }\n\n if (isNaN(height) || height < minHeight) {\n height = minHeight;\n }\n\n layer.setContent(tmpl(viewModel));\n\n calWidth = leftPos * containerSize[0] / 100;\n calHeight = topPos * containerSize[1] / 100;\n isOverWidth = calWidth + width >= containerSize[0];\n isOverHeight = calHeight + height >= containerSize[1];\n leftPos = leftPos + '%';\n topPos = topPos + '%';\n\n if (isOverWidth && isOverHeight) {\n layer.setLTRB({\n right: 0,\n bottom: 0\n });\n } else if (!isOverWidth && isOverHeight) {\n layer.setLTRB({\n left: leftPos,\n bottom: 0\n });\n } else if (isOverWidth && !isOverHeight) {\n layer.setLTRB({\n right: 0,\n top: topPos\n });\n } else {\n layer.setPosition(leftPos, topPos);\n }\n\n layer.setSize(width, height);\n\n layer.show();\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Hide layer\n */\nMore.prototype.hide = function() {\n this.layer.hide();\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nMore.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(tmpl(this._viewModel));\n }\n};\n\n/**\n * Return more layer root element\n * @returns {HTMLElement} root element\n */\nMore.prototype.getMoreViewElement = function() {\n return domutil.find(config.classname('.month-more'), this.layer.container);\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMore.prototype._getStyles = function(theme) {\n var styles = {};\n var listHeight = '';\n\n if (theme) {\n styles.border = theme.month.moreView.border || theme.common.border;\n styles.boxShadow = theme.month.moreView.boxShadow;\n styles.backgroundColor = theme.month.moreView.backgroundColor || theme.common.backgroundColor;\n styles.paddingBottom = theme.month.moreView.paddingBottom;\n styles.titleHeight = theme.month.moreViewTitle.height;\n styles.titleMarginBottom = theme.month.moreViewTitle.marginBottom;\n styles.titleBackgroundColor = theme.month.moreViewTitle.backgroundColor;\n styles.titleBorderBottom = theme.month.moreViewTitle.borderBottom;\n styles.titlePadding = theme.month.moreViewTitle.padding;\n styles.listPadding = theme.month.moreViewList.padding;\n listHeight = 'calc(100%';\n\n if (parseInt(styles.titleHeight, 10)) {\n listHeight += ' - ' + styles.titleHeight;\n }\n if (parseInt(styles.titleMarginBottom, 10)) {\n listHeight += ' - ' + styles.titleMarginBottom;\n }\n listHeight += ')';\n\n styles.listHeight = listHeight;\n }\n\n return styles;\n};\n\nmodule.exports = More;\n","/**\n * @fileoverview Monthday in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common.js'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n Weekday = require('../weekday'),\n baseTmpl = require('../template/month/weekdayInMonth.hbs'),\n scheduleTmpl = require('../template/month/weekdayInMonthSchedule.hbs');\nvar mfloor = Math.floor,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for WeekdayInWeek view\n * @param {number} [options.heightPercent] - height percent of view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction WeekdayInMonth(options, container) {\n Weekday.call(this, options, container);\n container.style.height = options.heightPercent + '%';\n}\n\nutil.inherit(WeekdayInMonth, Weekday);\n\n/**\n * Get schedule container element's bound properly by override\n *\n * View#getViewBound.\n * @override\n */\nWeekdayInMonth.prototype.getViewBound = function() {\n var bound = View.prototype.getViewBound.call(this);\n\n return bound;\n};\n\n/**\n * Get limit index of schedule block in current view\n * @param {number} panelHeight - panel's height for pre-calculation\n * @returns {number} limit index\n */\nWeekdayInMonth.prototype._getRenderLimitIndex = function(panelHeight) {\n var opt = this.options;\n var containerHeight = panelHeight || this.getViewBound().height;\n var gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0;\n var gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0;\n var visibleScheduleCount = opt.visibleScheduleCount || 0;\n var count;\n\n containerHeight -= (gridHeaderHeight + gridFooterHeight);\n\n count = mfloor(containerHeight / (opt.scheduleHeight + opt.scheduleGutter));\n\n if (!visibleScheduleCount) {\n visibleScheduleCount = count;\n }\n\n return mmin(count, visibleScheduleCount); // subtraction for '+n' label block\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options,\n gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0,\n gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0,\n renderLimitIdx = this._getRenderLimitIndex() + 1,\n exceedDate = this.getExceedDate(renderLimitIdx, viewModel.eventsInDateRange, viewModel.range),\n styles = this._getStyles(viewModel.theme);\n var baseViewModel;\n\n viewModel = util.extend({\n exceedDate: exceedDate\n }, viewModel);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n matrices: viewModel.eventsInDateRange,\n gridHeaderHeight: gridHeaderHeight,\n gridFooterHeight: gridFooterHeight,\n renderLimitIdx: renderLimitIdx,\n isReadOnly: opt.isReadOnly,\n styles: styles\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.render = function(viewModel) {\n var container = this.container,\n baseViewModel = this.getBaseViewModel(viewModel),\n scheduleContainer;\n\n if (!this.options.visibleWeeksCount) {\n setIsOtherMonthFlag(baseViewModel.dates, this.options.renderMonth, viewModel.theme);\n }\n\n container.innerHTML = baseTmpl(baseViewModel);\n\n scheduleContainer = domutil.find(\n config.classname('.weekday-schedules'),\n container\n );\n\n if (!scheduleContainer) {\n return;\n }\n\n scheduleContainer.innerHTML = scheduleTmpl(baseViewModel);\n\n common.setAutoEllipsis(\n config.classname('.weekday-schedule-title'),\n container,\n true\n );\n};\n\nWeekdayInMonth.prototype._beforeDestroy = function() {\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nWeekdayInMonth.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.borderTop = theme.common.border;\n styles.borderLeft = theme.common.border;\n styles.fontSize = theme.month.day.fontSize;\n styles.borderRadius = theme.month.schedule.borderRadius;\n styles.marginLeft = theme.month.schedule.marginLeft;\n styles.marginRight = theme.month.schedule.marginRight;\n styles.scheduleBulletTop = this.options.scheduleHeight / 3;\n }\n\n return styles;\n};\n\n/**\n * 현재 달이 아닌 날짜에 대해 isOtherMonth = true 플래그를 추가한다.\n * @param {Array} dates - 날짜정보 배열\n * @param {TZDate} renderMonth - 현재 렌더링중인 월 (YYYYMM)\n * @param {Theme} theme - theme instance\n */\nfunction setIsOtherMonthFlag(dates, renderMonth, theme) {\n var month = renderMonth.getMonth() + 1;\n\n util.forEach(dates, function(dateObj) {\n var isOtherMonth = dateObj.month !== month;\n dateObj.isOtherMonth = isOtherMonth;\n\n if (isOtherMonth) {\n dateObj.color = Weekday.prototype._getDayNameColor(theme, dateObj.day, dateObj.isToday, isOtherMonth);\n }\n });\n}\n\nmodule.exports = WeekdayInMonth;\n","/**\n * @fileoverview Floating layer for writing new schedules\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar View = require('../../view/view');\nvar FloatingLayer = require('../../common/floatingLayer');\nvar util = require('tui-code-snippet');\nvar DatePicker = require('tui-date-picker');\nvar timezone = require('../../common/timezone');\nvar config = require('../../config');\nvar domevent = require('../../common/domevent');\nvar domutil = require('../../common/domutil');\nvar common = require('../../common/common');\nvar tmpl = require('../template/popup/scheduleCreationPopup.hbs');\nvar TZDate = timezone.Date;\nvar MAX_WEEK_OF_MONTH = 6;\nvar ARROW_WIDTH_HALF = 8;\n\n/**\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container - container element\n * @param {Array.} calendars - calendar list used to create new schedule\n * @param {boolean} usageStatistics - GA tracking options in Calendar\n */\nfunction ScheduleCreationPopup(container, calendars, usageStatistics) {\n View.call(this, container);\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n this._selectedCal = null;\n this._schedule = null;\n this.calendars = calendars;\n this._focusedDropdown = null;\n this._usageStatistics = usageStatistics;\n this._onClickListeners = [\n this._selectDropdownMenuItem.bind(this),\n this._toggleDropdownMenuView.bind(this),\n this._closeDropdownMenuView.bind(this, null),\n this._closePopup.bind(this),\n this._toggleIsAllday.bind(this),\n this._toggleIsPrivate.bind(this),\n this._onClickSaveSchedule.bind(this)\n ];\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(ScheduleCreationPopup, View);\n\n/**\n * Mousedown event handler for hiding popup layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nScheduleCreationPopup.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n popupLayer = domutil.closest(target, config.classname('.floating-layer'));\n\n if (popupLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * @override\n */\nScheduleCreationPopup.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nScheduleCreationPopup.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n\n util.forEach(this._onClickListeners, function(listener) {\n return !listener(target);\n });\n};\n\n/**\n * Test click event target is close button, and return layer is closed(hidden)\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether popup layer is closed or not\n */\nScheduleCreationPopup.prototype._closePopup = function(target) {\n var className = config.classname('popup-close');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.hide();\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Toggle dropdown menu view, when user clicks dropdown button\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether user clicked dropdown button or not\n */\nScheduleCreationPopup.prototype._toggleDropdownMenuView = function(target) {\n var className = config.classname('dropdown-button');\n var dropdownBtn = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n\n if (!dropdownBtn) {\n return false;\n }\n\n if (domutil.hasClass(dropdownBtn.parentNode, config.classname('open'))) {\n this._closeDropdownMenuView(dropdownBtn.parentNode);\n } else {\n this._openDropdownMenuView(dropdownBtn.parentNode);\n }\n\n return true;\n};\n\n/**\n * Close drop down menu\n * @param {HTMLElement} dropdown - dropdown element that has a opened dropdown menu\n */\nScheduleCreationPopup.prototype._closeDropdownMenuView = function(dropdown) {\n dropdown = dropdown || this._focusedDropdown;\n if (dropdown) {\n domutil.removeClass(dropdown, config.classname('open'));\n this._focusedDropdown = null;\n }\n};\n\n/**\n * Open drop down menu\n * @param {HTMLElement} dropdown - dropdown element that has a closed dropdown menu\n */\nScheduleCreationPopup.prototype._openDropdownMenuView = function(dropdown) {\n domutil.addClass(dropdown, config.classname('open'));\n this._focusedDropdown = dropdown;\n};\n\n/**\n * If click dropdown menu item, close dropdown menu\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether\n */\nScheduleCreationPopup.prototype._selectDropdownMenuItem = function(target) {\n var itemClassName = config.classname('dropdown-menu-item');\n var iconClassName = config.classname('icon');\n var contentClassName = config.classname('content');\n var selectedItem = domutil.hasClass(target, itemClassName) ? target : domutil.closest(target, '.' + itemClassName);\n var bgColor, title, dropdown, dropdownBtn;\n\n if (!selectedItem) {\n return false;\n }\n\n bgColor = domutil.find('.' + iconClassName, selectedItem).style.backgroundColor || 'transparent';\n title = domutil.find('.' + contentClassName, selectedItem).innerHTML;\n\n dropdown = domutil.closest(selectedItem, config.classname('.dropdown'));\n dropdownBtn = domutil.find(config.classname('.dropdown-button'), dropdown);\n domutil.find('.' + contentClassName, dropdownBtn).innerText = title;\n\n if (domutil.hasClass(dropdown, config.classname('section-calendar'))) {\n domutil.find('.' + iconClassName, dropdownBtn).style.backgroundColor = bgColor;\n this._selectedCal = common.find(this.calendars, function(cal) {\n return cal.id === domutil.getData(selectedItem, 'calendarId');\n });\n }\n\n domutil.removeClass(dropdown, config.classname('open'));\n\n return true;\n};\n\n/**\n * Toggle allday checkbox state\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether event target is allday section or not\n */\nScheduleCreationPopup.prototype._toggleIsAllday = function(target) {\n var className = config.classname('section-allday');\n var alldaySection = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n var checkbox;\n\n if (alldaySection) {\n checkbox = domutil.find(config.classname('.checkbox-square'), alldaySection);\n checkbox.checked = !checkbox.checked;\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Toggle private button\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether event target is private section or not\n */\nScheduleCreationPopup.prototype._toggleIsPrivate = function(target) {\n var className = config.classname('section-private');\n var privateSection = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n\n if (privateSection) {\n if (domutil.hasClass(privateSection, config.classname('public'))) {\n domutil.removeClass(privateSection, config.classname('public'));\n } else {\n domutil.addClass(privateSection, config.classname('public'));\n }\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Save new schedule if user clicked save button\n * @emits ScheduleCreationPopup#saveSchedule\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether save button is clicked or not\n */\nScheduleCreationPopup.prototype._onClickSaveSchedule = function(target) {\n var className = config.classname('popup-save');\n var cssPrefix = config.cssPrefix;\n var title, isPrivate, location, isAllDay, startDate, endDate, state;\n var start, end, calendarId;\n var changes;\n\n if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n return false;\n }\n\n title = domutil.get(cssPrefix + 'schedule-title');\n startDate = new TZDate(this.rangePicker.getStartDate()).toLocalTime();\n endDate = new TZDate(this.rangePicker.getEndDate()).toLocalTime();\n\n if (!title.value) {\n title.focus();\n\n return true;\n }\n\n if (!startDate && !endDate) {\n return true;\n }\n\n isPrivate = !domutil.hasClass(domutil.get(cssPrefix + 'schedule-private'), config.classname('public'));\n location = domutil.get(cssPrefix + 'schedule-location');\n state = domutil.get(cssPrefix + 'schedule-state');\n isAllDay = !!domutil.get(cssPrefix + 'schedule-allday').checked;\n\n if (isAllDay) {\n startDate.setHours(0, 0, 0);\n endDate.setHours(23, 59, 59);\n }\n\n start = new TZDate(startDate);\n end = new TZDate(endDate);\n\n if (this._selectedCal) {\n calendarId = this._selectedCal.id;\n }\n\n if (this._isEditMode) {\n changes = common.getScheduleChanges(\n this._schedule,\n ['calendarId', 'title', 'location', 'start', 'end', 'isAllDay', 'state'],\n {\n calendarId: calendarId,\n title: title.value,\n location: location.value,\n start: start,\n end: end,\n isAllDay: isAllDay,\n state: state.innerText\n }\n );\n\n this.fire('beforeUpdateSchedule', {\n schedule: util.extend({\n raw: {\n class: isPrivate ? 'private' : 'public'\n }\n }, this._schedule),\n changes: changes,\n start: start,\n end: end,\n calendar: this._selectedCal,\n triggerEventName: 'click'\n });\n } else {\n /**\n * @event ScheduleCreationPopup#beforeCreateSchedule\n * @type {object}\n * @property {Schedule} schedule - new schedule instance to be added\n */\n this.fire('beforeCreateSchedule', {\n calendarId: calendarId,\n title: title.value,\n location: location.value,\n raw: {\n class: isPrivate ? 'private' : 'public'\n },\n start: start,\n end: end,\n isAllDay: isAllDay,\n state: state.innerText\n });\n }\n\n this.hide();\n\n return true;\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nScheduleCreationPopup.prototype.render = function(viewModel) {\n var calendars = this.calendars;\n var layer = this.layer;\n var self = this;\n var boxElement, guideElements;\n\n viewModel.zIndex = this.layer.zIndex + 5;\n viewModel.calendars = calendars;\n if (calendars.length) {\n viewModel.selectedCal = this._selectedCal = calendars[0];\n }\n\n this._isEditMode = viewModel.schedule && viewModel.schedule.id;\n if (this._isEditMode) {\n boxElement = viewModel.target;\n viewModel = this._makeEditModeData(viewModel);\n } else {\n this.guide = viewModel.guide;\n guideElements = this._getGuideElements(this.guide);\n boxElement = guideElements.length ? guideElements[0] : null;\n }\n layer.setContent(tmpl(viewModel));\n this._createDatepicker(viewModel.start, viewModel.end, viewModel.isAllDay);\n layer.show();\n\n if (boxElement) {\n this._setPopupPositionAndArrowDirection(boxElement.getBoundingClientRect());\n }\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Make view model for edit mode\n * @param {object} viewModel - original view model from 'beforeCreateEditPopup'\n * @returns {object} - edit mode view model\n */\nScheduleCreationPopup.prototype._makeEditModeData = function(viewModel) {\n var schedule = viewModel.schedule;\n var title, isPrivate, location, startDate, endDate, isAllDay, state;\n var raw = schedule.raw || {};\n var calendars = this.calendars;\n\n var id = schedule.id;\n title = schedule.title;\n isPrivate = raw['class'] === 'private';\n location = schedule.location;\n startDate = schedule.start;\n endDate = schedule.end;\n isAllDay = schedule.isAllDay;\n state = schedule.state;\n\n viewModel.selectedCal = this._selectedCal = common.find(this.calendars, function(cal) {\n return cal.id === viewModel.schedule.calendarId;\n });\n\n this._schedule = schedule;\n\n return {\n id: id,\n selectedCal: this._selectedCal,\n calendars: calendars,\n title: title,\n isPrivate: isPrivate,\n location: location,\n isAllDay: isAllDay,\n state: state,\n start: startDate,\n end: endDate,\n raw: {\n class: isPrivate ? 'private' : 'public'\n },\n zIndex: this.layer.zIndex + 5,\n isEditMode: this._isEditMode\n };\n};\n\n/**\n * Set popup position and arrow direction to apear near guide element\n * @param {MonthCreationGuide|TimeCreationGuide|DayGridCreationGuide} guideBound - creation guide element\n */\nScheduleCreationPopup.prototype._setPopupPositionAndArrowDirection = function(guideBound) {\n var layer = domutil.find(config.classname('.popup'), this.layer.container);\n var layerSize = {\n width: layer.offsetWidth,\n height: layer.offsetHeight\n };\n var windowSize = {\n right: window.innerWidth,\n bottom: window.innerHeight\n };\n var parentRect = this.layer.parent.getBoundingClientRect();\n var parentBounds = {\n left: parentRect.left,\n top: parentRect.top\n };\n var pos;\n\n pos = this._calcRenderingData(layerSize, windowSize, guideBound);\n pos.x -= parentBounds.left;\n pos.y -= (parentBounds.top + 6);\n this.layer.setPosition(pos.x, pos.y);\n this._setArrowDirection(pos.arrow);\n};\n\n/**\n * Get guide elements from creation guide object\n * It is used to calculate rendering position of popup\n * It will be disappeared when hiding popup\n * @param {MonthCreationGuide|TimeCreationGuide|AlldayCreationGuide} guide - creation guide\n * @returns {Array.} creation guide element\n */\nScheduleCreationPopup.prototype._getGuideElements = function(guide) {\n var guideElements = [];\n var i = 0;\n\n if (guide.guideElement) {\n guideElements.push(guide.guideElement);\n } else if (guide.guideElements) {\n for (; i < MAX_WEEK_OF_MONTH; i += 1) {\n if (guide.guideElements[i]) {\n guideElements.push(guide.guideElements[i]);\n }\n }\n }\n\n return guideElements;\n};\n\n/**\n * Get guide element's bound data which only includes top, right, bottom, left\n * @param {Array.} guideElements - creation guide elements\n * @returns {Object} - popup bound data\n */\nScheduleCreationPopup.prototype._getBoundOfFirstRowGuideElement = function(guideElements) {\n var bound;\n\n if (!guideElements.length) {\n return null;\n }\n\n bound = guideElements[0].getBoundingClientRect();\n\n return {\n top: bound.top,\n left: bound.left,\n bottom: bound.bottom,\n right: bound.right\n };\n};\n\n/**\n * Calculate rendering position usering guide elements\n * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} parentSize - width and height of the upper layer, that acts as a border of popup\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} guideBound - guide element bound data\n * @returns {PopupRenderingData} rendering position of popup and popup arrow\n */\nScheduleCreationPopup.prototype._calcRenderingData = function(layerSize, parentSize, guideBound) {\n var guideHorizontalCenter = (guideBound.left + guideBound.right) / 2;\n var x = guideHorizontalCenter - (layerSize.width / 2);\n var y = guideBound.top - layerSize.height + 3;\n var arrowDirection = 'arrow-bottom';\n var arrowLeft;\n\n if (y < 0) {\n y = guideBound.bottom + 9;\n arrowDirection = 'arrow-top';\n }\n\n if (x > 0 && (x + layerSize.width > parentSize.right)) {\n x = parentSize.right - layerSize.width;\n }\n\n if (x < 0) {\n x = 0;\n }\n\n if (guideHorizontalCenter - x !== layerSize.width / 2) {\n arrowLeft = guideHorizontalCenter - x - ARROW_WIDTH_HALF;\n }\n\n /**\n * @typedef {Object} PopupRenderingData\n * @property {number} x - left position\n * @property {number} y - top position\n * @property {string} arrow.direction - direction of popup arrow\n * @property {number} [arrow.position] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n x: x,\n y: y,\n arrow: {\n direction: arrowDirection,\n position: arrowLeft\n }\n };\n};\n\n/**\n * Set arrow's direction and position\n * @param {Object} arrow rendering data for popup arrow\n */\nScheduleCreationPopup.prototype._setArrowDirection = function(arrow) {\n var direction = arrow.direction || 'arrow-bottom';\n var arrowEl = domutil.get(config.classname('popup-arrow'));\n var borderElement = domutil.find(config.classname('.popup-arrow-border', arrowEl));\n\n if (direction !== config.classname('arrow-bottom')) {\n domutil.removeClass(arrowEl, config.classname('arrow-bottom'));\n domutil.addClass(arrowEl, config.classname(direction));\n }\n\n if (arrow.position) {\n borderElement.style.left = arrow.position + 'px';\n }\n};\n\n/**\n * Create date range picker using start date and end date\n * @param {TZDate} start - start date\n * @param {TZDate} end - end date\n * @param {boolean} isAllDay - isAllDay\n */\nScheduleCreationPopup.prototype._createDatepicker = function(start, end, isAllDay) {\n var cssPrefix = config.cssPrefix;\n\n this.rangePicker = DatePicker.createRangePicker({\n startpicker: {\n date: new TZDate(start).toDate(),\n input: '#' + cssPrefix + 'schedule-start-date',\n container: '#' + cssPrefix + 'startpicker-container'\n },\n endpicker: {\n date: new TZDate(end).toDate(),\n input: '#' + cssPrefix + 'schedule-end-date',\n container: '#' + cssPrefix + 'endpicker-container'\n },\n format: isAllDay ? 'yyyy-MM-dd' : 'yyyy-MM-dd HH:mm',\n timepicker: isAllDay ? null : {\n showMeridiem: false,\n usageStatistics: this._usageStatistics\n },\n usageStatistics: this._usageStatistics\n });\n};\n\n/**\n * Hide layer\n */\nScheduleCreationPopup.prototype.hide = function() {\n this.layer.hide();\n\n if (this.guide) {\n this.guide.clearGuideElement();\n this.guide = null;\n }\n\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nScheduleCreationPopup.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(this.tmpl(this._viewModel));\n }\n};\n\n/**\n * Set calendar list\n * @param {Array.} calendars - calendar list\n */\nScheduleCreationPopup.prototype.setCalendars = function(calendars) {\n this.calendars = calendars || [];\n};\n\nmodule.exports = ScheduleCreationPopup;\n","/**\n * @fileoverview Floating layer for showing detail schedule\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar View = require('../../view/view');\nvar FloatingLayer = require('../../common/floatingLayer');\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domevent = require('../../common/domevent'),\n domutil = require('../../common/domutil');\nvar tmpl = require('../template/popup/scheduleDetailPopup.hbs');\nvar ARROW_WIDTH_HALF = 8;\n\n/**\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container - container element\n */\nfunction ScheduleDetailPopup(container) {\n View.call(this, container);\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n this._schedule = null;\n this._calendar = null;\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(ScheduleDetailPopup, View);\n\n/**\n * Mousedown event handler for hiding popup layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nScheduleDetailPopup.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n popupLayer = domutil.closest(target, config.classname('.floating-layer'));\n\n if (popupLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * @override\n */\nScheduleDetailPopup.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nScheduleDetailPopup.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n\n this._onClickEditSchedule(target);\n\n this._onClickDeleteSchedule(target);\n};\n\n/**\n * @fires ScheduleDetailPopup#clickEditSchedule\n * @param {HTMLElement} target - event target\n */\nScheduleDetailPopup.prototype._onClickEditSchedule = function(target) {\n var className = config.classname('popup-edit');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.fire('beforeUpdateSchedule', {\n schedule: this._schedule,\n triggerEventName: 'click',\n target: this._scheduleEl\n });\n\n this.hide();\n }\n};\n\n/**\n * @fires ScheduleDetailPopup#clickEditSchedule\n * @param {HTMLElement} target - event target\n */\nScheduleDetailPopup.prototype._onClickDeleteSchedule = function(target) {\n var className = config.classname('popup-delete');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.fire('beforeDeleteSchedule', {\n schedule: this._schedule\n });\n\n this.hide();\n }\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nScheduleDetailPopup.prototype.render = function(viewModel) {\n var layer = this.layer;\n var self = this;\n\n layer.setContent(tmpl({\n schedule: viewModel.schedule,\n calendar: viewModel.calendar\n }));\n layer.show();\n this._setPopupPositionAndArrowDirection(viewModel.event);\n\n this._schedule = viewModel.schedule;\n this._calendar = viewModel.calendar;\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Set popup position and arrow direction to apear near guide element\n * @param {Event} event - creation guide element\n */\nScheduleDetailPopup.prototype._setPopupPositionAndArrowDirection = function(event) {\n var layer = domutil.find(config.classname('.popup'), this.layer.container);\n var layerSize = {\n width: layer.offsetWidth,\n height: layer.offsetHeight\n };\n var windowSize = {\n right: window.innerWidth,\n bottom: window.innerHeight\n };\n var parentRect = this.layer.parent.getBoundingClientRect();\n var parentBounds = {\n left: parentRect.left,\n top: parentRect.top\n };\n var scheduleEl = event.target || event.srcElement;\n var blockEl = domutil.closest(scheduleEl, config.classname('.time-date-schedule-block'))\n || domutil.closest(scheduleEl, config.classname('.weekday-schedule'))\n || scheduleEl;\n var scheduleBound = blockEl.getBoundingClientRect();\n var pos;\n\n this._scheduleEl = blockEl;\n\n pos = this._calcRenderingData(layerSize, windowSize, scheduleBound);\n pos.x -= parentBounds.left + 4;\n pos.y -= (parentBounds.top + ARROW_WIDTH_HALF);\n this.layer.setPosition(pos.x, pos.y);\n this._setArrowDirection(pos.arrow);\n};\n\n/**\n * Calculate rendering position usering guide elements\n * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} parentSize - width and height of the upper layer, that acts as a border of popup\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} guideBound - guide element bound data\n * @returns {PopupRenderingData} rendering position of popup and popup arrow\n */\nScheduleDetailPopup.prototype._calcRenderingData = function(layerSize, parentSize, guideBound) {\n var guideVerticalCenter = (guideBound.top + guideBound.bottom) / 2;\n var x = guideBound.right;\n var y = guideVerticalCenter;\n var arrowDirection = 'arrow-left';\n var arrowTop;\n\n if (y < 0) {\n y = y + (layerSize.height / 2) - guideVerticalCenter;\n }\n\n if (x > 0 && (x + layerSize.width > parentSize.right)) {\n x = guideBound.left - layerSize.width - ARROW_WIDTH_HALF - 3;\n arrowDirection = 'arrow-right';\n }\n\n if (x < 0) {\n x = 0;\n }\n\n if (guideBound.right > x + layerSize.width) {\n arrowDirection = 'arrow-right';\n }\n\n /**\n * @typedef {Object} PopupRenderingData\n * @property {number} x - left position\n * @property {number} y - top position\n * @property {string} arrow.direction - direction of popup arrow\n * @property {number} [arrow.position] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n x: x + ARROW_WIDTH_HALF,\n y: y - (layerSize.height / 2) + ARROW_WIDTH_HALF,\n arrow: {\n direction: arrowDirection,\n position: arrowTop\n }\n };\n};\n\n/**\n * Set arrow's direction and position\n * @param {Object} arrow rendering data for popup arrow\n */\nScheduleDetailPopup.prototype._setArrowDirection = function(arrow) {\n var direction = arrow.direction || 'arrow-left';\n var arrowEl = domutil.find(config.classname('.popup-arrow'), this.layer.container);\n var borderElement = domutil.find(config.classname('.popup-arrow-border', arrowEl));\n\n if (direction !== config.classname('arrow-left')) {\n domutil.removeClass(arrowEl, config.classname('arrow-left'));\n domutil.addClass(arrowEl, config.classname(direction));\n }\n\n if (arrow.position) {\n borderElement.style.top = arrow.position + 'px';\n }\n};\n\n/**\n * Hide layer\n */\nScheduleDetailPopup.prototype.hide = function() {\n this.layer.hide();\n\n if (this.guide) {\n this.guide.clearGuideElement();\n this.guide = null;\n }\n\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nScheduleDetailPopup.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(this.tmpl(this._viewModel));\n }\n};\n\nmodule.exports = ScheduleDetailPopup;\n","/* eslint complexity: 0 */\n/**\n * @fileoverview Helpers for handlebar templates.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Handlebars = require('handlebars-template-loader/runtime');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar config = require('../../config');\nvar mmax = Math.max;\nvar SIXTY_MINUTES = 60;\nvar helpers = {\n /**\n * Stamp supplied object\n *\n * Commonly use for rendering object's unique ID to rendered view\n * @param {object} obj - object to stamp\n * @returns {number} stamp value\n */\n 'stamp': function(obj) {\n return util.stamp(obj);\n },\n\n /**\n * Whether supplied object are equal?\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} result of operation\n */\n 'equal': function(a, b) {\n return a === b;\n },\n\n /**\n * OR\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} or\n */\n 'or': function(a, b) {\n return a || b;\n },\n\n /**\n * AND\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} or\n */\n 'and': function(a, b) {\n return a && b;\n },\n\n /**\n * Compare object or apply logical operation by customizable oper parameter\n * @param {*} a - a\n * @param {string} oper - operator ex) '==', '<'\n * @param {*} b - b\n * @param {Handlebars} options - handlebar options\n * @returns {boolean} result of operation\n */\n 'fi': function(a, oper, b, options) {\n switch (oper) {\n case '==':\n return (a == b) ? options.fn(this) : options.inverse(this); // eslint-disable-line\n case '===':\n return (a === b) ? options.fn(this) : options.inverse(this);\n case '!==':\n return (a !== b) ? options.fn(this) : options.inverse(this);\n case '<':\n return (a < b) ? options.fn(this) : options.inverse(this);\n case '||':\n return (a || b) ? options.fn(this) : options.inverse(this);\n default:\n throw new Error('Not match operation');\n }\n },\n\n /**\n * Get hhmm formatted time str\n * @param {Date} date - date object\n * @returns {string} formatted value\n */\n 'hhmm': function(date) {\n return datetime.format(date, 'HH:mm');\n },\n\n /**\n * Get `width` stylesheet string\n * @param {number} width - width percentage\n * @returns {string} css style part\n */\n 'common-width': function(width) {\n return getElSize(width, '%', 'width');\n },\n\n /**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\n 'grid-left': function(viewModel, grids) {\n return getElLeft(viewModel, grids);\n },\n\n /**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\n 'grid-width': function(viewModel, grids) {\n return getElWidth(viewModel, grids);\n },\n\n /**\n * Use in time.hbs\n * @param {ScheduleViewModel} viewModel viewModel\n * @returns {string} element size css class\n */\n 'time-scheduleBlock': function(viewModel) {\n var top = getElSize(viewModel.top, 'px', 'top'),\n left = getElSize(viewModel.left, '%', 'left'),\n width = getElSize(viewModel.width, '%', 'width'),\n height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'month-scheduleBlock': function(viewModel, grids, blockHeight, paddingTop) {\n var top = getElSize(((viewModel.top - 1) * blockHeight) + paddingTop, 'px', 'top');\n var left = getElSize(grids[viewModel.left] ? grids[viewModel.left].left : 0, '%', 'left');\n var width = getElSize(getElWidth(viewModel, grids), '%', 'width');\n var height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'holiday': function(day) {\n var cssClass = '';\n\n if (day === 0) {\n cssClass = config.classname('holiday-sun');\n }\n\n if (day === 6) {\n cssClass = config.classname('holiday-sat');\n }\n\n return cssClass;\n },\n\n /**\n * Add supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'add': function(a, b) {\n return a + b;\n },\n\n /**\n * Multiply supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'multiply': function(a, b) {\n return a * b;\n },\n\n /**\n * Divide supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'divide': function(a, b) {\n return a / b;\n },\n\n /**\n * Subtract supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'subtract': function(a, b) {\n return a - b;\n },\n\n 'getRight': function(a, b) {\n return mmax(0, 100 - (a + b));\n },\n\n /**\n * Get css prefix in global configuration\n * @returns {string} css prefix\n */\n 'CSS_PREFIX': function() {\n return config.cssPrefix;\n },\n\n 'reverse': function(array) {\n return array.slice().reverse();\n },\n\n /**********\n * Default schedule template\n **********/\n\n 'milestone-tmpl': function(model) {\n var icon = config.classname('icon');\n var iconName = config.classname('ic-milestone');\n\n return '' + common.stripTags(model.title) + '';\n },\n\n 'milestoneTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return 'Milestone';\n },\n\n 'task-tmpl': function(model) {\n return '#' + model.title;\n },\n\n 'taskTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return 'Task';\n },\n\n 'alldayTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return 'All Day';\n },\n\n 'allday-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'time-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'goingDuration-tmpl': function(model) {\n var goingDuration = model.goingDuration;\n var hour = parseInt(goingDuration / SIXTY_MINUTES, 10);\n var minutes = goingDuration % SIXTY_MINUTES;\n\n return 'GoingTime ' + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n },\n\n 'comingDuration-tmpl': function(model) {\n var goingDuration = model.goingDuration;\n var hour = parseInt(goingDuration / SIXTY_MINUTES, 10);\n var minutes = goingDuration % SIXTY_MINUTES;\n\n return 'ComingTime ' + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n },\n\n 'monthMoreTitleDate-tmpl': function(date, dayname) {\n var classDay = config.classname('month-more-title-day');\n var classDayLabel = config.classname('month-more-title-day-label');\n var day = util.pick(date.split('.'), 2);\n\n return '' + day + ' ' + dayname + '';\n },\n\n 'monthMoreClose-tmpl': function() {\n return '';\n },\n\n 'monthGridHeader-tmpl': function(model) {\n var date = parseInt(model.date.split('-')[2], 10);\n var classNames = [];\n\n classNames.push(config.classname('weekday-grid-date'));\n if (model.isToday) {\n classNames.push(config.classname('weekday-grid-date-decorator'));\n }\n\n return '' + date + '';\n },\n\n 'monthGridHeaderExceed-tmpl': function(hiddenSchedules) {\n var className = config.classname('weekday-grid-more-schedules');\n\n return '' + hiddenSchedules + ' more';\n },\n\n 'monthGridFooter-tmpl': function() {\n return '';\n },\n\n /* eslint no-unused-vars: 0 */\n 'monthGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '';\n },\n\n 'monthDayname-tmpl': function(model) {\n return model.label;\n },\n\n 'weekDayname-tmpl': function(model) {\n var classDate = config.classname('dayname-date');\n var className = config.classname('dayname-name');\n\n return '' + model.date + '  ' + model.dayName + '';\n },\n\n 'weekGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '+' + hiddenSchedules;\n },\n\n 'dayGridTitle-tmpl': function(viewName) {\n var tmpl = Handlebars.helpers[viewName + 'Title-tmpl'];\n if (tmpl) {\n return tmpl(viewName);\n }\n\n return viewName;\n },\n\n 'schedule-tmpl': function(model) {\n var tmpl = Handlebars.helpers[model.category + '-tmpl'];\n if (tmpl) {\n return tmpl(model);\n }\n\n return '';\n },\n\n 'collapseBtnTitle-tmpl': function() {\n var iconName = config.classname('icon');\n var closeIconName = config.classname('ic-arrow-solid-top');\n\n return '';\n },\n\n 'timezoneDisplayLabel-tmpl': function(timezoneOffset, displayLabel) {\n var gmt, hour, minutes;\n\n if (util.isUndefined(displayLabel)) {\n gmt = timezoneOffset < 0 ? '-' : '+';\n hour = Math.abs(parseInt(timezoneOffset / SIXTY_MINUTES, 10));\n minutes = Math.abs(timezoneOffset % SIXTY_MINUTES);\n displayLabel = gmt + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n }\n\n return displayLabel;\n },\n\n 'timegridDisplayPrimayTime-tmpl': function(time) {\n /* TODO: 삭제 필요 (will be deprecated) */\n return Handlebars.helpers['timegridDisplayPrimaryTime-tmpl'](time);\n },\n\n 'timegridDisplayPrimaryTime-tmpl': function(time) {\n var hour = time.hour;\n var meridiem = hour >= 12 ? 'pm' : 'am';\n\n if (hour > 12) {\n hour = hour - 12;\n }\n\n return hour + ' ' + meridiem;\n },\n\n 'timegridDisplayTime-tmpl': function(time) {\n return datetime.leadingZero(time.hour, 2) + ':' + datetime.leadingZero(time.minutes, 2);\n },\n\n 'timegridCurrentTime-tmpl': function(timezone) {\n var templates = [];\n\n if (timezone.dateDifference) {\n templates.push('[' + timezone.dateDifferenceSign + timezone.dateDifference + ']
    ');\n }\n\n templates.push(datetime.format(timezone.hourmarker, 'HH:mm'));\n\n return templates.join('');\n },\n\n 'popupIsAllDay-tmpl': function() {\n return 'All day';\n },\n\n 'popupStateFree-tmpl': function() {\n return 'Free';\n },\n\n 'popupStateBusy-tmpl': function() {\n return 'Busy';\n },\n\n 'titlePlaceholder-tmpl': function() {\n return 'Subject';\n },\n\n 'locationPlaceholder-tmpl': function() {\n return 'Location';\n },\n\n 'startDatePlaceholder-tmpl': function() {\n return 'Start date';\n },\n\n 'endDatePlaceholder-tmpl': function() {\n return 'End date';\n },\n 'popupSave-tmpl': function() {\n return 'Save';\n },\n 'popupUpdate-tmpl': function() {\n return 'Update';\n },\n 'popupDetailDate-tmpl': function(isAllDay, start, end) {\n var isSameDate = datetime.isSameDate(start, end);\n var endFormat = (isSameDate ? '' : 'YYYY.MM.DD ') + 'hh:mm tt';\n\n if (isAllDay) {\n return datetime.format(start, 'YYYY.MM.DD') + (isSameDate ? '' : ' - ' + datetime.format(end, 'YYYY.MM.DD'));\n }\n\n return (datetime.format(start, 'YYYY.MM.DD hh:mm tt') + ' - ' + datetime.format(end, endFormat));\n },\n 'popupDetailLocation-tmpl': function(schedule) {\n return schedule.location;\n },\n 'popupDetailUser-tmpl': function(schedule) {\n return (schedule.attendees || []).join(', ');\n },\n 'popupDetailState-tmpl': function(schedule) {\n return schedule.state || 'Busy';\n },\n 'popupDetailRepeat-tmpl': function(schedule) {\n return schedule.recurrenceRule;\n },\n 'popupDetailBody-tmpl': function(schedule) {\n return schedule.body;\n },\n 'popupEdit-tmpl': function() {\n return 'Edit';\n },\n 'popupDelete-tmpl': function() {\n return 'Delete';\n }\n};\n\n/**\n * Get CSS syntax for element size\n * @param {number} value - size value to apply element\n * @param {string} postfix - postfix string ex) px, em, %\n * @param {string} prefix - property name ex) width, height\n * @returns {string} CSS syntax\n */\nfunction getElSize(value, postfix, prefix) {\n prefix = prefix || '';\n if (util.isNumber(value)) {\n return prefix + ':' + value + postfix;\n }\n\n return prefix + ':auto';\n}\n\n/**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\nfunction getElLeft(viewModel, grids) {\n return grids[viewModel.left] ? grids[viewModel.left].left : 0;\n}\n\n/**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getElWidth(viewModel, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n var left;\n for (; i < viewModel.width; i += 1) {\n left = (viewModel.left + i) % length;\n left += parseInt((viewModel.left + i) / length, 10);\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nHandlebars.registerHelper(helpers);\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"monthDayname-tmpl\"]||(depth0 && depth0[\"monthDayname-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"monthDayname-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":12},\"end\":{\"line\":16,\"column\":40}}})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderLeft), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, alias3=container.lambda;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.daynames : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":0},\"end\":{\"line\":19,\"column\":9}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":8},\"end\":{\"line\":65,\"column\":15}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"allday-tmpl\"]||(depth0 && depth0[\"allday-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":20},\"end\":{\"line\":20,\"column\":43}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.category : stack1),\"===\",\"time\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.program(17, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":12},\"end\":{\"line\":64,\"column\":19}}})) != null ? stack1 : \"\");\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"]||(depth0 && depth0[\"time-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":42,\"column\":53},\"end\":{\"line\":42,\"column\":74}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \"\\n \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n \";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"schedule-tmpl\"]||(depth0 && depth0[\"schedule-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":62,\"column\":65},\"end\":{\"line\":62,\"column\":90}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":115},\"end\":{\"line\":47,\"column\":129}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginLeft), depth0))\n + \";\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginRight), depth0))\n + \";\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthMoreTitleDate-tmpl\"]||(depth0 && depth0[\"monthMoreTitleDate-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.date : depth0),(depth0 != null ? depth0.dayname : depth0),{\"name\":\"monthMoreTitleDate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":58},\"end\":{\"line\":4,\"column\":100}}})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":8},\"end\":{\"line\":66,\"column\":17}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthGridHeader-tmpl\"]||(depth0 && depth0[\"monthGridHeader-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"monthGridHeader-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":44},\"end\":{\"line\":14,\"column\":75}}})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":12},\"end\":{\"line\":17,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthGridFooter-tmpl\"]||(depth0 && depth0[\"monthGridFooter-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"monthGridFooter-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":44},\"end\":{\"line\":20,\"column\":75}}})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(12, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":12},\"end\":{\"line\":23,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":84},\"end\":{\"line\":7,\"column\":98}}}) : helper)))\n + \"near-month-day\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":135},\"end\":{\"line\":7,\"column\":149}}}) : helper)))\n + \"today\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":182},\"end\":{\"line\":7,\"column\":196}}}) : helper)))\n + \"extra-date\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-right:\"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderLeft), depth0))\n + \";\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"monthGridHeaderExceed-tmpl\"]||(depth0 && depth0[\"monthGridHeaderExceed-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridHeaderExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":87},\"end\":{\"line\":16,\"column\":135}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"monthGridFooterExceed-tmpl\"]||(depth0 && depth0[\"monthGridFooterExceed-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridFooterExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":87},\"end\":{\"line\":22,\"column\":135}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":0},\"end\":{\"line\":26,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":80,\"column\":11}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":0},\"end\":{\"line\":79,\"column\":11}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":0},\"end\":{\"line\":78,\"column\":9}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.top : depth0),\"<\",((stack1 = (data && data.root)) && stack1.renderLimitIdx),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":4},\"end\":{\"line\":77,\"column\":13}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=\"function\";\n\n return \"
    \\n\"\n + ((stack1 = (helpers.fi||(depth0 && depth0.fi)||alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.program(23, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":8},\"end\":{\"line\":75,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":31},\"end\":{\"line\":9,\"column\":45}}}) : helper)))\n + \"weekday-exceed-left\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":32},\"end\":{\"line\":10,\"column\":46}}}) : helper)))\n + \"weekday-exceed-right\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"allday-tmpl\"]||(depth0 && depth0[\"allday-tmpl\"])||alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":29,\"column\":47},\"end\":{\"line\":29,\"column\":70}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers.unless.call(alias3,(helpers.or||(depth0 && depth0.or)||alias4).call(alias3,((stack1 = (data && data.root)) && stack1.isReadOnly),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":22},\"end\":{\"line\":30,\"column\":60}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(21, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":12},\"end\":{\"line\":30,\"column\":194}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":146},\"end\":{\"line\":14,\"column\":160}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginLeft), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginRight), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"21\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression;\n\n return \" \";\n},\"23\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.category : stack1),\"===\",\"time\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.program(33, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":33,\"column\":12},\"end\":{\"line\":74,\"column\":19}}})) != null ? stack1 : \"\");\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\";\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"]||(depth0 && depth0[\"time-tmpl\"])||alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":54,\"column\":53},\"end\":{\"line\":54,\"column\":74}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"25\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \"\\n\";\n},\"29\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"31\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n\";\n},\"33\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"schedule-tmpl\"]||(depth0 && depth0[\"schedule-tmpl\"])||alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":72,\"column\":65},\"end\":{\"line\":72,\"column\":90}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"34\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginLeft), depth0))\n + \";\\n\";\n},\"36\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginRight), depth0))\n + \";\\n\";\n},\"38\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"40\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":81,\"column\":11}}})) != null ? stack1 : \"\");\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":150},\"end\":{\"line\":3,\"column\":164}}}) : helper)))\n + \"hide\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
  • \\n \\n \"\n + alias4(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"name\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":60},\"end\":{\"line\":14,\"column\":68}}}) : helper)))\n + \"\\n
  • \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":135},\"end\":{\"line\":24,\"column\":149}}}) : helper)))\n + \"public\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n return \" checked\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.state || (depth0 != null ? depth0.state : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"state\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":55,\"column\":99},\"end\":{\"line\":55,\"column\":108}}}) : helper)));\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper;\n\n return ((stack1 = ((helper = (helper = helpers[\"popupStateBusy-tmpl\"] || (depth0 != null ? depth0[\"popupStateBusy-tmpl\"] : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupStateBusy-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":55,\"column\":116},\"end\":{\"line\":55,\"column\":141}}}) : helper))) != null ? stack1 : \"\");\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, helper;\n\n return ((stack1 = ((helper = (helper = helpers[\"popupUpdate-tmpl\"] || (depth0 != null ? depth0[\"popupUpdate-tmpl\"] : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupUpdate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":70,\"column\":163},\"end\":{\"line\":70,\"column\":185}}}) : helper))) != null ? stack1 : \"\");\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper;\n\n return ((stack1 = ((helper = (helper = helpers[\"popupSave-tmpl\"] || (depth0 != null ? depth0[\"popupSave-tmpl\"] : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupSave-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":70,\"column\":193},\"end\":{\"line\":70,\"column\":213}}}) : helper))) != null ? stack1 : \"\");\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n
    \\n \\n
      \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.calendars : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":16},\"end\":{\"line\":16,\"column\":25}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n \\n \\n
    \\n \\n
    \\n
    \\n
    \\n \\n \\n
    \\n
    \\n
    \\n
    \\n \\n \\n
    \\n
    \\n -\\n
    \\n \\n \\n
    \\n
    \\n
    \\n \\n \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"popupIsAllDay-tmpl\"] || (depth0 != null ? depth0[\"popupIsAllDay-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupIsAllDay-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":49,\"column\":52},\"end\":{\"line\":49,\"column\":76}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n \\n
      \\n
    • \\n \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"popupStateBusy-tmpl\"] || (depth0 != null ? depth0[\"popupStateBusy-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupStateBusy-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":61,\"column\":52},\"end\":{\"line\":61,\"column\":77}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    • \\n
    • \\n \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"popupStateFree-tmpl\"] || (depth0 != null ? depth0[\"popupStateFree-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupStateFree-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":65,\"column\":52},\"end\":{\"line\":65,\"column\":77}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    • \\n
    \\n
    \\n \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"popupDetailLocation-tmpl\"]||(depth0 && depth0[\"popupDetailLocation-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{\"name\":\"popupDetailLocation-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":182},\"end\":{\"line\":11,\"column\":221}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"popupDetailRepeat-tmpl\"]||(depth0 && depth0[\"popupDetailRepeat-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{\"name\":\"popupDetailRepeat-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":186},\"end\":{\"line\":12,\"column\":223}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"popupDetailUser-tmpl\"]||(depth0 && depth0[\"popupDetailUser-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{\"name\":\"popupDetailUser-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":218},\"end\":{\"line\":13,\"column\":253}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"popupDetailState-tmpl\"]||(depth0 && depth0[\"popupDetailState-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{\"name\":\"popupDetailState-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":176},\"end\":{\"line\":14,\"column\":212}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \"\n + alias4(alias5(((stack1 = (depth0 != null ? depth0.calendar : depth0)) != null ? stack1.name : stack1), depth0))\n + \"
    \\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"popupDetailBody-tmpl\"]||(depth0 && depth0[\"popupDetailBody-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{\"name\":\"popupDetailBody-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":151},\"end\":{\"line\":18,\"column\":186}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n return \"\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \\n
    \\n \\n
    \\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n
    \\n
    \\n \\n \"\n + alias4(alias5(((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.title : stack1), depth0))\n + \"\\n
    \\n
    \"\n + ((stack1 = (helpers[\"popupDetailDate-tmpl\"]||(depth0 && depth0[\"popupDetailDate-tmpl\"])||alias2).call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.isAllDay : stack1),((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.start : stack1),((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.end : stack1),{\"name\":\"popupDetailDate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":73},\"end\":{\"line\":8,\"column\":145}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n \"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.location : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":8},\"end\":{\"line\":11,\"column\":241}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.recurrenceRule : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":8},\"end\":{\"line\":12,\"column\":243}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.attendees : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":8},\"end\":{\"line\":13,\"column\":273}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.state : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":8},\"end\":{\"line\":14,\"column\":232}}})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.calendar : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(9, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":8},\"end\":{\"line\":17,\"column\":15}}})) != null ? stack1 : \"\")\n + \" \"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.body : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":8},\"end\":{\"line\":18,\"column\":206}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.program(15, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":4},\"end\":{\"line\":27,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRight), depth0))\n + \";\\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.days : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":17,\"column\":8},\"end\":{\"line\":27,\"column\":19}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (data && data.root)) && stack1.collapsed),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.program(9, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":12},\"end\":{\"line\":26,\"column\":19}}})) != null ? stack1 : \"\");\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":19,\"column\":16},\"end\":{\"line\":21,\"column\":23}}})) != null ? stack1 : \"\");\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"weekGridFooterExceed-tmpl\"]||(depth0 && depth0[\"weekGridFooterExceed-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"weekGridFooterExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":145},\"end\":{\"line\":20,\"column\":192}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && data.key),\"===\",((stack1 = (data && data.root)) && stack1.collapseBtnIndex),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":16},\"end\":{\"line\":25,\"column\":23}}})) != null ? stack1 : \"\");\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = ((helper = (helper = helpers[\"collapseBtnTitle-tmpl\"] || (depth0 != null ? depth0[\"collapseBtnTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"collapseBtnTitle-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":121},\"end\":{\"line\":24,\"column\":148}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"dayGridTitle-tmpl\"]||(depth0 && depth0[\"dayGridTitle-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.viewName : depth0),{\"name\":\"dayGridTitle-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":2,\"column\":36}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.days : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":8},\"end\":{\"line\":14,\"column\":19}}})) != null ? stack1 : \"\")\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (data && data.root)) && stack1.showExpandableButton),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":8},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":4},\"end\":{\"line\":27,\"column\":15}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n \"\n + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":4},\"end\":{\"line\":26,\"column\":15}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n \"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":4},\"end\":{\"line\":25,\"column\":13}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=\"function\", alias5=container.lambda;\n\n return \"\\n
    \\n
    \\n \"\n + ((stack1 = (helpers[\"schedule-tmpl\"]||(depth0 && depth0[\"schedule-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":87},\"end\":{\"line\":21,\"column\":112}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers.unless.call(alias1,(helpers.or||(depth0 && depth0.or)||alias2).call(alias1,((stack1 = (data && data.root)) && stack1.isReadOnly),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":22},\"end\":{\"line\":22,\"column\":60}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":12},\"end\":{\"line\":22,\"column\":193}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":31},\"end\":{\"line\":8,\"column\":45}}}) : helper)))\n + \"weekday-exceed-left\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":32},\"end\":{\"line\":9,\"column\":46}}}) : helper)))\n + \"weekday-exceed-right\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":146},\"end\":{\"line\":13,\"column\":160}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression;\n\n return \" \";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"weekDayname-tmpl\"]||(depth0 && depth0[\"weekDayname-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"weekDayname-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":8},\"end\":{\"line\":7,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":49},\"end\":{\"line\":3,\"column\":63}}}) : helper)))\n + \"today\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dayNames : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":10,\"column\":9}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":4},\"end\":{\"line\":60,\"column\":13}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":59,\"column\":17}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":8},\"end\":{\"line\":58,\"column\":17}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hasGoingDuration : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(19, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":29,\"column\":12},\"end\":{\"line\":37,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"]||(depth0 && depth0[\"time-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":45,\"column\":20},\"end\":{\"line\":45,\"column\":41}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hasComingDuration : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":12},\"end\":{\"line\":54,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = helpers.unless.call(alias1,(helpers.or||(depth0 && depth0.or)||alias2).call(alias1,(depth0 != null ? depth0.croppedEnd : depth0),((stack1 = (data && data.root)) && stack1.isReadOnly),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":22},\"end\":{\"line\":56,\"column\":71}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(29, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":12},\"end\":{\"line\":56,\"column\":202}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":83},\"end\":{\"line\":6,\"column\":97}}}) : helper)))\n + \"time-date-schedule-block-pending\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" padding-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.paddingLeft), depth0))\n + \";\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":147},\"end\":{\"line\":12,\"column\":161}}}) : helper)))\n + \"time-schedule-focused \";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" border-bottom-left-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRadius), depth0))\n + \";\\n border-bottom-right-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRadius), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" border-top-left-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRadius), depth0))\n + \";\\n border-top-right-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRadius), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"goingDuration-tmpl\"]||(depth0 && depth0[\"goingDuration-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"goingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":36,\"column\":66},\"end\":{\"line\":36,\"column\":96}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"border-bottom: 1px dashed \"\n + container.escapeExpression(((helper = (helper = helpers.travelBorderColor || (depth0 != null ? depth0.travelBorderColor : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"travelBorderColor\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":44,\"column\":67},\"end\":{\"line\":44,\"column\":88}}}) : helper)))\n + \";\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"comingDuration-tmpl\"]||(depth0 && depth0[\"comingDuration-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"comingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":53,\"column\":26},\"end\":{\"line\":53,\"column\":57}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n \";\n},\"29\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression;\n\n return \"
     
    \";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":61,\"column\":9}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.isPrimary : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.program(10, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":26,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none;\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.timeSlots : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":12},\"end\":{\"line\":9,\"column\":23}}})) != null ? stack1 : \"\")\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (data && data.root)) && stack1.showHourMarker),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":12},\"end\":{\"line\":14,\"column\":19}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"timegridDisplayPrimayTime-tmpl\"]||(depth0 && depth0[\"timegridDisplayPrimayTime-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"timegridDisplayPrimayTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":68},\"end\":{\"line\":7,\"column\":109}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n return \"display:none\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \"\n + ((stack1 = (helpers[\"timegridCurrentTime-tmpl\"]||(depth0 && depth0[\"timegridCurrentTime-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":223},\"end\":{\"line\":12,\"column\":258}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.timeSlots : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":12},\"end\":{\"line\":20,\"column\":23}}})) != null ? stack1 : \"\")\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (data && data.root)) && stack1.showHourMarker),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":12},\"end\":{\"line\":25,\"column\":19}}})) != null ? stack1 : \"\");\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"timegridDisplayTime-tmpl\"]||(depth0 && depth0[\"timegridDisplayTime-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"timegridDisplayTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":68},\"end\":{\"line\":18,\"column\":103}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \"\n + ((stack1 = (helpers[\"timegridCurrentTime-tmpl\"]||(depth0 && depth0[\"timegridCurrentTime-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":171},\"end\":{\"line\":23,\"column\":206}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n
    \\n\";\n},\"16\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-bottom: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderBottom), depth0))\n + \";\\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n
    today
    \\n
    \\n
    \\n
    \\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.timezones : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":32,\"column\":8},\"end\":{\"line\":40,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.showHourMarker : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(18, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":46,\"column\":4},\"end\":{\"line\":53,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers[\"timegridCurrentTime-tmpl\"]||(depth0 && depth0[\"timegridCurrentTime-tmpl\"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":1,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \"\n + ((stack1 = (helpers[\"goingDuration-tmpl\"]||(depth0 && depth0[\"goingDuration-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"goingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":230},\"end\":{\"line\":4,\"column\":260}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \"\n + ((stack1 = (helpers[\"comingDuration-tmpl\"]||(depth0 && depth0[\"comingDuration-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"comingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":228},\"end\":{\"line\":10,\"column\":259}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
     
    \";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hasGoingDuration : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":8},\"end\":{\"line\":5,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"]||(depth0 && depth0[\"time-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":16},\"end\":{\"line\":7,\"column\":37}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hasComingDuration : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":8},\"end\":{\"line\":11,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.croppedEnd : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":4},\"end\":{\"line\":13,\"column\":104}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(helpers.and||(depth0 && depth0.and)||alias2).call(alias1,(depth0 != null ? depth0.isPrimary : depth0),((stack1 = (data && data.root)) && stack1.showTimezoneCollapseButton),{\"name\":\"and\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":14},\"end\":{\"line\":4,\"column\":62}}}),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":10,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \"\n + ((stack1 = (helpers[\"timezoneDisplayLabel-tmpl\"]||(depth0 && depth0[\"timezoneDisplayLabel-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.timezoneOffset : depth0),(depth0 != null ? depth0.displayLabel : depth0),{\"name\":\"timezoneDisplayLabel-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":59},\"end\":{\"line\":11,\"column\":118}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none;\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n \\n \\n \\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":84},\"end\":{\"line\":7,\"column\":98}}}) : helper)))\n + \"ic-arrow-right\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":120},\"end\":{\"line\":7,\"column\":134}}}) : helper)))\n + \"ic-arrow-left\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return ((stack1 = helpers.each.call(alias1,(helpers.reverse||(depth0 && depth0.reverse)||container.hooks.helperMissing).call(alias1,(depth0 != null ? depth0.timezones : depth0),{\"name\":\"reverse\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":8},\"end\":{\"line\":1,\"column\":27}}}),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":14,\"column\":11}}})) != null ? stack1 : \"\");\n},\"useData\":true});","/**\n * @fileoverview The base class of views.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\n\n/**\n * Base class of views.\n *\n * All views create own container element inside supplied container element.\n * @constructor\n * @param {HTMLElement} container Default container element for view.\n * you can use this element for this.container syntax.\n */\nfunction View(container) {\n var id = util.stamp(this);\n\n if (util.isUndefined(container)) {\n container = domutil.appendHTMLElement('div');\n }\n\n domutil.addClass(container, this.cssprefix(id));\n\n /**\n * unique id\n * @type {number}\n */\n this.id = id;\n\n /**\n * base element of view.\n * @type {HTMLDIVElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * child views.\n * @type {Collection}\n */\n this.children = new Collection(function(view) {\n return util.stamp(view);\n });\n /* eslint-enable*/\n\n /**\n * parent view instance.\n * @type {View}\n */\n this.parent = null;\n\n /**\n * state of view\n */\n this.state = {};\n}\n\n/**\n * CSS classname prefix\n * @type {string}\n */\nView.prototype.cssPrefix = 'tui-view-';\n\n/**\n * Add child views.\n * @param {View} view The view instance to add.\n * @param {function} [fn] Function for invoke before add. parent view class is supplied first arguments.\n */\nView.prototype.addChild = function(view, fn) {\n if (fn) {\n fn.call(view, this);\n }\n // add parent view\n view.parent = this;\n\n this.children.add(view);\n};\n\n/**\n * Remove added child view.\n * @param {(number|View)} id View id or instance itself to remove.\n * @param {function} [fn] Function for invoke before remove. parent view class is supplied first arguments.\n */\nView.prototype.removeChild = function(id, fn) {\n var view = util.isNumber(id) ? this.children.items[id] : id;\n\n id = util.stamp(view);\n\n if (fn) {\n fn.call(view, this);\n }\n\n this.children.remove(id);\n};\n\n/**\n * Render view recursively.\n */\nView.prototype.render = function() {\n this.children.each(function(childView) {\n childView.render();\n });\n};\n\n/**\n * Invoke function recursively.\n * @param {function} fn - function to invoke child view recursively\n * @param {boolean} [skipThis=false] - set true then skip invoke with this(root) view.\n */\nView.prototype.recursive = function(fn, skipThis) {\n if (!util.isFunction(fn)) {\n return;\n }\n\n if (!skipThis) {\n fn(this);\n }\n\n this.children.each(function(childView) {\n childView.recursive(fn);\n });\n};\n\n/**\n * Resize view recursively to parent.\n */\nView.prototype.resize = function() {\n var args = Array.prototype.slice.call(arguments),\n parent = this.parent;\n\n while (parent) {\n if (util.isFunction(parent._onResize)) {\n parent._onResize.apply(parent, args);\n }\n\n parent = parent.parent;\n }\n};\n\n/**\n * Invoking method before destroying.\n */\nView.prototype._beforeDestroy = function() {};\n\n/**\n * Clear properties\n */\nView.prototype._destroy = function() {\n this._beforeDestroy();\n this.children.clear();\n this.container.innerHTML = '';\n\n this.id = this.parent = this.children = this.container = null;\n};\n\n/*eslint-disable*/\n/**\n * Destroy child view recursively.\n */\nView.prototype.destroy = function(isChildView) {\n this.children.each(function(childView) {\n childView.destroy(true);\n childView._destroy();\n });\n\n if (isChildView) {\n return;\n }\n\n this._destroy();\n};\n/* eslint-enable*/\n\n/**\n * Calculate view's container element bound.\n * @returns {object} The bound of container element.\n */\nView.prototype.getViewBound = function() {\n var container = this.container,\n position = domutil.getPosition(container),\n size = domutil.getSize(container);\n\n return {\n x: position[0],\n y: position[1],\n width: size[0],\n height: size[1]\n };\n};\n\n/**\n * Return view default CSS prefix\n * @param {string} [className] - if supplied then return prefix added class name\n * @returns {string} CSS prefix value\n */\nView.prototype.cssprefix = function(className) {\n return this.cssPrefix + (className || '');\n};\n\n/**\n * set state\n * @param {object} state - state\n */\nView.prototype.setState = function(state) {\n util.extend(this.state, state);\n};\n\nutil.CustomEvents.mixin(View);\n\nmodule.exports = View;\n","/**\n * @fileoverview DayGrid in weekly view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n TZDate = require('../../common/timezone').Date,\n View = require('../../view/view'),\n DayGridSchedule = require('./dayGridSchedule'),\n baseTmpl = require('../template/week/dayGrid.hbs'),\n reqAnimFrame = require('../../common/reqAnimFrame');\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {string} name - view name\n * @param {object} options - options for DayGridSchedule view\n * @param {number} [options.heightPercent] - height percent of view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n * @param {Theme} theme - theme instance\n */\nfunction DayGrid(name, options, container, theme) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('daygrid-layout')\n );\n View.call(this, container);\n\n name = name || 'daygrid';\n\n this.options = util.extend({\n viewName: name,\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n renderStartDate: '',\n renderEndDate: '',\n containerBottomGutter: 18,\n scheduleHeight: parseInt(theme.week.dayGridSchedule.height, 10),\n scheduleGutter: parseInt(theme.week.dayGridSchedule.marginTop, 10),\n scheduleContainerTop: 1,\n timezones: options.timezones,\n isReadOnly: options.isReadOnly,\n getViewModelFunc: function(viewModel) {\n return viewModel.schedulesInDateRange[name];\n },\n setViewModelFunc: function(viewModel, matrices) {\n viewModel.schedulesInDateRange[name] = matrices;\n }\n }, options.week);\n\n this.handler = {};\n this.vPanel = null;\n\n this.state.collapsed = true;\n}\n\nutil.inherit(DayGrid, View);\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGrid.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options,\n daynames = opt.daynames,\n range = viewModel.range,\n grids = viewModel.grids,\n matrices = opt.getViewModelFunc(viewModel),\n exceedDate = {},\n panel = getPanel(opt.panels, opt.viewName),\n panelHeight = this.getViewBound().height,\n collapsed = this.state.collapsed,\n heightForcedSet = this.vPanel ? this.vPanel.getHeightForcedSet() : false,\n timezonesCollapsed = viewModel.state.timezonesCollapsed,\n styles = this._getStyles(viewModel.theme, timezonesCollapsed);\n\n var baseViewModel, visibleScheduleCount;\n var now = new TZDate().toLocalTime();\n\n if (panel.showExpandableButton) {\n if (!heightForcedSet) {\n if (collapsed) {\n panelHeight = mmax(panelHeight, panel.maxHeight);\n } else {\n panelHeight = mmin(panelHeight, panel.maxExpandableHeight);\n }\n }\n\n visibleScheduleCount = Math.floor(panelHeight / (opt.scheduleHeight + opt.scheduleGutter));\n if (collapsed) {\n exceedDate = this.parent.controller.getExceedDate(visibleScheduleCount,\n matrices,\n viewModel.range\n );\n matrices = this.parent.controller.excludeExceedSchedules(matrices, visibleScheduleCount);\n opt.setViewModelFunc(viewModel, matrices);\n }\n }\n\n baseViewModel = {\n viewName: opt.viewName,\n range: range,\n grids: grids,\n days: util.map(viewModel.range, function(d, index) {\n var day = d.getDay();\n var ymd = datetime.format(d, 'YYYYMMDD');\n var isToday = datetime.isSameDate(now, d);\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: isToday,\n date: d.getDate(),\n renderDate: datetime.format(d, 'YYYY-MM-DD'),\n hiddenSchedules: exceedDate[ymd] || 0,\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0,\n backgroundColor: viewModel.range.length > 1 ?\n getWeekBackgroundColor(day, isToday, styles) : styles.backgroundColor\n };\n }),\n exceedDate: exceedDate,\n showExpandableButton: panel.showExpandableButton,\n collapsed: collapsed,\n collapseBtnIndex: this.state.clickedExpandBtnIndex,\n styles: styles\n };\n\n return baseViewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGrid.prototype.render = function(viewModel) {\n var opt = this.options,\n container = this.container,\n baseViewModel = this.getBaseViewModel(viewModel),\n scheduleContainerTop = this.options.scheduleContainerTop;\n var dayGridSchedule;\n\n container.innerHTML = baseTmpl(baseViewModel);\n\n this.children.clear();\n\n dayGridSchedule = new DayGridSchedule(\n opt,\n domutil.find(config.classname('.container'), container)\n );\n this.addChild(dayGridSchedule);\n\n dayGridSchedule.on('afterRender', function(weekdayViewModel) {\n baseViewModel.height = weekdayViewModel.minHeight + scheduleContainerTop;\n });\n\n this.children.each(function(childView) {\n childView.render(viewModel);\n }, this);\n\n this.fire('afterRender', baseViewModel);\n};\n\nDayGrid.prototype._beforeDestroy = function() {\n};\n\nDayGrid.prototype.addHandler = function(type, handler, vPanel) {\n var self = this;\n\n this.handler[type] = handler;\n this.vPanel = vPanel;\n\n if (type === 'click') {\n handler.on('expand', function() {\n self.setState({\n collapsed: false\n });\n }, this);\n handler.on('collapse', function() {\n self.setState({\n collapsed: true\n });\n }, this);\n }\n};\n\nDayGrid.prototype._expand = function() {\n reqAnimFrame.requestAnimFrame(function() {\n var vPanel = this.vPanel;\n var opt = this.options;\n var panel = getPanel(opt.panels, opt.viewName);\n\n vPanel.setMaxHeight(panel.maxExpandableHeight);\n vPanel.setHeightForcedSet(false);\n vPanel.setHeight(null, panel.maxExpandableHeight);\n\n if (this.parent) {\n this.parent.render();\n }\n }, this);\n};\n\nDayGrid.prototype._collapse = function() {\n reqAnimFrame.requestAnimFrame(function() {\n var vPanel = this.vPanel;\n var opt = this.options;\n var panel = getPanel(opt.panels, opt.viewName);\n\n vPanel.setMaxHeight(panel.maxHeight);\n vPanel.setHeightForcedSet(false);\n vPanel.setHeight(null, panel.minHeight);\n\n if (this.parent) {\n this.parent.render();\n }\n }, this);\n};\n\n/**\n * set state\n * @param {object} state - state\n */\nDayGrid.prototype.setState = function(state) {\n var collapsed = this.state.collapsed;\n View.prototype.setState.call(this, state);\n\n if (this.state.collapsed === collapsed) {\n return;\n }\n\n if (this.state.collapsed) {\n this._collapse();\n } else {\n this._expand();\n }\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nDayGrid.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderRight = theme.week.daygrid.borderRight || theme.common.border;\n styles.todayBackgroundColor = theme.week.today.backgroundColor;\n styles.weekendBackgroundColor = theme.week.weekend.backgroundColor;\n styles.backgroundColor = theme.week.daygrid.backgroundColor;\n styles.leftWidth = theme.week.daygridLeft.width;\n styles.leftBackgroundColor = theme.week.daygridLeft.backgroundColor;\n styles.leftPaddingRight = theme.week.daygridLeft.paddingRight;\n styles.leftBorderRight = theme.week.daygridLeft.borderRight;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.leftWidth);\n styles.leftWidth = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\n/**\n * Get a background color based on day.\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {object} styles - style object\n * @returns {string} backgroundColor\n */\nfunction getWeekBackgroundColor(day, isToday, styles) {\n var backgroundColor = '';\n\n if (day === 0 || day === 6) {\n backgroundColor = styles.weekendBackgroundColor;\n } else if (isToday) {\n backgroundColor = styles.todayBackgroundColor;\n } else {\n backgroundColor = styles.backgroundColor;\n }\n\n return backgroundColor;\n}\n\n/**\n * get a panel infomation\n * @param {Array.} panels - panel infomations\n * @param {string} name - panel name\n * @returns {object} panel information\n */\nfunction getPanel(panels, name) {\n var found;\n\n util.forEach(panels, function(panel) {\n if (panel.name === name) {\n found = panel;\n }\n });\n\n return found;\n}\n\nmodule.exports = DayGrid;\n","/**\n * @fileoverview Weekday view for week\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Weekday = require('../weekday'),\n tmpl = require('../template/week/dayGridSchedule.hbs');\nvar mmax = Math.max;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for DayGridSchedule view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction DayGridSchedule(options, container) {\n Weekday.call(this, options, container);\n\n this.collapsed = true;\n}\n\nutil.inherit(DayGridSchedule, Weekday);\n\n/**\n * Render Weekday view\n * @override\n */\nDayGridSchedule.prototype.render = function(viewModel) {\n var container = this.container;\n var baseViewModel;\n\n baseViewModel = this.getBaseViewModel(viewModel);\n\n container.innerHTML = tmpl(baseViewModel);\n\n this.fire('afterRender', baseViewModel);\n};\n\n/**\n * returns maximum schedule count in day\n * @param {array} matrices - The matrices for schedule placing.\n * @returns {number} maximum schedule count in day\n */\nDayGridSchedule.prototype._getMaxScheduleInDay = function(matrices) {\n return mmax.apply(\n null,\n util.map(matrices, function(matrix) {\n return Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n })\n );\n};\n\n/**\n * returns minimum height for container.\n * @param {number} maxScheduleInDay - max schedule blocks in one day\n * @returns {number}\n */\nDayGridSchedule.prototype._getMinHeight = function(maxScheduleInDay) {\n var opt = this.options;\n var contentHeight = (maxScheduleInDay * opt.scheduleHeight)\n + ((maxScheduleInDay - 1) * opt.scheduleGutter);\n\n // if (this.collapsed && this.aboutMe.maxHeight >= contentHeight + opt.containerBottomGutter) {\n // contentHeight += opt.containerBottomGutter;\n // }\n\n return contentHeight;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGridSchedule.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var matrices = opt.getViewModelFunc(viewModel);\n var maxScheduleInDay = this._getMaxScheduleInDay(matrices);\n var baseViewModel;\n var styles = this._getStyles(viewModel.theme);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n minHeight: this._getMinHeight(maxScheduleInDay),\n matrices: matrices,\n scheduleContainerTop: this.options.scheduleContainerTop,\n maxScheduleInDay: maxScheduleInDay,\n isReadOnly: opt.isReadOnly,\n styles: styles\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nDayGridSchedule.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.borderRadius = theme.week.dayGridSchedule.borderRadius;\n }\n\n return styles;\n};\n\nmodule.exports = DayGridSchedule;\n","/**\n * @fileoverview View for rendering daynames\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar domutil = require('../../common/domutil');\nvar View = require('../view');\nvar daynameTmpl = require('../template/week/daynames.hbs');\n\n/**\n * @constructor\n * @param {object} options - options for dayname view\n * @param {HTMLElement} container Container element to use.\n * @param {Theme} theme - theme instance\n * @extends {View}\n */\nfunction DayName(options, container, theme) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('dayname-container')\n );\n\n this.options = util.extend({\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n timezones: options.timezones\n }, options.week);\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n View.call(this, container);\n\n this.applyTheme();\n}\n\nutil.inherit(DayName, View);\n\n/**\n * Get default viewmodels.\n * @param {Date} start The date of start render\n * @param {Date} end The end of end render\n * @param {object} grids grid data(width, left, day)\n * @returns {array} viewmodel.\n */\nDayName.prototype._getBaseViewModel = function(start, end, grids) {\n var daynames = this.options.daynames,\n theme = this.theme,\n now = new TZDate().toLocalTime(),\n viewModel;\n\n viewModel = util.map(datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ), function(d, i) {\n var day = d.getDay();\n var isToday = datetime.isSameDate(d, now);\n var isPastDay = d < now && !isToday;\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: isToday,\n date: d.getDate(),\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n renderDate: datetime.format(d, 'YYYY-MM-DD'),\n color: this._getDayNameColor(theme, day, isToday, isPastDay)\n };\n }, this);\n\n return viewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel View model from parent (WeekView)\n */\nDayName.prototype.render = function(viewModel) {\n var dayNames = this._getBaseViewModel(\n viewModel.renderStartDate,\n viewModel.renderEndDate,\n viewModel.grids\n );\n var timezonesCollapsed = viewModel.state.timezonesCollapsed;\n var styles = this._getStyles(this.theme, timezonesCollapsed);\n var baseViewModel = util.extend({}, {\n dayNames: dayNames,\n styles: styles\n });\n\n this.container.innerHTML = daynameTmpl(baseViewModel);\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {boolean} isPastDay - is past day flag\n * @returns {string} style - color style\n */\nDayName.prototype._getDayNameColor = function(theme, day, isToday, isPastDay) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = theme.common.holiday.color;\n } else if (isPastDay) {\n color = theme.week.pastDay.color || theme.common.dayname.color;\n } else if (day === 6) {\n color = theme.common.saturday.color;\n } else if (isToday) {\n color = theme.week.today.color || theme.common.today.color;\n } else {\n color = theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nDayName.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderTop = theme.week.dayname.borderTop || theme.common.border;\n styles.borderBottom = theme.week.dayname.borderBottom || theme.common.border;\n styles.borderLeft = theme.week.dayname.borderLeft || theme.common.border;\n styles.paddingLeft = theme.week.dayname.paddingLeft;\n styles.backgroundColor = theme.week.dayname.backgroundColor;\n styles.height = theme.week.dayname.height;\n styles.textAlign = theme.week.dayname.textAlign;\n styles.marginLeft = theme.week.daygridLeft.width;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.marginLeft);\n styles.marginLeft = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\nDayName.prototype.applyTheme = function() {\n var styles = this._getStyles(this.theme);\n var style = this.container.style;\n\n style.borderTop = styles.borderTop;\n style.borderBottom = styles.borderBottom;\n style.height = styles.height;\n style.backgroundColor = styles.backgroundColor;\n style.textAlign = styles.textAlign;\n\n return style;\n};\n\nmodule.exports = DayName;\n","/**\n * @fileoverview View of time.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar View = require('../view');\nvar timeTmpl = require('../template/week/time.hbs');\n\nvar forEachArr = util.forEachArray;\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options Options\n * @param {number} options.index Date index in week view.\n * @param {number} options.width Date element width (percent)\n * @param {string} options.ymd YYYMMDD string for this view\n * @param {boolean} options.isToday when set true then assign today design class to container.\n * @param {number} options.hourStart Can limit of render hour start.\n * @param {number} options.hourEnd Can limit of render hour end.\n * @param {HTMLElement} container Element to use container for this view.\n * @param {Theme} theme - theme instance\n */\nfunction Time(options, container, theme) {\n View.call(this, container);\n\n this.options = util.extend({\n index: 0,\n width: 0,\n ymd: '',\n isToday: false,\n pending: false,\n hourStart: 0,\n hourEnd: 24,\n defaultMarginBottom: 2,\n minHeight: 18.5,\n isReadOnly: false\n }, options);\n\n this.timeTmpl = timeTmpl;\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n container.style.width = options.width + '%';\n container.style.left = options.left + '%';\n\n if (this.options.isToday) {\n domutil.addClass(this.container, config.classname('today'));\n }\n\n this.applyTheme();\n}\n\nutil.inherit(Time, View);\n\n/**\n * Convert YYYYMMDD formatted string date to Date.\n * @param {string} str formatted string.\n * @returns {Date} start of date.\n */\nTime.prototype._parseDateGroup = function(str) {\n var y = parseInt(str.substr(0, 4), 10),\n m = parseInt(str.substr(4, 2), 10),\n d = parseInt(str.substr(6, 2), 10);\n var date = datetime.start();\n\n date.setFullYear(y, m - 1, d);\n\n return datetime.start(date);\n};\n\n/**\n * calculate left and width\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @returns {object} - left and width\n */\nTime.prototype._getScheduleViewBoundX = function(viewModel, options) {\n var width = options.baseWidth * (viewModel.extraSpace + 1);\n\n // set width auto when has no collisions.\n if (!viewModel.hasCollide) {\n width = null;\n }\n\n return {\n left: options.baseLeft[options.columnIndex],\n width: width\n };\n};\n\n/**\n * calculate top, height, croppedStart and croppedEnd\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @returns {object} - left and width\n */\nTime.prototype._getScheduleViewBoundY = function(viewModel, options) {\n var baseMS = options.baseMS;\n var baseHeight = options.baseHeight;\n var croppedStart = false;\n var croppedEnd = false;\n var goingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration);\n var comingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n var offsetStart = viewModel.valueOf().start - goingDuration - options.todayStart;\n // containerHeight : milliseconds in day = x : schedule's milliseconds\n var top = (baseHeight * offsetStart) / baseMS;\n var modelDuration = viewModel.duration();\n var height;\n var duration;\n var goingDurationHeight;\n var modelDurationHeight;\n var comingDurationHeight;\n\n modelDuration = modelDuration > SCHEDULE_MIN_DURATION ? modelDuration : SCHEDULE_MIN_DURATION;\n duration = modelDuration + goingDuration + comingDuration;\n height = (baseHeight * duration) / baseMS;\n\n goingDurationHeight = (baseHeight * goingDuration) / baseMS; // common.ratio(duration, goingDuration, 100);\n modelDurationHeight = (baseHeight * modelDuration) / baseMS; // common.ratio(duration, modelDuration, 100);\n comingDurationHeight = (baseHeight * comingDuration) / baseMS; // common.ratio(duration, comingDuration, 100);\n\n if (offsetStart < 0) {\n top = 0;\n height += ((baseHeight * offsetStart) / baseMS);\n croppedStart = true;\n }\n\n if (height + top > baseHeight) {\n height = baseHeight - top;\n croppedEnd = true;\n }\n\n return {\n top: top,\n height: Math.max(height, this.options.minHeight) - this.options.defaultMarginBottom,\n modelDurationHeight: modelDurationHeight,\n goingDurationHeight: goingDurationHeight,\n comingDurationHeight: comingDurationHeight,\n hasGoingDuration: goingDuration > 0,\n hasComingDuration: comingDuration > 0,\n croppedStart: croppedStart,\n croppedEnd: croppedEnd\n };\n};\n\n/**\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @param {Date} options.todayStart - date object represent schedule date's start (00:00:00)\n * @param {number} options.baseMS - the number of milliseconds to render schedule blocks.\n * @param {number} options.baseHeight - pixel value related with baseMS options.\n * @param {number[]} options.baseLeft - left position percents for each columns.\n * @param {number} options.baseWidth - the unit of schedule blocks width percent.\n * @param {number} options.columnIndex - the number index of schedule blocks.\n * it represent rendering index from left sides in view.\n * @returns {object} bound object for supplied view model.\n */\nTime.prototype.getScheduleViewBound = function(viewModel, options) {\n var boundX = this._getScheduleViewBoundX(viewModel, options);\n var boundY = this._getScheduleViewBoundY(viewModel, options);\n var schedule = viewModel.model;\n var isReadOnly = util.pick(schedule, 'isReadOnly') || false;\n var travelBorderColor = schedule.isFocused ? '#ffffff' : schedule.borderColor;\n if (travelBorderColor === schedule.bgColor) {\n travelBorderColor = null; // follow text color\n }\n\n return util.extend({\n isReadOnly: isReadOnly,\n travelBorderColor: travelBorderColor\n }, boundX, boundY);\n};\n\n/**\n * Set viewmodels for rendering.\n * @param {string} ymd The date of schedules. YYYYMMDD format.\n * @param {array} matrices The matrices for schedule placing.\n * @param {number} containerHeight - container's height\n */\nTime.prototype._getBaseViewModel = function(ymd, matrices, containerHeight) {\n var self = this,\n options = this.options,\n hourStart = options.hourStart,\n hourEnd = options.hourEnd,\n isReadOnly = options.isReadOnly,\n todayStart,\n baseMS;\n\n /**\n * Calculate each schedule element bounds relative with rendered hour milliseconds and\n * wrap each schedule model to viewmodels.\n */\n containerHeight = containerHeight || this.getViewBound().height;\n todayStart = this._parseDateGroup(ymd);\n todayStart.setHours(hourStart);\n baseMS = datetime.millisecondsFrom('hour', (hourEnd - hourStart));\n\n forEachArr(matrices, function(matrix) {\n var maxRowLength,\n widthPercent,\n leftPercents,\n i;\n\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n widthPercent = 100 / maxRowLength;\n\n leftPercents = [];\n for (i = 0; i < maxRowLength; i += 1) {\n leftPercents[i] = widthPercent * i;\n }\n\n forEachArr(matrix, function(row) {\n forEachArr(row, function(viewModel, col) {\n var viewBound;\n\n if (!viewModel) {\n return;\n }\n\n viewBound = self.getScheduleViewBound(viewModel, {\n todayStart: todayStart,\n baseMS: baseMS,\n baseLeft: leftPercents,\n baseWidth: widthPercent,\n baseHeight: containerHeight,\n columnIndex: col,\n isReadOnly: isReadOnly\n });\n\n util.extend(viewModel, viewBound);\n });\n });\n });\n};\n\n/**\n * @returns {Date} - Date of this view.\n */\nTime.prototype.getDate = function() {\n return this._parseDateGroup(this.options.ymd);\n};\n\n/**\n * @override\n * @param {string} ymd The date of schedules. YYYYMMDD format\n * @param {array} matrices Matrices for placing schedules\n * @param {number} containerHeight - container's height\n */\nTime.prototype.render = function(ymd, matrices, containerHeight) {\n this._getBaseViewModel(ymd, matrices, containerHeight);\n this.container.innerHTML = this.timeTmpl({\n matrices: matrices,\n styles: this._getStyles(this.theme),\n isReadOnly: this.options.isReadOnly\n });\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nTime.prototype._getStyles = function(theme) {\n var styles = {};\n var options = this.options;\n\n if (theme) {\n styles.borderRight = theme.week.timegrid.borderRight || theme.common.border;\n styles.marginRight = theme.week.timegrid.paddingRight;\n styles.borderRadius = theme.week.timegridSchedule.borderRadius;\n styles.paddingLeft = theme.week.timegridSchedule.paddingLeft;\n styles.backgroundColor = options.isToday ? theme.week.today.backgroundColor : 'inherit';\n }\n\n return styles;\n};\n\nTime.prototype.applyTheme = function() {\n var style = this.container.style;\n var styles = this._getStyles(this.theme);\n\n style.borderRight = styles.borderRight;\n style.backgroundColor = styles.backgroundColor;\n};\n\nmodule.exports = Time;\n","/**\n * @fileoverview View for rendered schedules by times.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar datetime = require('../../common/datetime');\nvar Timezone = require('../../common/timezone');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar View = require('../view');\nvar Time = require('./time');\nvar AutoScroll = require('../../common/autoScroll');\nvar mainTmpl = require('../template/week/timeGrid.hbs');\nvar timezoneStickyTmpl = require('../template/week/timezoneSticky.hbs');\nvar timegridCurrentTimeTmpl = require('../template/week/timeGridCurrentTime.hbs');\nvar TZDate = Timezone.Date;\nvar HOURMARKER_REFRESH_INTERVAL = 1000 * 60;\nvar SIXTY_SECONDS = 60;\nvar SIXTY_MINUTES = 60;\n\n/**\n * Returns a list of time labels from start to end.\n * For hidden labels near the current time, set to hidden: true.\n * @param {object} opt - TimeGrid.options\n * @param {boolean} hasHourMarker - Whether the current time is displayed\n * @param {number} timezoneOffset - timezone offset\n * @param {object} styles - styles\n * @returns {Array.}\n */\nfunction getHoursLabels(opt, hasHourMarker, timezoneOffset, styles) {\n var hourStart = opt.hourStart;\n var hourEnd = opt.hourEnd;\n var renderEndDate = new TZDate(opt.renderEndDate);\n var shiftByOffset = parseInt(timezoneOffset / SIXTY_MINUTES, 10);\n var shiftMinutes = Math.abs(timezoneOffset % SIXTY_MINUTES);\n var now = new TZDate().toLocalTime();\n var nowMinutes = now.getMinutes();\n var hoursRange = util.range(0, 24);\n var nowAroundHours = null;\n var nowHours, nowHoursIndex;\n var isNegativeZero = 1 / -Infinity === shiftByOffset;\n\n if ((shiftByOffset < 0 || isNegativeZero) && shiftMinutes > 0) {\n shiftByOffset -= 1;\n }\n\n // shift the array and take elements between start and end\n common.shiftArray(hoursRange, shiftByOffset);\n common.takeArray(hoursRange, hourStart, hourEnd);\n\n nowHours = common.shiftHours(now.getHours(), shiftByOffset) % 24;\n nowHoursIndex = util.inArray(nowHours, hoursRange);\n\n if (hasHourMarker) {\n if (nowMinutes < 20) {\n nowAroundHours = nowHours;\n } else if (nowMinutes > 40) {\n nowAroundHours = nowHours + 1;\n }\n\n if (util.isNumber(nowAroundHours)) {\n nowAroundHours %= 24;\n }\n }\n\n return util.map(hoursRange, function(hour, index) {\n var color;\n var fontWeight;\n var isPast = (hasHourMarker && index <= nowHoursIndex) ||\n (renderEndDate < now && !datetime.isSameDate(renderEndDate, now));\n\n if (isPast) {\n // past\n color = styles.pastTimeColor;\n fontWeight = styles.pastTimeFontWeight;\n } else {\n // future\n color = styles.futureTimeColor;\n fontWeight = styles.futureTimeFontWeight;\n }\n\n return {\n hour: hour,\n minutes: shiftMinutes,\n hidden: nowAroundHours === hour || index === 0,\n color: color || '',\n fontWeight: fontWeight || ''\n };\n });\n}\n/**\n * @constructor\n * @extends {View}\n * @param {string} name - view name\n * @param {object} options The object for view customization.\n * @param {string} options.renderStartDate - render start date. YYYY-MM-DD\n * @param {string} options.renderEndDate - render end date. YYYY-MM-DD\n * @param {number} [options.hourStart=0] You can change view's start hours.\n * @param {number} [options.hourEnd=0] You can change view's end hours.\n * @param {HTMLElement} panelElement panel element.\n */\nfunction TimeGrid(name, options, panelElement) {\n var container = domutil.appendHTMLElement(\n 'div',\n panelElement,\n config.classname('timegrid-container')\n );\n var stickyContainer = domutil.appendHTMLElement(\n 'div',\n panelElement,\n config.classname('timegrid-sticky-container')\n );\n\n panelElement.style.position = 'relative'; // for stickyContainer\n\n name = name || 'time';\n\n View.call(this, container);\n\n if (!util.browser.safari) {\n /**\n * @type {AutoScroll}\n */\n this._autoScroll = new AutoScroll(container);\n }\n\n this.stickyContainer = stickyContainer;\n\n /**\n * Time view options.\n * @type {object}\n */\n this.options = util.extend({\n viewName: name,\n renderStartDate: '',\n renderEndDate: '',\n hourStart: 0,\n hourEnd: 24,\n timezones: options.timezones,\n isReadOnly: options.isReadOnly,\n showTimezoneCollapseButton: false\n }, options.week);\n\n if (this.options.timezones.length < 1) {\n this.options.timezones = [{\n timezoneOffset: Timezone.getOffset()\n }];\n }\n\n /**\n * Interval id for hourmarker animation.\n * @type {number}\n */\n this.intervalID = 0;\n\n /**\n * timer id for hourmarker initial state\n * @type {number}\n */\n this.timerID = 0;\n\n /**\n * @type {boolean}\n */\n this._scrolled = false;\n\n /**\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n /**\n * cache hoursLabels view model to render again TimeGrid\n * @type {object}\n */\n this._cacheHoursLabels = null;\n\n this.attachEvent();\n}\n\nutil.inherit(TimeGrid, View);\n\n/**********\n * Prototype props\n **********/\n\n/**\n * @type {string}\n */\nTimeGrid.prototype.viewName = 'timegrid';\n\n/**\n * Destroy view.\n * @override\n */\nTimeGrid.prototype._beforeDestroy = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n\n if (this._autoScroll) {\n this._autoScroll.destroy();\n }\n\n domevent.off(this.stickyContainer, 'click', this._onClickStickyContainer, this);\n\n this._autoScroll = this.hourmarkers = this.intervalID =\n this.timerID = this._cacheParentViewModel = this.stickyContainer = null;\n};\n\n/**\n * @param {Date} [time] - date object to convert pixel in grids.\n * use **Date.now()** when not supplied.\n * @returns {number} The pixel value represent current time in grids.\n */\nTimeGrid.prototype._getTopPercentByTime = function(time) {\n var opt = this.options,\n raw = datetime.raw(time || new TZDate()),\n hourLength = util.range(opt.hourStart, opt.hourEnd).length,\n maxMilliseconds = hourLength * datetime.MILLISECONDS_PER_HOUR,\n hmsMilliseconds = datetime.millisecondsFrom('hour', raw.h) +\n datetime.millisecondsFrom('minutes', raw.m) +\n datetime.millisecondsFrom('seconds', raw.s) +\n raw.ms,\n topPercent;\n\n topPercent = common.ratio(maxMilliseconds, 100, hmsMilliseconds);\n topPercent -= common.ratio(maxMilliseconds, 100, datetime.millisecondsFrom('hour', opt.hourStart));\n\n return common.limit(topPercent, [0], [100]);\n};\n\n/**\n * Get Hourmarker viewmodel.\n * @param {TZDate} now - now\n * @param {object} grids grid information(width, left, day)\n * @param {Array.} range render range\n * @returns {object} ViewModel of hourmarker.\n */\nTimeGrid.prototype._getHourmarkerViewModel = function(now, grids, range) {\n var todaymarkerLeft = -1;\n var todaymarkerWidth = -1;\n var hourmarkerTimzones = [];\n var opt = this.options;\n var primaryOffset = Timezone.getOffset();\n var timezones = opt.timezones;\n var viewModel;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(now, date)) {\n todaymarkerLeft = grids[index] ? grids[index].left : 0;\n todaymarkerWidth = grids[index] ? grids[index].width : 0;\n }\n });\n\n util.forEach(timezones, function(timezone) {\n var timezoneDifference = timezone.timezoneOffset + primaryOffset;\n var hourmarker = new TZDate(now);\n var dateDifference;\n\n hourmarker.setMinutes(hourmarker.getMinutes() + timezoneDifference);\n dateDifference = hourmarker.getDate() - now.getDate();\n\n hourmarkerTimzones.push({\n hourmarker: hourmarker,\n dateDifferenceSign: (dateDifference < 0) ? '-' : '+',\n dateDifference: Math.abs(dateDifference)\n });\n });\n\n viewModel = {\n currentHours: now.getHours(),\n hourmarkerTop: this._getTopPercentByTime(now),\n hourmarkerTimzones: hourmarkerTimzones,\n todaymarkerLeft: todaymarkerLeft,\n todaymarkerWidth: todaymarkerWidth,\n todaymarkerRight: todaymarkerLeft + todaymarkerWidth\n };\n\n return viewModel;\n};\n\n/**\n * Get timezone view model\n * @param {number} currentHours - current hour\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @param {object} styles - styles\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getTimezoneViewModel = function(currentHours, timezonesCollapsed, styles) {\n var opt = this.options;\n var primaryOffset = Timezone.getOffset();\n var timezones = opt.timezones;\n var timezonesLength = timezones.length;\n var timezoneViewModel = [];\n var collapsed = timezonesCollapsed;\n var width = collapsed ? 100 : 100 / timezonesLength;\n var now = new TZDate().toLocalTime();\n var backgroundColor = styles.displayTimezoneLabelBackgroundColor;\n\n util.forEach(timezones, function(timezone, index) {\n var hourmarker = new TZDate(now);\n var timezoneDifference;\n var timeSlots;\n var dateDifference;\n\n timezoneDifference = timezone.timezoneOffset + primaryOffset;\n timeSlots = getHoursLabels(opt, currentHours >= 0, timezoneDifference, styles);\n\n hourmarker.setMinutes(hourmarker.getMinutes() + timezoneDifference);\n dateDifference = hourmarker.getDate() - now.getDate();\n\n if (index > 0) {\n backgroundColor = styles.additionalTimezoneBackgroundColor;\n }\n\n timezoneViewModel.push({\n timeSlots: timeSlots,\n displayLabel: timezone.displayLabel,\n timezoneOffset: timezone.timezoneOffset,\n tooltip: timezone.tooltip || '',\n width: width,\n left: collapsed ? 0 : (timezones.length - index - 1) * width,\n isPrimary: index === 0,\n backgroundColor: backgroundColor || '',\n hidden: index !== 0 && collapsed,\n hourmarker: hourmarker,\n dateDifferenceSign: (dateDifference < 0) ? '-' : '+',\n dateDifference: Math.abs(dateDifference)\n });\n });\n\n return timezoneViewModel;\n};\n\n/**\n * Get base viewModel.\n * @param {object} viewModel - view model\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getBaseViewModel = function(viewModel) {\n var grids = viewModel.grids;\n var range = viewModel.range;\n var opt = this.options;\n var baseViewModel = this._getHourmarkerViewModel(new TZDate().toLocalTime(), grids, range);\n var timezonesCollapsed = util.pick(viewModel, 'state', 'timezonesCollapsed');\n var styles = this._getStyles(viewModel.theme, timezonesCollapsed);\n\n return util.extend(baseViewModel, {\n timezones: this._getTimezoneViewModel(baseViewModel.todaymarkerLeft, timezonesCollapsed, styles),\n hoursLabels: getHoursLabels(opt, baseViewModel.todaymarkerLeft >= 0, 0, styles),\n styles: styles,\n showTimezoneCollapseButton: util.pick(opt, 'showTimezoneCollapseButton'),\n timezonesCollapsed: timezonesCollapsed\n });\n};\n\n/**\n * Reconcilation child views and render.\n * @param {object} viewModels Viewmodel\n * @param {object} grids grid information(width, left, day)\n * @param {HTMLElement} container Container element for each time view.\n * @param {Theme} theme - theme instance\n */\nTimeGrid.prototype._renderChildren = function(viewModels, grids, container, theme) {\n var self = this,\n options = this.options,\n childOption,\n child,\n isToday,\n containerHeight,\n today = datetime.format(new TZDate(), 'YYYYMMDD'),\n i = 0;\n\n // clear contents\n container.innerHTML = '';\n this.children.clear();\n\n containerHeight = domutil.getSize(container.parentElement)[1];\n\n // reconcilation of child views\n util.forEach(viewModels, function(schedules, ymd) {\n isToday = ymd === today;\n\n childOption = {\n index: i,\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n ymd: ymd,\n isToday: isToday,\n isPending: options.isPending,\n isFocused: options.isFocused,\n isReadOnly: options.isReadOnly,\n hourStart: options.hourStart,\n hourEnd: options.hourEnd\n };\n\n child = new Time(\n childOption,\n domutil.appendHTMLElement('div', container, config.classname('time-date')),\n theme\n );\n child.render(ymd, schedules, containerHeight);\n\n self.addChild(child);\n\n i += 1;\n });\n};\n\n/**\n * @override\n * @param {object} viewModel ViewModel list from Week view.\n */\nTimeGrid.prototype.render = function(viewModel) {\n var opt = this.options,\n timeViewModel = viewModel.schedulesInDateRange[opt.viewName],\n container = this.container,\n grids = viewModel.grids,\n baseViewModel = this._getBaseViewModel(viewModel),\n scheduleLen = util.keys(timeViewModel).length;\n\n this._cacheParentViewModel = viewModel;\n this._cacheHoursLabels = baseViewModel.hoursLabels;\n\n if (!scheduleLen) {\n return;\n }\n\n baseViewModel.showHourMarker = baseViewModel.todaymarkerLeft >= 0;\n\n container.innerHTML = mainTmpl(baseViewModel);\n\n /**********\n * Render sticky container for timezone display label\n **********/\n this.renderStickyContainer(baseViewModel);\n\n /**********\n * Render children\n **********/\n this._renderChildren(\n timeViewModel,\n grids,\n domutil.find(config.classname('.timegrid-schedules-container'), container),\n viewModel.theme\n );\n\n this._hourLabels = domutil.find('ul', container);\n\n /**********\n * Render hourmarker\n **********/\n this.hourmarkers = domutil.find(config.classname('.timegrid-hourmarker'), container, true);\n\n if (!this._scrolled) {\n this._scrolled = true;\n this.scrollToNow();\n }\n};\n\nTimeGrid.prototype.renderStickyContainer = function(baseViewModel) {\n var stickyContainer = this.stickyContainer;\n\n stickyContainer.innerHTML = timezoneStickyTmpl(baseViewModel);\n\n stickyContainer.style.display = baseViewModel.timezones.length > 1 ? 'block' : 'none';\n stickyContainer.style.width = baseViewModel.styles.leftWidth;\n stickyContainer.style.height = baseViewModel.styles.displayTimezoneLabelHeight;\n stickyContainer.style.borderBottom = baseViewModel.styles.leftBorderRight;\n};\n\n/**\n * Refresh hourmarker element.\n */\nTimeGrid.prototype.refreshHourmarker = function() {\n var hourmarkers = this.hourmarkers;\n var viewModel = this._cacheParentViewModel;\n var hoursLabels = this._cacheHoursLabels;\n var baseViewModel;\n\n if (!hourmarkers || !viewModel) {\n return;\n }\n\n baseViewModel = this._getBaseViewModel(viewModel);\n\n reqAnimFrame.requestAnimFrame(function() {\n var needsRender = false;\n\n util.forEach(hoursLabels, function(hoursLabel, index) {\n if (hoursLabel.hidden !== baseViewModel.hoursLabels[index].hidden) {\n needsRender = true;\n\n return false;\n }\n\n return true;\n });\n\n if (needsRender) {\n this.render(viewModel);\n } else {\n util.forEach(hourmarkers, function(hourmarker) {\n var todaymarker = domutil.find(config.classname('.timegrid-todaymarker'), hourmarker);\n var hourmarkerContainer = domutil.find(config.classname('.timegrid-hourmarker-time'), hourmarker);\n var timezone = domutil.closest(hourmarker, config.classname('.timegrid-timezone'));\n var timezoneIndex = timezone ? domutil.getData(timezone, 'timezoneIndex') : 0;\n\n hourmarker.style.top = baseViewModel.hourmarkerTop + '%';\n\n if (todaymarker) {\n todaymarker.style.display = (baseViewModel.todaymarkerLeft >= 0) ? 'block' : 'none';\n }\n if (hourmarkerContainer) {\n hourmarkerContainer.innerHTML = timegridCurrentTimeTmpl(\n baseViewModel.hourmarkerTimzones[timezoneIndex]\n );\n }\n });\n }\n }, this);\n};\n\n/**\n * Attach events\n */\nTimeGrid.prototype.attachEvent = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n this.intervalID = this.timerID = null;\n\n this.timerID = setTimeout(util.bind(this.onTick, this), (SIXTY_SECONDS - new TZDate().getSeconds()) * 1000);\n\n domevent.on(this.stickyContainer, 'click', this._onClickStickyContainer, this);\n};\n\n/**\n * Scroll time grid to current hourmarker.\n */\nTimeGrid.prototype.scrollToNow = function() {\n var container = this.container;\n var offsetTop,\n viewBound,\n scrollTop,\n scrollAmount,\n scrollBy,\n scrollFn;\n\n if (!this.hourmarkers || !this.hourmarkers.length) {\n return;\n }\n\n offsetTop = this.hourmarkers[0].offsetTop;\n viewBound = this.getViewBound();\n scrollTop = offsetTop;\n scrollAmount = viewBound.height / 4;\n scrollBy = 10;\n\n scrollFn = function() {\n if (scrollTop > offsetTop - scrollAmount) {\n scrollTop -= scrollBy;\n container.scrollTop = scrollTop;\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n } else {\n container.scrollTop = offsetTop - scrollAmount;\n }\n };\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n};\n\n/**********\n * Schedule handlers\n **********/\n\n/**\n * Interval tick handler\n */\nTimeGrid.prototype.onTick = function() {\n if (this.timerID) {\n clearTimeout(this.timerID);\n this.timerID = null;\n }\n\n if (!this.intervalID) {\n this.intervalID = setInterval(util.bind(this.onTick, this), HOURMARKER_REFRESH_INTERVAL);\n }\n this.refreshHourmarker();\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nTimeGrid.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderBottom = theme.week.timegridHorizontalLine.borderBottom || theme.common.border;\n styles.halfHourBorderBottom = theme.week.timegridHalfHour.borderBottom || theme.common.border;\n\n styles.todayBackgroundColor = theme.week.today.backgroundColor;\n styles.weekendBackgroundColor = theme.week.weekend.backgroundColor;\n styles.backgroundColor = theme.week.daygrid.backgroundColor;\n styles.leftWidth = theme.week.timegridLeft.width;\n styles.leftBackgroundColor = theme.week.timegridLeft.backgroundColor;\n styles.leftBorderRight = theme.week.timegridLeft.borderRight || theme.common.border;\n styles.leftFontSize = theme.week.timegridLeft.fontSize;\n styles.timezoneWidth = theme.week.timegridLeft.width;\n styles.additionalTimezoneBackgroundColor = theme.week.timegridLeftAdditionalTimezone.backgroundColor\n || styles.leftBackgroundColor;\n\n styles.displayTimezoneLabelHeight = theme.week.timegridLeftTimezoneLabel.height;\n styles.displayTimezoneLabelBackgroundColor = theme.week.timegridLeft.backgroundColor === 'inherit' ? 'white' : theme.week.timegridLeft.backgroundColor;\n\n styles.oneHourHeight = theme.week.timegridOneHour.height;\n styles.halfHourHeight = theme.week.timegridHalfHour.height;\n styles.quaterHourHeight = (parseInt(styles.halfHourHeight, 10) / 2) + 'px';\n\n styles.currentTimeColor = theme.week.currentTime.color;\n styles.currentTimeFontSize = theme.week.currentTime.fontSize;\n styles.currentTimeFontWeight = theme.week.currentTime.fontWeight;\n\n styles.pastTimeColor = theme.week.pastTime.color;\n styles.pastTimeFontWeight = theme.week.pastTime.fontWeight;\n\n styles.futureTimeColor = theme.week.futureTime.color;\n styles.futureTimeFontWeight = theme.week.futureTime.fontWeight;\n\n styles.currentTimeLeftBorderTop = theme.week.currentTimeLinePast.border;\n styles.currentTimeBulletBackgroundColor = theme.week.currentTimeLineBullet.backgroundColor;\n styles.currentTimeTodayBorderTop = theme.week.currentTimeLineToday.border;\n styles.currentTimeRightBorderTop = theme.week.currentTimeLineFuture.border;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.leftWidth);\n styles.leftWidth = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\n/**\n * @param {MouseEvent} event - mouse event object\n */\nTimeGrid.prototype._onClickStickyContainer = function(event) {\n var target = event.target || event.srcElement;\n var closeBtn = domutil.closest(target, config.classname('.timegrid-timezone-close-btn'));\n\n if (!closeBtn) {\n return;\n }\n\n this.fire('clickTimezonesCollapsedBtn');\n};\n\nmodule.exports = TimeGrid;\n","/**\n * @fileoverview View of days UI.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../view');\n\n/**\n * @constructor\n * @param {Base.Week} controller The controller mixin part.\n * @param {object} options View options\n * @param {string} [options.renderStartDate] Start date of render.\n * if not supplied then use -3d from today. YYYY-MM-DD format.\n * @param {string} [options.renderEndDate] End date of render.\n * if not supplied then use +3d from today. YYYY-MM-DD format.\n * @param {string} [options.cssPrefix] - CSS classname prefix\n * @param {HTMLElement} container The element to use container for this view.\n * @param {object} panels - schedule panels like 'milestone', 'task', 'allday', 'time'\n * @param {string} viewName - 'week', 'day'\n * @extends {View}\n */\nfunction Week(controller, options, container, panels, viewName) {\n var range;\n\n container = domutil.appendHTMLElement('div', container);\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('week-container'));\n\n range = this._getRenderDateRange(new TZDate());\n\n /**\n * @type {object} Options for view.\n */\n this.options = util.extend({\n scheduleFilter: [function(schedule) {\n return Boolean(schedule.isVisible);\n }],\n renderStartDate: datetime.format(range.start, 'YYYY-MM-DD'),\n renderEndDate: datetime.format(range.end, 'YYYY-MM-DD'),\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false,\n showTimezoneCollapseButton: false,\n timezonesCollapsed: false,\n hourStart: 0,\n hourEnd: 24\n }, options);\n\n /**\n * Week controller mixin.\n * @type {Base.Week}\n */\n this.controller = controller;\n\n /**\n * Schedule Panels\n * @type {Array.}\n */\n this.panels = panels;\n\n /**\n * Week view states\n * @type {object}\n */\n this.state = {\n timezonesCollapsed: this.options.timezonesCollapsed\n };\n\n if (viewName === 'day') {\n _disableDayOptions(this.options);\n }\n}\n\nutil.inherit(Week, View);\n\n/**********\n * Override props\n **********/\n\n/**\n * Render each child view with schedules in ranges.\n * @fires Week#afterRender\n * @override\n */\nWeek.prototype.render = function() {\n var self = this,\n options = this.options,\n scheduleFilter = options.scheduleFilter,\n narrowWeekend = options.narrowWeekend,\n startDayOfWeek = options.startDayOfWeek,\n workweek = options.workweek,\n theme = this.controller.theme || {},\n state = this.state;\n var renderStartDate, renderEndDate, schedulesInDateRange, viewModel, grids, range;\n\n renderStartDate = new TZDate(options.renderStartDate);\n renderEndDate = new TZDate(options.renderEndDate);\n\n range = datetime.range(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n datetime.MILLISECONDS_PER_DAY\n );\n\n if (options.workweek && datetime.compare(renderStartDate, renderEndDate)) {\n range = util.filter(range, function(date) {\n return !datetime.isWeekend(date.getDay());\n });\n\n renderStartDate = range[0];\n renderEndDate = range[range.length - 1];\n }\n\n schedulesInDateRange = this.controller.findByDateRange(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n this.panels,\n scheduleFilter,\n this.options\n );\n\n grids = datetime.getGridLeftAndWidth(\n range.length,\n narrowWeekend,\n startDayOfWeek,\n workweek\n );\n\n viewModel = {\n schedulesInDateRange: schedulesInDateRange,\n renderStartDate: renderStartDate,\n renderEndDate: renderEndDate,\n grids: grids,\n range: range,\n theme: theme,\n state: state\n };\n\n this.children.each(function(childView) {\n var matrices;\n var viewName = util.pick(childView.options, 'viewName');\n childView.render(viewModel);\n\n if (viewName) {\n matrices = viewModel.schedulesInDateRange[viewName]; // DayGrid limits schedule count by visibleScheduleCount after rendering it.\n\n if (util.isArray(matrices)) {\n self._invokeAfterRenderSchedule(matrices);\n } else {\n util.forEach(matrices, function(matricesOfDay) {\n self._invokeAfterRenderSchedule(matricesOfDay);\n });\n }\n }\n });\n\n /**\n * @event Week#afterRender\n */\n this.fire('afterRender');\n};\n\n/**\n * Fire 'afterRenderSchedule' event\n * @param {Array} matrices - schedule matrices from view model\n * @fires Week#afterRenderSchedule\n */\nWeek.prototype._invokeAfterRenderSchedule = function(matrices) {\n var self = this;\n util.forEachArray(matrices, function(matrix) {\n util.forEachArray(matrix, function(column) {\n util.forEachArray(column, function(scheduleViewModel) {\n if (scheduleViewModel) {\n /**\n * @event Week#afterRenderSchedule\n */\n self.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n });\n });\n};\n\n/**********\n * Prototype props\n **********/\n\nWeek.prototype.viewName = 'week';\n\n/**\n * Calculate default render date range from supplied date.\n * @param {Date} baseDate base date.\n * @returns {object} date range.\n */\nWeek.prototype._getRenderDateRange = function(baseDate) {\n var base = datetime.start(baseDate),\n start = new TZDate(Number(base)),\n end = new TZDate(Number(base));\n\n start.setDate(start.getDate() - 3);\n end.setDate(end.getDate() + 3);\n\n return {\n start: start,\n end: end\n };\n};\n\n/**\n * disable options for day view\n * @param {WeekOptions} options - week options to disable\n */\nfunction _disableDayOptions(options) {\n options.workweek = false;\n}\n\nutil.CustomEvents.mixin(Week);\n\nmodule.exports = Week;\n","/**\n * @fileoverview Weekday view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n datetime = require('../common/datetime'),\n TZDate = require('../common/timezone').Date,\n View = require('./view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - view options.\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction Weekday(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('weekday')\n );\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n containerBottomGutter: 8,\n scheduleHeight: 18,\n scheduleGutter: 2,\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false\n }, options);\n\n /*\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n View.call(this, container);\n}\n\nutil.inherit(Weekday, View);\n\n/**\n * Get render date range\n * @returns {Date[]} rendered date range\n */\nWeekday.prototype.getRenderDateRange = function() {\n return this._cacheParentViewModel.range;\n};\n\n/**\n * Get render date grids information\n * @returns {Date[]} rendered date grids information\n */\nWeekday.prototype.getRenderDateGrids = function() {\n return this._cacheParentViewModel.grids;\n};\n\n/**\n * Get default view model.\n * @param {object} viewModel parent's view model\n * @returns {object} viewModel to rendering.\n */\nWeekday.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var range = viewModel.range;\n var gridWidth = (100 / range.length);\n var grids = viewModel.grids;\n var exceedDate = viewModel.exceedDate || {};\n var theme = viewModel.theme;\n var now = new TZDate().toLocalTime();\n\n this._cacheParentViewModel = viewModel;\n\n return {\n width: gridWidth,\n scheduleHeight: opt.scheduleHeight,\n scheduleBlockHeight: (opt.scheduleHeight + opt.scheduleGutter),\n scheduleBlockGutter: opt.scheduleGutter,\n dates: util.map(range, function(date, index) {\n var day = date.getDay();\n var ymd = datetime.format(new TZDate(date), 'YYYYMMDD');\n var isToday = datetime.isSameDate(now, date);\n\n return {\n date: datetime.format(date, 'YYYY-MM-DD'),\n month: date.getMonth() + 1,\n day: day,\n isToday: isToday,\n ymd: ymd,\n hiddenSchedules: exceedDate[ymd] || 0,\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0,\n color: this._getDayNameColor(theme, day, isToday),\n backgroundColor: this._getDayBackgroundColor(theme, day)\n };\n }, this)\n };\n};\n\n/* eslint max-nested-callbacks: 0 */\n/**\n * Make exceed date information\n * @param {number} maxCount - exceed schedule count\n * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n * @param {Array.} range - date range of one week\n * @returns {object} exceedDate\n */\nWeekday.prototype.getExceedDate = function(maxCount, eventsInDateRange, range) {\n var exceedDate = this._initExceedDate(range);\n\n util.forEach(eventsInDateRange, function(matrix) {\n util.forEach(matrix, function(column) {\n util.forEach(column, function(viewModel) {\n var period;\n if (!viewModel || viewModel.top < maxCount) {\n return;\n }\n\n // check that this schedule block is not visible after rendered.\n viewModel.hidden = true;\n\n period = datetime.range(\n viewModel.getStarts(),\n viewModel.getEnds(),\n datetime.MILLISECONDS_PER_DAY\n );\n\n util.forEach(period, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] += 1;\n });\n });\n });\n });\n\n return exceedDate;\n};\n\n/**\n * Initiate exceed date information\n * @param {Array.} range - date range of one week\n * @returns {Object} - initiated exceed date\n */\nWeekday.prototype._initExceedDate = function(range) {\n var exceedDate = {};\n\n util.forEach(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] = 0;\n });\n\n return exceedDate;\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {boolean} isOtherMonth - not this month flag\n * @returns {string} style - color style\n */\nWeekday.prototype._getDayNameColor = function(theme, day, isToday, isOtherMonth) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = isOtherMonth ? theme.month.holidayExceptThisMonth.color : theme.common.holiday.color;\n } else if (day === 6) {\n color = isOtherMonth ? theme.month.dayExceptThisMonth.color : theme.common.saturday.color;\n } else if (isToday) {\n color = theme.common.today.color;\n } else {\n color = isOtherMonth ? theme.month.dayExceptThisMonth.color : theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\n/**\n * Get a day background color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @returns {string} style - color style\n */\nWeekday.prototype._getDayBackgroundColor = function(theme, day) {\n var color = '';\n\n if (theme) {\n if (day === 0 || day === 6) {\n color = theme.month.weekend.backgroundColor;\n } else {\n color = 'inherit';\n }\n }\n\n return color;\n};\n\nmodule.exports = Weekday;\n","module.exports = __WEBPACK_EXTERNAL_MODULE_tui_code_snippet__;","module.exports = __WEBPACK_EXTERNAL_MODULE_tui_date_picker__;"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/tui-calendar.min.css b/dist/tui-calendar.min.css index 741e2a52e..e2e68bcc7 100644 --- a/dist/tui-calendar.min.css +++ b/dist/tui-calendar.min.css @@ -1,6 +1,6 @@ /*! * TOAST UI Calendar - * @version 1.12.10 | Thu Jan 23 2020 + * @version 1.12.11 | Wed Feb 05 2020 * @author NHN FE Development Lab * @license MIT */.tui-full-calendar-layout{height:100%;position:relative;box-sizing:border-box}.tui-full-calendar-layout *{box-sizing:border-box}.tui-full-calendar-dragging{cursor:move}.tui-full-calendar-resizing{cursor:row-resize}.tui-full-calendar-resizing-x{cursor:col-resize}.tui-full-calendar-hidden{display:none!important}.tui-full-calendar-invisible span{visibility:hidden}.tui-full-calendar-clear{zoom:1}.tui-full-calendar-clear:after{content:"";display:block;clear:both}.tui-full-calendar-scroll-y{overflow-y:scroll}.tui-full-calendar-dot{display:inline-block;position:relative;top:-1px;content:"";width:7px;height:7px;border-radius:50%}.tui-full-calendar-holiday{color:red}.tui-full-calendar-today{background:rgba(218,229,249,.3)}.handle-x{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAACVBMVEX///////////+OSuX+AAAAA3RSTlMrQJG5H4EIAAAAEUlEQVR4AWNgYoRABhjEFAEAArQAIcHQcPsAAAAASUVORK5CYII=)}.handle-x,.handle-y{background-position:50%;background-repeat:no-repeat}.handle-y{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAICAMAAADp7a43AAAACVBMVEX///////////+OSuX+AAAAA3RSTlMrQJG5H4EIAAAAEUlEQVR4AWNgYmRiZABB/CwAAtgAIUTUNkMAAAAASUVORK5CYII=)}@media only screen and (-moz-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:3/2),only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min-devicepixel-ratio:1.5),only screen and (min-resolution:1.5dppx){.handle-x{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAICAMAAADHqI+lAAAACVBMVEX///////////+OSuX+AAAAA3RSTlMZK5EY+QKaAAAAGUlEQVR4AWNgYmJAwegCIMDIiIwxBKhhBgAcSABh8gN42gAAAABJRU5ErkJggg==);background-size:8px 4px}.handle-y{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAQCAMAAAAcVM5PAAAACVBMVEX///////////+OSuX+AAAAA3RSTlMEK5EMBzK5AAAAGElEQVR4AWNgYmIAYxgDBBgZQRjOoKcaABzQAGGjsIM/AAAAAElFTkSuQmCC);background-size:4px 8px}}.tui-full-calendar-month-week-item .tui-full-calendar-weekday-grid{overflow-y:hidden}.tui-full-calendar-month-week-item .tui-full-calendar-weekday-schedules{overflow-y:visible;height:0}.tui-full-calendar-month-week-item .tui-full-calendar-weekday-schedule{margin:0 10px}.tui-full-calendar-month-week-item .tui-full-calendar-today{background:none}.tui-full-calendar-month-week-item .tui-full-calendar-today .tui-full-calendar-weekday-grid-date-decorator{display:inline-block;width:27px;height:27px;line-height:27px;text-align:center;background:#135de6;border-radius:50%;color:#fff;font-weight:700;margin-left:2px}.tui-full-calendar-weekday-container,.tui-full-calendar-weekday-grid,.tui-full-calendar-weekday-grid-line{height:100%;min-height:inherit}.tui-full-calendar-weekday-grid{position:absolute;width:100%;overflow-y:scroll}.tui-full-calendar-weekday-border{border-top:1px solid #ddd}.tui-full-calendar-weekday-container{position:relative}.tui-full-calendar-weekday-container>div{height:100%}.tui-full-calendar-weekday-grid-line{position:absolute;padding:3px}.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-footer{position:absolute;bottom:4px}.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-date{display:inline-block;width:27px;height:27px;line-height:27px;text-align:center}.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-date-title{line-height:27px;margin-right:5px}.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-more-schedules{float:right;display:inline-block;height:27px;line-height:27px;padding:0 5px;text-align:center;font-size:11px;font-weight:700;color:#aaa}.tui-full-calendar-weekday-creation,.tui-full-calendar-weekday-schedules{top:0;left:0;width:100%;height:100%;position:absolute;overflow-y:scroll}.tui-full-calendar-weekday-schedules{font-size:12px}.tui-full-calendar-weekday-schedules-height-span{width:1px;margin-left:-1px}.tui-full-calendar-weekday-schedule-block{position:absolute}.tui-full-calendar-weekday-schedule-block-dragging-dim{opacity:.3}.tui-full-calendar-weekday-schedule{position:relative;margin:0 10px 0 1px;cursor:pointer;border-left-style:solid;border-left-width:3px}.tui-full-calendar-weekday-schedule.tui-full-calendar-weekday-schedule-time{border-left-width:0}.tui-full-calendar-weekday-schedule.tui-full-calendar-weekday-schedule-time .tui-full-calendar-weekday-schedule-title{padding-left:9px}.tui-full-calendar-weekday-schedule-bullet{position:absolute;padding:0;width:6px;height:6px;top:6px;left:0;border-radius:50%}.tui-full-calendar-weekday-schedule-bullet-focused{left:10px;background:#fff}.tui-full-calendar-weekday-schedule-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:3px;font-weight:700}.tui-full-calendar-weekday-schedule-title-focused{padding-left:16px}.tui-full-calendar-weekday-schedule-cover{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.2);box-shadow:0 2px 6px 0 rgba(0,0,0,.1)}.tui-full-calendar-weekday-exceed-left .tui-full-calendar-weekday-schedule{margin-left:0;border-left-width:0}.tui-full-calendar-weekday-exceed-right .tui-full-calendar-weekday-schedule{margin-right:0}.tui-full-calendar-weekday-exceed-right .tui-full-calendar-weekday-resize-handle{display:none}.tui-full-calendar-weekday-exceed-in-month{cursor:pointer}.tui-full-calendar-weekday-exceed-in-month:hover{background-color:#f0f1f5}.tui-full-calendar-weekday-collapse-btn,.tui-full-calendar-weekday-exceed-in-week{position:absolute;bottom:5px;margin-right:5px;font-size:12px;line-height:14px;cursor:pointer;padding:1px 5px;background-color:#fff;border:1px solid #ddd;color:#000}.tui-full-calendar-weekday-resize-handle{position:absolute;top:0;right:0;width:6px;background-position:3px;cursor:col-resize;line-height:18px}.tui-full-calendar-weekday-filled{background-color:#e8e8e8!important}.tui-full-calendar-left{height:100%;float:left;box-sizing:border-box;display:table}.tui-full-calendar-left-content{display:table-cell;vertical-align:middle;text-align:right;font-size:11px}.tui-full-calendar-right{height:100%;overflow-y:scroll;position:relative}.tui-full-calendar-week-container{width:100%;height:inherit;display:inline-block;font-size:10px;min-height:600px}.tui-full-calendar-week-container .tui-full-calendar-today{background:none}.tui-full-calendar-dayname{position:absolute;margin-left:-1px;height:100%;overflow:hidden}.tui-full-calendar-dayname.tui-full-calendar-today{font-weight:700}.tui-full-calendar-dayname-container{overflow-y:scroll}.tui-full-calendar-dayname-leftmargin{position:relative;height:100%}.tui-full-calendar-dayname-date{font-size:26px}.tui-full-calendar-dayname-name{font-weight:700;font-size:12px}.tui-full-calendar-daygrid-layout{height:100%}.tui-full-calendar-daygrid-layout .tui-full-calendar-right{overflow-y:hidden}.tui-full-calendar-daygrid-guide-creation-block{position:absolute;top:0;bottom:0;z-index:1}.tui-full-calendar-timegrid-container{height:100%;position:relative;overflow:hidden;overflow-y:scroll}.tui-full-calendar-timegrid-container-split{height:100%;position:relative;overflow:hidden}.tui-full-calendar-timegrid-left{position:absolute}.tui-full-calendar-timegrid-hour{position:relative;color:#555;box-sizing:border-box}.tui-full-calendar-timegrid-hour:first-child span{display:none}.tui-full-calendar-timegrid-hour:last-child{border-bottom:none}.tui-full-calendar-timegrid-hour span{position:absolute;top:-11px;left:0;right:5px;text-align:right;line-height:25px}.tui-full-calendar-timegrid-right{position:relative}.tui-full-calendar-timegrid-gridline{border-bottom:1px solid #eee;box-sizing:border-box}.tui-full-calendar-timegrid-gridline:last-child{border-bottom:none}.tui-full-calendar-timegrid-schedules{position:absolute;width:100%;height:100%;top:0;left:0;cursor:pointer}.tui-full-calendar-timegrid-hourmarker{position:absolute;width:100%;display:table}.tui-full-calendar-timegrid-hourmarker-line-left{position:absolute;min-height:1px;left:0}.tui-full-calendar-timegrid-hourmarker-line-today{position:absolute;min-height:1px}.tui-full-calendar-timegrid-hourmarker-line-right{position:absolute;min-height:1px;right:0}.tui-full-calendar-timegrid-hourmarker-time{padding-right:5px;line-height:12px;text-align:right;display:table-cell;vertical-align:bottom}.tui-full-calendar-timegrid-todaymarker{position:absolute;text-indent:-9999px;width:9px;height:9px;background-color:#135de6;margin:-4px 0 0 -5px;border-radius:50%}.tui-full-calendar-timegrid-sticky-container{position:absolute;top:0}.tui-full-calendar-timegrid-timezone-label-container{position:absolute}.tui-full-calendar-timegrid-timezone-label-cell{display:table}.tui-full-calendar-timegrid-timezone-label{display:table-cell;vertical-align:middle;padding-right:5px;text-align:right}.tui-full-calendar-timegrid-timezone-close-btn{cursor:pointer;position:absolute;text-align:center;background-color:#fff}.tui-full-calendar-timegrid-timezone-close-btn .tui-full-calendar-icon{width:5px;height:10px}.tui-full-calendar-time-date{position:absolute;height:100%;margin-left:-1px;box-sizing:content-box}.tui-full-calendar-time-date:last-child{border-right:none;margin:0}.tui-full-calendar-time-date:last-child .tui-full-calendar-time-guide-creation,.tui-full-calendar-time-date:last-child .tui-full-calendar-time-schedule{left:0}.tui-full-calendar-time-date-schedule-block-wrap{position:relative;height:100%}.tui-full-calendar-time-date-schedule-block{position:absolute;right:0}.tui-full-calendar-time-date-schedule-block-pending{opacity:.7}.tui-full-calendar-time-date-schedule-block-dragging-dim{opacity:.3}.tui-full-calendar-time-date-schedule-block-focused{box-shadow:0 0 8px 0 rgba(0,0,0,.2)}.tui-full-calendar-time-date-schedule-block-cover{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.2);box-shadow:0 2px 6px 0 rgba(0,0,0,.1)}.tui-full-calendar-time-schedule{position:relative;left:1px;height:100%;overflow:hidden;font-size:12px;font-weight:700}.tui-full-calendar-time-schedule-content{overflow:hidden;border-left-width:3px;border-left-style:solid;padding:1px 0 0 3px}.tui-full-calendar-time-schedule-content-travel-time{font-weight:400;font-size:11px}.tui-full-calendar-time-resize-handle{position:absolute;right:0;bottom:0;left:0;height:5px;text-align:center;color:#fff;cursor:row-resize;background-position:top}.tui-full-calendar-time-guide-creation{position:absolute;right:10px;left:1px;padding:3px}.tui-full-calendar-time-guide-move .tui-full-calendar-time-resize-handle,.tui-full-calendar-time-guide-move .tui-full-calendar-time-schedule,.tui-full-calendar-time-guide-resize .tui-full-calendar-time-resize-handle,.tui-full-calendar-time-guide-resize .tui-full-calendar-time-schedule{opacity:.8;z-index:97}.tui-full-calendar-time-guide-creation-label{cursor:default}.tui-full-calendar-time-guide-bottom{position:absolute;bottom:3px}.tui-full-calendar-month{height:100%;min-height:600px}.tui-full-calendar-month-dayname{width:100%;position:absolute;font-size:13px}.tui-full-calendar-month-dayname-item{height:100%;font-weight:700}.tui-full-calendar-month-week-item{position:relative}.tui-full-calendar-month-week-item>div{height:100%}.tui-full-calendar-month-more{height:inherit;min-width:280px;min-height:150px}.tui-full-calendar-month-more-title{position:relative}.tui-full-calendar-month-more-title-day{font-size:23px;color:#333}.tui-full-calendar-month-more-title-day-label{font-size:12px;color:#333}.tui-full-calendar-month-more-close{position:absolute;right:0;outline:0;background:none;border:0;font-size:14px;line-height:28px;padding:0 7px;cursor:pointer}.tui-full-calendar-month-more-list{overflow-y:auto}.tui-full-calendar-month-more-schedule{cursor:pointer;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px}.tui-full-calendar-month-guide-block{position:absolute}.tui-full-calendar-month-weekday-schedule{margin-top:2px}.tui-full-calendar-month-creation-guide{top:0;bottom:-1px;left:-1px;right:0;position:absolute;z-index:20}.tui-full-calendar-month-guide-focused{box-shadow:0 0 8px 0 rgba(0,0,0,.2)}.tui-full-calendar-month-guide{position:relative;padding-left:3px;line-height:18px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tui-full-calendar-month-guide-cover{width:100%;position:absolute;top:-50%;left:-50%;background-color:rgba(0,0,0,.2);box-shadow:0 2px 6px 0 rgba(0,0,0,.1)}.tui-full-calendar-month-exceed-left .tui-full-calendar-month-guide{margin-left:0}.tui-full-calendar-month-exceed-right .tui-full-calendar-month-guide{margin-right:0}.tui-full-calendar-month-exceed-right .tui-full-calendar-month-guide-handle{display:none}.tui-full-calendar-month-guide-handle{position:absolute;top:0;right:3px;width:6px;background-position:3px;cursor:col-resize}.tui-full-calendar-vlayout-container{position:relative}.tui-full-calendar-splitter{clear:left;cursor:row-resize}.tui-full-calendar-splitter:hover{border-color:#999}.tui-full-calendar-splitter-focused{background-color:#ddd;border:none}.tui-full-calendar-splitter-guide{position:absolute;width:100%;height:3px;border:none;background-color:#e8e8e8}.tui-full-calendar-popup{position:absolute;font-weight:2.5;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);clear:both}.tui-full-calendar-popup-container{min-width:474px;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);background-color:#fff;border:1px solid #d5d5d5;padding:17px;border-radius:2px}.tui-full-calendar-popup-section{font-size:0;min-height:40px}.tui-full-calendar-section-calendar{width:176px}.tui-full-calendar-section-calendar.tui-full-calendar-hide{height:21px;visibility:hidden}.tui-full-calendar-section-title{width:calc(100% - 36px);padding-right:4px}.tui-full-calendar-section-title input{width:365px}.tui-full-calendar-button.tui-full-calendar-section-private{height:32px;padding:8px;font-size:0;margin-left:4px}.tui-full-calendar-section-private.tui-full-calendar-public .tui-full-calendar-ic-private{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAKdJREFUKBVjYCATMKLri46Olvn9+3fX////HUByjIyMB1hZWcuWLl36BFktikaQpl+/fl0EKhBCVgRkv2NjY9NH1syErABkE1TTdqBCWRAG8reDxKBycOUoGmHOA2pIA5kOwiA2SDVMDq4TmREaGvofhJHFcLHhfgwLC9sKNNULl0KQODCgtq1atcobxIY7lZAmkGJkNXCNIAlSwIjSCApqIgJnK0wNALoOPwSpOcq0AAAAAElFTkSuQmCC) no-repeat}.tui-full-calendar-section-end-date,.tui-full-calendar-section-start-date{width:176px}.tui-full-calendar-section-end-date input,.tui-full-calendar-section-start-date input{width:139px}.tui-full-calendar-section-end-date:focus .tui-datepicker,.tui-full-calendar-section-end-date:focus .tui-full-calendar-popup-section-item,.tui-full-calendar-section-end-date:hover .tui-datepicker,.tui-full-calendar-section-end-date:hover .tui-full-calendar-popup-section-item,.tui-full-calendar-section-start-date:focus .tui-datepicker,.tui-full-calendar-section-start-date:focus .tui-full-calendar-popup-section-item,.tui-full-calendar-section-start-date:hover .tui-datepicker,.tui-full-calendar-section-start-date:hover .tui-full-calendar-popup-section-item{border-color:#bbb}.tui-full-calendar-section-date-dash{font-size:12px;color:#d5d5d5;height:32px;padding:0 4px;vertical-align:middle}.tui-full-calendar-popup-section-item.tui-full-calendar-section-allday{border:none;padding:0 0 0 8px;cursor:pointer}.tui-full-calendar-popup-section-item.tui-full-calendar-section-location{display:block}.tui-full-calendar-popup-section-item.tui-full-calendar-section-location input{width:400px}.tui-full-calendar-section-allday .tui-full-calendar-icon.tui-full-calendar-ic-checkbox{margin:0}.tui-full-calendar-popup-section-item.tui-full-calendar-section-allday .tui-full-calendar-content{padding-left:4px}.tui-full-calendar-section-state{width:109px}.tui-full-calendar-section-state .tui-full-calendar-content{width:58px;text-overflow:ellipsis;overflow:hidden}.tui-full-calendar-popup-section-item{height:32px;padding:0 9px 0 12px;border:1px solid #d5d5d5;display:inline-block;font-size:0;border-radius:2px}.tui-full-calendar-popup-section-item:focus,.tui-full-calendar-popup-section-item:hover{border-color:#bbb}.tui-full-calendar-popup-section-item .tui-full-calendar-icon{position:relative}.tui-full-calendar-icon.tui-full-calendar-ic-title{top:2px}.tui-full-calendar-popup-section-item .tui-full-calendar-content{text-align:left;display:inline-block;font-size:12px;vertical-align:middle;position:relative;padding-left:8px}.tui-full-calendar-section-calendar .tui-full-calendar-dropdown-button .tui-full-calendar-content{width:125px;text-overflow:ellipsis;overflow:hidden;top:-1px}.tui-full-calendar-popup-section-item input{border:none;height:30px;outline:none;display:inline-block}.tui-full-calendar-popup-section-item input::placeholder{color:#bbb;font-weight:300}.tui-full-calendar-dropdown{position:relative}.tui-full-calendar-dropdown:hover .tui-full-calendar-dropdown-button{border:1px solid #bbb}.tui-full-calendar-dropdown-button.tui-full-calendar-popup-section-item{height:32px;font-size:0;top:-1px}.tui-full-calendar-dropdown-arrow{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAHlJREFUKBVjYBgFOEOAEVkmPDxc89+/f6eAYjzI4kD2FyYmJrOVK1deh4kzwRggGiQBVJCELAZig8SQNYHEmEEEMrh69eo1HR0dfqCYJUickZGxf9WqVf3IakBsFBthklpaWmVA9mEQhrJhUoTp0NBQCRAmrHL4qgAAuu4cWZOZIGsAAAAASUVORK5CYII=) no-repeat}.dropdown.open .tui-full-calendar-dropdown-arrow,.tui-full-calendar-open .tui-full-calendar-dropdown-arrow{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAIFJREFUKBVjYBj+gBmXF2NiYiTV1dV5rl279gWbGiZsgg0NDSw/f/5cCZRbBWJjU4PVRjExsR6g4nAgln/z5g3v1atXd6JrxtAYHh4e+v///z4khZa6urrXgJqvIYkxMCJzgJo0//37dwooxoMsDmR/YWJiMlu5cuV1NPFRLrYQAADMVCaUtbG7XwAAAABJRU5ErkJggg==) no-repeat}.tui-full-calendar-dropdown-menu{position:absolute;top:31px;padding:4px 0;background-color:#fff;border:1px solid #d5d5d5;border-top:none;border-radius:0 0 2px 2px;width:100%}.tui-full-calendar-dropdown:hover .tui-full-calendar-dropdown-menu{border:1px solid #bbb;border-top:none}.tui-full-calendar-dropdown-menu{display:none}.tui-full-calendar-open .tui-full-calendar-dropdown-menu{display:block}.tui-full-calendar-dropdown-menu-item{height:30px;border:none;cursor:pointer}.tui-full-calendar-section-calendar .tui-full-calendar-dropdown-menu-item,.tui-full-calendar-section-state .tui-full-calendar-dropdown-menu-item{width:100%}.tui-full-calendar-dropdown-menu-item:hover{background-color:rgba(81,92,230,.05)}.tui-full-calendar-dropdown-menu-item .tui-full-calendar-content{line-height:30px}.tui-full-calendar-button.tui-full-calendar-popup-close{position:absolute;top:10px;right:10px;background-color:#fff;padding:2px;border:none}.tui-full-calendar-section-button-save{height:36px}.tui-full-calendar-popup-save{float:right}.tui-full-calendar-popup-arrow-border,.tui-full-calendar-popup-arrow-fill{position:absolute}.tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-border{border:8px solid transparent;border-top:none;border-bottom:8px solid #d5d5d5;left:calc(50% - 8px);top:-7px}.tui-full-calendar-arrow-right .tui-full-calendar-popup-arrow-border{border:8px solid transparent;border-right:none;border-left:8px solid #d5d5d5;top:calc(50% - 8px);right:-7px}.tui-full-calendar-arrow-bottom .tui-full-calendar-popup-arrow-border{border:8px solid transparent;border-top-color:#d5d5d5;border-bottom:none;left:calc(50% - 8px);bottom:-7px}.tui-full-calendar-arrow-left .tui-full-calendar-popup-arrow-border{border:8px solid transparent;border-right-color:#d5d5d5;border-left:none;top:calc(50% - 8px);left:-7px}.tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-fill{border:7px solid transparent;border-top:none;border-bottom:7px solid #fff;left:-7px;top:1px}.tui-full-calendar-arrow-right .tui-full-calendar-popup-arrow-fill{border:7px solid transparent;border-right:none;border-left:7px solid #fff;top:-7px;right:1px}.tui-full-calendar-arrow-bottom .tui-full-calendar-popup-arrow-fill{border:7px solid transparent;border-top-color:#fff;border-bottom:none;left:-7px;bottom:1px}.tui-full-calendar-arrow-left .tui-full-calendar-popup-arrow-fill{border:7px solid transparent;border-right-color:#fff;border-left:none;top:-7px;left:1px}.tui-full-calendar-button{background:#fff;border:1px solid #d5d5d5;border-radius:2px;text-align:center;outline:none;font-size:12px;cursor:pointer;color:#333}.tui-full-calendar-button:hover{border-color:#bbb;color:#333}.tui-full-calendar-button:active{background:#f9f9f9;color:#333}.tui-full-calendar-button .round{border-radius:25px}.tui-full-calendar-confirm{width:96px;height:36px;border-radius:40px;background-color:#ff6618;font-size:12px;font-weight:700;color:#fff;border:none}.tui-full-calendar-confirm:hover{background-color:#e55b15;color:#fff}.tui-full-calendar-confirm:active{background-color:#d95614;color:#fff}.tui-full-calendar-icon.tui-full-calendar-right{float:right;top:1px}.tui-full-calendar-icon .tui-full-calendar-none{display:none}.tui-full-calendar-icon.tui-full-calendar-calendar-dot{border-radius:8px;width:12px;height:12px;margin:1px}input[type=checkbox].tui-full-calendar-checkbox-square{display:none}input[type=checkbox].tui-full-calendar-checkbox-square+span{display:inline-block;cursor:pointer;line-height:14px;margin-right:8px;width:14px;height:14px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAADpJREFUKBVjPHfu3O5///65MJAAmJiY9jCcOXPmP6kApIeJBItQlI5qRAkOVM5o4KCGBwqPkcxEvhsAbzRE+Jhb9IwAAAAASUVORK5CYII=) no-repeat;vertical-align:middle}input[type=checkbox].tui-full-calendar-checkbox-square:checked+span{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAMBJREFUKBWVkjEOwjAMRe2WgZW7IIHEDdhghhuwcQ42rlJugAQS54Cxa5cq1QM5TUpByZfS2j9+dlJVt/tX5ZxbS4ZU9VLkQvSHKTIGRaVJYFmKrBbTCJxE2UgCdDzMZDkHrOV6b95V0US6UmgKodujEZbJg0B0ZgEModO5lrY1TMQf1TpyJGBEjD+E2NPN7ukIUDiF/BfEXgRiGEw8NgkffYGYwCi808fpn/6OvfUfsDr/Vc1IfRf8sKnFVqeiVQfDu0tf/nWH9gAAAABJRU5ErkJggg==) no-repeat}input[type=checkbox].tui-full-calendar-checkbox-round{display:none}input[type=checkbox].tui-full-calendar-checkbox-round+span{display:inline-block;cursor:pointer;width:14px;height:14px;line-height:14px;vertical-align:middle;margin-right:8px;border-radius:8px;border:2px solid;background:transparent}.tui-full-calendar-popup-top-line{position:absolute;border-radius:2px 2px 0 0;width:100%;height:4px;border:none;top:0}.tui-full-calendar-popup-detail .tui-full-calendar-popup-container{width:301px;min-width:301px;padding-bottom:0}.tui-full-calendar-popup-detail .tui-full-calendar-icon{width:12px;height:12px;background-size:12px;position:relative;margin-right:8px}.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-location-b,.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-user-b{top:-2px}.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-state-b{top:-1px}.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-calendar-dot{width:10px;height:10px;margin-right:8px;top:-1px}.tui-full-calendar-popup-detail .tui-full-calendar-content{line-height:24px;height:24px;font-size:12px;line-height:2}.tui-full-calendar-popup-detail .tui-full-calendar-section-header{margin-bottom:6px}.tui-full-calendar-popup-detail .tui-full-calendar-popup-detail-item-separate{margin-top:4px}.tui-full-calendar-popup-detail .tui-full-calendar-popup-detail-item-indent{text-indent:-20px;padding-left:20px}.tui-full-calendar-popup-detail .tui-full-calendar-schedule-title{font-size:15px;font-weight:700;line-height:1.6;word-break:break-all}.tui-full-calendar-popup-detail .tui-full-calendar-schedule-private{display:none;width:16px;height:16px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAKpJREFUKBVjYCATMKLri46Olvn9+3fX////HUByjIyMB1hZWcuWLl36BFktikaQpl+/fl0EKhBCVgRkv2NjY9NH1syErABkE1TTdqBCWRAG8reDxKBycOUoGmHOA2pIA5kOwiA2SDVMDqYTRSNQUBIkgewkJDZYDqYR7sewsLCtQFO9YBLYaGBAbVu1apU3SA5uIyFNIMXIauAaQRKkgBGlERTURATOVpgaABRQQOK46wEAAAAAAElFTkSuQmCC) no-repeat 16px}.tui-full-calendar-popup-detail .tui-full-calendar-schedule-private .tui-full-calendar-ic-private{display:block}.tui-full-calendar-popup-detail .tui-full-calendar-section-detail{margin-bottom:16px}.tui-full-calendar-popup-detail .tui-full-calendar-section-button{border-top:1px solid #e5e5e5;font-size:0}.tui-full-calendar-section-button .tui-full-calendar-icon{margin-right:4px;top:-3px}.tui-full-calendar-section-button .tui-full-calendar-content{position:relative;top:2px}.tui-full-calendar-popup-delete,.tui-full-calendar-popup-edit{display:inline-block;padding:7px 9px 11px;width:calc(50% - 1px);outline:none;background:none;border:none;cursor:pointer}.tui-full-calendar-popup-vertical-line{background:#e5e5e5;width:1px;height:14px;vertical-align:middle;display:inline-block;margin-top:-7px}.tui-datepicker{left:-12px;z-index:1;border-color:#d5d5d5}.tui-full-calendar-icon{width:14px;height:14px;display:inline-block;vertical-align:middle}.tui-full-calendar-icon.tui-full-calendar-ic-title{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAO5JREFUKBVjYCATMOLSFxkZqfHnz5+1QHktNDVbV69e7cOCJgjmQjXtB3IksMh7g8SY0CXQNTEyMlYD1fBCabhyFI3omkCq/v//PwnotC8gGq4LyIBrxKYJpBBoU15oaCgPiEbWCPYjUEIFGBBY/QS0qRWooRVIg/UBDXgMYoBtBHJSgWxsAQFWjET8BBqQBuLDNM4Can6GpAAb8ydQMADo3x0gSbDGlStX3gVqdMSjGUUTSCNKAggPD1cDOmU/EEuBJKEAQxNIHEUjSABNM1ZNIHXMIAIZXL169a2+vv5moK18QKeXAv20B1meYjYAr7xrljpOzc0AAAAASUVORK5CYII=) no-repeat}.tui-full-calendar-icon.tui-full-calendar-ic-location{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAR1JREFUKBWdUTtPg1AUBiT8CydHJtv/0MTJRWAgcTK1bq0/pO3k4E4IYLo2Me46tS4wumjSpV07kAb6HXLPzaGPRZLL+c73uE/D+OdnHuaCIOhVVTUEf620pWVZ0yRJ3qW3FfR9f1zX9UgaGJumOUnT9Fn3DDzPuwPOuD9TvSzL3kizhOFJ4LnjOJc0wM0FP2Asgx0mEehHUfRHgzDzqF3GOogzbJg8V6XHFqYv4Cvqy7J8DcOwWYmw8Hwy1kHMRjcaKuEGgV82caWbZay3indagJyxcKLOlKeRdJA627YfUVaN0v6tlKbZVjCO4zW2cw91px3AxJEmOONCNoTzPP9xXZfOd6u0Bzz60RGOgmQuiuIb4S3gB0IvaoJW2QMDs1bBoH1CAQAAAABJRU5ErkJggg==) no-repeat}.tui-full-calendar-icon.tui-full-calendar-ic-date{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAGpJREFUKBVjYKAGCA0N/Q/C6GZhE2cEKQoLC9v6//9/L3QN2PiMjIzbVq1a5c0EkiRWE7JasEZsJhMSI1sjC7LJq1evBvsZWQyZjRxwZNs4hDSiBA6y55EDBRsb7EdQasAmiUNsKw5x4oQBkUAeDPJ53KsAAAAASUVORK5CYII=) no-repeat}.tui-full-calendar-icon.tui-full-calendar-ic-state{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAIxJREFUKBVjYCATMKLrCw8P9/z3798soLgMVO4JExNT2sqVK7cjq2VC5oDYME2MjIyNIAwUkoGKoShlQeFBOGCbVq1a1QDihoaG1gMpmO0gITAAOzUsLGzr////vWCC+GigK7YBDfUGO5VYTSADYWox/IjPNmS5UY3IoYHGBgcOKG7QxPFxt+KTJCgHAGcZJbGLRuJ2AAAAAElFTkSuQmCC) no-repeat}.tui-full-calendar-icon.tui-full-calendar-ic-private{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAKpJREFUKBVjYCATMKLri46Olvn9+3fX////HUByjIyMB1hZWcuWLl36BFktikaQpl+/fl0EKhBCVgRkv2NjY9NH1syErABkE1TTdqBCWRAG8reDxKBycOUoGmHOA2pIA5kOwiA2SDVMDqYTRSNQUBIkgewkJDZYDqYR7sewsLCtQFO9YBLYaGBAbVu1apU3SA5uIyFNIMXIauAaQRKkgBGlERTURATOVpgaABRQQOK46wEAAAAAAElFTkSuQmCC) no-repeat}.tui-full-calendar-icon.tui-full-calendar-ic-public{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAKdJREFUKBVjYCATMKLri46Olvn9+3fX////HUByjIyMB1hZWcuWLl36BFktikaQpl+/fl0EKhBCVgRkv2NjY9NH1syErABkE1TTdqBCWRAG8reDxKBycOUoGmHOA2pIA5kOwiA2SDVMDq4TmREaGvofhJHFcLHhfgwLC9sKNNULl0KQODCgtq1atcobxIY7lZAmkGJkNXCNIAlSwIjSCApqIgJnK0wNALoOPwSpOcq0AAAAAElFTkSuQmCC) no-repeat}.tui-full-calendar-icon.tui-full-calendar-ic-close{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAJRJREFUKBXFkNERhCAMREUbuEKohzq0Eq2DDq6Da4B60KezDORkxj+ZwchmX0IYhtdWCGFl9y5g82NtzDnPdzAaudo76ZBS+nrvPxiInMkJcs5tMcZFfqcfxdqIRiELof+BiIJPg+mExmpmvKRn3zKj7OrG9Y79szPL14A1xEP0Hgy4gBZS5R7czHj3ehSgOzkVeyfuGrBw/WLm0hsAAAAASUVORK5CYII=) no-repeat}.tui-full-calendar-ic-location-b{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAOZJREFUKBWVUT0KwjAUbkzGTuJWPYNDpV0cXD2ETuIRBK+gs4ubp3BwcXBp6eINBKWDgydoid9X8oKCggYeee/7S9IGwZ9LverTNO3Wdb2y1o6IK6WOWutFlmU30XmDE58hbgvpTA+Y+mJqCemS20jdG2N6LPYMICc6b5BrIG3ONBZ7CoVj7w0cfllGRDj+gKQpjt/iPU0ye/LkROcNANaoCUzjqqquIsBuHddAWoiyLO9RFHUwJ4JxR/qmKIqdYG9vCMNwCeIiJHuHecj/B0GSJBng7ifO+ErDPM8L4b7ucRzPWJ8ET1E7YC7tmi9qAAAAAElFTkSuQmCC)}.tui-full-calendar-ic-state-b{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAHlJREFUKBVjYCARMCKrNzEx8QTyZ/3//18GJM7IyPgESKWdOXNmO4gPAkwQCk6CFQMVNoIwVOMsuCw6w9jY+D8Iw8TR+SBxsJOATtkKNM0LphAbDbRxG9Bp3mAnEVIMMgCmBt0P2AxHERusGkAhgOJQ7Jyt2IUJiAIAwwIn24FgmhkAAAAASUVORK5CYII=)}.tui-full-calendar-icon.tui-full-calendar-ic-user-b{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAJpJREFUKBVjYKA1YES3wMTExBMoNgsqnnbmzJntyGqYkDlQ9qz////LgDCQD9MIV4ZNA1wSGwObhjRGRsYnIAzUkIZNE0licE+bm5tr/fnzJx1osjPQBFmoKY+BftnLwsIy8+TJk9dAYmANxsbGoUD2YiBmBwliAT+BYrFnz55dDfNDO1AAl2KQfpAcSA0DTIMyiEMAEKMG0wgAolIjcM7Tjm8AAAAASUVORK5CYII=)}.tui-full-calendar-icon.tui-full-calendar-ic-edit{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAMdJREFUKBVjYCARMOJTb2xsLMfIyBjLysq64Pjx409BapnwaQDKzf7//3/L79+/D1tbW0uB1LJg02BmZqYIVPgdKBf/79+//UC2xs+fP8OB/H4MG0CK//79ewCkEGQYExOTI5DawMnJuQTER/EDTDFQXA4kCQQ3QBpOnz79AsJF8gMWxTA1KDTYBhyKMUwH6WSysrKSB7kZyIY5AySOVTFIggno+5VAmijFYA1AwhzEgAKcJsMUwIMVGKPH2NnZ7ZFDBKYImQYAuO5YIMgk39gAAAAASUVORK5CYII=)}.tui-full-calendar-icon.tui-full-calendar-ic-delete{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAFhJREFUKBVjYCARMKKrNzEx2fr//38vkDgjI+O2M2fOeCOrAWtAVoQsicyGaWZCFsTHBtr6H588Tjm4H4yNjfGacPbsWbBaop0Es3JYaQBFDMxjWOitMDEA3EEZfFEISwUAAAAASUVORK5CYII=)}.tui-full-calendar-icon.tui-full-calendar-ic-arrow-solid-top{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAIFJREFUKBVjYBj+gBmXF2NiYiTV1dV5rl279gWbGiZsgg0NDSw/f/5cCZRbBWJjU4PVRjExsR6g4nAgln/z5g3v1atXd6JrxtAYHh4e+v///z4khZa6urrXgJqvIYkxMCJzgJo0//37dwooxoMsDmR/YWJiMlu5cuV1NPFRLrYQAADMVCaUtbG7XwAAAABJRU5ErkJggg==) no-repeat}.tui-full-calendar-icon.tui-full-calendar-ic-milestone{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAGFJREFUKBVjYCARMILU/3dw+I+hj5FxG+P+/d7o4rg1IKtE0syELI6T/f+/F0yOOA0w1UCa9hpYkGxjYDxwABwIILH/jo5bGWBuZ2TcClOHogEmCKKxBSlInPZ+ANlCEgAA37EU4AHbBQUAAAAASUVORK5CYII=) no-repeat}.tui-full-calendar-icon.tui-full-calendar-ic-arrow-left{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAHCAYAAAAvZezQAAAAAXNSR0IArs4c6QAAAFZJREFUCB1jZICCyspK83///hUxgvhVVVV6f//+3c3ExJTMVFNTowqU2cHMzJzf3t6+hen379/zgIp2t7W1rQCpZmJlZU0C0q5AbREgAQwzwAIgGZgtADMCJqH/QyvhAAAAAElFTkSuQmCC) no-repeat}.tui-full-calendar-icon.tui-full-calendar-ic-arrow-right{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAHCAYAAAAvZezQAAAAAXNSR0IArs4c6QAAAFxJREFUCB1jKC8vX1lZWWnOAAVMQLD4379/m6qqqvRAYowgAsiJAAr2sbCw2IMFQIIVFRUL////r8SCpMKVlZXVnhFooA9Q+VxmZmbXtra2S0xATizQYD8QB6QaAJMLJ9BqE9yTAAAAAElFTkSuQmCC) no-repeat}.tui-full-calendar-ic-repeat-b{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAQpJREFUKBVjYCARMCKrNzU1tf/3718lUMwQiP8yMjKeYWJi6j516tRhExOThjNnzjTANQAFqv///98CVHQPSO8A0ixATa5AtjyQPgDETmfPngULMpiZmbn//fu3BSg4B6ggCyjxG8hm8PT0ZH/9+vUJoJgTiA8CTCACqDgXaOJ9Xl7eTJhikDhQcSVQsQGITT8A9rSxsfF/mJVApzWCQgPGd3BwYPny5cstoNOuAZ3rAwoJOAAqviAqKtoOEwAaxPr58+dpQL4iEGeAxJFt2AfkOwA1PQTSu4Em/gGyPYC0EpCuAdraCtIADiWgQCPQOmdmZmYHoNgVoCJfIB0CpG8DI84BphgoRjoAAAzgdELI91E5AAAAAElFTkSuQmCC)} diff --git a/dist/tui-calendar.min.css.map b/dist/tui-calendar.min.css.map index 61c5d61ae..04f564604 100644 --- a/dist/tui-calendar.min.css.map +++ b/dist/tui-calendar.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["tui-calendar.min.css","src/css/common.styl","main.styl","src/css/variables.styl","src/css/weekday.styl","src/css/week/layout.styl","src/css/week/dayname.styl","src/css/week/daygrid.styl","src/css/week/time.styl","src/css/month.styl","src/css/vlayout.styl","src/css/popup.styl","src/css/icons.styl"],"names":[],"mappings":"AAAA;;;;;EAKE,CCJE,0BACI,WAAQ,CACR,iBAAU,CACV,qBCAR,CDEQ,4BACI,qBCAZ,CDGI,4BACI,WCDR,CDGI,4BACI,iBCDR,CDGI,8BACI,iBCDR,CDGI,0BACI,sBCDR,CDGI,kCACI,iBCDR,CDGI,yBEaA,MDbJ,CCcI,+BACI,UAAS,CACT,aAAS,CACT,UDZR,CDFI,4BACI,iBCIR,CDFI,uBACI,oBAAS,CACT,iBAAU,CACV,QAAK,CACL,UAAS,CACT,SAAO,CACP,UAAQ,CACR,iBCIR,CDFA,2BACI,SCIJ,CDFA,yBACI,+BCIJ,CDDA,UAGI,gMCGJ,CDDA,oBAJI,uBAAqB,CACrB,2BCSJ,CDNA,UAGI,gMCGJ,CDA0P,mPACtP,UACI,4MAA6C,CAC7C,uBCEN,CDAE,UACI,wMAA6C,CAC7C,uBCEN,CACF,CEnEI,mEACI,iBFqER,CEnEI,wEACI,kBAAY,CACZ,QFqER,CEnEI,uEACI,aFqER,CEnEI,4DACI,eFqER,CEnEQ,2GACI,oBAAS,CDMjB,UAAO,CACP,WAAQ,CCLA,gBAAa,CACb,iBAAY,CACZ,kBAAY,CACZ,iBAAe,CACf,UAAO,CACP,eAAa,CACb,eFsEZ,CEnEI,0GAGI,WAAQ,CACR,kBFqER,CEnEI,gCACI,iBAAU,CACV,UAAO,CACP,iBFqER,CEnEI,kCACI,yBFqER,CEnEI,qCACI,iBFqER,CEpEQ,yCACI,WFsEZ,CEpEI,qCACI,iBAAU,CACV,WFsER,CEpEQ,4EACI,iBAAU,CACV,UFsEZ,CEpEQ,0EACI,oBAAS,CDjCjB,UAAO,CACP,WAAQ,CCkCA,gBAAa,CACb,iBFuEZ,CErEQ,gFACI,gBAAa,CAC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TuoBJ,CUrlCA,wBACE,UAAO,CACP,WAAQ,CACR,oBAAS,CACT,qBVulCF,CUplCA,mDACI,4cVslCJ,CUplCA,sDACI,4gBVslCJ,CUplCA,kDACI,4RVslCJ,CUplCA,mDACI,wUVslCJ,CUplCA,qDACI,gXVslCJ,CUplCA,oDACI,4WVslCJ,CUplCA,mDACI,oVVslCJ,CUnlCA,iCACI,sbVqlCJ,CUnlCA,8BACI,sSVqlCJ,CUnlCA,oDACI,wVVqlCJ,CUnlCA,kDACI,oZVqlCJ,CUnlCA,oDACI,gQVqlCJ,CUnlCA,6DACI,4TVqlCJ,CUnlCA,uDACI,gRVqlCJ,CUnlCA,wDACI,gQVqlCJ,CUnlCA,yDACI,wQVqlCJ,CUnlCA,+BACI,seVqlCJ","file":"tui-calendar.min.css","sourcesContent":["/*!\n * TOAST UI Calendar\n * @version 1.12.10 | Thu Jan 23 2020\n * @author NHN FE Development Lab \n * @license MIT\n */\n.tui-full-calendar-layout {\n height: 100%;\n position: relative;\n box-sizing: border-box;\n}\n.tui-full-calendar-layout * {\n box-sizing: border-box;\n}\n.tui-full-calendar-dragging {\n cursor: move;\n}\n.tui-full-calendar-resizing {\n cursor: row-resize;\n}\n.tui-full-calendar-resizing-x {\n cursor: col-resize;\n}\n.tui-full-calendar-hidden {\n display: none !important;\n}\n.tui-full-calendar-invisible span {\n visibility: hidden;\n}\n.tui-full-calendar-clear {\n zoom: 1;\n}\n.tui-full-calendar-clear:after {\n content: '';\n display: block;\n clear: both;\n}\n.tui-full-calendar-scroll-y {\n overflow-y: scroll;\n}\n.tui-full-calendar-dot {\n display: inline-block;\n position: relative;\n top: -1px;\n content: '';\n width: 7px;\n height: 7px;\n border-radius: 50%;\n}\n.tui-full-calendar-holiday {\n color: #f00;\n}\n.tui-full-calendar-today {\n background: rgba(218,229,249,0.3);\n}\n.handle-x {\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAACVBMVEX///////////+OSuX+AAAAA3RSTlMrQJG5H4EIAAAAEUlEQVR4AWNgYoRABhjEFAEAArQAIcHQcPsAAAAASUVORK5CYII=);\n}\n.handle-y {\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAICAMAAADp7a43AAAACVBMVEX///////////+OSuX+AAAAA3RSTlMrQJG5H4EIAAAAEUlEQVR4AWNgYmRiZABB/CwAAtgAIUTUNkMAAAAASUVORK5CYII=);\n}\n@media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-devicepixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx) {\n .handle-x {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAICAMAAADHqI+lAAAACVBMVEX///////////+OSuX+AAAAA3RSTlMZK5EY+QKaAAAAGUlEQVR4AWNgYmJAwegCIMDIiIwxBKhhBgAcSABh8gN42gAAAABJRU5ErkJggg==);\n background-size: 8px 4px;\n }\n .handle-y {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAQCAMAAAAcVM5PAAAACVBMVEX///////////+OSuX+AAAAA3RSTlMEK5EMBzK5AAAAGElEQVR4AWNgYmIAYxgDBBgZQRjOoKcaABzQAGGjsIM/AAAAAElFTkSuQmCC);\n background-size: 4px 8px;\n }\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-weekday-grid {\n overflow-y: hidden;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-weekday-schedules {\n overflow-y: visible;\n height: 0;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-weekday-schedule {\n margin: 0 10px;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-today {\n background: none;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-today .tui-full-calendar-weekday-grid-date-decorator {\n display: inline-block;\n width: 27px;\n height: 27px;\n line-height: 27px;\n text-align: center;\n background: #135de6;\n border-radius: 50%;\n color: #fff;\n font-weight: bold;\n margin-left: 2px;\n}\n.tui-full-calendar-weekday-container,\n.tui-full-calendar-weekday-grid,\n.tui-full-calendar-weekday-grid-line {\n height: 100%;\n min-height: inherit;\n}\n.tui-full-calendar-weekday-grid {\n position: absolute;\n width: 100%;\n overflow-y: scroll;\n}\n.tui-full-calendar-weekday-border {\n border-top: 1px solid #ddd;\n}\n.tui-full-calendar-weekday-container {\n position: relative;\n}\n.tui-full-calendar-weekday-container>div {\n height: 100%;\n}\n.tui-full-calendar-weekday-grid-line {\n position: absolute;\n padding: 3px;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-footer {\n position: absolute;\n bottom: 4px;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-date {\n display: inline-block;\n width: 27px;\n height: 27px;\n line-height: 27px;\n text-align: center;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-date-title {\n line-height: 27px;\n margin-right: 5px;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-more-schedules {\n float: right;\n display: inline-block;\n height: 27px;\n line-height: 27px;\n padding: 0 5px;\n text-align: center;\n font-size: 11px;\n font-weight: bold;\n color: #aaa;\n}\n.tui-full-calendar-weekday-creation {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n overflow-y: scroll;\n}\n.tui-full-calendar-weekday-schedules {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n font-size: 12px;\n overflow-y: scroll;\n}\n.tui-full-calendar-weekday-schedules-height-span {\n width: 1px;\n margin-left: -1px;\n}\n.tui-full-calendar-weekday-schedule-block {\n position: absolute;\n}\n.tui-full-calendar-weekday-schedule-block-dragging-dim {\n opacity: 0.3;\n}\n.tui-full-calendar-weekday-schedule {\n position: relative;\n margin: 0 10px 0 1px;\n cursor: pointer;\n border-left-style: solid;\n border-left-width: 3px;\n}\n.tui-full-calendar-weekday-schedule.tui-full-calendar-weekday-schedule-time {\n border-left-width: 0;\n}\n.tui-full-calendar-weekday-schedule.tui-full-calendar-weekday-schedule-time .tui-full-calendar-weekday-schedule-title {\n padding-left: 9px;\n}\n.tui-full-calendar-weekday-schedule-bullet {\n position: absolute;\n padding: 0;\n width: 6px;\n height: 6px;\n top: 6px;\n left: 0;\n border-radius: 50%;\n}\n.tui-full-calendar-weekday-schedule-bullet-focused {\n left: 10px;\n background: #fff;\n}\n.tui-full-calendar-weekday-schedule-title {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding-left: 3px;\n font-weight: bold;\n}\n.tui-full-calendar-weekday-schedule-title-focused {\n padding-left: 16px;\n}\n.tui-full-calendar-weekday-schedule-cover {\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0,0,0,0.2);\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n}\n.tui-full-calendar-weekday-exceed-left .tui-full-calendar-weekday-schedule {\n margin-left: 0;\n border-left-width: 0;\n}\n.tui-full-calendar-weekday-exceed-right .tui-full-calendar-weekday-schedule {\n margin-right: 0;\n}\n.tui-full-calendar-weekday-exceed-right .tui-full-calendar-weekday-resize-handle {\n display: none;\n}\n.tui-full-calendar-weekday-exceed-in-month {\n cursor: pointer;\n}\n.tui-full-calendar-weekday-exceed-in-month:hover {\n background-color: #f0f1f5;\n}\n.tui-full-calendar-weekday-exceed-in-week,\n.tui-full-calendar-weekday-collapse-btn {\n position: absolute;\n bottom: 5px;\n margin-right: 5px;\n font-size: 12px;\n line-height: 14px;\n cursor: pointer;\n padding: 1px 5px;\n background-color: #fff;\n border: 1px solid #ddd;\n color: #000;\n}\n.tui-full-calendar-weekday-resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n width: 6px;\n background-position: 3px center;\n cursor: col-resize;\n line-height: 18px;\n}\n.tui-full-calendar-weekday-filled {\n background-color: #e8e8e8 !important;\n}\n.tui-full-calendar-left {\n height: 100%;\n float: left;\n box-sizing: border-box;\n display: table;\n}\n.tui-full-calendar-left-content {\n display: table-cell;\n vertical-align: middle;\n text-align: right;\n font-size: 11px;\n}\n.tui-full-calendar-right {\n height: 100%;\n overflow-y: scroll;\n position: relative;\n}\n.tui-full-calendar-week-container {\n width: 100%;\n height: inherit;\n display: inline-block;\n font-size: 10px;\n min-height: 600px;\n}\n.tui-full-calendar-week-container .tui-full-calendar-today {\n background: none;\n}\n.tui-full-calendar-dayname {\n position: absolute;\n margin-left: -1px;\n height: 100%;\n overflow: hidden;\n}\n.tui-full-calendar-dayname.tui-full-calendar-today {\n font-weight: bold;\n}\n.tui-full-calendar-dayname-container {\n overflow-y: scroll;\n}\n.tui-full-calendar-dayname-leftmargin {\n position: relative;\n height: 100%;\n}\n.tui-full-calendar-dayname-date {\n font-size: 26px;\n}\n.tui-full-calendar-dayname-name {\n font-weight: bold;\n font-size: 12px;\n}\n.tui-full-calendar-daygrid-layout {\n height: 100%;\n}\n.tui-full-calendar-daygrid-layout .tui-full-calendar-right {\n overflow-y: hidden;\n}\n.tui-full-calendar-daygrid-guide-creation-block {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n}\n.tui-full-calendar-timegrid-container {\n height: 100%;\n position: relative;\n overflow: hidden;\n overflow-y: scroll;\n}\n.tui-full-calendar-timegrid-container-split {\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n.tui-full-calendar-timegrid-left {\n position: absolute;\n}\n.tui-full-calendar-timegrid-hour {\n position: relative;\n color: #555;\n box-sizing: border-box;\n}\n.tui-full-calendar-timegrid-hour:first-child span {\n display: none;\n}\n.tui-full-calendar-timegrid-hour:last-child {\n border-bottom: none;\n}\n.tui-full-calendar-timegrid-hour span {\n position: absolute;\n top: -11px;\n left: 0;\n right: 5px;\n text-align: right;\n line-height: 25px;\n}\n.tui-full-calendar-timegrid-right {\n position: relative;\n}\n.tui-full-calendar-timegrid-gridline {\n border-bottom: 1px solid #eee;\n box-sizing: border-box;\n}\n.tui-full-calendar-timegrid-gridline:last-child {\n border-bottom: none;\n}\n.tui-full-calendar-timegrid-schedules {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n cursor: pointer;\n}\n.tui-full-calendar-timegrid-hourmarker {\n position: absolute;\n width: 100%;\n display: table;\n}\n.tui-full-calendar-timegrid-hourmarker-line-left {\n position: absolute;\n min-height: 1px;\n left: 0;\n}\n.tui-full-calendar-timegrid-hourmarker-line-today {\n position: absolute;\n min-height: 1px;\n}\n.tui-full-calendar-timegrid-hourmarker-line-right {\n position: absolute;\n min-height: 1px;\n right: 0;\n}\n.tui-full-calendar-timegrid-hourmarker-time {\n padding-right: 5px;\n line-height: 12px;\n text-align: right;\n display: table-cell;\n vertical-align: bottom;\n}\n.tui-full-calendar-timegrid-todaymarker {\n position: absolute;\n text-indent: -9999px;\n width: 9px;\n height: 9px;\n background-color: #135de6;\n margin: -4px 0 0 -5px;\n border-radius: 50%;\n}\n.tui-full-calendar-timegrid-sticky-container {\n position: absolute;\n top: 0;\n}\n.tui-full-calendar-timegrid-timezone-label-container {\n position: absolute;\n}\n.tui-full-calendar-timegrid-timezone-label-cell {\n display: table;\n}\n.tui-full-calendar-timegrid-timezone-label {\n display: table-cell;\n vertical-align: middle;\n padding-right: 5px;\n text-align: right;\n}\n.tui-full-calendar-timegrid-timezone-close-btn {\n cursor: pointer;\n position: absolute;\n text-align: center;\n background-color: #fff;\n}\n.tui-full-calendar-timegrid-timezone-close-btn .tui-full-calendar-icon {\n width: 5px;\n height: 10px;\n}\n.tui-full-calendar-time-date {\n position: absolute;\n height: 100%;\n margin-left: -1px;\n box-sizing: content-box;\n}\n.tui-full-calendar-time-date:last-child {\n border-right: none;\n margin: 0;\n}\n.tui-full-calendar-time-date:last-child .tui-full-calendar-time-schedule,\n.tui-full-calendar-time-date:last-child .tui-full-calendar-time-guide-creation {\n left: 0px;\n}\n.tui-full-calendar-time-date-schedule-block-wrap {\n position: relative;\n height: 100%;\n}\n.tui-full-calendar-time-date-schedule-block {\n position: absolute;\n right: 0px;\n}\n.tui-full-calendar-time-date-schedule-block-pending {\n opacity: 0.7;\n}\n.tui-full-calendar-time-date-schedule-block-dragging-dim {\n opacity: 0.3;\n}\n.tui-full-calendar-time-date-schedule-block-focused {\n box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);\n}\n.tui-full-calendar-time-date-schedule-block-cover {\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0,0,0,0.2);\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n}\n.tui-full-calendar-time-schedule {\n position: relative;\n left: 1px;\n height: 100%;\n overflow: hidden;\n font-size: 12px;\n font-weight: bold;\n}\n.tui-full-calendar-time-schedule-content {\n overflow: hidden;\n border-left-width: 3px;\n border-left-style: solid;\n padding: 1px 0 0 3px;\n}\n.tui-full-calendar-time-schedule-content-travel-time {\n font-weight: normal;\n font-size: 11px;\n}\n.tui-full-calendar-time-resize-handle {\n position: absolute;\n right: 0px;\n bottom: 0px;\n left: 0px;\n height: 5px;\n text-align: center;\n color: #fff;\n cursor: row-resize;\n background-position: center top;\n}\n.tui-full-calendar-time-guide-creation {\n position: absolute;\n right: 10px;\n left: 1px;\n padding: 3px;\n}\n.tui-full-calendar-time-guide-move .tui-full-calendar-time-schedule,\n.tui-full-calendar-time-guide-resize .tui-full-calendar-time-schedule,\n.tui-full-calendar-time-guide-move .tui-full-calendar-time-resize-handle,\n.tui-full-calendar-time-guide-resize .tui-full-calendar-time-resize-handle {\n opacity: 0.8;\n z-index: 97;\n}\n.tui-full-calendar-time-guide-creation-label {\n cursor: default;\n}\n.tui-full-calendar-time-guide-bottom {\n position: absolute;\n bottom: 3px;\n}\n.tui-full-calendar-month {\n height: 100%;\n min-height: 600px;\n}\n.tui-full-calendar-month-dayname {\n width: 100%;\n position: absolute;\n font-size: 13px;\n}\n.tui-full-calendar-month-dayname-item {\n height: 100%;\n font-weight: bold;\n}\n.tui-full-calendar-month-week-item {\n position: relative;\n}\n.tui-full-calendar-month-week-item>div {\n height: 100%;\n}\n.tui-full-calendar-month-more {\n height: inherit;\n min-width: 280px;\n min-height: 150px;\n}\n.tui-full-calendar-month-more-title {\n position: relative;\n}\n.tui-full-calendar-month-more-title-day {\n font-size: 23px;\n color: #333;\n}\n.tui-full-calendar-month-more-title-day-label {\n font-size: 12px;\n color: #333;\n}\n.tui-full-calendar-month-more-close {\n position: absolute;\n right: 0;\n outline: 0;\n background: none;\n border: 0;\n font-size: 14px;\n line-height: 28px;\n padding: 0 7px;\n cursor: pointer;\n}\n.tui-full-calendar-month-more-list {\n overflow-y: auto;\n}\n.tui-full-calendar-month-more-schedule {\n cursor: pointer;\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-size: 12px;\n}\n.tui-full-calendar-month-guide-block {\n position: absolute;\n}\n.tui-full-calendar-month-weekday-schedule {\n margin-top: 2px;\n}\n.tui-full-calendar-month-creation-guide {\n top: 0;\n bottom: -1px;\n left: -1px;\n right: 0;\n position: absolute;\n z-index: 20;\n}\n.tui-full-calendar-month-guide-focused {\n box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);\n}\n.tui-full-calendar-month-guide {\n position: relative;\n padding-left: 3px;\n line-height: 18px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.tui-full-calendar-month-guide-cover {\n width: 100%;\n position: absolute;\n top: -50%;\n left: -50%;\n background-color: rgba(0,0,0,0.2);\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n}\n.tui-full-calendar-month-exceed-left .tui-full-calendar-month-guide {\n margin-left: 0px;\n}\n.tui-full-calendar-month-exceed-right .tui-full-calendar-month-guide {\n margin-right: 0px;\n}\n.tui-full-calendar-month-exceed-right .tui-full-calendar-month-guide-handle {\n display: none;\n}\n.tui-full-calendar-month-guide-handle {\n position: absolute;\n top: 0;\n right: 3px;\n width: 6px;\n background-position: 3px center;\n cursor: col-resize;\n}\n.tui-full-calendar-vlayout-container {\n position: relative;\n}\n.tui-full-calendar-splitter {\n clear: left;\n cursor: row-resize;\n}\n.tui-full-calendar-splitter:hover {\n border-color: #999;\n}\n.tui-full-calendar-splitter-focused {\n background-color: #ddd;\n border: none;\n}\n.tui-full-calendar-splitter-guide {\n position: absolute;\n width: 100%;\n height: 3px;\n border: none;\n background-color: #e8e8e8;\n}\n.tui-full-calendar-popup {\n position: absolute;\n font-weight: 2.5;\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n clear: both;\n}\n.tui-full-calendar-popup-container {\n min-width: 474px;\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n background-color: #fff;\n border: solid 1px #d5d5d5;\n padding: 17px;\n border-radius: 2px;\n}\n.tui-full-calendar-popup-section {\n font-size: 0;\n min-height: 40px;\n}\n.tui-full-calendar-section-calendar {\n width: 176px;\n}\n.tui-full-calendar-section-calendar.tui-full-calendar-hide {\n height: 21px;\n visibility: hidden;\n}\n.tui-full-calendar-section-title {\n width: calc(100% - 36px);\n padding-right: 4px;\n}\n.tui-full-calendar-section-title input {\n width: 365px;\n}\n.tui-full-calendar-button.tui-full-calendar-section-private {\n height: 32px;\n padding: 8px;\n font-size: 0;\n margin-left: 4px;\n}\n.tui-full-calendar-section-private.tui-full-calendar-public .tui-full-calendar-ic-private {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAKdJREFUKBVjYCATMKLri46Olvn9+3fX////HUByjIyMB1hZWcuWLl36BFktikaQpl+/fl0EKhBCVgRkv2NjY9NH1syErABkE1TTdqBCWRAG8reDxKBycOUoGmHOA2pIA5kOwiA2SDVMDq4TmREaGvofhJHFcLHhfgwLC9sKNNULl0KQODCgtq1atcobxIY7lZAmkGJkNXCNIAlSwIjSCApqIgJnK0wNALoOPwSpOcq0AAAAAElFTkSuQmCC) no-repeat;\n}\n.tui-full-calendar-section-start-date,\n.tui-full-calendar-section-end-date {\n width: 176px;\n}\n.tui-full-calendar-section-start-date input,\n.tui-full-calendar-section-end-date input {\n width: 139px;\n}\n.tui-full-calendar-section-start-date:hover .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-end-date:hover .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-start-date:focus .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-end-date:focus .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-start-date:hover .tui-datepicker,\n.tui-full-calendar-section-end-date:hover .tui-datepicker,\n.tui-full-calendar-section-start-date:focus .tui-datepicker,\n.tui-full-calendar-section-end-date:focus .tui-datepicker {\n border-color: #bbb;\n}\n.tui-full-calendar-popup-section-item:focus {\n border-color: #bbb;\n}\n.tui-full-calendar-section-date-dash {\n font-size: 12px;\n color: #d5d5d5;\n height: 32px;\n padding: 0 4px;\n vertical-align: middle;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-allday {\n border: none;\n padding: 0 0 0 8px;\n cursor: pointer;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-location {\n display: block;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-location input {\n width: 400px;\n}\n.tui-full-calendar-section-allday .tui-full-calendar-icon.tui-full-calendar-ic-checkbox {\n margin: 0;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-allday .tui-full-calendar-content {\n padding-left: 4px;\n}\n.tui-full-calendar-section-state {\n width: 109px;\n}\n.tui-full-calendar-section-state .tui-full-calendar-content {\n width: 58px;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.tui-full-calendar-popup-section-item {\n height: 32px;\n padding: 0 9px 0 12px;\n border: 1px solid #d5d5d5;\n display: inline-block;\n font-size: 0;\n border-radius: 2px;\n}\n.tui-full-calendar-popup-section-item:hover {\n border-color: #bbb;\n}\n.tui-full-calendar-popup-section-item:focus {\n border-color: #bbb;\n}\n.tui-full-calendar-popup-section-item .tui-full-calendar-icon {\n position: relative;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-title {\n top: 2px;\n}\n.tui-full-calendar-popup-section-item .tui-full-calendar-content {\n text-align: left;\n display: inline-block;\n font-size: 12px;\n vertical-align: middle;\n position: relative;\n padding-left: 8px;\n}\n.tui-full-calendar-section-calendar .tui-full-calendar-dropdown-button .tui-full-calendar-content {\n width: 125px;\n text-overflow: ellipsis;\n overflow: hidden;\n top: -1px;\n}\n.tui-full-calendar-popup-section-item input {\n border: none;\n height: 30px;\n outline: none;\n display: inline-block;\n}\n.tui-full-calendar-popup-section-item input::placeholder {\n color: #bbb;\n font-weight: 300;\n}\n.tui-full-calendar-dropdown {\n position: relative;\n}\n.tui-full-calendar-dropdown:hover .tui-full-calendar-dropdown-button {\n border: 1px solid #bbb;\n}\n.tui-full-calendar-dropdown-button.tui-full-calendar-popup-section-item {\n height: 32px;\n font-size: 0;\n top: -1px;\n}\n.tui-full-calendar-dropdown-arrow {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAHlJREFUKBVjYBgFOEOAEVkmPDxc89+/f6eAYjzI4kD2FyYmJrOVK1deh4kzwRggGiQBVJCELAZig8SQNYHEmEEEMrh69eo1HR0dfqCYJUickZGxf9WqVf3IakBsFBthklpaWmVA9mEQhrJhUoTp0NBQCRAmrHL4qgAAuu4cWZOZIGsAAAAASUVORK5CYII=) no-repeat;\n}\n.dropdown.open .tui-full-calendar-dropdown-arrow,\n.tui-full-calendar-open .tui-full-calendar-dropdown-arrow {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAIFJREFUKBVjYBj+gBmXF2NiYiTV1dV5rl279gWbGiZsgg0NDSw/f/5cCZRbBWJjU4PVRjExsR6g4nAgln/z5g3v1atXd6JrxtAYHh4e+v///z4khZa6urrXgJqvIYkxMCJzgJo0//37dwooxoMsDmR/YWJiMlu5cuV1NPFRLrYQAADMVCaUtbG7XwAAAABJRU5ErkJggg==) no-repeat;\n}\n.tui-full-calendar-dropdown-menu {\n position: absolute;\n top: 31px;\n padding: 4px 0;\n background-color: #fff;\n border: 1px solid #d5d5d5;\n border-top: none;\n border-radius: 0 0 2px 2px;\n width: 100%;\n}\n.tui-full-calendar-dropdown:hover .tui-full-calendar-dropdown-menu {\n border: 1px solid #bbb;\n border-top: none;\n}\n.tui-full-calendar-dropdown-menu {\n display: none;\n}\n.tui-full-calendar-open .tui-full-calendar-dropdown-menu {\n display: block;\n}\n.tui-full-calendar-dropdown-menu-item {\n height: 30px;\n border: none;\n cursor: pointer;\n}\n.tui-full-calendar-section-calendar .tui-full-calendar-dropdown-menu-item {\n width: 100%;\n}\n.tui-full-calendar-section-state .tui-full-calendar-dropdown-menu-item {\n width: 100%;\n}\n.tui-full-calendar-dropdown-menu-item:hover {\n background-color: rgba(81,92,230,0.05);\n}\n.tui-full-calendar-dropdown-menu-item .tui-full-calendar-content {\n line-height: 30px;\n}\n.tui-full-calendar-button.tui-full-calendar-popup-close {\n position: absolute;\n top: 10px;\n right: 10px;\n background-color: #fff;\n padding: 2px;\n border: none;\n}\n.tui-full-calendar-section-button-save {\n height: 36px;\n}\n.tui-full-calendar-popup-save {\n float: right;\n}\n.tui-full-calendar-popup-arrow-border,\n.tui-full-calendar-popup-arrow-fill {\n position: absolute;\n}\n.tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-border {\n border-top: none;\n border-right: 8px solid transparent;\n border-bottom: 8px solid #d5d5d5;\n border-left: 8px solid transparent;\n left: calc(50% - 8px);\n top: -7px;\n}\n.tui-full-calendar-arrow-right .tui-full-calendar-popup-arrow-border {\n border-top: 8px solid transparent;\n border-right: none;\n border-bottom: 8px solid transparent;\n border-left: 8px solid #d5d5d5;\n top: calc(50% - 8px);\n right: -7px;\n}\n.tui-full-calendar-arrow-bottom .tui-full-calendar-popup-arrow-border {\n border-top: 8px solid #d5d5d5;\n border-right: 8px solid transparent;\n border-bottom: none;\n border-left: 8px solid transparent;\n left: calc(50% - 8px);\n bottom: -7px;\n}\n.tui-full-calendar-arrow-left .tui-full-calendar-popup-arrow-border {\n border-top: 8px solid transparent;\n border-right: 8px solid #d5d5d5;\n border-bottom: 8px solid transparent;\n border-left: none;\n top: calc(50% - 8px);\n left: -7px;\n}\n.tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-fill {\n border-top: none;\n border-right: 7px solid transparent;\n border-bottom: 7px solid #fff;\n border-left: 7px solid transparent;\n left: -7px;\n top: 1px;\n}\n.tui-full-calendar-arrow-right .tui-full-calendar-popup-arrow-fill {\n border-top: 7px solid transparent;\n border-right: none;\n border-bottom: 7px solid transparent;\n border-left: 7px solid #fff;\n top: -7px;\n right: 1px;\n}\n.tui-full-calendar-arrow-bottom .tui-full-calendar-popup-arrow-fill {\n border-top: 7px solid #fff;\n border-right: 7px solid transparent;\n border-bottom: none;\n border-left: 7px solid transparent;\n left: -7px;\n bottom: 1px;\n}\n.tui-full-calendar-arrow-left .tui-full-calendar-popup-arrow-fill {\n border-top: 7px solid transparent;\n border-right: 7px solid #fff;\n border-bottom: 7px solid transparent;\n border-left: none;\n top: -7px;\n left: 1px;\n}\n.tui-full-calendar-button {\n background: #fff;\n border: 1px solid #d5d5d5;\n border-radius: 2px;\n text-align: center;\n outline: none;\n font-size: 12px;\n cursor: pointer;\n color: #333;\n}\n.tui-full-calendar-button:hover {\n border-color: #bbb;\n color: #333;\n}\n.tui-full-calendar-button:active {\n background: #f9f9f9;\n color: #333;\n}\n.tui-full-calendar-button .round {\n border-radius: 25px;\n}\n.tui-full-calendar-confirm {\n width: 96px;\n height: 36px;\n border-radius: 40px;\n background-color: #ff6618;\n font-size: 12px;\n font-weight: bold;\n color: #fff;\n border: none;\n}\n.tui-full-calendar-confirm:hover {\n background-color: #e55b15;\n color: #fff;\n}\n.tui-full-calendar-confirm:active {\n background-color: #d95614;\n color: #fff;\n}\n.tui-full-calendar-icon.tui-full-calendar-right {\n float: right;\n top: 1px;\n}\n.tui-full-calendar-icon .tui-full-calendar-none {\n display: none;\n}\n.tui-full-calendar-icon.tui-full-calendar-calendar-dot {\n border-radius: 8px;\n width: 12px;\n height: 12px;\n margin: 1px;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-square {\n display: none;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-square + span {\n display: inline-block;\n cursor: pointer;\n line-height: 14px;\n margin-right: 8px;\n width: 14px;\n height: 14px;\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAADpJREFUKBVjPHfu3O5///65MJAAmJiY9jCcOXPmP6kApIeJBItQlI5qRAkOVM5o4KCGBwqPkcxEvhsAbzRE+Jhb9IwAAAAASUVORK5CYII=) no-repeat;\n vertical-align: middle;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-square:checked + span {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAMBJREFUKBWVkjEOwjAMRe2WgZW7IIHEDdhghhuwcQ42rlJugAQS54Cxa5cq1QM5TUpByZfS2j9+dlJVt/tX5ZxbS4ZU9VLkQvSHKTIGRaVJYFmKrBbTCJxE2UgCdDzMZDkHrOV6b95V0US6UmgKodujEZbJg0B0ZgEModO5lrY1TMQf1TpyJGBEjD+E2NPN7ukIUDiF/BfEXgRiGEw8NgkffYGYwCi808fpn/6OvfUfsDr/Vc1IfRf8sKnFVqeiVQfDu0tf/nWH9gAAAABJRU5ErkJggg==) no-repeat;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-round {\n display: none;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-round + span {\n display: inline-block;\n cursor: pointer;\n width: 14px;\n height: 14px;\n line-height: 14px;\n vertical-align: middle;\n margin-right: 8px;\n border-radius: 8px;\n border: solid 2px;\n background: transparent;\n}\n.tui-full-calendar-popup-top-line {\n position: absolute;\n border-radius: 2px 2px 0 0;\n width: 100%;\n height: 4px;\n border: none;\n top: 0;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-popup-container {\n width: 301px;\n min-width: 301px;\n padding-bottom: 0;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon {\n width: 12px;\n height: 12px;\n background-size: 12px;\n position: relative;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon {\n margin-right: 8px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-location-b {\n top: -2px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-user-b {\n top: -2px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-state-b {\n top: -1px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-calendar-dot {\n width: 10px;\n height: 10px;\n margin-right: 8px;\n top: -1px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-content {\n line-height: 24px;\n height: 24px;\n font-size: 12px;\n line-height: 2;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-section-header {\n margin-bottom: 6px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-popup-detail-item-separate {\n margin-top: 4px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-popup-detail-item-indent {\n text-indent: -20px;\n padding-left: 20px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-schedule-title {\n font-size: 15px;\n font-weight: bold;\n line-height: 1.6;\n word-break: break-all;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-schedule-private {\n display: none;\n width: 16px;\n height: 16px;\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAKpJREFUKBVjYCATMKLri46Olvn9+3fX////HUByjIyMB1hZWcuWLl36BFktikaQpl+/fl0EKhBCVgRkv2NjY9NH1syErABkE1TTdqBCWRAG8reDxKBycOUoGmHOA2pIA5kOwiA2SDVMDqYTRSNQUBIkgewkJDZYDqYR7sewsLCtQFO9YBLYaGBAbVu1apU3SA5uIyFNIMXIauAaQRKkgBGlERTURATOVpgaABRQQOK46wEAAAAAAElFTkSuQmCC) no-repeat 16px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-schedule-private .tui-full-calendar-ic-private {\n display: block;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-section-detail {\n margin-bottom: 16px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-section-button {\n border-top: 1px solid #e5e5e5;\n font-size: 0;\n}\n.tui-full-calendar-section-button .tui-full-calendar-icon {\n margin-right: 4px;\n top: -3px;\n}\n.tui-full-calendar-section-button .tui-full-calendar-content {\n position: relative;\n top: 2px;\n}\n.tui-full-calendar-popup-edit,\n.tui-full-calendar-popup-delete {\n display: inline-block;\n padding: 7px 9px 11px 9px;\n width: calc(50% - 1px);\n outline: none;\n background: none;\n border: none;\n cursor: pointer;\n}\n.tui-full-calendar-popup-vertical-line {\n background: #e5e5e5;\n width: 1px;\n height: 14px;\n vertical-align: middle;\n display: inline-block;\n margin-top: -7px;\n}\n.tui-datepicker {\n left: -12px;\n z-index: 1;\n border-color: #d5d5d5;\n}\n.tui-full-calendar-icon {\n width: 14px;\n height: 14px;\n display: inline-block;\n vertical-align: middle;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-title {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAO5JREFUKBVjYCATMOLSFxkZqfHnz5+1QHktNDVbV69e7cOCJgjmQjXtB3IksMh7g8SY0CXQNTEyMlYD1fBCabhyFI3omkCq/v//PwnotC8gGq4LyIBrxKYJpBBoU15oaCgPiEbWCPYjUEIFGBBY/QS0qRWooRVIg/UBDXgMYoBtBHJSgWxsAQFWjET8BBqQBuLDNM4Can6GpAAb8ydQMADo3x0gSbDGlStX3gVqdMSjGUUTSCNKAggPD1cDOmU/EEuBJKEAQxNIHEUjSABNM1ZNIHXMIAIZXL169a2+vv5moK18QKeXAv20B1meYjYAr7xrljpOzc0AAAAASUVORK5CYII=) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-location {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAR1JREFUKBWdUTtPg1AUBiT8CydHJtv/0MTJRWAgcTK1bq0/pO3k4E4IYLo2Me46tS4wumjSpV07kAb6HXLPzaGPRZLL+c73uE/D+OdnHuaCIOhVVTUEf620pWVZ0yRJ3qW3FfR9f1zX9UgaGJumOUnT9Fn3DDzPuwPOuD9TvSzL3kizhOFJ4LnjOJc0wM0FP2Asgx0mEehHUfRHgzDzqF3GOogzbJg8V6XHFqYv4Cvqy7J8DcOwWYmw8Hwy1kHMRjcaKuEGgV82caWbZay3indagJyxcKLOlKeRdJA627YfUVaN0v6tlKbZVjCO4zW2cw91px3AxJEmOONCNoTzPP9xXZfOd6u0Bzz60RGOgmQuiuIb4S3gB0IvaoJW2QMDs1bBoH1CAQAAAABJRU5ErkJggg==) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-date {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAGpJREFUKBVjYKAGCA0N/Q/C6GZhE2cEKQoLC9v6//9/L3QN2PiMjIzbVq1a5c0EkiRWE7JasEZsJhMSI1sjC7LJq1evBvsZWQyZjRxwZNs4hDSiBA6y55EDBRsb7EdQasAmiUNsKw5x4oQBkUAeDPJ53KsAAAAASUVORK5CYII=) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-state {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAIxJREFUKBVjYCATMKLrCw8P9/z3798soLgMVO4JExNT2sqVK7cjq2VC5oDYME2MjIyNIAwUkoGKoShlQeFBOGCbVq1a1QDihoaG1gMpmO0gITAAOzUsLGzr////vWCC+GigK7YBDfUGO5VYTSADYWox/IjPNmS5UY3IoYHGBgcOKG7QxPFxt+KTJCgHAGcZJbGLRuJ2AAAAAElFTkSuQmCC) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-private {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAKpJREFUKBVjYCATMKLri46Olvn9+3fX////HUByjIyMB1hZWcuWLl36BFktikaQpl+/fl0EKhBCVgRkv2NjY9NH1syErABkE1TTdqBCWRAG8reDxKBycOUoGmHOA2pIA5kOwiA2SDVMDqYTRSNQUBIkgewkJDZYDqYR7sewsLCtQFO9YBLYaGBAbVu1apU3SA5uIyFNIMXIauAaQRKkgBGlERTURATOVpgaABRQQOK46wEAAAAAAElFTkSuQmCC) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-public {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAKdJREFUKBVjYCATMKLri46Olvn9+3fX////HUByjIyMB1hZWcuWLl36BFktikaQpl+/fl0EKhBCVgRkv2NjY9NH1syErABkE1TTdqBCWRAG8reDxKBycOUoGmHOA2pIA5kOwiA2SDVMDq4TmREaGvofhJHFcLHhfgwLC9sKNNULl0KQODCgtq1atcobxIY7lZAmkGJkNXCNIAlSwIjSCApqIgJnK0wNALoOPwSpOcq0AAAAAElFTkSuQmCC) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-close {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAJRJREFUKBXFkNERhCAMREUbuEKohzq0Eq2DDq6Da4B60KezDORkxj+ZwchmX0IYhtdWCGFl9y5g82NtzDnPdzAaudo76ZBS+nrvPxiInMkJcs5tMcZFfqcfxdqIRiELof+BiIJPg+mExmpmvKRn3zKj7OrG9Y79szPL14A1xEP0Hgy4gBZS5R7czHj3ehSgOzkVeyfuGrBw/WLm0hsAAAAASUVORK5CYII=) no-repeat;\n}\n.tui-full-calendar-ic-location-b {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAOZJREFUKBWVUT0KwjAUbkzGTuJWPYNDpV0cXD2ETuIRBK+gs4ubp3BwcXBp6eINBKWDgydoid9X8oKCggYeee/7S9IGwZ9LverTNO3Wdb2y1o6IK6WOWutFlmU30XmDE58hbgvpTA+Y+mJqCemS20jdG2N6LPYMICc6b5BrIG3ONBZ7CoVj7w0cfllGRDj+gKQpjt/iPU0ye/LkROcNANaoCUzjqqquIsBuHddAWoiyLO9RFHUwJ4JxR/qmKIqdYG9vCMNwCeIiJHuHecj/B0GSJBng7ifO+ErDPM8L4b7ucRzPWJ8ET1E7YC7tmi9qAAAAAElFTkSuQmCC);\n}\n.tui-full-calendar-ic-state-b {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAHlJREFUKBVjYCARMCKrNzEx8QTyZ/3//18GJM7IyPgESKWdOXNmO4gPAkwQCk6CFQMVNoIwVOMsuCw6w9jY+D8Iw8TR+SBxsJOATtkKNM0LphAbDbRxG9Bp3mAnEVIMMgCmBt0P2AxHERusGkAhgOJQ7Jyt2IUJiAIAwwIn24FgmhkAAAAASUVORK5CYII=);\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-user-b {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAJpJREFUKBVjYKA1YES3wMTExBMoNgsqnnbmzJntyGqYkDlQ9qz////LgDCQD9MIV4ZNA1wSGwObhjRGRsYnIAzUkIZNE0licE+bm5tr/fnzJx1osjPQBFmoKY+BftnLwsIy8+TJk9dAYmANxsbGoUD2YiBmBwliAT+BYrFnz55dDfNDO1AAl2KQfpAcSA0DTIMyiEMAEKMG0wgAolIjcM7Tjm8AAAAASUVORK5CYII=);\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-edit {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAMdJREFUKBVjYCARMOJTb2xsLMfIyBjLysq64Pjx409BapnwaQDKzf7//3/L79+/D1tbW0uB1LJg02BmZqYIVPgdKBf/79+//UC2xs+fP8OB/H4MG0CK//79ewCkEGQYExOTI5DawMnJuQTER/EDTDFQXA4kCQQ3QBpOnz79AsJF8gMWxTA1KDTYBhyKMUwH6WSysrKSB7kZyIY5AySOVTFIggno+5VAmijFYA1AwhzEgAKcJsMUwIMVGKPH2NnZ7ZFDBKYImQYAuO5YIMgk39gAAAAASUVORK5CYII=);\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-delete {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAFhJREFUKBVjYCARMKKrNzEx2fr//38vkDgjI+O2M2fOeCOrAWtAVoQsicyGaWZCFsTHBtr6H588Tjm4H4yNjfGacPbsWbBaop0Es3JYaQBFDMxjWOitMDEA3EEZfFEISwUAAAAASUVORK5CYII=);\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-arrow-solid-top {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAIFJREFUKBVjYBj+gBmXF2NiYiTV1dV5rl279gWbGiZsgg0NDSw/f/5cCZRbBWJjU4PVRjExsR6g4nAgln/z5g3v1atXd6JrxtAYHh4e+v///z4khZa6urrXgJqvIYkxMCJzgJo0//37dwooxoMsDmR/YWJiMlu5cuV1NPFRLrYQAADMVCaUtbG7XwAAAABJRU5ErkJggg==) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-milestone {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAGFJREFUKBVjYCARMILU/3dw+I+hj5FxG+P+/d7o4rg1IKtE0syELI6T/f+/F0yOOA0w1UCa9hpYkGxjYDxwABwIILH/jo5bGWBuZ2TcClOHogEmCKKxBSlInPZ+ANlCEgAA37EU4AHbBQUAAAAASUVORK5CYII=) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-arrow-left {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAHCAYAAAAvZezQAAAAAXNSR0IArs4c6QAAAFZJREFUCB1jZICCyspK83///hUxgvhVVVV6f//+3c3ExJTMVFNTowqU2cHMzJzf3t6+hen379/zgIp2t7W1rQCpZmJlZU0C0q5AbREgAQwzwAIgGZgtADMCJqH/QyvhAAAAAElFTkSuQmCC) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-arrow-right {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAHCAYAAAAvZezQAAAAAXNSR0IArs4c6QAAAFxJREFUCB1jKC8vX1lZWWnOAAVMQLD4379/m6qqqvRAYowgAsiJAAr2sbCw2IMFQIIVFRUL////r8SCpMKVlZXVnhFooA9Q+VxmZmbXtra2S0xATizQYD8QB6QaAJMLJ9BqE9yTAAAAAElFTkSuQmCC) no-repeat;\n}\n.tui-full-calendar-ic-repeat-b {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAQpJREFUKBVjYCARMCKrNzU1tf/3718lUMwQiP8yMjKeYWJi6j516tRhExOThjNnzjTANQAFqv///98CVHQPSO8A0ixATa5AtjyQPgDETmfPngULMpiZmbn//fu3BSg4B6ggCyjxG8hm8PT0ZH/9+vUJoJgTiA8CTCACqDgXaOJ9Xl7eTJhikDhQcSVQsQGITT8A9rSxsfF/mJVApzWCQgPGd3BwYPny5cstoNOuAZ3rAwoJOAAqviAqKtoOEwAaxPr58+dpQL4iEGeAxJFt2AfkOwA1PQTSu4Em/gGyPYC0EpCuAdraCtIADiWgQCPQOmdmZmYHoNgVoCJfIB0CpG8DI84BphgoRjoAAAzgdELI91E5AAAAAElFTkSuQmCC);\n}\n/*# sourceMappingURL=src/css/main.css.map */\n","+prefix-classes(css-prefix)\n .layout\n height: 100%\n position: relative\n box-sizing: border-box\n\n *\n box-sizing: border-box\n\n // Related with user interaction\n .dragging\n cursor: move\n\n .resizing\n cursor: row-resize\n\n .resizing-x\n cursor: col-resize\n\n .hidden\n display: none !important\n\n .invisible span\n visibility: hidden\n\n .clear\n clearfix()\n\n .scroll-y\n overflow-y: scroll\n\n .dot\n display: inline-block\n position: relative\n top: -1px\n content: ''\n width: 7px\n height: 7px\n border-radius: 50%\n\n.{css-prefix}holiday\n color: red\n\n.{css-prefix}today\n background: rgba(218, 229, 249, .3)\n\n// Drag handle\n.handle-x\n background-position: center center\n background-repeat: no-repeat\n background-image: url(./image/handle-x.png)\n\n.handle-y\n background-position: center center\n background-repeat: no-repeat\n background-image: url(./image/handle-y.png)\n\n// For Retina display\n@media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-devicepixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx)\n .handle-x\n background-image: url(./image/handle-x@2x.png)\n background-size: 8px 4px\n\n .handle-y\n background-image: url(./image/handle-y@2x.png)\n background-size: 4px 8px\n",".tui-full-calendar-layout {\n height: 100%;\n position: relative;\n box-sizing: border-box;\n}\n.tui-full-calendar-layout * {\n box-sizing: border-box;\n}\n.tui-full-calendar-dragging {\n cursor: move;\n}\n.tui-full-calendar-resizing {\n cursor: row-resize;\n}\n.tui-full-calendar-resizing-x {\n cursor: col-resize;\n}\n.tui-full-calendar-hidden {\n display: none !important;\n}\n.tui-full-calendar-invisible span {\n visibility: hidden;\n}\n.tui-full-calendar-clear {\n zoom: 1;\n}\n.tui-full-calendar-clear:after {\n content: '';\n display: block;\n clear: both;\n}\n.tui-full-calendar-scroll-y {\n overflow-y: scroll;\n}\n.tui-full-calendar-dot {\n display: inline-block;\n position: relative;\n top: -1px;\n content: '';\n width: 7px;\n height: 7px;\n border-radius: 50%;\n}\n.tui-full-calendar-holiday {\n color: #f00;\n}\n.tui-full-calendar-today {\n background: rgba(218,229,249,0.3);\n}\n.handle-x {\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url(\"./image/handle-x.png\");\n}\n.handle-y {\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url(\"./image/handle-y.png\");\n}\n@media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-devicepixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx) {\n .handle-x {\n background-image: url(\"./image/handle-x@2x.png\");\n background-size: 8px 4px;\n }\n .handle-y {\n background-image: url(\"./image/handle-y@2x.png\");\n background-size: 4px 8px;\n }\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-weekday-grid {\n overflow-y: hidden;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-weekday-schedules {\n overflow-y: visible;\n height: 0;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-weekday-schedule {\n margin: 0 10px;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-today {\n background: none;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-today .tui-full-calendar-weekday-grid-date-decorator {\n display: inline-block;\n width: 27px;\n height: 27px;\n line-height: 27px;\n text-align: center;\n background: #135de6;\n border-radius: 50%;\n color: #fff;\n font-weight: bold;\n margin-left: 2px;\n}\n.tui-full-calendar-weekday-container,\n.tui-full-calendar-weekday-grid,\n.tui-full-calendar-weekday-grid-line {\n height: 100%;\n min-height: inherit;\n}\n.tui-full-calendar-weekday-grid {\n position: absolute;\n width: 100%;\n overflow-y: scroll;\n}\n.tui-full-calendar-weekday-border {\n border-top: 1px solid #ddd;\n}\n.tui-full-calendar-weekday-container {\n position: relative;\n}\n.tui-full-calendar-weekday-container>div {\n height: 100%;\n}\n.tui-full-calendar-weekday-grid-line {\n position: absolute;\n padding: 3px;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-footer {\n position: absolute;\n bottom: 4px;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-date {\n display: inline-block;\n width: 27px;\n height: 27px;\n line-height: 27px;\n text-align: center;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-date-title {\n line-height: 27px;\n margin-right: 5px;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-more-schedules {\n float: right;\n display: inline-block;\n height: 27px;\n line-height: 27px;\n padding: 0 5px;\n text-align: center;\n font-size: 11px;\n font-weight: bold;\n color: #aaa;\n}\n.tui-full-calendar-weekday-creation {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n overflow-y: scroll;\n}\n.tui-full-calendar-weekday-schedules {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n font-size: 12px;\n overflow-y: scroll;\n}\n.tui-full-calendar-weekday-schedules-height-span {\n width: 1px;\n margin-left: -1px;\n}\n.tui-full-calendar-weekday-schedule-block {\n position: absolute;\n}\n.tui-full-calendar-weekday-schedule-block-dragging-dim {\n opacity: 0.3;\n}\n.tui-full-calendar-weekday-schedule {\n position: relative;\n margin: 0 10px 0 1px;\n cursor: pointer;\n border-left-style: solid;\n border-left-width: 3px;\n}\n.tui-full-calendar-weekday-schedule.tui-full-calendar-weekday-schedule-time {\n border-left-width: 0;\n}\n.tui-full-calendar-weekday-schedule.tui-full-calendar-weekday-schedule-time .tui-full-calendar-weekday-schedule-title {\n padding-left: 9px;\n}\n.tui-full-calendar-weekday-schedule-bullet {\n position: absolute;\n padding: 0;\n width: 6px;\n height: 6px;\n top: 6px;\n left: 0;\n border-radius: 50%;\n}\n.tui-full-calendar-weekday-schedule-bullet-focused {\n left: 10px;\n background: #fff;\n}\n.tui-full-calendar-weekday-schedule-title {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding-left: 3px;\n font-weight: bold;\n}\n.tui-full-calendar-weekday-schedule-title-focused {\n padding-left: 16px;\n}\n.tui-full-calendar-weekday-schedule-cover {\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0,0,0,0.2);\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n}\n.tui-full-calendar-weekday-exceed-left .tui-full-calendar-weekday-schedule {\n margin-left: 0;\n border-left-width: 0;\n}\n.tui-full-calendar-weekday-exceed-right .tui-full-calendar-weekday-schedule {\n margin-right: 0;\n}\n.tui-full-calendar-weekday-exceed-right .tui-full-calendar-weekday-resize-handle {\n display: none;\n}\n.tui-full-calendar-weekday-exceed-in-month {\n cursor: pointer;\n}\n.tui-full-calendar-weekday-exceed-in-month:hover {\n background-color: #f0f1f5;\n}\n.tui-full-calendar-weekday-exceed-in-week,\n.tui-full-calendar-weekday-collapse-btn {\n position: absolute;\n bottom: 5px;\n margin-right: 5px;\n font-size: 12px;\n line-height: 14px;\n cursor: pointer;\n padding: 1px 5px;\n background-color: #fff;\n border: 1px solid #ddd;\n color: #000;\n}\n.tui-full-calendar-weekday-resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n width: 6px;\n background-position: 3px center;\n cursor: col-resize;\n line-height: 18px;\n}\n.tui-full-calendar-weekday-filled {\n background-color: #e8e8e8 !important;\n}\n.tui-full-calendar-left {\n height: 100%;\n float: left;\n box-sizing: border-box;\n display: table;\n}\n.tui-full-calendar-left-content {\n display: table-cell;\n vertical-align: middle;\n text-align: right;\n font-size: 11px;\n}\n.tui-full-calendar-right {\n height: 100%;\n overflow-y: scroll;\n position: relative;\n}\n.tui-full-calendar-week-container {\n width: 100%;\n height: inherit;\n display: inline-block;\n font-size: 10px;\n min-height: 600px;\n}\n.tui-full-calendar-week-container .tui-full-calendar-today {\n background: none;\n}\n.tui-full-calendar-dayname {\n position: absolute;\n margin-left: -1px;\n height: 100%;\n overflow: hidden;\n}\n.tui-full-calendar-dayname.tui-full-calendar-today {\n font-weight: bold;\n}\n.tui-full-calendar-dayname-container {\n overflow-y: scroll;\n}\n.tui-full-calendar-dayname-leftmargin {\n position: relative;\n height: 100%;\n}\n.tui-full-calendar-dayname-date {\n font-size: 26px;\n}\n.tui-full-calendar-dayname-name {\n font-weight: bold;\n font-size: 12px;\n}\n.tui-full-calendar-daygrid-layout {\n height: 100%;\n}\n.tui-full-calendar-daygrid-layout .tui-full-calendar-right {\n overflow-y: hidden;\n}\n.tui-full-calendar-daygrid-guide-creation-block {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n}\n.tui-full-calendar-timegrid-container {\n height: 100%;\n position: relative;\n overflow: hidden;\n overflow-y: scroll;\n}\n.tui-full-calendar-timegrid-container-split {\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n.tui-full-calendar-timegrid-left {\n position: absolute;\n}\n.tui-full-calendar-timegrid-hour {\n position: relative;\n color: #555;\n box-sizing: border-box;\n}\n.tui-full-calendar-timegrid-hour:first-child span {\n display: none;\n}\n.tui-full-calendar-timegrid-hour:last-child {\n border-bottom: none;\n}\n.tui-full-calendar-timegrid-hour span {\n position: absolute;\n top: -11px;\n left: 0;\n right: 5px;\n text-align: right;\n line-height: 25px;\n}\n.tui-full-calendar-timegrid-right {\n position: relative;\n}\n.tui-full-calendar-timegrid-gridline {\n border-bottom: 1px solid #eee;\n box-sizing: border-box;\n}\n.tui-full-calendar-timegrid-gridline:last-child {\n border-bottom: none;\n}\n.tui-full-calendar-timegrid-schedules {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n cursor: pointer;\n}\n.tui-full-calendar-timegrid-hourmarker {\n position: absolute;\n width: 100%;\n display: table;\n}\n.tui-full-calendar-timegrid-hourmarker-line-left {\n position: absolute;\n min-height: 1px;\n left: 0;\n}\n.tui-full-calendar-timegrid-hourmarker-line-today {\n position: absolute;\n min-height: 1px;\n}\n.tui-full-calendar-timegrid-hourmarker-line-right {\n position: absolute;\n min-height: 1px;\n right: 0;\n}\n.tui-full-calendar-timegrid-hourmarker-time {\n padding-right: 5px;\n line-height: 12px;\n text-align: right;\n display: table-cell;\n vertical-align: bottom;\n}\n.tui-full-calendar-timegrid-todaymarker {\n position: absolute;\n text-indent: -9999px;\n width: 9px;\n height: 9px;\n background-color: #135de6;\n margin: -4px 0 0 -5px;\n border-radius: 50%;\n}\n.tui-full-calendar-timegrid-sticky-container {\n position: absolute;\n top: 0;\n}\n.tui-full-calendar-timegrid-timezone-label-container {\n position: absolute;\n}\n.tui-full-calendar-timegrid-timezone-label-cell {\n display: table;\n}\n.tui-full-calendar-timegrid-timezone-label {\n display: table-cell;\n vertical-align: middle;\n padding-right: 5px;\n text-align: right;\n}\n.tui-full-calendar-timegrid-timezone-close-btn {\n cursor: pointer;\n position: absolute;\n text-align: center;\n background-color: #fff;\n}\n.tui-full-calendar-timegrid-timezone-close-btn .tui-full-calendar-icon {\n width: 5px;\n height: 10px;\n}\n.tui-full-calendar-time-date {\n position: absolute;\n height: 100%;\n margin-left: -1px;\n box-sizing: content-box;\n}\n.tui-full-calendar-time-date:last-child {\n border-right: none;\n margin: 0;\n}\n.tui-full-calendar-time-date:last-child .tui-full-calendar-time-schedule,\n.tui-full-calendar-time-date:last-child .tui-full-calendar-time-guide-creation {\n left: 0px;\n}\n.tui-full-calendar-time-date-schedule-block-wrap {\n position: relative;\n height: 100%;\n}\n.tui-full-calendar-time-date-schedule-block {\n position: absolute;\n right: 0px;\n}\n.tui-full-calendar-time-date-schedule-block-pending {\n opacity: 0.7;\n}\n.tui-full-calendar-time-date-schedule-block-dragging-dim {\n opacity: 0.3;\n}\n.tui-full-calendar-time-date-schedule-block-focused {\n box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);\n}\n.tui-full-calendar-time-date-schedule-block-cover {\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0,0,0,0.2);\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n}\n.tui-full-calendar-time-schedule {\n position: relative;\n left: 1px;\n height: 100%;\n overflow: hidden;\n font-size: 12px;\n font-weight: bold;\n}\n.tui-full-calendar-time-schedule-content {\n overflow: hidden;\n border-left-width: 3px;\n border-left-style: solid;\n padding: 1px 0 0 3px;\n}\n.tui-full-calendar-time-schedule-content-travel-time {\n font-weight: normal;\n font-size: 11px;\n}\n.tui-full-calendar-time-resize-handle {\n position: absolute;\n right: 0px;\n bottom: 0px;\n left: 0px;\n height: 5px;\n text-align: center;\n color: #fff;\n cursor: row-resize;\n background-position: center top;\n}\n.tui-full-calendar-time-guide-creation {\n position: absolute;\n right: 10px;\n left: 1px;\n padding: 3px;\n}\n.tui-full-calendar-time-guide-move .tui-full-calendar-time-schedule,\n.tui-full-calendar-time-guide-resize .tui-full-calendar-time-schedule,\n.tui-full-calendar-time-guide-move .tui-full-calendar-time-resize-handle,\n.tui-full-calendar-time-guide-resize .tui-full-calendar-time-resize-handle {\n opacity: 0.8;\n z-index: 97;\n}\n.tui-full-calendar-time-guide-creation-label {\n cursor: default;\n}\n.tui-full-calendar-time-guide-bottom {\n position: absolute;\n bottom: 3px;\n}\n.tui-full-calendar-month {\n height: 100%;\n min-height: 600px;\n}\n.tui-full-calendar-month-dayname {\n width: 100%;\n position: absolute;\n font-size: 13px;\n}\n.tui-full-calendar-month-dayname-item {\n height: 100%;\n font-weight: bold;\n}\n.tui-full-calendar-month-week-item {\n position: relative;\n}\n.tui-full-calendar-month-week-item>div {\n height: 100%;\n}\n.tui-full-calendar-month-more {\n height: inherit;\n min-width: 280px;\n min-height: 150px;\n}\n.tui-full-calendar-month-more-title {\n position: relative;\n}\n.tui-full-calendar-month-more-title-day {\n font-size: 23px;\n color: #333;\n}\n.tui-full-calendar-month-more-title-day-label {\n font-size: 12px;\n color: #333;\n}\n.tui-full-calendar-month-more-close {\n position: absolute;\n right: 0;\n outline: 0;\n background: none;\n border: 0;\n font-size: 14px;\n line-height: 28px;\n padding: 0 7px;\n cursor: pointer;\n}\n.tui-full-calendar-month-more-list {\n overflow-y: auto;\n}\n.tui-full-calendar-month-more-schedule {\n cursor: pointer;\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-size: 12px;\n}\n.tui-full-calendar-month-guide-block {\n position: absolute;\n}\n.tui-full-calendar-month-weekday-schedule {\n margin-top: 2px;\n}\n.tui-full-calendar-month-creation-guide {\n top: 0;\n bottom: -1px;\n left: -1px;\n right: 0;\n position: absolute;\n z-index: 20;\n}\n.tui-full-calendar-month-guide-focused {\n box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);\n}\n.tui-full-calendar-month-guide {\n position: relative;\n padding-left: 3px;\n line-height: 18px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.tui-full-calendar-month-guide-cover {\n width: 100%;\n position: absolute;\n top: -50%;\n left: -50%;\n background-color: rgba(0,0,0,0.2);\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n}\n.tui-full-calendar-month-exceed-left .tui-full-calendar-month-guide {\n margin-left: 0px;\n}\n.tui-full-calendar-month-exceed-right .tui-full-calendar-month-guide {\n margin-right: 0px;\n}\n.tui-full-calendar-month-exceed-right .tui-full-calendar-month-guide-handle {\n display: none;\n}\n.tui-full-calendar-month-guide-handle {\n position: absolute;\n top: 0;\n right: 3px;\n width: 6px;\n background-position: 3px center;\n cursor: col-resize;\n}\n.tui-full-calendar-vlayout-container {\n position: relative;\n}\n.tui-full-calendar-splitter {\n clear: left;\n cursor: row-resize;\n}\n.tui-full-calendar-splitter:hover {\n border-color: #999;\n}\n.tui-full-calendar-splitter-focused {\n background-color: #ddd;\n border: none;\n}\n.tui-full-calendar-splitter-guide {\n position: absolute;\n width: 100%;\n height: 3px;\n border: none;\n background-color: #e8e8e8;\n}\n.tui-full-calendar-popup {\n position: absolute;\n font-weight: 2.5;\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n clear: both;\n}\n.tui-full-calendar-popup-container {\n min-width: 474px;\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n background-color: #fff;\n border: solid 1px #d5d5d5;\n padding: 17px;\n border-radius: 2px;\n}\n.tui-full-calendar-popup-section {\n font-size: 0;\n min-height: 40px;\n}\n.tui-full-calendar-section-calendar {\n width: 176px;\n}\n.tui-full-calendar-section-calendar.tui-full-calendar-hide {\n height: 21px;\n visibility: hidden;\n}\n.tui-full-calendar-section-title {\n width: calc(100% - 36px);\n padding-right: 4px;\n}\n.tui-full-calendar-section-title input {\n width: 365px;\n}\n.tui-full-calendar-button.tui-full-calendar-section-private {\n height: 32px;\n padding: 8px;\n font-size: 0;\n margin-left: 4px;\n}\n.tui-full-calendar-section-private.tui-full-calendar-public .tui-full-calendar-ic-private {\n background: url(\"image/ic-unlock.png\") no-repeat;\n}\n.tui-full-calendar-section-start-date,\n.tui-full-calendar-section-end-date {\n width: 176px;\n}\n.tui-full-calendar-section-start-date input,\n.tui-full-calendar-section-end-date input {\n width: 139px;\n}\n.tui-full-calendar-section-start-date:hover .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-end-date:hover .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-start-date:focus .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-end-date:focus .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-start-date:hover .tui-datepicker,\n.tui-full-calendar-section-end-date:hover .tui-datepicker,\n.tui-full-calendar-section-start-date:focus .tui-datepicker,\n.tui-full-calendar-section-end-date:focus .tui-datepicker {\n border-color: #bbb;\n}\n.tui-full-calendar-popup-section-item:focus {\n border-color: #bbb;\n}\n.tui-full-calendar-section-date-dash {\n font-size: 12px;\n color: #d5d5d5;\n height: 32px;\n padding: 0 4px;\n vertical-align: middle;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-allday {\n border: none;\n padding: 0 0 0 8px;\n cursor: pointer;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-location {\n display: block;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-location input {\n width: 400px;\n}\n.tui-full-calendar-section-allday .tui-full-calendar-icon.tui-full-calendar-ic-checkbox {\n margin: 0;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-allday .tui-full-calendar-content {\n padding-left: 4px;\n}\n.tui-full-calendar-section-state {\n width: 109px;\n}\n.tui-full-calendar-section-state .tui-full-calendar-content {\n width: 58px;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.tui-full-calendar-popup-section-item {\n height: 32px;\n padding: 0 9px 0 12px;\n border: 1px solid #d5d5d5;\n display: inline-block;\n font-size: 0;\n border-radius: 2px;\n}\n.tui-full-calendar-popup-section-item:hover {\n border-color: #bbb;\n}\n.tui-full-calendar-popup-section-item:focus {\n border-color: #bbb;\n}\n.tui-full-calendar-popup-section-item .tui-full-calendar-icon {\n position: relative;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-title {\n top: 2px;\n}\n.tui-full-calendar-popup-section-item .tui-full-calendar-content {\n text-align: left;\n display: inline-block;\n font-size: 12px;\n vertical-align: middle;\n position: relative;\n padding-left: 8px;\n}\n.tui-full-calendar-section-calendar .tui-full-calendar-dropdown-button .tui-full-calendar-content {\n width: 125px;\n text-overflow: ellipsis;\n overflow: hidden;\n top: -1px;\n}\n.tui-full-calendar-popup-section-item input {\n border: none;\n height: 30px;\n outline: none;\n display: inline-block;\n}\n.tui-full-calendar-popup-section-item input::placeholder {\n color: #bbb;\n font-weight: 300;\n}\n.tui-full-calendar-dropdown {\n position: relative;\n}\n.tui-full-calendar-dropdown:hover .tui-full-calendar-dropdown-button {\n border: 1px solid #bbb;\n}\n.tui-full-calendar-dropdown-button.tui-full-calendar-popup-section-item {\n height: 32px;\n font-size: 0;\n top: -1px;\n}\n.tui-full-calendar-dropdown-arrow {\n background: url(\"image/ic-arrow-solid-bottom.png\") no-repeat;\n}\n.dropdown.open .tui-full-calendar-dropdown-arrow,\n.tui-full-calendar-open .tui-full-calendar-dropdown-arrow {\n background: url(\"image/ic-arrow-solid-top.png\") no-repeat;\n}\n.tui-full-calendar-dropdown-menu {\n position: absolute;\n top: 31px;\n padding: 4px 0;\n background-color: #fff;\n border: 1px solid #d5d5d5;\n border-top: none;\n border-radius: 0 0 2px 2px;\n width: 100%;\n}\n.tui-full-calendar-dropdown:hover .tui-full-calendar-dropdown-menu {\n border: 1px solid #bbb;\n border-top: none;\n}\n.tui-full-calendar-dropdown-menu {\n display: none;\n}\n.tui-full-calendar-open .tui-full-calendar-dropdown-menu {\n display: block;\n}\n.tui-full-calendar-dropdown-menu-item {\n height: 30px;\n border: none;\n cursor: pointer;\n}\n.tui-full-calendar-section-calendar .tui-full-calendar-dropdown-menu-item {\n width: 100%;\n}\n.tui-full-calendar-section-state .tui-full-calendar-dropdown-menu-item {\n width: 100%;\n}\n.tui-full-calendar-dropdown-menu-item:hover {\n background-color: rgba(81,92,230,0.05);\n}\n.tui-full-calendar-dropdown-menu-item .tui-full-calendar-content {\n line-height: 30px;\n}\n.tui-full-calendar-button.tui-full-calendar-popup-close {\n position: absolute;\n top: 10px;\n right: 10px;\n background-color: #fff;\n padding: 2px;\n border: none;\n}\n.tui-full-calendar-section-button-save {\n height: 36px;\n}\n.tui-full-calendar-popup-save {\n float: right;\n}\n.tui-full-calendar-popup-arrow-border,\n.tui-full-calendar-popup-arrow-fill {\n position: absolute;\n}\n.tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-border {\n border-top: none;\n border-right: 8px solid transparent;\n border-bottom: 8px solid #d5d5d5;\n border-left: 8px solid transparent;\n left: calc(50% - 8px);\n top: -7px;\n}\n.tui-full-calendar-arrow-right .tui-full-calendar-popup-arrow-border {\n border-top: 8px solid transparent;\n border-right: none;\n border-bottom: 8px solid transparent;\n border-left: 8px solid #d5d5d5;\n top: calc(50% - 8px);\n right: -7px;\n}\n.tui-full-calendar-arrow-bottom .tui-full-calendar-popup-arrow-border {\n border-top: 8px solid #d5d5d5;\n border-right: 8px solid transparent;\n border-bottom: none;\n border-left: 8px solid transparent;\n left: calc(50% - 8px);\n bottom: -7px;\n}\n.tui-full-calendar-arrow-left .tui-full-calendar-popup-arrow-border {\n border-top: 8px solid transparent;\n border-right: 8px solid #d5d5d5;\n border-bottom: 8px solid transparent;\n border-left: none;\n top: calc(50% - 8px);\n left: -7px;\n}\n.tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-fill {\n border-top: none;\n border-right: 7px solid transparent;\n border-bottom: 7px solid #fff;\n border-left: 7px solid transparent;\n left: -7px;\n top: 1px;\n}\n.tui-full-calendar-arrow-right .tui-full-calendar-popup-arrow-fill {\n border-top: 7px solid transparent;\n border-right: none;\n border-bottom: 7px solid transparent;\n border-left: 7px solid #fff;\n top: -7px;\n right: 1px;\n}\n.tui-full-calendar-arrow-bottom .tui-full-calendar-popup-arrow-fill {\n border-top: 7px solid #fff;\n border-right: 7px solid transparent;\n border-bottom: none;\n border-left: 7px solid transparent;\n left: -7px;\n bottom: 1px;\n}\n.tui-full-calendar-arrow-left .tui-full-calendar-popup-arrow-fill {\n border-top: 7px solid transparent;\n border-right: 7px solid #fff;\n border-bottom: 7px solid transparent;\n border-left: none;\n top: -7px;\n left: 1px;\n}\n.tui-full-calendar-button {\n background: #fff;\n border: 1px solid #d5d5d5;\n border-radius: 2px;\n text-align: center;\n outline: none;\n font-size: 12px;\n cursor: pointer;\n color: #333;\n}\n.tui-full-calendar-button:hover {\n border-color: #bbb;\n color: #333;\n}\n.tui-full-calendar-button:active {\n background: #f9f9f9;\n color: #333;\n}\n.tui-full-calendar-button .round {\n border-radius: 25px;\n}\n.tui-full-calendar-confirm {\n width: 96px;\n height: 36px;\n border-radius: 40px;\n background-color: #ff6618;\n font-size: 12px;\n font-weight: bold;\n color: #fff;\n border: none;\n}\n.tui-full-calendar-confirm:hover {\n background-color: #e55b15;\n color: #fff;\n}\n.tui-full-calendar-confirm:active {\n background-color: #d95614;\n color: #fff;\n}\n.tui-full-calendar-icon.tui-full-calendar-right {\n float: right;\n top: 1px;\n}\n.tui-full-calendar-icon .tui-full-calendar-none {\n display: none;\n}\n.tui-full-calendar-icon.tui-full-calendar-calendar-dot {\n border-radius: 8px;\n width: 12px;\n height: 12px;\n margin: 1px;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-square {\n display: none;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-square + span {\n display: inline-block;\n cursor: pointer;\n line-height: 14px;\n margin-right: 8px;\n width: 14px;\n height: 14px;\n background: url(\"image/ic-checkbox-normal.png\") no-repeat;\n vertical-align: middle;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-square:checked + span {\n background: url(\"image/ic-checkbox-checked.png\") no-repeat;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-round {\n display: none;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-round + span {\n display: inline-block;\n cursor: pointer;\n width: 14px;\n height: 14px;\n line-height: 14px;\n vertical-align: middle;\n margin-right: 8px;\n border-radius: 8px;\n border: solid 2px;\n background: transparent;\n}\n.tui-full-calendar-popup-top-line {\n position: absolute;\n border-radius: 2px 2px 0 0;\n width: 100%;\n height: 4px;\n border: none;\n top: 0;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-popup-container {\n width: 301px;\n min-width: 301px;\n padding-bottom: 0;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon {\n width: 12px;\n height: 12px;\n background-size: 12px;\n position: relative;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon {\n margin-right: 8px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-location-b {\n top: -2px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-user-b {\n top: -2px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-state-b {\n top: -1px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-calendar-dot {\n width: 10px;\n height: 10px;\n margin-right: 8px;\n top: -1px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-content {\n line-height: 24px;\n height: 24px;\n font-size: 12px;\n line-height: 2;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-section-header {\n margin-bottom: 6px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-popup-detail-item-separate {\n margin-top: 4px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-popup-detail-item-indent {\n text-indent: -20px;\n padding-left: 20px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-schedule-title {\n font-size: 15px;\n font-weight: bold;\n line-height: 1.6;\n word-break: break-all;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-schedule-private {\n display: none;\n width: 16px;\n height: 16px;\n background: url(\"image/ic-lock.png\") no-repeat 16px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-schedule-private .tui-full-calendar-ic-private {\n display: block;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-section-detail {\n margin-bottom: 16px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-section-button {\n border-top: 1px solid #e5e5e5;\n font-size: 0;\n}\n.tui-full-calendar-section-button .tui-full-calendar-icon {\n margin-right: 4px;\n top: -3px;\n}\n.tui-full-calendar-section-button .tui-full-calendar-content {\n position: relative;\n top: 2px;\n}\n.tui-full-calendar-popup-edit,\n.tui-full-calendar-popup-delete {\n display: inline-block;\n padding: 7px 9px 11px 9px;\n width: calc(50% - 1px);\n outline: none;\n background: none;\n border: none;\n cursor: pointer;\n}\n.tui-full-calendar-popup-vertical-line {\n background: #e5e5e5;\n width: 1px;\n height: 14px;\n vertical-align: middle;\n display: inline-block;\n margin-top: -7px;\n}\n.tui-datepicker {\n left: -12px;\n z-index: 1;\n border-color: #d5d5d5;\n}\n.tui-full-calendar-icon {\n width: 14px;\n height: 14px;\n display: inline-block;\n vertical-align: middle;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-title {\n background: url(\"image/ic-subject.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-location {\n background: url(\"image/ic-location.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-date {\n background: url(\"image/ic-date.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-state {\n background: url(\"image/ic-state.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-private {\n background: url(\"image/ic-lock.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-public {\n background: url(\"image/ic-unlock.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-close {\n background: url(\"image/ic-close.png\") no-repeat;\n}\n.tui-full-calendar-ic-location-b {\n background: url(\"./image/ic-location-b.png\");\n}\n.tui-full-calendar-ic-state-b {\n background: url(\"./image/ic-state-b.png\");\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-user-b {\n background-image: url(\"./image/ic-user-b.png\");\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-edit {\n background-image: url(\"./image/ic-edit.png\");\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-delete {\n background-image: url(\"./image/ic-delete.png\");\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-arrow-solid-top {\n background: url(\"image/ic-arrow-solid-top.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-milestone {\n background: url(\"image/ic-milestone.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-arrow-left {\n background: url(\"image/ic-arrow-left.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-arrow-right {\n background: url(\"image/ic-arrow-right.png\") no-repeat;\n}\n.tui-full-calendar-ic-repeat-b {\n background: url(\"./image/ic-repeat-b.png\");\n}\n/*# sourceMappingURL=src/css/main.css.map */","// Variables\n// default prefix\ncss-prefix = 'tui-full-calendar-'\n// Dayname\ndayname = css-prefix + 'dayname-'\n// Taskview\nmilestone = css-prefix + 'milestone-'\ntaskview = css-prefix + 'task-'\n// Allday\nallday = css-prefix + 'allday-'\nweekday = css-prefix + 'weekday-'\n// DayGrid\ndaygrid = css-prefix + 'daygrid-'\n// Time\ntimegrid = css-prefix + 'timegrid-'\ntime = css-prefix + 'time-'\n// Month\nmonth = css-prefix + 'month-'\n\n// Functions\nwh(w, h)\n width: w\n height: h\n\npos(top, left)\n top: top\n left: left\n\nmpzero()\n margin: 0\n padding: 0\n\nvendor(prop, args)\n -webkit-{prop} args\n -moz-{prop} args\n {prop} args\n\nclearfix()\n zoom: 1;\n &:after\n content: '';\n display: block;\n clear: both;\n \n",".{css-prefix}month-week-item\n .{css-prefix}weekday-grid\n overflow-y: hidden\n\n .{css-prefix}weekday-schedules\n overflow-y: visible\n height: 0\n\n .{css-prefix}weekday-schedule\n margin: 0 10px\n\n .{css-prefix}today\n background: none\n\n .{css-prefix}weekday-grid-date-decorator\n display: inline-block\n wh(27px, 27px)\n line-height: 27px\n text-align: center\n background: #135de6\n border-radius: 50%\n color: #fff\n font-weight: bold\n margin-left: 2px\n\n+prefix-classes(weekday)\n .container,\n .grid,\n .grid-line\n height: 100%\n min-height: inherit\n\n .grid\n position: absolute\n width: 100%\n overflow-y: scroll\n\n .border\n border-top: 1px solid #ddd\n\n .container\n position: relative\n &>div\n height: 100%\n\n .grid-line\n position: absolute\n padding: 3px\n\n .grid-footer\n position: absolute\n bottom: 4px\n\n .grid-date\n display: inline-block\n wh(27px, 27px)\n line-height: 27px\n text-align: center\n\n .grid-date-title\n line-height: 27px\n margin-right: 5px\n \n .grid-more-schedules\n float: right\n display: inline-block\n height: 27px\n line-height: 27px\n padding: 0 5px\n text-align: center\n font-size: 11px\n font-weight: bold\n color: #aaaaaa\n\n .creation\n pos(0, 0)\n wh(100%, 100%)\n position: absolute\n overflow-y: scroll\n\n .schedules\n pos(0, 0)\n wh(100%, 100%)\n position: absolute\n font-size: 12px\n overflow-y: scroll\n\n .schedules-height-span\n width: 1px\n margin-left: -1px\n\n .schedule-block\n position: absolute\n\n .schedule-block-dragging-dim\n opacity: 0.3\n\n .schedule\n position: relative\n margin: 0 10px 0 1px\n cursor: pointer\n border-left-style: solid\n border-left-width: 3px\n\n &.schedule-time\n border-left-width: 0\n\n .schedule-title\n padding-left: 9px\n\n .schedule-bullet\n position: absolute\n padding: 0\n wh(6px, 6px)\n top: 6px\n left: 0\n border-radius: 50%\n\n .schedule-bullet-focused\n left: 10px\n background: #ffffff\n\n .schedule-title\n display: block\n white-space: nowrap\n overflow: hidden\n text-overflow: ellipsis\n padding-left: 3px;\n font-weight: bold;\n\n .schedule-title-focused\n padding-left: 16px\n\n .schedule-cover\n position: absolute\n top: 0\n width: 100%\n height: 100%\n background-color: rgba(0, 0, 0, 0.2)\n box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);\n\n .exceed-left .schedule\n margin-left: 0\n border-left-width: 0\n\n .exceed-right .schedule\n margin-right: 0\n\n .exceed-right .resize-handle\n display: none\n\n .exceed-in-month\n cursor: pointer\n &:hover\n background-color: #f0f1f5\n\n .exceed-in-week, .collapse-btn\n position: absolute\n bottom: 5px\n margin-right: 5px\n font-size: 12px\n line-height: 14px\n cursor: pointer\n padding: 1px 5px\n background-color: #ffffff\n border: 1px solid #dddddd\n color: #000000\n\n .resize-handle\n position: absolute\n top: 0\n right: 0\n width: 6px\n background-position: 3px center\n cursor: col-resize\n line-height: 18px\n\n .filled\n background-color: #e8e8e8 !important\n\n+prefix-classes(css-prefix)\n .left\n height: 100%\n float: left\n box-sizing: border-box\n display: table\n\n .left-content\n display: table-cell\n vertical-align: middle\n text-align: right\n font-size: 11px\n\n\n .right\n height: 100%\n overflow-y: scroll\n position: relative\n",".{css-prefix}week-container\n width: 100%\n height: inherit\n display: inline-block\n font-size: 10px\n min-height: 600px\n\n .{css-prefix}today\n background: none\n",".{css-prefix}dayname\n position: absolute\n margin-left: -1px\n height: 100%\n overflow: hidden\n\n &.{css-prefix}today\n font-weight: bold\n\n+prefix-classes(dayname)\n .container\n overflow-y: scroll\n\n .leftmargin\n position: relative\n height: 100%\n \n .date\n font-size: 26px\n \n .name\n font-weight: bold\n font-size: 12px\n","// DayGrid view\n+prefix-classes(daygrid)\n .layout\n height: 100%;\n\n.{css-prefix}daygrid-layout\n .{css-prefix}right\n overflow-y: hidden\n\n// Guide element\n+prefix-classes(daygrid + guide-)\n .creation-block\n position: absolute\n top: 0\n bottom: 0\n z-index: 1\n","+prefix-classes(timegrid)\n .container\n height: 100%\n position: relative\n overflow: hidden\n overflow-y: scroll\n\n .container-split\n height: 100%\n position: relative\n overflow: hidden\n\n .left\n position: absolute\n\n .hour\n position: relative\n color: #555\n box-sizing: border-box\n &:first-child span\n display: none\n &:last-child\n border-bottom: none\n\n .hour span\n position: absolute\n top: -11px\n left: 0\n right: 5px\n text-align: right\n line-height: 25px\n\n .right\n position: relative\n\n .gridline\n border-bottom: 1px solid #eee\n box-sizing: border-box\n &:last-child\n border-bottom: none\n\n .schedules\n position: absolute\n wh(100%, 100%)\n pos(0, 0)\n cursor: pointer\n\n // Hourmarker\n .hourmarker\n position: absolute\n width: 100%\n display: table\n\n .hourmarker-line-left\n position: absolute\n min-height: 1px\n left: 0\n\n .hourmarker-line-today\n position: absolute\n min-height: 1px\n\n .hourmarker-line-right\n position: absolute\n min-height: 1px\n right: 0\n\n .hourmarker-time\n padding-right: 5px\n line-height: 12px\n text-align: right\n display: table-cell\n vertical-align: bottom\n\n // Todaymarker\n .todaymarker\n position: absolute\n text-indent: -9999px\n wh(9px, 9px)\n background-color: #135de6\n margin: -4px 0 0 -5px\n border-radius: 50%\n\n .sticky-container\n position: absolute\n top: 0\n \n .timezone-label-container\n position: absolute\n \n .timezone-label-cell\n display: table\n \n .timezone-label\n display: table-cell\n vertical-align: middle\n padding-right: 5px\n text-align: right\n \n .timezone-close-btn\n cursor: pointer\n position: absolute\n text-align: center\n background-color: #ffffff\n\n.{css-prefix}timegrid-timezone-close-btn\n .{css-prefix}icon\n width: 5px\n height: 10px\n\n+prefix-classes(time)\n .date\n position: absolute\n height: 100%\n margin-left: -1px\n box-sizing: content-box\n &:last-child\n border-right: none\n margin: 0\n // last creation guide element\n .schedule,\n .guide-creation\n left: 0px\n\n .date-schedule-block-wrap\n position: relative\n height: 100%\n\n .date-schedule-block\n position: absolute\n right: 0px\n\n .date-schedule-block-pending\n opacity: 0.7\n\n .date-schedule-block-dragging-dim\n opacity: 0.3\n\n .date-schedule-block-focused\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2)\n\n .date-schedule-block-cover\n position: absolute\n top: 0\n width: 100%\n height: 100%\n background-color: rgba(0, 0, 0, 0.2)\n box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);\n\n .schedule\n position: relative\n left: 1px\n height: 100%\n overflow: hidden\n font-size: 12px\n font-weight: bold\n\n .schedule-content\n overflow: hidden\n border-left-width: 3px\n border-left-style: solid\n padding: 1px 0 0 3px\n\n .schedule-content-travel-time\n font-weight: normal;\n font-size: 11px;\n\n .resize-handle\n position: absolute\n right: 0px\n bottom: 0px\n left: 0px\n height: 5px\n text-align: center\n color: #fff\n cursor: row-resize\n background-position: center top\n\n // Guide element\n .guide-creation\n position: absolute\n right: 10px\n left: 1px\n padding: 3px\n\n .guide-move,\n .guide-resize\n .schedule,\n .resize-handle\n opacity: 0.8\n z-index: 97\n\n .guide-creation-label\n cursor: default\n\n .guide-bottom\n position: absolute\n bottom: 3px\n",".{css-prefix}month\n height: 100%\n min-height: 600px\n\n+prefix-classes(month)\n .dayname\n width: 100%\n position: absolute\n font-size: 13px\n\n .dayname-item\n height: 100%\n font-weight: bold\n\n .week-item\n position: relative\n &>div\n height: 100%\n\n .more\n height: inherit\n min-width: 280px\n min-height: 150px\n\n .more-title\n position: relative\n \n .more-title-day\n font-size: 23px\n color #333\n \n .more-title-day-label\n font-size: 12px\n color: #333\n\n .more-close\n position: absolute\n right: 0\n outline: 0\n background none\n border: 0\n font-size: 14px\n line-height: 28px\n padding: 0 7px\n cursor: pointer\n\n .more-list\n overflow-y: auto\n\n .more-schedule\n cursor: pointer\n display: block\n overflow: hidden\n white-space: nowrap\n text-overflow: ellipsis\n font-size: 12px\n\n .guide-block\n position: absolute\n\n .weekday-schedule\n margin-top: 2px\n\n .creation-guide\n top: 0\n bottom: -1px\n left: -1px\n right: 0\n position: absolute\n z-index: 20\n\n .guide-focused\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2)\n\n .guide\n position: relative\n padding-left: 3px\n line-height: 18px\n overflow: hidden\n white-space: nowrap\n text-overflow: ellipsis\n\n .guide-cover\n width: 100%\n position: absolute\n top: -50%\n left: -50%\n background-color: rgba(0, 0, 0, 0.2)\n box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1)\n\n .exceed-left .guide\n margin-left: 0px\n\n .exceed-right .guide\n margin-right: 0px\n\n .exceed-right .guide-handle\n display: none\n\n .guide-handle\n position: absolute\n top: 0\n right: 3px\n width: 6px\n background-position: 3px center\n cursor: col-resize\n","+prefix-classes(css-prefix)\n .vlayout-container\n position: relative\n\n .splitter\n clear: left\n cursor: row-resize\n\n &:hover\n border-color: #999\n\n .splitter-focused\n background-color: #ddd\n border: none\n\n .splitter-guide\n position: absolute\n wh(100%, 3px)\n border: none\n background-color: #e8e8e8\n",".{css-prefix}popup\n position: absolute\n font-weight: 2.5\n box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1)\n clear: both\n\n.{css-prefix}popup-container\n min-width: 474px\n box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1)\n background-color: #ffffff\n border: solid 1px #d5d5d5\n padding: 17px\n border-radius: 2px\n\n.{css-prefix}popup-section\n font-size: 0\n min-height: 40px\n\n.{css-prefix}section-calendar\n width: 176px\n\n.{css-prefix}section-calendar.{css-prefix}hide\n height: 21px\n visibility: hidden\n\n.{css-prefix}section-title\n width: calc(100% - 36px)\n padding-right: 4px\n\n.{css-prefix}section-title input\n width: 365px\n\n.{css-prefix}button.{css-prefix}section-private\n height: 32px\n padding: 8px\n font-size: 0\n margin-left: 4px\n\n.{css-prefix}section-private.{css-prefix}public .{css-prefix}ic-private\n background: url('image/ic-unlock.png') no-repeat\n\n.{css-prefix}section-start-date\n.{css-prefix}section-end-date\n width: 176px\n\n input\n width: 139px\n\n &:hover\n &:focus\n .{css-prefix}popup-section-item\n .tui-datepicker\n border-color: #bbbbbb\n\n\n.{css-prefix}popup-section-item:focus\n border-color: #bbbbbb\n\n.{css-prefix}section-date-dash\n font-size: 12px\n color: #d5d5d5\n height: 32px\n padding: 0 4px\n vertical-align: middle\n\n.{css-prefix}popup-section-item\n &.{css-prefix}section-allday\n border: none\n padding: 0 0 0 8px\n cursor: pointer\n &.{css-prefix}section-location\n display: block\n\n input\n width: 400px\n\n.{css-prefix}section-allday .{css-prefix}icon.{css-prefix}ic-checkbox\n margin: 0\n\n.{css-prefix}popup-section-item.{css-prefix}section-allday .{css-prefix}content\n padding-left: 4px\n\n.{css-prefix}section-state\n width: 109px\n\n.{css-prefix}section-state .{css-prefix}content\n width: 58px\n text-overflow: ellipsis\n overflow: hidden\n\n.{css-prefix}popup-section-item\n height: 32px\n padding: 0 9px 0 12px\n border: 1px solid #d5d5d5\n display: inline-block\n font-size: 0\n border-radius: 2px\n\n.{css-prefix}popup-section-item:hover\n border-color: #bbbbbb\n\n.{css-prefix}popup-section-item:focus\n border-color: #bbbbbb\n\n.{css-prefix}popup-section-item .{css-prefix}icon\n position: relative\n\n.{css-prefix}icon.{css-prefix}ic-title\n top: 2px\n\n.{css-prefix}popup-section-item .{css-prefix}content\n text-align: left\n display: inline-block\n font-size: 12px\n vertical-align: middle\n position: relative\n padding-left: 8px\n\n.{css-prefix}section-calendar .{css-prefix}dropdown-button .{css-prefix}content\n width: 125px\n text-overflow: ellipsis\n overflow: hidden\n top: -1px\n\n.{css-prefix}popup-section-item input\n border: none\n height: 30px\n outline: none\n display: inline-block\n\n.{css-prefix}popup-section-item input::placeholder\n color: #bbbbbb\n font-weight: 300\n\n.{css-prefix}dropdown\n position: relative\n\n.{css-prefix}dropdown:hover .{css-prefix}dropdown-button\n border: 1px solid #bbbbbb\n\n.{css-prefix}dropdown-button.{css-prefix}popup-section-item\n height: 32px\n font-size: 0\n top: -1px\n\n.{css-prefix}dropdown-arrow\n background: url('image/ic-arrow-solid-bottom.png') no-repeat\n\n\n.dropdown.open\n.{css-prefix}open\n .{css-prefix}dropdown-arrow\n background: url('image/ic-arrow-solid-top.png') no-repeat\n\n.{css-prefix}dropdown-menu\n position: absolute\n top: 31px\n padding: 4px 0\n background-color: #ffffff\n border: 1px solid #d5d5d5\n border-top: none\n border-radius: 0 0 2px 2px\n width: 100%\n\n.{css-prefix}dropdown:hover .{css-prefix}dropdown-menu\n border: 1px solid #bbbbbb\n border-top: none\n\n.{css-prefix}dropdown-menu\n display: none\n\n.{css-prefix}open .{css-prefix}dropdown-menu\n display: block\n\n.{css-prefix}dropdown-menu-item\n height: 30px\n border: none\n cursor: pointer\n\n.{css-prefix}section-calendar .{css-prefix}dropdown-menu-item\n width: 100%;\n\n.{css-prefix}section-state .{css-prefix}dropdown-menu-item\n width: 100%;\n\n.{css-prefix}dropdown-menu-item:hover\n background-color: rgba(81, 92, 230, 0.05)\n\n.{css-prefix}dropdown-menu-item .{css-prefix}content\n line-height: 30px\n\n.{css-prefix}button.{css-prefix}popup-close\n position: absolute\n top: 10px\n right: 10px\n background-color: #ffffff\n padding: 2px\n border: none\n\n.{css-prefix}section-button-save\n height: 36px\n\n.{css-prefix}popup-save\n float: right\n\n.{css-prefix}popup-arrow-border, .{css-prefix}popup-arrow-fill\n position: absolute\n\n.{css-prefix}arrow-top .{css-prefix}popup-arrow-border\n border-top: none\n border-right: 8px solid transparent\n border-bottom: 8px solid #d5d5d5\n border-left: 8px solid transparent\n left: calc(50% - 8px)\n top: -7px\n\n.{css-prefix}arrow-right .{css-prefix}popup-arrow-border\n border-top: 8px solid transparent\n border-right: none\n border-bottom: 8px solid transparent\n border-left: 8px solid #d5d5d5\n top: calc(50% - 8px)\n right: -7px\n\n.{css-prefix}arrow-bottom .{css-prefix}popup-arrow-border\n border-top: 8px solid #d5d5d5\n border-right: 8px solid transparent\n border-bottom: none\n border-left: 8px solid transparent\n left: calc(50% - 8px)\n bottom: -7px\n\n.{css-prefix}arrow-left .{css-prefix}popup-arrow-border\n border-top: 8px solid transparent\n border-right: 8px solid #d5d5d5\n border-bottom: 8px solid transparent\n border-left: none\n top: calc(50% - 8px)\n left: -7px\n\n.{css-prefix}arrow-top .{css-prefix}popup-arrow-fill\n border-top: none\n border-right: 7px solid transparent\n border-bottom: 7px solid #ffffff\n border-left: 7px solid transparent\n left: -7px\n top: 1px\n\n.{css-prefix}arrow-right .{css-prefix}popup-arrow-fill\n border-top: 7px solid transparent\n border-right: none\n border-bottom: 7px solid transparent\n border-left: 7px solid #ffffff\n top: -7px\n right: 1px\n\n.{css-prefix}arrow-bottom .{css-prefix}popup-arrow-fill\n border-top: 7px solid #ffffff\n border-right: 7px solid transparent\n border-bottom: none\n border-left: 7px solid transparent\n left: -7px\n bottom: 1px\n\n.{css-prefix}arrow-left .{css-prefix}popup-arrow-fill\n border-top: 7px solid transparent\n border-right: 7px solid #ffffff\n border-bottom: 7px solid transparent\n border-left: none\n top: -7px\n left: 1px\n\n.{css-prefix}button\n background: #ffffff\n border: 1px solid #d5d5d5\n border-radius: 2px\n text-align: center\n outline: none\n font-size: 12px\n cursor: pointer\n color: #333\n\n &:hover\n border-color: #bbbbbb\n color: #333333\n\n\n.{css-prefix}button:active\n background: #f9f9f9\n color: #333333\n\n\n.{css-prefix}button .round\n border-radius: 25px\n\n.{css-prefix}confirm\n width: 96px\n height: 36px\n border-radius: 40px\n background-color: #ff6618\n font-size: 12px\n font-weight: bold\n color: #ffffff\n border: none\n\n.{css-prefix}confirm:hover\n background-color: #e55b15\n color: #ffffff\n\n.{css-prefix}confirm:active\n background-color: #d95614\n color: #ffffff\n\n/* icon styles */\n.{css-prefix}icon.{css-prefix}right\n float: right\n top: 1px\n\n.{css-prefix}icon .{css-prefix}none\n display: none\n\n.{css-prefix}icon.{css-prefix}calendar-dot\n border-radius: 8px;\n width: 12px;\n height: 12px;\n margin: 1px;\n\ninput[type='checkbox'].{css-prefix}checkbox-square\n display: none\n\ninput[type='checkbox'].{css-prefix}checkbox-square + span\n display: inline-block\n cursor: pointer\n line-height: 14px\n margin-right: 8px\n width: 14px\n height: 14px\n background: url('image/ic-checkbox-normal.png') no-repeat\n vertical-align: middle\n\ninput[type='checkbox'].{css-prefix}checkbox-square:checked + span {\n background: url('image/ic-checkbox-checked.png') no-repeat;\n}\n\ninput[type='checkbox'].{css-prefix}checkbox-round\n display: none\n\ninput[type='checkbox'].{css-prefix}checkbox-round + span\n display: inline-block\n cursor: pointer\n width: 14px\n height: 14px\n line-height: 14px\n vertical-align: middle\n margin-right: 8px\n border-radius: 8px\n border: solid 2px\n background: transparent\n\n.{css-prefix}popup-top-line\n position: absolute\n border-radius: 2px 2px 0 0\n width: 100%\n height: 4px\n border: none\n top: 0\n\n.{css-prefix}popup-detail .{css-prefix}popup-container\n width: 301px\n min-width: 301px\n padding-bottom: 0\n\n.{css-prefix}popup-detail .{css-prefix}icon\n width: 12px\n height: 12px\n background-size: 12px\n position: relative\n\n.{css-prefix}popup-detail .{css-prefix}icon\n margin-right: 8px\n\n.{css-prefix}popup-detail .{css-prefix}icon.{css-prefix}ic-location-b\n top: -2px\n\n.{css-prefix}popup-detail .{css-prefix}icon.{css-prefix}ic-user-b\n top: -2px\n\n.{css-prefix}popup-detail .{css-prefix}icon.{css-prefix}ic-state-b\n top: -1px\n\n.{css-prefix}popup-detail .{css-prefix}icon.{css-prefix}calendar-dot\n width: 10px\n height: 10px\n margin-right: 8px\n top: -1px\n\n.{css-prefix}popup-detail .{css-prefix}content\n line-height: 24px\n height: 24px\n font-size: 12px\n line-height: 2\n\n.{css-prefix}popup-detail .{css-prefix}section-header\n margin-bottom: 6px\n\n.{css-prefix}popup-detail .{css-prefix}popup-detail-item-separate\n margin-top: 4px\n\n.{css-prefix}popup-detail .{css-prefix}popup-detail-item-indent\n text-indent: -20px\n padding-left: 20px\n\n.{css-prefix}popup-detail .{css-prefix}schedule-title\n font-size: 15px\n font-weight: bold\n line-height: 1.6\n word-break: break-all\n\n.{css-prefix}popup-detail .{css-prefix}schedule-private\n display: none\n width: 16px\n height: 16px\n background: url('image/ic-lock.png') no-repeat 16px\n\n.{css-prefix}popup-detail .{css-prefix}schedule-private .{css-prefix}ic-private\n display: block\n\n.{css-prefix}popup-detail .{css-prefix}section-detail\n margin-bottom: 16px\n\n.{css-prefix}popup-detail .{css-prefix}section-button\n border-top: 1px solid #e5e5e5\n font-size: 0\n\n.{css-prefix}section-button .{css-prefix}icon\n margin-right: 4px\n top: -3px\n\n.{css-prefix}section-button .{css-prefix}content\n position: relative\n top: 2px\n\n.{css-prefix}popup-edit, .{css-prefix}popup-delete\n display: inline-block\n padding: 7px 9px 11px 9px\n width: calc(50% - 1px)\n outline: none\n background: none\n border: none\n cursor: pointer\n\n.{css-prefix}popup-vertical-line\n background: #e5e5e5\n width: 1px\n height: 14px\n vertical-align: middle\n display: inline-block\n margin-top: -7px\n\n/* override tui-date-picker */\n.tui-datepicker\n left: -12px\n z-index: 1\n border-color: #d5d5d5\n","/* icon styles */\n.{css-prefix}icon {\n width: 14px;\n height: 14px;\n display: inline-block;\n vertical-align: middle;\n}\n\n.{css-prefix}icon.{css-prefix}ic-title\n background: url('image/ic-subject.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-location\n background: url('image/ic-location.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-date\n background: url('image/ic-date.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-state\n background: url('image/ic-state.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-private\n background: url('image/ic-lock.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-public\n background: url('image/ic-unlock.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-close\n background: url('image/ic-close.png') no-repeat\n\n\n.{css-prefix}ic-location-b\n background: url('./image/ic-location-b.png')\n\n.{css-prefix}ic-state-b\n background: url('./image/ic-state-b.png')\n\n.{css-prefix}icon.{css-prefix}ic-user-b\n background-image: url('./image/ic-user-b.png')\n\n.{css-prefix}icon.{css-prefix}ic-edit\n background-image: url('./image/ic-edit.png')\n\n.{css-prefix}icon.{css-prefix}ic-delete\n background-image: url('./image/ic-delete.png')\n\n.{css-prefix}icon.{css-prefix}ic-arrow-solid-top\n background: url('image/ic-arrow-solid-top.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-milestone\n background: url('image/ic-milestone.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-arrow-left\n background: url('image/ic-arrow-left.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-arrow-right\n background: url('image/ic-arrow-right.png') no-repeat\n\n.{css-prefix}ic-repeat-b\n background: url('./image/ic-repeat-b.png')"]} \ No newline at end of file +{"version":3,"sources":["tui-calendar.min.css","src/css/common.styl","main.styl","src/css/variables.styl","src/css/weekday.styl","src/css/week/layout.styl","src/css/week/dayname.styl","src/css/week/daygrid.styl","src/css/week/time.styl","src/css/month.styl","src/css/vlayout.styl","src/css/popup.styl","src/css/icons.styl"],"names":[],"mappings":"AAAA;;;;;EAKE,CCJE,0BACI,WAAQ,CACR,iBAAU,CACV,qBCAR,CDEQ,4BACI,qBCAZ,CDGI,4BACI,WCDR,CDGI,4BACI,iBCDR,CDGI,8BACI,iBCDR,CDGI,0BACI,sBCDR,CDGI,kCACI,iBCDR,CDGI,yBE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VqlCJ,CUnlCA,6DACI,4TVqlCJ,CUnlCA,uDACI,gRVqlCJ,CUnlCA,wDACI,gQVqlCJ,CUnlCA,yDACI,wQVqlCJ,CUnlCA,+BACI,seVqlCJ","file":"tui-calendar.min.css","sourcesContent":["/*!\n * TOAST UI Calendar\n * @version 1.12.11 | Wed Feb 05 2020\n * @author NHN FE Development Lab \n * @license MIT\n */\n.tui-full-calendar-layout {\n height: 100%;\n position: relative;\n box-sizing: border-box;\n}\n.tui-full-calendar-layout * {\n box-sizing: border-box;\n}\n.tui-full-calendar-dragging {\n cursor: move;\n}\n.tui-full-calendar-resizing {\n cursor: row-resize;\n}\n.tui-full-calendar-resizing-x {\n cursor: col-resize;\n}\n.tui-full-calendar-hidden {\n display: none !important;\n}\n.tui-full-calendar-invisible span {\n visibility: hidden;\n}\n.tui-full-calendar-clear {\n zoom: 1;\n}\n.tui-full-calendar-clear:after {\n content: '';\n display: block;\n clear: both;\n}\n.tui-full-calendar-scroll-y {\n overflow-y: scroll;\n}\n.tui-full-calendar-dot {\n display: inline-block;\n position: relative;\n top: -1px;\n content: '';\n width: 7px;\n height: 7px;\n border-radius: 50%;\n}\n.tui-full-calendar-holiday {\n color: #f00;\n}\n.tui-full-calendar-today {\n background: rgba(218,229,249,0.3);\n}\n.handle-x {\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAACVBMVEX///////////+OSuX+AAAAA3RSTlMrQJG5H4EIAAAAEUlEQVR4AWNgYoRABhjEFAEAArQAIcHQcPsAAAAASUVORK5CYII=);\n}\n.handle-y {\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAICAMAAADp7a43AAAACVBMVEX///////////+OSuX+AAAAA3RSTlMrQJG5H4EIAAAAEUlEQVR4AWNgYmRiZABB/CwAAtgAIUTUNkMAAAAASUVORK5CYII=);\n}\n@media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-devicepixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx) {\n .handle-x {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAICAMAAADHqI+lAAAACVBMVEX///////////+OSuX+AAAAA3RSTlMZK5EY+QKaAAAAGUlEQVR4AWNgYmJAwegCIMDIiIwxBKhhBgAcSABh8gN42gAAAABJRU5ErkJggg==);\n background-size: 8px 4px;\n }\n .handle-y {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAQCAMAAAAcVM5PAAAACVBMVEX///////////+OSuX+AAAAA3RSTlMEK5EMBzK5AAAAGElEQVR4AWNgYmIAYxgDBBgZQRjOoKcaABzQAGGjsIM/AAAAAElFTkSuQmCC);\n background-size: 4px 8px;\n }\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-weekday-grid {\n overflow-y: hidden;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-weekday-schedules {\n overflow-y: visible;\n height: 0;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-weekday-schedule {\n margin: 0 10px;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-today {\n background: none;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-today .tui-full-calendar-weekday-grid-date-decorator {\n display: inline-block;\n width: 27px;\n height: 27px;\n line-height: 27px;\n text-align: center;\n background: #135de6;\n border-radius: 50%;\n color: #fff;\n font-weight: bold;\n margin-left: 2px;\n}\n.tui-full-calendar-weekday-container,\n.tui-full-calendar-weekday-grid,\n.tui-full-calendar-weekday-grid-line {\n height: 100%;\n min-height: inherit;\n}\n.tui-full-calendar-weekday-grid {\n position: absolute;\n width: 100%;\n overflow-y: scroll;\n}\n.tui-full-calendar-weekday-border {\n border-top: 1px solid #ddd;\n}\n.tui-full-calendar-weekday-container {\n position: relative;\n}\n.tui-full-calendar-weekday-container>div {\n height: 100%;\n}\n.tui-full-calendar-weekday-grid-line {\n position: absolute;\n padding: 3px;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-footer {\n position: absolute;\n bottom: 4px;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-date {\n display: inline-block;\n width: 27px;\n height: 27px;\n line-height: 27px;\n text-align: center;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-date-title {\n line-height: 27px;\n margin-right: 5px;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-more-schedules {\n float: right;\n display: inline-block;\n height: 27px;\n line-height: 27px;\n padding: 0 5px;\n text-align: center;\n font-size: 11px;\n font-weight: bold;\n color: #aaa;\n}\n.tui-full-calendar-weekday-creation {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n overflow-y: scroll;\n}\n.tui-full-calendar-weekday-schedules {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n font-size: 12px;\n overflow-y: scroll;\n}\n.tui-full-calendar-weekday-schedules-height-span {\n width: 1px;\n margin-left: -1px;\n}\n.tui-full-calendar-weekday-schedule-block {\n position: absolute;\n}\n.tui-full-calendar-weekday-schedule-block-dragging-dim {\n opacity: 0.3;\n}\n.tui-full-calendar-weekday-schedule {\n position: relative;\n margin: 0 10px 0 1px;\n cursor: pointer;\n border-left-style: solid;\n border-left-width: 3px;\n}\n.tui-full-calendar-weekday-schedule.tui-full-calendar-weekday-schedule-time {\n border-left-width: 0;\n}\n.tui-full-calendar-weekday-schedule.tui-full-calendar-weekday-schedule-time .tui-full-calendar-weekday-schedule-title {\n padding-left: 9px;\n}\n.tui-full-calendar-weekday-schedule-bullet {\n position: absolute;\n padding: 0;\n width: 6px;\n height: 6px;\n top: 6px;\n left: 0;\n border-radius: 50%;\n}\n.tui-full-calendar-weekday-schedule-bullet-focused {\n left: 10px;\n background: #fff;\n}\n.tui-full-calendar-weekday-schedule-title {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding-left: 3px;\n font-weight: bold;\n}\n.tui-full-calendar-weekday-schedule-title-focused {\n padding-left: 16px;\n}\n.tui-full-calendar-weekday-schedule-cover {\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0,0,0,0.2);\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n}\n.tui-full-calendar-weekday-exceed-left .tui-full-calendar-weekday-schedule {\n margin-left: 0;\n border-left-width: 0;\n}\n.tui-full-calendar-weekday-exceed-right .tui-full-calendar-weekday-schedule {\n margin-right: 0;\n}\n.tui-full-calendar-weekday-exceed-right .tui-full-calendar-weekday-resize-handle {\n display: none;\n}\n.tui-full-calendar-weekday-exceed-in-month {\n cursor: pointer;\n}\n.tui-full-calendar-weekday-exceed-in-month:hover {\n background-color: #f0f1f5;\n}\n.tui-full-calendar-weekday-exceed-in-week,\n.tui-full-calendar-weekday-collapse-btn {\n position: absolute;\n bottom: 5px;\n margin-right: 5px;\n font-size: 12px;\n line-height: 14px;\n cursor: pointer;\n padding: 1px 5px;\n background-color: #fff;\n border: 1px solid #ddd;\n color: #000;\n}\n.tui-full-calendar-weekday-resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n width: 6px;\n background-position: 3px center;\n cursor: col-resize;\n line-height: 18px;\n}\n.tui-full-calendar-weekday-filled {\n background-color: #e8e8e8 !important;\n}\n.tui-full-calendar-left {\n height: 100%;\n float: left;\n box-sizing: border-box;\n display: table;\n}\n.tui-full-calendar-left-content {\n display: table-cell;\n vertical-align: middle;\n text-align: right;\n font-size: 11px;\n}\n.tui-full-calendar-right {\n height: 100%;\n overflow-y: scroll;\n position: relative;\n}\n.tui-full-calendar-week-container {\n width: 100%;\n height: inherit;\n display: inline-block;\n font-size: 10px;\n min-height: 600px;\n}\n.tui-full-calendar-week-container .tui-full-calendar-today {\n background: none;\n}\n.tui-full-calendar-dayname {\n position: absolute;\n margin-left: -1px;\n height: 100%;\n overflow: hidden;\n}\n.tui-full-calendar-dayname.tui-full-calendar-today {\n font-weight: bold;\n}\n.tui-full-calendar-dayname-container {\n overflow-y: scroll;\n}\n.tui-full-calendar-dayname-leftmargin {\n position: relative;\n height: 100%;\n}\n.tui-full-calendar-dayname-date {\n font-size: 26px;\n}\n.tui-full-calendar-dayname-name {\n font-weight: bold;\n font-size: 12px;\n}\n.tui-full-calendar-daygrid-layout {\n height: 100%;\n}\n.tui-full-calendar-daygrid-layout .tui-full-calendar-right {\n overflow-y: hidden;\n}\n.tui-full-calendar-daygrid-guide-creation-block {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n}\n.tui-full-calendar-timegrid-container {\n height: 100%;\n position: relative;\n overflow: hidden;\n overflow-y: scroll;\n}\n.tui-full-calendar-timegrid-container-split {\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n.tui-full-calendar-timegrid-left {\n position: absolute;\n}\n.tui-full-calendar-timegrid-hour {\n position: relative;\n color: #555;\n box-sizing: border-box;\n}\n.tui-full-calendar-timegrid-hour:first-child span {\n display: none;\n}\n.tui-full-calendar-timegrid-hour:last-child {\n border-bottom: none;\n}\n.tui-full-calendar-timegrid-hour span {\n position: absolute;\n top: -11px;\n left: 0;\n right: 5px;\n text-align: right;\n line-height: 25px;\n}\n.tui-full-calendar-timegrid-right {\n position: relative;\n}\n.tui-full-calendar-timegrid-gridline {\n border-bottom: 1px solid #eee;\n box-sizing: border-box;\n}\n.tui-full-calendar-timegrid-gridline:last-child {\n border-bottom: none;\n}\n.tui-full-calendar-timegrid-schedules {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n cursor: pointer;\n}\n.tui-full-calendar-timegrid-hourmarker {\n position: absolute;\n width: 100%;\n display: table;\n}\n.tui-full-calendar-timegrid-hourmarker-line-left {\n position: absolute;\n min-height: 1px;\n left: 0;\n}\n.tui-full-calendar-timegrid-hourmarker-line-today {\n position: absolute;\n min-height: 1px;\n}\n.tui-full-calendar-timegrid-hourmarker-line-right {\n position: absolute;\n min-height: 1px;\n right: 0;\n}\n.tui-full-calendar-timegrid-hourmarker-time {\n padding-right: 5px;\n line-height: 12px;\n text-align: right;\n display: table-cell;\n vertical-align: bottom;\n}\n.tui-full-calendar-timegrid-todaymarker {\n position: absolute;\n text-indent: -9999px;\n width: 9px;\n height: 9px;\n background-color: #135de6;\n margin: -4px 0 0 -5px;\n border-radius: 50%;\n}\n.tui-full-calendar-timegrid-sticky-container {\n position: absolute;\n top: 0;\n}\n.tui-full-calendar-timegrid-timezone-label-container {\n position: absolute;\n}\n.tui-full-calendar-timegrid-timezone-label-cell {\n display: table;\n}\n.tui-full-calendar-timegrid-timezone-label {\n display: table-cell;\n vertical-align: middle;\n padding-right: 5px;\n text-align: right;\n}\n.tui-full-calendar-timegrid-timezone-close-btn {\n cursor: pointer;\n position: absolute;\n text-align: center;\n background-color: #fff;\n}\n.tui-full-calendar-timegrid-timezone-close-btn .tui-full-calendar-icon {\n width: 5px;\n height: 10px;\n}\n.tui-full-calendar-time-date {\n position: absolute;\n height: 100%;\n margin-left: -1px;\n box-sizing: content-box;\n}\n.tui-full-calendar-time-date:last-child {\n border-right: none;\n margin: 0;\n}\n.tui-full-calendar-time-date:last-child .tui-full-calendar-time-schedule,\n.tui-full-calendar-time-date:last-child .tui-full-calendar-time-guide-creation {\n left: 0px;\n}\n.tui-full-calendar-time-date-schedule-block-wrap {\n position: relative;\n height: 100%;\n}\n.tui-full-calendar-time-date-schedule-block {\n position: absolute;\n right: 0px;\n}\n.tui-full-calendar-time-date-schedule-block-pending {\n opacity: 0.7;\n}\n.tui-full-calendar-time-date-schedule-block-dragging-dim {\n opacity: 0.3;\n}\n.tui-full-calendar-time-date-schedule-block-focused {\n box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);\n}\n.tui-full-calendar-time-date-schedule-block-cover {\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0,0,0,0.2);\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n}\n.tui-full-calendar-time-schedule {\n position: relative;\n left: 1px;\n height: 100%;\n overflow: hidden;\n font-size: 12px;\n font-weight: bold;\n}\n.tui-full-calendar-time-schedule-content {\n overflow: hidden;\n border-left-width: 3px;\n border-left-style: solid;\n padding: 1px 0 0 3px;\n}\n.tui-full-calendar-time-schedule-content-travel-time {\n font-weight: normal;\n font-size: 11px;\n}\n.tui-full-calendar-time-resize-handle {\n position: absolute;\n right: 0px;\n bottom: 0px;\n left: 0px;\n height: 5px;\n text-align: center;\n color: #fff;\n cursor: row-resize;\n background-position: center top;\n}\n.tui-full-calendar-time-guide-creation {\n position: absolute;\n right: 10px;\n left: 1px;\n padding: 3px;\n}\n.tui-full-calendar-time-guide-move .tui-full-calendar-time-schedule,\n.tui-full-calendar-time-guide-resize .tui-full-calendar-time-schedule,\n.tui-full-calendar-time-guide-move .tui-full-calendar-time-resize-handle,\n.tui-full-calendar-time-guide-resize .tui-full-calendar-time-resize-handle {\n opacity: 0.8;\n z-index: 97;\n}\n.tui-full-calendar-time-guide-creation-label {\n cursor: default;\n}\n.tui-full-calendar-time-guide-bottom {\n position: absolute;\n bottom: 3px;\n}\n.tui-full-calendar-month {\n height: 100%;\n min-height: 600px;\n}\n.tui-full-calendar-month-dayname {\n width: 100%;\n position: absolute;\n font-size: 13px;\n}\n.tui-full-calendar-month-dayname-item {\n height: 100%;\n font-weight: bold;\n}\n.tui-full-calendar-month-week-item {\n position: relative;\n}\n.tui-full-calendar-month-week-item>div {\n height: 100%;\n}\n.tui-full-calendar-month-more {\n height: inherit;\n min-width: 280px;\n min-height: 150px;\n}\n.tui-full-calendar-month-more-title {\n position: relative;\n}\n.tui-full-calendar-month-more-title-day {\n font-size: 23px;\n color: #333;\n}\n.tui-full-calendar-month-more-title-day-label {\n font-size: 12px;\n color: #333;\n}\n.tui-full-calendar-month-more-close {\n position: absolute;\n right: 0;\n outline: 0;\n background: none;\n border: 0;\n font-size: 14px;\n line-height: 28px;\n padding: 0 7px;\n cursor: pointer;\n}\n.tui-full-calendar-month-more-list {\n overflow-y: auto;\n}\n.tui-full-calendar-month-more-schedule {\n cursor: pointer;\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-size: 12px;\n}\n.tui-full-calendar-month-guide-block {\n position: absolute;\n}\n.tui-full-calendar-month-weekday-schedule {\n margin-top: 2px;\n}\n.tui-full-calendar-month-creation-guide {\n top: 0;\n bottom: -1px;\n left: -1px;\n right: 0;\n position: absolute;\n z-index: 20;\n}\n.tui-full-calendar-month-guide-focused {\n box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);\n}\n.tui-full-calendar-month-guide {\n position: relative;\n padding-left: 3px;\n line-height: 18px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.tui-full-calendar-month-guide-cover {\n width: 100%;\n position: absolute;\n top: -50%;\n left: -50%;\n background-color: rgba(0,0,0,0.2);\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n}\n.tui-full-calendar-month-exceed-left .tui-full-calendar-month-guide {\n margin-left: 0px;\n}\n.tui-full-calendar-month-exceed-right .tui-full-calendar-month-guide {\n margin-right: 0px;\n}\n.tui-full-calendar-month-exceed-right .tui-full-calendar-month-guide-handle {\n display: none;\n}\n.tui-full-calendar-month-guide-handle {\n position: absolute;\n top: 0;\n right: 3px;\n width: 6px;\n background-position: 3px center;\n cursor: col-resize;\n}\n.tui-full-calendar-vlayout-container {\n position: relative;\n}\n.tui-full-calendar-splitter {\n clear: left;\n cursor: row-resize;\n}\n.tui-full-calendar-splitter:hover {\n border-color: #999;\n}\n.tui-full-calendar-splitter-focused {\n background-color: #ddd;\n border: none;\n}\n.tui-full-calendar-splitter-guide {\n position: absolute;\n width: 100%;\n height: 3px;\n border: none;\n background-color: #e8e8e8;\n}\n.tui-full-calendar-popup {\n position: absolute;\n font-weight: 2.5;\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n clear: both;\n}\n.tui-full-calendar-popup-container {\n min-width: 474px;\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n background-color: #fff;\n border: solid 1px #d5d5d5;\n padding: 17px;\n border-radius: 2px;\n}\n.tui-full-calendar-popup-section {\n font-size: 0;\n min-height: 40px;\n}\n.tui-full-calendar-section-calendar {\n width: 176px;\n}\n.tui-full-calendar-section-calendar.tui-full-calendar-hide {\n height: 21px;\n visibility: hidden;\n}\n.tui-full-calendar-section-title {\n width: calc(100% - 36px);\n padding-right: 4px;\n}\n.tui-full-calendar-section-title input {\n width: 365px;\n}\n.tui-full-calendar-button.tui-full-calendar-section-private {\n height: 32px;\n padding: 8px;\n font-size: 0;\n margin-left: 4px;\n}\n.tui-full-calendar-section-private.tui-full-calendar-public .tui-full-calendar-ic-private {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAKdJREFUKBVjYCATMKLri46Olvn9+3fX////HUByjIyMB1hZWcuWLl36BFktikaQpl+/fl0EKhBCVgRkv2NjY9NH1syErABkE1TTdqBCWRAG8reDxKBycOUoGmHOA2pIA5kOwiA2SDVMDq4TmREaGvofhJHFcLHhfgwLC9sKNNULl0KQODCgtq1atcobxIY7lZAmkGJkNXCNIAlSwIjSCApqIgJnK0wNALoOPwSpOcq0AAAAAElFTkSuQmCC) no-repeat;\n}\n.tui-full-calendar-section-start-date,\n.tui-full-calendar-section-end-date {\n width: 176px;\n}\n.tui-full-calendar-section-start-date input,\n.tui-full-calendar-section-end-date input {\n width: 139px;\n}\n.tui-full-calendar-section-start-date:hover .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-end-date:hover .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-start-date:focus .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-end-date:focus .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-start-date:hover .tui-datepicker,\n.tui-full-calendar-section-end-date:hover .tui-datepicker,\n.tui-full-calendar-section-start-date:focus .tui-datepicker,\n.tui-full-calendar-section-end-date:focus .tui-datepicker {\n border-color: #bbb;\n}\n.tui-full-calendar-popup-section-item:focus {\n border-color: #bbb;\n}\n.tui-full-calendar-section-date-dash {\n font-size: 12px;\n color: #d5d5d5;\n height: 32px;\n padding: 0 4px;\n vertical-align: middle;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-allday {\n border: none;\n padding: 0 0 0 8px;\n cursor: pointer;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-location {\n display: block;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-location input {\n width: 400px;\n}\n.tui-full-calendar-section-allday .tui-full-calendar-icon.tui-full-calendar-ic-checkbox {\n margin: 0;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-allday .tui-full-calendar-content {\n padding-left: 4px;\n}\n.tui-full-calendar-section-state {\n width: 109px;\n}\n.tui-full-calendar-section-state .tui-full-calendar-content {\n width: 58px;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.tui-full-calendar-popup-section-item {\n height: 32px;\n padding: 0 9px 0 12px;\n border: 1px solid #d5d5d5;\n display: inline-block;\n font-size: 0;\n border-radius: 2px;\n}\n.tui-full-calendar-popup-section-item:hover {\n border-color: #bbb;\n}\n.tui-full-calendar-popup-section-item:focus {\n border-color: #bbb;\n}\n.tui-full-calendar-popup-section-item .tui-full-calendar-icon {\n position: relative;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-title {\n top: 2px;\n}\n.tui-full-calendar-popup-section-item .tui-full-calendar-content {\n text-align: left;\n display: inline-block;\n font-size: 12px;\n vertical-align: middle;\n position: relative;\n padding-left: 8px;\n}\n.tui-full-calendar-section-calendar .tui-full-calendar-dropdown-button .tui-full-calendar-content {\n width: 125px;\n text-overflow: ellipsis;\n overflow: hidden;\n top: -1px;\n}\n.tui-full-calendar-popup-section-item input {\n border: none;\n height: 30px;\n outline: none;\n display: inline-block;\n}\n.tui-full-calendar-popup-section-item input::placeholder {\n color: #bbb;\n font-weight: 300;\n}\n.tui-full-calendar-dropdown {\n position: relative;\n}\n.tui-full-calendar-dropdown:hover .tui-full-calendar-dropdown-button {\n border: 1px solid #bbb;\n}\n.tui-full-calendar-dropdown-button.tui-full-calendar-popup-section-item {\n height: 32px;\n font-size: 0;\n top: -1px;\n}\n.tui-full-calendar-dropdown-arrow {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAHlJREFUKBVjYBgFOEOAEVkmPDxc89+/f6eAYjzI4kD2FyYmJrOVK1deh4kzwRggGiQBVJCELAZig8SQNYHEmEEEMrh69eo1HR0dfqCYJUickZGxf9WqVf3IakBsFBthklpaWmVA9mEQhrJhUoTp0NBQCRAmrHL4qgAAuu4cWZOZIGsAAAAASUVORK5CYII=) no-repeat;\n}\n.dropdown.open .tui-full-calendar-dropdown-arrow,\n.tui-full-calendar-open .tui-full-calendar-dropdown-arrow {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAIFJREFUKBVjYBj+gBmXF2NiYiTV1dV5rl279gWbGiZsgg0NDSw/f/5cCZRbBWJjU4PVRjExsR6g4nAgln/z5g3v1atXd6JrxtAYHh4e+v///z4khZa6urrXgJqvIYkxMCJzgJo0//37dwooxoMsDmR/YWJiMlu5cuV1NPFRLrYQAADMVCaUtbG7XwAAAABJRU5ErkJggg==) no-repeat;\n}\n.tui-full-calendar-dropdown-menu {\n position: absolute;\n top: 31px;\n padding: 4px 0;\n background-color: #fff;\n border: 1px solid #d5d5d5;\n border-top: none;\n border-radius: 0 0 2px 2px;\n width: 100%;\n}\n.tui-full-calendar-dropdown:hover .tui-full-calendar-dropdown-menu {\n border: 1px solid #bbb;\n border-top: none;\n}\n.tui-full-calendar-dropdown-menu {\n display: none;\n}\n.tui-full-calendar-open .tui-full-calendar-dropdown-menu {\n display: block;\n}\n.tui-full-calendar-dropdown-menu-item {\n height: 30px;\n border: none;\n cursor: pointer;\n}\n.tui-full-calendar-section-calendar .tui-full-calendar-dropdown-menu-item {\n width: 100%;\n}\n.tui-full-calendar-section-state .tui-full-calendar-dropdown-menu-item {\n width: 100%;\n}\n.tui-full-calendar-dropdown-menu-item:hover {\n background-color: rgba(81,92,230,0.05);\n}\n.tui-full-calendar-dropdown-menu-item .tui-full-calendar-content {\n line-height: 30px;\n}\n.tui-full-calendar-button.tui-full-calendar-popup-close {\n position: absolute;\n top: 10px;\n right: 10px;\n background-color: #fff;\n padding: 2px;\n border: none;\n}\n.tui-full-calendar-section-button-save {\n height: 36px;\n}\n.tui-full-calendar-popup-save {\n float: right;\n}\n.tui-full-calendar-popup-arrow-border,\n.tui-full-calendar-popup-arrow-fill {\n position: absolute;\n}\n.tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-border {\n border-top: none;\n border-right: 8px solid transparent;\n border-bottom: 8px solid #d5d5d5;\n border-left: 8px solid transparent;\n left: calc(50% - 8px);\n top: -7px;\n}\n.tui-full-calendar-arrow-right .tui-full-calendar-popup-arrow-border {\n border-top: 8px solid transparent;\n border-right: none;\n border-bottom: 8px solid transparent;\n border-left: 8px solid #d5d5d5;\n top: calc(50% - 8px);\n right: -7px;\n}\n.tui-full-calendar-arrow-bottom .tui-full-calendar-popup-arrow-border {\n border-top: 8px solid #d5d5d5;\n border-right: 8px solid transparent;\n border-bottom: none;\n border-left: 8px solid transparent;\n left: calc(50% - 8px);\n bottom: -7px;\n}\n.tui-full-calendar-arrow-left .tui-full-calendar-popup-arrow-border {\n border-top: 8px solid transparent;\n border-right: 8px solid #d5d5d5;\n border-bottom: 8px solid transparent;\n border-left: none;\n top: calc(50% - 8px);\n left: -7px;\n}\n.tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-fill {\n border-top: none;\n border-right: 7px solid transparent;\n border-bottom: 7px solid #fff;\n border-left: 7px solid transparent;\n left: -7px;\n top: 1px;\n}\n.tui-full-calendar-arrow-right .tui-full-calendar-popup-arrow-fill {\n border-top: 7px solid transparent;\n border-right: none;\n border-bottom: 7px solid transparent;\n border-left: 7px solid #fff;\n top: -7px;\n right: 1px;\n}\n.tui-full-calendar-arrow-bottom .tui-full-calendar-popup-arrow-fill {\n border-top: 7px solid #fff;\n border-right: 7px solid transparent;\n border-bottom: none;\n border-left: 7px solid transparent;\n left: -7px;\n bottom: 1px;\n}\n.tui-full-calendar-arrow-left .tui-full-calendar-popup-arrow-fill {\n border-top: 7px solid transparent;\n border-right: 7px solid #fff;\n border-bottom: 7px solid transparent;\n border-left: none;\n top: -7px;\n left: 1px;\n}\n.tui-full-calendar-button {\n background: #fff;\n border: 1px solid #d5d5d5;\n border-radius: 2px;\n text-align: center;\n outline: none;\n font-size: 12px;\n cursor: pointer;\n color: #333;\n}\n.tui-full-calendar-button:hover {\n border-color: #bbb;\n color: #333;\n}\n.tui-full-calendar-button:active {\n background: #f9f9f9;\n color: #333;\n}\n.tui-full-calendar-button .round {\n border-radius: 25px;\n}\n.tui-full-calendar-confirm {\n width: 96px;\n height: 36px;\n border-radius: 40px;\n background-color: #ff6618;\n font-size: 12px;\n font-weight: bold;\n color: #fff;\n border: none;\n}\n.tui-full-calendar-confirm:hover {\n background-color: #e55b15;\n color: #fff;\n}\n.tui-full-calendar-confirm:active {\n background-color: #d95614;\n color: #fff;\n}\n.tui-full-calendar-icon.tui-full-calendar-right {\n float: right;\n top: 1px;\n}\n.tui-full-calendar-icon .tui-full-calendar-none {\n display: none;\n}\n.tui-full-calendar-icon.tui-full-calendar-calendar-dot {\n border-radius: 8px;\n width: 12px;\n height: 12px;\n margin: 1px;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-square {\n display: none;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-square + span {\n display: inline-block;\n cursor: pointer;\n line-height: 14px;\n margin-right: 8px;\n width: 14px;\n height: 14px;\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAADpJREFUKBVjPHfu3O5///65MJAAmJiY9jCcOXPmP6kApIeJBItQlI5qRAkOVM5o4KCGBwqPkcxEvhsAbzRE+Jhb9IwAAAAASUVORK5CYII=) no-repeat;\n vertical-align: middle;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-square:checked + span {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAMBJREFUKBWVkjEOwjAMRe2WgZW7IIHEDdhghhuwcQ42rlJugAQS54Cxa5cq1QM5TUpByZfS2j9+dlJVt/tX5ZxbS4ZU9VLkQvSHKTIGRaVJYFmKrBbTCJxE2UgCdDzMZDkHrOV6b95V0US6UmgKodujEZbJg0B0ZgEModO5lrY1TMQf1TpyJGBEjD+E2NPN7ukIUDiF/BfEXgRiGEw8NgkffYGYwCi808fpn/6OvfUfsDr/Vc1IfRf8sKnFVqeiVQfDu0tf/nWH9gAAAABJRU5ErkJggg==) no-repeat;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-round {\n display: none;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-round + span {\n display: inline-block;\n cursor: pointer;\n width: 14px;\n height: 14px;\n line-height: 14px;\n vertical-align: middle;\n margin-right: 8px;\n border-radius: 8px;\n border: solid 2px;\n background: transparent;\n}\n.tui-full-calendar-popup-top-line {\n position: absolute;\n border-radius: 2px 2px 0 0;\n width: 100%;\n height: 4px;\n border: none;\n top: 0;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-popup-container {\n width: 301px;\n min-width: 301px;\n padding-bottom: 0;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon {\n width: 12px;\n height: 12px;\n background-size: 12px;\n position: relative;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon {\n margin-right: 8px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-location-b {\n top: -2px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-user-b {\n top: -2px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-state-b {\n top: -1px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-calendar-dot {\n width: 10px;\n height: 10px;\n margin-right: 8px;\n top: -1px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-content {\n line-height: 24px;\n height: 24px;\n font-size: 12px;\n line-height: 2;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-section-header {\n margin-bottom: 6px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-popup-detail-item-separate {\n margin-top: 4px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-popup-detail-item-indent {\n text-indent: -20px;\n padding-left: 20px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-schedule-title {\n font-size: 15px;\n font-weight: bold;\n line-height: 1.6;\n word-break: break-all;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-schedule-private {\n display: none;\n width: 16px;\n height: 16px;\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAKpJREFUKBVjYCATMKLri46Olvn9+3fX////HUByjIyMB1hZWcuWLl36BFktikaQpl+/fl0EKhBCVgRkv2NjY9NH1syErABkE1TTdqBCWRAG8reDxKBycOUoGmHOA2pIA5kOwiA2SDVMDqYTRSNQUBIkgewkJDZYDqYR7sewsLCtQFO9YBLYaGBAbVu1apU3SA5uIyFNIMXIauAaQRKkgBGlERTURATOVpgaABRQQOK46wEAAAAAAElFTkSuQmCC) no-repeat 16px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-schedule-private .tui-full-calendar-ic-private {\n display: block;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-section-detail {\n margin-bottom: 16px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-section-button {\n border-top: 1px solid #e5e5e5;\n font-size: 0;\n}\n.tui-full-calendar-section-button .tui-full-calendar-icon {\n margin-right: 4px;\n top: -3px;\n}\n.tui-full-calendar-section-button .tui-full-calendar-content {\n position: relative;\n top: 2px;\n}\n.tui-full-calendar-popup-edit,\n.tui-full-calendar-popup-delete {\n display: inline-block;\n padding: 7px 9px 11px 9px;\n width: calc(50% - 1px);\n outline: none;\n background: none;\n border: none;\n cursor: pointer;\n}\n.tui-full-calendar-popup-vertical-line {\n background: #e5e5e5;\n width: 1px;\n height: 14px;\n vertical-align: middle;\n display: inline-block;\n margin-top: -7px;\n}\n.tui-datepicker {\n left: -12px;\n z-index: 1;\n border-color: #d5d5d5;\n}\n.tui-full-calendar-icon {\n width: 14px;\n height: 14px;\n display: inline-block;\n vertical-align: middle;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-title {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAO5JREFUKBVjYCATMOLSFxkZqfHnz5+1QHktNDVbV69e7cOCJgjmQjXtB3IksMh7g8SY0CXQNTEyMlYD1fBCabhyFI3omkCq/v//PwnotC8gGq4LyIBrxKYJpBBoU15oaCgPiEbWCPYjUEIFGBBY/QS0qRWooRVIg/UBDXgMYoBtBHJSgWxsAQFWjET8BBqQBuLDNM4Can6GpAAb8ydQMADo3x0gSbDGlStX3gVqdMSjGUUTSCNKAggPD1cDOmU/EEuBJKEAQxNIHEUjSABNM1ZNIHXMIAIZXL169a2+vv5moK18QKeXAv20B1meYjYAr7xrljpOzc0AAAAASUVORK5CYII=) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-location {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAR1JREFUKBWdUTtPg1AUBiT8CydHJtv/0MTJRWAgcTK1bq0/pO3k4E4IYLo2Me46tS4wumjSpV07kAb6HXLPzaGPRZLL+c73uE/D+OdnHuaCIOhVVTUEf620pWVZ0yRJ3qW3FfR9f1zX9UgaGJumOUnT9Fn3DDzPuwPOuD9TvSzL3kizhOFJ4LnjOJc0wM0FP2Asgx0mEehHUfRHgzDzqF3GOogzbJg8V6XHFqYv4Cvqy7J8DcOwWYmw8Hwy1kHMRjcaKuEGgV82caWbZay3indagJyxcKLOlKeRdJA627YfUVaN0v6tlKbZVjCO4zW2cw91px3AxJEmOONCNoTzPP9xXZfOd6u0Bzz60RGOgmQuiuIb4S3gB0IvaoJW2QMDs1bBoH1CAQAAAABJRU5ErkJggg==) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-date {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAGpJREFUKBVjYKAGCA0N/Q/C6GZhE2cEKQoLC9v6//9/L3QN2PiMjIzbVq1a5c0EkiRWE7JasEZsJhMSI1sjC7LJq1evBvsZWQyZjRxwZNs4hDSiBA6y55EDBRsb7EdQasAmiUNsKw5x4oQBkUAeDPJ53KsAAAAASUVORK5CYII=) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-state {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAIxJREFUKBVjYCATMKLrCw8P9/z3798soLgMVO4JExNT2sqVK7cjq2VC5oDYME2MjIyNIAwUkoGKoShlQeFBOGCbVq1a1QDihoaG1gMpmO0gITAAOzUsLGzr////vWCC+GigK7YBDfUGO5VYTSADYWox/IjPNmS5UY3IoYHGBgcOKG7QxPFxt+KTJCgHAGcZJbGLRuJ2AAAAAElFTkSuQmCC) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-private {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAKpJREFUKBVjYCATMKLri46Olvn9+3fX////HUByjIyMB1hZWcuWLl36BFktikaQpl+/fl0EKhBCVgRkv2NjY9NH1syErABkE1TTdqBCWRAG8reDxKBycOUoGmHOA2pIA5kOwiA2SDVMDqYTRSNQUBIkgewkJDZYDqYR7sewsLCtQFO9YBLYaGBAbVu1apU3SA5uIyFNIMXIauAaQRKkgBGlERTURATOVpgaABRQQOK46wEAAAAAAElFTkSuQmCC) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-public {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAKdJREFUKBVjYCATMKLri46Olvn9+3fX////HUByjIyMB1hZWcuWLl36BFktikaQpl+/fl0EKhBCVgRkv2NjY9NH1syErABkE1TTdqBCWRAG8reDxKBycOUoGmHOA2pIA5kOwiA2SDVMDq4TmREaGvofhJHFcLHhfgwLC9sKNNULl0KQODCgtq1atcobxIY7lZAmkGJkNXCNIAlSwIjSCApqIgJnK0wNALoOPwSpOcq0AAAAAElFTkSuQmCC) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-close {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAJRJREFUKBXFkNERhCAMREUbuEKohzq0Eq2DDq6Da4B60KezDORkxj+ZwchmX0IYhtdWCGFl9y5g82NtzDnPdzAaudo76ZBS+nrvPxiInMkJcs5tMcZFfqcfxdqIRiELof+BiIJPg+mExmpmvKRn3zKj7OrG9Y79szPL14A1xEP0Hgy4gBZS5R7czHj3ehSgOzkVeyfuGrBw/WLm0hsAAAAASUVORK5CYII=) no-repeat;\n}\n.tui-full-calendar-ic-location-b {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAOZJREFUKBWVUT0KwjAUbkzGTuJWPYNDpV0cXD2ETuIRBK+gs4ubp3BwcXBp6eINBKWDgydoid9X8oKCggYeee/7S9IGwZ9LverTNO3Wdb2y1o6IK6WOWutFlmU30XmDE58hbgvpTA+Y+mJqCemS20jdG2N6LPYMICc6b5BrIG3ONBZ7CoVj7w0cfllGRDj+gKQpjt/iPU0ye/LkROcNANaoCUzjqqquIsBuHddAWoiyLO9RFHUwJ4JxR/qmKIqdYG9vCMNwCeIiJHuHecj/B0GSJBng7ifO+ErDPM8L4b7ucRzPWJ8ET1E7YC7tmi9qAAAAAElFTkSuQmCC);\n}\n.tui-full-calendar-ic-state-b {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAHlJREFUKBVjYCARMCKrNzEx8QTyZ/3//18GJM7IyPgESKWdOXNmO4gPAkwQCk6CFQMVNoIwVOMsuCw6w9jY+D8Iw8TR+SBxsJOATtkKNM0LphAbDbRxG9Bp3mAnEVIMMgCmBt0P2AxHERusGkAhgOJQ7Jyt2IUJiAIAwwIn24FgmhkAAAAASUVORK5CYII=);\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-user-b {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAJpJREFUKBVjYKA1YES3wMTExBMoNgsqnnbmzJntyGqYkDlQ9qz////LgDCQD9MIV4ZNA1wSGwObhjRGRsYnIAzUkIZNE0licE+bm5tr/fnzJx1osjPQBFmoKY+BftnLwsIy8+TJk9dAYmANxsbGoUD2YiBmBwliAT+BYrFnz55dDfNDO1AAl2KQfpAcSA0DTIMyiEMAEKMG0wgAolIjcM7Tjm8AAAAASUVORK5CYII=);\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-edit {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAMdJREFUKBVjYCARMOJTb2xsLMfIyBjLysq64Pjx409BapnwaQDKzf7//3/L79+/D1tbW0uB1LJg02BmZqYIVPgdKBf/79+//UC2xs+fP8OB/H4MG0CK//79ewCkEGQYExOTI5DawMnJuQTER/EDTDFQXA4kCQQ3QBpOnz79AsJF8gMWxTA1KDTYBhyKMUwH6WSysrKSB7kZyIY5AySOVTFIggno+5VAmijFYA1AwhzEgAKcJsMUwIMVGKPH2NnZ7ZFDBKYImQYAuO5YIMgk39gAAAAASUVORK5CYII=);\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-delete {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAFhJREFUKBVjYCARMKKrNzEx2fr//38vkDgjI+O2M2fOeCOrAWtAVoQsicyGaWZCFsTHBtr6H588Tjm4H4yNjfGacPbsWbBaop0Es3JYaQBFDMxjWOitMDEA3EEZfFEISwUAAAAASUVORK5CYII=);\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-arrow-solid-top {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAIFJREFUKBVjYBj+gBmXF2NiYiTV1dV5rl279gWbGiZsgg0NDSw/f/5cCZRbBWJjU4PVRjExsR6g4nAgln/z5g3v1atXd6JrxtAYHh4e+v///z4khZa6urrXgJqvIYkxMCJzgJo0//37dwooxoMsDmR/YWJiMlu5cuV1NPFRLrYQAADMVCaUtbG7XwAAAABJRU5ErkJggg==) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-milestone {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAGFJREFUKBVjYCARMILU/3dw+I+hj5FxG+P+/d7o4rg1IKtE0syELI6T/f+/F0yOOA0w1UCa9hpYkGxjYDxwABwIILH/jo5bGWBuZ2TcClOHogEmCKKxBSlInPZ+ANlCEgAA37EU4AHbBQUAAAAASUVORK5CYII=) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-arrow-left {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAHCAYAAAAvZezQAAAAAXNSR0IArs4c6QAAAFZJREFUCB1jZICCyspK83///hUxgvhVVVV6f//+3c3ExJTMVFNTowqU2cHMzJzf3t6+hen379/zgIp2t7W1rQCpZmJlZU0C0q5AbREgAQwzwAIgGZgtADMCJqH/QyvhAAAAAElFTkSuQmCC) no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-arrow-right {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAHCAYAAAAvZezQAAAAAXNSR0IArs4c6QAAAFxJREFUCB1jKC8vX1lZWWnOAAVMQLD4379/m6qqqvRAYowgAsiJAAr2sbCw2IMFQIIVFRUL////r8SCpMKVlZXVnhFooA9Q+VxmZmbXtra2S0xATizQYD8QB6QaAJMLJ9BqE9yTAAAAAElFTkSuQmCC) no-repeat;\n}\n.tui-full-calendar-ic-repeat-b {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAQpJREFUKBVjYCARMCKrNzU1tf/3718lUMwQiP8yMjKeYWJi6j516tRhExOThjNnzjTANQAFqv///98CVHQPSO8A0ixATa5AtjyQPgDETmfPngULMpiZmbn//fu3BSg4B6ggCyjxG8hm8PT0ZH/9+vUJoJgTiA8CTCACqDgXaOJ9Xl7eTJhikDhQcSVQsQGITT8A9rSxsfF/mJVApzWCQgPGd3BwYPny5cstoNOuAZ3rAwoJOAAqviAqKtoOEwAaxPr58+dpQL4iEGeAxJFt2AfkOwA1PQTSu4Em/gGyPYC0EpCuAdraCtIADiWgQCPQOmdmZmYHoNgVoCJfIB0CpG8DI84BphgoRjoAAAzgdELI91E5AAAAAElFTkSuQmCC);\n}\n/*# sourceMappingURL=src/css/main.css.map */\n","+prefix-classes(css-prefix)\n .layout\n height: 100%\n position: relative\n box-sizing: border-box\n\n *\n box-sizing: border-box\n\n // Related with user interaction\n .dragging\n cursor: move\n\n .resizing\n cursor: row-resize\n\n .resizing-x\n cursor: col-resize\n\n .hidden\n display: none !important\n\n .invisible span\n visibility: hidden\n\n .clear\n clearfix()\n\n .scroll-y\n overflow-y: scroll\n\n .dot\n display: inline-block\n position: relative\n top: -1px\n content: ''\n width: 7px\n height: 7px\n border-radius: 50%\n\n.{css-prefix}holiday\n color: red\n\n.{css-prefix}today\n background: rgba(218, 229, 249, .3)\n\n// Drag handle\n.handle-x\n background-position: center center\n background-repeat: no-repeat\n background-image: url(./image/handle-x.png)\n\n.handle-y\n background-position: center center\n background-repeat: no-repeat\n background-image: url(./image/handle-y.png)\n\n// For Retina display\n@media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-devicepixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx)\n .handle-x\n background-image: url(./image/handle-x@2x.png)\n background-size: 8px 4px\n\n .handle-y\n background-image: url(./image/handle-y@2x.png)\n background-size: 4px 8px\n",".tui-full-calendar-layout {\n height: 100%;\n position: relative;\n box-sizing: border-box;\n}\n.tui-full-calendar-layout * {\n box-sizing: border-box;\n}\n.tui-full-calendar-dragging {\n cursor: move;\n}\n.tui-full-calendar-resizing {\n cursor: row-resize;\n}\n.tui-full-calendar-resizing-x {\n cursor: col-resize;\n}\n.tui-full-calendar-hidden {\n display: none !important;\n}\n.tui-full-calendar-invisible span {\n visibility: hidden;\n}\n.tui-full-calendar-clear {\n zoom: 1;\n}\n.tui-full-calendar-clear:after {\n content: '';\n display: block;\n clear: both;\n}\n.tui-full-calendar-scroll-y {\n overflow-y: scroll;\n}\n.tui-full-calendar-dot {\n display: inline-block;\n position: relative;\n top: -1px;\n content: '';\n width: 7px;\n height: 7px;\n border-radius: 50%;\n}\n.tui-full-calendar-holiday {\n color: #f00;\n}\n.tui-full-calendar-today {\n background: rgba(218,229,249,0.3);\n}\n.handle-x {\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url(\"./image/handle-x.png\");\n}\n.handle-y {\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url(\"./image/handle-y.png\");\n}\n@media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-devicepixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx) {\n .handle-x {\n background-image: url(\"./image/handle-x@2x.png\");\n background-size: 8px 4px;\n }\n .handle-y {\n background-image: url(\"./image/handle-y@2x.png\");\n background-size: 4px 8px;\n }\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-weekday-grid {\n overflow-y: hidden;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-weekday-schedules {\n overflow-y: visible;\n height: 0;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-weekday-schedule {\n margin: 0 10px;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-today {\n background: none;\n}\n.tui-full-calendar-month-week-item .tui-full-calendar-today .tui-full-calendar-weekday-grid-date-decorator {\n display: inline-block;\n width: 27px;\n height: 27px;\n line-height: 27px;\n text-align: center;\n background: #135de6;\n border-radius: 50%;\n color: #fff;\n font-weight: bold;\n margin-left: 2px;\n}\n.tui-full-calendar-weekday-container,\n.tui-full-calendar-weekday-grid,\n.tui-full-calendar-weekday-grid-line {\n height: 100%;\n min-height: inherit;\n}\n.tui-full-calendar-weekday-grid {\n position: absolute;\n width: 100%;\n overflow-y: scroll;\n}\n.tui-full-calendar-weekday-border {\n border-top: 1px solid #ddd;\n}\n.tui-full-calendar-weekday-container {\n position: relative;\n}\n.tui-full-calendar-weekday-container>div {\n height: 100%;\n}\n.tui-full-calendar-weekday-grid-line {\n position: absolute;\n padding: 3px;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-footer {\n position: absolute;\n bottom: 4px;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-date {\n display: inline-block;\n width: 27px;\n height: 27px;\n line-height: 27px;\n text-align: center;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-date-title {\n line-height: 27px;\n margin-right: 5px;\n}\n.tui-full-calendar-weekday-grid-line .tui-full-calendar-weekday-grid-more-schedules {\n float: right;\n display: inline-block;\n height: 27px;\n line-height: 27px;\n padding: 0 5px;\n text-align: center;\n font-size: 11px;\n font-weight: bold;\n color: #aaa;\n}\n.tui-full-calendar-weekday-creation {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n overflow-y: scroll;\n}\n.tui-full-calendar-weekday-schedules {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n font-size: 12px;\n overflow-y: scroll;\n}\n.tui-full-calendar-weekday-schedules-height-span {\n width: 1px;\n margin-left: -1px;\n}\n.tui-full-calendar-weekday-schedule-block {\n position: absolute;\n}\n.tui-full-calendar-weekday-schedule-block-dragging-dim {\n opacity: 0.3;\n}\n.tui-full-calendar-weekday-schedule {\n position: relative;\n margin: 0 10px 0 1px;\n cursor: pointer;\n border-left-style: solid;\n border-left-width: 3px;\n}\n.tui-full-calendar-weekday-schedule.tui-full-calendar-weekday-schedule-time {\n border-left-width: 0;\n}\n.tui-full-calendar-weekday-schedule.tui-full-calendar-weekday-schedule-time .tui-full-calendar-weekday-schedule-title {\n padding-left: 9px;\n}\n.tui-full-calendar-weekday-schedule-bullet {\n position: absolute;\n padding: 0;\n width: 6px;\n height: 6px;\n top: 6px;\n left: 0;\n border-radius: 50%;\n}\n.tui-full-calendar-weekday-schedule-bullet-focused {\n left: 10px;\n background: #fff;\n}\n.tui-full-calendar-weekday-schedule-title {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding-left: 3px;\n font-weight: bold;\n}\n.tui-full-calendar-weekday-schedule-title-focused {\n padding-left: 16px;\n}\n.tui-full-calendar-weekday-schedule-cover {\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0,0,0,0.2);\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n}\n.tui-full-calendar-weekday-exceed-left .tui-full-calendar-weekday-schedule {\n margin-left: 0;\n border-left-width: 0;\n}\n.tui-full-calendar-weekday-exceed-right .tui-full-calendar-weekday-schedule {\n margin-right: 0;\n}\n.tui-full-calendar-weekday-exceed-right .tui-full-calendar-weekday-resize-handle {\n display: none;\n}\n.tui-full-calendar-weekday-exceed-in-month {\n cursor: pointer;\n}\n.tui-full-calendar-weekday-exceed-in-month:hover {\n background-color: #f0f1f5;\n}\n.tui-full-calendar-weekday-exceed-in-week,\n.tui-full-calendar-weekday-collapse-btn {\n position: absolute;\n bottom: 5px;\n margin-right: 5px;\n font-size: 12px;\n line-height: 14px;\n cursor: pointer;\n padding: 1px 5px;\n background-color: #fff;\n border: 1px solid #ddd;\n color: #000;\n}\n.tui-full-calendar-weekday-resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n width: 6px;\n background-position: 3px center;\n cursor: col-resize;\n line-height: 18px;\n}\n.tui-full-calendar-weekday-filled {\n background-color: #e8e8e8 !important;\n}\n.tui-full-calendar-left {\n height: 100%;\n float: left;\n box-sizing: border-box;\n display: table;\n}\n.tui-full-calendar-left-content {\n display: table-cell;\n vertical-align: middle;\n text-align: right;\n font-size: 11px;\n}\n.tui-full-calendar-right {\n height: 100%;\n overflow-y: scroll;\n position: relative;\n}\n.tui-full-calendar-week-container {\n width: 100%;\n height: inherit;\n display: inline-block;\n font-size: 10px;\n min-height: 600px;\n}\n.tui-full-calendar-week-container .tui-full-calendar-today {\n background: none;\n}\n.tui-full-calendar-dayname {\n position: absolute;\n margin-left: -1px;\n height: 100%;\n overflow: hidden;\n}\n.tui-full-calendar-dayname.tui-full-calendar-today {\n font-weight: bold;\n}\n.tui-full-calendar-dayname-container {\n overflow-y: scroll;\n}\n.tui-full-calendar-dayname-leftmargin {\n position: relative;\n height: 100%;\n}\n.tui-full-calendar-dayname-date {\n font-size: 26px;\n}\n.tui-full-calendar-dayname-name {\n font-weight: bold;\n font-size: 12px;\n}\n.tui-full-calendar-daygrid-layout {\n height: 100%;\n}\n.tui-full-calendar-daygrid-layout .tui-full-calendar-right {\n overflow-y: hidden;\n}\n.tui-full-calendar-daygrid-guide-creation-block {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n}\n.tui-full-calendar-timegrid-container {\n height: 100%;\n position: relative;\n overflow: hidden;\n overflow-y: scroll;\n}\n.tui-full-calendar-timegrid-container-split {\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n.tui-full-calendar-timegrid-left {\n position: absolute;\n}\n.tui-full-calendar-timegrid-hour {\n position: relative;\n color: #555;\n box-sizing: border-box;\n}\n.tui-full-calendar-timegrid-hour:first-child span {\n display: none;\n}\n.tui-full-calendar-timegrid-hour:last-child {\n border-bottom: none;\n}\n.tui-full-calendar-timegrid-hour span {\n position: absolute;\n top: -11px;\n left: 0;\n right: 5px;\n text-align: right;\n line-height: 25px;\n}\n.tui-full-calendar-timegrid-right {\n position: relative;\n}\n.tui-full-calendar-timegrid-gridline {\n border-bottom: 1px solid #eee;\n box-sizing: border-box;\n}\n.tui-full-calendar-timegrid-gridline:last-child {\n border-bottom: none;\n}\n.tui-full-calendar-timegrid-schedules {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n cursor: pointer;\n}\n.tui-full-calendar-timegrid-hourmarker {\n position: absolute;\n width: 100%;\n display: table;\n}\n.tui-full-calendar-timegrid-hourmarker-line-left {\n position: absolute;\n min-height: 1px;\n left: 0;\n}\n.tui-full-calendar-timegrid-hourmarker-line-today {\n position: absolute;\n min-height: 1px;\n}\n.tui-full-calendar-timegrid-hourmarker-line-right {\n position: absolute;\n min-height: 1px;\n right: 0;\n}\n.tui-full-calendar-timegrid-hourmarker-time {\n padding-right: 5px;\n line-height: 12px;\n text-align: right;\n display: table-cell;\n vertical-align: bottom;\n}\n.tui-full-calendar-timegrid-todaymarker {\n position: absolute;\n text-indent: -9999px;\n width: 9px;\n height: 9px;\n background-color: #135de6;\n margin: -4px 0 0 -5px;\n border-radius: 50%;\n}\n.tui-full-calendar-timegrid-sticky-container {\n position: absolute;\n top: 0;\n}\n.tui-full-calendar-timegrid-timezone-label-container {\n position: absolute;\n}\n.tui-full-calendar-timegrid-timezone-label-cell {\n display: table;\n}\n.tui-full-calendar-timegrid-timezone-label {\n display: table-cell;\n vertical-align: middle;\n padding-right: 5px;\n text-align: right;\n}\n.tui-full-calendar-timegrid-timezone-close-btn {\n cursor: pointer;\n position: absolute;\n text-align: center;\n background-color: #fff;\n}\n.tui-full-calendar-timegrid-timezone-close-btn .tui-full-calendar-icon {\n width: 5px;\n height: 10px;\n}\n.tui-full-calendar-time-date {\n position: absolute;\n height: 100%;\n margin-left: -1px;\n box-sizing: content-box;\n}\n.tui-full-calendar-time-date:last-child {\n border-right: none;\n margin: 0;\n}\n.tui-full-calendar-time-date:last-child .tui-full-calendar-time-schedule,\n.tui-full-calendar-time-date:last-child .tui-full-calendar-time-guide-creation {\n left: 0px;\n}\n.tui-full-calendar-time-date-schedule-block-wrap {\n position: relative;\n height: 100%;\n}\n.tui-full-calendar-time-date-schedule-block {\n position: absolute;\n right: 0px;\n}\n.tui-full-calendar-time-date-schedule-block-pending {\n opacity: 0.7;\n}\n.tui-full-calendar-time-date-schedule-block-dragging-dim {\n opacity: 0.3;\n}\n.tui-full-calendar-time-date-schedule-block-focused {\n box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);\n}\n.tui-full-calendar-time-date-schedule-block-cover {\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0,0,0,0.2);\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n}\n.tui-full-calendar-time-schedule {\n position: relative;\n left: 1px;\n height: 100%;\n overflow: hidden;\n font-size: 12px;\n font-weight: bold;\n}\n.tui-full-calendar-time-schedule-content {\n overflow: hidden;\n border-left-width: 3px;\n border-left-style: solid;\n padding: 1px 0 0 3px;\n}\n.tui-full-calendar-time-schedule-content-travel-time {\n font-weight: normal;\n font-size: 11px;\n}\n.tui-full-calendar-time-resize-handle {\n position: absolute;\n right: 0px;\n bottom: 0px;\n left: 0px;\n height: 5px;\n text-align: center;\n color: #fff;\n cursor: row-resize;\n background-position: center top;\n}\n.tui-full-calendar-time-guide-creation {\n position: absolute;\n right: 10px;\n left: 1px;\n padding: 3px;\n}\n.tui-full-calendar-time-guide-move .tui-full-calendar-time-schedule,\n.tui-full-calendar-time-guide-resize .tui-full-calendar-time-schedule,\n.tui-full-calendar-time-guide-move .tui-full-calendar-time-resize-handle,\n.tui-full-calendar-time-guide-resize .tui-full-calendar-time-resize-handle {\n opacity: 0.8;\n z-index: 97;\n}\n.tui-full-calendar-time-guide-creation-label {\n cursor: default;\n}\n.tui-full-calendar-time-guide-bottom {\n position: absolute;\n bottom: 3px;\n}\n.tui-full-calendar-month {\n height: 100%;\n min-height: 600px;\n}\n.tui-full-calendar-month-dayname {\n width: 100%;\n position: absolute;\n font-size: 13px;\n}\n.tui-full-calendar-month-dayname-item {\n height: 100%;\n font-weight: bold;\n}\n.tui-full-calendar-month-week-item {\n position: relative;\n}\n.tui-full-calendar-month-week-item>div {\n height: 100%;\n}\n.tui-full-calendar-month-more {\n height: inherit;\n min-width: 280px;\n min-height: 150px;\n}\n.tui-full-calendar-month-more-title {\n position: relative;\n}\n.tui-full-calendar-month-more-title-day {\n font-size: 23px;\n color: #333;\n}\n.tui-full-calendar-month-more-title-day-label {\n font-size: 12px;\n color: #333;\n}\n.tui-full-calendar-month-more-close {\n position: absolute;\n right: 0;\n outline: 0;\n background: none;\n border: 0;\n font-size: 14px;\n line-height: 28px;\n padding: 0 7px;\n cursor: pointer;\n}\n.tui-full-calendar-month-more-list {\n overflow-y: auto;\n}\n.tui-full-calendar-month-more-schedule {\n cursor: pointer;\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-size: 12px;\n}\n.tui-full-calendar-month-guide-block {\n position: absolute;\n}\n.tui-full-calendar-month-weekday-schedule {\n margin-top: 2px;\n}\n.tui-full-calendar-month-creation-guide {\n top: 0;\n bottom: -1px;\n left: -1px;\n right: 0;\n position: absolute;\n z-index: 20;\n}\n.tui-full-calendar-month-guide-focused {\n box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);\n}\n.tui-full-calendar-month-guide {\n position: relative;\n padding-left: 3px;\n line-height: 18px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.tui-full-calendar-month-guide-cover {\n width: 100%;\n position: absolute;\n top: -50%;\n left: -50%;\n background-color: rgba(0,0,0,0.2);\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n}\n.tui-full-calendar-month-exceed-left .tui-full-calendar-month-guide {\n margin-left: 0px;\n}\n.tui-full-calendar-month-exceed-right .tui-full-calendar-month-guide {\n margin-right: 0px;\n}\n.tui-full-calendar-month-exceed-right .tui-full-calendar-month-guide-handle {\n display: none;\n}\n.tui-full-calendar-month-guide-handle {\n position: absolute;\n top: 0;\n right: 3px;\n width: 6px;\n background-position: 3px center;\n cursor: col-resize;\n}\n.tui-full-calendar-vlayout-container {\n position: relative;\n}\n.tui-full-calendar-splitter {\n clear: left;\n cursor: row-resize;\n}\n.tui-full-calendar-splitter:hover {\n border-color: #999;\n}\n.tui-full-calendar-splitter-focused {\n background-color: #ddd;\n border: none;\n}\n.tui-full-calendar-splitter-guide {\n position: absolute;\n width: 100%;\n height: 3px;\n border: none;\n background-color: #e8e8e8;\n}\n.tui-full-calendar-popup {\n position: absolute;\n font-weight: 2.5;\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n clear: both;\n}\n.tui-full-calendar-popup-container {\n min-width: 474px;\n box-shadow: 0 2px 6px 0 rgba(0,0,0,0.1);\n background-color: #fff;\n border: solid 1px #d5d5d5;\n padding: 17px;\n border-radius: 2px;\n}\n.tui-full-calendar-popup-section {\n font-size: 0;\n min-height: 40px;\n}\n.tui-full-calendar-section-calendar {\n width: 176px;\n}\n.tui-full-calendar-section-calendar.tui-full-calendar-hide {\n height: 21px;\n visibility: hidden;\n}\n.tui-full-calendar-section-title {\n width: calc(100% - 36px);\n padding-right: 4px;\n}\n.tui-full-calendar-section-title input {\n width: 365px;\n}\n.tui-full-calendar-button.tui-full-calendar-section-private {\n height: 32px;\n padding: 8px;\n font-size: 0;\n margin-left: 4px;\n}\n.tui-full-calendar-section-private.tui-full-calendar-public .tui-full-calendar-ic-private {\n background: url(\"image/ic-unlock.png\") no-repeat;\n}\n.tui-full-calendar-section-start-date,\n.tui-full-calendar-section-end-date {\n width: 176px;\n}\n.tui-full-calendar-section-start-date input,\n.tui-full-calendar-section-end-date input {\n width: 139px;\n}\n.tui-full-calendar-section-start-date:hover .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-end-date:hover .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-start-date:focus .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-end-date:focus .tui-full-calendar-popup-section-item,\n.tui-full-calendar-section-start-date:hover .tui-datepicker,\n.tui-full-calendar-section-end-date:hover .tui-datepicker,\n.tui-full-calendar-section-start-date:focus .tui-datepicker,\n.tui-full-calendar-section-end-date:focus .tui-datepicker {\n border-color: #bbb;\n}\n.tui-full-calendar-popup-section-item:focus {\n border-color: #bbb;\n}\n.tui-full-calendar-section-date-dash {\n font-size: 12px;\n color: #d5d5d5;\n height: 32px;\n padding: 0 4px;\n vertical-align: middle;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-allday {\n border: none;\n padding: 0 0 0 8px;\n cursor: pointer;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-location {\n display: block;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-location input {\n width: 400px;\n}\n.tui-full-calendar-section-allday .tui-full-calendar-icon.tui-full-calendar-ic-checkbox {\n margin: 0;\n}\n.tui-full-calendar-popup-section-item.tui-full-calendar-section-allday .tui-full-calendar-content {\n padding-left: 4px;\n}\n.tui-full-calendar-section-state {\n width: 109px;\n}\n.tui-full-calendar-section-state .tui-full-calendar-content {\n width: 58px;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.tui-full-calendar-popup-section-item {\n height: 32px;\n padding: 0 9px 0 12px;\n border: 1px solid #d5d5d5;\n display: inline-block;\n font-size: 0;\n border-radius: 2px;\n}\n.tui-full-calendar-popup-section-item:hover {\n border-color: #bbb;\n}\n.tui-full-calendar-popup-section-item:focus {\n border-color: #bbb;\n}\n.tui-full-calendar-popup-section-item .tui-full-calendar-icon {\n position: relative;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-title {\n top: 2px;\n}\n.tui-full-calendar-popup-section-item .tui-full-calendar-content {\n text-align: left;\n display: inline-block;\n font-size: 12px;\n vertical-align: middle;\n position: relative;\n padding-left: 8px;\n}\n.tui-full-calendar-section-calendar .tui-full-calendar-dropdown-button .tui-full-calendar-content {\n width: 125px;\n text-overflow: ellipsis;\n overflow: hidden;\n top: -1px;\n}\n.tui-full-calendar-popup-section-item input {\n border: none;\n height: 30px;\n outline: none;\n display: inline-block;\n}\n.tui-full-calendar-popup-section-item input::placeholder {\n color: #bbb;\n font-weight: 300;\n}\n.tui-full-calendar-dropdown {\n position: relative;\n}\n.tui-full-calendar-dropdown:hover .tui-full-calendar-dropdown-button {\n border: 1px solid #bbb;\n}\n.tui-full-calendar-dropdown-button.tui-full-calendar-popup-section-item {\n height: 32px;\n font-size: 0;\n top: -1px;\n}\n.tui-full-calendar-dropdown-arrow {\n background: url(\"image/ic-arrow-solid-bottom.png\") no-repeat;\n}\n.dropdown.open .tui-full-calendar-dropdown-arrow,\n.tui-full-calendar-open .tui-full-calendar-dropdown-arrow {\n background: url(\"image/ic-arrow-solid-top.png\") no-repeat;\n}\n.tui-full-calendar-dropdown-menu {\n position: absolute;\n top: 31px;\n padding: 4px 0;\n background-color: #fff;\n border: 1px solid #d5d5d5;\n border-top: none;\n border-radius: 0 0 2px 2px;\n width: 100%;\n}\n.tui-full-calendar-dropdown:hover .tui-full-calendar-dropdown-menu {\n border: 1px solid #bbb;\n border-top: none;\n}\n.tui-full-calendar-dropdown-menu {\n display: none;\n}\n.tui-full-calendar-open .tui-full-calendar-dropdown-menu {\n display: block;\n}\n.tui-full-calendar-dropdown-menu-item {\n height: 30px;\n border: none;\n cursor: pointer;\n}\n.tui-full-calendar-section-calendar .tui-full-calendar-dropdown-menu-item {\n width: 100%;\n}\n.tui-full-calendar-section-state .tui-full-calendar-dropdown-menu-item {\n width: 100%;\n}\n.tui-full-calendar-dropdown-menu-item:hover {\n background-color: rgba(81,92,230,0.05);\n}\n.tui-full-calendar-dropdown-menu-item .tui-full-calendar-content {\n line-height: 30px;\n}\n.tui-full-calendar-button.tui-full-calendar-popup-close {\n position: absolute;\n top: 10px;\n right: 10px;\n background-color: #fff;\n padding: 2px;\n border: none;\n}\n.tui-full-calendar-section-button-save {\n height: 36px;\n}\n.tui-full-calendar-popup-save {\n float: right;\n}\n.tui-full-calendar-popup-arrow-border,\n.tui-full-calendar-popup-arrow-fill {\n position: absolute;\n}\n.tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-border {\n border-top: none;\n border-right: 8px solid transparent;\n border-bottom: 8px solid #d5d5d5;\n border-left: 8px solid transparent;\n left: calc(50% - 8px);\n top: -7px;\n}\n.tui-full-calendar-arrow-right .tui-full-calendar-popup-arrow-border {\n border-top: 8px solid transparent;\n border-right: none;\n border-bottom: 8px solid transparent;\n border-left: 8px solid #d5d5d5;\n top: calc(50% - 8px);\n right: -7px;\n}\n.tui-full-calendar-arrow-bottom .tui-full-calendar-popup-arrow-border {\n border-top: 8px solid #d5d5d5;\n border-right: 8px solid transparent;\n border-bottom: none;\n border-left: 8px solid transparent;\n left: calc(50% - 8px);\n bottom: -7px;\n}\n.tui-full-calendar-arrow-left .tui-full-calendar-popup-arrow-border {\n border-top: 8px solid transparent;\n border-right: 8px solid #d5d5d5;\n border-bottom: 8px solid transparent;\n border-left: none;\n top: calc(50% - 8px);\n left: -7px;\n}\n.tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-fill {\n border-top: none;\n border-right: 7px solid transparent;\n border-bottom: 7px solid #fff;\n border-left: 7px solid transparent;\n left: -7px;\n top: 1px;\n}\n.tui-full-calendar-arrow-right .tui-full-calendar-popup-arrow-fill {\n border-top: 7px solid transparent;\n border-right: none;\n border-bottom: 7px solid transparent;\n border-left: 7px solid #fff;\n top: -7px;\n right: 1px;\n}\n.tui-full-calendar-arrow-bottom .tui-full-calendar-popup-arrow-fill {\n border-top: 7px solid #fff;\n border-right: 7px solid transparent;\n border-bottom: none;\n border-left: 7px solid transparent;\n left: -7px;\n bottom: 1px;\n}\n.tui-full-calendar-arrow-left .tui-full-calendar-popup-arrow-fill {\n border-top: 7px solid transparent;\n border-right: 7px solid #fff;\n border-bottom: 7px solid transparent;\n border-left: none;\n top: -7px;\n left: 1px;\n}\n.tui-full-calendar-button {\n background: #fff;\n border: 1px solid #d5d5d5;\n border-radius: 2px;\n text-align: center;\n outline: none;\n font-size: 12px;\n cursor: pointer;\n color: #333;\n}\n.tui-full-calendar-button:hover {\n border-color: #bbb;\n color: #333;\n}\n.tui-full-calendar-button:active {\n background: #f9f9f9;\n color: #333;\n}\n.tui-full-calendar-button .round {\n border-radius: 25px;\n}\n.tui-full-calendar-confirm {\n width: 96px;\n height: 36px;\n border-radius: 40px;\n background-color: #ff6618;\n font-size: 12px;\n font-weight: bold;\n color: #fff;\n border: none;\n}\n.tui-full-calendar-confirm:hover {\n background-color: #e55b15;\n color: #fff;\n}\n.tui-full-calendar-confirm:active {\n background-color: #d95614;\n color: #fff;\n}\n.tui-full-calendar-icon.tui-full-calendar-right {\n float: right;\n top: 1px;\n}\n.tui-full-calendar-icon .tui-full-calendar-none {\n display: none;\n}\n.tui-full-calendar-icon.tui-full-calendar-calendar-dot {\n border-radius: 8px;\n width: 12px;\n height: 12px;\n margin: 1px;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-square {\n display: none;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-square + span {\n display: inline-block;\n cursor: pointer;\n line-height: 14px;\n margin-right: 8px;\n width: 14px;\n height: 14px;\n background: url(\"image/ic-checkbox-normal.png\") no-repeat;\n vertical-align: middle;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-square:checked + span {\n background: url(\"image/ic-checkbox-checked.png\") no-repeat;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-round {\n display: none;\n}\ninput[type='checkbox'].tui-full-calendar-checkbox-round + span {\n display: inline-block;\n cursor: pointer;\n width: 14px;\n height: 14px;\n line-height: 14px;\n vertical-align: middle;\n margin-right: 8px;\n border-radius: 8px;\n border: solid 2px;\n background: transparent;\n}\n.tui-full-calendar-popup-top-line {\n position: absolute;\n border-radius: 2px 2px 0 0;\n width: 100%;\n height: 4px;\n border: none;\n top: 0;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-popup-container {\n width: 301px;\n min-width: 301px;\n padding-bottom: 0;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon {\n width: 12px;\n height: 12px;\n background-size: 12px;\n position: relative;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon {\n margin-right: 8px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-location-b {\n top: -2px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-user-b {\n top: -2px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-ic-state-b {\n top: -1px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-icon.tui-full-calendar-calendar-dot {\n width: 10px;\n height: 10px;\n margin-right: 8px;\n top: -1px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-content {\n line-height: 24px;\n height: 24px;\n font-size: 12px;\n line-height: 2;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-section-header {\n margin-bottom: 6px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-popup-detail-item-separate {\n margin-top: 4px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-popup-detail-item-indent {\n text-indent: -20px;\n padding-left: 20px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-schedule-title {\n font-size: 15px;\n font-weight: bold;\n line-height: 1.6;\n word-break: break-all;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-schedule-private {\n display: none;\n width: 16px;\n height: 16px;\n background: url(\"image/ic-lock.png\") no-repeat 16px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-schedule-private .tui-full-calendar-ic-private {\n display: block;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-section-detail {\n margin-bottom: 16px;\n}\n.tui-full-calendar-popup-detail .tui-full-calendar-section-button {\n border-top: 1px solid #e5e5e5;\n font-size: 0;\n}\n.tui-full-calendar-section-button .tui-full-calendar-icon {\n margin-right: 4px;\n top: -3px;\n}\n.tui-full-calendar-section-button .tui-full-calendar-content {\n position: relative;\n top: 2px;\n}\n.tui-full-calendar-popup-edit,\n.tui-full-calendar-popup-delete {\n display: inline-block;\n padding: 7px 9px 11px 9px;\n width: calc(50% - 1px);\n outline: none;\n background: none;\n border: none;\n cursor: pointer;\n}\n.tui-full-calendar-popup-vertical-line {\n background: #e5e5e5;\n width: 1px;\n height: 14px;\n vertical-align: middle;\n display: inline-block;\n margin-top: -7px;\n}\n.tui-datepicker {\n left: -12px;\n z-index: 1;\n border-color: #d5d5d5;\n}\n.tui-full-calendar-icon {\n width: 14px;\n height: 14px;\n display: inline-block;\n vertical-align: middle;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-title {\n background: url(\"image/ic-subject.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-location {\n background: url(\"image/ic-location.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-date {\n background: url(\"image/ic-date.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-state {\n background: url(\"image/ic-state.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-private {\n background: url(\"image/ic-lock.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-public {\n background: url(\"image/ic-unlock.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-close {\n background: url(\"image/ic-close.png\") no-repeat;\n}\n.tui-full-calendar-ic-location-b {\n background: url(\"./image/ic-location-b.png\");\n}\n.tui-full-calendar-ic-state-b {\n background: url(\"./image/ic-state-b.png\");\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-user-b {\n background-image: url(\"./image/ic-user-b.png\");\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-edit {\n background-image: url(\"./image/ic-edit.png\");\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-delete {\n background-image: url(\"./image/ic-delete.png\");\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-arrow-solid-top {\n background: url(\"image/ic-arrow-solid-top.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-milestone {\n background: url(\"image/ic-milestone.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-arrow-left {\n background: url(\"image/ic-arrow-left.png\") no-repeat;\n}\n.tui-full-calendar-icon.tui-full-calendar-ic-arrow-right {\n background: url(\"image/ic-arrow-right.png\") no-repeat;\n}\n.tui-full-calendar-ic-repeat-b {\n background: url(\"./image/ic-repeat-b.png\");\n}\n/*# sourceMappingURL=src/css/main.css.map */","// Variables\n// default prefix\ncss-prefix = 'tui-full-calendar-'\n// Dayname\ndayname = css-prefix + 'dayname-'\n// Taskview\nmilestone = css-prefix + 'milestone-'\ntaskview = css-prefix + 'task-'\n// Allday\nallday = css-prefix + 'allday-'\nweekday = css-prefix + 'weekday-'\n// DayGrid\ndaygrid = css-prefix + 'daygrid-'\n// Time\ntimegrid = css-prefix + 'timegrid-'\ntime = css-prefix + 'time-'\n// Month\nmonth = css-prefix + 'month-'\n\n// Functions\nwh(w, h)\n width: w\n height: h\n\npos(top, left)\n top: top\n left: left\n\nmpzero()\n margin: 0\n padding: 0\n\nvendor(prop, args)\n -webkit-{prop} args\n -moz-{prop} args\n {prop} args\n\nclearfix()\n zoom: 1;\n &:after\n content: '';\n display: block;\n clear: both;\n \n",".{css-prefix}month-week-item\n .{css-prefix}weekday-grid\n overflow-y: hidden\n\n .{css-prefix}weekday-schedules\n overflow-y: visible\n height: 0\n\n .{css-prefix}weekday-schedule\n margin: 0 10px\n\n .{css-prefix}today\n background: none\n\n .{css-prefix}weekday-grid-date-decorator\n display: inline-block\n wh(27px, 27px)\n line-height: 27px\n text-align: center\n background: #135de6\n border-radius: 50%\n color: #fff\n font-weight: bold\n margin-left: 2px\n\n+prefix-classes(weekday)\n .container,\n .grid,\n .grid-line\n height: 100%\n min-height: inherit\n\n .grid\n position: absolute\n width: 100%\n overflow-y: scroll\n\n .border\n border-top: 1px solid #ddd\n\n .container\n position: relative\n &>div\n height: 100%\n\n .grid-line\n position: absolute\n padding: 3px\n\n .grid-footer\n position: absolute\n bottom: 4px\n\n .grid-date\n display: inline-block\n wh(27px, 27px)\n line-height: 27px\n text-align: center\n\n .grid-date-title\n line-height: 27px\n margin-right: 5px\n \n .grid-more-schedules\n float: right\n display: inline-block\n height: 27px\n line-height: 27px\n padding: 0 5px\n text-align: center\n font-size: 11px\n font-weight: bold\n color: #aaaaaa\n\n .creation\n pos(0, 0)\n wh(100%, 100%)\n position: absolute\n overflow-y: scroll\n\n .schedules\n pos(0, 0)\n wh(100%, 100%)\n position: absolute\n font-size: 12px\n overflow-y: scroll\n\n .schedules-height-span\n width: 1px\n margin-left: -1px\n\n .schedule-block\n position: absolute\n\n .schedule-block-dragging-dim\n opacity: 0.3\n\n .schedule\n position: relative\n margin: 0 10px 0 1px\n cursor: pointer\n border-left-style: solid\n border-left-width: 3px\n\n &.schedule-time\n border-left-width: 0\n\n .schedule-title\n padding-left: 9px\n\n .schedule-bullet\n position: absolute\n padding: 0\n wh(6px, 6px)\n top: 6px\n left: 0\n border-radius: 50%\n\n .schedule-bullet-focused\n left: 10px\n background: #ffffff\n\n .schedule-title\n display: block\n white-space: nowrap\n overflow: hidden\n text-overflow: ellipsis\n padding-left: 3px;\n font-weight: bold;\n\n .schedule-title-focused\n padding-left: 16px\n\n .schedule-cover\n position: absolute\n top: 0\n width: 100%\n height: 100%\n background-color: rgba(0, 0, 0, 0.2)\n box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);\n\n .exceed-left .schedule\n margin-left: 0\n border-left-width: 0\n\n .exceed-right .schedule\n margin-right: 0\n\n .exceed-right .resize-handle\n display: none\n\n .exceed-in-month\n cursor: pointer\n &:hover\n background-color: #f0f1f5\n\n .exceed-in-week, .collapse-btn\n position: absolute\n bottom: 5px\n margin-right: 5px\n font-size: 12px\n line-height: 14px\n cursor: pointer\n padding: 1px 5px\n background-color: #ffffff\n border: 1px solid #dddddd\n color: #000000\n\n .resize-handle\n position: absolute\n top: 0\n right: 0\n width: 6px\n background-position: 3px center\n cursor: col-resize\n line-height: 18px\n\n .filled\n background-color: #e8e8e8 !important\n\n+prefix-classes(css-prefix)\n .left\n height: 100%\n float: left\n box-sizing: border-box\n display: table\n\n .left-content\n display: table-cell\n vertical-align: middle\n text-align: right\n font-size: 11px\n\n\n .right\n height: 100%\n overflow-y: scroll\n position: relative\n",".{css-prefix}week-container\n width: 100%\n height: inherit\n display: inline-block\n font-size: 10px\n min-height: 600px\n\n .{css-prefix}today\n background: none\n",".{css-prefix}dayname\n position: absolute\n margin-left: -1px\n height: 100%\n overflow: hidden\n\n &.{css-prefix}today\n font-weight: bold\n\n+prefix-classes(dayname)\n .container\n overflow-y: scroll\n\n .leftmargin\n position: relative\n height: 100%\n \n .date\n font-size: 26px\n \n .name\n font-weight: bold\n font-size: 12px\n","// DayGrid view\n+prefix-classes(daygrid)\n .layout\n height: 100%;\n\n.{css-prefix}daygrid-layout\n .{css-prefix}right\n overflow-y: hidden\n\n// Guide element\n+prefix-classes(daygrid + guide-)\n .creation-block\n position: absolute\n top: 0\n bottom: 0\n z-index: 1\n","+prefix-classes(timegrid)\n .container\n height: 100%\n position: relative\n overflow: hidden\n overflow-y: scroll\n\n .container-split\n height: 100%\n position: relative\n overflow: hidden\n\n .left\n position: absolute\n\n .hour\n position: relative\n color: #555\n box-sizing: border-box\n &:first-child span\n display: none\n &:last-child\n border-bottom: none\n\n .hour span\n position: absolute\n top: -11px\n left: 0\n right: 5px\n text-align: right\n line-height: 25px\n\n .right\n position: relative\n\n .gridline\n border-bottom: 1px solid #eee\n box-sizing: border-box\n &:last-child\n border-bottom: none\n\n .schedules\n position: absolute\n wh(100%, 100%)\n pos(0, 0)\n cursor: pointer\n\n // Hourmarker\n .hourmarker\n position: absolute\n width: 100%\n display: table\n\n .hourmarker-line-left\n position: absolute\n min-height: 1px\n left: 0\n\n .hourmarker-line-today\n position: absolute\n min-height: 1px\n\n .hourmarker-line-right\n position: absolute\n min-height: 1px\n right: 0\n\n .hourmarker-time\n padding-right: 5px\n line-height: 12px\n text-align: right\n display: table-cell\n vertical-align: bottom\n\n // Todaymarker\n .todaymarker\n position: absolute\n text-indent: -9999px\n wh(9px, 9px)\n background-color: #135de6\n margin: -4px 0 0 -5px\n border-radius: 50%\n\n .sticky-container\n position: absolute\n top: 0\n \n .timezone-label-container\n position: absolute\n \n .timezone-label-cell\n display: table\n \n .timezone-label\n display: table-cell\n vertical-align: middle\n padding-right: 5px\n text-align: right\n \n .timezone-close-btn\n cursor: pointer\n position: absolute\n text-align: center\n background-color: #ffffff\n\n.{css-prefix}timegrid-timezone-close-btn\n .{css-prefix}icon\n width: 5px\n height: 10px\n\n+prefix-classes(time)\n .date\n position: absolute\n height: 100%\n margin-left: -1px\n box-sizing: content-box\n &:last-child\n border-right: none\n margin: 0\n // last creation guide element\n .schedule,\n .guide-creation\n left: 0px\n\n .date-schedule-block-wrap\n position: relative\n height: 100%\n\n .date-schedule-block\n position: absolute\n right: 0px\n\n .date-schedule-block-pending\n opacity: 0.7\n\n .date-schedule-block-dragging-dim\n opacity: 0.3\n\n .date-schedule-block-focused\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2)\n\n .date-schedule-block-cover\n position: absolute\n top: 0\n width: 100%\n height: 100%\n background-color: rgba(0, 0, 0, 0.2)\n box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);\n\n .schedule\n position: relative\n left: 1px\n height: 100%\n overflow: hidden\n font-size: 12px\n font-weight: bold\n\n .schedule-content\n overflow: hidden\n border-left-width: 3px\n border-left-style: solid\n padding: 1px 0 0 3px\n\n .schedule-content-travel-time\n font-weight: normal;\n font-size: 11px;\n\n .resize-handle\n position: absolute\n right: 0px\n bottom: 0px\n left: 0px\n height: 5px\n text-align: center\n color: #fff\n cursor: row-resize\n background-position: center top\n\n // Guide element\n .guide-creation\n position: absolute\n right: 10px\n left: 1px\n padding: 3px\n\n .guide-move,\n .guide-resize\n .schedule,\n .resize-handle\n opacity: 0.8\n z-index: 97\n\n .guide-creation-label\n cursor: default\n\n .guide-bottom\n position: absolute\n bottom: 3px\n",".{css-prefix}month\n height: 100%\n min-height: 600px\n\n+prefix-classes(month)\n .dayname\n width: 100%\n position: absolute\n font-size: 13px\n\n .dayname-item\n height: 100%\n font-weight: bold\n\n .week-item\n position: relative\n &>div\n height: 100%\n\n .more\n height: inherit\n min-width: 280px\n min-height: 150px\n\n .more-title\n position: relative\n \n .more-title-day\n font-size: 23px\n color #333\n \n .more-title-day-label\n font-size: 12px\n color: #333\n\n .more-close\n position: absolute\n right: 0\n outline: 0\n background none\n border: 0\n font-size: 14px\n line-height: 28px\n padding: 0 7px\n cursor: pointer\n\n .more-list\n overflow-y: auto\n\n .more-schedule\n cursor: pointer\n display: block\n overflow: hidden\n white-space: nowrap\n text-overflow: ellipsis\n font-size: 12px\n\n .guide-block\n position: absolute\n\n .weekday-schedule\n margin-top: 2px\n\n .creation-guide\n top: 0\n bottom: -1px\n left: -1px\n right: 0\n position: absolute\n z-index: 20\n\n .guide-focused\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2)\n\n .guide\n position: relative\n padding-left: 3px\n line-height: 18px\n overflow: hidden\n white-space: nowrap\n text-overflow: ellipsis\n\n .guide-cover\n width: 100%\n position: absolute\n top: -50%\n left: -50%\n background-color: rgba(0, 0, 0, 0.2)\n box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1)\n\n .exceed-left .guide\n margin-left: 0px\n\n .exceed-right .guide\n margin-right: 0px\n\n .exceed-right .guide-handle\n display: none\n\n .guide-handle\n position: absolute\n top: 0\n right: 3px\n width: 6px\n background-position: 3px center\n cursor: col-resize\n","+prefix-classes(css-prefix)\n .vlayout-container\n position: relative\n\n .splitter\n clear: left\n cursor: row-resize\n\n &:hover\n border-color: #999\n\n .splitter-focused\n background-color: #ddd\n border: none\n\n .splitter-guide\n position: absolute\n wh(100%, 3px)\n border: none\n background-color: #e8e8e8\n",".{css-prefix}popup\n position: absolute\n font-weight: 2.5\n box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1)\n clear: both\n\n.{css-prefix}popup-container\n min-width: 474px\n box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1)\n background-color: #ffffff\n border: solid 1px #d5d5d5\n padding: 17px\n border-radius: 2px\n\n.{css-prefix}popup-section\n font-size: 0\n min-height: 40px\n\n.{css-prefix}section-calendar\n width: 176px\n\n.{css-prefix}section-calendar.{css-prefix}hide\n height: 21px\n visibility: hidden\n\n.{css-prefix}section-title\n width: calc(100% - 36px)\n padding-right: 4px\n\n.{css-prefix}section-title input\n width: 365px\n\n.{css-prefix}button.{css-prefix}section-private\n height: 32px\n padding: 8px\n font-size: 0\n margin-left: 4px\n\n.{css-prefix}section-private.{css-prefix}public .{css-prefix}ic-private\n background: url('image/ic-unlock.png') no-repeat\n\n.{css-prefix}section-start-date\n.{css-prefix}section-end-date\n width: 176px\n\n input\n width: 139px\n\n &:hover\n &:focus\n .{css-prefix}popup-section-item\n .tui-datepicker\n border-color: #bbbbbb\n\n\n.{css-prefix}popup-section-item:focus\n border-color: #bbbbbb\n\n.{css-prefix}section-date-dash\n font-size: 12px\n color: #d5d5d5\n height: 32px\n padding: 0 4px\n vertical-align: middle\n\n.{css-prefix}popup-section-item\n &.{css-prefix}section-allday\n border: none\n padding: 0 0 0 8px\n cursor: pointer\n &.{css-prefix}section-location\n display: block\n\n input\n width: 400px\n\n.{css-prefix}section-allday .{css-prefix}icon.{css-prefix}ic-checkbox\n margin: 0\n\n.{css-prefix}popup-section-item.{css-prefix}section-allday .{css-prefix}content\n padding-left: 4px\n\n.{css-prefix}section-state\n width: 109px\n\n.{css-prefix}section-state .{css-prefix}content\n width: 58px\n text-overflow: ellipsis\n overflow: hidden\n\n.{css-prefix}popup-section-item\n height: 32px\n padding: 0 9px 0 12px\n border: 1px solid #d5d5d5\n display: inline-block\n font-size: 0\n border-radius: 2px\n\n.{css-prefix}popup-section-item:hover\n border-color: #bbbbbb\n\n.{css-prefix}popup-section-item:focus\n border-color: #bbbbbb\n\n.{css-prefix}popup-section-item .{css-prefix}icon\n position: relative\n\n.{css-prefix}icon.{css-prefix}ic-title\n top: 2px\n\n.{css-prefix}popup-section-item .{css-prefix}content\n text-align: left\n display: inline-block\n font-size: 12px\n vertical-align: middle\n position: relative\n padding-left: 8px\n\n.{css-prefix}section-calendar .{css-prefix}dropdown-button .{css-prefix}content\n width: 125px\n text-overflow: ellipsis\n overflow: hidden\n top: -1px\n\n.{css-prefix}popup-section-item input\n border: none\n height: 30px\n outline: none\n display: inline-block\n\n.{css-prefix}popup-section-item input::placeholder\n color: #bbbbbb\n font-weight: 300\n\n.{css-prefix}dropdown\n position: relative\n\n.{css-prefix}dropdown:hover .{css-prefix}dropdown-button\n border: 1px solid #bbbbbb\n\n.{css-prefix}dropdown-button.{css-prefix}popup-section-item\n height: 32px\n font-size: 0\n top: -1px\n\n.{css-prefix}dropdown-arrow\n background: url('image/ic-arrow-solid-bottom.png') no-repeat\n\n\n.dropdown.open\n.{css-prefix}open\n .{css-prefix}dropdown-arrow\n background: url('image/ic-arrow-solid-top.png') no-repeat\n\n.{css-prefix}dropdown-menu\n position: absolute\n top: 31px\n padding: 4px 0\n background-color: #ffffff\n border: 1px solid #d5d5d5\n border-top: none\n border-radius: 0 0 2px 2px\n width: 100%\n\n.{css-prefix}dropdown:hover .{css-prefix}dropdown-menu\n border: 1px solid #bbbbbb\n border-top: none\n\n.{css-prefix}dropdown-menu\n display: none\n\n.{css-prefix}open .{css-prefix}dropdown-menu\n display: block\n\n.{css-prefix}dropdown-menu-item\n height: 30px\n border: none\n cursor: pointer\n\n.{css-prefix}section-calendar .{css-prefix}dropdown-menu-item\n width: 100%;\n\n.{css-prefix}section-state .{css-prefix}dropdown-menu-item\n width: 100%;\n\n.{css-prefix}dropdown-menu-item:hover\n background-color: rgba(81, 92, 230, 0.05)\n\n.{css-prefix}dropdown-menu-item .{css-prefix}content\n line-height: 30px\n\n.{css-prefix}button.{css-prefix}popup-close\n position: absolute\n top: 10px\n right: 10px\n background-color: #ffffff\n padding: 2px\n border: none\n\n.{css-prefix}section-button-save\n height: 36px\n\n.{css-prefix}popup-save\n float: right\n\n.{css-prefix}popup-arrow-border, .{css-prefix}popup-arrow-fill\n position: absolute\n\n.{css-prefix}arrow-top .{css-prefix}popup-arrow-border\n border-top: none\n border-right: 8px solid transparent\n border-bottom: 8px solid #d5d5d5\n border-left: 8px solid transparent\n left: calc(50% - 8px)\n top: -7px\n\n.{css-prefix}arrow-right .{css-prefix}popup-arrow-border\n border-top: 8px solid transparent\n border-right: none\n border-bottom: 8px solid transparent\n border-left: 8px solid #d5d5d5\n top: calc(50% - 8px)\n right: -7px\n\n.{css-prefix}arrow-bottom .{css-prefix}popup-arrow-border\n border-top: 8px solid #d5d5d5\n border-right: 8px solid transparent\n border-bottom: none\n border-left: 8px solid transparent\n left: calc(50% - 8px)\n bottom: -7px\n\n.{css-prefix}arrow-left .{css-prefix}popup-arrow-border\n border-top: 8px solid transparent\n border-right: 8px solid #d5d5d5\n border-bottom: 8px solid transparent\n border-left: none\n top: calc(50% - 8px)\n left: -7px\n\n.{css-prefix}arrow-top .{css-prefix}popup-arrow-fill\n border-top: none\n border-right: 7px solid transparent\n border-bottom: 7px solid #ffffff\n border-left: 7px solid transparent\n left: -7px\n top: 1px\n\n.{css-prefix}arrow-right .{css-prefix}popup-arrow-fill\n border-top: 7px solid transparent\n border-right: none\n border-bottom: 7px solid transparent\n border-left: 7px solid #ffffff\n top: -7px\n right: 1px\n\n.{css-prefix}arrow-bottom .{css-prefix}popup-arrow-fill\n border-top: 7px solid #ffffff\n border-right: 7px solid transparent\n border-bottom: none\n border-left: 7px solid transparent\n left: -7px\n bottom: 1px\n\n.{css-prefix}arrow-left .{css-prefix}popup-arrow-fill\n border-top: 7px solid transparent\n border-right: 7px solid #ffffff\n border-bottom: 7px solid transparent\n border-left: none\n top: -7px\n left: 1px\n\n.{css-prefix}button\n background: #ffffff\n border: 1px solid #d5d5d5\n border-radius: 2px\n text-align: center\n outline: none\n font-size: 12px\n cursor: pointer\n color: #333\n\n &:hover\n border-color: #bbbbbb\n color: #333333\n\n\n.{css-prefix}button:active\n background: #f9f9f9\n color: #333333\n\n\n.{css-prefix}button .round\n border-radius: 25px\n\n.{css-prefix}confirm\n width: 96px\n height: 36px\n border-radius: 40px\n background-color: #ff6618\n font-size: 12px\n font-weight: bold\n color: #ffffff\n border: none\n\n.{css-prefix}confirm:hover\n background-color: #e55b15\n color: #ffffff\n\n.{css-prefix}confirm:active\n background-color: #d95614\n color: #ffffff\n\n/* icon styles */\n.{css-prefix}icon.{css-prefix}right\n float: right\n top: 1px\n\n.{css-prefix}icon .{css-prefix}none\n display: none\n\n.{css-prefix}icon.{css-prefix}calendar-dot\n border-radius: 8px;\n width: 12px;\n height: 12px;\n margin: 1px;\n\ninput[type='checkbox'].{css-prefix}checkbox-square\n display: none\n\ninput[type='checkbox'].{css-prefix}checkbox-square + span\n display: inline-block\n cursor: pointer\n line-height: 14px\n margin-right: 8px\n width: 14px\n height: 14px\n background: url('image/ic-checkbox-normal.png') no-repeat\n vertical-align: middle\n\ninput[type='checkbox'].{css-prefix}checkbox-square:checked + span {\n background: url('image/ic-checkbox-checked.png') no-repeat;\n}\n\ninput[type='checkbox'].{css-prefix}checkbox-round\n display: none\n\ninput[type='checkbox'].{css-prefix}checkbox-round + span\n display: inline-block\n cursor: pointer\n width: 14px\n height: 14px\n line-height: 14px\n vertical-align: middle\n margin-right: 8px\n border-radius: 8px\n border: solid 2px\n background: transparent\n\n.{css-prefix}popup-top-line\n position: absolute\n border-radius: 2px 2px 0 0\n width: 100%\n height: 4px\n border: none\n top: 0\n\n.{css-prefix}popup-detail .{css-prefix}popup-container\n width: 301px\n min-width: 301px\n padding-bottom: 0\n\n.{css-prefix}popup-detail .{css-prefix}icon\n width: 12px\n height: 12px\n background-size: 12px\n position: relative\n\n.{css-prefix}popup-detail .{css-prefix}icon\n margin-right: 8px\n\n.{css-prefix}popup-detail .{css-prefix}icon.{css-prefix}ic-location-b\n top: -2px\n\n.{css-prefix}popup-detail .{css-prefix}icon.{css-prefix}ic-user-b\n top: -2px\n\n.{css-prefix}popup-detail .{css-prefix}icon.{css-prefix}ic-state-b\n top: -1px\n\n.{css-prefix}popup-detail .{css-prefix}icon.{css-prefix}calendar-dot\n width: 10px\n height: 10px\n margin-right: 8px\n top: -1px\n\n.{css-prefix}popup-detail .{css-prefix}content\n line-height: 24px\n height: 24px\n font-size: 12px\n line-height: 2\n\n.{css-prefix}popup-detail .{css-prefix}section-header\n margin-bottom: 6px\n\n.{css-prefix}popup-detail .{css-prefix}popup-detail-item-separate\n margin-top: 4px\n\n.{css-prefix}popup-detail .{css-prefix}popup-detail-item-indent\n text-indent: -20px\n padding-left: 20px\n\n.{css-prefix}popup-detail .{css-prefix}schedule-title\n font-size: 15px\n font-weight: bold\n line-height: 1.6\n word-break: break-all\n\n.{css-prefix}popup-detail .{css-prefix}schedule-private\n display: none\n width: 16px\n height: 16px\n background: url('image/ic-lock.png') no-repeat 16px\n\n.{css-prefix}popup-detail .{css-prefix}schedule-private .{css-prefix}ic-private\n display: block\n\n.{css-prefix}popup-detail .{css-prefix}section-detail\n margin-bottom: 16px\n\n.{css-prefix}popup-detail .{css-prefix}section-button\n border-top: 1px solid #e5e5e5\n font-size: 0\n\n.{css-prefix}section-button .{css-prefix}icon\n margin-right: 4px\n top: -3px\n\n.{css-prefix}section-button .{css-prefix}content\n position: relative\n top: 2px\n\n.{css-prefix}popup-edit, .{css-prefix}popup-delete\n display: inline-block\n padding: 7px 9px 11px 9px\n width: calc(50% - 1px)\n outline: none\n background: none\n border: none\n cursor: pointer\n\n.{css-prefix}popup-vertical-line\n background: #e5e5e5\n width: 1px\n height: 14px\n vertical-align: middle\n display: inline-block\n margin-top: -7px\n\n/* override tui-date-picker */\n.tui-datepicker\n left: -12px\n z-index: 1\n border-color: #d5d5d5\n","/* icon styles */\n.{css-prefix}icon {\n width: 14px;\n height: 14px;\n display: inline-block;\n vertical-align: middle;\n}\n\n.{css-prefix}icon.{css-prefix}ic-title\n background: url('image/ic-subject.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-location\n background: url('image/ic-location.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-date\n background: url('image/ic-date.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-state\n background: url('image/ic-state.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-private\n background: url('image/ic-lock.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-public\n background: url('image/ic-unlock.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-close\n background: url('image/ic-close.png') no-repeat\n\n\n.{css-prefix}ic-location-b\n background: url('./image/ic-location-b.png')\n\n.{css-prefix}ic-state-b\n background: url('./image/ic-state-b.png')\n\n.{css-prefix}icon.{css-prefix}ic-user-b\n background-image: url('./image/ic-user-b.png')\n\n.{css-prefix}icon.{css-prefix}ic-edit\n background-image: url('./image/ic-edit.png')\n\n.{css-prefix}icon.{css-prefix}ic-delete\n background-image: url('./image/ic-delete.png')\n\n.{css-prefix}icon.{css-prefix}ic-arrow-solid-top\n background: url('image/ic-arrow-solid-top.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-milestone\n background: url('image/ic-milestone.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-arrow-left\n background: url('image/ic-arrow-left.png') no-repeat\n\n.{css-prefix}icon.{css-prefix}ic-arrow-right\n background: url('image/ic-arrow-right.png') no-repeat\n\n.{css-prefix}ic-repeat-b\n background: url('./image/ic-repeat-b.png')"]} \ No newline at end of file diff --git a/dist/tui-calendar.min.js b/dist/tui-calendar.min.js index 9ec0a100b..a36d6c099 100644 --- a/dist/tui-calendar.min.js +++ b/dist/tui-calendar.min.js @@ -1,8 +1,8 @@ /*! * TOAST UI Calendar - * @version 1.12.10 | Thu Jan 23 2020 + * @version 1.12.11 | Wed Feb 05 2020 * @author NHN FE Development Lab * @license MIT */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tui-code-snippet"),require("tui-date-picker")):"function"==typeof define&&define.amd?define(["tui-code-snippet","tui-date-picker"],t):"object"==typeof exports?exports.Calendar=t(require("tui-code-snippet"),require("tui-date-picker")):(e.tui=e.tui||{},e.tui.Calendar=t(e.tui&&e.tui.util,e.tui&&e.tui.DatePicker))}(window,function(e,t){return function(e){var t={};function n(l){if(t[l])return t[l].exports;var o=t[l]={i:l,l:!1,exports:{}};return e[l].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(l,o,function(t){return e[t]}.bind(null,o));return l},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist",n(n.s=36)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var l,o=n(6),i=n(13),a=n(0),r=/^auto$|^$|%/;var s=(l={appendHTMLElement:function(e,t,n){var l;return n=n||"",(l=document.createElement(e)).className=n,t?t.appendChild(l):document.body.appendChild(l),l},remove:function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},get:function(e){return document.getElementById(e)},_matcher:function(e,t){return/^\./.test(t)?l.hasClass(e,t.replace(".","")):/^#/.test(t)?e.id===t.replace("#",""):e.nodeName.toLowerCase()===t.toLowerCase()},find:function(e,t,n){var o=[],i=!1,r=a.isUndefined(n)||!1===n,s=a.isFunction(n);return a.isString(t)&&(t=l.get(t)),function e(t,a){for(var u,c=t.childNodes,d=0,h=c.length;d0&&(e(u,a),i))break}(t=t||window.document.body,e),r?o[0]||null:o},closest:function(e,t,n){var o=e.parentNode;if(!n&&l._matcher(e,t))return e;for(;o&&o!==window.document.body;){if(l._matcher(o,t))return o;o=o.parentNode}return null},text:function(e){var t="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)t+=l.text(e)}else if(3===o||4===o)return e.nodeValue}else for(;e[n];n+=1)t+=l.text(e[n]);return t},setData:function(e,t,n){"dataset"in e?e.dataset[t]=n:e.setAttribute("data-"+t,n)},getData:function(e,t){return"dataset"in e?e.dataset[t]:e.getAttribute("data-"+t)},hasClass:function(e,t){var n;return a.isUndefined(e.classList)?(n=l.getClass(e)).length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n):e.classList.contains(t)},addClass:function(e,t){var n;a.isUndefined(e.classList)?l.hasClass(e,t)||(n=l.getClass(e),l.setClass(e,(n?n+" ":"")+t)):a.forEachArray(t.split(" "),function(t){e.classList.add(t)})},setClass:function(e,t){a.isUndefined(e.className.baseVal)?e.className=t:e.className.baseVal=t},removeClass:function(e,t){var n="";a.isUndefined(e.classList)?(n=(" "+l.getClass(e)+" ").replace(" "+t+" "," "),l.setClass(e,function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(n))):e.classList.remove(t)},getClass:function(e){return e&&e.className?a.isUndefined(e.className.baseVal)?e.className:e.className.baseVal:""},getStyle:function(e,t){var n,l=e.style[t]||e.currentStyle&&e.currentStyle[t];return l&&"auto"!==l||!document.defaultView||(l=(n=document.defaultView.getComputedStyle(e,null))?n[t]:null),"auto"===l?null:l},getComputedStyle:function(e){var t=document.defaultView;return t&&t.getComputedStyle?document.defaultView.getComputedStyle(e):{getPropertyValue:function(t){var n=/(\-([a-z]){1})/g;return"float"===t&&(t="styleFloat"),n.test(t)&&(t=t.replace(n,function(){return arguments[2].toUpperCase()})),e.currentStyle[t]?e.currentStyle[t]:null}}},setPosition:function(e,t,n){t=a.isUndefined(t)?0:t,n=a.isUndefined(n)?0:n,e._pos=[t,n],e.style.left=a.isNumber(t)?t+"px":t,e.style.top=a.isNumber(n)?n+"px":n},setLTRB:function(e,t){var n;["left","top","right","bottom"].forEach(function(l){n=a.isUndefined(t[l])?"":t[l],e.style[l]=a.isNumber(n)?n+"px":n})},getPosition:function(e,t){var n,l,o;return t&&(e._pos=null),e._pos?e._pos:(n=0,l=0,(r.test(e.style.left)||r.test(e.style.top))&&"getBoundingClientRect"in e?(n=(o=e.getBoundingClientRect()).left,l=o.top):(n=parseFloat(e.style.left||0),l=parseFloat(e.style.top||0)),[n,l])},getSize:function(e){var t,n=l.getStyle(e,"width"),o=l.getStyle(e,"height");return(r.test(n)||r.test(o)||a.isNull(n)||a.isNull(o))&&"getBoundingClientRect"in e?(n=(t=e.getBoundingClientRect()).width||e.offsetWidth,o=t.height||e.offsetHeight):(n=parseFloat(n||0),o=parseFloat(o||0)),[n,o]},getBCRect:function(e){var t=e.getBoundingClientRect();return t=a.extend({width:e.offsetWidth,height:e.offsetHeight},t)},testProp:function(e){for(var t=document.documentElement.style,n=0,l=e.length;n12&&(t%=12),l.leadingZero(t,2)+":"+l.leadingZero(n,2)},tt:function(e){return e.getHours()<12?"am":"pm"}},l={MILLISECONDS_PER_DAY:864e5,MILLISECONDS_PER_HOUR:36e5,MILLISECONDS_PER_MINUTES:6e4,MILLISECONDS_SCHEDULE_MIN_DURATION:12e5,_convMilliseconds:function(e,n,l){var o={day:0,hour:1,minutes:2,seconds:3};return e in o&&!t.isNaN(n)&&r.reduce([n].concat([24,60,60,1e3].slice(o[e])),l)},millisecondsTo:function(e,t){var n=u,o=e+t;return n[o]?n[o]:(n[o]=l._convMilliseconds(e,t,function(e,t){return e/t}),n[o])},millisecondsFrom:function(e,t){var n=c,o=e+t;return n[o]?n[o]:(n[o]=l._convMilliseconds(e,t,function(e,t){return e*t}),n[o])},minutesFromHours:function(e){return 60*e},range:function(e,t,n){for(var o=e.getTime(),r=t.getTime(),s=o,u=a(new i(e)),c=[];s<=r&&r>=u.d.getTime();)c.push(l.start(u.d)),s+=n,u.addDate(1);return c},clone:function(e){return new i(e)},compare:function(e,t){var n=e.getTime(),l=t.getTime();return nl?1:0},isSameMonth:function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},isSameDate:function(e,t){return l.isSameMonth(e,t)&&e.getDate()===t.getDate()},isValid:function(e){return e instanceof i&&!window.isNaN(e.getTime())},toUTC:function(e){var t=e.getTime(),n=l.millisecondsFrom("minutes",(new Date).getTimezoneOffset());return new i(t+n)},leadingZero:function(e,t){var n="",l=0;if(String(e).length>t)return String(e);for(;l8?(n=~e.indexOf("/")?"/":"-",l=(a=a.splice(1))[0].split(n),o=a[1]?a[1].split(":"):[0,0,0]):(l=[(a=a[0]).substr(0,4),a.substr(4,2),a.substr(6,2)],o=[0,0,0]),(new i).setWithRaw(Number(l[0]),Number(l[1])+t,Number(l[2]),Number(o[0]),Number(o[1]),Number(o[2]),0))},raw:function(e){return{y:e.getFullYear(),M:e.getMonth(),d:e.getDate(),h:e.getHours(),m:e.getMinutes(),s:e.getSeconds(),ms:e.getMilliseconds()}},start:function(e){var t=e?new i(e):new i;return t.setHours(0,0,0,0),t},end:function(e){var t=e?new i(e):new i;return t.setHours(23,59,59,0),t},format:function(e,t){var n=t;return r.forEachOwnProperties(o,function(t,l){n=n.replace(l,t(e))}),n},startDateOfMonth:function(e){var t=new i(e);return t.setDate(1),t.setHours(0,0,0,0),t},endDateOfMonth:function(e){var t=l.startDateOfMonth(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t.setHours(23,59,59),t},arr2dCalendar:function(e,t,n){var o,s,u,c,d,h,p,m,f=[],g=t.startDayOfWeek,y=!!r.isUndefined(t.isAlways6Week)||t.isAlways6Week,S=t.visibleWeeksCount,_=t.workweek;return S?(s=new i(e),(u=a(new i(e))).addDate(7*(S-1)),u=u.d):(s=l.startDateOfMonth(e),u=l.endDateOfMonth(e)),o=r.range(g,7).concat(r.range(7)).slice(0,7),c=r.inArray(s.getDay(),o),h=7-(r.inArray(u.getDay(),o)+1),d=S?7*S:y?42:c+u.getDate()+h,p=l.start(s).addDate(-c),r.forEachArray(r.range(d),function(e){var t;e%7||(m=f[e/7]=[]),t=l.start(p),t=n?n(t):t,_&&l.isWeekend(t.getDay())||m.push(t),p.setDate(p.getDate()+1)}),f},getGridLeftAndWidth:function(e,t,n,o){var i=100/e,a=e>5?100/(e-1):i,s=0,u=r.range(n,7).concat(r.range(e)).slice(0,7);return o&&(u=r.filter(u,function(e){return!l.isWeekend(e)})),t=!o&&t,r.map(u,function(n){var o,r=t?a:i;return e>5&&t&&l.isWeekend(n)&&(r=a/2),o={day:n,width:r,left:s},s+=r,o})},isWeekend:function(e){return 0===e||6===e},isBetweenWithDate:function(e,t,n){return e=parseInt(l.format(e,"YYYYMMDD"),10),t=parseInt(l.format(t,"YYYYMMDD"),10),n=parseInt(l.format(n,"YYYYMMDD"),10),t<=e&&e<=n},isStartOfDay:function(e){return!l.compare(l.start(e),e)},convertStartDayToLastDay:function(e){var t=new i(e);return l.isStartOfDay(e)&&t.setDate(t.getDate()-1),t},getStartOfNextDay:function(e){var t=l.start(e);return t.setHours(24),t}},e.exports=l}).call(this,n(9))},function(e,t,n){"use strict";var l=n(0),o=6e4,i=u(),a=i,r=null,s=!1;function u(e){return e=e||Date.now(),new Date(e).getTimezoneOffset()*o}function c(e){return!s&&r?r(e)*o:a}function d(e){var t;if(e instanceof Date)t=e.getTime();else{if("string"!=typeof e)throw new Error("Invalid Type");t=Date.parse(e)}return t=function(e){var t=u(e),n=c(e);return e-n+t+(n?0:i-t)}(t),new Date(t)}function h(e){var t;l.isUndefined(e)&&(e=Date.now()),t=arguments.length>1?function(e){var t=Date.UTC.apply(null,e);return new Date(t+u(t))}(arguments):function(e){return e instanceof Date||"string"==typeof e}(e)?d(e):function(e){var t;if(e instanceof h)t=e.getUTCTime();else if("number"==typeof e)t=e;else{if(null!==e)throw new Error("Invalid Type");t=0}return new Date(t)}(e),this._date=t}h.prototype.getTime=function(){var e=this._date.getTime();return e+c(e)-u(e)},h.prototype.getUTCTime=function(){return this._date.getTime()},h.prototype.toUTCString=function(){return this._date.toUTCString()},h.prototype.toDate=function(){return this._date},h.prototype.valueOf=function(){return this.getTime()},h.prototype.addDate=function(e){return this.setDate(this.getDate()+e),this},h.prototype.addMinutes=function(e){return this.setMinutes(this.getMinutes()+e),this},h.prototype.addMilliseconds=function(e){return this.setMilliseconds(this.getMilliseconds()+e),this},h.prototype.setWithRaw=function(e,t,n,l,o,i,a){return this.setFullYear(e,t,n),this.setHours(l,o,i,a),this},h.prototype.toLocalTime=function(){var e=this.getTime(),t=this.getUTCTime();return new h(t-(e-t))},["getDate","getDay","getFullYear","getHours","getMilliseconds","getMinutes","getMonth","getSeconds"].forEach(function(e){h.prototype[e]=function(){return this._date[e].apply(this._date,arguments)}}),["setDate","setFullYear","setHours","setMilliseconds","setMinutes","setMonth","setSeconds"].forEach(function(e){h.prototype[e]=function(){return this._date[e].apply(this._date,arguments),this.getTime()}}),e.exports={Date:h,setOffset:function(e){a=e*o},setOffsetByTimezoneOption:function(e){this.setOffset(-e),s=!0},getOffset:function(){return s?a/o:0},setOffsetCallback:function(e){r=e},restoreOffset:function(){a=u()}}},function(e,t,n){"use strict";var l=n(0),o=Array.prototype.slice,i=n(1),a=n(13),r=n(3);function s(e){return e.cid()}e.exports={createScheduleCollection:function(e){var t=new a(s);return arguments.length&&t.add.apply(t,arguments),t},ratio:function(e,t,n){return t*n/e},nearest:function(e,t){var n=l.map(t,function(t){return Math.abs(e-t)});return t[l.inArray(Math.min.apply(null,n),n)]},pick2:function(e,t){var n=l.pick.apply(null,arguments);return{val:function(){return n},then:function(e){var t;if(n)return t=o.call(arguments,1),l.isString(e)?(l.pick(n,e)||function(){}).apply(n,t):e.call(n,n)}}},mixin:function(e,t){l.extend(t.prototype,e)},limit:function(e,t,n){var l=Math.max.apply(null,[e].concat(t));return l=Math.min.apply(null,[l].concat(n))},limitDate:function(e,t,n){return en?n:e},maxDate:function(e,t){return e>t?e:t},stripTags:function(e){return e.replace(/<([^>]+)>/gi,"")},firstIn2dArray:function(e){return l.pick(e,"0","0")},lastIn2dArray:function(e){var t=e.length-1,n=e[t].length-1;return l.pick(e,t,n)},setAutoEllipsis:function(e,t,n){l.forEach(i.find(e,t,!0),function(e){(n||e.offsetWidth0)for(n=0;n0?e=(e+t)%24:t<0&&(e=(e+=t)>0?e:24+e),e},parseUnit:function(e){return[parseFloat(e,10),e.match(/[\d.\-+]*\s*(.*)/)[1]||""]},find:function(e,t,n){var o;return l.forEach(e,function(e){return t&&(o=t(e)),!o||(o=e,!1)},n),o},getScheduleChanges:function(e,t,n){var o={},i=["start","end"];return l.forEach(t,function(t){i.indexOf(t)>-1?r.compare(e[t],n[t])&&(o[t]=n[t]):n[t]&&e[t]!==n[t]&&(o[t]=n[t])}),l.isEmpty(o)?null:o}}},function(e,t,n){"use strict";var l=n(0),o=l.browser,i={START:["touchstart","mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},a={on:function(e,t,n,o){l.isString(t)?l.forEach(t.split(" "),function(t){a._on(e,t,n,o)}):l.forEachOwnProperties(t,function(t,l){a._on(e,l,t,n)})},_on:function(e,t,n,o){var i,r,s;i=t+l.stamp(n)+(o?"_"+l.stamp(o):""),e._evt&&e._evt[i]||(s=r=function(t){n.call(o||e,t||window.event)},"addEventListener"in e?"mouseenter"===t||"mouseleave"===t?(r=function(t){t=t||window.event,a._checkMouse(e,t)&&s(t)},e.addEventListener("mouseenter"===t?"mouseover":"mouseout",r,!1)):("mousewheel"===t&&e.addEventListener("DOMMouseScroll",r,!1),e.addEventListener(t,r,!1)):"attachEvent"in e&&e.attachEvent("on"+t,r),e._evt=e._evt||{},e._evt[i]=r)},off:function(e,t,n,o){l.isString(t)?l.forEach(t.split(" "),function(t){a._off(e,t,n,o)}):l.forEachOwnProperties(t,function(t,l){a._off(e,l,t,n)})},_off:function(e,t,n,o){var i=t+l.stamp(n)+(o?"_"+l.stamp(o):""),a=e._evt&&e._evt[i];if(a){if("removeEventListener"in e)"mouseenter"===t||"mouseleave"===t?e.removeEventListener("mouseenter"===t?"mouseover":"mouseout",a,!1):("mousewheel"===t&&e.removeEventListener("DOMMouseScroll",a,!1),e.removeEventListener(t,a,!1));else if("detachEvent"in e)try{e.detachEvent("on"+t,a)}catch(e){}delete e._evt[i],l.keys(e._evt).length||(l.browser.msie&&l.browser.version<9?e._evt=null:delete e._evt)}},once:function(e,t,n,o){var i=this;l.isObject(t)?l.forEachOwnProperties(t,function(t,l){a.once(e,l,t,n)}):a.on(e,t,function l(){n.apply(o||e,arguments),i._off(e,t,l,o)},o)},stopPropagation:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},preventDefault:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},stop:function(e){a.preventDefault(e),a.stopPropagation(e)},disableScrollPropagation:function(e){a.on(e,"mousewheel MozMousePixelScroll",a.stopPropagation)},disableClickPropagation:function(e){a.on(e,i.START.join(" ")+" click dblclick",a.stopPropagation)},getMousePosition:function(e,t){var n;return t?(n=t.getBoundingClientRect(),[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]):[e.clientX,e.clientY]},getWheelDelta:function(e){var t=0;return e.wheelDelta&&(t=e.wheelDelta/120),e.detail&&(t=-e.detail/3),t},_checkMouse:function(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e},trigger:function(e,t,n){l.isUndefined(n)&&/(mouse|click)/.exec(t)&&(n=a.mouseEvent(t)),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent&&e.fireEvent("on"+t,n)},mouseEvent:function(e,t){var n,i;return i=l.extend({bubbles:!0,cancelable:"mousemove"!==e,view:window,wheelDelta:0,detail:0,screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0},t),o.msie&&o.version<9&&delete i.wheelDelta,"function"==typeof document.createEvent?(n=document.createEvent("MouseEvents")).initMouseEvent(e,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,document.body.parentNode):document.createEventObject&&(n=document.createEventObject(),l.forEach(i,function(e,t){n[t]=e},this),n.button={0:1,1:4,2:2}[n.button]||n.button),n},getMouseButton:function(e){var t;return document.implementation.hasFeature("MouseEvents","2.0")?e.button:(t=String(e.button),"0,1,3,5,7".indexOf(t)>-1?0:"2,6".indexOf(t)>-1?2:~"4".indexOf(t)?1:-1)}};e.exports=a},function(e,t,n){e.exports=n(21).default},function(e,t,n){"use strict";var l=n(0),o=n(1),i=n(13);function a(e){var t=l.stamp(this);l.isUndefined(e)&&(e=o.appendHTMLElement("div")),o.addClass(e,this.cssprefix(t)),this.id=t,this.container=e,this.children=new i(function(e){return l.stamp(e)}),this.parent=null,this.state={}}a.prototype.cssPrefix="tui-view-",a.prototype.addChild=function(e,t){t&&t.call(e,this),e.parent=this,this.children.add(e)},a.prototype.removeChild=function(e,t){var n=l.isNumber(e)?this.children.items[e]:e;e=l.stamp(n),t&&t.call(n,this),this.children.remove(e)},a.prototype.render=function(){this.children.each(function(e){e.render()})},a.prototype.recursive=function(e,t){l.isFunction(e)&&(t||e(this),this.children.each(function(t){t.recursive(e)}))},a.prototype.resize=function(){for(var e=Array.prototype.slice.call(arguments),t=this.parent;t;)l.isFunction(t._onResize)&&t._onResize.apply(t,e),t=t.parent},a.prototype._beforeDestroy=function(){},a.prototype._destroy=function(){this._beforeDestroy(),this.children.clear(),this.container.innerHTML="",this.id=this.parent=this.children=this.container=null},a.prototype.destroy=function(e){this.children.each(function(e){e.destroy(!0),e._destroy()}),e||this._destroy()},a.prototype.getViewBound=function(){var e=this.container,t=o.getPosition(e),n=o.getSize(e);return{x:t[0],y:t[1],width:n[0],height:n[1]}},a.prototype.cssprefix=function(e){return this.cssPrefix+(e||"")},a.prototype.setState=function(e){l.extend(this.state,e)},l.CustomEvents.mixin(a),e.exports=a},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.__esModule=!0,t.extend=r,t.indexOf=function(e,t){for(var n=0,l=e.length;n":">",'"':""","'":"'","`":"`","=":"="},o=/[&<>"'`=]/g,i=/[&<>"'`=]/;function a(e){return l[e]}function r(e){for(var t=1;t1?i(s.call(arguments),function(e){l.add(e)}):(t=this.getItemID(e),(n=this.items)[t]||(this.length+=1),n[t]=e)},u.prototype.remove=function(e){var t,n,o=this,i=[];return this.length?arguments.length>1?i=l.map(s.call(arguments),function(e){return o.remove(e)}):(t=this.items,r(e)&&(e=this.getItemID(e)),t[e]?(this.length-=1,n=t[e],delete t[e],n):i):i},u.prototype.clear=function(){this.items={},this.length=0},u.prototype.has=function(e){var t,n;return!!this.length&&(t=a(e),n=!1,t?this.each(function(t){return!0!==e(t)||(n=!0,!1)}):(e=r(e)?this.getItemID(e):e,n=l.isExisty(this.items[e])),n)},u.prototype.doWhenHas=function(e,t,n){var o=this.items[e];l.isExisty(o)&&t.call(n||this,o)},u.prototype.find=function(e){var t=new u;return this.hasOwnProperty("getItemID")&&(t.getItemID=this.getItemID),this.each(function(n){!0===e(n)&&t.add(n)}),t},u.prototype.groupBy=function(e,t){var n,o,i={},r=a(e),s=this.getItemID;if(l.isArray(e)){if(l.forEachArray(e,function(e){i[String(e)]=new u(s)}),!t)return i;e=t,r=!0}return this.each(function(t){r?o=e(t):(o=t[e],a(o)&&(o=o.apply(t))),(n=i[o])||(n=i[o]=new u(s)),n.add(t)}),i},u.prototype.single=function(e){var t,n=l.isFunction(e);return this.each(function(l){return n&&!e(l)||(t=l,!1)},this),t},u.prototype.sort=function(e){var t=[];return this.each(function(e){t.push(e)}),a(e)&&(t=t.sort(e)),t},u.prototype.each=function(e,t){o(this.items,e,t||this)},u.prototype.toArray=function(){return this.length?l.map(this.items,function(e){return e}):[]},e.exports=u},function(e,t,n){"use strict";var l=n(0),o=n(4).Date,i=n(3),a=n(55),r=n(56),s=i.MILLISECONDS_SCHEDULE_MIN_DURATION,u="allday";function c(){this.id="",this.title="",this.body="",this.isAllDay=!1,this.start=null,this.end=null,this.color="#000",this.isVisible=!0,this.bgColor="#a1b56c",this.dragBgColor="#a1b56c",this.borderColor="#000",this.calendarId="",this.category="",this.dueDateClass="",this.customStyle="",this.isPending=!1,this.isFocused=!1,this.isReadOnly=!1,this.isPrivate=!1,this.location="",this.attendees=[],this.recurrenceRule="",this.state="",this.goingDuration=0,this.comingDuration=0,this.raw=null,l.stamp(this)}c.schema={required:["title"],dateRange:["start","end"]},c.create=function(e){var t=new c;return t.init(e),t},c.prototype.init=function(e){(e=l.extend({},e)).category===u&&(e.isAllDay=!0),this.id=e.id||"",this.title=e.title||"",this.body=e.body||"",this.isAllDay=!!l.isExisty(e.isAllDay)&&e.isAllDay,this.isVisible=!l.isExisty(e.isVisible)||e.isVisible,this.color=e.color||this.color,this.bgColor=e.bgColor||this.bgColor,this.dragBgColor=e.dragBgColor||this.dragBgColor,this.borderColor=e.borderColor||this.borderColor,this.calendarId=e.calendarId||"",this.category=e.category||"",this.dueDateClass=e.dueDateClass||"",this.customStyle=e.customStyle||"",this.location=e.location||"",this.attendees=e.attendees||[],this.recurrenceRule=e.recurrenceRule||"",this.isPrivate=e.isPrivate||!1,this.isPending=e.isPending||!1,this.isFocused=e.isFocused||!1,this.isReadOnly=e.isReadOnly||!1,this.goingDuration=e.goingDuration||0,this.comingDuration=e.comingDuration||0,this.state=e.state||"",this.isAllDay?this.setAllDayPeriod(e.start,e.end):this.setTimePeriod(e.start,e.end),this.raw=e.raw||null},c.prototype.setAllDayPeriod=function(e,t){e=l.isString(e)?i.parse(e.substring(0,10)):new o(e||Date.now()),t=l.isString(t)?i.parse(t.substring(0,10)):new o(t||this.start),this.start=e,this.start.setHours(0,0,0),this.end=t||new o(this.start),this.end.setHours(23,59,59)},c.prototype.setTimePeriod=function(e,t){this.start=new o(e||Date.now()),this.end=new o(t||this.start),t||this.end.setMinutes(this.end.getMinutes()+30)},c.prototype.getStarts=function(){return this.start},c.prototype.getEnds=function(){return this.end},c.prototype.cid=function(){return l.stamp(this)},c.prototype.equals=function(e){return this.id===e.id&&(this.title===e.title&&(this.body===e.body&&(this.isAllDay===e.isAllDay&&(0===i.compare(this.getStarts(),e.getStarts())&&(0===i.compare(this.getEnds(),e.getEnds())&&(this.color===e.color&&(this.bgColor===e.bgColor&&(this.dragBgColor===e.dragBgColor&&this.borderColor===e.borderColor))))))))},c.prototype.duration=function(){var e=this.getStarts(),t=this.getEnds();return this.isAllDay?i.end(t)-i.start(e):t-e},c.prototype.collidesWith=function(e){var t=this.getStarts(),n=this.getEnds(),l=e.getStarts(),o=e.getEnds(),a=i.millisecondsFrom("minutes",this.goingDuration),r=i.millisecondsFrom("minutes",this.comingDuration),u=i.millisecondsFrom("minutes",e.goingDuration),c=i.millisecondsFrom("minutes",e.comingDuration);return Math.abs(n-t)(t-=a)&&lt&&o=n},r.mixin(c.prototype),a.mixin(c.prototype),e.exports=c},function(e,t,n){"use strict";var l=n(0),o=n(3);function i(e,t){return e!==t?e?-1:1:0}function a(e,t){var n=String(e),l=String(t);return n>l?1:n0))return o;s=o-1}return~s},compare:{schedule:{asc:function(e,t){var n,a,r,s,u=e.valueOf(),c=t.valueOf();return(r=i(u.isAllDay||e.hasMultiDates,c.isAllDay||t.hasMultiDates))?r:(s=o.compare(e.getStarts(),t.getStarts()))?s:(n=e.duration())<(a=t.duration())?1:n>a?-1:l.stamp(u)-l.stamp(c)}},bool:{asc:i,desc:function(e,t){return e!==t?e?1:-1:0}},num:{asc:function(e,t){return Number(e)-Number(t)},desc:function(e,t){var n=Number(e);return Number(t)-n}},str:{asc:a,desc:function(e,t){var n=String(e),l=String(t);return n>l?-1:nl?1:nl?-1:n30?t=1:e<=30&&(t=.5),t}e.exports=u},function(e,t,n){"use strict";var l=n(0),o=n(5),i=n(1),a=n(6),r=Math.floor;e.exports=function(e){var t=e.children,n=t.sort(function(e,t){return l.stamp(e)-l.stamp(t)}),s=t.length,u=t.single().getRenderDateRange().length,c=l.pick(e.vLayout.panels[1],"container"),d=i.getSize(c),h=e.grids;return function(e){var t,i,p,m=a.getMousePosition(e,c),f=function(e){for(var t,n=0,l=h.length;n=n.length&&(g=n.length-1),(t=l.pick(n,g))?(p=t.getRenderDateRange(),f<0&&(f=0),f>=p.length&&(f=p.length-1),(i=l.pick(p,f))?{x:f,y:g,sizeX:u,sizeY:s,date:i,weekdayView:t,triggerEvent:e.type}:null):null}}},function(e,t,n){e.exports=n(21)},function(e,t,n){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var i=o(n(22)),a=l(n(48)),r=l(n(12)),s=o(n(10)),u=o(n(49)),c=l(n(51));function d(){var e=new i.HandlebarsEnvironment;return s.extend(e,i),e.SafeString=a.default,e.Exception=r.default,e.Utils=s,e.escapeExpression=s.escapeExpression,e.VM=u,e.template=function(t){return u.template(t,e)},e}var h=d();h.create=d,c.default(h),h.default=h,t.default=h,e.exports=t.default},function(e,t,n){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.HandlebarsEnvironment=c;var o=n(10),i=l(n(12)),a=n(23),r=n(45),s=l(n(24)),u=n(25);t.VERSION="4.7.2";t.COMPILER_REVISION=8;t.LAST_COMPATIBLE_COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function c(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},a.registerDefaultHelpers(this),r.registerDefaultDecorators(this)}c.prototype={constructor:c,logger:s.default,log:s.default.log,registerHelper:function(e,t){if("[object Object]"===o.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple helpers");o.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if("[object Object]"===o.toString.call(e))o.extend(this.partials,e);else{if(void 0===t)throw new i.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if("[object Object]"===o.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple decorators");o.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){u.resetLoggedProperties()}};var d=s.default.log;t.log=d,t.createFrame=o.createFrame,t.logger=s.default},function(e,t,n){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.registerDefaultHelpers=function(e){o.default(e),i.default(e),a.default(e),r.default(e),s.default(e),u.default(e),c.default(e)},t.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])};var o=l(n(38)),i=l(n(39)),a=l(n(40)),r=l(n(41)),s=l(n(42)),u=l(n(43)),c=l(n(44))},function(e,t,n){"use strict";t.__esModule=!0;var l=n(10),o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=l.indexOf(o.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=o.lookupLevel(e),"undefined"!=typeof console&&o.lookupLevel(o.level)<=e){var t=o.methodMap[e];console[t]||(t="log");for(var n=arguments.length,l=Array(n>1?n-1:0),i=1;i0?i.d.setMonth(o+1,0):i.d.setMonth(t,0),a=i.d.getDate())),this.d.setMonth(o,Math.min(n,a)),this},o.prototype._isLeapYear=function(){var e=this.d.getFullYear();return e%4==0&&e%100!=0||!(e%400)},o.prototype.setHours=function(e,t,n,l){return this.d.setHours(e,t,n,l),this},o.prototype.isBetween=function(e,t){var n=this.safe;return n(e)<=this.d&&this.d<=n(t)},e.exports=o},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(1),i=n(6);function a(e,t){i.on(t,"mousedown",this._onMouseDown,this),this.options=l.extend({distance:10,exclude:null},e),this.container=t,this._cancelled=!1,this._isMoved=!1,this._distance=0,this._dragStartFired=!1,this._dragStartEventData=null}a.prototype.destroy=function(){i.off(this.container,"mousedown",this._onMouseDown,this),this._isMoved=null,this.container=null},a.prototype._clearData=function(){this._cancelled=!1,this._distance=0,this._isMoved=!1,this._dragStartFired=!1,this._dragStartEventData=null},a.prototype._toggleDragEvent=function(e){var n,l,a=this.container;e?(n="on",l="disable"):(n="off",l="enable"),o[l+"TextSelection"](a),o[l+"ImageDrag"](a),i[n](t.document,{mousemove:this._onMouseMove,mouseup:this._onMouseUp},this)},a.prototype._getEventData=function(e){return{target:e.target||e.srcElement,originEvent:e}},a.prototype._onMouseDown=function(e){var t=this.options,n=e.srcElement||e.target;0===i.getMouseButton(e)&&(t.exclude&&t.exclude(n)?this._cancelled=!0:(this._clearData(),this._dragStartEventData=this._getEventData(e),this._toggleDragEvent(!0),this.fire("mousedown",this._dragStartEventData)))},a.prototype._onMouseMove=function(e){var t;if(this._cancelled)this._clearData();else if(t=this.options.distance,i.preventDefault(e),this._distance(t-=r)&&lt&&a=n},e.exports=a},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(1),r=n(6),s=n(8),u=n(64),c=n(27),d=Math.abs;function h(e,t,n){var i,r;if(!(this instanceof h))return new h(e,t);s.call(this,t),a.addClass(t,o.classname("vlayout-container")),i=this.options=l.extend({panels:[],panelHeights:[]},e),this.panels=[],this._drag=new c({distance:10,exclude:function(e){return!a.hasClass(e,o.classname("splitter"))}},t),this._drag.on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd},this),this._dragData=null,this.theme=n,i.panels.length&&(i.panelHeights.length&&(r=i.panelHeights.slice(),l.forEach(i.panels,function(e){e.isSplitter||e.autoHeight||(e.height=r.shift())})),this.addPanels(i.panels,this.container)),this.refresh()}l.inherit(h,s),h.prototype.getLayoutData=function(){var e=[];return l.forEach(this.panels,function(t){t.isSplitter()||t.options.autoHeight||e.push(t.getHeight())}),e},h.prototype.setLayoutData=function(e){e.length&&(l.forEach(this.panels,function(t){t.isSplitter()||t.options.autoHeight||t.setHeight(null,e.shift())}),this.refresh())},h.prototype.nextPanel=function(e){return this.panels[e.index+1]},h.prototype.prevPanel=function(e){return this.panels[e.index-1]},h.prototype._initializeGuideElement=function(e,t){var n=e.cloneNode(!0);return a.addClass(n,o.classname("splitter-guide")),this._refreshGuideElement(n,t),this.container.appendChild(n),n},h.prototype._refreshGuideElement=function(e,t){e.style.top=t+"px"},h.prototype._clearGuideElement=function(e){a.remove(e)},h.prototype._resize=function(e,t,n){var o,i,a=d(t-n),r=[],s=n>t,u=s?"nextPanel":"prevPanel";for(i=(o=this[s?"prevPanel":"nextPanel"](e)).getResizeInfoByGrowth(a),r.push([o,i[0]]),o=this[u](o);l.isExisty(o);o=this[u](o))o.isSplitter()||(i=o.getResizeInfoByGrowth(-a),r.push([o,i[0]]),a-=i[1]);l.forEach(r,function(e){e[0].setHeight(null,e[1],!0),e[0].fire("resize")})},h.prototype._getMouseYAdditionalLimit=function(e){var t,n=0,o=0,i=function(e){return e.isSplitter()?e.getHeight():e.options.minHeight};for(t=this.prevPanel(e);l.isExisty(t);t=this.prevPanel(t))n+=i(t);for(t=this.nextPanel(e);l.isExisty(t);t=this.nextPanel(t))o+=i(t);return[n,o]},h.prototype._onDragStart=function(e){var t=e.originEvent,n=e.target,i=a.getData(n,"panelIndex"),s=this.panels[i],u=s.getHeight(),c=r.getMousePosition(t,n)[1],d=r.getMousePosition(t,this.container)[1],h=this._initializeGuideElement(n,d);s.addClass(o.classname("splitter-focused")),this._dragData={splPanel:s,splOffsetY:c,guideElement:h,startY:d-c,minY:0,maxY:this.getViewBound().height-u},l.browser.msie||a.addClass(document.body,o.classname("resizing"))},h.prototype._onDrag=function(e){var t=this._dragData,n=r.getMousePosition(e.originEvent,this.container)[1];n=i.limit(n-t.splOffsetY,[t.minY],[t.maxY]),this._refreshGuideElement(t.guideElement,n)},h.prototype._onDragEnd=function(e){var t=this._dragData,n=this._getMouseYAdditionalLimit(t.splPanel),l=r.getMousePosition(e.originEvent,this.container)[1];l=i.limit(l-t.splOffsetY,[t.minY+n[0]],[t.maxY-n[1]]),this._resize(t.splPanel,t.startY,l),this.fire("resize",{layoutData:this.getLayoutData()}),this._dragData=null,this._clearGuideElement(t.guideElement),t.splPanel.removeClass(o.classname("splitter-focused")),a.removeClass(document.body,o.classname("resizing"))},h.prototype.refresh=function(){var e,t=[],n=this.getViewBound().height,o=0;n&&(l.forEach(this.panels,function(e){e.options.autoHeight?t.push(e):o+=e.getHeight()}),e=(n-o)/t.length,l.forEach(t,function(t){t.setHeight(null,e)}))},h.prototype.addPanel=function(e,t){var n=document.createElement("div"),o=this.panels,i=o.length;e=l.extend({index:i},e),o.push(new u(e,n,this.theme)),t.appendChild(n)},h.prototype.addPanels=function(e,t){var n=this,o=document.createDocumentFragment();l.forEach(e,function(e){n.addPanel(e,o)}),t.appendChild(o)},h.prototype.getPanelByName=function(e){var t;return l.forEach(this.panels,function(n){n.name===e&&(t=n)}),t},e.exports=h},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1),a=n(3),r=n(4).Date,s=n(8);function u(e,t){t=i.appendHTMLElement("div",t,o.classname("weekday")),this.options=l.extend({containerBottomGutter:8,scheduleHeight:18,scheduleGutter:2,narrowWeekend:!1,startDayOfWeek:0,workweek:!1},e),this._cacheParentViewModel=null,s.call(this,t)}l.inherit(u,s),u.prototype.getRenderDateRange=function(){return this._cacheParentViewModel.range},u.prototype.getRenderDateGrids=function(){return this._cacheParentViewModel.grids},u.prototype.getBaseViewModel=function(e){var t=this.options,n=e.range,o=100/n.length,i=e.grids,s=e.exceedDate||{},u=e.theme,c=(new r).toLocalTime();return this._cacheParentViewModel=e,{width:o,scheduleHeight:t.scheduleHeight,scheduleBlockHeight:t.scheduleHeight+t.scheduleGutter,scheduleBlockGutter:t.scheduleGutter,dates:l.map(n,function(e,t){var n=e.getDay(),l=a.format(new r(e),"YYYYMMDD"),o=a.isSameDate(c,e);return{date:a.format(e,"YYYY-MM-DD"),month:e.getMonth()+1,day:n,isToday:o,ymd:l,hiddenSchedules:s[l]||0,width:i[t]?i[t].width:0,left:i[t]?i[t].left:0,color:this._getDayNameColor(u,n,o),backgroundColor:this._getDayBackgroundColor(u,n)}},this)}},u.prototype.getExceedDate=function(e,t,n){var o=this._initExceedDate(n);return l.forEach(t,function(t){l.forEach(t,function(t){l.forEach(t,function(t){var n;!t||t.top0&&i+e.width>t.right&&(i=t.right-e.width),i<0&&(i=0),o-i!=e.width/2&&(l=o-i-8),{x:i,y:a,arrow:{direction:r,position:l}}},m.prototype._setArrowDirection=function(e){var t=e.direction||"arrow-bottom",n=c.get(s.classname("popup-arrow")),l=c.find(s.classname(".popup-arrow-border",n));t!==s.classname("arrow-bottom")&&(c.removeClass(n,s.classname("arrow-bottom")),c.addClass(n,s.classname(t))),e.position&&(l.style.left=e.position+"px")},m.prototype._createDatepicker=function(e,t,n){var l=s.cssPrefix;this.rangePicker=a.createRangePicker({startpicker:{date:new p(e).toDate(),input:"#"+l+"schedule-start-date",container:"#"+l+"startpicker-container"},endpicker:{date:new p(t).toDate(),input:"#"+l+"schedule-end-date",container:"#"+l+"endpicker-container"},format:n?"yyyy-MM-dd":"yyyy-MM-dd HH:mm",timepicker:n?null:{showMeridiem:!1,usageStatistics:this._usageStatistics},usageStatistics:this._usageStatistics})},m.prototype.hide=function(){this.layer.hide(),this.guide&&(this.guide.clearGuideElement(),this.guide=null),u.off(document.body,"mousedown",this._onMouseDown,this)},m.prototype.refresh=function(){this._viewModel&&this.layer.setContent(this.tmpl(this._viewModel))},m.prototype.setCalendars=function(e){this.calendars=e||[]},e.exports=m},function(e,t,n){"use strict";var l=n(8),o=n(16),i=n(0),a=n(2),r=n(6),s=n(1),u=n(81);function c(e){l.call(this,e),this.layer=new o(null,e),this._viewModel=null,this._schedule=null,this._calendar=null,r.on(e,"click",this._onClick,this)}i.inherit(c,l),c.prototype._onMouseDown=function(e){var t=e.target||e.srcElement;s.closest(t,a.classname(".floating-layer"))||this.hide()},c.prototype.destroy=function(){this.layer.destroy(),this.layer=null,r.off(this.container,"click",this._onClick,this),r.off(document.body,"mousedown",this._onMouseDown,this),l.prototype.destroy.call(this)},c.prototype._onClick=function(e){var t=e.target||e.srcElement;this._onClickEditSchedule(t),this._onClickDeleteSchedule(t)},c.prototype._onClickEditSchedule=function(e){var t=a.classname("popup-edit");(s.hasClass(e,t)||s.closest(e,"."+t))&&(this.fire("beforeUpdateSchedule",{schedule:this._schedule,triggerEventName:"click",target:this._scheduleEl}),this.hide())},c.prototype._onClickDeleteSchedule=function(e){var t=a.classname("popup-delete");(s.hasClass(e,t)||s.closest(e,"."+t))&&(this.fire("beforeDeleteSchedule",{schedule:this._schedule}),this.hide())},c.prototype.render=function(e){var t=this.layer,n=this;t.setContent(u({schedule:e.schedule,calendar:e.calendar})),t.show(),this._setPopupPositionAndArrowDirection(e.event),this._schedule=e.schedule,this._calendar=e.calendar,i.debounce(function(){r.on(document.body,"mousedown",n._onMouseDown,n)})()},c.prototype._setPopupPositionAndArrowDirection=function(e){var t,n=s.find(a.classname(".popup"),this.layer.container),l={width:n.offsetWidth,height:n.offsetHeight},o={right:window.innerWidth,bottom:window.innerHeight},i=this.layer.parent.getBoundingClientRect(),r=i.left,u=i.top,c=e.target||e.srcElement,d=s.closest(c,a.classname(".time-date-schedule-block"))||s.closest(c,a.classname(".weekday-schedule"))||c,h=d.getBoundingClientRect();this._scheduleEl=d,(t=this._calcRenderingData(l,o,h)).x-=r+4,t.y-=u+8,this.layer.setPosition(t.x,t.y),this._setArrowDirection(t.arrow)},c.prototype._calcRenderingData=function(e,t,n){var l=(n.top+n.bottom)/2,o=n.right,i=l,a="arrow-left";return i<0&&(i=i+e.height/2-l),o>0&&o+e.width>t.right&&(o=n.left-e.width-8-3,a="arrow-right"),o<0&&(o=0),n.right>o+e.width&&(a="arrow-right"),{x:o+8,y:i-e.height/2+8,arrow:{direction:a,position:void 0}}},c.prototype._setArrowDirection=function(e){var t=e.direction||"arrow-left",n=s.find(a.classname(".popup-arrow"),this.layer.container),l=s.find(a.classname(".popup-arrow-border",n));t!==a.classname("arrow-left")&&(s.removeClass(n,a.classname("arrow-left")),s.addClass(n,a.classname(t))),e.position&&(l.style.top=e.position+"px")},c.prototype.hide=function(){this.layer.hide(),this.guide&&(this.guide.clearGuideElement(),this.guide=null),r.off(document.body,"mousedown",this._onMouseDown,this)},c.prototype.refresh=function(){this._viewModel&&this.layer.setContent(this.tmpl(this._viewModel))},e.exports=c},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(1),r=n(17),s=n(84),u=n(4).Date;function c(e,t,n){this.dragHandler=e,this.view=t,this.controller=n,this._dragStart=null,e.on({dragStart:this._onDragStart},this),this.guide=new s(this)}c.prototype.destroy=function(){this.guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.view=this.controller=this.guide=this._dragStart=null},c.prototype.checkExpectedCondition=function(e){var t,n,i=a.getClass(e);return!~i.indexOf(o.classname("weekday-resize-handle"))&&(!!(t=a.closest(e,o.classname(".weekday")))&&(!(!(n=(i=a.getClass(t)).match(o.daygrid.getViewIDRegExp))||n.length<2)&&l.pick(this.view.children.items,n[1])))},c.prototype._onDragStart=function(e){var t,n,i,r,s,u=e.target,c=this.checkExpectedCondition(u),d=this.controller;c&&(t=a.closest(u,o.classname(".weekday-schedule-block"),!0))&&(n=a.getData(t,"id"),(i=d.schedules.items[n])&&(i.isReadOnly||(r=this._retriveScheduleData(this.view,e.originEvent),this.getScheduleDataFunc=r,s=this._dragStart=r(e.originEvent),l.extend(s,{scheduleBlockElement:t,model:i}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("dragstart",s))))},c.prototype._onDrag=function(e){var t=this.getScheduleDataFunc;t&&this.fire("drag",t(e.originEvent))},c.prototype._updateSchedule=function(e){var t=e.targetModel,n=e.xIndex-e.dragStartXIndex,l=new u(t.start),o=new u(t.end);l=l.addDate(n),o=o.addDate(n),this.fire("beforeUpdateSchedule",{schedule:t,changes:{start:l,end:o},start:l,end:o})},c.prototype._onDragEnd=function(e,t,n){var o,i=this.getScheduleDataFunc,a=this._dragStart;i&&a&&(this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),o=i(e.originEvent),l.extend(o,{targetModel:a.model}),n||this._updateSchedule(o),this.fire(t||"dragend",o),this.getScheduleDataFunc=this._dragStart=null)},c.prototype._onClick=function(e){this._onDragEnd(e,"click",!0)},i.mixin(r,c),l.CustomEvents.mixin(c),e.exports=c},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(1),r=n(3),s=n(4).Date,u=n(106),c=Math.max,d=Math.min,h=Math.abs,p=Math.floor;function m(e,t){var n=this;this.options=l.extend({top:0,height:"20px",bgColor:"#f7ca88",label:"New event",isResizeMode:!1,isCreationMode:!1,styles:this._getStyles(t.controller.theme)},e),this.view=t,this.weeks=t.children.sort(function(e,t){return l.stamp(e)-l.stamp(t)}),this.days=t.children.single().getRenderDateRange().length,this.ratio=l.bind(function(e){return i.ratio(n.days,100,e)}),this.startCoord=[0,0],this.guideElements={},this.grids=t.grids}m.prototype.destroy=function(){this.clear(),this.options=this.view=this.weeks=this.days=this.ratio=this.startCoord=this.guideElements=null},m.prototype.clearGuideElement=function(){this.destroy()},m.prototype._getRatioValueInWeek=function(e){return(this.grids[e]||{left:100}).left},m.prototype._createGuideElement=function(){var e=document.createElement("div");return e.innerHTML=u(this.options),e.firstChild},m.prototype._getGuideElement=function(e){var t=this.guideElements,n=t[e],l=this.weeks[e];return l?(n||(n=this._createGuideElement(),l.container.appendChild(n),t[e]=n),n):null},m.prototype._getCoordByDate=function(e){for(var t=this.weeks,n=this.days,l=function(e,t){return p(r.millisecondsTo("day",h(t-e)))},o=r.start(t[0].options.renderStartDate),i=en[1]?l=n.slice(0):(o=c(t[0],o),l=[o=d(n[0],o),i]),l},m.prototype.start=function(e){var t,n=this.options,o=e.target,i=e.model,a=e.x,u=e.y,c=new s(this.view.options.renderMonth);n.isCreationMode?i&&!r.isSameMonth(c,i.start)&&(i.start.setMonth(c.getMonth()),i.start.setDate(1),i.end.setMonth(c.getMonth()),i.end.setDate(1)):(a=(t=this._getCoordByDate(i.getStarts()))[0],u=t[1],l.extend(this.options,{top:parseInt(o.style.top,10)+"px",height:parseInt(o.style.height,10)+"px",label:i.title},i)),(l.isUndefined(a)||l.isUndefined(u))&&(a=(t=this._getCoordByDate(i.getStarts()))[0],u=t[1]),this.startCoord=[a,u],this.update(a,u)},m.prototype._updateGuides=function(e){l.forEach(e,function(e){var t=e.guide,n=o.classname("month-exceed-left"),l=o.classname("month-exceed-right");t.style.display="block",t.style.left=e.left+"%",t.style.width=e.width+"%",e.exceedL?a.addClass(t,n):a.removeClass(t,n),e.exceedR?a.addClass(t,l):a.removeClass(t,l)})},m.prototype._getOriginIndicate=function(e,t){var n,l,o=d(e[0],t[0]),i=c(e[0],t[0])+1;return t[1]>e[1]?(o=e[0],i=this.days,l=!0):t[1]e[1]?(o=0,n=!0):t[1]o)&&i.push(e)}),i},m.prototype.update=function(e,t){var n=this,o=this.startCoord,i=[e,t],a=this.options.isResizeMode?this._getLimitedCoord(i,o):i,r=l.keys(this.guideElements),s=l.range(d(o[1],a[1]),c(o[1],a[1])+1),u=this._getExcludesInRange(s,r),h={};this._removeGuideElements(u),l.forEach(s,function(e){var t,r=n._getGuideElement(e);r&&(t=e===o[1]?n._getOriginIndicate(o,a):e===i[1]?n._getMouseIndicate(o,i):n._getContainIndicate(),h[e]=l.extend({guide:r},t))}),this._updateGuides(h)},m.prototype.clear=function(){l.forEach(this.guideElements,function(e){a.remove(e)}),this.guideElements={}},m.prototype._getStyles=function(e){var t={};return e&&(t.border=e.common.creationGuide.border,t.backgroundColor=e.common.creationGuide.backgroundColor,t.scheduleHeight=e.month.schedule.height,t.scheduleGutter=e.month.schedule.marginTop,t.marginLeft=e.month.schedule.marginLeft,t.marginRight=e.month.schedule.marginRight,t.borderRadius=e.month.schedule.borderRadius),t},e.exports=m},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(37);n(114),n(115),t.jQuery&&(t.jQuery.fn.tuiCalendar=function(){var e,n,i=this.get(0),a=Array.prototype.slice.apply(arguments);if(i)if(e=l.pick(a,0)||{},n=t.jQuery.data(i,"tuiCalendar")){if("string"==typeof e&&n[e])return n[e].apply(n,a.slice(1))}else n=new o(i,e),t.jQuery.data(i,"tuiCalendar",n);return this}),e.exports=o}).call(this,n(9))},function(e,t,n){"use strict";var l="UA-129951699-1",o=n(0),i=n(20),a=n(26),r=n(3),s=n(52),u=n(27),c=n(53),d=n(63),h=n(97),p=n(4).Date,m=n(2),f=n(4),g=n(11),y=Math.min;function S(e,t){!0===(t=o.extend({usageStatistics:!0},t)).usageStatistics&&o.sendHostname&&o.sendHostname("calendar",l),o.isString(e)&&(e=document.querySelector(e)),this._calendarColor={},this._renderDate=r.start(),this._renderRange={start:null,end:null},this._controller=function(e){return c(e)}(t),this._controller.setCalendars(t.calendars),this._layout=new s(e,this._controller.theme),this._dragHandler=new u({distance:10},this._layout.container),this._viewName=t.defaultView||"week",this._refreshMethod=null,this._scrollToNowMethod=null,this._requestScrollToNow=!1,this._openCreationPopup=null,this._hideMoreView=null,this._requestRender=0,this._options={},this._initialize(t)}function _(e,t){e.recursive(function(e){var n=e.options;n&&t(e,n)})}S.prototype.destroy=function(){this._dragHandler.destroy(),this._controller.off(),this._layout.clear(),this._layout.destroy(),o.forEach(this._options.template,function(e,t){e&&i.unregisterHelper(t+"-tmpl")}),this._options=this._renderDate=this._controller=this._layout=this._dragHandler=this._viewName=this._refreshMethod=this._scrollToNowMethod=null},S.prototype._initialize=function(e){var t=this._controller,n=this._viewName;this._options=o.extend({defaultView:n,taskView:!0,scheduleView:!0,template:o.extend({allday:null,time:null},o.pick(e,"template")||{}),week:o.extend({startDayOfWeek:0,workweek:!1},o.pick(e,"week")||{}),month:o.extend({startDayOfWeek:0,workweek:!1,scheduleFilter:function(e){return Boolean(e.isVisible)&&("allday"===e.category||"time"===e.category)}},o.pick(e,"month")||{}),calendars:[],useCreationPopup:!1,useDetailPopup:!1,timezones:e.timezones||[],disableDblClick:!1,disableClick:!1,isReadOnly:!1},e),this._options.isReadOnly&&(this._options.useCreationPopup=!1),this._layout.controller=t,this._setAdditionalInternalOptions(e),this.changeView(n,!0)},S.prototype._setAdditionalInternalOptions=function(e){var t=e.timezones||[];o.forEach(e.template,function(e,t){e&&i.registerHelper(t+"-tmpl",e)}),o.forEach(e.calendars||[],function(e){this.setCalendarColor(e.id,e,!0)},this),t.length&&f.setOffsetByTimezoneOption(t[0].timezoneOffset)},S.prototype.createSchedules=function(e,t){o.forEach(e,function(e){this._setScheduleColor(e.calendarId,e)},this),this._controller.createSchedules(e,t),t||this.render()},S.prototype.getSchedule=function(e,t){return this._controller.schedules.single(function(n){return n.id===e&&n.calendarId===t})},S.prototype.updateSchedule=function(e,t,n,l){var o=this._controller,i=o.schedules.single(function(n){return n.id===e&&n.calendarId===t});n&&i&&(n=this._hasChangedCalendar(i,n)?this._setScheduleColor(n.calendarId,n):n,o.updateSchedule(i,n),l||this.render())},S.prototype._hasChangedCalendar=function(e,t){return e&&t.calendarId&&e.calendarId!==t.calendarId},S.prototype._setScheduleColor=function(e,t){var n=this._calendarColor[e];return n&&(t.color=t.color||n.color,t.bgColor=t.bgColor||n.bgColor,t.borderColor=t.borderColor||n.borderColor,t.dragBgColor=t.dragBgColor||n.dragBgColor),t},S.prototype.deleteSchedule=function(e,t,n){var l=this._controller,o=l.schedules.single(function(n){return n.id===e&&n.calendarId===t});o&&(l.deleteSchedule(o),n||this.render())},S.prototype._getWeekDayRange=function(e,t,n){var l,i,a,s;return t=t||0,l=(e=o.isDate(e)?e:new p(e)).getDay(),i=new p(e).addDate(-l+t),a=new p(i).addDate(6),l0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):o(this);if(n.data&&n.ids){var a=l.createFrame(n.data);a.contextPath=l.appendContextPath(n.data.contextPath,n.name),n={data:a}}return i(t,n)})},e.exports=t.default},function(e,t,n){"use strict";(function(l){t.__esModule=!0;var o=n(10),i=function(e){return e&&e.__esModule?e:{default:e}}(n(12));t.default=function(e){e.registerHelper("each",function(e,t){if(!t)throw new i.default("Must pass iterator to #each");var n=t.fn,a=t.inverse,r=0,s="",u=void 0,c=void 0;function d(t,l,i){u&&(u.key=t,u.index=l,u.first=0===l,u.last=!!i,c&&(u.contextPath=c+t)),s+=n(e[t],{data:u,blockParams:o.blockParams([e[t],t],[c+t,null])})}if(t.data&&t.ids&&(c=o.appendContextPath(t.data.contextPath,t.ids[0])+"."),o.isFunction(e)&&(e=e.call(this)),t.data&&(u=o.createFrame(t.data)),e&&"object"==typeof e)if(o.isArray(e))for(var h=e.length;r=i.LAST_COMPATIBLE_COMPILER_REVISION&&t<=i.COMPILER_REVISION)return;if(ta.MILLISECONDS_PER_DAY?"allday":t.category},this.schedules=r.createScheduleCollection(),this.dateMatrix={},this.theme=new s(e.theme),this.calendars=[]}u.prototype._getContainDatesInSchedule=function(e){var t=e.getStarts(),n=e.getEnds(),l=a.start(t),o=0===a.compare(t,n)?n:a.convertStartDayToLastDay(n),i=a.end(o);return a.range(l,i,a.MILLISECONDS_PER_DAY)},u.prototype.createSchedule=function(e,t){var n,l={data:e};return this.invoke("beforeCreateSchedule",l)?(n=this.addSchedule(o.create(e)),t||this.fire("createdSchedule",n),n):null},u.prototype.createSchedules=function(e,t){var n=this;return l.map(e,function(e){return n.createSchedule(e,t)})},u.prototype.updateSchedule=function(e,t){var n=t.start||e.start,o=t.end||e.end;return"allday"===(t=t||{}).category&&(t.isAllDay=!0),l.isUndefined(t.isAllDay)||e.set("isAllDay",t.isAllDay),l.isUndefined(t.calendarId)||e.set("calendarId",t.calendarId),t.title&&e.set("title",t.title),t.body&&e.set("body",t.body),(t.start||t.end)&&(e.isAllDay?e.setAllDayPeriod(n,o):e.setTimePeriod(n,o)),t.color&&e.set("color",t.color),t.bgColor&&e.set("bgColor",t.bgColor),t.borderColor&&e.set("borderColor",t.borderColor),t.origin&&e.set("origin",t.origin),l.isUndefined(t.isPending)||e.set("isPending",t.isPending),l.isUndefined(t.isFocused)||e.set("isFocused",t.isFocused),t.location&&e.set("location",t.location),t.state&&e.set("state",t.state),this._removeFromMatrix(e),this._addToMatrix(e),this.fire("updateSchedule"),e},u.prototype.deleteSchedule=function(e){return this._removeFromMatrix(e),this.schedules.remove(e),e},u.prototype._addToMatrix=function(e){var t=this.dateMatrix,n=this._getContainDatesInSchedule(e);l.forEach(n,function(n){var o=a.format(n,"YYYYMMDD");(t[o]=t[o]||[]).push(l.stamp(e))})},u.prototype._removeFromMatrix=function(e){var t=l.stamp(e);l.forEach(this.dateMatrix,function(e){var n=l.inArray(t,e);~n&&e.splice(n,1)},this)},u.prototype.addSchedule=function(e,t){return this.schedules.add(e),this._addToMatrix(e),t||this.fire("addedSchedule",e),e},u.prototype.splitScheduleByDateRange=function(e,t,n){var o=a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),i=this.dateMatrix,s={};return l.forEachArray(o,function(e){var t,o=a.format(e,"YYYYMMDD"),u=i[o];t=s[o]=r.createScheduleCollection(),u&&u.length&&l.forEachArray(u,function(e){n.doWhenHas(e,function(e){t.add(e)})})}),s},u.prototype.findByDateRange=function(e,t){var n,o,s,u=a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),c=this.schedules.items,d=this.dateMatrix,h=a.format,p={};return l.forEachArray(u,function(e){o=h(e,"YYYYMMDD"),n=d[o],s=p[o]=r.createScheduleCollection(),n&&n.length&&s.add.apply(s,l.map(n,function(e){return i.create(c[e])}))}),p},u.prototype.clearSchedules=function(){this.dateMatrix={},this.schedules.clear(),this.fire("clearSchedules")},u.prototype.setTheme=function(e){return this.theme.setStyles(e)},u.prototype.setCalendars=function(e){this.calendars=e},l.CustomEvents.mixin(u),e.exports=u},function(e,t,n){"use strict";var l=n(0),o=l.isExisty,i=l.pick,a=l.isFunction,r={set:function(e,t){this[e]!==t&&(this[e]=t,this._changed||(this._changed={}),this._changed[e]=!0,this._dirty=!0)},isDirty:function(){return!!this._dirty},dirty:function(e){(e=!o(e)||e)||(this._changed={}),this._dirty=e},deleteProp:function(e){delete this[e],this._changed&&delete this._changed[e]},isPropChanged:function(e){return!!this._changed&&!0===this._changed[e]},mixin:function(e){var t=/(^_|mixin|wrap)/;l.forEachOwnProperties(r,function(n,l){t.test(l)||(e[l]=r[l])})},wrap:function(e,t,n){var s,u=r.wrap;l.isObject(t)?l.forEachOwnProperties(t,function(t,n){u(e,n,t)}):(n=!o(n)||n,e._wrapper||(e._wrapper=function(e,t){return function(){var n=Array.prototype.slice.call(arguments),l=e.apply(this,n);return this._dirty=t,l}}),o(i(e,t))&&a(e[t])&&!o(i(e,t,"_wrapped"))&&(s=e[t],e[t]=e._wrapper(s,n),e[t]._wrapped=!0))}};e.exports=r},function(e,t,n){"use strict";var l,o=n(4).Date,i=n(0),a=/^\s*|\s*$/g,r=n(3);l={trim:function(e){return e.replace(a,"")},validators:{required:function(e,t){var n=!0;return i.forEach(t,function(t){return n=function(e){return!i.isUndefined(e)&&""!==l.trim(e)}(e[t])}),n},dateRange:function(e,t){var n,l;return!i.isExisty(e)||2!==t.length||(n=new o(e[t[0]]),l=new o(e[t[1]]),!(!r.isValid(n)||!r.isValid(l))&&1!==r.compare(n,l))}},isValid:function(){var e,t=this,n=this.constructor.schema,o=l.validators,a=!0;return!n||(i.forEach(n,function(n,l){return!(e=o[l])||(a=e(t,n))}),a)},parameterize:function(){var e={},t=i.isFunction;return i.forEach(this,function(n,l){t(n)||(e[l]=n)}),e},mixin:function(e){i.forEach(l,function(t,n){"mixin"!==n&&(e[n]=t)})}},e.exports=l},function(e,t,n){"use strict";var l=n(0),o=n(58),i=n(59),a=n(5);function r(e){var t=e||o;this._map=new l.HashMap,this.setStyles(t)}r.prototype.getStyle=function(e){return this._map.get(e)},r.prototype.setStyle=function(e,t){var n={};return n[e]=t,0===this.setStyles(n).length},r.prototype.setStyles=function(e){var t=[];return l.forEach(e,function(e,n){l.isUndefined(i[n])?t.push(n):(this._map.set(n,e),a.set(this,n,e))},this),l.forEach(i,function(e,t){this.getStyle(t)||(this._map.set(t,e),a.set(this,t,e))},this),t},r.prototype.clear=function(){var e=this._map.keys(),t={};l.forEach(e,function(e){var n=e.split(".")[0];t[n]||(t[n]=n)}),l.forEach(t,function(e){delete this[e]},this),this._map.removeAll()},e.exports=r},function(e,t,n){"use strict";e.exports={"common.border":"1px solid #e5e5e5","common.backgroundColor":"white","common.holiday.color":"#ff4040","common.saturday.color":"#333","common.dayname.color":"#333","common.today.color":"#333","common.creationGuide.backgroundColor":"rgba(81, 92, 230, 0.05)","common.creationGuide.border":"1px solid #515ce6","month.dayname.height":"31px","month.dayname.borderLeft":"none","month.dayname.paddingLeft":"10px","month.dayname.paddingRight":"0","month.dayname.backgroundColor":"inherit","month.dayname.fontSize":"12px","month.dayname.fontWeight":"normal","month.dayname.textAlign":"left","month.holidayExceptThisMonth.color":"rgba(255, 64, 64, 0.4)","month.dayExceptThisMonth.color":"rgba(51, 51, 51, 0.4)","month.weekend.backgroundColor":"inherit","month.day.fontSize":"14px","month.schedule.borderRadius":"2px","month.schedule.height":"24px","month.schedule.marginTop":"2px","month.schedule.marginLeft":"8px","month.schedule.marginRight":"8px","month.moreView.border":"1px solid #d5d5d5","month.moreView.boxShadow":"0 2px 6px 0 rgba(0, 0, 0, 0.1)","month.moreView.backgroundColor":"white","month.moreView.paddingBottom":"17px","month.moreViewTitle.height":"44px","month.moreViewTitle.marginBottom":"12px","month.moreViewTitle.borderBottom":"none","month.moreViewTitle.padding":"12px 17px 0 17px","month.moreViewList.padding":"0 17px","week.dayname.height":"42px","week.dayname.borderTop":"1px solid #e5e5e5","week.dayname.borderBottom":"1px solid #e5e5e5","week.dayname.borderLeft":"none","week.dayname.paddingLeft":"0","week.dayname.backgroundColor":"inherit","week.dayname.textAlign":"left","week.today.color":"inherit","week.pastDay.color":"#bbb","week.vpanelSplitter.border":"1px solid #e5e5e5","week.vpanelSplitter.height":"3px","week.daygrid.borderRight":"1px solid #e5e5e5","week.daygrid.backgroundColor":"inherit","week.daygridLeft.width":"72px","week.daygridLeft.backgroundColor":"inherit","week.daygridLeft.paddingRight":"8px","week.daygridLeft.borderRight":"1px solid #e5e5e5","week.today.backgroundColor":"rgba(81, 92, 230, 0.05)","week.weekend.backgroundColor":"inherit","week.timegridLeft.width":"72px","week.timegridLeft.backgroundColor":"inherit","week.timegridLeft.borderRight":"1px solid #e5e5e5","week.timegridLeft.fontSize":"11px","week.timegridOneHour.height":"52px","week.timegridHalfHour.height":"26px","week.timegridHalfHour.borderBottom":"none","week.timegridHorizontalLine.borderBottom":"1px solid #e5e5e5","week.timegrid.paddingRight":"8px","week.timegrid.borderRight":"1px solid #e5e5e5","week.timegridSchedule.borderRadius":"2px","week.timegridSchedule.paddingLeft":"2px","week.currentTime.color":"#515ce6","week.currentTime.fontSize":"11px","week.currentTime.fontWeight":"normal","week.currentTimeLinePast.border":"1px dashed #515ce6","week.currentTimeLineBullet.backgroundColor":"#515ce6","week.currentTimeLineToday.border":"1px solid #515ce6","week.currentTimeLineFuture.border":"none","week.creationGuide.color":"#515ce6","week.creationGuide.fontSize":"11px","week.creationGuide.fontWeight":"bold","week.dayGridSchedule.borderRadius":"2px","week.dayGridSchedule.height":"24px","week.dayGridSchedule.marginTop":"2px","week.dayGridSchedule.marginLeft":"8px","week.dayGridSchedule.marginRight":"8px"}},function(e,t,n){"use strict";e.exports={"common.border":"1px solid #e5e5e5","common.backgroundColor":"white","common.holiday.color":"#ff4040","common.saturday.color":"#333","common.dayname.color":"#333","common.today.color":"#333","common.creationGuide.backgroundColor":"rgba(81, 92, 230, 0.05)","common.creationGuide.border":"1px solid #515ce6","month.dayname.height":"31px","month.dayname.borderLeft":"1px solid #e5e5e5","month.dayname.paddingLeft":"10px","month.dayname.paddingRight":"10px","month.dayname.backgroundColor":"inherit","month.dayname.fontSize":"12px","month.dayname.fontWeight":"normal","month.dayname.textAlign":"left","month.holidayExceptThisMonth.color":"rgba(255, 64, 64, 0.4)","month.dayExceptThisMonth.color":"rgba(51, 51, 51, 0.4)","month.weekend.backgroundColor":"inherit","month.day.fontSize":"14px","month.schedule.borderRadius":"2px","month.schedule.height":"24px","month.schedule.marginTop":"2px","month.schedule.marginLeft":"8px","month.schedule.marginRight":"8px","month.moreView.border":"1px solid #d5d5d5","month.moreView.boxShadow":"0 2px 6px 0 rgba(0, 0, 0, 0.1)","month.moreView.backgroundColor":"white","month.moreView.paddingBottom":"17px","month.moreViewTitle.height":"44px","month.moreViewTitle.marginBottom":"12px","month.moreViewTitle.backgroundColor":"inherit","month.moreViewTitle.borderBottom":"none","month.moreViewTitle.padding":"12px 17px 0 17px","month.moreViewList.padding":"0 17px","week.dayname.height":"42px","week.dayname.borderTop":"1px solid #e5e5e5","week.dayname.borderBottom":"1px solid #e5e5e5","week.dayname.borderLeft":"inherit","week.dayname.paddingLeft":"0","week.dayname.backgroundColor":"inherit","week.dayname.textAlign":"left","week.today.color":"#333","week.pastDay.color":"#bbb","week.vpanelSplitter.border":"1px solid #e5e5e5","week.vpanelSplitter.height":"3px","week.daygrid.borderRight":"1px solid #e5e5e5","week.daygrid.backgroundColor":"inherit","week.daygridLeft.width":"72px","week.daygridLeft.backgroundColor":"inherit","week.daygridLeft.paddingRight":"8px","week.daygridLeft.borderRight":"1px solid #e5e5e5","week.today.backgroundColor":"rgba(81, 92, 230, 0.05)","week.weekend.backgroundColor":"inherit","week.timegridLeft.width":"72px","week.timegridLeft.backgroundColor":"inherit","week.timegridLeft.borderRight":"1px solid #e5e5e5","week.timegridLeft.fontSize":"11px","week.timegridLeftTimezoneLabel.height":"40px","week.timegridLeftAdditionalTimezone.backgroundColor":"white","week.timegridOneHour.height":"52px","week.timegridHalfHour.height":"26px","week.timegridHalfHour.borderBottom":"none","week.timegridHorizontalLine.borderBottom":"1px solid #e5e5e5","week.timegrid.paddingRight":"8px","week.timegrid.borderRight":"1px solid #e5e5e5","week.timegridSchedule.borderRadius":"2px","week.timegridSchedule.paddingLeft":"2px","week.currentTime.color":"#515ce6","week.currentTime.fontSize":"11px","week.currentTime.fontWeight":"normal","week.pastTime.color":"#bbb","week.pastTime.fontWeight":"normal","week.futureTime.color":"#333","week.futureTime.fontWeight":"normal","week.currentTimeLinePast.border":"1px dashed #515ce6","week.currentTimeLineBullet.backgroundColor":"#515ce6","week.currentTimeLineToday.border":"1px solid #515ce6","week.currentTimeLineFuture.border":"none","week.creationGuide.color":"#515ce6","week.creationGuide.fontSize":"11px","week.creationGuide.fontWeight":"bold","week.dayGridSchedule.borderRadius":"2px","week.dayGridSchedule.height":"24px","week.dayGridSchedule.marginTop":"2px","week.dayGridSchedule.marginLeft":"8px","week.dayGridSchedule.marginRight":"8px"}},function(e,t,n){"use strict";var l=n(0),o=l.forEachArray,i=Array.prototype.slice,a=n(3),r=n(4).Date,s=n(13),u=n(28),c={getCollisionGroup:function(e){var t,n=[],a=!1;return e.length?(n[0]=[l.stamp(e[0].valueOf())],o(e.slice(1),function(r,s){a=!1,t=i.apply(e,[0,s+1]).reverse(),o(t,function(e){return!r.collidesWith(e)||(a=!0,o(n.slice(0).reverse(),function(t){return!~l.inArray(l.stamp(e.valueOf()),t)||(t.push(l.stamp(r.valueOf())),!1)}),!1)}),a||n.push([l.stamp(r.valueOf())])}),n):n},getLastRowInColumn:function(e,t){for(var n=e.length;n>0;)if(n-=1,!l.isUndefined(e[n][t]))return n;return!1},getMatrices:function(e,t){var n=[],i=c.getLastRowInColumn;return o(t,function(t){var a=[[]];o(t,function(t){for(var n,o,r=e.items[t],s=0,u=!1;!u;)!1===(o=i(a,s))?(a[0].push(r),u=!0):r.collidesWith(a[o][s])||(n=o+1,l.isUndefined(a[n])&&(a[n]=[]),a[n][s]=r,u=!0),s+=1}),n.push(a)}),n},getScheduleInDateRangeFilter:function(e,t){return function(n){var l=n.getStarts();return!(n.getEnds()t)}},positionViewModels:function(e,t,n,i){var r;r=l.map(a.range(e,t,a.MILLISECONDS_PER_DAY),function(e){return a.format(e,"YYYYMMDD")}),o(n,function(e){o(e,function(e){o(e,function(e,t){var n,o;e&&(n=a.format(e.getStarts(),"YYYYMMDD"),o=a.range(a.start(e.getStarts()),a.end(e.getEnds()),a.MILLISECONDS_PER_DAY).length,e.top=t,e.left=l.inArray(n,r),e.width=o,i&&i(e))})})})},limitRenderRange:function(e,t,n){function l(n){return n.getStarts()t&&(n.exceedRight=!0,n.renderEnds=new r(t)),n}return n.constructor===s?(n.each(l),null):l(n)},convertToViewModel:function(e){var t;return t=new s(function(e){return e.cid()}),e.each(function(e){t.add(u.create(e))}),t}};e.exports=c},function(e,t,n){"use strict";var l=n(0),o=n(13),i=n(15),a=n(3),r=n(4).Date,s=a.MILLISECONDS_SCHEDULE_MIN_DURATION,u={generateTimeArrayInRow:function(e){var t,n,o,i,r,u=[],c=[],d=Math.max.apply(null,l.map(e,function(e){return e.length}));for(n=1;n=u&&lu&&o<=c||lu||o>c&&lt?e.filter(function(e){return e.top0?r.apply(null,o):0},_adjustTimeTopIndex:function(e){var t=this.Month,n=t._getAlldayMaxTopIndexAtYMD,a=e.find(t._onlyAlldayFilter),r={};e.find(t._onlyTimeFilter).sort(o.compare.schedule.asc).forEach(function(e){var t=i.format(e.getStarts(),"YYYYMMDD"),o=r[t];l.isUndefined(o)&&(o=r[t]=n(t,a)),r[t]=e.top=o+1})},_stackTimeFromTop:function(e){var t=this.Month,n=e.find(t._onlyAlldayFilter),a=e.find(t._onlyTimeFilter).sort(o.compare.schedule.asc),s={},u=this.dateMatrix;a.forEach(function(e){var t,o,a=i.format(e.getStarts(),"YYYYMMDD"),c=s[a];if(l.isUndefined(c)&&(c=s[a]=[],l.forEach(u[a],function(e){n.doWhenHas(e,function(e){c.push(e.top)})})),l.inArray(e.top,c)>=0)for(t=r.apply(null,c)+1,o=1;o<=t&&(e.top=o,!(l.inArray(e.top,c)<0));o+=1);c.push(e.top)})},_addMultiDatesInfo:function(e){e.each(function(e){var t=e.model,n=t.getStarts(),l=t.getEnds();e.hasMultiDates=!i.isSameDate(n,l),!t.isAllDay&&e.hasMultiDates&&(e.renderStarts=i.start(n),e.renderEnds=i.convertStartDayToLastDay(l))})},findByDateRange:function(e,t,n,l){var i,r,s,u,c,d=this.Core,h=this.Month,p=d.getScheduleInDateRangeFilter(e,t);return l=l||!1,n=n||[],p=a.and.apply(null,[p].concat(n)),i=this.schedules.find(p),r=d.convertToViewModel(i),h._addMultiDatesInfo(r),h._adjustRenderRange(e,t,r),s=r.sort(o.compare.schedule.asc),u=d.getCollisionGroup(s),c=d.getMatrices(r,u),d.positionViewModels(e,t,c,h._weightTopValue),l?h._adjustTimeTopIndex(r):h._stackTimeFromTop(r),c}};e.exports=s},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1),a=n(5),r=n(29),s=n(11),u=n(14),c=n(65),d=n(66),h=n(68),p=n(72),m=n(32),f=n(33),g=n(82),y={click:n(83),creation:n(85),move:n(34),resize:n(87)},S={click:n(89),creation:n(90),move:n(92),resize:n(95)},_=[{name:"milestone",type:"daygrid",minHeight:20,maxHeight:80,showExpandableButton:!0,maxExpandableHeight:210,handlers:["click"],show:!0},{name:"task",type:"daygrid",minHeight:40,maxHeight:120,showExpandableButton:!0,maxExpandableHeight:210,handlers:["click","move"],show:!0},{name:"allday",type:"daygrid",minHeight:30,maxHeight:80,showExpandableButton:!0,maxExpandableHeight:210,handlers:["click","creation","move","resize"],show:!0},{name:"time",type:"timegrid",autoHeight:!0,handlers:["click","creation","move","resize"],show:!0}];e.exports=function(e,t,n,C,v){var E,w,P,k,b,R,I,D,F,x,X,M,O,T,H=[],L=[],B=C.taskView,A=C.scheduleView,V={milestone:l.isArray(B)?l.inArray("milestone",B)>=0:B,task:l.isArray(B)?l.inArray("task",B)>=0:B,allday:l.isArray(A)?l.inArray("allday",A)>=0:A,time:l.isArray(A)?l.inArray("time",A)>=0:A};return l.forEach(_,function(e){var t=e.name;e=l.extend({},e),H.push(e),e.show=V[t],e.show&&(L.length&&L.push({isSplitter:!0}),L.push(l.extend({},e)))}),L.length&&((F=L[L.length-1]).autoHeight=!0,F.maxHeight=null,F.showExpandableButton=!1,l.forEach(H,function(e){return e.name!==F.name||(e.showExpandableButton=!1,!1)})),l.extend(C.week,{panels:H}),(E=new c(null,C.week,t,H,v)).handler={click:{},dayname:{},creation:{},move:{},resize:{}},w=i.appendHTMLElement("div",E.container,o.classname("dayname-layout")),P=new d(C,w,e.theme),E.handler.dayname.date=new g(n,P,e),E.addChild(P),(k=i.appendHTMLElement("div",E.container,o.classname("vlayout-area"))).style.height=i.getSize(E.container)[1]-P.container.offsetHeight+"px",b=new r({panels:L,panelHeights:C.week.panelHeights||[]},k,e.theme),E.vLayout=b,l.forEach(H,function(t){var o,i=t.name,a=t.handlers;t.show&&("daygrid"===t.type?((o=new h(i,C,b.getPanelByName(t.name).container,e.theme)).on("afterRender",function(e){b.getPanelByName(i).setHeight(null,e.height)}),E.addChild(o),l.forEach(a,function(t){C.isReadOnly&&"click"!==t||(E.handler[t][i]=new y[t](n,o,e,C),o.addHandler(t,E.handler[t][i],b.getPanelByName(i)))})):"timegrid"===t.type&&(o=new p(i,C,b.getPanelByName(i).container),E.addChild(o),l.forEach(a,function(t){C.isReadOnly&&"click"!==t||(E.handler[t][i]=new S[t](n,o,e,C))}),o.on("clickTimezonesCollapsedBtn",function(){var e=!E.state.timezonesCollapsed;E.setState({timezonesCollapsed:e}),s.requestAnimFrame(function(){E.invoke("clickTimezonesCollapseBtn",e)||E.render()})})))}),b.on("resize",function(){s.requestAnimFrame(function(){E.render()})}),C.useCreationPopup&&(R=new m(t,e.calendars,C.usageStatistics),I=function(e){l.extend(e,{useCreationPopup:!0}),e.isAllDay?E.handler.creation.allday.fire("beforeCreateSchedule",e):E.handler.creation.time.fire("beforeCreateSchedule",e)},R.on("beforeCreateSchedule",I)),D=function(e){R&&R.setCalendars(e)},e.on("setCalendars",D),C.useDetailPopup&&(x=new f(t,e.calendars),X=function(t){var n=t.schedule.calendarId;t.calendar=a.find(e.calendars,function(e){return e.id===n}),C.isReadOnly&&(t.schedule=l.extend({},t.schedule,{isReadOnly:!0})),x.render(t)},M=function(e){e.isAllDay?E.handler.creation.allday.fire("beforeDeleteSchedule",e):E.handler.creation.time.fire("beforeDeleteSchedule",e)},T=function(e){e.isAllDay?E.handler.move.allday.fire("beforeUpdateSchedule",e):E.handler.move.time.fire("beforeUpdateSchedule",e)},l.forEach(E.handler.click,function(e){e.on("clickSchedule",X)}),C.useCreationPopup?(O=function(t){var n=e.calendars;t.isEditMode=!0,R.setCalendars(n),R.render(t)},R.on("beforeUpdateSchedule",T),x.on("beforeUpdateSchedule",O)):x.on("beforeUpdateSchedule",T),x.on("beforeDeleteSchedule",M)),E.on("afterRender",function(){b.refresh()}),E.controller=e.Week,E._beforeDestroy=function(){l.forEach(E.handler,function(e){l.forEach(e,function(e){e.off(),e.destroy()})}),C.useCreationPopup&&(R.off("beforeCreateSchedule",I),R.destroy()),C.useDetailPopup&&(x.off("beforeDeleteSchedule",M),x.destroy()),E.off()},{view:E,refresh:function(){var e=E.getViewBound().height,t=i.getBCRect(P.container).height;b.container.style.height=e-t+"px",b.refresh()},scrollToNow:function(){E.children.each(function(e){e.scrollToNow&&e.scrollToNow()})},openCreationPopup:function(e){R&&(e.isAllDay?E.handler.creation.allday.invokeCreationClick(u.create(e)):E.handler.creation.time.invokeCreationClick(u.create(e)))},showCreationPopup:function(t){R&&(R.setCalendars(e.calendars),R.render(t))}}}},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(1),r=n(8);function s(e,t,n){r.call(this,t),this.options=l.extend({index:0,name:"0",minHeight:0,maxHeight:null,height:null,isSplitter:!1,autoHeight:!1,className:""},e),this.index=this.options.index,this.name=this.options.name||String(this.index),this.isHeightForcedSet=!1,this.theme=n,this._initPanel(this.options,t)}l.inherit(s,r),s.prototype.isSplitter=function(){return this.options.isSplitter},s.prototype.setMaxHeight=function(e){this.options.autoHeight||(this.options.maxHeight=e)},s.prototype.setHeightForcedSet=function(e){this.isHeightForcedSet=e},s.prototype.getHeightForcedSet=function(){return this.isHeightForcedSet},s.prototype.setHeight=function(e,t,n){var l=this.options.maxHeight,o=this.options.minHeight,i=this.options.autoHeight;e=e||this.container,(n||!this.isHeightForcedSet||i)&&(n?this.isHeightForcedSet=!0:l&&(t=Math.min(t,l)),t=Math.max(o,t),e.style.height=t+"px")},s.prototype.getResizeInfoByGrowth=function(e){var t=this.getHeight(),n=t+e,l=Math.max(0,n,this.options.minHeight);return[l,t-l]},s.prototype.getHeight=function(){return a.getSize(this.container)[1]},s.prototype.addClass=function(e){a.addClass(this.container,e)},s.prototype.removeClass=function(e){a.removeClass(this.container,e)},s.prototype._initPanel=function(e,t){var n;if(a.setData(t,"panelIndex",e.index),e.isSplitter)return a.addClass(t,o.classname("splitter")),void this.applyTheme();e.className&&a.addClass(t,e.className),e.autoHeight?a.setData(t,"autoHeight",!0):(n=i.limit(e.height||0,[e.minHeight],[e.maxHeight||e.height]),e.height=n,this.setHeight(t,n))},s.prototype.applyTheme=function(){var e=this.container.style,t=this.theme;t&&(e.borderTop=t.week.vpanelSplitter.border||t.common.border,e.borderBottom=t.week.vpanelSplitter.border||t.common.border,e.height=t.week.vpanelSplitter.height)},e.exports=s},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1),a=n(3),r=n(4).Date,s=n(8);function u(e,t,n,u,c){var d;n=i.appendHTMLElement("div",n),s.call(this,n),i.addClass(n,o.classname("week-container")),d=this._getRenderDateRange(new r),this.options=l.extend({scheduleFilter:[function(e){return Boolean(e.isVisible)}],renderStartDate:a.format(d.start,"YYYY-MM-DD"),renderEndDate:a.format(d.end,"YYYY-MM-DD"),narrowWeekend:!1,startDayOfWeek:0,workweek:!1,showTimezoneCollapseButton:!1,timezonesCollapsed:!1,hourStart:0,hourEnd:24},t),this.controller=e,this.panels=u,this.state={timezonesCollapsed:this.options.timezonesCollapsed},"day"===c&&function(e){e.workweek=!1}(this.options)}l.inherit(u,s),u.prototype.render=function(){var e,t,n,o,i,s,u=this,c=this.options,d=c.scheduleFilter,h=c.narrowWeekend,p=c.startDayOfWeek,m=c.workweek,f=this.controller.theme||{},g=this.state;e=new r(c.renderStartDate),t=new r(c.renderEndDate),s=a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),c.workweek&&a.compare(e,t)&&(e=(s=l.filter(s,function(e){return!a.isWeekend(e.getDay())}))[0],t=s[s.length-1]),n=this.controller.findByDateRange(a.start(e),a.end(t),this.panels,d,this.options),i=a.getGridLeftAndWidth(s.length,h,p,m),o={schedulesInDateRange:n,renderStartDate:e,renderEndDate:t,grids:i,range:s,theme:f,state:g},this.children.each(function(e){var t,n=l.pick(e.options,"viewName");e.render(o),n&&(t=o.schedulesInDateRange[n],l.isArray(t)?u._invokeAfterRenderSchedule(t):l.forEach(t,function(e){u._invokeAfterRenderSchedule(e)}))}),this.fire("afterRender")},u.prototype._invokeAfterRenderSchedule=function(e){var t=this;l.forEachArray(e,function(e){l.forEachArray(e,function(e){l.forEachArray(e,function(e){e&&t.fire("afterRenderSchedule",{schedule:e.model})})})})},u.prototype.viewName="week",u.prototype._getRenderDateRange=function(e){var t=a.start(e),n=new r(Number(t)),l=new r(Number(t));return n.setDate(n.getDate()-3),l.setDate(l.getDate()+3),{start:n,end:l}},l.CustomEvents.mixin(u),e.exports=u},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(3),r=n(4).Date,s=n(1),u=n(8),c=n(67);function d(e,t,n){t=s.appendHTMLElement("div",t,o.classname("dayname-container")),this.options=l.extend({daynames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],timezones:e.timezones},e.week),this.theme=n,u.call(this,t),this.applyTheme()}l.inherit(d,u),d.prototype._getBaseViewModel=function(e,t,n){var o=this.options.daynames,i=this.theme,s=(new r).toLocalTime();return l.map(a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),function(e,t){var l=e.getDay(),r=a.isSameDate(e,s),u=e1&&(n=i.parseUnit(l.marginLeft),l.marginLeft=n[0]*o+n[1])),l},d.prototype.applyTheme=function(){var e=this._getStyles(this.theme),t=this.container.style;return t.borderTop=e.borderTop,t.borderBottom=e.borderBottom,t.height=e.height,t.backgroundColor=e.backgroundColor,t.textAlign=e.textAlign,t},e.exports=d},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda,h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n \n '+(null!=(i=(h(n,"weekDayname-tmpl")||t&&h(t,"weekDayname-tmpl")||s).call(r,t,{name:"weekDayname-tmpl",hash:{},data:o,loc:{start:{line:7,column:8},end:{line:7,column:35}}}))?i:"")+"\n \n
    \n"},2:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:3,column:49},end:{line:3,column:63}}}):i)+"today"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n'+(null!=(i=u(n,"each").call(r,null!=t?u(t,"dayNames"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:0},end:{line:10,column:9}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(3),r=n(1),s=n(4).Date,u=n(8),c=n(69),d=n(71),h=n(11),p=Math.max,m=Math.min;function f(e,t,n,i){n=r.appendHTMLElement("div",n,o.classname("daygrid-layout")),u.call(this,n),e=e||"daygrid",this.options=l.extend({viewName:e,daynames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],renderStartDate:"",renderEndDate:"",containerBottomGutter:18,scheduleHeight:parseInt(i.week.dayGridSchedule.height,10),scheduleGutter:parseInt(i.week.dayGridSchedule.marginTop,10),scheduleContainerTop:1,timezones:t.timezones,isReadOnly:t.isReadOnly,getViewModelFunc:function(t){return t.schedulesInDateRange[e]},setViewModelFunc:function(t,n){t.schedulesInDateRange[e]=n}},t.week),this.handler={},this.vPanel=null,this.state.collapsed=!0}function g(e,t){var n;return l.forEach(e,function(e){e.name===t&&(n=e)}),n}l.inherit(f,u),f.prototype.getBaseViewModel=function(e){var t,n=this.options,o=n.daynames,i=e.range,r=e.grids,u=n.getViewModelFunc(e),c={},d=g(n.panels,n.viewName),h=this.getViewBound().height,f=this.state.collapsed,y=!!this.vPanel&&this.vPanel.getHeightForcedSet(),S=e.state.timezonesCollapsed,_=this._getStyles(e.theme,S),C=(new s).toLocalTime();return d.showExpandableButton&&(y||(h=f?p(h,d.maxHeight):m(h,d.maxExpandableHeight)),t=Math.floor(h/(n.scheduleHeight+n.scheduleGutter)),f&&(c=this.parent.controller.getExceedDate(t,u,e.range),u=this.parent.controller.excludeExceedSchedules(u,t),n.setViewModelFunc(e,u))),{viewName:n.viewName,range:i,grids:r,days:l.map(e.range,function(t,n){var l=t.getDay(),i=a.format(t,"YYYYMMDD"),s=a.isSameDate(C,t);return{day:l,dayName:o[l],isToday:s,date:t.getDate(),renderDate:a.format(t,"YYYY-MM-DD"),hiddenSchedules:c[i]||0,width:r[n]?r[n].width:0,left:r[n]?r[n].left:0,backgroundColor:e.range.length>1?function(e,t,n){var l="";l=0===e||6===e?n.weekendBackgroundColor:t?n.todayBackgroundColor:n.backgroundColor;return l}(l,s,_):_.backgroundColor}}),exceedDate:c,showExpandableButton:d.showExpandableButton,collapsed:f,collapseBtnIndex:this.state.clickedExpandBtnIndex,styles:_}},f.prototype.render=function(e){var t,n=this.options,l=this.container,i=this.getBaseViewModel(e),a=this.options.scheduleContainerTop;l.innerHTML=d(i),this.children.clear(),t=new c(n,r.find(o.classname(".container"),l)),this.addChild(t),t.on("afterRender",function(e){i.height=e.minHeight+a}),this.children.each(function(t){t.render(e)},this),this.fire("afterRender",i)},f.prototype._beforeDestroy=function(){},f.prototype.addHandler=function(e,t,n){var l=this;this.handler[e]=t,this.vPanel=n,"click"===e&&(t.on("expand",function(){l.setState({collapsed:!1})},this),t.on("collapse",function(){l.setState({collapsed:!0})},this))},f.prototype._expand=function(){h.requestAnimFrame(function(){var e=this.vPanel,t=this.options,n=g(t.panels,t.viewName);e.setMaxHeight(n.maxExpandableHeight),e.setHeightForcedSet(!1),e.setHeight(null,n.maxExpandableHeight),this.parent&&this.parent.render()},this)},f.prototype._collapse=function(){h.requestAnimFrame(function(){var e=this.vPanel,t=this.options,n=g(t.panels,t.viewName);e.setMaxHeight(n.maxHeight),e.setHeightForcedSet(!1),e.setHeight(null,n.minHeight),this.parent&&this.parent.render()},this)},f.prototype.setState=function(e){var t=this.state.collapsed;u.prototype.setState.call(this,e),this.state.collapsed!==t&&(this.state.collapsed?this._collapse():this._expand())},f.prototype._getStyles=function(e,t){var n,l={},o=this.options.timezones.length,a=t;return e&&(l.borderRight=e.week.daygrid.borderRight||e.common.border,l.todayBackgroundColor=e.week.today.backgroundColor,l.weekendBackgroundColor=e.week.weekend.backgroundColor,l.backgroundColor=e.week.daygrid.backgroundColor,l.leftWidth=e.week.daygridLeft.width,l.leftBackgroundColor=e.week.daygridLeft.backgroundColor,l.leftPaddingRight=e.week.daygridLeft.paddingRight,l.leftBorderRight=e.week.daygridLeft.borderRight,!a&&o>1&&(n=i.parseUnit(l.leftWidth),l.leftWidth=n[0]*o+n[1])),l},e.exports=f},function(e,t,n){"use strict";var l=n(0),o=n(30),i=n(70),a=Math.max;function r(e,t){o.call(this,e,t),this.collapsed=!0}l.inherit(r,o),r.prototype.render=function(e){var t,n=this.container;t=this.getBaseViewModel(e),n.innerHTML=i(t),this.fire("afterRender",t)},r.prototype._getMaxScheduleInDay=function(e){return a.apply(null,l.map(e,function(e){return Math.max.apply(null,l.map(e,function(e){return e.length}))}))},r.prototype._getMinHeight=function(e){var t=this.options;return e*t.scheduleHeight+(e-1)*t.scheduleGutter},r.prototype.getBaseViewModel=function(e){var t,n=this.options,i=n.getViewModelFunc(e),a=this._getMaxScheduleInDay(i),r=this._getStyles(e.theme);return t=o.prototype.getBaseViewModel.call(this,e),t=l.extend({minHeight:this._getMinHeight(a),matrices:i,scheduleContainerTop:this.options.scheduleContainerTop,maxScheduleInDay:a,isReadOnly:n.isReadOnly,styles:r},t)},r.prototype._getStyles=function(e){var t={};return e&&(t.borderRadius=e.week.dayGridSchedule.borderRadius),t},e.exports=r},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i;return null!=(i=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"each").call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:4},end:{line:27,column:15}}}))?i:""},2:function(e,t,n,l,o){var i;return"\n "+(null!=(i=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"each").call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:4},end:{line:26,column:15}}}))?i:"")},3:function(e,t,n,l,o){var i;return"\n "+(null!=(i=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:4},end:{line:25,column:13}}}))?i:"")},4:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'\n
    \n
    \n '+(null!=(i=(d(n,"schedule-tmpl")||t&&d(t,"schedule-tmpl")||s).call(r,null!=t?d(t,"model"):t,{name:"schedule-tmpl",hash:{},data:o,loc:{start:{line:21,column:87},end:{line:21,column:112}}}))?i:"")+"\n "+(null!=(i=d(n,"unless").call(r,(d(n,"or")||t&&d(t,"or")||s).call(r,(i=o&&d(o,"root"))&&d(i,"isReadOnly"),null!=(i=null!=t?d(t,"model"):t)?d(i,"isReadOnly"):i,{name:"or",hash:{},data:o,loc:{start:{line:22,column:22},end:{line:22,column:60}}}),{name:"unless",hash:{},fn:e.program(15,o,0),inverse:e.noop,data:o,loc:{start:{line:22,column:12},end:{line:22,column:193}}}))?i:"")+"\n
    \n
    \n"},5:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:8,column:31},end:{line:8,column:45}}}):i)+"weekday-exceed-left"},7:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:9,column:32},end:{line:9,column:46}}}):i)+"weekday-exceed-right"},9:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:13,column:146},end:{line:13,column:160}}}):i)+"weekday-schedule-focused "},11:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" color: #ffffff; background-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+"; border-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+";\n"},13:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+"; background-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"bgColor"):i,t))+"; border-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"borderColor"):i,t))+";\n"},15:function(e,t,n,l,o){var i,a,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n'+(null!=(i=c(n,"each").call(r,null!=t?c(t,"matrices"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:4},end:{line:28,column:15}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n'},2:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" border-right: "+e.escapeExpression(e.lambda((i=(i=o&&a(o,"root"))&&a(i,"styles"))&&a(i,"borderRight"),t))+";\n"},4:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"days"):t,{name:"each",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:17,column:8},end:{line:27,column:19}}}))?i:""},5:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},(i=o&&a(o,"root"))&&a(i,"collapsed"),{name:"if",hash:{},fn:e.program(6,o,0),inverse:e.program(9,o,0),data:o,loc:{start:{line:18,column:12},end:{line:26,column:19}}}))?i:""},6:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"hiddenSchedules"):t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:19,column:16},end:{line:21,column:23}}}))?i:""},7:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '+(null!=(i=(c(n,"weekGridFooterExceed-tmpl")||t&&c(t,"weekGridFooterExceed-tmpl")||s).call(r,null!=t?c(t,"hiddenSchedules"):t,{name:"weekGridFooterExceed-tmpl",hash:{},data:o,loc:{start:{line:20,column:145},end:{line:20,column:192}}}))?i:"")+"\n"},9:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=(a(n,"fi")||t&&a(t,"fi")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},o&&a(o,"key"),"===",(i=o&&a(o,"root"))&&a(i,"collapseBtnIndex"),{name:"fi",hash:{},fn:e.program(10,o,0),inverse:e.noop,data:o,loc:{start:{line:23,column:16},end:{line:25,column:23}}}))?i:""},10:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '+(null!=(i="function"==typeof(a=null!=(a=c(n,"collapseBtnTitle-tmpl")||(null!=t?c(t,"collapseBtnTitle-tmpl"):t))?a:s)?a.call(r,{name:"collapseBtnTitle-tmpl",hash:{},data:o,loc:{start:{line:24,column:121},end:{line:24,column:148}}}):a)?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda,h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+(null!=(i=(h(n,"dayGridTitle-tmpl")||t&&h(t,"dayGridTitle-tmpl")||s).call(r,null!=t?h(t,"viewName"):t,{name:"dayGridTitle-tmpl",hash:{},data:o,loc:{start:{line:2,column:4},end:{line:2,column:36}}}))?i:"")+'\n
    \n
    \n
    \n
    \n'+(null!=(i=h(n,"each").call(r,null!=t?h(t,"days"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:7,column:8},end:{line:14,column:19}}}))?i:"")+(null!=(i=h(n,"if").call(r,(i=o&&h(o,"root"))&&h(i,"showExpandableButton"),{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:16,column:8},end:{line:28,column:15}}}))?i:"")+"
    \n
    \n
    \n"},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(1),r=n(6),s=n(3),u=n(4),c=n(11),d=n(8),h=n(73),p=n(75),m=n(76),f=n(77),g=n(78),y=u.Date,S=60;function _(e,t,n,o){var a,r,u=e.hourStart,c=e.hourEnd,d=new y(e.renderEndDate),h=parseInt(n/S,10),p=Math.abs(n%S),m=(new y).toLocalTime(),f=m.getMinutes(),g=l.range(0,24),_=null;return(h<0||-0===h)&&p>0&&(h-=1),i.shiftArray(g,h),i.takeArray(g,u,c),a=i.shiftHours(m.getHours(),h)%24,r=l.inArray(a,g),t&&(f<20?_=a:f>40&&(_=a+1),l.isNumber(_)&&(_%=24)),l.map(g,function(e,n){var l,i;return t&&n<=r||d=0,r,n),f.setMinutes(f.getMinutes()+r),m=f.getDate()-h.getDate(),l>0&&(p=n.additionalTimezoneBackgroundColor),s.push({timeSlots:u,displayLabel:t.displayLabel,timezoneOffset:t.timezoneOffset,tooltip:t.tooltip||"",width:d,left:c?0:(a.length-l-1)*d,isPrimary:0===l,backgroundColor:p||"",hidden:0!==l&&c,hourmarker:f,dateDifferenceSign:m<0?"-":"+",dateDifference:Math.abs(m)})}),s},C.prototype._getBaseViewModel=function(e){var t=e.grids,n=e.range,o=this.options,i=this._getHourmarkerViewModel((new y).toLocalTime(),t,n),a=l.pick(e,"state","timezonesCollapsed"),r=this._getStyles(e.theme,a);return l.extend(i,{timezones:this._getTimezoneViewModel(i.todaymarkerLeft,a,r),hoursLabels:_(o,i.todaymarkerLeft>=0,0,r),styles:r,showTimezoneCollapseButton:l.pick(o,"showTimezoneCollapseButton"),timezonesCollapsed:a})},C.prototype._renderChildren=function(e,t,n,i){var r,u,c,d,p=this,m=this.options,f=s.format(new y,"YYYYMMDD"),g=0;n.innerHTML="",this.children.clear(),d=a.getSize(n.parentElement)[1],l.forEach(e,function(e,l){c=l===f,r={index:g,left:t[g]?t[g].left:0,width:t[g]?t[g].width:0,ymd:l,isToday:c,isPending:m.isPending,isFocused:m.isFocused,isReadOnly:m.isReadOnly,hourStart:m.hourStart,hourEnd:m.hourEnd},(u=new h(r,a.appendHTMLElement("div",n,o.classname("time-date")),i)).render(l,e,d),p.addChild(u),g+=1})},C.prototype.render=function(e){var t=this.options,n=e.schedulesInDateRange[t.viewName],i=this.container,r=e.grids,s=this._getBaseViewModel(e),u=l.keys(n).length;this._cacheParentViewModel=e,this._cacheHoursLabels=s.hoursLabels,u&&(s.showHourMarker=s.todaymarkerLeft>=0,i.innerHTML=m(s),this.renderStickyContainer(s),this._renderChildren(n,r,a.find(o.classname(".timegrid-schedules-container"),i),e.theme),this._hourLabels=a.find("ul",i),this.hourmarkers=a.find(o.classname(".timegrid-hourmarker"),i,!0),this._scrolled||(this._scrolled=!0,this.scrollToNow()))},C.prototype.renderStickyContainer=function(e){var t=this.stickyContainer;t.innerHTML=f(e),t.style.display=e.timezones.length>1?"block":"none",t.style.width=e.styles.leftWidth,t.style.height=e.styles.displayTimezoneLabelHeight,t.style.borderBottom=e.styles.leftBorderRight},C.prototype.refreshHourmarker=function(){var e,t=this.hourmarkers,n=this._cacheParentViewModel,i=this._cacheHoursLabels;t&&n&&(e=this._getBaseViewModel(n),c.requestAnimFrame(function(){var r=!1;l.forEach(i,function(t,n){return t.hidden===e.hoursLabels[n].hidden||(r=!0,!1)}),r?this.render(n):l.forEach(t,function(t){var n=a.find(o.classname(".timegrid-todaymarker"),t),l=a.find(o.classname(".timegrid-hourmarker-time"),t),i=a.closest(t,o.classname(".timegrid-timezone")),r=i?a.getData(i,"timezoneIndex"):0;t.style.top=e.hourmarkerTop+"%",n&&(n.style.display=e.todaymarkerLeft>=0?"block":"none"),l&&(l.innerHTML=g(e.hourmarkerTimzones[r]))})},this))},C.prototype.attachEvent=function(){clearInterval(this.intervalID),clearTimeout(this.timerID),this.intervalID=this.timerID=null,this.timerID=setTimeout(l.bind(this.onTick,this),1e3*(60-(new y).getSeconds())),r.on(this.stickyContainer,"click",this._onClickStickyContainer,this)},C.prototype.scrollToNow=function(){var e,t,n,l,o,i=this.container;this.hourmarkers&&this.hourmarkers.length&&(e=this.hourmarkers[0].offsetTop,t=this.getViewBound(),n=e,l=t.height/4,10,o=function(){n>e-l?(n-=10,i.scrollTop=n,c.requestAnimFrame(o)):i.scrollTop=e-l},c.requestAnimFrame(o))},C.prototype.onTick=function(){this.timerID&&(clearTimeout(this.timerID),this.timerID=null),this.intervalID||(this.intervalID=setInterval(l.bind(this.onTick,this),6e4)),this.refreshHourmarker()},C.prototype._getStyles=function(e,t){var n,l={},o=this.options.timezones.length,a=t;return e&&(l.borderBottom=e.week.timegridHorizontalLine.borderBottom||e.common.border,l.halfHourBorderBottom=e.week.timegridHalfHour.borderBottom||e.common.border,l.todayBackgroundColor=e.week.today.backgroundColor,l.weekendBackgroundColor=e.week.weekend.backgroundColor,l.backgroundColor=e.week.daygrid.backgroundColor,l.leftWidth=e.week.timegridLeft.width,l.leftBackgroundColor=e.week.timegridLeft.backgroundColor,l.leftBorderRight=e.week.timegridLeft.borderRight||e.common.border,l.leftFontSize=e.week.timegridLeft.fontSize,l.timezoneWidth=e.week.timegridLeft.width,l.additionalTimezoneBackgroundColor=e.week.timegridLeftAdditionalTimezone.backgroundColor||l.leftBackgroundColor,l.displayTimezoneLabelHeight=e.week.timegridLeftTimezoneLabel.height,l.displayTimezoneLabelBackgroundColor="inherit"===e.week.timegridLeft.backgroundColor?"white":e.week.timegridLeft.backgroundColor,l.oneHourHeight=e.week.timegridOneHour.height,l.halfHourHeight=e.week.timegridHalfHour.height,l.quaterHourHeight=parseInt(l.halfHourHeight,10)/2+"px",l.currentTimeColor=e.week.currentTime.color,l.currentTimeFontSize=e.week.currentTime.fontSize,l.currentTimeFontWeight=e.week.currentTime.fontWeight,l.pastTimeColor=e.week.pastTime.color,l.pastTimeFontWeight=e.week.pastTime.fontWeight,l.futureTimeColor=e.week.futureTime.color,l.futureTimeFontWeight=e.week.futureTime.fontWeight,l.currentTimeLeftBorderTop=e.week.currentTimeLinePast.border,l.currentTimeBulletBackgroundColor=e.week.currentTimeLineBullet.backgroundColor,l.currentTimeTodayBorderTop=e.week.currentTimeLineToday.border,l.currentTimeRightBorderTop=e.week.currentTimeLineFuture.border,!a&&o>1&&(n=i.parseUnit(l.leftWidth),l.leftWidth=n[0]*o+n[1])),l},C.prototype._onClickStickyContainer=function(e){var t=e.target||e.srcElement;a.closest(t,o.classname(".timegrid-timezone-close-btn"))&&this.fire("clickTimezonesCollapsedBtn")},e.exports=C},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(3),a=n(1),r=n(8),s=n(74),u=l.forEachArray,c=i.MILLISECONDS_SCHEDULE_MIN_DURATION;function d(e,t,n){r.call(this,t),this.options=l.extend({index:0,width:0,ymd:"",isToday:!1,pending:!1,hourStart:0,hourEnd:24,defaultMarginBottom:2,minHeight:18.5,isReadOnly:!1},e),this.timeTmpl=s,this.theme=n,t.style.width=e.width+"%",t.style.left=e.left+"%",this.options.isToday&&a.addClass(this.container,o.classname("today")),this.applyTheme()}l.inherit(d,r),d.prototype._parseDateGroup=function(e){var t=parseInt(e.substr(0,4),10),n=parseInt(e.substr(4,2),10),l=parseInt(e.substr(6,2),10),o=i.start();return o.setFullYear(t,n-1,l),i.start(o)},d.prototype._getScheduleViewBoundX=function(e,t){var n=t.baseWidth*(e.extraSpace+1);return e.hasCollide||(n=null),{left:t.baseLeft[t.columnIndex],width:n}},d.prototype._getScheduleViewBoundY=function(e,t){var n,l,o,a,r=t.baseMS,s=t.baseHeight,u=!1,d=!1,h=i.millisecondsFrom("minutes",e.valueOf().goingDuration),p=i.millisecondsFrom("minutes",e.valueOf().comingDuration),m=e.valueOf().start-h-t.todayStart,f=s*m/r,g=e.duration();return n=s*((g=g>c?g:c)+h+p)/r,l=s*h/r,o=s*g/r,a=s*p/r,m<0&&(f=0,n+=s*m/r,u=!0),n+f>s&&(n=s-f,d=!0),{top:f,height:Math.max(n,this.options.minHeight)-this.options.defaultMarginBottom,modelDurationHeight:o,goingDurationHeight:l,comingDurationHeight:a,hasGoingDuration:h>0,hasComingDuration:p>0,croppedStart:u,croppedEnd:d}},d.prototype.getScheduleViewBound=function(e,t){var n=this._getScheduleViewBoundX(e,t),o=this._getScheduleViewBoundY(e,t),i=e.model,a=l.pick(i,"isReadOnly")||!1,r=i.isFocused?"#ffffff":i.borderColor;return r===i.bgColor&&(r=null),l.extend({isReadOnly:a,travelBorderColor:r},n,o)},d.prototype._getBaseViewModel=function(e,t,n){var o,a,r=this,s=this.options,c=s.hourStart,d=s.hourEnd,h=s.isReadOnly;n=n||this.getViewBound().height,(o=this._parseDateGroup(e)).setHours(c),a=i.millisecondsFrom("hour",d-c),u(t,function(e){var t,i,s,c;for(t=Math.max.apply(null,l.map(e,function(e){return e.length})),i=100/t,s=[],c=0;c\n
    \n'+(null!=(i=h(n,"if").call(r,null!=t?h(t,"hasGoingDuration"):t,{name:"if",hash:{},fn:e.program(19,o,0),inverse:e.noop,data:o,loc:{start:{line:29,column:12},end:{line:37,column:19}}}))?i:"")+'
    \n '+(null!=(i=(h(n,"time-tmpl")||t&&h(t,"time-tmpl")||s).call(r,null!=t?h(t,"model"):t,{name:"time-tmpl",hash:{},data:o,loc:{start:{line:45,column:20},end:{line:45,column:41}}}))?i:"")+"\n
    \n"+(null!=(i=h(n,"if").call(r,null!=t?h(t,"hasComingDuration"):t,{name:"if",hash:{},fn:e.program(26,o,0),inverse:e.noop,data:o,loc:{start:{line:47,column:12},end:{line:54,column:19}}}))?i:"")+"
    \n "+(null!=(i=h(n,"unless").call(r,(h(n,"or")||t&&h(t,"or")||s).call(r,null!=t?h(t,"croppedEnd"):t,(i=o&&h(o,"root"))&&h(i,"isReadOnly"),null!=(i=null!=t?h(t,"model"):t)?h(i,"isReadOnly"):i,{name:"or",hash:{},data:o,loc:{start:{line:56,column:22},end:{line:56,column:71}}}),{name:"unless",hash:{},fn:e.program(29,o,0),inverse:e.noop,data:o,loc:{start:{line:56,column:12},end:{line:56,column:202}}}))?i:"")+"\n \n"},5:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:6,column:83},end:{line:6,column:97}}}):i)+"time-date-schedule-block-pending"},7:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" padding-left: "+e.escapeExpression(e.lambda((i=(i=o&&a(o,"root"))&&a(i,"styles"))&&a(i,"paddingLeft"),t))+";\n"},9:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:12,column:147},end:{line:12,column:161}}}):i)+"time-schedule-focused "},11:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" border-bottom-left-radius: "+r(a((i=(i=o&&s(o,"root"))&&s(i,"styles"))&&s(i,"borderRadius"),t))+";\n border-bottom-right-radius: "+r(a((i=(i=o&&s(o,"root"))&&s(i,"styles"))&&s(i,"borderRadius"),t))+";\n"},13:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" border-top-left-radius: "+r(a((i=(i=o&&s(o,"root"))&&s(i,"styles"))&&s(i,"borderRadius"),t))+";\n border-top-right-radius: "+r(a((i=(i=o&&s(o,"root"))&&s(i,"styles"))&&s(i,"borderRadius"),t))+";\n"},15:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" color: #ffffff; background-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+"; border-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+";\n"},17:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+"; background-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"bgColor"):i,t))+"; border-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"borderColor"):i,t))+";\n"},19:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    '+(null!=(i=(c(n,"goingDuration-tmpl")||t&&c(t,"goingDuration-tmpl")||s).call(r,null!=t?c(t,"model"):t,{name:"goingDuration-tmpl",hash:{},data:o,loc:{start:{line:36,column:66},end:{line:36,column:96}}}))?i:"")+"
    \n"},20:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" border-color:"+e.escapeExpression(e.lambda(null!=(i=null!=t?a(t,"model"):t)?a(i,"color"):i,t))+";\n"},22:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" border-color:"+e.escapeExpression(e.lambda(null!=(i=null!=t?a(t,"model"):t)?a(i,"borderColor"):i,t))+";\n"},24:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"border-bottom: 1px dashed "+e.escapeExpression("function"==typeof(i=null!=(i=a(n,"travelBorderColor")||(null!=t?a(t,"travelBorderColor"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"travelBorderColor",hash:{},data:o,loc:{start:{line:44,column:67},end:{line:44,column:88}}}):i)+";"},26:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    '+(null!=(i=(c(n,"comingDuration-tmpl")||t&&c(t,"comingDuration-tmpl")||s).call(r,null!=t?c(t,"model"):t,{name:"comingDuration-tmpl",hash:{},data:o,loc:{start:{line:53,column:26},end:{line:53,column:57}}}))?i:"")+"
    \n"},27:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" border-color:"+e.escapeExpression(e.lambda(null!=(i=null!=t?a(t,"model"):t)?a(i,"borderColor"):i,t))+";\n "},29:function(e,t,n,l,o){var i,a,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
     
    '},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n'+(null!=(i=u(n,"each").call(r,null!=t?u(t,"matrices"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:0},end:{line:61,column:9}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(6),i=n(1),a=n(31);function r(e){this.container=e,this._direction=r.DIRECTION.INSIDE,this._offset=0,this._intervalID=0,o.on(e,{mousedown:this._onMouseDown},this)}r.DIRECTION={INSIDE:0,TOP:1,RIGHT:2,BOTTOM:3,LEFT:4},r.prototype.destroy=function(){o.off(this.container,{mousedown:this._onMouseDown,mousemove:this._onMouseMove,mouseup:this._onMouseUp},this),window.clearInterval(this._intervalID),this._intervalID=this._direction=this.container=null},r.prototype._getEdgePositions=function(e){return{top:e.top,right:e.left+e.width,bottom:e.bottom,left:e.left}},r.prototype.getRealSize=function(e){var t,n,l=i.getComputedStyle(e);return t=parseFloat(l.getPropertyValue("border-top-width"))+parseFloat(l.getPropertyValue("border-bottom-width")),n=parseFloat(l.getPropertyValue("padding-top"))+parseFloat(l.getPropertyValue("padding-bottom")),[e.clientWidth+t+n,e.clientHeight+t+n]},r.prototype.hasScrollbar=function(e){var t=this.getRealSize(e);return[e.offsetWidth>Math.ceil(t[0]),e.offsetHeight>Math.ceil(t[1])]},r.prototype.isOnScrollbar=function(e,t){var n=this.getRealSize(e),l=o.getMousePosition(t,e);return n[0]-2=t.top&&n.y<=t.bottom&&n.x>=t.left&&n.x<=t.right)this._direction=r.DIRECTION.INSIDE;else{if(n.yt.bottom)return this._direction=r.DIRECTION.BOTTOM,void(this._offset=n.y-t.bottom);if(n.x\n'+(null!=(i=d(n,"if").call(r,null!=t?d(t,"isPrimary"):t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.program(10,o,0),data:o,loc:{start:{line:4,column:8},end:{line:26,column:15}}}))?i:"")+" \n"},2:function(e,t,n,l,o){return"display:none;"},4:function(e,t,n,l,o){var i,a=null!=t?t:e.nullContext||{},r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(i=r(n,"each").call(a,null!=t?r(t,"timeSlots"):t,{name:"each",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:12},end:{line:9,column:23}}}))?i:"")+(null!=(i=r(n,"if").call(a,(i=o&&r(o,"root"))&&r(i,"showHourMarker"),{name:"if",hash:{},fn:e.program(8,o,0),inverse:e.noop,data:o,loc:{start:{line:10,column:12},end:{line:14,column:19}}}))?i:"")},5:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+(null!=(i=(c(n,"timegridDisplayPrimayTime-tmpl")||t&&c(t,"timegridDisplayPrimayTime-tmpl")||s).call(r,t,{name:"timegridDisplayPrimayTime-tmpl",hash:{},data:o,loc:{start:{line:7,column:68},end:{line:7,column:109}}}))?i:"")+"\n
    \n"},6:function(e,t,n,l,o){return"display:none"},8:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    '+(null!=(i=(d(n,"timegridCurrentTime-tmpl")||t&&d(t,"timegridCurrentTime-tmpl")||s).call(r,t,{name:"timegridCurrentTime-tmpl",hash:{},data:o,loc:{start:{line:12,column:223},end:{line:12,column:258}}}))?i:"")+"
    \n
    \n"},10:function(e,t,n,l,o){var i,a=null!=t?t:e.nullContext||{},r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(i=r(n,"each").call(a,null!=t?r(t,"timeSlots"):t,{name:"each",hash:{},fn:e.program(11,o,0),inverse:e.noop,data:o,loc:{start:{line:16,column:12},end:{line:20,column:23}}}))?i:"")+(null!=(i=r(n,"if").call(a,(i=o&&r(o,"root"))&&r(i,"showHourMarker"),{name:"if",hash:{},fn:e.program(13,o,0),inverse:e.noop,data:o,loc:{start:{line:21,column:12},end:{line:25,column:19}}}))?i:"")},11:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+(null!=(i=(c(n,"timegridDisplayTime-tmpl")||t&&c(t,"timegridDisplayTime-tmpl")||s).call(r,t,{name:"timegridDisplayTime-tmpl",hash:{},data:o,loc:{start:{line:18,column:68},end:{line:18,column:103}}}))?i:"")+"\n
    \n"},13:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    '+(null!=(i=(d(n,"timegridCurrentTime-tmpl")||t&&d(t,"timegridCurrentTime-tmpl")||s).call(r,t,{name:"timegridCurrentTime-tmpl",hash:{},data:o,loc:{start:{line:23,column:171},end:{line:23,column:206}}}))?i:"")+"
    \n
    \n"},15:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    \n
    \n'},16:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" border-bottom: "+e.escapeExpression(e.lambda((i=(i=o&&a(o,"root"))&&a(i,"styles"))&&a(i,"borderBottom"),t))+";\n"},18:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda,h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    \n
    today
    \n
    \n
    \n
    \n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda,h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n'+(null!=(i=h(n,"each").call(r,null!=t?h(t,"timezones"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:4},end:{line:28,column:15}}}))?i:"")+'
    \n
    \n
    \n'+(null!=(i=h(n,"each").call(r,null!=t?h(t,"hoursLabels"):t,{name:"each",hash:{},fn:e.program(15,o,0),inverse:e.noop,data:o,loc:{start:{line:32,column:8},end:{line:40,column:19}}}))?i:"")+'
    \n
    \n
    \n
    \n\n'+(null!=(i=h(n,"if").call(r,null!=t?h(t,"showHourMarker"):t,{name:"if",hash:{},fn:e.program(18,o,0),inverse:e.noop,data:o,loc:{start:{line:46,column:4},end:{line:53,column:11}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda,h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    \n'+(null!=(i=h(n,"if").call(r,(h(n,"and")||t&&h(t,"and")||s).call(r,null!=t?h(t,"isPrimary"):t,(i=o&&h(o,"root"))&&h(i,"showTimezoneCollapseButton"),{name:"and",hash:{},data:o,loc:{start:{line:4,column:14},end:{line:4,column:62}}}),{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:8},end:{line:10,column:15}}}))?i:"")+'
    '+(null!=(i=(h(n,"timezoneDisplayLabel-tmpl")||t&&h(t,"timezoneDisplayLabel-tmpl")||s).call(r,null!=t?h(t,"timezoneOffset"):t,null!=t?h(t,"displayLabel"):t,{name:"timezoneDisplayLabel-tmpl",hash:{},data:o,loc:{start:{line:11,column:59},end:{line:11,column:118}}}))?i:"")+"
    \n
    \n
    \n"},2:function(e,t,n,l,o){return"display:none;"},4:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n \n \n \n
    \n'},5:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:7,column:84},end:{line:7,column:98}}}):i)+"ic-arrow-right"},7:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:7,column:120},end:{line:7,column:134}}}):i)+"ic-arrow-left"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a=null!=t?t:e.nullContext||{},r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=r(n,"each").call(a,(r(n,"reverse")||t&&r(t,"reverse")||e.hooks.helperMissing).call(a,null!=t?r(t,"timezones"):t,{name:"reverse",hash:{},data:o,loc:{start:{line:1,column:8},end:{line:1,column:27}}}),{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:14,column:11}}}))?i:""},useData:!0})},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(i=(a(n,"timegridCurrentTime-tmpl")||t&&a(t,"timegridCurrentTime-tmpl")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},t,{name:"timegridCurrentTime-tmpl",hash:{},data:o,loc:{start:{line:1,column:0},end:{line:1,column:35}}}))?i:"")+"\n"},useData:!0})},function(e,n){e.exports=t},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:3,column:150},end:{line:3,column:164}}}):i)+"hide"},3:function(e,t,n,l,o){var i,a=null!=t?t:e.nullContext||{},r=e.hooks.helperMissing,s="function",u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
  • \n \n '+u(typeof(i=null!=(i=c(n,"name")||(null!=t?c(t,"name"):t))?i:r)===s?i.call(a,{name:"name",hash:{},data:o,loc:{start:{line:14,column:60},end:{line:14,column:68}}}):i)+"\n
  • \n"},5:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:24,column:135},end:{line:24,column:149}}}):i)+"public"},7:function(e,t,n,l,o){return" checked"},9:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(i=null!=(i=a(n,"state")||(null!=t?a(t,"state"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"state",hash:{},data:o,loc:{start:{line:55,column:99},end:{line:55,column:108}}}):i)},11:function(e,t,n,l,o){var i,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i="function"==typeof(a=null!=(a=r(n,"popupStateBusy-tmpl")||(null!=t?r(t,"popupStateBusy-tmpl"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"popupStateBusy-tmpl",hash:{},data:o,loc:{start:{line:55,column:116},end:{line:55,column:141}}}):a)?i:""},13:function(e,t,n,l,o){var i,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i="function"==typeof(a=null!=(a=r(n,"popupUpdate-tmpl")||(null!=t?r(t,"popupUpdate-tmpl"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"popupUpdate-tmpl",hash:{},data:o,loc:{start:{line:70,column:163},end:{line:70,column:185}}}):a)?i:""},15:function(e,t,n,l,o){var i,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i="function"==typeof(a=null!=(a=r(n,"popupSave-tmpl")||(null!=t?r(t,"popupSave-tmpl"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"popupSave-tmpl",hash:{},data:o,loc:{start:{line:70,column:193},end:{line:70,column:213}}}):a)?i:""},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda,h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    \n
    \n \n
      \n'+(null!=(i=h(n,"each").call(r,null!=t?h(t,"calendars"):t,{name:"each",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:11,column:16},end:{line:16,column:25}}}))?i:"")+'
    \n
    \n
    \n
    \n \n \n
    \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n -\n
    \n \n \n
    \n
    \n
    \n \n \n '+(null!=(i=typeof(a=null!=(a=h(n,"popupIsAllDay-tmpl")||(null!=t?h(t,"popupIsAllDay-tmpl"):t))?a:s)===u?a.call(r,{name:"popupIsAllDay-tmpl",hash:{},data:o,loc:{start:{line:49,column:52},end:{line:49,column:76}}}):a)?i:"")+'\n
    \n
    \n
    \n \n
      \n
    • \n \n '+(null!=(i=typeof(a=null!=(a=h(n,"popupStateBusy-tmpl")||(null!=t?h(t,"popupStateBusy-tmpl"):t))?a:s)===u?a.call(r,{name:"popupStateBusy-tmpl",hash:{},data:o,loc:{start:{line:61,column:52},end:{line:61,column:77}}}):a)?i:"")+'\n
    • \n
    • \n \n '+(null!=(i=typeof(a=null!=(a=h(n,"popupStateFree-tmpl")||(null!=t?h(t,"popupStateFree-tmpl"):t))?a:s)===u?a.call(r,{name:"popupStateFree-tmpl",hash:{},data:o,loc:{start:{line:65,column:52},end:{line:65,column:77}}}):a)?i:"")+'\n
    • \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n'},useData:!0})},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    '+(null!=(i=(c(n,"popupDetailLocation-tmpl")||t&&c(t,"popupDetailLocation-tmpl")||s).call(r,null!=t?c(t,"schedule"):t,{name:"popupDetailLocation-tmpl",hash:{},data:o,loc:{start:{line:11,column:182},end:{line:11,column:221}}}))?i:"")+"
    "},3:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    '+(null!=(i=(c(n,"popupDetailRepeat-tmpl")||t&&c(t,"popupDetailRepeat-tmpl")||s).call(r,null!=t?c(t,"schedule"):t,{name:"popupDetailRepeat-tmpl",hash:{},data:o,loc:{start:{line:12,column:186},end:{line:12,column:223}}}))?i:"")+"
    "},5:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    '+(null!=(i=(d(n,"popupDetailUser-tmpl")||t&&d(t,"popupDetailUser-tmpl")||s).call(r,null!=t?d(t,"schedule"):t,{name:"popupDetailUser-tmpl",hash:{},data:o,loc:{start:{line:13,column:218},end:{line:13,column:253}}}))?i:"")+"
    "},7:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    '+(null!=(i=(c(n,"popupDetailState-tmpl")||t&&c(t,"popupDetailState-tmpl")||s).call(r,null!=t?c(t,"schedule"):t,{name:"popupDetailState-tmpl",hash:{},data:o,loc:{start:{line:14,column:176},end:{line:14,column:212}}}))?i:"")+"
    "},9:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    '+u(c(null!=(i=null!=t?d(t,"calendar"):t)?d(i,"name"):i,t))+"
    \n"},11:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    '+(null!=(i=(c(n,"popupDetailBody-tmpl")||t&&c(t,"popupDetailBody-tmpl")||s).call(r,null!=t?c(t,"schedule"):t,{name:"popupDetailBody-tmpl",hash:{},data:o,loc:{start:{line:18,column:151},end:{line:18,column:186}}}))?i:"")+"
    "},13:function(e,t,n,l,o){return""},15:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n \n
    \n \n
    \n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda,h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    \n
    \n
    \n \n '+c(d(null!=(i=null!=t?h(t,"schedule"):t)?h(i,"title"):i,t))+'\n
    \n
    '+(null!=(i=(h(n,"popupDetailDate-tmpl")||t&&h(t,"popupDetailDate-tmpl")||s).call(r,null!=(i=null!=t?h(t,"schedule"):t)?h(i,"isAllDay"):i,null!=(i=null!=t?h(t,"schedule"):t)?h(i,"start"):i,null!=(i=null!=t?h(t,"schedule"):t)?h(i,"end"):i,{name:"popupDetailDate-tmpl",hash:{},data:o,loc:{start:{line:8,column:73},end:{line:8,column:145}}}))?i:"")+'
    \n
    \n
    \n '+(null!=(i=h(n,"if").call(r,null!=(i=null!=t?h(t,"schedule"):t)?h(i,"location"):i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:11,column:8},end:{line:11,column:241}}}))?i:"")+"\n "+(null!=(i=h(n,"if").call(r,null!=(i=null!=t?h(t,"schedule"):t)?h(i,"recurrenceRule"):i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:12,column:8},end:{line:12,column:243}}}))?i:"")+"\n "+(null!=(i=h(n,"if").call(r,null!=(i=null!=t?h(t,"schedule"):t)?h(i,"attendees"):i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:13,column:8},end:{line:13,column:273}}}))?i:"")+"\n "+(null!=(i=h(n,"if").call(r,null!=(i=null!=t?h(t,"schedule"):t)?h(i,"state"):i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:14,column:8},end:{line:14,column:232}}}))?i:"")+"\n"+(null!=(i=h(n,"if").call(r,null!=t?h(t,"calendar"):t,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o,loc:{start:{line:15,column:8},end:{line:17,column:15}}}))?i:"")+" "+(null!=(i=h(n,"if").call(r,null!=(i=null!=t?h(t,"schedule"):t)?h(i,"body"):i,{name:"if",hash:{},fn:e.program(11,o,0),inverse:e.noop,data:o,loc:{start:{line:18,column:8},end:{line:18,column:206}}}))?i:"")+"\n
    \n"+(null!=(i=h(n,"if").call(r,null!=(i=null!=t?h(t,"schedule"):t)?h(i,"isReadOnly"):i,{name:"if",hash:{},fn:e.program(13,o,0),inverse:e.program(15,o,0),data:o,loc:{start:{line:20,column:4},end:{line:27,column:11}}}))?i:"")+'
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n'},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1);function a(e,t,n){this.dragHandler=e,this.dayNameView=t,this.baseController=n,e.on({click:this._onClick},this)}a.prototype.destroy=function(){this.dragHandler.off(this),this.dayNameView=this.baseController=this.dragHandler=null},a.prototype.checkExpectCondition=function(e){return!!i.closest(e,o.classname(".dayname-date-area"))},a.prototype._onClick=function(e){var t=e.target,n=this.checkExpectCondition(t),l=i.closest(t,o.classname(".dayname"));n&&l&&this.fire("clickDayname",{date:i.getData(l,"date")})},l.CustomEvents.mixin(a),e.exports=a},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1),a=n(34);function r(e,t,n){this.dragHandler=e,this.view=t,this.controller=n,e.on({click:this._onClick},this)}r.prototype.destroy=function(){this.dragHandler.off(this),this.view=this.controller=this.dragHandler=null},r.prototype.checkExpectCondition=a.prototype.checkExpectedCondition,r.prototype._onClick=function(e){var t,n=this,l=e.target,a=this.checkExpectCondition(l),r=this.controller.schedules,s=i.closest(l,o.classname(".weekday-collapse-btn")),u=i.closest(l,o.classname(".weekday-exceed-in-week"));if(this.view.container.contains(l)){if(!s)return u?(this.view.setState({clickedExpandBtnIndex:parseInt(i.getData(u,"index"),10)}),void n.fire("expand")):void(a&&i.closest(l,o.classname(".weekday-schedule"))&&(t=i.closest(l,o.classname(".weekday-schedule-block")),r.doWhenHas(i.getData(t,"id"),function(t){n.fire("clickSchedule",{schedule:t,event:e.originEvent})})));n.fire("collapse")}},l.CustomEvents.mixin(r),e.exports=r},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(2),i=n(3),a=n(1),r=n(11);function s(e){this.daygridMove=e,this.scheduleContainer=null,this._dragStartXIndex=null,this.guideElement=null,this.elements=null,e.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._clearGuideElement,click:this._clearGuideElement},this)}s.prototype.destroy=function(){this._clearGuideElement(),this.daygridMove.off(this),this.daygridMove=this.scheduleContainer=this._dragStartXIndex=this.elements=this.guideElement=null},s.prototype._clearGuideElement=function(){this._showOriginScheduleBlocks(),a.remove(this.guideElement),l.browser.msie||a.removeClass(t.document.body,o.classname("dragging")),this._dragStartXIndex=this.getScheduleDataFunc=this.guideElement=null},s.prototype._hideOriginScheduleBlocks=function(e){var t=o.classname("weekday-schedule-block-dragging-dim"),n=a.find(o.classname(".weekday-schedule-block"),this.daygridMove.view.container,!0);this.elements=l.filter(n,function(t){return a.getData(t,"id")===e}),l.forEach(this.elements,function(e){a.addClass(e,t)})},s.prototype._showOriginScheduleBlocks=function(){var e=o.classname("weekday-schedule-block-dragging-dim");l.forEach(this.elements,function(t){a.removeClass(t,e)})},s.prototype._highlightScheduleBlocks=function(e,t){var n=a.find(o.classname(".weekday-schedule"),t,!0);l.forEach(n,function(t){t.style.margin="0",e.isFocused||(t.style.backgroundColor=e.dragBgColor,t.style.borderLeftColor=e.borderColor,t.style.color="#ffffff")})},s.prototype.refreshGuideElement=function(e,t,n,l){var i=this.guideElement;r.requestAnimFrame(function(){i.style.left=e+"%",i.style.width=t+"%",n?a.addClass(i,o.classname("weekday-exceed-left")):a.removeClass(i,o.classname("weekday-exceed-left")),l?a.addClass(i,o.classname("weekday-exceed-right")):a.removeClass(i,o.classname("weekday-exceed-right"))})},s.prototype._getScheduleBlockDataFunc=function(e){var t=e.model,n=e.datesInRange,l=e.range,o=100/n,a=i.start(t.start),r=i.end(t.end),s=i.start(l[0]),u=i.end(l[l.length-1]),c=Math.ceil((a.getTime()-s.getTime())/i.MILLISECONDS_PER_DAY)||0,d=Math.ceil((r.getTime()-u.getTime())/i.MILLISECONDS_PER_DAY)||0;return function(e){return{baseWidthPercent:o,fromLeft:c+e,fromRight:d+e}}},s.prototype._onDragStart=function(e){var n,i=this.daygridMove.view.container,r=this.guideElement=e.scheduleBlockElement.cloneNode(!0);l.browser.msie||a.addClass(t.document.body,o.classname("dragging")),this._hideOriginScheduleBlocks(String(e.model.cid())),n=a.find(o.classname(".weekday-schedules"),i),a.appendHTMLElement("div",r,o.classname("weekday-schedule-cover")),n.appendChild(r),this._dragStartXIndex=e.xIndex,this.getScheduleDataFunc=this._getScheduleBlockDataFunc(e),this._highlightScheduleBlocks(e.model,r)},s.prototype._onDrag=function(e){var t,n,l,o,i,a,r,s,u=this.getScheduleDataFunc,c=this._dragStartXIndex,d=e.datesInRange,h=e.grids;u&&(n=(t=u(e.xIndex-c)).fromLeft<0,l=t.fromRight>0,i=Math.max(0,t.fromLeft),o=-1*t.fromLeft+(d+t.fromRight),a=n?o+t.fromLeft:o,a=l?a-t.fromRight:a,r=h[i]?h[i].left:0,s=function(e,t,n){for(var l=0,o=0,i=n.length;ol&&n<=e&&(t+=o[n]?o[n].width:0);return t}},s.prototype._onDragStart=function(e){var n,a=this.resizeHandler.view.container,r=this.scheduleBlockElement=e.scheduleBlockElement,s=this.guideElement=r.cloneNode(!0);l.browser.msie||i.addClass(t.document.body,o.classname("resizing-x")),n=i.find(o.classname(".weekday-schedules"),a),i.addClass(s,o.classname("daygrid-guide-move")),i.addClass(r,o.classname("weekday-schedule-block-dragging-dim")),n.appendChild(s),this.getScheduleDataFunc=this.getGuideElementWidthFunc(e)},s.prototype._onDrag=function(e){var t=this.getScheduleDataFunc;t&&this.refreshGuideElement(t(e.xIndex))},e.exports=s}).call(this,n(9))},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1);function a(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,e.on({click:this._onClick},this)}a.prototype.destroy=function(){this.dragHandler.off(this),this.timeGridView=this.baseController=this.dragHandler=null},a.prototype.checkExpectCondition=function(e){var t,n;return!!(t=i.closest(e,o.classname(".time-date")))&&(!(!(n=i.getClass(t).match(o.time.getViewIDRegExp))||n.length<2)&&l.pick(this.timeGridView.children.items,Number(n[1])))},a.prototype._onClick=function(e){var t=this,n=e.target,l=this.checkExpectCondition(n),a=i.closest(n,o.classname(".time-date-schedule-block")),r=this.baseController.schedules;l&&a&&r.doWhenHas(i.getData(a,"id"),function(n){t.fire("clickSchedule",{schedule:n,event:e.originEvent})})},l.CustomEvents.mixin(a),e.exports=a},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(15),a=n(3),r=n(1),s=n(6),u=n(5),c=n(91),d=n(4).Date,h=n(18),p=300;function m(e,t,n,l){this.dragHandler=e,this.timeGridView=t,this.baseController=n,this.guide=new c(this),this._getScheduleDataFunc=null,this._dragStart=null,this._requestOnClick=!1,this._disableDblClick=l.disableDblClick,this._disableClick=l.disableClick,e.on("dragStart",this._onDragStart,this),e.on("click",this._onClick,this),this._disableDblClick?p=0:s.on(t.container,"dblclick",this._onDblClick,this)}m.prototype.destroy=function(){var e=this.timeGridView;this.guide.destroy(),this.dragHandler.off(this),e&&e.container&&s.off(e.container,"dblclick",this._onDblClick,this),this.dragHandler=this.timeGridView=this.baseController=this._getScheduleDataFunc=this._dragStart=this.guide=null},m.prototype.checkExpectedCondition=function(e){var t,n=r.getClass(e);return n===o.classname("time-date-schedule-block-wrap")&&(e=e.parentNode,n=r.getClass(e)),!(!(t=n.match(o.time.getViewIDRegExp))||t.length<2)&&l.pick(this.timeGridView.children.items,t[1])},m.prototype._onDragStart=function(e,t,n){var l,o,i=e.target,a=this.checkExpectedCondition(i);a&&(l=this._getScheduleDataFunc=this._retriveScheduleData(a),o=this._dragStart=l(e.originEvent),n&&n(o),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.fire(t||"timeCreationDragstart",o))},m.prototype._onDrag=function(e,t,n){var l,o=this._getScheduleDataFunc;o&&(l=o(e.originEvent),n&&n(l),this.fire(t||"timeCreationDrag",l))},m.prototype._createSchedule=function(e){var t,n,l,o,i,r=e.relatedView,s=e.createRange,c=e.nearestGridTimeY,h=e.nearestGridEndTimeY?e.nearestGridEndTimeY:new d(c).addMinutes(30);s||(s=[c,h]),t=new d(r.getDate()),n=a.start(t),l=a.getStartOfNextDay(t),o=u.limitDate(s[0],n,l),i=u.limitDate(s[1],n,l),this.fire("beforeCreateSchedule",{isAllDay:!1,start:new d(o),end:new d(i),guide:this.guide,triggerEventName:e.triggerEvent})},m.prototype._onDragEnd=function(e){var t=this,n=this._dragStart;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this._onDrag(e,"timeCreationDragend",function(e){var l=[n.nearestGridTimeY,e.nearestGridTimeY].sort(i.compare.num.asc);l[1].addMinutes(30),e.createRange=l,t._createSchedule(e)}),this._dragStart=this._getScheduleDataFunc=null},m.prototype._onClick=function(e){var t,n,l,o=this;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),(t=this.checkExpectedCondition(e.target))&&!this._disableClick&&(n=this._retriveScheduleData(t),l=n(e.originEvent),this._requestOnClick=!0,setTimeout(function(){o._requestOnClick&&(o.fire("timeCreationClick",l),o._createSchedule(l)),o._requestOnClick=!1},p),this._dragStart=this._getScheduleDataFunc=null)},m.prototype._onDblClick=function(e){var t,n;(t=this.checkExpectedCondition(e.target))&&(n=this._retriveScheduleData(t)(e),this.fire("timeCreationClick",n),this._createSchedule(n),this._requestOnClick=!1)},m.prototype.invokeCreationClick=function(e){var t,n,o=this.timeGridView.options,i=a.range(o.renderStartDate,o.renderEndDate,a.MILLISECONDS_PER_DAY),r=o.hourStart,s=e.start;l.forEach(i,function(e,t){a.isSameDate(e,s)&&(n=this.timeGridView.children.toArray()[t])},this),n||(n=this.timeGridView.children.toArray()[0]),t=this._retriveScheduleDataFromDate(n)(e.start,e.end,r),this.fire("timeCreationClick",t),this._createSchedule(t)},h.mixin(m),l.CustomEvents.mixin(m),e.exports=m},function(e,t,n){"use strict";(function(t){var l=n(5),o=n(3),i=n(2),a=n(1),r=n(11),s=n(5).ratio,u=n(4).Date,c=60*o.MILLISECONDS_PER_MINUTES;function d(e){this.guideElement=t.document.createElement("div"),this.guideTimeElement=a.appendHTMLElement("span",this.guideElement,i.classname("time-guide-creation-label")),a.addClass(this.guideElement,i.classname("time-guide-creation")),this.timeCreation=e,this._styleUnit=null,this._styleStart=null,this._styleFunc=null,e.on({timeCreationDragstart:this._createGuideElement,timeCreationDrag:this._onDrag,timeCreationClick:this._createGuideElement},this),this.applyTheme(e.baseController.theme)}d.prototype.destroy=function(){this.clearGuideElement(),this.timeCreation.off(this),this.timeCreation=this._styleUnit=this._styleStart=this._styleFunc=this.guideElement=this.guideTimeElement=null},d.prototype.clearGuideElement=function(){var e=this.guideElement,t=this.guideTimeElement;a.remove(e),r.requestAnimFrame(function(){e.style.display="none",e.style.top="",e.style.height="",t.innerHTML=""})},d.prototype._refreshGuideElement=function(e,t,n,l,r){var s=this.guideElement,u=this.guideTimeElement;s.style.top=e+"px",s.style.height=t+"px",s.style.display="block",u.innerHTML=o.format(n,"HH:mm")+" - "+o.format(l,"HH:mm"),r?a.removeClass(u,i.classname("time-guide-bottom")):a.addClass(u,i.classname("time-guide-bottom"))},d.prototype._getUnitData=function(e){var t=e.options,n=e.getViewBound().height,l=t.hourEnd-t.hourStart,i=o.parse(t.ymd),a=o.getStartOfNextDay(i);return i.setHours(0,0,0,0),i.setHours(t.hourStart),[n,l,i,a,n/l]},d.prototype._limitStyleData=function(e,t,n,o){var i=this._styleUnit;return[e=l.limit(e,[0],[i[0]]),t=l.limit(e+t,[0],[i[0]])-e,n=l.limitDate(n,i[2],i[3]),o=l.limitDate(o,i[2],i[3])]},d.prototype._getStyleDataFunc=function(e,t,n){var i=n,a=o.end(n);return function(n){var o=n.nearestGridY,r=n.nearestGridTimeY,c=n.nearestGridEndTimeY||new u(r).addMinutes(30);return[l.limit(s(t,e,o),[0],[e]),l.limitDate(r,i,a),l.limitDate(c,i,a)]}},d.prototype._createGuideElement=function(e){var t,n,l,i,a,r,s,d,h=e.relatedView,p=o.millisecondsFrom("hour",e.hourStart)||0;t=this._styleUnit=this._getUnitData(h),n=this._styleFunc=this._getStyleDataFunc.apply(this,t),l=this._styleStart=n(e),s=new u(l[1]).addMinutes(o.minutesFromHours(p)),d=new u(l[2]).addMinutes(o.minutesFromHours(p)),a=l[0],r=t[4]*(d-s)/c,i=this._limitStyleData(a,r,s,d),this._refreshGuideElement.apply(this,i),h.container.appendChild(this.guideElement)},d.prototype._onDrag=function(e){var t,n,l,o=this._styleFunc,i=this._styleUnit,a=this._styleStart,s=this._refreshGuideElement.bind(this);o&&i&&a&&(t=i[4]/2,(n=o(e))[0]>a[0]?l=this._limitStyleData(a[0],n[0]-a[0]+t,a[1],new u(n[1]).addMinutes(30)):(l=this._limitStyleData(n[0],a[0]-n[0]+t,n[1],new u(a[1]).addMinutes(30))).push(!0),r.requestAnimFrame(function(){s.apply(null,l)}))},d.prototype.applyTheme=function(e){var t=this.guideElement.style,n=this.guideTimeElement.style;t.backgroundColor=e.common.creationGuide.backgroundColor,t.border=e.common.creationGuide.border,n.color=e.week.creationGuide.color,n.fontSize=e.week.creationGuide.fontSize,n.fontWeight=e.week.creationGuide.fontWeight},e.exports=d}).call(this,n(9))},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(3),a=n(1),r=n(6),s=n(4).Date,u=n(18),c=n(93);function d(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,this._getScheduleDataFunc=null,this._dragStart=null,this._guide=new c(this),e.on("dragStart",this._onDragStart,this),e.on("mousedown",this._onMouseDown,this)}d.prototype.destroy=function(){this._guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.timeGridView=this.baseController=this._getScheduleDataFunc=this._dragStart=this._guide=null},d.prototype.checkExpectCondition=function(e){return!!a.closest(e,o.classname(".time-schedule"))&&this._getTimeView(e)},d.prototype._getTimeView=function(e){var t,n=a.closest(e,o.classname(".time-date"));return!!n&&(!(!(t=a.getClass(n).match(o.time.getViewIDRegExp))||t.length<2)&&l.pick(this.timeGridView.children.items,Number(t[1])))},d.prototype._onMouseDown=function(e){var t=e.target,n=this.checkExpectCondition(t),i=a.closest(t,o.classname(".time-date-schedule-block"));n&&i&&l.browser.firefox&&r.preventDefault(e.originEvent)},d.prototype._onDragStart=function(e){var t,n,l,i,r=e.target,s=this.checkExpectCondition(r),u=a.closest(r,o.classname(".time-date-schedule-block")),c=this.baseController;s&&u&&(l=a.getData(u,"id"),(i=c.schedules.items[l]).isReadOnly||(t=this._getScheduleDataFunc=this._retriveScheduleData(s),n=this._dragStart=t(e.originEvent,{targetModelID:l,model:i}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("timeMoveDragstart",n)))},d.prototype._onDrag=function(e,t,n){var l,o=this._getScheduleDataFunc,i=this._getTimeView(e.target),a=this._dragStart;i&&o&&a&&(l=o(e.originEvent,{currentView:i,targetModelID:a.targetModelID}),n&&n(l),this.fire(t||"timeMoveDrag",l))},d.prototype._updateSchedule=function(e){var t,n,l=this.baseController,o=e.targetModelID,a=e.nearestRange,r=a[1]-a[0],u=0,c=l.schedules.items[o],d=e.relatedView,h=e.currentView;c&&h&&(r-=i.millisecondsFrom("minutes",30),t=new s(c.getStarts()).addMilliseconds(r),n=new s(c.getEnds()).addMilliseconds(r),h&&(u=h.getDate()-d.getDate()),t.addMilliseconds(u),n.addMilliseconds(u),this.fire("beforeUpdateSchedule",{schedule:c,changes:{start:t,end:n},start:t,end:n}))},d.prototype._onDragEnd=function(e){var t,n=this._getScheduleDataFunc,l=this._getTimeView(e.target),o=this._dragStart;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),n&&o&&((t=n(e.originEvent,{currentView:l,targetModelID:o.targetModelID})).range=[o.timeY,new s(t.timeY).addMinutes(30)],t.nearestRange=[o.nearestGridTimeY,new s(t.nearestGridTimeY).addMinutes(30)],this._updateSchedule(t),this.fire("timeMoveDragend",t))},d.prototype._onClick=function(e){var t,n=this._getScheduleDataFunc,l=this._dragStart;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),n&&l&&(t=n(e.originEvent,{targetModelID:l.targetModelID}),this.fire("timeMoveClick",t))},u.mixin(d),l.CustomEvents.mixin(d),e.exports=d},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(2),i=n(1),a=n(11),r=n(5).ratio,s=n(16),u=n(94),c=n(4).Date,d=n(14),h=n(3),p=n(5),m=h.MILLISECONDS_SCHEDULE_MIN_DURATION;function f(e){this._guideLayer=null,this._model=null,this._viewModel=null,this._lastDrag=null,this.guideElement=null,this.timeMove=e,this._container=null,this._getTopFunc=null,this._startGridY=0,this._startTopPixel=0,e.on({timeMoveDragstart:this._onDragStart,timeMoveDrag:this._onDrag,timeMoveDragend:this._clearGuideElement,timeMoveClick:this._clearGuideElement},this)}f.prototype.destroy=function(){this._clearGuideElement(),this.timeMove.off(this),this._guideLayer&&this._guideLayer.destroy(),this.guideElement=this.timeMove=this._container=this._guideLayer=this._lastDrag=this._getTopFunc=this._startGridY=this._startTopPixel=this._viewModel=null},f.prototype._clearGuideElement=function(){l.browser.msie||i.removeClass(t.document.body,o.classname("dragging")),this._guideLayer&&this._guideLayer.destroy(),this._showOriginScheduleBlocks(),this.guideElement=this._getTopFunc=this._guideLayer=this._model=this._lastDrag=this._startGridY=this._startTopPixel=this._viewModel=null},f.prototype._hideOriginScheduleBlocks=function(){var e=o.classname("time-date-schedule-block-dragging-dim");this.guideElement&&i.addClass(this.guideElement,e)},f.prototype._showOriginScheduleBlocks=function(){var e=o.classname("time-date-schedule-block-dragging-dim");this.guideElement&&i.removeClass(this.guideElement,e)},f.prototype._refreshGuideElement=function(e,t,n){var o=this;a.requestAnimFrame(function(){o._guideLayer&&(o._guideLayer.setPosition(0,e),o._guideLayer.setContent(u(l.extend({model:t},n))))})},f.prototype._onDragStart=function(e){var t,n,a,r,s=i.closest(e.target,o.classname(".time-date-schedule-block"));s&&(this._startTopPixel=parseFloat(s.style.top),this._startGridY=e.nearestGridY,this.guideElement=s,this._container=e.relatedView.container,this._model=l.extend(d.create(e.model),e.model),n=(n=this._model.duration())>m?n:m,t=(a=h.millisecondsFrom("minutes",this._model.goingDuration))+n+(r=h.millisecondsFrom("minutes",this._model.comingDuration)),this._lastDrag=e,this._viewModel={hasGoingDuration:a>0,hasComingDuration:r>0,goingDurationHeight:p.ratio(t,a,100),modelDurationHeight:p.ratio(t,n,100),comingDurationHeight:p.ratio(t,r,100)},this._resetGuideLayer(),this._hideOriginScheduleBlocks())},f.prototype._onDrag=function(e){var n,a,s=e.currentView,u=s.options,d=s.getViewBound().height,p=parseFloat(this.guideElement.style.height),m=u.hourEnd-u.hourStart,f=e.nearestGridY-this._startGridY,g=r(m,d,f),y=e.nearestGridY-this._lastDrag.nearestGridY;l.browser.msie||i.addClass(t.document.body,o.classname("dragging")),this._container!==s.container&&(this._container=s.container,this._resetGuideLayer()),a=this._startTopPixel+g,n=d-p,a=Math.max(a,0),a=Math.min(a,n),this._model.start=new c(this._model.getStarts()).addMinutes(h.minutesFromHours(y)),this._model.end=new c(this._model.getEnds()).addMinutes(h.minutesFromHours(y)),this._lastDrag=e,this._refreshGuideElement(a,this._model,this._viewModel)},f.prototype._resetGuideLayer=function(){this._guideLayer&&(this._guideLayer.destroy(),this._guideLayer=null),this._guideLayer=new s(null,this._container),this._guideLayer.setSize(this._container.getBoundingClientRect().width,this.guideElement.style.height),this._guideLayer.setPosition(0,this.guideElement.style.top),this._guideLayer.setContent(u(l.extend({model:this._model},this._viewModel))),this._guideLayer.show()},e.exports=f}).call(this,n(9))},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    '+(null!=(i=(d(n,"goingDuration-tmpl")||t&&d(t,"goingDuration-tmpl")||s).call(r,null!=t?d(t,"model"):t,{name:"goingDuration-tmpl",hash:{},data:o,loc:{start:{line:4,column:230},end:{line:4,column:260}}}))?i:"")+"
    \n"},3:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    '+(null!=(i=(d(n,"comingDuration-tmpl")||t&&d(t,"comingDuration-tmpl")||s).call(r,null!=t?d(t,"model"):t,{name:"comingDuration-tmpl",hash:{},data:o,loc:{start:{line:10,column:228},end:{line:10,column:259}}}))?i:"")+"
    \n"},5:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
     
    '},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda,h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    \n'+(null!=(i=h(n,"if").call(r,null!=t?h(t,"hasGoingDuration"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:8},end:{line:5,column:15}}}))?i:"")+'
    \n '+(null!=(i=(h(n,"time-tmpl")||t&&h(t,"time-tmpl")||s).call(r,null!=t?h(t,"model"):t,{name:"time-tmpl",hash:{},data:o,loc:{start:{line:7,column:16},end:{line:7,column:37}}}))?i:"")+"\n
    \n"+(null!=(i=h(n,"if").call(r,null!=t?h(t,"hasComingDuration"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:9,column:8},end:{line:11,column:15}}}))?i:"")+"
    \n "+(null!=(i=h(n,"unless").call(r,null!=t?h(t,"croppedEnd"):t,{name:"unless",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:13,column:4},end:{line:13,column:104}}}))?i:"")+'\n
    \n
    \n'},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(3),a=n(1),r=n(4).Date,s=n(5),u=n(18),c=n(96);function d(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,this._getScheduleDataFunc=null,this._dragStart=null,this._guide=new c(this),e.on("dragStart",this._onDragStart,this)}d.prototype.destroy=function(){this._guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.timeGridView=this.baseController=this._getScheduleDataFunc=this._dragStart=this._guide=null},d.prototype.checkExpectCondition=function(e){var t,n;return!!a.hasClass(e,o.classname("time-resize-handle"))&&(!!(t=a.closest(e,o.classname(".time-date")))&&(!(!(n=a.getClass(t).match(o.time.getViewIDRegExp))||n.length<2)&&l.pick(this.timeGridView.children.items,Number(n[1]))))},d.prototype._onDragStart=function(e){var t,n,l,i=e.target,r=this.checkExpectCondition(i),s=a.closest(i,o.classname(".time-date-schedule-block")),u=this.baseController;r&&s&&(t=a.getData(s,"id"),n=this._getScheduleDataFunc=this._retriveScheduleData(r),l=this._dragStart=n(e.originEvent,{targetModelID:t,schedule:u.schedules.items[t]}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("timeResizeDragstart",l))},d.prototype._onDrag=function(e,t,n){var l,o=this._getScheduleDataFunc,i=this._dragStart;o&&i&&(l=o(e.originEvent,{targetModelID:i.targetModelID}),n&&n(l),this.fire(t||"timeResizeDrag",l))},d.prototype._updateSchedule=function(e){var t,n,l,o,a=this.baseController,u=e.targetModelID,c=e.nearestRange,d=c[1]-c[0],h=a.schedules.items[u],p=e.relatedView;h&&(d-=i.millisecondsFrom("minutes",30),l=new r(p.getDate()),t=i.end(l),(n=new r(h.getEnds()).addMilliseconds(d))>t&&(n=new r(t)),n.getTime()-h.getStarts().getTime()\n \n '+(null!=(i=(d(n,"monthDayname-tmpl")||t&&d(t,"monthDayname-tmpl")||s).call(r,t,{name:"monthDayname-tmpl",hash:{},data:o,loc:{start:{line:16,column:12},end:{line:16,column:40}}}))?i:"")+"\n \n \n"},2:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" border-right: "+e.escapeExpression(e.lambda((i=(i=o&&a(o,"root"))&&a(i,"styles"))&&a(i,"borderLeft"),t))+";\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.escapeExpression,u=e.lambda,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n'+(null!=(i=c(n,"each").call(r,null!=t?c(t,"daynames"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:0},end:{line:19,column:9}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(1),r=n(8),s=n(30),u=n(101),c=n(102),d=Math.floor,h=Math.min;function p(e,t){s.call(this,e,t),t.style.height=e.heightPercent+"%"}l.inherit(p,s),p.prototype.getViewBound=function(){return r.prototype.getViewBound.call(this)},p.prototype._getRenderLimitIndex=function(e){var t,n=this.options,o=e||this.getViewBound().height,i=l.pick(n,"grid","header","height")||0,a=l.pick(n,"grid","footer","height")||0,r=n.visibleScheduleCount||0;return t=d((o-=i+a)/(n.scheduleHeight+n.scheduleGutter)),r||(r=t),h(t,r)},p.prototype.getBaseViewModel=function(e){var t,n=this.options,o=l.pick(n,"grid","header","height")||0,i=l.pick(n,"grid","footer","height")||0,a=this._getRenderLimitIndex()+1,r=this.getExceedDate(a,e.eventsInDateRange,e.range),u=this._getStyles(e.theme);return e=l.extend({exceedDate:r},e),t=s.prototype.getBaseViewModel.call(this,e),t=l.extend({matrices:e.eventsInDateRange,gridHeaderHeight:o,gridFooterHeight:i,renderLimitIdx:a,isReadOnly:n.isReadOnly,styles:u},t)},p.prototype.render=function(e){var t,n=this.container,r=this.getBaseViewModel(e);this.options.visibleWeeksCount||function(e,t,n){var o=t.getMonth()+1;l.forEach(e,function(e){var t=e.month!==o;e.isOtherMonth=t,t&&(e.color=s.prototype._getDayNameColor(n,e.day,e.isToday,t))})}(r.dates,this.options.renderMonth,e.theme),n.innerHTML=u(r),(t=a.find(o.classname(".weekday-schedules"),n))&&(t.innerHTML=c(r),i.setAutoEllipsis(o.classname(".weekday-schedule-title"),n,!0))},p.prototype._beforeDestroy=function(){},p.prototype._getStyles=function(e){var t={};return e&&(t.borderTop=e.common.border,t.borderLeft=e.common.border,t.fontSize=e.month.day.fontSize,t.borderRadius=e.month.schedule.borderRadius,t.marginLeft=e.month.schedule.marginLeft,t.marginRight=e.month.schedule.marginRight,t.scheduleBulletTop=this.options.scheduleHeight/3),t},e.exports=p},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    \n '+(null!=(i=(d(n,"monthGridHeader-tmpl")||t&&d(t,"monthGridHeader-tmpl")||s).call(r,t,{name:"monthGridHeader-tmpl",hash:{},data:o,loc:{start:{line:14,column:44},end:{line:14,column:75}}}))?i:"")+"\n"+(null!=(i=d(n,"if").call(r,null!=t?d(t,"hiddenSchedules"):t,{name:"if",hash:{},fn:e.program(10,o,0),inverse:e.noop,data:o,loc:{start:{line:15,column:12},end:{line:17,column:19}}}))?i:"")+'
    \n
    \n '+(null!=(i=(d(n,"monthGridFooter-tmpl")||t&&d(t,"monthGridFooter-tmpl")||s).call(r,t,{name:"monthGridFooter-tmpl",hash:{},data:o,loc:{start:{line:20,column:44},end:{line:20,column:75}}}))?i:"")+"\n"+(null!=(i=d(n,"if").call(r,null!=t?d(t,"hiddenSchedules"):t,{name:"if",hash:{},fn:e.program(12,o,0),inverse:e.noop,data:o,loc:{start:{line:21,column:12},end:{line:23,column:19}}}))?i:"")+"
    \n
    \n"},2:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:7,column:84},end:{line:7,column:98}}}):i)+"near-month-day"},4:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:7,column:135},end:{line:7,column:149}}}):i)+"today"},6:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:7,column:182},end:{line:7,column:196}}}):i)+"extra-date"},8:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" border-right:"+e.escapeExpression(e.lambda((i=(i=o&&a(o,"root"))&&a(i,"styles"))&&a(i,"borderLeft"),t))+";\n"},10:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '+(null!=(i=(c(n,"monthGridHeaderExceed-tmpl")||t&&c(t,"monthGridHeaderExceed-tmpl")||s).call(r,null!=t?c(t,"hiddenSchedules"):t,{name:"monthGridHeaderExceed-tmpl",hash:{},data:o,loc:{start:{line:16,column:87},end:{line:16,column:135}}}))?i:"")+"\n"},12:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '+(null!=(i=(c(n,"monthGridFooterExceed-tmpl")||t&&c(t,"monthGridFooterExceed-tmpl")||s).call(r,null!=t?c(t,"hiddenSchedules"):t,{name:"monthGridFooterExceed-tmpl",hash:{},data:o,loc:{start:{line:22,column:87},end:{line:22,column:135}}}))?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    \n'+(null!=(i=c(n,"each").call(r,null!=t?c(t,"dates"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:6,column:0},end:{line:26,column:11}}}))?i:"")+'
    \n
    \n'},useData:!0})},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i;return null!=(i=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"each").call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:0},end:{line:80,column:11}}}))?i:""},2:function(e,t,n,l,o){var i;return"\n"+(null!=(i=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"each").call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:0},end:{line:79,column:11}}}))?i:"")},3:function(e,t,n,l,o){var i;return"\n"+(null!=(i=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:0},end:{line:78,column:9}}}))?i:"")},4:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"\n"+(null!=(i=(a(n,"fi")||t&&a(t,"fi")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"top"):t,"<",(i=o&&a(o,"root"))&&a(i,"renderLimitIdx"),{name:"fi",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:4},end:{line:77,column:13}}}))?i:"")},5:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n'+(null!=(i=(c(n,"fi")||t&&c(t,"fi")||s).call(r,null!=(i=null!=t?c(t,"model"):t)?c(i,"isAllDay"):i,"||",null!=t?c(t,"hasMultiDates"):t,{name:"fi",hash:{},fn:e.program(10,o,0),inverse:e.program(23,o,0),data:o,loc:{start:{line:13,column:8},end:{line:75,column:15}}}))?i:"")+"
    \n"},6:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:9,column:31},end:{line:9,column:45}}}):i)+"weekday-exceed-left"},8:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:10,column:32},end:{line:10,column:46}}}):i)+"weekday-exceed-right"},10:function(e,t,n,l,o){var i,a,r=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+(null!=(i=(d(n,"allday-tmpl")||t&&d(t,"allday-tmpl")||c).call(u,null!=t?d(t,"model"):t,{name:"allday-tmpl",hash:{},data:o,loc:{start:{line:29,column:47},end:{line:29,column:70}}}))?i:"")+"\n "+(null!=(i=d(n,"unless").call(u,(d(n,"or")||t&&d(t,"or")||c).call(u,(i=o&&d(o,"root"))&&d(i,"isReadOnly"),null!=(i=null!=t?d(t,"model"):t)?d(i,"isReadOnly"):i,{name:"or",hash:{},data:o,loc:{start:{line:30,column:22},end:{line:30,column:60}}}),{name:"unless",hash:{},fn:e.program(21,o,0),inverse:e.noop,data:o,loc:{start:{line:30,column:12},end:{line:30,column:194}}}))?i:"")+"\n
    \n"},11:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:14,column:146},end:{line:14,column:160}}}):i)+"weekday-schedule-focused "},13:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" margin-left: "+e.escapeExpression(e.lambda((i=(i=o&&a(o,"root"))&&a(i,"styles"))&&a(i,"marginLeft"),t))+";\n"},15:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" margin-right: "+e.escapeExpression(e.lambda((i=(i=o&&a(o,"root"))&&a(i,"styles"))&&a(i,"marginRight"),t))+";\n"},17:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" color: #ffffff; background-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+"; border-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+";\n"},19:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+"; background-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"bgColor"):i,t))+"; border-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"borderColor"):i,t))+";\n"},21:function(e,t,n,l,o){var i,a,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '},23:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=(a(n,"fi")||t&&a(t,"fi")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=(i=null!=t?a(t,"model"):t)?a(i,"category"):i,"===","time",{name:"fi",hash:{},fn:e.program(24,o,0),inverse:e.program(33,o,0),data:o,loc:{start:{line:33,column:12},end:{line:74,column:19}}}))?i:""},24:function(e,t,n,l,o){var i,a,r=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n \n '+(null!=(i=(d(n,"time-tmpl")||t&&d(t,"time-tmpl")||c).call(u,null!=t?d(t,"model"):t,{name:"time-tmpl",hash:{},data:o,loc:{start:{line:54,column:53},end:{line:54,column:74}}}))?i:"")+"\n
    \n"},25:function(e,t,n,l,o){return" background: #ffffff\n"},27:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" background:"+e.escapeExpression(e.lambda(null!=(i=null!=t?a(t,"model"):t)?a(i,"borderColor"):i,t))+"\n"},29:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" color: #ffffff;\n background-color: "+e.escapeExpression(e.lambda(null!=(i=null!=t?a(t,"model"):t)?a(i,"color"):i,t))+"\n"},31:function(e,t,n,l,o){return" color:#333;\n"},33:function(e,t,n,l,o){var i,a,r=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+(null!=(i=(d(n,"schedule-tmpl")||t&&d(t,"schedule-tmpl")||c).call(u,null!=t?d(t,"model"):t,{name:"schedule-tmpl",hash:{},data:o,loc:{start:{line:72,column:65},end:{line:72,column:90}}}))?i:"")+"\n
    \n"},34:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" margin-left: "+e.escapeExpression(e.lambda((i=(i=o&&a(o,"root"))&&a(i,"styles"))&&a(i,"marginLeft"),t))+";\n"},36:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" margin-right: "+e.escapeExpression(e.lambda((i=(i=o&&a(o,"root"))&&a(i,"styles"))&&a(i,"marginRight"),t))+";\n"},38:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" color: #ffffff; background-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+"; border-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+";\n"},40:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+"; background-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"bgColor"):i,t))+"; border-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"borderColor"):i,t))+";\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"matrices"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:81,column:11}}}))?i:""},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(3),a=n(1);function r(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,e.on({click:this._onClick},this)}r.prototype.destroy=function(){this.dragHandler.off(this),this.monthView=this.baseController=this.dragHandler=null},r.prototype._onClick=function(e){var t,n=this,l=this.baseController.schedules,r=a.closest(e.target,o.classname(".weekday-schedule-block"))||a.closest(e.target,o.classname(".month-more-schedule"));(t=a.closest(e.target,o.classname(".weekday-exceed-in-month")))&&n.fire("clickMore",{date:i.parse(a.getData(t,"ymd")),target:t,ymd:a.getData(t,"ymd")}),r&&l.doWhenHas(a.getData(r,"id"),function(t){n.fire("clickSchedule",{schedule:t,event:e.originEvent})})},l.CustomEvents.mixin(r),e.exports=r},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(3),a=n(15),r=n(1),s=n(6),u=n(19),c=n(105),d=n(4).Date,h=300;function p(e,t,n,l){this.dragHandler=e,this.monthView=t,this.baseController=n,this.getScheduleData=null,this._cache=null,this.guide=new c(this),this._requestOnClick=!1,this._disableDblClick=l.disableDblClick,this._disableClick=l.disableClick,e.on("dragStart",this._onDragStart,this),e.on("click",this._onClick,this),this._disableDblClick?h=0:s.on(t.container,"dblclick",this._onDblClick,this)}function m(e){return r.closest(e,o.classname(".weekday-grid"))&&!r.closest(e,o.classname(".weekday-exceed-in-month"))}p.prototype.destroy=function(){this.dragHandler.off(this),this.guide.destroy(),this.monthView&&this.monthView.container&&s.off(this.monthView.container,"dblclick",this._onDblClick,this),this.dragHandler=this.monthView=this.baseController=this.getScheduleData=this._cache=this.guide=null},p.prototype._createSchedule=function(e){this.fire("beforeCreateSchedule",{isAllDay:e.isAllDay,start:e.start,end:e.end,guide:this.guide.guide,triggerEventName:e.triggerEvent})},p.prototype._onDragStart=function(e){var t;m(e.target)&&(this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData=u(this.monthView),t=this.getScheduleData(e.originEvent),this._cache={start:new d(t.date)},this.fire("monthCreationDragstart",t))},p.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=this.getScheduleData(e.originEvent))&&this.fire("monthCreationDrag",t)},p.prototype._onDragEnd=function(e){var t,n,l=this._cache;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData&&((t=this.getScheduleData(e.originEvent))&&(l.end=new d(t.date),l.isAllDay=!0,n=[l.start,l.end].sort(a.compare.num.asc),l.start=new d(n[0]),l.end=i.end(n[1]),this._createSchedule(l)),this.fire("monthCreationDragend",t),this.getScheduleData=this._cache=null)},p.prototype._onDblClick=function(e){var t,n;m(e.target)&&(t=u(this.monthView)(e),this.fire("monthCreationClick",t),n=this._adjustStartAndEndTime(new d(t.date),new d(t.date)),this._createSchedule({start:n.start,end:n.end,isAllDay:!1,triggerEvent:t.triggerEvent}),this._requestOnClick=!1)},p.prototype._onClick=function(e){var t,n,l=this;m(e.target)&&!this._disableClick&&(t=u(this.monthView)(e.originEvent),this._requestOnClick=!0,setTimeout(function(){l._requestOnClick&&(l.fire("monthCreationClick",t),n=l._adjustStartAndEndTime(new d(t.date),new d(t.date)),l._createSchedule({start:n.start,end:n.end,isAllDay:!1,triggerEvent:t.triggerEvent})),l._requestOnClick=!1},h))},p.prototype._adjustStartAndEndTime=function(e,t){var n=new d,l=n.getHours(),o=n.getMinutes();return o=o<=30?0:30,e.setHours(l,o,0,0),t.setHours(l+1,o,0,0),{start:e,end:t}},p.prototype.invokeCreationClick=function(e){var t={model:e};this.fire("monthCreationClick",t),this._createSchedule({start:e.start,end:e.end,isAllDay:e.isAllDay,triggerEvent:"manual"})},l.CustomEvents.mixin(p),e.exports=p},function(e,t,n){"use strict";var l=n(35);function o(e){this.monthCreation=e,this.guide=null,e.on({monthCreationDragstart:this._createGuideElement,monthCreationDrag:this._onDrag,monthCreationDragend:this._onDragEnd,monthCreationClick:this._createGuideElement},this)}o.prototype.destroy=function(){this.monthCreation.off(this),this.guide&&this.guide.destroy(),this.guide=this.monthCreation=null},o.prototype._createGuideElement=function(e){this.guide=new l({isCreationMode:!0,height:"100%",top:0},this.monthCreation.monthView),this.guide.start(e)},o.prototype._onDrag=function(e){this.guide.update(e.x,e.y)},o.prototype._onDragEnd=function(){this.guide=null},e.exports=o},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=e.escapeExpression,s=e.lambda,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n'},3:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda,h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    \n'+(null!=(i=h(n,"if").call(r,null!=t?h(t,"isAllDay"):t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.program(6,o,0),data:o,loc:{start:{line:9,column:12},end:{line:13,column:19}}}))?i:"")+'
    \n
     
    \n
    \n'},4:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+(null!=(i=(a(n,"allday-tmpl")||t&&a(t,"allday-tmpl")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},t,{name:"allday-tmpl",hash:{},data:o,loc:{start:{line:10,column:16},end:{line:10,column:38}}}))?i:"")+"\n"},6:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+(null!=(i=(a(n,"time-tmpl")||t&&a(t,"time-tmpl")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},t,{name:"time-tmpl",hash:{},data:o,loc:{start:{line:12,column:16},end:{line:12,column:36}}}))?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n'+(null!=(i=c(n,"if").call(r,null!=t?c(t,"isCreationMode"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o,loc:{start:{line:2,column:4},end:{line:17,column:11}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(3),a=n(1),r=n(19),s=n(108),u=n(4).Date,c=n(5);function d(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,this.getScheduleData=null,this._cache=null,this.guide=new s(this),e.on("dragStart",this._onDragStart,this)}d.prototype.destroy=function(){this.dragHandler.off(this),this.dragHandler=this.monthView=this.baseController=null},d.prototype._updateSchedule=function(e){var t=i.end(new u(e.end)),n=e.schedule,l=c.getScheduleChanges(n,["end"],{end:t});this.fire("beforeUpdateSchedule",{schedule:n,changes:l,start:new u(n.getStarts()),end:t})},d.prototype._onDragStart=function(e){var t,n,l,i=e.target;a.hasClass(i,o.classname("weekday-resize-handle"))&&(i=a.closest(i,o.classname(".weekday-schedule-block")))&&(t=a.getData(i,"id"),n=this.baseController.schedules.items[t],this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData=r(this.monthView),(l=this.getScheduleData(e.originEvent)).target=i,l.model=n,this._cache={schedule:n,target:i,start:new u(l.date)},this.fire("monthResizeDragstart",l))},d.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=this.getScheduleData(e.originEvent))&&this.fire("monthResizeDrag",t)},d.prototype._onDragEnd=function(e){var t,n,l,o=this._cache;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData&&((t=this.getScheduleData(e.originEvent))&&(n=new u(o.schedule.getStarts()),l=new u(t.date),o.end=l,n<=o.end&&this._updateSchedule(o)),this.fire("monthResizeDragend",t),this.getScheduleData=this._cache=null)},l.CustomEvents.mixin(d),e.exports=d},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(2),i=n(1),a=n(35);function r(e){this.monthResize=e,this.elements=null,this.guide=null,e.on({monthResizeDragstart:this._onDragStart,monthResizeDrag:this._onDrag,monthResizeDragend:this._onDragEnd},this)}r.prototype.destroy=function(){this.monthResize.off(this),this.guide.destroy(),this.guide=this.monthResize=null},r.prototype._hideScheduleBlocks=function(e){this.elements=i.find(o.classname(".weekday-schedule-block-"+e),this.monthResize.monthView.container,!0),l.forEach(this.elements,function(e){e.style.display="none"})},r.prototype._showScheduleBlocks=function(){l.forEach(this.elements,function(e){e.style.display="block"})},r.prototype._onDragStart=function(e){this.guide=new a({isResizeMode:!0},this.monthResize.monthView),this.guide.start(e),this._hideScheduleBlocks(e.model.cid()),l.browser.msie||i.addClass(t.document.body,o.classname("resizing-x"))},r.prototype._onDrag=function(e){this.guide.update(e.x,e.y)},r.prototype._onDragEnd=function(){this._showScheduleBlocks(),this.guide.destroy(),this.elements=this.guide=null,l.browser.msie||i.removeClass(t.document.body,o.classname("resizing-x"))},e.exports=r}).call(this,n(9))},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1),a=n(3),r=n(19),s=n(110),u=n(4).Date;function c(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,this.getScheduleData=null,this._cache=null,this.guide=new s(this),e.on("dragStart",this._onDragStart,this)}c.prototype.destroy=function(){this.dragHandler.off(this),this.dragHandler=this.monthView=this.baseController=null},c.prototype.updateSchedule=function(e){var t=e.model,n=t.duration(),l=a.raw(t.start),o=new u(e.end),i=new u(o);i.setHours(l.h,l.m,l.s,l.ms),this.fire("beforeUpdateSchedule",{schedule:t,changes:{start:i,end:new u(i).addMilliseconds(n)},start:i,end:new u(i).addMilliseconds(n)})},c.prototype.getMonthScheduleBlock=function(e){var t=o.classname(".weekday-schedule-block");return i.closest(e,t)},c.prototype.getMoreLayerScheduleBlock=function(e){var t=o.classname(".month-more-schedule");return i.closest(e,t)},c.prototype.hasPermissionToHandle=function(e){var t,n=null;return i.hasClass(e,o.classname("weekday-resize-handle"))?null:((t=this.getMonthScheduleBlock(e))?n=i.getData(t,"id"):(t=this.getMoreLayerScheduleBlock(e))&&(n=i.getData(t,"id"),this.fire("monthMoveStart_from_morelayer")),n)},c.prototype._onDragStart=function(e){var t,n=e.target,l=this.hasPermissionToHandle(n),o=this.baseController.schedules.items[l];l&&o&&!o.isReadOnly&&!o.isPending&&(this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData=r(this.monthView),(t=this.getScheduleData(e.originEvent)).originEvent=e.originEvent,t.target=this.getMonthScheduleBlock(n),t.model=o,this._cache={model:o,target:n,start:new u(Number(t.date))},this.fire("monthMoveDragstart",t))},c.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=l.extend({originEvent:e.originEvent},this.getScheduleData(e.originEvent)))&&this.fire("monthMoveDrag",t)},c.prototype._onDragEnd=function(e){var t,n=this._cache;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData&&((t=this.getScheduleData(e.originEvent))&&(n.end=new u(t.date),this.updateSchedule(n)),this.fire("monthMoveDragend",t),this.getScheduleData=this._cache=null)},l.CustomEvents.mixin(c),e.exports=c},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(2),i=n(1),a=n(6),r=n(16),s=n(111),u=n(14);function c(e){this.monthMove=e,this.elements=null,this.layer=null,e.on({monthMoveDragstart:this._onDragStart,monthMoveDrag:this._onDrag,monthMoveDragend:this._onDragEnd},this)}c.prototype.destroy=function(){this.monthMove.off(this),this._clearGridBgColor(),this.layer&&this.layer.destroy(),this.element&&i.remove(this.element),this.monthMove=this.elements=this.layer=null},c.prototype._hideOriginScheduleBlocks=function(e){var t=o.classname("weekday-schedule-block-dragging-dim");this.elements=i.find(o.classname(".weekday-schedule-block-"+e),this.monthMove.monthView.container,!0),l.forEach(this.elements,function(e){i.addClass(e,t)})},c.prototype._showOriginScheduleBlocks=function(){var e=o.classname("weekday-schedule-block-dragging-dim");l.forEach(this.elements,function(t){i.removeClass(t,e)})},c.prototype._clearGridBgColor=function(){var e=o.classname(".weekday-filled"),t=o.classname("weekday-filled"),n=i.find(e,this.monthMove.monthView.container);n&&i.removeClass(n,t)},c.prototype._updateGridBgColor=function(e){var t=i.find(o.classname(".weekday-grid-line"),this.monthMove.monthView.container,!0),n=o.classname("weekday-filled"),l=e.x+e.sizeX*e.y;this._clearGridBgColor(),t&&t[l]&&i.addClass(t[l],n)},c.prototype._onDragStart=function(e){var n=this.monthMove.monthView,c=n.children.single(),d=c.options,h=100/c.getRenderDateRange().length,p=d.scheduleGutter+d.scheduleHeight,m=n.container,f=a.getMousePosition(e.originEvent,m),g=e.model,y=new r(null,m);this._hideOriginScheduleBlocks(g.cid()),this.layer=y,y.setSize(h+"%",p),y.setPosition(f[0],f[1]),y.setContent(s({model:l.extend(u.create(g),g),styles:{scheduleHeight:d.scheduleHeight,scheduleBulletTop:d.scheduleHeight/3,borderRadius:n.controller.theme.month.schedule.borderRadius}})),y.show(),l.browser.msie||i.addClass(t.document.body,o.classname("dragging"))},c.prototype._onDrag=function(e){var t=this.monthMove.monthView.container,n=a.getMousePosition(e.originEvent,t);this._updateGridBgColor(e),this.layer&&this.layer.setPosition(n[0],n[1])},c.prototype._onDragEnd=function(){this._showOriginScheduleBlocks(),l.browser.msie||i.removeClass(t.document.body,o.classname("dragging")),this._clearGridBgColor(),this.layer.destroy(),this.layer=null},e.exports=c}).call(this,n(9))},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" border-left:3px solid "+e.escapeExpression(e.lambda(null!=(i=null!=t?a(t,"model"):t)?a(i,"borderColor"):i,t))+";\n "},3:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' \n'},5:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:16,column:110},end:{line:16,column:124}}}):i)+'weekday-schedule-title-focused"'},7:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+(null!=(i=(a(n,"allday-tmpl")||t&&a(t,"allday-tmpl")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"model"):t,{name:"allday-tmpl",hash:{},data:o,loc:{start:{line:18,column:12},end:{line:18,column:35}}}))?i:"")+"\n"},9:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+(null!=(i=(a(n,"time-tmpl")||t&&a(t,"time-tmpl")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"model"):t,{name:"time-tmpl",hash:{},data:o,loc:{start:{line:20,column:12},end:{line:20,column:33}}}))?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda,h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n'+(null!=(i=h(n,"unless").call(r,null!=(i=null!=t?h(t,"model"):t)?h(i,"isAllDay"):i,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:13,column:4},end:{line:15,column:15}}}))?i:"")+'
    \n"+(null!=(i=h(n,"if").call(r,null!=(i=null!=t?h(t,"model"):t)?h(i,"isAllDay"):i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.program(9,o,0),data:o,loc:{start:{line:17,column:8},end:{line:21,column:15}}}))?i:"")+'
    \n
    \n
    \n'},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(6),a=n(1),r=n(8),s=n(16),u=n(5),c=n(113);function d(e,t,n){r.call(this,t),this.layer=new s(null,t),this._viewModel=null,this.options=l.extend({moreLayerSize:{width:null,height:null},scheduleHeight:parseInt(n.month.schedule.height,10)||18,scheduleGutter:parseInt(n.month.schedule.marginTop,10)||2,scheduleBulletTop:(parseInt(n.month.schedule.height,10)||18)/3,borderRadius:n.month.schedule.borderRadius},e),this.theme=n,i.on(t,"click",this._onClick,this)}l.inherit(d,r),d.prototype._onClick=function(e){var t=e.target||e.srcElement,n=o.classname("month-more-close");(a.hasClass(t,n)||a.closest(t,"."+n))&&this.hide()},d.prototype._onMouseDown=function(e){var t=e.target||e.srcElement;a.closest(t,o.classname(".month-more"))||this.hide()},d.prototype._getRenderPosition=function(e,t){var n=i.getMousePosition({clientX:a.getPosition(e)[0],clientY:a.getPosition(t)[1]},this.container),l=a.getSize(this.container),o=n[0]-5,r=n[1]-5;return[o=u.ratio(l[0],100,o),r=u.ratio(l[1],100,r)]},d.prototype.destroy=function(){this.layer.destroy(),this.layer=null,i.off(this.container,"click",this._onClick,this),i.off(document.body,"mousedown",this._onMouseDown,this),r.prototype.destroy.call(this)},d.prototype.render=function(e){var t,n,r,s,u=a.closest(e.target,o.classname(".weekday-grid-line")),d=a.closest(u,o.classname(".month-week-item")),h=this.layer,p=this,m=this._getRenderPosition(u,d),f=a.getSize(d)[1]+10,g=u.offsetWidth+10,y=this.options,S=y.moreLayerSize,_=this._getStyles(this.theme),C="",v=a.getSize(this.container),E=m[0],w=m[1];this._viewModel=l.extend(e,{scheduleGutter:y.scheduleGutter,scheduleHeight:y.scheduleHeight,scheduleBulletTop:y.scheduleBulletTop,borderRadius:y.borderRadius,styles:_}),g=Math.max(g,280),C=parseInt(_.titleHeight,10),C+=parseInt(_.titleMarginBottom,10),e.schedules.length<=10?C+=(y.scheduleGutter+y.scheduleHeight)*e.schedules.length:C+=10*(y.scheduleGutter+y.scheduleHeight),C+=parseInt(_.paddingBottom,10),C+=5,S.width&&(g=S.width),S.height&&(C=S.height),(isNaN(C)||C=v[0],s=n+C>=v[1],E+="%",w+="%",r&&s?h.setLTRB({right:0,bottom:0}):!r&&s?h.setLTRB({left:E,bottom:0}):r&&!s?h.setLTRB({right:0,top:w}):h.setPosition(E,w),h.setSize(g,C),h.show(),l.debounce(function(){i.on(document.body,"mousedown",p._onMouseDown,p)})()},d.prototype.hide=function(){this.layer.hide(),i.off(document.body,"mousedown",this._onMouseDown,this)},d.prototype.refresh=function(){this._viewModel&&this.layer.setContent(c(this._viewModel))},d.prototype.getMoreViewElement=function(){return a.find(o.classname(".month-more"),this.layer.container)},d.prototype._getStyles=function(e){var t={},n="";return e&&(t.border=e.month.moreView.border||e.common.border,t.boxShadow=e.month.moreView.boxShadow,t.backgroundColor=e.month.moreView.backgroundColor||e.common.backgroundColor,t.paddingBottom=e.month.moreView.paddingBottom,t.titleHeight=e.month.moreViewTitle.height,t.titleMarginBottom=e.month.moreViewTitle.marginBottom,t.titleBackgroundColor=e.month.moreViewTitle.backgroundColor,t.titleBorderBottom=e.month.moreViewTitle.borderBottom,t.titlePadding=e.month.moreViewTitle.padding,t.listPadding=e.month.moreViewList.padding,n="calc(100%",parseInt(t.titleHeight,10)&&(n+=" - "+t.titleHeight),parseInt(t.titleMarginBottom,10)&&(n+=" - "+t.titleMarginBottom),n+=")",t.listHeight=n),t},e.exports=d},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=(a(n,"fi")||t&&a(t,"fi")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=(i=null!=t?a(t,"model"):t)?a(i,"isAllDay"):i,"||",null!=t?a(t,"hasMultiDates"):t,{name:"fi",hash:{},fn:e.program(2,o,0),inverse:e.program(7,o,0),data:o,loc:{start:{line:9,column:8},end:{line:65,column:15}}}))?i:""},2:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+(null!=(i=(d(n,"allday-tmpl")||t&&d(t,"allday-tmpl")||s).call(r,null!=t?d(t,"model"):t,{name:"allday-tmpl",hash:{},data:o,loc:{start:{line:20,column:20},end:{line:20,column:43}}}))?i:"")+"\n
    \n"},3:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" color: #ffffff; background-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+"; border-left:3px solid "+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"borderColor"):i,t))+";\n"},5:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+"; background-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"bgColor"):i,t))+"; border-left:3px solid "+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"borderColor"):i,t))+";\n"},7:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=(a(n,"fi")||t&&a(t,"fi")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=(i=null!=t?a(t,"model"):t)?a(i,"category"):i,"===","time",{name:"fi",hash:{},fn:e.program(8,o,0),inverse:e.program(17,o,0),data:o,loc:{start:{line:23,column:12},end:{line:64,column:19}}}))?i:""},8:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda,d="function",h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n \n '+(null!=(i=(h(n,"time-tmpl")||t&&h(t,"time-tmpl")||s).call(r,null!=t?h(t,"model"):t,{name:"time-tmpl",hash:{},data:o,loc:{start:{line:42,column:53},end:{line:42,column:74}}}))?i:"")+"\n
    \n"},9:function(e,t,n,l,o){return" background: #ffffff\n"},11:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" background:"+e.escapeExpression(e.lambda(null!=(i=null!=t?a(t,"model"):t)?a(i,"borderColor"):i,t))+"\n "},13:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"\n color: #ffffff;\n background-color: "+e.escapeExpression(e.lambda(null!=(i=null!=t?a(t,"model"):t)?a(i,"color"):i,t))+"\n"},15:function(e,t,n,l,o){return" color:#333;\n "},17:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+(null!=(i=(d(n,"schedule-tmpl")||t&&d(t,"schedule-tmpl")||s).call(r,null!=t?d(t,"model"):t,{name:"schedule-tmpl",hash:{},data:o,loc:{start:{line:62,column:65},end:{line:62,column:90}}}))?i:"")+"\n
    \n"},18:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(i=null!=(i=a(n,"CSS_PREFIX")||(null!=t?a(t,"CSS_PREFIX"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:47,column:115},end:{line:47,column:129}}}):i)+"weekday-schedule-focused "},20:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" margin-left: "+e.escapeExpression(e.lambda((i=(i=o&&a(o,"root"))&&a(i,"styles"))&&a(i,"marginLeft"),t))+";\n"},22:function(e,t,n,l,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" margin-right: "+e.escapeExpression(e.lambda((i=(i=o&&a(o,"root"))&&a(i,"styles"))&&a(i,"marginRight"),t))+";\n"},24:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" color: #ffffff; background-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+"; border-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+";\n"},26:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"color"):i,t))+"; background-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"bgColor"):i,t))+"; border-color:"+r(a(null!=(i=null!=t?s(t,"model"):t)?s(i,"borderColor"):i,t))+";\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda,h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    \n '+(null!=(i=(h(n,"monthMoreTitleDate-tmpl")||t&&h(t,"monthMoreTitleDate-tmpl")||s).call(r,null!=t?h(t,"date"):t,null!=t?h(t,"dayname"):t,{name:"monthMoreTitleDate-tmpl",hash:{},data:o,loc:{start:{line:4,column:58},end:{line:4,column:100}}}))?i:"")+'\n \n
    \n
    \n'+(null!=(i=h(n,"each").call(r,null!=t?h(t,"schedules"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:8,column:8},end:{line:66,column:17}}}))?i:"")+"
    \n
    \n"},useData:!0})},function(e,t,n){},function(e,t,n){"use strict";var l=n(0),o=n(20),i=n(3),a=n(5),r=n(2),s=Math.max,u={stamp:function(e){return l.stamp(e)},equal:function(e,t){return e===t},or:function(e,t){return e||t},and:function(e,t){return e&&t},fi:function(e,t,n,l){switch(t){case"==":return e==n?l.fn(this):l.inverse(this);case"===":return e===n?l.fn(this):l.inverse(this);case"!==":return e!==n?l.fn(this):l.inverse(this);case"<":return e'+a.stripTags(e.title)+""},"milestoneTitle-tmpl":function(){return'Milestone'},"task-tmpl":function(e){return"#"+e.title},"taskTitle-tmpl":function(){return'Task'},"alldayTitle-tmpl":function(){return'All Day'},"allday-tmpl":function(e){return a.stripTags(e.title)},"time-tmpl":function(e){return a.stripTags(e.title)},"goingDuration-tmpl":function(e){var t=e.goingDuration,n=parseInt(t/60,10),l=t%60;return"GoingTime "+i.leadingZero(n,2)+":"+i.leadingZero(l,2)},"comingDuration-tmpl":function(e){var t=e.goingDuration,n=parseInt(t/60,10),l=t%60;return"ComingTime "+i.leadingZero(n,2)+":"+i.leadingZero(l,2)},"monthMoreTitleDate-tmpl":function(e,t){var n=r.classname("month-more-title-day"),o=r.classname("month-more-title-day-label");return''+l.pick(e.split("."),2)+' '+t+""},"monthMoreClose-tmpl":function(){return""},"monthGridHeader-tmpl":function(e){var t=parseInt(e.date.split("-")[2],10),n=[];return n.push(r.classname("weekday-grid-date")),e.isToday&&n.push(r.classname("weekday-grid-date-decorator")),''+t+""},"monthGridHeaderExceed-tmpl":function(e){return''+e+" more"},"monthGridFooter-tmpl":function(){return""},"monthGridFooterExceed-tmpl":function(e){return""},"monthDayname-tmpl":function(e){return e.label},"weekDayname-tmpl":function(e){var t=r.classname("dayname-date"),n=r.classname("dayname-name");return''+e.date+'  '+e.dayName+""},"weekGridFooterExceed-tmpl":function(e){return"+"+e},"dayGridTitle-tmpl":function(e){var t=o.helpers[e+"Title-tmpl"];return t?t(e):e},"schedule-tmpl":function(e){var t=o.helpers[e.category+"-tmpl"];return t?t(e):""},"collapseBtnTitle-tmpl":function(){return''},"timezoneDisplayLabel-tmpl":function(e,t){var n,o,a;return l.isUndefined(t)&&(n=e<0?"-":"+",o=Math.abs(parseInt(e/60,10)),a=Math.abs(e%60),t=n+i.leadingZero(o,2)+":"+i.leadingZero(a,2)),t},"timegridDisplayPrimayTime-tmpl":function(e){return o.helpers["timegridDisplayPrimaryTime-tmpl"](e)},"timegridDisplayPrimaryTime-tmpl":function(e){var t=e.hour,n=t>=12?"pm":"am";return t>12&&(t-=12),t+" "+n},"timegridDisplayTime-tmpl":function(e){return i.leadingZero(e.hour,2)+":"+i.leadingZero(e.minutes,2)},"timegridCurrentTime-tmpl":function(e){var t=[];return e.dateDifference&&t.push("["+e.dateDifferenceSign+e.dateDifference+"]
    "),t.push(i.format(e.hourmarker,"HH:mm")),t.join("")},"popupIsAllDay-tmpl":function(){return"All day"},"popupStateFree-tmpl":function(){return"Free"},"popupStateBusy-tmpl":function(){return"Busy"},"titlePlaceholder-tmpl":function(){return"Subject"},"locationPlaceholder-tmpl":function(){return"Location"},"startDatePlaceholder-tmpl":function(){return"Start date"},"endDatePlaceholder-tmpl":function(){return"End date"},"popupSave-tmpl":function(){return"Save"},"popupUpdate-tmpl":function(){return"Update"},"popupDetailDate-tmpl":function(e,t,n){var l=i.isSameDate(t,n),o=(l?"":"YYYY.MM.DD ")+"hh:mm tt";return e?i.format(t,"YYYY.MM.DD")+(l?"":" - "+i.format(n,"YYYY.MM.DD")):i.format(t,"YYYY.MM.DD hh:mm tt")+" - "+i.format(n,o)},"popupDetailLocation-tmpl":function(e){return e.location},"popupDetailUser-tmpl":function(e){return(e.attendees||[]).join(", ")},"popupDetailState-tmpl":function(e){return e.state||"Busy"},"popupDetailRepeat-tmpl":function(e){return e.recurrenceRule},"popupDetailBody-tmpl":function(e){return e.body},"popupEdit-tmpl":function(){return"Edit"},"popupDelete-tmpl":function(){return"Delete"}};function c(e,t,n){return n=n||"",l.isNumber(e)?n+":"+e+t:n+":auto"}function d(e,t){for(var n,l=0,o=0,i=t.length;o0&&(e(u,a),i))break}(t=t||window.document.body,e),r?o[0]||null:o},closest:function(e,t,n){var o=e.parentNode;if(!n&&l._matcher(e,t))return e;for(;o&&o!==window.document.body;){if(l._matcher(o,t))return o;o=o.parentNode}return null},text:function(e){var t="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)t+=l.text(e)}else if(3===o||4===o)return e.nodeValue}else for(;e[n];n+=1)t+=l.text(e[n]);return t},setData:function(e,t,n){"dataset"in e?e.dataset[t]=n:e.setAttribute("data-"+t,n)},getData:function(e,t){return"dataset"in e?e.dataset[t]:e.getAttribute("data-"+t)},hasClass:function(e,t){var n;return a.isUndefined(e.classList)?(n=l.getClass(e)).length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n):e.classList.contains(t)},addClass:function(e,t){var n;a.isUndefined(e.classList)?l.hasClass(e,t)||(n=l.getClass(e),l.setClass(e,(n?n+" ":"")+t)):a.forEachArray(t.split(" "),function(t){e.classList.add(t)})},setClass:function(e,t){a.isUndefined(e.className.baseVal)?e.className=t:e.className.baseVal=t},removeClass:function(e,t){var n="";a.isUndefined(e.classList)?(n=(" "+l.getClass(e)+" ").replace(" "+t+" "," "),l.setClass(e,function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(n))):e.classList.remove(t)},getClass:function(e){return e&&e.className?a.isUndefined(e.className.baseVal)?e.className:e.className.baseVal:""},getStyle:function(e,t){var n,l=e.style[t]||e.currentStyle&&e.currentStyle[t];return l&&"auto"!==l||!document.defaultView||(l=(n=document.defaultView.getComputedStyle(e,null))?n[t]:null),"auto"===l?null:l},getComputedStyle:function(e){var t=document.defaultView;return t&&t.getComputedStyle?document.defaultView.getComputedStyle(e):{getPropertyValue:function(t){var n=/(\-([a-z]){1})/g;return"float"===t&&(t="styleFloat"),n.test(t)&&(t=t.replace(n,function(){return arguments[2].toUpperCase()})),e.currentStyle[t]?e.currentStyle[t]:null}}},setPosition:function(e,t,n){t=a.isUndefined(t)?0:t,n=a.isUndefined(n)?0:n,e._pos=[t,n],e.style.left=a.isNumber(t)?t+"px":t,e.style.top=a.isNumber(n)?n+"px":n},setLTRB:function(e,t){var n;["left","top","right","bottom"].forEach(function(l){n=a.isUndefined(t[l])?"":t[l],e.style[l]=a.isNumber(n)?n+"px":n})},getPosition:function(e,t){var n,l,o;return t&&(e._pos=null),e._pos?e._pos:(n=0,l=0,(r.test(e.style.left)||r.test(e.style.top))&&"getBoundingClientRect"in e?(n=(o=e.getBoundingClientRect()).left,l=o.top):(n=parseFloat(e.style.left||0),l=parseFloat(e.style.top||0)),[n,l])},getSize:function(e){var t,n=l.getStyle(e,"width"),o=l.getStyle(e,"height");return(r.test(n)||r.test(o)||a.isNull(n)||a.isNull(o))&&"getBoundingClientRect"in e?(n=(t=e.getBoundingClientRect()).width||e.offsetWidth,o=t.height||e.offsetHeight):(n=parseFloat(n||0),o=parseFloat(o||0)),[n,o]},getBCRect:function(e){var t=e.getBoundingClientRect();return t=a.extend({width:e.offsetWidth,height:e.offsetHeight},t)},testProp:function(e){for(var t=document.documentElement.style,n=0,l=e.length;n12&&(t%=12),l.leadingZero(t,2)+":"+l.leadingZero(n,2)},tt:function(e){return e.getHours()<12?"am":"pm"}},l={MILLISECONDS_PER_DAY:864e5,MILLISECONDS_PER_HOUR:36e5,MILLISECONDS_PER_MINUTES:6e4,MILLISECONDS_SCHEDULE_MIN_DURATION:12e5,_convMilliseconds:function(e,n,l){var o={day:0,hour:1,minutes:2,seconds:3};return e in o&&!t.isNaN(n)&&r.reduce([n].concat([24,60,60,1e3].slice(o[e])),l)},millisecondsTo:function(e,t){var n=u,o=e+t;return n[o]?n[o]:(n[o]=l._convMilliseconds(e,t,function(e,t){return e/t}),n[o])},millisecondsFrom:function(e,t){var n=c,o=e+t;return n[o]?n[o]:(n[o]=l._convMilliseconds(e,t,function(e,t){return e*t}),n[o])},minutesFromHours:function(e){return 60*e},range:function(e,t,n){for(var o=e.getTime(),r=t.getTime(),s=o,u=a(new i(e)),c=[];s<=r&&r>=u.d.getTime();)c.push(l.start(u.d)),s+=n,u.addDate(1);return c},clone:function(e){return new i(e)},compare:function(e,t){var n=e.getTime(),l=t.getTime();return nl?1:0},isSameMonth:function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},isSameDate:function(e,t){return l.isSameMonth(e,t)&&e.getDate()===t.getDate()},isValid:function(e){return e instanceof i&&!window.isNaN(e.getTime())},toUTC:function(e){var t=e.getTime(),n=l.millisecondsFrom("minutes",(new Date).getTimezoneOffset());return new i(t+n)},leadingZero:function(e,t){var n="",l=0;if(String(e).length>t)return String(e);for(;l8?(n=~e.indexOf("/")?"/":"-",l=(a=a.splice(1))[0].split(n),o=a[1]?a[1].split(":"):[0,0,0]):(l=[(a=a[0]).substr(0,4),a.substr(4,2),a.substr(6,2)],o=[0,0,0]),(new i).setWithRaw(Number(l[0]),Number(l[1])+t,Number(l[2]),Number(o[0]),Number(o[1]),Number(o[2]),0))},raw:function(e){return{y:e.getFullYear(),M:e.getMonth(),d:e.getDate(),h:e.getHours(),m:e.getMinutes(),s:e.getSeconds(),ms:e.getMilliseconds()}},start:function(e){var t=e?new i(e):new i;return t.setHours(0,0,0,0),t},end:function(e){var t=e?new i(e):new i;return t.setHours(23,59,59,0),t},format:function(e,t){var n=t;return r.forEachOwnProperties(o,function(t,l){n=n.replace(l,t(e))}),n},startDateOfMonth:function(e){var t=new i(e);return t.setDate(1),t.setHours(0,0,0,0),t},endDateOfMonth:function(e){var t=l.startDateOfMonth(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t.setHours(23,59,59),t},arr2dCalendar:function(e,t,n){var o,s,u,c,d,h,m,p,f=[],g=t.startDayOfWeek,S=!!r.isUndefined(t.isAlways6Week)||t.isAlways6Week,y=t.visibleWeeksCount,_=t.workweek;return y?(s=new i(e),(u=a(new i(e))).addDate(7*(y-1)),u=u.d):(s=l.startDateOfMonth(e),u=l.endDateOfMonth(e)),o=r.range(g,7).concat(r.range(7)).slice(0,7),c=r.inArray(s.getDay(),o),h=7-(r.inArray(u.getDay(),o)+1),d=y?7*y:S?42:c+u.getDate()+h,m=l.start(s).addDate(-c),r.forEachArray(r.range(d),function(e){var t;e%7||(p=f[e/7]=[]),t=l.start(m),t=n?n(t):t,_&&l.isWeekend(t.getDay())||p.push(t),m.setDate(m.getDate()+1)}),f},getGridLeftAndWidth:function(e,t,n,o){var i=100/e,a=e>5?100/(e-1):i,s=0,u=r.range(n,7).concat(r.range(e)).slice(0,7);return o&&(u=r.filter(u,function(e){return!l.isWeekend(e)})),t=!o&&t,r.map(u,function(n){var o,r=t?a:i;return e>5&&t&&l.isWeekend(n)&&(r=a/2),o={day:n,width:r,left:s},s+=r,o})},isWeekend:function(e){return 0===e||6===e},isBetweenWithDate:function(e,t,n){return e=parseInt(l.format(e,"YYYYMMDD"),10),t=parseInt(l.format(t,"YYYYMMDD"),10),n=parseInt(l.format(n,"YYYYMMDD"),10),t<=e&&e<=n},isStartOfDay:function(e){return!l.compare(l.start(e),e)},convertStartDayToLastDay:function(e){var t=new i(e);return l.isStartOfDay(e)&&t.setDate(t.getDate()-1),t},getStartOfNextDay:function(e){var t=l.start(e);return t.setHours(24),t}},e.exports=l}).call(this,n(9))},function(e,t,n){"use strict";var l=n(0),o=6e4,i=u(),a=i,r=null,s=!1;function u(e){return e=e||Date.now(),new Date(e).getTimezoneOffset()*o}function c(e){return!s&&r?r(e)*o:a}function d(e){var t;if(e instanceof Date)t=e.getTime();else{if("string"!=typeof e)throw new Error("Invalid Type");t=Date.parse(e)}return t=function(e){var t=u(e),n=c(e);return e-n+t+(n?0:i-t)}(t),new Date(t)}function h(e){var t;l.isUndefined(e)&&(e=Date.now()),t=arguments.length>1?function(e){var t=Date.UTC.apply(null,e);return new Date(t+u(t))}(arguments):function(e){return e instanceof Date||"string"==typeof e}(e)?d(e):function(e){var t;if(e instanceof h)t=e.getUTCTime();else if("number"==typeof e)t=e;else{if(null!==e)throw new Error("Invalid Type");t=0}return new Date(t)}(e),this._date=t}h.prototype.getTime=function(){var e=this._date.getTime();return e+c(e)-u(e)},h.prototype.getUTCTime=function(){return this._date.getTime()},h.prototype.toUTCString=function(){return this._date.toUTCString()},h.prototype.toDate=function(){return this._date},h.prototype.valueOf=function(){return this.getTime()},h.prototype.addDate=function(e){return this.setDate(this.getDate()+e),this},h.prototype.addMinutes=function(e){return this.setMinutes(this.getMinutes()+e),this},h.prototype.addMilliseconds=function(e){return this.setMilliseconds(this.getMilliseconds()+e),this},h.prototype.setWithRaw=function(e,t,n,l,o,i,a){return this.setFullYear(e,t,n),this.setHours(l,o,i,a),this},h.prototype.toLocalTime=function(){var e=this.getTime(),t=this.getUTCTime();return new h(t-(e-t))},["getDate","getDay","getFullYear","getHours","getMilliseconds","getMinutes","getMonth","getSeconds"].forEach(function(e){h.prototype[e]=function(){return this._date[e].apply(this._date,arguments)}}),["setDate","setFullYear","setHours","setMilliseconds","setMinutes","setMonth","setSeconds"].forEach(function(e){h.prototype[e]=function(){return this._date[e].apply(this._date,arguments),this.getTime()}}),e.exports={Date:h,setOffset:function(e){a=e*o},setOffsetByTimezoneOption:function(e){this.setOffset(-e),s=!0},getOffset:function(){return s?a/o:0},setOffsetCallback:function(e){r=e},restoreOffset:function(){a=u()}}},function(e,t,n){"use strict";var l=n(0),o=Array.prototype.slice,i=n(1),a=n(13),r=n(3);function s(e){return e.cid()}e.exports={createScheduleCollection:function(e){var t=new a(s);return arguments.length&&t.add.apply(t,arguments),t},ratio:function(e,t,n){return t*n/e},nearest:function(e,t){var n=l.map(t,function(t){return Math.abs(e-t)});return t[l.inArray(Math.min.apply(null,n),n)]},pick2:function(e,t){var n=l.pick.apply(null,arguments);return{val:function(){return n},then:function(e){var t;if(n)return t=o.call(arguments,1),l.isString(e)?(l.pick(n,e)||function(){}).apply(n,t):e.call(n,n)}}},mixin:function(e,t){l.extend(t.prototype,e)},limit:function(e,t,n){var l=Math.max.apply(null,[e].concat(t));return l=Math.min.apply(null,[l].concat(n))},limitDate:function(e,t,n){return en?n:e},maxDate:function(e,t){return e>t?e:t},stripTags:function(e){return e.replace(/<([^>]+)>/gi,"")},firstIn2dArray:function(e){return l.pick(e,"0","0")},lastIn2dArray:function(e){var t=e.length-1,n=e[t].length-1;return l.pick(e,t,n)},setAutoEllipsis:function(e,t,n){l.forEach(i.find(e,t,!0),function(e){(n||e.offsetWidth0)for(n=0;n0?e=(e+t)%24:t<0&&(e=(e+=t)>0?e:24+e),e},parseUnit:function(e){return[parseFloat(e,10),e.match(/[\d.\-+]*\s*(.*)/)[1]||""]},find:function(e,t,n){var o;return l.forEach(e,function(e){return t&&(o=t(e)),!o||(o=e,!1)},n),o},getScheduleChanges:function(e,t,n){var o={},i=["start","end"];return l.forEach(t,function(t){i.indexOf(t)>-1?r.compare(e[t],n[t])&&(o[t]=n[t]):n[t]&&e[t]!==n[t]&&(o[t]=n[t])}),l.isEmpty(o)?null:o}}},function(e,t,n){"use strict";var l=n(0),o=l.browser,i={START:["touchstart","mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},a={on:function(e,t,n,o){l.isString(t)?l.forEach(t.split(" "),function(t){a._on(e,t,n,o)}):l.forEachOwnProperties(t,function(t,l){a._on(e,l,t,n)})},_on:function(e,t,n,o){var i,r,s;i=t+l.stamp(n)+(o?"_"+l.stamp(o):""),e._evt&&e._evt[i]||(s=r=function(t){n.call(o||e,t||window.event)},"addEventListener"in e?"mouseenter"===t||"mouseleave"===t?(r=function(t){t=t||window.event,a._checkMouse(e,t)&&s(t)},e.addEventListener("mouseenter"===t?"mouseover":"mouseout",r,!1)):("mousewheel"===t&&e.addEventListener("DOMMouseScroll",r,!1),e.addEventListener(t,r,!1)):"attachEvent"in e&&e.attachEvent("on"+t,r),e._evt=e._evt||{},e._evt[i]=r)},off:function(e,t,n,o){l.isString(t)?l.forEach(t.split(" "),function(t){a._off(e,t,n,o)}):l.forEachOwnProperties(t,function(t,l){a._off(e,l,t,n)})},_off:function(e,t,n,o){var i=t+l.stamp(n)+(o?"_"+l.stamp(o):""),a=e._evt&&e._evt[i];if(a){if("removeEventListener"in e)"mouseenter"===t||"mouseleave"===t?e.removeEventListener("mouseenter"===t?"mouseover":"mouseout",a,!1):("mousewheel"===t&&e.removeEventListener("DOMMouseScroll",a,!1),e.removeEventListener(t,a,!1));else if("detachEvent"in e)try{e.detachEvent("on"+t,a)}catch(e){}delete e._evt[i],l.keys(e._evt).length||(l.browser.msie&&l.browser.version<9?e._evt=null:delete e._evt)}},once:function(e,t,n,o){var i=this;l.isObject(t)?l.forEachOwnProperties(t,function(t,l){a.once(e,l,t,n)}):a.on(e,t,function l(){n.apply(o||e,arguments),i._off(e,t,l,o)},o)},stopPropagation:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},preventDefault:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},stop:function(e){a.preventDefault(e),a.stopPropagation(e)},disableScrollPropagation:function(e){a.on(e,"mousewheel MozMousePixelScroll",a.stopPropagation)},disableClickPropagation:function(e){a.on(e,i.START.join(" ")+" click dblclick",a.stopPropagation)},getMousePosition:function(e,t){var n;return t?(n=t.getBoundingClientRect(),[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]):[e.clientX,e.clientY]},getWheelDelta:function(e){var t=0;return e.wheelDelta&&(t=e.wheelDelta/120),e.detail&&(t=-e.detail/3),t},_checkMouse:function(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e},trigger:function(e,t,n){l.isUndefined(n)&&/(mouse|click)/.exec(t)&&(n=a.mouseEvent(t)),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent&&e.fireEvent("on"+t,n)},mouseEvent:function(e,t){var n,i;return i=l.extend({bubbles:!0,cancelable:"mousemove"!==e,view:window,wheelDelta:0,detail:0,screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0},t),o.msie&&o.version<9&&delete i.wheelDelta,"function"==typeof document.createEvent?(n=document.createEvent("MouseEvents")).initMouseEvent(e,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,document.body.parentNode):document.createEventObject&&(n=document.createEventObject(),l.forEach(i,function(e,t){n[t]=e},this),n.button={0:1,1:4,2:2}[n.button]||n.button),n},getMouseButton:function(e){var t;return document.implementation.hasFeature("MouseEvents","2.0")?e.button:(t=String(e.button),"0,1,3,5,7".indexOf(t)>-1?0:"2,6".indexOf(t)>-1?2:~"4".indexOf(t)?1:-1)}};e.exports=a},function(e,t,n){e.exports=n(21).default},function(e,t,n){"use strict";var l=n(0),o=n(1),i=n(13);function a(e){var t=l.stamp(this);l.isUndefined(e)&&(e=o.appendHTMLElement("div")),o.addClass(e,this.cssprefix(t)),this.id=t,this.container=e,this.children=new i(function(e){return l.stamp(e)}),this.parent=null,this.state={}}a.prototype.cssPrefix="tui-view-",a.prototype.addChild=function(e,t){t&&t.call(e,this),e.parent=this,this.children.add(e)},a.prototype.removeChild=function(e,t){var n=l.isNumber(e)?this.children.items[e]:e;e=l.stamp(n),t&&t.call(n,this),this.children.remove(e)},a.prototype.render=function(){this.children.each(function(e){e.render()})},a.prototype.recursive=function(e,t){l.isFunction(e)&&(t||e(this),this.children.each(function(t){t.recursive(e)}))},a.prototype.resize=function(){for(var e=Array.prototype.slice.call(arguments),t=this.parent;t;)l.isFunction(t._onResize)&&t._onResize.apply(t,e),t=t.parent},a.prototype._beforeDestroy=function(){},a.prototype._destroy=function(){this._beforeDestroy(),this.children.clear(),this.container.innerHTML="",this.id=this.parent=this.children=this.container=null},a.prototype.destroy=function(e){this.children.each(function(e){e.destroy(!0),e._destroy()}),e||this._destroy()},a.prototype.getViewBound=function(){var e=this.container,t=o.getPosition(e),n=o.getSize(e);return{x:t[0],y:t[1],width:n[0],height:n[1]}},a.prototype.cssprefix=function(e){return this.cssPrefix+(e||"")},a.prototype.setState=function(e){l.extend(this.state,e)},l.CustomEvents.mixin(a),e.exports=a},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(t){var l,o,i=n(0);function a(e){return t["webkit"+e]||t["moz"+e]||t["ms"+e]}l=t.requestAnimationFrame||a("RequestAnimationFrame")||function(e,t){e.call(t)},o=t.cancelAnimationFrame||a("CancelAnimationFrame")||a("CancelRequestAnimationFrame")||function(){},e.exports={requestAnimFrame:function(e,n){return l.call(t,i.bind(e,n))},cancelAnimFrame:function(e){e&&o.call(t,e)}}}).call(this,n(9))},function(e,t,n){"use strict";t.__esModule=!0,t.extend=r,t.indexOf=function(e,t){for(var n=0,l=e.length;n":">",'"':""","'":"'","`":"`","=":"="},o=/[&<>"'`=]/g,i=/[&<>"'`=]/;function a(e){return l[e]}function r(e){for(var t=1;t1?i(s.call(arguments),function(e){l.add(e)}):(t=this.getItemID(e),(n=this.items)[t]||(this.length+=1),n[t]=e)},u.prototype.remove=function(e){var t,n,o=this,i=[];return this.length?arguments.length>1?i=l.map(s.call(arguments),function(e){return o.remove(e)}):(t=this.items,r(e)&&(e=this.getItemID(e)),t[e]?(this.length-=1,n=t[e],delete t[e],n):i):i},u.prototype.clear=function(){this.items={},this.length=0},u.prototype.has=function(e){var t,n;return!!this.length&&(t=a(e),n=!1,t?this.each(function(t){return!0!==e(t)||(n=!0,!1)}):(e=r(e)?this.getItemID(e):e,n=l.isExisty(this.items[e])),n)},u.prototype.doWhenHas=function(e,t,n){var o=this.items[e];l.isExisty(o)&&t.call(n||this,o)},u.prototype.find=function(e){var t=new u;return this.hasOwnProperty("getItemID")&&(t.getItemID=this.getItemID),this.each(function(n){!0===e(n)&&t.add(n)}),t},u.prototype.groupBy=function(e,t){var n,o,i={},r=a(e),s=this.getItemID;if(l.isArray(e)){if(l.forEachArray(e,function(e){i[String(e)]=new u(s)}),!t)return i;e=t,r=!0}return this.each(function(t){r?o=e(t):(o=t[e],a(o)&&(o=o.apply(t))),(n=i[o])||(n=i[o]=new u(s)),n.add(t)}),i},u.prototype.single=function(e){var t,n=l.isFunction(e);return this.each(function(l){return n&&!e(l)||(t=l,!1)},this),t},u.prototype.sort=function(e){var t=[];return this.each(function(e){t.push(e)}),a(e)&&(t=t.sort(e)),t},u.prototype.each=function(e,t){o(this.items,e,t||this)},u.prototype.toArray=function(){return this.length?l.map(this.items,function(e){return e}):[]},e.exports=u},function(e,t,n){"use strict";var l=n(0),o=n(4).Date,i=n(3),a=n(52),r=n(53),s=i.MILLISECONDS_SCHEDULE_MIN_DURATION,u="allday";function c(){this.id="",this.title="",this.body="",this.isAllDay=!1,this.start=null,this.end=null,this.color="#000",this.isVisible=!0,this.bgColor="#a1b56c",this.dragBgColor="#a1b56c",this.borderColor="#000",this.calendarId="",this.category="",this.dueDateClass="",this.customStyle="",this.isPending=!1,this.isFocused=!1,this.isReadOnly=!1,this.isPrivate=!1,this.location="",this.attendees=[],this.recurrenceRule="",this.state="",this.goingDuration=0,this.comingDuration=0,this.raw=null,l.stamp(this)}c.schema={required:["title"],dateRange:["start","end"]},c.create=function(e){var t=new c;return t.init(e),t},c.prototype.init=function(e){(e=l.extend({},e)).category===u&&(e.isAllDay=!0),this.id=e.id||"",this.title=e.title||"",this.body=e.body||"",this.isAllDay=!!l.isExisty(e.isAllDay)&&e.isAllDay,this.isVisible=!l.isExisty(e.isVisible)||e.isVisible,this.color=e.color||this.color,this.bgColor=e.bgColor||this.bgColor,this.dragBgColor=e.dragBgColor||this.dragBgColor,this.borderColor=e.borderColor||this.borderColor,this.calendarId=e.calendarId||"",this.category=e.category||"",this.dueDateClass=e.dueDateClass||"",this.customStyle=e.customStyle||"",this.location=e.location||"",this.attendees=e.attendees||[],this.recurrenceRule=e.recurrenceRule||"",this.isPrivate=e.isPrivate||!1,this.isPending=e.isPending||!1,this.isFocused=e.isFocused||!1,this.isReadOnly=e.isReadOnly||!1,this.goingDuration=e.goingDuration||0,this.comingDuration=e.comingDuration||0,this.state=e.state||"",this.isAllDay?this.setAllDayPeriod(e.start,e.end):this.setTimePeriod(e.start,e.end),this.raw=e.raw||null},c.prototype.setAllDayPeriod=function(e,t){e=l.isString(e)?i.parse(e.substring(0,10)):new o(e||Date.now()),t=l.isString(t)?i.parse(t.substring(0,10)):new o(t||this.start),this.start=e,this.start.setHours(0,0,0),this.end=t||new o(this.start),this.end.setHours(23,59,59)},c.prototype.setTimePeriod=function(e,t){this.start=new o(e||Date.now()),this.end=new o(t||this.start),t||this.end.setMinutes(this.end.getMinutes()+30)},c.prototype.getStarts=function(){return this.start},c.prototype.getEnds=function(){return this.end},c.prototype.cid=function(){return l.stamp(this)},c.prototype.equals=function(e){return this.id===e.id&&(this.title===e.title&&(this.body===e.body&&(this.isAllDay===e.isAllDay&&(0===i.compare(this.getStarts(),e.getStarts())&&(0===i.compare(this.getEnds(),e.getEnds())&&(this.color===e.color&&(this.bgColor===e.bgColor&&(this.dragBgColor===e.dragBgColor&&this.borderColor===e.borderColor))))))))},c.prototype.duration=function(){var e=this.getStarts(),t=this.getEnds();return this.isAllDay?i.end(t)-i.start(e):t-e},c.prototype.collidesWith=function(e){var t=this.getStarts(),n=this.getEnds(),l=e.getStarts(),o=e.getEnds(),a=i.millisecondsFrom("minutes",this.goingDuration),r=i.millisecondsFrom("minutes",this.comingDuration),u=i.millisecondsFrom("minutes",e.goingDuration),c=i.millisecondsFrom("minutes",e.comingDuration);return Math.abs(n-t)(t-=a)&&lt&&o=n},r.mixin(c.prototype),a.mixin(c.prototype),e.exports=c},function(e,t,n){"use strict";var l=n(0),o=n(3);function i(e,t){return e!==t?e?-1:1:0}function a(e,t){var n=String(e),l=String(t);return n>l?1:n0))return o;s=o-1}return~s},compare:{schedule:{asc:function(e,t){var n,a,r,s,u=e.valueOf(),c=t.valueOf();return(r=i(u.isAllDay||e.hasMultiDates,c.isAllDay||t.hasMultiDates))?r:(s=o.compare(e.getStarts(),t.getStarts()))?s:(n=e.duration())<(a=t.duration())?1:n>a?-1:l.stamp(u)-l.stamp(c)}},bool:{asc:i,desc:function(e,t){return e!==t?e?1:-1:0}},num:{asc:function(e,t){return Number(e)-Number(t)},desc:function(e,t){var n=Number(e);return Number(t)-n}},str:{asc:a,desc:function(e,t){var n=String(e),l=String(t);return n>l?-1:nl?1:nl?-1:n30?t=1:e<=30&&(t=.5),t}e.exports=u},function(e,t,n){"use strict";var l=n(0),o=n(5),i=n(1),a=n(6),r=Math.floor;e.exports=function(e){var t=e.children,n=t.sort(function(e,t){return l.stamp(e)-l.stamp(t)}),s=t.length,u=t.single().getRenderDateRange().length,c=l.pick(e.vLayout.panels[1],"container"),d=i.getSize(c),h=e.grids;return function(e){var t,i,m,p=a.getMousePosition(e,c),f=function(e){for(var t,n=0,l=h.length;n=n.length&&(g=n.length-1),(t=l.pick(n,g))?(m=t.getRenderDateRange(),f<0&&(f=0),f>=m.length&&(f=m.length-1),(i=l.pick(m,f))?{x:f,y:g,sizeX:u,sizeY:s,date:i,weekdayView:t,triggerEvent:e.type}:null):null}}},function(e,t,n){e.exports=n(21)},function(e,t,n){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var i=o(n(22)),a=l(n(46)),r=l(n(12)),s=o(n(11)),u=o(n(47)),c=l(n(48));function d(){var e=new i.HandlebarsEnvironment;return s.extend(e,i),e.SafeString=a.default,e.Exception=r.default,e.Utils=s,e.escapeExpression=s.escapeExpression,e.VM=u,e.template=function(t){return u.template(t,e)},e}var h=d();h.create=d,c.default(h),h.default=h,t.default=h,e.exports=t.default},function(e,t,n){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.HandlebarsEnvironment=u;var o=n(11),i=l(n(12)),a=n(23),r=n(43),s=l(n(45));t.VERSION="4.5.3";t.COMPILER_REVISION=8;t.LAST_COMPATIBLE_COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function u(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},a.registerDefaultHelpers(this),r.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:s.default,log:s.default.log,registerHelper:function(e,t){if("[object Object]"===o.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple helpers");o.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if("[object Object]"===o.toString.call(e))o.extend(this.partials,e);else{if(void 0===t)throw new i.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if("[object Object]"===o.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple decorators");o.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var c=s.default.log;t.log=c,t.createFrame=o.createFrame,t.logger=s.default},function(e,t,n){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.registerDefaultHelpers=function(e){o.default(e),i.default(e),a.default(e),r.default(e),s.default(e),u.default(e),c.default(e)},t.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])};var o=l(n(36)),i=l(n(37)),a=l(n(38)),r=l(n(39)),s=l(n(40)),u=l(n(41)),c=l(n(42))},function(e,t,n){"use strict";var l=n(4).Date;function o(e){if(!(this instanceof o))return new o(e);e instanceof l||(e=new l(e)),this.d=e}o.prototype.safe=function(e){return e.constructor===o?e.d:e},o.prototype.clone=function(){return new o(new l(this.d))},o.prototype.addDate=function(e){return this.d.setDate(this.d.getDate()+e),this},o.prototype.addMonth=function(e){var t=this.d.getMonth(),n=this.d.getDate(),l=this._isLeapYear(),o=t+e,i=this.clone(),a=n;return e&&(1===o?a=l?29:28:(e>0?i.d.setMonth(o+1,0):i.d.setMonth(t,0),a=i.d.getDate())),this.d.setMonth(o,Math.min(n,a)),this},o.prototype._isLeapYear=function(){var e=this.d.getFullYear();return e%4==0&&e%100!=0||!(e%400)},o.prototype.setHours=function(e,t,n,l){return this.d.setHours(e,t,n,l),this},o.prototype.isBetween=function(e,t){var n=this.safe;return n(e)<=this.d&&this.d<=n(t)},e.exports=o},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(1),i=n(6);function a(e,t){i.on(t,"mousedown",this._onMouseDown,this),this.options=l.extend({distance:10,exclude:null},e),this.container=t,this._cancelled=!1,this._isMoved=!1,this._distance=0,this._dragStartFired=!1,this._dragStartEventData=null}a.prototype.destroy=function(){i.off(this.container,"mousedown",this._onMouseDown,this),this._isMoved=null,this.container=null},a.prototype._clearData=function(){this._cancelled=!1,this._distance=0,this._isMoved=!1,this._dragStartFired=!1,this._dragStartEventData=null},a.prototype._toggleDragEvent=function(e){var n,l,a=this.container;e?(n="on",l="disable"):(n="off",l="enable"),o[l+"TextSelection"](a),o[l+"ImageDrag"](a),i[n](t.document,{mousemove:this._onMouseMove,mouseup:this._onMouseUp},this)},a.prototype._getEventData=function(e){return{target:e.target||e.srcElement,originEvent:e}},a.prototype._onMouseDown=function(e){var t=this.options,n=e.srcElement||e.target;0===i.getMouseButton(e)&&(t.exclude&&t.exclude(n)?this._cancelled=!0:(this._clearData(),this._dragStartEventData=this._getEventData(e),this._toggleDragEvent(!0),this.fire("mousedown",this._dragStartEventData)))},a.prototype._onMouseMove=function(e){var t;if(this._cancelled)this._clearData();else if(t=this.options.distance,i.preventDefault(e),this._distance(t-=r)&&lt&&a=n},e.exports=a},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(1),r=n(6),s=n(8),u=n(61),c=n(25),d=Math.abs;function h(e,t,n){var i,r;if(!(this instanceof h))return new h(e,t);s.call(this,t),a.addClass(t,o.classname("vlayout-container")),i=this.options=l.extend({panels:[],panelHeights:[]},e),this.panels=[],this._drag=new c({distance:10,exclude:function(e){return!a.hasClass(e,o.classname("splitter"))}},t),this._drag.on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd},this),this._dragData=null,this.theme=n,i.panels.length&&(i.panelHeights.length&&(r=i.panelHeights.slice(),l.forEach(i.panels,function(e){e.isSplitter||e.autoHeight||(e.height=r.shift())})),this.addPanels(i.panels,this.container)),this.refresh()}l.inherit(h,s),h.prototype.getLayoutData=function(){var e=[];return l.forEach(this.panels,function(t){t.isSplitter()||t.options.autoHeight||e.push(t.getHeight())}),e},h.prototype.setLayoutData=function(e){e.length&&(l.forEach(this.panels,function(t){t.isSplitter()||t.options.autoHeight||t.setHeight(null,e.shift())}),this.refresh())},h.prototype.nextPanel=function(e){return this.panels[e.index+1]},h.prototype.prevPanel=function(e){return this.panels[e.index-1]},h.prototype._initializeGuideElement=function(e,t){var n=e.cloneNode(!0);return a.addClass(n,o.classname("splitter-guide")),this._refreshGuideElement(n,t),this.container.appendChild(n),n},h.prototype._refreshGuideElement=function(e,t){e.style.top=t+"px"},h.prototype._clearGuideElement=function(e){a.remove(e)},h.prototype._resize=function(e,t,n){var o,i,a=d(t-n),r=[],s=n>t,u=s?"nextPanel":"prevPanel";for(i=(o=this[s?"prevPanel":"nextPanel"](e)).getResizeInfoByGrowth(a),r.push([o,i[0]]),o=this[u](o);l.isExisty(o);o=this[u](o))o.isSplitter()||(i=o.getResizeInfoByGrowth(-a),r.push([o,i[0]]),a-=i[1]);l.forEach(r,function(e){e[0].setHeight(null,e[1],!0),e[0].fire("resize")})},h.prototype._getMouseYAdditionalLimit=function(e){var t,n=0,o=0,i=function(e){return e.isSplitter()?e.getHeight():e.options.minHeight};for(t=this.prevPanel(e);l.isExisty(t);t=this.prevPanel(t))n+=i(t);for(t=this.nextPanel(e);l.isExisty(t);t=this.nextPanel(t))o+=i(t);return[n,o]},h.prototype._onDragStart=function(e){var t=e.originEvent,n=e.target,i=a.getData(n,"panelIndex"),s=this.panels[i],u=s.getHeight(),c=r.getMousePosition(t,n)[1],d=r.getMousePosition(t,this.container)[1],h=this._initializeGuideElement(n,d);s.addClass(o.classname("splitter-focused")),this._dragData={splPanel:s,splOffsetY:c,guideElement:h,startY:d-c,minY:0,maxY:this.getViewBound().height-u},l.browser.msie||a.addClass(document.body,o.classname("resizing"))},h.prototype._onDrag=function(e){var t=this._dragData,n=r.getMousePosition(e.originEvent,this.container)[1];n=i.limit(n-t.splOffsetY,[t.minY],[t.maxY]),this._refreshGuideElement(t.guideElement,n)},h.prototype._onDragEnd=function(e){var t=this._dragData,n=this._getMouseYAdditionalLimit(t.splPanel),l=r.getMousePosition(e.originEvent,this.container)[1];l=i.limit(l-t.splOffsetY,[t.minY+n[0]],[t.maxY-n[1]]),this._resize(t.splPanel,t.startY,l),this.fire("resize",{layoutData:this.getLayoutData()}),this._dragData=null,this._clearGuideElement(t.guideElement),t.splPanel.removeClass(o.classname("splitter-focused")),a.removeClass(document.body,o.classname("resizing"))},h.prototype.refresh=function(){var e,t=[],n=this.getViewBound().height,o=0;n&&(l.forEach(this.panels,function(e){e.options.autoHeight?t.push(e):o+=e.getHeight()}),e=(n-o)/t.length,l.forEach(t,function(t){t.setHeight(null,e)}))},h.prototype.addPanel=function(e,t){var n=document.createElement("div"),o=this.panels,i=o.length;e=l.extend({index:i},e),o.push(new u(e,n,this.theme)),t.appendChild(n)},h.prototype.addPanels=function(e,t){var n=this,o=document.createDocumentFragment();l.forEach(e,function(e){n.addPanel(e,o)}),t.appendChild(o)},h.prototype.getPanelByName=function(e){var t;return l.forEach(this.panels,function(n){n.name===e&&(t=n)}),t},e.exports=h},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1),a=n(3),r=n(4).Date,s=n(8);function u(e,t){t=i.appendHTMLElement("div",t,o.classname("weekday")),this.options=l.extend({containerBottomGutter:8,scheduleHeight:18,scheduleGutter:2,narrowWeekend:!1,startDayOfWeek:0,workweek:!1},e),this._cacheParentViewModel=null,s.call(this,t)}l.inherit(u,s),u.prototype.getRenderDateRange=function(){return this._cacheParentViewModel.range},u.prototype.getRenderDateGrids=function(){return this._cacheParentViewModel.grids},u.prototype.getBaseViewModel=function(e){var t=this.options,n=e.range,o=100/n.length,i=e.grids,s=e.exceedDate||{},u=e.theme,c=(new r).toLocalTime();return this._cacheParentViewModel=e,{width:o,scheduleHeight:t.scheduleHeight,scheduleBlockHeight:t.scheduleHeight+t.scheduleGutter,scheduleBlockGutter:t.scheduleGutter,dates:l.map(n,function(e,t){var n=e.getDay(),l=a.format(new r(e),"YYYYMMDD"),o=a.isSameDate(c,e);return{date:a.format(e,"YYYY-MM-DD"),month:e.getMonth()+1,day:n,isToday:o,ymd:l,hiddenSchedules:s[l]||0,width:i[t]?i[t].width:0,left:i[t]?i[t].left:0,color:this._getDayNameColor(u,n,o),backgroundColor:this._getDayBackgroundColor(u,n)}},this)}},u.prototype.getExceedDate=function(e,t,n){var o=this._initExceedDate(n);return l.forEach(t,function(t){l.forEach(t,function(t){l.forEach(t,function(t){var n;!t||t.top0&&i+e.width>t.right&&(i=t.right-e.width),i<0&&(i=0),o-i!=e.width/2&&(l=o-i-8),{x:i,y:a,arrow:{direction:r,position:l}}},p.prototype._setArrowDirection=function(e){var t=e.direction||"arrow-bottom",n=c.get(s.classname("popup-arrow")),l=c.find(s.classname(".popup-arrow-border",n));t!==s.classname("arrow-bottom")&&(c.removeClass(n,s.classname("arrow-bottom")),c.addClass(n,s.classname(t))),e.position&&(l.style.left=e.position+"px")},p.prototype._createDatepicker=function(e,t,n){var l=s.cssPrefix;this.rangePicker=a.createRangePicker({startpicker:{date:new m(e).toDate(),input:"#"+l+"schedule-start-date",container:"#"+l+"startpicker-container"},endpicker:{date:new m(t).toDate(),input:"#"+l+"schedule-end-date",container:"#"+l+"endpicker-container"},format:n?"yyyy-MM-dd":"yyyy-MM-dd HH:mm",timepicker:n?null:{showMeridiem:!1,usageStatistics:this._usageStatistics},usageStatistics:this._usageStatistics})},p.prototype.hide=function(){this.layer.hide(),this.guide&&(this.guide.clearGuideElement(),this.guide=null),u.off(document.body,"mousedown",this._onMouseDown,this)},p.prototype.refresh=function(){this._viewModel&&this.layer.setContent(this.tmpl(this._viewModel))},p.prototype.setCalendars=function(e){this.calendars=e||[]},e.exports=p},function(e,t,n){"use strict";var l=n(8),o=n(16),i=n(0),a=n(2),r=n(6),s=n(1),u=n(78);function c(e){l.call(this,e),this.layer=new o(null,e),this._viewModel=null,this._schedule=null,this._calendar=null,r.on(e,"click",this._onClick,this)}i.inherit(c,l),c.prototype._onMouseDown=function(e){var t=e.target||e.srcElement;s.closest(t,a.classname(".floating-layer"))||this.hide()},c.prototype.destroy=function(){this.layer.destroy(),this.layer=null,r.off(this.container,"click",this._onClick,this),r.off(document.body,"mousedown",this._onMouseDown,this),l.prototype.destroy.call(this)},c.prototype._onClick=function(e){var t=e.target||e.srcElement;this._onClickEditSchedule(t),this._onClickDeleteSchedule(t)},c.prototype._onClickEditSchedule=function(e){var t=a.classname("popup-edit");(s.hasClass(e,t)||s.closest(e,"."+t))&&(this.fire("beforeUpdateSchedule",{schedule:this._schedule,triggerEventName:"click",target:this._scheduleEl}),this.hide())},c.prototype._onClickDeleteSchedule=function(e){var t=a.classname("popup-delete");(s.hasClass(e,t)||s.closest(e,"."+t))&&(this.fire("beforeDeleteSchedule",{schedule:this._schedule}),this.hide())},c.prototype.render=function(e){var t=this.layer,n=this;t.setContent(u({schedule:e.schedule,calendar:e.calendar})),t.show(),this._setPopupPositionAndArrowDirection(e.event),this._schedule=e.schedule,this._calendar=e.calendar,i.debounce(function(){r.on(document.body,"mousedown",n._onMouseDown,n)})()},c.prototype._setPopupPositionAndArrowDirection=function(e){var t,n=s.find(a.classname(".popup"),this.layer.container),l={width:n.offsetWidth,height:n.offsetHeight},o={right:window.innerWidth,bottom:window.innerHeight},i=this.layer.parent.getBoundingClientRect(),r=i.left,u=i.top,c=e.target||e.srcElement,d=s.closest(c,a.classname(".time-date-schedule-block"))||s.closest(c,a.classname(".weekday-schedule"))||c,h=d.getBoundingClientRect();this._scheduleEl=d,(t=this._calcRenderingData(l,o,h)).x-=r+4,t.y-=u+8,this.layer.setPosition(t.x,t.y),this._setArrowDirection(t.arrow)},c.prototype._calcRenderingData=function(e,t,n){var l=(n.top+n.bottom)/2,o=n.right,i=l,a="arrow-left";return i<0&&(i=i+e.height/2-l),o>0&&o+e.width>t.right&&(o=n.left-e.width-8-3,a="arrow-right"),o<0&&(o=0),n.right>o+e.width&&(a="arrow-right"),{x:o+8,y:i-e.height/2+8,arrow:{direction:a,position:void 0}}},c.prototype._setArrowDirection=function(e){var t=e.direction||"arrow-left",n=s.find(a.classname(".popup-arrow"),this.layer.container),l=s.find(a.classname(".popup-arrow-border",n));t!==a.classname("arrow-left")&&(s.removeClass(n,a.classname("arrow-left")),s.addClass(n,a.classname(t))),e.position&&(l.style.top=e.position+"px")},c.prototype.hide=function(){this.layer.hide(),this.guide&&(this.guide.clearGuideElement(),this.guide=null),r.off(document.body,"mousedown",this._onMouseDown,this)},c.prototype.refresh=function(){this._viewModel&&this.layer.setContent(this.tmpl(this._viewModel))},e.exports=c},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(1),r=n(17),s=n(81),u=n(4).Date;function c(e,t,n){this.dragHandler=e,this.view=t,this.controller=n,this._dragStart=null,e.on({dragStart:this._onDragStart},this),this.guide=new s(this)}c.prototype.destroy=function(){this.guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.view=this.controller=this.guide=this._dragStart=null},c.prototype.checkExpectedCondition=function(e){var t,n,i=a.getClass(e);return!~i.indexOf(o.classname("weekday-resize-handle"))&&(!!(t=a.closest(e,o.classname(".weekday")))&&(!(!(n=(i=a.getClass(t)).match(o.daygrid.getViewIDRegExp))||n.length<2)&&l.pick(this.view.children.items,n[1])))},c.prototype._onDragStart=function(e){var t,n,i,r,s,u=e.target,c=this.checkExpectedCondition(u),d=this.controller;c&&(t=a.closest(u,o.classname(".weekday-schedule-block"),!0))&&(n=a.getData(t,"id"),(i=d.schedules.items[n])&&(i.isReadOnly||(r=this._retriveScheduleData(this.view,e.originEvent),this.getScheduleDataFunc=r,s=this._dragStart=r(e.originEvent),l.extend(s,{scheduleBlockElement:t,model:i}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("dragstart",s))))},c.prototype._onDrag=function(e){var t=this.getScheduleDataFunc;t&&this.fire("drag",t(e.originEvent))},c.prototype._updateSchedule=function(e){var t=e.targetModel,n=e.xIndex-e.dragStartXIndex,l=new u(t.start),o=new u(t.end);l=l.addDate(n),o=o.addDate(n),this.fire("beforeUpdateSchedule",{schedule:t,changes:{start:l,end:o},start:l,end:o})},c.prototype._onDragEnd=function(e,t,n){var o,i=this.getScheduleDataFunc,a=this._dragStart;i&&a&&(this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),o=i(e.originEvent),l.extend(o,{targetModel:a.model}),n||this._updateSchedule(o),this.fire(t||"dragend",o),this.getScheduleDataFunc=this._dragStart=null)},c.prototype._onClick=function(e){this._onDragEnd(e,"click",!0)},i.mixin(r,c),l.CustomEvents.mixin(c),e.exports=c},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(1),r=n(3),s=n(4).Date,u=n(103),c=Math.max,d=Math.min,h=Math.abs,m=Math.floor;function p(e,t){var n=this;this.options=l.extend({top:0,height:"20px",bgColor:"#f7ca88",label:"New event",isResizeMode:!1,isCreationMode:!1,styles:this._getStyles(t.controller.theme)},e),this.view=t,this.weeks=t.children.sort(function(e,t){return l.stamp(e)-l.stamp(t)}),this.days=t.children.single().getRenderDateRange().length,this.ratio=l.bind(function(e){return i.ratio(n.days,100,e)}),this.startCoord=[0,0],this.guideElements={},this.grids=t.grids}p.prototype.destroy=function(){this.clear(),this.options=this.view=this.weeks=this.days=this.ratio=this.startCoord=this.guideElements=null},p.prototype.clearGuideElement=function(){this.destroy()},p.prototype._getRatioValueInWeek=function(e){return(this.grids[e]||{left:100}).left},p.prototype._createGuideElement=function(){var e=document.createElement("div");return e.innerHTML=u(this.options),e.firstChild},p.prototype._getGuideElement=function(e){var t=this.guideElements,n=t[e],l=this.weeks[e];return l?(n||(n=this._createGuideElement(),l.container.appendChild(n),t[e]=n),n):null},p.prototype._getCoordByDate=function(e){for(var t=this.weeks,n=this.view.options.workweek?this.days+2:this.days,l=function(e,t){return m(r.millisecondsTo("day",h(t-e)))},o=r.start(t[0].options.renderStartDate),i=en[1]?l=n.slice(0):(o=c(t[0],o),l=[o=d(n[0],o),i]),l},p.prototype.start=function(e){var t,n=this.options,o=e.target,i=e.model,a=e.x,u=e.y,c=new s(this.view.options.renderMonth);n.isCreationMode?i&&!r.isSameMonth(c,i.start)&&(i.start.setMonth(c.getMonth()),i.start.setDate(1),i.end.setMonth(c.getMonth()),i.end.setDate(1)):(a=(t=this._getCoordByDate(i.getStarts()))[0],u=t[1],l.extend(this.options,{top:parseInt(o.style.top,10)+"px",height:parseInt(o.style.height,10)+"px",label:i.title},i)),(l.isUndefined(a)||l.isUndefined(u))&&(a=(t=this._getCoordByDate(i.getStarts()))[0],u=t[1]),this.startCoord=[a,u],this.update(a,u)},p.prototype._updateGuides=function(e){l.forEach(e,function(e){var t=e.guide,n=o.classname("month-exceed-left"),l=o.classname("month-exceed-right");t.style.display="block",t.style.left=e.left+"%",t.style.width=e.width+"%",e.exceedL?a.addClass(t,n):a.removeClass(t,n),e.exceedR?a.addClass(t,l):a.removeClass(t,l)})},p.prototype._getOriginIndicate=function(e,t){var n,l,o=d(e[0],t[0]),i=c(e[0],t[0])+1;return t[1]>e[1]?(o=e[0],i=this.days,l=!0):t[1]e[1]?(o=0,n=!0):t[1]o)&&i.push(e)}),i},p.prototype.update=function(e,t){var n=this,o=this.startCoord,i=[e,t],a=this.options.isResizeMode?this._getLimitedCoord(i,o):i,r=l.keys(this.guideElements),s=l.range(d(o[1],a[1]),c(o[1],a[1])+1),u=this._getExcludesInRange(s,r),h={};this._removeGuideElements(u),l.forEach(s,function(e){var t,r=n._getGuideElement(e);r&&(t=e===o[1]?n._getOriginIndicate(o,a):e===i[1]?n._getMouseIndicate(o,i):n._getContainIndicate(),h[e]=l.extend({guide:r},t))}),this._updateGuides(h)},p.prototype.clear=function(){l.forEach(this.guideElements,function(e){a.remove(e)}),this.guideElements={}},p.prototype._getStyles=function(e){var t={};return e&&(t.border=e.common.creationGuide.border,t.backgroundColor=e.common.creationGuide.backgroundColor,t.scheduleHeight=e.month.schedule.height,t.scheduleGutter=e.month.schedule.marginTop,t.marginLeft=e.month.schedule.marginLeft,t.marginRight=e.month.schedule.marginRight,t.borderRadius=e.month.schedule.borderRadius),t},e.exports=p},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(35);n(111),n(112),t.jQuery&&(t.jQuery.fn.tuiCalendar=function(){var e,n,i=this.get(0),a=Array.prototype.slice.apply(arguments);if(i)if(e=l.pick(a,0)||{},n=t.jQuery.data(i,"tuiCalendar")){if("string"==typeof e&&n[e])return n[e].apply(n,a.slice(1))}else n=new o(i,e),t.jQuery.data(i,"tuiCalendar",n);return this}),e.exports=o}).call(this,n(9))},function(e,t,n){"use strict";var l="UA-129951699-1",o=n(0),i=n(20),a=n(24),r=n(3),s=n(49),u=n(25),c=n(50),d=n(60),h=n(94),m=n(4).Date,p=n(2),f=n(4),g=n(10),S=Math.min;function y(e,t){!0===(t=o.extend({usageStatistics:!0},t)).usageStatistics&&o.sendHostname&&o.sendHostname("calendar",l),o.isString(e)&&(e=document.querySelector(e)),this._calendarColor={},this._renderDate=r.start(),this._renderRange={start:null,end:null},this._controller=function(e){return c(e)}(t),this._controller.setCalendars(t.calendars),this._layout=new s(e,this._controller.theme),this._dragHandler=new u({distance:10},this._layout.container),this._viewName=t.defaultView||"week",this._refreshMethod=null,this._scrollToNowMethod=null,this._requestScrollToNow=!1,this._openCreationPopup=null,this._hideMoreView=null,this._requestRender=0,this._options={},this._initialize(t)}function _(e,t){e.recursive(function(e){var n=e.options;n&&t(e,n)})}y.prototype.destroy=function(){this._dragHandler.destroy(),this._controller.off(),this._layout.clear(),this._layout.destroy(),o.forEach(this._options.template,function(e,t){e&&i.unregisterHelper(t+"-tmpl")}),this._options=this._renderDate=this._controller=this._layout=this._dragHandler=this._viewName=this._refreshMethod=this._scrollToNowMethod=null},y.prototype._initialize=function(e){var t=this._controller,n=this._viewName;this._options=o.extend({defaultView:n,taskView:!0,scheduleView:!0,template:o.extend({allday:null,time:null},o.pick(e,"template")||{}),week:o.extend({},o.pick(e,"week")||{}),month:o.extend({},o.pick(e,"month")||{}),calendars:[],useCreationPopup:!1,useDetailPopup:!1,timezones:e.timezones||[],disableDblClick:!1,disableClick:!1,isReadOnly:!1},e),this._options.week=o.extend({startDayOfWeek:0,workweek:!1},o.pick(this._options,"week")||{}),this._options.month=o.extend({startDayOfWeek:0,workweek:!1,scheduleFilter:function(e){return Boolean(e.isVisible)&&("allday"===e.category||"time"===e.category)}},o.pick(e,"month")||{}),this._options.isReadOnly&&(this._options.useCreationPopup=!1),this._layout.controller=t,this._setAdditionalInternalOptions(e),this.changeView(n,!0)},y.prototype._setAdditionalInternalOptions=function(e){var t=e.timezones||[];o.forEach(e.template,function(e,t){e&&i.registerHelper(t+"-tmpl",e)}),o.forEach(e.calendars||[],function(e){this.setCalendarColor(e.id,e,!0)},this),t.length&&f.setOffsetByTimezoneOption(t[0].timezoneOffset)},y.prototype.createSchedules=function(e,t){o.forEach(e,function(e){this._setScheduleColor(e.calendarId,e)},this),this._controller.createSchedules(e,t),t||this.render()},y.prototype.getSchedule=function(e,t){return this._controller.schedules.single(function(n){return n.id===e&&n.calendarId===t})},y.prototype.updateSchedule=function(e,t,n,l){var o=this._controller,i=o.schedules.single(function(n){return n.id===e&&n.calendarId===t});n&&i&&(n=this._hasChangedCalendar(i,n)?this._setScheduleColor(n.calendarId,n):n,o.updateSchedule(i,n),l||this.render())},y.prototype._hasChangedCalendar=function(e,t){return e&&t.calendarId&&e.calendarId!==t.calendarId},y.prototype._setScheduleColor=function(e,t){var n=this._calendarColor[e];return n&&(t.color=t.color||n.color,t.bgColor=t.bgColor||n.bgColor,t.borderColor=t.borderColor||n.borderColor,t.dragBgColor=t.dragBgColor||n.dragBgColor),t},y.prototype.deleteSchedule=function(e,t,n){var l=this._controller,o=l.schedules.single(function(n){return n.id===e&&n.calendarId===t});o&&(l.deleteSchedule(o),n||this.render())},y.prototype._getWeekDayRange=function(e,t,n){var l,i,a,s;return t=t||0,l=(e=o.isDate(e)?e:new m(e)).getDay(),i=new m(e).addDate(-l+t),a=new m(i).addDate(6),l0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):o(this);if(n.data&&n.ids){var a=l.createFrame(n.data);a.contextPath=l.appendContextPath(n.data.contextPath,n.name),n={data:a}}return i(t,n)})},e.exports=t.default},function(e,t,n){"use strict";(function(l){t.__esModule=!0;var o=n(11),i=function(e){return e&&e.__esModule?e:{default:e}}(n(12));t.default=function(e){e.registerHelper("each",function(e,t){if(!t)throw new i.default("Must pass iterator to #each");var n=t.fn,a=t.inverse,r=0,s="",u=void 0,c=void 0;function d(t,l,i){u&&(u.key=t,u.index=l,u.first=0===l,u.last=!!i,c&&(u.contextPath=c+t)),s+=n(e[t],{data:u,blockParams:o.blockParams([e[t],t],[c+t,null])})}if(t.data&&t.ids&&(c=o.appendContextPath(t.data.contextPath,t.ids[0])+"."),o.isFunction(e)&&(e=e.call(this)),t.data&&(u=o.createFrame(t.data)),e&&"object"==typeof e)if(o.isArray(e))for(var h=e.length;r=0?t:parseInt(e,10)}return e},log:function(e){if(e=o.lookupLevel(e),"undefined"!=typeof console&&o.lookupLevel(o.level)<=e){var t=o.methodMap[e];console[t]||(t="log");for(var n=arguments.length,l=Array(n>1?n-1:0),i=1;i=i.LAST_COMPATIBLE_COMPILER_REVISION&&t<=i.COMPILER_REVISION)return;if(ta.MILLISECONDS_PER_DAY?"allday":t.category},this.schedules=r.createScheduleCollection(),this.dateMatrix={},this.theme=new s(e.theme),this.calendars=[]}u.prototype._getContainDatesInSchedule=function(e){var t=e.getStarts(),n=e.getEnds(),l=a.start(t),o=0===a.compare(t,n)?n:a.convertStartDayToLastDay(n),i=a.end(o);return a.range(l,i,a.MILLISECONDS_PER_DAY)},u.prototype.createSchedule=function(e,t){var n,l={data:e};return this.invoke("beforeCreateSchedule",l)?(n=this.addSchedule(o.create(e)),t||this.fire("createdSchedule",n),n):null},u.prototype.createSchedules=function(e,t){var n=this;return l.map(e,function(e){return n.createSchedule(e,t)})},u.prototype.updateSchedule=function(e,t){var n=t.start||e.start,o=t.end||e.end;return"allday"===(t=t||{}).category&&(t.isAllDay=!0),l.isUndefined(t.isAllDay)||e.set("isAllDay",t.isAllDay),l.isUndefined(t.calendarId)||e.set("calendarId",t.calendarId),t.title&&e.set("title",t.title),t.body&&e.set("body",t.body),(t.start||t.end)&&(e.isAllDay?e.setAllDayPeriod(n,o):e.setTimePeriod(n,o)),t.color&&e.set("color",t.color),t.bgColor&&e.set("bgColor",t.bgColor),t.borderColor&&e.set("borderColor",t.borderColor),t.origin&&e.set("origin",t.origin),l.isUndefined(t.isPending)||e.set("isPending",t.isPending),l.isUndefined(t.isFocused)||e.set("isFocused",t.isFocused),t.location&&e.set("location",t.location),t.state&&e.set("state",t.state),this._removeFromMatrix(e),this._addToMatrix(e),this.fire("updateSchedule"),e},u.prototype.deleteSchedule=function(e){return this._removeFromMatrix(e),this.schedules.remove(e),e},u.prototype._addToMatrix=function(e){var t=this.dateMatrix,n=this._getContainDatesInSchedule(e);l.forEach(n,function(n){var o=a.format(n,"YYYYMMDD");(t[o]=t[o]||[]).push(l.stamp(e))})},u.prototype._removeFromMatrix=function(e){var t=l.stamp(e);l.forEach(this.dateMatrix,function(e){var n=l.inArray(t,e);~n&&e.splice(n,1)},this)},u.prototype.addSchedule=function(e,t){return this.schedules.add(e),this._addToMatrix(e),t||this.fire("addedSchedule",e),e},u.prototype.splitScheduleByDateRange=function(e,t,n){var o=a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),i=this.dateMatrix,s={};return l.forEachArray(o,function(e){var t,o=a.format(e,"YYYYMMDD"),u=i[o];t=s[o]=r.createScheduleCollection(),u&&u.length&&l.forEachArray(u,function(e){n.doWhenHas(e,function(e){t.add(e)})})}),s},u.prototype.findByDateRange=function(e,t){var n,o,s,u=a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),c=this.schedules.items,d=this.dateMatrix,h=a.format,m={};return l.forEachArray(u,function(e){o=h(e,"YYYYMMDD"),n=d[o],s=m[o]=r.createScheduleCollection(),n&&n.length&&s.add.apply(s,l.map(n,function(e){return i.create(c[e])}))}),m},u.prototype.clearSchedules=function(){this.dateMatrix={},this.schedules.clear(),this.fire("clearSchedules")},u.prototype.setTheme=function(e){return this.theme.setStyles(e)},u.prototype.setCalendars=function(e){this.calendars=e},l.CustomEvents.mixin(u),e.exports=u},function(e,t,n){"use strict";var l=n(0),o=l.isExisty,i=l.pick,a=l.isFunction,r={set:function(e,t){this[e]!==t&&(this[e]=t,this._changed||(this._changed={}),this._changed[e]=!0,this._dirty=!0)},isDirty:function(){return!!this._dirty},dirty:function(e){(e=!o(e)||e)||(this._changed={}),this._dirty=e},deleteProp:function(e){delete this[e],this._changed&&delete this._changed[e]},isPropChanged:function(e){return!!this._changed&&!0===this._changed[e]},mixin:function(e){var t=/(^_|mixin|wrap)/;l.forEachOwnProperties(r,function(n,l){t.test(l)||(e[l]=r[l])})},wrap:function(e,t,n){var s,u=r.wrap;l.isObject(t)?l.forEachOwnProperties(t,function(t,n){u(e,n,t)}):(n=!o(n)||n,e._wrapper||(e._wrapper=function(e,t){return function(){var n=Array.prototype.slice.call(arguments),l=e.apply(this,n);return this._dirty=t,l}}),o(i(e,t))&&a(e[t])&&!o(i(e,t,"_wrapped"))&&(s=e[t],e[t]=e._wrapper(s,n),e[t]._wrapped=!0))}};e.exports=r},function(e,t,n){"use strict";var l,o=n(4).Date,i=n(0),a=/^\s*|\s*$/g,r=n(3);l={trim:function(e){return e.replace(a,"")},validators:{required:function(e,t){var n=!0;return i.forEach(t,function(t){return n=function(e){return!i.isUndefined(e)&&""!==l.trim(e)}(e[t])}),n},dateRange:function(e,t){var n,l;return!i.isExisty(e)||2!==t.length||(n=new o(e[t[0]]),l=new o(e[t[1]]),!(!r.isValid(n)||!r.isValid(l))&&1!==r.compare(n,l))}},isValid:function(){var e,t=this,n=this.constructor.schema,o=l.validators,a=!0;return!n||(i.forEach(n,function(n,l){return!(e=o[l])||(a=e(t,n))}),a)},parameterize:function(){var e={},t=i.isFunction;return i.forEach(this,function(n,l){t(n)||(e[l]=n)}),e},mixin:function(e){i.forEach(l,function(t,n){"mixin"!==n&&(e[n]=t)})}},e.exports=l},function(e,t,n){"use strict";var l=n(0),o=n(55),i=n(56),a=n(5);function r(e){var t=e||o;this._map=new l.HashMap,this.setStyles(t)}r.prototype.getStyle=function(e){return this._map.get(e)},r.prototype.setStyle=function(e,t){var n={};return n[e]=t,0===this.setStyles(n).length},r.prototype.setStyles=function(e){var t=[];return l.forEach(e,function(e,n){l.isUndefined(i[n])?t.push(n):(this._map.set(n,e),a.set(this,n,e))},this),l.forEach(i,function(e,t){this.getStyle(t)||(this._map.set(t,e),a.set(this,t,e))},this),t},r.prototype.clear=function(){var e=this._map.keys(),t={};l.forEach(e,function(e){var n=e.split(".")[0];t[n]||(t[n]=n)}),l.forEach(t,function(e){delete this[e]},this),this._map.removeAll()},e.exports=r},function(e,t,n){"use strict";e.exports={"common.border":"1px solid #e5e5e5","common.backgroundColor":"white","common.holiday.color":"#ff4040","common.saturday.color":"#333","common.dayname.color":"#333","common.today.color":"#333","common.creationGuide.backgroundColor":"rgba(81, 92, 230, 0.05)","common.creationGuide.border":"1px solid #515ce6","month.dayname.height":"31px","month.dayname.borderLeft":"none","month.dayname.paddingLeft":"10px","month.dayname.paddingRight":"0","month.dayname.backgroundColor":"inherit","month.dayname.fontSize":"12px","month.dayname.fontWeight":"normal","month.dayname.textAlign":"left","month.holidayExceptThisMonth.color":"rgba(255, 64, 64, 0.4)","month.dayExceptThisMonth.color":"rgba(51, 51, 51, 0.4)","month.weekend.backgroundColor":"inherit","month.day.fontSize":"14px","month.schedule.borderRadius":"2px","month.schedule.height":"24px","month.schedule.marginTop":"2px","month.schedule.marginLeft":"8px","month.schedule.marginRight":"8px","month.moreView.border":"1px solid #d5d5d5","month.moreView.boxShadow":"0 2px 6px 0 rgba(0, 0, 0, 0.1)","month.moreView.backgroundColor":"white","month.moreView.paddingBottom":"17px","month.moreViewTitle.height":"44px","month.moreViewTitle.marginBottom":"12px","month.moreViewTitle.borderBottom":"none","month.moreViewTitle.padding":"12px 17px 0 17px","month.moreViewList.padding":"0 17px","week.dayname.height":"42px","week.dayname.borderTop":"1px solid #e5e5e5","week.dayname.borderBottom":"1px solid #e5e5e5","week.dayname.borderLeft":"none","week.dayname.paddingLeft":"0","week.dayname.backgroundColor":"inherit","week.dayname.textAlign":"left","week.today.color":"inherit","week.pastDay.color":"#bbb","week.vpanelSplitter.border":"1px solid #e5e5e5","week.vpanelSplitter.height":"3px","week.daygrid.borderRight":"1px solid #e5e5e5","week.daygrid.backgroundColor":"inherit","week.daygridLeft.width":"72px","week.daygridLeft.backgroundColor":"inherit","week.daygridLeft.paddingRight":"8px","week.daygridLeft.borderRight":"1px solid #e5e5e5","week.today.backgroundColor":"rgba(81, 92, 230, 0.05)","week.weekend.backgroundColor":"inherit","week.timegridLeft.width":"72px","week.timegridLeft.backgroundColor":"inherit","week.timegridLeft.borderRight":"1px solid #e5e5e5","week.timegridLeft.fontSize":"11px","week.timegridOneHour.height":"52px","week.timegridHalfHour.height":"26px","week.timegridHalfHour.borderBottom":"none","week.timegridHorizontalLine.borderBottom":"1px solid #e5e5e5","week.timegrid.paddingRight":"8px","week.timegrid.borderRight":"1px solid #e5e5e5","week.timegridSchedule.borderRadius":"2px","week.timegridSchedule.paddingLeft":"2px","week.currentTime.color":"#515ce6","week.currentTime.fontSize":"11px","week.currentTime.fontWeight":"normal","week.currentTimeLinePast.border":"1px dashed #515ce6","week.currentTimeLineBullet.backgroundColor":"#515ce6","week.currentTimeLineToday.border":"1px solid #515ce6","week.currentTimeLineFuture.border":"none","week.creationGuide.color":"#515ce6","week.creationGuide.fontSize":"11px","week.creationGuide.fontWeight":"bold","week.dayGridSchedule.borderRadius":"2px","week.dayGridSchedule.height":"24px","week.dayGridSchedule.marginTop":"2px","week.dayGridSchedule.marginLeft":"8px","week.dayGridSchedule.marginRight":"8px"}},function(e,t,n){"use strict";e.exports={"common.border":"1px solid #e5e5e5","common.backgroundColor":"white","common.holiday.color":"#ff4040","common.saturday.color":"#333","common.dayname.color":"#333","common.today.color":"#333","common.creationGuide.backgroundColor":"rgba(81, 92, 230, 0.05)","common.creationGuide.border":"1px solid #515ce6","month.dayname.height":"31px","month.dayname.borderLeft":"1px solid #e5e5e5","month.dayname.paddingLeft":"10px","month.dayname.paddingRight":"10px","month.dayname.backgroundColor":"inherit","month.dayname.fontSize":"12px","month.dayname.fontWeight":"normal","month.dayname.textAlign":"left","month.holidayExceptThisMonth.color":"rgba(255, 64, 64, 0.4)","month.dayExceptThisMonth.color":"rgba(51, 51, 51, 0.4)","month.weekend.backgroundColor":"inherit","month.day.fontSize":"14px","month.schedule.borderRadius":"2px","month.schedule.height":"24px","month.schedule.marginTop":"2px","month.schedule.marginLeft":"8px","month.schedule.marginRight":"8px","month.moreView.border":"1px solid #d5d5d5","month.moreView.boxShadow":"0 2px 6px 0 rgba(0, 0, 0, 0.1)","month.moreView.backgroundColor":"white","month.moreView.paddingBottom":"17px","month.moreViewTitle.height":"44px","month.moreViewTitle.marginBottom":"12px","month.moreViewTitle.backgroundColor":"inherit","month.moreViewTitle.borderBottom":"none","month.moreViewTitle.padding":"12px 17px 0 17px","month.moreViewList.padding":"0 17px","week.dayname.height":"42px","week.dayname.borderTop":"1px solid #e5e5e5","week.dayname.borderBottom":"1px solid #e5e5e5","week.dayname.borderLeft":"inherit","week.dayname.paddingLeft":"0","week.dayname.backgroundColor":"inherit","week.dayname.textAlign":"left","week.today.color":"#333","week.pastDay.color":"#bbb","week.vpanelSplitter.border":"1px solid #e5e5e5","week.vpanelSplitter.height":"3px","week.daygrid.borderRight":"1px solid #e5e5e5","week.daygrid.backgroundColor":"inherit","week.daygridLeft.width":"72px","week.daygridLeft.backgroundColor":"inherit","week.daygridLeft.paddingRight":"8px","week.daygridLeft.borderRight":"1px solid #e5e5e5","week.today.backgroundColor":"rgba(81, 92, 230, 0.05)","week.weekend.backgroundColor":"inherit","week.timegridLeft.width":"72px","week.timegridLeft.backgroundColor":"inherit","week.timegridLeft.borderRight":"1px solid #e5e5e5","week.timegridLeft.fontSize":"11px","week.timegridLeftTimezoneLabel.height":"40px","week.timegridLeftAdditionalTimezone.backgroundColor":"white","week.timegridOneHour.height":"52px","week.timegridHalfHour.height":"26px","week.timegridHalfHour.borderBottom":"none","week.timegridHorizontalLine.borderBottom":"1px solid #e5e5e5","week.timegrid.paddingRight":"8px","week.timegrid.borderRight":"1px solid #e5e5e5","week.timegridSchedule.borderRadius":"2px","week.timegridSchedule.paddingLeft":"2px","week.currentTime.color":"#515ce6","week.currentTime.fontSize":"11px","week.currentTime.fontWeight":"normal","week.pastTime.color":"#bbb","week.pastTime.fontWeight":"normal","week.futureTime.color":"#333","week.futureTime.fontWeight":"normal","week.currentTimeLinePast.border":"1px dashed #515ce6","week.currentTimeLineBullet.backgroundColor":"#515ce6","week.currentTimeLineToday.border":"1px solid #515ce6","week.currentTimeLineFuture.border":"none","week.creationGuide.color":"#515ce6","week.creationGuide.fontSize":"11px","week.creationGuide.fontWeight":"bold","week.dayGridSchedule.borderRadius":"2px","week.dayGridSchedule.height":"24px","week.dayGridSchedule.marginTop":"2px","week.dayGridSchedule.marginLeft":"8px","week.dayGridSchedule.marginRight":"8px"}},function(e,t,n){"use strict";var l=n(0),o=l.forEachArray,i=Array.prototype.slice,a=n(3),r=n(4).Date,s=n(13),u=n(26),c={getCollisionGroup:function(e){var t,n=[],a=!1;return e.length?(n[0]=[l.stamp(e[0].valueOf())],o(e.slice(1),function(r,s){a=!1,t=i.apply(e,[0,s+1]).reverse(),o(t,function(e){return!r.collidesWith(e)||(a=!0,o(n.slice(0).reverse(),function(t){return!~l.inArray(l.stamp(e.valueOf()),t)||(t.push(l.stamp(r.valueOf())),!1)}),!1)}),a||n.push([l.stamp(r.valueOf())])}),n):n},getLastRowInColumn:function(e,t){for(var n=e.length;n>0;)if(n-=1,!l.isUndefined(e[n][t]))return n;return!1},getMatrices:function(e,t){var n=[],i=c.getLastRowInColumn;return o(t,function(t){var a=[[]];o(t,function(t){for(var n,o,r=e.items[t],s=0,u=!1;!u;)!1===(o=i(a,s))?(a[0].push(r),u=!0):r.collidesWith(a[o][s])||(n=o+1,l.isUndefined(a[n])&&(a[n]=[]),a[n][s]=r,u=!0),s+=1}),n.push(a)}),n},getScheduleInDateRangeFilter:function(e,t){return function(n){var l=n.getStarts();return!(n.getEnds()t)}},positionViewModels:function(e,t,n,i){var r;r=l.map(a.range(e,t,a.MILLISECONDS_PER_DAY),function(e){return a.format(e,"YYYYMMDD")}),o(n,function(e){o(e,function(e){o(e,function(e,t){var n,o;e&&(n=a.format(e.getStarts(),"YYYYMMDD"),o=a.range(a.start(e.getStarts()),a.end(e.getEnds()),a.MILLISECONDS_PER_DAY).length,e.top=t,e.left=l.inArray(n,r),e.width=o,i&&i(e))})})})},limitRenderRange:function(e,t,n){function l(n){return n.getStarts()t&&(n.exceedRight=!0,n.renderEnds=new r(t)),n}return n.constructor===s?(n.each(l),null):l(n)},convertToViewModel:function(e){var t;return t=new s(function(e){return e.cid()}),e.each(function(e){t.add(u.create(e))}),t}};e.exports=c},function(e,t,n){"use strict";var l=n(0),o=n(13),i=n(15),a=n(3),r=n(4).Date,s=a.MILLISECONDS_SCHEDULE_MIN_DURATION,u={generateTimeArrayInRow:function(e){var t,n,o,i,r,u=[],c=[],d=Math.max.apply(null,l.map(e,function(e){return e.length}));for(n=1;n=u&&lu&&o<=c||lu||o>c&&lt?e.filter(function(e){return e.top0?r.apply(null,o):0},_adjustTimeTopIndex:function(e){var t=this.Month,n=t._getAlldayMaxTopIndexAtYMD,a=e.find(t._onlyAlldayFilter),r={};e.find(t._onlyTimeFilter).sort(o.compare.schedule.asc).forEach(function(e){var t=i.format(e.getStarts(),"YYYYMMDD"),o=r[t];l.isUndefined(o)&&(o=r[t]=n(t,a)),r[t]=e.top=o+1})},_stackTimeFromTop:function(e){var t=this.Month,n=e.find(t._onlyAlldayFilter),a=e.find(t._onlyTimeFilter).sort(o.compare.schedule.asc),s={},u=this.dateMatrix;a.forEach(function(e){var t,o,a=i.format(e.getStarts(),"YYYYMMDD"),c=s[a];if(l.isUndefined(c)&&(c=s[a]=[],l.forEach(u[a],function(e){n.doWhenHas(e,function(e){c.push(e.top)})})),l.inArray(e.top,c)>=0)for(t=r.apply(null,c)+1,o=1;o<=t&&(e.top=o,!(l.inArray(e.top,c)<0));o+=1);c.push(e.top)})},_addMultiDatesInfo:function(e){e.each(function(e){var t=e.model,n=t.getStarts(),l=t.getEnds();e.hasMultiDates=!i.isSameDate(n,l),!t.isAllDay&&e.hasMultiDates&&(e.renderStarts=i.start(n),e.renderEnds=i.convertStartDayToLastDay(l))})},findByDateRange:function(e,t,n,l){var i,r,s,u,c,d=this.Core,h=this.Month,m=d.getScheduleInDateRangeFilter(e,t);return l=l||!1,n=n||[],m=a.and.apply(null,[m].concat(n)),i=this.schedules.find(m),r=d.convertToViewModel(i),h._addMultiDatesInfo(r),h._adjustRenderRange(e,t,r),s=r.sort(o.compare.schedule.asc),u=d.getCollisionGroup(s),c=d.getMatrices(r,u),d.positionViewModels(e,t,c,h._weightTopValue),l?h._adjustTimeTopIndex(r):h._stackTimeFromTop(r),c}};e.exports=s},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1),a=n(5),r=n(27),s=n(10),u=n(14),c=n(62),d=n(63),h=n(65),m=n(69),p=n(30),f=n(31),g=n(79),S={click:n(80),creation:n(82),move:n(32),resize:n(84)},y={click:n(86),creation:n(87),move:n(89),resize:n(92)},_=[{name:"milestone",type:"daygrid",minHeight:20,maxHeight:80,showExpandableButton:!0,maxExpandableHeight:210,handlers:["click"],show:!0},{name:"task",type:"daygrid",minHeight:40,maxHeight:120,showExpandableButton:!0,maxExpandableHeight:210,handlers:["click","move"],show:!0},{name:"allday",type:"daygrid",minHeight:30,maxHeight:80,showExpandableButton:!0,maxExpandableHeight:210,handlers:["click","creation","move","resize"],show:!0},{name:"time",type:"timegrid",autoHeight:!0,handlers:["click","creation","move","resize"],show:!0}];e.exports=function(e,t,n,C,v){var E,w,R,I,k,P,D,F,b,x,X,M,T,H,L=[],B=[],O=C.taskView,V=C.scheduleView,A={milestone:l.isArray(O)?l.inArray("milestone",O)>=0:O,task:l.isArray(O)?l.inArray("task",O)>=0:O,allday:l.isArray(V)?l.inArray("allday",V)>=0:V,time:l.isArray(V)?l.inArray("time",V)>=0:V};return l.forEach(_,function(e){var t=e.name;e=l.extend({},e),L.push(e),e.show=A[t],e.show&&(B.length&&B.push({isSplitter:!0}),B.push(l.extend({},e)))}),B.length&&((b=B[B.length-1]).autoHeight=!0,b.maxHeight=null,b.showExpandableButton=!1,l.forEach(L,function(e){return e.name!==b.name||(e.showExpandableButton=!1,!1)})),l.extend(C.week,{panels:L}),(E=new c(null,C.week,t,L,v)).handler={click:{},dayname:{},creation:{},move:{},resize:{}},w=i.appendHTMLElement("div",E.container,o.classname("dayname-layout")),R=new d(C,w,e.theme),E.handler.dayname.date=new g(n,R,e),E.addChild(R),(I=i.appendHTMLElement("div",E.container,o.classname("vlayout-area"))).style.height=i.getSize(E.container)[1]-R.container.offsetHeight+"px",k=new r({panels:B,panelHeights:C.week.panelHeights||[]},I,e.theme),E.vLayout=k,l.forEach(L,function(t){var o,i=t.name,a=t.handlers;t.show&&("daygrid"===t.type?((o=new h(i,C,k.getPanelByName(t.name).container,e.theme)).on("afterRender",function(e){k.getPanelByName(i).setHeight(null,e.height)}),E.addChild(o),l.forEach(a,function(t){C.isReadOnly&&"click"!==t||(E.handler[t][i]=new S[t](n,o,e,C),o.addHandler(t,E.handler[t][i],k.getPanelByName(i)))})):"timegrid"===t.type&&(o=new m(i,C,k.getPanelByName(i).container),E.addChild(o),l.forEach(a,function(t){C.isReadOnly&&"click"!==t||(E.handler[t][i]=new y[t](n,o,e,C))}),o.on("clickTimezonesCollapsedBtn",function(){var e=!E.state.timezonesCollapsed;E.setState({timezonesCollapsed:e}),s.requestAnimFrame(function(){E.invoke("clickTimezonesCollapseBtn",e)||E.render()})})))}),k.on("resize",function(){s.requestAnimFrame(function(){E.render()})}),C.useCreationPopup&&(P=new p(t,e.calendars,C.usageStatistics),D=function(e){l.extend(e,{useCreationPopup:!0}),e.isAllDay?E.handler.creation.allday.fire("beforeCreateSchedule",e):E.handler.creation.time.fire("beforeCreateSchedule",e)},P.on("beforeCreateSchedule",D)),F=function(e){P&&P.setCalendars(e)},e.on("setCalendars",F),C.useDetailPopup&&(x=new f(t,e.calendars),X=function(t){var n=t.schedule.calendarId;t.calendar=a.find(e.calendars,function(e){return e.id===n}),C.isReadOnly&&(t.schedule=l.extend({},t.schedule,{isReadOnly:!0})),x.render(t)},M=function(e){e.isAllDay?E.handler.creation.allday.fire("beforeDeleteSchedule",e):E.handler.creation.time.fire("beforeDeleteSchedule",e)},H=function(e){e.isAllDay?E.handler.move.allday.fire("beforeUpdateSchedule",e):E.handler.move.time.fire("beforeUpdateSchedule",e)},l.forEach(E.handler.click,function(e){e.on("clickSchedule",X)}),C.useCreationPopup?(T=function(t){var n=e.calendars;t.isEditMode=!0,P.setCalendars(n),P.render(t)},P.on("beforeUpdateSchedule",H),x.on("beforeUpdateSchedule",T)):x.on("beforeUpdateSchedule",H),x.on("beforeDeleteSchedule",M)),E.on("afterRender",function(){k.refresh()}),E.controller=e.Week,E._beforeDestroy=function(){l.forEach(E.handler,function(e){l.forEach(e,function(e){e.off(),e.destroy()})}),C.useCreationPopup&&(P.off("beforeCreateSchedule",D),P.destroy()),C.useDetailPopup&&(x.off("beforeDeleteSchedule",M),x.destroy()),E.off()},{view:E,refresh:function(){var e=E.getViewBound().height,t=i.getBCRect(R.container).height;k.container.style.height=e-t+"px",k.refresh()},scrollToNow:function(){E.children.each(function(e){e.scrollToNow&&e.scrollToNow()})},openCreationPopup:function(e){P&&(e.isAllDay?E.handler.creation.allday.invokeCreationClick(u.create(e)):E.handler.creation.time.invokeCreationClick(u.create(e)))},showCreationPopup:function(t){P&&(P.setCalendars(e.calendars),P.render(t))}}}},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(1),r=n(8);function s(e,t,n){r.call(this,t),this.options=l.extend({index:0,name:"0",minHeight:0,maxHeight:null,height:null,isSplitter:!1,autoHeight:!1,className:""},e),this.index=this.options.index,this.name=this.options.name||String(this.index),this.isHeightForcedSet=!1,this.theme=n,this._initPanel(this.options,t)}l.inherit(s,r),s.prototype.isSplitter=function(){return this.options.isSplitter},s.prototype.setMaxHeight=function(e){this.options.autoHeight||(this.options.maxHeight=e)},s.prototype.setHeightForcedSet=function(e){this.isHeightForcedSet=e},s.prototype.getHeightForcedSet=function(){return this.isHeightForcedSet},s.prototype.setHeight=function(e,t,n){var l=this.options.maxHeight,o=this.options.minHeight,i=this.options.autoHeight;e=e||this.container,(n||!this.isHeightForcedSet||i)&&(n?this.isHeightForcedSet=!0:l&&(t=Math.min(t,l)),t=Math.max(o,t),e.style.height=t+"px")},s.prototype.getResizeInfoByGrowth=function(e){var t=this.getHeight(),n=t+e,l=Math.max(0,n,this.options.minHeight);return[l,t-l]},s.prototype.getHeight=function(){return a.getSize(this.container)[1]},s.prototype.addClass=function(e){a.addClass(this.container,e)},s.prototype.removeClass=function(e){a.removeClass(this.container,e)},s.prototype._initPanel=function(e,t){var n;if(a.setData(t,"panelIndex",e.index),e.isSplitter)return a.addClass(t,o.classname("splitter")),void this.applyTheme();e.className&&a.addClass(t,e.className),e.autoHeight?a.setData(t,"autoHeight",!0):(n=i.limit(e.height||0,[e.minHeight],[e.maxHeight||e.height]),e.height=n,this.setHeight(t,n))},s.prototype.applyTheme=function(){var e=this.container.style,t=this.theme;t&&(e.borderTop=t.week.vpanelSplitter.border||t.common.border,e.borderBottom=t.week.vpanelSplitter.border||t.common.border,e.height=t.week.vpanelSplitter.height)},e.exports=s},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1),a=n(3),r=n(4).Date,s=n(8);function u(e,t,n,u,c){var d;n=i.appendHTMLElement("div",n),s.call(this,n),i.addClass(n,o.classname("week-container")),d=this._getRenderDateRange(new r),this.options=l.extend({scheduleFilter:[function(e){return Boolean(e.isVisible)}],renderStartDate:a.format(d.start,"YYYY-MM-DD"),renderEndDate:a.format(d.end,"YYYY-MM-DD"),narrowWeekend:!1,startDayOfWeek:0,workweek:!1,showTimezoneCollapseButton:!1,timezonesCollapsed:!1,hourStart:0,hourEnd:24},t),this.controller=e,this.panels=u,this.state={timezonesCollapsed:this.options.timezonesCollapsed},"day"===c&&function(e){e.workweek=!1}(this.options)}l.inherit(u,s),u.prototype.render=function(){var e,t,n,o,i,s,u=this,c=this.options,d=c.scheduleFilter,h=c.narrowWeekend,m=c.startDayOfWeek,p=c.workweek,f=this.controller.theme||{},g=this.state;e=new r(c.renderStartDate),t=new r(c.renderEndDate),s=a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),c.workweek&&a.compare(e,t)&&(e=(s=l.filter(s,function(e){return!a.isWeekend(e.getDay())}))[0],t=s[s.length-1]),n=this.controller.findByDateRange(a.start(e),a.end(t),this.panels,d,this.options),i=a.getGridLeftAndWidth(s.length,h,m,p),o={schedulesInDateRange:n,renderStartDate:e,renderEndDate:t,grids:i,range:s,theme:f,state:g},this.children.each(function(e){var t,n=l.pick(e.options,"viewName");e.render(o),n&&(t=o.schedulesInDateRange[n],l.isArray(t)?u._invokeAfterRenderSchedule(t):l.forEach(t,function(e){u._invokeAfterRenderSchedule(e)}))}),this.fire("afterRender")},u.prototype._invokeAfterRenderSchedule=function(e){var t=this;l.forEachArray(e,function(e){l.forEachArray(e,function(e){l.forEachArray(e,function(e){e&&t.fire("afterRenderSchedule",{schedule:e.model})})})})},u.prototype.viewName="week",u.prototype._getRenderDateRange=function(e){var t=a.start(e),n=new r(Number(t)),l=new r(Number(t));return n.setDate(n.getDate()-3),l.setDate(l.getDate()+3),{start:n,end:l}},l.CustomEvents.mixin(u),e.exports=u},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(3),r=n(4).Date,s=n(1),u=n(8),c=n(64);function d(e,t,n){t=s.appendHTMLElement("div",t,o.classname("dayname-container")),this.options=l.extend({daynames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],timezones:e.timezones},e.week),this.theme=n,u.call(this,t),this.applyTheme()}l.inherit(d,u),d.prototype._getBaseViewModel=function(e,t,n){var o=this.options.daynames,i=this.theme,s=(new r).toLocalTime();return l.map(a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),function(e,t){var l=e.getDay(),r=a.isSameDate(e,s),u=e1&&(n=i.parseUnit(l.marginLeft),l.marginLeft=n[0]*o+n[1])),l},d.prototype.applyTheme=function(){var e=this._getStyles(this.theme),t=this.container.style;return t.borderTop=e.borderTop,t.borderBottom=e.borderBottom,t.height=e.height,t.backgroundColor=e.backgroundColor,t.textAlign=e.textAlign,t},e.exports=d},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda;return'
    \n \n '+(null!=(i=(n["weekDayname-tmpl"]||t&&t["weekDayname-tmpl"]||s).call(r,t,{name:"weekDayname-tmpl",hash:{},data:o,loc:{start:{line:7,column:8},end:{line:7,column:35}}}))?i:"")+"\n \n
    \n"},2:function(e,t,n,l,o){var i;return e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:3,column:49},end:{line:3,column:63}}}):i)+"today"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.escapeExpression;return'
    \n'+(null!=(i=n.each.call(r,null!=t?t.dayNames:t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:0},end:{line:10,column:9}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(3),r=n(1),s=n(4).Date,u=n(8),c=n(66),d=n(68),h=n(10),m=Math.max,p=Math.min;function f(e,t,n,i){n=r.appendHTMLElement("div",n,o.classname("daygrid-layout")),u.call(this,n),e=e||"daygrid",this.options=l.extend({viewName:e,daynames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],renderStartDate:"",renderEndDate:"",containerBottomGutter:18,scheduleHeight:parseInt(i.week.dayGridSchedule.height,10),scheduleGutter:parseInt(i.week.dayGridSchedule.marginTop,10),scheduleContainerTop:1,timezones:t.timezones,isReadOnly:t.isReadOnly,getViewModelFunc:function(t){return t.schedulesInDateRange[e]},setViewModelFunc:function(t,n){t.schedulesInDateRange[e]=n}},t.week),this.handler={},this.vPanel=null,this.state.collapsed=!0}function g(e,t){var n;return l.forEach(e,function(e){e.name===t&&(n=e)}),n}l.inherit(f,u),f.prototype.getBaseViewModel=function(e){var t,n=this.options,o=n.daynames,i=e.range,r=e.grids,u=n.getViewModelFunc(e),c={},d=g(n.panels,n.viewName),h=this.getViewBound().height,f=this.state.collapsed,S=!!this.vPanel&&this.vPanel.getHeightForcedSet(),y=e.state.timezonesCollapsed,_=this._getStyles(e.theme,y),C=(new s).toLocalTime();return d.showExpandableButton&&(S||(h=f?m(h,d.maxHeight):p(h,d.maxExpandableHeight)),t=Math.floor(h/(n.scheduleHeight+n.scheduleGutter)),f&&(c=this.parent.controller.getExceedDate(t,u,e.range),u=this.parent.controller.excludeExceedSchedules(u,t),n.setViewModelFunc(e,u))),{viewName:n.viewName,range:i,grids:r,days:l.map(e.range,function(t,n){var l=t.getDay(),i=a.format(t,"YYYYMMDD"),s=a.isSameDate(C,t);return{day:l,dayName:o[l],isToday:s,date:t.getDate(),renderDate:a.format(t,"YYYY-MM-DD"),hiddenSchedules:c[i]||0,width:r[n]?r[n].width:0,left:r[n]?r[n].left:0,backgroundColor:e.range.length>1?function(e,t,n){var l="";l=0===e||6===e?n.weekendBackgroundColor:t?n.todayBackgroundColor:n.backgroundColor;return l}(l,s,_):_.backgroundColor}}),exceedDate:c,showExpandableButton:d.showExpandableButton,collapsed:f,collapseBtnIndex:this.state.clickedExpandBtnIndex,styles:_}},f.prototype.render=function(e){var t,n=this.options,l=this.container,i=this.getBaseViewModel(e),a=this.options.scheduleContainerTop;l.innerHTML=d(i),this.children.clear(),t=new c(n,r.find(o.classname(".container"),l)),this.addChild(t),t.on("afterRender",function(e){i.height=e.minHeight+a}),this.children.each(function(t){t.render(e)},this),this.fire("afterRender",i)},f.prototype._beforeDestroy=function(){},f.prototype.addHandler=function(e,t,n){var l=this;this.handler[e]=t,this.vPanel=n,"click"===e&&(t.on("expand",function(){l.setState({collapsed:!1})},this),t.on("collapse",function(){l.setState({collapsed:!0})},this))},f.prototype._expand=function(){h.requestAnimFrame(function(){var e=this.vPanel,t=this.options,n=g(t.panels,t.viewName);e.setMaxHeight(n.maxExpandableHeight),e.setHeightForcedSet(!1),e.setHeight(null,n.maxExpandableHeight),this.parent&&this.parent.render()},this)},f.prototype._collapse=function(){h.requestAnimFrame(function(){var e=this.vPanel,t=this.options,n=g(t.panels,t.viewName);e.setMaxHeight(n.maxHeight),e.setHeightForcedSet(!1),e.setHeight(null,n.minHeight),this.parent&&this.parent.render()},this)},f.prototype.setState=function(e){var t=this.state.collapsed;u.prototype.setState.call(this,e),this.state.collapsed!==t&&(this.state.collapsed?this._collapse():this._expand())},f.prototype._getStyles=function(e,t){var n,l={},o=this.options.timezones.length,a=t;return e&&(l.borderRight=e.week.daygrid.borderRight||e.common.border,l.todayBackgroundColor=e.week.today.backgroundColor,l.weekendBackgroundColor=e.week.weekend.backgroundColor,l.backgroundColor=e.week.daygrid.backgroundColor,l.leftWidth=e.week.daygridLeft.width,l.leftBackgroundColor=e.week.daygridLeft.backgroundColor,l.leftPaddingRight=e.week.daygridLeft.paddingRight,l.leftBorderRight=e.week.daygridLeft.borderRight,!a&&o>1&&(n=i.parseUnit(l.leftWidth),l.leftWidth=n[0]*o+n[1])),l},e.exports=f},function(e,t,n){"use strict";var l=n(0),o=n(28),i=n(67),a=Math.max;function r(e,t){o.call(this,e,t),this.collapsed=!0}l.inherit(r,o),r.prototype.render=function(e){var t,n=this.container;t=this.getBaseViewModel(e),n.innerHTML=i(t),this.fire("afterRender",t)},r.prototype._getMaxScheduleInDay=function(e){return a.apply(null,l.map(e,function(e){return Math.max.apply(null,l.map(e,function(e){return e.length}))}))},r.prototype._getMinHeight=function(e){var t=this.options;return e*t.scheduleHeight+(e-1)*t.scheduleGutter},r.prototype.getBaseViewModel=function(e){var t,n=this.options,i=n.getViewModelFunc(e),a=this._getMaxScheduleInDay(i),r=this._getStyles(e.theme);return t=o.prototype.getBaseViewModel.call(this,e),t=l.extend({minHeight:this._getMinHeight(a),matrices:i,scheduleContainerTop:this.options.scheduleContainerTop,maxScheduleInDay:a,isReadOnly:n.isReadOnly,styles:r},t)},r.prototype._getStyles=function(e){var t={};return e&&(t.borderRadius=e.week.dayGridSchedule.borderRadius),t},e.exports=r},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i;return null!=(i=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:4},end:{line:27,column:15}}}))?i:""},2:function(e,t,n,l,o){var i;return"\n "+(null!=(i=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:4},end:{line:26,column:15}}}))?i:"")},3:function(e,t,n,l,o){var i;return"\n "+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:4},end:{line:25,column:13}}}))?i:"")},4:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'\n
    \n
    \n '+(null!=(i=(n["schedule-tmpl"]||t&&t["schedule-tmpl"]||s).call(r,null!=t?t.model:t,{name:"schedule-tmpl",hash:{},data:o,loc:{start:{line:21,column:87},end:{line:21,column:112}}}))?i:"")+"\n "+(null!=(i=n.unless.call(r,(n.or||t&&t.or||s).call(r,(i=o&&o.root)&&i.isReadOnly,null!=(i=null!=t?t.model:t)?i.isReadOnly:i,{name:"or",hash:{},data:o,loc:{start:{line:22,column:22},end:{line:22,column:60}}}),{name:"unless",hash:{},fn:e.program(15,o,0),inverse:e.noop,data:o,loc:{start:{line:22,column:12},end:{line:22,column:193}}}))?i:"")+"\n
    \n
    \n"},5:function(e,t,n,l,o){var i;return" "+e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:8,column:31},end:{line:8,column:45}}}):i)+"weekday-exceed-left"},7:function(e,t,n,l,o){var i;return" "+e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:9,column:32},end:{line:9,column:46}}}):i)+"weekday-exceed-right"},9:function(e,t,n,l,o){var i;return e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:13,column:146},end:{line:13,column:160}}}):i)+"weekday-schedule-focused "},11:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" color: #ffffff; background-color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+"; border-color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+";\n"},13:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+"; background-color:"+r(a(null!=(i=null!=t?t.model:t)?i.bgColor:i,t))+"; border-color:"+r(a(null!=(i=null!=t?t.model:t)?i.borderColor:i,t))+";\n"},15:function(e,t,n,l,o){var i,a,r=e.escapeExpression;return' '},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'
    \n'+(null!=(i=n.each.call(r,null!=t?t.matrices:t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:4},end:{line:28,column:15}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'
    \n'},2:function(e,t,n,l,o){var i;return" border-right: "+e.escapeExpression(e.lambda((i=(i=o&&o.root)&&i.styles)&&i.borderRight,t))+";\n"},4:function(e,t,n,l,o){var i;return null!=(i=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.days:t,{name:"each",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:17,column:8},end:{line:27,column:19}}}))?i:""},5:function(e,t,n,l,o){var i;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},(i=o&&o.root)&&i.collapsed,{name:"if",hash:{},fn:e.program(6,o,0),inverse:e.program(9,o,0),data:o,loc:{start:{line:18,column:12},end:{line:26,column:19}}}))?i:""},6:function(e,t,n,l,o){var i;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.hiddenSchedules:t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:19,column:16},end:{line:21,column:23}}}))?i:""},7:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return' '+(null!=(i=(n["weekGridFooterExceed-tmpl"]||t&&t["weekGridFooterExceed-tmpl"]||s).call(r,null!=t?t.hiddenSchedules:t,{name:"weekGridFooterExceed-tmpl",hash:{},data:o,loc:{start:{line:20,column:145},end:{line:20,column:192}}}))?i:"")+"\n"},9:function(e,t,n,l,o){var i;return null!=(i=(n.fi||t&&t.fi||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},o&&o.key,"===",(i=o&&o.root)&&i.collapseBtnIndex,{name:"fi",hash:{},fn:e.program(10,o,0),inverse:e.noop,data:o,loc:{start:{line:23,column:16},end:{line:25,column:23}}}))?i:""},10:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return' '+(null!=(i="function"==typeof(a=null!=(a=n["collapseBtnTitle-tmpl"]||(null!=t?t["collapseBtnTitle-tmpl"]:t))?a:s)?a.call(r,{name:"collapseBtnTitle-tmpl",hash:{},data:o,loc:{start:{line:24,column:121},end:{line:24,column:148}}}):a)?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda;return'
    \n '+(null!=(i=(n["dayGridTitle-tmpl"]||t&&t["dayGridTitle-tmpl"]||s).call(r,null!=t?t.viewName:t,{name:"dayGridTitle-tmpl",hash:{},data:o,loc:{start:{line:2,column:4},end:{line:2,column:36}}}))?i:"")+'\n
    \n
    \n
    \n
    \n'+(null!=(i=n.each.call(r,null!=t?t.days:t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:7,column:8},end:{line:14,column:19}}}))?i:"")+(null!=(i=n.if.call(r,(i=o&&o.root)&&i.showExpandableButton,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:16,column:8},end:{line:28,column:15}}}))?i:"")+"
    \n
    \n
    \n"},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(1),r=n(6),s=n(3),u=n(4),c=n(10),d=n(8),h=n(70),m=n(72),p=n(73),f=n(74),g=n(75),S=u.Date,y=60;function _(e,t,n,o){var a,r,u=e.hourStart,c=e.hourEnd,d=new S(e.renderEndDate),h=parseInt(n/y,10),m=Math.abs(n%y),p=(new S).toLocalTime(),f=p.getMinutes(),g=l.range(0,24),_=null;return(h<0||-0===h)&&m>0&&(h-=1),i.shiftArray(g,h),i.takeArray(g,u,c),a=i.shiftHours(p.getHours(),h)%24,r=l.inArray(a,g),t&&(f<20?_=a:f>40&&(_=a+1),l.isNumber(_)&&(_%=24)),l.map(g,function(e,n){var l,i;return t&&n<=r||d=0,r,n),f.setMinutes(f.getMinutes()+r),p=f.getDate()-h.getDate(),l>0&&(m=n.additionalTimezoneBackgroundColor),s.push({timeSlots:u,displayLabel:t.displayLabel,timezoneOffset:t.timezoneOffset,tooltip:t.tooltip||"",width:d,left:c?0:(a.length-l-1)*d,isPrimary:0===l,backgroundColor:m||"",hidden:0!==l&&c,hourmarker:f,dateDifferenceSign:p<0?"-":"+",dateDifference:Math.abs(p)})}),s},C.prototype._getBaseViewModel=function(e){var t=e.grids,n=e.range,o=this.options,i=this._getHourmarkerViewModel((new S).toLocalTime(),t,n),a=l.pick(e,"state","timezonesCollapsed"),r=this._getStyles(e.theme,a);return l.extend(i,{timezones:this._getTimezoneViewModel(i.todaymarkerLeft,a,r),hoursLabels:_(o,i.todaymarkerLeft>=0,0,r),styles:r,showTimezoneCollapseButton:l.pick(o,"showTimezoneCollapseButton"),timezonesCollapsed:a})},C.prototype._renderChildren=function(e,t,n,i){var r,u,c,d,m=this,p=this.options,f=s.format(new S,"YYYYMMDD"),g=0;n.innerHTML="",this.children.clear(),d=a.getSize(n.parentElement)[1],l.forEach(e,function(e,l){c=l===f,r={index:g,left:t[g]?t[g].left:0,width:t[g]?t[g].width:0,ymd:l,isToday:c,isPending:p.isPending,isFocused:p.isFocused,isReadOnly:p.isReadOnly,hourStart:p.hourStart,hourEnd:p.hourEnd},(u=new h(r,a.appendHTMLElement("div",n,o.classname("time-date")),i)).render(l,e,d),m.addChild(u),g+=1})},C.prototype.render=function(e){var t=this.options,n=e.schedulesInDateRange[t.viewName],i=this.container,r=e.grids,s=this._getBaseViewModel(e),u=l.keys(n).length;this._cacheParentViewModel=e,this._cacheHoursLabels=s.hoursLabels,u&&(s.showHourMarker=s.todaymarkerLeft>=0,i.innerHTML=p(s),this.renderStickyContainer(s),this._renderChildren(n,r,a.find(o.classname(".timegrid-schedules-container"),i),e.theme),this._hourLabels=a.find("ul",i),this.hourmarkers=a.find(o.classname(".timegrid-hourmarker"),i,!0),this._scrolled||(this._scrolled=!0,this.scrollToNow()))},C.prototype.renderStickyContainer=function(e){var t=this.stickyContainer;t.innerHTML=f(e),t.style.display=e.timezones.length>1?"block":"none",t.style.width=e.styles.leftWidth,t.style.height=e.styles.displayTimezoneLabelHeight,t.style.borderBottom=e.styles.leftBorderRight},C.prototype.refreshHourmarker=function(){var e,t=this.hourmarkers,n=this._cacheParentViewModel,i=this._cacheHoursLabels;t&&n&&(e=this._getBaseViewModel(n),c.requestAnimFrame(function(){var r=!1;l.forEach(i,function(t,n){return t.hidden===e.hoursLabels[n].hidden||(r=!0,!1)}),r?this.render(n):l.forEach(t,function(t){var n=a.find(o.classname(".timegrid-todaymarker"),t),l=a.find(o.classname(".timegrid-hourmarker-time"),t),i=a.closest(t,o.classname(".timegrid-timezone")),r=i?a.getData(i,"timezoneIndex"):0;t.style.top=e.hourmarkerTop+"%",n&&(n.style.display=e.todaymarkerLeft>=0?"block":"none"),l&&(l.innerHTML=g(e.hourmarkerTimzones[r]))})},this))},C.prototype.attachEvent=function(){clearInterval(this.intervalID),clearTimeout(this.timerID),this.intervalID=this.timerID=null,this.timerID=setTimeout(l.bind(this.onTick,this),1e3*(60-(new S).getSeconds())),r.on(this.stickyContainer,"click",this._onClickStickyContainer,this)},C.prototype.scrollToNow=function(){var e,t,n,l,o,i=this.container;this.hourmarkers&&this.hourmarkers.length&&(e=this.hourmarkers[0].offsetTop,t=this.getViewBound(),n=e,l=t.height/4,10,o=function(){n>e-l?(n-=10,i.scrollTop=n,c.requestAnimFrame(o)):i.scrollTop=e-l},c.requestAnimFrame(o))},C.prototype.onTick=function(){this.timerID&&(clearTimeout(this.timerID),this.timerID=null),this.intervalID||(this.intervalID=setInterval(l.bind(this.onTick,this),6e4)),this.refreshHourmarker()},C.prototype._getStyles=function(e,t){var n,l={},o=this.options.timezones.length,a=t;return e&&(l.borderBottom=e.week.timegridHorizontalLine.borderBottom||e.common.border,l.halfHourBorderBottom=e.week.timegridHalfHour.borderBottom||e.common.border,l.todayBackgroundColor=e.week.today.backgroundColor,l.weekendBackgroundColor=e.week.weekend.backgroundColor,l.backgroundColor=e.week.daygrid.backgroundColor,l.leftWidth=e.week.timegridLeft.width,l.leftBackgroundColor=e.week.timegridLeft.backgroundColor,l.leftBorderRight=e.week.timegridLeft.borderRight||e.common.border,l.leftFontSize=e.week.timegridLeft.fontSize,l.timezoneWidth=e.week.timegridLeft.width,l.additionalTimezoneBackgroundColor=e.week.timegridLeftAdditionalTimezone.backgroundColor||l.leftBackgroundColor,l.displayTimezoneLabelHeight=e.week.timegridLeftTimezoneLabel.height,l.displayTimezoneLabelBackgroundColor="inherit"===e.week.timegridLeft.backgroundColor?"white":e.week.timegridLeft.backgroundColor,l.oneHourHeight=e.week.timegridOneHour.height,l.halfHourHeight=e.week.timegridHalfHour.height,l.quaterHourHeight=parseInt(l.halfHourHeight,10)/2+"px",l.currentTimeColor=e.week.currentTime.color,l.currentTimeFontSize=e.week.currentTime.fontSize,l.currentTimeFontWeight=e.week.currentTime.fontWeight,l.pastTimeColor=e.week.pastTime.color,l.pastTimeFontWeight=e.week.pastTime.fontWeight,l.futureTimeColor=e.week.futureTime.color,l.futureTimeFontWeight=e.week.futureTime.fontWeight,l.currentTimeLeftBorderTop=e.week.currentTimeLinePast.border,l.currentTimeBulletBackgroundColor=e.week.currentTimeLineBullet.backgroundColor,l.currentTimeTodayBorderTop=e.week.currentTimeLineToday.border,l.currentTimeRightBorderTop=e.week.currentTimeLineFuture.border,!a&&o>1&&(n=i.parseUnit(l.leftWidth),l.leftWidth=n[0]*o+n[1])),l},C.prototype._onClickStickyContainer=function(e){var t=e.target||e.srcElement;a.closest(t,o.classname(".timegrid-timezone-close-btn"))&&this.fire("clickTimezonesCollapsedBtn")},e.exports=C},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(3),a=n(1),r=n(8),s=n(71),u=l.forEachArray,c=i.MILLISECONDS_SCHEDULE_MIN_DURATION;function d(e,t,n){r.call(this,t),this.options=l.extend({index:0,width:0,ymd:"",isToday:!1,pending:!1,hourStart:0,hourEnd:24,defaultMarginBottom:2,minHeight:18.5,isReadOnly:!1},e),this.timeTmpl=s,this.theme=n,t.style.width=e.width+"%",t.style.left=e.left+"%",this.options.isToday&&a.addClass(this.container,o.classname("today")),this.applyTheme()}l.inherit(d,r),d.prototype._parseDateGroup=function(e){var t=parseInt(e.substr(0,4),10),n=parseInt(e.substr(4,2),10),l=parseInt(e.substr(6,2),10),o=i.start();return o.setFullYear(t,n-1,l),i.start(o)},d.prototype._getScheduleViewBoundX=function(e,t){var n=t.baseWidth*(e.extraSpace+1);return e.hasCollide||(n=null),{left:t.baseLeft[t.columnIndex],width:n}},d.prototype._getScheduleViewBoundY=function(e,t){var n,l,o,a,r=t.baseMS,s=t.baseHeight,u=!1,d=!1,h=i.millisecondsFrom("minutes",e.valueOf().goingDuration),m=i.millisecondsFrom("minutes",e.valueOf().comingDuration),p=e.valueOf().start-h-t.todayStart,f=s*p/r,g=e.duration();return n=s*((g=g>c?g:c)+h+m)/r,l=s*h/r,o=s*g/r,a=s*m/r,p<0&&(f=0,n+=s*p/r,u=!0),n+f>s&&(n=s-f,d=!0),{top:f,height:Math.max(n,this.options.minHeight)-this.options.defaultMarginBottom,modelDurationHeight:o,goingDurationHeight:l,comingDurationHeight:a,hasGoingDuration:h>0,hasComingDuration:m>0,croppedStart:u,croppedEnd:d}},d.prototype.getScheduleViewBound=function(e,t){var n=this._getScheduleViewBoundX(e,t),o=this._getScheduleViewBoundY(e,t),i=e.model,a=l.pick(i,"isReadOnly")||!1,r=i.isFocused?"#ffffff":i.borderColor;return r===i.bgColor&&(r=null),l.extend({isReadOnly:a,travelBorderColor:r},n,o)},d.prototype._getBaseViewModel=function(e,t,n){var o,a,r=this,s=this.options,c=s.hourStart,d=s.hourEnd,h=s.isReadOnly;n=n||this.getViewBound().height,(o=this._parseDateGroup(e)).setHours(c),a=i.millisecondsFrom("hour",d-c),u(t,function(e){var t,i,s,c;for(t=Math.max.apply(null,l.map(e,function(e){return e.length})),i=100/t,s=[],c=0;c\n
    \n'+(null!=(i=n.if.call(r,null!=t?t.hasGoingDuration:t,{name:"if",hash:{},fn:e.program(19,o,0),inverse:e.noop,data:o,loc:{start:{line:29,column:12},end:{line:37,column:19}}}))?i:"")+'
    \n '+(null!=(i=(n["time-tmpl"]||t&&t["time-tmpl"]||s).call(r,null!=t?t.model:t,{name:"time-tmpl",hash:{},data:o,loc:{start:{line:45,column:20},end:{line:45,column:41}}}))?i:"")+"\n
    \n"+(null!=(i=n.if.call(r,null!=t?t.hasComingDuration:t,{name:"if",hash:{},fn:e.program(26,o,0),inverse:e.noop,data:o,loc:{start:{line:47,column:12},end:{line:54,column:19}}}))?i:"")+"
    \n "+(null!=(i=n.unless.call(r,(n.or||t&&t.or||s).call(r,null!=t?t.croppedEnd:t,(i=o&&o.root)&&i.isReadOnly,null!=(i=null!=t?t.model:t)?i.isReadOnly:i,{name:"or",hash:{},data:o,loc:{start:{line:56,column:22},end:{line:56,column:71}}}),{name:"unless",hash:{},fn:e.program(29,o,0),inverse:e.noop,data:o,loc:{start:{line:56,column:12},end:{line:56,column:202}}}))?i:"")+"\n \n"},5:function(e,t,n,l,o){var i;return" "+e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:6,column:83},end:{line:6,column:97}}}):i)+"time-date-schedule-block-pending"},7:function(e,t,n,l,o){var i;return" padding-left: "+e.escapeExpression(e.lambda((i=(i=o&&o.root)&&i.styles)&&i.paddingLeft,t))+";\n"},9:function(e,t,n,l,o){var i;return e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:12,column:147},end:{line:12,column:161}}}):i)+"time-schedule-focused "},11:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" border-bottom-left-radius: "+r(a((i=(i=o&&o.root)&&i.styles)&&i.borderRadius,t))+";\n border-bottom-right-radius: "+r(a((i=(i=o&&o.root)&&i.styles)&&i.borderRadius,t))+";\n"},13:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" border-top-left-radius: "+r(a((i=(i=o&&o.root)&&i.styles)&&i.borderRadius,t))+";\n border-top-right-radius: "+r(a((i=(i=o&&o.root)&&i.styles)&&i.borderRadius,t))+";\n"},15:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" color: #ffffff; background-color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+"; border-color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+";\n"},17:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+"; background-color:"+r(a(null!=(i=null!=t?t.model:t)?i.bgColor:i,t))+"; border-color:"+r(a(null!=(i=null!=t?t.model:t)?i.borderColor:i,t))+";\n"},19:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'
    '+(null!=(i=(n["goingDuration-tmpl"]||t&&t["goingDuration-tmpl"]||s).call(r,null!=t?t.model:t,{name:"goingDuration-tmpl",hash:{},data:o,loc:{start:{line:36,column:66},end:{line:36,column:96}}}))?i:"")+"
    \n"},20:function(e,t,n,l,o){var i;return" border-color:"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.model:t)?i.color:i,t))+";\n"},22:function(e,t,n,l,o){var i;return" border-color:"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.model:t)?i.borderColor:i,t))+";\n"},24:function(e,t,n,l,o){var i;return"border-bottom: 1px dashed "+e.escapeExpression("function"==typeof(i=null!=(i=n.travelBorderColor||(null!=t?t.travelBorderColor:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"travelBorderColor",hash:{},data:o,loc:{start:{line:44,column:67},end:{line:44,column:88}}}):i)+";"},26:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'
    '+(null!=(i=(n["comingDuration-tmpl"]||t&&t["comingDuration-tmpl"]||s).call(r,null!=t?t.model:t,{name:"comingDuration-tmpl",hash:{},data:o,loc:{start:{line:53,column:26},end:{line:53,column:57}}}))?i:"")+"
    \n"},27:function(e,t,n,l,o){var i;return" border-color:"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.model:t)?i.borderColor:i,t))+";\n "},29:function(e,t,n,l,o){var i,a,r=e.escapeExpression;return'
     
    '},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.escapeExpression;return'
    \n'+(null!=(i=n.each.call(r,null!=t?t.matrices:t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:0},end:{line:61,column:9}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(6),i=n(1),a=n(29);function r(e){this.container=e,this._direction=r.DIRECTION.INSIDE,this._offset=0,this._intervalID=0,o.on(e,{mousedown:this._onMouseDown},this)}r.DIRECTION={INSIDE:0,TOP:1,RIGHT:2,BOTTOM:3,LEFT:4},r.prototype.destroy=function(){o.off(this.container,{mousedown:this._onMouseDown,mousemove:this._onMouseMove,mouseup:this._onMouseUp},this),window.clearInterval(this._intervalID),this._intervalID=this._direction=this.container=null},r.prototype._getEdgePositions=function(e){return{top:e.top,right:e.left+e.width,bottom:e.bottom,left:e.left}},r.prototype.getRealSize=function(e){var t,n,l=i.getComputedStyle(e);return t=parseFloat(l.getPropertyValue("border-top-width"))+parseFloat(l.getPropertyValue("border-bottom-width")),n=parseFloat(l.getPropertyValue("padding-top"))+parseFloat(l.getPropertyValue("padding-bottom")),[e.clientWidth+t+n,e.clientHeight+t+n]},r.prototype.hasScrollbar=function(e){var t=this.getRealSize(e);return[e.offsetWidth>Math.ceil(t[0]),e.offsetHeight>Math.ceil(t[1])]},r.prototype.isOnScrollbar=function(e,t){var n=this.getRealSize(e),l=o.getMousePosition(t,e);return n[0]-2=t.top&&n.y<=t.bottom&&n.x>=t.left&&n.x<=t.right)this._direction=r.DIRECTION.INSIDE;else{if(n.yt.bottom)return this._direction=r.DIRECTION.BOTTOM,void(this._offset=n.y-t.bottom);if(n.x\n'+(null!=(i=n.if.call(r,null!=t?t.isPrimary:t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.program(10,o,0),data:o,loc:{start:{line:4,column:8},end:{line:26,column:15}}}))?i:"")+" \n"},2:function(e,t,n,l,o){return"display:none;"},4:function(e,t,n,l,o){var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.each.call(a,null!=t?t.timeSlots:t,{name:"each",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:12},end:{line:9,column:23}}}))?i:"")+(null!=(i=n.if.call(a,(i=o&&o.root)&&i.showHourMarker,{name:"if",hash:{},fn:e.program(8,o,0),inverse:e.noop,data:o,loc:{start:{line:10,column:12},end:{line:14,column:19}}}))?i:"")},5:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'
    \n '+(null!=(i=(n["timegridDisplayPrimayTime-tmpl"]||t&&t["timegridDisplayPrimayTime-tmpl"]||s).call(r,t,{name:"timegridDisplayPrimayTime-tmpl",hash:{},data:o,loc:{start:{line:7,column:68},end:{line:7,column:109}}}))?i:"")+"\n
    \n"},6:function(e,t,n,l,o){return"display:none"},8:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'
    \n
    '+(null!=(i=(n["timegridCurrentTime-tmpl"]||t&&t["timegridCurrentTime-tmpl"]||s).call(r,t,{name:"timegridCurrentTime-tmpl",hash:{},data:o,loc:{start:{line:12,column:223},end:{line:12,column:258}}}))?i:"")+"
    \n
    \n"},10:function(e,t,n,l,o){var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.each.call(a,null!=t?t.timeSlots:t,{name:"each",hash:{},fn:e.program(11,o,0),inverse:e.noop,data:o,loc:{start:{line:16,column:12},end:{line:20,column:23}}}))?i:"")+(null!=(i=n.if.call(a,(i=o&&o.root)&&i.showHourMarker,{name:"if",hash:{},fn:e.program(13,o,0),inverse:e.noop,data:o,loc:{start:{line:21,column:12},end:{line:25,column:19}}}))?i:"")},11:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'
    \n '+(null!=(i=(n["timegridDisplayTime-tmpl"]||t&&t["timegridDisplayTime-tmpl"]||s).call(r,t,{name:"timegridDisplayTime-tmpl",hash:{},data:o,loc:{start:{line:18,column:68},end:{line:18,column:103}}}))?i:"")+"\n
    \n"},13:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'
    \n
    '+(null!=(i=(n["timegridCurrentTime-tmpl"]||t&&t["timegridCurrentTime-tmpl"]||s).call(r,t,{name:"timegridCurrentTime-tmpl",hash:{},data:o,loc:{start:{line:23,column:171},end:{line:23,column:206}}}))?i:"")+"
    \n
    \n"},15:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'
    \n
    \n
    \n'},16:function(e,t,n,l,o){var i;return" border-bottom: "+e.escapeExpression(e.lambda((i=(i=o&&o.root)&&i.styles)&&i.borderBottom,t))+";\n"},18:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda;return'
    \n
    \n
    today
    \n
    \n
    \n
    \n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda;return'
    \n'+(null!=(i=n.each.call(r,null!=t?t.timezones:t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:4},end:{line:28,column:15}}}))?i:"")+'
    \n
    \n
    \n'+(null!=(i=n.each.call(r,null!=t?t.hoursLabels:t,{name:"each",hash:{},fn:e.program(15,o,0),inverse:e.noop,data:o,loc:{start:{line:32,column:8},end:{line:40,column:19}}}))?i:"")+'
    \n
    \n
    \n
    \n\n'+(null!=(i=n.if.call(r,null!=t?t.showHourMarker:t,{name:"if",hash:{},fn:e.program(18,o,0),inverse:e.noop,data:o,loc:{start:{line:46,column:4},end:{line:53,column:11}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda;return'
    \n
    \n'+(null!=(i=n.if.call(r,(n.and||t&&t.and||s).call(r,null!=t?t.isPrimary:t,(i=o&&o.root)&&i.showTimezoneCollapseButton,{name:"and",hash:{},data:o,loc:{start:{line:4,column:14},end:{line:4,column:62}}}),{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:8},end:{line:10,column:15}}}))?i:"")+'
    '+(null!=(i=(n["timezoneDisplayLabel-tmpl"]||t&&t["timezoneDisplayLabel-tmpl"]||s).call(r,null!=t?t.timezoneOffset:t,null!=t?t.displayLabel:t,{name:"timezoneDisplayLabel-tmpl",hash:{},data:o,loc:{start:{line:11,column:59},end:{line:11,column:118}}}))?i:"")+"
    \n
    \n
    \n"},2:function(e,t,n,l,o){return"display:none;"},4:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'
    \n \n \n \n
    \n'},5:function(e,t,n,l,o){var i;return e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:7,column:84},end:{line:7,column:98}}}):i)+"ic-arrow-right"},7:function(e,t,n,l,o){var i;return e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:7,column:120},end:{line:7,column:134}}}):i)+"ic-arrow-left"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a=null!=t?t:e.nullContext||{};return null!=(i=n.each.call(a,(n.reverse||t&&t.reverse||e.hooks.helperMissing).call(a,null!=t?t.timezones:t,{name:"reverse",hash:{},data:o,loc:{start:{line:1,column:8},end:{line:1,column:27}}}),{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:14,column:11}}}))?i:""},useData:!0})},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i;return(null!=(i=(n["timegridCurrentTime-tmpl"]||t&&t["timegridCurrentTime-tmpl"]||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},t,{name:"timegridCurrentTime-tmpl",hash:{},data:o,loc:{start:{line:1,column:0},end:{line:1,column:35}}}))?i:"")+"\n"},useData:!0})},function(e,n){e.exports=t},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i;return" "+e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:3,column:150},end:{line:3,column:164}}}):i)+"hide"},3:function(e,t,n,l,o){var i,a=null!=t?t:e.nullContext||{},r=e.hooks.helperMissing,s="function",u=e.escapeExpression;return'
  • \n \n '+u(typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:r)===s?i.call(a,{name:"name",hash:{},data:o,loc:{start:{line:14,column:60},end:{line:14,column:68}}}):i)+"\n
  • \n"},5:function(e,t,n,l,o){var i;return" "+e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:24,column:135},end:{line:24,column:149}}}):i)+"public"},7:function(e,t,n,l,o){return" checked"},9:function(e,t,n,l,o){var i;return e.escapeExpression("function"==typeof(i=null!=(i=n.state||(null!=t?t.state:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"state",hash:{},data:o,loc:{start:{line:55,column:99},end:{line:55,column:108}}}):i)},11:function(e,t,n,l,o){var i,a;return null!=(i="function"==typeof(a=null!=(a=n["popupStateBusy-tmpl"]||(null!=t?t["popupStateBusy-tmpl"]:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"popupStateBusy-tmpl",hash:{},data:o,loc:{start:{line:55,column:116},end:{line:55,column:141}}}):a)?i:""},13:function(e,t,n,l,o){var i,a;return null!=(i="function"==typeof(a=null!=(a=n["popupUpdate-tmpl"]||(null!=t?t["popupUpdate-tmpl"]:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"popupUpdate-tmpl",hash:{},data:o,loc:{start:{line:70,column:163},end:{line:70,column:185}}}):a)?i:""},15:function(e,t,n,l,o){var i,a;return null!=(i="function"==typeof(a=null!=(a=n["popupSave-tmpl"]||(null!=t?t["popupSave-tmpl"]:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"popupSave-tmpl",hash:{},data:o,loc:{start:{line:70,column:193},end:{line:70,column:213}}}):a)?i:""},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda;return'
    \n
    \n
    \n \n
      \n'+(null!=(i=n.each.call(r,null!=t?t.calendars:t,{name:"each",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:11,column:16},end:{line:16,column:25}}}))?i:"")+'
    \n
    \n
    \n
    \n \n \n
    \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n -\n
    \n \n \n
    \n
    \n
    \n \n \n '+(null!=(i=typeof(a=null!=(a=n["popupIsAllDay-tmpl"]||(null!=t?t["popupIsAllDay-tmpl"]:t))?a:s)===u?a.call(r,{name:"popupIsAllDay-tmpl",hash:{},data:o,loc:{start:{line:49,column:52},end:{line:49,column:76}}}):a)?i:"")+'\n
    \n
    \n
    \n \n
      \n
    • \n \n '+(null!=(i=typeof(a=null!=(a=n["popupStateBusy-tmpl"]||(null!=t?t["popupStateBusy-tmpl"]:t))?a:s)===u?a.call(r,{name:"popupStateBusy-tmpl",hash:{},data:o,loc:{start:{line:61,column:52},end:{line:61,column:77}}}):a)?i:"")+'\n
    • \n
    • \n \n '+(null!=(i=typeof(a=null!=(a=n["popupStateFree-tmpl"]||(null!=t?t["popupStateFree-tmpl"]:t))?a:s)===u?a.call(r,{name:"popupStateFree-tmpl",hash:{},data:o,loc:{start:{line:65,column:52},end:{line:65,column:77}}}):a)?i:"")+'\n
    • \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n'},useData:!0})},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'
    '+(null!=(i=(n["popupDetailLocation-tmpl"]||t&&t["popupDetailLocation-tmpl"]||s).call(r,null!=t?t.schedule:t,{name:"popupDetailLocation-tmpl",hash:{},data:o,loc:{start:{line:11,column:182},end:{line:11,column:221}}}))?i:"")+"
    "},3:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'
    '+(null!=(i=(n["popupDetailRepeat-tmpl"]||t&&t["popupDetailRepeat-tmpl"]||s).call(r,null!=t?t.schedule:t,{name:"popupDetailRepeat-tmpl",hash:{},data:o,loc:{start:{line:12,column:186},end:{line:12,column:223}}}))?i:"")+"
    "},5:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression;return'
    '+(null!=(i=(n["popupDetailUser-tmpl"]||t&&t["popupDetailUser-tmpl"]||s).call(r,null!=t?t.schedule:t,{name:"popupDetailUser-tmpl",hash:{},data:o,loc:{start:{line:13,column:218},end:{line:13,column:253}}}))?i:"")+"
    "},7:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'
    '+(null!=(i=(n["popupDetailState-tmpl"]||t&&t["popupDetailState-tmpl"]||s).call(r,null!=t?t.schedule:t,{name:"popupDetailState-tmpl",hash:{},data:o,loc:{start:{line:14,column:176},end:{line:14,column:212}}}))?i:"")+"
    "},9:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'
    '+u(c(null!=(i=null!=t?t.calendar:t)?i.name:i,t))+"
    \n"},11:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'
    '+(null!=(i=(n["popupDetailBody-tmpl"]||t&&t["popupDetailBody-tmpl"]||s).call(r,null!=t?t.schedule:t,{name:"popupDetailBody-tmpl",hash:{},data:o,loc:{start:{line:18,column:151},end:{line:18,column:186}}}))?i:"")+"
    "},13:function(e,t,n,l,o){return""},15:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression;return'
    \n \n
    \n \n
    \n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda;return'
    \n
    \n
    \n
    \n \n '+c(d(null!=(i=null!=t?t.schedule:t)?i.title:i,t))+'\n
    \n
    '+(null!=(i=(n["popupDetailDate-tmpl"]||t&&t["popupDetailDate-tmpl"]||s).call(r,null!=(i=null!=t?t.schedule:t)?i.isAllDay:i,null!=(i=null!=t?t.schedule:t)?i.start:i,null!=(i=null!=t?t.schedule:t)?i.end:i,{name:"popupDetailDate-tmpl",hash:{},data:o,loc:{start:{line:8,column:73},end:{line:8,column:145}}}))?i:"")+'
    \n
    \n
    \n '+(null!=(i=n.if.call(r,null!=(i=null!=t?t.schedule:t)?i.location:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:11,column:8},end:{line:11,column:241}}}))?i:"")+"\n "+(null!=(i=n.if.call(r,null!=(i=null!=t?t.schedule:t)?i.recurrenceRule:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:12,column:8},end:{line:12,column:243}}}))?i:"")+"\n "+(null!=(i=n.if.call(r,null!=(i=null!=t?t.schedule:t)?i.attendees:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:13,column:8},end:{line:13,column:273}}}))?i:"")+"\n "+(null!=(i=n.if.call(r,null!=(i=null!=t?t.schedule:t)?i.state:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:14,column:8},end:{line:14,column:232}}}))?i:"")+"\n"+(null!=(i=n.if.call(r,null!=t?t.calendar:t,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o,loc:{start:{line:15,column:8},end:{line:17,column:15}}}))?i:"")+" "+(null!=(i=n.if.call(r,null!=(i=null!=t?t.schedule:t)?i.body:i,{name:"if",hash:{},fn:e.program(11,o,0),inverse:e.noop,data:o,loc:{start:{line:18,column:8},end:{line:18,column:206}}}))?i:"")+"\n
    \n"+(null!=(i=n.if.call(r,null!=(i=null!=t?t.schedule:t)?i.isReadOnly:i,{name:"if",hash:{},fn:e.program(13,o,0),inverse:e.program(15,o,0),data:o,loc:{start:{line:20,column:4},end:{line:27,column:11}}}))?i:"")+'
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n'},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1);function a(e,t,n){this.dragHandler=e,this.dayNameView=t,this.baseController=n,e.on({click:this._onClick},this)}a.prototype.destroy=function(){this.dragHandler.off(this),this.dayNameView=this.baseController=this.dragHandler=null},a.prototype.checkExpectCondition=function(e){return!!i.closest(e,o.classname(".dayname-date-area"))},a.prototype._onClick=function(e){var t=e.target,n=this.checkExpectCondition(t),l=i.closest(t,o.classname(".dayname"));n&&l&&this.fire("clickDayname",{date:i.getData(l,"date")})},l.CustomEvents.mixin(a),e.exports=a},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1),a=n(32);function r(e,t,n){this.dragHandler=e,this.view=t,this.controller=n,e.on({click:this._onClick},this)}r.prototype.destroy=function(){this.dragHandler.off(this),this.view=this.controller=this.dragHandler=null},r.prototype.checkExpectCondition=a.prototype.checkExpectedCondition,r.prototype._onClick=function(e){var t,n=this,l=e.target,a=this.checkExpectCondition(l),r=this.controller.schedules,s=i.closest(l,o.classname(".weekday-collapse-btn")),u=i.closest(l,o.classname(".weekday-exceed-in-week"));if(this.view.container.contains(l)){if(!s)return u?(this.view.setState({clickedExpandBtnIndex:parseInt(i.getData(u,"index"),10)}),void n.fire("expand")):void(a&&i.closest(l,o.classname(".weekday-schedule"))&&(t=i.closest(l,o.classname(".weekday-schedule-block")),r.doWhenHas(i.getData(t,"id"),function(t){n.fire("clickSchedule",{schedule:t,event:e.originEvent})})));n.fire("collapse")}},l.CustomEvents.mixin(r),e.exports=r},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(2),i=n(3),a=n(1),r=n(10);function s(e){this.daygridMove=e,this.scheduleContainer=null,this._dragStartXIndex=null,this.guideElement=null,this.elements=null,e.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._clearGuideElement,click:this._clearGuideElement},this)}s.prototype.destroy=function(){this._clearGuideElement(),this.daygridMove.off(this),this.daygridMove=this.scheduleContainer=this._dragStartXIndex=this.elements=this.guideElement=null},s.prototype._clearGuideElement=function(){this._showOriginScheduleBlocks(),a.remove(this.guideElement),l.browser.msie||a.removeClass(t.document.body,o.classname("dragging")),this._dragStartXIndex=this.getScheduleDataFunc=this.guideElement=null},s.prototype._hideOriginScheduleBlocks=function(e){var t=o.classname("weekday-schedule-block-dragging-dim"),n=a.find(o.classname(".weekday-schedule-block"),this.daygridMove.view.container,!0);this.elements=l.filter(n,function(t){return a.getData(t,"id")===e}),l.forEach(this.elements,function(e){a.addClass(e,t)})},s.prototype._showOriginScheduleBlocks=function(){var e=o.classname("weekday-schedule-block-dragging-dim");l.forEach(this.elements,function(t){a.removeClass(t,e)})},s.prototype._highlightScheduleBlocks=function(e,t){var n=a.find(o.classname(".weekday-schedule"),t,!0);l.forEach(n,function(t){t.style.margin="0",e.isFocused||(t.style.backgroundColor=e.dragBgColor,t.style.borderLeftColor=e.borderColor,t.style.color="#ffffff")})},s.prototype.refreshGuideElement=function(e,t,n,l){var i=this.guideElement;r.requestAnimFrame(function(){i.style.left=e+"%",i.style.width=t+"%",n?a.addClass(i,o.classname("weekday-exceed-left")):a.removeClass(i,o.classname("weekday-exceed-left")),l?a.addClass(i,o.classname("weekday-exceed-right")):a.removeClass(i,o.classname("weekday-exceed-right"))})},s.prototype._getScheduleBlockDataFunc=function(e){var t=e.model,n=e.datesInRange,l=e.range,o=100/n,a=i.start(t.start),r=i.end(t.end),s=i.start(l[0]),u=i.end(l[l.length-1]),c=Math.ceil((a.getTime()-s.getTime())/i.MILLISECONDS_PER_DAY)||0,d=Math.ceil((r.getTime()-u.getTime())/i.MILLISECONDS_PER_DAY)||0;return function(e){return{baseWidthPercent:o,fromLeft:c+e,fromRight:d+e}}},s.prototype._onDragStart=function(e){var n,i=this.daygridMove.view.container,r=this.guideElement=e.scheduleBlockElement.cloneNode(!0);l.browser.msie||a.addClass(t.document.body,o.classname("dragging")),this._hideOriginScheduleBlocks(String(e.model.cid())),n=a.find(o.classname(".weekday-schedules"),i),a.appendHTMLElement("div",r,o.classname("weekday-schedule-cover")),n.appendChild(r),this._dragStartXIndex=e.xIndex,this.getScheduleDataFunc=this._getScheduleBlockDataFunc(e),this._highlightScheduleBlocks(e.model,r)},s.prototype._onDrag=function(e){var t,n,l,o,i,a,r,s,u=this.getScheduleDataFunc,c=this._dragStartXIndex,d=e.datesInRange,h=e.grids;u&&(n=(t=u(e.xIndex-c)).fromLeft<0,l=t.fromRight>0,i=Math.max(0,t.fromLeft),o=-1*t.fromLeft+(d+t.fromRight),a=n?o+t.fromLeft:o,a=l?a-t.fromRight:a,r=h[i]?h[i].left:0,s=function(e,t,n){for(var l=0,o=0,i=n.length;ol&&n<=e&&(t+=o[n]?o[n].width:0);return t}},s.prototype._onDragStart=function(e){var n,a=this.resizeHandler.view.container,r=this.scheduleBlockElement=e.scheduleBlockElement,s=this.guideElement=r.cloneNode(!0);l.browser.msie||i.addClass(t.document.body,o.classname("resizing-x")),n=i.find(o.classname(".weekday-schedules"),a),i.addClass(s,o.classname("daygrid-guide-move")),i.addClass(r,o.classname("weekday-schedule-block-dragging-dim")),n.appendChild(s),this.getScheduleDataFunc=this.getGuideElementWidthFunc(e)},s.prototype._onDrag=function(e){var t=this.getScheduleDataFunc;t&&this.refreshGuideElement(t(e.xIndex))},e.exports=s}).call(this,n(9))},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1);function a(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,e.on({click:this._onClick},this)}a.prototype.destroy=function(){this.dragHandler.off(this),this.timeGridView=this.baseController=this.dragHandler=null},a.prototype.checkExpectCondition=function(e){var t,n;return!!(t=i.closest(e,o.classname(".time-date")))&&(!(!(n=i.getClass(t).match(o.time.getViewIDRegExp))||n.length<2)&&l.pick(this.timeGridView.children.items,Number(n[1])))},a.prototype._onClick=function(e){var t=this,n=e.target,l=this.checkExpectCondition(n),a=i.closest(n,o.classname(".time-date-schedule-block")),r=this.baseController.schedules;l&&a&&r.doWhenHas(i.getData(a,"id"),function(n){t.fire("clickSchedule",{schedule:n,event:e.originEvent})})},l.CustomEvents.mixin(a),e.exports=a},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(15),a=n(3),r=n(1),s=n(6),u=n(5),c=n(88),d=n(4).Date,h=n(18),m=300;function p(e,t,n,l){this.dragHandler=e,this.timeGridView=t,this.baseController=n,this.guide=new c(this),this._getScheduleDataFunc=null,this._dragStart=null,this._requestOnClick=!1,this._disableDblClick=l.disableDblClick,this._disableClick=l.disableClick,e.on("dragStart",this._onDragStart,this),e.on("click",this._onClick,this),this._disableDblClick?m=0:s.on(t.container,"dblclick",this._onDblClick,this)}p.prototype.destroy=function(){var e=this.timeGridView;this.guide.destroy(),this.dragHandler.off(this),e&&e.container&&s.off(e.container,"dblclick",this._onDblClick,this),this.dragHandler=this.timeGridView=this.baseController=this._getScheduleDataFunc=this._dragStart=this.guide=null},p.prototype.checkExpectedCondition=function(e){var t,n=r.getClass(e);return n===o.classname("time-date-schedule-block-wrap")&&(e=e.parentNode,n=r.getClass(e)),!(!(t=n.match(o.time.getViewIDRegExp))||t.length<2)&&l.pick(this.timeGridView.children.items,t[1])},p.prototype._onDragStart=function(e,t,n){var l,o,i=e.target,a=this.checkExpectedCondition(i);a&&(l=this._getScheduleDataFunc=this._retriveScheduleData(a),o=this._dragStart=l(e.originEvent),n&&n(o),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.fire(t||"timeCreationDragstart",o))},p.prototype._onDrag=function(e,t,n){var l,o=this._getScheduleDataFunc;o&&(l=o(e.originEvent),n&&n(l),this.fire(t||"timeCreationDrag",l))},p.prototype._createSchedule=function(e){var t,n,l,o,i,r=e.relatedView,s=e.createRange,c=e.nearestGridTimeY,h=e.nearestGridEndTimeY?e.nearestGridEndTimeY:new d(c).addMinutes(30);s||(s=[c,h]),t=new d(r.getDate()),n=a.start(t),l=a.getStartOfNextDay(t),o=u.limitDate(s[0],n,l),i=u.limitDate(s[1],n,l),this.fire("beforeCreateSchedule",{isAllDay:!1,start:new d(o),end:new d(i),guide:this.guide,triggerEventName:e.triggerEvent})},p.prototype._onDragEnd=function(e){var t=this,n=this._dragStart;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this._onDrag(e,"timeCreationDragend",function(e){var l=[n.nearestGridTimeY,e.nearestGridTimeY].sort(i.compare.num.asc);l[1].addMinutes(30),e.createRange=l,t._createSchedule(e)}),this._dragStart=this._getScheduleDataFunc=null},p.prototype._onClick=function(e){var t,n,l,o=this;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),(t=this.checkExpectedCondition(e.target))&&!this._disableClick&&(n=this._retriveScheduleData(t),l=n(e.originEvent),this._requestOnClick=!0,setTimeout(function(){o._requestOnClick&&(o.fire("timeCreationClick",l),o._createSchedule(l)),o._requestOnClick=!1},m),this._dragStart=this._getScheduleDataFunc=null)},p.prototype._onDblClick=function(e){var t,n;(t=this.checkExpectedCondition(e.target))&&(n=this._retriveScheduleData(t)(e),this.fire("timeCreationClick",n),this._createSchedule(n),this._requestOnClick=!1)},p.prototype.invokeCreationClick=function(e){var t,n,o=this.timeGridView.options,i=a.range(o.renderStartDate,o.renderEndDate,a.MILLISECONDS_PER_DAY),r=o.hourStart,s=e.start;l.forEach(i,function(e,t){a.isSameDate(e,s)&&(n=this.timeGridView.children.toArray()[t])},this),n||(n=this.timeGridView.children.toArray()[0]),t=this._retriveScheduleDataFromDate(n)(e.start,e.end,r),this.fire("timeCreationClick",t),this._createSchedule(t)},h.mixin(p),l.CustomEvents.mixin(p),e.exports=p},function(e,t,n){"use strict";(function(t){var l=n(5),o=n(3),i=n(2),a=n(1),r=n(10),s=n(5).ratio,u=n(4).Date,c=60*o.MILLISECONDS_PER_MINUTES;function d(e){this.guideElement=t.document.createElement("div"),this.guideTimeElement=a.appendHTMLElement("span",this.guideElement,i.classname("time-guide-creation-label")),a.addClass(this.guideElement,i.classname("time-guide-creation")),this.timeCreation=e,this._styleUnit=null,this._styleStart=null,this._styleFunc=null,e.on({timeCreationDragstart:this._createGuideElement,timeCreationDrag:this._onDrag,timeCreationClick:this._createGuideElement},this),this.applyTheme(e.baseController.theme)}d.prototype.destroy=function(){this.clearGuideElement(),this.timeCreation.off(this),this.timeCreation=this._styleUnit=this._styleStart=this._styleFunc=this.guideElement=this.guideTimeElement=null},d.prototype.clearGuideElement=function(){var e=this.guideElement,t=this.guideTimeElement;a.remove(e),r.requestAnimFrame(function(){e.style.display="none",e.style.top="",e.style.height="",t.innerHTML=""})},d.prototype._refreshGuideElement=function(e,t,n,l,r){var s=this.guideElement,u=this.guideTimeElement;s.style.top=e+"px",s.style.height=t+"px",s.style.display="block",u.innerHTML=o.format(n,"HH:mm")+" - "+o.format(l,"HH:mm"),r?a.removeClass(u,i.classname("time-guide-bottom")):a.addClass(u,i.classname("time-guide-bottom"))},d.prototype._getUnitData=function(e){var t=e.options,n=e.getViewBound().height,l=t.hourEnd-t.hourStart,i=o.parse(t.ymd),a=o.getStartOfNextDay(i);return i.setHours(0,0,0,0),i.setHours(t.hourStart),[n,l,i,a,n/l]},d.prototype._limitStyleData=function(e,t,n,o){var i=this._styleUnit;return[e=l.limit(e,[0],[i[0]]),t=l.limit(e+t,[0],[i[0]])-e,n=l.limitDate(n,i[2],i[3]),o=l.limitDate(o,i[2],i[3])]},d.prototype._getStyleDataFunc=function(e,t,n){var i=n,a=o.end(n);return function(n){var o=n.nearestGridY,r=n.nearestGridTimeY,c=n.nearestGridEndTimeY||new u(r).addMinutes(30);return[l.limit(s(t,e,o),[0],[e]),l.limitDate(r,i,a),l.limitDate(c,i,a)]}},d.prototype._createGuideElement=function(e){var t,n,l,i,a,r,s,d,h=e.relatedView,m=o.millisecondsFrom("hour",e.hourStart)||0;t=this._styleUnit=this._getUnitData(h),n=this._styleFunc=this._getStyleDataFunc.apply(this,t),l=this._styleStart=n(e),s=new u(l[1]).addMinutes(o.minutesFromHours(m)),d=new u(l[2]).addMinutes(o.minutesFromHours(m)),a=l[0],r=t[4]*(d-s)/c,i=this._limitStyleData(a,r,s,d),this._refreshGuideElement.apply(this,i),h.container.appendChild(this.guideElement)},d.prototype._onDrag=function(e){var t,n,l,o=this._styleFunc,i=this._styleUnit,a=this._styleStart,s=this._refreshGuideElement.bind(this);o&&i&&a&&(t=i[4]/2,(n=o(e))[0]>a[0]?l=this._limitStyleData(a[0],n[0]-a[0]+t,a[1],new u(n[1]).addMinutes(30)):(l=this._limitStyleData(n[0],a[0]-n[0]+t,n[1],new u(a[1]).addMinutes(30))).push(!0),r.requestAnimFrame(function(){s.apply(null,l)}))},d.prototype.applyTheme=function(e){var t=this.guideElement.style,n=this.guideTimeElement.style;t.backgroundColor=e.common.creationGuide.backgroundColor,t.border=e.common.creationGuide.border,n.color=e.week.creationGuide.color,n.fontSize=e.week.creationGuide.fontSize,n.fontWeight=e.week.creationGuide.fontWeight},e.exports=d}).call(this,n(9))},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(3),a=n(1),r=n(6),s=n(4).Date,u=n(18),c=n(90);function d(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,this._getScheduleDataFunc=null,this._dragStart=null,this._guide=new c(this),e.on("dragStart",this._onDragStart,this),e.on("mousedown",this._onMouseDown,this)}d.prototype.destroy=function(){this._guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.timeGridView=this.baseController=this._getScheduleDataFunc=this._dragStart=this._guide=null},d.prototype.checkExpectCondition=function(e){return!!a.closest(e,o.classname(".time-schedule"))&&this._getTimeView(e)},d.prototype._getTimeView=function(e){var t,n=a.closest(e,o.classname(".time-date"));return!!n&&(!(!(t=a.getClass(n).match(o.time.getViewIDRegExp))||t.length<2)&&l.pick(this.timeGridView.children.items,Number(t[1])))},d.prototype._onMouseDown=function(e){var t=e.target,n=this.checkExpectCondition(t),i=a.closest(t,o.classname(".time-date-schedule-block"));n&&i&&l.browser.firefox&&r.preventDefault(e.originEvent)},d.prototype._onDragStart=function(e){var t,n,l,i,r=e.target,s=this.checkExpectCondition(r),u=a.closest(r,o.classname(".time-date-schedule-block")),c=this.baseController;s&&u&&(l=a.getData(u,"id"),(i=c.schedules.items[l]).isReadOnly||(t=this._getScheduleDataFunc=this._retriveScheduleData(s),n=this._dragStart=t(e.originEvent,{targetModelID:l,model:i}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("timeMoveDragstart",n)))},d.prototype._onDrag=function(e,t,n){var l,o=this._getScheduleDataFunc,i=this._getTimeView(e.target),a=this._dragStart;i&&o&&a&&(l=o(e.originEvent,{currentView:i,targetModelID:a.targetModelID}),n&&n(l),this.fire(t||"timeMoveDrag",l))},d.prototype._updateSchedule=function(e){var t,n,l=this.baseController,o=e.targetModelID,a=e.nearestRange,r=a[1]-a[0],u=0,c=l.schedules.items[o],d=e.relatedView,h=e.currentView;c&&h&&(r-=i.millisecondsFrom("minutes",30),t=new s(c.getStarts()).addMilliseconds(r),n=new s(c.getEnds()).addMilliseconds(r),h&&(u=h.getDate()-d.getDate()),t.addMilliseconds(u),n.addMilliseconds(u),this.fire("beforeUpdateSchedule",{schedule:c,changes:{start:t,end:n},start:t,end:n}))},d.prototype._onDragEnd=function(e){var t,n=this._getScheduleDataFunc,l=this._getTimeView(e.target),o=this._dragStart;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),n&&o&&((t=n(e.originEvent,{currentView:l,targetModelID:o.targetModelID})).range=[o.timeY,new s(t.timeY).addMinutes(30)],t.nearestRange=[o.nearestGridTimeY,new s(t.nearestGridTimeY).addMinutes(30)],this._updateSchedule(t),this.fire("timeMoveDragend",t))},d.prototype._onClick=function(e){var t,n=this._getScheduleDataFunc,l=this._dragStart;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),n&&l&&(t=n(e.originEvent,{targetModelID:l.targetModelID}),this.fire("timeMoveClick",t))},u.mixin(d),l.CustomEvents.mixin(d),e.exports=d},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(2),i=n(1),a=n(10),r=n(5).ratio,s=n(16),u=n(91),c=n(4).Date,d=n(14),h=n(3),m=n(5),p=h.MILLISECONDS_SCHEDULE_MIN_DURATION;function f(e){this._guideLayer=null,this._model=null,this._viewModel=null,this._lastDrag=null,this.guideElement=null,this.timeMove=e,this._container=null,this._getTopFunc=null,this._startGridY=0,this._startTopPixel=0,e.on({timeMoveDragstart:this._onDragStart,timeMoveDrag:this._onDrag,timeMoveDragend:this._clearGuideElement,timeMoveClick:this._clearGuideElement},this)}f.prototype.destroy=function(){this._clearGuideElement(),this.timeMove.off(this),this._guideLayer&&this._guideLayer.destroy(),this.guideElement=this.timeMove=this._container=this._guideLayer=this._lastDrag=this._getTopFunc=this._startGridY=this._startTopPixel=this._viewModel=null},f.prototype._clearGuideElement=function(){l.browser.msie||i.removeClass(t.document.body,o.classname("dragging")),this._guideLayer&&this._guideLayer.destroy(),this._showOriginScheduleBlocks(),this.guideElement=this._getTopFunc=this._guideLayer=this._model=this._lastDrag=this._startGridY=this._startTopPixel=this._viewModel=null},f.prototype._hideOriginScheduleBlocks=function(){var e=o.classname("time-date-schedule-block-dragging-dim");this.guideElement&&i.addClass(this.guideElement,e)},f.prototype._showOriginScheduleBlocks=function(){var e=o.classname("time-date-schedule-block-dragging-dim");this.guideElement&&i.removeClass(this.guideElement,e)},f.prototype._refreshGuideElement=function(e,t,n){var o=this;a.requestAnimFrame(function(){o._guideLayer&&(o._guideLayer.setPosition(0,e),o._guideLayer.setContent(u(l.extend({model:t},n))))})},f.prototype._onDragStart=function(e){var t,n,a,r,s=i.closest(e.target,o.classname(".time-date-schedule-block"));s&&(this._startTopPixel=parseFloat(s.style.top),this._startGridY=e.nearestGridY,this.guideElement=s,this._container=e.relatedView.container,this._model=l.extend(d.create(e.model),e.model),n=(n=this._model.duration())>p?n:p,t=(a=h.millisecondsFrom("minutes",this._model.goingDuration))+n+(r=h.millisecondsFrom("minutes",this._model.comingDuration)),this._lastDrag=e,this._viewModel={hasGoingDuration:a>0,hasComingDuration:r>0,goingDurationHeight:m.ratio(t,a,100),modelDurationHeight:m.ratio(t,n,100),comingDurationHeight:m.ratio(t,r,100)},this._resetGuideLayer(),this._hideOriginScheduleBlocks())},f.prototype._onDrag=function(e){var n,a,s=e.currentView,u=s.options,d=s.getViewBound().height,m=parseFloat(this.guideElement.style.height),p=u.hourEnd-u.hourStart,f=e.nearestGridY-this._startGridY,g=r(p,d,f),S=e.nearestGridY-this._lastDrag.nearestGridY;l.browser.msie||i.addClass(t.document.body,o.classname("dragging")),this._container!==s.container&&(this._container=s.container,this._resetGuideLayer()),a=this._startTopPixel+g,n=d-m,a=Math.max(a,0),a=Math.min(a,n),this._model.start=new c(this._model.getStarts()).addMinutes(h.minutesFromHours(S)),this._model.end=new c(this._model.getEnds()).addMinutes(h.minutesFromHours(S)),this._lastDrag=e,this._refreshGuideElement(a,this._model,this._viewModel)},f.prototype._resetGuideLayer=function(){this._guideLayer&&(this._guideLayer.destroy(),this._guideLayer=null),this._guideLayer=new s(null,this._container),this._guideLayer.setSize(this._container.getBoundingClientRect().width,this.guideElement.style.height),this._guideLayer.setPosition(0,this.guideElement.style.top),this._guideLayer.setContent(u(l.extend({model:this._model},this._viewModel))),this._guideLayer.show()},e.exports=f}).call(this,n(9))},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'
    '+(null!=(i=(n["goingDuration-tmpl"]||t&&t["goingDuration-tmpl"]||s).call(r,null!=t?t.model:t,{name:"goingDuration-tmpl",hash:{},data:o,loc:{start:{line:4,column:230},end:{line:4,column:260}}}))?i:"")+"
    \n"},3:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'
    '+(null!=(i=(n["comingDuration-tmpl"]||t&&t["comingDuration-tmpl"]||s).call(r,null!=t?t.model:t,{name:"comingDuration-tmpl",hash:{},data:o,loc:{start:{line:10,column:228},end:{line:10,column:259}}}))?i:"")+"
    \n"},5:function(e,t,n,l,o){var i;return'
     
    '},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda;return'
    \n
    \n'+(null!=(i=n.if.call(r,null!=t?t.hasGoingDuration:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:8},end:{line:5,column:15}}}))?i:"")+'
    \n '+(null!=(i=(n["time-tmpl"]||t&&t["time-tmpl"]||s).call(r,null!=t?t.model:t,{name:"time-tmpl",hash:{},data:o,loc:{start:{line:7,column:16},end:{line:7,column:37}}}))?i:"")+"\n
    \n"+(null!=(i=n.if.call(r,null!=t?t.hasComingDuration:t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:9,column:8},end:{line:11,column:15}}}))?i:"")+"
    \n "+(null!=(i=n.unless.call(r,null!=t?t.croppedEnd:t,{name:"unless",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:13,column:4},end:{line:13,column:104}}}))?i:"")+'\n
    \n
    \n'},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(3),a=n(1),r=n(4).Date,s=n(5),u=n(18),c=n(93);function d(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,this._getScheduleDataFunc=null,this._dragStart=null,this._guide=new c(this),e.on("dragStart",this._onDragStart,this)}d.prototype.destroy=function(){this._guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.timeGridView=this.baseController=this._getScheduleDataFunc=this._dragStart=this._guide=null},d.prototype.checkExpectCondition=function(e){var t,n;return!!a.hasClass(e,o.classname("time-resize-handle"))&&(!!(t=a.closest(e,o.classname(".time-date")))&&(!(!(n=a.getClass(t).match(o.time.getViewIDRegExp))||n.length<2)&&l.pick(this.timeGridView.children.items,Number(n[1]))))},d.prototype._onDragStart=function(e){var t,n,l,i=e.target,r=this.checkExpectCondition(i),s=a.closest(i,o.classname(".time-date-schedule-block")),u=this.baseController;r&&s&&(t=a.getData(s,"id"),n=this._getScheduleDataFunc=this._retriveScheduleData(r),l=this._dragStart=n(e.originEvent,{targetModelID:t,schedule:u.schedules.items[t]}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("timeResizeDragstart",l))},d.prototype._onDrag=function(e,t,n){var l,o=this._getScheduleDataFunc,i=this._dragStart;o&&i&&(l=o(e.originEvent,{targetModelID:i.targetModelID}),n&&n(l),this.fire(t||"timeResizeDrag",l))},d.prototype._updateSchedule=function(e){var t,n,l,o,a=this.baseController,u=e.targetModelID,c=e.nearestRange,d=c[1]-c[0],h=a.schedules.items[u],m=e.relatedView;h&&(d-=i.millisecondsFrom("minutes",30),l=new r(m.getDate()),t=i.end(l),(n=new r(h.getEnds()).addMilliseconds(d))>t&&(n=new r(t)),n.getTime()-h.getStarts().getTime()\n \n '+(null!=(i=(n["monthDayname-tmpl"]||t&&t["monthDayname-tmpl"]||s).call(r,t,{name:"monthDayname-tmpl",hash:{},data:o,loc:{start:{line:16,column:12},end:{line:16,column:40}}}))?i:"")+"\n \n \n"},2:function(e,t,n,l,o){var i;return" border-right: "+e.escapeExpression(e.lambda((i=(i=o&&o.root)&&i.styles)&&i.borderLeft,t))+";\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.escapeExpression,u=e.lambda;return'
    \n'+(null!=(i=n.each.call(r,null!=t?t.daynames:t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:0},end:{line:19,column:9}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(5),a=n(1),r=n(8),s=n(28),u=n(98),c=n(99),d=Math.floor,h=Math.min;function m(e,t){s.call(this,e,t),t.style.height=e.heightPercent+"%"}l.inherit(m,s),m.prototype.getViewBound=function(){return r.prototype.getViewBound.call(this)},m.prototype._getRenderLimitIndex=function(e){var t,n=this.options,o=e||this.getViewBound().height,i=l.pick(n,"grid","header","height")||0,a=l.pick(n,"grid","footer","height")||0,r=n.visibleScheduleCount||0;return t=d((o-=i+a)/(n.scheduleHeight+n.scheduleGutter)),r||(r=t),h(t,r)},m.prototype.getBaseViewModel=function(e){var t,n=this.options,o=l.pick(n,"grid","header","height")||0,i=l.pick(n,"grid","footer","height")||0,a=this._getRenderLimitIndex()+1,r=this.getExceedDate(a,e.eventsInDateRange,e.range),u=this._getStyles(e.theme);return e=l.extend({exceedDate:r},e),t=s.prototype.getBaseViewModel.call(this,e),t=l.extend({matrices:e.eventsInDateRange,gridHeaderHeight:o,gridFooterHeight:i,renderLimitIdx:a,isReadOnly:n.isReadOnly,styles:u},t)},m.prototype.render=function(e){var t,n=this.container,r=this.getBaseViewModel(e);this.options.visibleWeeksCount||function(e,t,n){var o=t.getMonth()+1;l.forEach(e,function(e){var t=e.month!==o;e.isOtherMonth=t,t&&(e.color=s.prototype._getDayNameColor(n,e.day,e.isToday,t))})}(r.dates,this.options.renderMonth,e.theme),n.innerHTML=u(r),(t=a.find(o.classname(".weekday-schedules"),n))&&(t.innerHTML=c(r),i.setAutoEllipsis(o.classname(".weekday-schedule-title"),n,!0))},m.prototype._beforeDestroy=function(){},m.prototype._getStyles=function(e){var t={};return e&&(t.borderTop=e.common.border,t.borderLeft=e.common.border,t.fontSize=e.month.day.fontSize,t.borderRadius=e.month.schedule.borderRadius,t.marginLeft=e.month.schedule.marginLeft,t.marginRight=e.month.schedule.marginRight,t.scheduleBulletTop=this.options.scheduleHeight/3),t},e.exports=m},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression;return'
    \n
    \n '+(null!=(i=(n["monthGridHeader-tmpl"]||t&&t["monthGridHeader-tmpl"]||s).call(r,t,{name:"monthGridHeader-tmpl",hash:{},data:o,loc:{start:{line:14,column:44},end:{line:14,column:75}}}))?i:"")+"\n"+(null!=(i=n.if.call(r,null!=t?t.hiddenSchedules:t,{name:"if",hash:{},fn:e.program(10,o,0),inverse:e.noop,data:o,loc:{start:{line:15,column:12},end:{line:17,column:19}}}))?i:"")+'
    \n
    \n '+(null!=(i=(n["monthGridFooter-tmpl"]||t&&t["monthGridFooter-tmpl"]||s).call(r,t,{name:"monthGridFooter-tmpl",hash:{},data:o,loc:{start:{line:20,column:44},end:{line:20,column:75}}}))?i:"")+"\n"+(null!=(i=n.if.call(r,null!=t?t.hiddenSchedules:t,{name:"if",hash:{},fn:e.program(12,o,0),inverse:e.noop,data:o,loc:{start:{line:21,column:12},end:{line:23,column:19}}}))?i:"")+"
    \n
    \n"},2:function(e,t,n,l,o){var i;return" "+e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:7,column:84},end:{line:7,column:98}}}):i)+"near-month-day"},4:function(e,t,n,l,o){var i;return" "+e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:7,column:135},end:{line:7,column:149}}}):i)+"today"},6:function(e,t,n,l,o){var i;return" "+e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:7,column:182},end:{line:7,column:196}}}):i)+"extra-date"},8:function(e,t,n,l,o){var i;return" border-right:"+e.escapeExpression(e.lambda((i=(i=o&&o.root)&&i.styles)&&i.borderLeft,t))+";\n"},10:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return' '+(null!=(i=(n["monthGridHeaderExceed-tmpl"]||t&&t["monthGridHeaderExceed-tmpl"]||s).call(r,null!=t?t.hiddenSchedules:t,{name:"monthGridHeaderExceed-tmpl",hash:{},data:o,loc:{start:{line:16,column:87},end:{line:16,column:135}}}))?i:"")+"\n"},12:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return' '+(null!=(i=(n["monthGridFooterExceed-tmpl"]||t&&t["monthGridFooterExceed-tmpl"]||s).call(r,null!=t?t.hiddenSchedules:t,{name:"monthGridFooterExceed-tmpl",hash:{},data:o,loc:{start:{line:22,column:87},end:{line:22,column:135}}}))?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'
    \n
    \n'+(null!=(i=n.each.call(r,null!=t?t.dates:t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:6,column:0},end:{line:26,column:11}}}))?i:"")+'
    \n
    \n'},useData:!0})},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i;return null!=(i=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:0},end:{line:80,column:11}}}))?i:""},2:function(e,t,n,l,o){var i;return"\n"+(null!=(i=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:0},end:{line:79,column:11}}}))?i:"")},3:function(e,t,n,l,o){var i;return"\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:0},end:{line:78,column:9}}}))?i:"")},4:function(e,t,n,l,o){var i;return"\n"+(null!=(i=(n.fi||t&&t.fi||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?t.top:t,"<",(i=o&&o.root)&&i.renderLimitIdx,{name:"fi",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:4},end:{line:77,column:13}}}))?i:"")},5:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'
    \n'+(null!=(i=(n.fi||t&&t.fi||s).call(r,null!=(i=null!=t?t.model:t)?i.isAllDay:i,"||",null!=t?t.hasMultiDates:t,{name:"fi",hash:{},fn:e.program(10,o,0),inverse:e.program(23,o,0),data:o,loc:{start:{line:13,column:8},end:{line:75,column:15}}}))?i:"")+"
    \n"},6:function(e,t,n,l,o){var i;return" "+e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:9,column:31},end:{line:9,column:45}}}):i)+"weekday-exceed-left"},8:function(e,t,n,l,o){var i;return" "+e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:10,column:32},end:{line:10,column:46}}}):i)+"weekday-exceed-right"},10:function(e,t,n,l,o){var i,a,r=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'
    \n '+(null!=(i=(n["allday-tmpl"]||t&&t["allday-tmpl"]||c).call(u,null!=t?t.model:t,{name:"allday-tmpl",hash:{},data:o,loc:{start:{line:29,column:47},end:{line:29,column:70}}}))?i:"")+"\n "+(null!=(i=n.unless.call(u,(n.or||t&&t.or||c).call(u,(i=o&&o.root)&&i.isReadOnly,null!=(i=null!=t?t.model:t)?i.isReadOnly:i,{name:"or",hash:{},data:o,loc:{start:{line:30,column:22},end:{line:30,column:60}}}),{name:"unless",hash:{},fn:e.program(21,o,0),inverse:e.noop,data:o,loc:{start:{line:30,column:12},end:{line:30,column:194}}}))?i:"")+"\n
    \n"},11:function(e,t,n,l,o){var i;return e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:14,column:146},end:{line:14,column:160}}}):i)+"weekday-schedule-focused "},13:function(e,t,n,l,o){var i;return" margin-left: "+e.escapeExpression(e.lambda((i=(i=o&&o.root)&&i.styles)&&i.marginLeft,t))+";\n"},15:function(e,t,n,l,o){var i;return" margin-right: "+e.escapeExpression(e.lambda((i=(i=o&&o.root)&&i.styles)&&i.marginRight,t))+";\n"},17:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" color: #ffffff; background-color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+"; border-color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+";\n"},19:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+"; background-color:"+r(a(null!=(i=null!=t?t.model:t)?i.bgColor:i,t))+"; border-color:"+r(a(null!=(i=null!=t?t.model:t)?i.borderColor:i,t))+";\n"},21:function(e,t,n,l,o){var i,a,r=e.escapeExpression;return' '},23:function(e,t,n,l,o){var i;return null!=(i=(n.fi||t&&t.fi||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.model:t)?i.category:i,"===","time",{name:"fi",hash:{},fn:e.program(24,o,0),inverse:e.program(33,o,0),data:o,loc:{start:{line:33,column:12},end:{line:74,column:19}}}))?i:""},24:function(e,t,n,l,o){var i,a,r=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'
    \n \n '+(null!=(i=(n["time-tmpl"]||t&&t["time-tmpl"]||c).call(u,null!=t?t.model:t,{name:"time-tmpl",hash:{},data:o,loc:{start:{line:54,column:53},end:{line:54,column:74}}}))?i:"")+"\n
    \n"},25:function(e,t,n,l,o){return" background: #ffffff\n"},27:function(e,t,n,l,o){var i;return" background:"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.model:t)?i.borderColor:i,t))+"\n"},29:function(e,t,n,l,o){var i;return" color: #ffffff;\n background-color: "+e.escapeExpression(e.lambda(null!=(i=null!=t?t.model:t)?i.color:i,t))+"\n"},31:function(e,t,n,l,o){return" color:#333;\n"},33:function(e,t,n,l,o){var i,a,r=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'
    \n '+(null!=(i=(n["schedule-tmpl"]||t&&t["schedule-tmpl"]||c).call(u,null!=t?t.model:t,{name:"schedule-tmpl",hash:{},data:o,loc:{start:{line:72,column:65},end:{line:72,column:90}}}))?i:"")+"\n
    \n"},34:function(e,t,n,l,o){var i;return" margin-left: "+e.escapeExpression(e.lambda((i=(i=o&&o.root)&&i.styles)&&i.marginLeft,t))+";\n"},36:function(e,t,n,l,o){var i;return" margin-right: "+e.escapeExpression(e.lambda((i=(i=o&&o.root)&&i.styles)&&i.marginRight,t))+";\n"},38:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" color: #ffffff; background-color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+"; border-color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+";\n"},40:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+"; background-color:"+r(a(null!=(i=null!=t?t.model:t)?i.bgColor:i,t))+"; border-color:"+r(a(null!=(i=null!=t?t.model:t)?i.borderColor:i,t))+";\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i;return null!=(i=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.matrices:t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:81,column:11}}}))?i:""},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(3),a=n(1);function r(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,e.on({click:this._onClick},this)}r.prototype.destroy=function(){this.dragHandler.off(this),this.monthView=this.baseController=this.dragHandler=null},r.prototype._onClick=function(e){var t,n=this,l=this.baseController.schedules,r=a.closest(e.target,o.classname(".weekday-schedule-block"))||a.closest(e.target,o.classname(".month-more-schedule"));(t=a.closest(e.target,o.classname(".weekday-exceed-in-month")))&&n.fire("clickMore",{date:i.parse(a.getData(t,"ymd")),target:t,ymd:a.getData(t,"ymd")}),r&&l.doWhenHas(a.getData(r,"id"),function(t){n.fire("clickSchedule",{schedule:t,event:e.originEvent})})},l.CustomEvents.mixin(r),e.exports=r},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(3),a=n(15),r=n(1),s=n(6),u=n(19),c=n(102),d=n(4).Date,h=300;function m(e,t,n,l){this.dragHandler=e,this.monthView=t,this.baseController=n,this.getScheduleData=null,this._cache=null,this.guide=new c(this),this._requestOnClick=!1,this._disableDblClick=l.disableDblClick,this._disableClick=l.disableClick,e.on("dragStart",this._onDragStart,this),e.on("click",this._onClick,this),this._disableDblClick?h=0:s.on(t.container,"dblclick",this._onDblClick,this)}function p(e){return r.closest(e,o.classname(".weekday-grid"))&&!r.closest(e,o.classname(".weekday-exceed-in-month"))}m.prototype.destroy=function(){this.dragHandler.off(this),this.guide.destroy(),this.monthView&&this.monthView.container&&s.off(this.monthView.container,"dblclick",this._onDblClick,this),this.dragHandler=this.monthView=this.baseController=this.getScheduleData=this._cache=this.guide=null},m.prototype._createSchedule=function(e){this.fire("beforeCreateSchedule",{isAllDay:e.isAllDay,start:e.start,end:e.end,guide:this.guide.guide,triggerEventName:e.triggerEvent})},m.prototype._onDragStart=function(e){var t;p(e.target)&&(this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData=u(this.monthView),t=this.getScheduleData(e.originEvent),this._cache={start:new d(t.date)},this.fire("monthCreationDragstart",t))},m.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=this.getScheduleData(e.originEvent))&&this.fire("monthCreationDrag",t)},m.prototype._onDragEnd=function(e){var t,n,l=this._cache;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData&&((t=this.getScheduleData(e.originEvent))&&(l.end=new d(t.date),l.isAllDay=!0,n=[l.start,l.end].sort(a.compare.num.asc),l.start=new d(n[0]),l.end=i.end(n[1]),this._createSchedule(l)),this.fire("monthCreationDragend",t),this.getScheduleData=this._cache=null)},m.prototype._onDblClick=function(e){var t,n;p(e.target)&&(t=u(this.monthView)(e),this.fire("monthCreationClick",t),n=this._adjustStartAndEndTime(new d(t.date),new d(t.date)),this._createSchedule({start:n.start,end:n.end,isAllDay:!1,triggerEvent:t.triggerEvent}),this._requestOnClick=!1)},m.prototype._onClick=function(e){var t,n,l=this;p(e.target)&&!this._disableClick&&(t=u(this.monthView)(e.originEvent),this._requestOnClick=!0,setTimeout(function(){l._requestOnClick&&(l.fire("monthCreationClick",t),n=l._adjustStartAndEndTime(new d(t.date),new d(t.date)),l._createSchedule({start:n.start,end:n.end,isAllDay:!1,triggerEvent:t.triggerEvent})),l._requestOnClick=!1},h))},m.prototype._adjustStartAndEndTime=function(e,t){var n=new d,l=n.getHours(),o=n.getMinutes();return o=o<=30?0:30,e.setHours(l,o,0,0),t.setHours(l+1,o,0,0),{start:e,end:t}},m.prototype.invokeCreationClick=function(e){var t={model:e};this.fire("monthCreationClick",t),this._createSchedule({start:e.start,end:e.end,isAllDay:e.isAllDay,triggerEvent:"manual"})},l.CustomEvents.mixin(m),e.exports=m},function(e,t,n){"use strict";var l=n(33);function o(e){this.monthCreation=e,this.guide=null,e.on({monthCreationDragstart:this._createGuideElement,monthCreationDrag:this._onDrag,monthCreationDragend:this._onDragEnd,monthCreationClick:this._createGuideElement},this)}o.prototype.destroy=function(){this.monthCreation.off(this),this.guide&&this.guide.destroy(),this.guide=this.monthCreation=null},o.prototype._createGuideElement=function(e){this.guide=new l({isCreationMode:!0,height:"100%",top:0},this.monthCreation.monthView),this.guide.start(e)},o.prototype._onDrag=function(e){this.guide.update(e.x,e.y)},o.prototype._onDragEnd=function(){this.guide=null},e.exports=o},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i,a,r=e.escapeExpression,s=e.lambda;return'
    \n'},3:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda;return'
    \n
    \n'+(null!=(i=n.if.call(r,null!=t?t.isAllDay:t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.program(6,o,0),data:o,loc:{start:{line:9,column:12},end:{line:13,column:19}}}))?i:"")+'
    \n
     
    \n
    \n'},4:function(e,t,n,l,o){var i;return" "+(null!=(i=(n["allday-tmpl"]||t&&t["allday-tmpl"]||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},t,{name:"allday-tmpl",hash:{},data:o,loc:{start:{line:10,column:16},end:{line:10,column:38}}}))?i:"")+"\n"},6:function(e,t,n,l,o){var i;return" "+(null!=(i=(n["time-tmpl"]||t&&t["time-tmpl"]||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},t,{name:"time-tmpl",hash:{},data:o,loc:{start:{line:12,column:16},end:{line:12,column:36}}}))?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'
    \n'+(null!=(i=n.if.call(r,null!=t?t.isCreationMode:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o,loc:{start:{line:2,column:4},end:{line:17,column:11}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(3),a=n(1),r=n(19),s=n(105),u=n(4).Date,c=n(5);function d(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,this.getScheduleData=null,this._cache=null,this.guide=new s(this),e.on("dragStart",this._onDragStart,this)}d.prototype.destroy=function(){this.dragHandler.off(this),this.dragHandler=this.monthView=this.baseController=null},d.prototype._updateSchedule=function(e){var t=i.end(new u(e.end)),n=e.schedule,l=c.getScheduleChanges(n,["end"],{end:t});this.fire("beforeUpdateSchedule",{schedule:n,changes:l,start:new u(n.getStarts()),end:t})},d.prototype._onDragStart=function(e){var t,n,l,i=e.target;a.hasClass(i,o.classname("weekday-resize-handle"))&&(i=a.closest(i,o.classname(".weekday-schedule-block")))&&(t=a.getData(i,"id"),n=this.baseController.schedules.items[t],this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData=r(this.monthView),(l=this.getScheduleData(e.originEvent)).target=i,l.model=n,this._cache={schedule:n,target:i,start:new u(l.date)},this.fire("monthResizeDragstart",l))},d.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=this.getScheduleData(e.originEvent))&&this.fire("monthResizeDrag",t)},d.prototype._onDragEnd=function(e){var t,n,l,o=this._cache;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData&&((t=this.getScheduleData(e.originEvent))&&(n=new u(o.schedule.getStarts()),l=new u(t.date),o.end=l,n<=o.end&&this._updateSchedule(o)),this.fire("monthResizeDragend",t),this.getScheduleData=this._cache=null)},l.CustomEvents.mixin(d),e.exports=d},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(2),i=n(1),a=n(33);function r(e){this.monthResize=e,this.elements=null,this.guide=null,e.on({monthResizeDragstart:this._onDragStart,monthResizeDrag:this._onDrag,monthResizeDragend:this._onDragEnd},this)}r.prototype.destroy=function(){this.monthResize.off(this),this.guide.destroy(),this.guide=this.monthResize=null},r.prototype._hideScheduleBlocks=function(e){this.elements=i.find(o.classname(".weekday-schedule-block-"+e),this.monthResize.monthView.container,!0),l.forEach(this.elements,function(e){e.style.display="none"})},r.prototype._showScheduleBlocks=function(){l.forEach(this.elements,function(e){e.style.display="block"})},r.prototype._onDragStart=function(e){this.guide=new a({isResizeMode:!0},this.monthResize.monthView),this.guide.start(e),this._hideScheduleBlocks(e.model.cid()),l.browser.msie||i.addClass(t.document.body,o.classname("resizing-x"))},r.prototype._onDrag=function(e){this.guide.update(e.x,e.y)},r.prototype._onDragEnd=function(){this._showScheduleBlocks(),this.guide.destroy(),this.elements=this.guide=null,l.browser.msie||i.removeClass(t.document.body,o.classname("resizing-x"))},e.exports=r}).call(this,n(9))},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(1),a=n(3),r=n(19),s=n(107),u=n(4).Date;function c(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,this.getScheduleData=null,this._cache=null,this.guide=new s(this),e.on("dragStart",this._onDragStart,this)}c.prototype.destroy=function(){this.dragHandler.off(this),this.dragHandler=this.monthView=this.baseController=null},c.prototype.updateSchedule=function(e){var t=e.model,n=t.duration(),l=a.raw(t.start),o=new u(e.end),i=new u(o);i.setHours(l.h,l.m,l.s,l.ms),this.fire("beforeUpdateSchedule",{schedule:t,changes:{start:i,end:new u(i).addMilliseconds(n)},start:i,end:new u(i).addMilliseconds(n)})},c.prototype.getMonthScheduleBlock=function(e){var t=o.classname(".weekday-schedule-block");return i.closest(e,t)},c.prototype.getMoreLayerScheduleBlock=function(e){var t=o.classname(".month-more-schedule");return i.closest(e,t)},c.prototype.hasPermissionToHandle=function(e){var t,n=null;return i.hasClass(e,o.classname("weekday-resize-handle"))?null:((t=this.getMonthScheduleBlock(e))?n=i.getData(t,"id"):(t=this.getMoreLayerScheduleBlock(e))&&(n=i.getData(t,"id"),this.fire("monthMoveStart_from_morelayer")),n)},c.prototype._onDragStart=function(e){var t,n=e.target,l=this.hasPermissionToHandle(n),o=this.baseController.schedules.items[l];l&&o&&!o.isReadOnly&&!o.isPending&&(this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData=r(this.monthView),(t=this.getScheduleData(e.originEvent)).originEvent=e.originEvent,t.target=this.getMonthScheduleBlock(n),t.model=o,this._cache={model:o,target:n,start:new u(Number(t.date))},this.fire("monthMoveDragstart",t))},c.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=l.extend({originEvent:e.originEvent},this.getScheduleData(e.originEvent)))&&this.fire("monthMoveDrag",t)},c.prototype._onDragEnd=function(e){var t,n=this._cache;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData&&((t=this.getScheduleData(e.originEvent))&&(n.end=new u(t.date),this.updateSchedule(n)),this.fire("monthMoveDragend",t),this.getScheduleData=this._cache=null)},l.CustomEvents.mixin(c),e.exports=c},function(e,t,n){"use strict";(function(t){var l=n(0),o=n(2),i=n(1),a=n(6),r=n(16),s=n(108),u=n(14);function c(e){this.monthMove=e,this.elements=null,this.layer=null,e.on({monthMoveDragstart:this._onDragStart,monthMoveDrag:this._onDrag,monthMoveDragend:this._onDragEnd},this)}c.prototype.destroy=function(){this.monthMove.off(this),this._clearGridBgColor(),this.layer&&this.layer.destroy(),this.element&&i.remove(this.element),this.monthMove=this.elements=this.layer=null},c.prototype._hideOriginScheduleBlocks=function(e){var t=o.classname("weekday-schedule-block-dragging-dim");this.elements=i.find(o.classname(".weekday-schedule-block-"+e),this.monthMove.monthView.container,!0),l.forEach(this.elements,function(e){i.addClass(e,t)})},c.prototype._showOriginScheduleBlocks=function(){var e=o.classname("weekday-schedule-block-dragging-dim");l.forEach(this.elements,function(t){i.removeClass(t,e)})},c.prototype._clearGridBgColor=function(){var e=o.classname(".weekday-filled"),t=o.classname("weekday-filled"),n=i.find(e,this.monthMove.monthView.container);n&&i.removeClass(n,t)},c.prototype._updateGridBgColor=function(e){var t=i.find(o.classname(".weekday-grid-line"),this.monthMove.monthView.container,!0),n=o.classname("weekday-filled"),l=e.x+e.sizeX*e.y;this._clearGridBgColor(),t&&t[l]&&i.addClass(t[l],n)},c.prototype._onDragStart=function(e){var n=this.monthMove.monthView,c=n.children.single(),d=c.options,h=100/c.getRenderDateRange().length,m=d.scheduleGutter+d.scheduleHeight,p=n.container,f=a.getMousePosition(e.originEvent,p),g=e.model,S=new r(null,p);this._hideOriginScheduleBlocks(g.cid()),this.layer=S,S.setSize(h+"%",m),S.setPosition(f[0],f[1]),S.setContent(s({model:l.extend(u.create(g),g),styles:{scheduleHeight:d.scheduleHeight,scheduleBulletTop:d.scheduleHeight/3,borderRadius:n.controller.theme.month.schedule.borderRadius}})),S.show(),l.browser.msie||i.addClass(t.document.body,o.classname("dragging"))},c.prototype._onDrag=function(e){var t=this.monthMove.monthView.container,n=a.getMousePosition(e.originEvent,t);this._updateGridBgColor(e),this.layer&&this.layer.setPosition(n[0],n[1])},c.prototype._onDragEnd=function(){this._showOriginScheduleBlocks(),l.browser.msie||i.removeClass(t.document.body,o.classname("dragging")),this._clearGridBgColor(),this.layer.destroy(),this.layer=null},e.exports=c}).call(this,n(9))},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i;return" border-left:3px solid "+e.escapeExpression(e.lambda(null!=(i=null!=t?t.model:t)?i.borderColor:i,t))+";\n "},3:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return' \n'},5:function(e,t,n,l,o){var i;return e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:16,column:110},end:{line:16,column:124}}}):i)+'weekday-schedule-title-focused"'},7:function(e,t,n,l,o){var i;return" "+(null!=(i=(n["allday-tmpl"]||t&&t["allday-tmpl"]||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?t.model:t,{name:"allday-tmpl",hash:{},data:o,loc:{start:{line:18,column:12},end:{line:18,column:35}}}))?i:"")+"\n"},9:function(e,t,n,l,o){var i;return" "+(null!=(i=(n["time-tmpl"]||t&&t["time-tmpl"]||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?t.model:t,{name:"time-tmpl",hash:{},data:o,loc:{start:{line:20,column:12},end:{line:20,column:33}}}))?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda;return'
    \n'+(null!=(i=n.unless.call(r,null!=(i=null!=t?t.model:t)?i.isAllDay:i,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:13,column:4},end:{line:15,column:15}}}))?i:"")+'
    \n"+(null!=(i=n.if.call(r,null!=(i=null!=t?t.model:t)?i.isAllDay:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.program(9,o,0),data:o,loc:{start:{line:17,column:8},end:{line:21,column:15}}}))?i:"")+'
    \n
    \n
    \n'},useData:!0})},function(e,t,n){"use strict";var l=n(0),o=n(2),i=n(6),a=n(1),r=n(8),s=n(16),u=n(5),c=n(110);function d(e,t,n){r.call(this,t),this.layer=new s(null,t),this._viewModel=null,this.options=l.extend({moreLayerSize:{width:null,height:null},scheduleHeight:parseInt(n.month.schedule.height,10)||18,scheduleGutter:parseInt(n.month.schedule.marginTop,10)||2,scheduleBulletTop:(parseInt(n.month.schedule.height,10)||18)/3,borderRadius:n.month.schedule.borderRadius},e),this.theme=n,i.on(t,"click",this._onClick,this)}l.inherit(d,r),d.prototype._onClick=function(e){var t=e.target||e.srcElement,n=o.classname("month-more-close");(a.hasClass(t,n)||a.closest(t,"."+n))&&this.hide()},d.prototype._onMouseDown=function(e){var t=e.target||e.srcElement;a.closest(t,o.classname(".month-more"))||this.hide()},d.prototype._getRenderPosition=function(e,t){var n=i.getMousePosition({clientX:a.getPosition(e)[0],clientY:a.getPosition(t)[1]},this.container),l=a.getSize(this.container),o=n[0]-5,r=n[1]-5;return[o=u.ratio(l[0],100,o),r=u.ratio(l[1],100,r)]},d.prototype.destroy=function(){this.layer.destroy(),this.layer=null,i.off(this.container,"click",this._onClick,this),i.off(document.body,"mousedown",this._onMouseDown,this),r.prototype.destroy.call(this)},d.prototype.render=function(e){var t,n,r,s,u=a.closest(e.target,o.classname(".weekday-grid-line")),d=a.closest(u,o.classname(".month-week-item")),h=this.layer,m=this,p=this._getRenderPosition(u,d),f=a.getSize(d)[1]+10,g=u.offsetWidth+10,S=this.options,y=S.moreLayerSize,_=this._getStyles(this.theme),C="",v=a.getSize(this.container),E=p[0],w=p[1];this._viewModel=l.extend(e,{scheduleGutter:S.scheduleGutter,scheduleHeight:S.scheduleHeight,scheduleBulletTop:S.scheduleBulletTop,borderRadius:S.borderRadius,styles:_}),g=Math.max(g,280),C=parseInt(_.titleHeight,10),C+=parseInt(_.titleMarginBottom,10),e.schedules.length<=10?C+=(S.scheduleGutter+S.scheduleHeight)*e.schedules.length:C+=10*(S.scheduleGutter+S.scheduleHeight),C+=parseInt(_.paddingBottom,10),C+=5,y.width&&(g=y.width),y.height&&(C=y.height),(isNaN(C)||C=v[0],s=n+C>=v[1],E+="%",w+="%",r&&s?h.setLTRB({right:0,bottom:0}):!r&&s?h.setLTRB({left:E,bottom:0}):r&&!s?h.setLTRB({right:0,top:w}):h.setPosition(E,w),h.setSize(g,C),h.show(),l.debounce(function(){i.on(document.body,"mousedown",m._onMouseDown,m)})()},d.prototype.hide=function(){this.layer.hide(),i.off(document.body,"mousedown",this._onMouseDown,this)},d.prototype.refresh=function(){this._viewModel&&this.layer.setContent(c(this._viewModel))},d.prototype.getMoreViewElement=function(){return a.find(o.classname(".month-more"),this.layer.container)},d.prototype._getStyles=function(e){var t={},n="";return e&&(t.border=e.month.moreView.border||e.common.border,t.boxShadow=e.month.moreView.boxShadow,t.backgroundColor=e.month.moreView.backgroundColor||e.common.backgroundColor,t.paddingBottom=e.month.moreView.paddingBottom,t.titleHeight=e.month.moreViewTitle.height,t.titleMarginBottom=e.month.moreViewTitle.marginBottom,t.titleBackgroundColor=e.month.moreViewTitle.backgroundColor,t.titleBorderBottom=e.month.moreViewTitle.borderBottom,t.titlePadding=e.month.moreViewTitle.padding,t.listPadding=e.month.moreViewList.padding,n="calc(100%",parseInt(t.titleHeight,10)&&(n+=" - "+t.titleHeight),parseInt(t.titleMarginBottom,10)&&(n+=" - "+t.titleMarginBottom),n+=")",t.listHeight=n),t},e.exports=d},function(e,t,n){var l=n(7);e.exports=(l.default||l).template({1:function(e,t,n,l,o){var i;return null!=(i=(n.fi||t&&t.fi||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.model:t)?i.isAllDay:i,"||",null!=t?t.hasMultiDates:t,{name:"fi",hash:{},fn:e.program(2,o,0),inverse:e.program(7,o,0),data:o,loc:{start:{line:9,column:8},end:{line:65,column:15}}}))?i:""},2:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'
    \n '+(null!=(i=(n["allday-tmpl"]||t&&t["allday-tmpl"]||s).call(r,null!=t?t.model:t,{name:"allday-tmpl",hash:{},data:o,loc:{start:{line:20,column:20},end:{line:20,column:43}}}))?i:"")+"\n
    \n"},3:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" color: #ffffff; background-color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+"; border-left:3px solid "+r(a(null!=(i=null!=t?t.model:t)?i.borderColor:i,t))+";\n"},5:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+"; background-color:"+r(a(null!=(i=null!=t?t.model:t)?i.bgColor:i,t))+"; border-left:3px solid "+r(a(null!=(i=null!=t?t.model:t)?i.borderColor:i,t))+";\n"},7:function(e,t,n,l,o){var i;return null!=(i=(n.fi||t&&t.fi||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.model:t)?i.category:i,"===","time",{name:"fi",hash:{},fn:e.program(8,o,0),inverse:e.program(17,o,0),data:o,loc:{start:{line:23,column:12},end:{line:64,column:19}}}))?i:""},8:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda,d="function";return'
    \n \n '+(null!=(i=(n["time-tmpl"]||t&&t["time-tmpl"]||s).call(r,null!=t?t.model:t,{name:"time-tmpl",hash:{},data:o,loc:{start:{line:42,column:53},end:{line:42,column:74}}}))?i:"")+"\n
    \n"},9:function(e,t,n,l,o){return" background: #ffffff\n"},11:function(e,t,n,l,o){var i;return" background:"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.model:t)?i.borderColor:i,t))+"\n "},13:function(e,t,n,l,o){var i;return"\n color: #ffffff;\n background-color: "+e.escapeExpression(e.lambda(null!=(i=null!=t?t.model:t)?i.color:i,t))+"\n"},15:function(e,t,n,l,o){return" color:#333;\n "},17:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'
    \n '+(null!=(i=(n["schedule-tmpl"]||t&&t["schedule-tmpl"]||s).call(r,null!=t?t.model:t,{name:"schedule-tmpl",hash:{},data:o,loc:{start:{line:62,column:65},end:{line:62,column:90}}}))?i:"")+"\n
    \n"},18:function(e,t,n,l,o){var i;return e.escapeExpression("function"==typeof(i=null!=(i=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:o,loc:{start:{line:47,column:115},end:{line:47,column:129}}}):i)+"weekday-schedule-focused "},20:function(e,t,n,l,o){var i;return" margin-left: "+e.escapeExpression(e.lambda((i=(i=o&&o.root)&&i.styles)&&i.marginLeft,t))+";\n"},22:function(e,t,n,l,o){var i;return" margin-right: "+e.escapeExpression(e.lambda((i=(i=o&&o.root)&&i.styles)&&i.marginRight,t))+";\n"},24:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" color: #ffffff; background-color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+"; border-color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+";\n"},26:function(e,t,n,l,o){var i,a=e.lambda,r=e.escapeExpression;return" color:"+r(a(null!=(i=null!=t?t.model:t)?i.color:i,t))+"; background-color:"+r(a(null!=(i=null!=t?t.model:t)?i.bgColor:i,t))+"; border-color:"+r(a(null!=(i=null!=t?t.model:t)?i.borderColor:i,t))+";\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lambda;return'
    \n
    \n '+(null!=(i=(n["monthMoreTitleDate-tmpl"]||t&&t["monthMoreTitleDate-tmpl"]||s).call(r,null!=t?t.date:t,null!=t?t.dayname:t,{name:"monthMoreTitleDate-tmpl",hash:{},data:o,loc:{start:{line:4,column:58},end:{line:4,column:100}}}))?i:"")+'\n \n
    \n
    \n'+(null!=(i=n.each.call(r,null!=t?t.schedules:t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:8,column:8},end:{line:66,column:17}}}))?i:"")+"
    \n
    \n"},useData:!0})},function(e,t,n){},function(e,t,n){"use strict";var l=n(0),o=n(20),i=n(3),a=n(5),r=n(2),s=Math.max,u={stamp:function(e){return l.stamp(e)},equal:function(e,t){return e===t},or:function(e,t){return e||t},and:function(e,t){return e&&t},fi:function(e,t,n,l){switch(t){case"==":return e==n?l.fn(this):l.inverse(this);case"===":return e===n?l.fn(this):l.inverse(this);case"!==":return e!==n?l.fn(this):l.inverse(this);case"<":return e'+a.stripTags(e.title)+""},"milestoneTitle-tmpl":function(){return'Milestone'},"task-tmpl":function(e){return"#"+e.title},"taskTitle-tmpl":function(){return'Task'},"alldayTitle-tmpl":function(){return'All Day'},"allday-tmpl":function(e){return a.stripTags(e.title)},"time-tmpl":function(e){return a.stripTags(e.title)},"goingDuration-tmpl":function(e){var t=e.goingDuration,n=parseInt(t/60,10),l=t%60;return"GoingTime "+i.leadingZero(n,2)+":"+i.leadingZero(l,2)},"comingDuration-tmpl":function(e){var t=e.goingDuration,n=parseInt(t/60,10),l=t%60;return"ComingTime "+i.leadingZero(n,2)+":"+i.leadingZero(l,2)},"monthMoreTitleDate-tmpl":function(e,t){var n=r.classname("month-more-title-day"),o=r.classname("month-more-title-day-label");return''+l.pick(e.split("."),2)+' '+t+""},"monthMoreClose-tmpl":function(){return""},"monthGridHeader-tmpl":function(e){var t=parseInt(e.date.split("-")[2],10),n=[];return n.push(r.classname("weekday-grid-date")),e.isToday&&n.push(r.classname("weekday-grid-date-decorator")),''+t+""},"monthGridHeaderExceed-tmpl":function(e){return''+e+" more"},"monthGridFooter-tmpl":function(){return""},"monthGridFooterExceed-tmpl":function(e){return""},"monthDayname-tmpl":function(e){return e.label},"weekDayname-tmpl":function(e){var t=r.classname("dayname-date"),n=r.classname("dayname-name");return''+e.date+'  '+e.dayName+""},"weekGridFooterExceed-tmpl":function(e){return"+"+e},"dayGridTitle-tmpl":function(e){var t=o.helpers[e+"Title-tmpl"];return t?t(e):e},"schedule-tmpl":function(e){var t=o.helpers[e.category+"-tmpl"];return t?t(e):""},"collapseBtnTitle-tmpl":function(){return''},"timezoneDisplayLabel-tmpl":function(e,t){var n,o,a;return l.isUndefined(t)&&(n=e<0?"-":"+",o=Math.abs(parseInt(e/60,10)),a=Math.abs(e%60),t=n+i.leadingZero(o,2)+":"+i.leadingZero(a,2)),t},"timegridDisplayPrimayTime-tmpl":function(e){return o.helpers["timegridDisplayPrimaryTime-tmpl"](e)},"timegridDisplayPrimaryTime-tmpl":function(e){var t=e.hour,n=t>=12?"pm":"am";return t>12&&(t-=12),t+" "+n},"timegridDisplayTime-tmpl":function(e){return i.leadingZero(e.hour,2)+":"+i.leadingZero(e.minutes,2)},"timegridCurrentTime-tmpl":function(e){var t=[];return e.dateDifference&&t.push("["+e.dateDifferenceSign+e.dateDifference+"]
    "),t.push(i.format(e.hourmarker,"HH:mm")),t.join("")},"popupIsAllDay-tmpl":function(){return"All day"},"popupStateFree-tmpl":function(){return"Free"},"popupStateBusy-tmpl":function(){return"Busy"},"titlePlaceholder-tmpl":function(){return"Subject"},"locationPlaceholder-tmpl":function(){return"Location"},"startDatePlaceholder-tmpl":function(){return"Start date"},"endDatePlaceholder-tmpl":function(){return"End date"},"popupSave-tmpl":function(){return"Save"},"popupUpdate-tmpl":function(){return"Update"},"popupDetailDate-tmpl":function(e,t,n){var l=i.isSameDate(t,n),o=(l?"":"YYYY.MM.DD ")+"hh:mm tt";return e?i.format(t,"YYYY.MM.DD")+(l?"":" - "+i.format(n,"YYYY.MM.DD")):i.format(t,"YYYY.MM.DD hh:mm tt")+" - "+i.format(n,o)},"popupDetailLocation-tmpl":function(e){return e.location},"popupDetailUser-tmpl":function(e){return(e.attendees||[]).join(", ")},"popupDetailState-tmpl":function(e){return e.state||"Busy"},"popupDetailRepeat-tmpl":function(e){return e.recurrenceRule},"popupDetailBody-tmpl":function(e){return e.body},"popupEdit-tmpl":function(){return"Edit"},"popupDelete-tmpl":function(){return"Delete"}};function c(e,t,n){return n=n||"",l.isNumber(e)?n+":"+e+t:n+":auto"}function d(e,t){for(var n,l=0,o=0,i=t.length;o","\"","'","`","=","chr","toString","requestFn","cancelFn","getPrefixed","requestAnimationFrame","cancelAnimationFrame","requestAnimFrame","cancelAnimFrame","errorProps","Exception","message","node","loc","line","endLineNumber","column","endColumn","tmp","constructor","idx","captureStackTrace","lineNumber","nop","forEachProp","forEachArr","isFunc","isObj","getItemIDFn","getItemID","and","filters","cnt","or","merge","collections","cols","newItems","merged","col","_id","ownItems","itemToRemove","has","isExisty","doWhenHas","groupFunc","baseValue","keyIsFunc","k","single","useFilter","sort","compareFunction","arr","dirty","SCHEDULE_MIN_DURATION","SCHEDULE_CATEGORY","Schedule","title","isAllDay","color","isVisible","bgColor","dragBgColor","borderColor","calendarId","category","dueDateClass","customStyle","isPending","isFocused","isReadOnly","isPrivate","location","attendees","recurrenceRule","goingDuration","comingDuration","schema","required","dateRange","inst","init","setAllDayPeriod","setTimePeriod","substring","getStarts","getEnds","equals","duration","collidesWith","ownStarts","ownEnds","ownGoingDuration","ownComingDuration","booleanASC","stringASC","_a","_b","bsearch","search","currentIndex","comp","minIndex","maxIndex","asc","durationA","durationB","allDayCompare","startsCompare","modelA","modelB","hasMultiDates","bool","desc","num","ascIgnoreCase","descIgnoreCase","FloatingLayer","layerContainer","sibling","PROP_KEY","zIndex","getLargestZIndex","INIT_ZINDEX","display","inherit","setSize","w","setContent","html","zIndexes","layer","focus","zIndexForShow","show","hide","common","mmax","mmin","dayGridCore","_retriveScheduleData","datesInRange","containerWidth","mousePos","dragStartXIndex","grids","weekdayView","getRenderDateRange","getRenderDateGrids","getX","mouseX","xIndex","relatedView","triggerEvent","_retriveScheduleDataFromDate","targetDate","grid","Point","timeCore","_calcGridYIndex","baseMil","floored","timeView","viewHeight","viewTime","hourLength","hourEnd","hourStart","mouseY","gridY","timeY","nearestGridY","nearestGridTimeY","target","srcElement","originEvent","nearestGridEndY","nearestGridEndTimeY","getNearestHour","proto","method","nearestHour","mfloor","floor","monthView","weekColl","weeks","weekCount","dayCount","relativeContainer","vLayout","panels","pos","sizeX","sizeY","_interopRequireDefault","default","_interopRequireWildcard","newObj","base","_handlebarsSafeString2","_handlebarsException2","Utils","runtime","_handlebarsNoConflict2","hb","HandlebarsEnvironment","SafeString","VM","template","spec","_utils","_exception2","_helpers","_decorators","_logger2","_internalProtoAccess","VERSION","COMPILER_REVISION","LAST_COMPATIBLE_COMPILER_REVISION","REVISION_CHANGES","3","4","5","6","7","8","helpers","partials","decorators","registerDefaultHelpers","registerDefaultDecorators","logger","log","registerHelper","unregisterHelper","registerPartial","partial","unregisterPartial","registerDecorator","unregisterDecorator","resetLoggedPropertyAccesses","resetLoggedProperties","instance","_helpersBlockHelperMissing2","_helpersEach2","_helpersHelperMissing2","_helpersIf2","_helpersLog2","_helpersLookup2","_helpersWith2","moveHelperToHooks","helperName","keepHelper","hooks","methodMap","level","lookupLevel","levelMap","console","_len","_key","createProtoAccessControl","runtimeOptions","defaultMethodWhiteList","defaultPropertyWhiteList","properties","whitelist","_createNewLookupObject","createNewLookupObject","allowedProtoProperties","defaultValue","allowProtoPropertiesByDefault","methods","allowedProtoMethods","allowProtoMethodsByDefault","resultIsAllowed","protoAccessControl","propertyName","checkWhiteList","loggedProperties","protoAccessControlForType","logUnexpecedPropertyAccessOnce","DW","safe","addMonth","currentMonth","currentDay","leapYear","_isLeapYear","targetMonth","targetDaysOfMonth","year","isBetween","Drag","_onMouseDown","distance","exclude","_cancelled","_isMoved","_distance","_dragStartFired","_dragStartEventData","_clearData","_toggleDragEvent","toBind","domMethod","mousemove","_onMouseMove","mouseup","_onMouseUp","_getEventData","mouseDownEvent","fire","mouseMoveEvent","invoke","mouseUpEvent","ScheduleViewModel","hasCollide","extraSpace","hidden","renderStarts","exceedLeft","renderEnds","exceedRight","viewModel","VPanel","mAbs","VLayout","theme","tempHeights","panelHeights","_drag","dragStart","_onDragStart","drag","_onDrag","dragEnd","_onDragEnd","_dragData","panelOpt","isSplitter","autoHeight","addPanels","refresh","getLayoutData","heightList","panel","getHeight","setLayoutData","setHeight","nextPanel","prevPanel","_initializeGuideElement","element","cloned","cloneNode","_refreshGuideElement","_clearGuideElement","_resize","splPanel","startY","resizeInfo","resizedHeight","resizeMap","toDown","forwardMethod","getResizeInfoByGrowth","pair","_getMouseYAdditionalLimit","upper","below","func","minHeight","oEvent","splIndex","splHeight","splOffsetY","guideElement","minY","maxY","dragData","asideMinMax","layoutData","remainHeight","panelToFillHeight","layoutHeight","usedHeight","addPanel","frag","createDocumentFragment","option","getPanelByName","Weekday","containerBottomGutter","scheduleHeight","scheduleGutter","_cacheParentViewModel","getBaseViewModel","gridWidth","exceedDate","scheduleBlockHeight","scheduleBlockGutter","isToday","hiddenSchedules","_getDayNameColor","backgroundColor","_getDayBackgroundColor","getExceedDate","maxCount","eventsInDateRange","_initExceedDate","matrix","period","isOtherMonth","holidayExceptThisMonth","holiday","dayExceptThisMonth","saturday","today","dayname","weekend","useRound","round","getRatio","point","factor","toFactor","multiplyBy","_divideBy","_add","subtract","_subtract","divideBy","_multiplyBy","_round","reverse","_reverse","_floor","ceil","_ceil","rotate","deg","center","cos","sin","_rotate","rad","PI","toFixed","distanceTo","sqrt","DatePicker","timezone","tmpl","ScheduleCreationPopup","calendars","usageStatistics","_viewModel","_selectedCal","_schedule","_focusedDropdown","_usageStatistics","_onClickListeners","_selectDropdownMenuItem","_toggleDropdownMenuView","_closeDropdownMenuView","_closePopup","_toggleIsAllday","_toggleIsPrivate","_onClickSaveSchedule","_onClick","clickEvent","listener","dropdownBtn","_openDropdownMenuView","dropdown","itemClassName","iconClassName","contentClassName","selectedItem","innerText","cal","checkbox","alldaySection","privateSection","rangePicker","getStartDate","getEndDate","_isEditMode","class","triggerEventName","boxElement","guideElements","selectedCal","_makeEditModeData","guide","_getGuideElements","_createDatepicker","_setPopupPositionAndArrowDirection","debounce","isEditMode","guideBound","layerSize","windowSize","right","innerWidth","bottom","innerHeight","parentRect","parentBounds","_calcRenderingData","_setArrowDirection","arrow","_getBoundOfFirstRowGuideElement","parentSize","arrowLeft","guideHorizontalCenter","arrowDirection","direction","arrowEl","borderElement","createRangePicker","startpicker","input","endpicker","timepicker","showMeridiem","clearGuideElement","setCalendars","ScheduleDetailPopup","_calendar","_onClickEditSchedule","_onClickDeleteSchedule","_scheduleEl","scheduleEl","blockEl","scheduleBound","guideVerticalCenter","arrowTop","DayGridMoveGuide","DayGridMove","dragHandler","controller","_dragStart","checkExpectedCondition","parentView","cssClass","dragStartEventData","scheduleBlockElement","modelID","targetModel","getScheduleDataFunc","scheduleData","schedules","click","dragEventData","_updateSchedule","dateOffset","newStarts","newEnds","dragEndEventData","overrideEventName","skipUpdate","clickEventData","mabs","MonthGuide","label","isResizeMode","isCreationMode","styles","_getStyles","startCoord","_getRatioValueInWeek","_createGuideElement","_getGuideElement","_getCoordByDate","getIdxFromDiff","monthStart","renderStartDate","isBefore","_getLimitedCoord","coord","dragStartEvent","temp","renderMonth","update","_updateGuides","inds","ind","exceedLClass","exceedRClass","exceedL","exceedR","_getOriginIndicate","mouseCoord","_getMouseIndicate","_getContainIndicate","_removeGuideElements","yCoords","guides","_getExcludesInRange","numbers","excludes","limitedCoord","renderedYIndex","yCoordsToUpdate","yCoordsToRemove","renderIndication","guideYCoord","indicate","border","creationGuide","marginTop","marginLeft","marginRight","borderRadius","Calendar","jQuery","tuiCalendar","GA_TRACKING_ID","Handlebars","Layout","controllerFactory","weekViewFactory","monthViewFactory","reqAnimFrame","sendHostname","querySelector","_calendarColor","_renderDate","_renderRange","_controller","_createController","_layout","_dragHandler","_viewName","_refreshMethod","_scrollToNowMethod","_requestScrollToNow","_openCreationPopup","_hideMoreView","_requestRender","_options","_initialize","_setOptionRecurseively","viewName","taskView","scheduleView","scheduleFilter","Boolean","useCreationPopup","useDetailPopup","timezones","disableDblClick","disableClick","_setAdditionalInternalOptions","changeView","setCalendarColor","createSchedules","silent","_setScheduleColor","getSchedule","scheduleId","updateSchedule","ctrl","_hasChangedCalendar","deleteSchedule","_getWeekDayRange","isDate","weekday","toggleSchedules","toHide","ownSchedules","immediately","_renderFunc","clearSchedules","scrollToNow","_setViewName","move","tempDate","datetimeOptions","renderDate","_getCurrentView","recursiveSet","renderEndDate","collapsed","next","prev","calColor","ownColor","clickScheduleData","_onClickMore","clickMoreSchedule","_onClickDayname","_onBeforeCreate","createScheduleData","_showCreationPopup","_onBeforeUpdate","updateScheduleData","_onBeforeDelete","deleteScheduleData","_onAfterRenderSchedule","_onClickTimezonesCollapseBtn","timezonesCollapsed","_toggleViewSchedule","isAttach","clickHandler","creation","creationHandler","moveHandler","resizeHandler","newViewName","created","layout","_createMonthView","_createWeekView","getViewName","openCreationPopup","showCreationPopup","hideMoreView","toggleTaskView","enabled","toggleScheduleView","getElement","setTheme","setOptions","innerValue","innerName","getOptions","getDateRangeStart","getDateRangeEnd","setTimezoneOffset","setTimezoneOffsetCallback","inverse","execIteration","field","last","first","j","iterator","newContext","it","done","priorKey","conditional","hash","includeZero","lookupProperty","_decoratorsInline2","original","sources","checkRevision","compilerInfo","compilerRevision","currentRevision","_base","runtimeVersions","compilerVersions","templateSpec","env","main","decorator","main_d","compiler","templateWasPrecompiledWithCompilerV7","strict","lookup","depths","lambda","current","invokePartial","resolvePartial","extendedOptions","compile","compilerOptions","indent","lines","programs","program","declaredBlockParams","programWrapper","wrapProgram","depth","mergeIfNeeded","param","nullContext","seal","noop","_setup","useData","initData","useBlockParams","useDepths","executeDecorators","isTop","mergedHelpers","helper","_internalWrapHelper","wrapHelper","passLookupPropertyOption","wrapHelpersToPassLookupProperty","usePartial","useDecorators","keepHelperInHelpers","allowCallsToHelperMissing","_child","currentPartialBlock","partialBlock","prog","currentDepths","transformOptionsFn","$Handlebars","noConflict","applyTheme","toggleChildView","flag","prefix","Base","Core","Week","Month","Theme","dateMatrix","_getContainDatesInSchedule","scheduleStart","scheduleEnd","createSchedule","addSchedule","dataList","origin","_removeFromMatrix","_addToMatrix","ownMatrix","containDates","splitScheduleByDateRange","scheduleCollection","findByDateRange","viewModels","dformat","setStyles","existy","_changed","_dirty","isDirty","toDirty","deleteProp","isPropChanged","methodFilterR","wrap","_flag","_name","_wrapper","_fn","flagToSet","_wrapped","spaceRx","validators","fields","valid","fieldName","validator","values","validatorName","parameterize","themeStandard","themeConfig","customTheme","_map","HashMap","setStyle","errors","categories","child","removeAll","common.border","common.backgroundColor","common.holiday.color","common.saturday.color","common.dayname.color","common.today.color","common.creationGuide.backgroundColor","common.creationGuide.border","month.dayname.height","month.dayname.borderLeft","month.dayname.paddingLeft","month.dayname.paddingRight","month.dayname.backgroundColor","month.dayname.fontSize","month.dayname.fontWeight","month.dayname.textAlign","month.holidayExceptThisMonth.color","month.dayExceptThisMonth.color","month.weekend.backgroundColor","month.day.fontSize","month.schedule.borderRadius","month.schedule.height","month.schedule.marginTop","month.schedule.marginLeft","month.schedule.marginRight","month.moreView.border","month.moreView.boxShadow","month.moreView.backgroundColor","month.moreView.paddingBottom","month.moreViewTitle.height","month.moreViewTitle.marginBottom","month.moreViewTitle.borderBottom","month.moreViewTitle.padding","month.moreViewList.padding","week.dayname.height","week.dayname.borderTop","week.dayname.borderBottom","week.dayname.borderLeft","week.dayname.paddingLeft","week.dayname.backgroundColor","week.dayname.textAlign","week.today.color","week.pastDay.color","week.vpanelSplitter.border","week.vpanelSplitter.height","week.daygrid.borderRight","week.daygrid.backgroundColor","week.daygridLeft.width","week.daygridLeft.backgroundColor","week.daygridLeft.paddingRight","week.daygridLeft.borderRight","week.today.backgroundColor","week.weekend.backgroundColor","week.timegridLeft.width","week.timegridLeft.backgroundColor","week.timegridLeft.borderRight","week.timegridLeft.fontSize","week.timegridOneHour.height","week.timegridHalfHour.height","week.timegridHalfHour.borderBottom","week.timegridHorizontalLine.borderBottom","week.timegrid.paddingRight","week.timegrid.borderRight","week.timegridSchedule.borderRadius","week.timegridSchedule.paddingLeft","week.currentTime.color","week.currentTime.fontSize","week.currentTime.fontWeight","week.currentTimeLinePast.border","week.currentTimeLineBullet.backgroundColor","week.currentTimeLineToday.border","week.currentTimeLineFuture.border","week.creationGuide.color","week.creationGuide.fontSize","week.creationGuide.fontWeight","week.dayGridSchedule.borderRadius","week.dayGridSchedule.height","week.dayGridSchedule.marginTop","week.dayGridSchedule.marginLeft","week.dayGridSchedule.marginRight","month.moreViewTitle.backgroundColor","week.timegridLeftTimezoneLabel.height","week.timegridLeftAdditionalTimezone.backgroundColor","week.pastTime.color","week.pastTime.fontWeight","week.futureTime.color","week.futureTime.fontWeight","getCollisionGroup","previousScheduleList","collisionGroups","foundPrevCollisionSchedule","previous","group","getLastRowInColumn","row","getMatrices","scheduleID","nextRow","lastRowInColumn","getScheduleInDateRangeFilter","positionViewModels","matrices","ymdListToRender","dateLength","limitRenderRange","viewModelColl","convertToViewModel","modelColl","generateTimeArrayInRow","maxColLen","startStart","startEnd","endStart","endEnd","getFunc","block","getCollides","binaryMap","maxRowLength","getViewModelForTimeView","ymdSplitted","_getViewModel","_makeGetViewModelFuncForTimeView","_makeHourRangeFilter","hStart","hEnd","ownHourStart","ownHourEnd","yyyy","mm","dd","_addMultiDatesInfo","vColl","getViewModelForAlldayView","ctrlCore","ctrlWeek","andFilters","scheduleTypes","pluck","excludeExceedSchedules","visibleScheduleCount","_onlyTimeFilter","_onlyAlldayFilter","_weightTopValue","_adjustRenderRange","_getAlldayMaxTopIndexAtYMD","vAlldayColl","topIndexesInDate","_adjustTimeTopIndex","ctrlMonth","getAlldayMaxTopIndexAtYMD","maxIndexInYMD","timeViewModel","scheduleYMD","alldayMaxTopInYMD","_stackTimeFromTop","sortedTimeSchedules","indiceInYMD","maxTopInYMD","topArrayInYMD","alldayFirstMode","coll","vList","collisionGroup","DayName","DayGrid","TimeGrid","DayNameClick","DAYGRID_HANDLDERS","TIMEGRID_HANDLERS","DEFAULT_PANELS","maxHeight","showExpandableButton","maxExpandableHeight","handlers","baseController","layoutContainer","weekView","dayNameContainer","dayNameView","vLayoutContainer","createView","onSaveNewSchedule","onSetCalendars","lastVPanel","detailView","onShowDetailPopup","onDeleteSchedule","onShowEditPopup","onEditSchedule","vpanels","viewVisibilities","milestone","task","addHandler","weekViewHeight","daynameViewHeight","invokeCreationClick","isHeightForcedSet","_initPanel","setMaxHeight","setHeightForcedSet","getHeightForcedSet","newHeight","growth","resizeTo","borderTop","vpanelSplitter","borderBottom","_getRenderDateRange","showTimezoneCollapseButton","_disableDayOptions","schedulesInDateRange","_invokeAfterRenderSchedule","matricesOfDay","scheduleViewModel","baseDate","daynameTmpl","daynames","_getBaseViewModel","isPastDay","dayName","dayNames","baseViewModel","pastDay","numberAndUnit","timezonesLength","borderLeft","paddingLeft","textAlign","daygridLeft","depth0","stack1","alias1","alias2","helperMissing","alias3","alias4","alias5","DayGridSchedule","baseTmpl","dayGridSchedule","scheduleContainerTop","getViewModelFunc","setViewModelFunc","vPanel","getPanel","panelHeight","heightForcedSet","weekendBackgroundColor","todayBackgroundColor","getWeekBackgroundColor","collapseBtnIndex","clickedExpandBtnIndex","weekdayViewModel","_expand","_collapse","borderRight","leftWidth","leftBackgroundColor","leftPaddingRight","paddingRight","leftBorderRight","_getMaxScheduleInDay","_getMinHeight","maxScheduleInDay","9","11","13","15","10","Timezone","Time","AutoScroll","mainTmpl","timezoneStickyTmpl","timegridCurrentTimeTmpl","SIXTY_MINUTES","getHoursLabels","hasHourMarker","nowHours","nowHoursIndex","shiftByOffset","shiftMinutes","nowMinutes","hoursRange","nowAroundHours","fontWeight","pastTimeColor","pastTimeFontWeight","futureTimeColor","futureTimeFontWeight","panelElement","stickyContainer","safari","_autoScroll","intervalID","timerID","_scrolled","_cacheHoursLabels","clearInterval","clearTimeout","_onClickStickyContainer","hourmarkers","_getTopPercentByTime","topPercent","maxMilliseconds","hmsMilliseconds","_getHourmarkerViewModel","todaymarkerLeft","todaymarkerWidth","hourmarkerTimzones","primaryOffset","dateDifference","timezoneDifference","hourmarker","dateDifferenceSign","currentHours","hourmarkerTop","todaymarkerRight","_getTimezoneViewModel","timezoneViewModel","displayTimezoneLabelBackgroundColor","timeSlots","additionalTimezoneBackgroundColor","displayLabel","tooltip","isPrimary","hoursLabels","_renderChildren","childOption","containerHeight","parentElement","scheduleLen","showHourMarker","renderStickyContainer","_hourLabels","displayTimezoneLabelHeight","refreshHourmarker","needsRender","hoursLabel","todaymarker","hourmarkerContainer","timezoneIndex","setTimeout","onTick","offsetTop","viewBound","scrollTop","scrollAmount","scrollFn","setInterval","timegridHorizontalLine","halfHourBorderBottom","timegridHalfHour","timegridLeft","leftFontSize","fontSize","timezoneWidth","timegridLeftAdditionalTimezone","timegridLeftTimezoneLabel","oneHourHeight","timegridOneHour","halfHourHeight","quaterHourHeight","currentTimeColor","currentTime","currentTimeFontSize","currentTimeFontWeight","pastTime","futureTime","currentTimeLeftBorderTop","currentTimeLinePast","currentTimeBulletBackgroundColor","currentTimeLineBullet","currentTimeTodayBorderTop","currentTimeLineToday","currentTimeRightBorderTop","currentTimeLineFuture","timeTmpl","pending","defaultMarginBottom","_parseDateGroup","_getScheduleViewBoundX","baseWidth","baseLeft","columnIndex","_getScheduleViewBoundY","goingDurationHeight","modelDurationHeight","comingDurationHeight","baseMS","baseHeight","croppedStart","croppedEnd","offsetStart","todayStart","modelDuration","hasGoingDuration","hasComingDuration","getScheduleViewBound","boundX","boundY","travelBorderColor","widthPercent","leftPercents","timegrid","timegridSchedule","17","19","20","22","24","26","27","29","_direction","DIRECTION","INSIDE","_offset","_intervalID","TOP","RIGHT","BOTTOM","LEFT","_getEdgePositions","clientRect","getRealSize","padding","computed","clientWidth","clientHeight","hasScrollbar","realSize","isOnScrollbar","_onTick","edge","scrollLeft","16","18","checkExpectCondition","daynameView","blockElement","DayGridClick","dayGridScheduleView","collapseBtnElement","expandBtnElement","daygridMove","scheduleContainer","_dragStartXIndex","dragstart","dragend","_showOriginScheduleBlocks","_hideOriginScheduleBlocks","scheduleBlocks","_highlightScheduleBlocks","margin","borderLeftColor","refreshGuideElement","leftPercent","isExceededLeft","isExceededRight","_getScheduleBlockDataFunc","baseWidthPercent","originScheduleStarts","originScheduleEnds","fromLeft","fromRight","indexOffset","originLength","leftIndex","newLeft","newWidth","getScheduleBlockWidth","DayGridCreationGuide","CLICK_DELAY","DayGridCreation","_requestOnClick","_disableDblClick","_disableClick","_onDblClick","schedulesElement","_createSchedule","startXIndex","initializeGuideElement","_getGuideWidth","dragStartIndex","dragEndIndex","defer","dragEndXIndex","DayGridResizeGuide","DayGridResize","getGuideElementWidthFunc","viewOptions","TimeClick","timeGridView","schedulesCollection","TimeCreationGuide","TimeCreation","_getScheduleDataFunc","revise","dateStart","dateEnd","createRange","condResult","MIN60","timeCreation","guideTimeElement","_styleUnit","_styleStart","_styleFunc","timeCreationDragstart","timeCreationDrag","timeCreationClick","timeElement","bottomLabel","_getUnitData","viewOpt","todayEnd","_limitStyleData","unitData","_getStyleDataFunc","todayStartTime","todayEndTime","gridTimeY","gridEndTimeY","styleFunc","styleData","heightOfHalfHour","endStyle","startStyle","timeStyle","TimeMoveGuide","TimeMove","_guide","_getTimeView","mouseDownEventData","firefox","targetModelID","currentView","nearestRange","timeDiff","dateDiff","timeMove","_guideLayer","_model","_lastDrag","_container","_getTopFunc","_startGridY","_startTopPixel","timeMoveDragstart","timeMoveDrag","timeMoveDragend","timeMoveClick","_resetGuideLayer","bottomLimit","guideHeight","gridYOffset","gridYOffsetPixel","gridDiff","TimeResizeGuide","TimeResize","startScheduleData","timeResize","_originScheduleElement","_startHeightPixel","timeResizeDragstart","timeResizeDrag","timeResizeDragend","timeResizeClick","originElement","minTimeHeight","timeHeight","timeMinHeight","guideTop","minutesLength","MonthClick","MonthCreation","MonthResize","MonthMove","More","monthViewContainer","moreView","clearSchedulesHandler","onUpdateSchedule","getViewModelForMoreLayer","getMoreViewElement","onShowCreationPopup","WeekdayInMonth","monthOption","header","footer","_getMonthCalendar","heightPercent","gridOption","weekdayViewContainer","daynameViewModel","daynameModel","scheduleTmpl","_getRenderLimitIndex","count","gridHeaderHeight","gridFooterHeight","renderLimitIdx","dateObj","setIsOtherMonthFlag","scheduleBulletTop","12","21","23","25","31","33","34","36","38","40","moreElement","getMousePosDate","Guide","getScheduleData","_cache","isElementWeekdayGrid","dragEvent","dragEndEvent","times","_adjustStartAndEndTime","MonthCreationGuide","monthCreation","monthCreationDragstart","monthCreationDrag","monthCreationDragend","monthCreationClick","getMousePosData","MonthResizeGuide","scheduleCache","newEnd","monthResize","monthResizeDragstart","monthResizeDrag","monthResizeDragend","_hideScheduleBlocks","_showScheduleBlocks","MonthMoveGuide","startDateRaw","dragEndTime","newStartDate","getMonthScheduleBlock","blockSelector","getMoreLayerScheduleBlock","hasPermissionToHandle","monthMove","monthMoveDragstart","monthMoveDrag","monthMoveDragend","_clearGridBgColor","beforeGridElement","_updateGridBgColor","gridElements","targetIndex","firstWeekdayView","weekdayOptions","moreLayerSize","_getRenderPosition","weekItem","containerSize","calWidth","calHeight","isOverWidth","isOverHeight","optMoreLayerSize","leftPos","topPos","titleHeight","titleMarginBottom","paddingBottom","listHeight","boxShadow","moreViewTitle","marginBottom","titleBackgroundColor","titleBorderBottom","titlePadding","listPadding","moreViewList","equal","fi","oper","hhmm","common-width","getElSize","grid-left","getElLeft","grid-width","getElWidth","time-scheduleBlock","month-scheduleBlock","blockHeight","paddingTop","multiply","divide","getRight","CSS_PREFIX","milestone-tmpl","milestoneTitle-tmpl","task-tmpl","taskTitle-tmpl","alldayTitle-tmpl","allday-tmpl","time-tmpl","goingDuration-tmpl","comingDuration-tmpl","monthMoreTitleDate-tmpl","classDay","classDayLabel","monthMoreClose-tmpl","monthGridHeader-tmpl","classNames","monthGridHeaderExceed-tmpl","monthGridFooter-tmpl","monthGridFooterExceed-tmpl","monthDayname-tmpl","weekDayname-tmpl","classDate","weekGridFooterExceed-tmpl","dayGridTitle-tmpl","schedule-tmpl","collapseBtnTitle-tmpl","timezoneDisplayLabel-tmpl","gmt","timegridDisplayPrimayTime-tmpl","timegridDisplayPrimaryTime-tmpl","meridiem","timegridDisplayTime-tmpl","timegridCurrentTime-tmpl","templates","popupIsAllDay-tmpl","popupStateFree-tmpl","popupStateBusy-tmpl","titlePlaceholder-tmpl","locationPlaceholder-tmpl","startDatePlaceholder-tmpl","endDatePlaceholder-tmpl","popupSave-tmpl","popupUpdate-tmpl","popupDetailDate-tmpl","endFormat","popupDetailLocation-tmpl","popupDetailUser-tmpl","popupDetailState-tmpl","popupDetailRepeat-tmpl","popupDetailBody-tmpl","popupEdit-tmpl","popupDelete-tmpl","postfix"],"mappings":";;;;;;CAAA,SAAAA,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,oBAAAA,QAAA,oBACA,mBAAAC,eAAAC,IACAD,QAAA,sCAAAJ,GACA,iBAAAC,QACAA,QAAA,SAAAD,EAAAG,QAAA,oBAAAA,QAAA,qBAEAJ,EAAA,IAAAA,EAAA,QAAiCA,EAAA,aAAAC,EAAAD,EAAA,KAAAA,EAAA,SAAAA,EAAA,KAAAA,EAAA,iBARjC,CASCO,OAAA,SAAAC,EAAAC,GACD,mBCTA,IAAAC,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAV,QAGA,IAAAC,EAAAO,EAAAE,IACAC,EAAAD,EACAE,GAAA,EACAZ,YAUA,OANAa,EAAAH,GAAAI,KAAAb,EAAAD,QAAAC,IAAAD,QAAAS,GAGAR,EAAAW,GAAA,EAGAX,EAAAD,QA0DA,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AAA,EAAA4I,OAAA,QAEAwoD,yBAAA,SAAApxD,GACA,OAAAA,EAAAoQ,gBAEAihD,uBAAA,SAAArxD,GACA,OAAAA,EAAAnT,MAEAykE,iBAAA,WACA,cAEAC,mBAAA,WACA,iBAWA,SAAA/D,EAAAxiE,EAAAwmE,EAAA7yB,GAEA,OADAA,KAAA,GACAzyC,EAAAoF,SAAAtG,GACA2zC,EAAA,IAAA3zC,EAAAwmE,EAGA7yB,EAAA,QAmBA,SAAAivB,EAAA7tC,EAAApL,GAKA,IAJA,IAGAtjB,EAHAY,EAAA,EACAlI,EAAA,EACAwE,EAAAomB,EAAApmB,OAEUxE,EAAAg2B,EAAA9tB,MAAqBlI,GAAA,EAC/BsH,GAAA0uB,EAAA1uB,KAAAtH,GAAAwE,GACA8C,GAAA2L,UAAA+iB,EAAA1uB,KAAAtH,GAAAwE,EAAA,KACAA,IACA0D,GAAA0iB,EAAAtjB,GAAAsjB,EAAAtjB,GAAAY,MAAA,GAIA,OAAAA,EAGAsgC,EAAAnY,eAAAP","file":"tui-calendar.min.js","sourcesContent":[null," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 36);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","/* eslint complexity: 0, no-shadow: 0, max-nested-callbacks: 0 */\n/**\n * @fileoverview Utility modules for manipulate DOM elements.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar domevent = require('./domevent');\nvar Collection = require('./collection');\nvar util = require('tui-code-snippet');\n\nvar posKey = '_pos',\n domutil;\n\nvar CSS_AUTO_REGEX = /^auto$|^$|%/;\n\n/**\n * Trim leading, trailing whitespace\n * @param {string} str - string to trim\n * @returns {string} trimmed string\n */\nfunction trim(str) {\n return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n}\n\ndomutil = {\n /**\n * Create DOM element and return it.\n * @param {string} tagName Tag name to append.\n * @param {HTMLElement} [container] HTML element will be parent to created element.\n * if not supplied, will use **document.body**\n * @param {string} [className] Design class names to appling created element.\n * @returns {HTMLElement} HTML element created.\n */\n appendHTMLElement: function(tagName, container, className) {\n var el;\n\n className = className || '';\n\n el = document.createElement(tagName);\n el.className = className;\n\n if (container) {\n container.appendChild(el);\n } else {\n document.body.appendChild(el);\n }\n\n return el;\n },\n\n /**\n * Remove element from parent node.\n * @param {HTMLElement} el - element to remove.\n */\n remove: function(el) {\n if (el && el.parentNode) {\n el.parentNode.removeChild(el);\n }\n },\n\n /**\n * Get element by id\n * @param {string} id element id attribute\n * @returns {HTMLElement} element\n */\n get: function(id) {\n return document.getElementById(id);\n },\n\n /**\n * Check supplied element is matched selector.\n * @param {HTMLElement} el - element to check\n * @param {string} selector - selector string to check\n * @returns {boolean} match?\n */\n _matcher: function(el, selector) {\n var cssClassSelector = /^\\./,\n idSelector = /^#/;\n\n if (cssClassSelector.test(selector)) {\n return domutil.hasClass(el, selector.replace('.', ''));\n }\n if (idSelector.test(selector)) {\n return el.id === selector.replace('#', '');\n }\n\n return el.nodeName.toLowerCase() === selector.toLowerCase();\n },\n\n /**\n * Find DOM element by specific selectors.\n * below three selector only supported.\n *\n * 1. css selector\n * 2. id selector\n * 3. nodeName selector\n * @param {string} selector selector\n * @param {(HTMLElement|string)} [root] You can assign root element to find\n * if not supplied, document.body will use.\n * @param {boolean|function} [multiple=false] - set true then return all\n * elements that meet condition, if set function then use it filter function.\n * @returns {HTMLElement} HTML element finded.\n */\n find: function(selector, root, multiple) {\n var result = [],\n found = false,\n isFirst = util.isUndefined(multiple) || multiple === false,\n isFilter = util.isFunction(multiple);\n\n if (util.isString(root)) {\n root = domutil.get(root);\n }\n\n root = root || window.document.body;\n\n /**\n * Function for recursive find specific node\n * @param {HTMLElement} el - element to search\n * @param {string} selector - selector\n */\n function recurse(el, selector) {\n var childNodes = el.childNodes,\n i = 0,\n len = childNodes.length,\n cursor;\n\n for (; i < len; i += 1) {\n cursor = childNodes[i];\n\n if (cursor.nodeName === '#text') {\n continue;\n }\n\n if (domutil._matcher(cursor, selector)) {\n if ((isFilter && multiple(cursor)) || !isFilter) {\n result.push(cursor);\n }\n\n if (isFirst) {\n found = true;\n break;\n }\n } else if (cursor.childNodes.length > 0) {\n recurse(cursor, selector);\n if (found) {\n break;\n }\n }\n }\n }\n\n recurse(root, selector);\n\n return isFirst ? (result[0] || null) : result;\n },\n\n /**\n * Find parent element recursively.\n * @param {HTMLElement} el - base element to start find.\n * @param {string} selector - selector string for find\n * @param {boolean} excludeEl - exclude the base element to find\n * @returns {HTMLElement} - element finded or null.\n */\n closest: function(el, selector, excludeEl) {\n var parent = el.parentNode;\n\n if (!excludeEl && domutil._matcher(el, selector)) {\n return el;\n }\n\n while (parent && parent !== window.document.body) {\n if (domutil._matcher(parent, selector)) {\n return parent;\n }\n\n parent = parent.parentNode;\n }\n\n return null;\n },\n\n /**\n * Return texts inside element.\n * @param {HTMLElement} el target element\n * @returns {string} text inside node\n */\n text: function(el) {\n var ret = '',\n i = 0,\n nodeType = el.nodeType;\n\n if (nodeType) {\n if (nodeType === 1 || nodeType === 9 || nodeType === 11) {\n // nodes that available contain other nodes\n if (typeof el.textContent === 'string') {\n return el.textContent;\n }\n\n for (el = el.firstChild; el; el = el.nextSibling) {\n ret += domutil.text(el);\n }\n } else if (nodeType === 3 || nodeType === 4) {\n // TEXT, CDATA SECTION\n return el.nodeValue;\n }\n } else {\n for (; el[i]; i += 1) {\n ret += domutil.text(el[i]);\n }\n }\n\n return ret;\n },\n\n /**\n * Set data attribute to target element\n * @param {HTMLElement} el - element to set data attribute\n * @param {string} key - key\n * @param {string|number} data - data value\n */\n setData: function(el, key, data) {\n if ('dataset' in el) {\n el.dataset[key] = data;\n\n return;\n }\n\n el.setAttribute('data-' + key, data);\n },\n\n /**\n * Get data value from data-attribute\n * @param {HTMLElement} el - target element\n * @param {string} key - key\n * @returns {string} value\n */\n getData: function(el, key) {\n if ('dataset' in el) {\n return el.dataset[key];\n }\n\n return el.getAttribute('data-' + key);\n },\n\n /**\n * Check element has specific design class name.\n * @param {HTMLElement} el target element\n * @param {string} name css class\n * @returns {boolean} return true when element has that css class name\n */\n hasClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n return el.classList.contains(name);\n }\n\n className = domutil.getClass(el);\n\n return className.length > 0 && new RegExp('(^|\\\\s)' + name + '(\\\\s|$)').test(className);\n },\n\n /**\n * Add design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n addClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n util.forEachArray(name.split(' '), function(value) {\n el.classList.add(value);\n });\n } else if (!domutil.hasClass(el, name)) {\n className = domutil.getClass(el);\n domutil.setClass(el, (className ? className + ' ' : '') + name);\n }\n },\n\n /**\n *\n * Overwrite design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n setClass: function(el, name) {\n if (util.isUndefined(el.className.baseVal)) {\n el.className = name;\n } else {\n el.className.baseVal = name;\n }\n },\n\n /**\n * Element에 cssClass속성을 제거하는 메서드\n * Remove specific design class from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name class name to remove\n */\n removeClass: function(el, name) {\n var removed = '';\n\n if (!util.isUndefined(el.classList)) {\n el.classList.remove(name);\n } else {\n removed = (' ' + domutil.getClass(el) + ' ').replace(' ' + name + ' ', ' ');\n domutil.setClass(el, trim(removed));\n }\n },\n\n /**\n * Get HTML element's design classes.\n * @param {HTMLElement} el target element\n * @returns {string} element css class name\n */\n getClass: function(el) {\n if (!el || !el.className) {\n return '';\n }\n\n return util.isUndefined(el.className.baseVal) ? el.className : el.className.baseVal;\n },\n\n /**\n * Get specific CSS style value from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} style css attribute name\n * @returns {(string|null)} css style value\n */\n getStyle: function(el, style) {\n var value = el.style[style] || (el.currentStyle && el.currentStyle[style]),\n css;\n\n if ((!value || value === 'auto') && document.defaultView) {\n css = document.defaultView.getComputedStyle(el, null);\n value = css ? css[style] : null;\n }\n\n return value === 'auto' ? null : value;\n },\n\n /**\n * get element's computed style values.\n *\n * in lower IE8. use polyfill function that return object. it has only one function 'getPropertyValue'\n * @param {HTMLElement} el - element want to get style.\n * @returns {object} virtual CSSStyleDeclaration object.\n */\n getComputedStyle: function(el) {\n var defaultView = document.defaultView;\n\n if (!defaultView || !defaultView.getComputedStyle) {\n return {\n getPropertyValue: function(prop) {\n /* eslint-disable no-useless-escape */\n var re = /(\\-([a-z]){1})/g;\n if (prop === 'float') {\n prop = 'styleFloat';\n }\n\n if (re.test(prop)) {\n prop = prop.replace(re, function() {\n return arguments[2].toUpperCase();\n });\n }\n\n return el.currentStyle[prop] ? el.currentStyle[prop] : null;\n }\n };\n }\n\n return document.defaultView.getComputedStyle(el);\n },\n\n /**\n * Set position CSS style.\n * @param {HTMLElement} el target element\n * @param {number} [x=0] left pixel value.\n * @param {number} [y=0] top pixel value.\n */\n setPosition: function(el, x, y) {\n x = util.isUndefined(x) ? 0 : x;\n y = util.isUndefined(y) ? 0 : y;\n\n el[posKey] = [x, y];\n\n el.style.left = util.isNumber(x) ? (x + 'px') : x;\n el.style.top = util.isNumber(y) ? (y + 'px') : y;\n },\n\n /**\n * Set position CSS style with left, top, right, bottom\n * @param {HTMLElement} el target element\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\n setLTRB: function(el, ltrb) {\n var props = ['left', 'top', 'right', 'bottom'];\n var value;\n props.forEach(function(prop) {\n value = util.isUndefined(ltrb[prop]) ? '' : ltrb[prop];\n el.style[prop] = util.isNumber(value) ? (value + 'px') : value;\n });\n },\n\n /**\n * Get position from HTML element.\n * @param {HTMLElement} el target element\n * @param {boolean} [clear=false] clear cache before calculating position.\n * @returns {number[]} point\n */\n getPosition: function(el, clear) {\n var left,\n top,\n bound;\n\n if (clear) {\n el[posKey] = null;\n }\n\n if (el[posKey]) {\n return el[posKey];\n }\n\n left = 0;\n top = 0;\n\n if ((CSS_AUTO_REGEX.test(el.style.left) || CSS_AUTO_REGEX.test(el.style.top)) &&\n 'getBoundingClientRect' in el) {\n // When the element's left or top is 'auto'\n bound = el.getBoundingClientRect();\n\n left = bound.left;\n top = bound.top;\n } else {\n left = parseFloat(el.style.left || 0);\n top = parseFloat(el.style.top || 0);\n }\n\n return [left, top];\n },\n\n /**\n * Return element's size\n * @param {HTMLElement} el target element\n * @returns {number[]} width, height\n */\n getSize: function(el) {\n var bound,\n width = domutil.getStyle(el, 'width'),\n height = domutil.getStyle(el, 'height');\n\n if ((CSS_AUTO_REGEX.test(width) || CSS_AUTO_REGEX.test(height) ||\n util.isNull(width) || util.isNull(height)) &&\n 'getBoundingClientRect' in el) {\n bound = el.getBoundingClientRect();\n width = bound.width || el.offsetWidth;\n height = bound.height || el.offsetHeight;\n } else {\n width = parseFloat(width || 0);\n height = parseFloat(height || 0);\n }\n\n return [width, height];\n },\n\n /**\n * Fallback of getBoundingClientRect\n * @param {HTMLElement} el - element\n * @returns {object} rect\n */\n getBCRect: function(el) {\n var rect = el.getBoundingClientRect();\n\n rect = util.extend({\n width: el.offsetWidth,\n height: el.offsetHeight\n }, rect);\n\n return rect;\n },\n\n /**\n * Check specific CSS style is available.\n * @param {array} props property name to testing\n * @returns {(string|boolean)} return true when property is available\n * @example\n * var props = ['transform', '-webkit-transform'];\n * domutil.testProp(props); // 'transform'\n */\n testProp: function(props) {\n var style = document.documentElement.style,\n i = 0,\n len = props.length;\n\n for (; i < len; i += 1) {\n if (props[i] in style) {\n return props[i];\n }\n }\n\n return false;\n },\n\n /**\n * Get form data\n * @param {HTMLFormElement} formElement - form element to extract data\n * @returns {object} form data\n */\n getFormData: function(formElement) {\n var groupedByName = new Collection(function() {\n return this.length;\n }),\n noDisabledFilter = function(el) {\n return !el.disabled;\n },\n output = {};\n\n groupedByName.add.apply(\n groupedByName,\n domutil.find('input', formElement, noDisabledFilter)\n .concat(domutil.find('select', formElement, noDisabledFilter))\n .concat(domutil.find('textarea', formElement, noDisabledFilter))\n );\n\n groupedByName = groupedByName.groupBy(function(el) {\n return (el && el.getAttribute('name')) || '_other';\n });\n\n util.forEach(groupedByName, function(elements, name) {\n if (name === '_other') {\n return;\n }\n\n elements.each(function(el) {\n var nodeName = el.nodeName.toLowerCase(),\n type = el.type,\n result = [];\n\n if (type === 'radio') {\n result = [elements.find(function(el) {\n return el.checked;\n }).toArray().pop()];\n } else if (type === 'checkbox') {\n result = elements.find(function(el) {\n return el.checked;\n }).toArray();\n } else if (nodeName === 'select') {\n elements.find(function(el) {\n return !!el.childNodes.length;\n }).each(function(el) {\n result = result.concat(\n domutil.find('option', el, function(opt) {\n return opt.selected;\n })\n );\n });\n } else {\n result = elements.find(function(el) {\n return el.value !== '';\n }).toArray();\n }\n\n result = util.map(result, function(el) {\n return el.value;\n });\n\n if (!result.length) {\n result = '';\n } else if (result.length === 1) {\n result = result[0];\n }\n\n output[name] = result;\n });\n });\n\n return output;\n }\n};\n\n/*eslint-disable*/\nvar userSelectProperty = domutil.testProp([\n 'userSelect',\n 'WebkitUserSelect',\n 'OUserSelect',\n 'MozUserSelect',\n 'msUserSelect'\n]);\nvar supportSelectStart = 'onselectstart' in document;\nvar prevSelectStyle = '';\n/* eslint-enable*/\n\n/**\n * Disable browser's text selection behaviors.\n * @method\n */\ndomutil.disableTextSelection = (function() {\n if (supportSelectStart) {\n return function(dom) {\n domevent.on(dom, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function(dom) {\n var style = dom.style;\n prevSelectStyle = style[userSelectProperty];\n style[userSelectProperty] = 'none';\n };\n})();\n\n/**\n * Enable browser's text selection behaviors.\n * @method\n */\ndomutil.enableTextSelection = (function() {\n if (supportSelectStart) {\n return function() {\n domevent.off(window, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function() {\n document.documentElement.style[userSelectProperty] = prevSelectStyle;\n };\n})();\n\n/**\n * Disable browser's image drag behaviors.\n */\ndomutil.disableImageDrag = function() {\n domevent.on(window, 'dragstart', domevent.preventDefault);\n};\n\n/**\n * Enable browser's image drag behaviors.\n */\ndomutil.enableImageDrag = function() {\n domevent.off(window, 'dragstart', domevent.preventDefault);\n};\n\nmodule.exports = domutil;\n","/**\n * @fileoverview Global configuration object module. This @echo syntax will change preprocess context. See gulpfile.js\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar cssPrefix = 'tui-full-calendar-',\n alldayGetViewID = new RegExp('^' + cssPrefix + 'weekday[\\\\s]tui-view-(\\\\d+)'),\n alldayCheckPermission = new RegExp('^' + cssPrefix + 'schedule(-title)?$'),\n timeGetViewID = new RegExp('^' + cssPrefix + 'time-date[\\\\s]tui-view-(\\\\d+)');\n\nvar config = {\n throwError: function(msg) {\n alert(msg);\n },\n\n cssPrefix: cssPrefix,\n\n classname: function(str) {\n str = str || '';\n\n if (str.charAt(0) === '.') {\n return '.' + config.cssPrefix + str.slice(1);\n }\n\n return config.cssPrefix + str;\n },\n\n allday: {\n getViewIDRegExp: alldayGetViewID,\n checkCondRegExp: alldayCheckPermission\n },\n\n daygrid: {\n getViewIDRegExp: alldayGetViewID,\n checkCondRegExp: alldayCheckPermission\n },\n\n time: {\n getViewIDRegExp: timeGetViewID\n }\n};\n\nmodule.exports = config;\n","/**\n * @fileoverview datetime utility module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar TZDate = require('./timezone').Date,\n dw = require('../common/dw');\nvar util = require('tui-code-snippet');\n/* eslint-disable no-useless-escape */\nvar dateFormatRx = /^(\\d{4}[-|\\/]*\\d{2}[-|\\/]*\\d{2})\\s?(\\d{2}:\\d{2}:\\d{2})?$/;\nvar datetime, tokenFunc;\n\nvar memo = {\n millisecondsTo: {},\n millisecondsFrom: {}\n};\n\ntokenFunc = {\n /**\n * @param {TZDate} date date object.\n * @returns {string} YYYYMMDD\n */\n 'YYYYMMDD': function(date) {\n return [\n date.getFullYear(),\n datetime.leadingZero(date.getMonth() + 1, 2),\n datetime.leadingZero(date.getDate(), 2)\n ].join('');\n },\n /**\n * @param {TZDate} date date object\n * @returns {string} four digit year number\n */\n 'YYYY': function(date) {\n return String(date.getFullYear());\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit month number\n */\n 'MM': function(date) {\n return datetime.leadingZero(date.getMonth() + 1, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit date number\n */\n 'DD': function(date) {\n return datetime.leadingZero(date.getDate(), 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} HH:mm\n */\n 'HH:mm': function(date) {\n var hour = date.getHours(),\n minutes = date.getMinutes();\n\n return datetime.leadingZero(hour, 2) + ':' +\n datetime.leadingZero(minutes, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} hh:mm\n */\n 'hh:mm': function(date) {\n var hour = date.getHours();\n var minutes = date.getMinutes();\n\n if (hour > 12) {\n hour = hour % 12;\n }\n\n return datetime.leadingZero(hour, 2) + ':' +\n datetime.leadingZero(minutes, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} tt\n */\n 'tt': function(date) {\n var hour = date.getHours();\n\n return hour < 12 ? 'am' : 'pm';\n }\n};\n\ndatetime = {\n /**\n * The number of milliseconds one day.\n * @type {number}\n */\n MILLISECONDS_PER_DAY: 86400000,\n\n /**\n * The number of milliseconds one hour.\n * @type {number}\n */\n MILLISECONDS_PER_HOUR: 3600000,\n\n /**\n * The number of milliseconds one minutes.\n * @type {number}\n */\n MILLISECONDS_PER_MINUTES: 60000,\n\n /**\n * The number of milliseconds 20 minutes for schedule min duration\n * @type {number}\n */\n MILLISECONDS_SCHEDULE_MIN_DURATION: 20 * 60000,\n\n /**\n * convert milliseconds\n * @param {string} type - type of value.\n * @param {number} value - value to convert.\n * @param {function} iteratee - iteratee function to use reduce.\n * @returns {number} converted value.\n */\n _convMilliseconds: function(type, value, iteratee) {\n var conv = [24, 60, 60, 1000],\n index = {\n day: 0,\n hour: 1,\n minutes: 2,\n seconds: 3\n };\n\n if (!(type in index) || global.isNaN(value)) {\n return false;\n }\n\n return util.reduce([value].concat(conv.slice(index[type])), iteratee);\n },\n\n /**\n * Convert milliseconds value to other type\n * @param {type} type convert to type want to. support \"day\", \"hour\",\n * \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsTo: function(type, value) {\n var cache = memo.millisecondsTo,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m / v;\n });\n\n return cache[key];\n },\n\n /**\n * Convert value to milliseconds\n * @param {type} type - type of supplied value. support \"hour\", \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsFrom: function(type, value) {\n var cache = memo.millisecondsFrom,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m * v;\n });\n\n return cache[key];\n },\n\n /**\n * Convert hours to minutes\n * @param {number} hours - hours\n * @returns {number} minutes\n */\n minutesFromHours: function(hours) {\n return hours * 60;\n },\n\n /**\n * Make date array from supplied paramters.\n * @param {TZDate} start Start date.\n * @param {TZDate} end End date.\n * @param {number} step The number of milliseconds to use increment.\n * @returns {TZDate[]} TZDate array.\n */\n range: function(start, end, step) {\n var startTime = start.getTime();\n var endTime = end.getTime();\n var cursor = startTime;\n var date = dw(new TZDate(start));\n var result = [];\n\n while (cursor <= endTime && endTime >= date.d.getTime()) {\n result.push(datetime.start(date.d));\n cursor = cursor + step;\n date.addDate(1);\n }\n\n return result;\n },\n\n /**\n * Clone supplied date.\n * @param {TZDate} date date object to clone.\n * @returns {TZDate} Cloned date object\n */\n clone: function(date) {\n return new TZDate(date);\n },\n\n /**\n * Compare two dates.\n *\n * when first date is latest then seconds then return -1.\n *\n * return +1 reverse, and return 0 is same.\n * @param {TZDate} d1 Date object to compare.\n * @param {TZDate} d2 Date object to compare.\n * @returns {number} result of compare\n */\n compare: function(d1, d2) {\n var _d1 = d1.getTime(),\n _d2 = d2.getTime();\n\n if (_d1 < _d2) {\n return -1;\n }\n if (_d1 > _d2) {\n return 1;\n }\n\n return 0;\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month?\n */\n isSameMonth: function(d1, d2) {\n return (d1.getFullYear() === d2.getFullYear() &&\n d1.getMonth() === d2.getMonth());\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month, date?\n */\n isSameDate: function(d1, d2) {\n var sameMonth = datetime.isSameMonth(d1, d2);\n\n return sameMonth && (d1.getDate() === d2.getDate());\n },\n\n /**\n * Check supplied parameter is valid date object.\n * @param {*} d Object to validate.\n * @returns {boolean} return true when parameter is valid date object.\n */\n isValid: function(d) {\n if (d instanceof TZDate) {\n return !window.isNaN(d.getTime());\n }\n\n return false;\n },\n\n /**\n * convert non local date to UTC date.\n * @param {TZDate} d Date to convert UTC.\n * @returns {TZDate} The UTC Date.\n */\n toUTC: function(d) {\n var l = d.getTime(),\n offset = datetime.millisecondsFrom('minutes', new Date().getTimezoneOffset());\n\n return new TZDate(l + offset);\n },\n\n /**\n * pad left zero characters.\n * @param {number} number number value to pad zero.\n * @param {number} length pad length to want.\n * @returns {string} padded string.\n */\n leadingZero: function(number, length) {\n var zero = '',\n i = 0;\n\n if (String(number).length > length) {\n return String(number);\n }\n\n for (; i < (length - 1); i += 1) {\n zero += '0';\n }\n\n return (zero + number).slice(length * -1);\n },\n\n /**\n * Convert date string to date object.\n *\n * Only listed below formats avaliable.\n *\n * - YYYYMMDD\n * - YYYY/MM/DD\n * - YYYY-MM-DD\n * - YYYY/MM/DD HH:mm:SS\n * - YYYY-MM-DD HH:mm:SS\n *\n * @param {string} str Formatted string.\n * @param {number} [fixMonth=-1] - number for fix month calculating.\n * @returns {(TZDate|boolean)} Converted Date object. when supplied str is not available then return false.\n */\n parse: function(str, fixMonth) {\n var separator,\n matches = str.match(dateFormatRx),\n ymd,\n hms;\n\n if (util.isUndefined(fixMonth)) {\n fixMonth = -1;\n }\n\n if (!matches) {\n return false;\n }\n\n if (str.length > 8) {\n // YYYY/MM/DD\n // YYYY-MM-DD\n // YYYY/MM/DD HH:mm:SS\n // YYYY-MM-DD HH:mm:SS\n separator = ~str.indexOf('/') ? '/' : '-';\n matches = matches.splice(1);\n\n ymd = matches[0].split(separator);\n hms = matches[1] ? matches[1].split(':') : [0, 0, 0];\n } else {\n // YYYYMMDD\n matches = matches[0];\n ymd = [matches.substr(0, 4), matches.substr(4, 2), matches.substr(6, 2)];\n hms = [0, 0, 0];\n }\n\n return new TZDate().setWithRaw(\n Number(ymd[0]),\n Number(ymd[1]) + fixMonth,\n Number(ymd[2]),\n Number(hms[0]),\n Number(hms[1]),\n Number(hms[2]),\n 0\n );\n },\n\n /**\n * Return date object from Date.\n * @param {TZDate} date date\n * @returns {object} Date object.\n */\n raw: function(date) {\n return {\n y: date.getFullYear(),\n M: date.getMonth(),\n d: date.getDate(),\n h: date.getHours(),\n m: date.getMinutes(),\n s: date.getSeconds(),\n ms: date.getMilliseconds()\n };\n },\n\n /**\n * Return 00:00:00 supplied date.\n * @param {TZDate} date date. if undefined, use now.\n * @returns {TZDate} start date.\n */\n start: function(date) {\n var d = date ? new TZDate(date) : new TZDate();\n d.setHours(0, 0, 0, 0);\n\n return d;\n },\n\n /**\n * Return 23:59:59 supplied date.\n * @param {TZDate} date date. if undefined, use now.\n * @returns {TZDate} end date.\n */\n end: function(date) {\n var d = date ? new TZDate(date) : new TZDate();\n d.setHours(23, 59, 59, 0);\n\n return d;\n },\n\n /**\n * Return formatted string as basis of supplied string.\n *\n * Supported Token Lists.\n *\n * - YYYY => 1988\n * - MM => 01 ~ 12\n * - DD => 01 ~ 31\n * - YYYYMMDD => 19880925\n * @param {TZDate} date String want to formatted.\n * @param {string} format format str.\n * @returns {string} Formatted date string.\n */\n format: function(date, format) {\n var result = format;\n util.forEachOwnProperties(tokenFunc, function(converter, token) {\n result = result.replace(token, converter(date));\n });\n\n return result;\n },\n\n /**\n * Get start date of specific month\n * @param {TZDate} date - date to get start date\n * @returns {TZDate} start date of supplied month\n */\n startDateOfMonth: function(date) {\n var startDate = new TZDate(date);\n\n startDate.setDate(1);\n startDate.setHours(0, 0, 0, 0);\n\n return startDate;\n },\n\n /**\n * Get end date of specific month\n * @param {TZDate} date - date to get end date\n * @returns {TZDate} end date of supplied month\n */\n endDateOfMonth: function(date) {\n var endDate = datetime.startDateOfMonth(date);\n\n endDate.setMonth(endDate.getMonth() + 1);\n endDate.setDate(endDate.getDate() - 1);\n endDate.setHours(23, 59, 59);\n\n return endDate;\n },\n\n /**\n * Return 2-dimensional array month calendar\n *\n * dates that different month with given date are negative values\n * @param {TZDate} month - date want to calculate month calendar\n * @param {object} options - options\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {boolean} options.isAlways6Week - whether the number of weeks are always 6\n * @param {number} options.visibleWeeksCount visible weeks count\n * @param {boolean} options.workweek - only show work week\n * @param {function} [iteratee] - iteratee for customizing calendar object\n * @returns {Array.} calendar 2d array\n */\n arr2dCalendar: function(month, options, iteratee) {\n var weekArr,\n start, end,\n startIndex, endIndex,\n totalDate, afterDates,\n cursor, week,\n calendar = [],\n startDayOfWeek = options.startDayOfWeek,\n isAlways6Week = util.isUndefined(options.isAlways6Week) ? true : options.isAlways6Week,\n visibleWeeksCount = options.visibleWeeksCount,\n workweek = options.workweek;\n\n if (visibleWeeksCount) {\n start = new TZDate(month);\n end = dw(new TZDate(month));\n end.addDate(7 * (visibleWeeksCount - 1));\n end = end.d;\n } else {\n start = datetime.startDateOfMonth(month);\n end = datetime.endDateOfMonth(month);\n }\n\n // create day number array by startDayOfWeek number\n // 4 -> [4, 5, 6, 0, 1, 2, 3]\n // 2 -> [2, 3, 4, 5, 6, 0, 1]\n weekArr = util.range(startDayOfWeek, 7).concat(util.range(7)).slice(0, 7);\n startIndex = util.inArray(start.getDay(), weekArr);\n endIndex = util.inArray(end.getDay(), weekArr);\n // free dates after last date of this month\n afterDates = 7 - (endIndex + 1);\n\n if (visibleWeeksCount) {\n totalDate = 7 * visibleWeeksCount;\n } else {\n totalDate = isAlways6Week ? (7 * 6) : (startIndex + end.getDate() + afterDates);\n }\n cursor = datetime.start(start).addDate(-startIndex);\n // iteratee all dates to render\n util.forEachArray(util.range(totalDate), function(i) {\n var date;\n\n if (!(i % 7)) {\n // group each date by week\n week = calendar[i / 7] = [];\n }\n\n date = datetime.start(cursor);\n date = iteratee ? iteratee(date) : date;\n if (!workweek || !datetime.isWeekend(date.getDay())) {\n week.push(date);\n }\n\n // add date\n cursor.setDate(cursor.getDate() + 1);\n });\n\n return calendar;\n },\n\n /**\n * Calculate grid left(%), width(%) by narrowWeekend, startDayOfWeek, workweek\n *\n * @param {number} days - day length of week\n * @param {boolean} narrowWeekend - narrow weekend\n * @param {number} startDayOfWeek - start day of week\n * @param {boolean} workweek - only show work week\n * @returns {Array} day, left, width\n */\n getGridLeftAndWidth: function(days, narrowWeekend, startDayOfWeek, workweek) {\n var limitDaysToApplyNarrowWeekend = 5;\n var uniformWidth = 100 / days;\n var wideWidth = days > limitDaysToApplyNarrowWeekend ? 100 / (days - 1) : uniformWidth;\n var accumulatedWidth = 0;\n var dates = util.range(startDayOfWeek, 7).concat(util.range(days)).slice(0, 7);\n\n if (workweek) {\n dates = util.filter(dates, function(day) {\n return !datetime.isWeekend(day);\n });\n }\n\n narrowWeekend = workweek ? false : narrowWeekend;\n\n return util.map(dates, function(day) {\n var model;\n var width = narrowWeekend ? wideWidth : uniformWidth;\n if (days > limitDaysToApplyNarrowWeekend && narrowWeekend && datetime.isWeekend(day)) {\n width = wideWidth / 2;\n }\n\n model = {\n day: day,\n width: width,\n left: accumulatedWidth\n };\n\n accumulatedWidth += width;\n\n return model;\n });\n },\n\n /**\n * Get that day is weekend\n * @param {number} day number\n * @returns {boolean} true if weekend or false\n */\n isWeekend: function(day) {\n return day === 0 || day === 6;\n },\n\n /**\n * Whether date is between supplied dates with date value?\n * @param {TZDate} d - target date\n * @param {TZDate} d1 - from date\n * @param {TZDate} d2 - to date\n * @returns {boolean} is between?\n */\n isBetweenWithDate: function(d, d1, d2) {\n var format = 'YYYYMMDD';\n d = parseInt(datetime.format(d, format), 10);\n d1 = parseInt(datetime.format(d1, format), 10);\n d2 = parseInt(datetime.format(d2, format), 10);\n\n return d1 <= d && d <= d2;\n },\n\n isStartOfDay: function(d) {\n return !datetime.compare(datetime.start(d), d);\n },\n\n convertStartDayToLastDay: function(d) {\n var date = new TZDate(d);\n if (datetime.isStartOfDay(d)) {\n date.setDate(date.getDate() - 1);\n }\n\n return date;\n },\n\n getStartOfNextDay: function(d) {\n var date = datetime.start(d);\n date.setHours(24);\n\n return date;\n }\n};\n\nmodule.exports = datetime;\n","/**\n * @fileoverview timezone\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar MIN_TO_MS = 60 * 1000;\nvar nativeOffsetMs = getTimezoneOffset();\nvar customOffsetMs = nativeOffsetMs;\nvar timezoneOffsetCallback = null;\nvar setByTimezoneOption = false;\n\nvar getterMethods = [\n 'getDate',\n 'getDay',\n 'getFullYear',\n 'getHours',\n 'getMilliseconds',\n 'getMinutes',\n 'getMonth',\n 'getSeconds'\n];\n\nvar setterMethods = [\n 'setDate',\n 'setFullYear',\n 'setHours',\n 'setMilliseconds',\n 'setMinutes',\n 'setMonth',\n 'setSeconds'\n];\n\n/**\n * Get the timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n * @private\n */\nfunction getTimezoneOffset(timestamp) {\n timestamp = timestamp || Date.now();\n\n return new Date(timestamp).getTimezoneOffset() * MIN_TO_MS;\n}\n\n/**\n * Get the custome timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n * @private\n */\nfunction getCustomTimezoneOffset(timestamp) {\n if (!setByTimezoneOption && timezoneOffsetCallback) {\n return timezoneOffsetCallback(timestamp) * MIN_TO_MS;\n }\n\n return customOffsetMs;\n}\n\n/**\n * Convert to local time\n * @param {number} time - time\n * @returns {number} local time\n */\nfunction getLocalTime(time) {\n var timezoneOffset = getTimezoneOffset(time);\n var customTimezoneOffset = getCustomTimezoneOffset(time);\n var timezoneOffsetDiff = customTimezoneOffset ? 0 : nativeOffsetMs - timezoneOffset;\n var localTime = time - customTimezoneOffset + timezoneOffset + timezoneOffsetDiff;\n\n return localTime;\n}\n\n/**\n * Create a Date instance with multiple arguments\n * @param {Array} args - arguments\n * @returns {Date}\n * @private\n */\nfunction createDateWithMultipleArgs(args) {\n var utc = Date.UTC.apply(null, args);\n\n return new Date(utc + getTimezoneOffset(utc));\n}\n\n/**\n * To convert a Date to TZDate as it is.\n * @param {TZDate|number|null} arg - date\n * @returns {Date}\n */\nfunction createDateWithUTCTime(arg) {\n var time;\n\n if (arg instanceof TZDate) {\n time = arg.getUTCTime();\n } else if ((typeof arg) === 'number') {\n time = arg;\n } else if (arg === null) {\n time = 0;\n } else {\n throw new Error('Invalid Type');\n }\n\n return new Date(time);\n}\n\n/**\n * Convert time to local time. Those times are only from API and not from inner source code.\n * @param {Date|string} arg - date\n * @returns {Date}\n */\nfunction createDateAsLocalTime(arg) {\n var time;\n\n if (arg instanceof Date) {\n time = arg.getTime();\n } else if ((typeof arg) === 'string') {\n time = Date.parse(arg);\n } else {\n throw new Error('Invalid Type');\n }\n\n time = getLocalTime(time);\n\n return new Date(time);\n}\n\n/**\n * is it for local time? These type can be used from Calendar API.\n * @param {Date|string} arg - date\n * @returns {boolean}\n */\nfunction useLocalTimeConverter(arg) {\n return arg instanceof Date || (typeof arg) === 'string';\n}\n\n/**\n * Timezone Date Class\n * @param {number|TZDate|Date|string} date - date to be converted\n * @constructor\n */\nfunction TZDate(date) {\n var nativeDate;\n\n if (util.isUndefined(date)) {\n date = Date.now();\n }\n\n if (arguments.length > 1) {\n nativeDate = createDateWithMultipleArgs(arguments);\n } else if (useLocalTimeConverter(date)) {\n nativeDate = createDateAsLocalTime(date);\n } else {\n nativeDate = createDateWithUTCTime(date);\n }\n\n this._date = nativeDate;\n}\n\n/**\n * Get milliseconds which is converted by timezone\n * @returns {number} milliseconds\n */\nTZDate.prototype.getTime = function() {\n var time = this._date.getTime();\n\n return time + getCustomTimezoneOffset(time) - getTimezoneOffset(time);\n};\n\n/**\n * Get UTC milliseconds\n * @returns {number} milliseconds\n */\nTZDate.prototype.getUTCTime = function() {\n return this._date.getTime();\n};\n\n/**\n * toUTCString\n * @returns {string}\n */\nTZDate.prototype.toUTCString = function() {\n return this._date.toUTCString();\n};\n\n/**\n * to Date\n * @returns {Date}\n */\nTZDate.prototype.toDate = function() {\n return this._date;\n};\n\nTZDate.prototype.valueOf = function() {\n return this.getTime();\n};\n\nTZDate.prototype.addDate = function(day) {\n this.setDate(this.getDate() + day);\n\n return this;\n};\n\nTZDate.prototype.addMinutes = function(minutes) {\n this.setMinutes(this.getMinutes() + minutes);\n\n return this;\n};\n\nTZDate.prototype.addMilliseconds = function(milliseconds) {\n this.setMilliseconds(this.getMilliseconds() + milliseconds);\n\n return this;\n};\n\n/* eslint-disable max-params*/\nTZDate.prototype.setWithRaw = function(y, M, d, h, m, s, ms) {\n this.setFullYear(y, M, d);\n this.setHours(h, m, s, ms);\n\n return this;\n};\n\n/**\n * @returns {TZDate} local time\n */\nTZDate.prototype.toLocalTime = function() {\n var time = this.getTime();\n var utcTime = this.getUTCTime();\n var diff = time - utcTime;\n\n return new TZDate(utcTime - diff);\n};\n\ngetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n return this._date[methodName].apply(this._date, arguments);\n };\n});\n\nsetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n this._date[methodName].apply(this._date, arguments);\n\n return this.getTime();\n };\n});\n\nmodule.exports = {\n Date: TZDate,\n\n /**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\n setOffset: function(offset) {\n customOffsetMs = offset * MIN_TO_MS;\n },\n\n /**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\n setOffsetByTimezoneOption: function(offset) {\n this.setOffset(-offset);\n setByTimezoneOption = true;\n },\n\n /**\n * Get offset in case of `setByTimezoneOption`. Or return 0.\n * @returns {number} timezone offset offset minutes\n */\n getOffset: function() {\n if (setByTimezoneOption) {\n return customOffsetMs / MIN_TO_MS;\n }\n\n return 0;\n },\n\n /**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - callback function\n */\n setOffsetCallback: function(callback) {\n timezoneOffsetCallback = callback;\n },\n\n /**\n * (Use this method only for testing)\n * Reset system timezone and custom timezone\n */\n restoreOffset: function() {\n customOffsetMs = getTimezoneOffset();\n }\n};\n","/**\n * @fileoverview common/general utilities.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar aps = Array.prototype.slice;\n\nvar domutil = require('../common/domutil'),\n Collection = require('../common/collection');\nvar datetime = require('../common/datetime');\n\n/**\n * Default schedule id getter for collection\n * @param {Schedule} schedule - schedule instance\n * @returns {string} schedule id\n */\nfunction scheduleIDGetter(schedule) {\n return schedule.cid();\n}\n\nmodule.exports = {\n /**\n * @param {...*} initItems - items to add newly created collection.\n * @returns {Collection} new collection for schedule models.\n */\n createScheduleCollection: function(initItems) { // eslint-disable-line\n var collection = new Collection(scheduleIDGetter);\n\n if (arguments.length) {\n collection.add.apply(collection, arguments);\n }\n\n return collection;\n },\n\n /**\n * Get ratio value.\n *\n * a : b = y : X;\n *\n * =\n *\n * X = (b * y) / a;\n * @param {number} a - a\n * @param {number} b - b\n * @param {number} y - y\n * @returns {number} ratio value\n */\n ratio: function(a, b, y) {\n // a : b = y : x;\n return (b * y) / a;\n },\n\n /**\n * Find nearest value from supplied params.\n * @param {number} value - value to find.\n * @param {array} nearest - nearest array.\n * @returns {number} nearest value\n */\n nearest: function(value, nearest) {\n var diff = util.map(nearest, function(v) {\n return Math.abs(value - v);\n }),\n nearestIndex = util.inArray(Math.min.apply(null, diff), diff);\n\n return nearest[nearestIndex];\n },\n\n /**\n * pick value from object then return utility object to treat it.\n * @param {object} obj - object to search supplied path property.\n * @param {...string} paths - rest parameter that string value to search property in object.\n * @returns {object} pick object.\n */\n pick2: function(obj, paths) { // eslint-disable-line\n var result = util.pick.apply(null, arguments),\n pick;\n\n pick = {\n /**\n * @returns {*} picked value.\n */\n val: function() {\n return result;\n },\n\n /**\n * invoke supplied function in picked object.\n *\n * the callback context is set picked object.\n * @param {string|function} fn - function to invoke in picked object.\n * @returns {*} result of invoke.\n */\n then: function(fn) {\n var args;\n\n if (!result) {\n return undefined; //eslint-disable-line\n }\n\n args = aps.call(arguments, 1);\n\n if (util.isString(fn)) {\n return (util.pick(result, fn) || function() {}).apply(result, args);\n }\n\n return fn.call(result, result);\n }\n };\n\n return pick;\n },\n\n /**\n * Mixin method.\n *\n * (extend methods except property name 'mixin')\n * @param {object} from - mixin object.\n * @param {object} to - object to mixin.\n */\n mixin: function(from, to) {\n util.extend(to.prototype, from);\n },\n\n /**\n * Limit supplied value base on `minArr`, `maxArr`\n * @param {number} value - value\n * @param {array} minArr - min\n * @param {array} maxArr - max\n * @returns {number} limited value\n */\n limit: function(value, minArr, maxArr) {\n var v = Math.max.apply(null, [value].concat(minArr));\n v = Math.min.apply(null, [v].concat(maxArr));\n\n return v;\n },\n\n /**\n * Limit supplied date base on `min`, `max`\n * @param {TZDate} date - date\n * @param {TZDate} min - min\n * @param {TZDate} max - max\n * @returns {TZDate} limited value\n */\n limitDate: function(date, min, max) {\n if (date < min) {\n return min;\n }\n if (date > max) {\n return max;\n }\n\n return date;\n },\n\n /**\n * Max value with TZDate type for timezone calculation\n * @param {TZDate} d1 - date 1\n * @param {TZDate} d2 - date 2\n * @returns {TZDate}\n */\n maxDate: function(d1, d2) {\n if (d1 > d2) {\n return d1;\n }\n\n return d2;\n },\n\n stripTags: function(str) {\n return str.replace(/<([^>]+)>/ig, '');\n },\n\n /**\n * Get first value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} first value in 2d array\n */\n firstIn2dArray: function(arr2d) {\n return util.pick(arr2d, '0', '0');\n },\n\n /**\n * Get last value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} last value in 2d array\n */\n lastIn2dArray: function(arr2d) {\n var lastRow = arr2d.length - 1,\n lastCol = arr2d[lastRow].length - 1;\n\n return util.pick(arr2d, lastRow, lastCol);\n },\n\n /**\n * Set 'title' attribute for all element that has exceeded content in\n * container\n * @param {string} selector - CSS selector {@see domutil#find}\n * @param {HTMLElement} container - container element\n * @param {boolean} force - force to apply\n */\n setAutoEllipsis: function(selector, container, force) {\n util.forEach(domutil.find(selector, container, true), function(el) {\n if (force || el.offsetWidth < el.scrollWidth) {\n el.setAttribute('title', domutil.getData(el, 'title'));\n }\n });\n },\n\n /**\n * Set the value at path of object.\n * @param {object} object - the object to modify\n * @param {string} path -the path of property to set\n * @param {*} value - the value to set\n */\n set: function(object, path, value) {\n var names = path.split('.');\n var store = object;\n\n util.forEach(names, function(name, index) {\n store[name] = store[name] || {};\n\n if (index === names.length - 1) {\n store[name] = value;\n } else {\n store = store[name];\n }\n });\n },\n\n /**\n * shift a array\n * @param {Array.} array - array\n * @param {number} shift - positive or negative integer to shift\n * @returns {Array.} shifted array\n */\n shiftArray: function(array, shift) {\n var length = Math.abs(shift);\n var i;\n\n if (shift > 0) {\n for (i = 0; i < length; i += 1) {\n array.push(array.shift());\n }\n } else if (shift < 0) {\n for (i = 0; i < length; i += 1) {\n array.unshift(array.pop());\n }\n }\n\n return array;\n },\n\n /**\n * take elements from array between start and end.\n * @param {Array.} array - array\n * @param {number} start - start index\n * @param {number} end - end index\n * @returns {Array.}\n */\n takeArray: function(array, start, end) {\n var length = array.length;\n var rightCount = length - end;\n var leftCount = start;\n\n // remove right\n array.splice(end, rightCount);\n // remove left\n array.splice(0, leftCount);\n\n return array;\n },\n\n /**\n * shift hours\n * @param {number} hours - hours\n * @param {number} shift - positive or negative integer to shift\n * @returns {number} shifted hours\n */\n shiftHours: function(hours, shift) {\n if (shift > 0) {\n hours = (hours + shift) % 24;\n } else if (shift < 0) {\n hours += shift;\n hours = hours > 0 ? hours : 24 + hours;\n }\n\n return hours;\n },\n\n /**\n * Parse css value into number and units\n * @param {string} cssValue - css value like '72px'\n * @returns {Array} [number, unit]\n */\n parseUnit: function(cssValue) {\n var number = parseFloat(cssValue, 10);\n var unit = cssValue.match(/[\\d.\\-+]*\\s*(.*)/)[1] || '';\n\n return [number, unit];\n },\n\n find: function(array, iteratee, contextopt) {\n var found;\n\n util.forEach(array, function(item) {\n if (iteratee) {\n found = iteratee(item);\n }\n\n if (found) {\n found = item;\n\n return false;\n }\n\n return true;\n }, contextopt);\n\n return found;\n },\n\n getScheduleChanges: function(schedule, propNames, data) {\n var changes = {};\n var dateProps = ['start', 'end'];\n\n util.forEach(propNames, function(propName) {\n if (dateProps.indexOf(propName) > -1) {\n if (datetime.compare(schedule[propName], data[propName])) {\n changes[propName] = data[propName];\n }\n } else if (data[propName] && schedule[propName] !== data[propName]) {\n changes[propName] = data[propName];\n }\n });\n\n return util.isEmpty(changes) ? null : changes;\n }\n};\n","/* eslint complexity: 0 */\n/**\n * @fileoverview Utility module for handling DOM events.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar browser = util.browser,\n eventKey = '_evt',\n DRAG = {\n START: ['touchstart', 'mousedown'],\n END: {\n mousedown: 'mouseup',\n touchstart: 'touchend',\n pointerdown: 'touchend',\n MSPointerDown: 'touchend'\n },\n MOVE: {\n mousedown: 'mousemove',\n touchstart: 'touchmove',\n pointerdown: 'touchmove',\n MSPointerDown: 'touchmove'\n }\n };\n\nvar domevent = {\n /**\n * Bind dom events.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n on: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._on(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._on(obj, type, handler, fn);\n });\n },\n\n /**\n * DOM event binding.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {String} type The name of events.\n * @param {*} fn handler function\n * @param {*} [context] context object for handler method.\n * @private\n */\n _on: function(obj, type, fn, context) {\n var id,\n handler,\n originHandler;\n\n id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : '');\n\n if (obj[eventKey] && obj[eventKey][id]) {\n return;\n }\n\n handler = function(e) {\n fn.call(context || obj, e || window.event);\n };\n\n originHandler = handler;\n\n if ('addEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n handler = function(e) {\n e = e || window.event;\n if (!domevent._checkMouse(obj, e)) {\n return;\n }\n originHandler(e);\n };\n obj.addEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.addEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.addEventListener(type, handler, false);\n }\n } else if ('attachEvent' in obj) {\n obj.attachEvent('on' + type, handler);\n }\n\n obj[eventKey] = obj[eventKey] || {};\n obj[eventKey][id] = handler;\n },\n\n /**\n * Unbind DOM Event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n off: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._off(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._off(obj, type, handler, fn);\n });\n },\n\n /**\n * Unbind DOM event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {String} type The name of event to unbind.\n * @param {function()} fn Event handler that supplied when binding.\n * @param {*} context context object that supplied when binding.\n * @private\n */\n _off: function(obj, type, fn, context) {\n var id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : ''),\n handler = obj[eventKey] && obj[eventKey][id];\n\n if (!handler) {\n return;\n }\n\n if ('removeEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n obj.removeEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.removeEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.removeEventListener(type, handler, false);\n }\n } else if ('detachEvent' in obj) {\n try {\n obj.detachEvent('on' + type, handler);\n } catch (e) {} //eslint-disable-line\n }\n\n delete obj[eventKey][id];\n\n if (util.keys(obj[eventKey]).length) {\n return;\n }\n\n // throw exception when deleting host object's property in below IE8\n if (util.browser.msie && util.browser.version < 9) {\n obj[eventKey] = null;\n\n return;\n }\n\n delete obj[eventKey];\n },\n\n /**\n * Bind DOM event. this event will unbind after invokes.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n once: function(obj, types, fn, context) {\n var self = this;\n\n if (util.isObject(types)) {\n util.forEachOwnProperties(types, function(handler, type) {\n domevent.once(obj, type, handler, fn);\n });\n\n return;\n }\n\n /**\n * Handler for temporary usage for once implementation\n */\n function onceHandler() {\n fn.apply(context || obj, arguments);\n self._off(obj, types, onceHandler, context);\n }\n\n domevent.on(obj, types, onceHandler, context);\n },\n\n /**\n * Cancel event bubbling.\n * @param {Event} e Event object.\n */\n stopPropagation: function(e) {\n if (e.stopPropagation) {\n e.stopPropagation();\n } else {\n e.cancelBubble = true;\n }\n },\n\n /**\n * Cancel browser default actions.\n * @param {Event} e Event object.\n */\n preventDefault: function(e) {\n if (e.preventDefault) {\n e.preventDefault();\n } else {\n e.returnValue = false;\n }\n },\n\n /**\n * Syntatic sugar of stopPropagation and preventDefault\n * @param {Event} e Event object.\n */\n stop: function(e) {\n domevent.preventDefault(e);\n domevent.stopPropagation(e);\n },\n\n /**\n * Stop scroll events.\n * @param {HTMLElement} el HTML element to prevent scroll.\n */\n disableScrollPropagation: function(el) {\n domevent.on(el, 'mousewheel MozMousePixelScroll', domevent.stopPropagation);\n },\n\n /**\n * Stop all events related with click.\n * @param {HTMLElement} el HTML element to prevent all event related with click.\n */\n disableClickPropagation: function(el) {\n domevent.on(el, DRAG.START.join(' ') + ' click dblclick', domevent.stopPropagation);\n },\n\n /**\n * Get mouse position from mouse event.\n *\n * If supplied relatveElement parameter then return relative position based on element.\n * @param {Event} mouseEvent Mouse event object\n * @param {HTMLElement} relativeElement HTML element that calculate relative position.\n * @returns {number[]} mouse position.\n */\n getMousePosition: function(mouseEvent, relativeElement) {\n var rect;\n\n if (!relativeElement) {\n return [mouseEvent.clientX, mouseEvent.clientY];\n }\n\n rect = relativeElement.getBoundingClientRect();\n\n return [\n mouseEvent.clientX - rect.left - relativeElement.clientLeft,\n mouseEvent.clientY - rect.top - relativeElement.clientTop\n ];\n },\n\n /**\n * Normalize mouse wheel event that different each browsers.\n * @param {MouseEvent} e Mouse wheel event.\n * @returns {Number} delta\n */\n getWheelDelta: function(e) {\n var delta = 0;\n\n if (e.wheelDelta) {\n delta = e.wheelDelta / 120;\n }\n\n if (e.detail) {\n delta = -e.detail / 3;\n }\n\n return delta;\n },\n\n /**\n * prevent firing mouseleave event when mouse entered child elements.\n * @param {HTMLElement} el HTML element\n * @param {MouseEvent} e Mouse event\n * @returns {Boolean} leave?\n * @private\n */\n _checkMouse: function(el, e) {\n var related = e.relatedTarget;\n\n if (!related) {\n return true;\n }\n\n try {\n while (related && (related !== el)) {\n related = related.parentNode;\n }\n } catch (err) {\n return false;\n }\n\n return (related !== el);\n },\n\n /**\n * Trigger specific events to html element.\n * @param {HTMLElement} obj HTMLElement\n * @param {string} type Event type name\n * @param {object} [eventData] Event data\n */\n trigger: function(obj, type, eventData) {\n var rMouseEvent = /(mouse|click)/;\n if (util.isUndefined(eventData) && rMouseEvent.exec(type)) {\n eventData = domevent.mouseEvent(type);\n }\n\n if (obj.dispatchEvent) {\n obj.dispatchEvent(eventData);\n } else if (obj.fireEvent) {\n obj.fireEvent('on' + type, eventData);\n }\n },\n\n /**\n * Create virtual mouse event.\n *\n * Tested at\n *\n * - IE7 ~ IE11\n * - Chrome\n * - Firefox\n * - Safari\n * @param {string} type Event type\n * @param {object} [eventObj] Event data\n * @returns {MouseEvent} Virtual mouse event.\n */\n mouseEvent: function(type, eventObj) {\n var evt,\n e;\n\n e = util.extend({\n bubbles: true,\n cancelable: (type !== 'mousemove'),\n view: window,\n wheelDelta: 0,\n detail: 0,\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n ctrlKey: false,\n altKey: false,\n shiftKey: false,\n metaKey: false,\n button: 0,\n relatedTarget: undefined // eslint-disable-line\n }, eventObj);\n\n // prevent throw error when inserting wheelDelta property to mouse event on below IE8\n if (browser.msie && browser.version < 9) {\n delete e.wheelDelta;\n }\n\n if (typeof document.createEvent === 'function') {\n evt = document.createEvent('MouseEvents');\n evt.initMouseEvent(type,\n e.bubbles, e.cancelable, e.view, e.detail,\n e.screenX, e.screenY, e.clientX, e.clientY,\n e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\n e.button, document.body.parentNode\n );\n } else if (document.createEventObject) {\n evt = document.createEventObject();\n\n util.forEach(e, function(value, propName) {\n evt[propName] = value;\n }, this);\n evt.button = {0: 1,\n 1: 4,\n 2: 2}[evt.button] || evt.button;\n }\n\n return evt;\n },\n\n /**\n * Normalize mouse event's button attributes.\n *\n * Can detect which button is clicked by this method.\n *\n * Meaning of return numbers\n *\n * - 0: primary mouse button\n * - 1: wheel button or center button\n * - 2: secondary mouse button\n * @param {MouseEvent} mouseEvent - The mouse event object want to know.\n * @returns {number} - The value of meaning which button is clicked?\n */\n getMouseButton: function(mouseEvent) {\n var button,\n primary = '0,1,3,5,7',\n secondary = '2,6',\n wheel = '4';\n\n /* istanbul ignore else */\n if (document.implementation.hasFeature('MouseEvents', '2.0')) {\n return mouseEvent.button;\n }\n\n button = String(mouseEvent.button);\n if (primary.indexOf(button) > -1) {\n return 0;\n }\n if (secondary.indexOf(button) > -1) {\n return 2;\n }\n if (~wheel.indexOf(button)) {\n return 1;\n }\n\n return -1;\n }\n};\n\nmodule.exports = domevent;\n","// Create a simple path alias to allow browserify to resolve\n// the runtime on a supported path.\nmodule.exports = require('./dist/cjs/handlebars.runtime')['default'];\n","/**\n * @fileoverview The base class of views.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\n\n/**\n * Base class of views.\n *\n * All views create own container element inside supplied container element.\n * @constructor\n * @param {HTMLElement} container Default container element for view.\n * you can use this element for this.container syntax.\n */\nfunction View(container) {\n var id = util.stamp(this);\n\n if (util.isUndefined(container)) {\n container = domutil.appendHTMLElement('div');\n }\n\n domutil.addClass(container, this.cssprefix(id));\n\n /**\n * unique id\n * @type {number}\n */\n this.id = id;\n\n /**\n * base element of view.\n * @type {HTMLDIVElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * child views.\n * @type {Collection}\n */\n this.children = new Collection(function(view) {\n return util.stamp(view);\n });\n /* eslint-enable*/\n\n /**\n * parent view instance.\n * @type {View}\n */\n this.parent = null;\n\n /**\n * state of view\n */\n this.state = {};\n}\n\n/**\n * CSS classname prefix\n * @type {string}\n */\nView.prototype.cssPrefix = 'tui-view-';\n\n/**\n * Add child views.\n * @param {View} view The view instance to add.\n * @param {function} [fn] Function for invoke before add. parent view class is supplied first arguments.\n */\nView.prototype.addChild = function(view, fn) {\n if (fn) {\n fn.call(view, this);\n }\n // add parent view\n view.parent = this;\n\n this.children.add(view);\n};\n\n/**\n * Remove added child view.\n * @param {(number|View)} id View id or instance itself to remove.\n * @param {function} [fn] Function for invoke before remove. parent view class is supplied first arguments.\n */\nView.prototype.removeChild = function(id, fn) {\n var view = util.isNumber(id) ? this.children.items[id] : id;\n\n id = util.stamp(view);\n\n if (fn) {\n fn.call(view, this);\n }\n\n this.children.remove(id);\n};\n\n/**\n * Render view recursively.\n */\nView.prototype.render = function() {\n this.children.each(function(childView) {\n childView.render();\n });\n};\n\n/**\n * Invoke function recursively.\n * @param {function} fn - function to invoke child view recursively\n * @param {boolean} [skipThis=false] - set true then skip invoke with this(root) view.\n */\nView.prototype.recursive = function(fn, skipThis) {\n if (!util.isFunction(fn)) {\n return;\n }\n\n if (!skipThis) {\n fn(this);\n }\n\n this.children.each(function(childView) {\n childView.recursive(fn);\n });\n};\n\n/**\n * Resize view recursively to parent.\n */\nView.prototype.resize = function() {\n var args = Array.prototype.slice.call(arguments),\n parent = this.parent;\n\n while (parent) {\n if (util.isFunction(parent._onResize)) {\n parent._onResize.apply(parent, args);\n }\n\n parent = parent.parent;\n }\n};\n\n/**\n * Invoking method before destroying.\n */\nView.prototype._beforeDestroy = function() {};\n\n/**\n * Clear properties\n */\nView.prototype._destroy = function() {\n this._beforeDestroy();\n this.children.clear();\n this.container.innerHTML = '';\n\n this.id = this.parent = this.children = this.container = null;\n};\n\n/*eslint-disable*/\n/**\n * Destroy child view recursively.\n */\nView.prototype.destroy = function(isChildView) {\n this.children.each(function(childView) {\n childView.destroy(true);\n childView._destroy();\n });\n\n if (isChildView) {\n return;\n }\n\n this._destroy();\n};\n/* eslint-enable*/\n\n/**\n * Calculate view's container element bound.\n * @returns {object} The bound of container element.\n */\nView.prototype.getViewBound = function() {\n var container = this.container,\n position = domutil.getPosition(container),\n size = domutil.getSize(container);\n\n return {\n x: position[0],\n y: position[1],\n width: size[0],\n height: size[1]\n };\n};\n\n/**\n * Return view default CSS prefix\n * @param {string} [className] - if supplied then return prefix added class name\n * @returns {string} CSS prefix value\n */\nView.prototype.cssprefix = function(className) {\n return this.cssPrefix + (className || '');\n};\n\n/**\n * set state\n * @param {object} state - state\n */\nView.prototype.setState = function(state) {\n util.extend(this.state, state);\n};\n\nutil.CustomEvents.mixin(View);\n\nmodule.exports = View;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","'use strict';\n\nexports.__esModule = true;\nexports.extend = extend;\nexports.indexOf = indexOf;\nexports.escapeExpression = escapeExpression;\nexports.isEmpty = isEmpty;\nexports.createFrame = createFrame;\nexports.blockParams = blockParams;\nexports.appendContextPath = appendContextPath;\nvar escape = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`',\n '=': '='\n};\n\nvar badChars = /[&<>\"'`=]/g,\n possible = /[&<>\"'`=]/;\n\nfunction escapeChar(chr) {\n return escape[chr];\n}\n\nfunction extend(obj /* , ...source */) {\n for (var i = 1; i < arguments.length; i++) {\n for (var key in arguments[i]) {\n if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {\n obj[key] = arguments[i][key];\n }\n }\n }\n\n return obj;\n}\n\nvar toString = Object.prototype.toString;\n\nexports.toString = toString;\n// Sourced from lodash\n// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt\n/* eslint-disable func-style */\nvar isFunction = function isFunction(value) {\n return typeof value === 'function';\n};\n// fallback for older versions of Chrome and Safari\n/* istanbul ignore next */\nif (isFunction(/x/)) {\n exports.isFunction = isFunction = function (value) {\n return typeof value === 'function' && toString.call(value) === '[object Function]';\n };\n}\nexports.isFunction = isFunction;\n\n/* eslint-enable func-style */\n\n/* istanbul ignore next */\nvar isArray = Array.isArray || function (value) {\n return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false;\n};\n\nexports.isArray = isArray;\n// Older IE versions do not directly support indexOf so we must implement our own, sadly.\n\nfunction indexOf(array, value) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (array[i] === value) {\n return i;\n }\n }\n return -1;\n}\n\nfunction escapeExpression(string) {\n if (typeof string !== 'string') {\n // don't escape SafeStrings, since they're already safe\n if (string && string.toHTML) {\n return string.toHTML();\n } else if (string == null) {\n return '';\n } else if (!string) {\n return string + '';\n }\n\n // Force a string conversion as this will be done by the append regardless and\n // the regex test will do this transparently behind the scenes, causing issues if\n // an object's to string has escaped characters in it.\n string = '' + string;\n }\n\n if (!possible.test(string)) {\n return string;\n }\n return string.replace(badChars, escapeChar);\n}\n\nfunction isEmpty(value) {\n if (!value && value !== 0) {\n return true;\n } else if (isArray(value) && value.length === 0) {\n return true;\n } else {\n return false;\n }\n}\n\nfunction createFrame(object) {\n var frame = extend({}, object);\n frame._parent = object;\n return frame;\n}\n\nfunction blockParams(params, ids) {\n params.path = ids;\n return params;\n}\n\nfunction appendContextPath(contextPath, id) {\n return (contextPath ? contextPath + '.' : '') + id;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFNLE1BQU0sR0FBRztBQUNiLEtBQUcsRUFBRSxPQUFPO0FBQ1osS0FBRyxFQUFFLE1BQU07QUFDWCxLQUFHLEVBQUUsTUFBTTtBQUNYLEtBQUcsRUFBRSxRQ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dWUpIHtcbiAgaWYgKCF2YWx1ZSAmJiB2YWx1ZSAhPT0gMCkge1xuICAgIHJldHVybiB0cnVlO1xuICB9IGVsc2UgaWYgKGlzQXJyYXkodmFsdWUpICYmIHZhbHVlLmxlbmd0aCA9PT0gMCkge1xuICAgIHJldHVybiB0cnVlO1xuICB9IGVsc2Uge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gY3JlYXRlRnJhbWUob2JqZWN0KSB7XG4gIGxldCBmcmFtZSA9IGV4dGVuZCh7fSwgb2JqZWN0KTtcbiAgZnJhbWUuX3BhcmVudCA9IG9iamVjdDtcbiAgcmV0dXJuIGZyYW1lO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYmxvY2tQYXJhbXMocGFyYW1zLCBpZHMpIHtcbiAgcGFyYW1zLnBhdGggPSBpZHM7XG4gIHJldHVybiBwYXJhbXM7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBhcHBlbmRDb250ZXh0UGF0aChjb250ZXh0UGF0aCwgaWQpIHtcbiAgcmV0dXJuIChjb250ZXh0UGF0aCA/IGNvbnRleHRQYXRoICsgJy4nIDogJycpICsgaWQ7XG59XG4iXX0=\n","/**\n * @fileoverview RequestAnimFrame\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar requestFn,\n cancelFn;\n\n/**\n * Get name with vendor prefix\n * @param {string} name - name to prepend prefix\n * @returns {string} vendor prefixed name\n */\nfunction getPrefixed(name) {\n return global['webkit' + name] || global['moz' + name] || global['ms' + name];\n}\n\nrequestFn = global.requestAnimationFrame ||\n getPrefixed('RequestAnimationFrame') ||\n function(fn, context) {\n fn.call(context);\n };\n\ncancelFn = global.cancelAnimationFrame ||\n getPrefixed('CancelAnimationFrame') ||\n getPrefixed('CancelRequestAnimationFrame') ||\n function() {};\n\n/**\n * @module module:reqAnimFrame\n */\n\nmodule.exports = {\n /**\n * Shim of requestAnimationFrame\n * @param {function} fn callback function\n * @param {*} context context for callback\n * @returns {number} Unique id\n */\n requestAnimFrame: function(fn, context) {\n return requestFn.call(global, util.bind(fn, context));\n },\n\n /**\n * Shim of cancelAnimationFrame\n * @param {number} id requestAnimationFrame id\n */\n cancelAnimFrame: function(id) {\n if (!id) {\n return;\n }\n\n cancelFn.call(global, id);\n }\n};\n","'use strict';\n\nexports.__esModule = true;\nvar errorProps = ['description', 'fileName', 'lineNumber', 'endLineNumber', 'message', 'name', 'number', 'stack'];\n\nfunction Exception(message, node) {\n var loc = node && node.loc,\n line = undefined,\n endLineNumber = undefined,\n column = undefined,\n endColumn = undefined;\n\n if (loc) {\n line = loc.start.line;\n endLineNumber = loc.end.line;\n column = loc.start.column;\n endColumn = loc.end.column;\n\n message += ' - ' + line + ':' + column;\n }\n\n var tmp = Error.prototype.constructor.call(this, message);\n\n // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n for (var idx = 0; idx < errorProps.length; idx++) {\n this[errorProps[idx]] = tmp[errorProps[idx]];\n }\n\n /* istanbul ignore else */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, Exception);\n }\n\n try {\n if (loc) {\n this.lineNumber = line;\n this.endLineNumber = endLineNumber;\n\n // Work around issue under safari where we can't directly set the column value\n /* istanbul ignore next */\n if (Object.defineProperty) {\n Object.defineProperty(this, 'column', {\n value: column,\n enumerable: true\n });\n Object.defineProperty(this, 'endColumn', {\n value: endColumn,\n enumerable: true\n });\n } else {\n this.column = column;\n this.endColumn = endColumn;\n }\n }\n } catch (nop) {\n /* Ignore if the browser is very particular */\n }\n}\n\nException.prototype = new Error();\n\nexports['default'] = Exception;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx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GVuZExpbmVOdW1iZXI7XG5cbiAgICAgIC8vIFdvcmsgYXJvdW5kIGlzc3VlIHVuZGVyIHNhZmFyaSB3aGVyZSB3ZSBjYW4ndCBkaXJlY3RseSBzZXQgdGhlIGNvbHVtbiB2YWx1ZVxuICAgICAgLyogaXN0YW5idWwgaWdub3JlIG5leHQgKi9cbiAgICAgIGlmIChPYmplY3QuZGVmaW5lUHJvcGVydHkpIHtcbiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMsICdjb2x1bW4nLCB7XG4gICAgICAgICAgdmFsdWU6IGNvbHVtbixcbiAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlXG4gICAgICAgIH0pO1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcywgJ2VuZENvbHVtbicsIHtcbiAgICAgICAgICB2YWx1ZTogZW5kQ29sdW1uLFxuICAgICAgICAgIGVudW1lcmFibGU6IHRydWVcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmNvbHVtbiA9IGNvbHVtbjtcbiAgICAgICAgdGhpcy5lbmRDb2x1bW4gPSBlbmRDb2x1bW47XG4gICAgICB9XG4gICAgfVxuICB9IGNhdGNoIChub3ApIHtcbiAgICAvKiBJZ25vcmUgaWYgdGhlIGJyb3dzZXIgaXMgdmVyeSBwYXJ0aWN1bGFyICovXG4gIH1cbn1cblxuRXhjZXB0aW9uLnByb3RvdHlwZSA9IG5ldyBFcnJvcigpO1xuXG5leHBvcnQgZGVmYXVsdCBFeGNlcHRpb247XG4iXX0=\n","/**\n * @fileoverview Common collections.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachProp = util.forEachOwnProperties,\n forEachArr = util.forEachArray,\n isFunc = util.isFunction,\n isObj = util.isObject;\n\nvar aps = Array.prototype.slice;\n\n/**\n * Common collection.\n *\n * It need function for get model's unique id.\n *\n * if the function is not supplied then it use default function {@link Collection#getItemID}\n * @constructor\n * @param {function} [getItemIDFn] function for get model's id.\n */\nfunction Collection(getItemIDFn) {\n /**\n * @type {object.}\n */\n this.items = {};\n\n /**\n * @type {number}\n */\n this.length = 0;\n\n if (isFunc(getItemIDFn)) {\n /**\n * @type {function}\n */\n this.getItemID = getItemIDFn;\n }\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Combind supplied function filters and condition.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.and = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 0;\n\n for (; i < cnt; i += 1) {\n if (!filters[i].call(null, item)) {\n return false;\n }\n }\n\n return true;\n };\n};\n\n/**\n * Combine multiple function filters with OR clause.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.or = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 1,\n result = filters[0].call(null, item);\n\n for (; i < cnt; i += 1) {\n result = (result || filters[i].call(null, item));\n }\n\n return result;\n };\n};\n\n/**\n * Merge several collections.\n *\n * You can\\'t merge collections different _getScheduleID functions. Take case of use.\n * @param {...Collection} collections collection arguments to merge\n * @returns {Collection} merged collection.\n */\nCollection.merge = function(collections) { // eslint-disable-line\n var cols = aps.call(arguments),\n newItems = {},\n merged = new Collection(cols[0].getItemID),\n extend = util.extend;\n\n forEachArr(cols, function(col) {\n extend(newItems, col.items);\n });\n\n merged.items = newItems;\n merged.length = util.keys(merged.items).length;\n\n return merged;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * get model's unique id.\n * @param {object} item model instance.\n * @returns {number} model unique id.\n */\nCollection.prototype.getItemID = function(item) {\n return String(item._id);\n};\n\n/**\n * add models.\n * @param {...*} item models to add this collection.\n */\nCollection.prototype.add = function(item) {\n var self = this,\n id,\n ownItems;\n\n if (arguments.length > 1) {\n forEachArr(aps.call(arguments), function(o) {\n self.add(o);\n });\n\n return;\n }\n\n id = this.getItemID(item);\n ownItems = this.items;\n\n if (!ownItems[id]) {\n this.length += 1;\n }\n ownItems[id] = item;\n};\n\n/**\n * remove models.\n * @param {...(object|string|number)} id model instance or unique id to delete.\n * @returns {array} deleted model list.\n */\nCollection.prototype.remove = function(id) {\n var self = this,\n removed = [],\n ownItems,\n itemToRemove;\n\n if (!this.length) {\n return removed;\n }\n\n if (arguments.length > 1) {\n removed = util.map(aps.call(arguments), function(_id) {\n return self.remove(_id);\n });\n\n return removed;\n }\n\n ownItems = this.items;\n\n if (isObj(id)) {\n id = this.getItemID(id);\n }\n\n if (!ownItems[id]) {\n return removed;\n }\n\n this.length -= 1;\n itemToRemove = ownItems[id];\n delete ownItems[id];\n\n return itemToRemove;\n};\n\n/**\n * remove all models in collection.\n */\nCollection.prototype.clear = function() {\n this.items = {};\n this.length = 0;\n};\n\n/**\n * check collection has specific model.\n * @param {(object|string|number|function)} id model instance or id or filter function to check\n * @returns {boolean} is has model?\n */\nCollection.prototype.has = function(id) {\n var isFilter,\n has;\n\n if (!this.length) {\n return false;\n }\n\n isFilter = isFunc(id);\n has = false;\n\n if (isFilter) {\n this.each(function(item) {\n if (id(item) === true) {\n has = true;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n } else {\n id = isObj(id) ? this.getItemID(id) : id;\n has = util.isExisty(this.items[id]);\n }\n\n return has;\n};\n\n/**\n * invoke callback when model exist in collection.\n * @param {(string|number)} id model unique id.\n * @param {function} fn the callback.\n * @param {*} [context] callback context.\n */\nCollection.prototype.doWhenHas = function(id, fn, context) {\n var item = this.items[id];\n\n if (!util.isExisty(item)) {\n return;\n }\n\n fn.call(context || this, item);\n};\n\n/**\n * Search model. and return new collection.\n * @param {function} filter filter function.\n * @returns {Collection} new collection with filtered models.\n * @example\n * collection.find(function(item) {\n * return item.edited === true;\n * });\n *\n * function filter1(item) {\n * return item.edited === false;\n * }\n *\n * function filter2(item) {\n * return item.disabled === false;\n * }\n *\n * collection.find(Collection.and(filter1, filter2));\n *\n * collection.find(Collection.or(filter1, filter2));\n */\nCollection.prototype.find = function(filter) {\n var result = new Collection();\n\n if (this.hasOwnProperty('getItemID')) {\n result.getItemID = this.getItemID;\n }\n\n this.each(function(item) {\n if (filter(item) === true) {\n result.add(item);\n }\n });\n\n return result;\n};\n\n/**\n * Group element by specific key values.\n *\n * if key parameter is function then invoke it and use returned value.\n * @param {(string|number|function|array)} key key property or getter function.\n * if string[] supplied, create each collection before grouping.\n * @param {function} [groupFunc] - function that return each group's key\n * @returns {object.} grouped object\n * @example\n *\n * // pass `string`, `number`, `boolean` type value then group by property value.\n * collection.groupBy('gender'); // group by 'gender' property value.\n * collection.groupBy(50); // group by '50' property value.\n *\n * // pass `function` then group by return value. each invocation `function` is called with `(item)`.\n * collection.groupBy(function(item) {\n * if (item.score > 60) {\n * return 'pass';\n * }\n * return 'fail';\n * });\n *\n * // pass `array` with first arguments then create each collection before grouping.\n * collection.groupBy(['go', 'ruby', 'javascript']);\n * // result: { 'go': empty Collection, 'ruby': empty Collection, 'javascript': empty Collection }\n *\n * // can pass `function` with `array` then group each elements.\n * collection.groupBy(['go', 'ruby', 'javascript'], function(item) {\n * if (item.isFast) {\n * return 'go';\n * }\n *\n * return item.name;\n * });\n */\nCollection.prototype.groupBy = function(key, groupFunc) {\n var result = {},\n collection,\n baseValue,\n keyIsFunc = isFunc(key),\n getItemIDFn = this.getItemID;\n\n if (util.isArray(key)) {\n util.forEachArray(key, function(k) {\n result[String(k)] = new Collection(getItemIDFn);\n });\n\n if (!groupFunc) {\n return result;\n }\n\n key = groupFunc;\n keyIsFunc = true;\n }\n\n this.each(function(item) {\n if (keyIsFunc) {\n baseValue = key(item);\n } else {\n baseValue = item[key];\n\n if (isFunc(baseValue)) {\n baseValue = baseValue.apply(item);\n }\n }\n\n collection = result[baseValue];\n\n if (!collection) {\n collection = result[baseValue] = new Collection(getItemIDFn);\n }\n\n collection.add(item);\n });\n\n return result;\n};\n\n/**\n * Return single item in collection.\n *\n * Returned item is inserted in this collection firstly.\n * @param {function} [filter] - function filter\n * @returns {object} item.\n */\nCollection.prototype.single = function(filter) {\n var result,\n useFilter = util.isFunction(filter);\n\n this.each(function(item) {\n if (!useFilter) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n if (filter(item)) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n }, this);\n\n return result;\n};\n\n/**\n * sort a basis of supplied compare function.\n * @param {function} compareFunction compareFunction\n * @returns {array} sorted array.\n */\nCollection.prototype.sort = function(compareFunction) {\n var arr = [];\n\n this.each(function(item) {\n arr.push(item);\n });\n\n if (isFunc(compareFunction)) {\n arr = arr.sort(compareFunction);\n }\n\n return arr;\n};\n\n/**\n * iterate each model element.\n *\n * when iteratee return false then break the loop.\n * @param {function} iteratee iteratee(item, index, items)\n * @param {*} [context] context\n */\nCollection.prototype.each = function(iteratee, context) {\n forEachProp(this.items, iteratee, context || this);\n};\n\n/**\n * return new array with collection items.\n * @returns {array} new array.\n */\nCollection.prototype.toArray = function() {\n if (!this.length) {\n return [];\n }\n\n return util.map(this.items, function(item) {\n return item;\n });\n};\n\nmodule.exports = Collection;\n","/* eslint complexity: 0 */\n/**\n * @fileoverview Model of schedule.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar TZDate = require('../common/timezone').Date;\nvar datetime = require('../common/datetime');\nvar dirty = require('../common/dirty');\nvar model = require('../common/model');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * Schedule category\n * @readonly\n * @enum {string}\n */\nvar SCHEDULE_CATEGORY = {\n /** milestone */\n MILESTONE: 'milestone',\n\n /** task */\n TASK: 'task',\n\n /** all-day schedule */\n ALLDAY: 'allday',\n\n /** normal schedule */\n TIME: 'time'\n};\n\n/**\n * The model of calendar schedules.\n * @constructor\n * @mixes dirty\n * @mixes model\n */\nfunction Schedule() {\n /**\n * `Optional` unique id for various use.\n * @type {string}\n */\n this.id = '';\n\n /**\n * title for schedule.\n * @type {string}\n */\n this.title = '';\n\n /**\n * body for schedule.\n * @type {string}\n */\n this.body = '';\n\n /**\n * is schedule is all day schedule?\n * @type {boolean}\n */\n this.isAllDay = false;\n\n /**\n * schedule start\n * @type {TZDate}\n */\n this.start = null;\n\n /**\n * schedule end\n * @type {TZDate}\n */\n this.end = null;\n\n /**\n * schedule text color\n * @type {string}\n */\n this.color = '#000';\n\n /**\n * schedule block visibility\n * @type {boolean}\n */\n this.isVisible = true;\n\n /**\n * schedule background color\n * @type {string}\n */\n this.bgColor = '#a1b56c';\n\n /**\n * schedule background color when dragging it\n * @type {string}\n */\n this.dragBgColor = '#a1b56c';\n\n /**\n * schedule left border color\n * @type {string}\n */\n this.borderColor = '#000';\n\n /**\n * calendar ID\n * @type {string}\n */\n this.calendarId = '';\n\n /**\n * Schedule category(milestone, task, allday, time)\n * @type {string}\n */\n this.category = '';\n\n /**\n * Classification of work schedules (before work, before lunch, before work)\n * @type {string}\n */\n this.dueDateClass = '';\n\n /**\n * Custom style for schedule element\n * @type {string}\n */\n this.customStyle = '';\n\n /**\n * in progress flag to do something\n * @type {boolean}\n */\n this.isPending = false;\n\n /**\n * focused schedule flag\n * @type {boolean}\n */\n this.isFocused = false;\n\n /**\n * read-only schedule flag\n * @type {boolean}\n */\n this.isReadOnly = false;\n\n /**\n * private schedule\n * @type {boolean}\n */\n this.isPrivate = false;\n\n /**\n * location\n * @type {string}\n */\n this.location = '';\n\n /**\n * attendees\n * @type {Array.}\n */\n this.attendees = [];\n\n /**\n * recurrence rule\n * @type {any}\n */\n this.recurrenceRule = '';\n\n /**\n * state. 'Busy' is default.\n * @type {string}\n */\n this.state = '';\n\n /**\n * travelTime: going-Duration minutes\n * @type {number}\n */\n this.goingDuration = 0;\n\n /**\n * travelTime: coming-Duration minutes\n * @type {number}\n */\n this.comingDuration = 0;\n\n /**\n * Separate data storage space independent of rendering.\n * @type {object}\n */\n this.raw = null;\n\n // initialize model id\n util.stamp(this);\n}\n\n/**********\n * static props\n **********/\n\nSchedule.schema = {\n required: ['title'],\n dateRange: ['start', 'end']\n};\n\n/**\n * create schedule model from json(object) data.\n * @param {object} data object for model.\n * @returns {Schedule} Schedule model instance.\n */\nSchedule.create = function(data) {\n var inst = new Schedule();\n inst.init(data);\n\n return inst;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Initialize schedule instance.\n * @param {object} options options.\n */\nSchedule.prototype.init = function(options) {\n options = util.extend({}, options);\n if (options.category === SCHEDULE_CATEGORY.ALLDAY) {\n options.isAllDay = true;\n }\n\n this.id = options.id || '';\n this.title = options.title || '';\n this.body = options.body || '';\n this.isAllDay = util.isExisty(options.isAllDay) ? options.isAllDay : false;\n this.isVisible = util.isExisty(options.isVisible) ? options.isVisible : true;\n\n this.color = options.color || this.color;\n this.bgColor = options.bgColor || this.bgColor;\n this.dragBgColor = options.dragBgColor || this.dragBgColor;\n this.borderColor = options.borderColor || this.borderColor;\n this.calendarId = options.calendarId || '';\n this.category = options.category || '';\n this.dueDateClass = options.dueDateClass || '';\n this.customStyle = options.customStyle || '';\n this.location = options.location || '';\n this.attendees = options.attendees || [];\n this.recurrenceRule = options.recurrenceRule || '';\n this.isPrivate = options.isPrivate || false;\n this.isPending = options.isPending || false;\n this.isFocused = options.isFocused || false;\n this.isReadOnly = options.isReadOnly || false;\n this.goingDuration = options.goingDuration || 0;\n this.comingDuration = options.comingDuration || 0;\n this.state = options.state || '';\n\n if (this.isAllDay) {\n this.setAllDayPeriod(options.start, options.end);\n } else {\n this.setTimePeriod(options.start, options.end);\n }\n\n this.raw = options.raw || null;\n};\n\nSchedule.prototype.setAllDayPeriod = function(start, end) {\n // If it is an all-day schedule, only the date information of the string is used.\n if (util.isString(start)) {\n start = datetime.parse(start.substring(0, 10));\n } else {\n start = new TZDate(start || Date.now());\n }\n if (util.isString(end)) {\n end = datetime.parse(end.substring(0, 10));\n } else {\n end = new TZDate(end || this.start);\n }\n\n this.start = start;\n this.start.setHours(0, 0, 0);\n this.end = end || new TZDate(this.start);\n this.end.setHours(23, 59, 59);\n};\n\nSchedule.prototype.setTimePeriod = function(start, end) {\n this.start = new TZDate(start || Date.now());\n this.end = new TZDate(end || this.start);\n\n if (!end) {\n this.end.setMinutes(this.end.getMinutes() + 30);\n }\n};\n\n/**\n * @returns {Date} render start date.\n */\nSchedule.prototype.getStarts = function() {\n return this.start;\n};\n\n/**\n * @returns {Date} render end date.\n */\nSchedule.prototype.getEnds = function() {\n return this.end;\n};\n\n/**\n * @returns {number} instance unique id.\n */\nSchedule.prototype.cid = function() {\n return util.stamp(this);\n};\n\n/**\n * Check two schedule are equals (means title, isAllDay, start, end are same)\n * @param {Schedule} schedule Schedule model instance to compare.\n * @returns {boolean} Return false when not same.\n */\nSchedule.prototype.equals = function(schedule) {\n if (this.id !== schedule.id) {\n return false;\n }\n\n if (this.title !== schedule.title) {\n return false;\n }\n\n if (this.body !== schedule.body) {\n return false;\n }\n\n if (this.isAllDay !== schedule.isAllDay) {\n return false;\n }\n\n if (datetime.compare(this.getStarts(), schedule.getStarts()) !== 0) {\n return false;\n }\n\n if (datetime.compare(this.getEnds(), schedule.getEnds()) !== 0) {\n return false;\n }\n\n if (this.color !== schedule.color) {\n return false;\n }\n\n if (this.bgColor !== schedule.bgColor) {\n return false;\n }\n\n if (this.dragBgColor !== schedule.dragBgColor) {\n return false;\n }\n\n if (this.borderColor !== schedule.borderColor) {\n return false;\n }\n\n return true;\n};\n\n/**\n * return duration between start and end.\n * @returns {Date} duration (UTC)\n */\nSchedule.prototype.duration = function() {\n var start = this.getStarts(),\n end = this.getEnds(),\n duration;\n\n if (this.isAllDay) {\n duration = datetime.end(end) - datetime.start(start);\n } else {\n duration = end - start;\n }\n\n return duration;\n};\n\n/**\n * Returns true if the given Schedule coincides with the same time as the\n * calling Schedule.\n * @param {Schedule} schedule The other schedule to compare with this Schedule.\n * @returns {boolean} If the other schedule occurs within the same time as the first object.\n */\nSchedule.prototype.collidesWith = function(schedule) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = schedule.getStarts(),\n end = schedule.getEnds();\n var ownGoingDuration = datetime.millisecondsFrom('minutes', this.goingDuration),\n ownComingDuration = datetime.millisecondsFrom('minutes', this.comingDuration),\n goingDuration = datetime.millisecondsFrom('minutes', schedule.goingDuration),\n comingDuration = datetime.millisecondsFrom('minutes', schedule.comingDuration);\n\n if (Math.abs(ownEnds - ownStarts) < SCHEDULE_MIN_DURATION) {\n ownEnds += SCHEDULE_MIN_DURATION;\n }\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n ownStarts -= ownGoingDuration;\n ownEnds += ownComingDuration;\n start -= goingDuration;\n end += comingDuration;\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodel.mixin(Schedule.prototype);\ndirty.mixin(Schedule.prototype);\n\nmodule.exports = Schedule;\n","/**\n * @fileoverview Utility module for array sort, binary search.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar datetime = require('../common/datetime');\n\n/**\n * A module for sorting array.\n * @module array\n */\n\n/**********\n * Search\n **********/\n\n/**\n * search item index using binary search algorithm.\n *\n * the array must be sorted.\n * @param {array} arr array to search.\n * @param {(string|number|boolean)} search value to search.\n * @param {function} [fn] iteratee for retrieve each element's value to search.\n * @param {function} [compare] compare function for specific sort status. default is string ascending.\n * @returns {number} The number of item index searched. return negative number when no exist that item.\n * It can use insert index after Math.abs()\n * @example\n *\n * var arr = [1, 3, 7, 11, 15, 23];\n *\n * function sortNumber(a, b) {\n * return a - b;\n * }\n *\n * bsearch(arr, 15, null, sortNumber); // 4\n * bsearch(arr, 21, null, sortNumber); // -5\n *\n * arr.splice(Math.abs(bsearch(arr, 21, null, sortNumber)), 0, 21);\n * // [1, 2, 7, 11, 15, 21, 23]\n */\nfunction bsearch(arr, search, fn, compare) {\n var minIndex = 0,\n maxIndex = arr.length - 1,\n currentIndex,\n value,\n comp;\n\n compare = compare || stringASC;\n\n while (minIndex <= maxIndex) {\n currentIndex = (minIndex + maxIndex) / 2 | 0; // Math.floor\n value = fn ? fn(arr[currentIndex]) : arr[currentIndex];\n comp = compare(value, search);\n\n if (comp < 0) {\n minIndex = currentIndex + 1;\n } else if (comp > 0) {\n maxIndex = currentIndex - 1;\n } else {\n return currentIndex;\n }\n }\n\n return ~maxIndex;\n}\n\n/**********\n * Compare Functions\n **********/\n\n/**\n * compare function for array sort.\n *\n * sort array by ascending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanASC(a, b) {\n if (a !== b) {\n return a ? -1 : 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by descending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanDESC(a, b) {\n if (a !== b) {\n return a ? 1 : -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number ascending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberASC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return a - b;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number descending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberDESC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return b - a;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * Compare schedule models for sort.\n *\n * 1. all day schedule first.\n * 2. early start.\n * 3. longest duration.\n * 4. early created.\n * @param {Schedule|ScheduleViewModel} a The object schedule instance.\n * @param {Schedule|ScheduleViewModel} b The object schedule instance.\n * @returns {number} Result of comparison.\n */\nfunction scheduleASC(a, b) {\n var durationA, durationB;\n var allDayCompare, startsCompare;\n var modelA = a.valueOf();\n var modelB = b.valueOf();\n\n allDayCompare = booleanASC(modelA.isAllDay || a.hasMultiDates, modelB.isAllDay || b.hasMultiDates);\n\n if (allDayCompare) {\n return allDayCompare;\n }\n\n startsCompare = datetime.compare(a.getStarts(), b.getStarts());\n\n if (startsCompare) {\n return startsCompare;\n }\n\n durationA = a.duration();\n durationB = b.duration();\n\n if (durationA < durationB) {\n return 1;\n }\n if (durationA > durationB) {\n return -1;\n }\n\n return util.stamp(modelA) - util.stamp(modelB);\n}\n\nmodule.exports = {\n bsearch: bsearch,\n compare: {\n schedule: {\n asc: scheduleASC\n },\n bool: {\n asc: booleanASC,\n desc: booleanDESC\n },\n num: {\n asc: numberASC,\n desc: numberDESC\n },\n str: {\n asc: stringASC,\n desc: stringDESC,\n ascIgnoreCase: stringASCIgnoreCase,\n descIgnoreCase: stringDESCIgnoreCase\n }\n }\n};\n","/**\n * @fileoverview Floating layer module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for floating layer module\n * @param {HTMLElement} container - parent continer for floating layer\n */\nfunction FloatingLayer(options, container) {\n var sibling = container[FloatingLayer.PROP_KEY],\n layerContainer;\n\n if (!sibling) {\n sibling = container[FloatingLayer.PROP_KEY] = [];\n }\n\n sibling.push(this);\n\n /**\n * @type {Collection}\n */\n this.sibling = sibling;\n\n /**\n * @type {number}\n */\n this.zIndex = this.getLargestZIndex() || FloatingLayer.INIT_ZINDEX;\n\n layerContainer = document.createElement('div');\n layerContainer.style.display = 'none';\n layerContainer.style.position = 'absolute';\n domutil.addClass(layerContainer, config.classname('floating-layer'));\n container.appendChild(layerContainer);\n\n View.call(this, layerContainer);\n\n /**\n * @type {HTMLElement}\n */\n this.parent = container;\n}\n\nutil.inherit(FloatingLayer, View);\n\n/**\n * @const\n */\nFloatingLayer.PROP_KEY = '__fe_floating_layer';\n\n/**\n * @const\n */\nFloatingLayer.INIT_ZINDEX = 999;\n\n/**\n * Destroy floating layer instance. if there no instnace in parent container\n *\n * remove instance cache property in container element\n */\nFloatingLayer.prototype.destroy = function() {\n var parent = this.parent,\n sibling = this.sibling,\n i = 0, cnt = sibling.length;\n\n for (; i < cnt; i += 1) {\n if (sibling[i] === this) {\n sibling.splice(i, 1);\n break;\n }\n }\n\n if (!sibling.length) {\n try {\n delete parent[FloatingLayer.PROP_KEY];\n } catch (e) {\n parent[FloatingLayer.PROP_KEY] = null;\n }\n\n parent.style.position = '';\n }\n\n domutil.remove(this.container);\n\n this.sibling = null;\n\n View.prototype.destroy.call(this);\n};\n\n/**\n * @returns {boolean} whether layer is visible?\n */\nFloatingLayer.prototype.isVisible = function() {\n return this.container.style.display !== 'none';\n};\n\n/**\n * Set layer position\n * @param {number} x - x coordinate of layer\n * @param {number} y - y coordinate of layer\n */\nFloatingLayer.prototype.setPosition = function(x, y) {\n domutil.setPosition(this.container, x, y);\n};\n\n/**\n * Set layer left, top, right, bottom position\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\nFloatingLayer.prototype.setLTRB = function(ltrb) {\n domutil.setLTRB(this.container, ltrb);\n};\n\n/**\n * Set layer size\n * @param {number|string} w - layer width\n * @param {number|string} h - layer height\n */\nFloatingLayer.prototype.setSize = function(w, h) {\n var container = this.container;\n\n w = util.isNumber(w) ? w + 'px' : w;\n h = util.isNumber(h) ? h + 'px' : h;\n\n container.style.width = w;\n container.style.height = h;\n};\n\n/**\n * Set layer content\n * @param {string} html - html string\n */\nFloatingLayer.prototype.setContent = function(html) {\n this.container.innerHTML = html;\n};\n\n/**\n * Get largest z-index from sibling layers\n * @returns {number} largest z-index value\n */\nFloatingLayer.prototype.getLargestZIndex = function() {\n var zIndexes = util.map(this.sibling, function(layer) {\n return layer.zIndex;\n });\n\n return Math.max.apply(null, zIndexes);\n};\n\n/**\n * Set focus to layer\n */\nFloatingLayer.prototype.focus = function() {\n var zIndexForShow = this.getLargestZIndex() + 1;\n this.container.style.zIndex = this.zIndex = zIndexForShow;\n};\n\n/**\n * Show layer\n */\nFloatingLayer.prototype.show = function() {\n this.focus();\n this.container.style.display = 'block';\n};\n\n/**\n * Hide layer\n */\nFloatingLayer.prototype.hide = function() {\n this.container.style.display = 'none';\n};\n\nmodule.exports = FloatingLayer;\n","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Base mixin object for handler/daygrid\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\n\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @mixin dayGridCore\n */\nvar dayGridCore = {\n /**\n * @param {view} view - view instance.\n * @param {MouseEvent} mouseEvent - mouse schedule object.\n * @returns {function|boolean} function that return schedule data by mouse events.\n */\n _retriveScheduleData: function(view, mouseEvent) {\n var weekdayView = view.children.single(),\n container,\n datesInRange,\n containerWidth,\n mousePos,\n dragStartXIndex,\n grids,\n range;\n\n if (!weekdayView) {\n return false;\n }\n\n container = weekdayView.container;\n range = weekdayView.getRenderDateRange();\n datesInRange = range.length;\n grids = weekdayView.getRenderDateGrids();\n\n containerWidth = domutil.getSize(container)[0];\n mousePos = domevent.getMousePosition(mouseEvent, container);\n dragStartXIndex = getX(grids, common.ratio(containerWidth, 100, mousePos[0]));\n\n /**\n * @param {MouseEvent} mouseEvent - mouse schedule in drag actions.\n * @returns {object} schedule data.\n */\n return function(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, container),\n mouseX = pos[0],\n xIndex = getX(grids, common.ratio(containerWidth, 100, mouseX));\n\n // apply limitation of creation schedule X index.\n xIndex = mmax(xIndex, 0);\n xIndex = mmin(xIndex, datesInRange - 1);\n\n return {\n relatedView: view,\n dragStartXIndex: dragStartXIndex,\n datesInRange: datesInRange,\n xIndex: xIndex,\n triggerEvent: mouseEvent.type,\n grids: grids,\n range: range\n };\n };\n },\n\n /**\n * @param {view} view - view instance.\n * @param {TZDate} startDate - start date\n * @returns {function|boolean} function that return schedule data by mouse events.\n */\n _retriveScheduleDataFromDate: function(view, startDate) {\n var weekdayView = view.children.single(),\n datesInRange,\n dragStartXIndex = 0,\n grids,\n range;\n\n if (!weekdayView) {\n return false;\n }\n\n range = weekdayView.getRenderDateRange();\n datesInRange = range.length;\n grids = weekdayView.getRenderDateGrids();\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, startDate)) {\n dragStartXIndex = index;\n }\n });\n\n /**\n * @param {TZDate} targetDate - target date\n * @returns {object} schedule data.\n */\n return function(targetDate) {\n var xIndex = 0;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, targetDate)) {\n xIndex = index;\n }\n });\n\n // apply limitation of creation schedule X index.\n xIndex = mmax(xIndex, 0);\n xIndex = mmin(xIndex, datesInRange - 1);\n\n return {\n relatedView: view,\n dragStartXIndex: dragStartXIndex,\n datesInRange: datesInRange,\n xIndex: xIndex,\n triggerEvent: 'manual',\n grids: grids,\n range: range\n };\n };\n }\n};\n\n/**\n * Get the left index\n * @param {Array} grids - grid size information\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\nfunction getX(grids, left) {\n var i = 0;\n var length = grids.length;\n var grid;\n if (left < 0) {\n left = 0;\n }\n\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return i;\n}\n\nmodule.exports = dayGridCore;\n","/**\n * @fileoverview Core methods for dragging actions\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar domevent = require('../../common/domevent');\nvar Point = require('../../common/point');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @mixin Time.Core\n */\nvar timeCore = {\n /**\n * Get Y index ratio(hour) in time grids by supplied parameters.\n * @param {number} baseMil - base milliseconds number for supplied height.\n * @param {number} height - container element height.\n * @param {number} y - Y coordinate to calculate hour ratio.\n * @returns {number} hour index ratio value.\n */\n _calcGridYIndex: function(baseMil, height, y) {\n // get ratio from right expression > point.y : x = session.height : baseMil\n // and convert milliseconds value to hours.\n var result = datetime.millisecondsTo('hour', (y * baseMil) / height),\n floored = result | 0,\n nearest = common.nearest(result - floored, [0, 1]);\n\n return floored + (nearest ? 0.5 : 0);\n },\n\n /**\n * Get function to makes event data from Time and mouseEvent\n * @param {Time} timeView - Instance of time view.\n * @returns {function} - Function that return event data from mouse event.\n */\n _retriveScheduleData: function(timeView) {\n var self = this,\n container = timeView.container,\n options = timeView.options,\n viewHeight = timeView.getViewBound().height,\n viewTime = timeView.getDate(),\n hourLength = options.hourEnd - options.hourStart,\n baseMil = datetime.millisecondsFrom('hour', hourLength);\n\n /**\n * @param {MouseEvent} mouseEvent - mouse event object to get common event data.\n * @param {object} [extend] - object to extend event data before return.\n * @returns {object} - common event data for time.*\n */\n return util.bind(function(mouseEvent, extend) {\n var mouseY = Point.n(domevent.getMousePosition(mouseEvent, container)).y,\n gridY = common.ratio(viewHeight, hourLength, mouseY),\n timeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(gridY)),\n nearestGridY = self._calcGridYIndex(baseMil, viewHeight, mouseY),\n nearestGridTimeY = new TZDate(viewTime).addMinutes(\n datetime.minutesFromHours(nearestGridY + options.hourStart)\n );\n\n return util.extend({\n target: mouseEvent.target || mouseEvent.srcElement,\n relatedView: timeView,\n originEvent: mouseEvent,\n mouseY: mouseY,\n gridY: gridY,\n timeY: timeY,\n nearestGridY: nearestGridY,\n nearestGridTimeY: nearestGridTimeY,\n triggerEvent: mouseEvent.type\n }, extend);\n }, this);\n },\n\n /**\n * Get function to makes event data from Time and mouseEvent\n * @param {Time} timeView - Instance of time view.\n * @param {number} xIndex - Time view index\n * @returns {function} - Function that return event data from mouse event.\n */\n _retriveScheduleDataFromDate: function(timeView) {\n var viewTime = timeView.getDate();\n\n /**\n * @param {TZDate} startDate - start date\n * @param {TZDate} endDate - end date\n * @param {number} hourStart Can limit of render hour start.\n * @returns {object} - common event data for time.*\n */\n return util.bind(function(startDate, endDate, hourStart) {\n var gridY, timeY, nearestGridY, nearestGridTimeY, nearestGridEndY, nearestGridEndTimeY;\n\n gridY = startDate.getHours() - hourStart + getNearestHour(startDate.getMinutes());\n timeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(gridY));\n nearestGridY = gridY;\n nearestGridTimeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(nearestGridY));\n nearestGridEndY = endDate.getHours() - hourStart + getNearestHour(endDate.getMinutes());\n nearestGridEndTimeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(nearestGridEndY));\n\n return util.extend({\n target: timeView,\n relatedView: timeView,\n gridY: gridY,\n timeY: timeY,\n nearestGridY: nearestGridY,\n nearestGridTimeY: nearestGridTimeY,\n nearestGridEndY: nearestGridEndY,\n nearestGridEndTimeY: nearestGridEndTimeY,\n triggerEvent: 'manual',\n hourStart: hourStart\n });\n }, this);\n },\n\n /**\n * Mixin method.\n * @param {(TimeCreation|TimeMove)} obj - Constructor functions\n */\n mixin: function(obj) {\n var proto = obj.prototype;\n util.forEach(timeCore, function(method, methodName) {\n if (methodName === 'mixin') {\n return;\n }\n\n proto[methodName] = method;\n });\n }\n};\n\n/**\n * Get the nearest hour\n * @param {number} minutes - minutes\n * @returns {number} hour\n */\nfunction getNearestHour(minutes) {\n var nearestHour;\n if (minutes === 0) {\n nearestHour = 0;\n } else if (minutes > 30) {\n nearestHour = 1;\n } else if (minutes <= 30) {\n nearestHour = 0.5;\n }\n\n return nearestHour;\n}\n\nmodule.exports = timeCore;\n","/**\n * @fileoverview Module for calculate date by month view and mouse event object\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent');\nvar mfloor = Math.floor;\n\n/**\n * Get high order function that can calc date in mouse point\n * @param {Month} monthView - month view\n * @returns {function} function return event data by mouse event object\n */\nfunction getMousePosDate(monthView) {\n var weekColl = monthView.children,\n weeks = weekColl.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n }),\n weekCount = weekColl.length,\n days = weekColl.single().getRenderDateRange(),\n dayCount = days.length,\n relativeContainer = util.pick(monthView.vLayout.panels[1], 'container'),\n size = domutil.getSize(relativeContainer),\n grids = monthView.grids;\n\n /**\n * Get the left index\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\n function getX(left) {\n var i = 0;\n var length = grids.length;\n var grid;\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return left < 0 ? -1 : i;\n }\n\n /**\n * Get date related with mouse event object\n * @param {object} mouseEvent - click event data\n * @returns {object} data related with mouse event\n */\n function getDate(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, relativeContainer),\n x = getX(common.ratio(size[0], 100, pos[0])),\n y = mfloor(common.ratio(size[1], weekCount, pos[1])),\n weekdayView,\n date,\n dateRange;\n\n if (y < 0) {\n y = 0;\n }\n if (y >= weeks.length) {\n y = weeks.length - 1;\n }\n\n weekdayView = util.pick(weeks, y);\n\n if (!weekdayView) {\n return null;\n }\n\n dateRange = weekdayView.getRenderDateRange();\n if (x < 0) {\n x = 0;\n }\n if (x >= dateRange.length) {\n x = dateRange.length - 1;\n }\n\n date = util.pick(dateRange, x);\n\n if (!date) {\n return null;\n }\n\n return {\n x: x,\n y: y,\n sizeX: dayCount,\n sizeY: weekCount,\n date: date,\n weekdayView: weekdayView,\n triggerEvent: mouseEvent.type\n };\n }\n\n return getDate;\n}\n\nmodule.exports = getMousePosDate;\n","module.exports = require('handlebars/runtime');","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _handlebarsBase = require('./handlebars/base');\n\nvar base = _interopRequireWildcard(_handlebarsBase);\n\n// Each of these augment the Handlebars object. No need to setup here.\n// (This is done to easily share code between commonjs and browse envs)\n\nvar _handlebarsSafeString = require('./handlebars/safe-string');\n\nvar _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);\n\nvar _handlebarsException = require('./handlebars/exception');\n\nvar _handlebarsException2 = _interopRequireDefault(_handlebarsException);\n\nvar _handlebarsUtils = require('./handlebars/utils');\n\nvar Utils = _interopRequireWildcard(_handlebarsUtils);\n\nvar _handlebarsRuntime = require('./handlebars/runtime');\n\nvar runtime = _interopRequireWildcard(_handlebarsRuntime);\n\nvar _handlebarsNoConflict = require('./handlebars/no-conflict');\n\nvar _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);\n\n// For compatibility and usage outside of module systems, make the Handlebars object a namespace\nfunction create() {\n var hb = new base.HandlebarsEnvironment();\n\n Utils.extend(hb, base);\n hb.SafeString = _handlebarsSafeString2['default'];\n hb.Exception = _handlebarsException2['default'];\n hb.Utils = Utils;\n hb.escapeExpression = Utils.escapeExpression;\n\n hb.VM = runtime;\n hb.template = function (spec) {\n return runtime.template(spec, hb);\n };\n\n return hb;\n}\n\nvar inst = create();\ninst.create = create;\n\n_handlebarsNoConflict2['default'](inst);\n\ninst['default'] = inst;\n\nexports['default'] = inst;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OEJBQXNCLG1CQUFtQjs7SUFBN0IsSUFBSTs7Ozs7b0NBSU8sMEJBQTBCOzs7O21DQUMzQix3QkFBd0I7Ozs7K0JBQ3ZCLG9CQUFvQjs7SUFBL0IsS0FBSzs7aUNBQ1Esc0JBQXNCOztJQUFuQyxPQUFPOztvQ0FFSSwwQkFBMEI7Ozs7O0FBR2pELFNBQVMsTUFBTSxHQUFHO0FBQ2hCLE1BQUksRUFBRSxHQUFHLElBQUksSUFBSSxDQU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V4cG9ydCBkZWZhdWx0IGluc3Q7XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\nexports.HandlebarsEnvironment = HandlebarsEnvironment;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('./utils');\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _helpers = require('./helpers');\n\nvar _decorators = require('./decorators');\n\nvar _logger = require('./logger');\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nvar _internalProtoAccess = require('./internal/proto-access');\n\nvar VERSION = '4.7.2';\nexports.VERSION = VERSION;\nvar COMPILER_REVISION = 8;\nexports.COMPILER_REVISION = COMPILER_REVISION;\nvar LAST_COMPATIBLE_COMPILER_REVISION = 7;\n\nexports.LAST_COMPATIBLE_COMPILER_REVISION = LAST_COMPATIBLE_COMPILER_REVISION;\nvar REVISION_CHANGES = {\n 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it\n 2: '== 1.0.0-rc.3',\n 3: '== 1.0.0-rc.4',\n 4: '== 1.x.x',\n 5: '== 2.0.0-alpha.x',\n 6: '>= 2.0.0-beta.1',\n 7: '>= 4.0.0 <4.3.0',\n 8: '>= 4.3.0'\n};\n\nexports.REVISION_CHANGES = REVISION_CHANGES;\nvar objectType = '[object Object]';\n\nfunction HandlebarsEnvironment(helpers, partials, decorators) {\n this.helpers = helpers || {};\n this.partials = partials || {};\n this.decorators = decorators || {};\n\n _helpers.registerDefaultHelpers(this);\n _decorators.registerDefaultDecorators(this);\n}\n\nHandlebarsEnvironment.prototype = {\n constructor: HandlebarsEnvironment,\n\n logger: _logger2['default'],\n log: _logger2['default'].log,\n\n registerHelper: function registerHelper(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple helpers');\n }\n _utils.extend(this.helpers, name);\n } else {\n this.helpers[name] = fn;\n }\n },\n unregisterHelper: function unregisterHelper(name) {\n delete this.helpers[name];\n },\n\n registerPartial: function registerPartial(name, partial) {\n if (_utils.toString.call(name) === objectType) {\n _utils.extend(this.partials, name);\n } else {\n if (typeof partial === 'undefined') {\n throw new _exception2['default']('Attempting to register a partial called \"' + name + '\" as undefined');\n }\n this.partials[name] = partial;\n }\n },\n unregisterPartial: function unregisterPartial(name) {\n delete this.partials[name];\n },\n\n registerDecorator: function registerDecorator(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple decorators');\n }\n _utils.extend(this.decorators, name);\n } else {\n this.decorators[name] = fn;\n }\n },\n unregisterDecorator: function unregisterDecorator(name) {\n delete this.decorators[name];\n },\n /**\n * Reset the memory of illegal property accesses that have already been logged.\n * @deprecated should only be used in handlebars test-cases\n */\n resetLoggedPropertyAccesses: function resetLoggedPropertyAccesses() {\n _internalProtoAccess.resetLoggedProperties();\n }\n};\n\nvar log = _logger2['default'].log;\n\nexports.log = log;\nexports.createFrame = _utils.createFrame;\nexports.logger = _logger2['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQThDLFNBQVM7O3lCQUNqQyxhQUFhOzs7O3VCQUNJLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNyQyxVQUFVOzs7O21DQUNTLHlCQUF5Qjs7QUFFeEQsSUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDOztBQUN4QixJQUFNLGlCQUFpQixHQUFHLENBQUMsQ0FBQzs7QUFDNUIsSUFBTSxpQ0FBaUMsR0FBRyxDQUFDLENBQUM7OztBQUU1QyxJQUFNLGdCQUFnQixHQUFHO0FBQzlCLEdBQUMsRUFBRSxhQUFhO0FBQ2hCLEdBQUMsRUFBRSxlQUFlO0FB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cbiAgfSxcbiAgdW5yZWdpc3RlckRlY29yYXRvcjogZnVuY3Rpb24obmFtZSkge1xuICAgIGRlbGV0ZSB0aGlzLmRlY29yYXRvcnNbbmFtZV07XG4gIH0sXG4gIC8qKlxuICAgKiBSZXNldCB0aGUgbWVtb3J5IG9mIGlsbGVnYWwgcHJvcGVydHkgYWNjZXNzZXMgdGhhdCBoYXZlIGFscmVhZHkgYmVlbiBsb2dnZWQuXG4gICAqIEBkZXByZWNhdGVkIHNob3VsZCBvbmx5IGJlIHVzZWQgaW4gaGFuZGxlYmFycyB0ZXN0LWNhc2VzXG4gICAqL1xuICByZXNldExvZ2dlZFByb3BlcnR5QWNjZXNzZXMoKSB7XG4gICAgcmVzZXRMb2dnZWRQcm9wZXJ0aWVzKCk7XG4gIH1cbn07XG5cbmV4cG9ydCBsZXQgbG9nID0gbG9nZ2VyLmxvZztcblxuZXhwb3J0IHsgY3JlYXRlRnJhbWUsIGxvZ2dlciB9O1xuIl19\n","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultHelpers = registerDefaultHelpers;\nexports.moveHelperToHooks = moveHelperToHooks;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _helpersBlockHelperMissing = require('./helpers/block-helper-missing');\n\nvar _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);\n\nvar _helpersEach = require('./helpers/each');\n\nvar _helpersEach2 = _interopRequireDefault(_helpersEach);\n\nvar _helpersHelperMissing = require('./helpers/helper-missing');\n\nvar _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);\n\nvar _helpersIf = require('./helpers/if');\n\nvar _helpersIf2 = _interopRequireDefault(_helpersIf);\n\nvar _helpersLog = require('./helpers/log');\n\nvar _helpersLog2 = _interopRequireDefault(_helpersLog);\n\nvar _helpersLookup = require('./helpers/lookup');\n\nvar _helpersLookup2 = _interopRequireDefault(_helpersLookup);\n\nvar _helpersWith = require('./helpers/with');\n\nvar _helpersWith2 = _interopRequireDefault(_helpersWith);\n\nfunction registerDefaultHelpers(instance) {\n _helpersBlockHelperMissing2['default'](instance);\n _helpersEach2['default'](instance);\n _helpersHelperMissing2['default'](instance);\n _helpersIf2['default'](instance);\n _helpersLog2['default'](instance);\n _helpersLookup2['default'](instance);\n _helpersWith2['default'](instance);\n}\n\nfunction moveHelperToHooks(instance, helperName, keepHelper) {\n if (instance.helpers[helperName]) {\n instance.hooks[helperName] = instance.helpers[helperName];\n if (!keepHelper) {\n delete instance.helpers[helperName];\n }\n }\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O3lDQUF1QyxnQ0FBZ0M7Ozs7MkJBQzlDLGdCQUFnQjs7OztvQ0FDUCwwQkFBMEI7Ozs7eUJBQ3JDLGNBQWM7Ozs7MEJBQ2IsZUFBZTs7Ozs2QkFDWixrQkFBa0I7Ozs7MkJBQ3BCLGdCQUFnQjs7OztBQUVsQyxTQUFTLHNCQUFzQixDQUFDLFFBQVEsRUFBRTtBQUMvQyx5Q0FBMkIsUUFBUSxDQUFDLENBQUM7QUFDckMsMkJBQWEsUUFBUSxDQUFDLENBQUM7QUFDdkIsb0NBQXNCLFFBQVEsQ0FBQyxDQUFDO0FBQ2hDLHlCQUFXLFFBQVEsQ0FBQyxDQUFDO0FBQ3JCLDBCQUFZLFFBQVEsQ0FBQyxDQUFDO0FBQ3RCLDZCQUFlLFFBQVEsQ0FBQyxDQUFDO0FBQ3pCLDJCQUFhLFFBQVEsQ0FBQyxDQUFDO0NBQ3hCOztBQUVNLFNBQVMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVUsRUFBRSxVQUFVLEVBQUU7QUFDbEUsTUFBSSxRQUFRLENBQUMsT0FBTyxD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lckxvb2t1cChpbnN0YW5jZSk7XG4gIHJlZ2lzdGVyV2l0aChpbnN0YW5jZSk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBtb3ZlSGVscGVyVG9Ib29rcyhpbnN0YW5jZSwgaGVscGVyTmFtZSwga2VlcEhlbHBlcikge1xuICBpZiAoaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXSkge1xuICAgIGluc3RhbmNlLmhvb2tzW2hlbHBlck5hbWVdID0gaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXTtcbiAgICBpZiAoIWtlZXBIZWxwZXIpIHtcbiAgICAgIGRlbGV0ZSBpbnN0YW5jZS5oZWxwZXJzW2hlbHBlck5hbWVdO1xuICAgIH1cbiAgfVxufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('./utils');\n\nvar logger = {\n methodMap: ['debug', 'info', 'warn', 'error'],\n level: 'info',\n\n // Maps a given level value to the `methodMap` indexes above.\n lookupLevel: function lookupLevel(level) {\n if (typeof level === 'string') {\n var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase());\n if (levelMap >= 0) {\n level = levelMap;\n } else {\n level = parseInt(level, 10);\n }\n }\n\n return level;\n },\n\n // Can be overridden in the host environment\n log: function log(level) {\n level = logger.lookupLevel(level);\n\n if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) {\n var method = logger.methodMap[level];\n // eslint-disable-next-line no-console\n if (!console[method]) {\n method = 'log';\n }\n\n for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n message[_key - 1] = arguments[_key];\n }\n\n console[method].apply(console, message); // eslint-disable-line no-console\n }\n }\n};\n\nexports['default'] = logger;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qcyJdLCJuYW1lcy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5sZXZlbCkgPD0gbGV2ZWxcbiAgICApIHtcbiAgICAgIGxldCBtZXRob2QgPSBsb2dnZXIubWV0aG9kTWFwW2xldmVsXTtcbiAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby1jb25zb2xlXG4gICAgICBpZiAoIWNvbnNvbGVbbWV0aG9kXSkge1xuICAgICAgICBtZXRob2QgPSAnbG9nJztcbiAgICAgIH1cbiAgICAgIGNvbnNvbGVbbWV0aG9kXSguLi5tZXNzYWdlKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgfVxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBsb2dnZXI7XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\nexports.createProtoAccessControl = createProtoAccessControl;\nexports.resultIsAllowed = resultIsAllowed;\nexports.resetLoggedProperties = resetLoggedProperties;\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _createNewLookupObject = require('./create-new-lookup-object');\n\nvar _logger = require('../logger');\n\nvar logger = _interopRequireWildcard(_logger);\n\nvar loggedProperties = Object.create(null);\n\nfunction createProtoAccessControl(runtimeOptions) {\n var defaultMethodWhiteList = Object.create(null);\n defaultMethodWhiteList['constructor'] = false;\n defaultMethodWhiteList['__defineGetter__'] = false;\n defaultMethodWhiteList['__defineSetter__'] = false;\n defaultMethodWhiteList['__lookupGetter__'] = false;\n\n var defaultPropertyWhiteList = Object.create(null);\n // eslint-disable-next-line no-proto\n defaultPropertyWhiteList['__proto__'] = false;\n\n return {\n properties: {\n whitelist: _createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList, runtimeOptions.allowedProtoProperties),\n defaultValue: runtimeOptions.allowProtoPropertiesByDefault\n },\n methods: {\n whitelist: _createNewLookupObject.createNewLookupObject(defaultMethodWhiteList, runtimeOptions.allowedProtoMethods),\n defaultValue: runtimeOptions.allowProtoMethodsByDefault\n }\n };\n}\n\nfunction resultIsAllowed(result, protoAccessControl, propertyName) {\n if (typeof result === 'function') {\n return checkWhiteList(protoAccessControl.methods, propertyName);\n } else {\n return checkWhiteList(protoAccessControl.properties, propertyName);\n }\n}\n\nfunction checkWhiteList(protoAccessControlForType, propertyName) {\n if (protoAccessControlForType.whitelist[propertyName] !== undefined) {\n return protoAccessControlForType.whitelist[propertyName] === true;\n }\n if (protoAccessControlForType.defaultValue !== undefined) {\n return protoAccessControlForType.defaultValue;\n }\n logUnexpecedPropertyAccessOnce(propertyName);\n return false;\n}\n\nfunction logUnexpecedPropertyAccessOnce(propertyName) {\n if (loggedProperties[propertyName] !== true) {\n loggedProperties[propertyName] = true;\n logger.log('error', 'Handlebars: Access has been denied to resolve the property \"' + propertyName + '\" because it is not an \"own property\" of its parent.\\n' + 'You can add a runtime option to disable the check or this warning:\\n' + 'See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details');\n }\n}\n\nfunction resetLoggedProperties() {\n Object.keys(loggedProperties).forEach(function (propertyName) {\n delete loggedProperties[propertyName];\n });\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3Byb3RvLWFjY2Vzcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O3FDQUFzQyw0QkFBNEI7O3NCQUMxQyxXQUFXOztJQUF2QixNQUFNOztBQUVsQixJQUFNLGdCQUFnQixHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUM7O0FBRXRDLFNBQVMsd0JBQXdCLENBQUMsY0FBYyxFQUFFO0FBQ3ZELE1BQUksc0JBQXNCLEdBQUcsTUFBTSxDQUF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7XG59XG4iXX0=\n","/**\n * @fileoverview Wrapper module for easy calc date object\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar TZDate = require('./timezone').Date;\n\n/**\n * @constructor\n * @param {TZDate} date to wrapping DW class\n */\nfunction DW(date) {\n if (!(this instanceof DW)) {\n return new DW(date);\n }\n\n if (!(date instanceof TZDate)) {\n date = new TZDate(date);\n }\n\n /**\n * @type {TZDate}\n */\n this.d = date;\n}\n\n/**\n * Return d property when supplied object is DW. else return itself\n * @param {*} obj - object\n * @returns {TZDate} date\n */\nDW.prototype.safe = function(obj) {\n if (obj.constructor === DW) {\n return obj.d;\n }\n\n return obj;\n};\n\n/**\n * Clone DW object\n * @returns {DW} cloned dwrap object\n */\nDW.prototype.clone = function() {\n return new DW(new TZDate(this.d));\n};\n\n/**\n * Add days\n * @param {number} day - day to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addDate = function(day) {\n this.d.setDate(this.d.getDate() + day);\n\n return this;\n};\n\n/**\n * Add month.\n * @param {number} m - month to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addMonth = function(m) {\n var currentMonth = this.d.getMonth();\n var currentDay = this.d.getDate();\n var leapYear = this._isLeapYear();\n var targetMonth = currentMonth + m;\n var clone = this.clone();\n var targetDaysOfMonth = currentDay;\n\n if (m) {\n if (targetMonth === 1) {\n targetDaysOfMonth = leapYear ? 29 : 28;\n } else {\n if (m > 0) {\n clone.d.setMonth(targetMonth + 1, 0);\n } else {\n clone.d.setMonth(currentMonth, 0);\n }\n targetDaysOfMonth = clone.d.getDate();\n }\n }\n\n this.d.setMonth(targetMonth, Math.min(currentDay, targetDaysOfMonth));\n\n return this;\n};\n\n/**\n * Is leap year or not\n * @returns {boolean}\n */\nDW.prototype._isLeapYear = function() {\n var year = this.d.getFullYear();\n\n return ((year % 4 === 0) && (year % 100 !== 0)) || !(year % 400);\n};\n\n/**\n * Set hour, minutes, seconds, milliseconds\n * @param {number} h - hours\n * @param {number} m - minutes\n * @param {number} s - seconds\n * @param {number} ms - milliseconds\n * @returns {DW} wrapper object\n */\nDW.prototype.setHours = function(h, m, s, ms) {\n this.d.setHours(h, m, s, ms);\n\n return this;\n};\n\n/**\n * Whether date is between supplied dates?\n * @param {TZDate|DW} d1 - from date\n * @param {TZDate|DW} d2 - to date\n * @returns {boolean} is between?\n */\nDW.prototype.isBetween = function(d1, d2) {\n var safe = this.safe;\n\n return safe(d1) <= this.d && this.d <= safe(d2);\n};\n\nmodule.exports = DW;\n","/**\n * @fileoverview Drag handler for calendar.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar domevent = require('../common/domevent');\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {object} options - options for drag handler\n * @param {number} [options.distance=10] - distance in pixels after mouse must move before dragging should start\n * @param {function} [options.exclude] - filter function for don't fire drag events that specific conditions.\n * @param {HTMLElement} container element to watching drag interaction.\n */\nfunction Drag(options, container) {\n domevent.on(container, 'mousedown', this._onMouseDown, this);\n\n this.options = util.extend({\n distance: 10,\n exclude: null\n }, options);\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * Flag for represent current dragging session has been cancelled for exclude option.\n * @type {boolean}\n */\n this._cancelled = false;\n\n /**\n * @type {boolean}\n */\n this._isMoved = false;\n\n /**\n * dragging distance in pixel between mousedown and firing dragStart events\n * @type {number}\n */\n this._distance = 0;\n\n /**\n * @type {boolean}\n */\n this._dragStartFired = false;\n\n /**\n * @type {object}\n */\n this._dragStartEventData = null;\n}\n\n/**\n * Destroy method.\n */\nDrag.prototype.destroy = function() {\n domevent.off(this.container, 'mousedown', this._onMouseDown, this);\n this._isMoved = null;\n this.container = null;\n};\n\n/**\n * Clear cache data for single dragging session.\n */\nDrag.prototype._clearData = function() {\n this._cancelled = false;\n this._distance = 0;\n this._isMoved = false;\n this._dragStartFired = false;\n this._dragStartEventData = null;\n};\n\n/**\n * Toggle events for mouse dragging.\n * @param {boolean} toBind - bind events related with dragging when supplied \"true\"\n */\nDrag.prototype._toggleDragEvent = function(toBind) {\n var container = this.container,\n domMethod,\n method;\n\n if (toBind) {\n domMethod = 'on';\n method = 'disable';\n } else {\n domMethod = 'off';\n method = 'enable';\n }\n\n domutil[method + 'TextSelection'](container);\n domutil[method + 'ImageDrag'](container);\n domevent[domMethod](global.document, {\n mousemove: this._onMouseMove,\n mouseup: this._onMouseUp\n }, this);\n};\n\n/**\n * Normalize mouse event object.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {object} normalized mouse event data.\n */\nDrag.prototype._getEventData = function(mouseEvent) {\n return {\n target: mouseEvent.target || mouseEvent.srcElement,\n originEvent: mouseEvent\n };\n};\n\n/**\n * MouseDown DOM event handler.\n * @param {MouseEvent} mouseDownEvent MouseDown event object.\n */\nDrag.prototype._onMouseDown = function(mouseDownEvent) {\n var opt = this.options,\n target = (mouseDownEvent.srcElement || mouseDownEvent.target);\n\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n if (opt.exclude && opt.exclude(target)) {\n this._cancelled = true;\n\n return;\n }\n\n this._clearData();\n this._dragStartEventData = this._getEventData(mouseDownEvent);\n\n this._toggleDragEvent(true);\n\n /**\n * mousedown event for firefox bug. cancelable.\n * @event Drag#mouseDown\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('mousedown', this._dragStartEventData);\n};\n\n/**\n * MouseMove DOM event handler.\n * @emits Drag#drag\n * @emits Drag#dragStart\n * @param {MouseEvent} mouseMoveEvent MouseMove event object.\n */\nDrag.prototype._onMouseMove = function(mouseMoveEvent) {\n var distance;\n\n if (this._cancelled) {\n this._clearData();\n\n return;\n }\n\n distance = this.options.distance;\n // prevent automatic scrolling.\n domevent.preventDefault(mouseMoveEvent);\n\n if (this._distance < distance) {\n this._distance += 1;\n\n return;\n }\n this._isMoved = true;\n\n if (!this._dragStartFired) {\n this._dragStartFired = true;\n\n /**\n * Drag start events. cancelable.\n * @event Drag#dragStart\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n if (!this.invoke('dragStart', this._dragStartEventData)) {\n this._toggleDragEvent(false);\n this._clearData();\n\n return;\n }\n }\n\n /**\n * CalEvents while dragging.\n * @event Drag#drag\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('drag', this._getEventData(mouseMoveEvent));\n};\n\n/**\n * MouseUp DOM event handler.\n * @param {MouseEvent} mouseUpEvent MouseUp event object.\n * @emits Drag#dragEnd\n * @emits Drag#click\n */\nDrag.prototype._onMouseUp = function(mouseUpEvent) {\n if (this._cancelled) {\n return;\n }\n\n this._toggleDragEvent(false);\n\n // emit \"click\" event when not emitted drag event between mousedown and mouseup.\n if (this._isMoved) {\n this._isMoved = false;\n /**\n * Drag end events.\n * @event Drag#dragEnd\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('dragEnd', this._getEventData(mouseUpEvent));\n } else {\n /**\n * Click events.\n * @event Drag#click\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('click', this._getEventData(mouseUpEvent));\n }\n\n this._clearData();\n};\n\nutil.CustomEvents.mixin(Drag);\n\nmodule.exports = Drag;\n","/**\n * @fileoverview Model for views\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar datetime = require('../../common/datetime');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * Schedule ViewModel\n * @constructor\n * @param {Schedule} schedule Schedule instance.\n */\nfunction ScheduleViewModel(schedule) {\n /**\n * The model of schedule.\n * @type {Schedule}\n */\n this.model = schedule;\n\n /**\n * @type {number}\n */\n this.top = 0;\n\n /**\n * @type {number}\n */\n this.left = 0;\n\n /**\n * @type {number}\n */\n this.width = 0;\n\n /**\n * @type {number}\n */\n this.height = 0;\n\n /**\n * Represent schedule has collide with other schedules when rendering.\n * @type {boolean}\n */\n this.hasCollide = false;\n\n /**\n * Extra space at rigth side of this schedule.\n * @type {number}\n */\n this.extraSpace = 0;\n\n /**\n * represent this schedule block is not visible after rendered.\n *\n * in month view, some viewmodel in date need to hide when already rendered before dates.\n *\n * set true then it just shows empty space.\n * @type {boolean}\n */\n this.hidden = false;\n\n /**\n * whether the schedule includes multiple dates\n */\n this.hasMultiDates = false;\n\n /**\n * represent render start date used at rendering.\n *\n * if set null then use model's 'start' property.\n * @type {TZDate}\n */\n this.renderStarts = null;\n\n /**\n * whether the actual start-date is before the render-start-date\n * @type {boolean}\n */\n this.exceedLeft = false;\n\n /**\n * represent render end date used at rendering.\n *\n * if set null then use model's 'end' property.\n * @type {TZDate}\n */\n this.renderEnds = null;\n\n /**\n * whether the actual end-date is after the render-end-date\n * @type {boolean}\n */\n this.exceedRight = false;\n}\n\n/**********\n * static props\n **********/\n\n/**\n * ScheduleViewModel factory method.\n * @param {Schedule} schedule Schedule instance.\n * @returns {ScheduleViewModel} ScheduleViewModel instance.\n */\nScheduleViewModel.create = function(schedule) {\n return new ScheduleViewModel(schedule);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderStarts is not set. return model's start property.\n * @override\n * @returns {Date} render start date.\n */\nScheduleViewModel.prototype.getStarts = function() {\n if (this.renderStarts) {\n return this.renderStarts;\n }\n\n return this.model.start;\n};\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderEnds is not set. return model's end property.\n * @override\n * @returns {Date} render end date.\n */\nScheduleViewModel.prototype.getEnds = function() {\n if (this.renderEnds) {\n return this.renderEnds;\n }\n\n return this.model.end;\n};\n\n/**\n * @returns {number} unique number for model.\n */\nScheduleViewModel.prototype.cid = function() {\n return util.stamp(this.model);\n};\n\n/**\n * Shadowing valueOf method for schedule sorting.\n * @returns {Schedule} The model of schedule.\n */\nScheduleViewModel.prototype.valueOf = function() {\n return this.model;\n};\n\n/**\n * Link duration method\n * @returns {number} Schedule#duration result.\n */\nScheduleViewModel.prototype.duration = function() {\n return this.model.duration();\n};\n\n/**\n * Link collidesWith method\n * @param {Schedule|ScheduleViewModel} viewModel - Model or viewmodel instance of Schedule.\n * @returns {boolean} Schedule#collidesWith result.\n */\nScheduleViewModel.prototype.collidesWith = function(viewModel) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = viewModel.getStarts(),\n end = viewModel.getEnds();\n var ownGoingDuration = datetime.millisecondsFrom('minutes', this.valueOf().goingDuration),\n ownComingDuration = datetime.millisecondsFrom('minutes', this.valueOf().comingDuration),\n goingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration),\n comingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n\n if (Math.abs(ownEnds - ownStarts) < SCHEDULE_MIN_DURATION) {\n ownEnds += SCHEDULE_MIN_DURATION;\n }\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n ownStarts -= ownGoingDuration;\n ownEnds += ownComingDuration;\n start -= goingDuration;\n end += comingDuration;\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodule.exports = ScheduleViewModel;\n","/**\n * @fileoverview Layout module that supplied split height, resize height features.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n domevent = require('./domevent'),\n View = require('../view/view'),\n VPanel = require('./vpanel'),\n Drag = require('../handler/drag');\n\nvar mAbs = Math.abs;\n\n/**\n * @typedef PanelOptions\n * @type {object}\n * @property {number} [minHeight=0] - minimum height of panel\n * @property {number} [height=0] - current panel height\n * @property {boolean} [splitter=false] - is this panel uses splitter?\n * @property {boolean} [autoHeight=false] - is this panel uses remain height of container?\n * @property {string} [className=''] - className string for add created element\n */\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VLayout module\n * @param {PanelOptions[]} [options.panels] - panels to add layout when initialize\n * @param {number[]} [options.panelHeights] - panel height list\n * @param {HTMLElement} container - container element\n * @param {Theme} theme - theme instance\n */\nfunction VLayout(options, container, theme) {\n var opt, tempHeights;\n\n if (!(this instanceof VLayout)) {\n return new VLayout(options, container);\n }\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('vlayout-container'));\n\n /**\n * @type {object}\n */\n opt = this.options = util.extend({\n panels: [],\n panelHeights: []\n }, options);\n\n /**\n * @type {VPanel[]}\n */\n this.panels = [];\n\n /**\n * @type {Drag}\n */\n this._drag = new Drag({\n distance: 10,\n exclude: function(target) {\n return !domutil.hasClass(target, config.classname('splitter'));\n }\n }, container);\n\n this._drag.on({\n dragStart: this._onDragStart,\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @type {object}\n */\n this._dragData = null;\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n if (opt.panels.length) {\n if (opt.panelHeights.length) {\n tempHeights = opt.panelHeights.slice();\n util.forEach(opt.panels, function(panelOpt) {\n if (!panelOpt.isSplitter && !panelOpt.autoHeight) {\n panelOpt.height = tempHeights.shift();\n }\n });\n }\n\n this.addPanels(opt.panels, this.container);\n }\n\n this.refresh();\n}\n\nutil.inherit(VLayout, View);\n\n/**\n * Get current panels height in layout\n * @returns {number[]} height of panels with `autoHeight` false\n */\nVLayout.prototype.getLayoutData = function() {\n var heightList = [];\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n heightList.push(panel.getHeight());\n });\n\n return heightList;\n};\n\n/**\n * Set panels height in layout\n * @param {number[]} heightList of panels with `autoHeight` false\n */\nVLayout.prototype.setLayoutData = function(heightList) {\n if (!heightList.length) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n panel.setHeight(null, heightList.shift());\n });\n\n this.refresh();\n};\n\n/**\n * Get next panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} next panel\n */\nVLayout.prototype.nextPanel = function(panel) {\n return this.panels[panel.index + 1];\n};\n\n/**\n * Get previous panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} previous panel\n */\nVLayout.prototype.prevPanel = function(panel) {\n return this.panels[panel.index - 1];\n};\n\n/**\n * Initialize resizing guide element\n * @param {HTMLElement} element - element to use guide element after cloned\n * @param {number} top - top pixel value for guide element\n * @returns {HTMLElement} cloned element == guide element\n */\nVLayout.prototype._initializeGuideElement = function(element, top) {\n var cloned = element.cloneNode(true);\n\n domutil.addClass(cloned, config.classname('splitter-guide'));\n this._refreshGuideElement(cloned, top);\n this.container.appendChild(cloned);\n\n return cloned;\n};\n\n/**\n * Refresh guide element position\n * @param {HTMLElement} element - guide element\n * @param {number} top - top pixel value for guide element\n */\nVLayout.prototype._refreshGuideElement = function(element, top) {\n element.style.top = top + 'px';\n};\n\n/**\n * Clear guide element position\n * @param {HTMLElement} element - guide element\n */\nVLayout.prototype._clearGuideElement = function(element) {\n domutil.remove(element);\n};\n\n/**\n * Resize overall panels size\n * @param {VPanel} splPanel - splitter panel instance\n * @param {number} startY - dragstart Y position\n * @param {number} mouseY - dragend Y position\n */\nVLayout.prototype._resize = function(splPanel, startY, mouseY) {\n var diffY = startY - mouseY,\n resizedHeight = mAbs(diffY),\n resizeMap = [],\n toDown = mouseY > startY,\n backwardMethod = toDown ? 'prevPanel' : 'nextPanel',\n forwardMethod = toDown ? 'nextPanel' : 'prevPanel',\n cursor, resizeInfo;\n\n cursor = this[backwardMethod](splPanel);\n resizeInfo = cursor.getResizeInfoByGrowth(resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n\n for (cursor = this[forwardMethod](cursor);\n util.isExisty(cursor);\n cursor = this[forwardMethod](cursor)) {\n if (cursor.isSplitter()) {\n continue;\n }\n\n resizeInfo = cursor.getResizeInfoByGrowth(-resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n resizedHeight -= resizeInfo[1];\n }\n\n util.forEach(resizeMap, function(pair) {\n pair[0].setHeight(null, pair[1], true);\n pair[0].fire('resize');\n });\n};\n\n/**\n * Get summation of splitter and panel's minimum height upper and below of supplied splitter\n * @param {VPanel} splPanel - splitter panel instance\n * @returns {number[]} upper and below splitter's height and panel minimum height summation.\n */\nVLayout.prototype._getMouseYAdditionalLimit = function(splPanel) {\n var upper = 0,\n below = 0,\n cursor,\n func = function(panel) {\n if (panel.isSplitter()) {\n return panel.getHeight();\n }\n\n return panel.options.minHeight;\n };\n\n for (cursor = this.prevPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.prevPanel(cursor)) {\n upper += func(cursor);\n }\n\n for (cursor = this.nextPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.nextPanel(cursor)) {\n below += func(cursor);\n }\n\n return [upper, below];\n};\n\n/**********\n * Drag Handlers\n **********/\n\n/**\n * Drag start schedule handler\n * @param {object} e - drag start schedule data\n */\nVLayout.prototype._onDragStart = function(e) {\n var oEvent = e.originEvent,\n target = e.target,\n splIndex = domutil.getData(target, 'panelIndex'),\n splPanel = this.panels[splIndex],\n splHeight = splPanel.getHeight(),\n splOffsetY = domevent.getMousePosition(oEvent, target)[1],\n mouseY = domevent.getMousePosition(oEvent, this.container)[1],\n guideElement = this._initializeGuideElement(target, mouseY);\n\n splPanel.addClass(config.classname('splitter-focused'));\n\n this._dragData = {\n splPanel: splPanel,\n splOffsetY: splOffsetY,\n guideElement: guideElement,\n startY: mouseY - splOffsetY,\n minY: 0,\n maxY: this.getViewBound().height - splHeight\n };\n\n if (!util.browser.msie) {\n domutil.addClass(document.body, config.classname('resizing'));\n }\n};\n\n/**\n * Drag schedule handler\n * @param {object} e - drag schedule data\n */\nVLayout.prototype._onDrag = function(e) {\n var dragData = this._dragData,\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n mouseY = common.limit(mouseY - dragData.splOffsetY, [dragData.minY], [dragData.maxY]);\n\n this._refreshGuideElement(dragData.guideElement, mouseY);\n};\n\n/**\n * Drag end schedule handler\n * @fires VLayout#resize\n * @param {object} e - dragend schedule data\n */\nVLayout.prototype._onDragEnd = function(e) {\n var dragData = this._dragData,\n asideMinMax = this._getMouseYAdditionalLimit(dragData.splPanel),\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n // mouseY value can't exceed summation of splitter height and panel's minimum height based on target splitter.\n mouseY = common.limit(\n mouseY - dragData.splOffsetY,\n [dragData.minY + asideMinMax[0]],\n [dragData.maxY - asideMinMax[1]]\n );\n\n this._resize(dragData.splPanel, dragData.startY, mouseY);\n\n /**\n * @event VLayout#resize\n * @type {object}\n * @property {number[]} layoutData - layout data after resized\n */\n this.fire('resize', {\n layoutData: this.getLayoutData()\n });\n\n this._dragData = null;\n this._clearGuideElement(dragData.guideElement);\n dragData.splPanel.removeClass(config.classname('splitter-focused'));\n domutil.removeClass(document.body, config.classname('resizing'));\n};\n\n/**********\n * Methods\n **********/\n\n/**\n * refresh each panels\n */\nVLayout.prototype.refresh = function() {\n var panelToFillHeight = [];\n var layoutHeight = this.getViewBound().height;\n var usedHeight = 0;\n var remainHeight;\n\n if (!layoutHeight) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.options.autoHeight) {\n panelToFillHeight.push(panel);\n } else {\n usedHeight += panel.getHeight();\n }\n });\n\n remainHeight = (layoutHeight - usedHeight) / panelToFillHeight.length;\n\n util.forEach(panelToFillHeight, function(panel) {\n panel.setHeight(null, remainHeight);\n });\n};\n\n/**\n * add panel\n * @param {PanelOptions} options - options for panel\n * @param {container} [container] - container element\n */\nVLayout.prototype.addPanel = function(options, container) {\n var element = document.createElement('div'),\n panels = this.panels,\n index = panels.length;\n\n options = util.extend({\n index: index\n }, options);\n\n panels.push(new VPanel(options, element, this.theme));\n\n container.appendChild(element);\n};\n\n/**\n * Add multiple panel\n * @param {PanelOptions[]} options - panel options list\n * @param {HTMLElement} container - container element\n */\nVLayout.prototype.addPanels = function(options, container) {\n var self = this,\n frag = document.createDocumentFragment();\n\n util.forEach(options, function(option) {\n self.addPanel(option, frag);\n });\n\n container.appendChild(frag);\n};\n\n/**\n * Get a panel by name\n * @param {string} name - panel's name\n * @returns {VPanel}\n */\nVLayout.prototype.getPanelByName = function(name) {\n var found;\n util.forEach(this.panels, function(panel) {\n if (panel.name === name) {\n found = panel;\n }\n });\n\n return found;\n};\n\nmodule.exports = VLayout;\n","/**\n * @fileoverview Weekday view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n datetime = require('../common/datetime'),\n TZDate = require('../common/timezone').Date,\n View = require('./view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - view options.\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction Weekday(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('weekday')\n );\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n containerBottomGutter: 8,\n scheduleHeight: 18,\n scheduleGutter: 2,\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false\n }, options);\n\n /*\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n View.call(this, container);\n}\n\nutil.inherit(Weekday, View);\n\n/**\n * Get render date range\n * @returns {Date[]} rendered date range\n */\nWeekday.prototype.getRenderDateRange = function() {\n return this._cacheParentViewModel.range;\n};\n\n/**\n * Get render date grids information\n * @returns {Date[]} rendered date grids information\n */\nWeekday.prototype.getRenderDateGrids = function() {\n return this._cacheParentViewModel.grids;\n};\n\n/**\n * Get default view model.\n * @param {object} viewModel parent's view model\n * @returns {object} viewModel to rendering.\n */\nWeekday.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var range = viewModel.range;\n var gridWidth = (100 / range.length);\n var grids = viewModel.grids;\n var exceedDate = viewModel.exceedDate || {};\n var theme = viewModel.theme;\n var now = new TZDate().toLocalTime();\n\n this._cacheParentViewModel = viewModel;\n\n return {\n width: gridWidth,\n scheduleHeight: opt.scheduleHeight,\n scheduleBlockHeight: (opt.scheduleHeight + opt.scheduleGutter),\n scheduleBlockGutter: opt.scheduleGutter,\n dates: util.map(range, function(date, index) {\n var day = date.getDay();\n var ymd = datetime.format(new TZDate(date), 'YYYYMMDD');\n var isToday = datetime.isSameDate(now, date);\n\n return {\n date: datetime.format(date, 'YYYY-MM-DD'),\n month: date.getMonth() + 1,\n day: day,\n isToday: isToday,\n ymd: ymd,\n hiddenSchedules: exceedDate[ymd] || 0,\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0,\n color: this._getDayNameColor(theme, day, isToday),\n backgroundColor: this._getDayBackgroundColor(theme, day)\n };\n }, this)\n };\n};\n\n/* eslint max-nested-callbacks: 0 */\n/**\n * Make exceed date information\n * @param {number} maxCount - exceed schedule count\n * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n * @param {Array.} range - date range of one week\n * @returns {object} exceedDate\n */\nWeekday.prototype.getExceedDate = function(maxCount, eventsInDateRange, range) {\n var exceedDate = this._initExceedDate(range);\n\n util.forEach(eventsInDateRange, function(matrix) {\n util.forEach(matrix, function(column) {\n util.forEach(column, function(viewModel) {\n var period;\n if (!viewModel || viewModel.top < maxCount) {\n return;\n }\n\n // check that this schedule block is not visible after rendered.\n viewModel.hidden = true;\n\n period = datetime.range(\n viewModel.getStarts(),\n viewModel.getEnds(),\n datetime.MILLISECONDS_PER_DAY\n );\n\n util.forEach(period, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] += 1;\n });\n });\n });\n });\n\n return exceedDate;\n};\n\n/**\n * Initiate exceed date information\n * @param {Array.} range - date range of one week\n * @returns {Object} - initiated exceed date\n */\nWeekday.prototype._initExceedDate = function(range) {\n var exceedDate = {};\n\n util.forEach(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] = 0;\n });\n\n return exceedDate;\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {boolean} isOtherMonth - not this month flag\n * @returns {string} style - color style\n */\nWeekday.prototype._getDayNameColor = function(theme, day, isToday, isOtherMonth) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = isOtherMonth ? theme.month.holidayExceptThisMonth.color : theme.common.holiday.color;\n } else if (day === 6) {\n color = isOtherMonth ? theme.month.dayExceptThisMonth.color : theme.common.saturday.color;\n } else if (isToday) {\n color = theme.common.today.color;\n } else {\n color = isOtherMonth ? theme.month.dayExceptThisMonth.color : theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\n/**\n * Get a day background color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @returns {string} style - color style\n */\nWeekday.prototype._getDayBackgroundColor = function(theme, day) {\n var color = '';\n\n if (theme) {\n if (day === 0 || day === 6) {\n color = theme.month.weekend.backgroundColor;\n } else {\n color = 'inherit';\n }\n }\n\n return color;\n};\n\nmodule.exports = Weekday;\n","/**\n * @fileoverview\n * Class for represent two dimensional x, y coordinates.\n *\n * It suppliy a group of functions for manipulate coordinates.\n * @author NHN FE Development Lab \n * @example\n * var p = point(10, 10);\n * var r1 = p.add(Point(5, 5));\n * console.log(p.toString()) // \"Point(10, 10)\"\n * console.log(r1.toString()) // \"Point(15, 15)\"\n *\n * var p2 = new Point(10, 10);\n * p2._add(point(5, 5));\n * console.log(p2.toString()) // \"Point(15, 15)\"\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\n/**\n * Class for represent two dimentional x, y coordinates.\n * @constructor\n * @param {number} x The number of X coordinates.\n * @param {number} y The number of Y coordinates.\n * @param {boolean} [useRound=false] set true when each coordinates are rounded before initialize.\n * @example\n * var t = new Point(13, 5);\n */\nfunction Point(x, y, useRound) {\n /**\n * @type {number}\n */\n this.x = (useRound ? Math.round(x) : x);\n\n /**\n * @type {number}\n */\n this.y = (useRound ? Math.round(y) : y);\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Calculate point ratio.\n * @param {Point} point The instance of point.\n * @param {number} factor From factor\n * @param {number} toFactor To factor\n * @returns {Point} Point instance calculated.\n */\nPoint.getRatio = function(point, factor, toFactor) {\n if (factor === toFactor) {\n return point.clone();\n }\n\n return point.multiplyBy(toFactor)._divideBy(factor);\n};\n\n/**\n * Syntatic sugar of new Point()\n * @param {(Point|number|number[])} x X coordinate value.\n * @param {(number|boolean)} [y] Y coordinate value or boolean value for coordinates round.\n * @param {boolean} [useRound] Set true then round initial coordinate values.\n * @returns {Point} The instance of point.\n * @example\n * var p1 = point(10, 15);\n * var p2 = point([10, 15]);\n */\nPoint.n = function(x, y, useRound) {\n if (x instanceof Point) {\n return x;\n }\n\n if (util.isArray(x)) {\n return new Point(x[0], x[1], y);\n }\n\n return new Point(x, y, useRound);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Clone points\n * @returns {Point} The point instance cloned.\n */\nPoint.prototype.clone = function() {\n return new Point(this.x, this.y);\n};\n\n/**\n * Add points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.add = function(point) {\n return this.clone()._add(Point.n(point));\n};\n\n/**\n * Add self points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._add = function(point) {\n this.x += point.x;\n this.y += point.y;\n\n return this;\n};\n\n/**\n * Subtract points.\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.subtract = function(point) {\n return this.clone()._subtract(Point.n(point));\n};\n\n/**\n * Subtract points. (manipulate self)\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._subtract = function(point) {\n this.x -= point.x;\n this.y -= point.y;\n\n return this;\n};\n\n/**\n * Divide points.\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.divideBy = function(num) {\n return this.clone()._divideBy(num);\n};\n\n/**\n * Divide points. (manipulate self)\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._divideBy = function(num) {\n this.x /= num;\n this.y /= num;\n\n return this;\n};\n\n/**\n * Multiply coordinates.\n * @param {number} num Thyen number to multiply\n * @returns {Point} Point calculated.\n */\nPoint.prototype.multiplyBy = function(num) {\n return this.clone()._multiplyBy(num);\n};\n\n/**\n * Multiply self coordinates.\n * @param {number} num The number to multiply.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._multiplyBy = function(num) {\n this.x *= num;\n this.y *= num;\n\n return this;\n};\n\n/**\n * Round coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.round = function() {\n return this.clone()._round();\n};\n\n/**\n * Round self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._round = function() {\n this.x = Math.round(this.x);\n this.y = Math.round(this.y);\n\n return this;\n};\n\n/**\n * Reverse values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.reverse = function() {\n return this.clone()._reverse();\n};\n\n/**\n * Reverse self values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._reverse = function() {\n this.x *= -1;\n this.y *= -1;\n\n return this;\n};\n\n/**\n * Floor coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.floor = function() {\n return this.clone()._floor();\n};\n\n/**\n * Floor self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._floor = function() {\n this.x = Math.floor(this.x);\n this.y = Math.floor(this.y);\n\n return this;\n};\n\n/**\n * Ceil coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.ceil = function() {\n return this.clone()._ceil();\n};\n\n/**\n * Ceil self coodinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._ceil = function() {\n this.x = Math.ceil(this.x);\n this.y = Math.ceil(this.y);\n\n return this;\n};\n\n/**\n * Rotate point.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype.rotate = function(deg, center, cos, sin) {\n return this.clone()._rotate(deg, center, cos, sin);\n};\n\n/**\n * Rotate self.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype._rotate = function(deg, center, cos, sin) {\n var rad = deg * (Math.PI / 180),\n x,\n y;\n\n cos = cos || parseFloat(Math.cos(rad).toFixed(8));\n sin = sin || parseFloat(Math.sin(rad).toFixed(8));\n\n this._subtract(center);\n\n x = this.x;\n y = this.y;\n\n this.x = (x * cos) - (y * sin);\n this.y = (x * sin) + (y * cos);\n\n this._add(center);\n\n return this;\n};\n\n/**\n * Calculate distance between two points.\n * @param {Point} point Point instance.\n * @returns {number} The number of distance between two points.\n */\nPoint.prototype.distanceTo = function(point) {\n var x,\n y;\n\n point = Point.n(point);\n\n x = point.x - this.x;\n y = point.y - this.y;\n\n return Math.sqrt((x * x) + (y * y));\n};\n\n/**\n * Check point equals.\n * @param {Point} point Point instance to compare\n * @returns {boolean} equality\n */\nPoint.prototype.equals = function(point) {\n point = Point.n(point);\n\n return point.x === this.x && point.y === this.y;\n};\n\n/**\n * Return formatted string. 'Point(x, y)'\n * @returns {string} string\n */\nPoint.prototype.toString = function() {\n return 'Point(' + this.x + ', ' + this.y + ')';\n};\n\n/**\n * Return coodinates to array. [x, y]\n * @returns {number[]} coordinate array.\n */\nPoint.prototype.toArray = function() {\n return [this.x, this.y];\n};\n\nmodule.exports = Point;\n","/**\n * @fileoverview Floating layer for writing new schedules\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar View = require('../../view/view');\nvar FloatingLayer = require('../../common/floatingLayer');\nvar util = require('tui-code-snippet');\nvar DatePicker = require('tui-date-picker');\nvar timezone = require('../../common/timezone');\nvar config = require('../../config');\nvar domevent = require('../../common/domevent');\nvar domutil = require('../../common/domutil');\nvar common = require('../../common/common');\nvar tmpl = require('../template/popup/scheduleCreationPopup.hbs');\nvar TZDate = timezone.Date;\nvar MAX_WEEK_OF_MONTH = 6;\nvar ARROW_WIDTH_HALF = 8;\n\n/**\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container - container element\n * @param {Array.} calendars - calendar list used to create new schedule\n * @param {boolean} usageStatistics - GA tracking options in Calendar\n */\nfunction ScheduleCreationPopup(container, calendars, usageStatistics) {\n View.call(this, container);\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n this._selectedCal = null;\n this._schedule = null;\n this.calendars = calendars;\n this._focusedDropdown = null;\n this._usageStatistics = usageStatistics;\n this._onClickListeners = [\n this._selectDropdownMenuItem.bind(this),\n this._toggleDropdownMenuView.bind(this),\n this._closeDropdownMenuView.bind(this, null),\n this._closePopup.bind(this),\n this._toggleIsAllday.bind(this),\n this._toggleIsPrivate.bind(this),\n this._onClickSaveSchedule.bind(this)\n ];\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(ScheduleCreationPopup, View);\n\n/**\n * Mousedown event handler for hiding popup layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nScheduleCreationPopup.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n popupLayer = domutil.closest(target, config.classname('.floating-layer'));\n\n if (popupLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * @override\n */\nScheduleCreationPopup.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nScheduleCreationPopup.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n\n util.forEach(this._onClickListeners, function(listener) {\n return !listener(target);\n });\n};\n\n/**\n * Test click event target is close button, and return layer is closed(hidden)\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether popup layer is closed or not\n */\nScheduleCreationPopup.prototype._closePopup = function(target) {\n var className = config.classname('popup-close');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.hide();\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Toggle dropdown menu view, when user clicks dropdown button\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether user clicked dropdown button or not\n */\nScheduleCreationPopup.prototype._toggleDropdownMenuView = function(target) {\n var className = config.classname('dropdown-button');\n var dropdownBtn = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n\n if (!dropdownBtn) {\n return false;\n }\n\n if (domutil.hasClass(dropdownBtn.parentNode, config.classname('open'))) {\n this._closeDropdownMenuView(dropdownBtn.parentNode);\n } else {\n this._openDropdownMenuView(dropdownBtn.parentNode);\n }\n\n return true;\n};\n\n/**\n * Close drop down menu\n * @param {HTMLElement} dropdown - dropdown element that has a opened dropdown menu\n */\nScheduleCreationPopup.prototype._closeDropdownMenuView = function(dropdown) {\n dropdown = dropdown || this._focusedDropdown;\n if (dropdown) {\n domutil.removeClass(dropdown, config.classname('open'));\n this._focusedDropdown = null;\n }\n};\n\n/**\n * Open drop down menu\n * @param {HTMLElement} dropdown - dropdown element that has a closed dropdown menu\n */\nScheduleCreationPopup.prototype._openDropdownMenuView = function(dropdown) {\n domutil.addClass(dropdown, config.classname('open'));\n this._focusedDropdown = dropdown;\n};\n\n/**\n * If click dropdown menu item, close dropdown menu\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether\n */\nScheduleCreationPopup.prototype._selectDropdownMenuItem = function(target) {\n var itemClassName = config.classname('dropdown-menu-item');\n var iconClassName = config.classname('icon');\n var contentClassName = config.classname('content');\n var selectedItem = domutil.hasClass(target, itemClassName) ? target : domutil.closest(target, '.' + itemClassName);\n var bgColor, title, dropdown, dropdownBtn;\n\n if (!selectedItem) {\n return false;\n }\n\n bgColor = domutil.find('.' + iconClassName, selectedItem).style.backgroundColor || 'transparent';\n title = domutil.find('.' + contentClassName, selectedItem).innerHTML;\n\n dropdown = domutil.closest(selectedItem, config.classname('.dropdown'));\n dropdownBtn = domutil.find(config.classname('.dropdown-button'), dropdown);\n domutil.find('.' + contentClassName, dropdownBtn).innerText = title;\n\n if (domutil.hasClass(dropdown, config.classname('section-calendar'))) {\n domutil.find('.' + iconClassName, dropdownBtn).style.backgroundColor = bgColor;\n this._selectedCal = common.find(this.calendars, function(cal) {\n return cal.id === domutil.getData(selectedItem, 'calendarId');\n });\n }\n\n domutil.removeClass(dropdown, config.classname('open'));\n\n return true;\n};\n\n/**\n * Toggle allday checkbox state\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether event target is allday section or not\n */\nScheduleCreationPopup.prototype._toggleIsAllday = function(target) {\n var className = config.classname('section-allday');\n var alldaySection = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n var checkbox;\n\n if (alldaySection) {\n checkbox = domutil.find(config.classname('.checkbox-square'), alldaySection);\n checkbox.checked = !checkbox.checked;\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Toggle private button\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether event target is private section or not\n */\nScheduleCreationPopup.prototype._toggleIsPrivate = function(target) {\n var className = config.classname('section-private');\n var privateSection = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n\n if (privateSection) {\n if (domutil.hasClass(privateSection, config.classname('public'))) {\n domutil.removeClass(privateSection, config.classname('public'));\n } else {\n domutil.addClass(privateSection, config.classname('public'));\n }\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Save new schedule if user clicked save button\n * @emits ScheduleCreationPopup#saveSchedule\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether save button is clicked or not\n */\nScheduleCreationPopup.prototype._onClickSaveSchedule = function(target) {\n var className = config.classname('popup-save');\n var cssPrefix = config.cssPrefix;\n var title, isPrivate, location, isAllDay, startDate, endDate, state;\n var start, end, calendarId;\n var changes;\n\n if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n return false;\n }\n\n title = domutil.get(cssPrefix + 'schedule-title');\n startDate = new TZDate(this.rangePicker.getStartDate()).toLocalTime();\n endDate = new TZDate(this.rangePicker.getEndDate()).toLocalTime();\n\n if (!title.value) {\n title.focus();\n\n return true;\n }\n\n if (!startDate && !endDate) {\n return true;\n }\n\n isPrivate = !domutil.hasClass(domutil.get(cssPrefix + 'schedule-private'), config.classname('public'));\n location = domutil.get(cssPrefix + 'schedule-location');\n state = domutil.get(cssPrefix + 'schedule-state');\n isAllDay = !!domutil.get(cssPrefix + 'schedule-allday').checked;\n\n if (isAllDay) {\n startDate.setHours(0, 0, 0);\n endDate.setHours(23, 59, 59);\n }\n\n start = new TZDate(startDate);\n end = new TZDate(endDate);\n\n if (this._selectedCal) {\n calendarId = this._selectedCal.id;\n }\n\n if (this._isEditMode) {\n changes = common.getScheduleChanges(\n this._schedule,\n ['calendarId', 'title', 'location', 'start', 'end', 'isAllDay', 'state'],\n {\n calendarId: calendarId,\n title: title.value,\n location: location.value,\n start: start,\n end: end,\n isAllDay: isAllDay,\n state: state.innerText\n }\n );\n\n this.fire('beforeUpdateSchedule', {\n schedule: util.extend({\n raw: {\n class: isPrivate ? 'private' : 'public'\n }\n }, this._schedule),\n changes: changes,\n start: start,\n end: end,\n calendar: this._selectedCal,\n triggerEventName: 'click'\n });\n } else {\n /**\n * @event ScheduleCreationPopup#beforeCreateSchedule\n * @type {object}\n * @property {Schedule} schedule - new schedule instance to be added\n */\n this.fire('beforeCreateSchedule', {\n calendarId: calendarId,\n title: title.value,\n location: location.value,\n raw: {\n class: isPrivate ? 'private' : 'public'\n },\n start: start,\n end: end,\n isAllDay: isAllDay,\n state: state.innerText\n });\n }\n\n this.hide();\n\n return true;\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nScheduleCreationPopup.prototype.render = function(viewModel) {\n var calendars = this.calendars;\n var layer = this.layer;\n var self = this;\n var boxElement, guideElements;\n\n viewModel.zIndex = this.layer.zIndex + 5;\n viewModel.calendars = calendars;\n if (calendars.length) {\n viewModel.selectedCal = this._selectedCal = calendars[0];\n }\n\n this._isEditMode = viewModel.schedule && viewModel.schedule.id;\n if (this._isEditMode) {\n boxElement = viewModel.target;\n viewModel = this._makeEditModeData(viewModel);\n } else {\n this.guide = viewModel.guide;\n guideElements = this._getGuideElements(this.guide);\n boxElement = guideElements.length ? guideElements[0] : null;\n }\n layer.setContent(tmpl(viewModel));\n this._createDatepicker(viewModel.start, viewModel.end, viewModel.isAllDay);\n layer.show();\n\n if (boxElement) {\n this._setPopupPositionAndArrowDirection(boxElement.getBoundingClientRect());\n }\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Make view model for edit mode\n * @param {object} viewModel - original view model from 'beforeCreateEditPopup'\n * @returns {object} - edit mode view model\n */\nScheduleCreationPopup.prototype._makeEditModeData = function(viewModel) {\n var schedule = viewModel.schedule;\n var title, isPrivate, location, startDate, endDate, isAllDay, state;\n var raw = schedule.raw || {};\n var calendars = this.calendars;\n\n var id = schedule.id;\n title = schedule.title;\n isPrivate = raw['class'] === 'private';\n location = schedule.location;\n startDate = schedule.start;\n endDate = schedule.end;\n isAllDay = schedule.isAllDay;\n state = schedule.state;\n\n viewModel.selectedCal = this._selectedCal = common.find(this.calendars, function(cal) {\n return cal.id === viewModel.schedule.calendarId;\n });\n\n this._schedule = schedule;\n\n return {\n id: id,\n selectedCal: this._selectedCal,\n calendars: calendars,\n title: title,\n isPrivate: isPrivate,\n location: location,\n isAllDay: isAllDay,\n state: state,\n start: startDate,\n end: endDate,\n raw: {\n class: isPrivate ? 'private' : 'public'\n },\n zIndex: this.layer.zIndex + 5,\n isEditMode: this._isEditMode\n };\n};\n\n/**\n * Set popup position and arrow direction to apear near guide element\n * @param {MonthCreationGuide|TimeCreationGuide|DayGridCreationGuide} guideBound - creation guide element\n */\nScheduleCreationPopup.prototype._setPopupPositionAndArrowDirection = function(guideBound) {\n var layer = domutil.find(config.classname('.popup'), this.layer.container);\n var layerSize = {\n width: layer.offsetWidth,\n height: layer.offsetHeight\n };\n var windowSize = {\n right: window.innerWidth,\n bottom: window.innerHeight\n };\n var parentRect = this.layer.parent.getBoundingClientRect();\n var parentBounds = {\n left: parentRect.left,\n top: parentRect.top\n };\n var pos;\n\n pos = this._calcRenderingData(layerSize, windowSize, guideBound);\n pos.x -= parentBounds.left;\n pos.y -= (parentBounds.top + 6);\n this.layer.setPosition(pos.x, pos.y);\n this._setArrowDirection(pos.arrow);\n};\n\n/**\n * Get guide elements from creation guide object\n * It is used to calculate rendering position of popup\n * It will be disappeared when hiding popup\n * @param {MonthCreationGuide|TimeCreationGuide|AlldayCreationGuide} guide - creation guide\n * @returns {Array.} creation guide element\n */\nScheduleCreationPopup.prototype._getGuideElements = function(guide) {\n var guideElements = [];\n var i = 0;\n\n if (guide.guideElement) {\n guideElements.push(guide.guideElement);\n } else if (guide.guideElements) {\n for (; i < MAX_WEEK_OF_MONTH; i += 1) {\n if (guide.guideElements[i]) {\n guideElements.push(guide.guideElements[i]);\n }\n }\n }\n\n return guideElements;\n};\n\n/**\n * Get guide element's bound data which only includes top, right, bottom, left\n * @param {Array.} guideElements - creation guide elements\n * @returns {Object} - popup bound data\n */\nScheduleCreationPopup.prototype._getBoundOfFirstRowGuideElement = function(guideElements) {\n var bound;\n\n if (!guideElements.length) {\n return null;\n }\n\n bound = guideElements[0].getBoundingClientRect();\n\n return {\n top: bound.top,\n left: bound.left,\n bottom: bound.bottom,\n right: bound.right\n };\n};\n\n/**\n * Calculate rendering position usering guide elements\n * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} parentSize - width and height of the upper layer, that acts as a border of popup\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} guideBound - guide element bound data\n * @returns {PopupRenderingData} rendering position of popup and popup arrow\n */\nScheduleCreationPopup.prototype._calcRenderingData = function(layerSize, parentSize, guideBound) {\n var guideHorizontalCenter = (guideBound.left + guideBound.right) / 2;\n var x = guideHorizontalCenter - (layerSize.width / 2);\n var y = guideBound.top - layerSize.height + 3;\n var arrowDirection = 'arrow-bottom';\n var arrowLeft;\n\n if (y < 0) {\n y = guideBound.bottom + 9;\n arrowDirection = 'arrow-top';\n }\n\n if (x > 0 && (x + layerSize.width > parentSize.right)) {\n x = parentSize.right - layerSize.width;\n }\n\n if (x < 0) {\n x = 0;\n }\n\n if (guideHorizontalCenter - x !== layerSize.width / 2) {\n arrowLeft = guideHorizontalCenter - x - ARROW_WIDTH_HALF;\n }\n\n /**\n * @typedef {Object} PopupRenderingData\n * @property {number} x - left position\n * @property {number} y - top position\n * @property {string} arrow.direction - direction of popup arrow\n * @property {number} [arrow.position] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n x: x,\n y: y,\n arrow: {\n direction: arrowDirection,\n position: arrowLeft\n }\n };\n};\n\n/**\n * Set arrow's direction and position\n * @param {Object} arrow rendering data for popup arrow\n */\nScheduleCreationPopup.prototype._setArrowDirection = function(arrow) {\n var direction = arrow.direction || 'arrow-bottom';\n var arrowEl = domutil.get(config.classname('popup-arrow'));\n var borderElement = domutil.find(config.classname('.popup-arrow-border', arrowEl));\n\n if (direction !== config.classname('arrow-bottom')) {\n domutil.removeClass(arrowEl, config.classname('arrow-bottom'));\n domutil.addClass(arrowEl, config.classname(direction));\n }\n\n if (arrow.position) {\n borderElement.style.left = arrow.position + 'px';\n }\n};\n\n/**\n * Create date range picker using start date and end date\n * @param {TZDate} start - start date\n * @param {TZDate} end - end date\n * @param {boolean} isAllDay - isAllDay\n */\nScheduleCreationPopup.prototype._createDatepicker = function(start, end, isAllDay) {\n var cssPrefix = config.cssPrefix;\n\n this.rangePicker = DatePicker.createRangePicker({\n startpicker: {\n date: new TZDate(start).toDate(),\n input: '#' + cssPrefix + 'schedule-start-date',\n container: '#' + cssPrefix + 'startpicker-container'\n },\n endpicker: {\n date: new TZDate(end).toDate(),\n input: '#' + cssPrefix + 'schedule-end-date',\n container: '#' + cssPrefix + 'endpicker-container'\n },\n format: isAllDay ? 'yyyy-MM-dd' : 'yyyy-MM-dd HH:mm',\n timepicker: isAllDay ? null : {\n showMeridiem: false,\n usageStatistics: this._usageStatistics\n },\n usageStatistics: this._usageStatistics\n });\n};\n\n/**\n * Hide layer\n */\nScheduleCreationPopup.prototype.hide = function() {\n this.layer.hide();\n\n if (this.guide) {\n this.guide.clearGuideElement();\n this.guide = null;\n }\n\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nScheduleCreationPopup.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(this.tmpl(this._viewModel));\n }\n};\n\n/**\n * Set calendar list\n * @param {Array.} calendars - calendar list\n */\nScheduleCreationPopup.prototype.setCalendars = function(calendars) {\n this.calendars = calendars || [];\n};\n\nmodule.exports = ScheduleCreationPopup;\n","/**\n * @fileoverview Floating layer for showing detail schedule\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar View = require('../../view/view');\nvar FloatingLayer = require('../../common/floatingLayer');\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domevent = require('../../common/domevent'),\n domutil = require('../../common/domutil');\nvar tmpl = require('../template/popup/scheduleDetailPopup.hbs');\nvar ARROW_WIDTH_HALF = 8;\n\n/**\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container - container element\n */\nfunction ScheduleDetailPopup(container) {\n View.call(this, container);\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n this._schedule = null;\n this._calendar = null;\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(ScheduleDetailPopup, View);\n\n/**\n * Mousedown event handler for hiding popup layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nScheduleDetailPopup.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n popupLayer = domutil.closest(target, config.classname('.floating-layer'));\n\n if (popupLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * @override\n */\nScheduleDetailPopup.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nScheduleDetailPopup.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n\n this._onClickEditSchedule(target);\n\n this._onClickDeleteSchedule(target);\n};\n\n/**\n * @fires ScheduleDetailPopup#clickEditSchedule\n * @param {HTMLElement} target - event target\n */\nScheduleDetailPopup.prototype._onClickEditSchedule = function(target) {\n var className = config.classname('popup-edit');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.fire('beforeUpdateSchedule', {\n schedule: this._schedule,\n triggerEventName: 'click',\n target: this._scheduleEl\n });\n\n this.hide();\n }\n};\n\n/**\n * @fires ScheduleDetailPopup#clickEditSchedule\n * @param {HTMLElement} target - event target\n */\nScheduleDetailPopup.prototype._onClickDeleteSchedule = function(target) {\n var className = config.classname('popup-delete');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.fire('beforeDeleteSchedule', {\n schedule: this._schedule\n });\n\n this.hide();\n }\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nScheduleDetailPopup.prototype.render = function(viewModel) {\n var layer = this.layer;\n var self = this;\n\n layer.setContent(tmpl({\n schedule: viewModel.schedule,\n calendar: viewModel.calendar\n }));\n layer.show();\n this._setPopupPositionAndArrowDirection(viewModel.event);\n\n this._schedule = viewModel.schedule;\n this._calendar = viewModel.calendar;\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Set popup position and arrow direction to apear near guide element\n * @param {Event} event - creation guide element\n */\nScheduleDetailPopup.prototype._setPopupPositionAndArrowDirection = function(event) {\n var layer = domutil.find(config.classname('.popup'), this.layer.container);\n var layerSize = {\n width: layer.offsetWidth,\n height: layer.offsetHeight\n };\n var windowSize = {\n right: window.innerWidth,\n bottom: window.innerHeight\n };\n var parentRect = this.layer.parent.getBoundingClientRect();\n var parentBounds = {\n left: parentRect.left,\n top: parentRect.top\n };\n var scheduleEl = event.target || event.srcElement;\n var blockEl = domutil.closest(scheduleEl, config.classname('.time-date-schedule-block'))\n || domutil.closest(scheduleEl, config.classname('.weekday-schedule'))\n || scheduleEl;\n var scheduleBound = blockEl.getBoundingClientRect();\n var pos;\n\n this._scheduleEl = blockEl;\n\n pos = this._calcRenderingData(layerSize, windowSize, scheduleBound);\n pos.x -= parentBounds.left + 4;\n pos.y -= (parentBounds.top + ARROW_WIDTH_HALF);\n this.layer.setPosition(pos.x, pos.y);\n this._setArrowDirection(pos.arrow);\n};\n\n/**\n * Calculate rendering position usering guide elements\n * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} parentSize - width and height of the upper layer, that acts as a border of popup\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} guideBound - guide element bound data\n * @returns {PopupRenderingData} rendering position of popup and popup arrow\n */\nScheduleDetailPopup.prototype._calcRenderingData = function(layerSize, parentSize, guideBound) {\n var guideVerticalCenter = (guideBound.top + guideBound.bottom) / 2;\n var x = guideBound.right;\n var y = guideVerticalCenter;\n var arrowDirection = 'arrow-left';\n var arrowTop;\n\n if (y < 0) {\n y = y + (layerSize.height / 2) - guideVerticalCenter;\n }\n\n if (x > 0 && (x + layerSize.width > parentSize.right)) {\n x = guideBound.left - layerSize.width - ARROW_WIDTH_HALF - 3;\n arrowDirection = 'arrow-right';\n }\n\n if (x < 0) {\n x = 0;\n }\n\n if (guideBound.right > x + layerSize.width) {\n arrowDirection = 'arrow-right';\n }\n\n /**\n * @typedef {Object} PopupRenderingData\n * @property {number} x - left position\n * @property {number} y - top position\n * @property {string} arrow.direction - direction of popup arrow\n * @property {number} [arrow.position] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n x: x + ARROW_WIDTH_HALF,\n y: y - (layerSize.height / 2) + ARROW_WIDTH_HALF,\n arrow: {\n direction: arrowDirection,\n position: arrowTop\n }\n };\n};\n\n/**\n * Set arrow's direction and position\n * @param {Object} arrow rendering data for popup arrow\n */\nScheduleDetailPopup.prototype._setArrowDirection = function(arrow) {\n var direction = arrow.direction || 'arrow-left';\n var arrowEl = domutil.find(config.classname('.popup-arrow'), this.layer.container);\n var borderElement = domutil.find(config.classname('.popup-arrow-border', arrowEl));\n\n if (direction !== config.classname('arrow-left')) {\n domutil.removeClass(arrowEl, config.classname('arrow-left'));\n domutil.addClass(arrowEl, config.classname(direction));\n }\n\n if (arrow.position) {\n borderElement.style.top = arrow.position + 'px';\n }\n};\n\n/**\n * Hide layer\n */\nScheduleDetailPopup.prototype.hide = function() {\n this.layer.hide();\n\n if (this.guide) {\n this.guide.clearGuideElement();\n this.guide = null;\n }\n\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nScheduleDetailPopup.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(this.tmpl(this._viewModel));\n }\n};\n\nmodule.exports = ScheduleDetailPopup;\n","/**\n * @fileoverview Move handler for DayGrid view.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar dayGridCore = require('./core');\nvar DayGridMoveGuide = require('./moveGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CustomEvents\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {DayGrid} view - view instance.\n * @param {Base} controller - Base controller instance.\n */\nfunction DayGridMove(dragHandler, view, controller) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\n\n /**\n * Temporary variable for dragstart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {DayGridMoveGuide}\n */\n this.guide = new DayGridMoveGuide(this);\n}\n\nDayGridMove.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.view = this.controller =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|DayGridSchedule} return DayGridSchedule view instance when satiate condition.\n */\nDayGridMove.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n parentView,\n matches;\n\n if (~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n parentView = domutil.closest(target, config.classname('.weekday'));\n\n if (!parentView) {\n return false;\n }\n\n cssClass = domutil.getClass(parentView);\n matches = cssClass.match(config.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler method.\n * @emits DayGridMove#dragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler event data.\n */\nDayGridMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.controller,\n excludeTarget = true,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget);\n if (!scheduleBlockElement) {\n return;\n }\n\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event DayGridMove#dragstart\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridMove#drag\n * @param {object} dragEventData - Drag#drag event handler eventdata.\n */\nDayGridMove.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @schedule DayGridMove#drag\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('drag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule model to base controller.\n * @fires DayGridMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from DayGridMove handler module.\n */\nDayGridMove.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newStarts = new TZDate(schedule.start),\n newEnds = new TZDate(schedule.end);\n\n newStarts = newStarts.addDate(dateOffset);\n newEnds = newEnds.addDate(dateOffset);\n\n /**\n * @event DayGridMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: {\n start: newStarts,\n end: newEnds\n },\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridMove#dragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nDayGridMove.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event DayGridMove#dragend\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridMove#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridMove.prototype._onClick = function(clickEventData) {\n /**\n * @event DayGridMove#click\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'click', true);\n};\n\ncommon.mixin(dayGridCore, DayGridMove);\nutil.CustomEvents.mixin(DayGridMove);\n\nmodule.exports = DayGridMove;\n","/**\n * @fileoverview Guide element controller for creation, resize in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n TZDate = require('../../common/timezone').Date,\n tmpl = require('./guide.hbs');\nvar mmax = Math.max,\n mmin = Math.min,\n mabs = Math.abs,\n mfloor = Math.floor;\n\n/**\n * @constructor\n * @param {object} [options] - options\n * @param {boolean} [options.useHandle=false] - whether displaying resize handle on\n * guide element?\n * @param {boolean} [options.isResizeMode=false] - whether resize mode?\n * @param {Month} monthView - Month view instance\n */\nfunction MonthGuide(options, monthView) {\n var self = this;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n top: 0,\n height: '20px',\n bgColor: '#f7ca88',\n label: 'New event',\n isResizeMode: false,\n isCreationMode: false,\n styles: this._getStyles(monthView.controller.theme)\n }, options);\n\n /**\n * @type {Month}\n */\n this.view = monthView;\n\n /**\n * @type {WeekdayInMonth[]}\n */\n this.weeks = monthView.children.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n });\n\n /**\n * @type {number}\n */\n this.days = monthView.children.single().getRenderDateRange().length;\n\n /**\n * @type {function}\n */\n this.ratio = util.bind(function(value) {\n return common.ratio(self.days, 100, value);\n });\n\n /**\n * start coordinate of guide effect. (x, y) (days, weeks) effect can't\n * start lower than this coordinate.\n * @type {number[]}\n */\n this.startCoord = [0, 0];\n\n /**\n * @type {Object.}\n */\n this.guideElements = {};\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = monthView.grids;\n}\n\n/**\n * Destructor\n */\nMonthGuide.prototype.destroy = function() {\n this.clear();\n\n this.options = this.view = this.weeks = this.days =\n this.ratio = this.startCoord = this.guideElements = null;\n};\n\nMonthGuide.prototype.clearGuideElement = function() {\n this.destroy();\n};\n\n/**\n * Get ratio value in week.\n * @param {number} value - value for calc ratio in week\n * @returns {number} percent value\n */\nMonthGuide.prototype._getRatioValueInWeek = function(value) {\n var grid = this.grids[value] || {left: 100};\n\n return grid.left;\n};\n\n/**\n * Create guide element\n * @returns {HTMLElement} guide element\n */\nMonthGuide.prototype._createGuideElement = function() {\n var guide = document.createElement('div');\n\n guide.innerHTML = tmpl(this.options);\n\n return guide.firstChild;\n};\n\n/**\n * Get guide element. if not exist then create one\n * @param {number} y - y coordinate\n * @returns {?HTMLElement} guide element\n */\nMonthGuide.prototype._getGuideElement = function(y) {\n var guideElements = this.guideElements,\n guide = guideElements[y],\n weekdayView = this.weeks[y],\n container;\n\n if (!weekdayView) {\n return null;\n }\n\n if (!guide) {\n guide = this._createGuideElement();\n container = weekdayView.container;\n container.appendChild(guide);\n guideElements[y] = guide;\n }\n\n return guide;\n};\n\n/**\n * Get coordinate by supplied date in month\n * @param {TZDate} date - date to find coordinate\n * @returns {number[]} coordinate (x, y)\n */\nMonthGuide.prototype._getCoordByDate = function(date) {\n var weeks = this.weeks,\n days = this.days,\n getIdxFromDiff = function(d1, d2) {\n return mfloor(datetime.millisecondsTo('day', mabs(d2 - d1)));\n },\n monthStart = datetime.start(weeks[0].options.renderStartDate),\n isBefore = date < monthStart,\n start = new TZDate(monthStart),\n end = new TZDate(monthStart).addDate(isBefore ? -days : days).addDate(-1),\n x = getIdxFromDiff(date, start),\n y = 0;\n\n while (!datetime.isBetweenWithDate(date, start, end)) {\n start.addDate(isBefore ? -days : days);\n end = new TZDate(start).addDate(days - 1);\n x = getIdxFromDiff(date, start);\n y += (isBefore ? -1 : 1);\n }\n\n return [x, y];\n};\n\n/**\n * Get limited coordinate by supplied coodinates\n * @param {number[]} coord - coordinate need to limit\n * @param {number[]} [min] - minimum limitaion of coordinate\n * @param {number[]} [max] - maximum limitation of coordinate\n * @returns {number[]} limited coordiate\n */\nMonthGuide.prototype._getLimitedCoord = function(coord, min, max) {\n var toIndex = 1,\n x = coord[0],\n y = coord[1],\n result;\n\n min = min || [0, 0];\n max = max || [this.days - toIndex, this.weeks.length - toIndex];\n\n if (y < min[1]) {\n result = min.slice(0);\n } else if (y > max[1]) {\n result = max.slice(0);\n } else {\n x = mmax(min[0], x);\n x = mmin(max[0], x);\n result = [x, y];\n }\n\n return result;\n};\n\n/**\n * Prepare guide element modification\n * @param {object} dragStartEvent - dragStart schedule data from *guide\n */\nMonthGuide.prototype.start = function(dragStartEvent) {\n var opt = this.options,\n target = dragStartEvent.target,\n model = dragStartEvent.model,\n x = dragStartEvent.x,\n y = dragStartEvent.y,\n renderMonth = new TZDate(this.view.options.renderMonth),\n temp;\n\n if (opt.isCreationMode) {\n if (model && !datetime.isSameMonth(renderMonth, model.start)) {\n model.start.setMonth(renderMonth.getMonth());\n model.start.setDate(1);\n model.end.setMonth(renderMonth.getMonth());\n model.end.setDate(1);\n }\n } else {\n temp = this._getCoordByDate(model.getStarts());\n x = temp[0];\n y = temp[1];\n\n util.extend(this.options, {\n top: parseInt(target.style.top, 10) + 'px',\n height: parseInt(target.style.height, 10) + 'px',\n label: model.title\n }, model);\n }\n\n if (util.isUndefined(x) || util.isUndefined(y)) {\n temp = this._getCoordByDate(model.getStarts());\n x = temp[0];\n y = temp[1];\n }\n\n this.startCoord = [x, y];\n this.update(x, y);\n};\n\n/**\n * Data for update several guide elements\n * @typedef UpdateIndication\n * @type {object}\n * @property {HTMLElement} guide - guide element\n * @property {number} left - left style value\n * @property {number} width - width style value\n * @property {boolean} [exceedL=false] - whether schedule is exceeded past weeks?\n * @property {boolean} [exceedR=false] - whether schedule is exceeded future weeks?\n */\n\n/**\n * Modify HTML element that uses for guide element\n * @param {UpdateIndication[]} inds - indication of update severel guide element\n */\nMonthGuide.prototype._updateGuides = function(inds) {\n util.forEach(inds, function(ind) {\n var guide = ind.guide,\n exceedLClass = config.classname('month-exceed-left'),\n exceedRClass = config.classname('month-exceed-right');\n\n guide.style.display = 'block';\n guide.style.left = ind.left + '%';\n guide.style.width = ind.width + '%';\n\n if (ind.exceedL) {\n domutil.addClass(guide, exceedLClass);\n } else {\n domutil.removeClass(guide, exceedLClass);\n }\n\n if (ind.exceedR) {\n domutil.addClass(guide, exceedRClass);\n } else {\n domutil.removeClass(guide, exceedRClass);\n }\n });\n};\n\n/**\n * Get guide element indicate for origin week\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getOriginIndicate = function(startCoord, mouseCoord) {\n var left = mmin(startCoord[0], mouseCoord[0]),\n right = mmax(startCoord[0], mouseCoord[0]) + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = startCoord[0];\n right = this.days;\n exceedR = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n left = 0;\n right = startCoord[0] + 1;\n exceedL = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for week related with mouse position\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getMouseIndicate = function(startCoord, mouseCoord) {\n var left = mouseCoord[0],\n right = mouseCoord[0] + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = 0;\n exceedL = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n right = this.days;\n exceedR = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for contained weeks\n * @returns {object} indicate\n */\nMonthGuide.prototype._getContainIndicate = function() {\n return {\n left: 0,\n width: 100,\n exceedL: true,\n exceedR: true\n };\n};\n\n/**\n * Remove several guide element that supplied by parameter\n * @param {number[]} yCoords - array of y coordinate to remove guide element\n */\nMonthGuide.prototype._removeGuideElements = function(yCoords) {\n var guides = this.guideElements;\n\n util.forEach(yCoords, function(y) {\n domutil.remove(guides[y]);\n delete guides[y];\n });\n};\n\n/**\n * Get excluded numbers in range\n * @param {number[]} range - the range. value must be sequencial.\n * @param {number[]} numbers - numbers to check\n * @returns {number[]} excluded numbers\n */\nMonthGuide.prototype._getExcludesInRange = function(range, numbers) {\n var min = mmin.apply(null, range),\n max = mmax.apply(null, range),\n excludes = [];\n\n util.forEach(numbers, function(num) {\n num = parseInt(num, 10);\n if (num < min || num > max) {\n excludes.push(num);\n }\n });\n\n return excludes;\n};\n\n/**\n * Update guide elements by coordinate in month grid from mousemove event\n * @param {number} x - x coordinate\n * @param {number} y - y coordinate\n */\nMonthGuide.prototype.update = function(x, y) {\n var self = this,\n startCoord = this.startCoord,\n mouseCoord = [x, y],\n limitedCoord = this.options.isResizeMode ?\n this._getLimitedCoord(mouseCoord, startCoord) : mouseCoord,\n renderedYIndex = util.keys(this.guideElements),\n yCoordsToUpdate = util.range(\n mmin(startCoord[1], limitedCoord[1]),\n mmax(startCoord[1], limitedCoord[1]) + 1\n ),\n yCoordsToRemove = this._getExcludesInRange(\n yCoordsToUpdate,\n renderedYIndex\n ),\n renderIndication = {};\n\n this._removeGuideElements(yCoordsToRemove);\n\n util.forEach(yCoordsToUpdate, function(guideYCoord) {\n var guide = self._getGuideElement(guideYCoord),\n indicate;\n\n if (!guide) {\n return;\n }\n\n if (guideYCoord === startCoord[1]) {\n indicate = self._getOriginIndicate(startCoord, limitedCoord);\n } else if (guideYCoord === mouseCoord[1]) {\n indicate = self._getMouseIndicate(startCoord, mouseCoord);\n } else {\n indicate = self._getContainIndicate();\n }\n\n renderIndication[guideYCoord] = util.extend({\n guide: guide\n }, indicate);\n });\n\n this._updateGuides(renderIndication);\n};\n\n/**\n * Clear all guide elements\n */\nMonthGuide.prototype.clear = function() {\n util.forEach(this.guideElements, function(element) {\n domutil.remove(element);\n });\n\n this.guideElements = {};\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMonthGuide.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.border = theme.common.creationGuide.border;\n styles.backgroundColor = theme.common.creationGuide.backgroundColor;\n styles.scheduleHeight = theme.month.schedule.height;\n styles.scheduleGutter = theme.month.schedule.marginTop;\n styles.marginLeft = theme.month.schedule.marginLeft;\n styles.marginRight = theme.month.schedule.marginRight;\n styles.borderRadius = theme.month.schedule.borderRadius;\n }\n\n return styles;\n};\n\nmodule.exports = MonthGuide;\n","/**\n * @fileoverview The entry file of fullcalendar\n * @author NHN FE Development Lab\n */\n\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Calendar = require('./js/factory/calendar');\n\nrequire('./css/main.styl');\nrequire('./js/view/template/helper');\n\n// for jquery\nif (global.jQuery) {\n global.jQuery.fn.tuiCalendar = function() {\n var options, instance;\n\n var el = this.get(0);\n var args = Array.prototype.slice.apply(arguments);\n\n if (el) {\n options = util.pick(args, 0) || {};\n\n instance = global.jQuery.data(el, 'tuiCalendar');\n\n if (instance) {\n if (typeof options === 'string' && instance[options]) {\n return instance[options].apply(instance, args.slice(1));\n }\n } else {\n instance = new Calendar(el, options);\n global.jQuery.data(el, 'tuiCalendar', instance);\n }\n }\n\n return this;\n };\n}\n\nmodule.exports = Calendar;\n","/**\n * @fileoverview Factory module for control all other factory.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar GA_TRACKING_ID = 'UA-129951699-1';\n\nvar util = require('tui-code-snippet'),\n Handlebars = require('handlebars-template-loader/runtime');\nvar dw = require('../common/dw'),\n datetime = require('../common/datetime'),\n Layout = require('../view/layout'),\n Drag = require('../handler/drag'),\n controllerFactory = require('./controller'),\n weekViewFactory = require('./weekView'),\n monthViewFactory = require('./monthView'),\n TZDate = require('../common/timezone').Date,\n config = require('../config'),\n timezone = require('../common/timezone'),\n reqAnimFrame = require('../common/reqAnimFrame');\n\nvar mmin = Math.min;\n\n/**\n * Schedule information\n * @typedef {object} Schedule\n * @property {string} [id] - The unique schedule id depends on calendar id\n * @property {string} calendarId - The unique calendar id\n * @property {string} [title] - The schedule title\n * @property {string} [body] - The schedule body text which is text/plain\n * @property {string|TZDate} [start] - The start time. It's 'string' for input. It's 'TZDate' for output like event handler.\n * @property {string|TZDate} [end] - The end time. It's 'string' for input. It's 'TZDate' for output like event handler.\n * @property {number} [goingDuration] - The travel time: Going duration minutes\n * @property {number} [comingDuration] - The travel time: Coming duration minutes\n * @property {boolean} [isAllDay] - The all day schedule\n * @property {string} [category] - The schedule type('milestone', 'task', allday', 'time')\n * @property {string} [dueDateClass] - The task schedule type string\n * (any string value is ok and mandatory if category is 'task')\n * @property {string} [location] - The location\n * @property {Array.} [attendees] - The attendees\n * @property {string} [recurrenceRule] - The recurrence rule\n * @property {boolean} [isPending] - The in progress flag to do something like network job(The schedule will be transparent.)\n * @property {boolean} [isFocused] - The focused schedule flag\n * @property {boolean} [isVisible] - The schedule visibility flag\n * @property {boolean} [isReadOnly] - The schedule read-only flag\n * @property {boolean} [isPrivate] - The private schedule\n * @property {string} [color] - The schedule text color\n * @property {string} [bgColor] - The schedule background color\n * @property {string} [dragBgColor] - The schedule background color when dragging it\n * @property {string} [borderColor] - The schedule left border color\n * @property {string} [customStyle] - The schedule's custom css class\n * @property {any} [raw] - The user data\n * @property {string} [state] - The schedule's state ('busy', 'free')\n */\n\n/**\n * Template functions to support customer renderer\n * @typedef {object} Template\n * @property {function} [milestoneTitle] - The milestone title(at left column) template function\n * @property {function} [milestone] - The milestone template function\n * @property {function} [taskTitle] - The task title(at left column) template function\n * @property {function} [task] - The task template function\n * @property {function} [alldayTitle] - The allday title(at left column) template function\n * @property {function} [allday] - The allday template function\n * @property {function} [time] - The time template function\n * @property {function} [goingDuration] - The travel time(going duration) template function\n * @property {function} [comingDuration] - The travel time(coming duration) template function\n * @property {function} [monthMoreTitleDate] - The month more layer title template function\n * @property {function} [monthMoreClose] - The month more layer close button template function\n * @property {function} [monthGridHeader] - The month grid header(date, decorator, title) template function\n * @property {function} [monthGridHeaderExceed] - The month grid header(exceed schedule count) template function\n * @property {function} [monthGridFooter] - The month grid footer(date, decorator, title) template function\n * @property {function} [monthGridFooterExceed] - The month grid footer(exceed schedule count) template function\n * @property {function} [monthDayname] - The monthly dayname template function\n * @property {function} [weekDayname] - The weekly dayname template function\n * @property {function} [weekGridFooterExceed] - The week/day grid footer(exceed schedule count) template function\n * @property {function} [dayGridTitle] - The week/day grid title template function(e.g. milestone, task, allday)\n * @property {function} [schedule] - The week/day schedule template function(When the schedule category attribute is milestone, task, or all day)\n * @property {function} [collapseBtnTitle] - The week/day (exceed schedule more view) collapse button title template function\n * @property {function} [timezoneDisplayLabel] - The timezone display label template function in time grid\n * @property {function} [timegridDisplayPrimayTime] - Deprecated: use 'timegridDisplayPrimaryTime'\n * @property {function} [timegridDisplayPrimaryTime] - The display label template function of primary timezone in time grid\n * @property {function} [timegridDisplayTime] - The display time template function in time grid\n * @property {function} [timegridCurrentTime] - The current time template function in time grid\n * @property {function} [popupIsAllDay] - The all day checkbox label text template function in the default creation popup\n * @property {function} [popupStateFree] - The free option template function in the state select box of the default creation popup\n * @property {function} [popupStateBusy] - The busy option template function in the state select box of the default creation popup\n * @property {function} [titlePlaceholder] - The title input placeholder text template function in the default creation popup\n * @property {function} [locationPlaceholder] - The location input placeholder text template function in the default creation popup\n * @property {function} [startDatePlaceholder] - The start date input placeholder text template function in the default creation popup\n * @property {function} [endDatePlaceholder] - The end date input placeholder text template function in the default creation popup\n * @property {function} [popupSave] - The 'Save' button text template function in the default creation popup\n * @property {function} [popupUpdate] - The 'Update' button text template function in the default creation popup when in edit mode\n * @property {function} [popupDetailDate] - The schedule date information's template function on the default detail popup\n * @property {function} [popupDetailLocation] - The schedule location text information's template function on the default detail popup\n * @property {function} [popupDetailUser] - The schedule user text information's template function on the default detail popup\n * @property {function} [popupDetailState] - The schedule state(busy or free) text information's template function on the default detail popup\n * @property {function} [popupDetailRepeat] - The schedule repeat information's template function on the default detail popup\n * @property {function} [popupDetailBody] - The schedule body text information's template function on the default detail popup\n * @property {function} [popupEdit] - The 'Edit' button text template function on the default detail popup\n * @property {function} [popupDelete] - The 'Delete' button text template function on the default detail popup\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * ...\n * template: {\n * milestone: function(schedule) {\n * return ' ' + schedule.title + '';\n * },\n * milestoneTitle: function() {\n * return 'MILESTONE';\n * },\n * task: function(schedule) {\n * return '#' + schedule.title;\n * },\n * taskTitle: function() {\n * return 'TASK';\n * },\n * allday: function(schedule) {\n * return getTimeTemplate(schedule, true);\n * },\n * alldayTitle: function() {\n * return 'ALL DAY';\n * },\n * time: function(schedule) {\n * return '' + moment(schedule.start.getTime()).format('HH:mm') + ' ' + schedule.title;\n * },\n * goingDuration: function(schedule) {\n * return '' + schedule.goingDuration + 'min.';\n * },\n * comingDuration: function(schedule) {\n * return '' + schedule.comingDuration + 'min.';\n * },\n * monthMoreTitleDate: function(date, dayname) {\n * var day = date.split('.')[2];\n *\n * return '' + day + ' ' + dayname + '';\n * },\n * monthMoreClose: function() {\n * return '';\n * },\n * monthGridHeader: function(dayModel) {\n * var date = parseInt(dayModel.date.split('-')[2], 10);\n * var classNames = ['tui-full-calendar-weekday-grid-date '];\n *\n * if (dayModel.isToday) {\n * classNames.push('tui-full-calendar-weekday-grid-date-decorator');\n * }\n *\n * return '' + date + '';\n * },\n * monthGridHeaderExceed: function(hiddenSchedules) {\n * return '+' + hiddenSchedules + '';\n * },\n * monthGridFooter: function() {\n * return '';\n * },\n * monthGridFooterExceed: function(hiddenSchedules) {\n * return '';\n * },\n * monthDayname: function(model) {\n * return (model.label).toString().toLocaleUpperCase();\n * },\n * weekDayname: function(model) {\n * return '' + model.date + '  ' + model.dayName + '';\n * },\n * weekGridFooterExceed: function(hiddenSchedules) {\n * return '+' + hiddenSchedules;\n * },\n * dayGridTitle: function(viewName) {\n *\n * // use another functions instead of 'dayGridTitle'\n * // milestoneTitle: function() {...}\n * // taskTitle: function() {...}\n * // alldayTitle: function() {...}\n *\n * var title = '';\n * switch(viewName) {\n * case 'milestone':\n * title = 'MILESTONE';\n * break;\n * case 'task':\n * title = 'TASK';\n * break;\n * case 'allday':\n * title = 'ALL DAY';\n * break;\n * }\n *\n * return title;\n * },\n * schedule: function(schedule) {\n *\n * // use another functions instead of 'schedule'\n * // milestone: function() {...}\n * // task: function() {...}\n * // allday: function() {...}\n *\n * var tpl;\n *\n * switch(category) {\n * case 'milestone':\n * tpl = ' ' + schedule.title + '';\n * break;\n * case 'task':\n * tpl = '#' + schedule.title;\n * break;\n * case 'allday':\n * tpl = getTimeTemplate(schedule, true);\n * break;\n * }\n *\n * return tpl;\n * },\n * collapseBtnTitle: function() {\n * return '';\n * },\n * timezoneDisplayLabel: function(timezoneOffset, displayLabel) {\n * var gmt, hour, minutes;\n *\n * if (!displayLabel) {\n * gmt = timezoneOffset < 0 ? '-' : '+';\n * hour = Math.abs(parseInt(timezoneOffset / 60, 10));\n * minutes = Math.abs(timezoneOffset % 60);\n * displayLabel = gmt + getPadStart(hour) + ':' + getPadStart(minutes);\n * }\n *\n * return displayLabel;\n * },\n * timegridDisplayPrimayTime: function(time) {\n * // will be deprecated. use 'timegridDisplayPrimaryTime'\n * var meridiem = 'am';\n * var hour = time.hour;\n *\n * if (time.hour > 12) {\n * meridiem = 'pm';\n * hour = time.hour - 12;\n * }\n *\n * return hour + ' ' + meridiem;\n * },\n * timegridDisplayPrimaryTime: function(time) {\n * var meridiem = 'am';\n * var hour = time.hour;\n *\n * if (time.hour > 12) {\n * meridiem = 'pm';\n * hour = time.hour - 12;\n * }\n *\n * return hour + ' ' + meridiem;\n * },\n * timegridDisplayTime: function(time) {\n * return getPadStart(time.hour) + ':' + getPadStart(time.hour);\n * },\n * timegridCurrentTime: function(timezone) {\n * var templates = [];\n *\n * if (timezone.dateDifference) {\n * templates.push('[' + timezone.dateDifferenceSign + timezone.dateDifference + ']
    ');\n * }\n *\n * templates.push(moment(timezone.hourmarker).format('HH:mm a'));\n *\n * return templates.join('');\n * },\n * popupIsAllDay: function() {\n * return 'All Day';\n * },\n * popupStateFree: function() {\n * return 'Free';\n * },\n * popupStateBusy: function() {\n * return 'Busy';\n * },\n * titlePlaceholder: function() {\n * return 'Subject';\n * },\n * locationPlaceholder: function() {\n * return 'Location';\n * },\n * startDatePlaceholder: function() {\n * return 'Start date';\n * },\n * endDatePlaceholder: function() {\n * return 'End date';\n * },\n * popupSave: function() {\n * return 'Save';\n * },\n * popupUpdate: function() {\n * return 'Update';\n * },\n * popupDetailDate: function(isAllDay, start, end) {\n * var isSameDate = moment(start).isSame(end);\n * var endFormat = (isSameDate ? '' : 'YYYY.MM.DD ') + 'hh:mm a';\n *\n * if (isAllDay) {\n * return moment(start).format('YYYY.MM.DD') + (isSameDate ? '' : ' - ' + moment(end).format('YYYY.MM.DD'));\n * }\n *\n * return (moment(start).format('YYYY.MM.DD hh:mm a') + ' - ' + moment(end).format(endFormat));\n * },\n * popupDetailLocation: function(schedule) {\n * return 'Location : ' + schedule.location;\n * },\n * popupDetailUser: function(schedule) {\n * return 'User : ' + (schedule.attendees || []).join(', ');\n * },\n * popupDetailState: function(schedule) {\n * return 'State : ' + schedule.state || 'Busy';\n * },\n * popupDetailRepeat: function(schedule) {\n * return 'Repeat : ' + schedule.recurrenceRule;\n * },\n * popupDetailBody: function(schedule) {\n * return 'Body : ' + schedule.body;\n * },\n * popupEdit: function() {\n * return 'Edit';\n * },\n * popupDelete: function() {\n * return 'Delete';\n * }\n * }\n * }\n */\n\n/**\n * Options for daily, weekly view.\n * @typedef {object} WeekOptions\n * @property {number} [startDayOfWeek=0] - The start day of week,\n * @property {Array.} [daynames] - The day names in weekly and daily. Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {boolean} [narrowWeekend=false] - Make weekend column narrow(1/2 width)\n * @property {boolean} [workweek=false] - Show only 5 days except for weekend\n * @property {boolean} [showTimezoneCollapseButton=false] - Show a collapse button to close multiple timezones\n * @property {boolean} [timezonesCollapsed=false] - An initial multiple timezones collapsed state\n * @property {number} [hourStart=0] - Can limit of render hour start.\n * @property {number} [hourEnd=24] - Can limit of render hour end.\n */\n\n/**\n * Options for monthly view.\n * @typedef {object} MonthOptions\n * @property {Array.} [daynames] - The day names in monthly. Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {number} [startDayOfWeek=0] - The start day of week\n * @property {boolean} [narrowWeekend=false] - Make weekend column narrow(1/2 width)\n * @property {number} [visibleWeeksCount=6] - The visible week count in monthly(0 or null are same with 6)\n * @property {boolean} [isAlways6Week=true] - Always show 6 weeks. If false, show 5 weeks or 6 weeks based on the month.\n * @property {boolean} [workweek=false] - Show only 5 days except for weekend\n * @property {number} [visibleScheduleCount] - The visible schedule count in monthly grid\n * @property {object} [moreLayerSize] - The more layer size\n * @property {object} [moreLayerSize.width=null] - The css width value(px, 'auto').\n* The default value 'null' is to fit a grid cell.\n * @property {object} [moreLayerSize.height=null] - The css height value(px, 'auto').\n* The default value 'null' is to fit a grid cell.\n * @property {object} [grid] - The grid's header and footer information\n * @property {object} [grid.header] - The grid's header informatioin\n * @property {number} [grid.header.height=34] - The grid's header height\n * @property {object} [grid.footer] - The grid's footer informatioin\n * @property {number} [grid.footer.height=34] - The grid's footer height\n * @property {function} [scheduleFilter=null] - The filter schedules on month view. A parameter is {Schedule} object.\n */\n\n/**\n * @typedef {object} CalendarColor\n * @property {string} [color] - The calendar color\n * @property {string} [bgColor] - The calendar background color\n * @property {string} [borderColor] - The calendar left border color\n * @property {string} [dragBgColor] - The Background color displayed when you drag a calendar's schedule\n */\n\n/**\n * @typedef {object} Timezone\n * @property {number} [timezoneOffset] - The minutes for your timezone offset. If null, use the browser's timezone. Refer to Date.prototype.getTimezoneOffset()\n * @property {string} [displayLabel] - The display label of your timezone at weekly/daily view(e.g. 'GMT+09:00')\n * @property {string} [tooltip] - The tooltip(e.g. 'Seoul')\n * @example\n * var cal = new Calendar('#calendar', {\n * timezones: [{\n * timezoneOffset: 540,\n * displayLabel: 'GMT+09:00',\n * tooltip: 'Seoul'\n * }, {\n * timezoneOffset: -420,\n * displayLabel: 'GMT-08:00',\n * tooltip: 'Los Angeles'\n * }]\n * });\n */\n\n/**\n * @typedef {object} CalendarProps\n * @property {string|number} id - The calendar id\n * @property {string} name - The calendar name\n * @property {string} color - The text color when schedule is displayed\n * @property {string} bgColor - The background color schedule is displayed\n * @property {string} borderColor - The color of left border or bullet point when schedule is displayed\n * @property {string} dragBgColor - The background color when schedule dragging\n * @example\n * var cal = new Calendar('#calendar', {\n * ...\n * calendars: [\n * {\n * id: '1',\n * name: 'My Calendar',\n * color: '#ffffff',\n * bgColor: '#9e5fff',\n * dragBgColor: '#9e5fff',\n * borderColor: '#9e5fff'\n * },\n * {\n * id: '2',\n * name: 'Company',\n * color: '#00a9ff',\n * bgColor: '#00a9ff',\n * dragBgColor: '#00a9ff',\n * borderColor: '#00a9ff'\n * },\n * ]\n * });\n */\n\n/**\n * @typedef {object} Options - Calendar option object\n * @property {string} [defaultView='week'] - Default view of calendar. The default value is 'week'.\n * @property {boolean|Array.} [taskView=true] - Show the milestone and task in weekly, daily view. The default value is true. If the value is array, it can be ['milestone', 'task'].\n * @property {boolean|Array.} [scheduleView=true] - Show the all day and time grid in weekly, daily view. The default value is false. If the value is array, it can be ['allday', 'time'].\n * @property {themeConfig} [theme=themeConfig] - {@link themeConfig} for custom style.\n * @property {Template} [template={}] - {@link Template} for further information\n * @property {WeekOptions} [week={}] - {@link WeekOptions} for week view\n * @property {MonthOptions} [month={}] - {@link MonthOptions} for month view\n * @property {Array.} [calendars=[]] - {@link CalendarProps} List that can be used to add new schedule. The default value is [].\n * @property {boolean} [useCreationPopup=false] - Whether use default creation popup or not. The default value is false.\n * @property {boolean} [useDetailPopup=false] - Whether use default detail popup or not. The default value is false.\n * @property {Array.} [timezones] - {@link Timezone} array.\n * The first Timezone element is primary and can override Calendar#setTimezoneOffset function\n * The rest timezone elements are shown in left timegrid of weekly/daily view\n * @property {boolean} [disableDblClick=false] - Disable double click to create a schedule. The default value is false.\n * @property {boolean} [disableClick=false] - Disable click to create a schedule. The default value is false.\n * @property {boolean} [isReadOnly=false] - {@link Calendar} is read-only mode and a user can't create and modify any schedule. The default value is false.\n * @property {boolean} [usageStatistics=true] - Let us know the hostname. If you don't want to send the hostname, please set to false.\n */\n\n/**\n * {@link https://nhn.github.io/tui.code-snippet/latest/tui.util.CustomEvents.html CustomEvents} document at {@link https://github.com/nhn/tui.code-snippet tui-code-snippet}\n * @typedef {class} CustomEvents\n */\n\n/**\n * @typedef {object} TimeCreationGuide - Time creation guide instance to present selected time period\n * @property {HTMLElement} guideElement - Guide element\n * @property {Object.} guideElements - Map by key. It can be used in monthly view\n * @property {function} clearGuideElement - Hide the creation guide\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var guide = event.guide;\n * // Use guideEl$'s left, top to locate your schedule creation popup\n * var guideEl$ = guide.guideElement ?\n * guide.guideElement : guide.guideElements[Object.keys(guide.guideElements)[0]];\n *\n * // After that call this to hide the creation guide\n * guide.clearGuideElement();\n * });\n */\n\n/**\n * Calendar class\n * @constructor\n * @mixes CustomEvents\n * @param {HTMLElement|string} container - The container element or selector id\n * @param {Options} options - The calendar {@link Options} object\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * defaultView: 'week',\n * taskView: true, // Can be also ['milestone', 'task']\n * scheduleView: true, // Can be also ['allday', 'time']\n * template: {\n * milestone: function(schedule) {\n * return ' ' + schedule.title + '';\n * },\n * milestoneTitle: function() {\n * return 'Milestone';\n * },\n * task: function(schedule) {\n * return '  #' + schedule.title;\n * },\n * taskTitle: function() {\n * return '';\n * },\n * allday: function(schedule) {\n * return schedule.title + ' ';\n * },\n * alldayTitle: function() {\n * return 'All Day';\n * },\n * time: function(schedule) {\n * return schedule.title + ' ' + schedule.start;\n * }\n * },\n * month: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * },\n * week: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * }\n * });\n */\nfunction Calendar(container, options) {\n options = util.extend({\n usageStatistics: true\n }, options);\n\n if (options.usageStatistics === true && util.sendHostname) {\n util.sendHostname('calendar', GA_TRACKING_ID);\n }\n\n if (util.isString(container)) {\n container = document.querySelector(container);\n }\n\n /**\n * Calendar color map\n * @type {object}\n * @private\n */\n this._calendarColor = {};\n\n /**\n * Current rendered date\n * @type {TZDate}\n * @private\n */\n this._renderDate = datetime.start();\n\n /**\n * start and end date of weekly, monthly\n * @type {object}\n * @private\n */\n this._renderRange = {\n start: null,\n end: null\n };\n\n /**\n * base controller\n * @type {Base}\n * @private\n */\n this._controller = _createController(options);\n this._controller.setCalendars(options.calendars);\n\n /**\n * layout view (layout manager)\n * @type {Layout}\n * @private\n */\n this._layout = new Layout(container, this._controller.theme);\n\n /**\n * global drag handler\n * @type {Drag}\n * @private\n */\n this._dragHandler = new Drag({distance: 10}, this._layout.container);\n\n /**\n * current rendered view name. ('day', 'week', 'month')\n * @type {string}\n * @default 'week'\n * @private\n */\n this._viewName = options.defaultView || 'week';\n\n /**\n * Refresh method. it can be ref different functions for each view modes.\n * @type {function}\n * @private\n */\n this._refreshMethod = null;\n\n /**\n * Scroll to now. It can be called for 'week', 'day' view modes.\n * @type {function}\n * @private\n */\n this._scrollToNowMethod = null;\n\n /**\n * It's true if Calendar.prototype.scrollToNow() is called.\n * @type {boolean}\n * @private\n */\n this._requestScrollToNow = false;\n\n /**\n * Open schedule creation popup\n * @type {function}\n * @private\n */\n this._openCreationPopup = null;\n\n /**\n * Hide the more view\n * @type {function}\n * @private\n */\n this._hideMoreView = null;\n\n /**\n * Unique id for requestAnimFrame()\n * @type {number}\n * @private\n */\n this._requestRender = 0;\n\n /**\n * calendar options\n * @type {Options}\n * @private\n */\n this._options = {};\n\n this._initialize(options);\n}\n\n/**\n * destroy calendar instance.\n */\nCalendar.prototype.destroy = function() {\n this._dragHandler.destroy();\n this._controller.off();\n this._layout.clear();\n this._layout.destroy();\n\n util.forEach(this._options.template, function(func, name) {\n if (func) {\n Handlebars.unregisterHelper(name + '-tmpl');\n }\n });\n\n this._options = this._renderDate = this._controller =\n this._layout = this._dragHandler = this._viewName =\n this._refreshMethod = this._scrollToNowMethod = null;\n};\n\n/**\n * Initialize calendar\n * @param {Options} options - calendar options\n * @private\n */\nCalendar.prototype._initialize = function(options) {\n var controller = this._controller,\n viewName = this._viewName;\n\n this._options = util.extend({\n defaultView: viewName,\n taskView: true,\n scheduleView: true,\n template: util.extend({\n allday: null,\n time: null\n }, util.pick(options, 'template') || {}),\n week: util.extend(\n {\n startDayOfWeek: 0,\n workweek: false\n },\n util.pick(options, 'week') || {}\n ),\n month: util.extend(\n {\n startDayOfWeek: 0,\n workweek: false,\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible) &&\n (schedule.category === 'allday' || schedule.category === 'time');\n }\n },\n util.pick(options, 'month') || {}\n ),\n calendars: [],\n useCreationPopup: false,\n useDetailPopup: false,\n timezones: options.timezones || [],\n disableDblClick: false,\n disableClick: false,\n isReadOnly: false\n }, options);\n\n if (this._options.isReadOnly) {\n this._options.useCreationPopup = false;\n }\n\n this._layout.controller = controller;\n\n this._setAdditionalInternalOptions(options);\n\n this.changeView(viewName, true);\n};\n\n/**\n * Set additional internal options\n * 1. Register to the template handlebar\n * 2. Update the calendar list and set the color of the calendar.\n * 3. Change the primary timezone offset of the timezones.\n * @param {Options} options - calendar options\n * @private\n */\nCalendar.prototype._setAdditionalInternalOptions = function(options) {\n var timezones = options.timezones || [];\n\n util.forEach(options.template, function(func, name) {\n if (func) {\n Handlebars.registerHelper(name + '-tmpl', func);\n }\n });\n\n util.forEach(options.calendars || [], function(calendar) {\n this.setCalendarColor(calendar.id, calendar, true);\n }, this);\n\n if (timezones.length) {\n timezone.setOffsetByTimezoneOption(timezones[0].timezoneOffset);\n }\n};\n\n/**********\n * CRUD Methods\n **********/\n\n/**\n * Create schedules and render calendar.\n * @param {Array.} schedules - {@link Schedule} data list\n * @param {boolean} [silent=false] - no auto render after creation when set true\n * @example\n * calendar.createSchedules([\n * {\n * id: '1',\n * calendarId: '1',\n * title: 'my schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T22:30:00+09:00',\n * end: '2018-01-19T02:30:00+09:00'\n * },\n * {\n * id: '2',\n * calendarId: '1',\n * title: 'second schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T17:30:00+09:00',\n * end: '2018-01-19T17:31:00+09:00'\n * }\n * ]);\n */\nCalendar.prototype.createSchedules = function(schedules, silent) {\n util.forEach(schedules, function(obj) {\n this._setScheduleColor(obj.calendarId, obj);\n }, this);\n\n this._controller.createSchedules(schedules, silent);\n\n if (!silent) {\n this.render();\n }\n};\n\n/**\n * Get a {@link Schedule} object by schedule id and calendar id.\n * @param {string} scheduleId - ID of schedule\n * @param {string} calendarId - calendarId of the schedule\n * @returns {Schedule} schedule object\n * @example\n * var schedule = calendar.getSchedule(scheduleId, calendarId);\n * console.log(schedule.title);\n */\nCalendar.prototype.getSchedule = function(scheduleId, calendarId) {\n return this._controller.schedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n};\n\n/**\n * Update the schedule\n * @param {string} scheduleId - ID of the original schedule to update\n * @param {string} calendarId - The calendarId of the original schedule to update\n * @param {object} changes - The {@link Schedule} properties and values with changes to update\n * @param {boolean} [silent=false] - No auto render after creation when set true\n * @example\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * title: 'Changed schedule',\n * start: new Date('2019-11-05T09:00:00'),\n * end: new Date('2019-11-05T10:00:00'),\n * category: 'time'\n * });\n */\nCalendar.prototype.updateSchedule = function(scheduleId, calendarId, changes, silent) {\n var ctrl = this._controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n var hasChangedCalendar = false;\n\n if (!changes || !schedule) {\n return;\n }\n\n hasChangedCalendar = this._hasChangedCalendar(schedule, changes);\n changes = hasChangedCalendar ?\n this._setScheduleColor(changes.calendarId, changes) :\n changes;\n\n ctrl.updateSchedule(schedule, changes);\n\n if (!silent) {\n this.render();\n }\n};\n\nCalendar.prototype._hasChangedCalendar = function(schedule, changes) {\n return schedule &&\n changes.calendarId &&\n schedule.calendarId !== changes.calendarId;\n};\n\nCalendar.prototype._setScheduleColor = function(calendarId, schedule) {\n var calColor = this._calendarColor;\n var color = calColor[calendarId];\n\n if (color) {\n schedule.color = schedule.color || color.color;\n schedule.bgColor = schedule.bgColor || color.bgColor;\n schedule.borderColor = schedule.borderColor || color.borderColor;\n schedule.dragBgColor = schedule.dragBgColor || color.dragBgColor;\n }\n\n return schedule;\n};\n\n/**\n * Delete a schedule.\n * @param {string} scheduleId - ID of schedule to delete\n * @param {string} calendarId - The CalendarId of the schedule to delete\n * @param {boolean} [silent=false] - No auto render after creation when set true\n */\nCalendar.prototype.deleteSchedule = function(scheduleId, calendarId, silent) {\n var ctrl = this._controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n\n if (!schedule) {\n return;\n }\n\n ctrl.deleteSchedule(schedule);\n if (!silent) {\n this.render();\n }\n};\n\n/**********\n * Private Methods\n **********/\n\n/**\n * @param {string|Date} date - The Date to show in calendar\n * @param {number} [startDayOfWeek=0] - The Start day of week\n * @param {boolean} [workweek=false] - The only show work week\n * @returns {array} render range\n * @private\n */\nCalendar.prototype._getWeekDayRange = function(date, startDayOfWeek, workweek) {\n var day;\n var start;\n var end;\n var range;\n\n startDayOfWeek = (startDayOfWeek || 0); // eslint-disable-line\n date = util.isDate(date) ? date : new TZDate(date);\n day = date.getDay();\n\n // calculate default render range first.\n start = new TZDate(date).addDate(-day + startDayOfWeek);\n\n end = new TZDate(start).addDate(6);\n\n if (day < startDayOfWeek) {\n start = new TZDate(start).addDate(-7);\n end = new TZDate(end).addDate(-7);\n }\n\n if (workweek) {\n range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n );\n\n range = util.filter(range, function(weekday) {\n return !datetime.isWeekend(weekday.getDay());\n });\n\n start = range[0];\n end = range[range.length - 1];\n }\n\n start = datetime.start(start);\n end = datetime.start(end);\n\n return [start, end];\n};\n\n/**\n * Toggle schedules' visibility by calendar ID\n * @param {string} calendarId - The calendar id value\n * @param {boolean} toHide - Set true to hide schedules\n * @param {boolean} [render=true] - set true then render after change visible property each models\n */\nCalendar.prototype.toggleSchedules = function(calendarId, toHide, render) {\n var ownSchedules = this._controller.schedules;\n\n render = util.isExisty(render) ? render : true;\n calendarId = util.isArray(calendarId) ? calendarId : [calendarId];\n\n ownSchedules.each(function(schedule) {\n if (~util.inArray(schedule.calendarId, calendarId)) {\n schedule.set('isVisible', !toHide);\n }\n });\n\n if (render) {\n this.render();\n }\n};\n\n/**********\n * General Methods\n **********/\n\n/**\n * Render the calendar. The real rendering occurs after requestAnimationFrame.\n * If you have to render immediately, use the 'immediately' parameter as true.\n * @param {boolean} [immediately=false] - Render it immediately\n * @example\n * var silent = true;\n * calendar.clear();\n * calendar.createSchedules(schedules, silent);\n * calendar.render();\n * @example\n * // Render a calendar when resizing a window.\n * window.addEventListener('resize', function() {\n * calendar.render();\n * });\n */\nCalendar.prototype.render = function(immediately) {\n if (this._requestRender) {\n reqAnimFrame.cancelAnimFrame(this._requestRender);\n }\n\n if (immediately) {\n this._renderFunc();\n } else {\n this._requestRender = reqAnimFrame.requestAnimFrame(this._renderFunc, this);\n }\n};\n\n/**\n * Render and refresh all layout and process requests.\n * @private\n */\nCalendar.prototype._renderFunc = function() {\n if (this._refreshMethod) {\n this._refreshMethod();\n }\n if (this._layout) {\n this._layout.render();\n }\n if (this._scrollToNowMethod && this._requestScrollToNow) {\n this._scrollToNowMethod();\n }\n\n this._requestScrollToNow = false;\n this._requestRender = null;\n};\n\n/**\n * Delete all schedules and clear view. The real rendering occurs after requestAnimationFrame.\n * If you have to render immediately, use the 'immediately' parameter as true.\n * @param {boolean} [immediately=false] - Render it immediately\n * @example\n * calendar.clear();\n * calendar.createSchedules(schedules, true);\n * calendar.render();\n */\nCalendar.prototype.clear = function(immediately) {\n this._controller.clearSchedules();\n this.render(immediately);\n};\n\n/**\n * Scroll to current time on today in case of daily, weekly view\n * @example\n * function onNewSchedules(schedules) {\n * calendar.createSchedules(schedules);\n * if (calendar.getViewName() !== 'month') {\n * calendar.scrollToNow();\n * }\n * }\n */\nCalendar.prototype.scrollToNow = function() {\n if (this._scrollToNowMethod) {\n this._requestScrollToNow = true;\n // this._scrollToNowMethod() will be called at next frame rendering.\n }\n};\n\n/**\n * Move to today.\n * @example\n * function onClickTodayBtn() {\n * calendar.today();\n * }\n */\nCalendar.prototype.today = function() {\n this._renderDate = datetime.start();\n\n this._setViewName(this._viewName);\n this.move();\n this.render();\n};\n\n/**\n * Move the calendar amount of offset value\n * @param {number} offset - The offset value.\n * @private\n * @example\n * // move previous week when \"week\" view.\n * // move previous month when \"month\" view.\n * calendar.move(-1);\n */\nCalendar.prototype.move = function(offset) {\n var renderDate = dw(datetime.start(this._renderDate)),\n viewName = this._viewName,\n view = this._getCurrentView(),\n recursiveSet = _setOptionRecurseively,\n startDate, endDate, tempDate,\n startDayOfWeek, visibleWeeksCount, workweek, isAlways6Week, datetimeOptions;\n\n offset = util.isExisty(offset) ? offset : 0;\n\n if (viewName === 'month') {\n startDayOfWeek = util.pick(this._options, 'month', 'startDayOfWeek') || 0;\n visibleWeeksCount = mmin(util.pick(this._options, 'month', 'visibleWeeksCount') || 0, 6);\n workweek = util.pick(this._options, 'month', 'workweek') || false;\n isAlways6Week = util.pick(this._options, 'month', 'isAlways6Week');\n\n if (visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n\n renderDate.addDate(offset * 7 * datetimeOptions.visibleWeeksCount);\n tempDate = datetime.arr2dCalendar(renderDate.d, datetimeOptions);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderMonth = new TZDate(renderDate.d);\n });\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: isAlways6Week,\n workweek: workweek\n };\n\n renderDate.addMonth(offset);\n tempDate = datetime.arr2dCalendar(renderDate.d, datetimeOptions);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderMonth = new TZDate(renderDate.d);\n });\n }\n\n startDate = tempDate[0][0];\n endDate = tempDate[tempDate.length - 1][tempDate[tempDate.length - 1].length - 1];\n } else if (viewName === 'week') {\n renderDate.addDate(offset * 7);\n startDayOfWeek = util.pick(this._options, 'week', 'startDayOfWeek') || 0;\n workweek = util.pick(this._options, 'week', 'workweek') || false;\n tempDate = this._getWeekDayRange(renderDate.d, startDayOfWeek, workweek);\n\n startDate = tempDate[0];\n endDate = tempDate[1];\n\n recursiveSet(view, function(childView, opt) {\n opt.renderStartDate = new TZDate(startDate);\n opt.renderEndDate = new TZDate(endDate);\n\n childView.setState({\n collapsed: true\n });\n });\n } else if (viewName === 'day') {\n renderDate.addDate(offset);\n startDate = datetime.start(renderDate.d);\n endDate = datetime.end(renderDate.d);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderStartDate = new TZDate(startDate);\n opt.renderEndDate = new TZDate(endDate);\n\n childView.setState({\n collapsed: true\n });\n });\n }\n\n this._renderDate = renderDate.d;\n this._renderRange = {\n start: startDate,\n end: endDate\n };\n};\n\n/**\n * Move to specific date\n * @param {(Date|string)} date - The date to move\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.getViewName() === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.changeView('day', true);\n * }\n * });\n */\nCalendar.prototype.setDate = function(date) {\n if (util.isString(date)) {\n date = datetime.parse(date);\n }\n\n this._renderDate = new TZDate(date);\n this._setViewName(this._viewName);\n this.move(0);\n this.render();\n};\n\n/**\n * Move the calendar forward a day, a week, a month, 2 weeks, 3 weeks.\n * @example\n * function moveToNextOrPrevRange(val) {\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.next = function() {\n this.move(1);\n this.render();\n};\n\n/**\n * Move the calendar backward a day, a week, a month, 2 weeks, 3 weeks.\n * @example\n * function moveToNextOrPrevRange(val) {\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.prev = function() {\n this.move(-1);\n this.render();\n};\n\n/**\n * Return current rendered view.\n * @returns {View} current view instance\n * @private\n */\nCalendar.prototype._getCurrentView = function() {\n var viewName = this._viewName;\n\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n return util.pick(this._layout.children.items, viewName);\n};\n\n/**\n * Change calendar's schedule color with option\n * @param {string} calendarId - The calendar ID\n * @param {CalendarColor} option - The {@link CalendarColor} object\n * @param {boolean} [silent=false] - No auto render after creation when set true\n * @example\n * calendar.setCalendarColor('1', {\n * color: '#e8e8e8',\n * bgColor: '#585858',\n * borderColor: '#a1b56c'\n * dragBgColor: '#585858',\n * });\n * calendar.setCalendarColor('2', {\n * color: '#282828',\n * bgColor: '#dc9656',\n * borderColor: '#a1b56c',\n * dragBgColor: '#dc9656',\n * });\n * calendar.setCalendarColor('3', {\n * color: '#a16946',\n * bgColor: '#ab4642',\n * borderColor: '#a1b56c',\n * dragBgColor: '#ab4642',\n * });\n */\nCalendar.prototype.setCalendarColor = function(calendarId, option, silent) {\n var calColor = this._calendarColor,\n ownSchedules = this._controller.schedules,\n ownColor = calColor[calendarId];\n\n if (!util.isObject(option)) {\n config.throwError('Calendar#changeCalendarColor(): color 는 {color: \\'\\', bgColor: \\'\\'} 형태여야 합니다.');\n }\n\n ownColor = calColor[calendarId] = util.extend({\n color: '#000',\n bgColor: '#a1b56c',\n borderColor: '#a1b56c',\n dragBgColor: '#a1b56c'\n }, option);\n\n ownSchedules.each(function(model) {\n if (model.calendarId !== calendarId) {\n return;\n }\n\n model.color = ownColor.color;\n model.bgColor = ownColor.bgColor;\n model.borderColor = ownColor.borderColor;\n model.dragBgColor = ownColor.dragBgColor;\n });\n\n if (!silent) {\n this.render();\n }\n};\n\n/**********\n * Custom Events\n **********/\n\n/**\n * A bridge-based event handler for connecting a click handler to a user click event handler for each view\n * @fires Calendar#clickSchedule\n * @param {object} clickScheduleData - The event data of 'clickSchedule' handler\n * @private\n */\nCalendar.prototype._onClick = function(clickScheduleData) {\n /**\n * Fire this event when click a schedule.\n * @event Calendar#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - The {@link Schedule} instance\n * @property {MouseEvent} event - MouseEvent\n * @example\n * calendar.on('clickSchedule', function(event) {\n * var schedule = event.schedule;\n *\n * if (lastClickSchedule) {\n * calendar.updateSchedule(lastClickSchedule.id, lastClickSchedule.calendarId, {\n * isFocused: false\n * });\n * }\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * isFocused: true\n * });\n *\n * lastClickSchedule = schedule;\n * // open detail view\n * });\n */\n this.fire('clickSchedule', clickScheduleData);\n};\n\n/**\n * A bridge-based event handler for connecting a click handler to a user click event handler for each view\n * @fires Calendar#clickMore\n * @param {object} clickMoreSchedule - The event data of 'clickMore' handler\n * @private\n */\nCalendar.prototype._onClickMore = function(clickMoreSchedule) {\n /**\n * Fire this event when click a schedule.\n * @event Calendar#clickMore\n * @type {object}\n * @property {Date} date - The Clicked date\n * @property {HTMLElement} target - The more element\n * @example\n * calendar.on('clickMore', function(event) {\n * console.log('clickMore', event.date, event.target);\n * });\n */\n this.fire('clickMore', clickMoreSchedule);\n};\n\n/**\n * dayname click event handler\n * @fires Calendar#clickDayname\n * @param {object} clickScheduleData - The event data of 'clickDayname' handler\n * @private\n */\nCalendar.prototype._onClickDayname = function(clickScheduleData) {\n /**\n * Fire this event when click a day name in weekly.\n * @event Calendar#clickDayname\n * @type {object}\n * @property {string} date - The date string by format 'YYYY-MM-DD'\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.getViewName() === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.changeView('day', true);\n * }\n * });\n */\n this.fire('clickDayname', clickScheduleData);\n};\n\n/**\n * @fires {Calendar#n('beforeCreateSchedule', function}\n * @param {object} createScheduleData - select schedule data from allday, time\n * @private\n */\nCalendar.prototype._onBeforeCreate = function(createScheduleData) {\n if (this._options.useCreationPopup && !createScheduleData.useCreationPopup) {\n if (this._showCreationPopup) {\n this._showCreationPopup(createScheduleData);\n\n return;\n }\n }\n /**\n * Fire this event when select time period in daily, weekly, monthly.\n * @event Calendar#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - The allday schedule\n * @property {Date} start - The selected start time\n * @property {Date} end - The selected end time\n * @property {TimeCreationGuide} guide - {@link TimeCreationGuide} instance\n * @property {string} triggerEventName - The event name like 'click', 'dblclick'\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var startTime = event.start;\n * var endTime = event.end;\n * var isAllDay = event.isAllDay;\n * var guide = event.guide;\n * var triggerEventName = event.triggerEventName;\n * var schedule;\n *\n * if (triggerEventName === 'click') {\n * // open writing simple schedule popup\n * schedule = {...};\n * } else if (triggerEventName === 'dblclick') {\n * // open writing detail schedule popup\n * schedule = {...};\n * }\n *\n * calendar.createSchedules([schedule]);\n * });\n */\n this.fire('beforeCreateSchedule', createScheduleData);\n};\n\n/**\n * @fires Calendar#beforeUpdateSchedule\n * @param {object} updateScheduleData - update {@link Schedule} data\n * @private\n */\nCalendar.prototype._onBeforeUpdate = function(updateScheduleData) {\n /**\n * Fire this event when drag a schedule to change time in daily, weekly, monthly.\n * @event Calendar#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original {@link Schedule} instance\n * @property {object} changes - The {@link Schedule} properties and values with changes to update\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @example\n * calendar.on('beforeUpdateSchedule', function(event) {\n * var schedule = event.schedule;\n * var changes = event.changes;\n *\n * calendar.updateSchedule(schedule.id, schedule.calendarId, changes);\n * });\n */\n this.fire('beforeUpdateSchedule', updateScheduleData);\n};\n\n/**\n * @fires Calendar#beforeDeleteSchedule\n * @param {object} deleteScheduleData - delete schedule data\n * @private\n */\nCalendar.prototype._onBeforeDelete = function(deleteScheduleData) {\n /**\n * Fire this event when delete a schedule.\n * @event Calendar#beforeDeleteSchedule\n * @type {object}\n * @property {Schedule} schedule - The {@link Schedule} instance to delete\n * @example\n * calendar.on('beforeDeleteSchedule', function(event) {\n * var schedule = event.schedule;\n * alert('The schedule is removed.', schedule);\n * });\n */\n this.fire('beforeDeleteSchedule', deleteScheduleData);\n};\n\n/**\n * @fires Calendar#afterRenderSchedule\n * @param {Schedule} scheduleData - The schedule data\n * @private\n */\nCalendar.prototype._onAfterRenderSchedule = function(scheduleData) {\n /**\n * Fire this event by every single schedule after rendering whole calendar.\n * @event Calendar#afterRenderSchedule\n * @type {object}\n * @property {Schedule} schedule - A rendered {@link Schedule} instance\n * @example\n * calendar.on('afterRenderSchedule', function(event) {\n * var schedule = event.schedule;\n * var element = calendar.getElement(schedule.id, schedule.calendarId);\n * // use the element\n * console.log(element);\n * });\n */\n this.fire('afterRenderSchedule', scheduleData);\n};\n\n/**\n * @fires Calendar#clickTimezonesCollapseBtn\n * @param {boolean} timezonesCollapsed - timezones collapsed flag\n * @private\n */\nCalendar.prototype._onClickTimezonesCollapseBtn = function(timezonesCollapsed) {\n /**\n * Fire this event by clicking timezones collapse button\n * @event Calendar#clickTimezonesCollapseBtn\n * @type {object}\n * @property {boolean} timezonesCollapsed - The timezones collapes flag\n * @example\n * calendar.on('clickTimezonesCollapseBtn', function(timezonesCollapsed) {\n * console.log(timezonesCollapsed);\n * });\n */\n this.fire('clickTimezonesCollapseBtn', timezonesCollapsed);\n};\n\n/**\n * Toggle calendar factory class, main view, wallview event connection\n * @param {boolean} isAttach - attach events if true.\n * @param {Week|Month} view - Weekly view or Monthly view\n * @private\n */\nCalendar.prototype._toggleViewSchedule = function(isAttach, view) {\n var self = this,\n handler = view.handler,\n method = isAttach ? 'on' : 'off';\n\n util.forEach(handler.click, function(clickHandler) {\n clickHandler[method]('clickSchedule', self._onClick, self);\n });\n\n util.forEach(handler.dayname, function(clickHandler) {\n clickHandler[method]('clickDayname', self._onClickDayname, self);\n });\n\n util.forEach(handler.creation, function(creationHandler) {\n creationHandler[method]('beforeCreateSchedule', self._onBeforeCreate, self);\n creationHandler[method]('beforeDeleteSchedule', self._onBeforeDelete, self);\n });\n\n util.forEach(handler.move, function(moveHandler) {\n moveHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n util.forEach(handler.resize, function(resizeHandler) {\n resizeHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n // bypass events from view\n view[method]('afterRenderSchedule', self._onAfterRenderSchedule, self);\n view[method]('clickTimezonesCollapseBtn', self._onClickTimezonesCollapseBtn, self);\n view[method]('clickMore', self._onClickMore, self);\n};\n\n/**\n * Change current view with view name('day', 'week', 'month')\n * @param {string} newViewName - The New view name to render\n * @param {boolean} force - Force render despite of current view and new view are equal\n * @example\n * // daily view\n * calendar.changeView('day', true);\n *\n * // weekly view\n * calendar.changeView('week', true);\n *\n * // monthly view(default 6 weeks view)\n * calendar.setOptions({month: {visibleWeeksCount: 6}}, true); // or null\n * calendar.changeView('month', true);\n *\n * // 2 weeks monthly view\n * calendar.setOptions({month: {visibleWeeksCount: 2}}, true);\n * calendar.changeView('month', true);\n *\n * // 3 weeks monthly view\n * calendar.setOptions({month: {visibleWeeksCount: 3}}, true);\n * calendar.changeView('month', true);\n *\n * // narrow weekend\n * calendar.setOptions({month: {narrowWeekend: true}}, true);\n * calendar.setOptions({week: {narrowWeekend: true}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n *\n * // change start day of week(from monday)\n * calendar.setOptions({week: {startDayOfWeek: 1}}, true);\n * calendar.setOptions({month: {startDayOfWeek: 1}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n *\n * // work week\n * calendar.setOptions({week: {workweek: true}}, true);\n * calendar.setOptions({month: {workweek: true}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n */\nCalendar.prototype.changeView = function(newViewName, force) {\n var self = this,\n layout = this._layout,\n controller = this._controller,\n dragHandler = this._dragHandler,\n options = this._options,\n viewName = this._viewName,\n created;\n\n if (!force && viewName === newViewName) {\n return;\n }\n\n this._setViewName(newViewName);\n\n // convert day to week\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n if (newViewName === 'day') {\n newViewName = 'week';\n }\n layout.children.doWhenHas(viewName, function(view) {\n self._toggleViewSchedule(false, view);\n });\n\n layout.clear();\n\n if (newViewName === 'month') {\n created = _createMonthView(\n controller,\n layout.container,\n dragHandler,\n options\n );\n } else if (newViewName === 'week' || newViewName === 'day') {\n created = _createWeekView(\n controller,\n layout.container,\n dragHandler,\n options,\n this.getViewName()\n );\n }\n\n layout.addChild(created.view);\n\n layout.children.doWhenHas(newViewName, function(view) {\n self._toggleViewSchedule(true, view);\n });\n\n this._refreshMethod = created.refresh;\n this._scrollToNowMethod = created.scrollToNow;\n this._openCreationPopup = created.openCreationPopup;\n this._showCreationPopup = created.showCreationPopup;\n this._hideMoreView = created.hideMoreView;\n\n this.move();\n this.render();\n};\n\n/**\n * @deprecated\n * Toggle task view('Milestone', 'Task') panel\n * @param {boolean} enabled - use task view\n * @example\n * // There is no milestone, task, so hide those view panel\n * calendar.toggleTaskView(false);\n *\n * // There are some milestone, task, so show those view panel.\n * calendar.toggleTaskView(true);\n */\nCalendar.prototype.toggleTaskView = function(enabled) {\n var viewName = this._viewName,\n options = this._options;\n\n options.taskView = enabled;\n\n this.changeView(viewName, true);\n};\n\n/**\n * @deprecated\n * Toggle schedule view('AllDay', TimeGrid') panel\n * @param {boolean} enabled - use task view\n * @example\n * // hide those view panel to show only 'Milestone', 'Task'\n * calendar.toggleScheduleView(false);\n *\n * // show those view panel.\n * calendar.toggleScheduleView(true);\n */\nCalendar.prototype.toggleScheduleView = function(enabled) {\n var viewName = this._viewName,\n options = this._options;\n\n options.scheduleView = enabled;\n\n this.changeView(viewName, true);\n};\n\n/**\n * Set current view name\n * @param {string} viewName - new view name to render\n * @private\n */\nCalendar.prototype._setViewName = function(viewName) {\n this._viewName = viewName;\n};\n\n/**\n * Get a schedule element by schedule id and calendar id.\n * @param {string} scheduleId - ID of schedule\n * @param {string} calendarId - calendarId of schedule\n * @returns {HTMLElement} schedule element if found or null\n * @example\n * var element = calendar.getElement(scheduleId, calendarId);\n * console.log(element);\n */\nCalendar.prototype.getElement = function(scheduleId, calendarId) {\n var schedule = this.getSchedule(scheduleId, calendarId);\n if (schedule) {\n return document.querySelector('[data-schedule-id=\"' + scheduleId + '\"][data-calendar-id=\"' + calendarId + '\"]');\n }\n\n return null;\n};\n\n/**\n * Set a theme. If some keys are not defined in the preset, will be return.\n * @param {object} theme - multiple styles map\n * @returns {Array.} keys - error keys not predefined.\n * @example\n * cal.setTheme({\n 'month.dayname.height': '31px',\n 'common.dayname.color': '#333',\n 'month.dayname.borderBottom': '1px solid #e5e5e5' // Not valid key will be return.\n * });\n */\nCalendar.prototype.setTheme = function(theme) {\n var result = this._controller.setTheme(theme);\n this.render(true);\n\n return result;\n};\n\n/**\n * Set options of calendar\n * @param {Options} options - set {@link Options}\n * @param {boolean} [silent=false] - no auto render after creation when set true\n */\nCalendar.prototype.setOptions = function(options, silent) {\n util.forEach(options, function(value, name) {\n if (util.isObject(value) && !util.isArray(value)) {\n util.forEach(value, function(innerValue, innerName) {\n this._options[name][innerName] = innerValue;\n }, this);\n } else {\n this._options[name] = value;\n }\n }, this);\n\n this._setAdditionalInternalOptions(options);\n\n if (!silent) {\n this.changeView(this._viewName, true);\n }\n};\n\n/**\n * Get current {@link Options}.\n * @returns {Options} options\n */\nCalendar.prototype.getOptions = function() {\n return this._options;\n};\n\n/**\n * Current rendered date ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDate = function() {\n return this._renderDate;\n};\n\n/**\n * Start time of rendered date range ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDateRangeStart = function() {\n return this._renderRange.start;\n};\n\n/**\n * End time of rendered date range ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDateRangeEnd = function() {\n return this._renderRange.end;\n};\n\n/**\n * Get current view name('day', 'week', 'month')\n * @returns {string} view name\n */\nCalendar.prototype.getViewName = function() {\n return this._viewName;\n};\n\n/**\n * Set calendar list\n * @param {Array.} calendars - {@link CalendarProps} List\n */\nCalendar.prototype.setCalendars = function(calendars) {\n util.forEach(calendars || [], function(calendar) {\n this.setCalendarColor(calendar.id, calendar, true);\n }, this);\n\n this._controller.setCalendars(calendars);\n\n this.render();\n};\n\n/**\n * Open schedule creation popup\n * @param {Schedule} schedule - The preset {@link Schedule} data\n */\nCalendar.prototype.openCreationPopup = function(schedule) {\n if (this._openCreationPopup) {\n this._openCreationPopup(schedule);\n }\n};\n\n/**\n * Hide the more view\n */\nCalendar.prototype.hideMoreView = function() {\n if (this._hideMoreView) {\n this._hideMoreView();\n }\n};\n\n/**\n * Set timezone offset\n * @param {number} offset - The offset (min)\n * @static\n * @deprecated\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffset(moment.tz.zone(timezoneName).utcOffset(moment()));\n */\nCalendar.setTimezoneOffset = function(offset) {\n timezone.setOffset(offset);\n};\n\n/**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - The callback function\n * @static\n * @deprecated\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffsetCallback(function(timestamp) {\n * return moment.tz.zone(timezoneName).utcOffset(timestamp));\n * });\n */\nCalendar.setTimezoneOffsetCallback = function(callback) {\n timezone.setOffsetCallback(callback);\n};\n\n/**\n * Create controller instance\n * @returns {Base} controller instance\n * @param {Options} options - calendar options\n * @private\n */\nfunction _createController(options) {\n return controllerFactory(options);\n}\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @param {string} viewName - 'week', 'day'\n * @returns {Week} week view instance\n * @private\n */\nfunction _createWeekView(controller, container, dragHandler, options, viewName) {\n return weekViewFactory(\n controller,\n container,\n dragHandler,\n options,\n viewName\n );\n}\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @returns {Month} month view instance\n * @private\n */\nfunction _createMonthView(controller, container, dragHandler, options) {\n return monthViewFactory(\n controller,\n container,\n dragHandler,\n options\n );\n}\n\n/**\n * Set child view's options recursively\n * @param {View} view - parent view\n * @param {function} func - option manipulate function\n * @private\n */\nfunction _setOptionRecurseively(view, func) {\n view.recursive(function(childView) {\n var opt = childView.options;\n\n if (!opt) {\n return;\n }\n\n func(childView, opt);\n });\n}\n\nutil.CustomEvents.mixin(Calendar);\n\nmodule.exports = Calendar;\n","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('blockHelperMissing', function (context, options) {\n var inverse = options.inverse,\n fn = options.fn;\n\n if (context === true) {\n return fn(this);\n } else if (context === false || context == null) {\n return inverse(this);\n } else if (_utils.isArray(context)) {\n if (context.length > 0) {\n if (options.ids) {\n options.ids = [options.name];\n }\n\n return instance.helpers.each(context, options);\n } else {\n return inverse(this);\n }\n } else {\n if (options.data && options.ids) {\n var data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name);\n options = { data: data };\n }\n\n return fn(context, options);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBd0QsVUFBVTs7cUJBRW5ELFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsb0JBQW9CLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3ZFLFFBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPO1FBQzNCLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVsQixRQUFJLE9BQU8sS0FBSyxJQUFJLEVBQUU7QUFDcEIsYUFBTyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDakIsTUFBTSxJQUFJLE9BQU8sS0FBSyxLQUFLLElBQUksT0FBTyxJQUFJLElBQUksRUFBRTtBQUMvQyxhQUFPLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUN0QixNQUF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n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('each', function (context, options) {\n if (!options) {\n throw new _exception2['default']('Must pass iterator to #each');\n }\n\n var fn = options.fn,\n inverse = options.inverse,\n i = 0,\n ret = '',\n data = undefined,\n contextPath = undefined;\n\n if (options.data && options.ids) {\n contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + '.';\n }\n\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n if (options.data) {\n data = _utils.createFrame(options.data);\n }\n\n function execIteration(field, index, last) {\n if (data) {\n data.key = field;\n data.index = index;\n data.first = index === 0;\n data.last = !!last;\n\n if (contextPath) {\n data.contextPath = contextPath + field;\n }\n }\n\n ret = ret + fn(context[field], {\n data: data,\n blockParams: _utils.blockParams([context[field], field], [contextPath + field, null])\n });\n }\n\n if (context && typeof context === 'object') {\n if (_utils.isArray(context)) {\n for (var j = context.length; i < j; i++) {\n if (i in context) {\n execIteration(i, i, i === context.length - 1);\n }\n }\n } else if (global.Symbol && context[global.Symbol.iterator]) {\n var newContext = [];\n var iterator = context[global.Symbol.iterator]();\n for (var it = iterator.next(); !it.done; it = iterator.next()) {\n newContext.push(it.value);\n }\n context = newContext;\n for (var j = context.length; i < j; i++) {\n execIteration(i, i, i === context.length - 1);\n }\n } else {\n (function () {\n var priorKey = undefined;\n\n Object.keys(context).forEach(function (key) {\n // We're running the iterations one step out of sync so we can detect\n // the last iteration without have to scan the object twice and create\n // an itermediate keys array.\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1);\n }\n priorKey = key;\n i++;\n });\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1, true);\n }\n })();\n }\n }\n\n if (i === 0) {\n ret = inverse(this);\n }\n\n return ret;\n });\n};\n\n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8gdGhlIGxhc3QgaXRlcmF0aW9uIHdpdGhvdXQgaGF2ZSB0byBzY2FuIHRoZSBvYmplY3QgdHdpY2UgYW5kIGNyZWF0ZVxuICAgICAgICAgIC8vIGFuIGl0ZXJtZWRpYXRlIGtleXMgYXJyYXkuXG4gICAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGV4ZWNJdGVyYXRpb24ocHJpb3JLZXksIGkgLSAxKTtcbiAgICAgICAgICB9XG4gICAgICAgICAgcHJpb3JLZXkgPSBrZXk7XG4gICAgICAgICAgaSsrO1xuICAgICAgICB9KTtcbiAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSwgdHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('helperMissing', function () /* [args, ]options */{\n if (arguments.length === 1) {\n // A missing field in a {{foo}} construct.\n return undefined;\n } else {\n // Someone is actually trying to call something, blow up.\n throw new _exception2['default']('Missing helper: \"' + arguments[arguments.length - 1].name + '\"');\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaGVscGVyLW1pc3NpbmcuanMiXSwibmF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ICAgICAgKTtcbiAgICB9XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('if', function (conditional, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#if requires exactly one argument');\n }\n if (_utils.isFunction(conditional)) {\n conditional = conditional.call(this);\n }\n\n // Default behavior is to render the positive path if the value is truthy and not empty.\n // The `includeZero` option may be set to treat the condtional as purely not empty based on the\n // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.\n if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) {\n return options.inverse(this);\n } else {\n return options.fn(this);\n }\n });\n\n instance.registerHelper('unless', function (conditional, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#unless requires exactly one argument');\n }\n return instance.helpers['if'].call(this, conditional, {\n fn: options.inverse,\n inverse: options.fn,\n hash: options.hash\n });\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztxQkFBb0MsVUFBVTs7eUJBQ3hCLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLFVBQVMsV0FBVyxFQUFFLE9BQU8sRUFBRTtBQUMzRCxRQUFJLFNBQVMsQ0FBQyxNQUFNLElBQUksQ0FBQyxFQUFFO0FBQ3pCLFlBQU0sMkJBQWMsbUNBQW1DLENBQUMsQ0FBQztLQUMxRDtBQUNELFFB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l0aW9uYWwsIG9wdGlvbnMpIHtcbiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCAhPSAyKSB7XG4gICAgICB0aHJvdyBuZXcgRXhjZXB0aW9uKCcjdW5sZXNzIHJlcXVpcmVzIGV4YWN0bHkgb25lIGFyZ3VtZW50Jyk7XG4gICAgfVxuICAgIHJldHVybiBpbnN0YW5jZS5oZWxwZXJzWydpZiddLmNhbGwodGhpcywgY29uZGl0aW9uYWwsIHtcbiAgICAgIGZuOiBvcHRpb25zLmludmVyc2UsXG4gICAgICBpbnZlcnNlOiBvcHRpb25zLmZuLFxuICAgICAgaGFzaDogb3B0aW9ucy5oYXNoXG4gICAgfSk7XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('log', function () /* message, options */{\n var args = [undefined],\n options = arguments[arguments.length - 1];\n for (var i = 0; i < arguments.length - 1; i++) {\n args.push(arguments[i]);\n }\n\n var level = 1;\n if (options.hash.level != null) {\n level = options.hash.level;\n } else if (options.data && options.data.level != null) {\n level = options.data.level;\n }\n args[0] = level;\n\n instance.log.apply(instance, args);\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ3BCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUM1QyxTQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRU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RzW2ldKTtcbiAgICB9XG5cbiAgICBsZXQgbGV2ZWwgPSAxO1xuICAgIGlmIChvcHRpb25zLmhhc2gubGV2ZWwgIT0gbnVsbCkge1xuICAgICAgbGV2ZWwgPSBvcHRpb25zLmhhc2gubGV2ZWw7XG4gICAgfSBlbHNlIGlmIChvcHRpb25zLmRhdGEgJiYgb3B0aW9ucy5kYXRhLmxldmVsICE9IG51bGwpIHtcbiAgICAgIGxldmVsID0gb3B0aW9ucy5kYXRhLmxldmVsO1xuICAgIH1cbiAgICBhcmdzWzBdID0gbGV2ZWw7XG5cbiAgICBpbnN0YW5jZS5sb2coLi4uYXJncyk7XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('lookup', function (obj, field, options) {\n if (!obj) {\n // Note for 5.0: Change to \"obj == null\" in 5.0\n return obj;\n }\n return options.lookupProperty(obj, field);\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9va3VwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxHQUFHLEVBQUUsS0FBSyxFQUFFLE9BQU8sRUFBRTtBQUM5RCxRQUFJLENBQUMsR0FBRyxFQUFFOztBQUVSLGFBQU8sR0FBRyxDQUFDO0tBQ1o7QUFDRCxXQUFPLE9BQU8sQ0FBQyxjQUFjLENBQUMsR0FBRyxFQUFFLEtBQUssQ0FBQyxDQUFDO0dBQzNDLENBQUMsQ0FBQztDQUNKIiwiZmlsZSI6Imxvb2t1cC5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uKGluc3RhbmNlKSB7XG4gIGluc3RhbmNlLnJlZ2lzdGVySGVscGVyKCdsb29rdXAnLCBmdW5jdGlvbihvYmosIGZpZWxkLCBvcHRpb25zKSB7XG4gICAgaWYgKCFvYmopIHtcbiAgICAgIC8vIE5vdGUgZm9yIDUuMDogQ2hhbmdlIHRvIFwib2JqID09IG51bGxcIiBpbiA1LjBcbiAgICAgIHJldHVybiBvYmo7XG4gICAgfVxuICAgIHJldHVybiBvcHRpb25zLmxvb2t1cFByb3BlcnR5KG9iaiwgZmllbGQpO1xuICB9KTtcbn1cbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('with', function (context, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#with requires exactly one argument');\n }\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n var fn = options.fn;\n\n if (!_utils.isEmpty(context)) {\n var data = options.data;\n if (options.data && options.ids) {\n data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]);\n }\n\n return fn(context, {\n data: data,\n blockParams: _utils.blockParams([context], [data && data.contextPath])\n });\n } else {\n return options.inverse(this);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQU1PLFVBQVU7O3lCQUNLLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUM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2tQYXJhbXMoW2NvbnRleHRdLCBbZGF0YSAmJiBkYXRhLmNvbnRleHRQYXRoXSlcbiAgICAgIH0pO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gb3B0aW9ucy5pbnZlcnNlKHRoaXMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultDecorators = registerDefaultDecorators;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _decoratorsInline = require('./decorators/inline');\n\nvar _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);\n\nfunction registerDefaultDecorators(instance) {\n _decoratorsInline2['default'](instance);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerDecorator('inline', function (fn, props, container, options) {\n var ret = fn;\n if (!props.partials) {\n props.partials = {};\n ret = function (context, options) {\n // Create a new partials stack frame prior to exec.\n var original = container.partials;\n container.partials = _utils.extend({}, original, props.partials);\n var ret = fn(context, options);\n container.partials = original;\n return ret;\n };\n }\n\n props.partials[options.args[0]] = options.fn;\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQXVCLFVBQVU7O3FCQUVsQixVQUFTLFFBQVEsRUFBRTtBQUNoQyxVQUFRLENBQUMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVMsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFO0FBQzNFLFFBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUNiLFFBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxFQUFFO0FBQ25CLFdBQUssQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO0FBQ3BCLFNBQUcsR0FBRyxVQUFTLE9BQU8sRUFBRSxPQUFPLEVBQUU7O0FBRS9CLFlBQUksUUFBUSxHQUFHLFNBQVMsQ0FBQyxRQUFRLENBQUM7QUFDbEMsaUJBQVMsQ0FBQyxRQUFRLEdBQUcsY0FBTyxFQUFFLEVBQUUsUUFBUSxFQUFFLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUMxRCxZQUFJLEdBQUcsR0FBRyxFQUFFLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQyxDQUFDO0FBQy9CLGlCQUFTLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQztBQUM5QixlQUFPLEdBQUcsQ0FBQztPQUNaLENBQUM7S0FDSDs7QUFFRCxTQUFLLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUU3QyxXQUFPLEdBQUcsQ0FBQztHQUNaLENBQUMsQ0FBQztDQUNKIiwiZmlsZSI6ImlubGluZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGV4dGVuZCB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJEZWNvcmF0b3IoJ2lubGluZScsIGZ1bmN0aW9uKGZuLCBwcm9wcywgY29udGFpbmVyLCBvcHRpb25zKSB7XG4gICAgbGV0IHJldCA9IGZuO1xuICAgIGlmICghcHJvcHMucGFydGlhbHMpIHtcbiAgICAgIHByb3BzLnBhcnRpYWxzID0ge307XG4gICAgICByZXQgPSBmdW5jdGlvbihjb250ZXh0LCBvcHRpb25zKSB7XG4gICAgICAgIC8vIENyZWF0ZSBhIG5ldyBwYXJ0aWFscyBzdGFjayBmcmFtZSBwcmlvciB0byBleGVjLlxuICAgICAgICBsZXQgb3JpZ2luYWwgPSBjb250YWluZXIucGFydGlhbHM7XG4gICAgICAgIGNvbnRhaW5lci5wYXJ0aWFscyA9IGV4dGVuZCh7fSwgb3JpZ2luYWwsIHByb3BzLnBhcnRpYWxzKTtcbiAgICAgICAgbGV0IHJldCA9IGZuKGNvbnRleHQsIG9wdGlvbnMpO1xuICAgICAgICBjb250YWluZXIucGFydGlhbHMgPSBvcmlnaW5hbDtcbiAgICAgICAgcmV0dXJuIHJldDtcbiAgICAgIH07XG4gICAgfVxuXG4gICAgcHJvcHMucGFydGlhbHNbb3B0aW9ucy5hcmdzWzBdXSA9IG9wdGlvbnMuZm47XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\nexports.createNewLookupObject = createNewLookupObject;\n\nvar _utils = require('../utils');\n\n/**\n * Create a new object with \"null\"-prototype to avoid truthy results on prototype properties.\n * The resulting object can be used with \"object[property]\" to check if a property exists\n * @param {...object} sources a varargs parameter of source objects that will be merged\n * @returns {object}\n */\n\nfunction createNewLookupObject() {\n for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) {\n sources[_key] = arguments[_key];\n }\n\n return _utils.extend.apply(undefined, [Object.create(null)].concat(sources));\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL2NyZWF0ZS1uZXctbG9va3VwLW9iamVjdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztxQkFBdUIsVUFBVTs7Ozs7Ozs7O0FBUTFCLFNBQVMscUJBQXFCLEdBQWE7b0NBQVQsT0FBTztBQUFQLFdBQU87OztBQUM5QyxTQUFPLGdDQUFPLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLFNBQUssT0FBTyxFQUFDLENBQUM7Q0FDaEQiLCJmaWxlIjoiY3JlYXRlLW5ldy1sb29rdXAtb2JqZWN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgZXh0ZW5kIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vKipcbiAqIENyZWF0ZSBhIG5ldyBvYmplY3Qgd2l0aCBcIm51bGxcIi1wcm90b3R5cGUgdG8gYXZvaWQgdHJ1dGh5IHJlc3VsdHMgb24gcHJvdG90eXBlIHByb3BlcnRpZXMuXG4gKiBUaGUgcmVzdWx0aW5nIG9iamVjdCBjYW4gYmUgdXNlZCB3aXRoIFwib2JqZWN0W3Byb3BlcnR5XVwiIHRvIGNoZWNrIGlmIGEgcHJvcGVydHkgZXhpc3RzXG4gKiBAcGFyYW0gey4uLm9iamVjdH0gc291cmNlcyBhIHZhcmFyZ3MgcGFyYW1ldGVyIG9mIHNvdXJjZSBvYmplY3RzIHRoYXQgd2lsbCBiZSBtZXJnZWRcbiAqIEByZXR1cm5zIHtvYmplY3R9XG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGVOZXdMb29rdXBPYmplY3QoLi4uc291cmNlcykge1xuICByZXR1cm4gZXh0ZW5kKE9iamVjdC5jcmVhdGUobnVsbCksIC4uLnNvdXJjZXMpO1xufVxuIl19\n","// Build out our basic SafeString type\n'use strict';\n\nexports.__esModule = true;\nfunction SafeString(string) {\n this.string = string;\n}\n\nSafeString.prototype.toString = SafeString.prototype.toHTML = function () {\n return '' + this.string;\n};\n\nexports['default'] = SafeString;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3NhZmUtc3RyaW5nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUU7QUFDMUIsTUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7Q0FDdEI7O0FBRUQsVUFBVSxDQUFDLFNBQVMsQ0FBQyxRQUFRLEdBQUcsVUFBVSxDQUFDLFNBQVMsQ0FBQyxNQUFNLEdBQUcsWUFBVztBQUN2RSxTQUFPLEVBQUUsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDO0NBQ3pCLENBQUM7O3FCQUVhLFVBQVUiLCJmaWxlIjoic2FmZS1zdHJpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBCdWlsZCBvdXQgb3VyIGJhc2ljIFNhZmVTdHJpbmcgdHlwZVxuZnVuY3Rpb24gU2FmZVN0cmluZyhzdHJpbmcpIHtcbiAgdGhpcy5zdHJpbmcgPSBzdHJpbmc7XG59XG5cblNhZmVTdHJpbmcucHJvdG90eXBlLnRvU3RyaW5nID0gU2FmZVN0cmluZy5wcm90b3R5cGUudG9IVE1MID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiAnJyArIHRoaXMuc3RyaW5nO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2FmZVN0cmluZztcbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\nexports.checkRevision = checkRevision;\nexports.template = template;\nexports.wrapProgram = wrapProgram;\nexports.resolvePartial = resolvePartial;\nexports.invokePartial = invokePartial;\nexports.noop = noop;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _utils = require('./utils');\n\nvar Utils = _interopRequireWildcard(_utils);\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _base = require('./base');\n\nvar _helpers = require('./helpers');\n\nvar _internalWrapHelper = require('./internal/wrapHelper');\n\nvar _internalProtoAccess = require('./internal/proto-access');\n\nfunction checkRevision(compilerInfo) {\n var compilerRevision = compilerInfo && compilerInfo[0] || 1,\n currentRevision = _base.COMPILER_REVISION;\n\n if (compilerRevision >= _base.LAST_COMPATIBLE_COMPILER_REVISION && compilerRevision <= _base.COMPILER_REVISION) {\n return;\n }\n\n if (compilerRevision < _base.LAST_COMPATIBLE_COMPILER_REVISION) {\n var runtimeVersions = _base.REVISION_CHANGES[currentRevision],\n compilerVersions = _base.REVISION_CHANGES[compilerRevision];\n throw new _exception2['default']('Template was precompiled with an older version of Handlebars than the current runtime. ' + 'Please update your precompiler to a newer version (' + runtimeVersions + ') or downgrade your runtime to an older version (' + compilerVersions + ').');\n } else {\n // Use the embedded version info since the runtime doesn't know about this revision yet\n throw new _exception2['default']('Template was precompiled with a newer version of Handlebars than the current runtime. ' + 'Please update your runtime to a newer version (' + compilerInfo[1] + ').');\n }\n}\n\nfunction template(templateSpec, env) {\n /* istanbul ignore next */\n if (!env) {\n throw new _exception2['default']('No environment passed to template');\n }\n if (!templateSpec || !templateSpec.main) {\n throw new _exception2['default']('Unknown template object: ' + typeof templateSpec);\n }\n\n templateSpec.main.decorator = templateSpec.main_d;\n\n // Note: Using env.VM references rather than local var references throughout this section to allow\n // for external users to override these as pseudo-supported APIs.\n env.VM.checkRevision(templateSpec.compiler);\n\n // backwards compatibility for precompiled templates with compiler-version 7 (<4.3.0)\n var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;\n\n function invokePartialWrapper(partial, context, options) {\n if (options.hash) {\n context = Utils.extend({}, context, options.hash);\n if (options.ids) {\n options.ids[0] = true;\n }\n }\n partial = env.VM.resolvePartial.call(this, partial, context, options);\n\n var extendedOptions = Utils.extend({}, options, {\n hooks: this.hooks,\n protoAccessControl: this.protoAccessControl\n });\n\n var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);\n\n if (result == null && env.compile) {\n options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);\n result = options.partials[options.name](context, extendedOptions);\n }\n if (result != null) {\n if (options.indent) {\n var lines = result.split('\\n');\n for (var i = 0, l = lines.length; i < l; i++) {\n if (!lines[i] && i + 1 === l) {\n break;\n }\n\n lines[i] = options.indent + lines[i];\n }\n result = lines.join('\\n');\n }\n return result;\n } else {\n throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode');\n }\n }\n\n // Just add water\n var container = {\n strict: function strict(obj, name, loc) {\n if (!obj || !(name in obj)) {\n throw new _exception2['default']('\"' + name + '\" not defined in ' + obj, {\n loc: loc\n });\n }\n return obj[name];\n },\n lookupProperty: function lookupProperty(parent, propertyName) {\n var result = parent[propertyName];\n if (result == null) {\n return result;\n }\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return result;\n }\n\n if (_internalProtoAccess.resultIsAllowed(result, container.protoAccessControl, propertyName)) {\n return result;\n }\n return undefined;\n },\n lookup: function lookup(depths, name) {\n var len = depths.length;\n for (var i = 0; i < len; i++) {\n var result = depths[i] && container.lookupProperty(depths[i], name);\n if (result != null) {\n return depths[i][name];\n }\n }\n },\n lambda: function lambda(current, context) {\n return typeof current === 'function' ? current.call(context) : current;\n },\n\n escapeExpression: Utils.escapeExpression,\n invokePartial: invokePartialWrapper,\n\n fn: function fn(i) {\n var ret = templateSpec[i];\n ret.decorator = templateSpec[i + '_d'];\n return ret;\n },\n\n programs: [],\n program: function program(i, data, declaredBlockParams, blockParams, depths) {\n var programWrapper = this.programs[i],\n fn = this.fn(i);\n if (data || depths || blockParams || declaredBlockParams) {\n programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);\n } else if (!programWrapper) {\n programWrapper = this.programs[i] = wrapProgram(this, i, fn);\n }\n return programWrapper;\n },\n\n data: function data(value, depth) {\n while (value && depth--) {\n value = value._parent;\n }\n return value;\n },\n mergeIfNeeded: function mergeIfNeeded(param, common) {\n var obj = param || common;\n\n if (param && common && param !== common) {\n obj = Utils.extend({}, common, param);\n }\n\n return obj;\n },\n // An empty object to use as replacement for null-contexts\n nullContext: Object.seal({}),\n\n noop: env.VM.noop,\n compilerInfo: templateSpec.compiler\n };\n\n function ret(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var data = options.data;\n\n ret._setup(options);\n if (!options.partial && templateSpec.useData) {\n data = initData(context, data);\n }\n var depths = undefined,\n blockParams = templateSpec.useBlockParams ? [] : undefined;\n if (templateSpec.useDepths) {\n if (options.depths) {\n depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;\n } else {\n depths = [context];\n }\n }\n\n function main(context /*, options*/) {\n return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);\n }\n\n main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);\n return main(context, options);\n }\n\n ret.isTop = true;\n\n ret._setup = function (options) {\n if (!options.partial) {\n var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);\n wrapHelpersToPassLookupProperty(mergedHelpers, container);\n container.helpers = mergedHelpers;\n\n if (templateSpec.usePartial) {\n // Use mergeIfNeeded here to prevent compiling global partials multiple times\n container.partials = container.mergeIfNeeded(options.partials, env.partials);\n }\n if (templateSpec.usePartial || templateSpec.useDecorators) {\n container.decorators = Utils.extend({}, env.decorators, options.decorators);\n }\n\n container.hooks = {};\n container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);\n\n var keepHelperInHelpers = options.allowCallsToHelperMissing || templateWasPrecompiledWithCompilerV7;\n _helpers.moveHelperToHooks(container, 'helperMissing', keepHelperInHelpers);\n _helpers.moveHelperToHooks(container, 'blockHelperMissing', keepHelperInHelpers);\n } else {\n container.protoAccessControl = options.protoAccessControl; // internal option\n container.helpers = options.helpers;\n container.partials = options.partials;\n container.decorators = options.decorators;\n container.hooks = options.hooks;\n }\n };\n\n ret._child = function (i, data, blockParams, depths) {\n if (templateSpec.useBlockParams && !blockParams) {\n throw new _exception2['default']('must pass block params');\n }\n if (templateSpec.useDepths && !depths) {\n throw new _exception2['default']('must pass parent depths');\n }\n\n return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);\n };\n return ret;\n}\n\nfunction wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {\n function prog(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var currentDepths = depths;\n if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {\n currentDepths = [context].concat(depths);\n }\n\n return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);\n }\n\n prog = executeDecorators(fn, prog, container, depths, data, blockParams);\n\n prog.program = i;\n prog.depth = depths ? depths.length : 0;\n prog.blockParams = declaredBlockParams || 0;\n return prog;\n}\n\n/**\n * This is currently part of the official API, therefore implementation details should not be changed.\n */\n\nfunction resolvePartial(partial, context, options) {\n if (!partial) {\n if (options.name === '@partial-block') {\n partial = options.data['partial-block'];\n } else {\n partial = options.partials[options.name];\n }\n } else if (!partial.call && !options.name) {\n // This is a dynamic partial that returned a string\n options.name = partial;\n partial = options.partials[partial];\n }\n return partial;\n}\n\nfunction invokePartial(partial, context, options) {\n // Use the current closure context to save the partial-block if this partial\n var currentPartialBlock = options.data && options.data['partial-block'];\n options.partial = true;\n if (options.ids) {\n options.data.contextPath = options.ids[0] || options.data.contextPath;\n }\n\n var partialBlock = undefined;\n if (options.fn && options.fn !== noop) {\n (function () {\n options.data = _base.createFrame(options.data);\n // Wrapper function to get access to currentPartialBlock from the closure\n var fn = options.fn;\n partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n // Restore the partial-block from the closure for the execution of the block\n // i.e. the part inside the block of the partial call.\n options.data = _base.createFrame(options.data);\n options.data['partial-block'] = currentPartialBlock;\n return fn(context, options);\n };\n if (fn.partials) {\n options.partials = Utils.extend({}, options.partials, fn.partials);\n }\n })();\n }\n\n if (partial === undefined && partialBlock) {\n partial = partialBlock;\n }\n\n if (partial === undefined) {\n throw new _exception2['default']('The partial ' + options.name + ' could not be found');\n } else if (partial instanceof Function) {\n return partial(context, options);\n }\n}\n\nfunction noop() {\n return '';\n}\n\nfunction initData(context, data) {\n if (!data || !('root' in data)) {\n data = data ? _base.createFrame(data) : {};\n data.root = context;\n }\n return data;\n}\n\nfunction executeDecorators(fn, prog, container, depths, data, blockParams) {\n if (fn.decorator) {\n var props = {};\n prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);\n Utils.extend(prog, props);\n }\n return prog;\n}\n\nfunction wrapHelpersToPassLookupProperty(mergedHelpers, container) {\n Object.keys(mergedHelpers).forEach(function (helperName) {\n var helper = mergedHelpers[helperName];\n mergedHelpers[helperName] = passLookupPropertyOption(helper, container);\n });\n}\n\nfunction passLookupPropertyOption(helper, container) {\n var lookupProperty = container.lookupProperty;\n return _internalWrapHelper.wrapHelper(helper, function (options) {\n return Utils.extend({ lookupProperty: lookupProperty }, options);\n });\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3lCQUNLLGFBQWE7Ozs7b0JBTTVCLFFBQVE7O3VCQUNtQixXQUFXOztrQ0FDbEIsdUJBQXVCOzttQ0FJM0MseUJBQXlCOztBQUV6QixTQUFTLGFBQWEsQ0FBQyxZQUFZLEVBQUU7QUFDMUMsTUFBTSxnQkFBZ0IsR0FBRyxBQUFDLFlBQVksSUFBSSxZQUFZLENBQUMsQ0FBQyxDQUFDLElBQUssQ0FBQztNQUM3RCxlQUFlLDBCQUFvQixDQUFDOztBQUV0QyxNQUNFLGdCQUFnQiwyQ0FBcUMsSUFDckQsZ0JBQWdCLDJCQUFxQixFQUNyQztBQUNBLFdBQU87R0FDUjs7QUFFRCxNQUFJLGdCQUFnQiwwQ0FBb0MsRUFBRTtBQUN4RCxRQUFNLGVBQWUsR0FBRyx1QkFBaUIsZUFBZSxDQUFDO1FBQ3ZELGdCQUFnQixHQUFHLHVCQUFpQixnQkFBZ0IsQ0FBQyxDQUFDO0FBQ3hELFVBQU0sMkJBQ0oseUZBQXlGLEdBQ3ZGLHFEQUFxRCxHQUNyRCxlQUFlLEdBQ2YsbURBQW1ELEdBQ25ELGdCQUFnQixHQUNoQixJQUFJLENBQ1AsQ0FBQztHQUNILE1BQU07O0FBRUwsVUFBTSwyQkFDSix3RkFBd0YsR0FDdEYsaURBQWlELEdBQ2pELFlBQVksQ0FBQyxDQUFDLENBQUMsR0FDZixJQUFJLENBQ1AsQ0FBQztHQUNIO0NBQ0Y7O0FBRU0sU0FBUyxRQUFRLENBQUMsWUF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cm9nLCBwcm9wcyk7XG4gIH1cbiAgcmV0dXJuIHByb2c7XG59XG5cbmZ1bmN0aW9uIHdyYXBIZWxwZXJzVG9QYXNzTG9va3VwUHJvcGVydHkobWVyZ2VkSGVscGVycywgY29udGFpbmVyKSB7XG4gIE9iamVjdC5rZXlzKG1lcmdlZEhlbHBlcnMpLmZvckVhY2goaGVscGVyTmFtZSA9PiB7XG4gICAgbGV0IGhlbHBlciA9IG1lcmdlZEhlbHBlcnNbaGVscGVyTmFtZV07XG4gICAgbWVyZ2VkSGVscGVyc1toZWxwZXJOYW1lXSA9IHBhc3NMb29rdXBQcm9wZXJ0eU9wdGlvbihoZWxwZXIsIGNvbnRhaW5lcik7XG4gIH0pO1xufVxuXG5mdW5jdGlvbiBwYXNzTG9va3VwUHJvcGVydHlPcHRpb24oaGVscGVyLCBjb250YWluZXIpIHtcbiAgY29uc3QgbG9va3VwUHJvcGVydHkgPSBjb250YWluZXIubG9va3VwUHJvcGVydHk7XG4gIHJldHVybiB3cmFwSGVscGVyKGhlbHBlciwgb3B0aW9ucyA9PiB7XG4gICAgcmV0dXJuIFV0aWxzLmV4dGVuZCh7IGxvb2t1cFByb3BlcnR5IH0sIG9wdGlvbnMpO1xuICB9KTtcbn1cbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\nexports.wrapHelper = wrapHelper;\n\nfunction wrapHelper(helper, transformOptionsFn) {\n if (typeof helper !== 'function') {\n // This should not happen, but apparently it does in https://github.com/wycats/handlebars.js/issues/1639\n // We try to make the wrapper least-invasive by not wrapping it, if the helper is not a function.\n return helper;\n }\n var wrapper = function wrapper() /* dynamic arguments */{\n var options = arguments[arguments.length - 1];\n arguments[arguments.length - 1] = transformOptionsFn(options);\n return helper.apply(this, arguments);\n };\n return wrapper;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3dy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GVyO1xuICB9XG4gIGxldCB3cmFwcGVyID0gZnVuY3Rpb24oLyogZHluYW1pYyBhcmd1bWVudHMgKi8pIHtcbiAgICBjb25zdCBvcHRpb25zID0gYXJndW1lbnRzW2FyZ3VtZW50cy5sZW5ndGggLSAxXTtcbiAgICBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdID0gdHJhbnNmb3JtT3B0aW9uc0ZuKG9wdGlvbnMpO1xuICAgIHJldHVybiBoZWxwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgfTtcbiAgcmV0dXJuIHdyYXBwZXI7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (Handlebars) {\n /* istanbul ignore next */\n var root = typeof global !== 'undefined' ? global : window,\n $Handlebars = root.Handlebars;\n /* istanbul ignore next */\n Handlebars.noConflict = function () {\n if (root.Handlebars === Handlebars) {\n root.Handlebars = $Handlebars;\n }\n return Handlebars;\n };\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL25vLWNvbmZsaWN0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxVQUFVLEVBQUU7O0FBRWxDLE1BQUksSUFBSSxHQUFHLE9BQU8sTUFBTSxLQUFLLFdBQVcsR0FBRyxNQUFNLEdBQUcsTUFBTTtNQUN4RCxXQUFXLEdBQUcsSUFBSSxDQUFDLFVBQVUsQ0FBQzs7QUFFaEMsWUFBVSxDQUFDLFVBQVUsR0FBRyxZQUFXO0FBQ2pDLFFBQUksSUFBSSxDQUFDLFVBQVUsS0FBSyxVQUFVLEVBQUU7QUFDbEMsVUFBSSxDQUFDLFVBQVUsR0FBRyxXQUFXLENBQUM7S0FDL0I7QUFDRCxXQUFPLFVBQVUsQ0FBQztHQUNuQixDQUFDO0NBQ0giLCJmaWxlIjoibm8tY29uZmxpY3QuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbihIYW5kbGViYXJzKSB7XG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gIGxldCByb290ID0gdHlwZW9mIGdsb2JhbCAhPT0gJ3VuZGVmaW5lZCcgPyBnbG9iYWwgOiB3aW5kb3csXG4gICAgJEhhbmRsZWJhcnMgPSByb290LkhhbmRsZWJhcnM7XG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gIEhhbmRsZWJhcnMubm9Db25mbGljdCA9IGZ1bmN0aW9uKCkge1xuICAgIGlmIChyb290LkhhbmRsZWJhcnMgPT09IEhhbmRsZWJhcnMpIHtcbiAgICAgIHJvb3QuSGFuZGxlYmFycyA9ICRIYW5kbGViYXJzO1xuICAgIH1cbiAgICByZXR1cm4gSGFuZGxlYmFycztcbiAgfTtcbn1cbiJdfQ==\n","/**\n * @fileoverview Layout view. wrap all view containers at outside.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\nvar View = require('./view');\n\n/**\n * Layout view for toggle each child view. It will controlled via navigation UI.\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container Container element to use layout view.\n * @param {Theme} theme - theme instance\n */\nfunction Layout(container, theme) {\n container = domutil.appendHTMLElement('div', container, config.classname('layout'));\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * @type {Collection} Child view collection.\n */\n this.children = new Collection(function(childView) {\n return childView.viewName;\n });\n /* eslint-enable*/\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n this.applyTheme();\n}\n\nutil.inherit(Layout, View);\n\n/**\n * Clear child views.\n */\nLayout.prototype.clear = function() {\n this.children.each(function(childView) {\n childView.destroy();\n });\n\n this.children.clear();\n this.container.innerHTML = '';\n};\n\n/**\n * Remove child view.\n * @override\n * @param {(string|View)} viewName - name of view or instance.\n */\nLayout.prototype.removeChild = function(viewName) {\n this.children.remove(viewName);\n};\n\n/**\n * Toggle child views.\n * @param {string} viewName - Name of view.\n */\nLayout.prototype.toggleChildView = function(viewName) {\n var container,\n prefix = ['add', 'remove'],\n flag;\n\n this.children.each(function(childView) {\n container = childView.container;\n flag = Number(childView.viewName === viewName);\n domutil[prefix[flag] + 'Class'](container, config.classname('hidden'));\n });\n};\n\nLayout.prototype.applyTheme = function() {\n var style = this.container.style;\n var theme = this.theme.common;\n\n // background color\n style.backgroundColor = theme.backgroundColor;\n};\n\nmodule.exports = Layout;\n","/**\n * @fileoverview Controller factory module.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Base = require('../controller/base'),\n Core = require('../controller/viewMixin/core'),\n Week = require('../controller/viewMixin/week'),\n Month = require('../controller/viewMixin/month');\n\n/**\n * Mixin object. create object property to target and mix to that\n * @param {object} from - source object\n * @param {object} to - target object\n * @param {string} propertyName - property name\n */\nfunction mixin(from, to, propertyName) {\n var obj = to[propertyName] = {};\n\n util.forEach(from, function(method, methodName) {\n obj[methodName] = util.bind(method, to);\n });\n}\n\n/**\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @returns {Base} The controller instance.\n */\nmodule.exports = function(options) {\n var controller = new Base(options);\n\n mixin(Core, controller, 'Core');\n mixin(Week, controller, 'Week');\n mixin(Month, controller, 'Month');\n\n // for Theme\n controller.Core.theme = controller.theme;\n controller.Week.theme = controller.theme;\n controller.Month.theme = controller.theme;\n\n return controller;\n};\n","/**\n * @fileoverview Base calendar controller\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Schedule = require('../model/schedule');\nvar ScheduleViewModel = require('../model/viewModel/scheduleViewModel');\nvar datetime = require('../common/datetime');\nvar common = require('../common/common');\nvar Theme = require('../theme/theme');\n\n/**\n * @constructor\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @param {themeConfig} [options.theme] - theme object\n * @mixes util.CustomEvents\n */\nfunction Base(options) {\n options = options || {};\n\n /**\n * function for group each schedule models.\n * @type {function}\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {string} group key\n */\n this.groupFunc = options.groupFunc || function(viewModel) {\n var model = viewModel.model;\n\n if (viewModel.model.isAllDay) {\n return 'allday';\n }\n\n if (model.category === 'time' && (model.end - model.start > datetime.MILLISECONDS_PER_DAY)) {\n return 'allday';\n }\n\n return model.category;\n };\n\n /**\n * schedules collection.\n * @type {Collection}\n */\n this.schedules = common.createScheduleCollection();\n\n /**\n * Matrix for multidate schedules.\n * @type {object.}\n */\n this.dateMatrix = {};\n\n /**\n * Theme\n * @type {Theme}\n */\n this.theme = new Theme(options.theme);\n\n /**\n * Calendar list\n * @type {Array.}\n */\n this.calendars = [];\n}\n\n/**\n * Calculate contain dates in schedule.\n * @private\n * @param {Schedule} schedule The instance of schedule.\n * @returns {array} contain dates.\n */\nBase.prototype._getContainDatesInSchedule = function(schedule) {\n var scheduleStart = schedule.getStarts();\n var scheduleEnd = schedule.getEnds();\n var start = datetime.start(scheduleStart);\n var equalStartEnd = datetime.compare(scheduleStart, scheduleEnd) === 0;\n var endDate = equalStartEnd ? scheduleEnd : datetime.convertStartDayToLastDay(scheduleEnd);\n var end = datetime.end(endDate);\n var range = datetime.range(\n start,\n end,\n datetime.MILLISECONDS_PER_DAY\n );\n\n return range;\n};\n\n/****************\n * CRUD Schedule\n ****************/\n\n/**\n * Create a schedule instance from raw data.\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {object} options Data object to create schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that created.\n */\nBase.prototype.createSchedule = function(options, silent) {\n var schedule,\n scheduleData = {\n data: options\n };\n\n /**\n * @event Base#beforeCreateSchedule\n * @type {Calendar~Schedule[]}\n */\n if (!this.invoke('beforeCreateSchedule', scheduleData)) {\n return null;\n }\n\n schedule = this.addSchedule(Schedule.create(options));\n\n if (!silent) {\n /**\n * @event Base#createdSchedule\n * @type {Schedule}\n */\n this.fire('createdSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {Calendar~Schedule[]} dataList - dataObject list to create schedule.\n * @param {boolean} [silent=false] - set true then don't fire events.\n * @returns {Schedule[]} The instance list of Schedule that created.\n */\nBase.prototype.createSchedules = function(dataList, silent) {\n var self = this;\n\n return util.map(dataList, function(data) {\n return self.createSchedule(data, silent);\n });\n};\n\n/**\n * Update a schedule.\n * @emits Base#updateSchedule\n * @param {Schedule} schedule - schedule instance to update\n * @param {object} options updated object data.\n * @returns {Schedule} updated schedule instance\n */\nBase.prototype.updateSchedule = function(schedule, options) {\n var start = options.start || schedule.start;\n var end = options.end || schedule.end;\n\n options = options || {};\n\n if (options.category === 'allday') {\n options.isAllDay = true;\n }\n\n if (!util.isUndefined(options.isAllDay)) {\n schedule.set('isAllDay', options.isAllDay);\n }\n\n if (!util.isUndefined(options.calendarId)) {\n schedule.set('calendarId', options.calendarId);\n }\n\n if (options.title) {\n schedule.set('title', options.title);\n }\n\n if (options.body) {\n schedule.set('body', options.body);\n }\n\n if (options.start || options.end) {\n if (schedule.isAllDay) {\n schedule.setAllDayPeriod(start, end);\n } else {\n schedule.setTimePeriod(start, end);\n }\n }\n\n if (options.color) {\n schedule.set('color', options.color);\n }\n\n if (options.bgColor) {\n schedule.set('bgColor', options.bgColor);\n }\n\n if (options.borderColor) {\n schedule.set('borderColor', options.borderColor);\n }\n\n if (options.origin) {\n schedule.set('origin', options.origin);\n }\n\n if (!util.isUndefined(options.isPending)) {\n schedule.set('isPending', options.isPending);\n }\n\n if (!util.isUndefined(options.isFocused)) {\n schedule.set('isFocused', options.isFocused);\n }\n\n if (options.location) {\n schedule.set('location', options.location);\n }\n\n if (options.state) {\n schedule.set('state', options.state);\n }\n\n this._removeFromMatrix(schedule);\n this._addToMatrix(schedule);\n\n /**\n * @event Base#updateSchedule\n */\n this.fire('updateSchedule');\n\n return schedule;\n};\n\n/**\n * Delete schedule instance from controller.\n * @param {Schedule} schedule - schedule instance to delete\n * @returns {Schedule} deleted model instance.\n */\nBase.prototype.deleteSchedule = function(schedule) {\n this._removeFromMatrix(schedule);\n this.schedules.remove(schedule);\n\n return schedule;\n};\n\n/**\n * Set date matrix to supplied schedule instance.\n * @param {Schedule} schedule - instance of schedule.\n */\nBase.prototype._addToMatrix = function(schedule) {\n var ownMatrix = this.dateMatrix;\n var containDates = this._getContainDatesInSchedule(schedule);\n\n util.forEach(containDates, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd] = ownMatrix[ymd] || [];\n\n matrix.push(util.stamp(schedule));\n });\n};\n\n/**\n * Remove schedule's id from matrix.\n * @param {Schedule} schedule - instance of schedule\n */\nBase.prototype._removeFromMatrix = function(schedule) {\n var modelID = util.stamp(schedule);\n\n util.forEach(this.dateMatrix, function(matrix) {\n var index = util.inArray(modelID, matrix);\n\n if (~index) {\n matrix.splice(index, 1);\n }\n }, this);\n};\n\n/**\n * Add a schedule instance.\n * @emits Base#addedSchedule\n * @param {Schedule} schedule The instance of Schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that added.\n */\nBase.prototype.addSchedule = function(schedule, silent) {\n this.schedules.add(schedule);\n this._addToMatrix(schedule);\n\n if (!silent) {\n /**\n * @event Base#addedSchedule\n * @type {object}\n */\n this.fire('addedSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * split schedule model by ymd.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @param {Collection} scheduleCollection - collection of schedule model.\n * @returns {object.} splitted schedule model collections.\n */\nBase.prototype.splitScheduleByDateRange = function(start, end, scheduleCollection) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownMatrix = this.dateMatrix,\n result = {};\n\n util.forEachArray(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd],\n collection;\n\n collection = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n util.forEachArray(matrix, function(id) {\n scheduleCollection.doWhenHas(id, function(schedule) {\n collection.add(schedule);\n });\n });\n }\n });\n\n return result;\n};\n\n/**\n * Return schedules in supplied date range.\n *\n * available only YMD.\n * @param {TZDate} start start date.\n * @param {TZDate} end end date.\n * @returns {object.} schedule collection grouped by dates.\n */\nBase.prototype.findByDateRange = function(start, end) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownSchedules = this.schedules.items,\n ownMatrix = this.dateMatrix,\n dformat = datetime.format,\n result = {},\n matrix,\n ymd,\n viewModels;\n\n util.forEachArray(range, function(date) {\n ymd = dformat(date, 'YYYYMMDD');\n matrix = ownMatrix[ymd];\n viewModels = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n viewModels.add.apply(viewModels, util.map(matrix, function(id) {\n return ScheduleViewModel.create(ownSchedules[id]);\n }));\n }\n });\n\n return result;\n};\n\nBase.prototype.clearSchedules = function() {\n this.dateMatrix = {};\n this.schedules.clear();\n /**\n * for inner view when clear schedules\n * @event Base#clearSchedules\n * @type {Schedule}\n */\n this.fire('clearSchedules');\n};\n\n/**\n * Set a theme.\n * @param {themeConfig} theme - theme keys, styles\n * @returns {Array.} keys - error keys not predefined.\n */\nBase.prototype.setTheme = function(theme) {\n return this.theme.setStyles(theme);\n};\n\n/**\n * Set calendar list\n * @param {Array.} calendars - calendar list\n */\nBase.prototype.setCalendars = function(calendars) {\n this.calendars = calendars;\n};\n\n// mixin\nutil.CustomEvents.mixin(Base);\n\nmodule.exports = Base;\n","/**\n * @fileoverview Dirty flagging module for objects.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar common = require('tui-code-snippet');\nvar existy = common.isExisty,\n pick = common.pick,\n isFunc = common.isFunction;\n\n/**\n * Mixin module for dirty flagging on specific objects.\n * @mixin\n * @example\n * var obj = { hello: 'good', test: '123' };\n * dirty.mixin(obj);\n *\n * obj.set('hello', 'world');\n * obj.isDirty(); // true\n * obj.isPropChanged('hello'); // true\n * obj.isPropChanged('test'); // false\n * obj.dirty(false);\n *\n * obj.isDirty(); // false\n * obj.isPropChanged('hello'); // false\n */\nvar dirty = {\n /**\n * Set property value with dirty flagging.\n * @param {string} propName Property name.\n * @param {*} value Proprty value.\n */\n set: function(propName, value) {\n var originValue = this[propName];\n\n if (originValue === value) {\n return;\n }\n\n this[propName] = value;\n\n if (!this._changed) {\n /**\n * Save changed properties.\n * @memberof dirty\n * @name _changed\n * @type {Object}\n */\n this._changed = {};\n }\n\n this._changed[propName] = true;\n\n /**\n * Dirty flag\n * @type {Boolean}\n * @name _dirty\n * @memberof dirty\n */\n this._dirty = true;\n },\n\n /**\n * Check dirty flag.\n * @returns {boolean} Property is changed.\n */\n isDirty: function() {\n return !!this._dirty;\n },\n\n /**\n * Set dirty flag manually.\n * @param {Boolean} [toDirty=true] This will set dirty flag directly.\n */\n dirty: function(toDirty) {\n toDirty = existy(toDirty) ? toDirty : true;\n\n /* istanbul ignore else */\n if (!toDirty) {\n this._changed = {};\n }\n\n this._dirty = toDirty;\n },\n\n /**\n * Delete property safety.\n * @param {String} propName The name of property.\n */\n deleteProp: function(propName) {\n delete this[propName];\n\n if (this._changed) {\n delete this._changed[propName];\n }\n },\n\n /**\n * Check the changes with specific property.\n * @param {String} propName The name of property you want.\n * @returns {boolean} Is property changed?\n */\n isPropChanged: function(propName) {\n if (!this._changed) {\n return false;\n }\n\n return this._changed[propName] === true;\n },\n\n /**\n * Mixin to specific objects.\n * @param {Object} target The object to mix this module.\n * @memberof module:util/dirty\n * @example\n * function Animal() {}\n * dirty.mixin(Animal.prototype);\n */\n mixin: function(target) {\n var methodFilterR = /(^_|mixin|wrap)/;\n\n common.forEachOwnProperties(dirty, function(o, k) {\n if (!methodFilterR.test(k)) {\n target[k] = dirty[k];\n }\n });\n },\n\n /**\n * Wrapper method for dirty flagging.\n *\n * This method invoke after invoked specific method that added by you.\n *\n * The method want to add are must exist before add.\n * @param {object} target Target object to method wrap.\n * @param {(string|object)} methodName\n * Method name to wrap or methodName: flag objects.\n * @param {boolean} [flag=true]\n * this will used to flagging by dirty flagger after invoke the methods added by you.\n * @memberof module:util/dirty\n * @example\n * function Animal(name) {\n * this.name = name;\n * }\n * Animal.prototype.growl = jasmine.createSpy('growl');\n * Animal.prototype.test = function() {\n * return this.name;\n * };\n *\n * dirty.mixin(Animal.prototype);\n * // single\n * dirty.wrap(Animal.prototype, 'growl', true);\n * // multiple\n * dirty.wrap(Animap.prototype, {\n * growl: true,\n * test: false\n * });\n *\n */\n wrap: function(target, methodName, flag) {\n var wrap = dirty.wrap,\n fn;\n\n if (common.isObject(methodName)) {\n common.forEachOwnProperties(methodName, function(_flag, _name) {\n wrap(target, _name, _flag);\n });\n\n return;\n }\n\n flag = existy(flag) ? flag : true;\n\n if (!target._wrapper) {\n /**\n * @param {function} _fn Original method to wrap.\n * @param {boolean} flagToSet The boolean value to using dirty flagging.\n * @returns {*} The result value of original method.\n * @name _wrapper\n * @memberof dirty\n */\n target._wrapper = function(_fn, flagToSet) {\n return function() {\n var args = Array.prototype.slice.call(arguments);\n var result = _fn.apply(this, args); // eslint-disable-line\n this._dirty = flagToSet; // eslint-disable-line\n\n return result;\n };\n };\n }\n\n if (existy(pick(target, methodName)) &&\n isFunc(target[methodName]) &&\n !existy(pick(target, methodName, '_wrapped'))) {\n fn = target[methodName];\n target[methodName] = target._wrapper(fn, flag);\n target[methodName]._wrapped = true;\n }\n }\n};\n\nmodule.exports = dirty;\n","/**\n * @fileoverview Mixin module for models.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar TZDate = require('../common/timezone').Date;\nvar util = require('tui-code-snippet');\nvar spaceRx = /^\\s*|\\s*$/g,\n model;\n\nvar datetime = require('../common/datetime');\n\n/**\n * Mixin module for models.\n * @mixin\n */\nmodel = {\n /**\n * string trim\n * @param {string} str string to trim\n * @returns {string} trimed string\n */\n trim: function(str) {\n return str.replace(spaceRx, '');\n },\n /**\n * The collections of validator functions.\n */\n validators: {\n /**\n * check all of supplied fields(property) is not undefined or empty string.\n * @param {object} instance model instance.\n * @param {string[]} fields property names to check.\n * @returns {boolean} return true when supplied fields are not undefined or empty string.\n */\n required: function(instance, fields) {\n var valid = true,\n isValid = function(obj) {\n return !util.isUndefined(obj) && model.trim(obj) !== '';\n };\n\n util.forEach(fields, function(fieldName) {\n valid = isValid(instance[fieldName]);\n\n return valid;\n });\n\n return valid;\n },\n\n /**\n * check supplied fields are valid dates and valid date ranges.\n * @param {object} instance model instance.\n * @param {Date[]} fields array of date range (start, end)\n * @returns {boolean} is valid date range?\n */\n dateRange: function(instance, fields) {\n var start, end;\n\n if (!util.isExisty(instance) || fields.length !== 2) {\n return true;\n }\n\n start = new TZDate(instance[fields[0]]);\n end = new TZDate(instance[fields[1]]);\n\n if (!datetime.isValid(start) || !datetime.isValid(end)) {\n return false;\n }\n\n if (datetime.compare(start, end) === 1) {\n return false;\n }\n\n return true;\n }\n },\n\n /**\n * Check validate for model instance.\n *\n * The validate are works on a basis of constructor's \"schema\" property.\n *\n * You can customize validators add some method to model#validators.\n * @returns {Boolean} model is valid?\n */\n isValid: function() {\n var self = this,\n schema = this.constructor.schema,\n validators = model.validators,\n validator,\n valid = true;\n\n if (!schema) {\n return true;\n }\n\n util.forEach(schema, function(values, validatorName) {\n validator = validators[validatorName];\n\n if (validator) {\n valid = validator(self, values);\n\n return valid; // returning false can stop this loop\n }\n\n return true;\n });\n\n return valid;\n },\n\n /**\n * Make data object form instance.\n *\n * It return object fill with all owned properties but exclude functions.\n * @returns {object} Data object\n */\n parameterize: function() {\n var param = {},\n isFunc = util.isFunction;\n\n util.forEach(this, function(value, propName) {\n if (!isFunc(value)) {\n param[propName] = value;\n }\n });\n\n return param;\n },\n\n /**\n * Mixin model module to supplied target.\n * @param {Object} target The object of want to mixed.\n * @example\n * function Man() {\n * this.name = 'john';\n * }\n * model.mixin(Man.prototype);\n */\n mixin: function(target) {\n util.forEach(model, function(method, name) {\n if (name !== 'mixin') {\n target[name] = method;\n }\n });\n }\n};\n\nmodule.exports = model;\n","/**\n * @fileoverview The all configuration of a theme\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar themeStandard = require('./standard');\nvar themeConfig = require('./themeConfig');\nvar common = require('../common/common');\n\n/**\n * Theme manager\n * @param {object} customTheme - custom theme\n */\nfunction Theme(customTheme) {\n var theme = customTheme || themeStandard;\n\n /**\n * @type {util.HashMap}\n */\n this._map = new util.HashMap();\n\n this.setStyles(theme);\n}\n\n/**\n * Get a style with key\n * @param {string} key - key for getting a style\n * @returns {string|undefined} style\n */\nTheme.prototype.getStyle = function(key) {\n return this._map.get(key);\n};\n\n/**\n * Set a style\n * @param {string} key - key for setting a style\n * @param {string} style - style value\n * @returns {boolean} true if the give key is valid or false\n */\nTheme.prototype.setStyle = function(key, style) {\n var styles = {};\n styles[key] = style;\n\n return this.setStyles(styles).length === 0;\n};\n\n/**\n * Set styles\n * @param {object} styles - multiple styles map\n * @returns {Array.} error keys\n */\nTheme.prototype.setStyles = function(styles) {\n var errors = [];\n\n util.forEach(styles, function(style, key) {\n if (util.isUndefined(themeConfig[key])) {\n errors.push(key);\n } else {\n this._map.set(key, style);\n common.set(this, key, style);\n }\n }, this);\n\n // apply missing styles which have to be default\n util.forEach(themeConfig, function(style, key) {\n if (!this.getStyle(key)) {\n this._map.set(key, style);\n common.set(this, key, style);\n }\n }, this);\n\n return errors;\n};\n\n/**\n * Delete all styles\n */\nTheme.prototype.clear = function() {\n var keys = this._map.keys();\n var categories = {};\n util.forEach(keys, function(key) {\n var category = key.split('.')[0];\n if (!categories[category]) {\n categories[category] = category;\n }\n });\n\n util.forEach(categories, function(child) {\n delete this[child];\n }, this);\n\n this._map.removeAll();\n};\n\nmodule.exports = Theme;\n","/**\n * @fileoverview The standard theme\n * @author NHN FE Development Lab \n */\n'use strict';\n\n/**\n * \"common\" prefix is for entire calendar. \"common\" properties can be overriden by \"week\", \"month\".\n * \"week\" prefix is for weekly and daily view.\n * \"month\" prefix is for monthly view.\n */\nvar theme = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': 'none',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '0',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'none',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': 'inherit',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n\nmodule.exports = theme;\n","/**\n * @fileoverview The all configuration of a theme\n * @author NHN FE Development Lab \n */\n'use strict';\n\n/**\n * Full configuration for theme.\n * \"common\" prefix is for entire calendar. \"common\" properties can be overriden by \"week\", \"month\".\n * \"week\" prefix is for weekly and daily view.\n * \"month\" prefix is for monthly view.\n * @typedef {object} themeConfig\n * @example\n // default keys and styles\n var themeConfig = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': '1px solid #e5e5e5',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '10px',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.backgroundColor': 'inherit',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'inherit',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': '#333',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n 'week.timegridLeftTimezoneLabel.height': '40px',\n 'week.timegridLeftAdditionalTimezone.backgroundColor': 'white',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.pastTime.color': '#bbb',\n 'week.pastTime.fontWeight': 'normal',\n\n 'week.futureTime.color': '#333',\n 'week.futureTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n */\nvar themeConfig = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': '1px solid #e5e5e5',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '10px',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.backgroundColor': 'inherit',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'inherit',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': '#333',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n 'week.timegridLeftTimezoneLabel.height': '40px',\n 'week.timegridLeftAdditionalTimezone.backgroundColor': 'white',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.pastTime.color': '#bbb',\n 'week.pastTime.fontWeight': 'normal',\n\n 'week.futureTime.color': '#333',\n 'week.futureTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n\nmodule.exports = themeConfig;\n","/**\n * @fileoverview Core methods for schedule block placing\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachArr = util.forEachArray,\n aps = Array.prototype.slice;\n\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar Collection = require('../../common/collection');\nvar ScheduleViewModel = require('../../model/viewModel/scheduleViewModel');\n\nvar Core = {\n /**\n * Calculate collision group.\n * @param {array} viewModels List of viewmodels.\n * @returns {array} Collision Group.\n */\n getCollisionGroup: function(viewModels) {\n var collisionGroups = [],\n foundPrevCollisionSchedule = false,\n previousScheduleList;\n\n if (!viewModels.length) {\n return collisionGroups;\n }\n\n collisionGroups[0] = [util.stamp(viewModels[0].valueOf())];\n forEachArr(viewModels.slice(1), function(schedule, index) {\n foundPrevCollisionSchedule = false;\n previousScheduleList = aps.apply(viewModels, [0, index + 1]).reverse();\n\n forEachArr(previousScheduleList, function(previous) {\n if (schedule.collidesWith(previous)) {\n // If overlapping previous schedules, find a Collision Group of overlapping schedules and add this schedules\n foundPrevCollisionSchedule = true;\n\n forEachArr(collisionGroups.slice(0).reverse(), function(group) {\n if (~util.inArray(util.stamp(previous.valueOf()), group)) {\n // If you find a previous schedule that overlaps, include it in the Collision Group to which it belongs.\n group.push(util.stamp(schedule.valueOf()));\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n if (!foundPrevCollisionSchedule) {\n // This schedule is a schedule that does not overlap with the previous schedule, so a new Collision Group is constructed.\n collisionGroups.push([util.stamp(schedule.valueOf())]);\n }\n });\n\n return collisionGroups;\n },\n\n /**\n * Get row length by column index in 2d matrix.\n * @param {array[]} arr2d Matrix\n * @param {number} col Column index.\n * @returns {number} Last row number in column.\n */\n getLastRowInColumn: function(arr2d, col) {\n var row = arr2d.length;\n\n while (row > 0) {\n row -= 1;\n if (!util.isUndefined(arr2d[row][col])) {\n return row;\n }\n }\n\n return false;\n },\n\n /**\n * Calculate matrix for appointment block element placing.\n * @param {Collection} collection model collection.\n * @param {array[]} collisionGroups Collision groups for schedule set.\n * @returns {array} matrices\n */\n getMatrices: function(collection, collisionGroups) {\n var result = [],\n getLastRowInColumn = Core.getLastRowInColumn;\n\n forEachArr(collisionGroups, function(group) {\n var matrix = [[]];\n\n forEachArr(group, function(scheduleID) {\n var schedule = collection.items[scheduleID],\n col = 0,\n found = false,\n nextRow,\n lastRowInColumn;\n\n while (!found) {\n lastRowInColumn = getLastRowInColumn(matrix, col);\n\n if (lastRowInColumn === false) {\n matrix[0].push(schedule);\n found = true;\n } else if (!schedule.collidesWith(matrix[lastRowInColumn][col])) {\n nextRow = lastRowInColumn + 1;\n if (util.isUndefined(matrix[nextRow])) {\n matrix[nextRow] = [];\n }\n matrix[nextRow][col] = schedule;\n found = true;\n }\n\n col += 1;\n }\n });\n\n result.push(matrix);\n });\n\n return result;\n },\n\n /**\n * Filter that get schedule model in supplied date ranges.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @returns {function} schedule filter function\n */\n getScheduleInDateRangeFilter: function(start, end) {\n return function(model) {\n var ownStarts = model.getStarts(),\n ownEnds = model.getEnds();\n\n // shorthand condition of\n //\n // (ownStarts >= start && ownEnds <= end) ||\n // (ownStarts < start && ownEnds >= start) ||\n // (ownEnds > end && ownStarts <= end)\n return !(ownEnds < start || ownStarts > end);\n };\n },\n\n /**\n * Position each view model for placing into container\n * @param {Date} start - start date to render\n * @param {Date} end - end date to render\n * @param {array} matrices - matrices from controller\n * @param {function} [iteratee] - iteratee function invoke each view models\n */\n positionViewModels: function(start, end, matrices, iteratee) {\n var ymdListToRender;\n\n ymdListToRender = util.map(\n datetime.range(start, end, datetime.MILLISECONDS_PER_DAY),\n function(date) {\n return datetime.format(date, 'YYYYMMDD');\n }\n );\n\n forEachArr(matrices, function(matrix) {\n forEachArr(matrix, function(column) {\n forEachArr(column, function(viewModel, index) {\n var ymd, dateLength;\n\n if (!viewModel) {\n return;\n }\n\n ymd = datetime.format(viewModel.getStarts(), 'YYYYMMDD');\n dateLength = datetime.range(\n datetime.start(viewModel.getStarts()),\n datetime.end(viewModel.getEnds()),\n datetime.MILLISECONDS_PER_DAY\n ).length;\n\n viewModel.top = index;\n viewModel.left = util.inArray(ymd, ymdListToRender);\n viewModel.width = dateLength;\n\n if (iteratee) {\n iteratee(viewModel);\n }\n });\n });\n });\n },\n\n /**\n * Limit start, end date each view model for render properly\n * @param {TZDate} start - start date to render\n * @param {TZDate} end - end date to render\n * @param {Collection|ScheduleViewModel} viewModelColl - schedule view\n * model collection or ScheduleViewModel\n * @returns {ScheduleViewModel} return view model when third parameter is\n * view model\n */\n limitRenderRange: function(start, end, viewModelColl) {\n /**\n * Limit render range for view models\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {ScheduleViewModel} view model that limited render range\n */\n function limit(viewModel) {\n if (viewModel.getStarts() < start) {\n viewModel.exceedLeft = true;\n viewModel.renderStarts = new TZDate(start);\n }\n\n if (viewModel.getEnds() > end) {\n viewModel.exceedRight = true;\n viewModel.renderEnds = new TZDate(end);\n }\n\n return viewModel;\n }\n\n if (viewModelColl.constructor === Collection) {\n viewModelColl.each(limit);\n\n return null;\n }\n\n return limit(viewModelColl);\n },\n\n /**\n * Convert schedule model collection to view model collection.\n * @param {Collection} modelColl - collection of schedule model\n * @returns {Collection} collection of schedule view model\n */\n convertToViewModel: function(modelColl) {\n var viewModelColl;\n\n viewModelColl = new Collection(function(viewModel) {\n return viewModel.cid();\n });\n\n modelColl.each(function(model) {\n viewModelColl.add(ScheduleViewModel.create(model));\n });\n\n return viewModelColl;\n }\n};\n\nmodule.exports = Core;\n","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Controller mixin modules for day views.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar Collection = require('../../common/collection');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * @mixin Base.Week\n */\nvar Week = {\n /**********\n * TIME GRID VIEW\n **********/\n\n /**\n * Make array with start and end times on schedules.\n * @this Base.Week\n * @param {array[]} matrix - matrix from controller.\n * @returns {array[]} starttime, endtime array (exclude first row's schedules)\n */\n generateTimeArrayInRow: function(matrix) {\n var row,\n col,\n schedule,\n start,\n end,\n map = [],\n cursor = [],\n maxColLen = Math.max.apply(null, util.map(matrix, function(col) {\n return col.length;\n }));\n\n for (col = 1; col < maxColLen; col += 1) {\n row = 0;\n schedule = util.pick(matrix, row, col);\n\n while (schedule) {\n start = schedule.getStarts().getTime() - datetime.millisecondsFrom('minutes', schedule.valueOf().goingDuration);\n end = schedule.getEnds().getTime() + datetime.millisecondsFrom('minutes', schedule.valueOf().comingDuration);\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n cursor.push([start, end]);\n\n row += 1;\n schedule = util.pick(matrix, row, col);\n }\n\n map.push(cursor);\n cursor = [];\n }\n\n return map;\n },\n\n /**\n * Get collision information from list\n * @this Base\n * @param {array.} arr - list to detecting collision. [[start, end], [start, end]]\n * @param {number} start - schedule start time that want to detect collisions.\n * @param {number} end - schedule end time that want to detect collisions.\n * @returns {boolean} target has collide in supplied array?\n */\n hasCollide: function(arr, start, end) {\n var startStart,\n startEnd,\n endStart,\n endEnd,\n getFunc = function(index) {\n return function(block) {\n return block[index];\n };\n },\n abs = Math.abs,\n compare = array.compare.num.asc,\n hasCollide;\n\n if (!arr.length) {\n return false;\n }\n\n startStart = abs(array.bsearch(arr, start, getFunc(0), compare));\n startEnd = abs(array.bsearch(arr, start, getFunc(1), compare));\n endStart = abs(array.bsearch(arr, end, getFunc(0), compare));\n endEnd = abs(array.bsearch(arr, end, getFunc(1), compare));\n hasCollide = !(startStart === startEnd && startEnd === endStart && endStart === endEnd);\n\n return hasCollide;\n },\n\n /**\n * Initialize values to viewmodels for detect real collision at rendering phase.\n * @this Base\n * @param {array[]} matrices - Matrix data.\n */\n getCollides: function(matrices) {\n util.forEachArray(matrices, function(matrix) {\n var binaryMap,\n maxRowLength;\n\n binaryMap = Week.generateTimeArrayInRow(matrix);\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n util.forEachArray(matrix, function(row) {\n util.forEachArray(row, function(viewModel, col) {\n var startTime,\n endTime,\n hasCollide,\n i;\n\n if (!viewModel) {\n return;\n }\n\n startTime = viewModel.getStarts().getTime();\n endTime = viewModel.getEnds().getTime();\n\n if (Math.abs(endTime - startTime) < SCHEDULE_MIN_DURATION) {\n endTime += SCHEDULE_MIN_DURATION;\n }\n\n startTime -= datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration);\n endTime += datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n\n endTime -= 1;\n\n for (i = (col + 1); i < maxRowLength; i += 1) {\n hasCollide = Week.hasCollide(binaryMap[i - 1], startTime, endTime);\n\n if (hasCollide) {\n viewModel.hasCollide = true;\n break;\n }\n\n viewModel.extraSpace += 1;\n }\n });\n });\n });\n },\n\n /**\n * create view model for time view part\n * @this Base\n * @param {Date} start - start date.\n * @param {Date} end - end date.\n * @param {Collection} time - view model collection.\n * @param {number} hourStart - start hour to be shown\n * @param {number} hourEnd - end hour to be shown\n * @returns {object} view model for time part.\n */\n getViewModelForTimeView: function(start, end, time, hourStart, hourEnd) {\n var self = this,\n ymdSplitted = this.splitScheduleByDateRange(start, end, time),\n result = {};\n\n var _getViewModel = Week._makeGetViewModelFuncForTimeView(hourStart, hourEnd);\n\n util.forEach(ymdSplitted, function(collection, ymd) {\n var viewModels = _getViewModel(collection);\n var collisionGroups, matrices;\n\n collisionGroups = self.Core.getCollisionGroup(viewModels);\n matrices = self.Core.getMatrices(collection, collisionGroups);\n self.Week.getCollides(matrices);\n\n result[ymd] = matrices;\n });\n\n return result;\n },\n\n /**\n * make view model function depending on start and end hour\n * if time view option has start or end hour condition\n * it add filter\n * @param {number} hourStart - start hour to be shown\n * @param {number} hourEnd - end hour to be shown\n * @returns {function} function\n */\n _makeGetViewModelFuncForTimeView: function(hourStart, hourEnd) {\n if (hourStart === 0 && hourEnd === 24) {\n return function(collection) {\n return collection.sort(array.compare.schedule.asc);\n };\n }\n\n return function(collection) {\n return collection.find(Week._makeHourRangeFilter(hourStart, hourEnd))\n .sort(array.compare.schedule.asc);\n };\n },\n\n /**\n * make a filter function that is not included range of start, end hour\n * @param {number} hStart - hour start\n * @param {number} hEnd - hour end\n * @returns {function} - filtering function\n */\n _makeHourRangeFilter: function(hStart, hEnd) {\n return function(schedule) {\n var ownHourStart = schedule.model.start;\n var ownHourEnd = schedule.model.end;\n var yyyy = ownHourStart.getFullYear();\n var mm = ownHourStart.getMonth();\n var dd = ownHourStart.getDate();\n\n var hourStart = new TZDate(yyyy, mm, dd).setHours(hStart);\n var hourEnd = new TZDate(yyyy, mm, dd).setHours(hEnd);\n\n return (ownHourStart >= hourStart && ownHourStart < hourEnd) ||\n (ownHourEnd > hourStart && ownHourEnd <= hourEnd) ||\n (ownHourStart < hourStart && ownHourEnd > hourStart) ||\n (ownHourEnd > hourEnd && ownHourStart < hourEnd);\n };\n },\n\n /**********\n * ALLDAY VIEW\n **********/\n\n /**\n * Set hasMultiDates flag to true and set date ranges for rendering\n * @this Base\n * @param {Collection} vColl - view model collection\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n viewModel.hasMultiDates = true;\n viewModel.renderStarts = datetime.start(model.getStarts());\n viewModel.renderEnds = datetime.end(model.getEnds());\n });\n },\n\n /**\n * create view model for allday view part\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {Collection} viewModelColl - allday schedule viewModel viewModels.\n * @returns {object} allday viewModel.\n */\n getViewModelForAlldayView: function(start, end, viewModelColl) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n viewModels,\n collisionGroups,\n matrices;\n\n if (!viewModelColl || !viewModelColl.length) {\n return [];\n }\n\n ctrlWeek._addMultiDatesInfo(viewModelColl);\n ctrlCore.limitRenderRange(start, end, viewModelColl);\n\n viewModels = viewModelColl.sort(array.compare.schedule.asc);\n collisionGroups = ctrlCore.getCollisionGroup(viewModels);\n\n matrices = ctrlCore.getMatrices(viewModelColl, collisionGroups);\n ctrlCore.positionViewModels(start, end, matrices);\n\n return matrices;\n },\n\n /**********\n * READ\n **********/\n\n /**\n * Populate schedules in date range.\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {Array.} panels - schedule panels like 'milestone', 'task', 'allday', 'time'\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @param {Object} options - week view options\n * @returns {object} schedules grouped by dates.\n */\n findByDateRange: function(start, end, panels, andFilters, options) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n scheduleTypes = util.pluck(panels, 'name'),\n hourStart = util.pick(options, 'hourStart'),\n hourEnd = util.pick(options, 'hourEnd'),\n modelColl,\n group;\n\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n modelColl = this.schedules.find(filter);\n modelColl = ctrlCore.convertToViewModel(modelColl);\n\n group = modelColl.groupBy(scheduleTypes, this.groupFunc);\n util.forEach(panels, function(panel) {\n var name = panel.name;\n if (panel.type === 'daygrid') {\n group[name] = ctrlWeek.getViewModelForAlldayView(start, end, group[name]);\n } else if (panel.type === 'timegrid') {\n group[name] = ctrlWeek.getViewModelForTimeView(start, end, group[name], hourStart, hourEnd);\n }\n });\n\n return group;\n },\n\n /* eslint max-nested-callbacks: 0 */\n /**\n * Make exceed date information\n * @param {number} maxCount - exceed schedule count\n * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n * @param {Array.} range - date range of one week\n * @returns {object} exceedDate\n */\n getExceedDate: function(maxCount, eventsInDateRange, range) {\n var exceedDate = {};\n\n util.forEach(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] = 0;\n });\n\n util.forEach(eventsInDateRange, function(matrix) {\n util.forEach(matrix, function(column) {\n util.forEach(column, function(viewModel) {\n var period;\n if (!viewModel || viewModel.top < maxCount) {\n return;\n }\n\n period = datetime.range(\n viewModel.getStarts(),\n viewModel.getEnds(),\n datetime.MILLISECONDS_PER_DAY\n );\n\n util.forEach(period, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] += 1;\n });\n });\n });\n });\n\n return exceedDate;\n },\n\n /**\n * Exclude overflow schedules from matrices\n * @param {array} matrices - The matrices for schedule placing.\n * @param {number} visibleScheduleCount - maximum visible count on panel\n * @returns {array} - The matrices for schedule placing except overflowed schedules.\n */\n excludeExceedSchedules: function(matrices, visibleScheduleCount) {\n return matrices.map(function(matrix) {\n return matrix.map(function(row) {\n if (row.length > visibleScheduleCount) {\n return row.filter(function(item) {\n return item.top < visibleScheduleCount;\n }, this);\n }\n\n return row;\n }, this);\n }, this);\n }\n};\n\nmodule.exports = Week;\n","/**\n * @fileoverview Controller mixin for Month View\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar array = require('../../common/array'),\n datetime = require('../../common/datetime'),\n Collection = require('../../common/collection');\nvar mmax = Math.max;\n\nvar Month = {\n /**\n * Filter function for find time schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is time schedule?\n */\n _onlyTimeFilter: function(viewModel) {\n return !viewModel.model.isAllDay && !viewModel.hasMultiDates;\n },\n\n /**\n * Filter function for find allday schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is allday schedule?\n */\n _onlyAlldayFilter: function(viewModel) {\n return viewModel.model.isAllDay || viewModel.hasMultiDates;\n },\n\n /**\n * Weight top value +1 for month view render\n * @param {ScheduleViewModel} viewModel - schedule view model\n */\n _weightTopValue: function(viewModel) {\n viewModel.top = viewModel.top || 0;\n viewModel.top += 1;\n },\n\n /**\n * Adjust render range to render properly.\n *\n * Limit start, end for each allday schedules and expand start, end for\n * each time schedules\n * @this Base\n * @param {TZDate} start - render start date\n * @param {TZDate} end - render end date\n * @param {Collection} vColl - view model collection\n * property.\n */\n _adjustRenderRange: function(start, end, vColl) {\n var ctrlCore = this.Core;\n\n vColl.each(function(viewModel) {\n if (viewModel.model.isAllDay || viewModel.hasMultiDates) {\n ctrlCore.limitRenderRange(start, end, viewModel);\n }\n });\n },\n\n /**\n * Get max top index value for allday schedules in specific date (YMD)\n * @this Base\n * @param {string} ymd - yyyymmdd formatted value\n * @param {Collection} vAlldayColl - collection of allday schedules\n * @returns {number} max top index value in date\n */\n _getAlldayMaxTopIndexAtYMD: function(ymd, vAlldayColl) {\n var dateMatrix = this.dateMatrix,\n topIndexesInDate = [];\n util.forEach(dateMatrix[ymd], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topIndexesInDate.push(viewModel.top);\n });\n });\n\n if (topIndexesInDate.length > 0) {\n return mmax.apply(null, topIndexesInDate);\n }\n\n return 0;\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _adjustTimeTopIndex: function(vColl) {\n var ctrlMonth = this.Month;\n var getAlldayMaxTopIndexAtYMD = ctrlMonth._getAlldayMaxTopIndexAtYMD;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var maxIndexInYMD = {};\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD];\n\n if (util.isUndefined(alldayMaxTopInYMD)) {\n alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD] =\n getAlldayMaxTopIndexAtYMD(scheduleYMD, vAlldayColl);\n }\n maxIndexInYMD[scheduleYMD] = timeViewModel.top =\n (alldayMaxTopInYMD + 1);\n });\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _stackTimeFromTop: function(vColl) {\n var ctrlMonth = this.Month;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var indiceInYMD = {};\n var dateMatrix = this.dateMatrix;\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var topArrayInYMD = indiceInYMD[scheduleYMD];\n var maxTopInYMD;\n var i;\n\n if (util.isUndefined(topArrayInYMD)) {\n topArrayInYMD = indiceInYMD[scheduleYMD] = [];\n util.forEach(dateMatrix[scheduleYMD], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topArrayInYMD.push(viewModel.top);\n });\n });\n }\n\n if (util.inArray(timeViewModel.top, topArrayInYMD) >= 0) {\n maxTopInYMD = mmax.apply(null, topArrayInYMD) + 1;\n for (i = 1; i <= maxTopInYMD; i += 1) {\n timeViewModel.top = i;\n if (util.inArray(timeViewModel.top, topArrayInYMD) < 0) {\n break;\n }\n }\n }\n topArrayInYMD.push(timeViewModel.top);\n });\n },\n\n /**\n * Convert multi-date time schedule to all-day schedule\n * @this Base\n * @param {Collection} vColl - view model collection\n * property.\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n var start = model.getStarts();\n var end = model.getEnds();\n\n viewModel.hasMultiDates = !datetime.isSameDate(start, end);\n\n if (!model.isAllDay && viewModel.hasMultiDates) {\n viewModel.renderStarts = datetime.start(start);\n viewModel.renderEnds = datetime.convertStartDayToLastDay(end);\n }\n });\n },\n\n /**\n * Find schedule and get view model for specific month\n * @this Base\n * @param {TZDate} start - start date to find schedules\n * @param {TZDate} end - end date to find schedules\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @param {boolean} [alldayFirstMode=false] if true, time schedule is lower than all-day schedule. Or stack schedules from the top.\n * @returns {object} view model data\n */\n findByDateRange: function(start, end, andFilters, alldayFirstMode) {\n var ctrlCore = this.Core,\n ctrlMonth = this.Month,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n coll, vColl, vList,\n collisionGroup,\n matrices;\n\n alldayFirstMode = alldayFirstMode || false;\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n coll = this.schedules.find(filter);\n vColl = ctrlCore.convertToViewModel(coll);\n ctrlMonth._addMultiDatesInfo(vColl);\n ctrlMonth._adjustRenderRange(start, end, vColl);\n vList = vColl.sort(array.compare.schedule.asc);\n\n collisionGroup = ctrlCore.getCollisionGroup(vList);\n matrices = ctrlCore.getMatrices(vColl, collisionGroup);\n ctrlCore.positionViewModels(start, end, matrices, ctrlMonth._weightTopValue);\n if (alldayFirstMode) {\n ctrlMonth._adjustTimeTopIndex(vColl);\n } else {\n ctrlMonth._stackTimeFromTop(vColl);\n }\n\n return matrices;\n }\n};\n\nmodule.exports = Month;\n","/**\n * @fileoverview Factory module for WeekView\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar common = require('../common/common');\nvar VLayout = require('../common/vlayout');\nvar reqAnimFrame = require('../common/reqAnimFrame');\nvar Schedule = require('../model/schedule');\n// Parent views\nvar Week = require('../view/week/week');\n\n// Sub views\nvar DayName = require('../view/week/dayname');\nvar DayGrid = require('../view/week/dayGrid');\nvar TimeGrid = require('../view/week/timeGrid');\nvar ScheduleCreationPopup = require('../view/popup/scheduleCreationPopup');\nvar ScheduleDetailPopup = require('../view/popup/scheduleDetailPopup');\n\n// Handlers\nvar DayNameClick = require('../handler/time/clickDayname');\nvar DayGridClick = require('../handler/daygrid/click');\nvar DayGridCreation = require('../handler/daygrid/creation');\nvar DayGridMove = require('../handler/daygrid/move');\nvar DayGridResize = require('../handler/daygrid/resize');\nvar TimeClick = require('../handler/time/click');\nvar TimeCreation = require('../handler/time/creation');\nvar TimeMove = require('../handler/time/move');\nvar TimeResize = require('../handler/time/resize');\n\nvar DAYGRID_HANDLDERS = {\n 'click': DayGridClick,\n 'creation': DayGridCreation,\n 'move': DayGridMove,\n 'resize': DayGridResize\n};\nvar TIMEGRID_HANDLERS = {\n 'click': TimeClick,\n 'creation': TimeCreation,\n 'move': TimeMove,\n 'resize': TimeResize\n};\nvar DEFAULT_PANELS = [\n {\n name: 'milestone',\n type: 'daygrid',\n minHeight: 20,\n maxHeight: 80,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click'],\n show: true\n },\n {\n name: 'task',\n type: 'daygrid',\n minHeight: 40,\n maxHeight: 120,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click', 'move'],\n show: true\n },\n {\n name: 'allday',\n type: 'daygrid',\n minHeight: 30,\n maxHeight: 80,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click', 'creation', 'move', 'resize'],\n show: true\n },\n {\n name: 'time',\n type: 'timegrid',\n autoHeight: true,\n handlers: ['click', 'creation', 'move', 'resize'],\n show: true\n }\n];\n\n/* eslint-disable complexity*/\nmodule.exports = function(baseController, layoutContainer, dragHandler, options, viewName) {\n var panels = [],\n vpanels = [];\n var weekView, dayNameContainer, dayNameView, vLayoutContainer, vLayout;\n var createView, onSaveNewSchedule, onSetCalendars, lastVPanel;\n var detailView, onShowDetailPopup, onDeleteSchedule, onShowEditPopup, onEditSchedule;\n var taskView = options.taskView;\n var scheduleView = options.scheduleView;\n var viewVisibilities = {\n 'milestone': util.isArray(taskView) ? util.inArray('milestone', taskView) >= 0 : taskView,\n 'task': util.isArray(taskView) ? util.inArray('task', taskView) >= 0 : taskView,\n 'allday': util.isArray(scheduleView) ? util.inArray('allday', scheduleView) >= 0 : scheduleView,\n 'time': util.isArray(scheduleView) ? util.inArray('time', scheduleView) >= 0 : scheduleView\n };\n\n // Make panels by view sequence and visibilities\n util.forEach(DEFAULT_PANELS, function(panel) {\n var name = panel.name;\n\n panel = util.extend({}, panel);\n panels.push(panel);\n\n // Change visibilities\n panel.show = viewVisibilities[name];\n\n if (panel.show) {\n if (vpanels.length) {\n vpanels.push({\n isSplitter: true\n });\n }\n vpanels.push(util.extend({}, panel));\n }\n });\n\n if (vpanels.length) {\n lastVPanel = vpanels[vpanels.length - 1];\n lastVPanel.autoHeight = true;\n lastVPanel.maxHeight = null;\n lastVPanel.showExpandableButton = false;\n\n util.forEach(panels, function(panel) {\n if (panel.name === lastVPanel.name) {\n panel.showExpandableButton = false;\n\n return false;\n }\n\n return true;\n });\n }\n\n util.extend(options.week, {panels: panels});\n\n weekView = new Week(null, options.week, layoutContainer, panels, viewName);\n weekView.handler = {\n click: {},\n dayname: {},\n creation: {},\n move: {},\n resize: {}\n };\n\n dayNameContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('dayname-layout'));\n\n /**********\n * Day name (top row(Mon, Tue, Wed...))\n **********/\n dayNameView = new DayName(options, dayNameContainer, baseController.theme);\n weekView.handler.dayname.date = new DayNameClick(dragHandler, dayNameView, baseController);\n weekView.addChild(dayNameView);\n\n /**********\n * Initialize vertical layout module\n **********/\n vLayoutContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('vlayout-area'));\n vLayoutContainer.style.height = (domutil.getSize(weekView.container)[1] - dayNameView.container.offsetHeight) + 'px';\n\n vLayout = new VLayout({\n panels: vpanels,\n panelHeights: options.week.panelHeights || []\n }, vLayoutContainer, baseController.theme);\n\n weekView.vLayout = vLayout;\n\n util.forEach(panels, function(panel) {\n var name = panel.name;\n var handlers = panel.handlers;\n var view;\n\n if (!panel.show) {\n return;\n }\n\n if (panel.type === 'daygrid') {\n /**********\n * Schedule panel by Grid\n **********/\n view = new DayGrid(name, options, vLayout.getPanelByName(panel.name).container, baseController.theme);\n view.on('afterRender', function(viewModel) {\n vLayout.getPanelByName(name).setHeight(null, viewModel.height);\n });\n\n weekView.addChild(view);\n\n util.forEach(handlers, function(type) {\n if (!options.isReadOnly || type === 'click') {\n weekView.handler[type][name] =\n new DAYGRID_HANDLDERS[type](dragHandler, view, baseController, options);\n view.addHandler(type, weekView.handler[type][name], vLayout.getPanelByName(name));\n }\n });\n } else if (panel.type === 'timegrid') {\n /**********\n * Schedule panel by TimeGrid\n **********/\n view = new TimeGrid(name, options, vLayout.getPanelByName(name).container);\n weekView.addChild(view);\n util.forEach(handlers, function(type) {\n if (!options.isReadOnly || type === 'click') {\n weekView.handler[type][name] =\n new TIMEGRID_HANDLERS[type](dragHandler, view, baseController, options);\n }\n });\n\n view.on('clickTimezonesCollapsedBtn', function() {\n var timezonesCollapsed = !weekView.state.timezonesCollapsed;\n\n weekView.setState({\n timezonesCollapsed: timezonesCollapsed\n });\n reqAnimFrame.requestAnimFrame(function() {\n if (!weekView.invoke('clickTimezonesCollapseBtn', timezonesCollapsed)) {\n weekView.render();\n }\n });\n });\n }\n });\n\n vLayout.on('resize', function() {\n reqAnimFrame.requestAnimFrame(function() {\n weekView.render();\n });\n });\n\n // binding create schedules event\n if (options.useCreationPopup) {\n createView = new ScheduleCreationPopup(layoutContainer, baseController.calendars, options.usageStatistics);\n\n onSaveNewSchedule = function(scheduleData) {\n util.extend(scheduleData, {\n useCreationPopup: true\n });\n if (scheduleData.isAllDay) {\n weekView.handler.creation.allday.fire('beforeCreateSchedule', scheduleData);\n } else {\n weekView.handler.creation.time.fire('beforeCreateSchedule', scheduleData);\n }\n };\n createView.on('beforeCreateSchedule', onSaveNewSchedule);\n }\n\n onSetCalendars = function(calendars) {\n if (createView) {\n createView.setCalendars(calendars);\n }\n };\n\n baseController.on('setCalendars', onSetCalendars);\n\n // binding popup for schedule detail\n if (options.useDetailPopup) {\n detailView = new ScheduleDetailPopup(layoutContainer, baseController.calendars);\n onShowDetailPopup = function(eventData) {\n var scheduleId = eventData.schedule.calendarId;\n eventData.calendar = common.find(baseController.calendars, function(calendar) {\n return calendar.id === scheduleId;\n });\n\n if (options.isReadOnly) {\n eventData.schedule = util.extend({}, eventData.schedule, {isReadOnly: true});\n }\n\n detailView.render(eventData);\n };\n onDeleteSchedule = function(eventData) {\n if (eventData.isAllDay) {\n weekView.handler.creation.allday.fire('beforeDeleteSchedule', eventData);\n } else {\n weekView.handler.creation.time.fire('beforeDeleteSchedule', eventData);\n }\n };\n onEditSchedule = function(eventData) {\n if (eventData.isAllDay) {\n weekView.handler.move.allday.fire('beforeUpdateSchedule', eventData);\n } else {\n weekView.handler.move.time.fire('beforeUpdateSchedule', eventData);\n }\n };\n\n util.forEach(weekView.handler.click, function(panel) {\n panel.on('clickSchedule', onShowDetailPopup);\n });\n if (options.useCreationPopup) {\n onShowEditPopup = function(eventData) {\n var calendars = baseController.calendars;\n eventData.isEditMode = true;\n createView.setCalendars(calendars);\n createView.render(eventData);\n };\n createView.on('beforeUpdateSchedule', onEditSchedule);\n detailView.on('beforeUpdateSchedule', onShowEditPopup);\n } else {\n detailView.on('beforeUpdateSchedule', onEditSchedule);\n }\n detailView.on('beforeDeleteSchedule', onDeleteSchedule);\n }\n\n weekView.on('afterRender', function() {\n vLayout.refresh();\n });\n\n // add controller\n weekView.controller = baseController.Week;\n\n // add destroy\n weekView._beforeDestroy = function() {\n util.forEach(weekView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n\n if (options.useCreationPopup) {\n createView.off('beforeCreateSchedule', onSaveNewSchedule);\n createView.destroy();\n }\n\n if (options.useDetailPopup) {\n detailView.off('beforeDeleteSchedule', onDeleteSchedule);\n detailView.destroy();\n }\n\n weekView.off();\n };\n\n return {\n view: weekView,\n refresh: function() {\n var weekViewHeight = weekView.getViewBound().height,\n daynameViewHeight = domutil.getBCRect(\n dayNameView.container\n ).height;\n\n vLayout.container.style.height =\n weekViewHeight - daynameViewHeight + 'px';\n vLayout.refresh();\n },\n scrollToNow: function() {\n weekView.children.each(function(childView) {\n if (childView.scrollToNow) {\n childView.scrollToNow();\n }\n });\n },\n openCreationPopup: function(schedule) {\n if (createView) {\n if (schedule.isAllDay) {\n weekView.handler.creation.allday.invokeCreationClick(Schedule.create(schedule));\n } else {\n weekView.handler.creation.time.invokeCreationClick(Schedule.create(schedule));\n }\n }\n },\n showCreationPopup: function(eventData) {\n if (createView) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n }\n }\n };\n};\n","/**\n * @fileoverview Panel class for VLayout module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VPanel\n * @param {number} options.index - index of panel in vlayout\n * @param {number} [options.minHeight=0] - minimum height of panel\n * @param {number} [options.height] - initial height of panel\n * @param {boolean} [options.isSplitter=false] - set true then this panel works splitter\n * @param {boolean} [options.autoHeight=false] - set true then this panel use remain height after other panel resized.\n * @param {string} [options.className] - additional class name to add element\n * @param {HTMLElement} container - container element\n * @param {Theme} theme - theme instance\n */\nfunction VPanel(options, container, theme) {\n View.call(this, container);\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n index: 0,\n name: '0',\n minHeight: 0,\n maxHeight: null,\n height: null,\n isSplitter: false,\n autoHeight: false,\n className: ''\n }, options);\n\n /**\n * @type {number}\n */\n this.index = this.options.index;\n\n /**\n * @type {string}\n */\n this.name = this.options.name || String(this.index);\n\n this.isHeightForcedSet = false;\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n this._initPanel(this.options, container);\n}\n\nutil.inherit(VPanel, View);\n\n/**\n * whether this panel is splitter?\n * @returns {boolean} panel is splitter?\n */\nVPanel.prototype.isSplitter = function() {\n return this.options.isSplitter;\n};\n\n/**\n * set max height of panel\n * @param {number} maxHeight - maxHeight\n */\nVPanel.prototype.setMaxHeight = function(maxHeight) {\n if (!this.options.autoHeight) {\n this.options.maxHeight = maxHeight;\n }\n};\n\n/**\n * set forced height flag\n * @param {boolean} set - enable or not\n */\nVPanel.prototype.setHeightForcedSet = function(set) {\n this.isHeightForcedSet = set;\n};\n\n/**\n * get forced height flag\n * @returns {boolean} set - enable or not\n */\nVPanel.prototype.getHeightForcedSet = function() {\n return this.isHeightForcedSet;\n};\n\n/**\n * set height of html element\n * @param {HTMLElement} [container] - container element\n * @param {number} newHeight - height\n * @param {boolean} force - whether ignore max-length\n */\nVPanel.prototype.setHeight = function(container, newHeight, force) {\n var maxHeight = this.options.maxHeight;\n var minHeight = this.options.minHeight;\n var autoHeight = this.options.autoHeight;\n container = container || this.container;\n\n // 한번 force 호출이 일어난 이후에는 force 호출만 허용한다\n if (!force && this.isHeightForcedSet && !autoHeight) {\n return;\n }\n\n if (force) {\n this.isHeightForcedSet = true;\n } else if (maxHeight) {\n newHeight = Math.min(newHeight, maxHeight);\n }\n newHeight = Math.max(minHeight, newHeight);\n\n container.style.height = newHeight + 'px';\n};\n\n/**\n * Calculate new height of panel and remains by supplied height growth\n * @param {number} growth - growth value\n * @returns {number[]} newHeight, remainHeight\n */\nVPanel.prototype.getResizeInfoByGrowth = function(growth) {\n var height = this.getHeight(),\n newHeight = height + growth,\n resizeTo = Math.max(0, newHeight, this.options.minHeight);\n\n return [resizeTo, height - resizeTo];\n};\n\n/**\n * get outer height of panel element\n * @returns {number} outer height of panel element\n */\nVPanel.prototype.getHeight = function() {\n return domutil.getSize(this.container)[1];\n};\n\n/**\n * add design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.addClass = function(className) {\n domutil.addClass(this.container, className);\n};\n\n/**\n * remove design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.removeClass = function(className) {\n domutil.removeClass(this.container, className);\n};\n\n/**\n * initialize panel element\n * @param {PanelOptions} options - options for panel\n * @param {HTMLDivElement} container - panel element\n */\nVPanel.prototype._initPanel = function(options, container) {\n var height;\n\n domutil.setData(container, 'panelIndex', options.index);\n\n if (options.isSplitter) {\n domutil.addClass(container, config.classname('splitter'));\n this.applyTheme();\n\n return;\n }\n\n if (options.className) {\n domutil.addClass(container, options.className);\n }\n\n if (options.autoHeight) {\n domutil.setData(container, 'autoHeight', true);\n } else {\n height = common.limit(options.height || 0,\n [options.minHeight],\n [options.maxHeight || options.height]\n );\n\n options.height = height;\n this.setHeight(container, height);\n }\n};\n\nVPanel.prototype.applyTheme = function() {\n var style = this.container.style;\n var theme = this.theme;\n\n if (!theme) {\n return;\n }\n\n style.borderTop = theme.week.vpanelSplitter.border || theme.common.border;\n style.borderBottom = theme.week.vpanelSplitter.border || theme.common.border;\n style.height = theme.week.vpanelSplitter.height;\n};\n\nmodule.exports = VPanel;\n","/**\n * @fileoverview View of days UI.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../view');\n\n/**\n * @constructor\n * @param {Base.Week} controller The controller mixin part.\n * @param {object} options View options\n * @param {string} [options.renderStartDate] Start date of render.\n * if not supplied then use -3d from today. YYYY-MM-DD format.\n * @param {string} [options.renderEndDate] End date of render.\n * if not supplied then use +3d from today. YYYY-MM-DD format.\n * @param {string} [options.cssPrefix] - CSS classname prefix\n * @param {HTMLElement} container The element to use container for this view.\n * @param {object} panels - schedule panels like 'milestone', 'task', 'allday', 'time'\n * @param {string} viewName - 'week', 'day'\n * @extends {View}\n */\nfunction Week(controller, options, container, panels, viewName) {\n var range;\n\n container = domutil.appendHTMLElement('div', container);\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('week-container'));\n\n range = this._getRenderDateRange(new TZDate());\n\n /**\n * @type {object} Options for view.\n */\n this.options = util.extend({\n scheduleFilter: [function(schedule) {\n return Boolean(schedule.isVisible);\n }],\n renderStartDate: datetime.format(range.start, 'YYYY-MM-DD'),\n renderEndDate: datetime.format(range.end, 'YYYY-MM-DD'),\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false,\n showTimezoneCollapseButton: false,\n timezonesCollapsed: false,\n hourStart: 0,\n hourEnd: 24\n }, options);\n\n /**\n * Week controller mixin.\n * @type {Base.Week}\n */\n this.controller = controller;\n\n /**\n * Schedule Panels\n * @type {Array.}\n */\n this.panels = panels;\n\n /**\n * Week view states\n * @type {object}\n */\n this.state = {\n timezonesCollapsed: this.options.timezonesCollapsed\n };\n\n if (viewName === 'day') {\n _disableDayOptions(this.options);\n }\n}\n\nutil.inherit(Week, View);\n\n/**********\n * Override props\n **********/\n\n/**\n * Render each child view with schedules in ranges.\n * @fires Week#afterRender\n * @override\n */\nWeek.prototype.render = function() {\n var self = this,\n options = this.options,\n scheduleFilter = options.scheduleFilter,\n narrowWeekend = options.narrowWeekend,\n startDayOfWeek = options.startDayOfWeek,\n workweek = options.workweek,\n theme = this.controller.theme || {},\n state = this.state;\n var renderStartDate, renderEndDate, schedulesInDateRange, viewModel, grids, range;\n\n renderStartDate = new TZDate(options.renderStartDate);\n renderEndDate = new TZDate(options.renderEndDate);\n\n range = datetime.range(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n datetime.MILLISECONDS_PER_DAY\n );\n\n if (options.workweek && datetime.compare(renderStartDate, renderEndDate)) {\n range = util.filter(range, function(date) {\n return !datetime.isWeekend(date.getDay());\n });\n\n renderStartDate = range[0];\n renderEndDate = range[range.length - 1];\n }\n\n schedulesInDateRange = this.controller.findByDateRange(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n this.panels,\n scheduleFilter,\n this.options\n );\n\n grids = datetime.getGridLeftAndWidth(\n range.length,\n narrowWeekend,\n startDayOfWeek,\n workweek\n );\n\n viewModel = {\n schedulesInDateRange: schedulesInDateRange,\n renderStartDate: renderStartDate,\n renderEndDate: renderEndDate,\n grids: grids,\n range: range,\n theme: theme,\n state: state\n };\n\n this.children.each(function(childView) {\n var matrices;\n var viewName = util.pick(childView.options, 'viewName');\n childView.render(viewModel);\n\n if (viewName) {\n matrices = viewModel.schedulesInDateRange[viewName]; // DayGrid limits schedule count by visibleScheduleCount after rendering it.\n\n if (util.isArray(matrices)) {\n self._invokeAfterRenderSchedule(matrices);\n } else {\n util.forEach(matrices, function(matricesOfDay) {\n self._invokeAfterRenderSchedule(matricesOfDay);\n });\n }\n }\n });\n\n /**\n * @event Week#afterRender\n */\n this.fire('afterRender');\n};\n\n/**\n * Fire 'afterRenderSchedule' event\n * @param {Array} matrices - schedule matrices from view model\n * @fires Week#afterRenderSchedule\n */\nWeek.prototype._invokeAfterRenderSchedule = function(matrices) {\n var self = this;\n util.forEachArray(matrices, function(matrix) {\n util.forEachArray(matrix, function(column) {\n util.forEachArray(column, function(scheduleViewModel) {\n if (scheduleViewModel) {\n /**\n * @event Week#afterRenderSchedule\n */\n self.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n });\n });\n};\n\n/**********\n * Prototype props\n **********/\n\nWeek.prototype.viewName = 'week';\n\n/**\n * Calculate default render date range from supplied date.\n * @param {Date} baseDate base date.\n * @returns {object} date range.\n */\nWeek.prototype._getRenderDateRange = function(baseDate) {\n var base = datetime.start(baseDate),\n start = new TZDate(Number(base)),\n end = new TZDate(Number(base));\n\n start.setDate(start.getDate() - 3);\n end.setDate(end.getDate() + 3);\n\n return {\n start: start,\n end: end\n };\n};\n\n/**\n * disable options for day view\n * @param {WeekOptions} options - week options to disable\n */\nfunction _disableDayOptions(options) {\n options.workweek = false;\n}\n\nutil.CustomEvents.mixin(Week);\n\nmodule.exports = Week;\n","/**\n * @fileoverview View for rendering daynames\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar domutil = require('../../common/domutil');\nvar View = require('../view');\nvar daynameTmpl = require('../template/week/daynames.hbs');\n\n/**\n * @constructor\n * @param {object} options - options for dayname view\n * @param {HTMLElement} container Container element to use.\n * @param {Theme} theme - theme instance\n * @extends {View}\n */\nfunction DayName(options, container, theme) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('dayname-container')\n );\n\n this.options = util.extend({\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n timezones: options.timezones\n }, options.week);\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n View.call(this, container);\n\n this.applyTheme();\n}\n\nutil.inherit(DayName, View);\n\n/**\n * Get default viewmodels.\n * @param {Date} start The date of start render\n * @param {Date} end The end of end render\n * @param {object} grids grid data(width, left, day)\n * @returns {array} viewmodel.\n */\nDayName.prototype._getBaseViewModel = function(start, end, grids) {\n var daynames = this.options.daynames,\n theme = this.theme,\n now = new TZDate().toLocalTime(),\n viewModel;\n\n viewModel = util.map(datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ), function(d, i) {\n var day = d.getDay();\n var isToday = datetime.isSameDate(d, now);\n var isPastDay = d < now && !isToday;\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: isToday,\n date: d.getDate(),\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n renderDate: datetime.format(d, 'YYYY-MM-DD'),\n color: this._getDayNameColor(theme, day, isToday, isPastDay)\n };\n }, this);\n\n return viewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel View model from parent (WeekView)\n */\nDayName.prototype.render = function(viewModel) {\n var dayNames = this._getBaseViewModel(\n viewModel.renderStartDate,\n viewModel.renderEndDate,\n viewModel.grids\n );\n var timezonesCollapsed = viewModel.state.timezonesCollapsed;\n var styles = this._getStyles(this.theme, timezonesCollapsed);\n var baseViewModel = util.extend({}, {\n dayNames: dayNames,\n styles: styles\n });\n\n this.container.innerHTML = daynameTmpl(baseViewModel);\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {boolean} isPastDay - is past day flag\n * @returns {string} style - color style\n */\nDayName.prototype._getDayNameColor = function(theme, day, isToday, isPastDay) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = theme.common.holiday.color;\n } else if (isPastDay) {\n color = theme.week.pastDay.color || theme.common.dayname.color;\n } else if (day === 6) {\n color = theme.common.saturday.color;\n } else if (isToday) {\n color = theme.week.today.color || theme.common.today.color;\n } else {\n color = theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nDayName.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderTop = theme.week.dayname.borderTop || theme.common.border;\n styles.borderBottom = theme.week.dayname.borderBottom || theme.common.border;\n styles.borderLeft = theme.week.dayname.borderLeft || theme.common.border;\n styles.paddingLeft = theme.week.dayname.paddingLeft;\n styles.backgroundColor = theme.week.dayname.backgroundColor;\n styles.height = theme.week.dayname.height;\n styles.textAlign = theme.week.dayname.textAlign;\n styles.marginLeft = theme.week.daygridLeft.width;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.marginLeft);\n styles.marginLeft = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\nDayName.prototype.applyTheme = function() {\n var styles = this._getStyles(this.theme);\n var style = this.container.style;\n\n style.borderTop = styles.borderTop;\n style.borderBottom = styles.borderBottom;\n style.height = styles.height;\n style.backgroundColor = styles.backgroundColor;\n style.textAlign = styles.textAlign;\n\n return style;\n};\n\nmodule.exports = DayName;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \\n \"\n + ((stack1 = (lookupProperty(helpers,\"weekDayname-tmpl\")||(depth0 && lookupProperty(depth0,\"weekDayname-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"weekDayname-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":8},\"end\":{\"line\":7,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":49},\"end\":{\"line\":3,\"column\":63}}}) : helper)))\n + \"today\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"dayNames\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":10,\"column\":9}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview DayGrid in weekly view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n TZDate = require('../../common/timezone').Date,\n View = require('../../view/view'),\n DayGridSchedule = require('./dayGridSchedule'),\n baseTmpl = require('../template/week/dayGrid.hbs'),\n reqAnimFrame = require('../../common/reqAnimFrame');\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {string} name - view name\n * @param {object} options - options for DayGridSchedule view\n * @param {number} [options.heightPercent] - height percent of view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n * @param {Theme} theme - theme instance\n */\nfunction DayGrid(name, options, container, theme) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('daygrid-layout')\n );\n View.call(this, container);\n\n name = name || 'daygrid';\n\n this.options = util.extend({\n viewName: name,\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n renderStartDate: '',\n renderEndDate: '',\n containerBottomGutter: 18,\n scheduleHeight: parseInt(theme.week.dayGridSchedule.height, 10),\n scheduleGutter: parseInt(theme.week.dayGridSchedule.marginTop, 10),\n scheduleContainerTop: 1,\n timezones: options.timezones,\n isReadOnly: options.isReadOnly,\n getViewModelFunc: function(viewModel) {\n return viewModel.schedulesInDateRange[name];\n },\n setViewModelFunc: function(viewModel, matrices) {\n viewModel.schedulesInDateRange[name] = matrices;\n }\n }, options.week);\n\n this.handler = {};\n this.vPanel = null;\n\n this.state.collapsed = true;\n}\n\nutil.inherit(DayGrid, View);\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGrid.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options,\n daynames = opt.daynames,\n range = viewModel.range,\n grids = viewModel.grids,\n matrices = opt.getViewModelFunc(viewModel),\n exceedDate = {},\n panel = getPanel(opt.panels, opt.viewName),\n panelHeight = this.getViewBound().height,\n collapsed = this.state.collapsed,\n heightForcedSet = this.vPanel ? this.vPanel.getHeightForcedSet() : false,\n timezonesCollapsed = viewModel.state.timezonesCollapsed,\n styles = this._getStyles(viewModel.theme, timezonesCollapsed);\n\n var baseViewModel, visibleScheduleCount;\n var now = new TZDate().toLocalTime();\n\n if (panel.showExpandableButton) {\n if (!heightForcedSet) {\n if (collapsed) {\n panelHeight = mmax(panelHeight, panel.maxHeight);\n } else {\n panelHeight = mmin(panelHeight, panel.maxExpandableHeight);\n }\n }\n\n visibleScheduleCount = Math.floor(panelHeight / (opt.scheduleHeight + opt.scheduleGutter));\n if (collapsed) {\n exceedDate = this.parent.controller.getExceedDate(visibleScheduleCount,\n matrices,\n viewModel.range\n );\n matrices = this.parent.controller.excludeExceedSchedules(matrices, visibleScheduleCount);\n opt.setViewModelFunc(viewModel, matrices);\n }\n }\n\n baseViewModel = {\n viewName: opt.viewName,\n range: range,\n grids: grids,\n days: util.map(viewModel.range, function(d, index) {\n var day = d.getDay();\n var ymd = datetime.format(d, 'YYYYMMDD');\n var isToday = datetime.isSameDate(now, d);\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: isToday,\n date: d.getDate(),\n renderDate: datetime.format(d, 'YYYY-MM-DD'),\n hiddenSchedules: exceedDate[ymd] || 0,\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0,\n backgroundColor: viewModel.range.length > 1 ?\n getWeekBackgroundColor(day, isToday, styles) : styles.backgroundColor\n };\n }),\n exceedDate: exceedDate,\n showExpandableButton: panel.showExpandableButton,\n collapsed: collapsed,\n collapseBtnIndex: this.state.clickedExpandBtnIndex,\n styles: styles\n };\n\n return baseViewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGrid.prototype.render = function(viewModel) {\n var opt = this.options,\n container = this.container,\n baseViewModel = this.getBaseViewModel(viewModel),\n scheduleContainerTop = this.options.scheduleContainerTop;\n var dayGridSchedule;\n\n container.innerHTML = baseTmpl(baseViewModel);\n\n this.children.clear();\n\n dayGridSchedule = new DayGridSchedule(\n opt,\n domutil.find(config.classname('.container'), container)\n );\n this.addChild(dayGridSchedule);\n\n dayGridSchedule.on('afterRender', function(weekdayViewModel) {\n baseViewModel.height = weekdayViewModel.minHeight + scheduleContainerTop;\n });\n\n this.children.each(function(childView) {\n childView.render(viewModel);\n }, this);\n\n this.fire('afterRender', baseViewModel);\n};\n\nDayGrid.prototype._beforeDestroy = function() {\n};\n\nDayGrid.prototype.addHandler = function(type, handler, vPanel) {\n var self = this;\n\n this.handler[type] = handler;\n this.vPanel = vPanel;\n\n if (type === 'click') {\n handler.on('expand', function() {\n self.setState({\n collapsed: false\n });\n }, this);\n handler.on('collapse', function() {\n self.setState({\n collapsed: true\n });\n }, this);\n }\n};\n\nDayGrid.prototype._expand = function() {\n reqAnimFrame.requestAnimFrame(function() {\n var vPanel = this.vPanel;\n var opt = this.options;\n var panel = getPanel(opt.panels, opt.viewName);\n\n vPanel.setMaxHeight(panel.maxExpandableHeight);\n vPanel.setHeightForcedSet(false);\n vPanel.setHeight(null, panel.maxExpandableHeight);\n\n if (this.parent) {\n this.parent.render();\n }\n }, this);\n};\n\nDayGrid.prototype._collapse = function() {\n reqAnimFrame.requestAnimFrame(function() {\n var vPanel = this.vPanel;\n var opt = this.options;\n var panel = getPanel(opt.panels, opt.viewName);\n\n vPanel.setMaxHeight(panel.maxHeight);\n vPanel.setHeightForcedSet(false);\n vPanel.setHeight(null, panel.minHeight);\n\n if (this.parent) {\n this.parent.render();\n }\n }, this);\n};\n\n/**\n * set state\n * @param {object} state - state\n */\nDayGrid.prototype.setState = function(state) {\n var collapsed = this.state.collapsed;\n View.prototype.setState.call(this, state);\n\n if (this.state.collapsed === collapsed) {\n return;\n }\n\n if (this.state.collapsed) {\n this._collapse();\n } else {\n this._expand();\n }\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nDayGrid.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderRight = theme.week.daygrid.borderRight || theme.common.border;\n styles.todayBackgroundColor = theme.week.today.backgroundColor;\n styles.weekendBackgroundColor = theme.week.weekend.backgroundColor;\n styles.backgroundColor = theme.week.daygrid.backgroundColor;\n styles.leftWidth = theme.week.daygridLeft.width;\n styles.leftBackgroundColor = theme.week.daygridLeft.backgroundColor;\n styles.leftPaddingRight = theme.week.daygridLeft.paddingRight;\n styles.leftBorderRight = theme.week.daygridLeft.borderRight;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.leftWidth);\n styles.leftWidth = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\n/**\n * Get a background color based on day.\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {object} styles - style object\n * @returns {string} backgroundColor\n */\nfunction getWeekBackgroundColor(day, isToday, styles) {\n var backgroundColor = '';\n\n if (day === 0 || day === 6) {\n backgroundColor = styles.weekendBackgroundColor;\n } else if (isToday) {\n backgroundColor = styles.todayBackgroundColor;\n } else {\n backgroundColor = styles.backgroundColor;\n }\n\n return backgroundColor;\n}\n\n/**\n * get a panel infomation\n * @param {Array.} panels - panel infomations\n * @param {string} name - panel name\n * @returns {object} panel information\n */\nfunction getPanel(panels, name) {\n var found;\n\n util.forEach(panels, function(panel) {\n if (panel.name === name) {\n found = panel;\n }\n });\n\n return found;\n}\n\nmodule.exports = DayGrid;\n","/**\n * @fileoverview Weekday view for week\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Weekday = require('../weekday'),\n tmpl = require('../template/week/dayGridSchedule.hbs');\nvar mmax = Math.max;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for DayGridSchedule view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction DayGridSchedule(options, container) {\n Weekday.call(this, options, container);\n\n this.collapsed = true;\n}\n\nutil.inherit(DayGridSchedule, Weekday);\n\n/**\n * Render Weekday view\n * @override\n */\nDayGridSchedule.prototype.render = function(viewModel) {\n var container = this.container;\n var baseViewModel;\n\n baseViewModel = this.getBaseViewModel(viewModel);\n\n container.innerHTML = tmpl(baseViewModel);\n\n this.fire('afterRender', baseViewModel);\n};\n\n/**\n * returns maximum schedule count in day\n * @param {array} matrices - The matrices for schedule placing.\n * @returns {number} maximum schedule count in day\n */\nDayGridSchedule.prototype._getMaxScheduleInDay = function(matrices) {\n return mmax.apply(\n null,\n util.map(matrices, function(matrix) {\n return Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n })\n );\n};\n\n/**\n * returns minimum height for container.\n * @param {number} maxScheduleInDay - max schedule blocks in one day\n * @returns {number}\n */\nDayGridSchedule.prototype._getMinHeight = function(maxScheduleInDay) {\n var opt = this.options;\n var contentHeight = (maxScheduleInDay * opt.scheduleHeight)\n + ((maxScheduleInDay - 1) * opt.scheduleGutter);\n\n // if (this.collapsed && this.aboutMe.maxHeight >= contentHeight + opt.containerBottomGutter) {\n // contentHeight += opt.containerBottomGutter;\n // }\n\n return contentHeight;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGridSchedule.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var matrices = opt.getViewModelFunc(viewModel);\n var maxScheduleInDay = this._getMaxScheduleInDay(matrices);\n var baseViewModel;\n var styles = this._getStyles(viewModel.theme);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n minHeight: this._getMinHeight(maxScheduleInDay),\n matrices: matrices,\n scheduleContainerTop: this.options.scheduleContainerTop,\n maxScheduleInDay: maxScheduleInDay,\n isReadOnly: opt.isReadOnly,\n styles: styles\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nDayGridSchedule.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.borderRadius = theme.week.dayGridSchedule.borderRadius;\n }\n\n return styles;\n};\n\nmodule.exports = DayGridSchedule;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":4},\"end\":{\"line\":27,\"column\":15}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":4},\"end\":{\"line\":26,\"column\":15}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":4},\"end\":{\"line\":25,\"column\":13}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=\"function\", alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n
    \\n
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"schedule-tmpl\")||(depth0 && lookupProperty(depth0,\"schedule-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":87},\"end\":{\"line\":21,\"column\":112}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(lookupProperty(helpers,\"or\")||(depth0 && lookupProperty(depth0,\"or\"))||alias2).call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"isReadOnly\")),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isReadOnly\") : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":22},\"end\":{\"line\":22,\"column\":60}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":12},\"end\":{\"line\":22,\"column\":193}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":31},\"end\":{\"line\":8,\"column\":45}}}) : helper)))\n + \"weekday-exceed-left\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":32},\"end\":{\"line\":9,\"column\":46}}}) : helper)))\n + \"weekday-exceed-right\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":146},\"end\":{\"line\":13,\"column\":160}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"matrices\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRight\")), depth0))\n + \";\\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"days\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":17,\"column\":8},\"end\":{\"line\":27,\"column\":19}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"collapsed\")),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.program(9, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":12},\"end\":{\"line\":26,\"column\":19}}})) != null ? stack1 : \"\");\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":19,\"column\":16},\"end\":{\"line\":21,\"column\":23}}})) != null ? stack1 : \"\");\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"weekGridFooterExceed-tmpl\")||(depth0 && lookupProperty(depth0,\"weekGridFooterExceed-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"weekGridFooterExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":145},\"end\":{\"line\":20,\"column\":192}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && lookupProperty(data,\"key\")),\"===\",((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"collapseBtnIndex\")),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":16},\"end\":{\"line\":25,\"column\":23}}})) != null ? stack1 : \"\");\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"collapseBtnTitle-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"collapseBtnTitle-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"collapseBtnTitle-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":121},\"end\":{\"line\":24,\"column\":148}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"dayGridTitle-tmpl\")||(depth0 && lookupProperty(depth0,\"dayGridTitle-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"viewName\") : depth0),{\"name\":\"dayGridTitle-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":2,\"column\":36}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"days\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":8},\"end\":{\"line\":14,\"column\":19}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"showExpandableButton\")),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":8},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview View for rendered schedules by times.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar datetime = require('../../common/datetime');\nvar Timezone = require('../../common/timezone');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar View = require('../view');\nvar Time = require('./time');\nvar AutoScroll = require('../../common/autoScroll');\nvar mainTmpl = require('../template/week/timeGrid.hbs');\nvar timezoneStickyTmpl = require('../template/week/timezoneSticky.hbs');\nvar timegridCurrentTimeTmpl = require('../template/week/timeGridCurrentTime.hbs');\nvar TZDate = Timezone.Date;\nvar HOURMARKER_REFRESH_INTERVAL = 1000 * 60;\nvar SIXTY_SECONDS = 60;\nvar SIXTY_MINUTES = 60;\n\n/**\n * Returns a list of time labels from start to end.\n * For hidden labels near the current time, set to hidden: true.\n * @param {object} opt - TimeGrid.options\n * @param {boolean} hasHourMarker - Whether the current time is displayed\n * @param {number} timezoneOffset - timezone offset\n * @param {object} styles - styles\n * @returns {Array.}\n */\nfunction getHoursLabels(opt, hasHourMarker, timezoneOffset, styles) {\n var hourStart = opt.hourStart;\n var hourEnd = opt.hourEnd;\n var renderEndDate = new TZDate(opt.renderEndDate);\n var shiftByOffset = parseInt(timezoneOffset / SIXTY_MINUTES, 10);\n var shiftMinutes = Math.abs(timezoneOffset % SIXTY_MINUTES);\n var now = new TZDate().toLocalTime();\n var nowMinutes = now.getMinutes();\n var hoursRange = util.range(0, 24);\n var nowAroundHours = null;\n var nowHours, nowHoursIndex;\n var isNegativeZero = 1 / -Infinity === shiftByOffset;\n\n if ((shiftByOffset < 0 || isNegativeZero) && shiftMinutes > 0) {\n shiftByOffset -= 1;\n }\n\n // shift the array and take elements between start and end\n common.shiftArray(hoursRange, shiftByOffset);\n common.takeArray(hoursRange, hourStart, hourEnd);\n\n nowHours = common.shiftHours(now.getHours(), shiftByOffset) % 24;\n nowHoursIndex = util.inArray(nowHours, hoursRange);\n\n if (hasHourMarker) {\n if (nowMinutes < 20) {\n nowAroundHours = nowHours;\n } else if (nowMinutes > 40) {\n nowAroundHours = nowHours + 1;\n }\n\n if (util.isNumber(nowAroundHours)) {\n nowAroundHours %= 24;\n }\n }\n\n return util.map(hoursRange, function(hour, index) {\n var color;\n var fontWeight;\n var isPast = (hasHourMarker && index <= nowHoursIndex) ||\n (renderEndDate < now && !datetime.isSameDate(renderEndDate, now));\n\n if (isPast) {\n // past\n color = styles.pastTimeColor;\n fontWeight = styles.pastTimeFontWeight;\n } else {\n // future\n color = styles.futureTimeColor;\n fontWeight = styles.futureTimeFontWeight;\n }\n\n return {\n hour: hour,\n minutes: shiftMinutes,\n hidden: nowAroundHours === hour || index === 0,\n color: color || '',\n fontWeight: fontWeight || ''\n };\n });\n}\n/**\n * @constructor\n * @extends {View}\n * @param {string} name - view name\n * @param {object} options The object for view customization.\n * @param {string} options.renderStartDate - render start date. YYYY-MM-DD\n * @param {string} options.renderEndDate - render end date. YYYY-MM-DD\n * @param {number} [options.hourStart=0] You can change view's start hours.\n * @param {number} [options.hourEnd=0] You can change view's end hours.\n * @param {HTMLElement} panelElement panel element.\n */\nfunction TimeGrid(name, options, panelElement) {\n var container = domutil.appendHTMLElement(\n 'div',\n panelElement,\n config.classname('timegrid-container')\n );\n var stickyContainer = domutil.appendHTMLElement(\n 'div',\n panelElement,\n config.classname('timegrid-sticky-container')\n );\n\n panelElement.style.position = 'relative'; // for stickyContainer\n\n name = name || 'time';\n\n View.call(this, container);\n\n if (!util.browser.safari) {\n /**\n * @type {AutoScroll}\n */\n this._autoScroll = new AutoScroll(container);\n }\n\n this.stickyContainer = stickyContainer;\n\n /**\n * Time view options.\n * @type {object}\n */\n this.options = util.extend({\n viewName: name,\n renderStartDate: '',\n renderEndDate: '',\n hourStart: 0,\n hourEnd: 24,\n timezones: options.timezones,\n isReadOnly: options.isReadOnly,\n showTimezoneCollapseButton: false\n }, options.week);\n\n if (this.options.timezones.length < 1) {\n this.options.timezones = [{\n timezoneOffset: Timezone.getOffset()\n }];\n }\n\n /**\n * Interval id for hourmarker animation.\n * @type {number}\n */\n this.intervalID = 0;\n\n /**\n * timer id for hourmarker initial state\n * @type {number}\n */\n this.timerID = 0;\n\n /**\n * @type {boolean}\n */\n this._scrolled = false;\n\n /**\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n /**\n * cache hoursLabels view model to render again TimeGrid\n * @type {object}\n */\n this._cacheHoursLabels = null;\n\n this.attachEvent();\n}\n\nutil.inherit(TimeGrid, View);\n\n/**********\n * Prototype props\n **********/\n\n/**\n * @type {string}\n */\nTimeGrid.prototype.viewName = 'timegrid';\n\n/**\n * Destroy view.\n * @override\n */\nTimeGrid.prototype._beforeDestroy = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n\n if (this._autoScroll) {\n this._autoScroll.destroy();\n }\n\n domevent.off(this.stickyContainer, 'click', this._onClickStickyContainer, this);\n\n this._autoScroll = this.hourmarkers = this.intervalID =\n this.timerID = this._cacheParentViewModel = this.stickyContainer = null;\n};\n\n/**\n * @param {Date} [time] - date object to convert pixel in grids.\n * use **Date.now()** when not supplied.\n * @returns {number} The pixel value represent current time in grids.\n */\nTimeGrid.prototype._getTopPercentByTime = function(time) {\n var opt = this.options,\n raw = datetime.raw(time || new TZDate()),\n hourLength = util.range(opt.hourStart, opt.hourEnd).length,\n maxMilliseconds = hourLength * datetime.MILLISECONDS_PER_HOUR,\n hmsMilliseconds = datetime.millisecondsFrom('hour', raw.h) +\n datetime.millisecondsFrom('minutes', raw.m) +\n datetime.millisecondsFrom('seconds', raw.s) +\n raw.ms,\n topPercent;\n\n topPercent = common.ratio(maxMilliseconds, 100, hmsMilliseconds);\n topPercent -= common.ratio(maxMilliseconds, 100, datetime.millisecondsFrom('hour', opt.hourStart));\n\n return common.limit(topPercent, [0], [100]);\n};\n\n/**\n * Get Hourmarker viewmodel.\n * @param {TZDate} now - now\n * @param {object} grids grid information(width, left, day)\n * @param {Array.} range render range\n * @returns {object} ViewModel of hourmarker.\n */\nTimeGrid.prototype._getHourmarkerViewModel = function(now, grids, range) {\n var todaymarkerLeft = -1;\n var todaymarkerWidth = -1;\n var hourmarkerTimzones = [];\n var opt = this.options;\n var primaryOffset = Timezone.getOffset();\n var timezones = opt.timezones;\n var viewModel;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(now, date)) {\n todaymarkerLeft = grids[index] ? grids[index].left : 0;\n todaymarkerWidth = grids[index] ? grids[index].width : 0;\n }\n });\n\n util.forEach(timezones, function(timezone) {\n var timezoneDifference = timezone.timezoneOffset + primaryOffset;\n var hourmarker = new TZDate(now);\n var dateDifference;\n\n hourmarker.setMinutes(hourmarker.getMinutes() + timezoneDifference);\n dateDifference = hourmarker.getDate() - now.getDate();\n\n hourmarkerTimzones.push({\n hourmarker: hourmarker,\n dateDifferenceSign: (dateDifference < 0) ? '-' : '+',\n dateDifference: Math.abs(dateDifference)\n });\n });\n\n viewModel = {\n currentHours: now.getHours(),\n hourmarkerTop: this._getTopPercentByTime(now),\n hourmarkerTimzones: hourmarkerTimzones,\n todaymarkerLeft: todaymarkerLeft,\n todaymarkerWidth: todaymarkerWidth,\n todaymarkerRight: todaymarkerLeft + todaymarkerWidth\n };\n\n return viewModel;\n};\n\n/**\n * Get timezone view model\n * @param {number} currentHours - current hour\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @param {object} styles - styles\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getTimezoneViewModel = function(currentHours, timezonesCollapsed, styles) {\n var opt = this.options;\n var primaryOffset = Timezone.getOffset();\n var timezones = opt.timezones;\n var timezonesLength = timezones.length;\n var timezoneViewModel = [];\n var collapsed = timezonesCollapsed;\n var width = collapsed ? 100 : 100 / timezonesLength;\n var now = new TZDate().toLocalTime();\n var backgroundColor = styles.displayTimezoneLabelBackgroundColor;\n\n util.forEach(timezones, function(timezone, index) {\n var hourmarker = new TZDate(now);\n var timezoneDifference;\n var timeSlots;\n var dateDifference;\n\n timezoneDifference = timezone.timezoneOffset + primaryOffset;\n timeSlots = getHoursLabels(opt, currentHours >= 0, timezoneDifference, styles);\n\n hourmarker.setMinutes(hourmarker.getMinutes() + timezoneDifference);\n dateDifference = hourmarker.getDate() - now.getDate();\n\n if (index > 0) {\n backgroundColor = styles.additionalTimezoneBackgroundColor;\n }\n\n timezoneViewModel.push({\n timeSlots: timeSlots,\n displayLabel: timezone.displayLabel,\n timezoneOffset: timezone.timezoneOffset,\n tooltip: timezone.tooltip || '',\n width: width,\n left: collapsed ? 0 : (timezones.length - index - 1) * width,\n isPrimary: index === 0,\n backgroundColor: backgroundColor || '',\n hidden: index !== 0 && collapsed,\n hourmarker: hourmarker,\n dateDifferenceSign: (dateDifference < 0) ? '-' : '+',\n dateDifference: Math.abs(dateDifference)\n });\n });\n\n return timezoneViewModel;\n};\n\n/**\n * Get base viewModel.\n * @param {object} viewModel - view model\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getBaseViewModel = function(viewModel) {\n var grids = viewModel.grids;\n var range = viewModel.range;\n var opt = this.options;\n var baseViewModel = this._getHourmarkerViewModel(new TZDate().toLocalTime(), grids, range);\n var timezonesCollapsed = util.pick(viewModel, 'state', 'timezonesCollapsed');\n var styles = this._getStyles(viewModel.theme, timezonesCollapsed);\n\n return util.extend(baseViewModel, {\n timezones: this._getTimezoneViewModel(baseViewModel.todaymarkerLeft, timezonesCollapsed, styles),\n hoursLabels: getHoursLabels(opt, baseViewModel.todaymarkerLeft >= 0, 0, styles),\n styles: styles,\n showTimezoneCollapseButton: util.pick(opt, 'showTimezoneCollapseButton'),\n timezonesCollapsed: timezonesCollapsed\n });\n};\n\n/**\n * Reconcilation child views and render.\n * @param {object} viewModels Viewmodel\n * @param {object} grids grid information(width, left, day)\n * @param {HTMLElement} container Container element for each time view.\n * @param {Theme} theme - theme instance\n */\nTimeGrid.prototype._renderChildren = function(viewModels, grids, container, theme) {\n var self = this,\n options = this.options,\n childOption,\n child,\n isToday,\n containerHeight,\n today = datetime.format(new TZDate(), 'YYYYMMDD'),\n i = 0;\n\n // clear contents\n container.innerHTML = '';\n this.children.clear();\n\n containerHeight = domutil.getSize(container.parentElement)[1];\n\n // reconcilation of child views\n util.forEach(viewModels, function(schedules, ymd) {\n isToday = ymd === today;\n\n childOption = {\n index: i,\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n ymd: ymd,\n isToday: isToday,\n isPending: options.isPending,\n isFocused: options.isFocused,\n isReadOnly: options.isReadOnly,\n hourStart: options.hourStart,\n hourEnd: options.hourEnd\n };\n\n child = new Time(\n childOption,\n domutil.appendHTMLElement('div', container, config.classname('time-date')),\n theme\n );\n child.render(ymd, schedules, containerHeight);\n\n self.addChild(child);\n\n i += 1;\n });\n};\n\n/**\n * @override\n * @param {object} viewModel ViewModel list from Week view.\n */\nTimeGrid.prototype.render = function(viewModel) {\n var opt = this.options,\n timeViewModel = viewModel.schedulesInDateRange[opt.viewName],\n container = this.container,\n grids = viewModel.grids,\n baseViewModel = this._getBaseViewModel(viewModel),\n scheduleLen = util.keys(timeViewModel).length;\n\n this._cacheParentViewModel = viewModel;\n this._cacheHoursLabels = baseViewModel.hoursLabels;\n\n if (!scheduleLen) {\n return;\n }\n\n baseViewModel.showHourMarker = baseViewModel.todaymarkerLeft >= 0;\n\n container.innerHTML = mainTmpl(baseViewModel);\n\n /**********\n * Render sticky container for timezone display label\n **********/\n this.renderStickyContainer(baseViewModel);\n\n /**********\n * Render children\n **********/\n this._renderChildren(\n timeViewModel,\n grids,\n domutil.find(config.classname('.timegrid-schedules-container'), container),\n viewModel.theme\n );\n\n this._hourLabels = domutil.find('ul', container);\n\n /**********\n * Render hourmarker\n **********/\n this.hourmarkers = domutil.find(config.classname('.timegrid-hourmarker'), container, true);\n\n if (!this._scrolled) {\n this._scrolled = true;\n this.scrollToNow();\n }\n};\n\nTimeGrid.prototype.renderStickyContainer = function(baseViewModel) {\n var stickyContainer = this.stickyContainer;\n\n stickyContainer.innerHTML = timezoneStickyTmpl(baseViewModel);\n\n stickyContainer.style.display = baseViewModel.timezones.length > 1 ? 'block' : 'none';\n stickyContainer.style.width = baseViewModel.styles.leftWidth;\n stickyContainer.style.height = baseViewModel.styles.displayTimezoneLabelHeight;\n stickyContainer.style.borderBottom = baseViewModel.styles.leftBorderRight;\n};\n\n/**\n * Refresh hourmarker element.\n */\nTimeGrid.prototype.refreshHourmarker = function() {\n var hourmarkers = this.hourmarkers;\n var viewModel = this._cacheParentViewModel;\n var hoursLabels = this._cacheHoursLabels;\n var baseViewModel;\n\n if (!hourmarkers || !viewModel) {\n return;\n }\n\n baseViewModel = this._getBaseViewModel(viewModel);\n\n reqAnimFrame.requestAnimFrame(function() {\n var needsRender = false;\n\n util.forEach(hoursLabels, function(hoursLabel, index) {\n if (hoursLabel.hidden !== baseViewModel.hoursLabels[index].hidden) {\n needsRender = true;\n\n return false;\n }\n\n return true;\n });\n\n if (needsRender) {\n this.render(viewModel);\n } else {\n util.forEach(hourmarkers, function(hourmarker) {\n var todaymarker = domutil.find(config.classname('.timegrid-todaymarker'), hourmarker);\n var hourmarkerContainer = domutil.find(config.classname('.timegrid-hourmarker-time'), hourmarker);\n var timezone = domutil.closest(hourmarker, config.classname('.timegrid-timezone'));\n var timezoneIndex = timezone ? domutil.getData(timezone, 'timezoneIndex') : 0;\n\n hourmarker.style.top = baseViewModel.hourmarkerTop + '%';\n\n if (todaymarker) {\n todaymarker.style.display = (baseViewModel.todaymarkerLeft >= 0) ? 'block' : 'none';\n }\n if (hourmarkerContainer) {\n hourmarkerContainer.innerHTML = timegridCurrentTimeTmpl(\n baseViewModel.hourmarkerTimzones[timezoneIndex]\n );\n }\n });\n }\n }, this);\n};\n\n/**\n * Attach events\n */\nTimeGrid.prototype.attachEvent = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n this.intervalID = this.timerID = null;\n\n this.timerID = setTimeout(util.bind(this.onTick, this), (SIXTY_SECONDS - new TZDate().getSeconds()) * 1000);\n\n domevent.on(this.stickyContainer, 'click', this._onClickStickyContainer, this);\n};\n\n/**\n * Scroll time grid to current hourmarker.\n */\nTimeGrid.prototype.scrollToNow = function() {\n var container = this.container;\n var offsetTop,\n viewBound,\n scrollTop,\n scrollAmount,\n scrollBy,\n scrollFn;\n\n if (!this.hourmarkers || !this.hourmarkers.length) {\n return;\n }\n\n offsetTop = this.hourmarkers[0].offsetTop;\n viewBound = this.getViewBound();\n scrollTop = offsetTop;\n scrollAmount = viewBound.height / 4;\n scrollBy = 10;\n\n scrollFn = function() {\n if (scrollTop > offsetTop - scrollAmount) {\n scrollTop -= scrollBy;\n container.scrollTop = scrollTop;\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n } else {\n container.scrollTop = offsetTop - scrollAmount;\n }\n };\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n};\n\n/**********\n * Schedule handlers\n **********/\n\n/**\n * Interval tick handler\n */\nTimeGrid.prototype.onTick = function() {\n if (this.timerID) {\n clearTimeout(this.timerID);\n this.timerID = null;\n }\n\n if (!this.intervalID) {\n this.intervalID = setInterval(util.bind(this.onTick, this), HOURMARKER_REFRESH_INTERVAL);\n }\n this.refreshHourmarker();\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nTimeGrid.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderBottom = theme.week.timegridHorizontalLine.borderBottom || theme.common.border;\n styles.halfHourBorderBottom = theme.week.timegridHalfHour.borderBottom || theme.common.border;\n\n styles.todayBackgroundColor = theme.week.today.backgroundColor;\n styles.weekendBackgroundColor = theme.week.weekend.backgroundColor;\n styles.backgroundColor = theme.week.daygrid.backgroundColor;\n styles.leftWidth = theme.week.timegridLeft.width;\n styles.leftBackgroundColor = theme.week.timegridLeft.backgroundColor;\n styles.leftBorderRight = theme.week.timegridLeft.borderRight || theme.common.border;\n styles.leftFontSize = theme.week.timegridLeft.fontSize;\n styles.timezoneWidth = theme.week.timegridLeft.width;\n styles.additionalTimezoneBackgroundColor = theme.week.timegridLeftAdditionalTimezone.backgroundColor\n || styles.leftBackgroundColor;\n\n styles.displayTimezoneLabelHeight = theme.week.timegridLeftTimezoneLabel.height;\n styles.displayTimezoneLabelBackgroundColor = theme.week.timegridLeft.backgroundColor === 'inherit' ? 'white' : theme.week.timegridLeft.backgroundColor;\n\n styles.oneHourHeight = theme.week.timegridOneHour.height;\n styles.halfHourHeight = theme.week.timegridHalfHour.height;\n styles.quaterHourHeight = (parseInt(styles.halfHourHeight, 10) / 2) + 'px';\n\n styles.currentTimeColor = theme.week.currentTime.color;\n styles.currentTimeFontSize = theme.week.currentTime.fontSize;\n styles.currentTimeFontWeight = theme.week.currentTime.fontWeight;\n\n styles.pastTimeColor = theme.week.pastTime.color;\n styles.pastTimeFontWeight = theme.week.pastTime.fontWeight;\n\n styles.futureTimeColor = theme.week.futureTime.color;\n styles.futureTimeFontWeight = theme.week.futureTime.fontWeight;\n\n styles.currentTimeLeftBorderTop = theme.week.currentTimeLinePast.border;\n styles.currentTimeBulletBackgroundColor = theme.week.currentTimeLineBullet.backgroundColor;\n styles.currentTimeTodayBorderTop = theme.week.currentTimeLineToday.border;\n styles.currentTimeRightBorderTop = theme.week.currentTimeLineFuture.border;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.leftWidth);\n styles.leftWidth = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\n/**\n * @param {MouseEvent} event - mouse event object\n */\nTimeGrid.prototype._onClickStickyContainer = function(event) {\n var target = event.target || event.srcElement;\n var closeBtn = domutil.closest(target, config.classname('.timegrid-timezone-close-btn'));\n\n if (!closeBtn) {\n return;\n }\n\n this.fire('clickTimezonesCollapsedBtn');\n};\n\nmodule.exports = TimeGrid;\n","/**\n * @fileoverview View of time.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar View = require('../view');\nvar timeTmpl = require('../template/week/time.hbs');\n\nvar forEachArr = util.forEachArray;\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options Options\n * @param {number} options.index Date index in week view.\n * @param {number} options.width Date element width (percent)\n * @param {string} options.ymd YYYMMDD string for this view\n * @param {boolean} options.isToday when set true then assign today design class to container.\n * @param {number} options.hourStart Can limit of render hour start.\n * @param {number} options.hourEnd Can limit of render hour end.\n * @param {HTMLElement} container Element to use container for this view.\n * @param {Theme} theme - theme instance\n */\nfunction Time(options, container, theme) {\n View.call(this, container);\n\n this.options = util.extend({\n index: 0,\n width: 0,\n ymd: '',\n isToday: false,\n pending: false,\n hourStart: 0,\n hourEnd: 24,\n defaultMarginBottom: 2,\n minHeight: 18.5,\n isReadOnly: false\n }, options);\n\n this.timeTmpl = timeTmpl;\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n container.style.width = options.width + '%';\n container.style.left = options.left + '%';\n\n if (this.options.isToday) {\n domutil.addClass(this.container, config.classname('today'));\n }\n\n this.applyTheme();\n}\n\nutil.inherit(Time, View);\n\n/**\n * Convert YYYYMMDD formatted string date to Date.\n * @param {string} str formatted string.\n * @returns {Date} start of date.\n */\nTime.prototype._parseDateGroup = function(str) {\n var y = parseInt(str.substr(0, 4), 10),\n m = parseInt(str.substr(4, 2), 10),\n d = parseInt(str.substr(6, 2), 10);\n var date = datetime.start();\n\n date.setFullYear(y, m - 1, d);\n\n return datetime.start(date);\n};\n\n/**\n * calculate left and width\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @returns {object} - left and width\n */\nTime.prototype._getScheduleViewBoundX = function(viewModel, options) {\n var width = options.baseWidth * (viewModel.extraSpace + 1);\n\n // set width auto when has no collisions.\n if (!viewModel.hasCollide) {\n width = null;\n }\n\n return {\n left: options.baseLeft[options.columnIndex],\n width: width\n };\n};\n\n/**\n * calculate top, height, croppedStart and croppedEnd\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @returns {object} - left and width\n */\nTime.prototype._getScheduleViewBoundY = function(viewModel, options) {\n var baseMS = options.baseMS;\n var baseHeight = options.baseHeight;\n var croppedStart = false;\n var croppedEnd = false;\n var goingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration);\n var comingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n var offsetStart = viewModel.valueOf().start - goingDuration - options.todayStart;\n // containerHeight : milliseconds in day = x : schedule's milliseconds\n var top = (baseHeight * offsetStart) / baseMS;\n var modelDuration = viewModel.duration();\n var height;\n var duration;\n var goingDurationHeight;\n var modelDurationHeight;\n var comingDurationHeight;\n\n modelDuration = modelDuration > SCHEDULE_MIN_DURATION ? modelDuration : SCHEDULE_MIN_DURATION;\n duration = modelDuration + goingDuration + comingDuration;\n height = (baseHeight * duration) / baseMS;\n\n goingDurationHeight = (baseHeight * goingDuration) / baseMS; // common.ratio(duration, goingDuration, 100);\n modelDurationHeight = (baseHeight * modelDuration) / baseMS; // common.ratio(duration, modelDuration, 100);\n comingDurationHeight = (baseHeight * comingDuration) / baseMS; // common.ratio(duration, comingDuration, 100);\n\n if (offsetStart < 0) {\n top = 0;\n height += ((baseHeight * offsetStart) / baseMS);\n croppedStart = true;\n }\n\n if (height + top > baseHeight) {\n height = baseHeight - top;\n croppedEnd = true;\n }\n\n return {\n top: top,\n height: Math.max(height, this.options.minHeight) - this.options.defaultMarginBottom,\n modelDurationHeight: modelDurationHeight,\n goingDurationHeight: goingDurationHeight,\n comingDurationHeight: comingDurationHeight,\n hasGoingDuration: goingDuration > 0,\n hasComingDuration: comingDuration > 0,\n croppedStart: croppedStart,\n croppedEnd: croppedEnd\n };\n};\n\n/**\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @param {Date} options.todayStart - date object represent schedule date's start (00:00:00)\n * @param {number} options.baseMS - the number of milliseconds to render schedule blocks.\n * @param {number} options.baseHeight - pixel value related with baseMS options.\n * @param {number[]} options.baseLeft - left position percents for each columns.\n * @param {number} options.baseWidth - the unit of schedule blocks width percent.\n * @param {number} options.columnIndex - the number index of schedule blocks.\n * it represent rendering index from left sides in view.\n * @returns {object} bound object for supplied view model.\n */\nTime.prototype.getScheduleViewBound = function(viewModel, options) {\n var boundX = this._getScheduleViewBoundX(viewModel, options);\n var boundY = this._getScheduleViewBoundY(viewModel, options);\n var schedule = viewModel.model;\n var isReadOnly = util.pick(schedule, 'isReadOnly') || false;\n var travelBorderColor = schedule.isFocused ? '#ffffff' : schedule.borderColor;\n if (travelBorderColor === schedule.bgColor) {\n travelBorderColor = null; // follow text color\n }\n\n return util.extend({\n isReadOnly: isReadOnly,\n travelBorderColor: travelBorderColor\n }, boundX, boundY);\n};\n\n/**\n * Set viewmodels for rendering.\n * @param {string} ymd The date of schedules. YYYYMMDD format.\n * @param {array} matrices The matrices for schedule placing.\n * @param {number} containerHeight - container's height\n */\nTime.prototype._getBaseViewModel = function(ymd, matrices, containerHeight) {\n var self = this,\n options = this.options,\n hourStart = options.hourStart,\n hourEnd = options.hourEnd,\n isReadOnly = options.isReadOnly,\n todayStart,\n baseMS;\n\n /**\n * Calculate each schedule element bounds relative with rendered hour milliseconds and\n * wrap each schedule model to viewmodels.\n */\n containerHeight = containerHeight || this.getViewBound().height;\n todayStart = this._parseDateGroup(ymd);\n todayStart.setHours(hourStart);\n baseMS = datetime.millisecondsFrom('hour', (hourEnd - hourStart));\n\n forEachArr(matrices, function(matrix) {\n var maxRowLength,\n widthPercent,\n leftPercents,\n i;\n\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n widthPercent = 100 / maxRowLength;\n\n leftPercents = [];\n for (i = 0; i < maxRowLength; i += 1) {\n leftPercents[i] = widthPercent * i;\n }\n\n forEachArr(matrix, function(row) {\n forEachArr(row, function(viewModel, col) {\n var viewBound;\n\n if (!viewModel) {\n return;\n }\n\n viewBound = self.getScheduleViewBound(viewModel, {\n todayStart: todayStart,\n baseMS: baseMS,\n baseLeft: leftPercents,\n baseWidth: widthPercent,\n baseHeight: containerHeight,\n columnIndex: col,\n isReadOnly: isReadOnly\n });\n\n util.extend(viewModel, viewBound);\n });\n });\n });\n};\n\n/**\n * @returns {Date} - Date of this view.\n */\nTime.prototype.getDate = function() {\n return this._parseDateGroup(this.options.ymd);\n};\n\n/**\n * @override\n * @param {string} ymd The date of schedules. YYYYMMDD format\n * @param {array} matrices Matrices for placing schedules\n * @param {number} containerHeight - container's height\n */\nTime.prototype.render = function(ymd, matrices, containerHeight) {\n this._getBaseViewModel(ymd, matrices, containerHeight);\n this.container.innerHTML = this.timeTmpl({\n matrices: matrices,\n styles: this._getStyles(this.theme),\n isReadOnly: this.options.isReadOnly\n });\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nTime.prototype._getStyles = function(theme) {\n var styles = {};\n var options = this.options;\n\n if (theme) {\n styles.borderRight = theme.week.timegrid.borderRight || theme.common.border;\n styles.marginRight = theme.week.timegrid.paddingRight;\n styles.borderRadius = theme.week.timegridSchedule.borderRadius;\n styles.paddingLeft = theme.week.timegridSchedule.paddingLeft;\n styles.backgroundColor = options.isToday ? theme.week.today.backgroundColor : 'inherit';\n }\n\n return styles;\n};\n\nTime.prototype.applyTheme = function() {\n var style = this.container.style;\n var styles = this._getStyles(this.theme);\n\n style.borderRight = styles.borderRight;\n style.backgroundColor = styles.backgroundColor;\n};\n\nmodule.exports = Time;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":4},\"end\":{\"line\":60,\"column\":13}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":59,\"column\":17}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":8},\"end\":{\"line\":58,\"column\":17}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hasGoingDuration\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(19, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":29,\"column\":12},\"end\":{\"line\":37,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":45,\"column\":20},\"end\":{\"line\":45,\"column\":41}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hasComingDuration\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":12},\"end\":{\"line\":54,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(lookupProperty(helpers,\"or\")||(depth0 && lookupProperty(depth0,\"or\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"croppedEnd\") : depth0),((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"isReadOnly\")),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isReadOnly\") : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":22},\"end\":{\"line\":56,\"column\":71}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(29, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":12},\"end\":{\"line\":56,\"column\":202}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":83},\"end\":{\"line\":6,\"column\":97}}}) : helper)))\n + \"time-date-schedule-block-pending\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" padding-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"paddingLeft\")), depth0))\n + \";\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":147},\"end\":{\"line\":12,\"column\":161}}}) : helper)))\n + \"time-schedule-focused \";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-bottom-left-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n border-bottom-right-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-top-left-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n border-top-right-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"goingDuration-tmpl\")||(depth0 && lookupProperty(depth0,\"goingDuration-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"goingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":36,\"column\":66},\"end\":{\"line\":36,\"column\":96}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"border-bottom: 1px dashed \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"travelBorderColor\") || (depth0 != null ? lookupProperty(depth0,\"travelBorderColor\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"travelBorderColor\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":44,\"column\":67},\"end\":{\"line\":44,\"column\":88}}}) : helper)))\n + \";\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"comingDuration-tmpl\")||(depth0 && lookupProperty(depth0,\"comingDuration-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"comingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":53,\"column\":26},\"end\":{\"line\":53,\"column\":57}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n \";\n},\"29\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
     
    \";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"matrices\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":61,\"column\":9}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Add autoscroll feature to elements that prevented text selection.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domevent = require('../common/domevent');\nvar domutil = require('../common/domutil');\nvar Point = require('../common/point');\n\nvar SCROLL_INTERVAL = 30;\nvar SCROLL_MAX = 15;\nvar SCROLL_CLICK_INCREASED = 2; // In IE, the offset of the actual UI pixel when the scroll bar is clicked is offset.\n\n/**\n * Add autoscroll feature to elements that prevented text selection.\n * @constructor\n * @param {HTMLElement} container - HTMLElement to add autoscroll features.\n */\nfunction AutoScroll(container) {\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * @type {AutoScroll.DIRECTION}\n */\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n /**\n * @type {number}\n */\n this._offset = 0;\n\n /**\n * interval to scrolling\n * @type {number}\n */\n this._intervalID = 0;\n\n domevent.on(container, {\n 'mousedown': this._onMouseDown\n }, this);\n}\n\n/**\n * @enum\n */\nAutoScroll.DIRECTION = {\n INSIDE: 0,\n TOP: 1,\n RIGHT: 2,\n BOTTOM: 3,\n LEFT: 4\n};\n\n/**\n * Instance destroy method.\n */\nAutoScroll.prototype.destroy = function() {\n domevent.off(this.container, {\n 'mousedown': this._onMouseDown,\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n\n window.clearInterval(this._intervalID);\n this._intervalID = this._direction = this.container = null;\n};\n\n/**\n * Normalize ClientRect and calculate each position of edges.\n * @param {ClientRect} clientRect - ClientRect object of element.\n * @returns {object} edges.\n */\nAutoScroll.prototype._getEdgePositions = function(clientRect) {\n return {\n top: clientRect.top,\n right: clientRect.left + clientRect.width,\n bottom: clientRect.bottom,\n left: clientRect.left\n };\n};\n\n/**\n * Get element real size (\"real size\" -> size without scrollbar)\n * @param {HTMLElement} el - element want to know real size (\"real size\" -> size without scrollbar)\n * @returns {number[]} real size [width, height]\n */\nAutoScroll.prototype.getRealSize = function(el) {\n var computed = domutil.getComputedStyle(el),\n border,\n padding;\n\n border = parseFloat(computed.getPropertyValue('border-top-width')) +\n parseFloat(computed.getPropertyValue('border-bottom-width'));\n padding = parseFloat(computed.getPropertyValue('padding-top')) +\n parseFloat(computed.getPropertyValue('padding-bottom'));\n\n return [el.clientWidth + border + padding, el.clientHeight + border + padding];\n};\n\n/**\n * Check supplied element has scrollbar.\n * @param {HTMLElement} el - element want to know has scrollbar.\n * @returns {boolean[]} has scrollbar? [horizontal, vertical]\n */\nAutoScroll.prototype.hasScrollbar = function(el) {\n var realSize = this.getRealSize(el);\n\n return [\n el.offsetWidth > Math.ceil(realSize[0]),\n el.offsetHeight > Math.ceil(realSize[1])\n ];\n};\n\n/**\n * @param {HTMLElement} el - element want to know.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {boolean} mouse pointer is on the scrollbar?\n */\nAutoScroll.prototype.isOnScrollbar = function(el, mouseEvent) {\n var realSize = this.getRealSize(el),\n pos = domevent.getMousePosition(mouseEvent, el),\n mouseInScrollbar = false;\n\n mouseInScrollbar = (realSize[0] - SCROLL_CLICK_INCREASED < pos[0] ||\n realSize[1] - SCROLL_CLICK_INCREASED < pos[1]);\n\n return mouseInScrollbar;\n};\n\n/**\n * MouseDown event handler\n * @param {MouseEvent} mouseDownEvent - mouse down event\n */\nAutoScroll.prototype._onMouseDown = function(mouseDownEvent) {\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n // deactivate autoscroll feature when mouse is on the scrollbar. (IE)\n if (util.browser.msie && this.isOnScrollbar(this.container, mouseDownEvent)) {\n return;\n }\n\n window.clearInterval(this._intervalID);\n this._intervalID = window.setInterval(util.bind(this._onTick, this), SCROLL_INTERVAL);\n\n domevent.on(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * MouseMove event handler\n * @param {MouseEvent} mouseEvent - mouse move event object.\n */\nAutoScroll.prototype._onMouseMove = function(mouseEvent) {\n var edge = this._getEdgePositions(this.container.getBoundingClientRect()),\n pos = Point.n(domevent.getMousePosition(mouseEvent));\n\n if (pos.y >= edge.top && pos.y <= edge.bottom &&\n pos.x >= edge.left && pos.x <= edge.right) {\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n return;\n }\n\n if (pos.y < edge.top) {\n this._direction = AutoScroll.DIRECTION.TOP;\n this._offset = edge.top - pos.y;\n\n return;\n }\n\n if (pos.y > edge.bottom) {\n this._direction = AutoScroll.DIRECTION.BOTTOM;\n this._offset = pos.y - edge.bottom;\n\n return;\n }\n\n if (pos.x < edge.left) {\n this._direction = AutoScroll.DIRECTION.LEFT;\n this._offset = edge.left - pos.x;\n\n return;\n }\n\n this._direction = AutoScroll.DIRECTION.RIGHT;\n this._offset = pos.x - edge.right;\n};\n\n/**\n * MouseUp event handler.\n */\nAutoScroll.prototype._onMouseUp = function() {\n window.clearInterval(this._intervalID);\n this._intervalID = 0;\n this._direction = AutoScroll.DIRECTION.INSIDE;\n this._offset = 0;\n\n domevent.off(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * Interval tick event handler\n */\nAutoScroll.prototype._onTick = function() {\n var direction = this._direction,\n container,\n factor;\n\n if (!direction) {\n return;\n }\n\n container = this.container;\n factor = Math.min(this._offset, SCROLL_MAX);\n\n switch (direction) {\n case AutoScroll.DIRECTION.TOP:\n container.scrollTop -= factor;\n break;\n case AutoScroll.DIRECTION.RIGHT:\n container.scrollLeft += factor;\n break;\n case AutoScroll.DIRECTION.BOTTOM:\n container.scrollTop += factor;\n break;\n default:\n container.scrollLeft -= factor;\n break;\n }\n};\n\nmodule.exports = AutoScroll;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isPrimary\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.program(10, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":26,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none;\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"timeSlots\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":12},\"end\":{\"line\":9,\"column\":23}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"showHourMarker\")),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":12},\"end\":{\"line\":14,\"column\":19}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"timegridDisplayPrimayTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridDisplayPrimayTime-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"timegridDisplayPrimayTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":68},\"end\":{\"line\":7,\"column\":109}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n return \"display:none\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \"\n + ((stack1 = (lookupProperty(helpers,\"timegridCurrentTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridCurrentTime-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":223},\"end\":{\"line\":12,\"column\":258}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"timeSlots\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":12},\"end\":{\"line\":20,\"column\":23}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"showHourMarker\")),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":12},\"end\":{\"line\":25,\"column\":19}}})) != null ? stack1 : \"\");\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"timegridDisplayTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridDisplayTime-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"timegridDisplayTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":68},\"end\":{\"line\":18,\"column\":103}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \"\n + ((stack1 = (lookupProperty(helpers,\"timegridCurrentTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridCurrentTime-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":171},\"end\":{\"line\":23,\"column\":206}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n
    \\n\";\n},\"16\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-bottom: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderBottom\")), depth0))\n + \";\\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n
    today
    \\n
    \\n
    \\n
    \\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"timezones\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hoursLabels\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":32,\"column\":8},\"end\":{\"line\":40,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"showHourMarker\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(18, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":46,\"column\":4},\"end\":{\"line\":53,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(lookupProperty(helpers,\"and\")||(depth0 && lookupProperty(depth0,\"and\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"isPrimary\") : depth0),((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"showTimezoneCollapseButton\")),{\"name\":\"and\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":14},\"end\":{\"line\":4,\"column\":62}}}),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":10,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"timezoneDisplayLabel-tmpl\")||(depth0 && lookupProperty(depth0,\"timezoneDisplayLabel-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"timezoneOffset\") : depth0),(depth0 != null ? lookupProperty(depth0,\"displayLabel\") : depth0),{\"name\":\"timezoneDisplayLabel-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":59},\"end\":{\"line\":11,\"column\":118}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none;\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \\n \\n \\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":84},\"end\":{\"line\":7,\"column\":98}}}) : helper)))\n + \"ic-arrow-right\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":120},\"end\":{\"line\":7,\"column\":134}}}) : helper)))\n + \"ic-arrow-left\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(lookupProperty(helpers,\"reverse\")||(depth0 && lookupProperty(depth0,\"reverse\"))||container.hooks.helperMissing).call(alias1,(depth0 != null ? lookupProperty(depth0,\"timezones\") : depth0),{\"name\":\"reverse\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":8},\"end\":{\"line\":1,\"column\":27}}}),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":14,\"column\":11}}})) != null ? stack1 : \"\");\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"timegridCurrentTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridCurrentTime-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":1,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"useData\":true});","module.exports = __WEBPACK_EXTERNAL_MODULE__79__;","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":150},\"end\":{\"line\":3,\"column\":164}}}) : helper)))\n + \"hide\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
  • \\n \\n \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"name\") || (depth0 != null ? lookupProperty(depth0,\"name\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"name\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":60},\"end\":{\"line\":14,\"column\":68}}}) : helper)))\n + \"\\n
  • \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":135},\"end\":{\"line\":24,\"column\":149}}}) : helper)))\n + \"public\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n return \" checked\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"state\") || (depth0 != null ? lookupProperty(depth0,\"state\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"state\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":55,\"column\":99},\"end\":{\"line\":55,\"column\":108}}}) : helper)));\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupStateBusy-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupStateBusy-tmpl\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupStateBusy-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":55,\"column\":116},\"end\":{\"line\":55,\"column\":141}}}) : helper))) != null ? stack1 : \"\");\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupUpdate-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupUpdate-tmpl\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupUpdate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":70,\"column\":163},\"end\":{\"line\":70,\"column\":185}}}) : helper))) != null ? stack1 : \"\");\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupSave-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupSave-tmpl\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupSave-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":70,\"column\":193},\"end\":{\"line\":70,\"column\":213}}}) : helper))) != null ? stack1 : \"\");\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n
    \\n \\n
      \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"calendars\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":16},\"end\":{\"line\":16,\"column\":25}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n \\n \\n
    \\n \\n
    \\n
    \\n
    \\n \\n \\n
    \\n
    \\n
    \\n
    \\n \\n \\n
    \\n
    \\n -\\n
    \\n \\n \\n
    \\n
    \\n
    \\n \\n \\n \"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupIsAllDay-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupIsAllDay-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupIsAllDay-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":49,\"column\":52},\"end\":{\"line\":49,\"column\":76}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n \\n
      \\n
    • \\n \\n \"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupStateBusy-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupStateBusy-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupStateBusy-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":61,\"column\":52},\"end\":{\"line\":61,\"column\":77}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    • \\n
    • \\n \\n \"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupStateFree-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupStateFree-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupStateFree-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":65,\"column\":52},\"end\":{\"line\":65,\"column\":77}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    • \\n
    \\n
    \\n \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailLocation-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailLocation-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailLocation-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":182},\"end\":{\"line\":11,\"column\":221}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailRepeat-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailRepeat-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailRepeat-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":186},\"end\":{\"line\":12,\"column\":223}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailUser-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailUser-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailUser-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":218},\"end\":{\"line\":13,\"column\":253}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailState-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailState-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailState-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":176},\"end\":{\"line\":14,\"column\":212}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"calendar\") : depth0)) != null ? lookupProperty(stack1,\"name\") : stack1), depth0))\n + \"
    \\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailBody-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailBody-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailBody-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":151},\"end\":{\"line\":18,\"column\":186}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n return \"\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \\n
    \\n \\n
    \\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n
    \\n
    \\n \\n \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"title\") : stack1), depth0))\n + \"\\n
    \\n
    \"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailDate-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailDate-tmpl\"))||alias2).call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"start\") : stack1),((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"end\") : stack1),{\"name\":\"popupDetailDate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":73},\"end\":{\"line\":8,\"column\":145}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"location\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":8},\"end\":{\"line\":11,\"column\":241}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"recurrenceRule\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":8},\"end\":{\"line\":12,\"column\":243}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"attendees\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":8},\"end\":{\"line\":13,\"column\":273}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"state\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":8},\"end\":{\"line\":14,\"column\":232}}})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"calendar\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(9, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":8},\"end\":{\"line\":17,\"column\":15}}})) != null ? stack1 : \"\")\n + \" \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"body\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":8},\"end\":{\"line\":18,\"column\":206}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"isReadOnly\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.program(15, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":4},\"end\":{\"line\":27,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Dayname click event hander module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayName} [dayNameView] - DayName view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction DayNameClick(dragHandler, dayNameView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {DayName}\n */\n this.dayNameView = dayNameView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayNameClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.dayNameView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nDayNameClick.prototype.checkExpectCondition = function(target) {\n var container = domutil.closest(target, config.classname('.dayname-date-area'));\n\n if (!container) {\n return false;\n }\n\n return true;\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits DayNameClick#clickDayname\n */\nDayNameClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n daynameView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.dayname'));\n\n if (!daynameView || !blockElement) {\n return;\n }\n\n /**\n * @events DayNameClick#clickDayname\n * @type {object}\n * @property {string} date - click date\n */\n self.fire('clickDayname', {\n date: domutil.getData(blockElement, 'date')\n });\n};\n\nutil.CustomEvents.mixin(DayNameClick);\n\nmodule.exports = DayNameClick;\n","/**\n * @fileoverview Click handle module for daygrid schedules\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar DayGridMove = require('./move');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - daygrid view instance.\n * @param {Base} [controller] - Base controller instance.\n */\nfunction DayGridClick(dragHandler, view, controller) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * @type {Base}\n */\n this.controller = controller;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy handler module\n */\nDayGridClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.view = this.controller = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nDayGridClick.prototype.checkExpectCondition = DayGridMove.prototype.checkExpectedCondition;\n\n/**\n * Click event handler\n * @param {object} clickEvent - click event data\n * @emits DayGridClick#clickSchedule\n * @emits DayGridClick#collapse\n * @emits DayGridClick#expand\n */\nDayGridClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n dayGridScheduleView = this.checkExpectCondition(target),\n scheduleCollection = this.controller.schedules,\n collapseBtnElement = domutil.closest(\n target,\n config.classname('.weekday-collapse-btn')\n ),\n expandBtnElement = domutil.closest(\n target,\n config.classname('.weekday-exceed-in-week')\n ),\n containsTarget = this.view.container.contains(target);\n var blockElement, scheduleElement;\n\n if (!containsTarget) {\n return;\n }\n\n if (collapseBtnElement) {\n /**\n * click collpase btn event\n * @events DayGridClick#collapse\n */\n self.fire('collapse');\n\n return;\n }\n\n if (expandBtnElement) {\n this.view.setState({\n clickedExpandBtnIndex: parseInt(domutil.getData(expandBtnElement, 'index'), 10)\n });\n\n /**\n * click expand btn event\n * @events DayGridClick#expand\n */\n self.fire('expand');\n\n return;\n }\n\n if (!dayGridScheduleView) {\n return;\n }\n\n scheduleElement = domutil.closest(target, config.classname('.weekday-schedule'));\n if (scheduleElement) {\n blockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events DayGridClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(DayGridClick);\n\nmodule.exports = DayGridClick;\n","/**\n * @fileoverview Effect module for DayGrid.Move\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * Class for DayGrid.Move dragging effect.\n * @constructor\n * @param {DayGridMove} daygridMove - instance of DayGridMove.\n */\nfunction DayGridMoveGuide(daygridMove) {\n /**\n * @type {DayGridMove}\n */\n this.daygridMove = daygridMove;\n\n /**\n * The element that actually contains the event element\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {number}\n */\n this._dragStartXIndex = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n daygridMove.on({\n 'dragstart': this._onDragStart,\n 'drag': this._onDrag,\n 'dragend': this._clearGuideElement,\n 'click': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.daygridMove.off(this);\n this.daygridMove = this.scheduleContainer = this._dragStartXIndex =\n this.elements = this.guideElement = null;\n};\n\n/**\n * Clear guide element.\n */\nDayGridMoveGuide.prototype._clearGuideElement = function() {\n this._showOriginScheduleBlocks();\n\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._dragStartXIndex = this.getScheduleDataFunc = this.guideElement = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nDayGridMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n var scheduleBlocks = domutil.find(\n config.classname('.weekday-schedule-block'),\n this.daygridMove.view.container,\n true\n );\n\n this.elements = util.filter(scheduleBlocks, function(schedule) {\n return domutil.getData(schedule, 'id') === modelID;\n });\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nDayGridMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\n/**\n * Highlight element blocks\n * @param {Schedule} model - model\n * @param {HTMLElement} parent - parent element\n */\nDayGridMoveGuide.prototype._highlightScheduleBlocks = function(model, parent) {\n var elements = domutil.find(config.classname('.weekday-schedule'), parent, true);\n\n util.forEach(elements, function(el) {\n el.style.margin = '0';\n\n if (!model.isFocused) {\n el.style.backgroundColor = model.dragBgColor;\n el.style.borderLeftColor = model.borderColor;\n el.style.color = '#ffffff';\n }\n });\n};\n\n/**\n * Refresh guide element.\n * @param {number} leftPercent - left percent of guide element.\n * @param {number} widthPercent - width percent of guide element.\n * @param {boolean} isExceededLeft - schedule start is faster then render start date?\n * @param {boolean} isExceededRight - schedule end is later then render end date?\n */\nDayGridMoveGuide.prototype.refreshGuideElement = function(leftPercent, widthPercent, isExceededLeft, isExceededRight) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n\n if (isExceededLeft) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-left'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-left'));\n }\n\n if (isExceededRight) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-right'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-right'));\n }\n });\n};\n\n/**\n * Get schedule block information from schedule data.\n *\n * For example, there is single schedule has 10 length. but render range in view is 5 then\n * rendered block must be cut out to render properly. in this case, this method return\n * how many block are cut before rendering.\n *\n * @param {object} dragStartEventData - schedule data from DayGrid.Move handler.\n * @returns {function} function that return schedule block information.\n */\nDayGridMoveGuide.prototype._getScheduleBlockDataFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n datesInRange = dragStartEventData.datesInRange,\n range = dragStartEventData.range,\n baseWidthPercent = (100 / datesInRange),\n originScheduleStarts = datetime.start(model.start),\n originScheduleEnds = datetime.end(model.end),\n renderStartDate = datetime.start(range[0]),\n renderEndDate = datetime.end(range[range.length - 1]),\n fromLeft = Math.ceil((originScheduleStarts.getTime() -\n renderStartDate.getTime()) / datetime.MILLISECONDS_PER_DAY) || 0,\n fromRight = Math.ceil((originScheduleEnds.getTime() -\n renderEndDate.getTime()) / datetime.MILLISECONDS_PER_DAY) || 0;\n\n return function(indexOffset) {\n return {\n baseWidthPercent: baseWidthPercent,\n fromLeft: fromLeft + indexOffset,\n fromRight: fromRight + indexOffset\n };\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nDayGridMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var container = this.daygridMove.view.container,\n guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n this._hideOriginScheduleBlocks(String(dragStartEventData.model.cid()));\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), container);\n domutil.appendHTMLElement('div', guideElement, config.classname('weekday-schedule-cover'));\n scheduleContainer.appendChild(guideElement);\n\n this._dragStartXIndex = dragStartEventData.xIndex;\n this.getScheduleDataFunc = this._getScheduleBlockDataFunc(dragStartEventData);\n\n this._highlightScheduleBlocks(dragStartEventData.model, guideElement);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nDayGridMoveGuide.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStartXIndex = this._dragStartXIndex,\n datesInRange = dragEventData.datesInRange,\n grids = dragEventData.grids,\n scheduleData,\n isExceededLeft,\n isExceededRight,\n originLength,\n leftIndex,\n size,\n newLeft,\n newWidth;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.xIndex - dragStartXIndex);\n isExceededLeft = scheduleData.fromLeft < 0;\n isExceededRight = scheduleData.fromRight > 0;\n\n leftIndex = Math.max(0, scheduleData.fromLeft);\n originLength = (scheduleData.fromLeft * -1) + (datesInRange + scheduleData.fromRight);\n size = isExceededLeft ? (originLength + scheduleData.fromLeft) : originLength;\n size = isExceededRight ? (size - scheduleData.fromRight) : size;\n\n newLeft = grids[leftIndex] ? grids[leftIndex].left : 0;\n newWidth = getScheduleBlockWidth(leftIndex, size, grids);\n\n this.refreshGuideElement(newLeft, newWidth, isExceededLeft, isExceededRight);\n};\n\n/**\n * Get schedule width based on grids\n * @param {number} left - left index\n * @param {number} size - schedule width\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getScheduleBlockWidth(left, size, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n for (; i < size; i += 1) {\n left = (left + i) % length;\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nmodule.exports = DayGridMoveGuide;\n","/**\n * @fileoverview Handler module for WeekdayInWeek view's creation actions.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar dayGridCore = require('./core');\nvar DayGridCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CutomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - DayGrid view instance.\n * @param {Base} [controller] - Base controller instance.\n * @param {Options} [options] - calendar Options\n */\nfunction DayGridCreation(dragHandler, view, controller, options) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {DayGridCreationGuide}\n */\n this.guide = new DayGridCreationGuide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(view.container, 'dblclick', this._onDblClick, this);\n }\n}\n\n/**\n * Destroy method\n */\nDayGridCreation.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (this.view && this.view.container) {\n domevent.off(this.view.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.view = this.controller = this.getScheduleDataFunc = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nDayGridCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target).trim();\n var excludeTarget = true;\n var matches, schedulesElement;\n\n if (domutil.closest(target, config.classname('.weekday-exceed-in-week'))\n || domutil.closest(target, config.classname('.weekday-collapse-btn'))\n ) {\n return false;\n }\n\n if (domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget)) {\n return false;\n }\n\n schedulesElement = domutil.closest(target, config.classname('.weekday-schedules'));\n if (!schedulesElement && cssClass !== config.classname('weekday-schedules')) {\n return false;\n }\n\n target = schedulesElement ? schedulesElement.parentNode : target.parentNode;\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * Request schedule model creation to controller by custom schedules.\n * @fires {DayGridCreation#beforeCreateSchedule}\n * @param {object} scheduleData - schedule data from DayGridCreation module.\n */\nDayGridCreation.prototype._createSchedule = function(scheduleData) {\n var dateRange = scheduleData.range,\n startXIndex = scheduleData.dragStartXIndex,\n xIndex = scheduleData.xIndex,\n start, end;\n\n // when inverse start, end then change it.\n if (xIndex < startXIndex) {\n startXIndex = xIndex + startXIndex;\n xIndex = startXIndex - xIndex;\n startXIndex = startXIndex - xIndex;\n }\n\n start = new TZDate(dateRange[startXIndex]);\n end = datetime.end(dateRange[xIndex]);\n\n /**\n * @event {DayGridCreation#beforeCreateSchedule}\n * @type {object}\n * @property {string} category - schedule category\n * @property {boolean} isAllDay - whether schedule is fired in view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {DayGridCreationGuide} guide - DayGridCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n category: this.view.options.viewName,\n isAllDay: true,\n start: start,\n end: end,\n guide: this.guide,\n triggerEventName: scheduleData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler method.\n * @emits DayGridCreation#dragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler schedule data.\n */\nDayGridCreation.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n\n scheduleData = getScheduleDataFunc(dragStartEventData.originEvent);\n\n /**\n * @event DayGridCreation#dragstart\n * @type {object}\n * @property {DayGridView} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridCreation#drag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nDayGridCreation.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent);\n\n /**\n * @event DayGridCreation#drag\n * @type {object}\n * @property {DayGridView} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('drag', scheduleData);\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridCreation#dragend\n * @param {object} dragEndEventData - Drag#dragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n */\nDayGridCreation.prototype._onDragEnd = function(dragEndEventData, overrideEventName) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n var scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\n this._createSchedule(scheduleData);\n\n /**\n * @event DayGridCreation#dragend\n * @type {object}\n * @property {DayGridView} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridCreation#click\n * @param {object} clickEventData - Drag#click event handler data.\n */\nDayGridCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target) || this._disableClick) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, clickEventData.originEvent);\n scheduleData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('click', scheduleData);\n self._createSchedule(scheduleData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Dblclick event handler method.\n * @emits DayGridCreation#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridCreation.prototype._onDblClick = function(clickEventData) {\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target)) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, clickEventData);\n scheduleData = getScheduleDataFunc(clickEventData);\n\n this.fire('click', scheduleData);\n\n this._createSchedule(scheduleData);\n\n this._requestOnClick = false;\n};\n\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nDayGridCreation.prototype.invokeCreationClick = function(schedule) {\n var getScheduleDataFunc, scheduleData;\n\n getScheduleDataFunc = this._retriveScheduleDataFromDate(this.view, schedule.start);\n scheduleData = getScheduleDataFunc(schedule.start);\n\n this.fire('click', scheduleData);\n\n this._createSchedule(scheduleData);\n};\n\ncommon.mixin(dayGridCore, DayGridCreation);\nutil.CustomEvents.mixin(DayGridCreation);\n\nmodule.exports = DayGridCreation;\n","/**\n * @fileoverview Guide element for DayGrid.Creation\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * Class for DayGrid.Creation dragging effect.\n * @constructor\n * @param {DayGridCreation} creation - instance of DayGridCreation.\n */\nfunction DayGridCreationGuide(creation) {\n /**\n * @type {DayGridCreation}\n */\n this.creation = creation;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = document.createElement('div');\n\n this.initializeGuideElement();\n this.applyTheme(creation.controller.theme);\n\n creation.on({\n dragstart: this._createGuideElement,\n drag: this._onDrag,\n click: this._createGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.creation.off(this);\n this.creation = this.scheduleContainer = this.guideElement = null;\n};\n\n/**\n * initialize guide element's default style.\n */\nDayGridCreationGuide.prototype.initializeGuideElement = function() {\n domutil.addClass(this.guideElement, config.classname('daygrid-guide-creation-block'));\n};\n\n/**\n * Drag event handler\n * @param {object} scheduleData - schedule data from DayGrid.Creation handler.\n */\nDayGridCreationGuide.prototype._onDrag = function(scheduleData) {\n this._refreshGuideElement(scheduleData, true);\n};\n\n/**\n * Get element width based on narrowWeekend\n * @param {number} dragStartIndex - grid start index\n * @param {number} dragEndIndex - grid end index\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nDayGridCreationGuide.prototype._getGuideWidth = function(dragStartIndex, dragEndIndex, grids) {\n var width = 0;\n var i = dragStartIndex;\n for (; i <= dragEndIndex; i += 1) {\n width += grids[i] ? grids[i].width : 0;\n }\n\n return width;\n};\n\n/**\n * Refresh guide element.\n * @param {object} scheduleData - schedule data from DayGrid.Creation handler.\n * @param {boolean} defer - If set to true, set style in the next frame\n */\nDayGridCreationGuide.prototype._refreshGuideElement = function(scheduleData, defer) {\n var guideElement = this.guideElement,\n data = scheduleData,\n dragStartXIndex = data.dragStartXIndex < data.xIndex ? data.dragStartXIndex : data.xIndex,\n dragEndXIndex = data.dragStartXIndex < data.xIndex ? data.xIndex : data.dragStartXIndex,\n leftPercent,\n widthPercent;\n\n leftPercent = data.grids[dragStartXIndex] ? data.grids[dragStartXIndex].left : 0;\n widthPercent = this._getGuideWidth(dragStartXIndex, dragEndXIndex, data.grids);\n\n /** eslint-disable require-jsdoc */\n function setStyle() {\n guideElement.style.display = 'block';\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n }\n\n if (defer) {\n reqAnimFrame.requestAnimFrame(setStyle);\n } else {\n setStyle();\n }\n};\n\n/**\n * Clear guide element.\n */\nDayGridCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement;\n\n domutil.remove(guideElement);\n\n guideElement.style.display = 'none';\n guideElement.style.left = '';\n guideElement.style.width = '';\n};\n\n/**\n * Create guide element\n * @param {object} dragStartEventData - schedule data object of DayGrid.Creation.\n */\nDayGridCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var creation = this.creation,\n view = creation.view,\n container = view.container,\n scheduleContainer = domutil.find(config.classname('.weekday-grid'), container);\n\n scheduleContainer.appendChild(this.guideElement);\n this._refreshGuideElement(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - event data object of DayGrid.Creation.\n */\nDayGridCreationGuide.prototype._onDrag = function(dragEventData) {\n this._refreshGuideElement(dragEventData);\n};\n\nDayGridCreationGuide.prototype.applyTheme = function(theme) {\n var style = this.guideElement.style;\n\n style.backgroundColor = theme.common.creationGuide.backgroundColor;\n style.border = theme.common.creationGuide.border;\n};\n\nmodule.exports = DayGridCreationGuide;\n","/**\n * @fileoverview Resize handler module for DayGrid view.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar common = require('../../common/common');\nvar dayGridCore = require('./core');\nvar DayGridResizeGuide = require('./resizeGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - view instance.\n * @param {Base} [controller] - Base controller instance.\n */\nfunction DayGridResize(dragHandler, view, controller) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\n\n /**\n * Temporary variable for dragStart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {DayGridResizeGuide}\n */\n this.guide = new DayGridResizeGuide(this);\n}\n\n/**\n * Destroy method\n */\nDayGridResize.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.view = this.controller =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nDayGridResize.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (!~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n target = domutil.closest(target, config.classname('.weekday'));\n\n if (!target) {\n return false;\n }\n\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler.\n * @emits DayGridResize#dragstart\n * @param {object} dragStartEventData - schedule data.\n */\nDayGridResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.controller,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event DayGridResize#dragstart\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridResize#drag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nDayGridResize.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @event DayGridResize#drag\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('drag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule instance to base controller.\n * @fires DayGridResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from DayGridResize handler.\n */\nDayGridResize.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newEnds = new TZDate(schedule.end);\n var changes;\n\n newEnds = newEnds.addDate(dateOffset);\n newEnds = new TZDate(common.maxDate(datetime.end(schedule.start), newEnds));\n\n changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnds}\n );\n\n /**\n * @event DayGridResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridResize#dragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nDayGridResize.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event DayGridResize#dragend\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridResize#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridResize.prototype._onClick = function(clickEventData) {\n /**\n * @event DayGridResize#click\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'click', true);\n};\n\ncommon.mixin(dayGridCore, DayGridResize);\nutil.CustomEvents.mixin(DayGridResize);\n\nmodule.exports = DayGridResize;\n","/**\n * @fileoverview Resize Guide module.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * @constructor\n * @param {DayGridResize} resizeHandler - instance of DayGridResize\n */\nfunction DayGridResizeGuide(resizeHandler) {\n /**\n * @type {DayGridResize}\n */\n this.resizeHandler = resizeHandler;\n\n /**\n * The element that actually contains the event element\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.scheduleBlockElement = null;\n\n resizeHandler.on({\n 'dragstart': this._onDragStart,\n 'drag': this._onDrag,\n 'dragend': this._clearGuideElement,\n 'click': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.resizeHandler.off(this);\n this.resizeHandler = this.scheduleContainer = this.getScheduleDataFunc =\n this.guideElement = this.scheduleBlockElement = null;\n};\n\n/**\n * Clear guide element.\n */\nDayGridResizeGuide.prototype._clearGuideElement = function() {\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n\n if (this.scheduleBlockElement) {\n domutil.removeClass(this.scheduleBlockElement, config.classname('weekday-schedule-block-dragging-dim'));\n }\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Refresh guide element\n * @param {number} newWidth - new width percentage value to resize guide element.\n */\nDayGridResizeGuide.prototype.refreshGuideElement = function(newWidth) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.width = newWidth + '%';\n });\n};\n\n/**\n * Return function that calculate guide element's new width percentage value.\n * @param {object} dragStartEventData - dragstart schedule data.\n * @returns {function} return function that calculate guide element new width percentage.\n */\nDayGridResizeGuide.prototype.getGuideElementWidthFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n viewOptions = this.resizeHandler.view.options,\n fromLeft = Math.ceil(\n (model.start - viewOptions.renderStartDate) / datetime.MILLISECONDS_PER_DAY\n ) || 0,\n grids = dragStartEventData.grids;\n\n return function(xIndex) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n width += grids[fromLeft] ? grids[fromLeft].width : 0;\n\n for (; i < length; i += 1) {\n if (i > fromLeft && i <= xIndex) {\n width += grids[i] ? grids[i].width : 0;\n }\n }\n\n return width;\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nDayGridResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var container = this.resizeHandler.view.container,\n scheduleBlockElement = this.scheduleBlockElement = dragStartEventData.scheduleBlockElement,\n guideElement = this.guideElement = scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), container);\n domutil.addClass(guideElement, config.classname('daygrid-guide-move'));\n domutil.addClass(scheduleBlockElement, config.classname('weekday-schedule-block-dragging-dim'));\n\n scheduleContainer.appendChild(guideElement);\n\n this.getScheduleDataFunc = this.getGuideElementWidthFunc(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nDayGridResizeGuide.prototype._onDrag = function(dragEventData) {\n var func = this.getScheduleDataFunc;\n\n if (!func) {\n return;\n }\n\n this.refreshGuideElement(func(dragEventData.xIndex));\n};\n\nmodule.exports = DayGridResizeGuide;\n","/**\n * @fileoverview Allday event click event hander module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeClick(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.timeGridView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nTimeClick.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits TimeClick#clickEvent\n */\nTimeClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n schedulesCollection = this.baseController.schedules;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n schedulesCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events TimeClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n};\n\nutil.CustomEvents.mixin(TimeClick);\n\nmodule.exports = TimeClick;\n","/**\n * @fileoverview Handling creation events from drag handler and time grid view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar common = require('../../common/common');\nvar TimeCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n * @param {Options} [options] - calendar Options\n */\nfunction TimeCreation(dragHandler, timeGridView, baseController, options) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * TimeGrid view instance.\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {TimeCreationGuide}\n */\n this.guide = new TimeCreationGuide(this);\n\n /**\n * Temporary function for single drag session's calc.\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * Temporary function for drag start data cache.\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(timeGridView.container, 'dblclick', this._onDblClick, this);\n }\n}\n\n/**\n * Destroy method\n */\nTimeCreation.prototype.destroy = function() {\n var timeGridView = this.timeGridView;\n\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (timeGridView && timeGridView.container) {\n domevent.off(timeGridView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this.guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {(boolean|Time)} - return Time view instance when satiate condition.\n */\nTimeCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (cssClass === config.classname('time-date-schedule-block-wrap')) {\n target = target.parentNode;\n cssClass = domutil.getClass(target);\n }\n\n matches = cssClass.match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, matches[1]);\n};\n\n/**\n * Drag#dragStart event handler.\n * @emits TimeCreation#timeCreationDragstart\n * @param {object} dragStartEventData - Drag#dragStart event data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDragStart = function(dragStartEventData, overrideEventName, revise) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n eventData;\n\n if (!result) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(result);\n eventData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @event TimeCreation#timeCreationDragstart\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDragstart', eventData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeCreation#timeCreationDrag\n * @param {object} dragEventData - event data from Drag#drag.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n eventData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n eventData = getScheduleDataFunc(dragEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDrag\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDrag', eventData);\n};\n\n/**\n * @fires TimeCreation#beforeCreateSchedule\n * @param {object} eventData - event data object from TimeCreation#timeCreationDragend\n * or TimeCreation#timeCreationClick\n */\nTimeCreation.prototype._createSchedule = function(eventData) {\n var relatedView = eventData.relatedView,\n createRange = eventData.createRange,\n nearestGridTimeY = eventData.nearestGridTimeY,\n nearestGridEndTimeY = eventData.nearestGridEndTimeY\n ? eventData.nearestGridEndTimeY\n : new TZDate(nearestGridTimeY).addMinutes(30),\n baseDate,\n dateStart,\n dateEnd,\n start,\n end;\n\n if (!createRange) {\n createRange = [\n nearestGridTimeY,\n nearestGridEndTimeY\n ];\n }\n\n baseDate = new TZDate(relatedView.getDate());\n dateStart = datetime.start(baseDate);\n dateEnd = datetime.getStartOfNextDay(baseDate);\n start = common.limitDate(createRange[0], dateStart, dateEnd);\n end = common.limitDate(createRange[1], dateStart, dateEnd);\n\n /**\n * @event TimeCreation#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: false,\n start: new TZDate(start),\n end: new TZDate(end),\n guide: this.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeCreation#timeCreationDragend\n * @param {object} dragEndEventData - event data from Drag#dragend\n */\nTimeCreation.prototype._onDragEnd = function(dragEndEventData) {\n var self = this,\n dragStart = this._dragStart;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * Function for manipulate event data before firing event\n * @param {object} eventData - event data\n */\n function reviseFunc(eventData) {\n var range = [\n dragStart.nearestGridTimeY,\n eventData.nearestGridTimeY\n ].sort(array.compare.num.asc);\n range[1].addMinutes(30);\n\n eventData.createRange = range;\n\n self._createSchedule(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDragend\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {number[]} createRange - milliseconds range between drag start and end to create.\n */\n this._onDrag(dragEndEventData, 'timeCreationDragend', reviseFunc);\n\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Drag#click event handler\n * @emits TimeCreation#timeCreationClick\n * @param {object} clickEventData - event data from Drag#click.\n */\nTimeCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var condResult, getScheduleDataFunc, eventData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n condResult = this.checkExpectedCondition(clickEventData.target);\n if (!condResult || this._disableClick) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('timeCreationClick', eventData);\n self._createSchedule(eventData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Dblclick event handler\n * @param {MouseEvent} e - Native MouseEvent\n */\nTimeCreation.prototype._onDblClick = function(e) {\n var condResult, getScheduleDataFunc, eventData;\n\n condResult = this.checkExpectedCondition(e.target);\n if (!condResult) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(e);\n\n this.fire('timeCreationClick', eventData);\n\n this._createSchedule(eventData);\n\n this._requestOnClick = false;\n};\n\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nTimeCreation.prototype.invokeCreationClick = function(schedule) {\n var opt = this.timeGridView.options,\n range = datetime.range(\n opt.renderStartDate,\n opt.renderEndDate,\n datetime.MILLISECONDS_PER_DAY),\n hourStart = opt.hourStart,\n targetDate = schedule.start;\n var getScheduleDataFunc, eventData, timeView;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, targetDate)) {\n timeView = this.timeGridView.children.toArray()[index];\n }\n }, this);\n\n // If start date is not in current date, set start date as first date.\n if (!timeView) {\n timeView = this.timeGridView.children.toArray()[0];\n }\n\n getScheduleDataFunc = this._retriveScheduleDataFromDate(timeView);\n eventData = getScheduleDataFunc(schedule.start, schedule.end, hourStart);\n\n this.fire('timeCreationClick', eventData);\n\n this._createSchedule(eventData);\n};\n\ntimeCore.mixin(TimeCreation);\nutil.CustomEvents.mixin(TimeCreation);\n\nmodule.exports = TimeCreation;\n","/**\n * @fileoverview Module for Time.Creation effect while dragging.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar TZDate = require('../../common/timezone').Date;\nvar MIN60 = (datetime.MILLISECONDS_PER_MINUTES * 60);\n\n/**\n * Class for Time.Creation dragging effect.\n * @constructor\n * @param {TimeCreation} timeCreation - instance of TimeCreation.\n */\nfunction TimeCreationGuide(timeCreation) {\n /**\n * Guide element for creation effect.\n * @type {HTMLElement}\n */\n this.guideElement = global.document.createElement('div');\n\n /**\n * @type {HTMLDivElement}\n */\n this.guideTimeElement = domutil.appendHTMLElement(\n 'span',\n this.guideElement,\n config.classname('time-guide-creation-label')\n );\n\n domutil.addClass(this.guideElement, config.classname('time-guide-creation'));\n\n /**\n * @type {TimeCreation}\n */\n this.timeCreation = timeCreation;\n\n /**\n * @type {array}\n */\n this._styleUnit = null;\n\n /**\n * @type {array}\n */\n this._styleStart = null;\n\n /**\n * @type {function}\n */\n this._styleFunc = null;\n\n timeCreation.on({\n timeCreationDragstart: this._createGuideElement,\n timeCreationDrag: this._onDrag,\n timeCreationClick: this._createGuideElement\n }, this);\n\n this.applyTheme(timeCreation.baseController.theme);\n}\n\n/**\n * Destroy method.\n */\nTimeCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.timeCreation.off(this);\n this.timeCreation = this._styleUnit = this._styleStart =\n this._styleFunc = this.guideElement = this.guideTimeElement = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement,\n timeElement = this.guideTimeElement;\n\n domutil.remove(guideElement);\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.display = 'none';\n guideElement.style.top = '';\n guideElement.style.height = '';\n timeElement.innerHTML = '';\n });\n};\n\n/**\n * Refresh guide element\n * @param {number} top - The number of guide element's style top\n * @param {number} height - The number of guide element's style height\n * @param {TZDate} start - start time of schedule to create\n * @param {TZDate} end - end time of schedule to create\n * @param {boolean} bottomLabel - is label need to render bottom of guide element?\n */\nTimeCreationGuide.prototype._refreshGuideElement = function(top, height, start, end, bottomLabel) {\n var guideElement = this.guideElement;\n var timeElement = this.guideTimeElement;\n\n guideElement.style.top = top + 'px';\n guideElement.style.height = height + 'px';\n guideElement.style.display = 'block';\n\n timeElement.innerHTML = datetime.format(start, 'HH:mm') +\n ' - ' + datetime.format(end, 'HH:mm');\n\n if (bottomLabel) {\n domutil.removeClass(timeElement, config.classname('time-guide-bottom'));\n } else {\n domutil.addClass(timeElement, config.classname('time-guide-bottom'));\n }\n};\n\n/**\n * Get unit data of calculating new style of guide element by user interaction\n * @param {Time} relatedView - time view instance related with schedule\n * @returns {array} unit data.\n */\nTimeCreationGuide.prototype._getUnitData = function(relatedView) {\n var viewOpt = relatedView.options,\n viewHeight = relatedView.getViewBound().height,\n hourLength = viewOpt.hourEnd - viewOpt.hourStart,\n todayStart = datetime.parse(viewOpt.ymd),\n todayEnd = datetime.getStartOfNextDay(todayStart);\n\n todayStart.setHours(0, 0, 0, 0);\n todayStart.setHours(viewOpt.hourStart);\n\n // [0] height of view\n // [1] hour length of view\n // [2] start time of view\n // [3] end time of view\n // [4] height of view for one hour\n return [\n viewHeight,\n hourLength,\n todayStart,\n todayEnd,\n viewHeight / hourLength\n ];\n};\n\n/**\n * Applying limitation to supplied data and return it.\n * @param {number} top - top pixel of guide element\n * @param {number} height - height pixel of guide element\n * @param {TZDate} start - relative time value of dragstart point\n * @param {TZDate} end - relative time value of dragend point\n * @returns {array} limited style data\n */\nTimeCreationGuide.prototype._limitStyleData = function(top, height, start, end) {\n var unitData = this._styleUnit;\n\n top = common.limit(top, [0], [unitData[0]]);\n height = common.limit(top + height, [0], [unitData[0]]) - top;\n start = common.limitDate(start, unitData[2], unitData[3]);\n end = common.limitDate(end, unitData[2], unitData[3]);\n\n return [top, height, start, end];\n};\n\n/**\n * Get function to calculate guide element UI data from supplied units\n * @param {number} viewHeight - total height of view's container element\n * @param {number} hourLength - hour length that rendered in time view\n * @param {TZDate} todayStart - time for view's start date\n * @returns {function} UI data calculator function\n */\nTimeCreationGuide.prototype._getStyleDataFunc = function(viewHeight, hourLength, todayStart) {\n var todayStartTime = todayStart;\n var todayEndTime = datetime.end(todayStart);\n\n /**\n * Get top, time value from schedule data\n * @param {object} scheduleData - schedule data object\n * @returns {number[]} top, time\n */\n function getStyleData(scheduleData) {\n var minMinutes = 30;\n var gridY = scheduleData.nearestGridY,\n gridTimeY = scheduleData.nearestGridTimeY,\n gridEndTimeY = scheduleData.nearestGridEndTimeY || new TZDate(gridTimeY).addMinutes(minMinutes),\n top, startTime, endTime;\n\n top = common.limit(ratio(hourLength, viewHeight, gridY), [0], [viewHeight]);\n startTime = common.limitDate(gridTimeY, todayStartTime, todayEndTime);\n endTime = common.limitDate(gridEndTimeY, todayStartTime, todayEndTime);\n\n return [top, startTime, endTime];\n }\n\n return getStyleData;\n};\n\n/**\n * DragStart event handler\n * @param {object} dragStartEventData - dragStart schedule data.\n */\nTimeCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var relatedView = dragStartEventData.relatedView,\n hourStart = datetime.millisecondsFrom('hour', dragStartEventData.hourStart) || 0,\n unitData, styleFunc, styleData, result, top, height, start, end;\n\n unitData = this._styleUnit = this._getUnitData(relatedView);\n styleFunc = this._styleFunc = this._getStyleDataFunc.apply(this, unitData);\n styleData = this._styleStart = styleFunc(dragStartEventData);\n\n start = new TZDate(styleData[1]).addMinutes(datetime.minutesFromHours(hourStart));\n end = new TZDate(styleData[2]).addMinutes(datetime.minutesFromHours(hourStart));\n top = styleData[0];\n height = (unitData[4] * (end - start) / MIN60);\n\n result = this._limitStyleData(\n top,\n height,\n start,\n end\n );\n\n this._refreshGuideElement.apply(this, result);\n\n relatedView.container.appendChild(this.guideElement);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEventData - drag schedule data.\n */\nTimeCreationGuide.prototype._onDrag = function(dragEventData) {\n var minutes30 = 30;\n var styleFunc = this._styleFunc,\n unitData = this._styleUnit,\n startStyle = this._styleStart,\n refreshGuideElement = this._refreshGuideElement.bind(this),\n heightOfHalfHour,\n endStyle,\n result;\n\n if (!styleFunc || !unitData || !startStyle) {\n return;\n }\n\n heightOfHalfHour = (unitData[4] / 2);\n endStyle = styleFunc(dragEventData);\n\n if (endStyle[0] > startStyle[0]) {\n result = this._limitStyleData(\n startStyle[0],\n (endStyle[0] - startStyle[0]) + heightOfHalfHour,\n startStyle[1],\n new TZDate(endStyle[1]).addMinutes(minutes30)\n );\n } else {\n result = this._limitStyleData(\n endStyle[0],\n (startStyle[0] - endStyle[0]) + heightOfHalfHour,\n endStyle[1],\n new TZDate(startStyle[1]).addMinutes(minutes30)\n );\n result.push(true);\n }\n\n reqAnimFrame.requestAnimFrame(function() {\n refreshGuideElement.apply(null, result);\n });\n};\n\nTimeCreationGuide.prototype.applyTheme = function(theme) {\n var style = this.guideElement.style;\n var timeStyle = this.guideTimeElement.style;\n\n // block\n style.backgroundColor = theme.common.creationGuide.backgroundColor;\n style.border = theme.common.creationGuide.border;\n\n // label\n timeStyle.color = theme.week.creationGuide.color;\n timeStyle.fontSize = theme.week.creationGuide.fontSize;\n timeStyle.fontWeight = theme.week.creationGuide.fontWeight;\n};\n\nmodule.exports = TimeCreationGuide;\n","/**\n * @fileoverview Handling move schedules from drag handler and time grid view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\nvar TimeMoveGuide = require('./moveGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeMove(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeMoveGuide}\n */\n this._guide = new TimeMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('mousedown', this._onMouseDown, this);\n}\n\n/**\n * Destroy method.\n */\nTimeMove.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {boolean|object} - return object when satiate condition.\n */\nTimeMove.prototype.checkExpectCondition = function(target) {\n if (!domutil.closest(target, config.classname('.time-schedule'))) {\n return false;\n }\n\n return this._getTimeView(target);\n};\n\n/**\n * Get Time view container from supplied element.\n * @param {HTMLElement} target - element to find time view container.\n * @returns {object|boolean} - return time view instance when finded.\n */\nTimeMove.prototype._getTimeView = function(target) {\n var container = domutil.closest(target, config.classname('.time-date')),\n matches;\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeMove#mousedown\n * @param {object} mouseDownEventData - Drag#mousedown schedule data.\n */\nTimeMove.prototype._onMouseDown = function(mouseDownEventData) {\n var target = mouseDownEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block'));\n\n if (!timeView || !blockElement) {\n return;\n }\n\n // EventTarget.target is not changed in mousemove event even if mouse is over the other element.\n // It's different with other browsers(IE, Chrome, Safari)\n if (util.browser.firefox) {\n domevent.preventDefault(mouseDownEventData.originEvent);\n }\n};\n\n/**\n * @emits TimeMove#timeMoveDragstart\n * @param {object} dragStartEventData - Drag#dragStart schedule data.\n */\nTimeMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n getScheduleDataFunc,\n scheduleData,\n ctrl = this.baseController,\n targetModelID,\n targetModel;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n targetModelID = domutil.getData(blockElement, 'id');\n targetModel = ctrl.schedules.items[targetModelID];\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: targetModelID,\n model: targetModel\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeMove#timeMoveDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {Schedule} model - model instance\n */\n this.fire('timeMoveDragstart', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveDrag\n * @param {MouseEvent} dragEventData - mousemove event object\n * @param {string} [overrideEventName] - name of emitting event to override.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeMove.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n timeView = this._getTimeView(dragEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n if (!timeView || !getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n currentView: timeView,\n targetModelID: dragStart.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeMove#timeMoveDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeMoveDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeMove#timeMoveDragend\n */\nTimeMove.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n dateDiff = 0,\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n currentView = scheduleData.currentView,\n newStarts,\n newEnds;\n\n if (!schedule || !currentView) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n newStarts = new TZDate(schedule.getStarts()).addMilliseconds(timeDiff);\n newEnds = new TZDate(schedule.getEnds()).addMilliseconds(timeDiff);\n\n if (currentView) {\n dateDiff = currentView.getDate() - relatedView.getDate();\n }\n\n newStarts.addMilliseconds(dateDiff);\n newEnds.addMilliseconds(dateDiff);\n\n /**\n * @event TimeMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: {\n start: newStarts,\n end: newEnds\n },\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * @emits TimeMove#timeMoveDragend\n * @param {MouseEvent} dragEndEventData - mouseup mouse event object.\n */\nTimeMove.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n currentView = this._getTimeView(dragEndEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n currentView: currentView,\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n new TZDate(scheduleData.timeY).addMinutes(30)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n new TZDate(scheduleData.nearestGridTimeY).addMinutes(30)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeMove#timeMoveDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeMoveDragend', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveClick\n * @param {MouseEvent} clickEventData - click mouse event object.\n */\nTimeMove.prototype._onClick = function(clickEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(clickEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n /**\n * @event TimeMove#timeMoveClick\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire('timeMoveClick', scheduleData);\n};\n\ntimeCore.mixin(TimeMove);\nutil.CustomEvents.mixin(TimeMove);\n\nmodule.exports = TimeMove;\n","/**\n * @fileoverview Module for Time.Move effect while dragging.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar FloatingLayer = require('../../common/floatingLayer');\nvar tmpl = require('../../view/template/week/timeMoveGuide.hbs');\nvar TZDate = require('../../common/timezone').Date;\nvar Schedule = require('../../model/schedule');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * Class for Time.Move effect.\n * @constructor\n * @param {TimeMove} timeMove - The instance of TimeMove.\n */\nfunction TimeMoveGuide(timeMove) {\n /**\n * @type {FloatingLayer}\n */\n this._guideLayer = null;\n\n /**\n * @Type {Schedule}\n */\n this._model = null;\n\n /**\n * @type {object}\n */\n this._viewModel = null;\n\n /**\n * @type {object}\n */\n this._lastDrag = null;\n\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeMove}\n */\n this.timeMove = timeMove;\n\n /**\n * @type {HTMLElement}\n */\n this._container = null;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n timeMove.on({\n 'timeMoveDragstart': this._onDragStart,\n 'timeMoveDrag': this._onDrag,\n 'timeMoveDragend': this._clearGuideElement,\n 'timeMoveClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeMove.off(this);\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n this.guideElement = this.timeMove = this._container = this._guideLayer = this._lastDrag =\n this._getTopFunc = this._startGridY = this._startTopPixel = this._viewModel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeMoveGuide.prototype._clearGuideElement = function() {\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n\n this._showOriginScheduleBlocks();\n\n this.guideElement = this._getTopFunc = this._guideLayer = this._model = this._lastDrag =\n this._startGridY = this._startTopPixel = this._viewModel = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nTimeMoveGuide.prototype._hideOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.addClass(this.guideElement, className);\n }\n};\n\n/**\n * Show element blocks\n */\nTimeMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.removeClass(this.guideElement, className);\n }\n};\n\n/**\n * Refresh guide element\n * @param {string} top - guide element's style top.\n * @param {Schedule} model - updated model\n * @param {object} viewModel - view model\n */\nTimeMoveGuide.prototype._refreshGuideElement = function(top, model, viewModel) {\n var self = this;\n\n reqAnimFrame.requestAnimFrame(function() {\n if (!self._guideLayer) {\n return;\n }\n self._guideLayer.setPosition(0, top);\n self._guideLayer.setContent(tmpl(util.extend({model: model}, viewModel)));\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var guideElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n );\n var duration, modelDuration, goingDuration, comingDuration;\n\n if (!guideElement) {\n return;\n }\n\n this._startTopPixel = parseFloat(guideElement.style.top);\n this._startGridY = dragStartEventData.nearestGridY;\n this.guideElement = guideElement;\n this._container = dragStartEventData.relatedView.container;\n\n this._model = util.extend(\n Schedule.create(dragStartEventData.model),\n dragStartEventData.model\n );\n\n modelDuration = this._model.duration();\n modelDuration = modelDuration > SCHEDULE_MIN_DURATION ? modelDuration : SCHEDULE_MIN_DURATION;\n goingDuration = datetime.millisecondsFrom('minutes', this._model.goingDuration);\n comingDuration = datetime.millisecondsFrom('minutes', this._model.comingDuration);\n duration = goingDuration + modelDuration + comingDuration;\n\n this._lastDrag = dragStartEventData;\n this._viewModel = {\n hasGoingDuration: goingDuration > 0,\n hasComingDuration: comingDuration > 0,\n goingDurationHeight: common.ratio(duration, goingDuration, 100),\n modelDurationHeight: common.ratio(duration, modelDuration, 100),\n comingDurationHeight: common.ratio(duration, comingDuration, 100)\n };\n\n this._resetGuideLayer();\n this._hideOriginScheduleBlocks();\n};\n\n/**\n * TimeMove#timeMoveDrag event handler\n * @param {object} dragEventData - drag event data\n */\nTimeMoveGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.currentView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n guideHeight = parseFloat(this.guideElement.style.height),\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n gridDiff = dragEventData.nearestGridY - this._lastDrag.nearestGridY,\n bottomLimit,\n top;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n if (this._container !== timeView.container) {\n this._container = timeView.container;\n this._resetGuideLayer();\n }\n\n top = this._startTopPixel + gridYOffsetPixel;\n bottomLimit = viewHeight - guideHeight;\n\n top = Math.max(top, 0);\n top = Math.min(top, bottomLimit);\n\n // update time\n this._model.start = new TZDate(this._model.getStarts()).addMinutes(datetime.minutesFromHours(gridDiff));\n this._model.end = new TZDate(this._model.getEnds()).addMinutes(datetime.minutesFromHours(gridDiff));\n this._lastDrag = dragEventData;\n\n this._refreshGuideElement(top, this._model, this._viewModel);\n};\n\nTimeMoveGuide.prototype._resetGuideLayer = function() {\n if (this._guideLayer) {\n this._guideLayer.destroy();\n this._guideLayer = null;\n }\n this._guideLayer = new FloatingLayer(null, this._container);\n this._guideLayer.setSize(this._container.getBoundingClientRect().width, this.guideElement.style.height);\n this._guideLayer.setPosition(0, this.guideElement.style.top);\n this._guideLayer.setContent(tmpl(util.extend({model: this._model}, this._viewModel)));\n this._guideLayer.show();\n};\n\nmodule.exports = TimeMoveGuide;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"goingDuration-tmpl\")||(depth0 && lookupProperty(depth0,\"goingDuration-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"goingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":230},\"end\":{\"line\":4,\"column\":260}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \"\n + ((stack1 = (lookupProperty(helpers,\"comingDuration-tmpl\")||(depth0 && lookupProperty(depth0,\"comingDuration-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"comingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":228},\"end\":{\"line\":10,\"column\":259}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
     
    \";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hasGoingDuration\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":8},\"end\":{\"line\":5,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":16},\"end\":{\"line\":7,\"column\":37}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hasComingDuration\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":8},\"end\":{\"line\":11,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"croppedEnd\") : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":4},\"end\":{\"line\":13,\"column\":104}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Handling resize schedules from drag handler and time grid view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar common = require('../../common/common');\nvar timeCore = require('./core');\nvar TimeResizeGuide = require('./resizeGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeResize(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeResizeGuide}\n */\n this._guide = new TimeResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destroy method\n */\nTimeResize.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * @param {HTMLElement} target - element to check condition.\n * @returns {object|boolean} - return time view instance or false\n */\nTimeResize.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n if (!domutil.hasClass(target, config.classname('time-resize-handle'))) {\n return false;\n }\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeResize#timeResizeDragstart\n * @param {object} dragStartEventData - event data of Drag#dragstart\n */\nTimeResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n ctrl = this.baseController,\n targetModelID,\n getScheduleDataFunc,\n scheduleData;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n targetModelID = domutil.getData(blockElement, 'id');\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: targetModelID,\n schedule: ctrl.schedules.items[targetModelID]\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {Schedule} schedule - schedule data\n */\n this.fire('timeResizeDragstart', scheduleData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeResize#timeResizeDrag\n * @param {object} dragEventData - event data of Drag#drag custom event.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeResize.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n startScheduleData = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !startScheduleData) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n targetModelID: startScheduleData.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeResize#timeResizeDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeResizeDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeResize#timeResizeDragend\n */\nTimeResize.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n dateEnd,\n newEnds,\n baseDate;\n var changes;\n\n if (!schedule) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n\n baseDate = new TZDate(relatedView.getDate());\n dateEnd = datetime.end(baseDate);\n newEnds = new TZDate(schedule.getEnds()).addMilliseconds(timeDiff);\n\n if (newEnds > dateEnd) {\n newEnds = new TZDate(dateEnd);\n }\n\n if (newEnds.getTime() - schedule.getStarts().getTime() < datetime.millisecondsFrom('minutes', 30)) {\n newEnds = new TZDate(schedule.getStarts()).addMinutes(30);\n }\n\n changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnds}\n );\n\n /**\n * @event TimeResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeResize#timeResizeDragend\n * @param {MouseEvent} dragEndEventData - Mouse event of Drag#dragEnd custom event.\n */\nTimeResize.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n new TZDate(scheduleData.timeY).addMinutes(30)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n scheduleData.nearestGridTimeY.addMinutes(30)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeResize#timeResizeDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeResizeDragend', scheduleData);\n\n this._getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * @emits TimeResize#timeResizeClick\n */\nTimeResize.prototype._onClick = function() {\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeClick\n */\n this.fire('timeResizeClick');\n};\n\ntimeCore.mixin(TimeResize);\nutil.CustomEvents.mixin(TimeResize);\n\nmodule.exports = TimeResize;\n","/**\n * @fileoverview Module for Time.Resize effect while dragging.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar datetime = require('../../common/datetime');\n\n/**\n * Class for Time.Resize effect.\n * @constructor\n * @param {TimeResize} timeResize - the instance of TimeResize handler.\n */\nfunction TimeResizeGuide(timeResize) {\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeResize}\n */\n this.timeResize = timeResize;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {HTMLElement}\n */\n this._originScheduleElement = null;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n /**\n * @type {number}\n */\n this._startHeightPixel = 0;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n /**\n * @type {Schedule}\n */\n this._schedule = null;\n\n timeResize.on({\n 'timeResizeDragstart': this._onDragStart,\n 'timeResizeDrag': this._onDrag,\n 'timeResizeDragend': this._clearGuideElement,\n 'timeResizeClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeResize.off(this);\n this.guideElement = this.timeResize = this._getTopFunc =\n this._originScheduleElement = this._startHeightPixel =\n this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeResizeGuide.prototype._clearGuideElement = function() {\n var guideElement = this.guideElement,\n originElement = this._originScheduleElement;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing'));\n }\n\n if (originElement) {\n originElement.style.display = 'block';\n }\n\n domutil.remove(guideElement);\n\n this.guideElement = this._getTopFunc = this._originScheduleElement =\n this._startHeightPixel = this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Refresh guide element\n * @param {number} guideHeight - guide element's style height.\n * @param {number} minTimeHeight - time element's min height\n * @param {number} timeHeight - time element's height.\n */\nTimeResizeGuide.prototype._refreshGuideElement = function(guideHeight, minTimeHeight, timeHeight) {\n var guideElement = this.guideElement;\n var timeElement;\n\n if (!guideElement) {\n return;\n }\n\n timeElement = domutil.find(config.classname('.time-schedule-content-time'), guideElement);\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.height = guideHeight + 'px';\n guideElement.style.display = 'block';\n\n if (timeElement) {\n timeElement.style.height = timeHeight + 'px';\n timeElement.style.minHeight = minTimeHeight + 'px';\n }\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var originElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n ),\n schedule = dragStartEventData.schedule,\n guideElement;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing'));\n }\n\n if (!originElement || !schedule) {\n return;\n }\n\n this._startGridY = dragStartEventData.nearestGridY;\n this._startHeightPixel = parseFloat(originElement.style.height);\n this._startTopPixel = parseFloat(originElement.style.top);\n\n this._originScheduleElement = originElement;\n this._schedule = schedule;\n\n guideElement = this.guideElement = originElement.cloneNode(true);\n domutil.addClass(guideElement, config.classname('time-guide-resize'));\n\n originElement.style.display = 'none';\n dragStartEventData.relatedView.container.appendChild(guideElement);\n};\n\n/**\n * @param {object} dragEventData - event data from Drag#drag.\n */\nTimeResizeGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.relatedView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n guideElement = this.guideElement,\n guideTop = parseFloat(guideElement.style.top),\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n // hourLength : viewHeight = gridYOffset : X;\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n goingDuration = this._schedule.goingDuration,\n modelDuration = this._schedule.duration() / datetime.MILLISECONDS_PER_MINUTES,\n comingDuration = this._schedule.comingDuration,\n minutesLength = hourLength * 60,\n timeHeight,\n timeMinHeight,\n minHeight,\n maxHeight,\n height;\n\n height = (this._startHeightPixel + gridYOffsetPixel);\n // at least large than 30min from schedule start time.\n minHeight = guideTop + ratio(hourLength, viewHeight, 0.5);\n minHeight -= this._startTopPixel;\n timeMinHeight = minHeight;\n minHeight += ratio(minutesLength, viewHeight, goingDuration) + ratio(minutesLength, viewHeight, comingDuration);\n // smaller than 24h\n maxHeight = viewHeight - guideTop;\n\n height = Math.max(height, minHeight);\n height = Math.min(height, maxHeight);\n\n timeHeight = ratio(minutesLength, viewHeight, modelDuration) + gridYOffsetPixel;\n\n this._refreshGuideElement(height, timeMinHeight, timeHeight);\n};\n\nmodule.exports = TimeResizeGuide;\n","/**\n * @fileoverview Month view factory module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n array = require('../common/array'),\n datetime = require('../common/datetime'),\n domutil = require('../common/domutil'),\n common = require('../common/common'),\n Month = require('../view/month/month'),\n MonthClick = require('../handler/month/click'),\n MonthCreation = require('../handler/month/creation'),\n MonthResize = require('../handler/month/resize'),\n MonthMove = require('../handler/month/move'),\n More = require('../view/month/more'),\n ScheduleCreationPopup = require('../view/popup/scheduleCreationPopup'),\n ScheduleDetailPopup = require('../view/popup/scheduleDetailPopup'),\n Schedule = require('../model/schedule');\n\n/**\n * Get the view model for more layer\n * @param {TZDate} date - date has more schedules\n * @param {HTMLElement} target - target element\n * @param {Collection} schedules - schedule collection\n * @param {string[]} daynames - daynames to use upside of month more view\n * @returns {object} view model\n */\nfunction getViewModelForMoreLayer(date, target, schedules, daynames) {\n schedules.each(function(schedule) {\n var model = schedule.model;\n schedule.hasMultiDates = !datetime.isSameDate(model.start, model.end);\n });\n\n return {\n target: target,\n date: datetime.format(date, 'YYYY.MM.DD'),\n dayname: daynames[date.getDay()],\n schedules: schedules.sort(array.compare.schedule.asc)\n };\n}\n\n/**\n * @param {Base} baseController - controller instance\n * @param {HTMLElement} layoutContainer - container element for month view\n * @param {Drag} dragHandler - drag handler instance\n * @param {object} options - options\n * @returns {object} view instance and refresh method\n */\nfunction createMonthView(baseController, layoutContainer, dragHandler, options) {\n var monthViewContainer, monthView, moreView, createView;\n var clickHandler, creationHandler, resizeHandler, moveHandler, clearSchedulesHandler, onUpdateSchedule;\n var onShowCreationPopup, onSaveNewSchedule, onShowEditPopup;\n var detailView, onShowDetailPopup, onDeleteSchedule, onEditSchedule;\n\n monthViewContainer = domutil.appendHTMLElement(\n 'div', layoutContainer, config.classname('month'));\n\n monthView = new Month(options, monthViewContainer, baseController.Month);\n moreView = new More(options.month, layoutContainer, baseController.theme);\n\n // handlers\n clickHandler = new MonthClick(dragHandler, monthView, baseController);\n if (!options.isReadOnly) {\n creationHandler = new MonthCreation(dragHandler, monthView, baseController, options);\n resizeHandler = new MonthResize(dragHandler, monthView, baseController);\n moveHandler = new MonthMove(dragHandler, monthView, baseController);\n }\n\n clearSchedulesHandler = function() {\n if (moreView) {\n moreView.hide();\n }\n };\n\n onUpdateSchedule = function() {\n if (moreView) {\n moreView.refresh();\n }\n };\n\n // binding +n click schedule\n clickHandler.on('clickMore', function(clickMoreSchedule) {\n var date = clickMoreSchedule.date,\n target = clickMoreSchedule.target,\n schedules = util.pick(baseController.findByDateRange(\n datetime.start(date),\n datetime.end(date)\n ), clickMoreSchedule.ymd);\n\n schedules.items = util.filter(schedules.items, function(item) {\n return options.month.scheduleFilter(item.model);\n });\n\n if (schedules && schedules.length) {\n moreView.render(getViewModelForMoreLayer(date, target, schedules, monthView.options.daynames));\n\n schedules.each(function(scheduleViewModel) {\n if (scheduleViewModel) {\n /**\n * @event More#afterRenderSchedule\n */\n monthView.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n\n monthView.fire('clickMore', {\n date: clickMoreSchedule.date,\n target: moreView.getMoreViewElement()\n });\n }\n });\n\n // binding popup for schedules creation\n if (options.useCreationPopup) {\n createView = new ScheduleCreationPopup(layoutContainer, baseController.calendars, options.usageStatistics);\n\n onSaveNewSchedule = function(scheduleData) {\n creationHandler.fire('beforeCreateSchedule', util.extend(scheduleData, {\n useCreationPopup: true\n }));\n };\n createView.on('beforeCreateSchedule', onSaveNewSchedule);\n }\n\n // binding popup for schedule detail\n if (options.useDetailPopup) {\n detailView = new ScheduleDetailPopup(layoutContainer, baseController.calendars);\n onShowDetailPopup = function(eventData) {\n var scheduleId = eventData.schedule.calendarId;\n eventData.calendar = common.find(baseController.calendars, function(calendar) {\n return calendar.id === scheduleId;\n });\n\n if (options.isReadOnly) {\n eventData.schedule = util.extend({}, eventData.schedule, {isReadOnly: true});\n }\n\n detailView.render(eventData);\n };\n onDeleteSchedule = function(eventData) {\n if (creationHandler) {\n creationHandler.fire('beforeDeleteSchedule', eventData);\n }\n };\n onEditSchedule = function(eventData) {\n moveHandler.fire('beforeUpdateSchedule', eventData);\n };\n\n clickHandler.on('clickSchedule', onShowDetailPopup);\n\n detailView.on('beforeDeleteSchedule', onDeleteSchedule);\n\n if (options.useCreationPopup) {\n onShowEditPopup = function(eventData) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n };\n createView.on('beforeUpdateSchedule', onEditSchedule);\n detailView.on('beforeUpdateSchedule', onShowEditPopup);\n } else {\n detailView.on('beforeUpdateSchedule', onEditSchedule);\n }\n }\n\n // binding clear schedules\n baseController.on('clearSchedules', clearSchedulesHandler);\n\n // bind update schedule event\n baseController.on('updateSchedule', onUpdateSchedule);\n\n if (moveHandler) {\n moveHandler.on('monthMoveStart_from_morelayer', function() {\n moreView.hide();\n });\n }\n\n monthView.handler = {\n click: {\n 'default': clickHandler\n }\n };\n\n if (!options.isReadOnly) {\n monthView.handler = util.extend(monthView.handler, {\n creation: {\n 'default': creationHandler\n },\n resize: {\n 'default': resizeHandler\n },\n move: {\n 'default': moveHandler\n }\n });\n }\n\n monthView._beforeDestroy = function() {\n moreView.destroy();\n baseController.off('clearSchedules', clearSchedulesHandler);\n baseController.off('updateSchedule', onUpdateSchedule);\n\n util.forEach(monthView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n\n if (options.useCreationPopup && options.useDetailPopup) {\n createView.off('beforeUpdateSchedule', onUpdateSchedule);\n }\n\n if (options.useCreationPopup) {\n if (creationHandler) {\n creationHandler.off('beforeCreateSchedule', onShowCreationPopup);\n }\n createView.off('saveSchedule', onSaveNewSchedule);\n createView.destroy();\n }\n\n if (options.useDetailPopup) {\n clickHandler.off('clickSchedule', onShowDetailPopup);\n detailView.off('beforeUpdateSchedule', onUpdateSchedule);\n detailView.off('beforeDeleteSchedule', onDeleteSchedule);\n detailView.destroy();\n }\n };\n\n // add controller\n monthView.controller = baseController.Month;\n\n return {\n view: monthView,\n refresh: function() {\n monthView.vLayout.refresh();\n },\n openCreationPopup: function(schedule) {\n if (createView && creationHandler) {\n creationHandler.invokeCreationClick(Schedule.create(schedule));\n }\n },\n showCreationPopup: function(eventData) {\n if (createView) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n }\n },\n hideMoreView: function() {\n if (moreView) {\n moreView.hide();\n }\n }\n };\n}\n\nmodule.exports = createMonthView;\n","/**\n * @fileoverview Month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n TZDate = require('../../common/timezone').Date,\n tmpl = require('../template/month/month.hbs'),\n View = require('../view'),\n VLayout = require('../..//common/vlayout'),\n WeekdayInMonth = require('./weekdayInMonth');\nvar mmin = Math.min;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {function} [options.scheduleFilter] - schedule filter\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {string} [options.renderMonth='2015-12'] - render month\n * @param {string[]} [options.daynames] - daynames to use upside of month view\n * @param {HTMLElement} container - container element\n * @param {Base.Month} controller - controller instance\n */\nfunction Month(options, container, controller) {\n var theme = controller ? controller.theme : null;\n var monthOption;\n\n options = options || {};\n monthOption = options ? options.month : {};\n\n View.call(this, container);\n\n /**\n * @type {Base.Month}\n */\n this.controller = controller;\n\n /**\n * @type {VLayout}\n */\n this.vLayout = new VLayout({\n panels: [\n {height: parseInt(controller.theme.month.dayname.height, 10) || 42},\n {autoHeight: true}\n ]\n }, container, theme);\n\n /**\n * @type {string}\n */\n this.options = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible);\n },\n startDayOfWeek: 0,\n renderMonth: '2018-01',\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n narrowWeekend: false,\n visibleWeeksCount: null,\n isAlways6Week: true,\n isReadOnly: options.isReadOnly,\n grid: {\n header: {\n height: 34\n },\n footer: {\n height: 3\n }\n }\n }, monthOption);\n\n this.options.grid.header = util.extend({\n height: 34\n }, util.pick(monthOption, 'grid', 'header'));\n this.options.grid.footer = util.extend({\n height: 3\n }, util.pick(monthOption, 'grid', 'footer'));\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = datetime.getGridLeftAndWidth(\n this.options.daynames.length,\n this.options.narrowWeekend,\n this.options.startDayOfWeek);\n}\n\nutil.inherit(Month, View);\n\n/**\n * Name of view. for managing subview at layout view\n * @type {string}\n */\nMonth.prototype.viewName = 'month';\n\n/**\n * Get calendar array by supplied date\n * @param {string} renderMonth - month to render YYYY-MM, weeks2/3 to render YYYY-MM-DD\n * @returns {array.} calendar array\n */\nMonth.prototype._getMonthCalendar = function(renderMonth) {\n var date = new TZDate(renderMonth);\n var startDayOfWeek = this.options.startDayOfWeek || 0;\n var visibleWeeksCount = mmin(this.options.visibleWeeksCount || 0, 6);\n var workweek = this.options.workweek || false;\n var datetimeOptions, calendar;\n\n if (this.options.visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: this.options.isAlways6Week,\n workweek: workweek\n };\n }\n\n calendar = datetime.arr2dCalendar(date, datetimeOptions);\n\n return calendar;\n};\n\n/**\n * Create children view (week) and add children\n * @param {HTMLElement} container - container element to render weeks\n * @param {array.} calendar - calendar array from datetime#arr2dCalendar\n * @param {Theme} theme - theme instance\n */\nMonth.prototype._renderChildren = function(container, calendar, theme) {\n var self = this;\n var weekCount = calendar.length;\n var heightPercent = 100 / weekCount;\n var opt = this.options;\n var renderMonth = opt.renderMonth;\n var narrowWeekend = opt.narrowWeekend;\n var startDayOfWeek = opt.startDayOfWeek;\n var visibleWeeksCount = opt.visibleWeeksCount;\n var visibleScheduleCount = opt.visibleScheduleCount;\n var gridOption = opt.grid;\n var isReadOnly = opt.isReadOnly;\n\n container.innerHTML = '';\n this.children.clear();\n\n util.forEach(calendar, function(weekArr) {\n var start = new TZDate(weekArr[0]),\n end = new TZDate(weekArr[weekArr.length - 1]),\n weekdayViewContainer,\n weekdayView;\n\n weekdayViewContainer = domutil.appendHTMLElement(\n 'div', container, config.classname('month-week-item'));\n\n weekdayView = new WeekdayInMonth({\n renderMonth: renderMonth,\n heightPercent: heightPercent,\n renderStartDate: start,\n renderEndDate: end,\n narrowWeekend: narrowWeekend,\n startDayOfWeek: startDayOfWeek,\n visibleWeeksCount: visibleWeeksCount,\n visibleScheduleCount: visibleScheduleCount,\n grid: gridOption,\n scheduleHeight: parseInt(theme.month.schedule.height, 10),\n scheduleGutter: parseInt(theme.month.schedule.marginTop, 10),\n isReadOnly: isReadOnly\n }, weekdayViewContainer);\n\n self.addChild(weekdayView);\n });\n};\n\n/**\n * Render month view\n * @override\n */\nMonth.prototype.render = function() {\n var self = this,\n opt = this.options,\n vLayout = this.vLayout,\n controller = this.controller,\n daynames = opt.daynames,\n workweek = opt.workweek,\n calendar = this._getMonthCalendar(opt.renderMonth),\n scheduleFilter = opt.scheduleFilter,\n theme = controller ? controller.theme : null,\n styles = this._getStyles(theme),\n grids,\n daynameViewModel,\n baseViewModel;\n\n grids = this.grids = datetime.getGridLeftAndWidth(\n opt.daynames.length,\n opt.narrowWeekend,\n opt.startDayOfWeek\n );\n\n daynameViewModel = util.map(\n util.range(opt.startDayOfWeek, 7).concat(util.range(7)).slice(0, 7),\n function(day, index) {\n return {\n day: day,\n label: daynames[day],\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0,\n color: this._getDayNameColor(theme, day)\n };\n },\n this\n );\n\n if (workweek) {\n grids = this.grids = datetime.getGridLeftAndWidth(5, opt.narrowWeekend, opt.startDayOfWeek, workweek);\n\n daynameViewModel = util.filter(daynameViewModel, function(daynameModel) {\n return !datetime.isWeekend(daynameModel.day);\n });\n\n util.forEach(daynameViewModel, function(daynameModel, index) {\n daynameModel.width = grids[index] ? grids[index].width : 0;\n daynameModel.left = grids[index] ? grids[index].left : 0;\n });\n }\n\n baseViewModel = {\n daynames: daynameViewModel,\n styles: styles\n };\n\n vLayout.panels[0].container.innerHTML = tmpl(baseViewModel);\n\n this._renderChildren(vLayout.panels[1].container, calendar, theme);\n\n baseViewModel.panelHeight = vLayout.panels[1].getHeight();\n\n this.children.each(function(childView) {\n var start = datetime.start(childView.options.renderStartDate);\n var end = datetime.start(childView.options.renderEndDate);\n var eventsInDateRange = controller.findByDateRange(\n datetime.start(start),\n datetime.end(end),\n scheduleFilter\n );\n var dateRange = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY);\n var viewModel = {\n eventsInDateRange: eventsInDateRange,\n range: dateRange.slice(0, grids.length),\n grids: grids,\n panelHeight: baseViewModel.panelHeight,\n theme: theme\n };\n\n childView.render(viewModel);\n\n self._invokeAfterRenderSchedule(eventsInDateRange);\n });\n};\n\n/**\n * Fire 'afterRenderSchedule' event\n * @param {Array} matrices - schedule matrices from view model\n * @fires Month#afterRenderSchedule\n */\nMonth.prototype._invokeAfterRenderSchedule = function(matrices) {\n var self = this;\n util.forEachArray(matrices, function(matrix) {\n util.forEachArray(matrix, function(column) {\n util.forEachArray(column, function(scheduleViewModel) {\n if (scheduleViewModel && !scheduleViewModel.hidden) {\n /**\n * @event Month#afterRenderSchedule\n */\n self.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n });\n });\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMonth.prototype._getStyles = function(theme) {\n var styles = {};\n var dayname;\n\n if (theme) {\n dayname = theme.month.dayname;\n\n styles.borderTop = dayname.borderTop || theme.common.border;\n styles.borderLeft = dayname.borderLeft || theme.common.border;\n styles.height = dayname.height;\n styles.paddingLeft = dayname.paddingLeft;\n styles.paddingRight = dayname.paddingRight;\n styles.fontSize = dayname.fontSize;\n styles.backgroundColor = dayname.backgroundColor;\n styles.fontWeight = dayname.fontWeight;\n styles.textAlign = dayname.textAlign;\n }\n\n return styles;\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @returns {string} style - color style\n */\nMonth.prototype._getDayNameColor = function(theme, day) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = theme.common.holiday.color;\n } else if (day === 6) {\n color = theme.common.saturday.color;\n } else {\n color = theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\nmodule.exports = Month;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \\n \"\n + ((stack1 = (lookupProperty(helpers,\"monthDayname-tmpl\")||(depth0 && lookupProperty(depth0,\"monthDayname-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"monthDayname-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":12},\"end\":{\"line\":16,\"column\":40}}})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderLeft\")), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, alias3=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"daynames\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":0},\"end\":{\"line\":19,\"column\":9}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Monthday in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common.js'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n Weekday = require('../weekday'),\n baseTmpl = require('../template/month/weekdayInMonth.hbs'),\n scheduleTmpl = require('../template/month/weekdayInMonthSchedule.hbs');\nvar mfloor = Math.floor,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for WeekdayInWeek view\n * @param {number} [options.heightPercent] - height percent of view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction WeekdayInMonth(options, container) {\n Weekday.call(this, options, container);\n container.style.height = options.heightPercent + '%';\n}\n\nutil.inherit(WeekdayInMonth, Weekday);\n\n/**\n * Get schedule container element's bound properly by override\n *\n * View#getViewBound.\n * @override\n */\nWeekdayInMonth.prototype.getViewBound = function() {\n var bound = View.prototype.getViewBound.call(this);\n\n return bound;\n};\n\n/**\n * Get limit index of schedule block in current view\n * @param {number} panelHeight - panel's height for pre-calculation\n * @returns {number} limit index\n */\nWeekdayInMonth.prototype._getRenderLimitIndex = function(panelHeight) {\n var opt = this.options;\n var containerHeight = panelHeight || this.getViewBound().height;\n var gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0;\n var gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0;\n var visibleScheduleCount = opt.visibleScheduleCount || 0;\n var count;\n\n containerHeight -= (gridHeaderHeight + gridFooterHeight);\n\n count = mfloor(containerHeight / (opt.scheduleHeight + opt.scheduleGutter));\n\n if (!visibleScheduleCount) {\n visibleScheduleCount = count;\n }\n\n return mmin(count, visibleScheduleCount); // subtraction for '+n' label block\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options,\n gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0,\n gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0,\n renderLimitIdx = this._getRenderLimitIndex() + 1,\n exceedDate = this.getExceedDate(renderLimitIdx, viewModel.eventsInDateRange, viewModel.range),\n styles = this._getStyles(viewModel.theme);\n var baseViewModel;\n\n viewModel = util.extend({\n exceedDate: exceedDate\n }, viewModel);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n matrices: viewModel.eventsInDateRange,\n gridHeaderHeight: gridHeaderHeight,\n gridFooterHeight: gridFooterHeight,\n renderLimitIdx: renderLimitIdx,\n isReadOnly: opt.isReadOnly,\n styles: styles\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.render = function(viewModel) {\n var container = this.container,\n baseViewModel = this.getBaseViewModel(viewModel),\n scheduleContainer;\n\n if (!this.options.visibleWeeksCount) {\n setIsOtherMonthFlag(baseViewModel.dates, this.options.renderMonth, viewModel.theme);\n }\n\n container.innerHTML = baseTmpl(baseViewModel);\n\n scheduleContainer = domutil.find(\n config.classname('.weekday-schedules'),\n container\n );\n\n if (!scheduleContainer) {\n return;\n }\n\n scheduleContainer.innerHTML = scheduleTmpl(baseViewModel);\n\n common.setAutoEllipsis(\n config.classname('.weekday-schedule-title'),\n container,\n true\n );\n};\n\nWeekdayInMonth.prototype._beforeDestroy = function() {\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nWeekdayInMonth.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.borderTop = theme.common.border;\n styles.borderLeft = theme.common.border;\n styles.fontSize = theme.month.day.fontSize;\n styles.borderRadius = theme.month.schedule.borderRadius;\n styles.marginLeft = theme.month.schedule.marginLeft;\n styles.marginRight = theme.month.schedule.marginRight;\n styles.scheduleBulletTop = this.options.scheduleHeight / 3;\n }\n\n return styles;\n};\n\n/**\n * 현재 달이 아닌 날짜에 대해 isOtherMonth = true 플래그를 추가한다.\n * @param {Array} dates - 날짜정보 배열\n * @param {TZDate} renderMonth - 현재 렌더링중인 월 (YYYYMM)\n * @param {Theme} theme - theme instance\n */\nfunction setIsOtherMonthFlag(dates, renderMonth, theme) {\n var month = renderMonth.getMonth() + 1;\n\n util.forEach(dates, function(dateObj) {\n var isOtherMonth = dateObj.month !== month;\n dateObj.isOtherMonth = isOtherMonth;\n\n if (isOtherMonth) {\n dateObj.color = Weekday.prototype._getDayNameColor(theme, dateObj.day, dateObj.isToday, isOtherMonth);\n }\n });\n}\n\nmodule.exports = WeekdayInMonth;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"monthGridHeader-tmpl\")||(depth0 && lookupProperty(depth0,\"monthGridHeader-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"monthGridHeader-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":44},\"end\":{\"line\":14,\"column\":75}}})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":12},\"end\":{\"line\":17,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"monthGridFooter-tmpl\")||(depth0 && lookupProperty(depth0,\"monthGridFooter-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"monthGridFooter-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":44},\"end\":{\"line\":20,\"column\":75}}})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(12, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":12},\"end\":{\"line\":23,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":84},\"end\":{\"line\":7,\"column\":98}}}) : helper)))\n + \"near-month-day\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":135},\"end\":{\"line\":7,\"column\":149}}}) : helper)))\n + \"today\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":182},\"end\":{\"line\":7,\"column\":196}}}) : helper)))\n + \"extra-date\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-right:\"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderLeft\")), depth0))\n + \";\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"monthGridHeaderExceed-tmpl\")||(depth0 && lookupProperty(depth0,\"monthGridHeaderExceed-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"monthGridHeaderExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":87},\"end\":{\"line\":16,\"column\":135}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"monthGridFooterExceed-tmpl\")||(depth0 && lookupProperty(depth0,\"monthGridFooterExceed-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"monthGridFooterExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":87},\"end\":{\"line\":22,\"column\":135}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"dates\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":0},\"end\":{\"line\":26,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":80,\"column\":11}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":0},\"end\":{\"line\":79,\"column\":11}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":0},\"end\":{\"line\":78,\"column\":9}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n\"\n + ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"top\") : depth0),\"<\",((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"renderLimitIdx\")),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":4},\"end\":{\"line\":77,\"column\":13}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||alias2).call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),\"||\",(depth0 != null ? lookupProperty(depth0,\"hasMultiDates\") : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.program(23, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":8},\"end\":{\"line\":75,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":31},\"end\":{\"line\":9,\"column\":45}}}) : helper)))\n + \"weekday-exceed-left\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":32},\"end\":{\"line\":10,\"column\":46}}}) : helper)))\n + \"weekday-exceed-right\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"allday-tmpl\")||(depth0 && lookupProperty(depth0,\"allday-tmpl\"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":29,\"column\":47},\"end\":{\"line\":29,\"column\":70}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias3,(lookupProperty(helpers,\"or\")||(depth0 && lookupProperty(depth0,\"or\"))||alias4).call(alias3,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"isReadOnly\")),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isReadOnly\") : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":22},\"end\":{\"line\":30,\"column\":60}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(21, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":12},\"end\":{\"line\":30,\"column\":194}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":146},\"end\":{\"line\":14,\"column\":160}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginLeft\")), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginRight\")), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"21\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \";\n},\"23\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"category\") : stack1),\"===\",\"time\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.program(33, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":33,\"column\":12},\"end\":{\"line\":74,\"column\":19}}})) != null ? stack1 : \"\");\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \\n \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":54,\"column\":53},\"end\":{\"line\":54,\"column\":74}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"25\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \"\\n\";\n},\"29\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"\\n\";\n},\"31\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n\";\n},\"33\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"schedule-tmpl\")||(depth0 && lookupProperty(depth0,\"schedule-tmpl\"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":72,\"column\":65},\"end\":{\"line\":72,\"column\":90}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"34\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginLeft\")), depth0))\n + \";\\n\";\n},\"36\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginRight\")), depth0))\n + \";\\n\";\n},\"38\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"40\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"matrices\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":81,\"column\":11}}})) != null ? stack1 : \"\");\n},\"useData\":true});","/**\n * @fileoverview Click handler for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Month} [monthView] - Month view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction MonthClick(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.monthView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * @fires MonthClick#clickMore\n * @param {object} clickEvent - click event object\n */\nMonthClick.prototype._onClick = function(clickEvent) {\n var self = this,\n moreElement,\n scheduleCollection = this.baseController.schedules,\n blockElement = domutil.closest(clickEvent.target, config.classname('.weekday-schedule-block'))\n || domutil.closest(clickEvent.target, config.classname('.month-more-schedule'));\n\n moreElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-exceed-in-month')\n );\n\n if (moreElement) {\n self.fire('clickMore', {\n date: datetime.parse(domutil.getData(moreElement, 'ymd')),\n target: moreElement,\n ymd: domutil.getData(moreElement, 'ymd')\n });\n }\n\n if (blockElement) {\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events AlldayClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(MonthClick);\n\nmodule.exports = MonthClick;\n","/**\n * @fileoverview Creation handler for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar array = require('../../common/array');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar getMousePosDate = require('./core');\nvar Guide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n * @param {Options} [options] - calendar Options\n */\nfunction MonthCreation(dragHandler, monthView, baseController, options) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * Cache for dragging session\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthCreationGuide}\n */\n this.guide = new Guide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(monthView.container, 'dblclick', this._onDblClick, this);\n }\n}\n\n/**\n * Destructor\n */\nMonthCreation.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.guide.destroy();\n\n if (this.monthView && this.monthView.container) {\n domevent.off(this.monthView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.monthView = this.baseController =\n this.getScheduleData = this._cache = this.guide = null;\n};\n\n/**\n * Fire before create schedule\n * @fires {MonthCreation#beforeCreateSchedule}\n * @param {object} eventData - cache data from single dragging session\n */\nMonthCreation.prototype._createSchedule = function(eventData) {\n /**\n * @event {MonthCreation#beforeCreateSchedule}\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: eventData.isAllDay,\n start: eventData.start,\n end: eventData.end,\n guide: this.guide.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {object} dragStartEvent - dragStart event data\n */\nMonthCreation.prototype._onDragStart = function(dragStartEvent) {\n var eventData;\n\n if (!isElementWeekdayGrid(dragStartEvent.target)) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosDate(this.monthView);\n\n eventData = this.getScheduleData(dragStartEvent.originEvent);\n\n this._cache = {\n start: new TZDate(eventData.date)\n };\n\n /**\n * @event {MonthCreation#monthCreationDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragstart', eventData);\n};\n\n/**\n * Drag event handler\n * @fires {MonthCreation#monthCreationDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthCreation.prototype._onDrag = function(dragEvent) {\n var eventData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEvent.originEvent);\n\n if (!eventData) {\n return;\n }\n\n /**\n * @event {MonthCreation#monthCreationDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDrag', eventData);\n};\n\n/**\n * DragEnd event handler\n * @fires {MonthCreation#monthCreationDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthCreation.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var eventData;\n var times;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (eventData) {\n cache.end = new TZDate(eventData.date);\n cache.isAllDay = true;\n\n times = [\n cache.start,\n cache.end\n ].sort(array.compare.num.asc);\n\n cache.start = new TZDate(times[0]);\n cache.end = datetime.end(times[1]);\n\n this._createSchedule(cache);\n }\n\n /**\n * @event {MonthCreation#monthCreationDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragend', eventData);\n\n this.getScheduleData = this._cache = null;\n};\n\n/**\n * Dblclick event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onDblClick = function(e) {\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target)) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e);\n\n this.fire('monthCreationClick', eventData);\n\n range = this._adjustStartAndEndTime(new TZDate(eventData.date), new TZDate(eventData.date));\n\n this._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n\n this._requestOnClick = false;\n};\n\n/**\n * Click event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onClick = function(e) {\n var self = this;\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target) || this._disableClick) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('monthCreationClick', eventData);\n\n range = self._adjustStartAndEndTime(new TZDate(eventData.date), new TZDate(eventData.date));\n\n self._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Adjust time to our o'clock\n * @param {TZDate} start - start time\n * @param {TZDate} end - end time\n * @returns {Object} start and end\n */\nMonthCreation.prototype._adjustStartAndEndTime = function(start, end) {\n var now = new TZDate();\n var hours = now.getHours();\n var minutes = now.getMinutes();\n\n // adjust start to less time. Adjusting had been greater time in monthly view when clicking grid\n if (minutes <= 30) {\n minutes = 0;\n } else {\n minutes = 30;\n }\n start.setHours(hours, minutes, 0, 0);\n end.setHours(hours + 1, minutes, 0, 0);\n\n return {\n start: start,\n end: end\n };\n};\n\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nMonthCreation.prototype.invokeCreationClick = function(schedule) {\n var eventData = {\n model: schedule\n };\n\n this.fire('monthCreationClick', eventData);\n\n this._createSchedule({\n start: schedule.start,\n end: schedule.end,\n isAllDay: schedule.isAllDay,\n triggerEvent: 'manual'\n });\n};\n\n/**\n * Returns whether the given element is Weekday-Schedule.\n * @param {HTMLElement} el - target element\n * @returns {boolean}\n */\nfunction isElementWeekdayGrid(el) {\n return domutil.closest(el, config.classname('.weekday-grid'))\n && !domutil.closest(el, config.classname('.weekday-exceed-in-month'));\n}\n\nutil.CustomEvents.mixin(MonthCreation);\n\nmodule.exports = MonthCreation;\n","/**\n * @fileoverview Creation guide module for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthCreation} monthCreation - instance of MonthCreation\n */\nfunction MonthCreationGuide(monthCreation) {\n /**\n * @type {MonthCreation}\n */\n this.monthCreation = monthCreation;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthCreation.on({\n monthCreationDragstart: this._createGuideElement,\n monthCreationDrag: this._onDrag,\n monthCreationDragend: this._onDragEnd,\n monthCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthCreationGuide.prototype.destroy = function() {\n this.monthCreation.off(this);\n\n if (this.guide) {\n this.guide.destroy();\n }\n\n this.guide = this.monthCreation = null;\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._createGuideElement = function(dragStartEvent) {\n var options = {\n isCreationMode: true,\n height: '100%',\n top: 0\n };\n\n this.guide = new MonthGuide(options, this.monthCreation.monthView);\n this.guide.start(dragStartEvent);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthCreationGuide.prototype._onDragEnd = function() {\n // Do nothing. User calls destroy directly.\n this.guide = null;\n};\n\nmodule.exports = MonthCreationGuide;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, alias2=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isAllDay\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.program(6, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":12},\"end\":{\"line\":13,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
     
    \\n
    \\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"allday-tmpl\")||(depth0 && lookupProperty(depth0,\"allday-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":16},\"end\":{\"line\":10,\"column\":38}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":16},\"end\":{\"line\":12,\"column\":36}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isCreationMode\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":17,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Module for resize schedule in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n getMousePosData = require('./core'),\n MonthResizeGuide = require('./resizeGuide'),\n TZDate = require('../../common/timezone').Date;\n\nvar common = require('../../common/common');\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthResize(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthResizeGuide}\n */\n this.guide = new MonthResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthResize.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Fire event for update model\n * @fires {MonthResize#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthResize.prototype._updateSchedule = function(scheduleCache) {\n // You can not change the start date of the event. Only the end time can be changed.\n var newEnd = datetime.end(new TZDate(scheduleCache.end)),\n schedule = scheduleCache.schedule;\n var changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnd}\n );\n\n /**\n * @event MonthResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: new TZDate(schedule.getStarts()),\n end: newEnd\n });\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthResize#monthResizeDragstart}\n * @param {object} dragStartEvent - drag start event data\n */\nMonthResize.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID, schedule,\n scheduleData;\n\n if (!domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return;\n }\n\n target = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\n if (!target) {\n return;\n }\n\n modelID = domutil.getData(target, 'id');\n schedule = this.baseController.schedules.items[modelID];\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.target = target;\n scheduleData.model = schedule;\n\n this._cache = {\n schedule: schedule,\n target: target,\n start: new TZDate(scheduleData.date)\n };\n\n /**\n * @event {MonthCreation#monthResizeDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthResizeDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthResize.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEvent.originEvent);\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthResize#monthResizeDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDrag', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthResize.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var scheduleData;\n var start, end;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n start = new TZDate(cache.schedule.getStarts());\n end = new TZDate(scheduleData.date);\n cache.end = end;\n\n if (start <= cache.end) {\n this._updateSchedule(cache);\n }\n }\n\n /**\n * @event {MonthResize#monthResizeDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthResize);\n\nmodule.exports = MonthResize;\n","/**\n * @fileoverview Module for modification of guide element in schedule resize\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthResize} monthResize - month/resize module instance\n */\nfunction MonthResizeGuide(monthResize) {\n /**\n * @type {MonthResize}\n */\n this.monthResize = monthResize;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthResize.on({\n monthResizeDragstart: this._onDragStart,\n monthResizeDrag: this._onDrag,\n monthResizeDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthResizeGuide.prototype.destroy = function() {\n this.monthResize.off(this);\n this.guide.destroy();\n\n this.guide = this.monthResize = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthResizeGuide.prototype._hideScheduleBlocks = function(modelID) {\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthResize.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n el.style.display = 'none';\n });\n};\n\n/**\n * Show element blocks\n */\nMonthResizeGuide.prototype._showScheduleBlocks = function() {\n util.forEach(this.elements, function(el) {\n el.style.display = 'block';\n });\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthResize\n */\nMonthResizeGuide.prototype._onDragStart = function(dragStartEvent) {\n this.guide = new MonthGuide({\n isResizeMode: true\n }, this.monthResize.monthView);\n\n this.guide.start(dragStartEvent);\n\n this._hideScheduleBlocks(dragStartEvent.model.cid());\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - event data from MonthCreation\n */\nMonthResizeGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthResizeGuide.prototype._onDragEnd = function() {\n this._showScheduleBlocks();\n\n this.guide.destroy();\n this.elements = this.guide = null;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\nmodule.exports = MonthResizeGuide;\n","/**\n * @fileoverview Move handler for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n getMousePosData = require('./core'),\n MonthMoveGuide = require('./moveGuide'),\n TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthMove(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthMoveGuide}\n */\n this.guide = new MonthMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthMove.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Update target schedule\n * @fires {MonthMove#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthMove.prototype.updateSchedule = function(scheduleCache) {\n var schedule = scheduleCache.model;\n var duration = schedule.duration();\n var startDateRaw = datetime.raw(schedule.start);\n var dragEndTime = new TZDate(scheduleCache.end);\n var newStartDate = new TZDate(dragEndTime);\n\n newStartDate.setHours(startDateRaw.h, startDateRaw.m, startDateRaw.s, startDateRaw.ms);\n\n /**\n * @event MonthMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: {\n start: newStartDate,\n end: new TZDate(newStartDate).addMilliseconds(duration)\n },\n start: newStartDate,\n end: new TZDate(newStartDate).addMilliseconds(duration)\n });\n};\n\n/**\n * Get schedule block to clone for month guide effect\n * @param {HTMLElement} target - target element that related with drag schedule\n * @returns {HTMLElement} element to create guide effect\n */\nMonthMove.prototype.getMonthScheduleBlock = function(target) {\n var blockSelector = config.classname('.weekday-schedule-block');\n\n return domutil.closest(target, blockSelector);\n};\n\n/**\n * Get schedule block from more layer\n * @param {HTMLElement} target - element to check\n * @returns {HTMLElement} schedule element\n */\nMonthMove.prototype.getMoreLayerScheduleBlock = function(target) {\n var className = config.classname('.month-more-schedule');\n\n return domutil.closest(target, className);\n};\n\n/**\n * Check handler has permission to handle fired schedule\n * @fires {MonthMove#monthMoveStart_from_morelayer}\n * @param {HTMLElement} target - target element of fired schedule\n * @returns {(string|null)} model instance ID related with schedule. if handle\n * has not permission to handle the schedule then return null.\n */\nMonthMove.prototype.hasPermissionToHandle = function(target) {\n var modelID = null;\n var blockElement;\n\n if (domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return null;\n }\n\n blockElement = this.getMonthScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n } else {\n blockElement = this.getMoreLayerScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n /**\n * Fire for notificate that the drag schedule start at more layer view.\n * @event {MonthMove#monthMoveStart_from_morelayer}\n */\n this.fire('monthMoveStart_from_morelayer');\n }\n }\n\n return modelID;\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthMove#monthMoveDragstart}\n * @param {object} dragStartEvent - drag start schedule data\n */\nMonthMove.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID = this.hasPermissionToHandle(target),\n model = this.baseController.schedules.items[modelID],\n scheduleData;\n\n if (!modelID || !model || model.isReadOnly || model.isPending) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.originEvent = dragStartEvent.originEvent;\n scheduleData.target = this.getMonthScheduleBlock(target);\n scheduleData.model = model;\n\n this._cache = {\n model: model,\n target: target,\n start: new TZDate(Number(scheduleData.date))\n };\n\n /**\n * @event {MonthMove#monthMoveDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthMoveDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthMove#monthMoveDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthMove.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = util.extend({\n originEvent: dragEvent.originEvent\n }, this.getScheduleData(dragEvent.originEvent));\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthMove#monthMoveDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDrag', scheduleData);\n};\n\n/**\n * Event handler for Drag#dragEnd\n * @fires {MonthMove#monthMoveDragend}\n * @param {object} dragEndEvent - dragend event data\n */\nMonthMove.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n cache.end = new TZDate(scheduleData.date);\n this.updateSchedule(cache);\n }\n\n /**\n * @event {MonthResize#monthMoveDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthMove);\n\nmodule.exports = MonthMove;\n","/**\n * @fileoverview Module for modification of guide element for move in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent'),\n FloatingLayer = require('../../common/floatingLayer'),\n tmpl = require('./moveGuide.hbs'),\n Schedule = require('../../model/schedule');\n\n/**\n * @constructor\n * @param {MonthMove} monthMove - month/move module instance\n */\nfunction MonthMoveGuide(monthMove) {\n /**\n * @type {MonthMove}\n */\n this.monthMove = monthMove;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = null;\n\n monthMove.on({\n monthMoveDragstart: this._onDragStart,\n monthMoveDrag: this._onDrag,\n monthMoveDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthMoveGuide.prototype.destroy = function() {\n this.monthMove.off(this);\n this._clearGridBgColor();\n\n if (this.layer) {\n this.layer.destroy();\n }\n\n if (this.element) {\n domutil.remove(this.element);\n }\n\n this.monthMove = this.elements = this.layer = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthMove.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nMonthMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\n/**\n * Clear background color for filled grid element.\n */\nMonthMoveGuide.prototype._clearGridBgColor = function() {\n var selector = config.classname('.weekday-filled'),\n className = config.classname('weekday-filled'),\n beforeGridElement = domutil.find(selector,\n this.monthMove.monthView.container);\n\n if (beforeGridElement) {\n domutil.removeClass(beforeGridElement, className);\n }\n};\n\n/**\n * Fill background color of date grids relatied with model updates.\n * @param {object} dragEvent - drag event data from MonthMoveGuide#_onDrag\n */\nMonthMoveGuide.prototype._updateGridBgColor = function(dragEvent) {\n var gridElements = domutil.find(config.classname('.weekday-grid-line'), this.monthMove.monthView.container, true),\n className = config.classname('weekday-filled'),\n targetIndex = (dragEvent.x + (dragEvent.sizeX * dragEvent.y));\n\n this._clearGridBgColor();\n\n if (!gridElements || !gridElements[targetIndex]) {\n return;\n }\n\n domutil.addClass(gridElements[targetIndex], className);\n};\n\n/**\n * Handler for MonthMove#dragStart\n * @param {object} dragStartEvent - dragStart schedule data object\n */\nMonthMoveGuide.prototype._onDragStart = function(dragStartEvent) {\n var monthView = this.monthMove.monthView,\n firstWeekdayView = monthView.children.single(),\n weekdayOptions = firstWeekdayView.options,\n widthPercent = 100 / firstWeekdayView.getRenderDateRange().length,\n height = weekdayOptions.scheduleGutter + weekdayOptions.scheduleHeight,\n container = monthView.container,\n mousePos = domevent.getMousePosition(dragStartEvent.originEvent, container),\n model = dragStartEvent.model,\n layer = new FloatingLayer(null, container);\n\n this._hideOriginScheduleBlocks(model.cid());\n\n this.layer = layer;\n layer.setSize(widthPercent + '%', height);\n layer.setPosition(mousePos[0], mousePos[1]);\n layer.setContent(tmpl({\n model: util.extend(\n Schedule.create(model),\n model\n ),\n styles: {\n scheduleHeight: weekdayOptions.scheduleHeight,\n scheduleBulletTop: weekdayOptions.scheduleHeight / 3,\n borderRadius: monthView.controller.theme.month.schedule.borderRadius\n }\n }));\n layer.show();\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n};\n\n/**\n * Handler for MonthMove#drag\n * @param {object} dragEvent - drag event data object\n */\nMonthMoveGuide.prototype._onDrag = function(dragEvent) {\n var container = this.monthMove.monthView.container,\n mousePos = domevent.getMousePosition(\n dragEvent.originEvent,\n container\n );\n\n this._updateGridBgColor(dragEvent);\n\n if (!this.layer) {\n return;\n }\n\n this.layer.setPosition(mousePos[0], mousePos[1]);\n};\n\n/**\n * Handler for MonthMove#dragEnd\n */\nMonthMoveGuide.prototype._onDragEnd = function() {\n this._showOriginScheduleBlocks();\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._clearGridBgColor();\n this.layer.destroy();\n this.layer = null;\n};\n\nmodule.exports = MonthMoveGuide;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-left:3px solid \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n \";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":110},\"end\":{\"line\":16,\"column\":124}}}) : helper)))\n + \"weekday-schedule-title-focused\\\"\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"allday-tmpl\")||(depth0 && lookupProperty(depth0,\"allday-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":12},\"end\":{\"line\":18,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":12},\"end\":{\"line\":20,\"column\":33}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":4},\"end\":{\"line\":15,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.program(9, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":17,\"column\":8},\"end\":{\"line\":21,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Floating layer for displaying schedule in specific date\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar OUT_PADDING = 5;\nvar VIEW_MIN_WIDTH = 280;\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domevent = require('../../common/domevent'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n FloatingLayer = require('../../common/floatingLayer'),\n common = require('../../common/common'),\n tmpl = require('../template/month/more.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {object} [options.moreLayerSize] - more layer size\n * @param {object} [options.moreLayerSize.width=null] - css width value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {object} [options.moreLayerSize.height=null] - css height value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {HTMLElement} container = container element\n * @param {Theme} theme - theme instance\n */\nfunction More(options, container, theme) {\n View.call(this, container);\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n moreLayerSize: {\n width: null,\n height: null\n },\n scheduleHeight: parseInt(theme.month.schedule.height, 10) || 18,\n scheduleGutter: parseInt(theme.month.schedule.marginTop, 10) || 2,\n scheduleBulletTop: (parseInt(theme.month.schedule.height, 10) || 18) / 3,\n borderRadius: theme.month.schedule.borderRadius\n }, options);\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(More, View);\n\n/**\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nMore.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n var className = config.classname('month-more-close');\n\n if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Mousedown event handler for hiding more layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nMore.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n moreLayer = domutil.closest(target, config.classname('.month-more'));\n\n if (moreLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Get new position for more layer by +n element itself\n * @param {HTMLElement} target - parent grid-line element of +n element\n * @param {HTMLElement} weekItem - weekItem container element\n * @returns {number[]} new position of more layer\n */\nMore.prototype._getRenderPosition = function(target, weekItem) {\n var pos = domevent.getMousePosition({\n clientX: domutil.getPosition(target)[0],\n clientY: domutil.getPosition(weekItem)[1]\n }, this.container);\n var containerSize = domutil.getSize(this.container);\n var left = pos[0] - OUT_PADDING;\n var top = pos[1] - OUT_PADDING;\n\n left = common.ratio(containerSize[0], 100, left);\n top = common.ratio(containerSize[1], 100, top);\n\n return [left, top];\n};\n\n/**\n * @override\n */\nMore.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nMore.prototype.render = function(viewModel) {\n var target = domutil.closest(viewModel.target, config.classname('.weekday-grid-line'));\n var weekItem = domutil.closest(target, config.classname('.month-week-item'));\n var layer = this.layer;\n var self = this;\n var pos = this._getRenderPosition(target, weekItem);\n var minHeight = domutil.getSize(weekItem)[1] + (OUT_PADDING * 2);\n var width = target.offsetWidth + (OUT_PADDING * 2);\n var opt = this.options;\n var optMoreLayerSize = opt.moreLayerSize;\n var styles = this._getStyles(this.theme);\n var maxVisibleSchedulesInLayer = 10;\n var height = '';\n var containerSize = domutil.getSize(this.container);\n var calWidth = 0;\n var calHeight = 0;\n var isOverWidth = false;\n var isOverHeight = false;\n var leftPos = pos[0];\n var topPos = pos[1];\n\n this._viewModel = util.extend(viewModel, {\n scheduleGutter: opt.scheduleGutter,\n scheduleHeight: opt.scheduleHeight,\n scheduleBulletTop: opt.scheduleBulletTop,\n borderRadius: opt.borderRadius,\n styles: styles\n });\n\n width = Math.max(width, VIEW_MIN_WIDTH);\n height = parseInt(styles.titleHeight, 10);\n height += parseInt(styles.titleMarginBottom, 10);\n if (viewModel.schedules.length <= maxVisibleSchedulesInLayer) {\n height += (opt.scheduleGutter + opt.scheduleHeight) * viewModel.schedules.length;\n } else {\n height += (opt.scheduleGutter + opt.scheduleHeight) * maxVisibleSchedulesInLayer;\n }\n height += parseInt(styles.paddingBottom, 10);\n height += OUT_PADDING; // for border\n\n if (optMoreLayerSize.width) {\n width = optMoreLayerSize.width;\n }\n\n if (optMoreLayerSize.height) {\n height = optMoreLayerSize.height;\n }\n\n if (isNaN(height) || height < minHeight) {\n height = minHeight;\n }\n\n layer.setContent(tmpl(viewModel));\n\n calWidth = leftPos * containerSize[0] / 100;\n calHeight = topPos * containerSize[1] / 100;\n isOverWidth = calWidth + width >= containerSize[0];\n isOverHeight = calHeight + height >= containerSize[1];\n leftPos = leftPos + '%';\n topPos = topPos + '%';\n\n if (isOverWidth && isOverHeight) {\n layer.setLTRB({\n right: 0,\n bottom: 0\n });\n } else if (!isOverWidth && isOverHeight) {\n layer.setLTRB({\n left: leftPos,\n bottom: 0\n });\n } else if (isOverWidth && !isOverHeight) {\n layer.setLTRB({\n right: 0,\n top: topPos\n });\n } else {\n layer.setPosition(leftPos, topPos);\n }\n\n layer.setSize(width, height);\n\n layer.show();\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Hide layer\n */\nMore.prototype.hide = function() {\n this.layer.hide();\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nMore.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(tmpl(this._viewModel));\n }\n};\n\n/**\n * Return more layer root element\n * @returns {HTMLElement} root element\n */\nMore.prototype.getMoreViewElement = function() {\n return domutil.find(config.classname('.month-more'), this.layer.container);\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMore.prototype._getStyles = function(theme) {\n var styles = {};\n var listHeight = '';\n\n if (theme) {\n styles.border = theme.month.moreView.border || theme.common.border;\n styles.boxShadow = theme.month.moreView.boxShadow;\n styles.backgroundColor = theme.month.moreView.backgroundColor || theme.common.backgroundColor;\n styles.paddingBottom = theme.month.moreView.paddingBottom;\n styles.titleHeight = theme.month.moreViewTitle.height;\n styles.titleMarginBottom = theme.month.moreViewTitle.marginBottom;\n styles.titleBackgroundColor = theme.month.moreViewTitle.backgroundColor;\n styles.titleBorderBottom = theme.month.moreViewTitle.borderBottom;\n styles.titlePadding = theme.month.moreViewTitle.padding;\n styles.listPadding = theme.month.moreViewList.padding;\n listHeight = 'calc(100%';\n\n if (parseInt(styles.titleHeight, 10)) {\n listHeight += ' - ' + styles.titleHeight;\n }\n if (parseInt(styles.titleMarginBottom, 10)) {\n listHeight += ' - ' + styles.titleMarginBottom;\n }\n listHeight += ')';\n\n styles.listHeight = listHeight;\n }\n\n return styles;\n};\n\nmodule.exports = More;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),\"||\",(depth0 != null ? lookupProperty(depth0,\"hasMultiDates\") : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":8},\"end\":{\"line\":65,\"column\":15}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"allday-tmpl\")||(depth0 && lookupProperty(depth0,\"allday-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":20},\"end\":{\"line\":20,\"column\":43}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"category\") : stack1),\"===\",\"time\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.program(17, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":12},\"end\":{\"line\":64,\"column\":19}}})) != null ? stack1 : \"\");\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \\n \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":42,\"column\":53},\"end\":{\"line\":42,\"column\":74}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \"\\n \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n \";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"schedule-tmpl\")||(depth0 && lookupProperty(depth0,\"schedule-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":62,\"column\":65},\"end\":{\"line\":62,\"column\":90}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":115},\"end\":{\"line\":47,\"column\":129}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginLeft\")), depth0))\n + \";\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginRight\")), depth0))\n + \";\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (lookupProperty(helpers,\"monthMoreTitleDate-tmpl\")||(depth0 && lookupProperty(depth0,\"monthMoreTitleDate-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"date\") : depth0),(depth0 != null ? lookupProperty(depth0,\"dayname\") : depth0),{\"name\":\"monthMoreTitleDate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":58},\"end\":{\"line\":4,\"column\":100}}})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n
    \\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedules\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":8},\"end\":{\"line\":66,\"column\":17}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});","/* eslint complexity: 0 */\n/**\n * @fileoverview Helpers for handlebar templates.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Handlebars = require('handlebars-template-loader/runtime');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar config = require('../../config');\nvar mmax = Math.max;\nvar SIXTY_MINUTES = 60;\nvar helpers = {\n /**\n * Stamp supplied object\n *\n * Commonly use for rendering object's unique ID to rendered view\n * @param {object} obj - object to stamp\n * @returns {number} stamp value\n */\n 'stamp': function(obj) {\n return util.stamp(obj);\n },\n\n /**\n * Whether supplied object are equal?\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} result of operation\n */\n 'equal': function(a, b) {\n return a === b;\n },\n\n /**\n * OR\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} or\n */\n 'or': function(a, b) {\n return a || b;\n },\n\n /**\n * AND\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} or\n */\n 'and': function(a, b) {\n return a && b;\n },\n\n /**\n * Compare object or apply logical operation by customizable oper parameter\n * @param {*} a - a\n * @param {string} oper - operator ex) '==', '<'\n * @param {*} b - b\n * @param {Handlebars} options - handlebar options\n * @returns {boolean} result of operation\n */\n 'fi': function(a, oper, b, options) {\n switch (oper) {\n case '==':\n return (a == b) ? options.fn(this) : options.inverse(this); // eslint-disable-line\n case '===':\n return (a === b) ? options.fn(this) : options.inverse(this);\n case '!==':\n return (a !== b) ? options.fn(this) : options.inverse(this);\n case '<':\n return (a < b) ? options.fn(this) : options.inverse(this);\n case '||':\n return (a || b) ? options.fn(this) : options.inverse(this);\n default:\n throw new Error('Not match operation');\n }\n },\n\n /**\n * Get hhmm formatted time str\n * @param {Date} date - date object\n * @returns {string} formatted value\n */\n 'hhmm': function(date) {\n return datetime.format(date, 'HH:mm');\n },\n\n /**\n * Get `width` stylesheet string\n * @param {number} width - width percentage\n * @returns {string} css style part\n */\n 'common-width': function(width) {\n return getElSize(width, '%', 'width');\n },\n\n /**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\n 'grid-left': function(viewModel, grids) {\n return getElLeft(viewModel, grids);\n },\n\n /**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\n 'grid-width': function(viewModel, grids) {\n return getElWidth(viewModel, grids);\n },\n\n /**\n * Use in time.hbs\n * @param {ScheduleViewModel} viewModel viewModel\n * @returns {string} element size css class\n */\n 'time-scheduleBlock': function(viewModel) {\n var top = getElSize(viewModel.top, 'px', 'top'),\n left = getElSize(viewModel.left, '%', 'left'),\n width = getElSize(viewModel.width, '%', 'width'),\n height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'month-scheduleBlock': function(viewModel, grids, blockHeight, paddingTop) {\n var top = getElSize(((viewModel.top - 1) * blockHeight) + paddingTop, 'px', 'top');\n var left = getElSize(grids[viewModel.left] ? grids[viewModel.left].left : 0, '%', 'left');\n var width = getElSize(getElWidth(viewModel, grids), '%', 'width');\n var height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'holiday': function(day) {\n var cssClass = '';\n\n if (day === 0) {\n cssClass = config.classname('holiday-sun');\n }\n\n if (day === 6) {\n cssClass = config.classname('holiday-sat');\n }\n\n return cssClass;\n },\n\n /**\n * Add supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'add': function(a, b) {\n return a + b;\n },\n\n /**\n * Multiply supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'multiply': function(a, b) {\n return a * b;\n },\n\n /**\n * Divide supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'divide': function(a, b) {\n return a / b;\n },\n\n /**\n * Subtract supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'subtract': function(a, b) {\n return a - b;\n },\n\n 'getRight': function(a, b) {\n return mmax(0, 100 - (a + b));\n },\n\n /**\n * Get css prefix in global configuration\n * @returns {string} css prefix\n */\n 'CSS_PREFIX': function() {\n return config.cssPrefix;\n },\n\n 'reverse': function(array) {\n return array.slice().reverse();\n },\n\n /**********\n * Default schedule template\n **********/\n\n 'milestone-tmpl': function(model) {\n var icon = config.classname('icon');\n var iconName = config.classname('ic-milestone');\n\n return '' + common.stripTags(model.title) + '';\n },\n\n 'milestoneTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return 'Milestone';\n },\n\n 'task-tmpl': function(model) {\n return '#' + model.title;\n },\n\n 'taskTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return 'Task';\n },\n\n 'alldayTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return 'All Day';\n },\n\n 'allday-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'time-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'goingDuration-tmpl': function(model) {\n var goingDuration = model.goingDuration;\n var hour = parseInt(goingDuration / SIXTY_MINUTES, 10);\n var minutes = goingDuration % SIXTY_MINUTES;\n\n return 'GoingTime ' + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n },\n\n 'comingDuration-tmpl': function(model) {\n var goingDuration = model.goingDuration;\n var hour = parseInt(goingDuration / SIXTY_MINUTES, 10);\n var minutes = goingDuration % SIXTY_MINUTES;\n\n return 'ComingTime ' + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n },\n\n 'monthMoreTitleDate-tmpl': function(date, dayname) {\n var classDay = config.classname('month-more-title-day');\n var classDayLabel = config.classname('month-more-title-day-label');\n var day = util.pick(date.split('.'), 2);\n\n return '' + day + ' ' + dayname + '';\n },\n\n 'monthMoreClose-tmpl': function() {\n return '';\n },\n\n 'monthGridHeader-tmpl': function(model) {\n var date = parseInt(model.date.split('-')[2], 10);\n var classNames = [];\n\n classNames.push(config.classname('weekday-grid-date'));\n if (model.isToday) {\n classNames.push(config.classname('weekday-grid-date-decorator'));\n }\n\n return '' + date + '';\n },\n\n 'monthGridHeaderExceed-tmpl': function(hiddenSchedules) {\n var className = config.classname('weekday-grid-more-schedules');\n\n return '' + hiddenSchedules + ' more';\n },\n\n 'monthGridFooter-tmpl': function() {\n return '';\n },\n\n /* eslint no-unused-vars: 0 */\n 'monthGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '';\n },\n\n 'monthDayname-tmpl': function(model) {\n return model.label;\n },\n\n 'weekDayname-tmpl': function(model) {\n var classDate = config.classname('dayname-date');\n var className = config.classname('dayname-name');\n\n return '' + model.date + '  ' + model.dayName + '';\n },\n\n 'weekGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '+' + hiddenSchedules;\n },\n\n 'dayGridTitle-tmpl': function(viewName) {\n var tmpl = Handlebars.helpers[viewName + 'Title-tmpl'];\n if (tmpl) {\n return tmpl(viewName);\n }\n\n return viewName;\n },\n\n 'schedule-tmpl': function(model) {\n var tmpl = Handlebars.helpers[model.category + '-tmpl'];\n if (tmpl) {\n return tmpl(model);\n }\n\n return '';\n },\n\n 'collapseBtnTitle-tmpl': function() {\n var iconName = config.classname('icon');\n var closeIconName = config.classname('ic-arrow-solid-top');\n\n return '';\n },\n\n 'timezoneDisplayLabel-tmpl': function(timezoneOffset, displayLabel) {\n var gmt, hour, minutes;\n\n if (util.isUndefined(displayLabel)) {\n gmt = timezoneOffset < 0 ? '-' : '+';\n hour = Math.abs(parseInt(timezoneOffset / SIXTY_MINUTES, 10));\n minutes = Math.abs(timezoneOffset % SIXTY_MINUTES);\n displayLabel = gmt + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n }\n\n return displayLabel;\n },\n\n 'timegridDisplayPrimayTime-tmpl': function(time) {\n /* TODO: 삭제 필요 (will be deprecated) */\n return Handlebars.helpers['timegridDisplayPrimaryTime-tmpl'](time);\n },\n\n 'timegridDisplayPrimaryTime-tmpl': function(time) {\n var hour = time.hour;\n var meridiem = hour >= 12 ? 'pm' : 'am';\n\n if (hour > 12) {\n hour = hour - 12;\n }\n\n return hour + ' ' + meridiem;\n },\n\n 'timegridDisplayTime-tmpl': function(time) {\n return datetime.leadingZero(time.hour, 2) + ':' + datetime.leadingZero(time.minutes, 2);\n },\n\n 'timegridCurrentTime-tmpl': function(timezone) {\n var templates = [];\n\n if (timezone.dateDifference) {\n templates.push('[' + timezone.dateDifferenceSign + timezone.dateDifference + ']
    ');\n }\n\n templates.push(datetime.format(timezone.hourmarker, 'HH:mm'));\n\n return templates.join('');\n },\n\n 'popupIsAllDay-tmpl': function() {\n return 'All day';\n },\n\n 'popupStateFree-tmpl': function() {\n return 'Free';\n },\n\n 'popupStateBusy-tmpl': function() {\n return 'Busy';\n },\n\n 'titlePlaceholder-tmpl': function() {\n return 'Subject';\n },\n\n 'locationPlaceholder-tmpl': function() {\n return 'Location';\n },\n\n 'startDatePlaceholder-tmpl': function() {\n return 'Start date';\n },\n\n 'endDatePlaceholder-tmpl': function() {\n return 'End date';\n },\n 'popupSave-tmpl': function() {\n return 'Save';\n },\n 'popupUpdate-tmpl': function() {\n return 'Update';\n },\n 'popupDetailDate-tmpl': function(isAllDay, start, end) {\n var isSameDate = datetime.isSameDate(start, end);\n var endFormat = (isSameDate ? '' : 'YYYY.MM.DD ') + 'hh:mm tt';\n\n if (isAllDay) {\n return datetime.format(start, 'YYYY.MM.DD') + (isSameDate ? '' : ' - ' + datetime.format(end, 'YYYY.MM.DD'));\n }\n\n return (datetime.format(start, 'YYYY.MM.DD hh:mm tt') + ' - ' + datetime.format(end, endFormat));\n },\n 'popupDetailLocation-tmpl': function(schedule) {\n return schedule.location;\n },\n 'popupDetailUser-tmpl': function(schedule) {\n return (schedule.attendees || []).join(', ');\n },\n 'popupDetailState-tmpl': function(schedule) {\n return schedule.state || 'Busy';\n },\n 'popupDetailRepeat-tmpl': function(schedule) {\n return schedule.recurrenceRule;\n },\n 'popupDetailBody-tmpl': function(schedule) {\n return schedule.body;\n },\n 'popupEdit-tmpl': function() {\n return 'Edit';\n },\n 'popupDelete-tmpl': function() {\n return 'Delete';\n }\n};\n\n/**\n * Get CSS syntax for element size\n * @param {number} value - size value to apply element\n * @param {string} postfix - postfix string ex) px, em, %\n * @param {string} prefix - property name ex) width, height\n * @returns {string} CSS syntax\n */\nfunction getElSize(value, postfix, prefix) {\n prefix = prefix || '';\n if (util.isNumber(value)) {\n return prefix + ':' + value + postfix;\n }\n\n return prefix + ':auto';\n}\n\n/**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\nfunction getElLeft(viewModel, grids) {\n return grids[viewModel.left] ? grids[viewModel.left].left : 0;\n}\n\n/**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getElWidth(viewModel, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n var left;\n for (; i < viewModel.width; i += 1) {\n left = (viewModel.left + i) % length;\n left += parseInt((viewModel.left + i) / length, 10);\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nHandlebars.registerHelper(helpers);\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://tui.Calendar/webpack/universalModuleDefinition","webpack://tui.Calendar/webpack/bootstrap","webpack://tui.Calendar/external {\"commonjs\":\"tui-code-snippet\",\"commonjs2\":\"tui-code-snippet\",\"amd\":\"tui-code-snippet\",\"root\":[\"tui\",\"util\"]}","webpack://tui.Calendar/./src/js/common/domutil.js","webpack://tui.Calendar/./src/js/config.js","webpack://tui.Calendar/./src/js/common/datetime.js","webpack://tui.Calendar/./src/js/common/timezone.js","webpack://tui.Calendar/./src/js/common/common.js","webpack://tui.Calendar/./src/js/common/domevent.js","webpack://tui.Calendar/./node_modules/handlebars/runtime.js","webpack://tui.Calendar/./src/js/view/view.js","webpack://tui.Calendar/(webpack)/buildin/global.js","webpack://tui.Calendar/./src/js/common/reqAnimFrame.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/utils.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/exception.js","webpack://tui.Calendar/./src/js/common/collection.js","webpack://tui.Calendar/./src/js/model/schedule.js","webpack://tui.Calendar/./src/js/common/array.js","webpack://tui.Calendar/./src/js/common/floatingLayer.js","webpack://tui.Calendar/./src/js/handler/daygrid/core.js","webpack://tui.Calendar/./src/js/handler/time/core.js","webpack://tui.Calendar/./src/js/handler/month/core.js","webpack://tui.Calendar/./node_modules/handlebars-template-loader/runtime/index.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars.runtime.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/base.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers.js","webpack://tui.Calendar/./src/js/common/dw.js","webpack://tui.Calendar/./src/js/handler/drag.js","webpack://tui.Calendar/./src/js/model/viewModel/scheduleViewModel.js","webpack://tui.Calendar/./src/js/common/vlayout.js","webpack://tui.Calendar/./src/js/view/weekday.js","webpack://tui.Calendar/./src/js/common/point.js","webpack://tui.Calendar/./src/js/view/popup/scheduleCreationPopup.js","webpack://tui.Calendar/./src/js/view/popup/scheduleDetailPopup.js","webpack://tui.Calendar/./src/js/handler/daygrid/move.js","webpack://tui.Calendar/./src/js/handler/month/guide.js","webpack://tui.Calendar/./src/index.js","webpack://tui.Calendar/./src/js/factory/calendar.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/each.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/if.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/log.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/with.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/decorators.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/logger.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/safe-string.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/runtime.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/no-conflict.js","webpack://tui.Calendar/./src/js/view/layout.js","webpack://tui.Calendar/./src/js/factory/controller.js","webpack://tui.Calendar/./src/js/controller/base.js","webpack://tui.Calendar/./src/js/common/dirty.js","webpack://tui.Calendar/./src/js/common/model.js","webpack://tui.Calendar/./src/js/theme/theme.js","webpack://tui.Calendar/./src/js/theme/standard.js","webpack://tui.Calendar/./src/js/theme/themeConfig.js","webpack://tui.Calendar/./src/js/controller/viewMixin/core.js","webpack://tui.Calendar/./src/js/controller/viewMixin/week.js","webpack://tui.Calendar/./src/js/controller/viewMixin/month.js","webpack://tui.Calendar/./src/js/factory/weekView.js","webpack://tui.Calendar/./src/js/common/vpanel.js","webpack://tui.Calendar/./src/js/view/week/week.js","webpack://tui.Calendar/./src/js/view/week/dayname.js","webpack://tui.Calendar/./src/js/view/template/week/daynames.hbs","webpack://tui.Calendar/./src/js/view/week/dayGrid.js","webpack://tui.Calendar/./src/js/view/week/dayGridSchedule.js","webpack://tui.Calendar/./src/js/view/template/week/dayGridSchedule.hbs","webpack://tui.Calendar/./src/js/view/template/week/dayGrid.hbs","webpack://tui.Calendar/./src/js/view/week/timeGrid.js","webpack://tui.Calendar/./src/js/view/week/time.js","webpack://tui.Calendar/./src/js/view/template/week/time.hbs","webpack://tui.Calendar/./src/js/common/autoScroll.js","webpack://tui.Calendar/./src/js/view/template/week/timeGrid.hbs","webpack://tui.Calendar/./src/js/view/template/week/timezoneSticky.hbs","webpack://tui.Calendar/./src/js/view/template/week/timeGridCurrentTime.hbs","webpack://tui.Calendar/external {\"commonjs\":\"tui-date-picker\",\"commonjs2\":\"tui-date-picker\",\"amd\":\"tui-date-picker\",\"root\":[\"tui\",\"DatePicker\"]}","webpack://tui.Calendar/./src/js/view/template/popup/scheduleCreationPopup.hbs","webpack://tui.Calendar/./src/js/view/template/popup/scheduleDetailPopup.hbs","webpack://tui.Calendar/./src/js/handler/time/clickDayname.js","webpack://tui.Calendar/./src/js/handler/daygrid/click.js","webpack://tui.Calendar/./src/js/handler/daygrid/moveGuide.js","webpack://tui.Calendar/./src/js/handler/daygrid/creation.js","webpack://tui.Calendar/./src/js/handler/daygrid/creationGuide.js","webpack://tui.Calendar/./src/js/handler/daygrid/resize.js","webpack://tui.Calendar/./src/js/handler/daygrid/resizeGuide.js","webpack://tui.Calendar/./src/js/handler/time/click.js","webpack://tui.Calendar/./src/js/handler/time/creation.js","webpack://tui.Calendar/./src/js/handler/time/creationGuide.js","webpack://tui.Calendar/./src/js/handler/time/move.js","webpack://tui.Calendar/./src/js/handler/time/moveGuide.js","webpack://tui.Calendar/./src/js/view/template/week/timeMoveGuide.hbs","webpack://tui.Calendar/./src/js/handler/time/resize.js","webpack://tui.Calendar/./src/js/handler/time/resizeGuide.js","webpack://tui.Calendar/./src/js/factory/monthView.js","webpack://tui.Calendar/./src/js/view/month/month.js","webpack://tui.Calendar/./src/js/view/template/month/month.hbs","webpack://tui.Calendar/./src/js/view/month/weekdayInMonth.js","webpack://tui.Calendar/./src/js/view/template/month/weekdayInMonth.hbs","webpack://tui.Calendar/./src/js/view/template/month/weekdayInMonthSchedule.hbs","webpack://tui.Calendar/./src/js/handler/month/click.js","webpack://tui.Calendar/./src/js/handler/month/creation.js","webpack://tui.Calendar/./src/js/handler/month/creationGuide.js","webpack://tui.Calendar/./src/js/handler/month/guide.hbs","webpack://tui.Calendar/./src/js/handler/month/resize.js","webpack://tui.Calendar/./src/js/handler/month/resizeGuide.js","webpack://tui.Calendar/./src/js/handler/month/move.js","webpack://tui.Calendar/./src/js/handler/month/moveGuide.js","webpack://tui.Calendar/./src/js/handler/month/moveGuide.hbs","webpack://tui.Calendar/./src/js/view/month/more.js","webpack://tui.Calendar/./src/js/view/template/month/more.hbs","webpack://tui.Calendar/./src/js/view/template/helper.js"],"names":["root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__0__","__WEBPACK_EXTERNAL_MODULE__76__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","domutil","domevent","Collection","util","CSS_AUTO_REGEX","userSelectProperty","appendHTMLElement","tagName","container","className","el","document","createElement","appendChild","body","remove","parentNode","removeChild","id","getElementById","_matcher","selector","test","hasClass","replace","nodeName","toLowerCase","find","multiple","result","found","isFirst","isUndefined","isFilter","isFunction","isString","recurse","cursor","childNodes","len","length","push","closest","excludeEl","parent","text","ret","nodeType","textContent","firstChild","nextSibling","nodeValue","setData","data","dataset","setAttribute","getData","getAttribute","classList","getClass","RegExp","contains","addClass","setClass","forEachArray","split","add","baseVal","removeClass","removed","str","trim","getStyle","style","css","currentStyle","defaultView","getComputedStyle","getPropertyValue","prop","re","arguments","toUpperCase","setPosition","x","y","left","isNumber","top","setLTRB","ltrb","forEach","getPosition","clear","bound","getBoundingClientRect","parseFloat","getSize","width","height","isNull","offsetWidth","offsetHeight","getBCRect","rect","extend","testProp","props","documentElement","getFormData","formElement","groupedByName","this","noDisabledFilter","disabled","output","apply","concat","groupBy","elements","each","type","checked","toArray","pop","opt","selected","map","supportSelectStart","prevSelectStyle","disableTextSelection","dom","on","preventDefault","enableTextSelection","off","disableImageDrag","enableImageDrag","cssPrefix","alldayGetViewID","alldayCheckPermission","config","throwError","msg","alert","classname","charAt","slice","allday","getViewIDRegExp","checkCondRegExp","daygrid","time","global","datetime","tokenFunc","TZDate","Date","dw","dateFormatRx","memo","YYYYMMDD","date","getFullYear","leadingZero","getMonth","getDate","join","YYYY","String","MM","DD","HH:mm","hour","getHours","minutes","getMinutes","hh:mm","tt","MILLISECONDS_PER_DAY","MILLISECONDS_PER_HOUR","MILLISECONDS_PER_MINUTES","MILLISECONDS_SCHEDULE_MIN_DURATION","_convMilliseconds","iteratee","index","day","seconds","isNaN","reduce","millisecondsTo","cache","v","millisecondsFrom","minutesFromHours","hours","range","start","end","step","startTime","getTime","endTime","addDate","clone","compare","d1","d2","_d1","_d2","isSameMonth","isSameDate","isValid","toUTC","offset","getTimezoneOffset","number","zero","parse","fixMonth","separator","ymd","hms","matches","match","indexOf","splice","substr","setWithRaw","Number","raw","M","h","getSeconds","ms","getMilliseconds","setHours","format","forEachOwnProperties","converter","token","startDateOfMonth","startDate","setDate","endDateOfMonth","endDate","setMonth","arr2dCalendar","month","options","weekArr","startIndex","totalDate","afterDates","week","calendar","startDayOfWeek","isAlways6Week","visibleWeeksCount","workweek","inArray","getDay","isWeekend","getGridLeftAndWidth","days","narrowWeekend","uniformWidth","wideWidth","accumulatedWidth","dates","filter","model","isBetweenWithDate","parseInt","isStartOfDay","convertStartDayToLastDay","getStartOfNextDay","MIN_TO_MS","nativeOffsetMs","customOffsetMs","timezoneOffsetCallback","setByTimezoneOption","timestamp","now","getCustomTimezoneOffset","createDateAsLocalTime","arg","Error","timezoneOffset","customTimezoneOffset","getLocalTime","nativeDate","args","utc","UTC","createDateWithMultipleArgs","useLocalTimeConverter","getUTCTime","createDateWithUTCTime","_date","toUTCString","toDate","valueOf","addMinutes","setMinutes","addMilliseconds","milliseconds","setMilliseconds","setFullYear","toLocalTime","utcTime","methodName","setOffset","setOffsetByTimezoneOption","getOffset","setOffsetCallback","callback","restoreOffset","aps","Array","scheduleIDGetter","schedule","cid","createScheduleCollection","initItems","collection","ratio","a","b","nearest","diff","Math","abs","min","pick2","obj","paths","pick","val","then","fn","mixin","from","to","limit","minArr","maxArr","max","limitDate","maxDate","stripTags","firstIn2dArray","arr2d","lastIn2dArray","lastRow","lastCol","setAutoEllipsis","force","scrollWidth","set","path","names","store","shiftArray","array","shift","unshift","takeArray","rightCount","leftCount","shiftHours","parseUnit","cssValue","contextopt","item","getScheduleChanges","propNames","changes","dateProps","propName","isEmpty","browser","DRAG","START","END","mousedown","touchstart","pointerdown","MSPointerDown","MOVE","types","context","_on","handler","originHandler","stamp","e","event","_checkMouse","addEventListener","attachEvent","_off","removeEventListener","detachEvent","keys","msie","version","once","self","isObject","onceHandler","stopPropagation","cancelBubble","returnValue","stop","disableScrollPropagation","disableClickPropagation","getMousePosition","mouseEvent","relativeElement","clientX","clientLeft","clientY","clientTop","getWheelDelta","delta","wheelDelta","detail","related","relatedTarget","err","trigger","eventData","exec","dispatchEvent","fireEvent","eventObj","evt","bubbles","cancelable","view","screenX","screenY","ctrlKey","altKey","shiftKey","metaKey","button","undefined","createEvent","initMouseEvent","createEventObject","0","1","2","getMouseButton","implementation","hasFeature","View","cssprefix","children","state","addChild","items","render","childView","recursive","skipThis","resize","_onResize","_beforeDestroy","_destroy","innerHTML","destroy","isChildView","getViewBound","position","size","setState","CustomEvents","g","Function","requestFn","cancelFn","getPrefixed","requestAnimationFrame","cancelAnimationFrame","requestAnimFrame","cancelAnimFrame","escapeExpression","string","toHTML","possible","badChars","escapeChar","isArray","createFrame","frame","_parent","blockParams","params","ids","appendContextPath","contextPath","escape","&","<",">","\"","'","`","=","chr","toString","errorProps","Exception","message","node","loc","line","endLineNumber","column","endColumn","tmp","constructor","idx","captureStackTrace","lineNumber","nop","forEachProp","forEachArr","isFunc","isObj","getItemIDFn","getItemID","and","filters","cnt","or","merge","collections","cols","newItems","merged","col","_id","ownItems","itemToRemove","has","isExisty","doWhenHas","groupFunc","baseValue","keyIsFunc","k","single","useFilter","sort","compareFunction","arr","dirty","SCHEDULE_MIN_DURATION","SCHEDULE_CATEGORY","Schedule","title","isAllDay","color","isVisible","bgColor","dragBgColor","borderColor","calendarId","category","dueDateClass","customStyle","isPending","isFocused","isReadOnly","isPrivate","location","attendees","recurrenceRule","goingDuration","comingDuration","schema","required","dateRange","inst","init","setAllDayPeriod","setTimePeriod","substring","getStarts","getEnds","equals","duration","collidesWith","ownStarts","ownEnds","ownGoingDuration","ownComingDuration","booleanASC","stringASC","_a","_b","bsearch","search","currentIndex","comp","minIndex","maxIndex","asc","durationA","durationB","allDayCompare","startsCompare","modelA","modelB","hasMultiDates","bool","desc","num","ascIgnoreCase","descIgnoreCase","FloatingLayer","layerContainer","sibling","PROP_KEY","zIndex","getLargestZIndex","INIT_ZINDEX","display","inherit","setSize","w","setContent","html","zIndexes","layer","focus","zIndexForShow","show","hide","common","mmax","mmin","dayGridCore","_retriveScheduleData","datesInRange","containerWidth","mousePos","dragStartXIndex","grids","weekdayView","getRenderDateRange","getRenderDateGrids","getX","mouseX","xIndex","relatedView","triggerEvent","_retriveScheduleDataFromDate","targetDate","grid","Point","timeCore","_calcGridYIndex","baseMil","floored","timeView","viewHeight","viewTime","hourLength","hourEnd","hourStart","mouseY","gridY","timeY","nearestGridY","nearestGridTimeY","target","srcElement","originEvent","nearestGridEndY","nearestGridEndTimeY","getNearestHour","proto","method","nearestHour","mfloor","floor","monthView","weekColl","weeks","weekCount","dayCount","relativeContainer","vLayout","panels","pos","sizeX","sizeY","_interopRequireDefault","default","_interopRequireWildcard","newObj","base","_handlebarsSafeString2","_handlebarsException2","Utils","runtime","_handlebarsNoConflict2","hb","HandlebarsEnvironment","SafeString","VM","template","spec","_utils","_exception2","_helpers","_decorators","_logger2","VERSION","COMPILER_REVISION","LAST_COMPATIBLE_COMPILER_REVISION","REVISION_CHANGES","3","4","5","6","7","8","helpers","partials","decorators","registerDefaultHelpers","registerDefaultDecorators","logger","log","registerHelper","unregisterHelper","registerPartial","partial","unregisterPartial","registerDecorator","unregisterDecorator","instance","_helpersBlockHelperMissing2","_helpersEach2","_helpersHelperMissing2","_helpersIf2","_helpersLog2","_helpersLookup2","_helpersWith2","moveHelperToHooks","helperName","keepHelper","hooks","DW","safe","addMonth","currentMonth","currentDay","leapYear","_isLeapYear","targetMonth","targetDaysOfMonth","year","isBetween","Drag","_onMouseDown","distance","exclude","_cancelled","_isMoved","_distance","_dragStartFired","_dragStartEventData","_clearData","_toggleDragEvent","toBind","domMethod","mousemove","_onMouseMove","mouseup","_onMouseUp","_getEventData","mouseDownEvent","fire","mouseMoveEvent","invoke","mouseUpEvent","ScheduleViewModel","hasCollide","extraSpace","hidden","renderStarts","exceedLeft","renderEnds","exceedRight","viewModel","VPanel","mAbs","VLayout","theme","tempHeights","panelHeights","_drag","dragStart","_onDragStart","drag","_onDrag","dragEnd","_onDragEnd","_dragData","panelOpt","isSplitter","autoHeight","addPanels","refresh","getLayoutData","heightList","panel","getHeight","setLayoutData","setHeight","nextPanel","prevPanel","_initializeGuideElement","element","cloned","cloneNode","_refreshGuideElement","_clearGuideElement","_resize","splPanel","startY","resizeInfo","resizedHeight","resizeMap","toDown","forwardMethod","getResizeInfoByGrowth","pair","_getMouseYAdditionalLimit","upper","below","func","minHeight","oEvent","splIndex","splHeight","splOffsetY","guideElement","minY","maxY","dragData","asideMinMax","layoutData","remainHeight","panelToFillHeight","layoutHeight","usedHeight","addPanel","frag","createDocumentFragment","option","getPanelByName","Weekday","containerBottomGutter","scheduleHeight","scheduleGutter","_cacheParentViewModel","getBaseViewModel","gridWidth","exceedDate","scheduleBlockHeight","scheduleBlockGutter","isToday","hiddenSchedules","_getDayNameColor","backgroundColor","_getDayBackgroundColor","getExceedDate","maxCount","eventsInDateRange","_initExceedDate","matrix","period","isOtherMonth","holidayExceptThisMonth","holiday","dayExceptThisMonth","saturday","today","dayname","weekend","useRound","round","getRatio","point","factor","toFactor","multiplyBy","_divideBy","_add","subtract","_subtract","divideBy","_multiplyBy","_round","reverse","_reverse","_floor","ceil","_ceil","rotate","deg","center","cos","sin","_rotate","rad","PI","toFixed","distanceTo","sqrt","DatePicker","timezone","tmpl","ScheduleCreationPopup","calendars","usageStatistics","_viewModel","_selectedCal","_schedule","_focusedDropdown","_usageStatistics","_onClickListeners","_selectDropdownMenuItem","_toggleDropdownMenuView","_closeDropdownMenuView","_closePopup","_toggleIsAllday","_toggleIsPrivate","_onClickSaveSchedule","_onClick","clickEvent","listener","dropdownBtn","_openDropdownMenuView","dropdown","itemClassName","iconClassName","contentClassName","selectedItem","innerText","cal","checkbox","alldaySection","privateSection","rangePicker","getStartDate","getEndDate","_isEditMode","class","triggerEventName","boxElement","guideElements","selectedCal","_makeEditModeData","guide","_getGuideElements","_createDatepicker","_setPopupPositionAndArrowDirection","debounce","isEditMode","guideBound","layerSize","windowSize","right","innerWidth","bottom","innerHeight","parentRect","parentBounds","_calcRenderingData","_setArrowDirection","arrow","_getBoundOfFirstRowGuideElement","parentSize","arrowLeft","guideHorizontalCenter","arrowDirection","direction","arrowEl","borderElement","createRangePicker","startpicker","input","endpicker","timepicker","showMeridiem","clearGuideElement","setCalendars","ScheduleDetailPopup","_calendar","_onClickEditSchedule","_onClickDeleteSchedule","_scheduleEl","scheduleEl","blockEl","scheduleBound","guideVerticalCenter","arrowTop","DayGridMoveGuide","DayGridMove","dragHandler","controller","_dragStart","checkExpectedCondition","parentView","cssClass","dragStartEventData","scheduleBlockElement","modelID","targetModel","getScheduleDataFunc","scheduleData","schedules","click","dragEventData","_updateSchedule","dateOffset","newStarts","newEnds","dragEndEventData","overrideEventName","skipUpdate","clickEventData","mabs","MonthGuide","label","isResizeMode","isCreationMode","styles","_getStyles","startCoord","_getRatioValueInWeek","_createGuideElement","_getGuideElement","_getCoordByDate","getIdxFromDiff","monthStart","renderStartDate","isBefore","_getLimitedCoord","coord","dragStartEvent","temp","renderMonth","update","_updateGuides","inds","ind","exceedLClass","exceedRClass","exceedL","exceedR","_getOriginIndicate","mouseCoord","_getMouseIndicate","_getContainIndicate","_removeGuideElements","yCoords","guides","_getExcludesInRange","numbers","excludes","limitedCoord","renderedYIndex","yCoordsToUpdate","yCoordsToRemove","renderIndication","guideYCoord","indicate","border","creationGuide","marginTop","marginLeft","marginRight","borderRadius","Calendar","jQuery","tuiCalendar","GA_TRACKING_ID","Handlebars","Layout","controllerFactory","weekViewFactory","monthViewFactory","reqAnimFrame","sendHostname","querySelector","_calendarColor","_renderDate","_renderRange","_controller","_createController","_layout","_dragHandler","_viewName","_refreshMethod","_scrollToNowMethod","_requestScrollToNow","_openCreationPopup","_hideMoreView","_requestRender","_options","_initialize","_setOptionRecurseively","viewName","taskView","scheduleView","useCreationPopup","useDetailPopup","timezones","disableDblClick","disableClick","scheduleFilter","Boolean","_setAdditionalInternalOptions","changeView","setCalendarColor","createSchedules","silent","_setScheduleColor","getSchedule","scheduleId","updateSchedule","ctrl","_hasChangedCalendar","deleteSchedule","_getWeekDayRange","isDate","weekday","toggleSchedules","toHide","ownSchedules","immediately","_renderFunc","clearSchedules","scrollToNow","_setViewName","move","tempDate","datetimeOptions","renderDate","_getCurrentView","recursiveSet","renderEndDate","collapsed","next","prev","calColor","ownColor","clickScheduleData","_onClickMore","clickMoreSchedule","_onClickDayname","_onBeforeCreate","createScheduleData","_showCreationPopup","_onBeforeUpdate","updateScheduleData","_onBeforeDelete","deleteScheduleData","_onAfterRenderSchedule","_onClickTimezonesCollapseBtn","timezonesCollapsed","_toggleViewSchedule","isAttach","clickHandler","creation","creationHandler","moveHandler","resizeHandler","newViewName","created","layout","_createMonthView","_createWeekView","getViewName","openCreationPopup","showCreationPopup","hideMoreView","toggleTaskView","enabled","toggleScheduleView","getElement","setTheme","setOptions","innerValue","innerName","getOptions","getDateRangeStart","getDateRangeEnd","setTimezoneOffset","setTimezoneOffsetCallback","inverse","execIteration","field","last","first","j","iterator","newContext","it","done","priorKey","conditional","hash","includeZero","level","dangerousPropertyRegex","propertyIsEnumerable","_decoratorsInline2","original","methodMap","lookupLevel","levelMap","console","_len","_key","checkRevision","compilerInfo","compilerRevision","currentRevision","_base","runtimeVersions","compilerVersions","templateSpec","env","main","decorator","main_d","compiler","templateWasPrecompiledWithCompilerV7","strict","lookup","depths","lambda","current","invokePartial","resolvePartial","optionsWithHooks","compile","compilerOptions","indent","lines","programs","program","declaredBlockParams","programWrapper","wrapProgram","depth","nullContext","seal","noop","_setup","useData","initData","useBlockParams","useDepths","executeDecorators","isTop","usePartial","useDecorators","keepHelperInHelpers","allowCallsToHelperMissing","_child","currentPartialBlock","partialBlock","prog","currentDepths","$Handlebars","noConflict","applyTheme","toggleChildView","flag","prefix","Base","Core","Week","Month","propertyName","Theme","dateMatrix","_getContainDatesInSchedule","scheduleStart","scheduleEnd","createSchedule","addSchedule","dataList","origin","_removeFromMatrix","_addToMatrix","ownMatrix","containDates","splitScheduleByDateRange","scheduleCollection","findByDateRange","viewModels","dformat","setStyles","existy","_changed","_dirty","isDirty","toDirty","deleteProp","isPropChanged","methodFilterR","wrap","_flag","_name","_wrapper","_fn","flagToSet","_wrapped","spaceRx","validators","fields","valid","fieldName","validator","values","validatorName","parameterize","param","themeStandard","themeConfig","customTheme","_map","HashMap","setStyle","errors","categories","child","removeAll","common.border","common.backgroundColor","common.holiday.color","common.saturday.color","common.dayname.color","common.today.color","common.creationGuide.backgroundColor","common.creationGuide.border","month.dayname.height","month.dayname.borderLeft","month.dayname.paddingLeft","month.dayname.paddingRight","month.dayname.backgroundColor","month.dayname.fontSize","month.dayname.fontWeight","month.dayname.textAlign","month.holidayExceptThisMonth.color","month.dayExceptThisMonth.color","month.weekend.backgroundColor","month.day.fontSize","month.schedule.borderRadius","month.schedule.height","month.schedule.marginTop","month.schedule.marginLeft","month.schedule.marginRight","month.moreView.border","month.moreView.boxShadow","month.moreView.backgroundColor","month.moreView.paddingBottom","month.moreViewTitle.height","month.moreViewTitle.marginBottom","month.moreViewTitle.borderBottom","month.moreViewTitle.padding","month.moreViewList.padding","week.dayname.height","week.dayname.borderTop","week.dayname.borderBottom","week.dayname.borderLeft","week.dayname.paddingLeft","week.dayname.backgroundColor","week.dayname.textAlign","week.today.color","week.pastDay.color","week.vpanelSplitter.border","week.vpanelSplitter.height","week.daygrid.borderRight","week.daygrid.backgroundColor","week.daygridLeft.width","week.daygridLeft.backgroundColor","week.daygridLeft.paddingRight","week.daygridLeft.borderRight","week.today.backgroundColor","week.weekend.backgroundColor","week.timegridLeft.width","week.timegridLeft.backgroundColor","week.timegridLeft.borderRight","week.timegridLeft.fontSize","week.timegridOneHour.height","week.timegridHalfHour.height","week.timegridHalfHour.borderBottom","week.timegridHorizontalLine.borderBottom","week.timegrid.paddingRight","week.timegrid.borderRight","week.timegridSchedule.borderRadius","week.timegridSchedule.paddingLeft","week.currentTime.color","week.currentTime.fontSize","week.currentTime.fontWeight","week.currentTimeLinePast.border","week.currentTimeLineBullet.backgroundColor","week.currentTimeLineToday.border","week.currentTimeLineFuture.border","week.creationGuide.color","week.creationGuide.fontSize","week.creationGuide.fontWeight","week.dayGridSchedule.borderRadius","week.dayGridSchedule.height","week.dayGridSchedule.marginTop","week.dayGridSchedule.marginLeft","week.dayGridSchedule.marginRight","month.moreViewTitle.backgroundColor","week.timegridLeftTimezoneLabel.height","week.timegridLeftAdditionalTimezone.backgroundColor","week.pastTime.color","week.pastTime.fontWeight","week.futureTime.color","week.futureTime.fontWeight","getCollisionGroup","previousScheduleList","collisionGroups","foundPrevCollisionSchedule","previous","group","getLastRowInColumn","row","getMatrices","scheduleID","nextRow","lastRowInColumn","getScheduleInDateRangeFilter","positionViewModels","matrices","ymdListToRender","dateLength","limitRenderRange","viewModelColl","convertToViewModel","modelColl","generateTimeArrayInRow","maxColLen","startStart","startEnd","endStart","endEnd","getFunc","block","getCollides","binaryMap","maxRowLength","getViewModelForTimeView","ymdSplitted","_getViewModel","_makeGetViewModelFuncForTimeView","_makeHourRangeFilter","hStart","hEnd","ownHourStart","ownHourEnd","yyyy","mm","dd","_addMultiDatesInfo","vColl","getViewModelForAlldayView","ctrlCore","ctrlWeek","andFilters","scheduleTypes","pluck","excludeExceedSchedules","visibleScheduleCount","_onlyTimeFilter","_onlyAlldayFilter","_weightTopValue","_adjustRenderRange","_getAlldayMaxTopIndexAtYMD","vAlldayColl","topIndexesInDate","_adjustTimeTopIndex","ctrlMonth","getAlldayMaxTopIndexAtYMD","maxIndexInYMD","timeViewModel","scheduleYMD","alldayMaxTopInYMD","_stackTimeFromTop","sortedTimeSchedules","indiceInYMD","maxTopInYMD","topArrayInYMD","alldayFirstMode","coll","vList","collisionGroup","DayName","DayGrid","TimeGrid","DayNameClick","DAYGRID_HANDLDERS","TIMEGRID_HANDLERS","DEFAULT_PANELS","maxHeight","showExpandableButton","maxExpandableHeight","handlers","baseController","layoutContainer","weekView","dayNameContainer","dayNameView","vLayoutContainer","createView","onSaveNewSchedule","onSetCalendars","lastVPanel","detailView","onShowDetailPopup","onDeleteSchedule","onShowEditPopup","onEditSchedule","vpanels","viewVisibilities","milestone","task","addHandler","weekViewHeight","daynameViewHeight","invokeCreationClick","isHeightForcedSet","_initPanel","setMaxHeight","setHeightForcedSet","getHeightForcedSet","newHeight","growth","resizeTo","borderTop","vpanelSplitter","borderBottom","_getRenderDateRange","showTimezoneCollapseButton","_disableDayOptions","schedulesInDateRange","_invokeAfterRenderSchedule","matricesOfDay","scheduleViewModel","baseDate","daynameTmpl","daynames","_getBaseViewModel","isPastDay","dayName","dayNames","baseViewModel","pastDay","numberAndUnit","timezonesLength","borderLeft","paddingLeft","textAlign","daygridLeft","depth0","stack1","helper","alias1","alias2","helperMissing","alias3","alias4","alias5","CSS_PREFIX","DayGridSchedule","baseTmpl","dayGridSchedule","scheduleContainerTop","getViewModelFunc","setViewModelFunc","vPanel","getPanel","panelHeight","heightForcedSet","weekendBackgroundColor","todayBackgroundColor","getWeekBackgroundColor","collapseBtnIndex","clickedExpandBtnIndex","weekdayViewModel","_expand","_collapse","borderRight","leftWidth","leftBackgroundColor","leftPaddingRight","paddingRight","leftBorderRight","_getMaxScheduleInDay","_getMinHeight","maxScheduleInDay","multiply","unless","9","11","13","15","getRight","fi","10","Timezone","Time","AutoScroll","mainTmpl","timezoneStickyTmpl","timegridCurrentTimeTmpl","SIXTY_MINUTES","getHoursLabels","hasHourMarker","nowHours","nowHoursIndex","shiftByOffset","shiftMinutes","nowMinutes","hoursRange","nowAroundHours","fontWeight","pastTimeColor","pastTimeFontWeight","futureTimeColor","futureTimeFontWeight","panelElement","stickyContainer","safari","_autoScroll","intervalID","timerID","_scrolled","_cacheHoursLabels","clearInterval","clearTimeout","_onClickStickyContainer","hourmarkers","_getTopPercentByTime","topPercent","maxMilliseconds","hmsMilliseconds","_getHourmarkerViewModel","todaymarkerLeft","todaymarkerWidth","hourmarkerTimzones","primaryOffset","dateDifference","timezoneDifference","hourmarker","dateDifferenceSign","currentHours","hourmarkerTop","todaymarkerRight","_getTimezoneViewModel","timezoneViewModel","displayTimezoneLabelBackgroundColor","timeSlots","additionalTimezoneBackgroundColor","displayLabel","tooltip","isPrimary","hoursLabels","_renderChildren","childOption","containerHeight","parentElement","scheduleLen","showHourMarker","renderStickyContainer","_hourLabels","displayTimezoneLabelHeight","refreshHourmarker","needsRender","hoursLabel","todaymarker","hourmarkerContainer","timezoneIndex","setTimeout","onTick","offsetTop","viewBound","scrollTop","scrollAmount","scrollFn","setInterval","timegridHorizontalLine","halfHourBorderBottom","timegridHalfHour","timegridLeft","leftFontSize","fontSize","timezoneWidth","timegridLeftAdditionalTimezone","timegridLeftTimezoneLabel","oneHourHeight","timegridOneHour","halfHourHeight","quaterHourHeight","currentTimeColor","currentTime","currentTimeFontSize","currentTimeFontWeight","pastTime","futureTime","currentTimeLeftBorderTop","currentTimeLinePast","currentTimeBulletBackgroundColor","currentTimeLineBullet","currentTimeTodayBorderTop","currentTimeLineToday","currentTimeRightBorderTop","currentTimeLineFuture","timeTmpl","pending","defaultMarginBottom","_parseDateGroup","_getScheduleViewBoundX","baseWidth","baseLeft","columnIndex","_getScheduleViewBoundY","goingDurationHeight","modelDurationHeight","comingDurationHeight","baseMS","baseHeight","croppedStart","croppedEnd","offsetStart","todayStart","modelDuration","hasGoingDuration","hasComingDuration","getScheduleViewBound","boundX","boundY","travelBorderColor","widthPercent","leftPercents","timegrid","timegridSchedule","17","19","20","22","24","26","27","29","_direction","DIRECTION","INSIDE","_offset","_intervalID","TOP","RIGHT","BOTTOM","LEFT","_getEdgePositions","clientRect","getRealSize","padding","computed","clientWidth","clientHeight","hasScrollbar","realSize","isOnScrollbar","_onTick","edge","scrollLeft","16","18","checkExpectCondition","daynameView","blockElement","DayGridClick","dayGridScheduleView","collapseBtnElement","expandBtnElement","daygridMove","scheduleContainer","_dragStartXIndex","dragstart","dragend","_showOriginScheduleBlocks","_hideOriginScheduleBlocks","scheduleBlocks","_highlightScheduleBlocks","margin","borderLeftColor","refreshGuideElement","leftPercent","isExceededLeft","isExceededRight","_getScheduleBlockDataFunc","baseWidthPercent","originScheduleStarts","originScheduleEnds","fromLeft","fromRight","indexOffset","originLength","leftIndex","newLeft","newWidth","getScheduleBlockWidth","DayGridCreationGuide","CLICK_DELAY","DayGridCreation","_requestOnClick","_disableDblClick","_disableClick","_onDblClick","schedulesElement","_createSchedule","startXIndex","initializeGuideElement","_getGuideWidth","dragStartIndex","dragEndIndex","defer","dragEndXIndex","DayGridResizeGuide","DayGridResize","getGuideElementWidthFunc","viewOptions","TimeClick","timeGridView","schedulesCollection","TimeCreationGuide","TimeCreation","_getScheduleDataFunc","revise","dateStart","dateEnd","createRange","condResult","MIN60","timeCreation","guideTimeElement","_styleUnit","_styleStart","_styleFunc","timeCreationDragstart","timeCreationDrag","timeCreationClick","timeElement","bottomLabel","_getUnitData","viewOpt","todayEnd","_limitStyleData","unitData","_getStyleDataFunc","todayStartTime","todayEndTime","gridTimeY","gridEndTimeY","styleFunc","styleData","heightOfHalfHour","endStyle","startStyle","timeStyle","TimeMoveGuide","TimeMove","_guide","_getTimeView","mouseDownEventData","firefox","targetModelID","currentView","nearestRange","timeDiff","dateDiff","timeMove","_guideLayer","_model","_lastDrag","_container","_getTopFunc","_startGridY","_startTopPixel","timeMoveDragstart","timeMoveDrag","timeMoveDragend","timeMoveClick","_resetGuideLayer","bottomLimit","guideHeight","gridYOffset","gridYOffsetPixel","gridDiff","TimeResizeGuide","TimeResize","startScheduleData","timeResize","_originScheduleElement","_startHeightPixel","timeResizeDragstart","timeResizeDrag","timeResizeDragend","timeResizeClick","originElement","minTimeHeight","timeHeight","timeMinHeight","guideTop","minutesLength","MonthClick","MonthCreation","MonthResize","MonthMove","More","monthViewContainer","moreView","clearSchedulesHandler","onUpdateSchedule","getViewModelForMoreLayer","getMoreViewElement","onShowCreationPopup","WeekdayInMonth","monthOption","header","footer","_getMonthCalendar","heightPercent","gridOption","weekdayViewContainer","daynameViewModel","daynameModel","scheduleTmpl","_getRenderLimitIndex","count","gridHeaderHeight","gridFooterHeight","renderLimitIdx","dateObj","setIsOtherMonthFlag","scheduleBulletTop","12","21","23","25","31","33","34","36","38","40","moreElement","getMousePosDate","Guide","getScheduleData","_cache","isElementWeekdayGrid","dragEvent","dragEndEvent","times","_adjustStartAndEndTime","MonthCreationGuide","monthCreation","monthCreationDragstart","monthCreationDrag","monthCreationDragend","monthCreationClick","getMousePosData","MonthResizeGuide","scheduleCache","newEnd","monthResize","monthResizeDragstart","monthResizeDrag","monthResizeDragend","_hideScheduleBlocks","_showScheduleBlocks","MonthMoveGuide","startDateRaw","dragEndTime","newStartDate","getMonthScheduleBlock","blockSelector","getMoreLayerScheduleBlock","hasPermissionToHandle","monthMove","monthMoveDragstart","monthMoveDrag","monthMoveDragend","_clearGridBgColor","beforeGridElement","_updateGridBgColor","gridElements","targetIndex","firstWeekdayView","weekdayOptions","moreLayerSize","_getRenderPosition","weekItem","containerSize","calWidth","calHeight","isOverWidth","isOverHeight","optMoreLayerSize","leftPos","topPos","titleHeight","titleMarginBottom","paddingBottom","listHeight","boxShadow","moreViewTitle","marginBottom","titleBackgroundColor","titleBorderBottom","titlePadding","listPadding","moreViewList","equal","oper","hhmm","common-width","getElSize","grid-left","getElLeft","grid-width","getElWidth","time-scheduleBlock","month-scheduleBlock","blockHeight","paddingTop","divide","milestone-tmpl","milestoneTitle-tmpl","task-tmpl","taskTitle-tmpl","alldayTitle-tmpl","allday-tmpl","time-tmpl","goingDuration-tmpl","comingDuration-tmpl","monthMoreTitleDate-tmpl","classDay","classDayLabel","monthMoreClose-tmpl","monthGridHeader-tmpl","classNames","monthGridHeaderExceed-tmpl","monthGridFooter-tmpl","monthGridFooterExceed-tmpl","monthDayname-tmpl","weekDayname-tmpl","classDate","weekGridFooterExceed-tmpl","dayGridTitle-tmpl","schedule-tmpl","collapseBtnTitle-tmpl","timezoneDisplayLabel-tmpl","gmt","timegridDisplayPrimayTime-tmpl","timegridDisplayPrimaryTime-tmpl","meridiem","timegridDisplayTime-tmpl","timegridCurrentTime-tmpl","templates","popupIsAllDay-tmpl","popupStateFree-tmpl","popupStateBusy-tmpl","titlePlaceholder-tmpl","locationPlaceholder-tmpl","startDatePlaceholder-tmpl","endDatePlaceholder-tmpl","popupSave-tmpl","popupUpdate-tmpl","popupDetailDate-tmpl","endFormat","popupDetailLocation-tmpl","popupDetailUser-tmpl","popupDetailState-tmpl","popupDetailRepeat-tmpl","popupDetailBody-tmpl","popupEdit-tmpl","popupDelete-tmpl","postfix"],"mappings":";;;;;;CA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A,EAAAkQ,UAEAm/C,uBAAA,SAAArvD,GACA,OAAAA,EAAAmQ,eAAA7Z,KAAA,OAEAg5D,wBAAA,SAAAtvD,GACA,OAAAA,EAAA4I,OAAA,QAEA2mD,yBAAA,SAAAvvD,GACA,OAAAA,EAAAoQ,gBAEAo/C,uBAAA,SAAAxvD,GACA,OAAAA,EAAAnT,MAEA4iE,iBAAA,WACA,cAEAC,mBAAA,WACA,iBAWA,SAAA5D,EAAA9gE,EAAA2kE,EAAAjzB,GAEA,OADAA,KAAA,GACAxwC,EAAAoF,SAAAtG,GACA0xC,EAAA,IAAA1xC,EAAA2kE,EAGAjzB,EAAA,QAmBA,SAAAwvB,EAAAluC,EAAArJ,GAKA,IAJA,IAGAtjB,EAHAY,EAAA,EACAlI,EAAA,EACAwE,EAAAomB,EAAApmB,OAEUxE,EAAAi0B,EAAA/rB,MAAqBlI,GAAA,EAC/BsH,GAAA2sB,EAAA3sB,KAAAtH,GAAAwE,GACA8C,GAAA2L,UAAAghB,EAAA3sB,KAAAtH,GAAAwE,EAAA,KACAA,IACA0D,GAAA0iB,EAAAtjB,GAAAsjB,EAAAtjB,GAAAY,MAAA,GAIA,OAAAA,EAGAu+B,EAAArW,eAAAP","file":"tui-calendar.min.js","sourcesContent":[null," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 34);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","/* eslint complexity: 0, no-shadow: 0, max-nested-callbacks: 0 */\n/**\n * @fileoverview Utility modules for manipulate DOM elements.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar domevent = require('./domevent');\nvar Collection = require('./collection');\nvar util = require('tui-code-snippet');\n\nvar posKey = '_pos',\n domutil;\n\nvar CSS_AUTO_REGEX = /^auto$|^$|%/;\n\n/**\n * Trim leading, trailing whitespace\n * @param {string} str - string to trim\n * @returns {string} trimmed string\n */\nfunction trim(str) {\n return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n}\n\ndomutil = {\n /**\n * Create DOM element and return it.\n * @param {string} tagName Tag name to append.\n * @param {HTMLElement} [container] HTML element will be parent to created element.\n * if not supplied, will use **document.body**\n * @param {string} [className] Design class names to appling created element.\n * @returns {HTMLElement} HTML element created.\n */\n appendHTMLElement: function(tagName, container, className) {\n var el;\n\n className = className || '';\n\n el = document.createElement(tagName);\n el.className = className;\n\n if (container) {\n container.appendChild(el);\n } else {\n document.body.appendChild(el);\n }\n\n return el;\n },\n\n /**\n * Remove element from parent node.\n * @param {HTMLElement} el - element to remove.\n */\n remove: function(el) {\n if (el && el.parentNode) {\n el.parentNode.removeChild(el);\n }\n },\n\n /**\n * Get element by id\n * @param {string} id element id attribute\n * @returns {HTMLElement} element\n */\n get: function(id) {\n return document.getElementById(id);\n },\n\n /**\n * Check supplied element is matched selector.\n * @param {HTMLElement} el - element to check\n * @param {string} selector - selector string to check\n * @returns {boolean} match?\n */\n _matcher: function(el, selector) {\n var cssClassSelector = /^\\./,\n idSelector = /^#/;\n\n if (cssClassSelector.test(selector)) {\n return domutil.hasClass(el, selector.replace('.', ''));\n }\n if (idSelector.test(selector)) {\n return el.id === selector.replace('#', '');\n }\n\n return el.nodeName.toLowerCase() === selector.toLowerCase();\n },\n\n /**\n * Find DOM element by specific selectors.\n * below three selector only supported.\n *\n * 1. css selector\n * 2. id selector\n * 3. nodeName selector\n * @param {string} selector selector\n * @param {(HTMLElement|string)} [root] You can assign root element to find\n * if not supplied, document.body will use.\n * @param {boolean|function} [multiple=false] - set true then return all\n * elements that meet condition, if set function then use it filter function.\n * @returns {HTMLElement} HTML element finded.\n */\n find: function(selector, root, multiple) {\n var result = [],\n found = false,\n isFirst = util.isUndefined(multiple) || multiple === false,\n isFilter = util.isFunction(multiple);\n\n if (util.isString(root)) {\n root = domutil.get(root);\n }\n\n root = root || window.document.body;\n\n /**\n * Function for recursive find specific node\n * @param {HTMLElement} el - element to search\n * @param {string} selector - selector\n */\n function recurse(el, selector) {\n var childNodes = el.childNodes,\n i = 0,\n len = childNodes.length,\n cursor;\n\n for (; i < len; i += 1) {\n cursor = childNodes[i];\n\n if (cursor.nodeName === '#text') {\n continue;\n }\n\n if (domutil._matcher(cursor, selector)) {\n if ((isFilter && multiple(cursor)) || !isFilter) {\n result.push(cursor);\n }\n\n if (isFirst) {\n found = true;\n break;\n }\n } else if (cursor.childNodes.length > 0) {\n recurse(cursor, selector);\n if (found) {\n break;\n }\n }\n }\n }\n\n recurse(root, selector);\n\n return isFirst ? (result[0] || null) : result;\n },\n\n /**\n * Find parent element recursively.\n * @param {HTMLElement} el - base element to start find.\n * @param {string} selector - selector string for find\n * @param {boolean} excludeEl - exclude the base element to find\n * @returns {HTMLElement} - element finded or null.\n */\n closest: function(el, selector, excludeEl) {\n var parent = el.parentNode;\n\n if (!excludeEl && domutil._matcher(el, selector)) {\n return el;\n }\n\n while (parent && parent !== window.document.body) {\n if (domutil._matcher(parent, selector)) {\n return parent;\n }\n\n parent = parent.parentNode;\n }\n\n return null;\n },\n\n /**\n * Return texts inside element.\n * @param {HTMLElement} el target element\n * @returns {string} text inside node\n */\n text: function(el) {\n var ret = '',\n i = 0,\n nodeType = el.nodeType;\n\n if (nodeType) {\n if (nodeType === 1 || nodeType === 9 || nodeType === 11) {\n // nodes that available contain other nodes\n if (typeof el.textContent === 'string') {\n return el.textContent;\n }\n\n for (el = el.firstChild; el; el = el.nextSibling) {\n ret += domutil.text(el);\n }\n } else if (nodeType === 3 || nodeType === 4) {\n // TEXT, CDATA SECTION\n return el.nodeValue;\n }\n } else {\n for (; el[i]; i += 1) {\n ret += domutil.text(el[i]);\n }\n }\n\n return ret;\n },\n\n /**\n * Set data attribute to target element\n * @param {HTMLElement} el - element to set data attribute\n * @param {string} key - key\n * @param {string|number} data - data value\n */\n setData: function(el, key, data) {\n if ('dataset' in el) {\n el.dataset[key] = data;\n\n return;\n }\n\n el.setAttribute('data-' + key, data);\n },\n\n /**\n * Get data value from data-attribute\n * @param {HTMLElement} el - target element\n * @param {string} key - key\n * @returns {string} value\n */\n getData: function(el, key) {\n if ('dataset' in el) {\n return el.dataset[key];\n }\n\n return el.getAttribute('data-' + key);\n },\n\n /**\n * Check element has specific design class name.\n * @param {HTMLElement} el target element\n * @param {string} name css class\n * @returns {boolean} return true when element has that css class name\n */\n hasClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n return el.classList.contains(name);\n }\n\n className = domutil.getClass(el);\n\n return className.length > 0 && new RegExp('(^|\\\\s)' + name + '(\\\\s|$)').test(className);\n },\n\n /**\n * Add design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n addClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n util.forEachArray(name.split(' '), function(value) {\n el.classList.add(value);\n });\n } else if (!domutil.hasClass(el, name)) {\n className = domutil.getClass(el);\n domutil.setClass(el, (className ? className + ' ' : '') + name);\n }\n },\n\n /**\n *\n * Overwrite design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n setClass: function(el, name) {\n if (util.isUndefined(el.className.baseVal)) {\n el.className = name;\n } else {\n el.className.baseVal = name;\n }\n },\n\n /**\n * Element에 cssClass속성을 제거하는 메서드\n * Remove specific design class from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name class name to remove\n */\n removeClass: function(el, name) {\n var removed = '';\n\n if (!util.isUndefined(el.classList)) {\n el.classList.remove(name);\n } else {\n removed = (' ' + domutil.getClass(el) + ' ').replace(' ' + name + ' ', ' ');\n domutil.setClass(el, trim(removed));\n }\n },\n\n /**\n * Get HTML element's design classes.\n * @param {HTMLElement} el target element\n * @returns {string} element css class name\n */\n getClass: function(el) {\n if (!el || !el.className) {\n return '';\n }\n\n return util.isUndefined(el.className.baseVal) ? el.className : el.className.baseVal;\n },\n\n /**\n * Get specific CSS style value from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} style css attribute name\n * @returns {(string|null)} css style value\n */\n getStyle: function(el, style) {\n var value = el.style[style] || (el.currentStyle && el.currentStyle[style]),\n css;\n\n if ((!value || value === 'auto') && document.defaultView) {\n css = document.defaultView.getComputedStyle(el, null);\n value = css ? css[style] : null;\n }\n\n return value === 'auto' ? null : value;\n },\n\n /**\n * get element's computed style values.\n *\n * in lower IE8. use polyfill function that return object. it has only one function 'getPropertyValue'\n * @param {HTMLElement} el - element want to get style.\n * @returns {object} virtual CSSStyleDeclaration object.\n */\n getComputedStyle: function(el) {\n var defaultView = document.defaultView;\n\n if (!defaultView || !defaultView.getComputedStyle) {\n return {\n getPropertyValue: function(prop) {\n /* eslint-disable no-useless-escape */\n var re = /(\\-([a-z]){1})/g;\n if (prop === 'float') {\n prop = 'styleFloat';\n }\n\n if (re.test(prop)) {\n prop = prop.replace(re, function() {\n return arguments[2].toUpperCase();\n });\n }\n\n return el.currentStyle[prop] ? el.currentStyle[prop] : null;\n }\n };\n }\n\n return document.defaultView.getComputedStyle(el);\n },\n\n /**\n * Set position CSS style.\n * @param {HTMLElement} el target element\n * @param {number} [x=0] left pixel value.\n * @param {number} [y=0] top pixel value.\n */\n setPosition: function(el, x, y) {\n x = util.isUndefined(x) ? 0 : x;\n y = util.isUndefined(y) ? 0 : y;\n\n el[posKey] = [x, y];\n\n el.style.left = util.isNumber(x) ? (x + 'px') : x;\n el.style.top = util.isNumber(y) ? (y + 'px') : y;\n },\n\n /**\n * Set position CSS style with left, top, right, bottom\n * @param {HTMLElement} el target element\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\n setLTRB: function(el, ltrb) {\n var props = ['left', 'top', 'right', 'bottom'];\n var value;\n props.forEach(function(prop) {\n value = util.isUndefined(ltrb[prop]) ? '' : ltrb[prop];\n el.style[prop] = util.isNumber(value) ? (value + 'px') : value;\n });\n },\n\n /**\n * Get position from HTML element.\n * @param {HTMLElement} el target element\n * @param {boolean} [clear=false] clear cache before calculating position.\n * @returns {number[]} point\n */\n getPosition: function(el, clear) {\n var left,\n top,\n bound;\n\n if (clear) {\n el[posKey] = null;\n }\n\n if (el[posKey]) {\n return el[posKey];\n }\n\n left = 0;\n top = 0;\n\n if ((CSS_AUTO_REGEX.test(el.style.left) || CSS_AUTO_REGEX.test(el.style.top)) &&\n 'getBoundingClientRect' in el) {\n // When the element's left or top is 'auto'\n bound = el.getBoundingClientRect();\n\n left = bound.left;\n top = bound.top;\n } else {\n left = parseFloat(el.style.left || 0);\n top = parseFloat(el.style.top || 0);\n }\n\n return [left, top];\n },\n\n /**\n * Return element's size\n * @param {HTMLElement} el target element\n * @returns {number[]} width, height\n */\n getSize: function(el) {\n var bound,\n width = domutil.getStyle(el, 'width'),\n height = domutil.getStyle(el, 'height');\n\n if ((CSS_AUTO_REGEX.test(width) || CSS_AUTO_REGEX.test(height) ||\n util.isNull(width) || util.isNull(height)) &&\n 'getBoundingClientRect' in el) {\n bound = el.getBoundingClientRect();\n width = bound.width || el.offsetWidth;\n height = bound.height || el.offsetHeight;\n } else {\n width = parseFloat(width || 0);\n height = parseFloat(height || 0);\n }\n\n return [width, height];\n },\n\n /**\n * Fallback of getBoundingClientRect\n * @param {HTMLElement} el - element\n * @returns {object} rect\n */\n getBCRect: function(el) {\n var rect = el.getBoundingClientRect();\n\n rect = util.extend({\n width: el.offsetWidth,\n height: el.offsetHeight\n }, rect);\n\n return rect;\n },\n\n /**\n * Check specific CSS style is available.\n * @param {array} props property name to testing\n * @returns {(string|boolean)} return true when property is available\n * @example\n * var props = ['transform', '-webkit-transform'];\n * domutil.testProp(props); // 'transform'\n */\n testProp: function(props) {\n var style = document.documentElement.style,\n i = 0,\n len = props.length;\n\n for (; i < len; i += 1) {\n if (props[i] in style) {\n return props[i];\n }\n }\n\n return false;\n },\n\n /**\n * Get form data\n * @param {HTMLFormElement} formElement - form element to extract data\n * @returns {object} form data\n */\n getFormData: function(formElement) {\n var groupedByName = new Collection(function() {\n return this.length;\n }),\n noDisabledFilter = function(el) {\n return !el.disabled;\n },\n output = {};\n\n groupedByName.add.apply(\n groupedByName,\n domutil.find('input', formElement, noDisabledFilter)\n .concat(domutil.find('select', formElement, noDisabledFilter))\n .concat(domutil.find('textarea', formElement, noDisabledFilter))\n );\n\n groupedByName = groupedByName.groupBy(function(el) {\n return (el && el.getAttribute('name')) || '_other';\n });\n\n util.forEach(groupedByName, function(elements, name) {\n if (name === '_other') {\n return;\n }\n\n elements.each(function(el) {\n var nodeName = el.nodeName.toLowerCase(),\n type = el.type,\n result = [];\n\n if (type === 'radio') {\n result = [elements.find(function(el) {\n return el.checked;\n }).toArray().pop()];\n } else if (type === 'checkbox') {\n result = elements.find(function(el) {\n return el.checked;\n }).toArray();\n } else if (nodeName === 'select') {\n elements.find(function(el) {\n return !!el.childNodes.length;\n }).each(function(el) {\n result = result.concat(\n domutil.find('option', el, function(opt) {\n return opt.selected;\n })\n );\n });\n } else {\n result = elements.find(function(el) {\n return el.value !== '';\n }).toArray();\n }\n\n result = util.map(result, function(el) {\n return el.value;\n });\n\n if (!result.length) {\n result = '';\n } else if (result.length === 1) {\n result = result[0];\n }\n\n output[name] = result;\n });\n });\n\n return output;\n }\n};\n\n/*eslint-disable*/\nvar userSelectProperty = domutil.testProp([\n 'userSelect',\n 'WebkitUserSelect',\n 'OUserSelect',\n 'MozUserSelect',\n 'msUserSelect'\n]);\nvar supportSelectStart = 'onselectstart' in document;\nvar prevSelectStyle = '';\n/* eslint-enable*/\n\n/**\n * Disable browser's text selection behaviors.\n * @method\n */\ndomutil.disableTextSelection = (function() {\n if (supportSelectStart) {\n return function(dom) {\n domevent.on(dom, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function(dom) {\n var style = dom.style;\n prevSelectStyle = style[userSelectProperty];\n style[userSelectProperty] = 'none';\n };\n})();\n\n/**\n * Enable browser's text selection behaviors.\n * @method\n */\ndomutil.enableTextSelection = (function() {\n if (supportSelectStart) {\n return function() {\n domevent.off(window, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function() {\n document.documentElement.style[userSelectProperty] = prevSelectStyle;\n };\n})();\n\n/**\n * Disable browser's image drag behaviors.\n */\ndomutil.disableImageDrag = function() {\n domevent.on(window, 'dragstart', domevent.preventDefault);\n};\n\n/**\n * Enable browser's image drag behaviors.\n */\ndomutil.enableImageDrag = function() {\n domevent.off(window, 'dragstart', domevent.preventDefault);\n};\n\nmodule.exports = domutil;\n","/**\n * @fileoverview Global configuration object module. This @echo syntax will change preprocess context. See gulpfile.js\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar cssPrefix = 'tui-full-calendar-',\n alldayGetViewID = new RegExp('^' + cssPrefix + 'weekday[\\\\s]tui-view-(\\\\d+)'),\n alldayCheckPermission = new RegExp('^' + cssPrefix + 'schedule(-title)?$'),\n timeGetViewID = new RegExp('^' + cssPrefix + 'time-date[\\\\s]tui-view-(\\\\d+)');\n\nvar config = {\n throwError: function(msg) {\n alert(msg);\n },\n\n cssPrefix: cssPrefix,\n\n classname: function(str) {\n str = str || '';\n\n if (str.charAt(0) === '.') {\n return '.' + config.cssPrefix + str.slice(1);\n }\n\n return config.cssPrefix + str;\n },\n\n allday: {\n getViewIDRegExp: alldayGetViewID,\n checkCondRegExp: alldayCheckPermission\n },\n\n daygrid: {\n getViewIDRegExp: alldayGetViewID,\n checkCondRegExp: alldayCheckPermission\n },\n\n time: {\n getViewIDRegExp: timeGetViewID\n }\n};\n\nmodule.exports = config;\n","/**\n * @fileoverview datetime utility module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar TZDate = require('./timezone').Date,\n dw = require('../common/dw');\nvar util = require('tui-code-snippet');\n/* eslint-disable no-useless-escape */\nvar dateFormatRx = /^(\\d{4}[-|\\/]*\\d{2}[-|\\/]*\\d{2})\\s?(\\d{2}:\\d{2}:\\d{2})?$/;\nvar datetime, tokenFunc;\n\nvar memo = {\n millisecondsTo: {},\n millisecondsFrom: {}\n};\n\ntokenFunc = {\n /**\n * @param {TZDate} date date object.\n * @returns {string} YYYYMMDD\n */\n 'YYYYMMDD': function(date) {\n return [\n date.getFullYear(),\n datetime.leadingZero(date.getMonth() + 1, 2),\n datetime.leadingZero(date.getDate(), 2)\n ].join('');\n },\n /**\n * @param {TZDate} date date object\n * @returns {string} four digit year number\n */\n 'YYYY': function(date) {\n return String(date.getFullYear());\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit month number\n */\n 'MM': function(date) {\n return datetime.leadingZero(date.getMonth() + 1, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit date number\n */\n 'DD': function(date) {\n return datetime.leadingZero(date.getDate(), 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} HH:mm\n */\n 'HH:mm': function(date) {\n var hour = date.getHours(),\n minutes = date.getMinutes();\n\n return datetime.leadingZero(hour, 2) + ':' +\n datetime.leadingZero(minutes, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} hh:mm\n */\n 'hh:mm': function(date) {\n var hour = date.getHours();\n var minutes = date.getMinutes();\n\n if (hour > 12) {\n hour = hour % 12;\n }\n\n return datetime.leadingZero(hour, 2) + ':' +\n datetime.leadingZero(minutes, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} tt\n */\n 'tt': function(date) {\n var hour = date.getHours();\n\n return hour < 12 ? 'am' : 'pm';\n }\n};\n\ndatetime = {\n /**\n * The number of milliseconds one day.\n * @type {number}\n */\n MILLISECONDS_PER_DAY: 86400000,\n\n /**\n * The number of milliseconds one hour.\n * @type {number}\n */\n MILLISECONDS_PER_HOUR: 3600000,\n\n /**\n * The number of milliseconds one minutes.\n * @type {number}\n */\n MILLISECONDS_PER_MINUTES: 60000,\n\n /**\n * The number of milliseconds 20 minutes for schedule min duration\n * @type {number}\n */\n MILLISECONDS_SCHEDULE_MIN_DURATION: 20 * 60000,\n\n /**\n * convert milliseconds\n * @param {string} type - type of value.\n * @param {number} value - value to convert.\n * @param {function} iteratee - iteratee function to use reduce.\n * @returns {number} converted value.\n */\n _convMilliseconds: function(type, value, iteratee) {\n var conv = [24, 60, 60, 1000],\n index = {\n day: 0,\n hour: 1,\n minutes: 2,\n seconds: 3\n };\n\n if (!(type in index) || global.isNaN(value)) {\n return false;\n }\n\n return util.reduce([value].concat(conv.slice(index[type])), iteratee);\n },\n\n /**\n * Convert milliseconds value to other type\n * @param {type} type convert to type want to. support \"day\", \"hour\",\n * \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsTo: function(type, value) {\n var cache = memo.millisecondsTo,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m / v;\n });\n\n return cache[key];\n },\n\n /**\n * Convert value to milliseconds\n * @param {type} type - type of supplied value. support \"hour\", \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsFrom: function(type, value) {\n var cache = memo.millisecondsFrom,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m * v;\n });\n\n return cache[key];\n },\n\n /**\n * Convert hours to minutes\n * @param {number} hours - hours\n * @returns {number} minutes\n */\n minutesFromHours: function(hours) {\n return hours * 60;\n },\n\n /**\n * Make date array from supplied paramters.\n * @param {TZDate} start Start date.\n * @param {TZDate} end End date.\n * @param {number} step The number of milliseconds to use increment.\n * @returns {TZDate[]} TZDate array.\n */\n range: function(start, end, step) {\n var startTime = start.getTime();\n var endTime = end.getTime();\n var cursor = startTime;\n var date = dw(new TZDate(start));\n var result = [];\n\n while (cursor <= endTime && endTime >= date.d.getTime()) {\n result.push(datetime.start(date.d));\n cursor = cursor + step;\n date.addDate(1);\n }\n\n return result;\n },\n\n /**\n * Clone supplied date.\n * @param {TZDate} date date object to clone.\n * @returns {TZDate} Cloned date object\n */\n clone: function(date) {\n return new TZDate(date);\n },\n\n /**\n * Compare two dates.\n *\n * when first date is latest then seconds then return -1.\n *\n * return +1 reverse, and return 0 is same.\n * @param {TZDate} d1 Date object to compare.\n * @param {TZDate} d2 Date object to compare.\n * @returns {number} result of compare\n */\n compare: function(d1, d2) {\n var _d1 = d1.getTime(),\n _d2 = d2.getTime();\n\n if (_d1 < _d2) {\n return -1;\n }\n if (_d1 > _d2) {\n return 1;\n }\n\n return 0;\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month?\n */\n isSameMonth: function(d1, d2) {\n return (d1.getFullYear() === d2.getFullYear() &&\n d1.getMonth() === d2.getMonth());\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month, date?\n */\n isSameDate: function(d1, d2) {\n var sameMonth = datetime.isSameMonth(d1, d2);\n\n return sameMonth && (d1.getDate() === d2.getDate());\n },\n\n /**\n * Check supplied parameter is valid date object.\n * @param {*} d Object to validate.\n * @returns {boolean} return true when parameter is valid date object.\n */\n isValid: function(d) {\n if (d instanceof TZDate) {\n return !window.isNaN(d.getTime());\n }\n\n return false;\n },\n\n /**\n * convert non local date to UTC date.\n * @param {TZDate} d Date to convert UTC.\n * @returns {TZDate} The UTC Date.\n */\n toUTC: function(d) {\n var l = d.getTime(),\n offset = datetime.millisecondsFrom('minutes', new Date().getTimezoneOffset());\n\n return new TZDate(l + offset);\n },\n\n /**\n * pad left zero characters.\n * @param {number} number number value to pad zero.\n * @param {number} length pad length to want.\n * @returns {string} padded string.\n */\n leadingZero: function(number, length) {\n var zero = '',\n i = 0;\n\n if (String(number).length > length) {\n return String(number);\n }\n\n for (; i < (length - 1); i += 1) {\n zero += '0';\n }\n\n return (zero + number).slice(length * -1);\n },\n\n /**\n * Convert date string to date object.\n *\n * Only listed below formats avaliable.\n *\n * - YYYYMMDD\n * - YYYY/MM/DD\n * - YYYY-MM-DD\n * - YYYY/MM/DD HH:mm:SS\n * - YYYY-MM-DD HH:mm:SS\n *\n * @param {string} str Formatted string.\n * @param {number} [fixMonth=-1] - number for fix month calculating.\n * @returns {(TZDate|boolean)} Converted Date object. when supplied str is not available then return false.\n */\n parse: function(str, fixMonth) {\n var separator,\n matches = str.match(dateFormatRx),\n ymd,\n hms;\n\n if (util.isUndefined(fixMonth)) {\n fixMonth = -1;\n }\n\n if (!matches) {\n return false;\n }\n\n if (str.length > 8) {\n // YYYY/MM/DD\n // YYYY-MM-DD\n // YYYY/MM/DD HH:mm:SS\n // YYYY-MM-DD HH:mm:SS\n separator = ~str.indexOf('/') ? '/' : '-';\n matches = matches.splice(1);\n\n ymd = matches[0].split(separator);\n hms = matches[1] ? matches[1].split(':') : [0, 0, 0];\n } else {\n // YYYYMMDD\n matches = matches[0];\n ymd = [matches.substr(0, 4), matches.substr(4, 2), matches.substr(6, 2)];\n hms = [0, 0, 0];\n }\n\n return new TZDate().setWithRaw(\n Number(ymd[0]),\n Number(ymd[1]) + fixMonth,\n Number(ymd[2]),\n Number(hms[0]),\n Number(hms[1]),\n Number(hms[2]),\n 0\n );\n },\n\n /**\n * Return date object from Date.\n * @param {TZDate} date date\n * @returns {object} Date object.\n */\n raw: function(date) {\n return {\n y: date.getFullYear(),\n M: date.getMonth(),\n d: date.getDate(),\n h: date.getHours(),\n m: date.getMinutes(),\n s: date.getSeconds(),\n ms: date.getMilliseconds()\n };\n },\n\n /**\n * Return 00:00:00 supplied date.\n * @param {TZDate} date date. if undefined, use now.\n * @returns {TZDate} start date.\n */\n start: function(date) {\n var d = date ? new TZDate(date) : new TZDate();\n d.setHours(0, 0, 0, 0);\n\n return d;\n },\n\n /**\n * Return 23:59:59 supplied date.\n * @param {TZDate} date date. if undefined, use now.\n * @returns {TZDate} end date.\n */\n end: function(date) {\n var d = date ? new TZDate(date) : new TZDate();\n d.setHours(23, 59, 59, 0);\n\n return d;\n },\n\n /**\n * Return formatted string as basis of supplied string.\n *\n * Supported Token Lists.\n *\n * - YYYY => 1988\n * - MM => 01 ~ 12\n * - DD => 01 ~ 31\n * - YYYYMMDD => 19880925\n * @param {TZDate} date String want to formatted.\n * @param {string} format format str.\n * @returns {string} Formatted date string.\n */\n format: function(date, format) {\n var result = format;\n util.forEachOwnProperties(tokenFunc, function(converter, token) {\n result = result.replace(token, converter(date));\n });\n\n return result;\n },\n\n /**\n * Get start date of specific month\n * @param {TZDate} date - date to get start date\n * @returns {TZDate} start date of supplied month\n */\n startDateOfMonth: function(date) {\n var startDate = new TZDate(date);\n\n startDate.setDate(1);\n startDate.setHours(0, 0, 0, 0);\n\n return startDate;\n },\n\n /**\n * Get end date of specific month\n * @param {TZDate} date - date to get end date\n * @returns {TZDate} end date of supplied month\n */\n endDateOfMonth: function(date) {\n var endDate = datetime.startDateOfMonth(date);\n\n endDate.setMonth(endDate.getMonth() + 1);\n endDate.setDate(endDate.getDate() - 1);\n endDate.setHours(23, 59, 59);\n\n return endDate;\n },\n\n /**\n * Return 2-dimensional array month calendar\n *\n * dates that different month with given date are negative values\n * @param {TZDate} month - date want to calculate month calendar\n * @param {object} options - options\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {boolean} options.isAlways6Week - whether the number of weeks are always 6\n * @param {number} options.visibleWeeksCount visible weeks count\n * @param {boolean} options.workweek - only show work week\n * @param {function} [iteratee] - iteratee for customizing calendar object\n * @returns {Array.} calendar 2d array\n */\n arr2dCalendar: function(month, options, iteratee) {\n var weekArr,\n start, end,\n startIndex, endIndex,\n totalDate, afterDates,\n cursor, week,\n calendar = [],\n startDayOfWeek = options.startDayOfWeek,\n isAlways6Week = util.isUndefined(options.isAlways6Week) ? true : options.isAlways6Week,\n visibleWeeksCount = options.visibleWeeksCount,\n workweek = options.workweek;\n\n if (visibleWeeksCount) {\n start = new TZDate(month);\n end = dw(new TZDate(month));\n end.addDate(7 * (visibleWeeksCount - 1));\n end = end.d;\n } else {\n start = datetime.startDateOfMonth(month);\n end = datetime.endDateOfMonth(month);\n }\n\n // create day number array by startDayOfWeek number\n // 4 -> [4, 5, 6, 0, 1, 2, 3]\n // 2 -> [2, 3, 4, 5, 6, 0, 1]\n weekArr = util.range(startDayOfWeek, 7).concat(util.range(7)).slice(0, 7);\n startIndex = util.inArray(start.getDay(), weekArr);\n endIndex = util.inArray(end.getDay(), weekArr);\n // free dates after last date of this month\n afterDates = 7 - (endIndex + 1);\n\n if (visibleWeeksCount) {\n totalDate = 7 * visibleWeeksCount;\n } else {\n totalDate = isAlways6Week ? (7 * 6) : (startIndex + end.getDate() + afterDates);\n }\n cursor = datetime.start(start).addDate(-startIndex);\n // iteratee all dates to render\n util.forEachArray(util.range(totalDate), function(i) {\n var date;\n\n if (!(i % 7)) {\n // group each date by week\n week = calendar[i / 7] = [];\n }\n\n date = datetime.start(cursor);\n date = iteratee ? iteratee(date) : date;\n if (!workweek || !datetime.isWeekend(date.getDay())) {\n week.push(date);\n }\n\n // add date\n cursor.setDate(cursor.getDate() + 1);\n });\n\n return calendar;\n },\n\n /**\n * Calculate grid left(%), width(%) by narrowWeekend, startDayOfWeek, workweek\n *\n * @param {number} days - day length of week\n * @param {boolean} narrowWeekend - narrow weekend\n * @param {number} startDayOfWeek - start day of week\n * @param {boolean} workweek - only show work week\n * @returns {Array} day, left, width\n */\n getGridLeftAndWidth: function(days, narrowWeekend, startDayOfWeek, workweek) {\n var limitDaysToApplyNarrowWeekend = 5;\n var uniformWidth = 100 / days;\n var wideWidth = days > limitDaysToApplyNarrowWeekend ? 100 / (days - 1) : uniformWidth;\n var accumulatedWidth = 0;\n var dates = util.range(startDayOfWeek, 7).concat(util.range(days)).slice(0, 7);\n\n if (workweek) {\n dates = util.filter(dates, function(day) {\n return !datetime.isWeekend(day);\n });\n }\n\n narrowWeekend = workweek ? false : narrowWeekend;\n\n return util.map(dates, function(day) {\n var model;\n var width = narrowWeekend ? wideWidth : uniformWidth;\n if (days > limitDaysToApplyNarrowWeekend && narrowWeekend && datetime.isWeekend(day)) {\n width = wideWidth / 2;\n }\n\n model = {\n day: day,\n width: width,\n left: accumulatedWidth\n };\n\n accumulatedWidth += width;\n\n return model;\n });\n },\n\n /**\n * Get that day is weekend\n * @param {number} day number\n * @returns {boolean} true if weekend or false\n */\n isWeekend: function(day) {\n return day === 0 || day === 6;\n },\n\n /**\n * Whether date is between supplied dates with date value?\n * @param {TZDate} d - target date\n * @param {TZDate} d1 - from date\n * @param {TZDate} d2 - to date\n * @returns {boolean} is between?\n */\n isBetweenWithDate: function(d, d1, d2) {\n var format = 'YYYYMMDD';\n d = parseInt(datetime.format(d, format), 10);\n d1 = parseInt(datetime.format(d1, format), 10);\n d2 = parseInt(datetime.format(d2, format), 10);\n\n return d1 <= d && d <= d2;\n },\n\n isStartOfDay: function(d) {\n return !datetime.compare(datetime.start(d), d);\n },\n\n convertStartDayToLastDay: function(d) {\n var date = new TZDate(d);\n if (datetime.isStartOfDay(d)) {\n date.setDate(date.getDate() - 1);\n }\n\n return date;\n },\n\n getStartOfNextDay: function(d) {\n var date = datetime.start(d);\n date.setHours(24);\n\n return date;\n }\n};\n\nmodule.exports = datetime;\n","/**\n * @fileoverview timezone\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar MIN_TO_MS = 60 * 1000;\nvar nativeOffsetMs = getTimezoneOffset();\nvar customOffsetMs = nativeOffsetMs;\nvar timezoneOffsetCallback = null;\nvar setByTimezoneOption = false;\n\nvar getterMethods = [\n 'getDate',\n 'getDay',\n 'getFullYear',\n 'getHours',\n 'getMilliseconds',\n 'getMinutes',\n 'getMonth',\n 'getSeconds'\n];\n\nvar setterMethods = [\n 'setDate',\n 'setFullYear',\n 'setHours',\n 'setMilliseconds',\n 'setMinutes',\n 'setMonth',\n 'setSeconds'\n];\n\n/**\n * Get the timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n * @private\n */\nfunction getTimezoneOffset(timestamp) {\n timestamp = timestamp || Date.now();\n\n return new Date(timestamp).getTimezoneOffset() * MIN_TO_MS;\n}\n\n/**\n * Get the custome timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n * @private\n */\nfunction getCustomTimezoneOffset(timestamp) {\n if (!setByTimezoneOption && timezoneOffsetCallback) {\n return timezoneOffsetCallback(timestamp) * MIN_TO_MS;\n }\n\n return customOffsetMs;\n}\n\n/**\n * Convert to local time\n * @param {number} time - time\n * @returns {number} local time\n */\nfunction getLocalTime(time) {\n var timezoneOffset = getTimezoneOffset(time);\n var customTimezoneOffset = getCustomTimezoneOffset(time);\n var timezoneOffsetDiff = customTimezoneOffset ? 0 : nativeOffsetMs - timezoneOffset;\n var localTime = time - customTimezoneOffset + timezoneOffset + timezoneOffsetDiff;\n\n return localTime;\n}\n\n/**\n * Create a Date instance with multiple arguments\n * @param {Array} args - arguments\n * @returns {Date}\n * @private\n */\nfunction createDateWithMultipleArgs(args) {\n var utc = Date.UTC.apply(null, args);\n\n return new Date(utc + getTimezoneOffset(utc));\n}\n\n/**\n * To convert a Date to TZDate as it is.\n * @param {TZDate|number|null} arg - date\n * @returns {Date}\n */\nfunction createDateWithUTCTime(arg) {\n var time;\n\n if (arg instanceof TZDate) {\n time = arg.getUTCTime();\n } else if ((typeof arg) === 'number') {\n time = arg;\n } else if (arg === null) {\n time = 0;\n } else {\n throw new Error('Invalid Type');\n }\n\n return new Date(time);\n}\n\n/**\n * Convert time to local time. Those times are only from API and not from inner source code.\n * @param {Date|string} arg - date\n * @returns {Date}\n */\nfunction createDateAsLocalTime(arg) {\n var time;\n\n if (arg instanceof Date) {\n time = arg.getTime();\n } else if ((typeof arg) === 'string') {\n time = Date.parse(arg);\n } else {\n throw new Error('Invalid Type');\n }\n\n time = getLocalTime(time);\n\n return new Date(time);\n}\n\n/**\n * is it for local time? These type can be used from Calendar API.\n * @param {Date|string} arg - date\n * @returns {boolean}\n */\nfunction useLocalTimeConverter(arg) {\n return arg instanceof Date || (typeof arg) === 'string';\n}\n\n/**\n * Timezone Date Class\n * @param {number|TZDate|Date|string} date - date to be converted\n * @constructor\n */\nfunction TZDate(date) {\n var nativeDate;\n\n if (util.isUndefined(date)) {\n date = Date.now();\n }\n\n if (arguments.length > 1) {\n nativeDate = createDateWithMultipleArgs(arguments);\n } else if (useLocalTimeConverter(date)) {\n nativeDate = createDateAsLocalTime(date);\n } else {\n nativeDate = createDateWithUTCTime(date);\n }\n\n this._date = nativeDate;\n}\n\n/**\n * Get milliseconds which is converted by timezone\n * @returns {number} milliseconds\n */\nTZDate.prototype.getTime = function() {\n var time = this._date.getTime();\n\n return time + getCustomTimezoneOffset(time) - getTimezoneOffset(time);\n};\n\n/**\n * Get UTC milliseconds\n * @returns {number} milliseconds\n */\nTZDate.prototype.getUTCTime = function() {\n return this._date.getTime();\n};\n\n/**\n * toUTCString\n * @returns {string}\n */\nTZDate.prototype.toUTCString = function() {\n return this._date.toUTCString();\n};\n\n/**\n * to Date\n * @returns {Date}\n */\nTZDate.prototype.toDate = function() {\n return this._date;\n};\n\nTZDate.prototype.valueOf = function() {\n return this.getTime();\n};\n\nTZDate.prototype.addDate = function(day) {\n this.setDate(this.getDate() + day);\n\n return this;\n};\n\nTZDate.prototype.addMinutes = function(minutes) {\n this.setMinutes(this.getMinutes() + minutes);\n\n return this;\n};\n\nTZDate.prototype.addMilliseconds = function(milliseconds) {\n this.setMilliseconds(this.getMilliseconds() + milliseconds);\n\n return this;\n};\n\n/* eslint-disable max-params*/\nTZDate.prototype.setWithRaw = function(y, M, d, h, m, s, ms) {\n this.setFullYear(y, M, d);\n this.setHours(h, m, s, ms);\n\n return this;\n};\n\n/**\n * @returns {TZDate} local time\n */\nTZDate.prototype.toLocalTime = function() {\n var time = this.getTime();\n var utcTime = this.getUTCTime();\n var diff = time - utcTime;\n\n return new TZDate(utcTime - diff);\n};\n\ngetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n return this._date[methodName].apply(this._date, arguments);\n };\n});\n\nsetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n this._date[methodName].apply(this._date, arguments);\n\n return this.getTime();\n };\n});\n\nmodule.exports = {\n Date: TZDate,\n\n /**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\n setOffset: function(offset) {\n customOffsetMs = offset * MIN_TO_MS;\n },\n\n /**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\n setOffsetByTimezoneOption: function(offset) {\n this.setOffset(-offset);\n setByTimezoneOption = true;\n },\n\n /**\n * Get offset in case of `setByTimezoneOption`. Or return 0.\n * @returns {number} timezone offset offset minutes\n */\n getOffset: function() {\n if (setByTimezoneOption) {\n return customOffsetMs / MIN_TO_MS;\n }\n\n return 0;\n },\n\n /**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - callback function\n */\n setOffsetCallback: function(callback) {\n timezoneOffsetCallback = callback;\n },\n\n /**\n * (Use this method only for testing)\n * Reset system timezone and custom timezone\n */\n restoreOffset: function() {\n customOffsetMs = getTimezoneOffset();\n }\n};\n","/**\n * @fileoverview common/general utilities.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar aps = Array.prototype.slice;\n\nvar domutil = require('../common/domutil'),\n Collection = require('../common/collection');\nvar datetime = require('../common/datetime');\n\n/**\n * Default schedule id getter for collection\n * @param {Schedule} schedule - schedule instance\n * @returns {string} schedule id\n */\nfunction scheduleIDGetter(schedule) {\n return schedule.cid();\n}\n\nmodule.exports = {\n /**\n * @param {...*} initItems - items to add newly created collection.\n * @returns {Collection} new collection for schedule models.\n */\n createScheduleCollection: function(initItems) { // eslint-disable-line\n var collection = new Collection(scheduleIDGetter);\n\n if (arguments.length) {\n collection.add.apply(collection, arguments);\n }\n\n return collection;\n },\n\n /**\n * Get ratio value.\n *\n * a : b = y : X;\n *\n * =\n *\n * X = (b * y) / a;\n * @param {number} a - a\n * @param {number} b - b\n * @param {number} y - y\n * @returns {number} ratio value\n */\n ratio: function(a, b, y) {\n // a : b = y : x;\n return (b * y) / a;\n },\n\n /**\n * Find nearest value from supplied params.\n * @param {number} value - value to find.\n * @param {array} nearest - nearest array.\n * @returns {number} nearest value\n */\n nearest: function(value, nearest) {\n var diff = util.map(nearest, function(v) {\n return Math.abs(value - v);\n }),\n nearestIndex = util.inArray(Math.min.apply(null, diff), diff);\n\n return nearest[nearestIndex];\n },\n\n /**\n * pick value from object then return utility object to treat it.\n * @param {object} obj - object to search supplied path property.\n * @param {...string} paths - rest parameter that string value to search property in object.\n * @returns {object} pick object.\n */\n pick2: function(obj, paths) { // eslint-disable-line\n var result = util.pick.apply(null, arguments),\n pick;\n\n pick = {\n /**\n * @returns {*} picked value.\n */\n val: function() {\n return result;\n },\n\n /**\n * invoke supplied function in picked object.\n *\n * the callback context is set picked object.\n * @param {string|function} fn - function to invoke in picked object.\n * @returns {*} result of invoke.\n */\n then: function(fn) {\n var args;\n\n if (!result) {\n return undefined; //eslint-disable-line\n }\n\n args = aps.call(arguments, 1);\n\n if (util.isString(fn)) {\n return (util.pick(result, fn) || function() {}).apply(result, args);\n }\n\n return fn.call(result, result);\n }\n };\n\n return pick;\n },\n\n /**\n * Mixin method.\n *\n * (extend methods except property name 'mixin')\n * @param {object} from - mixin object.\n * @param {object} to - object to mixin.\n */\n mixin: function(from, to) {\n util.extend(to.prototype, from);\n },\n\n /**\n * Limit supplied value base on `minArr`, `maxArr`\n * @param {number} value - value\n * @param {array} minArr - min\n * @param {array} maxArr - max\n * @returns {number} limited value\n */\n limit: function(value, minArr, maxArr) {\n var v = Math.max.apply(null, [value].concat(minArr));\n v = Math.min.apply(null, [v].concat(maxArr));\n\n return v;\n },\n\n /**\n * Limit supplied date base on `min`, `max`\n * @param {TZDate} date - date\n * @param {TZDate} min - min\n * @param {TZDate} max - max\n * @returns {TZDate} limited value\n */\n limitDate: function(date, min, max) {\n if (date < min) {\n return min;\n }\n if (date > max) {\n return max;\n }\n\n return date;\n },\n\n /**\n * Max value with TZDate type for timezone calculation\n * @param {TZDate} d1 - date 1\n * @param {TZDate} d2 - date 2\n * @returns {TZDate}\n */\n maxDate: function(d1, d2) {\n if (d1 > d2) {\n return d1;\n }\n\n return d2;\n },\n\n stripTags: function(str) {\n return str.replace(/<([^>]+)>/ig, '');\n },\n\n /**\n * Get first value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} first value in 2d array\n */\n firstIn2dArray: function(arr2d) {\n return util.pick(arr2d, '0', '0');\n },\n\n /**\n * Get last value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} last value in 2d array\n */\n lastIn2dArray: function(arr2d) {\n var lastRow = arr2d.length - 1,\n lastCol = arr2d[lastRow].length - 1;\n\n return util.pick(arr2d, lastRow, lastCol);\n },\n\n /**\n * Set 'title' attribute for all element that has exceeded content in\n * container\n * @param {string} selector - CSS selector {@see domutil#find}\n * @param {HTMLElement} container - container element\n * @param {boolean} force - force to apply\n */\n setAutoEllipsis: function(selector, container, force) {\n util.forEach(domutil.find(selector, container, true), function(el) {\n if (force || el.offsetWidth < el.scrollWidth) {\n el.setAttribute('title', domutil.getData(el, 'title'));\n }\n });\n },\n\n /**\n * Set the value at path of object.\n * @param {object} object - the object to modify\n * @param {string} path -the path of property to set\n * @param {*} value - the value to set\n */\n set: function(object, path, value) {\n var names = path.split('.');\n var store = object;\n\n util.forEach(names, function(name, index) {\n store[name] = store[name] || {};\n\n if (index === names.length - 1) {\n store[name] = value;\n } else {\n store = store[name];\n }\n });\n },\n\n /**\n * shift a array\n * @param {Array.} array - array\n * @param {number} shift - positive or negative integer to shift\n * @returns {Array.} shifted array\n */\n shiftArray: function(array, shift) {\n var length = Math.abs(shift);\n var i;\n\n if (shift > 0) {\n for (i = 0; i < length; i += 1) {\n array.push(array.shift());\n }\n } else if (shift < 0) {\n for (i = 0; i < length; i += 1) {\n array.unshift(array.pop());\n }\n }\n\n return array;\n },\n\n /**\n * take elements from array between start and end.\n * @param {Array.} array - array\n * @param {number} start - start index\n * @param {number} end - end index\n * @returns {Array.}\n */\n takeArray: function(array, start, end) {\n var length = array.length;\n var rightCount = length - end;\n var leftCount = start;\n\n // remove right\n array.splice(end, rightCount);\n // remove left\n array.splice(0, leftCount);\n\n return array;\n },\n\n /**\n * shift hours\n * @param {number} hours - hours\n * @param {number} shift - positive or negative integer to shift\n * @returns {number} shifted hours\n */\n shiftHours: function(hours, shift) {\n if (shift > 0) {\n hours = (hours + shift) % 24;\n } else if (shift < 0) {\n hours += shift;\n hours = hours > 0 ? hours : 24 + hours;\n }\n\n return hours;\n },\n\n /**\n * Parse css value into number and units\n * @param {string} cssValue - css value like '72px'\n * @returns {Array} [number, unit]\n */\n parseUnit: function(cssValue) {\n var number = parseFloat(cssValue, 10);\n var unit = cssValue.match(/[\\d.\\-+]*\\s*(.*)/)[1] || '';\n\n return [number, unit];\n },\n\n find: function(array, iteratee, contextopt) {\n var found;\n\n util.forEach(array, function(item) {\n if (iteratee) {\n found = iteratee(item);\n }\n\n if (found) {\n found = item;\n\n return false;\n }\n\n return true;\n }, contextopt);\n\n return found;\n },\n\n getScheduleChanges: function(schedule, propNames, data) {\n var changes = {};\n var dateProps = ['start', 'end'];\n\n util.forEach(propNames, function(propName) {\n if (dateProps.indexOf(propName) > -1) {\n if (datetime.compare(schedule[propName], data[propName])) {\n changes[propName] = data[propName];\n }\n } else if (data[propName] && schedule[propName] !== data[propName]) {\n changes[propName] = data[propName];\n }\n });\n\n return util.isEmpty(changes) ? null : changes;\n }\n};\n","/* eslint complexity: 0 */\n/**\n * @fileoverview Utility module for handling DOM events.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar browser = util.browser,\n eventKey = '_evt',\n DRAG = {\n START: ['touchstart', 'mousedown'],\n END: {\n mousedown: 'mouseup',\n touchstart: 'touchend',\n pointerdown: 'touchend',\n MSPointerDown: 'touchend'\n },\n MOVE: {\n mousedown: 'mousemove',\n touchstart: 'touchmove',\n pointerdown: 'touchmove',\n MSPointerDown: 'touchmove'\n }\n };\n\nvar domevent = {\n /**\n * Bind dom events.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n on: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._on(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._on(obj, type, handler, fn);\n });\n },\n\n /**\n * DOM event binding.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {String} type The name of events.\n * @param {*} fn handler function\n * @param {*} [context] context object for handler method.\n * @private\n */\n _on: function(obj, type, fn, context) {\n var id,\n handler,\n originHandler;\n\n id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : '');\n\n if (obj[eventKey] && obj[eventKey][id]) {\n return;\n }\n\n handler = function(e) {\n fn.call(context || obj, e || window.event);\n };\n\n originHandler = handler;\n\n if ('addEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n handler = function(e) {\n e = e || window.event;\n if (!domevent._checkMouse(obj, e)) {\n return;\n }\n originHandler(e);\n };\n obj.addEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.addEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.addEventListener(type, handler, false);\n }\n } else if ('attachEvent' in obj) {\n obj.attachEvent('on' + type, handler);\n }\n\n obj[eventKey] = obj[eventKey] || {};\n obj[eventKey][id] = handler;\n },\n\n /**\n * Unbind DOM Event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n off: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._off(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._off(obj, type, handler, fn);\n });\n },\n\n /**\n * Unbind DOM event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {String} type The name of event to unbind.\n * @param {function()} fn Event handler that supplied when binding.\n * @param {*} context context object that supplied when binding.\n * @private\n */\n _off: function(obj, type, fn, context) {\n var id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : ''),\n handler = obj[eventKey] && obj[eventKey][id];\n\n if (!handler) {\n return;\n }\n\n if ('removeEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n obj.removeEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.removeEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.removeEventListener(type, handler, false);\n }\n } else if ('detachEvent' in obj) {\n try {\n obj.detachEvent('on' + type, handler);\n } catch (e) {} //eslint-disable-line\n }\n\n delete obj[eventKey][id];\n\n if (util.keys(obj[eventKey]).length) {\n return;\n }\n\n // throw exception when deleting host object's property in below IE8\n if (util.browser.msie && util.browser.version < 9) {\n obj[eventKey] = null;\n\n return;\n }\n\n delete obj[eventKey];\n },\n\n /**\n * Bind DOM event. this event will unbind after invokes.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n once: function(obj, types, fn, context) {\n var self = this;\n\n if (util.isObject(types)) {\n util.forEachOwnProperties(types, function(handler, type) {\n domevent.once(obj, type, handler, fn);\n });\n\n return;\n }\n\n /**\n * Handler for temporary usage for once implementation\n */\n function onceHandler() {\n fn.apply(context || obj, arguments);\n self._off(obj, types, onceHandler, context);\n }\n\n domevent.on(obj, types, onceHandler, context);\n },\n\n /**\n * Cancel event bubbling.\n * @param {Event} e Event object.\n */\n stopPropagation: function(e) {\n if (e.stopPropagation) {\n e.stopPropagation();\n } else {\n e.cancelBubble = true;\n }\n },\n\n /**\n * Cancel browser default actions.\n * @param {Event} e Event object.\n */\n preventDefault: function(e) {\n if (e.preventDefault) {\n e.preventDefault();\n } else {\n e.returnValue = false;\n }\n },\n\n /**\n * Syntatic sugar of stopPropagation and preventDefault\n * @param {Event} e Event object.\n */\n stop: function(e) {\n domevent.preventDefault(e);\n domevent.stopPropagation(e);\n },\n\n /**\n * Stop scroll events.\n * @param {HTMLElement} el HTML element to prevent scroll.\n */\n disableScrollPropagation: function(el) {\n domevent.on(el, 'mousewheel MozMousePixelScroll', domevent.stopPropagation);\n },\n\n /**\n * Stop all events related with click.\n * @param {HTMLElement} el HTML element to prevent all event related with click.\n */\n disableClickPropagation: function(el) {\n domevent.on(el, DRAG.START.join(' ') + ' click dblclick', domevent.stopPropagation);\n },\n\n /**\n * Get mouse position from mouse event.\n *\n * If supplied relatveElement parameter then return relative position based on element.\n * @param {Event} mouseEvent Mouse event object\n * @param {HTMLElement} relativeElement HTML element that calculate relative position.\n * @returns {number[]} mouse position.\n */\n getMousePosition: function(mouseEvent, relativeElement) {\n var rect;\n\n if (!relativeElement) {\n return [mouseEvent.clientX, mouseEvent.clientY];\n }\n\n rect = relativeElement.getBoundingClientRect();\n\n return [\n mouseEvent.clientX - rect.left - relativeElement.clientLeft,\n mouseEvent.clientY - rect.top - relativeElement.clientTop\n ];\n },\n\n /**\n * Normalize mouse wheel event that different each browsers.\n * @param {MouseEvent} e Mouse wheel event.\n * @returns {Number} delta\n */\n getWheelDelta: function(e) {\n var delta = 0;\n\n if (e.wheelDelta) {\n delta = e.wheelDelta / 120;\n }\n\n if (e.detail) {\n delta = -e.detail / 3;\n }\n\n return delta;\n },\n\n /**\n * prevent firing mouseleave event when mouse entered child elements.\n * @param {HTMLElement} el HTML element\n * @param {MouseEvent} e Mouse event\n * @returns {Boolean} leave?\n * @private\n */\n _checkMouse: function(el, e) {\n var related = e.relatedTarget;\n\n if (!related) {\n return true;\n }\n\n try {\n while (related && (related !== el)) {\n related = related.parentNode;\n }\n } catch (err) {\n return false;\n }\n\n return (related !== el);\n },\n\n /**\n * Trigger specific events to html element.\n * @param {HTMLElement} obj HTMLElement\n * @param {string} type Event type name\n * @param {object} [eventData] Event data\n */\n trigger: function(obj, type, eventData) {\n var rMouseEvent = /(mouse|click)/;\n if (util.isUndefined(eventData) && rMouseEvent.exec(type)) {\n eventData = domevent.mouseEvent(type);\n }\n\n if (obj.dispatchEvent) {\n obj.dispatchEvent(eventData);\n } else if (obj.fireEvent) {\n obj.fireEvent('on' + type, eventData);\n }\n },\n\n /**\n * Create virtual mouse event.\n *\n * Tested at\n *\n * - IE7 ~ IE11\n * - Chrome\n * - Firefox\n * - Safari\n * @param {string} type Event type\n * @param {object} [eventObj] Event data\n * @returns {MouseEvent} Virtual mouse event.\n */\n mouseEvent: function(type, eventObj) {\n var evt,\n e;\n\n e = util.extend({\n bubbles: true,\n cancelable: (type !== 'mousemove'),\n view: window,\n wheelDelta: 0,\n detail: 0,\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n ctrlKey: false,\n altKey: false,\n shiftKey: false,\n metaKey: false,\n button: 0,\n relatedTarget: undefined // eslint-disable-line\n }, eventObj);\n\n // prevent throw error when inserting wheelDelta property to mouse event on below IE8\n if (browser.msie && browser.version < 9) {\n delete e.wheelDelta;\n }\n\n if (typeof document.createEvent === 'function') {\n evt = document.createEvent('MouseEvents');\n evt.initMouseEvent(type,\n e.bubbles, e.cancelable, e.view, e.detail,\n e.screenX, e.screenY, e.clientX, e.clientY,\n e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\n e.button, document.body.parentNode\n );\n } else if (document.createEventObject) {\n evt = document.createEventObject();\n\n util.forEach(e, function(value, propName) {\n evt[propName] = value;\n }, this);\n evt.button = {0: 1,\n 1: 4,\n 2: 2}[evt.button] || evt.button;\n }\n\n return evt;\n },\n\n /**\n * Normalize mouse event's button attributes.\n *\n * Can detect which button is clicked by this method.\n *\n * Meaning of return numbers\n *\n * - 0: primary mouse button\n * - 1: wheel button or center button\n * - 2: secondary mouse button\n * @param {MouseEvent} mouseEvent - The mouse event object want to know.\n * @returns {number} - The value of meaning which button is clicked?\n */\n getMouseButton: function(mouseEvent) {\n var button,\n primary = '0,1,3,5,7',\n secondary = '2,6',\n wheel = '4';\n\n /* istanbul ignore else */\n if (document.implementation.hasFeature('MouseEvents', '2.0')) {\n return mouseEvent.button;\n }\n\n button = String(mouseEvent.button);\n if (primary.indexOf(button) > -1) {\n return 0;\n }\n if (secondary.indexOf(button) > -1) {\n return 2;\n }\n if (~wheel.indexOf(button)) {\n return 1;\n }\n\n return -1;\n }\n};\n\nmodule.exports = domevent;\n","// Create a simple path alias to allow browserify to resolve\n// the runtime on a supported path.\nmodule.exports = require('./dist/cjs/handlebars.runtime')['default'];\n","/**\n * @fileoverview The base class of views.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\n\n/**\n * Base class of views.\n *\n * All views create own container element inside supplied container element.\n * @constructor\n * @param {HTMLElement} container Default container element for view.\n * you can use this element for this.container syntax.\n */\nfunction View(container) {\n var id = util.stamp(this);\n\n if (util.isUndefined(container)) {\n container = domutil.appendHTMLElement('div');\n }\n\n domutil.addClass(container, this.cssprefix(id));\n\n /**\n * unique id\n * @type {number}\n */\n this.id = id;\n\n /**\n * base element of view.\n * @type {HTMLDIVElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * child views.\n * @type {Collection}\n */\n this.children = new Collection(function(view) {\n return util.stamp(view);\n });\n /* eslint-enable*/\n\n /**\n * parent view instance.\n * @type {View}\n */\n this.parent = null;\n\n /**\n * state of view\n */\n this.state = {};\n}\n\n/**\n * CSS classname prefix\n * @type {string}\n */\nView.prototype.cssPrefix = 'tui-view-';\n\n/**\n * Add child views.\n * @param {View} view The view instance to add.\n * @param {function} [fn] Function for invoke before add. parent view class is supplied first arguments.\n */\nView.prototype.addChild = function(view, fn) {\n if (fn) {\n fn.call(view, this);\n }\n // add parent view\n view.parent = this;\n\n this.children.add(view);\n};\n\n/**\n * Remove added child view.\n * @param {(number|View)} id View id or instance itself to remove.\n * @param {function} [fn] Function for invoke before remove. parent view class is supplied first arguments.\n */\nView.prototype.removeChild = function(id, fn) {\n var view = util.isNumber(id) ? this.children.items[id] : id;\n\n id = util.stamp(view);\n\n if (fn) {\n fn.call(view, this);\n }\n\n this.children.remove(id);\n};\n\n/**\n * Render view recursively.\n */\nView.prototype.render = function() {\n this.children.each(function(childView) {\n childView.render();\n });\n};\n\n/**\n * Invoke function recursively.\n * @param {function} fn - function to invoke child view recursively\n * @param {boolean} [skipThis=false] - set true then skip invoke with this(root) view.\n */\nView.prototype.recursive = function(fn, skipThis) {\n if (!util.isFunction(fn)) {\n return;\n }\n\n if (!skipThis) {\n fn(this);\n }\n\n this.children.each(function(childView) {\n childView.recursive(fn);\n });\n};\n\n/**\n * Resize view recursively to parent.\n */\nView.prototype.resize = function() {\n var args = Array.prototype.slice.call(arguments),\n parent = this.parent;\n\n while (parent) {\n if (util.isFunction(parent._onResize)) {\n parent._onResize.apply(parent, args);\n }\n\n parent = parent.parent;\n }\n};\n\n/**\n * Invoking method before destroying.\n */\nView.prototype._beforeDestroy = function() {};\n\n/**\n * Clear properties\n */\nView.prototype._destroy = function() {\n this._beforeDestroy();\n this.children.clear();\n this.container.innerHTML = '';\n\n this.id = this.parent = this.children = this.container = null;\n};\n\n/*eslint-disable*/\n/**\n * Destroy child view recursively.\n */\nView.prototype.destroy = function(isChildView) {\n this.children.each(function(childView) {\n childView.destroy(true);\n childView._destroy();\n });\n\n if (isChildView) {\n return;\n }\n\n this._destroy();\n};\n/* eslint-enable*/\n\n/**\n * Calculate view's container element bound.\n * @returns {object} The bound of container element.\n */\nView.prototype.getViewBound = function() {\n var container = this.container,\n position = domutil.getPosition(container),\n size = domutil.getSize(container);\n\n return {\n x: position[0],\n y: position[1],\n width: size[0],\n height: size[1]\n };\n};\n\n/**\n * Return view default CSS prefix\n * @param {string} [className] - if supplied then return prefix added class name\n * @returns {string} CSS prefix value\n */\nView.prototype.cssprefix = function(className) {\n return this.cssPrefix + (className || '');\n};\n\n/**\n * set state\n * @param {object} state - state\n */\nView.prototype.setState = function(state) {\n util.extend(this.state, state);\n};\n\nutil.CustomEvents.mixin(View);\n\nmodule.exports = View;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","/**\n * @fileoverview RequestAnimFrame\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar requestFn,\n cancelFn;\n\n/**\n * Get name with vendor prefix\n * @param {string} name - name to prepend prefix\n * @returns {string} vendor prefixed name\n */\nfunction getPrefixed(name) {\n return global['webkit' + name] || global['moz' + name] || global['ms' + name];\n}\n\nrequestFn = global.requestAnimationFrame ||\n getPrefixed('RequestAnimationFrame') ||\n function(fn, context) {\n fn.call(context);\n };\n\ncancelFn = global.cancelAnimationFrame ||\n getPrefixed('CancelAnimationFrame') ||\n getPrefixed('CancelRequestAnimationFrame') ||\n function() {};\n\n/**\n * @module module:reqAnimFrame\n */\n\nmodule.exports = {\n /**\n * Shim of requestAnimationFrame\n * @param {function} fn callback function\n * @param {*} context context for callback\n * @returns {number} Unique id\n */\n requestAnimFrame: function(fn, context) {\n return requestFn.call(global, util.bind(fn, context));\n },\n\n /**\n * Shim of cancelAnimationFrame\n * @param {number} id requestAnimationFrame id\n */\n cancelAnimFrame: function(id) {\n if (!id) {\n return;\n }\n\n cancelFn.call(global, id);\n }\n};\n","'use strict';\n\nexports.__esModule = true;\nexports.extend = extend;\nexports.indexOf = indexOf;\nexports.escapeExpression = escapeExpression;\nexports.isEmpty = isEmpty;\nexports.createFrame = createFrame;\nexports.blockParams = blockParams;\nexports.appendContextPath = appendContextPath;\n\nvar escape = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`',\n '=': '='\n};\n\nvar badChars = /[&<>\"'`=]/g,\n possible = /[&<>\"'`=]/;\n\nfunction escapeChar(chr) {\n return escape[chr];\n}\n\nfunction extend(obj /* , ...source */) {\n for (var i = 1; i < arguments.length; i++) {\n for (var key in arguments[i]) {\n if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {\n obj[key] = arguments[i][key];\n }\n }\n }\n\n return obj;\n}\n\nvar toString = Object.prototype.toString;\n\nexports.toString = toString;\n// Sourced from lodash\n// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt\n/* eslint-disable func-style */\nvar isFunction = function isFunction(value) {\n return typeof value === 'function';\n};\n// fallback for older versions of Chrome and Safari\n/* istanbul ignore next */\nif (isFunction(/x/)) {\n exports.isFunction = isFunction = function (value) {\n return typeof value === 'function' && toString.call(value) === '[object Function]';\n };\n}\nexports.isFunction = isFunction;\n\n/* eslint-enable func-style */\n\n/* istanbul ignore next */\nvar isArray = Array.isArray || function (value) {\n return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false;\n};\n\nexports.isArray = isArray;\n// Older IE versions do not directly support indexOf so we must implement our own, sadly.\n\nfunction indexOf(array, value) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (array[i] === value) {\n return i;\n }\n }\n return -1;\n}\n\nfunction escapeExpression(string) {\n if (typeof string !== 'string') {\n // don't escape SafeStrings, since they're already safe\n if (string && string.toHTML) {\n return string.toHTML();\n } else if (string == null) {\n return '';\n } else if (!string) {\n return string + '';\n }\n\n // Force a string conversion as this will be done by the append regardless and\n // the regex test will do this transparently behind the scenes, causing issues if\n // an object's to string has escaped characters in it.\n string = '' + string;\n }\n\n if (!possible.test(string)) {\n return string;\n }\n return string.replace(badChars, escapeChar);\n}\n\nfunction isEmpty(value) {\n if (!value && value !== 0) {\n return true;\n } else if (isArray(value) && value.length === 0) {\n return true;\n } else {\n return false;\n }\n}\n\nfunction createFrame(object) {\n var frame = extend({}, object);\n frame._parent = object;\n return frame;\n}\n\nfunction blockParams(params, ids) {\n params.path = ids;\n return params;\n}\n\nfunction appendContextPath(contextPath, id) {\n return (contextPath ? contextPath + '.' : '') + id;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQ0EsSUFBTSxNQUFNLEdBQUc7QUFDYixLQUFHLEVBQUUsT0FBTztBQUNaLEtBQUcsRUFBRSxNQUFNO0FBQ1gsS0FBRyxFQUFFLE1BQU07QUFDWCxLQUFHLEVBQUUsUUFBUTtBQUNiLEtBQUcsRUFBRSxRQUFRO0FBQ2IsS0FBRyxFQUFFLFFBQVE7QUFDYixLQUFHLEVBQUUsUUFBUTtDQUNkLENBQUM7O0FBRUYsSUFBTSxRQUFRLEdBQUcsWUFBWTtJQUN2QixRQUFRLEdBQUcsV0FBVyxDQUFDOztBQUU3QixTQUFTLFVBQVUsQ0FBQyxHQUFHLEVBQUU7QUFDdkIsU0FBTyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUM7Q0FDcEI7O0FBRU0sU0FBUyxNQUFNLENBQUMsR0FBRyxvQkFBbUI7QUFDM0MsT0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ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FtcywgaWRzKSB7XG4gIHBhcmFtcy5wYXRoID0gaWRzO1xuICByZXR1cm4gcGFyYW1zO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYXBwZW5kQ29udGV4dFBhdGgoY29udGV4dFBhdGgsIGlkKSB7XG4gIHJldHVybiAoY29udGV4dFBhdGggPyBjb250ZXh0UGF0aCArICcuJyA6ICcnKSArIGlkO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n\nvar errorProps = ['description', 'fileName', 'lineNumber', 'endLineNumber', 'message', 'name', 'number', 'stack'];\n\nfunction Exception(message, node) {\n var loc = node && node.loc,\n line = undefined,\n endLineNumber = undefined,\n column = undefined,\n endColumn = undefined;\n\n if (loc) {\n line = loc.start.line;\n endLineNumber = loc.end.line;\n column = loc.start.column;\n endColumn = loc.end.column;\n\n message += ' - ' + line + ':' + column;\n }\n\n var tmp = Error.prototype.constructor.call(this, message);\n\n // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n for (var idx = 0; idx < errorProps.length; idx++) {\n this[errorProps[idx]] = tmp[errorProps[idx]];\n }\n\n /* istanbul ignore else */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, Exception);\n }\n\n try {\n if (loc) {\n this.lineNumber = line;\n this.endLineNumber = endLineNumber;\n\n // Work around issue under safari where we can't directly set the column value\n /* istanbul ignore next */\n if (Object.defineProperty) {\n Object.defineProperty(this, 'column', {\n value: column,\n enumerable: true\n });\n Object.defineProperty(this, 'endColumn', {\n value: endColumn,\n enumerable: true\n });\n } else {\n this.column = column;\n this.endColumn = endColumn;\n }\n }\n } catch (nop) {\n /* Ignore if the browser is very particular */\n }\n}\n\nException.prototype = new Error();\n\nexports['default'] = Exception;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1l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xpbmVOdW1iZXIgPSBsaW5lO1xuICAgICAgdGhpcy5lbmRMaW5lTnVtYmVyID0gZW5kTGluZU51bWJlcjtcblxuICAgICAgLy8gV29yayBhcm91bmQgaXNzdWUgdW5kZXIgc2FmYXJpIHdoZXJlIHdlIGNhbid0IGRpcmVjdGx5IHNldCB0aGUgY29sdW1uIHZhbHVlXG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICAgICAgaWYgKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkge1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcywgJ2NvbHVtbicsIHtcbiAgICAgICAgICB2YWx1ZTogY29sdW1uLFxuICAgICAgICAgIGVudW1lcmFibGU6IHRydWVcbiAgICAgICAgfSk7XG4gICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh0aGlzLCAnZW5kQ29sdW1uJywge1xuICAgICAgICAgIHZhbHVlOiBlbmRDb2x1bW4sXG4gICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZVxuICAgICAgICB9KTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMuY29sdW1uID0gY29sdW1uO1xuICAgICAgICB0aGlzLmVuZENvbHVtbiA9IGVuZENvbHVtbjtcbiAgICAgIH1cbiAgICB9XG4gIH0gY2F0Y2ggKG5vcCkge1xuICAgIC8qIElnbm9yZSBpZiB0aGUgYnJvd3NlciBpcyB2ZXJ5IHBhcnRpY3VsYXIgKi9cbiAgfVxufVxuXG5FeGNlcHRpb24ucHJvdG90eXBlID0gbmV3IEVycm9yKCk7XG5cbmV4cG9ydCBkZWZhdWx0IEV4Y2VwdGlvbjtcbiJdfQ==\n","/**\n * @fileoverview Common collections.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachProp = util.forEachOwnProperties,\n forEachArr = util.forEachArray,\n isFunc = util.isFunction,\n isObj = util.isObject;\n\nvar aps = Array.prototype.slice;\n\n/**\n * Common collection.\n *\n * It need function for get model's unique id.\n *\n * if the function is not supplied then it use default function {@link Collection#getItemID}\n * @constructor\n * @param {function} [getItemIDFn] function for get model's id.\n */\nfunction Collection(getItemIDFn) {\n /**\n * @type {object.}\n */\n this.items = {};\n\n /**\n * @type {number}\n */\n this.length = 0;\n\n if (isFunc(getItemIDFn)) {\n /**\n * @type {function}\n */\n this.getItemID = getItemIDFn;\n }\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Combind supplied function filters and condition.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.and = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 0;\n\n for (; i < cnt; i += 1) {\n if (!filters[i].call(null, item)) {\n return false;\n }\n }\n\n return true;\n };\n};\n\n/**\n * Combine multiple function filters with OR clause.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.or = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 1,\n result = filters[0].call(null, item);\n\n for (; i < cnt; i += 1) {\n result = (result || filters[i].call(null, item));\n }\n\n return result;\n };\n};\n\n/**\n * Merge several collections.\n *\n * You can\\'t merge collections different _getScheduleID functions. Take case of use.\n * @param {...Collection} collections collection arguments to merge\n * @returns {Collection} merged collection.\n */\nCollection.merge = function(collections) { // eslint-disable-line\n var cols = aps.call(arguments),\n newItems = {},\n merged = new Collection(cols[0].getItemID),\n extend = util.extend;\n\n forEachArr(cols, function(col) {\n extend(newItems, col.items);\n });\n\n merged.items = newItems;\n merged.length = util.keys(merged.items).length;\n\n return merged;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * get model's unique id.\n * @param {object} item model instance.\n * @returns {number} model unique id.\n */\nCollection.prototype.getItemID = function(item) {\n return String(item._id);\n};\n\n/**\n * add models.\n * @param {...*} item models to add this collection.\n */\nCollection.prototype.add = function(item) {\n var self = this,\n id,\n ownItems;\n\n if (arguments.length > 1) {\n forEachArr(aps.call(arguments), function(o) {\n self.add(o);\n });\n\n return;\n }\n\n id = this.getItemID(item);\n ownItems = this.items;\n\n if (!ownItems[id]) {\n this.length += 1;\n }\n ownItems[id] = item;\n};\n\n/**\n * remove models.\n * @param {...(object|string|number)} id model instance or unique id to delete.\n * @returns {array} deleted model list.\n */\nCollection.prototype.remove = function(id) {\n var self = this,\n removed = [],\n ownItems,\n itemToRemove;\n\n if (!this.length) {\n return removed;\n }\n\n if (arguments.length > 1) {\n removed = util.map(aps.call(arguments), function(_id) {\n return self.remove(_id);\n });\n\n return removed;\n }\n\n ownItems = this.items;\n\n if (isObj(id)) {\n id = this.getItemID(id);\n }\n\n if (!ownItems[id]) {\n return removed;\n }\n\n this.length -= 1;\n itemToRemove = ownItems[id];\n delete ownItems[id];\n\n return itemToRemove;\n};\n\n/**\n * remove all models in collection.\n */\nCollection.prototype.clear = function() {\n this.items = {};\n this.length = 0;\n};\n\n/**\n * check collection has specific model.\n * @param {(object|string|number|function)} id model instance or id or filter function to check\n * @returns {boolean} is has model?\n */\nCollection.prototype.has = function(id) {\n var isFilter,\n has;\n\n if (!this.length) {\n return false;\n }\n\n isFilter = isFunc(id);\n has = false;\n\n if (isFilter) {\n this.each(function(item) {\n if (id(item) === true) {\n has = true;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n } else {\n id = isObj(id) ? this.getItemID(id) : id;\n has = util.isExisty(this.items[id]);\n }\n\n return has;\n};\n\n/**\n * invoke callback when model exist in collection.\n * @param {(string|number)} id model unique id.\n * @param {function} fn the callback.\n * @param {*} [context] callback context.\n */\nCollection.prototype.doWhenHas = function(id, fn, context) {\n var item = this.items[id];\n\n if (!util.isExisty(item)) {\n return;\n }\n\n fn.call(context || this, item);\n};\n\n/**\n * Search model. and return new collection.\n * @param {function} filter filter function.\n * @returns {Collection} new collection with filtered models.\n * @example\n * collection.find(function(item) {\n * return item.edited === true;\n * });\n *\n * function filter1(item) {\n * return item.edited === false;\n * }\n *\n * function filter2(item) {\n * return item.disabled === false;\n * }\n *\n * collection.find(Collection.and(filter1, filter2));\n *\n * collection.find(Collection.or(filter1, filter2));\n */\nCollection.prototype.find = function(filter) {\n var result = new Collection();\n\n if (this.hasOwnProperty('getItemID')) {\n result.getItemID = this.getItemID;\n }\n\n this.each(function(item) {\n if (filter(item) === true) {\n result.add(item);\n }\n });\n\n return result;\n};\n\n/**\n * Group element by specific key values.\n *\n * if key parameter is function then invoke it and use returned value.\n * @param {(string|number|function|array)} key key property or getter function.\n * if string[] supplied, create each collection before grouping.\n * @param {function} [groupFunc] - function that return each group's key\n * @returns {object.} grouped object\n * @example\n *\n * // pass `string`, `number`, `boolean` type value then group by property value.\n * collection.groupBy('gender'); // group by 'gender' property value.\n * collection.groupBy(50); // group by '50' property value.\n *\n * // pass `function` then group by return value. each invocation `function` is called with `(item)`.\n * collection.groupBy(function(item) {\n * if (item.score > 60) {\n * return 'pass';\n * }\n * return 'fail';\n * });\n *\n * // pass `array` with first arguments then create each collection before grouping.\n * collection.groupBy(['go', 'ruby', 'javascript']);\n * // result: { 'go': empty Collection, 'ruby': empty Collection, 'javascript': empty Collection }\n *\n * // can pass `function` with `array` then group each elements.\n * collection.groupBy(['go', 'ruby', 'javascript'], function(item) {\n * if (item.isFast) {\n * return 'go';\n * }\n *\n * return item.name;\n * });\n */\nCollection.prototype.groupBy = function(key, groupFunc) {\n var result = {},\n collection,\n baseValue,\n keyIsFunc = isFunc(key),\n getItemIDFn = this.getItemID;\n\n if (util.isArray(key)) {\n util.forEachArray(key, function(k) {\n result[String(k)] = new Collection(getItemIDFn);\n });\n\n if (!groupFunc) {\n return result;\n }\n\n key = groupFunc;\n keyIsFunc = true;\n }\n\n this.each(function(item) {\n if (keyIsFunc) {\n baseValue = key(item);\n } else {\n baseValue = item[key];\n\n if (isFunc(baseValue)) {\n baseValue = baseValue.apply(item);\n }\n }\n\n collection = result[baseValue];\n\n if (!collection) {\n collection = result[baseValue] = new Collection(getItemIDFn);\n }\n\n collection.add(item);\n });\n\n return result;\n};\n\n/**\n * Return single item in collection.\n *\n * Returned item is inserted in this collection firstly.\n * @param {function} [filter] - function filter\n * @returns {object} item.\n */\nCollection.prototype.single = function(filter) {\n var result,\n useFilter = util.isFunction(filter);\n\n this.each(function(item) {\n if (!useFilter) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n if (filter(item)) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n }, this);\n\n return result;\n};\n\n/**\n * sort a basis of supplied compare function.\n * @param {function} compareFunction compareFunction\n * @returns {array} sorted array.\n */\nCollection.prototype.sort = function(compareFunction) {\n var arr = [];\n\n this.each(function(item) {\n arr.push(item);\n });\n\n if (isFunc(compareFunction)) {\n arr = arr.sort(compareFunction);\n }\n\n return arr;\n};\n\n/**\n * iterate each model element.\n *\n * when iteratee return false then break the loop.\n * @param {function} iteratee iteratee(item, index, items)\n * @param {*} [context] context\n */\nCollection.prototype.each = function(iteratee, context) {\n forEachProp(this.items, iteratee, context || this);\n};\n\n/**\n * return new array with collection items.\n * @returns {array} new array.\n */\nCollection.prototype.toArray = function() {\n if (!this.length) {\n return [];\n }\n\n return util.map(this.items, function(item) {\n return item;\n });\n};\n\nmodule.exports = Collection;\n","/* eslint complexity: 0 */\n/**\n * @fileoverview Model of schedule.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar TZDate = require('../common/timezone').Date;\nvar datetime = require('../common/datetime');\nvar dirty = require('../common/dirty');\nvar model = require('../common/model');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * Schedule category\n * @readonly\n * @enum {string}\n */\nvar SCHEDULE_CATEGORY = {\n /** milestone */\n MILESTONE: 'milestone',\n\n /** task */\n TASK: 'task',\n\n /** all-day schedule */\n ALLDAY: 'allday',\n\n /** normal schedule */\n TIME: 'time'\n};\n\n/**\n * The model of calendar schedules.\n * @constructor\n * @mixes dirty\n * @mixes model\n */\nfunction Schedule() {\n /**\n * `Optional` unique id for various use.\n * @type {string}\n */\n this.id = '';\n\n /**\n * title for schedule.\n * @type {string}\n */\n this.title = '';\n\n /**\n * body for schedule.\n * @type {string}\n */\n this.body = '';\n\n /**\n * is schedule is all day schedule?\n * @type {boolean}\n */\n this.isAllDay = false;\n\n /**\n * schedule start\n * @type {TZDate}\n */\n this.start = null;\n\n /**\n * schedule end\n * @type {TZDate}\n */\n this.end = null;\n\n /**\n * schedule text color\n * @type {string}\n */\n this.color = '#000';\n\n /**\n * schedule block visibility\n * @type {boolean}\n */\n this.isVisible = true;\n\n /**\n * schedule background color\n * @type {string}\n */\n this.bgColor = '#a1b56c';\n\n /**\n * schedule background color when dragging it\n * @type {string}\n */\n this.dragBgColor = '#a1b56c';\n\n /**\n * schedule left border color\n * @type {string}\n */\n this.borderColor = '#000';\n\n /**\n * calendar ID\n * @type {string}\n */\n this.calendarId = '';\n\n /**\n * Schedule category(milestone, task, allday, time)\n * @type {string}\n */\n this.category = '';\n\n /**\n * Classification of work schedules (before work, before lunch, before work)\n * @type {string}\n */\n this.dueDateClass = '';\n\n /**\n * Custom style for schedule element\n * @type {string}\n */\n this.customStyle = '';\n\n /**\n * in progress flag to do something\n * @type {boolean}\n */\n this.isPending = false;\n\n /**\n * focused schedule flag\n * @type {boolean}\n */\n this.isFocused = false;\n\n /**\n * read-only schedule flag\n * @type {boolean}\n */\n this.isReadOnly = false;\n\n /**\n * private schedule\n * @type {boolean}\n */\n this.isPrivate = false;\n\n /**\n * location\n * @type {string}\n */\n this.location = '';\n\n /**\n * attendees\n * @type {Array.}\n */\n this.attendees = [];\n\n /**\n * recurrence rule\n * @type {any}\n */\n this.recurrenceRule = '';\n\n /**\n * state. 'Busy' is default.\n * @type {string}\n */\n this.state = '';\n\n /**\n * travelTime: going-Duration minutes\n * @type {number}\n */\n this.goingDuration = 0;\n\n /**\n * travelTime: coming-Duration minutes\n * @type {number}\n */\n this.comingDuration = 0;\n\n /**\n * Separate data storage space independent of rendering.\n * @type {object}\n */\n this.raw = null;\n\n // initialize model id\n util.stamp(this);\n}\n\n/**********\n * static props\n **********/\n\nSchedule.schema = {\n required: ['title'],\n dateRange: ['start', 'end']\n};\n\n/**\n * create schedule model from json(object) data.\n * @param {object} data object for model.\n * @returns {Schedule} Schedule model instance.\n */\nSchedule.create = function(data) {\n var inst = new Schedule();\n inst.init(data);\n\n return inst;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Initialize schedule instance.\n * @param {object} options options.\n */\nSchedule.prototype.init = function(options) {\n options = util.extend({}, options);\n if (options.category === SCHEDULE_CATEGORY.ALLDAY) {\n options.isAllDay = true;\n }\n\n this.id = options.id || '';\n this.title = options.title || '';\n this.body = options.body || '';\n this.isAllDay = util.isExisty(options.isAllDay) ? options.isAllDay : false;\n this.isVisible = util.isExisty(options.isVisible) ? options.isVisible : true;\n\n this.color = options.color || this.color;\n this.bgColor = options.bgColor || this.bgColor;\n this.dragBgColor = options.dragBgColor || this.dragBgColor;\n this.borderColor = options.borderColor || this.borderColor;\n this.calendarId = options.calendarId || '';\n this.category = options.category || '';\n this.dueDateClass = options.dueDateClass || '';\n this.customStyle = options.customStyle || '';\n this.location = options.location || '';\n this.attendees = options.attendees || [];\n this.recurrenceRule = options.recurrenceRule || '';\n this.isPrivate = options.isPrivate || false;\n this.isPending = options.isPending || false;\n this.isFocused = options.isFocused || false;\n this.isReadOnly = options.isReadOnly || false;\n this.goingDuration = options.goingDuration || 0;\n this.comingDuration = options.comingDuration || 0;\n this.state = options.state || '';\n\n if (this.isAllDay) {\n this.setAllDayPeriod(options.start, options.end);\n } else {\n this.setTimePeriod(options.start, options.end);\n }\n\n this.raw = options.raw || null;\n};\n\nSchedule.prototype.setAllDayPeriod = function(start, end) {\n // If it is an all-day schedule, only the date information of the string is used.\n if (util.isString(start)) {\n start = datetime.parse(start.substring(0, 10));\n } else {\n start = new TZDate(start || Date.now());\n }\n if (util.isString(end)) {\n end = datetime.parse(end.substring(0, 10));\n } else {\n end = new TZDate(end || this.start);\n }\n\n this.start = start;\n this.start.setHours(0, 0, 0);\n this.end = end || new TZDate(this.start);\n this.end.setHours(23, 59, 59);\n};\n\nSchedule.prototype.setTimePeriod = function(start, end) {\n this.start = new TZDate(start || Date.now());\n this.end = new TZDate(end || this.start);\n\n if (!end) {\n this.end.setMinutes(this.end.getMinutes() + 30);\n }\n};\n\n/**\n * @returns {Date} render start date.\n */\nSchedule.prototype.getStarts = function() {\n return this.start;\n};\n\n/**\n * @returns {Date} render end date.\n */\nSchedule.prototype.getEnds = function() {\n return this.end;\n};\n\n/**\n * @returns {number} instance unique id.\n */\nSchedule.prototype.cid = function() {\n return util.stamp(this);\n};\n\n/**\n * Check two schedule are equals (means title, isAllDay, start, end are same)\n * @param {Schedule} schedule Schedule model instance to compare.\n * @returns {boolean} Return false when not same.\n */\nSchedule.prototype.equals = function(schedule) {\n if (this.id !== schedule.id) {\n return false;\n }\n\n if (this.title !== schedule.title) {\n return false;\n }\n\n if (this.body !== schedule.body) {\n return false;\n }\n\n if (this.isAllDay !== schedule.isAllDay) {\n return false;\n }\n\n if (datetime.compare(this.getStarts(), schedule.getStarts()) !== 0) {\n return false;\n }\n\n if (datetime.compare(this.getEnds(), schedule.getEnds()) !== 0) {\n return false;\n }\n\n if (this.color !== schedule.color) {\n return false;\n }\n\n if (this.bgColor !== schedule.bgColor) {\n return false;\n }\n\n if (this.dragBgColor !== schedule.dragBgColor) {\n return false;\n }\n\n if (this.borderColor !== schedule.borderColor) {\n return false;\n }\n\n return true;\n};\n\n/**\n * return duration between start and end.\n * @returns {Date} duration (UTC)\n */\nSchedule.prototype.duration = function() {\n var start = this.getStarts(),\n end = this.getEnds(),\n duration;\n\n if (this.isAllDay) {\n duration = datetime.end(end) - datetime.start(start);\n } else {\n duration = end - start;\n }\n\n return duration;\n};\n\n/**\n * Returns true if the given Schedule coincides with the same time as the\n * calling Schedule.\n * @param {Schedule} schedule The other schedule to compare with this Schedule.\n * @returns {boolean} If the other schedule occurs within the same time as the first object.\n */\nSchedule.prototype.collidesWith = function(schedule) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = schedule.getStarts(),\n end = schedule.getEnds();\n var ownGoingDuration = datetime.millisecondsFrom('minutes', this.goingDuration),\n ownComingDuration = datetime.millisecondsFrom('minutes', this.comingDuration),\n goingDuration = datetime.millisecondsFrom('minutes', schedule.goingDuration),\n comingDuration = datetime.millisecondsFrom('minutes', schedule.comingDuration);\n\n if (Math.abs(ownEnds - ownStarts) < SCHEDULE_MIN_DURATION) {\n ownEnds += SCHEDULE_MIN_DURATION;\n }\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n ownStarts -= ownGoingDuration;\n ownEnds += ownComingDuration;\n start -= goingDuration;\n end += comingDuration;\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodel.mixin(Schedule.prototype);\ndirty.mixin(Schedule.prototype);\n\nmodule.exports = Schedule;\n","/**\n * @fileoverview Utility module for array sort, binary search.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar datetime = require('../common/datetime');\n\n/**\n * A module for sorting array.\n * @module array\n */\n\n/**********\n * Search\n **********/\n\n/**\n * search item index using binary search algorithm.\n *\n * the array must be sorted.\n * @param {array} arr array to search.\n * @param {(string|number|boolean)} search value to search.\n * @param {function} [fn] iteratee for retrieve each element's value to search.\n * @param {function} [compare] compare function for specific sort status. default is string ascending.\n * @returns {number} The number of item index searched. return negative number when no exist that item.\n * It can use insert index after Math.abs()\n * @example\n *\n * var arr = [1, 3, 7, 11, 15, 23];\n *\n * function sortNumber(a, b) {\n * return a - b;\n * }\n *\n * bsearch(arr, 15, null, sortNumber); // 4\n * bsearch(arr, 21, null, sortNumber); // -5\n *\n * arr.splice(Math.abs(bsearch(arr, 21, null, sortNumber)), 0, 21);\n * // [1, 2, 7, 11, 15, 21, 23]\n */\nfunction bsearch(arr, search, fn, compare) {\n var minIndex = 0,\n maxIndex = arr.length - 1,\n currentIndex,\n value,\n comp;\n\n compare = compare || stringASC;\n\n while (minIndex <= maxIndex) {\n currentIndex = (minIndex + maxIndex) / 2 | 0; // Math.floor\n value = fn ? fn(arr[currentIndex]) : arr[currentIndex];\n comp = compare(value, search);\n\n if (comp < 0) {\n minIndex = currentIndex + 1;\n } else if (comp > 0) {\n maxIndex = currentIndex - 1;\n } else {\n return currentIndex;\n }\n }\n\n return ~maxIndex;\n}\n\n/**********\n * Compare Functions\n **********/\n\n/**\n * compare function for array sort.\n *\n * sort array by ascending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanASC(a, b) {\n if (a !== b) {\n return a ? -1 : 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by descending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanDESC(a, b) {\n if (a !== b) {\n return a ? 1 : -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number ascending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberASC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return a - b;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number descending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberDESC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return b - a;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * Compare schedule models for sort.\n *\n * 1. all day schedule first.\n * 2. early start.\n * 3. longest duration.\n * 4. early created.\n * @param {Schedule|ScheduleViewModel} a The object schedule instance.\n * @param {Schedule|ScheduleViewModel} b The object schedule instance.\n * @returns {number} Result of comparison.\n */\nfunction scheduleASC(a, b) {\n var durationA, durationB;\n var allDayCompare, startsCompare;\n var modelA = a.valueOf();\n var modelB = b.valueOf();\n\n allDayCompare = booleanASC(modelA.isAllDay || a.hasMultiDates, modelB.isAllDay || b.hasMultiDates);\n\n if (allDayCompare) {\n return allDayCompare;\n }\n\n startsCompare = datetime.compare(a.getStarts(), b.getStarts());\n\n if (startsCompare) {\n return startsCompare;\n }\n\n durationA = a.duration();\n durationB = b.duration();\n\n if (durationA < durationB) {\n return 1;\n }\n if (durationA > durationB) {\n return -1;\n }\n\n return util.stamp(modelA) - util.stamp(modelB);\n}\n\nmodule.exports = {\n bsearch: bsearch,\n compare: {\n schedule: {\n asc: scheduleASC\n },\n bool: {\n asc: booleanASC,\n desc: booleanDESC\n },\n num: {\n asc: numberASC,\n desc: numberDESC\n },\n str: {\n asc: stringASC,\n desc: stringDESC,\n ascIgnoreCase: stringASCIgnoreCase,\n descIgnoreCase: stringDESCIgnoreCase\n }\n }\n};\n","/**\n * @fileoverview Floating layer module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for floating layer module\n * @param {HTMLElement} container - parent continer for floating layer\n */\nfunction FloatingLayer(options, container) {\n var sibling = container[FloatingLayer.PROP_KEY],\n layerContainer;\n\n if (!sibling) {\n sibling = container[FloatingLayer.PROP_KEY] = [];\n }\n\n sibling.push(this);\n\n /**\n * @type {Collection}\n */\n this.sibling = sibling;\n\n /**\n * @type {number}\n */\n this.zIndex = this.getLargestZIndex() || FloatingLayer.INIT_ZINDEX;\n\n layerContainer = document.createElement('div');\n layerContainer.style.display = 'none';\n layerContainer.style.position = 'absolute';\n domutil.addClass(layerContainer, config.classname('floating-layer'));\n container.appendChild(layerContainer);\n\n View.call(this, layerContainer);\n\n /**\n * @type {HTMLElement}\n */\n this.parent = container;\n}\n\nutil.inherit(FloatingLayer, View);\n\n/**\n * @const\n */\nFloatingLayer.PROP_KEY = '__fe_floating_layer';\n\n/**\n * @const\n */\nFloatingLayer.INIT_ZINDEX = 999;\n\n/**\n * Destroy floating layer instance. if there no instnace in parent container\n *\n * remove instance cache property in container element\n */\nFloatingLayer.prototype.destroy = function() {\n var parent = this.parent,\n sibling = this.sibling,\n i = 0, cnt = sibling.length;\n\n for (; i < cnt; i += 1) {\n if (sibling[i] === this) {\n sibling.splice(i, 1);\n break;\n }\n }\n\n if (!sibling.length) {\n try {\n delete parent[FloatingLayer.PROP_KEY];\n } catch (e) {\n parent[FloatingLayer.PROP_KEY] = null;\n }\n\n parent.style.position = '';\n }\n\n domutil.remove(this.container);\n\n this.sibling = null;\n\n View.prototype.destroy.call(this);\n};\n\n/**\n * @returns {boolean} whether layer is visible?\n */\nFloatingLayer.prototype.isVisible = function() {\n return this.container.style.display !== 'none';\n};\n\n/**\n * Set layer position\n * @param {number} x - x coordinate of layer\n * @param {number} y - y coordinate of layer\n */\nFloatingLayer.prototype.setPosition = function(x, y) {\n domutil.setPosition(this.container, x, y);\n};\n\n/**\n * Set layer left, top, right, bottom position\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\nFloatingLayer.prototype.setLTRB = function(ltrb) {\n domutil.setLTRB(this.container, ltrb);\n};\n\n/**\n * Set layer size\n * @param {number|string} w - layer width\n * @param {number|string} h - layer height\n */\nFloatingLayer.prototype.setSize = function(w, h) {\n var container = this.container;\n\n w = util.isNumber(w) ? w + 'px' : w;\n h = util.isNumber(h) ? h + 'px' : h;\n\n container.style.width = w;\n container.style.height = h;\n};\n\n/**\n * Set layer content\n * @param {string} html - html string\n */\nFloatingLayer.prototype.setContent = function(html) {\n this.container.innerHTML = html;\n};\n\n/**\n * Get largest z-index from sibling layers\n * @returns {number} largest z-index value\n */\nFloatingLayer.prototype.getLargestZIndex = function() {\n var zIndexes = util.map(this.sibling, function(layer) {\n return layer.zIndex;\n });\n\n return Math.max.apply(null, zIndexes);\n};\n\n/**\n * Set focus to layer\n */\nFloatingLayer.prototype.focus = function() {\n var zIndexForShow = this.getLargestZIndex() + 1;\n this.container.style.zIndex = this.zIndex = zIndexForShow;\n};\n\n/**\n * Show layer\n */\nFloatingLayer.prototype.show = function() {\n this.focus();\n this.container.style.display = 'block';\n};\n\n/**\n * Hide layer\n */\nFloatingLayer.prototype.hide = function() {\n this.container.style.display = 'none';\n};\n\nmodule.exports = FloatingLayer;\n","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Base mixin object for handler/daygrid\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\n\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @mixin dayGridCore\n */\nvar dayGridCore = {\n /**\n * @param {view} view - view instance.\n * @param {MouseEvent} mouseEvent - mouse schedule object.\n * @returns {function|boolean} function that return schedule data by mouse events.\n */\n _retriveScheduleData: function(view, mouseEvent) {\n var weekdayView = view.children.single(),\n container,\n datesInRange,\n containerWidth,\n mousePos,\n dragStartXIndex,\n grids,\n range;\n\n if (!weekdayView) {\n return false;\n }\n\n container = weekdayView.container;\n range = weekdayView.getRenderDateRange();\n datesInRange = range.length;\n grids = weekdayView.getRenderDateGrids();\n\n containerWidth = domutil.getSize(container)[0];\n mousePos = domevent.getMousePosition(mouseEvent, container);\n dragStartXIndex = getX(grids, common.ratio(containerWidth, 100, mousePos[0]));\n\n /**\n * @param {MouseEvent} mouseEvent - mouse schedule in drag actions.\n * @returns {object} schedule data.\n */\n return function(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, container),\n mouseX = pos[0],\n xIndex = getX(grids, common.ratio(containerWidth, 100, mouseX));\n\n // apply limitation of creation schedule X index.\n xIndex = mmax(xIndex, 0);\n xIndex = mmin(xIndex, datesInRange - 1);\n\n return {\n relatedView: view,\n dragStartXIndex: dragStartXIndex,\n datesInRange: datesInRange,\n xIndex: xIndex,\n triggerEvent: mouseEvent.type,\n grids: grids,\n range: range\n };\n };\n },\n\n /**\n * @param {view} view - view instance.\n * @param {TZDate} startDate - start date\n * @returns {function|boolean} function that return schedule data by mouse events.\n */\n _retriveScheduleDataFromDate: function(view, startDate) {\n var weekdayView = view.children.single(),\n datesInRange,\n dragStartXIndex = 0,\n grids,\n range;\n\n if (!weekdayView) {\n return false;\n }\n\n range = weekdayView.getRenderDateRange();\n datesInRange = range.length;\n grids = weekdayView.getRenderDateGrids();\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, startDate)) {\n dragStartXIndex = index;\n }\n });\n\n /**\n * @param {TZDate} targetDate - target date\n * @returns {object} schedule data.\n */\n return function(targetDate) {\n var xIndex = 0;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, targetDate)) {\n xIndex = index;\n }\n });\n\n // apply limitation of creation schedule X index.\n xIndex = mmax(xIndex, 0);\n xIndex = mmin(xIndex, datesInRange - 1);\n\n return {\n relatedView: view,\n dragStartXIndex: dragStartXIndex,\n datesInRange: datesInRange,\n xIndex: xIndex,\n triggerEvent: 'manual',\n grids: grids,\n range: range\n };\n };\n }\n};\n\n/**\n * Get the left index\n * @param {Array} grids - grid size information\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\nfunction getX(grids, left) {\n var i = 0;\n var length = grids.length;\n var grid;\n if (left < 0) {\n left = 0;\n }\n\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return i;\n}\n\nmodule.exports = dayGridCore;\n","/**\n * @fileoverview Core methods for dragging actions\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar domevent = require('../../common/domevent');\nvar Point = require('../../common/point');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @mixin Time.Core\n */\nvar timeCore = {\n /**\n * Get Y index ratio(hour) in time grids by supplied parameters.\n * @param {number} baseMil - base milliseconds number for supplied height.\n * @param {number} height - container element height.\n * @param {number} y - Y coordinate to calculate hour ratio.\n * @returns {number} hour index ratio value.\n */\n _calcGridYIndex: function(baseMil, height, y) {\n // get ratio from right expression > point.y : x = session.height : baseMil\n // and convert milliseconds value to hours.\n var result = datetime.millisecondsTo('hour', (y * baseMil) / height),\n floored = result | 0,\n nearest = common.nearest(result - floored, [0, 1]);\n\n return floored + (nearest ? 0.5 : 0);\n },\n\n /**\n * Get function to makes event data from Time and mouseEvent\n * @param {Time} timeView - Instance of time view.\n * @returns {function} - Function that return event data from mouse event.\n */\n _retriveScheduleData: function(timeView) {\n var self = this,\n container = timeView.container,\n options = timeView.options,\n viewHeight = timeView.getViewBound().height,\n viewTime = timeView.getDate(),\n hourLength = options.hourEnd - options.hourStart,\n baseMil = datetime.millisecondsFrom('hour', hourLength);\n\n /**\n * @param {MouseEvent} mouseEvent - mouse event object to get common event data.\n * @param {object} [extend] - object to extend event data before return.\n * @returns {object} - common event data for time.*\n */\n return util.bind(function(mouseEvent, extend) {\n var mouseY = Point.n(domevent.getMousePosition(mouseEvent, container)).y,\n gridY = common.ratio(viewHeight, hourLength, mouseY),\n timeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(gridY)),\n nearestGridY = self._calcGridYIndex(baseMil, viewHeight, mouseY),\n nearestGridTimeY = new TZDate(viewTime).addMinutes(\n datetime.minutesFromHours(nearestGridY + options.hourStart)\n );\n\n return util.extend({\n target: mouseEvent.target || mouseEvent.srcElement,\n relatedView: timeView,\n originEvent: mouseEvent,\n mouseY: mouseY,\n gridY: gridY,\n timeY: timeY,\n nearestGridY: nearestGridY,\n nearestGridTimeY: nearestGridTimeY,\n triggerEvent: mouseEvent.type\n }, extend);\n }, this);\n },\n\n /**\n * Get function to makes event data from Time and mouseEvent\n * @param {Time} timeView - Instance of time view.\n * @param {number} xIndex - Time view index\n * @returns {function} - Function that return event data from mouse event.\n */\n _retriveScheduleDataFromDate: function(timeView) {\n var viewTime = timeView.getDate();\n\n /**\n * @param {TZDate} startDate - start date\n * @param {TZDate} endDate - end date\n * @param {number} hourStart Can limit of render hour start.\n * @returns {object} - common event data for time.*\n */\n return util.bind(function(startDate, endDate, hourStart) {\n var gridY, timeY, nearestGridY, nearestGridTimeY, nearestGridEndY, nearestGridEndTimeY;\n\n gridY = startDate.getHours() - hourStart + getNearestHour(startDate.getMinutes());\n timeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(gridY));\n nearestGridY = gridY;\n nearestGridTimeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(nearestGridY));\n nearestGridEndY = endDate.getHours() - hourStart + getNearestHour(endDate.getMinutes());\n nearestGridEndTimeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(nearestGridEndY));\n\n return util.extend({\n target: timeView,\n relatedView: timeView,\n gridY: gridY,\n timeY: timeY,\n nearestGridY: nearestGridY,\n nearestGridTimeY: nearestGridTimeY,\n nearestGridEndY: nearestGridEndY,\n nearestGridEndTimeY: nearestGridEndTimeY,\n triggerEvent: 'manual',\n hourStart: hourStart\n });\n }, this);\n },\n\n /**\n * Mixin method.\n * @param {(TimeCreation|TimeMove)} obj - Constructor functions\n */\n mixin: function(obj) {\n var proto = obj.prototype;\n util.forEach(timeCore, function(method, methodName) {\n if (methodName === 'mixin') {\n return;\n }\n\n proto[methodName] = method;\n });\n }\n};\n\n/**\n * Get the nearest hour\n * @param {number} minutes - minutes\n * @returns {number} hour\n */\nfunction getNearestHour(minutes) {\n var nearestHour;\n if (minutes === 0) {\n nearestHour = 0;\n } else if (minutes > 30) {\n nearestHour = 1;\n } else if (minutes <= 30) {\n nearestHour = 0.5;\n }\n\n return nearestHour;\n}\n\nmodule.exports = timeCore;\n","/**\n * @fileoverview Module for calculate date by month view and mouse event object\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent');\nvar mfloor = Math.floor;\n\n/**\n * Get high order function that can calc date in mouse point\n * @param {Month} monthView - month view\n * @returns {function} function return event data by mouse event object\n */\nfunction getMousePosDate(monthView) {\n var weekColl = monthView.children,\n weeks = weekColl.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n }),\n weekCount = weekColl.length,\n days = weekColl.single().getRenderDateRange(),\n dayCount = days.length,\n relativeContainer = util.pick(monthView.vLayout.panels[1], 'container'),\n size = domutil.getSize(relativeContainer),\n grids = monthView.grids;\n\n /**\n * Get the left index\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\n function getX(left) {\n var i = 0;\n var length = grids.length;\n var grid;\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return left < 0 ? -1 : i;\n }\n\n /**\n * Get date related with mouse event object\n * @param {object} mouseEvent - click event data\n * @returns {object} data related with mouse event\n */\n function getDate(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, relativeContainer),\n x = getX(common.ratio(size[0], 100, pos[0])),\n y = mfloor(common.ratio(size[1], weekCount, pos[1])),\n weekdayView,\n date,\n dateRange;\n\n if (y < 0) {\n y = 0;\n }\n if (y >= weeks.length) {\n y = weeks.length - 1;\n }\n\n weekdayView = util.pick(weeks, y);\n\n if (!weekdayView) {\n return null;\n }\n\n dateRange = weekdayView.getRenderDateRange();\n if (x < 0) {\n x = 0;\n }\n if (x >= dateRange.length) {\n x = dateRange.length - 1;\n }\n\n date = util.pick(dateRange, x);\n\n if (!date) {\n return null;\n }\n\n return {\n x: x,\n y: y,\n sizeX: dayCount,\n sizeY: weekCount,\n date: date,\n weekdayView: weekdayView,\n triggerEvent: mouseEvent.type\n };\n }\n\n return getDate;\n}\n\nmodule.exports = getMousePosDate;\n","module.exports = require('handlebars/runtime');","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _handlebarsBase = require('./handlebars/base');\n\nvar base = _interopRequireWildcard(_handlebarsBase);\n\n// Each of these augment the Handlebars object. No need to setup here.\n// (This is done to easily share code between commonjs and browse envs)\n\nvar _handlebarsSafeString = require('./handlebars/safe-string');\n\nvar _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);\n\nvar _handlebarsException = require('./handlebars/exception');\n\nvar _handlebarsException2 = _interopRequireDefault(_handlebarsException);\n\nvar _handlebarsUtils = require('./handlebars/utils');\n\nvar Utils = _interopRequireWildcard(_handlebarsUtils);\n\nvar _handlebarsRuntime = require('./handlebars/runtime');\n\nvar runtime = _interopRequireWildcard(_handlebarsRuntime);\n\nvar _handlebarsNoConflict = require('./handlebars/no-conflict');\n\nvar _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);\n\n// For compatibility and usage outside of module systems, make the Handlebars object a namespace\nfunction create() {\n var hb = new base.HandlebarsEnvironment();\n\n Utils.extend(hb, base);\n hb.SafeString = _handlebarsSafeString2['default'];\n hb.Exception = _handlebarsException2['default'];\n hb.Utils = Utils;\n hb.escapeExpression = Utils.escapeExpression;\n\n hb.VM = runtime;\n hb.template = function (spec) {\n return runtime.template(spec, hb);\n };\n\n return hb;\n}\n\nvar inst = create();\ninst.create = create;\n\n_handlebarsNoConflict2['default'](inst);\n\ninst['default'] = inst;\n\nexports['default'] = inst;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OEJBQXNCLG1CQUFtQjs7SUFBN0IsSUFBSTs7Ozs7b0NBSU8sMEJBQTBCOzs7O21DQUMzQix3QkFBd0I7Ozs7K0JBQ3ZCLG9CQUFvQjs7SUFBL0IsS0FBSzs7aUNBQ1Esc0JBQXNCOztJQUFuQyxPQUFPOztvQ0FFSSwwQkFBMEI7Ozs7O0FBR2pELFN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29uZmxpY3QoaW5zdCk7XG5cbmluc3RbJ2RlZmF1bHQnXSA9IGluc3Q7XG5cbmV4cG9ydCBkZWZhdWx0IGluc3Q7XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\nexports.HandlebarsEnvironment = HandlebarsEnvironment;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('./utils');\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _helpers = require('./helpers');\n\nvar _decorators = require('./decorators');\n\nvar _logger = require('./logger');\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nvar VERSION = '4.5.3';\nexports.VERSION = VERSION;\nvar COMPILER_REVISION = 8;\nexports.COMPILER_REVISION = COMPILER_REVISION;\nvar LAST_COMPATIBLE_COMPILER_REVISION = 7;\n\nexports.LAST_COMPATIBLE_COMPILER_REVISION = LAST_COMPATIBLE_COMPILER_REVISION;\nvar REVISION_CHANGES = {\n 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it\n 2: '== 1.0.0-rc.3',\n 3: '== 1.0.0-rc.4',\n 4: '== 1.x.x',\n 5: '== 2.0.0-alpha.x',\n 6: '>= 2.0.0-beta.1',\n 7: '>= 4.0.0 <4.3.0',\n 8: '>= 4.3.0'\n};\n\nexports.REVISION_CHANGES = REVISION_CHANGES;\nvar objectType = '[object Object]';\n\nfunction HandlebarsEnvironment(helpers, partials, decorators) {\n this.helpers = helpers || {};\n this.partials = partials || {};\n this.decorators = decorators || {};\n\n _helpers.registerDefaultHelpers(this);\n _decorators.registerDefaultDecorators(this);\n}\n\nHandlebarsEnvironment.prototype = {\n constructor: HandlebarsEnvironment,\n\n logger: _logger2['default'],\n log: _logger2['default'].log,\n\n registerHelper: function registerHelper(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple helpers');\n }\n _utils.extend(this.helpers, name);\n } else {\n this.helpers[name] = fn;\n }\n },\n unregisterHelper: function unregisterHelper(name) {\n delete this.helpers[name];\n },\n\n registerPartial: function registerPartial(name, partial) {\n if (_utils.toString.call(name) === objectType) {\n _utils.extend(this.partials, name);\n } else {\n if (typeof partial === 'undefined') {\n throw new _exception2['default']('Attempting to register a partial called \"' + name + '\" as undefined');\n }\n this.partials[name] = partial;\n }\n },\n unregisterPartial: function unregisterPartial(name) {\n delete this.partials[name];\n },\n\n registerDecorator: function registerDecorator(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple decorators');\n }\n _utils.extend(this.decorators, name);\n } else {\n this.decorators[name] = fn;\n }\n },\n unregisterDecorator: function unregisterDecorator(name) {\n delete this.decorators[name];\n }\n};\n\nvar log = _logger2['default'].log;\n\nexports.log = log;\nexports.createFrame = _utils.createFrame;\nexports.logger = _logger2['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQTRDLFNBQVM7O3lCQUMvQixhQUFhOzs7O3VCQUNFLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNuQyxVQUFVOzs7O0FBRXRCLElBQU0sT0FBTyxHQUFHLE9BQU8sQ0FBQzs7QUFDeEIsSUFBTSxpQkFBaUIsR0FBRyxDQUFDLENBQUM7O0FBQzVCLElBQU0saUNBQWlDLEdBQUcsQ0FBQyxDQUFDOzs7QUFFNUMsSUFBTSxnQkFBZ0IsR0FBRztBQUM5QixHQUFDLEVBQUUsYUFBYTtBQUNoQixHQUFDLEVBQUUsZUFBZTtBQUNsQixHQUFDLEVBQUUsZUFBZTtBQUNsQixHQUFDLEVBQUUsVUFBVTtBQUNiLEdBQUMsRUFBRSxrQkFBa0I7QUFDckIsR0FBQyxF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HlwZW9mIHBhcnRpYWwgPT09ICd1bmRlZmluZWQnKSB7XG4gICAgICAgIHRocm93IG5ldyBFeGNlcHRpb24oYEF0dGVtcHRpbmcgdG8gcmVnaXN0ZXIgYSBwYXJ0aWFsIGNhbGxlZCBcIiR7bmFtZX1cIiBhcyB1bmRlZmluZWRgKTtcbiAgICAgIH1cbiAgICAgIHRoaXMucGFydGlhbHNbbmFtZV0gPSBwYXJ0aWFsO1xuICAgIH1cbiAgfSxcbiAgdW5yZWdpc3RlclBhcnRpYWw6IGZ1bmN0aW9uKG5hbWUpIHtcbiAgICBkZWxldGUgdGhpcy5wYXJ0aWFsc1tuYW1lXTtcbiAgfSxcblxuICByZWdpc3RlckRlY29yYXRvcjogZnVuY3Rpb24obmFtZSwgZm4pIHtcbiAgICBpZiAodG9TdHJpbmcuY2FsbChuYW1lKSA9PT0gb2JqZWN0VHlwZSkge1xuICAgICAgaWYgKGZuKSB7IHRocm93IG5ldyBFeGNlcHRpb24oJ0FyZyBub3Qgc3VwcG9ydGVkIHdpdGggbXVsdGlwbGUgZGVjb3JhdG9ycycpOyB9XG4gICAgICBleHRlbmQodGhpcy5kZWNvcmF0b3JzLCBuYW1lKTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5kZWNvcmF0b3JzW25hbWVdID0gZm47XG4gICAgfVxuICB9LFxuICB1bnJlZ2lzdGVyRGVjb3JhdG9yOiBmdW5jdGlvbihuYW1lKSB7XG4gICAgZGVsZXRlIHRoaXMuZGVjb3JhdG9yc1tuYW1lXTtcbiAgfVxufTtcblxuZXhwb3J0IGxldCBsb2cgPSBsb2dnZXIubG9nO1xuXG5leHBvcnQge2NyZWF0ZUZyYW1lLCBsb2dnZXJ9O1xuIl19\n","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultHelpers = registerDefaultHelpers;\nexports.moveHelperToHooks = moveHelperToHooks;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _helpersBlockHelperMissing = require('./helpers/block-helper-missing');\n\nvar _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);\n\nvar _helpersEach = require('./helpers/each');\n\nvar _helpersEach2 = _interopRequireDefault(_helpersEach);\n\nvar _helpersHelperMissing = require('./helpers/helper-missing');\n\nvar _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);\n\nvar _helpersIf = require('./helpers/if');\n\nvar _helpersIf2 = _interopRequireDefault(_helpersIf);\n\nvar _helpersLog = require('./helpers/log');\n\nvar _helpersLog2 = _interopRequireDefault(_helpersLog);\n\nvar _helpersLookup = require('./helpers/lookup');\n\nvar _helpersLookup2 = _interopRequireDefault(_helpersLookup);\n\nvar _helpersWith = require('./helpers/with');\n\nvar _helpersWith2 = _interopRequireDefault(_helpersWith);\n\nfunction registerDefaultHelpers(instance) {\n _helpersBlockHelperMissing2['default'](instance);\n _helpersEach2['default'](instance);\n _helpersHelperMissing2['default'](instance);\n _helpersIf2['default'](instance);\n _helpersLog2['default'](instance);\n _helpersLookup2['default'](instance);\n _helpersWith2['default'](instance);\n}\n\nfunction moveHelperToHooks(instance, helperName, keepHelper) {\n if (instance.helpers[helperName]) {\n instance.hooks[helperName] = instance.helpers[helperName];\n if (!keepHelper) {\n delete instance.helpers[helperName];\n }\n }\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O3lDQUF1QyxnQ0FBZ0M7Ozs7MkJBQzlDLGdCQUFnQjs7OztvQ0FDUCwwQkFBMEI7Ozs7eUJBQ3JDLGNBQWM7Ozs7MEJBQ2IsZUFBZTs7Ozs2QkFDWixrQkFBa0I7Ozs7MkJBQ3BCLGdCQUFnQjs7OztBQUVsQyxTQUFTLHNCQUFzQixDQUFDLFF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mVnaXN0ZXJMb29rdXAgZnJvbSAnLi9oZWxwZXJzL2xvb2t1cCc7XG5pbXBvcnQgcmVnaXN0ZXJXaXRoIGZyb20gJy4vaGVscGVycy93aXRoJztcblxuZXhwb3J0IGZ1bmN0aW9uIHJlZ2lzdGVyRGVmYXVsdEhlbHBlcnMoaW5zdGFuY2UpIHtcbiAgcmVnaXN0ZXJCbG9ja0hlbHBlck1pc3NpbmcoaW5zdGFuY2UpO1xuICByZWdpc3RlckVhY2goaW5zdGFuY2UpO1xuICByZWdpc3RlckhlbHBlck1pc3NpbmcoaW5zdGFuY2UpO1xuICByZWdpc3RlcklmKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJMb2coaW5zdGFuY2UpO1xuICByZWdpc3Rlckxvb2t1cChpbnN0YW5jZSk7XG4gIHJlZ2lzdGVyV2l0aChpbnN0YW5jZSk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBtb3ZlSGVscGVyVG9Ib29rcyhpbnN0YW5jZSwgaGVscGVyTmFtZSwga2VlcEhlbHBlcikge1xuICBpZiAoaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXSkge1xuICAgIGluc3RhbmNlLmhvb2tzW2hlbHBlck5hbWVdID0gaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXTtcbiAgICBpZiAoIWtlZXBIZWxwZXIpIHtcbiAgICAgIGRlbGV0ZSBpbnN0YW5jZS5oZWxwZXJzW2hlbHBlck5hbWVdO1xuICAgIH1cbiAgfVxufVxuIl19\n","/**\n * @fileoverview Wrapper module for easy calc date object\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar TZDate = require('./timezone').Date;\n\n/**\n * @constructor\n * @param {TZDate} date to wrapping DW class\n */\nfunction DW(date) {\n if (!(this instanceof DW)) {\n return new DW(date);\n }\n\n if (!(date instanceof TZDate)) {\n date = new TZDate(date);\n }\n\n /**\n * @type {TZDate}\n */\n this.d = date;\n}\n\n/**\n * Return d property when supplied object is DW. else return itself\n * @param {*} obj - object\n * @returns {TZDate} date\n */\nDW.prototype.safe = function(obj) {\n if (obj.constructor === DW) {\n return obj.d;\n }\n\n return obj;\n};\n\n/**\n * Clone DW object\n * @returns {DW} cloned dwrap object\n */\nDW.prototype.clone = function() {\n return new DW(new TZDate(this.d));\n};\n\n/**\n * Add days\n * @param {number} day - day to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addDate = function(day) {\n this.d.setDate(this.d.getDate() + day);\n\n return this;\n};\n\n/**\n * Add month.\n * @param {number} m - month to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addMonth = function(m) {\n var currentMonth = this.d.getMonth();\n var currentDay = this.d.getDate();\n var leapYear = this._isLeapYear();\n var targetMonth = currentMonth + m;\n var clone = this.clone();\n var targetDaysOfMonth = currentDay;\n\n if (m) {\n if (targetMonth === 1) {\n targetDaysOfMonth = leapYear ? 29 : 28;\n } else {\n if (m > 0) {\n clone.d.setMonth(targetMonth + 1, 0);\n } else {\n clone.d.setMonth(currentMonth, 0);\n }\n targetDaysOfMonth = clone.d.getDate();\n }\n }\n\n this.d.setMonth(targetMonth, Math.min(currentDay, targetDaysOfMonth));\n\n return this;\n};\n\n/**\n * Is leap year or not\n * @returns {boolean}\n */\nDW.prototype._isLeapYear = function() {\n var year = this.d.getFullYear();\n\n return ((year % 4 === 0) && (year % 100 !== 0)) || !(year % 400);\n};\n\n/**\n * Set hour, minutes, seconds, milliseconds\n * @param {number} h - hours\n * @param {number} m - minutes\n * @param {number} s - seconds\n * @param {number} ms - milliseconds\n * @returns {DW} wrapper object\n */\nDW.prototype.setHours = function(h, m, s, ms) {\n this.d.setHours(h, m, s, ms);\n\n return this;\n};\n\n/**\n * Whether date is between supplied dates?\n * @param {TZDate|DW} d1 - from date\n * @param {TZDate|DW} d2 - to date\n * @returns {boolean} is between?\n */\nDW.prototype.isBetween = function(d1, d2) {\n var safe = this.safe;\n\n return safe(d1) <= this.d && this.d <= safe(d2);\n};\n\nmodule.exports = DW;\n","/**\n * @fileoverview Drag handler for calendar.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar domevent = require('../common/domevent');\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {object} options - options for drag handler\n * @param {number} [options.distance=10] - distance in pixels after mouse must move before dragging should start\n * @param {function} [options.exclude] - filter function for don't fire drag events that specific conditions.\n * @param {HTMLElement} container element to watching drag interaction.\n */\nfunction Drag(options, container) {\n domevent.on(container, 'mousedown', this._onMouseDown, this);\n\n this.options = util.extend({\n distance: 10,\n exclude: null\n }, options);\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * Flag for represent current dragging session has been cancelled for exclude option.\n * @type {boolean}\n */\n this._cancelled = false;\n\n /**\n * @type {boolean}\n */\n this._isMoved = false;\n\n /**\n * dragging distance in pixel between mousedown and firing dragStart events\n * @type {number}\n */\n this._distance = 0;\n\n /**\n * @type {boolean}\n */\n this._dragStartFired = false;\n\n /**\n * @type {object}\n */\n this._dragStartEventData = null;\n}\n\n/**\n * Destroy method.\n */\nDrag.prototype.destroy = function() {\n domevent.off(this.container, 'mousedown', this._onMouseDown, this);\n this._isMoved = null;\n this.container = null;\n};\n\n/**\n * Clear cache data for single dragging session.\n */\nDrag.prototype._clearData = function() {\n this._cancelled = false;\n this._distance = 0;\n this._isMoved = false;\n this._dragStartFired = false;\n this._dragStartEventData = null;\n};\n\n/**\n * Toggle events for mouse dragging.\n * @param {boolean} toBind - bind events related with dragging when supplied \"true\"\n */\nDrag.prototype._toggleDragEvent = function(toBind) {\n var container = this.container,\n domMethod,\n method;\n\n if (toBind) {\n domMethod = 'on';\n method = 'disable';\n } else {\n domMethod = 'off';\n method = 'enable';\n }\n\n domutil[method + 'TextSelection'](container);\n domutil[method + 'ImageDrag'](container);\n domevent[domMethod](global.document, {\n mousemove: this._onMouseMove,\n mouseup: this._onMouseUp\n }, this);\n};\n\n/**\n * Normalize mouse event object.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {object} normalized mouse event data.\n */\nDrag.prototype._getEventData = function(mouseEvent) {\n return {\n target: mouseEvent.target || mouseEvent.srcElement,\n originEvent: mouseEvent\n };\n};\n\n/**\n * MouseDown DOM event handler.\n * @param {MouseEvent} mouseDownEvent MouseDown event object.\n */\nDrag.prototype._onMouseDown = function(mouseDownEvent) {\n var opt = this.options,\n target = (mouseDownEvent.srcElement || mouseDownEvent.target);\n\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n if (opt.exclude && opt.exclude(target)) {\n this._cancelled = true;\n\n return;\n }\n\n this._clearData();\n this._dragStartEventData = this._getEventData(mouseDownEvent);\n\n this._toggleDragEvent(true);\n\n /**\n * mousedown event for firefox bug. cancelable.\n * @event Drag#mouseDown\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('mousedown', this._dragStartEventData);\n};\n\n/**\n * MouseMove DOM event handler.\n * @emits Drag#drag\n * @emits Drag#dragStart\n * @param {MouseEvent} mouseMoveEvent MouseMove event object.\n */\nDrag.prototype._onMouseMove = function(mouseMoveEvent) {\n var distance;\n\n if (this._cancelled) {\n this._clearData();\n\n return;\n }\n\n distance = this.options.distance;\n // prevent automatic scrolling.\n domevent.preventDefault(mouseMoveEvent);\n\n if (this._distance < distance) {\n this._distance += 1;\n\n return;\n }\n this._isMoved = true;\n\n if (!this._dragStartFired) {\n this._dragStartFired = true;\n\n /**\n * Drag start events. cancelable.\n * @event Drag#dragStart\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n if (!this.invoke('dragStart', this._dragStartEventData)) {\n this._toggleDragEvent(false);\n this._clearData();\n\n return;\n }\n }\n\n /**\n * CalEvents while dragging.\n * @event Drag#drag\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('drag', this._getEventData(mouseMoveEvent));\n};\n\n/**\n * MouseUp DOM event handler.\n * @param {MouseEvent} mouseUpEvent MouseUp event object.\n * @emits Drag#dragEnd\n * @emits Drag#click\n */\nDrag.prototype._onMouseUp = function(mouseUpEvent) {\n if (this._cancelled) {\n return;\n }\n\n this._toggleDragEvent(false);\n\n // emit \"click\" event when not emitted drag event between mousedown and mouseup.\n if (this._isMoved) {\n this._isMoved = false;\n /**\n * Drag end events.\n * @event Drag#dragEnd\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('dragEnd', this._getEventData(mouseUpEvent));\n } else {\n /**\n * Click events.\n * @event Drag#click\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('click', this._getEventData(mouseUpEvent));\n }\n\n this._clearData();\n};\n\nutil.CustomEvents.mixin(Drag);\n\nmodule.exports = Drag;\n","/**\n * @fileoverview Model for views\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar datetime = require('../../common/datetime');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * Schedule ViewModel\n * @constructor\n * @param {Schedule} schedule Schedule instance.\n */\nfunction ScheduleViewModel(schedule) {\n /**\n * The model of schedule.\n * @type {Schedule}\n */\n this.model = schedule;\n\n /**\n * @type {number}\n */\n this.top = 0;\n\n /**\n * @type {number}\n */\n this.left = 0;\n\n /**\n * @type {number}\n */\n this.width = 0;\n\n /**\n * @type {number}\n */\n this.height = 0;\n\n /**\n * Represent schedule has collide with other schedules when rendering.\n * @type {boolean}\n */\n this.hasCollide = false;\n\n /**\n * Extra space at rigth side of this schedule.\n * @type {number}\n */\n this.extraSpace = 0;\n\n /**\n * represent this schedule block is not visible after rendered.\n *\n * in month view, some viewmodel in date need to hide when already rendered before dates.\n *\n * set true then it just shows empty space.\n * @type {boolean}\n */\n this.hidden = false;\n\n /**\n * whether the schedule includes multiple dates\n */\n this.hasMultiDates = false;\n\n /**\n * represent render start date used at rendering.\n *\n * if set null then use model's 'start' property.\n * @type {TZDate}\n */\n this.renderStarts = null;\n\n /**\n * whether the actual start-date is before the render-start-date\n * @type {boolean}\n */\n this.exceedLeft = false;\n\n /**\n * represent render end date used at rendering.\n *\n * if set null then use model's 'end' property.\n * @type {TZDate}\n */\n this.renderEnds = null;\n\n /**\n * whether the actual end-date is after the render-end-date\n * @type {boolean}\n */\n this.exceedRight = false;\n}\n\n/**********\n * static props\n **********/\n\n/**\n * ScheduleViewModel factory method.\n * @param {Schedule} schedule Schedule instance.\n * @returns {ScheduleViewModel} ScheduleViewModel instance.\n */\nScheduleViewModel.create = function(schedule) {\n return new ScheduleViewModel(schedule);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderStarts is not set. return model's start property.\n * @override\n * @returns {Date} render start date.\n */\nScheduleViewModel.prototype.getStarts = function() {\n if (this.renderStarts) {\n return this.renderStarts;\n }\n\n return this.model.start;\n};\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderEnds is not set. return model's end property.\n * @override\n * @returns {Date} render end date.\n */\nScheduleViewModel.prototype.getEnds = function() {\n if (this.renderEnds) {\n return this.renderEnds;\n }\n\n return this.model.end;\n};\n\n/**\n * @returns {number} unique number for model.\n */\nScheduleViewModel.prototype.cid = function() {\n return util.stamp(this.model);\n};\n\n/**\n * Shadowing valueOf method for schedule sorting.\n * @returns {Schedule} The model of schedule.\n */\nScheduleViewModel.prototype.valueOf = function() {\n return this.model;\n};\n\n/**\n * Link duration method\n * @returns {number} Schedule#duration result.\n */\nScheduleViewModel.prototype.duration = function() {\n return this.model.duration();\n};\n\n/**\n * Link collidesWith method\n * @param {Schedule|ScheduleViewModel} viewModel - Model or viewmodel instance of Schedule.\n * @returns {boolean} Schedule#collidesWith result.\n */\nScheduleViewModel.prototype.collidesWith = function(viewModel) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = viewModel.getStarts(),\n end = viewModel.getEnds();\n var ownGoingDuration = datetime.millisecondsFrom('minutes', this.valueOf().goingDuration),\n ownComingDuration = datetime.millisecondsFrom('minutes', this.valueOf().comingDuration),\n goingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration),\n comingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n\n if (Math.abs(ownEnds - ownStarts) < SCHEDULE_MIN_DURATION) {\n ownEnds += SCHEDULE_MIN_DURATION;\n }\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n ownStarts -= ownGoingDuration;\n ownEnds += ownComingDuration;\n start -= goingDuration;\n end += comingDuration;\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodule.exports = ScheduleViewModel;\n","/**\n * @fileoverview Layout module that supplied split height, resize height features.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n domevent = require('./domevent'),\n View = require('../view/view'),\n VPanel = require('./vpanel'),\n Drag = require('../handler/drag');\n\nvar mAbs = Math.abs;\n\n/**\n * @typedef PanelOptions\n * @type {object}\n * @property {number} [minHeight=0] - minimum height of panel\n * @property {number} [height=0] - current panel height\n * @property {boolean} [splitter=false] - is this panel uses splitter?\n * @property {boolean} [autoHeight=false] - is this panel uses remain height of container?\n * @property {string} [className=''] - className string for add created element\n */\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VLayout module\n * @param {PanelOptions[]} [options.panels] - panels to add layout when initialize\n * @param {number[]} [options.panelHeights] - panel height list\n * @param {HTMLElement} container - container element\n * @param {Theme} theme - theme instance\n */\nfunction VLayout(options, container, theme) {\n var opt, tempHeights;\n\n if (!(this instanceof VLayout)) {\n return new VLayout(options, container);\n }\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('vlayout-container'));\n\n /**\n * @type {object}\n */\n opt = this.options = util.extend({\n panels: [],\n panelHeights: []\n }, options);\n\n /**\n * @type {VPanel[]}\n */\n this.panels = [];\n\n /**\n * @type {Drag}\n */\n this._drag = new Drag({\n distance: 10,\n exclude: function(target) {\n return !domutil.hasClass(target, config.classname('splitter'));\n }\n }, container);\n\n this._drag.on({\n dragStart: this._onDragStart,\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @type {object}\n */\n this._dragData = null;\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n if (opt.panels.length) {\n if (opt.panelHeights.length) {\n tempHeights = opt.panelHeights.slice();\n util.forEach(opt.panels, function(panelOpt) {\n if (!panelOpt.isSplitter && !panelOpt.autoHeight) {\n panelOpt.height = tempHeights.shift();\n }\n });\n }\n\n this.addPanels(opt.panels, this.container);\n }\n\n this.refresh();\n}\n\nutil.inherit(VLayout, View);\n\n/**\n * Get current panels height in layout\n * @returns {number[]} height of panels with `autoHeight` false\n */\nVLayout.prototype.getLayoutData = function() {\n var heightList = [];\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n heightList.push(panel.getHeight());\n });\n\n return heightList;\n};\n\n/**\n * Set panels height in layout\n * @param {number[]} heightList of panels with `autoHeight` false\n */\nVLayout.prototype.setLayoutData = function(heightList) {\n if (!heightList.length) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n panel.setHeight(null, heightList.shift());\n });\n\n this.refresh();\n};\n\n/**\n * Get next panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} next panel\n */\nVLayout.prototype.nextPanel = function(panel) {\n return this.panels[panel.index + 1];\n};\n\n/**\n * Get previous panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} previous panel\n */\nVLayout.prototype.prevPanel = function(panel) {\n return this.panels[panel.index - 1];\n};\n\n/**\n * Initialize resizing guide element\n * @param {HTMLElement} element - element to use guide element after cloned\n * @param {number} top - top pixel value for guide element\n * @returns {HTMLElement} cloned element == guide element\n */\nVLayout.prototype._initializeGuideElement = function(element, top) {\n var cloned = element.cloneNode(true);\n\n domutil.addClass(cloned, config.classname('splitter-guide'));\n this._refreshGuideElement(cloned, top);\n this.container.appendChild(cloned);\n\n return cloned;\n};\n\n/**\n * Refresh guide element position\n * @param {HTMLElement} element - guide element\n * @param {number} top - top pixel value for guide element\n */\nVLayout.prototype._refreshGuideElement = function(element, top) {\n element.style.top = top + 'px';\n};\n\n/**\n * Clear guide element position\n * @param {HTMLElement} element - guide element\n */\nVLayout.prototype._clearGuideElement = function(element) {\n domutil.remove(element);\n};\n\n/**\n * Resize overall panels size\n * @param {VPanel} splPanel - splitter panel instance\n * @param {number} startY - dragstart Y position\n * @param {number} mouseY - dragend Y position\n */\nVLayout.prototype._resize = function(splPanel, startY, mouseY) {\n var diffY = startY - mouseY,\n resizedHeight = mAbs(diffY),\n resizeMap = [],\n toDown = mouseY > startY,\n backwardMethod = toDown ? 'prevPanel' : 'nextPanel',\n forwardMethod = toDown ? 'nextPanel' : 'prevPanel',\n cursor, resizeInfo;\n\n cursor = this[backwardMethod](splPanel);\n resizeInfo = cursor.getResizeInfoByGrowth(resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n\n for (cursor = this[forwardMethod](cursor);\n util.isExisty(cursor);\n cursor = this[forwardMethod](cursor)) {\n if (cursor.isSplitter()) {\n continue;\n }\n\n resizeInfo = cursor.getResizeInfoByGrowth(-resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n resizedHeight -= resizeInfo[1];\n }\n\n util.forEach(resizeMap, function(pair) {\n pair[0].setHeight(null, pair[1], true);\n pair[0].fire('resize');\n });\n};\n\n/**\n * Get summation of splitter and panel's minimum height upper and below of supplied splitter\n * @param {VPanel} splPanel - splitter panel instance\n * @returns {number[]} upper and below splitter's height and panel minimum height summation.\n */\nVLayout.prototype._getMouseYAdditionalLimit = function(splPanel) {\n var upper = 0,\n below = 0,\n cursor,\n func = function(panel) {\n if (panel.isSplitter()) {\n return panel.getHeight();\n }\n\n return panel.options.minHeight;\n };\n\n for (cursor = this.prevPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.prevPanel(cursor)) {\n upper += func(cursor);\n }\n\n for (cursor = this.nextPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.nextPanel(cursor)) {\n below += func(cursor);\n }\n\n return [upper, below];\n};\n\n/**********\n * Drag Handlers\n **********/\n\n/**\n * Drag start schedule handler\n * @param {object} e - drag start schedule data\n */\nVLayout.prototype._onDragStart = function(e) {\n var oEvent = e.originEvent,\n target = e.target,\n splIndex = domutil.getData(target, 'panelIndex'),\n splPanel = this.panels[splIndex],\n splHeight = splPanel.getHeight(),\n splOffsetY = domevent.getMousePosition(oEvent, target)[1],\n mouseY = domevent.getMousePosition(oEvent, this.container)[1],\n guideElement = this._initializeGuideElement(target, mouseY);\n\n splPanel.addClass(config.classname('splitter-focused'));\n\n this._dragData = {\n splPanel: splPanel,\n splOffsetY: splOffsetY,\n guideElement: guideElement,\n startY: mouseY - splOffsetY,\n minY: 0,\n maxY: this.getViewBound().height - splHeight\n };\n\n if (!util.browser.msie) {\n domutil.addClass(document.body, config.classname('resizing'));\n }\n};\n\n/**\n * Drag schedule handler\n * @param {object} e - drag schedule data\n */\nVLayout.prototype._onDrag = function(e) {\n var dragData = this._dragData,\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n mouseY = common.limit(mouseY - dragData.splOffsetY, [dragData.minY], [dragData.maxY]);\n\n this._refreshGuideElement(dragData.guideElement, mouseY);\n};\n\n/**\n * Drag end schedule handler\n * @fires VLayout#resize\n * @param {object} e - dragend schedule data\n */\nVLayout.prototype._onDragEnd = function(e) {\n var dragData = this._dragData,\n asideMinMax = this._getMouseYAdditionalLimit(dragData.splPanel),\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n // mouseY value can't exceed summation of splitter height and panel's minimum height based on target splitter.\n mouseY = common.limit(\n mouseY - dragData.splOffsetY,\n [dragData.minY + asideMinMax[0]],\n [dragData.maxY - asideMinMax[1]]\n );\n\n this._resize(dragData.splPanel, dragData.startY, mouseY);\n\n /**\n * @event VLayout#resize\n * @type {object}\n * @property {number[]} layoutData - layout data after resized\n */\n this.fire('resize', {\n layoutData: this.getLayoutData()\n });\n\n this._dragData = null;\n this._clearGuideElement(dragData.guideElement);\n dragData.splPanel.removeClass(config.classname('splitter-focused'));\n domutil.removeClass(document.body, config.classname('resizing'));\n};\n\n/**********\n * Methods\n **********/\n\n/**\n * refresh each panels\n */\nVLayout.prototype.refresh = function() {\n var panelToFillHeight = [];\n var layoutHeight = this.getViewBound().height;\n var usedHeight = 0;\n var remainHeight;\n\n if (!layoutHeight) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.options.autoHeight) {\n panelToFillHeight.push(panel);\n } else {\n usedHeight += panel.getHeight();\n }\n });\n\n remainHeight = (layoutHeight - usedHeight) / panelToFillHeight.length;\n\n util.forEach(panelToFillHeight, function(panel) {\n panel.setHeight(null, remainHeight);\n });\n};\n\n/**\n * add panel\n * @param {PanelOptions} options - options for panel\n * @param {container} [container] - container element\n */\nVLayout.prototype.addPanel = function(options, container) {\n var element = document.createElement('div'),\n panels = this.panels,\n index = panels.length;\n\n options = util.extend({\n index: index\n }, options);\n\n panels.push(new VPanel(options, element, this.theme));\n\n container.appendChild(element);\n};\n\n/**\n * Add multiple panel\n * @param {PanelOptions[]} options - panel options list\n * @param {HTMLElement} container - container element\n */\nVLayout.prototype.addPanels = function(options, container) {\n var self = this,\n frag = document.createDocumentFragment();\n\n util.forEach(options, function(option) {\n self.addPanel(option, frag);\n });\n\n container.appendChild(frag);\n};\n\n/**\n * Get a panel by name\n * @param {string} name - panel's name\n * @returns {VPanel}\n */\nVLayout.prototype.getPanelByName = function(name) {\n var found;\n util.forEach(this.panels, function(panel) {\n if (panel.name === name) {\n found = panel;\n }\n });\n\n return found;\n};\n\nmodule.exports = VLayout;\n","/**\n * @fileoverview Weekday view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n datetime = require('../common/datetime'),\n TZDate = require('../common/timezone').Date,\n View = require('./view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - view options.\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction Weekday(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('weekday')\n );\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n containerBottomGutter: 8,\n scheduleHeight: 18,\n scheduleGutter: 2,\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false\n }, options);\n\n /*\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n View.call(this, container);\n}\n\nutil.inherit(Weekday, View);\n\n/**\n * Get render date range\n * @returns {Date[]} rendered date range\n */\nWeekday.prototype.getRenderDateRange = function() {\n return this._cacheParentViewModel.range;\n};\n\n/**\n * Get render date grids information\n * @returns {Date[]} rendered date grids information\n */\nWeekday.prototype.getRenderDateGrids = function() {\n return this._cacheParentViewModel.grids;\n};\n\n/**\n * Get default view model.\n * @param {object} viewModel parent's view model\n * @returns {object} viewModel to rendering.\n */\nWeekday.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var range = viewModel.range;\n var gridWidth = (100 / range.length);\n var grids = viewModel.grids;\n var exceedDate = viewModel.exceedDate || {};\n var theme = viewModel.theme;\n var now = new TZDate().toLocalTime();\n\n this._cacheParentViewModel = viewModel;\n\n return {\n width: gridWidth,\n scheduleHeight: opt.scheduleHeight,\n scheduleBlockHeight: (opt.scheduleHeight + opt.scheduleGutter),\n scheduleBlockGutter: opt.scheduleGutter,\n dates: util.map(range, function(date, index) {\n var day = date.getDay();\n var ymd = datetime.format(new TZDate(date), 'YYYYMMDD');\n var isToday = datetime.isSameDate(now, date);\n\n return {\n date: datetime.format(date, 'YYYY-MM-DD'),\n month: date.getMonth() + 1,\n day: day,\n isToday: isToday,\n ymd: ymd,\n hiddenSchedules: exceedDate[ymd] || 0,\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0,\n color: this._getDayNameColor(theme, day, isToday),\n backgroundColor: this._getDayBackgroundColor(theme, day)\n };\n }, this)\n };\n};\n\n/* eslint max-nested-callbacks: 0 */\n/**\n * Make exceed date information\n * @param {number} maxCount - exceed schedule count\n * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n * @param {Array.} range - date range of one week\n * @returns {object} exceedDate\n */\nWeekday.prototype.getExceedDate = function(maxCount, eventsInDateRange, range) {\n var exceedDate = this._initExceedDate(range);\n\n util.forEach(eventsInDateRange, function(matrix) {\n util.forEach(matrix, function(column) {\n util.forEach(column, function(viewModel) {\n var period;\n if (!viewModel || viewModel.top < maxCount) {\n return;\n }\n\n // check that this schedule block is not visible after rendered.\n viewModel.hidden = true;\n\n period = datetime.range(\n viewModel.getStarts(),\n viewModel.getEnds(),\n datetime.MILLISECONDS_PER_DAY\n );\n\n util.forEach(period, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] += 1;\n });\n });\n });\n });\n\n return exceedDate;\n};\n\n/**\n * Initiate exceed date information\n * @param {Array.} range - date range of one week\n * @returns {Object} - initiated exceed date\n */\nWeekday.prototype._initExceedDate = function(range) {\n var exceedDate = {};\n\n util.forEach(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] = 0;\n });\n\n return exceedDate;\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {boolean} isOtherMonth - not this month flag\n * @returns {string} style - color style\n */\nWeekday.prototype._getDayNameColor = function(theme, day, isToday, isOtherMonth) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = isOtherMonth ? theme.month.holidayExceptThisMonth.color : theme.common.holiday.color;\n } else if (day === 6) {\n color = isOtherMonth ? theme.month.dayExceptThisMonth.color : theme.common.saturday.color;\n } else if (isToday) {\n color = theme.common.today.color;\n } else {\n color = isOtherMonth ? theme.month.dayExceptThisMonth.color : theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\n/**\n * Get a day background color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @returns {string} style - color style\n */\nWeekday.prototype._getDayBackgroundColor = function(theme, day) {\n var color = '';\n\n if (theme) {\n if (day === 0 || day === 6) {\n color = theme.month.weekend.backgroundColor;\n } else {\n color = 'inherit';\n }\n }\n\n return color;\n};\n\nmodule.exports = Weekday;\n","/**\n * @fileoverview\n * Class for represent two dimensional x, y coordinates.\n *\n * It suppliy a group of functions for manipulate coordinates.\n * @author NHN FE Development Lab \n * @example\n * var p = point(10, 10);\n * var r1 = p.add(Point(5, 5));\n * console.log(p.toString()) // \"Point(10, 10)\"\n * console.log(r1.toString()) // \"Point(15, 15)\"\n *\n * var p2 = new Point(10, 10);\n * p2._add(point(5, 5));\n * console.log(p2.toString()) // \"Point(15, 15)\"\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\n/**\n * Class for represent two dimentional x, y coordinates.\n * @constructor\n * @param {number} x The number of X coordinates.\n * @param {number} y The number of Y coordinates.\n * @param {boolean} [useRound=false] set true when each coordinates are rounded before initialize.\n * @example\n * var t = new Point(13, 5);\n */\nfunction Point(x, y, useRound) {\n /**\n * @type {number}\n */\n this.x = (useRound ? Math.round(x) : x);\n\n /**\n * @type {number}\n */\n this.y = (useRound ? Math.round(y) : y);\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Calculate point ratio.\n * @param {Point} point The instance of point.\n * @param {number} factor From factor\n * @param {number} toFactor To factor\n * @returns {Point} Point instance calculated.\n */\nPoint.getRatio = function(point, factor, toFactor) {\n if (factor === toFactor) {\n return point.clone();\n }\n\n return point.multiplyBy(toFactor)._divideBy(factor);\n};\n\n/**\n * Syntatic sugar of new Point()\n * @param {(Point|number|number[])} x X coordinate value.\n * @param {(number|boolean)} [y] Y coordinate value or boolean value for coordinates round.\n * @param {boolean} [useRound] Set true then round initial coordinate values.\n * @returns {Point} The instance of point.\n * @example\n * var p1 = point(10, 15);\n * var p2 = point([10, 15]);\n */\nPoint.n = function(x, y, useRound) {\n if (x instanceof Point) {\n return x;\n }\n\n if (util.isArray(x)) {\n return new Point(x[0], x[1], y);\n }\n\n return new Point(x, y, useRound);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Clone points\n * @returns {Point} The point instance cloned.\n */\nPoint.prototype.clone = function() {\n return new Point(this.x, this.y);\n};\n\n/**\n * Add points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.add = function(point) {\n return this.clone()._add(Point.n(point));\n};\n\n/**\n * Add self points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._add = function(point) {\n this.x += point.x;\n this.y += point.y;\n\n return this;\n};\n\n/**\n * Subtract points.\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.subtract = function(point) {\n return this.clone()._subtract(Point.n(point));\n};\n\n/**\n * Subtract points. (manipulate self)\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._subtract = function(point) {\n this.x -= point.x;\n this.y -= point.y;\n\n return this;\n};\n\n/**\n * Divide points.\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.divideBy = function(num) {\n return this.clone()._divideBy(num);\n};\n\n/**\n * Divide points. (manipulate self)\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._divideBy = function(num) {\n this.x /= num;\n this.y /= num;\n\n return this;\n};\n\n/**\n * Multiply coordinates.\n * @param {number} num Thyen number to multiply\n * @returns {Point} Point calculated.\n */\nPoint.prototype.multiplyBy = function(num) {\n return this.clone()._multiplyBy(num);\n};\n\n/**\n * Multiply self coordinates.\n * @param {number} num The number to multiply.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._multiplyBy = function(num) {\n this.x *= num;\n this.y *= num;\n\n return this;\n};\n\n/**\n * Round coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.round = function() {\n return this.clone()._round();\n};\n\n/**\n * Round self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._round = function() {\n this.x = Math.round(this.x);\n this.y = Math.round(this.y);\n\n return this;\n};\n\n/**\n * Reverse values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.reverse = function() {\n return this.clone()._reverse();\n};\n\n/**\n * Reverse self values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._reverse = function() {\n this.x *= -1;\n this.y *= -1;\n\n return this;\n};\n\n/**\n * Floor coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.floor = function() {\n return this.clone()._floor();\n};\n\n/**\n * Floor self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._floor = function() {\n this.x = Math.floor(this.x);\n this.y = Math.floor(this.y);\n\n return this;\n};\n\n/**\n * Ceil coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.ceil = function() {\n return this.clone()._ceil();\n};\n\n/**\n * Ceil self coodinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._ceil = function() {\n this.x = Math.ceil(this.x);\n this.y = Math.ceil(this.y);\n\n return this;\n};\n\n/**\n * Rotate point.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype.rotate = function(deg, center, cos, sin) {\n return this.clone()._rotate(deg, center, cos, sin);\n};\n\n/**\n * Rotate self.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype._rotate = function(deg, center, cos, sin) {\n var rad = deg * (Math.PI / 180),\n x,\n y;\n\n cos = cos || parseFloat(Math.cos(rad).toFixed(8));\n sin = sin || parseFloat(Math.sin(rad).toFixed(8));\n\n this._subtract(center);\n\n x = this.x;\n y = this.y;\n\n this.x = (x * cos) - (y * sin);\n this.y = (x * sin) + (y * cos);\n\n this._add(center);\n\n return this;\n};\n\n/**\n * Calculate distance between two points.\n * @param {Point} point Point instance.\n * @returns {number} The number of distance between two points.\n */\nPoint.prototype.distanceTo = function(point) {\n var x,\n y;\n\n point = Point.n(point);\n\n x = point.x - this.x;\n y = point.y - this.y;\n\n return Math.sqrt((x * x) + (y * y));\n};\n\n/**\n * Check point equals.\n * @param {Point} point Point instance to compare\n * @returns {boolean} equality\n */\nPoint.prototype.equals = function(point) {\n point = Point.n(point);\n\n return point.x === this.x && point.y === this.y;\n};\n\n/**\n * Return formatted string. 'Point(x, y)'\n * @returns {string} string\n */\nPoint.prototype.toString = function() {\n return 'Point(' + this.x + ', ' + this.y + ')';\n};\n\n/**\n * Return coodinates to array. [x, y]\n * @returns {number[]} coordinate array.\n */\nPoint.prototype.toArray = function() {\n return [this.x, this.y];\n};\n\nmodule.exports = Point;\n","/**\n * @fileoverview Floating layer for writing new schedules\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar View = require('../../view/view');\nvar FloatingLayer = require('../../common/floatingLayer');\nvar util = require('tui-code-snippet');\nvar DatePicker = require('tui-date-picker');\nvar timezone = require('../../common/timezone');\nvar config = require('../../config');\nvar domevent = require('../../common/domevent');\nvar domutil = require('../../common/domutil');\nvar common = require('../../common/common');\nvar tmpl = require('../template/popup/scheduleCreationPopup.hbs');\nvar TZDate = timezone.Date;\nvar MAX_WEEK_OF_MONTH = 6;\nvar ARROW_WIDTH_HALF = 8;\n\n/**\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container - container element\n * @param {Array.} calendars - calendar list used to create new schedule\n * @param {boolean} usageStatistics - GA tracking options in Calendar\n */\nfunction ScheduleCreationPopup(container, calendars, usageStatistics) {\n View.call(this, container);\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n this._selectedCal = null;\n this._schedule = null;\n this.calendars = calendars;\n this._focusedDropdown = null;\n this._usageStatistics = usageStatistics;\n this._onClickListeners = [\n this._selectDropdownMenuItem.bind(this),\n this._toggleDropdownMenuView.bind(this),\n this._closeDropdownMenuView.bind(this, null),\n this._closePopup.bind(this),\n this._toggleIsAllday.bind(this),\n this._toggleIsPrivate.bind(this),\n this._onClickSaveSchedule.bind(this)\n ];\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(ScheduleCreationPopup, View);\n\n/**\n * Mousedown event handler for hiding popup layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nScheduleCreationPopup.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n popupLayer = domutil.closest(target, config.classname('.floating-layer'));\n\n if (popupLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * @override\n */\nScheduleCreationPopup.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nScheduleCreationPopup.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n\n util.forEach(this._onClickListeners, function(listener) {\n return !listener(target);\n });\n};\n\n/**\n * Test click event target is close button, and return layer is closed(hidden)\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether popup layer is closed or not\n */\nScheduleCreationPopup.prototype._closePopup = function(target) {\n var className = config.classname('popup-close');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.hide();\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Toggle dropdown menu view, when user clicks dropdown button\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether user clicked dropdown button or not\n */\nScheduleCreationPopup.prototype._toggleDropdownMenuView = function(target) {\n var className = config.classname('dropdown-button');\n var dropdownBtn = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n\n if (!dropdownBtn) {\n return false;\n }\n\n if (domutil.hasClass(dropdownBtn.parentNode, config.classname('open'))) {\n this._closeDropdownMenuView(dropdownBtn.parentNode);\n } else {\n this._openDropdownMenuView(dropdownBtn.parentNode);\n }\n\n return true;\n};\n\n/**\n * Close drop down menu\n * @param {HTMLElement} dropdown - dropdown element that has a opened dropdown menu\n */\nScheduleCreationPopup.prototype._closeDropdownMenuView = function(dropdown) {\n dropdown = dropdown || this._focusedDropdown;\n if (dropdown) {\n domutil.removeClass(dropdown, config.classname('open'));\n this._focusedDropdown = null;\n }\n};\n\n/**\n * Open drop down menu\n * @param {HTMLElement} dropdown - dropdown element that has a closed dropdown menu\n */\nScheduleCreationPopup.prototype._openDropdownMenuView = function(dropdown) {\n domutil.addClass(dropdown, config.classname('open'));\n this._focusedDropdown = dropdown;\n};\n\n/**\n * If click dropdown menu item, close dropdown menu\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether\n */\nScheduleCreationPopup.prototype._selectDropdownMenuItem = function(target) {\n var itemClassName = config.classname('dropdown-menu-item');\n var iconClassName = config.classname('icon');\n var contentClassName = config.classname('content');\n var selectedItem = domutil.hasClass(target, itemClassName) ? target : domutil.closest(target, '.' + itemClassName);\n var bgColor, title, dropdown, dropdownBtn;\n\n if (!selectedItem) {\n return false;\n }\n\n bgColor = domutil.find('.' + iconClassName, selectedItem).style.backgroundColor || 'transparent';\n title = domutil.find('.' + contentClassName, selectedItem).innerHTML;\n\n dropdown = domutil.closest(selectedItem, config.classname('.dropdown'));\n dropdownBtn = domutil.find(config.classname('.dropdown-button'), dropdown);\n domutil.find('.' + contentClassName, dropdownBtn).innerText = title;\n\n if (domutil.hasClass(dropdown, config.classname('section-calendar'))) {\n domutil.find('.' + iconClassName, dropdownBtn).style.backgroundColor = bgColor;\n this._selectedCal = common.find(this.calendars, function(cal) {\n return cal.id === domutil.getData(selectedItem, 'calendarId');\n });\n }\n\n domutil.removeClass(dropdown, config.classname('open'));\n\n return true;\n};\n\n/**\n * Toggle allday checkbox state\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether event target is allday section or not\n */\nScheduleCreationPopup.prototype._toggleIsAllday = function(target) {\n var className = config.classname('section-allday');\n var alldaySection = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n var checkbox;\n\n if (alldaySection) {\n checkbox = domutil.find(config.classname('.checkbox-square'), alldaySection);\n checkbox.checked = !checkbox.checked;\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Toggle private button\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether event target is private section or not\n */\nScheduleCreationPopup.prototype._toggleIsPrivate = function(target) {\n var className = config.classname('section-private');\n var privateSection = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n\n if (privateSection) {\n if (domutil.hasClass(privateSection, config.classname('public'))) {\n domutil.removeClass(privateSection, config.classname('public'));\n } else {\n domutil.addClass(privateSection, config.classname('public'));\n }\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Save new schedule if user clicked save button\n * @emits ScheduleCreationPopup#saveSchedule\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether save button is clicked or not\n */\nScheduleCreationPopup.prototype._onClickSaveSchedule = function(target) {\n var className = config.classname('popup-save');\n var cssPrefix = config.cssPrefix;\n var title, isPrivate, location, isAllDay, startDate, endDate, state;\n var start, end, calendarId;\n var changes;\n\n if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n return false;\n }\n\n title = domutil.get(cssPrefix + 'schedule-title');\n startDate = new TZDate(this.rangePicker.getStartDate()).toLocalTime();\n endDate = new TZDate(this.rangePicker.getEndDate()).toLocalTime();\n\n if (!title.value) {\n title.focus();\n\n return true;\n }\n\n if (!startDate && !endDate) {\n return true;\n }\n\n isPrivate = !domutil.hasClass(domutil.get(cssPrefix + 'schedule-private'), config.classname('public'));\n location = domutil.get(cssPrefix + 'schedule-location');\n state = domutil.get(cssPrefix + 'schedule-state');\n isAllDay = !!domutil.get(cssPrefix + 'schedule-allday').checked;\n\n if (isAllDay) {\n startDate.setHours(0, 0, 0);\n endDate.setHours(23, 59, 59);\n }\n\n start = new TZDate(startDate);\n end = new TZDate(endDate);\n\n if (this._selectedCal) {\n calendarId = this._selectedCal.id;\n }\n\n if (this._isEditMode) {\n changes = common.getScheduleChanges(\n this._schedule,\n ['calendarId', 'title', 'location', 'start', 'end', 'isAllDay', 'state'],\n {\n calendarId: calendarId,\n title: title.value,\n location: location.value,\n start: start,\n end: end,\n isAllDay: isAllDay,\n state: state.innerText\n }\n );\n\n this.fire('beforeUpdateSchedule', {\n schedule: util.extend({\n raw: {\n class: isPrivate ? 'private' : 'public'\n }\n }, this._schedule),\n changes: changes,\n start: start,\n end: end,\n calendar: this._selectedCal,\n triggerEventName: 'click'\n });\n } else {\n /**\n * @event ScheduleCreationPopup#beforeCreateSchedule\n * @type {object}\n * @property {Schedule} schedule - new schedule instance to be added\n */\n this.fire('beforeCreateSchedule', {\n calendarId: calendarId,\n title: title.value,\n location: location.value,\n raw: {\n class: isPrivate ? 'private' : 'public'\n },\n start: start,\n end: end,\n isAllDay: isAllDay,\n state: state.innerText\n });\n }\n\n this.hide();\n\n return true;\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nScheduleCreationPopup.prototype.render = function(viewModel) {\n var calendars = this.calendars;\n var layer = this.layer;\n var self = this;\n var boxElement, guideElements;\n\n viewModel.zIndex = this.layer.zIndex + 5;\n viewModel.calendars = calendars;\n if (calendars.length) {\n viewModel.selectedCal = this._selectedCal = calendars[0];\n }\n\n this._isEditMode = viewModel.schedule && viewModel.schedule.id;\n if (this._isEditMode) {\n boxElement = viewModel.target;\n viewModel = this._makeEditModeData(viewModel);\n } else {\n this.guide = viewModel.guide;\n guideElements = this._getGuideElements(this.guide);\n boxElement = guideElements.length ? guideElements[0] : null;\n }\n layer.setContent(tmpl(viewModel));\n this._createDatepicker(viewModel.start, viewModel.end, viewModel.isAllDay);\n layer.show();\n\n if (boxElement) {\n this._setPopupPositionAndArrowDirection(boxElement.getBoundingClientRect());\n }\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Make view model for edit mode\n * @param {object} viewModel - original view model from 'beforeCreateEditPopup'\n * @returns {object} - edit mode view model\n */\nScheduleCreationPopup.prototype._makeEditModeData = function(viewModel) {\n var schedule = viewModel.schedule;\n var title, isPrivate, location, startDate, endDate, isAllDay, state;\n var raw = schedule.raw || {};\n var calendars = this.calendars;\n\n var id = schedule.id;\n title = schedule.title;\n isPrivate = raw['class'] === 'private';\n location = schedule.location;\n startDate = schedule.start;\n endDate = schedule.end;\n isAllDay = schedule.isAllDay;\n state = schedule.state;\n\n viewModel.selectedCal = this._selectedCal = common.find(this.calendars, function(cal) {\n return cal.id === viewModel.schedule.calendarId;\n });\n\n this._schedule = schedule;\n\n return {\n id: id,\n selectedCal: this._selectedCal,\n calendars: calendars,\n title: title,\n isPrivate: isPrivate,\n location: location,\n isAllDay: isAllDay,\n state: state,\n start: startDate,\n end: endDate,\n raw: {\n class: isPrivate ? 'private' : 'public'\n },\n zIndex: this.layer.zIndex + 5,\n isEditMode: this._isEditMode\n };\n};\n\n/**\n * Set popup position and arrow direction to apear near guide element\n * @param {MonthCreationGuide|TimeCreationGuide|DayGridCreationGuide} guideBound - creation guide element\n */\nScheduleCreationPopup.prototype._setPopupPositionAndArrowDirection = function(guideBound) {\n var layer = domutil.find(config.classname('.popup'), this.layer.container);\n var layerSize = {\n width: layer.offsetWidth,\n height: layer.offsetHeight\n };\n var windowSize = {\n right: window.innerWidth,\n bottom: window.innerHeight\n };\n var parentRect = this.layer.parent.getBoundingClientRect();\n var parentBounds = {\n left: parentRect.left,\n top: parentRect.top\n };\n var pos;\n\n pos = this._calcRenderingData(layerSize, windowSize, guideBound);\n pos.x -= parentBounds.left;\n pos.y -= (parentBounds.top + 6);\n this.layer.setPosition(pos.x, pos.y);\n this._setArrowDirection(pos.arrow);\n};\n\n/**\n * Get guide elements from creation guide object\n * It is used to calculate rendering position of popup\n * It will be disappeared when hiding popup\n * @param {MonthCreationGuide|TimeCreationGuide|AlldayCreationGuide} guide - creation guide\n * @returns {Array.} creation guide element\n */\nScheduleCreationPopup.prototype._getGuideElements = function(guide) {\n var guideElements = [];\n var i = 0;\n\n if (guide.guideElement) {\n guideElements.push(guide.guideElement);\n } else if (guide.guideElements) {\n for (; i < MAX_WEEK_OF_MONTH; i += 1) {\n if (guide.guideElements[i]) {\n guideElements.push(guide.guideElements[i]);\n }\n }\n }\n\n return guideElements;\n};\n\n/**\n * Get guide element's bound data which only includes top, right, bottom, left\n * @param {Array.} guideElements - creation guide elements\n * @returns {Object} - popup bound data\n */\nScheduleCreationPopup.prototype._getBoundOfFirstRowGuideElement = function(guideElements) {\n var bound;\n\n if (!guideElements.length) {\n return null;\n }\n\n bound = guideElements[0].getBoundingClientRect();\n\n return {\n top: bound.top,\n left: bound.left,\n bottom: bound.bottom,\n right: bound.right\n };\n};\n\n/**\n * Calculate rendering position usering guide elements\n * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} parentSize - width and height of the upper layer, that acts as a border of popup\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} guideBound - guide element bound data\n * @returns {PopupRenderingData} rendering position of popup and popup arrow\n */\nScheduleCreationPopup.prototype._calcRenderingData = function(layerSize, parentSize, guideBound) {\n var guideHorizontalCenter = (guideBound.left + guideBound.right) / 2;\n var x = guideHorizontalCenter - (layerSize.width / 2);\n var y = guideBound.top - layerSize.height + 3;\n var arrowDirection = 'arrow-bottom';\n var arrowLeft;\n\n if (y < 0) {\n y = guideBound.bottom + 9;\n arrowDirection = 'arrow-top';\n }\n\n if (x > 0 && (x + layerSize.width > parentSize.right)) {\n x = parentSize.right - layerSize.width;\n }\n\n if (x < 0) {\n x = 0;\n }\n\n if (guideHorizontalCenter - x !== layerSize.width / 2) {\n arrowLeft = guideHorizontalCenter - x - ARROW_WIDTH_HALF;\n }\n\n /**\n * @typedef {Object} PopupRenderingData\n * @property {number} x - left position\n * @property {number} y - top position\n * @property {string} arrow.direction - direction of popup arrow\n * @property {number} [arrow.position] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n x: x,\n y: y,\n arrow: {\n direction: arrowDirection,\n position: arrowLeft\n }\n };\n};\n\n/**\n * Set arrow's direction and position\n * @param {Object} arrow rendering data for popup arrow\n */\nScheduleCreationPopup.prototype._setArrowDirection = function(arrow) {\n var direction = arrow.direction || 'arrow-bottom';\n var arrowEl = domutil.get(config.classname('popup-arrow'));\n var borderElement = domutil.find(config.classname('.popup-arrow-border', arrowEl));\n\n if (direction !== config.classname('arrow-bottom')) {\n domutil.removeClass(arrowEl, config.classname('arrow-bottom'));\n domutil.addClass(arrowEl, config.classname(direction));\n }\n\n if (arrow.position) {\n borderElement.style.left = arrow.position + 'px';\n }\n};\n\n/**\n * Create date range picker using start date and end date\n * @param {TZDate} start - start date\n * @param {TZDate} end - end date\n * @param {boolean} isAllDay - isAllDay\n */\nScheduleCreationPopup.prototype._createDatepicker = function(start, end, isAllDay) {\n var cssPrefix = config.cssPrefix;\n\n this.rangePicker = DatePicker.createRangePicker({\n startpicker: {\n date: new TZDate(start).toDate(),\n input: '#' + cssPrefix + 'schedule-start-date',\n container: '#' + cssPrefix + 'startpicker-container'\n },\n endpicker: {\n date: new TZDate(end).toDate(),\n input: '#' + cssPrefix + 'schedule-end-date',\n container: '#' + cssPrefix + 'endpicker-container'\n },\n format: isAllDay ? 'yyyy-MM-dd' : 'yyyy-MM-dd HH:mm',\n timepicker: isAllDay ? null : {\n showMeridiem: false,\n usageStatistics: this._usageStatistics\n },\n usageStatistics: this._usageStatistics\n });\n};\n\n/**\n * Hide layer\n */\nScheduleCreationPopup.prototype.hide = function() {\n this.layer.hide();\n\n if (this.guide) {\n this.guide.clearGuideElement();\n this.guide = null;\n }\n\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nScheduleCreationPopup.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(this.tmpl(this._viewModel));\n }\n};\n\n/**\n * Set calendar list\n * @param {Array.} calendars - calendar list\n */\nScheduleCreationPopup.prototype.setCalendars = function(calendars) {\n this.calendars = calendars || [];\n};\n\nmodule.exports = ScheduleCreationPopup;\n","/**\n * @fileoverview Floating layer for showing detail schedule\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar View = require('../../view/view');\nvar FloatingLayer = require('../../common/floatingLayer');\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domevent = require('../../common/domevent'),\n domutil = require('../../common/domutil');\nvar tmpl = require('../template/popup/scheduleDetailPopup.hbs');\nvar ARROW_WIDTH_HALF = 8;\n\n/**\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container - container element\n */\nfunction ScheduleDetailPopup(container) {\n View.call(this, container);\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n this._schedule = null;\n this._calendar = null;\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(ScheduleDetailPopup, View);\n\n/**\n * Mousedown event handler for hiding popup layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nScheduleDetailPopup.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n popupLayer = domutil.closest(target, config.classname('.floating-layer'));\n\n if (popupLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * @override\n */\nScheduleDetailPopup.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nScheduleDetailPopup.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n\n this._onClickEditSchedule(target);\n\n this._onClickDeleteSchedule(target);\n};\n\n/**\n * @fires ScheduleDetailPopup#clickEditSchedule\n * @param {HTMLElement} target - event target\n */\nScheduleDetailPopup.prototype._onClickEditSchedule = function(target) {\n var className = config.classname('popup-edit');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.fire('beforeUpdateSchedule', {\n schedule: this._schedule,\n triggerEventName: 'click',\n target: this._scheduleEl\n });\n\n this.hide();\n }\n};\n\n/**\n * @fires ScheduleDetailPopup#clickEditSchedule\n * @param {HTMLElement} target - event target\n */\nScheduleDetailPopup.prototype._onClickDeleteSchedule = function(target) {\n var className = config.classname('popup-delete');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.fire('beforeDeleteSchedule', {\n schedule: this._schedule\n });\n\n this.hide();\n }\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nScheduleDetailPopup.prototype.render = function(viewModel) {\n var layer = this.layer;\n var self = this;\n\n layer.setContent(tmpl({\n schedule: viewModel.schedule,\n calendar: viewModel.calendar\n }));\n layer.show();\n this._setPopupPositionAndArrowDirection(viewModel.event);\n\n this._schedule = viewModel.schedule;\n this._calendar = viewModel.calendar;\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Set popup position and arrow direction to apear near guide element\n * @param {Event} event - creation guide element\n */\nScheduleDetailPopup.prototype._setPopupPositionAndArrowDirection = function(event) {\n var layer = domutil.find(config.classname('.popup'), this.layer.container);\n var layerSize = {\n width: layer.offsetWidth,\n height: layer.offsetHeight\n };\n var windowSize = {\n right: window.innerWidth,\n bottom: window.innerHeight\n };\n var parentRect = this.layer.parent.getBoundingClientRect();\n var parentBounds = {\n left: parentRect.left,\n top: parentRect.top\n };\n var scheduleEl = event.target || event.srcElement;\n var blockEl = domutil.closest(scheduleEl, config.classname('.time-date-schedule-block'))\n || domutil.closest(scheduleEl, config.classname('.weekday-schedule'))\n || scheduleEl;\n var scheduleBound = blockEl.getBoundingClientRect();\n var pos;\n\n this._scheduleEl = blockEl;\n\n pos = this._calcRenderingData(layerSize, windowSize, scheduleBound);\n pos.x -= parentBounds.left + 4;\n pos.y -= (parentBounds.top + ARROW_WIDTH_HALF);\n this.layer.setPosition(pos.x, pos.y);\n this._setArrowDirection(pos.arrow);\n};\n\n/**\n * Calculate rendering position usering guide elements\n * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} parentSize - width and height of the upper layer, that acts as a border of popup\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} guideBound - guide element bound data\n * @returns {PopupRenderingData} rendering position of popup and popup arrow\n */\nScheduleDetailPopup.prototype._calcRenderingData = function(layerSize, parentSize, guideBound) {\n var guideVerticalCenter = (guideBound.top + guideBound.bottom) / 2;\n var x = guideBound.right;\n var y = guideVerticalCenter;\n var arrowDirection = 'arrow-left';\n var arrowTop;\n\n if (y < 0) {\n y = y + (layerSize.height / 2) - guideVerticalCenter;\n }\n\n if (x > 0 && (x + layerSize.width > parentSize.right)) {\n x = guideBound.left - layerSize.width - ARROW_WIDTH_HALF - 3;\n arrowDirection = 'arrow-right';\n }\n\n if (x < 0) {\n x = 0;\n }\n\n if (guideBound.right > x + layerSize.width) {\n arrowDirection = 'arrow-right';\n }\n\n /**\n * @typedef {Object} PopupRenderingData\n * @property {number} x - left position\n * @property {number} y - top position\n * @property {string} arrow.direction - direction of popup arrow\n * @property {number} [arrow.position] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n x: x + ARROW_WIDTH_HALF,\n y: y - (layerSize.height / 2) + ARROW_WIDTH_HALF,\n arrow: {\n direction: arrowDirection,\n position: arrowTop\n }\n };\n};\n\n/**\n * Set arrow's direction and position\n * @param {Object} arrow rendering data for popup arrow\n */\nScheduleDetailPopup.prototype._setArrowDirection = function(arrow) {\n var direction = arrow.direction || 'arrow-left';\n var arrowEl = domutil.find(config.classname('.popup-arrow'), this.layer.container);\n var borderElement = domutil.find(config.classname('.popup-arrow-border', arrowEl));\n\n if (direction !== config.classname('arrow-left')) {\n domutil.removeClass(arrowEl, config.classname('arrow-left'));\n domutil.addClass(arrowEl, config.classname(direction));\n }\n\n if (arrow.position) {\n borderElement.style.top = arrow.position + 'px';\n }\n};\n\n/**\n * Hide layer\n */\nScheduleDetailPopup.prototype.hide = function() {\n this.layer.hide();\n\n if (this.guide) {\n this.guide.clearGuideElement();\n this.guide = null;\n }\n\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nScheduleDetailPopup.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(this.tmpl(this._viewModel));\n }\n};\n\nmodule.exports = ScheduleDetailPopup;\n","/**\n * @fileoverview Move handler for DayGrid view.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar dayGridCore = require('./core');\nvar DayGridMoveGuide = require('./moveGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CustomEvents\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {DayGrid} view - view instance.\n * @param {Base} controller - Base controller instance.\n */\nfunction DayGridMove(dragHandler, view, controller) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\n\n /**\n * Temporary variable for dragstart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {DayGridMoveGuide}\n */\n this.guide = new DayGridMoveGuide(this);\n}\n\nDayGridMove.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.view = this.controller =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|DayGridSchedule} return DayGridSchedule view instance when satiate condition.\n */\nDayGridMove.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n parentView,\n matches;\n\n if (~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n parentView = domutil.closest(target, config.classname('.weekday'));\n\n if (!parentView) {\n return false;\n }\n\n cssClass = domutil.getClass(parentView);\n matches = cssClass.match(config.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler method.\n * @emits DayGridMove#dragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler event data.\n */\nDayGridMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.controller,\n excludeTarget = true,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget);\n if (!scheduleBlockElement) {\n return;\n }\n\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event DayGridMove#dragstart\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridMove#drag\n * @param {object} dragEventData - Drag#drag event handler eventdata.\n */\nDayGridMove.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @schedule DayGridMove#drag\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('drag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule model to base controller.\n * @fires DayGridMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from DayGridMove handler module.\n */\nDayGridMove.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newStarts = new TZDate(schedule.start),\n newEnds = new TZDate(schedule.end);\n\n newStarts = newStarts.addDate(dateOffset);\n newEnds = newEnds.addDate(dateOffset);\n\n /**\n * @event DayGridMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: {\n start: newStarts,\n end: newEnds\n },\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridMove#dragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nDayGridMove.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event DayGridMove#dragend\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridMove#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridMove.prototype._onClick = function(clickEventData) {\n /**\n * @event DayGridMove#click\n * @type {object}\n * @property {DayGrid} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'click', true);\n};\n\ncommon.mixin(dayGridCore, DayGridMove);\nutil.CustomEvents.mixin(DayGridMove);\n\nmodule.exports = DayGridMove;\n","/**\n * @fileoverview Guide element controller for creation, resize in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n TZDate = require('../../common/timezone').Date,\n tmpl = require('./guide.hbs');\nvar mmax = Math.max,\n mmin = Math.min,\n mabs = Math.abs,\n mfloor = Math.floor;\n\n/**\n * @constructor\n * @param {object} [options] - options\n * @param {boolean} [options.useHandle=false] - whether displaying resize handle on\n * guide element?\n * @param {boolean} [options.isResizeMode=false] - whether resize mode?\n * @param {Month} monthView - Month view instance\n */\nfunction MonthGuide(options, monthView) {\n var self = this;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n top: 0,\n height: '20px',\n bgColor: '#f7ca88',\n label: 'New event',\n isResizeMode: false,\n isCreationMode: false,\n styles: this._getStyles(monthView.controller.theme)\n }, options);\n\n /**\n * @type {Month}\n */\n this.view = monthView;\n\n /**\n * @type {WeekdayInMonth[]}\n */\n this.weeks = monthView.children.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n });\n\n /**\n * @type {number}\n */\n this.days = monthView.children.single().getRenderDateRange().length;\n\n /**\n * @type {function}\n */\n this.ratio = util.bind(function(value) {\n return common.ratio(self.days, 100, value);\n });\n\n /**\n * start coordinate of guide effect. (x, y) (days, weeks) effect can't\n * start lower than this coordinate.\n * @type {number[]}\n */\n this.startCoord = [0, 0];\n\n /**\n * @type {Object.}\n */\n this.guideElements = {};\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = monthView.grids;\n}\n\n/**\n * Destructor\n */\nMonthGuide.prototype.destroy = function() {\n this.clear();\n\n this.options = this.view = this.weeks = this.days =\n this.ratio = this.startCoord = this.guideElements = null;\n};\n\nMonthGuide.prototype.clearGuideElement = function() {\n this.destroy();\n};\n\n/**\n * Get ratio value in week.\n * @param {number} value - value for calc ratio in week\n * @returns {number} percent value\n */\nMonthGuide.prototype._getRatioValueInWeek = function(value) {\n var grid = this.grids[value] || {left: 100};\n\n return grid.left;\n};\n\n/**\n * Create guide element\n * @returns {HTMLElement} guide element\n */\nMonthGuide.prototype._createGuideElement = function() {\n var guide = document.createElement('div');\n\n guide.innerHTML = tmpl(this.options);\n\n return guide.firstChild;\n};\n\n/**\n * Get guide element. if not exist then create one\n * @param {number} y - y coordinate\n * @returns {?HTMLElement} guide element\n */\nMonthGuide.prototype._getGuideElement = function(y) {\n var guideElements = this.guideElements,\n guide = guideElements[y],\n weekdayView = this.weeks[y],\n container;\n\n if (!weekdayView) {\n return null;\n }\n\n if (!guide) {\n guide = this._createGuideElement();\n container = weekdayView.container;\n container.appendChild(guide);\n guideElements[y] = guide;\n }\n\n return guide;\n};\n\n/**\n * Get coordinate by supplied date in month\n * @param {TZDate} date - date to find coordinate\n * @returns {number[]} coordinate (x, y)\n */\nMonthGuide.prototype._getCoordByDate = function(date) {\n var WEEKEND_DAYS = 2;\n var weeks = this.weeks;\n var isWorkWeek = this.view.options.workweek;\n var days = isWorkWeek ? this.days + WEEKEND_DAYS : this.days;\n\n var getIdxFromDiff = function(d1, d2) {\n return mfloor(datetime.millisecondsTo('day', mabs(d2 - d1)));\n },\n monthStart = datetime.start(weeks[0].options.renderStartDate),\n isBefore = date < monthStart,\n start = new TZDate(monthStart),\n end = new TZDate(monthStart).addDate(isBefore ? -days : days).addDate(-1),\n x = getIdxFromDiff(date, start),\n y = 0;\n\n while (!datetime.isBetweenWithDate(date, start, end)) {\n start.addDate(isBefore ? -days : days);\n end = new TZDate(start).addDate(days - 1);\n x = getIdxFromDiff(date, start);\n y += (isBefore ? -1 : 1);\n }\n\n return [x, y];\n};\n\n/**\n * Get limited coordinate by supplied coodinates\n * @param {number[]} coord - coordinate need to limit\n * @param {number[]} [min] - minimum limitaion of coordinate\n * @param {number[]} [max] - maximum limitation of coordinate\n * @returns {number[]} limited coordiate\n */\nMonthGuide.prototype._getLimitedCoord = function(coord, min, max) {\n var toIndex = 1,\n x = coord[0],\n y = coord[1],\n result;\n\n min = min || [0, 0];\n max = max || [this.days - toIndex, this.weeks.length - toIndex];\n\n if (y < min[1]) {\n result = min.slice(0);\n } else if (y > max[1]) {\n result = max.slice(0);\n } else {\n x = mmax(min[0], x);\n x = mmin(max[0], x);\n result = [x, y];\n }\n\n return result;\n};\n\n/**\n * Prepare guide element modification\n * @param {object} dragStartEvent - dragStart schedule data from *guide\n */\nMonthGuide.prototype.start = function(dragStartEvent) {\n var opt = this.options,\n target = dragStartEvent.target,\n model = dragStartEvent.model,\n x = dragStartEvent.x,\n y = dragStartEvent.y,\n renderMonth = new TZDate(this.view.options.renderMonth),\n temp;\n\n if (opt.isCreationMode) {\n if (model && !datetime.isSameMonth(renderMonth, model.start)) {\n model.start.setMonth(renderMonth.getMonth());\n model.start.setDate(1);\n model.end.setMonth(renderMonth.getMonth());\n model.end.setDate(1);\n }\n } else {\n temp = this._getCoordByDate(model.getStarts());\n x = temp[0];\n y = temp[1];\n\n util.extend(this.options, {\n top: parseInt(target.style.top, 10) + 'px',\n height: parseInt(target.style.height, 10) + 'px',\n label: model.title\n }, model);\n }\n\n if (util.isUndefined(x) || util.isUndefined(y)) {\n temp = this._getCoordByDate(model.getStarts());\n x = temp[0];\n y = temp[1];\n }\n\n this.startCoord = [x, y];\n this.update(x, y);\n};\n\n/**\n * Data for update several guide elements\n * @typedef UpdateIndication\n * @type {object}\n * @property {HTMLElement} guide - guide element\n * @property {number} left - left style value\n * @property {number} width - width style value\n * @property {boolean} [exceedL=false] - whether schedule is exceeded past weeks?\n * @property {boolean} [exceedR=false] - whether schedule is exceeded future weeks?\n */\n\n/**\n * Modify HTML element that uses for guide element\n * @param {UpdateIndication[]} inds - indication of update severel guide element\n */\nMonthGuide.prototype._updateGuides = function(inds) {\n util.forEach(inds, function(ind) {\n var guide = ind.guide,\n exceedLClass = config.classname('month-exceed-left'),\n exceedRClass = config.classname('month-exceed-right');\n\n guide.style.display = 'block';\n guide.style.left = ind.left + '%';\n guide.style.width = ind.width + '%';\n\n if (ind.exceedL) {\n domutil.addClass(guide, exceedLClass);\n } else {\n domutil.removeClass(guide, exceedLClass);\n }\n\n if (ind.exceedR) {\n domutil.addClass(guide, exceedRClass);\n } else {\n domutil.removeClass(guide, exceedRClass);\n }\n });\n};\n\n/**\n * Get guide element indicate for origin week\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getOriginIndicate = function(startCoord, mouseCoord) {\n var left = mmin(startCoord[0], mouseCoord[0]),\n right = mmax(startCoord[0], mouseCoord[0]) + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = startCoord[0];\n right = this.days;\n exceedR = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n left = 0;\n right = startCoord[0] + 1;\n exceedL = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for week related with mouse position\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getMouseIndicate = function(startCoord, mouseCoord) {\n var left = mouseCoord[0],\n right = mouseCoord[0] + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = 0;\n exceedL = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n right = this.days;\n exceedR = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for contained weeks\n * @returns {object} indicate\n */\nMonthGuide.prototype._getContainIndicate = function() {\n return {\n left: 0,\n width: 100,\n exceedL: true,\n exceedR: true\n };\n};\n\n/**\n * Remove several guide element that supplied by parameter\n * @param {number[]} yCoords - array of y coordinate to remove guide element\n */\nMonthGuide.prototype._removeGuideElements = function(yCoords) {\n var guides = this.guideElements;\n\n util.forEach(yCoords, function(y) {\n domutil.remove(guides[y]);\n delete guides[y];\n });\n};\n\n/**\n * Get excluded numbers in range\n * @param {number[]} range - the range. value must be sequencial.\n * @param {number[]} numbers - numbers to check\n * @returns {number[]} excluded numbers\n */\nMonthGuide.prototype._getExcludesInRange = function(range, numbers) {\n var min = mmin.apply(null, range),\n max = mmax.apply(null, range),\n excludes = [];\n\n util.forEach(numbers, function(num) {\n num = parseInt(num, 10);\n if (num < min || num > max) {\n excludes.push(num);\n }\n });\n\n return excludes;\n};\n\n/**\n * Update guide elements by coordinate in month grid from mousemove event\n * @param {number} x - x coordinate\n * @param {number} y - y coordinate\n */\nMonthGuide.prototype.update = function(x, y) {\n var self = this,\n startCoord = this.startCoord,\n mouseCoord = [x, y],\n limitedCoord = this.options.isResizeMode ?\n this._getLimitedCoord(mouseCoord, startCoord) : mouseCoord,\n renderedYIndex = util.keys(this.guideElements),\n yCoordsToUpdate = util.range(\n mmin(startCoord[1], limitedCoord[1]),\n mmax(startCoord[1], limitedCoord[1]) + 1\n ),\n yCoordsToRemove = this._getExcludesInRange(\n yCoordsToUpdate,\n renderedYIndex\n ),\n renderIndication = {};\n\n this._removeGuideElements(yCoordsToRemove);\n\n util.forEach(yCoordsToUpdate, function(guideYCoord) {\n var guide = self._getGuideElement(guideYCoord),\n indicate;\n\n if (!guide) {\n return;\n }\n\n if (guideYCoord === startCoord[1]) {\n indicate = self._getOriginIndicate(startCoord, limitedCoord);\n } else if (guideYCoord === mouseCoord[1]) {\n indicate = self._getMouseIndicate(startCoord, mouseCoord);\n } else {\n indicate = self._getContainIndicate();\n }\n\n renderIndication[guideYCoord] = util.extend({\n guide: guide\n }, indicate);\n });\n\n this._updateGuides(renderIndication);\n};\n\n/**\n * Clear all guide elements\n */\nMonthGuide.prototype.clear = function() {\n util.forEach(this.guideElements, function(element) {\n domutil.remove(element);\n });\n\n this.guideElements = {};\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMonthGuide.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.border = theme.common.creationGuide.border;\n styles.backgroundColor = theme.common.creationGuide.backgroundColor;\n styles.scheduleHeight = theme.month.schedule.height;\n styles.scheduleGutter = theme.month.schedule.marginTop;\n styles.marginLeft = theme.month.schedule.marginLeft;\n styles.marginRight = theme.month.schedule.marginRight;\n styles.borderRadius = theme.month.schedule.borderRadius;\n }\n\n return styles;\n};\n\nmodule.exports = MonthGuide;\n","/**\n * @fileoverview The entry file of fullcalendar\n * @author NHN FE Development Lab\n */\n\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Calendar = require('./js/factory/calendar');\n\nrequire('./css/main.styl');\nrequire('./js/view/template/helper');\n\n// for jquery\nif (global.jQuery) {\n global.jQuery.fn.tuiCalendar = function() {\n var options, instance;\n\n var el = this.get(0);\n var args = Array.prototype.slice.apply(arguments);\n\n if (el) {\n options = util.pick(args, 0) || {};\n\n instance = global.jQuery.data(el, 'tuiCalendar');\n\n if (instance) {\n if (typeof options === 'string' && instance[options]) {\n return instance[options].apply(instance, args.slice(1));\n }\n } else {\n instance = new Calendar(el, options);\n global.jQuery.data(el, 'tuiCalendar', instance);\n }\n }\n\n return this;\n };\n}\n\nmodule.exports = Calendar;\n","/**\n * @fileoverview Factory module for control all other factory.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar GA_TRACKING_ID = 'UA-129951699-1';\n\nvar util = require('tui-code-snippet'),\n Handlebars = require('handlebars-template-loader/runtime');\nvar dw = require('../common/dw'),\n datetime = require('../common/datetime'),\n Layout = require('../view/layout'),\n Drag = require('../handler/drag'),\n controllerFactory = require('./controller'),\n weekViewFactory = require('./weekView'),\n monthViewFactory = require('./monthView'),\n TZDate = require('../common/timezone').Date,\n config = require('../config'),\n timezone = require('../common/timezone'),\n reqAnimFrame = require('../common/reqAnimFrame');\n\nvar mmin = Math.min;\n\n/**\n * Schedule information\n * @typedef {object} Schedule\n * @property {string} [id] - The unique schedule id depends on calendar id\n * @property {string} calendarId - The unique calendar id\n * @property {string} [title] - The schedule title\n * @property {string} [body] - The schedule body text which is text/plain\n * @property {string|TZDate} [start] - The start time. It's 'string' for input. It's 'TZDate' for output like event handler.\n * @property {string|TZDate} [end] - The end time. It's 'string' for input. It's 'TZDate' for output like event handler.\n * @property {number} [goingDuration] - The travel time: Going duration minutes\n * @property {number} [comingDuration] - The travel time: Coming duration minutes\n * @property {boolean} [isAllDay] - The all day schedule\n * @property {string} [category] - The schedule type('milestone', 'task', allday', 'time')\n * @property {string} [dueDateClass] - The task schedule type string\n * (any string value is ok and mandatory if category is 'task')\n * @property {string} [location] - The location\n * @property {Array.} [attendees] - The attendees\n * @property {string} [recurrenceRule] - The recurrence rule\n * @property {boolean} [isPending] - The in progress flag to do something like network job(The schedule will be transparent.)\n * @property {boolean} [isFocused] - The focused schedule flag\n * @property {boolean} [isVisible] - The schedule visibility flag\n * @property {boolean} [isReadOnly] - The schedule read-only flag\n * @property {boolean} [isPrivate] - The private schedule\n * @property {string} [color] - The schedule text color\n * @property {string} [bgColor] - The schedule background color\n * @property {string} [dragBgColor] - The schedule background color when dragging it\n * @property {string} [borderColor] - The schedule left border color\n * @property {string} [customStyle] - The schedule's custom css class\n * @property {any} [raw] - The user data\n * @property {string} [state] - The schedule's state ('busy', 'free')\n */\n\n/**\n * Template functions to support customer renderer\n * @typedef {object} Template\n * @property {function} [milestoneTitle] - The milestone title(at left column) template function\n * @property {function} [milestone] - The milestone template function\n * @property {function} [taskTitle] - The task title(at left column) template function\n * @property {function} [task] - The task template function\n * @property {function} [alldayTitle] - The allday title(at left column) template function\n * @property {function} [allday] - The allday template function\n * @property {function} [time] - The time template function\n * @property {function} [goingDuration] - The travel time(going duration) template function\n * @property {function} [comingDuration] - The travel time(coming duration) template function\n * @property {function} [monthMoreTitleDate] - The month more layer title template function\n * @property {function} [monthMoreClose] - The month more layer close button template function\n * @property {function} [monthGridHeader] - The month grid header(date, decorator, title) template function\n * @property {function} [monthGridHeaderExceed] - The month grid header(exceed schedule count) template function\n * @property {function} [monthGridFooter] - The month grid footer(date, decorator, title) template function\n * @property {function} [monthGridFooterExceed] - The month grid footer(exceed schedule count) template function\n * @property {function} [monthDayname] - The monthly dayname template function\n * @property {function} [weekDayname] - The weekly dayname template function\n * @property {function} [weekGridFooterExceed] - The week/day grid footer(exceed schedule count) template function\n * @property {function} [dayGridTitle] - The week/day grid title template function(e.g. milestone, task, allday)\n * @property {function} [schedule] - The week/day schedule template function(When the schedule category attribute is milestone, task, or all day)\n * @property {function} [collapseBtnTitle] - The week/day (exceed schedule more view) collapse button title template function\n * @property {function} [timezoneDisplayLabel] - The timezone display label template function in time grid\n * @property {function} [timegridDisplayPrimayTime] - Deprecated: use 'timegridDisplayPrimaryTime'\n * @property {function} [timegridDisplayPrimaryTime] - The display label template function of primary timezone in time grid\n * @property {function} [timegridDisplayTime] - The display time template function in time grid\n * @property {function} [timegridCurrentTime] - The current time template function in time grid\n * @property {function} [popupIsAllDay] - The all day checkbox label text template function in the default creation popup\n * @property {function} [popupStateFree] - The free option template function in the state select box of the default creation popup\n * @property {function} [popupStateBusy] - The busy option template function in the state select box of the default creation popup\n * @property {function} [titlePlaceholder] - The title input placeholder text template function in the default creation popup\n * @property {function} [locationPlaceholder] - The location input placeholder text template function in the default creation popup\n * @property {function} [startDatePlaceholder] - The start date input placeholder text template function in the default creation popup\n * @property {function} [endDatePlaceholder] - The end date input placeholder text template function in the default creation popup\n * @property {function} [popupSave] - The 'Save' button text template function in the default creation popup\n * @property {function} [popupUpdate] - The 'Update' button text template function in the default creation popup when in edit mode\n * @property {function} [popupDetailDate] - The schedule date information's template function on the default detail popup\n * @property {function} [popupDetailLocation] - The schedule location text information's template function on the default detail popup\n * @property {function} [popupDetailUser] - The schedule user text information's template function on the default detail popup\n * @property {function} [popupDetailState] - The schedule state(busy or free) text information's template function on the default detail popup\n * @property {function} [popupDetailRepeat] - The schedule repeat information's template function on the default detail popup\n * @property {function} [popupDetailBody] - The schedule body text information's template function on the default detail popup\n * @property {function} [popupEdit] - The 'Edit' button text template function on the default detail popup\n * @property {function} [popupDelete] - The 'Delete' button text template function on the default detail popup\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * ...\n * template: {\n * milestone: function(schedule) {\n * return ' ' + schedule.title + '';\n * },\n * milestoneTitle: function() {\n * return 'MILESTONE';\n * },\n * task: function(schedule) {\n * return '#' + schedule.title;\n * },\n * taskTitle: function() {\n * return 'TASK';\n * },\n * allday: function(schedule) {\n * return getTimeTemplate(schedule, true);\n * },\n * alldayTitle: function() {\n * return 'ALL DAY';\n * },\n * time: function(schedule) {\n * return '' + moment(schedule.start.getTime()).format('HH:mm') + ' ' + schedule.title;\n * },\n * goingDuration: function(schedule) {\n * return '' + schedule.goingDuration + 'min.';\n * },\n * comingDuration: function(schedule) {\n * return '' + schedule.comingDuration + 'min.';\n * },\n * monthMoreTitleDate: function(date, dayname) {\n * var day = date.split('.')[2];\n *\n * return '' + day + ' ' + dayname + '';\n * },\n * monthMoreClose: function() {\n * return '';\n * },\n * monthGridHeader: function(dayModel) {\n * var date = parseInt(dayModel.date.split('-')[2], 10);\n * var classNames = ['tui-full-calendar-weekday-grid-date '];\n *\n * if (dayModel.isToday) {\n * classNames.push('tui-full-calendar-weekday-grid-date-decorator');\n * }\n *\n * return '' + date + '';\n * },\n * monthGridHeaderExceed: function(hiddenSchedules) {\n * return '+' + hiddenSchedules + '';\n * },\n * monthGridFooter: function() {\n * return '';\n * },\n * monthGridFooterExceed: function(hiddenSchedules) {\n * return '';\n * },\n * monthDayname: function(model) {\n * return (model.label).toString().toLocaleUpperCase();\n * },\n * weekDayname: function(model) {\n * return '' + model.date + '  ' + model.dayName + '';\n * },\n * weekGridFooterExceed: function(hiddenSchedules) {\n * return '+' + hiddenSchedules;\n * },\n * dayGridTitle: function(viewName) {\n *\n * // use another functions instead of 'dayGridTitle'\n * // milestoneTitle: function() {...}\n * // taskTitle: function() {...}\n * // alldayTitle: function() {...}\n *\n * var title = '';\n * switch(viewName) {\n * case 'milestone':\n * title = 'MILESTONE';\n * break;\n * case 'task':\n * title = 'TASK';\n * break;\n * case 'allday':\n * title = 'ALL DAY';\n * break;\n * }\n *\n * return title;\n * },\n * schedule: function(schedule) {\n *\n * // use another functions instead of 'schedule'\n * // milestone: function() {...}\n * // task: function() {...}\n * // allday: function() {...}\n *\n * var tpl;\n *\n * switch(category) {\n * case 'milestone':\n * tpl = ' ' + schedule.title + '';\n * break;\n * case 'task':\n * tpl = '#' + schedule.title;\n * break;\n * case 'allday':\n * tpl = getTimeTemplate(schedule, true);\n * break;\n * }\n *\n * return tpl;\n * },\n * collapseBtnTitle: function() {\n * return '';\n * },\n * timezoneDisplayLabel: function(timezoneOffset, displayLabel) {\n * var gmt, hour, minutes;\n *\n * if (!displayLabel) {\n * gmt = timezoneOffset < 0 ? '-' : '+';\n * hour = Math.abs(parseInt(timezoneOffset / 60, 10));\n * minutes = Math.abs(timezoneOffset % 60);\n * displayLabel = gmt + getPadStart(hour) + ':' + getPadStart(minutes);\n * }\n *\n * return displayLabel;\n * },\n * timegridDisplayPrimayTime: function(time) {\n * // will be deprecated. use 'timegridDisplayPrimaryTime'\n * var meridiem = 'am';\n * var hour = time.hour;\n *\n * if (time.hour > 12) {\n * meridiem = 'pm';\n * hour = time.hour - 12;\n * }\n *\n * return hour + ' ' + meridiem;\n * },\n * timegridDisplayPrimaryTime: function(time) {\n * var meridiem = 'am';\n * var hour = time.hour;\n *\n * if (time.hour > 12) {\n * meridiem = 'pm';\n * hour = time.hour - 12;\n * }\n *\n * return hour + ' ' + meridiem;\n * },\n * timegridDisplayTime: function(time) {\n * return getPadStart(time.hour) + ':' + getPadStart(time.hour);\n * },\n * timegridCurrentTime: function(timezone) {\n * var templates = [];\n *\n * if (timezone.dateDifference) {\n * templates.push('[' + timezone.dateDifferenceSign + timezone.dateDifference + ']
    ');\n * }\n *\n * templates.push(moment(timezone.hourmarker).format('HH:mm a'));\n *\n * return templates.join('');\n * },\n * popupIsAllDay: function() {\n * return 'All Day';\n * },\n * popupStateFree: function() {\n * return 'Free';\n * },\n * popupStateBusy: function() {\n * return 'Busy';\n * },\n * titlePlaceholder: function() {\n * return 'Subject';\n * },\n * locationPlaceholder: function() {\n * return 'Location';\n * },\n * startDatePlaceholder: function() {\n * return 'Start date';\n * },\n * endDatePlaceholder: function() {\n * return 'End date';\n * },\n * popupSave: function() {\n * return 'Save';\n * },\n * popupUpdate: function() {\n * return 'Update';\n * },\n * popupDetailDate: function(isAllDay, start, end) {\n * var isSameDate = moment(start).isSame(end);\n * var endFormat = (isSameDate ? '' : 'YYYY.MM.DD ') + 'hh:mm a';\n *\n * if (isAllDay) {\n * return moment(start).format('YYYY.MM.DD') + (isSameDate ? '' : ' - ' + moment(end).format('YYYY.MM.DD'));\n * }\n *\n * return (moment(start).format('YYYY.MM.DD hh:mm a') + ' - ' + moment(end).format(endFormat));\n * },\n * popupDetailLocation: function(schedule) {\n * return 'Location : ' + schedule.location;\n * },\n * popupDetailUser: function(schedule) {\n * return 'User : ' + (schedule.attendees || []).join(', ');\n * },\n * popupDetailState: function(schedule) {\n * return 'State : ' + schedule.state || 'Busy';\n * },\n * popupDetailRepeat: function(schedule) {\n * return 'Repeat : ' + schedule.recurrenceRule;\n * },\n * popupDetailBody: function(schedule) {\n * return 'Body : ' + schedule.body;\n * },\n * popupEdit: function() {\n * return 'Edit';\n * },\n * popupDelete: function() {\n * return 'Delete';\n * }\n * }\n * }\n */\n\n/**\n * Options for daily, weekly view.\n * @typedef {object} WeekOptions\n * @property {number} [startDayOfWeek=0] - The start day of week,\n * @property {Array.} [daynames] - The day names in weekly and daily. Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {boolean} [narrowWeekend=false] - Make weekend column narrow(1/2 width)\n * @property {boolean} [workweek=false] - Show only 5 days except for weekend\n * @property {boolean} [showTimezoneCollapseButton=false] - Show a collapse button to close multiple timezones\n * @property {boolean} [timezonesCollapsed=false] - An initial multiple timezones collapsed state\n * @property {number} [hourStart=0] - Can limit of render hour start.\n * @property {number} [hourEnd=24] - Can limit of render hour end.\n */\n\n/**\n * Options for monthly view.\n * @typedef {object} MonthOptions\n * @property {Array.} [daynames] - The day names in monthly. Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {number} [startDayOfWeek=0] - The start day of week\n * @property {boolean} [narrowWeekend=false] - Make weekend column narrow(1/2 width)\n * @property {number} [visibleWeeksCount=6] - The visible week count in monthly(0 or null are same with 6)\n * @property {boolean} [isAlways6Week=true] - Always show 6 weeks. If false, show 5 weeks or 6 weeks based on the month.\n * @property {boolean} [workweek=false] - Show only 5 days except for weekend\n * @property {number} [visibleScheduleCount] - The visible schedule count in monthly grid\n * @property {object} [moreLayerSize] - The more layer size\n * @property {object} [moreLayerSize.width=null] - The css width value(px, 'auto').\n* The default value 'null' is to fit a grid cell.\n * @property {object} [moreLayerSize.height=null] - The css height value(px, 'auto').\n* The default value 'null' is to fit a grid cell.\n * @property {object} [grid] - The grid's header and footer information\n * @property {object} [grid.header] - The grid's header informatioin\n * @property {number} [grid.header.height=34] - The grid's header height\n * @property {object} [grid.footer] - The grid's footer informatioin\n * @property {number} [grid.footer.height=34] - The grid's footer height\n * @property {function} [scheduleFilter=null] - The filter schedules on month view. A parameter is {Schedule} object.\n */\n\n/**\n * @typedef {object} CalendarColor\n * @property {string} [color] - The calendar color\n * @property {string} [bgColor] - The calendar background color\n * @property {string} [borderColor] - The calendar left border color\n * @property {string} [dragBgColor] - The Background color displayed when you drag a calendar's schedule\n */\n\n/**\n * @typedef {object} Timezone\n * @property {number} [timezoneOffset] - The minutes for your timezone offset. If null, use the browser's timezone. Refer to Date.prototype.getTimezoneOffset()\n * @property {string} [displayLabel] - The display label of your timezone at weekly/daily view(e.g. 'GMT+09:00')\n * @property {string} [tooltip] - The tooltip(e.g. 'Seoul')\n * @example\n * var cal = new Calendar('#calendar', {\n * timezones: [{\n * timezoneOffset: 540,\n * displayLabel: 'GMT+09:00',\n * tooltip: 'Seoul'\n * }, {\n * timezoneOffset: -420,\n * displayLabel: 'GMT-08:00',\n * tooltip: 'Los Angeles'\n * }]\n * });\n */\n\n/**\n * @typedef {object} CalendarProps\n * @property {string|number} id - The calendar id\n * @property {string} name - The calendar name\n * @property {string} color - The text color when schedule is displayed\n * @property {string} bgColor - The background color schedule is displayed\n * @property {string} borderColor - The color of left border or bullet point when schedule is displayed\n * @property {string} dragBgColor - The background color when schedule dragging\n * @example\n * var cal = new Calendar('#calendar', {\n * ...\n * calendars: [\n * {\n * id: '1',\n * name: 'My Calendar',\n * color: '#ffffff',\n * bgColor: '#9e5fff',\n * dragBgColor: '#9e5fff',\n * borderColor: '#9e5fff'\n * },\n * {\n * id: '2',\n * name: 'Company',\n * color: '#00a9ff',\n * bgColor: '#00a9ff',\n * dragBgColor: '#00a9ff',\n * borderColor: '#00a9ff'\n * },\n * ]\n * });\n */\n\n/**\n * @typedef {object} Options - Calendar option object\n * @property {string} [defaultView='week'] - Default view of calendar. The default value is 'week'.\n * @property {boolean|Array.} [taskView=true] - Show the milestone and task in weekly, daily view. The default value is true. If the value is array, it can be ['milestone', 'task'].\n * @property {boolean|Array.} [scheduleView=true] - Show the all day and time grid in weekly, daily view. The default value is false. If the value is array, it can be ['allday', 'time'].\n * @property {themeConfig} [theme=themeConfig] - {@link themeConfig} for custom style.\n * @property {Template} [template={}] - {@link Template} for further information\n * @property {WeekOptions} [week={}] - {@link WeekOptions} for week view\n * @property {MonthOptions} [month={}] - {@link MonthOptions} for month view\n * @property {Array.} [calendars=[]] - {@link CalendarProps} List that can be used to add new schedule. The default value is [].\n * @property {boolean} [useCreationPopup=false] - Whether use default creation popup or not. The default value is false.\n * @property {boolean} [useDetailPopup=false] - Whether use default detail popup or not. The default value is false.\n * @property {Array.} [timezones] - {@link Timezone} array.\n * The first Timezone element is primary and can override Calendar#setTimezoneOffset function\n * The rest timezone elements are shown in left timegrid of weekly/daily view\n * @property {boolean} [disableDblClick=false] - Disable double click to create a schedule. The default value is false.\n * @property {boolean} [disableClick=false] - Disable click to create a schedule. The default value is false.\n * @property {boolean} [isReadOnly=false] - {@link Calendar} is read-only mode and a user can't create and modify any schedule. The default value is false.\n * @property {boolean} [usageStatistics=true] - Let us know the hostname. If you don't want to send the hostname, please set to false.\n */\n\n/**\n * {@link https://nhn.github.io/tui.code-snippet/latest/CustomEvents CustomEvents} document at {@link https://github.com/nhn/tui.code-snippet tui-code-snippet}\n * @typedef {class} CustomEvents\n */\n\n/**\n * @typedef {object} TimeCreationGuide - Time creation guide instance to present selected time period\n * @property {HTMLElement} guideElement - Guide element\n * @property {Object.} guideElements - Map by key. It can be used in monthly view\n * @property {function} clearGuideElement - Hide the creation guide\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var guide = event.guide;\n * // Use guideEl$'s left, top to locate your schedule creation popup\n * var guideEl$ = guide.guideElement ?\n * guide.guideElement : guide.guideElements[Object.keys(guide.guideElements)[0]];\n *\n * // After that call this to hide the creation guide\n * guide.clearGuideElement();\n * });\n */\n\n/**\n * Calendar class\n * @constructor\n * @mixes CustomEvents\n * @param {HTMLElement|string} container - The container element or selector id\n * @param {Options} options - The calendar {@link Options} object\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * defaultView: 'week',\n * taskView: true, // Can be also ['milestone', 'task']\n * scheduleView: true, // Can be also ['allday', 'time']\n * template: {\n * milestone: function(schedule) {\n * return ' ' + schedule.title + '';\n * },\n * milestoneTitle: function() {\n * return 'Milestone';\n * },\n * task: function(schedule) {\n * return '  #' + schedule.title;\n * },\n * taskTitle: function() {\n * return '';\n * },\n * allday: function(schedule) {\n * return schedule.title + ' ';\n * },\n * alldayTitle: function() {\n * return 'All Day';\n * },\n * time: function(schedule) {\n * return schedule.title + ' ' + schedule.start;\n * }\n * },\n * month: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * },\n * week: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * }\n * });\n */\nfunction Calendar(container, options) {\n options = util.extend({\n usageStatistics: true\n }, options);\n\n if (options.usageStatistics === true && util.sendHostname) {\n util.sendHostname('calendar', GA_TRACKING_ID);\n }\n\n if (util.isString(container)) {\n container = document.querySelector(container);\n }\n\n /**\n * Calendar color map\n * @type {object}\n * @private\n */\n this._calendarColor = {};\n\n /**\n * Current rendered date\n * @type {TZDate}\n * @private\n */\n this._renderDate = datetime.start();\n\n /**\n * start and end date of weekly, monthly\n * @type {object}\n * @private\n */\n this._renderRange = {\n start: null,\n end: null\n };\n\n /**\n * base controller\n * @type {Base}\n * @private\n */\n this._controller = _createController(options);\n this._controller.setCalendars(options.calendars);\n\n /**\n * layout view (layout manager)\n * @type {Layout}\n * @private\n */\n this._layout = new Layout(container, this._controller.theme);\n\n /**\n * global drag handler\n * @type {Drag}\n * @private\n */\n this._dragHandler = new Drag({distance: 10}, this._layout.container);\n\n /**\n * current rendered view name. ('day', 'week', 'month')\n * @type {string}\n * @default 'week'\n * @private\n */\n this._viewName = options.defaultView || 'week';\n\n /**\n * Refresh method. it can be ref different functions for each view modes.\n * @type {function}\n * @private\n */\n this._refreshMethod = null;\n\n /**\n * Scroll to now. It can be called for 'week', 'day' view modes.\n * @type {function}\n * @private\n */\n this._scrollToNowMethod = null;\n\n /**\n * It's true if Calendar.prototype.scrollToNow() is called.\n * @type {boolean}\n * @private\n */\n this._requestScrollToNow = false;\n\n /**\n * Open schedule creation popup\n * @type {function}\n * @private\n */\n this._openCreationPopup = null;\n\n /**\n * Hide the more view\n * @type {function}\n * @private\n */\n this._hideMoreView = null;\n\n /**\n * Unique id for requestAnimFrame()\n * @type {number}\n * @private\n */\n this._requestRender = 0;\n\n /**\n * calendar options\n * @type {Options}\n * @private\n */\n this._options = {};\n\n this._initialize(options);\n}\n\n/**\n * destroy calendar instance.\n */\nCalendar.prototype.destroy = function() {\n this._dragHandler.destroy();\n this._controller.off();\n this._layout.clear();\n this._layout.destroy();\n\n util.forEach(this._options.template, function(func, name) {\n if (func) {\n Handlebars.unregisterHelper(name + '-tmpl');\n }\n });\n\n this._options = this._renderDate = this._controller =\n this._layout = this._dragHandler = this._viewName =\n this._refreshMethod = this._scrollToNowMethod = null;\n};\n\n/**\n * Initialize calendar\n * @param {Options} options - calendar options\n * @private\n */\nCalendar.prototype._initialize = function(options) {\n var controller = this._controller,\n viewName = this._viewName;\n\n this._options = util.extend({\n defaultView: viewName,\n taskView: true,\n scheduleView: true,\n template: util.extend({\n allday: null,\n time: null\n }, util.pick(options, 'template') || {}),\n week: util.extend({}, util.pick(options, 'week') || {}),\n month: util.extend({}, util.pick(options, 'month') || {}),\n calendars: [],\n useCreationPopup: false,\n useDetailPopup: false,\n timezones: options.timezones || [],\n disableDblClick: false,\n disableClick: false,\n isReadOnly: false\n }, options);\n\n this._options.week = util.extend({\n startDayOfWeek: 0,\n workweek: false\n }, util.pick(this._options, 'week') || {});\n\n this._options.month = util.extend({\n startDayOfWeek: 0,\n workweek: false,\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible) &&\n (schedule.category === 'allday' || schedule.category === 'time');\n }\n }, util.pick(options, 'month') || {});\n\n if (this._options.isReadOnly) {\n this._options.useCreationPopup = false;\n }\n\n this._layout.controller = controller;\n\n this._setAdditionalInternalOptions(options);\n\n this.changeView(viewName, true);\n};\n\n/**\n * Set additional internal options\n * 1. Register to the template handlebar\n * 2. Update the calendar list and set the color of the calendar.\n * 3. Change the primary timezone offset of the timezones.\n * @param {Options} options - calendar options\n * @private\n */\nCalendar.prototype._setAdditionalInternalOptions = function(options) {\n var timezones = options.timezones || [];\n\n util.forEach(options.template, function(func, name) {\n if (func) {\n Handlebars.registerHelper(name + '-tmpl', func);\n }\n });\n\n util.forEach(options.calendars || [], function(calendar) {\n this.setCalendarColor(calendar.id, calendar, true);\n }, this);\n\n if (timezones.length) {\n timezone.setOffsetByTimezoneOption(timezones[0].timezoneOffset);\n }\n};\n\n/**********\n * CRUD Methods\n **********/\n\n/**\n * Create schedules and render calendar.\n * @param {Array.} schedules - {@link Schedule} data list\n * @param {boolean} [silent=false] - no auto render after creation when set true\n * @example\n * calendar.createSchedules([\n * {\n * id: '1',\n * calendarId: '1',\n * title: 'my schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T22:30:00+09:00',\n * end: '2018-01-19T02:30:00+09:00'\n * },\n * {\n * id: '2',\n * calendarId: '1',\n * title: 'second schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T17:30:00+09:00',\n * end: '2018-01-19T17:31:00+09:00'\n * }\n * ]);\n */\nCalendar.prototype.createSchedules = function(schedules, silent) {\n util.forEach(schedules, function(obj) {\n this._setScheduleColor(obj.calendarId, obj);\n }, this);\n\n this._controller.createSchedules(schedules, silent);\n\n if (!silent) {\n this.render();\n }\n};\n\n/**\n * Get a {@link Schedule} object by schedule id and calendar id.\n * @param {string} scheduleId - ID of schedule\n * @param {string} calendarId - calendarId of the schedule\n * @returns {Schedule} schedule object\n * @example\n * var schedule = calendar.getSchedule(scheduleId, calendarId);\n * console.log(schedule.title);\n */\nCalendar.prototype.getSchedule = function(scheduleId, calendarId) {\n return this._controller.schedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n};\n\n/**\n * Update the schedule\n * @param {string} scheduleId - ID of the original schedule to update\n * @param {string} calendarId - The calendarId of the original schedule to update\n * @param {object} changes - The {@link Schedule} properties and values with changes to update\n * @param {boolean} [silent=false] - No auto render after creation when set true\n * @example\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * title: 'Changed schedule',\n * start: new Date('2019-11-05T09:00:00'),\n * end: new Date('2019-11-05T10:00:00'),\n * category: 'time'\n * });\n */\nCalendar.prototype.updateSchedule = function(scheduleId, calendarId, changes, silent) {\n var ctrl = this._controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n var hasChangedCalendar = false;\n\n if (!changes || !schedule) {\n return;\n }\n\n hasChangedCalendar = this._hasChangedCalendar(schedule, changes);\n changes = hasChangedCalendar ?\n this._setScheduleColor(changes.calendarId, changes) :\n changes;\n\n ctrl.updateSchedule(schedule, changes);\n\n if (!silent) {\n this.render();\n }\n};\n\nCalendar.prototype._hasChangedCalendar = function(schedule, changes) {\n return schedule &&\n changes.calendarId &&\n schedule.calendarId !== changes.calendarId;\n};\n\nCalendar.prototype._setScheduleColor = function(calendarId, schedule) {\n var calColor = this._calendarColor;\n var color = calColor[calendarId];\n\n if (color) {\n schedule.color = schedule.color || color.color;\n schedule.bgColor = schedule.bgColor || color.bgColor;\n schedule.borderColor = schedule.borderColor || color.borderColor;\n schedule.dragBgColor = schedule.dragBgColor || color.dragBgColor;\n }\n\n return schedule;\n};\n\n/**\n * Delete a schedule.\n * @param {string} scheduleId - ID of schedule to delete\n * @param {string} calendarId - The CalendarId of the schedule to delete\n * @param {boolean} [silent=false] - No auto render after creation when set true\n */\nCalendar.prototype.deleteSchedule = function(scheduleId, calendarId, silent) {\n var ctrl = this._controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n\n if (!schedule) {\n return;\n }\n\n ctrl.deleteSchedule(schedule);\n if (!silent) {\n this.render();\n }\n};\n\n/**********\n * Private Methods\n **********/\n\n/**\n * @param {string|Date} date - The Date to show in calendar\n * @param {number} [startDayOfWeek=0] - The Start day of week\n * @param {boolean} [workweek=false] - The only show work week\n * @returns {array} render range\n * @private\n */\nCalendar.prototype._getWeekDayRange = function(date, startDayOfWeek, workweek) {\n var day;\n var start;\n var end;\n var range;\n\n startDayOfWeek = (startDayOfWeek || 0); // eslint-disable-line\n date = util.isDate(date) ? date : new TZDate(date);\n day = date.getDay();\n\n // calculate default render range first.\n start = new TZDate(date).addDate(-day + startDayOfWeek);\n\n end = new TZDate(start).addDate(6);\n\n if (day < startDayOfWeek) {\n start = new TZDate(start).addDate(-7);\n end = new TZDate(end).addDate(-7);\n }\n\n if (workweek) {\n range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n );\n\n range = util.filter(range, function(weekday) {\n return !datetime.isWeekend(weekday.getDay());\n });\n\n start = range[0];\n end = range[range.length - 1];\n }\n\n start = datetime.start(start);\n end = datetime.start(end);\n\n return [start, end];\n};\n\n/**\n * Toggle schedules' visibility by calendar ID\n * @param {string} calendarId - The calendar id value\n * @param {boolean} toHide - Set true to hide schedules\n * @param {boolean} [render=true] - set true then render after change visible property each models\n */\nCalendar.prototype.toggleSchedules = function(calendarId, toHide, render) {\n var ownSchedules = this._controller.schedules;\n\n render = util.isExisty(render) ? render : true;\n calendarId = util.isArray(calendarId) ? calendarId : [calendarId];\n\n ownSchedules.each(function(schedule) {\n if (~util.inArray(schedule.calendarId, calendarId)) {\n schedule.set('isVisible', !toHide);\n }\n });\n\n if (render) {\n this.render();\n }\n};\n\n/**********\n * General Methods\n **********/\n\n/**\n * Render the calendar. The real rendering occurs after requestAnimationFrame.\n * If you have to render immediately, use the 'immediately' parameter as true.\n * @param {boolean} [immediately=false] - Render it immediately\n * @example\n * var silent = true;\n * calendar.clear();\n * calendar.createSchedules(schedules, silent);\n * calendar.render();\n * @example\n * // Render a calendar when resizing a window.\n * window.addEventListener('resize', function() {\n * calendar.render();\n * });\n */\nCalendar.prototype.render = function(immediately) {\n if (this._requestRender) {\n reqAnimFrame.cancelAnimFrame(this._requestRender);\n }\n\n if (immediately) {\n this._renderFunc();\n } else {\n this._requestRender = reqAnimFrame.requestAnimFrame(this._renderFunc, this);\n }\n};\n\n/**\n * Render and refresh all layout and process requests.\n * @private\n */\nCalendar.prototype._renderFunc = function() {\n if (this._refreshMethod) {\n this._refreshMethod();\n }\n if (this._layout) {\n this._layout.render();\n }\n if (this._scrollToNowMethod && this._requestScrollToNow) {\n this._scrollToNowMethod();\n }\n\n this._requestScrollToNow = false;\n this._requestRender = null;\n};\n\n/**\n * Delete all schedules and clear view. The real rendering occurs after requestAnimationFrame.\n * If you have to render immediately, use the 'immediately' parameter as true.\n * @param {boolean} [immediately=false] - Render it immediately\n * @example\n * calendar.clear();\n * calendar.createSchedules(schedules, true);\n * calendar.render();\n */\nCalendar.prototype.clear = function(immediately) {\n this._controller.clearSchedules();\n this.render(immediately);\n};\n\n/**\n * Scroll to current time on today in case of daily, weekly view\n * @example\n * function onNewSchedules(schedules) {\n * calendar.createSchedules(schedules);\n * if (calendar.getViewName() !== 'month') {\n * calendar.scrollToNow();\n * }\n * }\n */\nCalendar.prototype.scrollToNow = function() {\n if (this._scrollToNowMethod) {\n this._requestScrollToNow = true;\n // this._scrollToNowMethod() will be called at next frame rendering.\n }\n};\n\n/**\n * Move to today.\n * @example\n * function onClickTodayBtn() {\n * calendar.today();\n * }\n */\nCalendar.prototype.today = function() {\n this._renderDate = datetime.start();\n\n this._setViewName(this._viewName);\n this.move();\n this.render();\n};\n\n/**\n * Move the calendar amount of offset value\n * @param {number} offset - The offset value.\n * @private\n * @example\n * // move previous week when \"week\" view.\n * // move previous month when \"month\" view.\n * calendar.move(-1);\n */\nCalendar.prototype.move = function(offset) {\n var renderDate = dw(datetime.start(this._renderDate)),\n viewName = this._viewName,\n view = this._getCurrentView(),\n recursiveSet = _setOptionRecurseively,\n startDate, endDate, tempDate,\n startDayOfWeek, visibleWeeksCount, workweek, isAlways6Week, datetimeOptions;\n\n offset = util.isExisty(offset) ? offset : 0;\n\n if (viewName === 'month') {\n startDayOfWeek = util.pick(this._options, 'month', 'startDayOfWeek') || 0;\n visibleWeeksCount = mmin(util.pick(this._options, 'month', 'visibleWeeksCount') || 0, 6);\n workweek = util.pick(this._options, 'month', 'workweek') || false;\n isAlways6Week = util.pick(this._options, 'month', 'isAlways6Week');\n\n if (visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n\n renderDate.addDate(offset * 7 * datetimeOptions.visibleWeeksCount);\n tempDate = datetime.arr2dCalendar(renderDate.d, datetimeOptions);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderMonth = new TZDate(renderDate.d);\n });\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: isAlways6Week,\n workweek: workweek\n };\n\n renderDate.addMonth(offset);\n tempDate = datetime.arr2dCalendar(renderDate.d, datetimeOptions);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderMonth = new TZDate(renderDate.d);\n });\n }\n\n startDate = tempDate[0][0];\n endDate = tempDate[tempDate.length - 1][tempDate[tempDate.length - 1].length - 1];\n } else if (viewName === 'week') {\n renderDate.addDate(offset * 7);\n startDayOfWeek = util.pick(this._options, 'week', 'startDayOfWeek') || 0;\n workweek = util.pick(this._options, 'week', 'workweek') || false;\n tempDate = this._getWeekDayRange(renderDate.d, startDayOfWeek, workweek);\n\n startDate = tempDate[0];\n endDate = tempDate[1];\n\n recursiveSet(view, function(childView, opt) {\n opt.renderStartDate = new TZDate(startDate);\n opt.renderEndDate = new TZDate(endDate);\n\n childView.setState({\n collapsed: true\n });\n });\n } else if (viewName === 'day') {\n renderDate.addDate(offset);\n startDate = datetime.start(renderDate.d);\n endDate = datetime.end(renderDate.d);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderStartDate = new TZDate(startDate);\n opt.renderEndDate = new TZDate(endDate);\n\n childView.setState({\n collapsed: true\n });\n });\n }\n\n this._renderDate = renderDate.d;\n this._renderRange = {\n start: startDate,\n end: endDate\n };\n};\n\n/**\n * Move to specific date\n * @param {(Date|string)} date - The date to move\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.getViewName() === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.changeView('day', true);\n * }\n * });\n */\nCalendar.prototype.setDate = function(date) {\n if (util.isString(date)) {\n date = datetime.parse(date);\n }\n\n this._renderDate = new TZDate(date);\n this._setViewName(this._viewName);\n this.move(0);\n this.render();\n};\n\n/**\n * Move the calendar forward a day, a week, a month, 2 weeks, 3 weeks.\n * @example\n * function moveToNextOrPrevRange(val) {\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.next = function() {\n this.move(1);\n this.render();\n};\n\n/**\n * Move the calendar backward a day, a week, a month, 2 weeks, 3 weeks.\n * @example\n * function moveToNextOrPrevRange(val) {\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.prev = function() {\n this.move(-1);\n this.render();\n};\n\n/**\n * Return current rendered view.\n * @returns {View} current view instance\n * @private\n */\nCalendar.prototype._getCurrentView = function() {\n var viewName = this._viewName;\n\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n return util.pick(this._layout.children.items, viewName);\n};\n\n/**\n * Change calendar's schedule color with option\n * @param {string} calendarId - The calendar ID\n * @param {CalendarColor} option - The {@link CalendarColor} object\n * @param {boolean} [silent=false] - No auto render after creation when set true\n * @example\n * calendar.setCalendarColor('1', {\n * color: '#e8e8e8',\n * bgColor: '#585858',\n * borderColor: '#a1b56c'\n * dragBgColor: '#585858',\n * });\n * calendar.setCalendarColor('2', {\n * color: '#282828',\n * bgColor: '#dc9656',\n * borderColor: '#a1b56c',\n * dragBgColor: '#dc9656',\n * });\n * calendar.setCalendarColor('3', {\n * color: '#a16946',\n * bgColor: '#ab4642',\n * borderColor: '#a1b56c',\n * dragBgColor: '#ab4642',\n * });\n */\nCalendar.prototype.setCalendarColor = function(calendarId, option, silent) {\n var calColor = this._calendarColor,\n ownSchedules = this._controller.schedules,\n ownColor = calColor[calendarId];\n\n if (!util.isObject(option)) {\n config.throwError('Calendar#changeCalendarColor(): color 는 {color: \\'\\', bgColor: \\'\\'} 형태여야 합니다.');\n }\n\n ownColor = calColor[calendarId] = util.extend({\n color: '#000',\n bgColor: '#a1b56c',\n borderColor: '#a1b56c',\n dragBgColor: '#a1b56c'\n }, option);\n\n ownSchedules.each(function(model) {\n if (model.calendarId !== calendarId) {\n return;\n }\n\n model.color = ownColor.color;\n model.bgColor = ownColor.bgColor;\n model.borderColor = ownColor.borderColor;\n model.dragBgColor = ownColor.dragBgColor;\n });\n\n if (!silent) {\n this.render();\n }\n};\n\n/**********\n * Custom Events\n **********/\n\n/**\n * A bridge-based event handler for connecting a click handler to a user click event handler for each view\n * @fires Calendar#clickSchedule\n * @param {object} clickScheduleData - The event data of 'clickSchedule' handler\n * @private\n */\nCalendar.prototype._onClick = function(clickScheduleData) {\n /**\n * Fire this event when click a schedule.\n * @event Calendar#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - The {@link Schedule} instance\n * @property {MouseEvent} event - MouseEvent\n * @example\n * calendar.on('clickSchedule', function(event) {\n * var schedule = event.schedule;\n *\n * if (lastClickSchedule) {\n * calendar.updateSchedule(lastClickSchedule.id, lastClickSchedule.calendarId, {\n * isFocused: false\n * });\n * }\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * isFocused: true\n * });\n *\n * lastClickSchedule = schedule;\n * // open detail view\n * });\n */\n this.fire('clickSchedule', clickScheduleData);\n};\n\n/**\n * A bridge-based event handler for connecting a click handler to a user click event handler for each view\n * @fires Calendar#clickMore\n * @param {object} clickMoreSchedule - The event data of 'clickMore' handler\n * @private\n */\nCalendar.prototype._onClickMore = function(clickMoreSchedule) {\n /**\n * Fire this event when click a schedule.\n * @event Calendar#clickMore\n * @type {object}\n * @property {Date} date - The Clicked date\n * @property {HTMLElement} target - The more element\n * @example\n * calendar.on('clickMore', function(event) {\n * console.log('clickMore', event.date, event.target);\n * });\n */\n this.fire('clickMore', clickMoreSchedule);\n};\n\n/**\n * dayname click event handler\n * @fires Calendar#clickDayname\n * @param {object} clickScheduleData - The event data of 'clickDayname' handler\n * @private\n */\nCalendar.prototype._onClickDayname = function(clickScheduleData) {\n /**\n * Fire this event when click a day name in weekly.\n * @event Calendar#clickDayname\n * @type {object}\n * @property {string} date - The date string by format 'YYYY-MM-DD'\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.getViewName() === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.changeView('day', true);\n * }\n * });\n */\n this.fire('clickDayname', clickScheduleData);\n};\n\n/**\n * @fires {Calendar#n('beforeCreateSchedule', function}\n * @param {object} createScheduleData - select schedule data from allday, time\n * @private\n */\nCalendar.prototype._onBeforeCreate = function(createScheduleData) {\n if (this._options.useCreationPopup && !createScheduleData.useCreationPopup) {\n if (this._showCreationPopup) {\n this._showCreationPopup(createScheduleData);\n\n return;\n }\n }\n /**\n * Fire this event when select time period in daily, weekly, monthly.\n * @event Calendar#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - The allday schedule\n * @property {Date} start - The selected start time\n * @property {Date} end - The selected end time\n * @property {TimeCreationGuide} guide - {@link TimeCreationGuide} instance\n * @property {string} triggerEventName - The event name like 'click', 'dblclick'\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var startTime = event.start;\n * var endTime = event.end;\n * var isAllDay = event.isAllDay;\n * var guide = event.guide;\n * var triggerEventName = event.triggerEventName;\n * var schedule;\n *\n * if (triggerEventName === 'click') {\n * // open writing simple schedule popup\n * schedule = {...};\n * } else if (triggerEventName === 'dblclick') {\n * // open writing detail schedule popup\n * schedule = {...};\n * }\n *\n * calendar.createSchedules([schedule]);\n * });\n */\n this.fire('beforeCreateSchedule', createScheduleData);\n};\n\n/**\n * @fires Calendar#beforeUpdateSchedule\n * @param {object} updateScheduleData - update {@link Schedule} data\n * @private\n */\nCalendar.prototype._onBeforeUpdate = function(updateScheduleData) {\n /**\n * Fire this event when drag a schedule to change time in daily, weekly, monthly.\n * @event Calendar#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original {@link Schedule} instance\n * @property {object} changes - The {@link Schedule} properties and values with changes to update\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @example\n * calendar.on('beforeUpdateSchedule', function(event) {\n * var schedule = event.schedule;\n * var changes = event.changes;\n *\n * calendar.updateSchedule(schedule.id, schedule.calendarId, changes);\n * });\n */\n this.fire('beforeUpdateSchedule', updateScheduleData);\n};\n\n/**\n * @fires Calendar#beforeDeleteSchedule\n * @param {object} deleteScheduleData - delete schedule data\n * @private\n */\nCalendar.prototype._onBeforeDelete = function(deleteScheduleData) {\n /**\n * Fire this event when delete a schedule.\n * @event Calendar#beforeDeleteSchedule\n * @type {object}\n * @property {Schedule} schedule - The {@link Schedule} instance to delete\n * @example\n * calendar.on('beforeDeleteSchedule', function(event) {\n * var schedule = event.schedule;\n * alert('The schedule is removed.', schedule);\n * });\n */\n this.fire('beforeDeleteSchedule', deleteScheduleData);\n};\n\n/**\n * @fires Calendar#afterRenderSchedule\n * @param {Schedule} scheduleData - The schedule data\n * @private\n */\nCalendar.prototype._onAfterRenderSchedule = function(scheduleData) {\n /**\n * Fire this event by every single schedule after rendering whole calendar.\n * @event Calendar#afterRenderSchedule\n * @type {object}\n * @property {Schedule} schedule - A rendered {@link Schedule} instance\n * @example\n * calendar.on('afterRenderSchedule', function(event) {\n * var schedule = event.schedule;\n * var element = calendar.getElement(schedule.id, schedule.calendarId);\n * // use the element\n * console.log(element);\n * });\n */\n this.fire('afterRenderSchedule', scheduleData);\n};\n\n/**\n * @fires Calendar#clickTimezonesCollapseBtn\n * @param {boolean} timezonesCollapsed - timezones collapsed flag\n * @private\n */\nCalendar.prototype._onClickTimezonesCollapseBtn = function(timezonesCollapsed) {\n /**\n * Fire this event by clicking timezones collapse button\n * @event Calendar#clickTimezonesCollapseBtn\n * @type {object}\n * @property {boolean} timezonesCollapsed - The timezones collapes flag\n * @example\n * calendar.on('clickTimezonesCollapseBtn', function(timezonesCollapsed) {\n * console.log(timezonesCollapsed);\n * });\n */\n this.fire('clickTimezonesCollapseBtn', timezonesCollapsed);\n};\n\n/**\n * Toggle calendar factory class, main view, wallview event connection\n * @param {boolean} isAttach - attach events if true.\n * @param {Week|Month} view - Weekly view or Monthly view\n * @private\n */\nCalendar.prototype._toggleViewSchedule = function(isAttach, view) {\n var self = this,\n handler = view.handler,\n method = isAttach ? 'on' : 'off';\n\n util.forEach(handler.click, function(clickHandler) {\n clickHandler[method]('clickSchedule', self._onClick, self);\n });\n\n util.forEach(handler.dayname, function(clickHandler) {\n clickHandler[method]('clickDayname', self._onClickDayname, self);\n });\n\n util.forEach(handler.creation, function(creationHandler) {\n creationHandler[method]('beforeCreateSchedule', self._onBeforeCreate, self);\n creationHandler[method]('beforeDeleteSchedule', self._onBeforeDelete, self);\n });\n\n util.forEach(handler.move, function(moveHandler) {\n moveHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n util.forEach(handler.resize, function(resizeHandler) {\n resizeHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n // bypass events from view\n view[method]('afterRenderSchedule', self._onAfterRenderSchedule, self);\n view[method]('clickTimezonesCollapseBtn', self._onClickTimezonesCollapseBtn, self);\n view[method]('clickMore', self._onClickMore, self);\n};\n\n/**\n * Change current view with view name('day', 'week', 'month')\n * @param {string} newViewName - The New view name to render\n * @param {boolean} force - Force render despite of current view and new view are equal\n * @example\n * // daily view\n * calendar.changeView('day', true);\n *\n * // weekly view\n * calendar.changeView('week', true);\n *\n * // monthly view(default 6 weeks view)\n * calendar.setOptions({month: {visibleWeeksCount: 6}}, true); // or null\n * calendar.changeView('month', true);\n *\n * // 2 weeks monthly view\n * calendar.setOptions({month: {visibleWeeksCount: 2}}, true);\n * calendar.changeView('month', true);\n *\n * // 3 weeks monthly view\n * calendar.setOptions({month: {visibleWeeksCount: 3}}, true);\n * calendar.changeView('month', true);\n *\n * // narrow weekend\n * calendar.setOptions({month: {narrowWeekend: true}}, true);\n * calendar.setOptions({week: {narrowWeekend: true}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n *\n * // change start day of week(from monday)\n * calendar.setOptions({week: {startDayOfWeek: 1}}, true);\n * calendar.setOptions({month: {startDayOfWeek: 1}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n *\n * // work week\n * calendar.setOptions({week: {workweek: true}}, true);\n * calendar.setOptions({month: {workweek: true}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n */\nCalendar.prototype.changeView = function(newViewName, force) {\n var self = this,\n layout = this._layout,\n controller = this._controller,\n dragHandler = this._dragHandler,\n options = this._options,\n viewName = this._viewName,\n created;\n\n if (!force && viewName === newViewName) {\n return;\n }\n\n this._setViewName(newViewName);\n\n // convert day to week\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n if (newViewName === 'day') {\n newViewName = 'week';\n }\n layout.children.doWhenHas(viewName, function(view) {\n self._toggleViewSchedule(false, view);\n });\n\n layout.clear();\n\n if (newViewName === 'month') {\n created = _createMonthView(\n controller,\n layout.container,\n dragHandler,\n options\n );\n } else if (newViewName === 'week' || newViewName === 'day') {\n created = _createWeekView(\n controller,\n layout.container,\n dragHandler,\n options,\n this.getViewName()\n );\n }\n\n layout.addChild(created.view);\n\n layout.children.doWhenHas(newViewName, function(view) {\n self._toggleViewSchedule(true, view);\n });\n\n this._refreshMethod = created.refresh;\n this._scrollToNowMethod = created.scrollToNow;\n this._openCreationPopup = created.openCreationPopup;\n this._showCreationPopup = created.showCreationPopup;\n this._hideMoreView = created.hideMoreView;\n\n this.move();\n this.render();\n};\n\n/**\n * @deprecated\n * Toggle task view('Milestone', 'Task') panel\n * @param {boolean} enabled - use task view\n * @example\n * // There is no milestone, task, so hide those view panel\n * calendar.toggleTaskView(false);\n *\n * // There are some milestone, task, so show those view panel.\n * calendar.toggleTaskView(true);\n */\nCalendar.prototype.toggleTaskView = function(enabled) {\n var viewName = this._viewName,\n options = this._options;\n\n options.taskView = enabled;\n\n this.changeView(viewName, true);\n};\n\n/**\n * @deprecated\n * Toggle schedule view('AllDay', TimeGrid') panel\n * @param {boolean} enabled - use task view\n * @example\n * // hide those view panel to show only 'Milestone', 'Task'\n * calendar.toggleScheduleView(false);\n *\n * // show those view panel.\n * calendar.toggleScheduleView(true);\n */\nCalendar.prototype.toggleScheduleView = function(enabled) {\n var viewName = this._viewName,\n options = this._options;\n\n options.scheduleView = enabled;\n\n this.changeView(viewName, true);\n};\n\n/**\n * Set current view name\n * @param {string} viewName - new view name to render\n * @private\n */\nCalendar.prototype._setViewName = function(viewName) {\n this._viewName = viewName;\n};\n\n/**\n * Get a schedule element by schedule id and calendar id.\n * @param {string} scheduleId - ID of schedule\n * @param {string} calendarId - calendarId of schedule\n * @returns {HTMLElement} schedule element if found or null\n * @example\n * var element = calendar.getElement(scheduleId, calendarId);\n * console.log(element);\n */\nCalendar.prototype.getElement = function(scheduleId, calendarId) {\n var schedule = this.getSchedule(scheduleId, calendarId);\n if (schedule) {\n return document.querySelector('[data-schedule-id=\"' + scheduleId + '\"][data-calendar-id=\"' + calendarId + '\"]');\n }\n\n return null;\n};\n\n/**\n * Set a theme. If some keys are not defined in the preset, will be return.\n * @param {object} theme - multiple styles map\n * @returns {Array.} keys - error keys not predefined.\n * @example\n * cal.setTheme({\n 'month.dayname.height': '31px',\n 'common.dayname.color': '#333',\n 'month.dayname.borderBottom': '1px solid #e5e5e5' // Not valid key will be return.\n * });\n */\nCalendar.prototype.setTheme = function(theme) {\n var result = this._controller.setTheme(theme);\n this.render(true);\n\n return result;\n};\n\n/**\n * Set options of calendar\n * @param {Options} options - set {@link Options}\n * @param {boolean} [silent=false] - no auto render after creation when set true\n */\nCalendar.prototype.setOptions = function(options, silent) {\n util.forEach(options, function(value, name) {\n if (util.isObject(value) && !util.isArray(value)) {\n util.forEach(value, function(innerValue, innerName) {\n this._options[name][innerName] = innerValue;\n }, this);\n } else {\n this._options[name] = value;\n }\n }, this);\n\n this._setAdditionalInternalOptions(options);\n\n if (!silent) {\n this.changeView(this._viewName, true);\n }\n};\n\n/**\n * Get current {@link Options}.\n * @returns {Options} options\n */\nCalendar.prototype.getOptions = function() {\n return this._options;\n};\n\n/**\n * Current rendered date ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDate = function() {\n return this._renderDate;\n};\n\n/**\n * Start time of rendered date range ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDateRangeStart = function() {\n return this._renderRange.start;\n};\n\n/**\n * End time of rendered date range ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDateRangeEnd = function() {\n return this._renderRange.end;\n};\n\n/**\n * Get current view name('day', 'week', 'month')\n * @returns {string} view name\n */\nCalendar.prototype.getViewName = function() {\n return this._viewName;\n};\n\n/**\n * Set calendar list\n * @param {Array.} calendars - {@link CalendarProps} List\n */\nCalendar.prototype.setCalendars = function(calendars) {\n util.forEach(calendars || [], function(calendar) {\n this.setCalendarColor(calendar.id, calendar, true);\n }, this);\n\n this._controller.setCalendars(calendars);\n\n this.render();\n};\n\n/**\n * Open schedule creation popup\n * @param {Schedule} schedule - The preset {@link Schedule} data\n */\nCalendar.prototype.openCreationPopup = function(schedule) {\n if (this._openCreationPopup) {\n this._openCreationPopup(schedule);\n }\n};\n\n/**\n * Hide the more view\n */\nCalendar.prototype.hideMoreView = function() {\n if (this._hideMoreView) {\n this._hideMoreView();\n }\n};\n\n/**\n * Set timezone offset\n * @param {number} offset - The offset (min)\n * @static\n * @deprecated\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffset(moment.tz.zone(timezoneName).utcOffset(moment()));\n */\nCalendar.setTimezoneOffset = function(offset) {\n timezone.setOffset(offset);\n};\n\n/**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - The callback function\n * @static\n * @deprecated\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffsetCallback(function(timestamp) {\n * return moment.tz.zone(timezoneName).utcOffset(timestamp));\n * });\n */\nCalendar.setTimezoneOffsetCallback = function(callback) {\n timezone.setOffsetCallback(callback);\n};\n\n/**\n * Create controller instance\n * @returns {Base} controller instance\n * @param {Options} options - calendar options\n * @private\n */\nfunction _createController(options) {\n return controllerFactory(options);\n}\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @param {string} viewName - 'week', 'day'\n * @returns {Week} week view instance\n * @private\n */\nfunction _createWeekView(controller, container, dragHandler, options, viewName) {\n return weekViewFactory(\n controller,\n container,\n dragHandler,\n options,\n viewName\n );\n}\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @returns {Month} month view instance\n * @private\n */\nfunction _createMonthView(controller, container, dragHandler, options) {\n return monthViewFactory(\n controller,\n container,\n dragHandler,\n options\n );\n}\n\n/**\n * Set child view's options recursively\n * @param {View} view - parent view\n * @param {function} func - option manipulate function\n * @private\n */\nfunction _setOptionRecurseively(view, func) {\n view.recursive(function(childView) {\n var opt = childView.options;\n\n if (!opt) {\n return;\n }\n\n func(childView, opt);\n });\n}\n\nutil.CustomEvents.mixin(Calendar);\n\nmodule.exports = Calendar;\n","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('blockHelperMissing', function (context, options) {\n var inverse = options.inverse,\n fn = options.fn;\n\n if (context === true) {\n return fn(this);\n } else if (context === false || context == null) {\n return inverse(this);\n } else if (_utils.isArray(context)) {\n if (context.length > 0) {\n if (options.ids) {\n options.ids = [options.name];\n }\n\n return instance.helpers.each(context, options);\n } else {\n return inverse(this);\n }\n } else {\n if (options.data && options.ids) {\n var data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name);\n options = { data: data };\n }\n\n return fn(context, options);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBc0QsVUFBVTs7cUJBRWpELFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsb0JBQW9CLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3ZFLFFBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPO1FBQ3pCLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVwQixRQUFJLE9BQU8sS0FBSyxJQUFJLEVBQUU7QUFDcEIsYUFBTyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDakIsTUFBTSxJQUFJLE9BQU8sS0FBSyxLQUFLLElBQUksT0FBTyxJQUFJLElBQUksRUFBRTtBQUMvQyxhQUFPLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUN0QixNQUFNLElBQUksZUFBUSxPQUFPLENBQUMsRUFBRTtBQUMzQixVQUFJLE9BQU8sQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFO0FBQ3RCLFlBQUksT0FBTyxDQUFDLEdBQUcsRUFBRTtBQUNmLGlCQUFPL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Xh0ID09PSB0cnVlKSB7XG4gICAgICByZXR1cm4gZm4odGhpcyk7XG4gICAgfSBlbHNlIGlmIChjb250ZXh0ID09PSBmYWxzZSB8fCBjb250ZXh0ID09IG51bGwpIHtcbiAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgIH0gZWxzZSBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgaWYgKGNvbnRleHQubGVuZ3RoID4gMCkge1xuICAgICAgICBpZiAob3B0aW9ucy5pZHMpIHtcbiAgICAgICAgICBvcHRpb25zLmlkcyA9IFtvcHRpb25zLm5hbWVdO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnMuZWFjaChjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCwgb3B0aW9ucy5uYW1lKTtcbiAgICAgICAgb3B0aW9ucyA9IHtkYXRhOiBkYXRhfTtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIGZuKGNvbnRleHQsIG9wdGlvbnMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('each', function (context, options) {\n if (!options) {\n throw new _exception2['default']('Must pass iterator to #each');\n }\n\n var fn = options.fn,\n inverse = options.inverse,\n i = 0,\n ret = '',\n data = undefined,\n contextPath = undefined;\n\n if (options.data && options.ids) {\n contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + '.';\n }\n\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n if (options.data) {\n data = _utils.createFrame(options.data);\n }\n\n function execIteration(field, index, last) {\n if (data) {\n data.key = field;\n data.index = index;\n data.first = index === 0;\n data.last = !!last;\n\n if (contextPath) {\n data.contextPath = contextPath + field;\n }\n }\n\n ret = ret + fn(context[field], {\n data: data,\n blockParams: _utils.blockParams([context[field], field], [contextPath + field, null])\n });\n }\n\n if (context && typeof context === 'object') {\n if (_utils.isArray(context)) {\n for (var j = context.length; i < j; i++) {\n if (i in context) {\n execIteration(i, i, i === context.length - 1);\n }\n }\n } else if (global.Symbol && context[global.Symbol.iterator]) {\n var newContext = [];\n var iterator = context[global.Symbol.iterator]();\n for (var it = iterator.next(); !it.done; it = iterator.next()) {\n newContext.push(it.value);\n }\n context = newContext;\n for (var j = context.length; i < j; i++) {\n execIteration(i, i, i === context.length - 1);\n }\n } else {\n (function () {\n var priorKey = undefined;\n\n Object.keys(context).forEach(function (key) {\n // We're running the iterations one step out of sync so we can detect\n // the last iteration without have to scan the object twice and create\n // an itermediate keys array.\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1);\n }\n priorKey = key;\n i++;\n });\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1, true);\n }\n })();\n }\n }\n\n if (i === 0) {\n ret = inverse(this);\n }\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvZWFjaC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQUErRSxVQUFVO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b250ZXh0LmNhbGwodGhpcyk7IH1cblxuICAgIGlmIChvcHRpb25zLmRhdGEpIHtcbiAgICAgIGRhdGEgPSBjcmVhdGVGcmFtZShvcHRpb25zLmRhdGEpO1xuICAgIH1cblxuICAgIGZ1bmN0aW9uIGV4ZWNJdGVyYXRpb24oZmllbGQsIGluZGV4LCBsYXN0KSB7XG4gICAgICBpZiAoZGF0YSkge1xuICAgICAgICBkYXRhLmtleSA9IGZpZWxkO1xuICAgICAgICBkYXRhLmluZGV4ID0gaW5kZXg7XG4gICAgICAgIGRhdGEuZmlyc3QgPSBpbmRleCA9PT0gMDtcbiAgICAgICAgZGF0YS5sYXN0ID0gISFsYXN0O1xuXG4gICAgICAgIGlmIChjb250ZXh0UGF0aCkge1xuICAgICAgICAgIGRhdGEuY29udGV4dFBhdGggPSBjb250ZXh0UGF0aCArIGZpZWxkO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIHJldCA9IHJldCArIGZuKGNvbnRleHRbZmllbGRdLCB7XG4gICAgICAgIGRhdGE6IGRhdGEsXG4gICAgICAgIGJsb2NrUGFyYW1zOiBibG9ja1BhcmFtcyhbY29udGV4dFtmaWVsZF0sIGZpZWxkXSwgW2NvbnRleHRQYXRoICsgZmllbGQsIG51bGxdKVxuICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKGNvbnRleHQgJiYgdHlwZW9mIGNvbnRleHQgPT09ICdvYmplY3QnKSB7XG4gICAgICBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgICBmb3IgKGxldCBqID0gY29udGV4dC5sZW5ndGg7IGkgPCBqOyBpKyspIHtcbiAgICAgICAgICBpZiAoaSBpbiBjb250ZXh0KSB7XG4gICAgICAgICAgICBleGVjSXRlcmF0aW9uKGksIGksIGkgPT09IGNvbnRleHQubGVuZ3RoIC0gMSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9IGVsc2UgaWYgKGdsb2JhbC5TeW1ib2wgJiYgY29udGV4dF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AgICAgICAgfSk7XG4gICAgICAgIGlmIChwcmlvcktleSAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgZXhlY0l0ZXJhdGlvbihwcmlvcktleSwgaSAtIDEsIHRydWUpO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuXG4gICAgaWYgKGkgPT09IDApIHtcbiAgICAgIHJldCA9IGludmVyc2UodGhpcyk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHJldDtcbiAgfSk7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('helperMissing', function () /* [args, ]options */{\n if (arguments.length === 1) {\n // A missing field in a {{foo}} construct.\n return undefined;\n } else {\n // Someone is actually trying to call something, blow up.\n throw new _exception2['default']('Missing helper: \"' + arguments[arguments.length - 1].name + '\"');\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozt5QkFBc0IsY0FBYzs7OztxQkFFckIsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxlQUFlLEVBQUUsaUNBQWdDO0FBQ3ZFLFFBQUksU0FBUyxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUU7O0FBRTFCLGFBQU8sU0FBUyxDQUFDO0tBQ2xCLE1BQU07O0FBRUwsWUFBTSwyQkFBYyxtQkFBbUIsR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFDLENBQUM7S0FDdkY7R0FDRixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJoZWxwZXItbWlzc2luZy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBFeGNlcHRpb24gZnJvbSAnLi4vZXhjZXB0aW9uJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ2hlbHBlck1pc3NpbmcnLCBmdW5jdGlvbigvKiBbYXJncywgXW9wdGlvbnMgKi8pIHtcbiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCA9PT0gMSkge1xuICAgICAgLy8gQSBtaXNzaW5nIGZpZWxkIGluIGEge3tmb299fSBjb25zdHJ1Y3QuXG4gICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBTb21lb25lIGlzIGFjdHVhbGx5IHRyeWluZyB0byBjYWxsIHNvbWV0aGluZywgYmxvdyB1cC5cbiAgICAgIHRocm93IG5ldyBFeGNlcHRpb24oJ01pc3NpbmcgaGVscGVyOiBcIicgKyBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdLm5hbWUgKyAnXCInKTtcbiAgICB9XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('if', function (conditional, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#if requires exactly one argument');\n }\n if (_utils.isFunction(conditional)) {\n conditional = conditional.call(this);\n }\n\n // Default behavior is to render the positive path if the value is truthy and not empty.\n // The `includeZero` option may be set to treat the condtional as purely not empty based on the\n // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.\n if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) {\n return options.inverse(this);\n } else {\n return options.fn(this);\n }\n });\n\n instance.registerHelper('unless', function (conditional, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#unless requires exactly one argument');\n }\n return instance.helpers['if'].call(this, conditional, { fn: options.inverse, inverse: options.fn, hash: options.hash });\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztxQkFBb0MsVUFBVTs7eUJBQ3hCLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLFVBQVMsV0FBVyxFQUFFLE9BQU8sRUFBRTtBQUMzRCxRQUFJLFNBQVMsQ0FBQyxNQUFNLElBQUksQ0FBQyxFQUFFO0FBQUUsWUFBTSwyQkFBYyxtQ0FBbUMsQ0FBQyxDQUFDO0tBQUM7QUFDdkYsUUFBSSxrQkFBVyxXQUFXLENBQUMsRUFBRTtBQUFFLGlCQUFXLEdBQUcsV0FBVyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUFFOzs7OztBQUt0RSxRQUFJLEFBQUMsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLFdBQVcsSUFBSSxDQUFDLFdBQVcsSUFBSyxlQUFRLFdBQVcsQ0FBQyxFQUFFO0FBQ3ZFLGFBQU8sT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUM5QixNQUFNO0FBQ0wsYUFBTyxPQUFPLENBQUMsRUFBRSxDQUFDLElBQUksQ0FBQyxDQ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aW9yIGlzIHRvIHJlbmRlciB0aGUgcG9zaXRpdmUgcGF0aCBpZiB0aGUgdmFsdWUgaXMgdHJ1dGh5IGFuZCBub3QgZW1wdHkuXG4gICAgLy8gVGhlIGBpbmNsdWRlWmVyb2Agb3B0aW9uIG1heSBiZSBzZXQgdG8gdHJlYXQgdGhlIGNvbmR0aW9uYWwgYXMgcHVyZWx5IG5vdCBlbXB0eSBiYXNlZCBvbiB0aGVcbiAgICAvLyBiZWhhdmlvciBvZiBpc0VtcHR5LiBFZmZlY3RpdmVseSB0aGlzIGRldGVybWluZXMgaWYgMCBpcyBoYW5kbGVkIGJ5IHRoZSBwb3NpdGl2ZSBwYXRoIG9yIG5lZ2F0aXZlLlxuICAgIGlmICgoIW9wdGlvbnMuaGFzaC5pbmNsdWRlWmVybyAmJiAhY29uZGl0aW9uYWwpIHx8IGlzRW1wdHkoY29uZGl0aW9uYWwpKSB7XG4gICAgICByZXR1cm4gb3B0aW9ucy5pbnZlcnNlKHRoaXMpO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gb3B0aW9ucy5mbih0aGlzKTtcbiAgICB9XG4gIH0pO1xuXG4gIGluc3RhbmNlLnJlZ2lzdGVySGVscGVyKCd1bmxlc3MnLCBmdW5jdGlvbihjb25kaXRpb25hbCwgb3B0aW9ucykge1xuICAgIGlmIChhcmd1bWVudHMubGVuZ3RoICE9IDIpIHsgdGhyb3cgbmV3IEV4Y2VwdGlvbignI3VubGVzcyByZXF1aXJlcyBleGFjdGx5IG9uZSBhcmd1bWVudCcpO31cbiAgICByZXR1cm4gaW5zdGFuY2UuaGVscGVyc1snaWYnXS5jYWxsKHRoaXMsIGNvbmRpdGlvbmFsLCB7Zm46IG9wdGlvbnMuaW52ZXJzZSwgaW52ZXJzZTogb3B0aW9ucy5mbiwgaGFzaDogb3B0aW9ucy5oYXNofSk7XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('log', function () /* message, options */{\n var args = [undefined],\n options = arguments[arguments.length - 1];\n for (var i = 0; i < arguments.length - 1; i++) {\n args.push(arguments[i]);\n }\n\n var level = 1;\n if (options.hash.level != null) {\n level = options.hash.level;\n } else if (options.data && options.data.level != null) {\n level = options.data.level;\n }\n args[0] = level;\n\n instance.log.apply(instance, args);\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ2xCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUM5QyxTQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7QUFDN0MsVUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztLQUN6Qjs7QUFFRCxRQUFJLEtBQUssR0FBRyxDQUFDLENBQUM7QUFDZCxRQUFJLE9BQU8sQ0FBQyxJQUFJLENBQUMsS0FBSyxJQUFJLElBQUksRUFBRTtBQUM5QixXQUFLLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUM7S0FDNUIsTUFBTSxJQUFJLE9BQU8sQ0FBQyxJQUFJLElBQUksT0FBTyxDQUFDLElBQUksQ0FBQyxLQUFLLElBQUksSUFBSSxFQUFFO0FBQ3JELFdBQUssR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQztLQUM1QjtBQUNELFFBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxLQUFLLENBQUM7O0FBRWhCLFlBQVEsQ0FBQyxHQUFHLE1BQUEsQ0FBWixRQUFRLEVBQVMsSUFBSSxDQUFDLENBQUM7R0FDeEIsQ0FBQyxDQUFDO0NBQ0oiLCJmaWxlIjoibG9nLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ2xvZycsIGZ1bmN0aW9uKC8qIG1lc3NhZ2UsIG9wdGlvbnMgKi8pIHtcbiAgICBsZXQgYXJncyA9IFt1bmRlZmluZWRdLFxuICAgICAgICBvcHRpb25zID0gYXJndW1lbnRzW2FyZ3VtZW50cy5sZW5ndGggLSAxXTtcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IGFyZ3VtZW50cy5sZW5ndGggLSAxOyBpKyspIHtcbiAgICAgIGFyZ3MucHVzaChhcmd1bWVudHNbaV0pO1xuICAgIH1cblxuICAgIGxldCBsZXZlbCA9IDE7XG4gICAgaWYgKG9wdGlvbnMuaGFzaC5sZXZlbCAhPSBudWxsKSB7XG4gICAgICBsZXZlbCA9IG9wdGlvbnMuaGFzaC5sZXZlbDtcbiAgICB9IGVsc2UgaWYgKG9wdGlvbnMuZGF0YSAmJiBvcHRpb25zLmRhdGEubGV2ZWwgIT0gbnVsbCkge1xuICAgICAgbGV2ZWwgPSBvcHRpb25zLmRhdGEubGV2ZWw7XG4gICAgfVxuICAgIGFyZ3NbMF0gPSBsZXZlbDtcblxuICAgIGluc3RhbmNlLmxvZyguLi4gYXJncyk7XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\nvar dangerousPropertyRegex = /^(constructor|__defineGetter__|__defineSetter__|__lookupGetter__|__proto__)$/;\n\nexports.dangerousPropertyRegex = dangerousPropertyRegex;\n\nexports['default'] = function (instance) {\n instance.registerHelper('lookup', function (obj, field) {\n if (!obj) {\n return obj;\n }\n if (dangerousPropertyRegex.test(String(field)) && !Object.prototype.propertyIsEnumerable.call(obj, field)) {\n return undefined;\n }\n return obj[field];\n });\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9va3VwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFPLElBQU0sc0JBQXNCLEdBQUcsOEVBQThFLENBQUM7Ozs7cUJBRXRHLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsUUFBUSxFQUFFLFVBQVMsR0FBRyxFQUFFLEtBQUssRUFBRTtBQUNyRCxRQUFJLENBQUMsR0FBRyxFQUFFO0FBQ1IsYUFBTyxHQUFHLENBQUM7S0FDWjtBQUNELFFBQUksc0JBQXNCLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLFNBQVMsQ0FBQyxvQkFBb0IsQ0FBQyxJQUFJLENBQUMsR0FBRyxFQUFFLEtBQUssQ0FBQyxFQUFFO0FBQ3pHLGFBQU8sU0FBUyxDQUFDO0tBQ2xCO0FBQ0QsV0FBTyxHQUFHLENBQUMsS0FBSyxDQUFDLENBQUM7R0FDbkIsQ0FBQyxDQUFDO0NBQ0oiLCJmaWxlIjoibG9va3VwLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IGRhbmdlcm91c1Byb3BlcnR5UmVnZXggPSAvXihjb25zdHJ1Y3RvcnxfX2RlZmluZUdldHRlcl9ffF9fZGVmaW5lU2V0dGVyX198X19sb29rdXBHZXR0ZXJfX3xfX3Byb3RvX18pJC87XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uKGluc3RhbmNlKSB7XG4gIGluc3RhbmNlLnJlZ2lzdGVySGVscGVyKCdsb29rdXAnLCBmdW5jdGlvbihvYmosIGZpZWxkKSB7XG4gICAgaWYgKCFvYmopIHtcbiAgICAgIHJldHVybiBvYmo7XG4gICAgfVxuICAgIGlmIChkYW5nZXJvdXNQcm9wZXJ0eVJlZ2V4LnRlc3QoU3RyaW5nKGZpZWxkKSkgJiYgIU9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChvYmosIGZpZWxkKSkge1xuICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICB9XG4gICAgcmV0dXJuIG9ialtmaWVsZF07XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('with', function (context, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#with requires exactly one argument');\n }\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n var fn = options.fn;\n\n if (!_utils.isEmpty(context)) {\n var data = options.data;\n if (options.data && options.ids) {\n data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]);\n }\n\n return fn(context, {\n data: data,\n blockParams: _utils.blockParams([context], [data && data.contextPath])\n });\n } else {\n return options.inverse(this);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHB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AgICAgZGF0YTogZGF0YSxcbiAgICAgICAgYmxvY2tQYXJhbXM6IGJsb2NrUGFyYW1zKFtjb250ZXh0XSwgW2RhdGEgJiYgZGF0YS5jb250ZXh0UGF0aF0pXG4gICAgICB9KTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIG9wdGlvbnMuaW52ZXJzZSh0aGlzKTtcbiAgICB9XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultDecorators = registerDefaultDecorators;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _decoratorsInline = require('./decorators/inline');\n\nvar _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);\n\nfunction registerDefaultDecorators(instance) {\n _decoratorsInline2['default'](instance);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG5cbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerDecorator('inline', function (fn, props, container, options) {\n var ret = fn;\n if (!props.partials) {\n props.partials = {};\n ret = function (context, options) {\n // Create a new partials stack frame prior to exec.\n var original = container.partials;\n container.partials = _utils.extend({}, original, props.partials);\n var ret = fn(context, options);\n container.partials = original;\n return ret;\n };\n }\n\n props.partials[options.args[0]] = options.fn;\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQXFCLFVBQVU7O3FCQUVoQixVQUFTLFFBQVEsRUFBRTtBQUNoQyxVQUFRLENBQUMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVMsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFO0FBQzNFLFFBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUNiLFFBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxFQUFFO0FBQ25CLFdBQUssQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO0FBQ3BCLFNBQUcsR0FBRyxVQUFTLE9BQU8sRUFBRSxPQUFPLEVBQUU7O0FBRS9CLFlBQUksUUFBUSxHQUFHLFNBQVMsQ0FBQyxRQUFRLENBQUM7QUFDbEMsaUJBQVMsQ0FBQyxRQUFRLEdBQUcsY0FBTyxFQUFFLEVBQUUsUUFBUSxFQUFFLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUMxRCxZQUFJLEdBQUcsR0FBRyxFQUFFLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQyxDQUFDO0FBQy9CLGlCQUFTLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQztBQUM5QixlQUFPLEdBQUcsQ0FBQztPQUNaLENBQUM7S0FDSDs7QUFFRCxTQUFLLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUU3QyxXQUFPLEdBQUcsQ0FBQztHQUNaLENBQUMsQ0FBQztDQUNKIiwiZmlsZSI6ImlubGluZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7ZXh0ZW5kfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uKGluc3RhbmNlKSB7XG4gIGluc3RhbmNlLnJlZ2lzdGVyRGVjb3JhdG9yKCdpbmxpbmUnLCBmdW5jdGlvbihmbiwgcHJvcHMsIGNvbnRhaW5lciwgb3B0aW9ucykge1xuICAgIGxldCByZXQgPSBmbjtcbiAgICBpZiAoIXByb3BzLnBhcnRpYWxzKSB7XG4gICAgICBwcm9wcy5wYXJ0aWFscyA9IHt9O1xuICAgICAgcmV0ID0gZnVuY3Rpb24oY29udGV4dCwgb3B0aW9ucykge1xuICAgICAgICAvLyBDcmVhdGUgYSBuZXcgcGFydGlhbHMgc3RhY2sgZnJhbWUgcHJpb3IgdG8gZXhlYy5cbiAgICAgICAgbGV0IG9yaWdpbmFsID0gY29udGFpbmVyLnBhcnRpYWxzO1xuICAgICAgICBjb250YWluZXIucGFydGlhbHMgPSBleHRlbmQoe30sIG9yaWdpbmFsLCBwcm9wcy5wYXJ0aWFscyk7XG4gICAgICAgIGxldCByZXQgPSBmbihjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgICAgY29udGFpbmVyLnBhcnRpYWxzID0gb3JpZ2luYWw7XG4gICAgICAgIHJldHVybiByZXQ7XG4gICAgICB9O1xuICAgIH1cblxuICAgIHByb3BzLnBhcnRpYWxzW29wdGlvbnMuYXJnc1swXV0gPSBvcHRpb25zLmZuO1xuXG4gICAgcmV0dXJuIHJldDtcbiAgfSk7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('./utils');\n\nvar logger = {\n methodMap: ['debug', 'info', 'warn', 'error'],\n level: 'info',\n\n // Maps a given level value to the `methodMap` indexes above.\n lookupLevel: function lookupLevel(level) {\n if (typeof level === 'string') {\n var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase());\n if (levelMap >= 0) {\n level = levelMap;\n } else {\n level = parseInt(level, 10);\n }\n }\n\n return level;\n },\n\n // Can be overridden in the host environment\n log: function log(level) {\n level = logger.lookupLevel(level);\n\n if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) {\n var method = logger.methodMap[level];\n if (!console[method]) {\n // eslint-disable-line no-console\n method = 'log';\n }\n\n for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n message[_key - 1] = arguments[_key];\n }\n\n console[method].apply(console, message); // eslint-disable-line no-console\n }\n }\n};\n\nexports['default'] = logger;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUFzQixTQUFTOztBQUUvQixJQUFJLE1BQU0sR0FBRztBQUNYLFdBQVMsRUFBRSxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE9BQU8sQ0FBQztBQUM3QyxPQUFLLEVBQUUsTUFBTTs7O0FBR2IsYUFBVyxFQUFFLHFCQUFTLEtBQUssRUFBRTtBQUMzQixRQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsRUFBRTtBQUM3QixVQUFJLFFBQVEsR0FBRyxlQUFRLE1BQU0sQ0FBQyxTQUFTLEVBQUUsS0FBSyxDQUFDLFdBQVcsRUFBRSxDQUFDLENBQUM7QUFDOUQsVUFBSSxRQUFRLElBQUksQ0FBQyxFQUFFO0FBQ2pCLGFBQUssR0FBRy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uICAgIGlmICh0eXBlb2YgbGV2ZWwgPT09ICdzdHJpbmcnKSB7XG4gICAgICBsZXQgbGV2ZWxNYXAgPSBpbmRleE9mKGxvZ2dlci5tZXRob2RNYXAsIGxldmVsLnRvTG93ZXJDYXNlKCkpO1xuICAgICAgaWYgKGxldmVsTWFwID49IDApIHtcbiAgICAgICAgbGV2ZWwgPSBsZXZlbE1hcDtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGxldmVsID0gcGFyc2VJbnQobGV2ZWwsIDEwKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gbGV2ZWw7XG4gIH0sXG5cbiAgLy8gQ2FuIGJlIG92ZXJyaWRkZW4gaW4gdGhlIGhvc3QgZW52aXJvbm1lbnRcbiAgbG9nOiBmdW5jdGlvbihsZXZlbCwgLi4ubWVzc2FnZSkge1xuICAgIGxldmVsID0gbG9nZ2VyLmxvb2t1cExldmVsKGxldmVsKTtcblxuICAgIGlmICh0eXBlb2YgY29uc29sZSAhPT0gJ3VuZGVmaW5lZCcgJiYgbG9nZ2VyLmxvb2t1cExldmVsKGxvZ2dlci5sZXZlbCkgPD0gbGV2ZWwpIHtcbiAgICAgIGxldCBtZXRob2QgPSBsb2dnZXIubWV0aG9kTWFwW2xldmVsXTtcbiAgICAgIGlmICghY29uc29sZVttZXRob2RdKSB7IC8vIGVzbGludC1kaXNhYmxlLWxpbmUgbm8tY29uc29sZVxuICAgICAgICBtZXRob2QgPSAnbG9nJztcbiAgICAgIH1cbiAgICAgIGNvbnNvbGVbbWV0aG9kXSguLi5tZXNzYWdlKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgfVxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBsb2dnZXI7XG4iXX0=\n","// Build out our basic SafeString type\n'use strict';\n\nexports.__esModule = true;\nfunction SafeString(string) {\n this.string = string;\n}\n\nSafeString.prototype.toString = SafeString.prototype.toHTML = function () {\n return '' + this.string;\n};\n\nexports['default'] = SafeString;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3NhZmUtc3RyaW5nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUU7QUFDMUIsTUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7Q0FDdEI7O0FBRUQsVUFBVSxDQUFDLFNBQVMsQ0FBQyxRQUFRLEdBQUcsVUFBVSxDQUFDLFNBQVMsQ0FBQyxNQUFNLEdBQUcsWUFBVztBQUN2RSxTQUFPLEVBQUUsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDO0NBQ3pCLENBQUM7O3FCQUVhLFVBQVUiLCJmaWxlIjoic2FmZS1zdHJpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBCdWlsZCBvdXQgb3VyIGJhc2ljIFNhZmVTdHJpbmcgdHlwZVxuZnVuY3Rpb24gU2FmZVN0cmluZyhzdHJpbmcpIHtcbiAgdGhpcy5zdHJpbmcgPSBzdHJpbmc7XG59XG5cblNhZmVTdHJpbmcucHJvdG90eXBlLnRvU3RyaW5nID0gU2FmZVN0cmluZy5wcm90b3R5cGUudG9IVE1MID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiAnJyArIHRoaXMuc3RyaW5nO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2FmZVN0cmluZztcbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\nexports.checkRevision = checkRevision;\nexports.template = template;\nexports.wrapProgram = wrapProgram;\nexports.resolvePartial = resolvePartial;\nexports.invokePartial = invokePartial;\nexports.noop = noop;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _utils = require('./utils');\n\nvar Utils = _interopRequireWildcard(_utils);\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _base = require('./base');\n\nvar _helpers = require('./helpers');\n\nfunction checkRevision(compilerInfo) {\n var compilerRevision = compilerInfo && compilerInfo[0] || 1,\n currentRevision = _base.COMPILER_REVISION;\n\n if (compilerRevision >= _base.LAST_COMPATIBLE_COMPILER_REVISION && compilerRevision <= _base.COMPILER_REVISION) {\n return;\n }\n\n if (compilerRevision < _base.LAST_COMPATIBLE_COMPILER_REVISION) {\n var runtimeVersions = _base.REVISION_CHANGES[currentRevision],\n compilerVersions = _base.REVISION_CHANGES[compilerRevision];\n throw new _exception2['default']('Template was precompiled with an older version of Handlebars than the current runtime. ' + 'Please update your precompiler to a newer version (' + runtimeVersions + ') or downgrade your runtime to an older version (' + compilerVersions + ').');\n } else {\n // Use the embedded version info since the runtime doesn't know about this revision yet\n throw new _exception2['default']('Template was precompiled with a newer version of Handlebars than the current runtime. ' + 'Please update your runtime to a newer version (' + compilerInfo[1] + ').');\n }\n}\n\nfunction template(templateSpec, env) {\n\n /* istanbul ignore next */\n if (!env) {\n throw new _exception2['default']('No environment passed to template');\n }\n if (!templateSpec || !templateSpec.main) {\n throw new _exception2['default']('Unknown template object: ' + typeof templateSpec);\n }\n\n templateSpec.main.decorator = templateSpec.main_d;\n\n // Note: Using env.VM references rather than local var references throughout this section to allow\n // for external users to override these as pseudo-supported APIs.\n env.VM.checkRevision(templateSpec.compiler);\n\n // backwards compatibility for precompiled templates with compiler-version 7 (<4.3.0)\n var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;\n\n function invokePartialWrapper(partial, context, options) {\n if (options.hash) {\n context = Utils.extend({}, context, options.hash);\n if (options.ids) {\n options.ids[0] = true;\n }\n }\n partial = env.VM.resolvePartial.call(this, partial, context, options);\n\n var optionsWithHooks = Utils.extend({}, options, { hooks: this.hooks });\n\n var result = env.VM.invokePartial.call(this, partial, context, optionsWithHooks);\n\n if (result == null && env.compile) {\n options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);\n result = options.partials[options.name](context, optionsWithHooks);\n }\n if (result != null) {\n if (options.indent) {\n var lines = result.split('\\n');\n for (var i = 0, l = lines.length; i < l; i++) {\n if (!lines[i] && i + 1 === l) {\n break;\n }\n\n lines[i] = options.indent + lines[i];\n }\n result = lines.join('\\n');\n }\n return result;\n } else {\n throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode');\n }\n }\n\n // Just add water\n var container = {\n strict: function strict(obj, name, loc) {\n if (!obj || !(name in obj)) {\n throw new _exception2['default']('\"' + name + '\" not defined in ' + obj, { loc: loc });\n }\n return obj[name];\n },\n lookup: function lookup(depths, name) {\n var len = depths.length;\n for (var i = 0; i < len; i++) {\n if (depths[i] && depths[i][name] != null) {\n return depths[i][name];\n }\n }\n },\n lambda: function lambda(current, context) {\n return typeof current === 'function' ? current.call(context) : current;\n },\n\n escapeExpression: Utils.escapeExpression,\n invokePartial: invokePartialWrapper,\n\n fn: function fn(i) {\n var ret = templateSpec[i];\n ret.decorator = templateSpec[i + '_d'];\n return ret;\n },\n\n programs: [],\n program: function program(i, data, declaredBlockParams, blockParams, depths) {\n var programWrapper = this.programs[i],\n fn = this.fn(i);\n if (data || depths || blockParams || declaredBlockParams) {\n programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);\n } else if (!programWrapper) {\n programWrapper = this.programs[i] = wrapProgram(this, i, fn);\n }\n return programWrapper;\n },\n\n data: function data(value, depth) {\n while (value && depth--) {\n value = value._parent;\n }\n return value;\n },\n // An empty object to use as replacement for null-contexts\n nullContext: Object.seal({}),\n\n noop: env.VM.noop,\n compilerInfo: templateSpec.compiler\n };\n\n function ret(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var data = options.data;\n\n ret._setup(options);\n if (!options.partial && templateSpec.useData) {\n data = initData(context, data);\n }\n var depths = undefined,\n blockParams = templateSpec.useBlockParams ? [] : undefined;\n if (templateSpec.useDepths) {\n if (options.depths) {\n depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;\n } else {\n depths = [context];\n }\n }\n\n function main(context /*, options*/) {\n return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);\n }\n main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);\n return main(context, options);\n }\n ret.isTop = true;\n\n ret._setup = function (options) {\n if (!options.partial) {\n container.helpers = Utils.extend({}, env.helpers, options.helpers);\n\n if (templateSpec.usePartial) {\n container.partials = Utils.extend({}, env.partials, options.partials);\n }\n if (templateSpec.usePartial || templateSpec.useDecorators) {\n container.decorators = Utils.extend({}, env.decorators, options.decorators);\n }\n\n container.hooks = {};\n\n var keepHelperInHelpers = options.allowCallsToHelperMissing || templateWasPrecompiledWithCompilerV7;\n _helpers.moveHelperToHooks(container, 'helperMissing', keepHelperInHelpers);\n _helpers.moveHelperToHooks(container, 'blockHelperMissing', keepHelperInHelpers);\n } else {\n container.helpers = options.helpers;\n container.partials = options.partials;\n container.decorators = options.decorators;\n container.hooks = options.hooks;\n }\n };\n\n ret._child = function (i, data, blockParams, depths) {\n if (templateSpec.useBlockParams && !blockParams) {\n throw new _exception2['default']('must pass block params');\n }\n if (templateSpec.useDepths && !depths) {\n throw new _exception2['default']('must pass parent depths');\n }\n\n return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);\n };\n return ret;\n}\n\nfunction wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {\n function prog(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var currentDepths = depths;\n if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {\n currentDepths = [context].concat(depths);\n }\n\n return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);\n }\n\n prog = executeDecorators(fn, prog, container, depths, data, blockParams);\n\n prog.program = i;\n prog.depth = depths ? depths.length : 0;\n prog.blockParams = declaredBlockParams || 0;\n return prog;\n}\n\n/**\n * This is currently part of the official API, therefore implementation details should not be changed.\n */\n\nfunction resolvePartial(partial, context, options) {\n if (!partial) {\n if (options.name === '@partial-block') {\n partial = options.data['partial-block'];\n } else {\n partial = options.partials[options.name];\n }\n } else if (!partial.call && !options.name) {\n // This is a dynamic partial that returned a string\n options.name = partial;\n partial = options.partials[partial];\n }\n return partial;\n}\n\nfunction invokePartial(partial, context, options) {\n // Use the current closure context to save the partial-block if this partial\n var currentPartialBlock = options.data && options.data['partial-block'];\n options.partial = true;\n if (options.ids) {\n options.data.contextPath = options.ids[0] || options.data.contextPath;\n }\n\n var partialBlock = undefined;\n if (options.fn && options.fn !== noop) {\n (function () {\n options.data = _base.createFrame(options.data);\n // Wrapper function to get access to currentPartialBlock from the closure\n var fn = options.fn;\n partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n // Restore the partial-block from the closure for the execution of the block\n // i.e. the part inside the block of the partial call.\n options.data = _base.createFrame(options.data);\n options.data['partial-block'] = currentPartialBlock;\n return fn(context, options);\n };\n if (fn.partials) {\n options.partials = Utils.extend({}, options.partials, fn.partials);\n }\n })();\n }\n\n if (partial === undefined && partialBlock) {\n partial = partialBlock;\n }\n\n if (partial === undefined) {\n throw new _exception2['default']('The partial ' + options.name + ' could not be found');\n } else if (partial instanceof Function) {\n return partial(context, options);\n }\n}\n\nfunction noop() {\n return '';\n}\n\nfunction initData(context, data) {\n if (!data || !('root' in data)) {\n data = data ? _base.createFrame(data) : {};\n data.root = context;\n }\n return data;\n}\n\nfunction executeDecorators(fn, prog, container, depths, data, blockParams) {\n if (fn.decorator) {\n var props = {};\n prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);\n Utils.extend(prog, props);\n }\n return prog;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3lCQUNLLGFBQWE7Ozs7b0JBQytELFFBQVE7O3VCQUMxRSxXQUFXOztBQUVwQyxTQUFTLGFBQWEsQ0FBQyxZQUFZLEVBQUU7QUFDMUMsTUFBTSxnQkFBZ0IsR0FBRyxZQUFZLElBQUksWUFBWSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUM7TUFDdkQsZUFBZSwwQkFBb0IsQ0FBQzs7QUFFMUMsTUFBSSxnQkFBZ0IsMkNBQXFDLElBQUksZ0JBQWdCLDJCQUFxQixFQUFFO0FBQ2xHLFdBQU87R0FDUjs7QUFFRCxNQUFJLGdCQUFnQiwwQ0FBb0MsRUFBRTtBQUN4RCxRQUFNLGVBQWUsR0FBRyx1QkFBaUIsZUFBZSxDQUFDO1FBQ25ELGdCQUFnQixHQUFHLHVCQUFpQixnQkFBZ0IsQ0FBQyxDQUFDO0FBQzVELFVBQU0sMkJBQWMseUZBQXlGLEdBQ3ZHLHFEQUFxRCxHQUFHLGVBQWUsR0FBRyxtREFBbUQsR0FBRyxnQkFBZ0IsR0FBRyxJQUFJLENBQUMsQ0FBQztHQUNoSyxNQUFNOztBQUVMLFVBQU0sMkJBQWMsd0ZBQXdGLEdBQ3RHLGlEQUFpRCxHQUFHLFlBQVksQ0FBQyxDQUFDLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQztHQUNuRjtDQUNGOztBQUVNLFNBQVMsUUFBUSxDQUFDLFlBQVksRUFBRSxHQUFHLEVBQ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kge1xuICAgIHRocm93IG5ldyBFeGNlcHRpb24oJ1RoZSBwYXJ0aWFsICcgKyBvcHRpb25zLm5hbWUgKyAnIGNvdWxkIG5vdCBiZSBmb3VuZCcpO1xuICB9IGVsc2UgaWYgKHBhcnRpYWwgaW5zdGFuY2VvZiBGdW5jdGlvbikge1xuICAgIHJldHVybiBwYXJ0aWFsKGNvbnRleHQsIG9wdGlvbnMpO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBub29wKCkgeyByZXR1cm4gJyc7IH1cblxuZnVuY3Rpb24gaW5pdERhdGEoY29udGV4dCwgZGF0YSkge1xuICBpZiAoIWRhdGEgfHwgISgncm9vdCcgaW4gZGF0YSkpIHtcbiAgICBkYXRhID0gZGF0YSA/IGNyZWF0ZUZyYW1lKGRhdGEpIDoge307XG4gICAgZGF0YS5yb290ID0gY29udGV4dDtcbiAgfVxuICByZXR1cm4gZGF0YTtcbn1cblxuZnVuY3Rpb24gZXhlY3V0ZURlY29yYXRvcnMoZm4sIHByb2csIGNvbnRhaW5lciwgZGVwdGhzLCBkYXRhLCBibG9ja1BhcmFtcykge1xuICBpZiAoZm4uZGVjb3JhdG9yKSB7XG4gICAgbGV0IHByb3BzID0ge307XG4gICAgcHJvZyA9IGZuLmRlY29yYXRvcihwcm9nLCBwcm9wcywgY29udGFpbmVyLCBkZXB0aHMgJiYgZGVwdGhzWzBdLCBkYXRhLCBibG9ja1BhcmFtcywgZGVwdGhzKTtcbiAgICBVdGlscy5leHRlbmQocHJvZywgcHJvcHMpO1xuICB9XG4gIHJldHVybiBwcm9nO1xufVxuIl19\n","/* global window */\n'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (Handlebars) {\n /* istanbul ignore next */\n var root = typeof global !== 'undefined' ? global : window,\n $Handlebars = root.Handlebars;\n /* istanbul ignore next */\n Handlebars.noConflict = function () {\n if (root.Handlebars === Handlebars) {\n root.Handlebars = $Handlebars;\n }\n return Handlebars;\n };\n};\n\nmodule.exports = exports['default'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mFycztcbiAgfTtcbn1cbiJdfQ==\n","/**\n * @fileoverview Layout view. wrap all view containers at outside.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\nvar View = require('./view');\n\n/**\n * Layout view for toggle each child view. It will controlled via navigation UI.\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container Container element to use layout view.\n * @param {Theme} theme - theme instance\n */\nfunction Layout(container, theme) {\n container = domutil.appendHTMLElement('div', container, config.classname('layout'));\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * @type {Collection} Child view collection.\n */\n this.children = new Collection(function(childView) {\n return childView.viewName;\n });\n /* eslint-enable*/\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n this.applyTheme();\n}\n\nutil.inherit(Layout, View);\n\n/**\n * Clear child views.\n */\nLayout.prototype.clear = function() {\n this.children.each(function(childView) {\n childView.destroy();\n });\n\n this.children.clear();\n this.container.innerHTML = '';\n};\n\n/**\n * Remove child view.\n * @override\n * @param {(string|View)} viewName - name of view or instance.\n */\nLayout.prototype.removeChild = function(viewName) {\n this.children.remove(viewName);\n};\n\n/**\n * Toggle child views.\n * @param {string} viewName - Name of view.\n */\nLayout.prototype.toggleChildView = function(viewName) {\n var container,\n prefix = ['add', 'remove'],\n flag;\n\n this.children.each(function(childView) {\n container = childView.container;\n flag = Number(childView.viewName === viewName);\n domutil[prefix[flag] + 'Class'](container, config.classname('hidden'));\n });\n};\n\nLayout.prototype.applyTheme = function() {\n var style = this.container.style;\n var theme = this.theme.common;\n\n // background color\n style.backgroundColor = theme.backgroundColor;\n};\n\nmodule.exports = Layout;\n","/**\n * @fileoverview Controller factory module.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Base = require('../controller/base'),\n Core = require('../controller/viewMixin/core'),\n Week = require('../controller/viewMixin/week'),\n Month = require('../controller/viewMixin/month');\n\n/**\n * Mixin object. create object property to target and mix to that\n * @param {object} from - source object\n * @param {object} to - target object\n * @param {string} propertyName - property name\n */\nfunction mixin(from, to, propertyName) {\n var obj = to[propertyName] = {};\n\n util.forEach(from, function(method, methodName) {\n obj[methodName] = util.bind(method, to);\n });\n}\n\n/**\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @returns {Base} The controller instance.\n */\nmodule.exports = function(options) {\n var controller = new Base(options);\n\n mixin(Core, controller, 'Core');\n mixin(Week, controller, 'Week');\n mixin(Month, controller, 'Month');\n\n // for Theme\n controller.Core.theme = controller.theme;\n controller.Week.theme = controller.theme;\n controller.Month.theme = controller.theme;\n\n return controller;\n};\n","/**\n * @fileoverview Base calendar controller\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Schedule = require('../model/schedule');\nvar ScheduleViewModel = require('../model/viewModel/scheduleViewModel');\nvar datetime = require('../common/datetime');\nvar common = require('../common/common');\nvar Theme = require('../theme/theme');\n\n/**\n * @constructor\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @param {themeConfig} [options.theme] - theme object\n * @mixes util.CustomEvents\n */\nfunction Base(options) {\n options = options || {};\n\n /**\n * function for group each schedule models.\n * @type {function}\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {string} group key\n */\n this.groupFunc = options.groupFunc || function(viewModel) {\n var model = viewModel.model;\n\n if (viewModel.model.isAllDay) {\n return 'allday';\n }\n\n if (model.category === 'time' && (model.end - model.start > datetime.MILLISECONDS_PER_DAY)) {\n return 'allday';\n }\n\n return model.category;\n };\n\n /**\n * schedules collection.\n * @type {Collection}\n */\n this.schedules = common.createScheduleCollection();\n\n /**\n * Matrix for multidate schedules.\n * @type {object.}\n */\n this.dateMatrix = {};\n\n /**\n * Theme\n * @type {Theme}\n */\n this.theme = new Theme(options.theme);\n\n /**\n * Calendar list\n * @type {Array.}\n */\n this.calendars = [];\n}\n\n/**\n * Calculate contain dates in schedule.\n * @private\n * @param {Schedule} schedule The instance of schedule.\n * @returns {array} contain dates.\n */\nBase.prototype._getContainDatesInSchedule = function(schedule) {\n var scheduleStart = schedule.getStarts();\n var scheduleEnd = schedule.getEnds();\n var start = datetime.start(scheduleStart);\n var equalStartEnd = datetime.compare(scheduleStart, scheduleEnd) === 0;\n var endDate = equalStartEnd ? scheduleEnd : datetime.convertStartDayToLastDay(scheduleEnd);\n var end = datetime.end(endDate);\n var range = datetime.range(\n start,\n end,\n datetime.MILLISECONDS_PER_DAY\n );\n\n return range;\n};\n\n/****************\n * CRUD Schedule\n ****************/\n\n/**\n * Create a schedule instance from raw data.\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {object} options Data object to create schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that created.\n */\nBase.prototype.createSchedule = function(options, silent) {\n var schedule,\n scheduleData = {\n data: options\n };\n\n /**\n * @event Base#beforeCreateSchedule\n * @type {Calendar~Schedule[]}\n */\n if (!this.invoke('beforeCreateSchedule', scheduleData)) {\n return null;\n }\n\n schedule = this.addSchedule(Schedule.create(options));\n\n if (!silent) {\n /**\n * @event Base#createdSchedule\n * @type {Schedule}\n */\n this.fire('createdSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {Calendar~Schedule[]} dataList - dataObject list to create schedule.\n * @param {boolean} [silent=false] - set true then don't fire events.\n * @returns {Schedule[]} The instance list of Schedule that created.\n */\nBase.prototype.createSchedules = function(dataList, silent) {\n var self = this;\n\n return util.map(dataList, function(data) {\n return self.createSchedule(data, silent);\n });\n};\n\n/**\n * Update a schedule.\n * @emits Base#updateSchedule\n * @param {Schedule} schedule - schedule instance to update\n * @param {object} options updated object data.\n * @returns {Schedule} updated schedule instance\n */\nBase.prototype.updateSchedule = function(schedule, options) {\n var start = options.start || schedule.start;\n var end = options.end || schedule.end;\n\n options = options || {};\n\n if (options.category === 'allday') {\n options.isAllDay = true;\n }\n\n if (!util.isUndefined(options.isAllDay)) {\n schedule.set('isAllDay', options.isAllDay);\n }\n\n if (!util.isUndefined(options.calendarId)) {\n schedule.set('calendarId', options.calendarId);\n }\n\n if (options.title) {\n schedule.set('title', options.title);\n }\n\n if (options.body) {\n schedule.set('body', options.body);\n }\n\n if (options.start || options.end) {\n if (schedule.isAllDay) {\n schedule.setAllDayPeriod(start, end);\n } else {\n schedule.setTimePeriod(start, end);\n }\n }\n\n if (options.color) {\n schedule.set('color', options.color);\n }\n\n if (options.bgColor) {\n schedule.set('bgColor', options.bgColor);\n }\n\n if (options.borderColor) {\n schedule.set('borderColor', options.borderColor);\n }\n\n if (options.origin) {\n schedule.set('origin', options.origin);\n }\n\n if (!util.isUndefined(options.isPending)) {\n schedule.set('isPending', options.isPending);\n }\n\n if (!util.isUndefined(options.isFocused)) {\n schedule.set('isFocused', options.isFocused);\n }\n\n if (options.location) {\n schedule.set('location', options.location);\n }\n\n if (options.state) {\n schedule.set('state', options.state);\n }\n\n this._removeFromMatrix(schedule);\n this._addToMatrix(schedule);\n\n /**\n * @event Base#updateSchedule\n */\n this.fire('updateSchedule');\n\n return schedule;\n};\n\n/**\n * Delete schedule instance from controller.\n * @param {Schedule} schedule - schedule instance to delete\n * @returns {Schedule} deleted model instance.\n */\nBase.prototype.deleteSchedule = function(schedule) {\n this._removeFromMatrix(schedule);\n this.schedules.remove(schedule);\n\n return schedule;\n};\n\n/**\n * Set date matrix to supplied schedule instance.\n * @param {Schedule} schedule - instance of schedule.\n */\nBase.prototype._addToMatrix = function(schedule) {\n var ownMatrix = this.dateMatrix;\n var containDates = this._getContainDatesInSchedule(schedule);\n\n util.forEach(containDates, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd] = ownMatrix[ymd] || [];\n\n matrix.push(util.stamp(schedule));\n });\n};\n\n/**\n * Remove schedule's id from matrix.\n * @param {Schedule} schedule - instance of schedule\n */\nBase.prototype._removeFromMatrix = function(schedule) {\n var modelID = util.stamp(schedule);\n\n util.forEach(this.dateMatrix, function(matrix) {\n var index = util.inArray(modelID, matrix);\n\n if (~index) {\n matrix.splice(index, 1);\n }\n }, this);\n};\n\n/**\n * Add a schedule instance.\n * @emits Base#addedSchedule\n * @param {Schedule} schedule The instance of Schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that added.\n */\nBase.prototype.addSchedule = function(schedule, silent) {\n this.schedules.add(schedule);\n this._addToMatrix(schedule);\n\n if (!silent) {\n /**\n * @event Base#addedSchedule\n * @type {object}\n */\n this.fire('addedSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * split schedule model by ymd.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @param {Collection} scheduleCollection - collection of schedule model.\n * @returns {object.} splitted schedule model collections.\n */\nBase.prototype.splitScheduleByDateRange = function(start, end, scheduleCollection) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownMatrix = this.dateMatrix,\n result = {};\n\n util.forEachArray(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd],\n collection;\n\n collection = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n util.forEachArray(matrix, function(id) {\n scheduleCollection.doWhenHas(id, function(schedule) {\n collection.add(schedule);\n });\n });\n }\n });\n\n return result;\n};\n\n/**\n * Return schedules in supplied date range.\n *\n * available only YMD.\n * @param {TZDate} start start date.\n * @param {TZDate} end end date.\n * @returns {object.} schedule collection grouped by dates.\n */\nBase.prototype.findByDateRange = function(start, end) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownSchedules = this.schedules.items,\n ownMatrix = this.dateMatrix,\n dformat = datetime.format,\n result = {},\n matrix,\n ymd,\n viewModels;\n\n util.forEachArray(range, function(date) {\n ymd = dformat(date, 'YYYYMMDD');\n matrix = ownMatrix[ymd];\n viewModels = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n viewModels.add.apply(viewModels, util.map(matrix, function(id) {\n return ScheduleViewModel.create(ownSchedules[id]);\n }));\n }\n });\n\n return result;\n};\n\nBase.prototype.clearSchedules = function() {\n this.dateMatrix = {};\n this.schedules.clear();\n /**\n * for inner view when clear schedules\n * @event Base#clearSchedules\n * @type {Schedule}\n */\n this.fire('clearSchedules');\n};\n\n/**\n * Set a theme.\n * @param {themeConfig} theme - theme keys, styles\n * @returns {Array.} keys - error keys not predefined.\n */\nBase.prototype.setTheme = function(theme) {\n return this.theme.setStyles(theme);\n};\n\n/**\n * Set calendar list\n * @param {Array.} calendars - calendar list\n */\nBase.prototype.setCalendars = function(calendars) {\n this.calendars = calendars;\n};\n\n// mixin\nutil.CustomEvents.mixin(Base);\n\nmodule.exports = Base;\n","/**\n * @fileoverview Dirty flagging module for objects.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar common = require('tui-code-snippet');\nvar existy = common.isExisty,\n pick = common.pick,\n isFunc = common.isFunction;\n\n/**\n * Mixin module for dirty flagging on specific objects.\n * @mixin\n * @example\n * var obj = { hello: 'good', test: '123' };\n * dirty.mixin(obj);\n *\n * obj.set('hello', 'world');\n * obj.isDirty(); // true\n * obj.isPropChanged('hello'); // true\n * obj.isPropChanged('test'); // false\n * obj.dirty(false);\n *\n * obj.isDirty(); // false\n * obj.isPropChanged('hello'); // false\n */\nvar dirty = {\n /**\n * Set property value with dirty flagging.\n * @param {string} propName Property name.\n * @param {*} value Proprty value.\n */\n set: function(propName, value) {\n var originValue = this[propName];\n\n if (originValue === value) {\n return;\n }\n\n this[propName] = value;\n\n if (!this._changed) {\n /**\n * Save changed properties.\n * @memberof dirty\n * @name _changed\n * @type {Object}\n */\n this._changed = {};\n }\n\n this._changed[propName] = true;\n\n /**\n * Dirty flag\n * @type {Boolean}\n * @name _dirty\n * @memberof dirty\n */\n this._dirty = true;\n },\n\n /**\n * Check dirty flag.\n * @returns {boolean} Property is changed.\n */\n isDirty: function() {\n return !!this._dirty;\n },\n\n /**\n * Set dirty flag manually.\n * @param {Boolean} [toDirty=true] This will set dirty flag directly.\n */\n dirty: function(toDirty) {\n toDirty = existy(toDirty) ? toDirty : true;\n\n /* istanbul ignore else */\n if (!toDirty) {\n this._changed = {};\n }\n\n this._dirty = toDirty;\n },\n\n /**\n * Delete property safety.\n * @param {String} propName The name of property.\n */\n deleteProp: function(propName) {\n delete this[propName];\n\n if (this._changed) {\n delete this._changed[propName];\n }\n },\n\n /**\n * Check the changes with specific property.\n * @param {String} propName The name of property you want.\n * @returns {boolean} Is property changed?\n */\n isPropChanged: function(propName) {\n if (!this._changed) {\n return false;\n }\n\n return this._changed[propName] === true;\n },\n\n /**\n * Mixin to specific objects.\n * @param {Object} target The object to mix this module.\n * @memberof module:util/dirty\n * @example\n * function Animal() {}\n * dirty.mixin(Animal.prototype);\n */\n mixin: function(target) {\n var methodFilterR = /(^_|mixin|wrap)/;\n\n common.forEachOwnProperties(dirty, function(o, k) {\n if (!methodFilterR.test(k)) {\n target[k] = dirty[k];\n }\n });\n },\n\n /**\n * Wrapper method for dirty flagging.\n *\n * This method invoke after invoked specific method that added by you.\n *\n * The method want to add are must exist before add.\n * @param {object} target Target object to method wrap.\n * @param {(string|object)} methodName\n * Method name to wrap or methodName: flag objects.\n * @param {boolean} [flag=true]\n * this will used to flagging by dirty flagger after invoke the methods added by you.\n * @memberof module:util/dirty\n * @example\n * function Animal(name) {\n * this.name = name;\n * }\n * Animal.prototype.growl = jasmine.createSpy('growl');\n * Animal.prototype.test = function() {\n * return this.name;\n * };\n *\n * dirty.mixin(Animal.prototype);\n * // single\n * dirty.wrap(Animal.prototype, 'growl', true);\n * // multiple\n * dirty.wrap(Animap.prototype, {\n * growl: true,\n * test: false\n * });\n *\n */\n wrap: function(target, methodName, flag) {\n var wrap = dirty.wrap,\n fn;\n\n if (common.isObject(methodName)) {\n common.forEachOwnProperties(methodName, function(_flag, _name) {\n wrap(target, _name, _flag);\n });\n\n return;\n }\n\n flag = existy(flag) ? flag : true;\n\n if (!target._wrapper) {\n /**\n * @param {function} _fn Original method to wrap.\n * @param {boolean} flagToSet The boolean value to using dirty flagging.\n * @returns {*} The result value of original method.\n * @name _wrapper\n * @memberof dirty\n */\n target._wrapper = function(_fn, flagToSet) {\n return function() {\n var args = Array.prototype.slice.call(arguments);\n var result = _fn.apply(this, args); // eslint-disable-line\n this._dirty = flagToSet; // eslint-disable-line\n\n return result;\n };\n };\n }\n\n if (existy(pick(target, methodName)) &&\n isFunc(target[methodName]) &&\n !existy(pick(target, methodName, '_wrapped'))) {\n fn = target[methodName];\n target[methodName] = target._wrapper(fn, flag);\n target[methodName]._wrapped = true;\n }\n }\n};\n\nmodule.exports = dirty;\n","/**\n * @fileoverview Mixin module for models.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar TZDate = require('../common/timezone').Date;\nvar util = require('tui-code-snippet');\nvar spaceRx = /^\\s*|\\s*$/g,\n model;\n\nvar datetime = require('../common/datetime');\n\n/**\n * Mixin module for models.\n * @mixin\n */\nmodel = {\n /**\n * string trim\n * @param {string} str string to trim\n * @returns {string} trimed string\n */\n trim: function(str) {\n return str.replace(spaceRx, '');\n },\n /**\n * The collections of validator functions.\n */\n validators: {\n /**\n * check all of supplied fields(property) is not undefined or empty string.\n * @param {object} instance model instance.\n * @param {string[]} fields property names to check.\n * @returns {boolean} return true when supplied fields are not undefined or empty string.\n */\n required: function(instance, fields) {\n var valid = true,\n isValid = function(obj) {\n return !util.isUndefined(obj) && model.trim(obj) !== '';\n };\n\n util.forEach(fields, function(fieldName) {\n valid = isValid(instance[fieldName]);\n\n return valid;\n });\n\n return valid;\n },\n\n /**\n * check supplied fields are valid dates and valid date ranges.\n * @param {object} instance model instance.\n * @param {Date[]} fields array of date range (start, end)\n * @returns {boolean} is valid date range?\n */\n dateRange: function(instance, fields) {\n var start, end;\n\n if (!util.isExisty(instance) || fields.length !== 2) {\n return true;\n }\n\n start = new TZDate(instance[fields[0]]);\n end = new TZDate(instance[fields[1]]);\n\n if (!datetime.isValid(start) || !datetime.isValid(end)) {\n return false;\n }\n\n if (datetime.compare(start, end) === 1) {\n return false;\n }\n\n return true;\n }\n },\n\n /**\n * Check validate for model instance.\n *\n * The validate are works on a basis of constructor's \"schema\" property.\n *\n * You can customize validators add some method to model#validators.\n * @returns {Boolean} model is valid?\n */\n isValid: function() {\n var self = this,\n schema = this.constructor.schema,\n validators = model.validators,\n validator,\n valid = true;\n\n if (!schema) {\n return true;\n }\n\n util.forEach(schema, function(values, validatorName) {\n validator = validators[validatorName];\n\n if (validator) {\n valid = validator(self, values);\n\n return valid; // returning false can stop this loop\n }\n\n return true;\n });\n\n return valid;\n },\n\n /**\n * Make data object form instance.\n *\n * It return object fill with all owned properties but exclude functions.\n * @returns {object} Data object\n */\n parameterize: function() {\n var param = {},\n isFunc = util.isFunction;\n\n util.forEach(this, function(value, propName) {\n if (!isFunc(value)) {\n param[propName] = value;\n }\n });\n\n return param;\n },\n\n /**\n * Mixin model module to supplied target.\n * @param {Object} target The object of want to mixed.\n * @example\n * function Man() {\n * this.name = 'john';\n * }\n * model.mixin(Man.prototype);\n */\n mixin: function(target) {\n util.forEach(model, function(method, name) {\n if (name !== 'mixin') {\n target[name] = method;\n }\n });\n }\n};\n\nmodule.exports = model;\n","/**\n * @fileoverview The all configuration of a theme\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar themeStandard = require('./standard');\nvar themeConfig = require('./themeConfig');\nvar common = require('../common/common');\n\n/**\n * Theme manager\n * @param {object} customTheme - custom theme\n */\nfunction Theme(customTheme) {\n var theme = customTheme || themeStandard;\n\n /**\n * @type {util.HashMap}\n */\n this._map = new util.HashMap();\n\n this.setStyles(theme);\n}\n\n/**\n * Get a style with key\n * @param {string} key - key for getting a style\n * @returns {string|undefined} style\n */\nTheme.prototype.getStyle = function(key) {\n return this._map.get(key);\n};\n\n/**\n * Set a style\n * @param {string} key - key for setting a style\n * @param {string} style - style value\n * @returns {boolean} true if the give key is valid or false\n */\nTheme.prototype.setStyle = function(key, style) {\n var styles = {};\n styles[key] = style;\n\n return this.setStyles(styles).length === 0;\n};\n\n/**\n * Set styles\n * @param {object} styles - multiple styles map\n * @returns {Array.} error keys\n */\nTheme.prototype.setStyles = function(styles) {\n var errors = [];\n\n util.forEach(styles, function(style, key) {\n if (util.isUndefined(themeConfig[key])) {\n errors.push(key);\n } else {\n this._map.set(key, style);\n common.set(this, key, style);\n }\n }, this);\n\n // apply missing styles which have to be default\n util.forEach(themeConfig, function(style, key) {\n if (!this.getStyle(key)) {\n this._map.set(key, style);\n common.set(this, key, style);\n }\n }, this);\n\n return errors;\n};\n\n/**\n * Delete all styles\n */\nTheme.prototype.clear = function() {\n var keys = this._map.keys();\n var categories = {};\n util.forEach(keys, function(key) {\n var category = key.split('.')[0];\n if (!categories[category]) {\n categories[category] = category;\n }\n });\n\n util.forEach(categories, function(child) {\n delete this[child];\n }, this);\n\n this._map.removeAll();\n};\n\nmodule.exports = Theme;\n","/**\n * @fileoverview The standard theme\n * @author NHN FE Development Lab \n */\n'use strict';\n\n/**\n * \"common\" prefix is for entire calendar. \"common\" properties can be overriden by \"week\", \"month\".\n * \"week\" prefix is for weekly and daily view.\n * \"month\" prefix is for monthly view.\n */\nvar theme = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': 'none',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '0',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'none',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': 'inherit',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n\nmodule.exports = theme;\n","/**\n * @fileoverview The all configuration of a theme\n * @author NHN FE Development Lab \n */\n'use strict';\n\n/**\n * Full configuration for theme.\n * \"common\" prefix is for entire calendar. \"common\" properties can be overriden by \"week\", \"month\".\n * \"week\" prefix is for weekly and daily view.\n * \"month\" prefix is for monthly view.\n * @typedef {object} themeConfig\n * @example\n // default keys and styles\n var themeConfig = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': '1px solid #e5e5e5',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '10px',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.backgroundColor': 'inherit',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'inherit',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': '#333',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n 'week.timegridLeftTimezoneLabel.height': '40px',\n 'week.timegridLeftAdditionalTimezone.backgroundColor': 'white',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.pastTime.color': '#bbb',\n 'week.pastTime.fontWeight': 'normal',\n\n 'week.futureTime.color': '#333',\n 'week.futureTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n */\nvar themeConfig = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': '1px solid #e5e5e5',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '10px',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.backgroundColor': 'inherit',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'inherit',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': '#333',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n 'week.timegridLeftTimezoneLabel.height': '40px',\n 'week.timegridLeftAdditionalTimezone.backgroundColor': 'white',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.pastTime.color': '#bbb',\n 'week.pastTime.fontWeight': 'normal',\n\n 'week.futureTime.color': '#333',\n 'week.futureTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n\nmodule.exports = themeConfig;\n","/**\n * @fileoverview Core methods for schedule block placing\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachArr = util.forEachArray,\n aps = Array.prototype.slice;\n\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar Collection = require('../../common/collection');\nvar ScheduleViewModel = require('../../model/viewModel/scheduleViewModel');\n\nvar Core = {\n /**\n * Calculate collision group.\n * @param {array} viewModels List of viewmodels.\n * @returns {array} Collision Group.\n */\n getCollisionGroup: function(viewModels) {\n var collisionGroups = [],\n foundPrevCollisionSchedule = false,\n previousScheduleList;\n\n if (!viewModels.length) {\n return collisionGroups;\n }\n\n collisionGroups[0] = [util.stamp(viewModels[0].valueOf())];\n forEachArr(viewModels.slice(1), function(schedule, index) {\n foundPrevCollisionSchedule = false;\n previousScheduleList = aps.apply(viewModels, [0, index + 1]).reverse();\n\n forEachArr(previousScheduleList, function(previous) {\n if (schedule.collidesWith(previous)) {\n // If overlapping previous schedules, find a Collision Group of overlapping schedules and add this schedules\n foundPrevCollisionSchedule = true;\n\n forEachArr(collisionGroups.slice(0).reverse(), function(group) {\n if (~util.inArray(util.stamp(previous.valueOf()), group)) {\n // If you find a previous schedule that overlaps, include it in the Collision Group to which it belongs.\n group.push(util.stamp(schedule.valueOf()));\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n if (!foundPrevCollisionSchedule) {\n // This schedule is a schedule that does not overlap with the previous schedule, so a new Collision Group is constructed.\n collisionGroups.push([util.stamp(schedule.valueOf())]);\n }\n });\n\n return collisionGroups;\n },\n\n /**\n * Get row length by column index in 2d matrix.\n * @param {array[]} arr2d Matrix\n * @param {number} col Column index.\n * @returns {number} Last row number in column.\n */\n getLastRowInColumn: function(arr2d, col) {\n var row = arr2d.length;\n\n while (row > 0) {\n row -= 1;\n if (!util.isUndefined(arr2d[row][col])) {\n return row;\n }\n }\n\n return false;\n },\n\n /**\n * Calculate matrix for appointment block element placing.\n * @param {Collection} collection model collection.\n * @param {array[]} collisionGroups Collision groups for schedule set.\n * @returns {array} matrices\n */\n getMatrices: function(collection, collisionGroups) {\n var result = [],\n getLastRowInColumn = Core.getLastRowInColumn;\n\n forEachArr(collisionGroups, function(group) {\n var matrix = [[]];\n\n forEachArr(group, function(scheduleID) {\n var schedule = collection.items[scheduleID],\n col = 0,\n found = false,\n nextRow,\n lastRowInColumn;\n\n while (!found) {\n lastRowInColumn = getLastRowInColumn(matrix, col);\n\n if (lastRowInColumn === false) {\n matrix[0].push(schedule);\n found = true;\n } else if (!schedule.collidesWith(matrix[lastRowInColumn][col])) {\n nextRow = lastRowInColumn + 1;\n if (util.isUndefined(matrix[nextRow])) {\n matrix[nextRow] = [];\n }\n matrix[nextRow][col] = schedule;\n found = true;\n }\n\n col += 1;\n }\n });\n\n result.push(matrix);\n });\n\n return result;\n },\n\n /**\n * Filter that get schedule model in supplied date ranges.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @returns {function} schedule filter function\n */\n getScheduleInDateRangeFilter: function(start, end) {\n return function(model) {\n var ownStarts = model.getStarts(),\n ownEnds = model.getEnds();\n\n // shorthand condition of\n //\n // (ownStarts >= start && ownEnds <= end) ||\n // (ownStarts < start && ownEnds >= start) ||\n // (ownEnds > end && ownStarts <= end)\n return !(ownEnds < start || ownStarts > end);\n };\n },\n\n /**\n * Position each view model for placing into container\n * @param {Date} start - start date to render\n * @param {Date} end - end date to render\n * @param {array} matrices - matrices from controller\n * @param {function} [iteratee] - iteratee function invoke each view models\n */\n positionViewModels: function(start, end, matrices, iteratee) {\n var ymdListToRender;\n\n ymdListToRender = util.map(\n datetime.range(start, end, datetime.MILLISECONDS_PER_DAY),\n function(date) {\n return datetime.format(date, 'YYYYMMDD');\n }\n );\n\n forEachArr(matrices, function(matrix) {\n forEachArr(matrix, function(column) {\n forEachArr(column, function(viewModel, index) {\n var ymd, dateLength;\n\n if (!viewModel) {\n return;\n }\n\n ymd = datetime.format(viewModel.getStarts(), 'YYYYMMDD');\n dateLength = datetime.range(\n datetime.start(viewModel.getStarts()),\n datetime.end(viewModel.getEnds()),\n datetime.MILLISECONDS_PER_DAY\n ).length;\n\n viewModel.top = index;\n viewModel.left = util.inArray(ymd, ymdListToRender);\n viewModel.width = dateLength;\n\n if (iteratee) {\n iteratee(viewModel);\n }\n });\n });\n });\n },\n\n /**\n * Limit start, end date each view model for render properly\n * @param {TZDate} start - start date to render\n * @param {TZDate} end - end date to render\n * @param {Collection|ScheduleViewModel} viewModelColl - schedule view\n * model collection or ScheduleViewModel\n * @returns {ScheduleViewModel} return view model when third parameter is\n * view model\n */\n limitRenderRange: function(start, end, viewModelColl) {\n /**\n * Limit render range for view models\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {ScheduleViewModel} view model that limited render range\n */\n function limit(viewModel) {\n if (viewModel.getStarts() < start) {\n viewModel.exceedLeft = true;\n viewModel.renderStarts = new TZDate(start);\n }\n\n if (viewModel.getEnds() > end) {\n viewModel.exceedRight = true;\n viewModel.renderEnds = new TZDate(end);\n }\n\n return viewModel;\n }\n\n if (viewModelColl.constructor === Collection) {\n viewModelColl.each(limit);\n\n return null;\n }\n\n return limit(viewModelColl);\n },\n\n /**\n * Convert schedule model collection to view model collection.\n * @param {Collection} modelColl - collection of schedule model\n * @returns {Collection} collection of schedule view model\n */\n convertToViewModel: function(modelColl) {\n var viewModelColl;\n\n viewModelColl = new Collection(function(viewModel) {\n return viewModel.cid();\n });\n\n modelColl.each(function(model) {\n viewModelColl.add(ScheduleViewModel.create(model));\n });\n\n return viewModelColl;\n }\n};\n\nmodule.exports = Core;\n","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Controller mixin modules for day views.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar Collection = require('../../common/collection');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * @mixin Base.Week\n */\nvar Week = {\n /**********\n * TIME GRID VIEW\n **********/\n\n /**\n * Make array with start and end times on schedules.\n * @this Base.Week\n * @param {array[]} matrix - matrix from controller.\n * @returns {array[]} starttime, endtime array (exclude first row's schedules)\n */\n generateTimeArrayInRow: function(matrix) {\n var row,\n col,\n schedule,\n start,\n end,\n map = [],\n cursor = [],\n maxColLen = Math.max.apply(null, util.map(matrix, function(col) {\n return col.length;\n }));\n\n for (col = 1; col < maxColLen; col += 1) {\n row = 0;\n schedule = util.pick(matrix, row, col);\n\n while (schedule) {\n start = schedule.getStarts().getTime() - datetime.millisecondsFrom('minutes', schedule.valueOf().goingDuration);\n end = schedule.getEnds().getTime() + datetime.millisecondsFrom('minutes', schedule.valueOf().comingDuration);\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n cursor.push([start, end]);\n\n row += 1;\n schedule = util.pick(matrix, row, col);\n }\n\n map.push(cursor);\n cursor = [];\n }\n\n return map;\n },\n\n /**\n * Get collision information from list\n * @this Base\n * @param {array.} arr - list to detecting collision. [[start, end], [start, end]]\n * @param {number} start - schedule start time that want to detect collisions.\n * @param {number} end - schedule end time that want to detect collisions.\n * @returns {boolean} target has collide in supplied array?\n */\n hasCollide: function(arr, start, end) {\n var startStart,\n startEnd,\n endStart,\n endEnd,\n getFunc = function(index) {\n return function(block) {\n return block[index];\n };\n },\n abs = Math.abs,\n compare = array.compare.num.asc,\n hasCollide;\n\n if (!arr.length) {\n return false;\n }\n\n startStart = abs(array.bsearch(arr, start, getFunc(0), compare));\n startEnd = abs(array.bsearch(arr, start, getFunc(1), compare));\n endStart = abs(array.bsearch(arr, end, getFunc(0), compare));\n endEnd = abs(array.bsearch(arr, end, getFunc(1), compare));\n hasCollide = !(startStart === startEnd && startEnd === endStart && endStart === endEnd);\n\n return hasCollide;\n },\n\n /**\n * Initialize values to viewmodels for detect real collision at rendering phase.\n * @this Base\n * @param {array[]} matrices - Matrix data.\n */\n getCollides: function(matrices) {\n util.forEachArray(matrices, function(matrix) {\n var binaryMap,\n maxRowLength;\n\n binaryMap = Week.generateTimeArrayInRow(matrix);\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n util.forEachArray(matrix, function(row) {\n util.forEachArray(row, function(viewModel, col) {\n var startTime,\n endTime,\n hasCollide,\n i;\n\n if (!viewModel) {\n return;\n }\n\n startTime = viewModel.getStarts().getTime();\n endTime = viewModel.getEnds().getTime();\n\n if (Math.abs(endTime - startTime) < SCHEDULE_MIN_DURATION) {\n endTime += SCHEDULE_MIN_DURATION;\n }\n\n startTime -= datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration);\n endTime += datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n\n endTime -= 1;\n\n for (i = (col + 1); i < maxRowLength; i += 1) {\n hasCollide = Week.hasCollide(binaryMap[i - 1], startTime, endTime);\n\n if (hasCollide) {\n viewModel.hasCollide = true;\n break;\n }\n\n viewModel.extraSpace += 1;\n }\n });\n });\n });\n },\n\n /**\n * create view model for time view part\n * @this Base\n * @param {Date} start - start date.\n * @param {Date} end - end date.\n * @param {Collection} time - view model collection.\n * @param {number} hourStart - start hour to be shown\n * @param {number} hourEnd - end hour to be shown\n * @returns {object} view model for time part.\n */\n getViewModelForTimeView: function(start, end, time, hourStart, hourEnd) {\n var self = this,\n ymdSplitted = this.splitScheduleByDateRange(start, end, time),\n result = {};\n\n var _getViewModel = Week._makeGetViewModelFuncForTimeView(hourStart, hourEnd);\n\n util.forEach(ymdSplitted, function(collection, ymd) {\n var viewModels = _getViewModel(collection);\n var collisionGroups, matrices;\n\n collisionGroups = self.Core.getCollisionGroup(viewModels);\n matrices = self.Core.getMatrices(collection, collisionGroups);\n self.Week.getCollides(matrices);\n\n result[ymd] = matrices;\n });\n\n return result;\n },\n\n /**\n * make view model function depending on start and end hour\n * if time view option has start or end hour condition\n * it add filter\n * @param {number} hourStart - start hour to be shown\n * @param {number} hourEnd - end hour to be shown\n * @returns {function} function\n */\n _makeGetViewModelFuncForTimeView: function(hourStart, hourEnd) {\n if (hourStart === 0 && hourEnd === 24) {\n return function(collection) {\n return collection.sort(array.compare.schedule.asc);\n };\n }\n\n return function(collection) {\n return collection.find(Week._makeHourRangeFilter(hourStart, hourEnd))\n .sort(array.compare.schedule.asc);\n };\n },\n\n /**\n * make a filter function that is not included range of start, end hour\n * @param {number} hStart - hour start\n * @param {number} hEnd - hour end\n * @returns {function} - filtering function\n */\n _makeHourRangeFilter: function(hStart, hEnd) {\n return function(schedule) {\n var ownHourStart = schedule.model.start;\n var ownHourEnd = schedule.model.end;\n var yyyy = ownHourStart.getFullYear();\n var mm = ownHourStart.getMonth();\n var dd = ownHourStart.getDate();\n\n var hourStart = new TZDate(yyyy, mm, dd).setHours(hStart);\n var hourEnd = new TZDate(yyyy, mm, dd).setHours(hEnd);\n\n return (ownHourStart >= hourStart && ownHourStart < hourEnd) ||\n (ownHourEnd > hourStart && ownHourEnd <= hourEnd) ||\n (ownHourStart < hourStart && ownHourEnd > hourStart) ||\n (ownHourEnd > hourEnd && ownHourStart < hourEnd);\n };\n },\n\n /**********\n * ALLDAY VIEW\n **********/\n\n /**\n * Set hasMultiDates flag to true and set date ranges for rendering\n * @this Base\n * @param {Collection} vColl - view model collection\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n viewModel.hasMultiDates = true;\n viewModel.renderStarts = datetime.start(model.getStarts());\n viewModel.renderEnds = datetime.end(model.getEnds());\n });\n },\n\n /**\n * create view model for allday view part\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {Collection} viewModelColl - allday schedule viewModel viewModels.\n * @returns {object} allday viewModel.\n */\n getViewModelForAlldayView: function(start, end, viewModelColl) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n viewModels,\n collisionGroups,\n matrices;\n\n if (!viewModelColl || !viewModelColl.length) {\n return [];\n }\n\n ctrlWeek._addMultiDatesInfo(viewModelColl);\n ctrlCore.limitRenderRange(start, end, viewModelColl);\n\n viewModels = viewModelColl.sort(array.compare.schedule.asc);\n collisionGroups = ctrlCore.getCollisionGroup(viewModels);\n\n matrices = ctrlCore.getMatrices(viewModelColl, collisionGroups);\n ctrlCore.positionViewModels(start, end, matrices);\n\n return matrices;\n },\n\n /**********\n * READ\n **********/\n\n /**\n * Populate schedules in date range.\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {Array.} panels - schedule panels like 'milestone', 'task', 'allday', 'time'\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @param {Object} options - week view options\n * @returns {object} schedules grouped by dates.\n */\n findByDateRange: function(start, end, panels, andFilters, options) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n scheduleTypes = util.pluck(panels, 'name'),\n hourStart = util.pick(options, 'hourStart'),\n hourEnd = util.pick(options, 'hourEnd'),\n modelColl,\n group;\n\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n modelColl = this.schedules.find(filter);\n modelColl = ctrlCore.convertToViewModel(modelColl);\n\n group = modelColl.groupBy(scheduleTypes, this.groupFunc);\n util.forEach(panels, function(panel) {\n var name = panel.name;\n if (panel.type === 'daygrid') {\n group[name] = ctrlWeek.getViewModelForAlldayView(start, end, group[name]);\n } else if (panel.type === 'timegrid') {\n group[name] = ctrlWeek.getViewModelForTimeView(start, end, group[name], hourStart, hourEnd);\n }\n });\n\n return group;\n },\n\n /* eslint max-nested-callbacks: 0 */\n /**\n * Make exceed date information\n * @param {number} maxCount - exceed schedule count\n * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n * @param {Array.} range - date range of one week\n * @returns {object} exceedDate\n */\n getExceedDate: function(maxCount, eventsInDateRange, range) {\n var exceedDate = {};\n\n util.forEach(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] = 0;\n });\n\n util.forEach(eventsInDateRange, function(matrix) {\n util.forEach(matrix, function(column) {\n util.forEach(column, function(viewModel) {\n var period;\n if (!viewModel || viewModel.top < maxCount) {\n return;\n }\n\n period = datetime.range(\n viewModel.getStarts(),\n viewModel.getEnds(),\n datetime.MILLISECONDS_PER_DAY\n );\n\n util.forEach(period, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] += 1;\n });\n });\n });\n });\n\n return exceedDate;\n },\n\n /**\n * Exclude overflow schedules from matrices\n * @param {array} matrices - The matrices for schedule placing.\n * @param {number} visibleScheduleCount - maximum visible count on panel\n * @returns {array} - The matrices for schedule placing except overflowed schedules.\n */\n excludeExceedSchedules: function(matrices, visibleScheduleCount) {\n return matrices.map(function(matrix) {\n return matrix.map(function(row) {\n if (row.length > visibleScheduleCount) {\n return row.filter(function(item) {\n return item.top < visibleScheduleCount;\n }, this);\n }\n\n return row;\n }, this);\n }, this);\n }\n};\n\nmodule.exports = Week;\n","/**\n * @fileoverview Controller mixin for Month View\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar array = require('../../common/array'),\n datetime = require('../../common/datetime'),\n Collection = require('../../common/collection');\nvar mmax = Math.max;\n\nvar Month = {\n /**\n * Filter function for find time schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is time schedule?\n */\n _onlyTimeFilter: function(viewModel) {\n return !viewModel.model.isAllDay && !viewModel.hasMultiDates;\n },\n\n /**\n * Filter function for find allday schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is allday schedule?\n */\n _onlyAlldayFilter: function(viewModel) {\n return viewModel.model.isAllDay || viewModel.hasMultiDates;\n },\n\n /**\n * Weight top value +1 for month view render\n * @param {ScheduleViewModel} viewModel - schedule view model\n */\n _weightTopValue: function(viewModel) {\n viewModel.top = viewModel.top || 0;\n viewModel.top += 1;\n },\n\n /**\n * Adjust render range to render properly.\n *\n * Limit start, end for each allday schedules and expand start, end for\n * each time schedules\n * @this Base\n * @param {TZDate} start - render start date\n * @param {TZDate} end - render end date\n * @param {Collection} vColl - view model collection\n * property.\n */\n _adjustRenderRange: function(start, end, vColl) {\n var ctrlCore = this.Core;\n\n vColl.each(function(viewModel) {\n if (viewModel.model.isAllDay || viewModel.hasMultiDates) {\n ctrlCore.limitRenderRange(start, end, viewModel);\n }\n });\n },\n\n /**\n * Get max top index value for allday schedules in specific date (YMD)\n * @this Base\n * @param {string} ymd - yyyymmdd formatted value\n * @param {Collection} vAlldayColl - collection of allday schedules\n * @returns {number} max top index value in date\n */\n _getAlldayMaxTopIndexAtYMD: function(ymd, vAlldayColl) {\n var dateMatrix = this.dateMatrix,\n topIndexesInDate = [];\n util.forEach(dateMatrix[ymd], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topIndexesInDate.push(viewModel.top);\n });\n });\n\n if (topIndexesInDate.length > 0) {\n return mmax.apply(null, topIndexesInDate);\n }\n\n return 0;\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _adjustTimeTopIndex: function(vColl) {\n var ctrlMonth = this.Month;\n var getAlldayMaxTopIndexAtYMD = ctrlMonth._getAlldayMaxTopIndexAtYMD;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var maxIndexInYMD = {};\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD];\n\n if (util.isUndefined(alldayMaxTopInYMD)) {\n alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD] =\n getAlldayMaxTopIndexAtYMD(scheduleYMD, vAlldayColl);\n }\n maxIndexInYMD[scheduleYMD] = timeViewModel.top =\n (alldayMaxTopInYMD + 1);\n });\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _stackTimeFromTop: function(vColl) {\n var ctrlMonth = this.Month;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var indiceInYMD = {};\n var dateMatrix = this.dateMatrix;\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var topArrayInYMD = indiceInYMD[scheduleYMD];\n var maxTopInYMD;\n var i;\n\n if (util.isUndefined(topArrayInYMD)) {\n topArrayInYMD = indiceInYMD[scheduleYMD] = [];\n util.forEach(dateMatrix[scheduleYMD], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topArrayInYMD.push(viewModel.top);\n });\n });\n }\n\n if (util.inArray(timeViewModel.top, topArrayInYMD) >= 0) {\n maxTopInYMD = mmax.apply(null, topArrayInYMD) + 1;\n for (i = 1; i <= maxTopInYMD; i += 1) {\n timeViewModel.top = i;\n if (util.inArray(timeViewModel.top, topArrayInYMD) < 0) {\n break;\n }\n }\n }\n topArrayInYMD.push(timeViewModel.top);\n });\n },\n\n /**\n * Convert multi-date time schedule to all-day schedule\n * @this Base\n * @param {Collection} vColl - view model collection\n * property.\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n var start = model.getStarts();\n var end = model.getEnds();\n\n viewModel.hasMultiDates = !datetime.isSameDate(start, end);\n\n if (!model.isAllDay && viewModel.hasMultiDates) {\n viewModel.renderStarts = datetime.start(start);\n viewModel.renderEnds = datetime.convertStartDayToLastDay(end);\n }\n });\n },\n\n /**\n * Find schedule and get view model for specific month\n * @this Base\n * @param {TZDate} start - start date to find schedules\n * @param {TZDate} end - end date to find schedules\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @param {boolean} [alldayFirstMode=false] if true, time schedule is lower than all-day schedule. Or stack schedules from the top.\n * @returns {object} view model data\n */\n findByDateRange: function(start, end, andFilters, alldayFirstMode) {\n var ctrlCore = this.Core,\n ctrlMonth = this.Month,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n coll, vColl, vList,\n collisionGroup,\n matrices;\n\n alldayFirstMode = alldayFirstMode || false;\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n coll = this.schedules.find(filter);\n vColl = ctrlCore.convertToViewModel(coll);\n ctrlMonth._addMultiDatesInfo(vColl);\n ctrlMonth._adjustRenderRange(start, end, vColl);\n vList = vColl.sort(array.compare.schedule.asc);\n\n collisionGroup = ctrlCore.getCollisionGroup(vList);\n matrices = ctrlCore.getMatrices(vColl, collisionGroup);\n ctrlCore.positionViewModels(start, end, matrices, ctrlMonth._weightTopValue);\n if (alldayFirstMode) {\n ctrlMonth._adjustTimeTopIndex(vColl);\n } else {\n ctrlMonth._stackTimeFromTop(vColl);\n }\n\n return matrices;\n }\n};\n\nmodule.exports = Month;\n","/**\n * @fileoverview Factory module for WeekView\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar common = require('../common/common');\nvar VLayout = require('../common/vlayout');\nvar reqAnimFrame = require('../common/reqAnimFrame');\nvar Schedule = require('../model/schedule');\n// Parent views\nvar Week = require('../view/week/week');\n\n// Sub views\nvar DayName = require('../view/week/dayname');\nvar DayGrid = require('../view/week/dayGrid');\nvar TimeGrid = require('../view/week/timeGrid');\nvar ScheduleCreationPopup = require('../view/popup/scheduleCreationPopup');\nvar ScheduleDetailPopup = require('../view/popup/scheduleDetailPopup');\n\n// Handlers\nvar DayNameClick = require('../handler/time/clickDayname');\nvar DayGridClick = require('../handler/daygrid/click');\nvar DayGridCreation = require('../handler/daygrid/creation');\nvar DayGridMove = require('../handler/daygrid/move');\nvar DayGridResize = require('../handler/daygrid/resize');\nvar TimeClick = require('../handler/time/click');\nvar TimeCreation = require('../handler/time/creation');\nvar TimeMove = require('../handler/time/move');\nvar TimeResize = require('../handler/time/resize');\n\nvar DAYGRID_HANDLDERS = {\n 'click': DayGridClick,\n 'creation': DayGridCreation,\n 'move': DayGridMove,\n 'resize': DayGridResize\n};\nvar TIMEGRID_HANDLERS = {\n 'click': TimeClick,\n 'creation': TimeCreation,\n 'move': TimeMove,\n 'resize': TimeResize\n};\nvar DEFAULT_PANELS = [\n {\n name: 'milestone',\n type: 'daygrid',\n minHeight: 20,\n maxHeight: 80,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click'],\n show: true\n },\n {\n name: 'task',\n type: 'daygrid',\n minHeight: 40,\n maxHeight: 120,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click', 'move'],\n show: true\n },\n {\n name: 'allday',\n type: 'daygrid',\n minHeight: 30,\n maxHeight: 80,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click', 'creation', 'move', 'resize'],\n show: true\n },\n {\n name: 'time',\n type: 'timegrid',\n autoHeight: true,\n handlers: ['click', 'creation', 'move', 'resize'],\n show: true\n }\n];\n\n/* eslint-disable complexity*/\nmodule.exports = function(baseController, layoutContainer, dragHandler, options, viewName) {\n var panels = [],\n vpanels = [];\n var weekView, dayNameContainer, dayNameView, vLayoutContainer, vLayout;\n var createView, onSaveNewSchedule, onSetCalendars, lastVPanel;\n var detailView, onShowDetailPopup, onDeleteSchedule, onShowEditPopup, onEditSchedule;\n var taskView = options.taskView;\n var scheduleView = options.scheduleView;\n var viewVisibilities = {\n 'milestone': util.isArray(taskView) ? util.inArray('milestone', taskView) >= 0 : taskView,\n 'task': util.isArray(taskView) ? util.inArray('task', taskView) >= 0 : taskView,\n 'allday': util.isArray(scheduleView) ? util.inArray('allday', scheduleView) >= 0 : scheduleView,\n 'time': util.isArray(scheduleView) ? util.inArray('time', scheduleView) >= 0 : scheduleView\n };\n\n // Make panels by view sequence and visibilities\n util.forEach(DEFAULT_PANELS, function(panel) {\n var name = panel.name;\n\n panel = util.extend({}, panel);\n panels.push(panel);\n\n // Change visibilities\n panel.show = viewVisibilities[name];\n\n if (panel.show) {\n if (vpanels.length) {\n vpanels.push({\n isSplitter: true\n });\n }\n vpanels.push(util.extend({}, panel));\n }\n });\n\n if (vpanels.length) {\n lastVPanel = vpanels[vpanels.length - 1];\n lastVPanel.autoHeight = true;\n lastVPanel.maxHeight = null;\n lastVPanel.showExpandableButton = false;\n\n util.forEach(panels, function(panel) {\n if (panel.name === lastVPanel.name) {\n panel.showExpandableButton = false;\n\n return false;\n }\n\n return true;\n });\n }\n\n util.extend(options.week, {panels: panels});\n\n weekView = new Week(null, options.week, layoutContainer, panels, viewName);\n weekView.handler = {\n click: {},\n dayname: {},\n creation: {},\n move: {},\n resize: {}\n };\n\n dayNameContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('dayname-layout'));\n\n /**********\n * Day name (top row(Mon, Tue, Wed...))\n **********/\n dayNameView = new DayName(options, dayNameContainer, baseController.theme);\n weekView.handler.dayname.date = new DayNameClick(dragHandler, dayNameView, baseController);\n weekView.addChild(dayNameView);\n\n /**********\n * Initialize vertical layout module\n **********/\n vLayoutContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('vlayout-area'));\n vLayoutContainer.style.height = (domutil.getSize(weekView.container)[1] - dayNameView.container.offsetHeight) + 'px';\n\n vLayout = new VLayout({\n panels: vpanels,\n panelHeights: options.week.panelHeights || []\n }, vLayoutContainer, baseController.theme);\n\n weekView.vLayout = vLayout;\n\n util.forEach(panels, function(panel) {\n var name = panel.name;\n var handlers = panel.handlers;\n var view;\n\n if (!panel.show) {\n return;\n }\n\n if (panel.type === 'daygrid') {\n /**********\n * Schedule panel by Grid\n **********/\n view = new DayGrid(name, options, vLayout.getPanelByName(panel.name).container, baseController.theme);\n view.on('afterRender', function(viewModel) {\n vLayout.getPanelByName(name).setHeight(null, viewModel.height);\n });\n\n weekView.addChild(view);\n\n util.forEach(handlers, function(type) {\n if (!options.isReadOnly || type === 'click') {\n weekView.handler[type][name] =\n new DAYGRID_HANDLDERS[type](dragHandler, view, baseController, options);\n view.addHandler(type, weekView.handler[type][name], vLayout.getPanelByName(name));\n }\n });\n } else if (panel.type === 'timegrid') {\n /**********\n * Schedule panel by TimeGrid\n **********/\n view = new TimeGrid(name, options, vLayout.getPanelByName(name).container);\n weekView.addChild(view);\n util.forEach(handlers, function(type) {\n if (!options.isReadOnly || type === 'click') {\n weekView.handler[type][name] =\n new TIMEGRID_HANDLERS[type](dragHandler, view, baseController, options);\n }\n });\n\n view.on('clickTimezonesCollapsedBtn', function() {\n var timezonesCollapsed = !weekView.state.timezonesCollapsed;\n\n weekView.setState({\n timezonesCollapsed: timezonesCollapsed\n });\n reqAnimFrame.requestAnimFrame(function() {\n if (!weekView.invoke('clickTimezonesCollapseBtn', timezonesCollapsed)) {\n weekView.render();\n }\n });\n });\n }\n });\n\n vLayout.on('resize', function() {\n reqAnimFrame.requestAnimFrame(function() {\n weekView.render();\n });\n });\n\n // binding create schedules event\n if (options.useCreationPopup) {\n createView = new ScheduleCreationPopup(layoutContainer, baseController.calendars, options.usageStatistics);\n\n onSaveNewSchedule = function(scheduleData) {\n util.extend(scheduleData, {\n useCreationPopup: true\n });\n if (scheduleData.isAllDay) {\n weekView.handler.creation.allday.fire('beforeCreateSchedule', scheduleData);\n } else {\n weekView.handler.creation.time.fire('beforeCreateSchedule', scheduleData);\n }\n };\n createView.on('beforeCreateSchedule', onSaveNewSchedule);\n }\n\n onSetCalendars = function(calendars) {\n if (createView) {\n createView.setCalendars(calendars);\n }\n };\n\n baseController.on('setCalendars', onSetCalendars);\n\n // binding popup for schedule detail\n if (options.useDetailPopup) {\n detailView = new ScheduleDetailPopup(layoutContainer, baseController.calendars);\n onShowDetailPopup = function(eventData) {\n var scheduleId = eventData.schedule.calendarId;\n eventData.calendar = common.find(baseController.calendars, function(calendar) {\n return calendar.id === scheduleId;\n });\n\n if (options.isReadOnly) {\n eventData.schedule = util.extend({}, eventData.schedule, {isReadOnly: true});\n }\n\n detailView.render(eventData);\n };\n onDeleteSchedule = function(eventData) {\n if (eventData.isAllDay) {\n weekView.handler.creation.allday.fire('beforeDeleteSchedule', eventData);\n } else {\n weekView.handler.creation.time.fire('beforeDeleteSchedule', eventData);\n }\n };\n onEditSchedule = function(eventData) {\n if (eventData.isAllDay) {\n weekView.handler.move.allday.fire('beforeUpdateSchedule', eventData);\n } else {\n weekView.handler.move.time.fire('beforeUpdateSchedule', eventData);\n }\n };\n\n util.forEach(weekView.handler.click, function(panel) {\n panel.on('clickSchedule', onShowDetailPopup);\n });\n if (options.useCreationPopup) {\n onShowEditPopup = function(eventData) {\n var calendars = baseController.calendars;\n eventData.isEditMode = true;\n createView.setCalendars(calendars);\n createView.render(eventData);\n };\n createView.on('beforeUpdateSchedule', onEditSchedule);\n detailView.on('beforeUpdateSchedule', onShowEditPopup);\n } else {\n detailView.on('beforeUpdateSchedule', onEditSchedule);\n }\n detailView.on('beforeDeleteSchedule', onDeleteSchedule);\n }\n\n weekView.on('afterRender', function() {\n vLayout.refresh();\n });\n\n // add controller\n weekView.controller = baseController.Week;\n\n // add destroy\n weekView._beforeDestroy = function() {\n util.forEach(weekView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n\n if (options.useCreationPopup) {\n createView.off('beforeCreateSchedule', onSaveNewSchedule);\n createView.destroy();\n }\n\n if (options.useDetailPopup) {\n detailView.off('beforeDeleteSchedule', onDeleteSchedule);\n detailView.destroy();\n }\n\n weekView.off();\n };\n\n return {\n view: weekView,\n refresh: function() {\n var weekViewHeight = weekView.getViewBound().height,\n daynameViewHeight = domutil.getBCRect(\n dayNameView.container\n ).height;\n\n vLayout.container.style.height =\n weekViewHeight - daynameViewHeight + 'px';\n vLayout.refresh();\n },\n scrollToNow: function() {\n weekView.children.each(function(childView) {\n if (childView.scrollToNow) {\n childView.scrollToNow();\n }\n });\n },\n openCreationPopup: function(schedule) {\n if (createView) {\n if (schedule.isAllDay) {\n weekView.handler.creation.allday.invokeCreationClick(Schedule.create(schedule));\n } else {\n weekView.handler.creation.time.invokeCreationClick(Schedule.create(schedule));\n }\n }\n },\n showCreationPopup: function(eventData) {\n if (createView) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n }\n }\n };\n};\n","/**\n * @fileoverview Panel class for VLayout module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VPanel\n * @param {number} options.index - index of panel in vlayout\n * @param {number} [options.minHeight=0] - minimum height of panel\n * @param {number} [options.height] - initial height of panel\n * @param {boolean} [options.isSplitter=false] - set true then this panel works splitter\n * @param {boolean} [options.autoHeight=false] - set true then this panel use remain height after other panel resized.\n * @param {string} [options.className] - additional class name to add element\n * @param {HTMLElement} container - container element\n * @param {Theme} theme - theme instance\n */\nfunction VPanel(options, container, theme) {\n View.call(this, container);\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n index: 0,\n name: '0',\n minHeight: 0,\n maxHeight: null,\n height: null,\n isSplitter: false,\n autoHeight: false,\n className: ''\n }, options);\n\n /**\n * @type {number}\n */\n this.index = this.options.index;\n\n /**\n * @type {string}\n */\n this.name = this.options.name || String(this.index);\n\n this.isHeightForcedSet = false;\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n this._initPanel(this.options, container);\n}\n\nutil.inherit(VPanel, View);\n\n/**\n * whether this panel is splitter?\n * @returns {boolean} panel is splitter?\n */\nVPanel.prototype.isSplitter = function() {\n return this.options.isSplitter;\n};\n\n/**\n * set max height of panel\n * @param {number} maxHeight - maxHeight\n */\nVPanel.prototype.setMaxHeight = function(maxHeight) {\n if (!this.options.autoHeight) {\n this.options.maxHeight = maxHeight;\n }\n};\n\n/**\n * set forced height flag\n * @param {boolean} set - enable or not\n */\nVPanel.prototype.setHeightForcedSet = function(set) {\n this.isHeightForcedSet = set;\n};\n\n/**\n * get forced height flag\n * @returns {boolean} set - enable or not\n */\nVPanel.prototype.getHeightForcedSet = function() {\n return this.isHeightForcedSet;\n};\n\n/**\n * set height of html element\n * @param {HTMLElement} [container] - container element\n * @param {number} newHeight - height\n * @param {boolean} force - whether ignore max-length\n */\nVPanel.prototype.setHeight = function(container, newHeight, force) {\n var maxHeight = this.options.maxHeight;\n var minHeight = this.options.minHeight;\n var autoHeight = this.options.autoHeight;\n container = container || this.container;\n\n // 한번 force 호출이 일어난 이후에는 force 호출만 허용한다\n if (!force && this.isHeightForcedSet && !autoHeight) {\n return;\n }\n\n if (force) {\n this.isHeightForcedSet = true;\n } else if (maxHeight) {\n newHeight = Math.min(newHeight, maxHeight);\n }\n newHeight = Math.max(minHeight, newHeight);\n\n container.style.height = newHeight + 'px';\n};\n\n/**\n * Calculate new height of panel and remains by supplied height growth\n * @param {number} growth - growth value\n * @returns {number[]} newHeight, remainHeight\n */\nVPanel.prototype.getResizeInfoByGrowth = function(growth) {\n var height = this.getHeight(),\n newHeight = height + growth,\n resizeTo = Math.max(0, newHeight, this.options.minHeight);\n\n return [resizeTo, height - resizeTo];\n};\n\n/**\n * get outer height of panel element\n * @returns {number} outer height of panel element\n */\nVPanel.prototype.getHeight = function() {\n return domutil.getSize(this.container)[1];\n};\n\n/**\n * add design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.addClass = function(className) {\n domutil.addClass(this.container, className);\n};\n\n/**\n * remove design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.removeClass = function(className) {\n domutil.removeClass(this.container, className);\n};\n\n/**\n * initialize panel element\n * @param {PanelOptions} options - options for panel\n * @param {HTMLDivElement} container - panel element\n */\nVPanel.prototype._initPanel = function(options, container) {\n var height;\n\n domutil.setData(container, 'panelIndex', options.index);\n\n if (options.isSplitter) {\n domutil.addClass(container, config.classname('splitter'));\n this.applyTheme();\n\n return;\n }\n\n if (options.className) {\n domutil.addClass(container, options.className);\n }\n\n if (options.autoHeight) {\n domutil.setData(container, 'autoHeight', true);\n } else {\n height = common.limit(options.height || 0,\n [options.minHeight],\n [options.maxHeight || options.height]\n );\n\n options.height = height;\n this.setHeight(container, height);\n }\n};\n\nVPanel.prototype.applyTheme = function() {\n var style = this.container.style;\n var theme = this.theme;\n\n if (!theme) {\n return;\n }\n\n style.borderTop = theme.week.vpanelSplitter.border || theme.common.border;\n style.borderBottom = theme.week.vpanelSplitter.border || theme.common.border;\n style.height = theme.week.vpanelSplitter.height;\n};\n\nmodule.exports = VPanel;\n","/**\n * @fileoverview View of days UI.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../view');\n\n/**\n * @constructor\n * @param {Base.Week} controller The controller mixin part.\n * @param {object} options View options\n * @param {string} [options.renderStartDate] Start date of render.\n * if not supplied then use -3d from today. YYYY-MM-DD format.\n * @param {string} [options.renderEndDate] End date of render.\n * if not supplied then use +3d from today. YYYY-MM-DD format.\n * @param {string} [options.cssPrefix] - CSS classname prefix\n * @param {HTMLElement} container The element to use container for this view.\n * @param {object} panels - schedule panels like 'milestone', 'task', 'allday', 'time'\n * @param {string} viewName - 'week', 'day'\n * @extends {View}\n */\nfunction Week(controller, options, container, panels, viewName) {\n var range;\n\n container = domutil.appendHTMLElement('div', container);\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('week-container'));\n\n range = this._getRenderDateRange(new TZDate());\n\n /**\n * @type {object} Options for view.\n */\n this.options = util.extend({\n scheduleFilter: [function(schedule) {\n return Boolean(schedule.isVisible);\n }],\n renderStartDate: datetime.format(range.start, 'YYYY-MM-DD'),\n renderEndDate: datetime.format(range.end, 'YYYY-MM-DD'),\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false,\n showTimezoneCollapseButton: false,\n timezonesCollapsed: false,\n hourStart: 0,\n hourEnd: 24\n }, options);\n\n /**\n * Week controller mixin.\n * @type {Base.Week}\n */\n this.controller = controller;\n\n /**\n * Schedule Panels\n * @type {Array.}\n */\n this.panels = panels;\n\n /**\n * Week view states\n * @type {object}\n */\n this.state = {\n timezonesCollapsed: this.options.timezonesCollapsed\n };\n\n if (viewName === 'day') {\n _disableDayOptions(this.options);\n }\n}\n\nutil.inherit(Week, View);\n\n/**********\n * Override props\n **********/\n\n/**\n * Render each child view with schedules in ranges.\n * @fires Week#afterRender\n * @override\n */\nWeek.prototype.render = function() {\n var self = this,\n options = this.options,\n scheduleFilter = options.scheduleFilter,\n narrowWeekend = options.narrowWeekend,\n startDayOfWeek = options.startDayOfWeek,\n workweek = options.workweek,\n theme = this.controller.theme || {},\n state = this.state;\n var renderStartDate, renderEndDate, schedulesInDateRange, viewModel, grids, range;\n\n renderStartDate = new TZDate(options.renderStartDate);\n renderEndDate = new TZDate(options.renderEndDate);\n\n range = datetime.range(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n datetime.MILLISECONDS_PER_DAY\n );\n\n if (options.workweek && datetime.compare(renderStartDate, renderEndDate)) {\n range = util.filter(range, function(date) {\n return !datetime.isWeekend(date.getDay());\n });\n\n renderStartDate = range[0];\n renderEndDate = range[range.length - 1];\n }\n\n schedulesInDateRange = this.controller.findByDateRange(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n this.panels,\n scheduleFilter,\n this.options\n );\n\n grids = datetime.getGridLeftAndWidth(\n range.length,\n narrowWeekend,\n startDayOfWeek,\n workweek\n );\n\n viewModel = {\n schedulesInDateRange: schedulesInDateRange,\n renderStartDate: renderStartDate,\n renderEndDate: renderEndDate,\n grids: grids,\n range: range,\n theme: theme,\n state: state\n };\n\n this.children.each(function(childView) {\n var matrices;\n var viewName = util.pick(childView.options, 'viewName');\n childView.render(viewModel);\n\n if (viewName) {\n matrices = viewModel.schedulesInDateRange[viewName]; // DayGrid limits schedule count by visibleScheduleCount after rendering it.\n\n if (util.isArray(matrices)) {\n self._invokeAfterRenderSchedule(matrices);\n } else {\n util.forEach(matrices, function(matricesOfDay) {\n self._invokeAfterRenderSchedule(matricesOfDay);\n });\n }\n }\n });\n\n /**\n * @event Week#afterRender\n */\n this.fire('afterRender');\n};\n\n/**\n * Fire 'afterRenderSchedule' event\n * @param {Array} matrices - schedule matrices from view model\n * @fires Week#afterRenderSchedule\n */\nWeek.prototype._invokeAfterRenderSchedule = function(matrices) {\n var self = this;\n util.forEachArray(matrices, function(matrix) {\n util.forEachArray(matrix, function(column) {\n util.forEachArray(column, function(scheduleViewModel) {\n if (scheduleViewModel) {\n /**\n * @event Week#afterRenderSchedule\n */\n self.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n });\n });\n};\n\n/**********\n * Prototype props\n **********/\n\nWeek.prototype.viewName = 'week';\n\n/**\n * Calculate default render date range from supplied date.\n * @param {Date} baseDate base date.\n * @returns {object} date range.\n */\nWeek.prototype._getRenderDateRange = function(baseDate) {\n var base = datetime.start(baseDate),\n start = new TZDate(Number(base)),\n end = new TZDate(Number(base));\n\n start.setDate(start.getDate() - 3);\n end.setDate(end.getDate() + 3);\n\n return {\n start: start,\n end: end\n };\n};\n\n/**\n * disable options for day view\n * @param {WeekOptions} options - week options to disable\n */\nfunction _disableDayOptions(options) {\n options.workweek = false;\n}\n\nutil.CustomEvents.mixin(Week);\n\nmodule.exports = Week;\n","/**\n * @fileoverview View for rendering daynames\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar domutil = require('../../common/domutil');\nvar View = require('../view');\nvar daynameTmpl = require('../template/week/daynames.hbs');\n\n/**\n * @constructor\n * @param {object} options - options for dayname view\n * @param {HTMLElement} container Container element to use.\n * @param {Theme} theme - theme instance\n * @extends {View}\n */\nfunction DayName(options, container, theme) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('dayname-container')\n );\n\n this.options = util.extend({\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n timezones: options.timezones\n }, options.week);\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n View.call(this, container);\n\n this.applyTheme();\n}\n\nutil.inherit(DayName, View);\n\n/**\n * Get default viewmodels.\n * @param {Date} start The date of start render\n * @param {Date} end The end of end render\n * @param {object} grids grid data(width, left, day)\n * @returns {array} viewmodel.\n */\nDayName.prototype._getBaseViewModel = function(start, end, grids) {\n var daynames = this.options.daynames,\n theme = this.theme,\n now = new TZDate().toLocalTime(),\n viewModel;\n\n viewModel = util.map(datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ), function(d, i) {\n var day = d.getDay();\n var isToday = datetime.isSameDate(d, now);\n var isPastDay = d < now && !isToday;\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: isToday,\n date: d.getDate(),\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n renderDate: datetime.format(d, 'YYYY-MM-DD'),\n color: this._getDayNameColor(theme, day, isToday, isPastDay)\n };\n }, this);\n\n return viewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel View model from parent (WeekView)\n */\nDayName.prototype.render = function(viewModel) {\n var dayNames = this._getBaseViewModel(\n viewModel.renderStartDate,\n viewModel.renderEndDate,\n viewModel.grids\n );\n var timezonesCollapsed = viewModel.state.timezonesCollapsed;\n var styles = this._getStyles(this.theme, timezonesCollapsed);\n var baseViewModel = util.extend({}, {\n dayNames: dayNames,\n styles: styles\n });\n\n this.container.innerHTML = daynameTmpl(baseViewModel);\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {boolean} isPastDay - is past day flag\n * @returns {string} style - color style\n */\nDayName.prototype._getDayNameColor = function(theme, day, isToday, isPastDay) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = theme.common.holiday.color;\n } else if (isPastDay) {\n color = theme.week.pastDay.color || theme.common.dayname.color;\n } else if (day === 6) {\n color = theme.common.saturday.color;\n } else if (isToday) {\n color = theme.week.today.color || theme.common.today.color;\n } else {\n color = theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nDayName.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderTop = theme.week.dayname.borderTop || theme.common.border;\n styles.borderBottom = theme.week.dayname.borderBottom || theme.common.border;\n styles.borderLeft = theme.week.dayname.borderLeft || theme.common.border;\n styles.paddingLeft = theme.week.dayname.paddingLeft;\n styles.backgroundColor = theme.week.dayname.backgroundColor;\n styles.height = theme.week.dayname.height;\n styles.textAlign = theme.week.dayname.textAlign;\n styles.marginLeft = theme.week.daygridLeft.width;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.marginLeft);\n styles.marginLeft = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\nDayName.prototype.applyTheme = function() {\n var styles = this._getStyles(this.theme);\n var style = this.container.style;\n\n style.borderTop = styles.borderTop;\n style.borderBottom = styles.borderBottom;\n style.height = styles.height;\n style.backgroundColor = styles.backgroundColor;\n style.textAlign = styles.textAlign;\n\n return style;\n};\n\nmodule.exports = DayName;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"weekDayname-tmpl\"]||(depth0 && depth0[\"weekDayname-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"weekDayname-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":8},\"end\":{\"line\":7,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":49},\"end\":{\"line\":3,\"column\":63}}}) : helper)))\n + \"today\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dayNames : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":10,\"column\":9}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview DayGrid in weekly view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n TZDate = require('../../common/timezone').Date,\n View = require('../../view/view'),\n DayGridSchedule = require('./dayGridSchedule'),\n baseTmpl = require('../template/week/dayGrid.hbs'),\n reqAnimFrame = require('../../common/reqAnimFrame');\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {string} name - view name\n * @param {object} options - options for DayGridSchedule view\n * @param {number} [options.heightPercent] - height percent of view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n * @param {Theme} theme - theme instance\n */\nfunction DayGrid(name, options, container, theme) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('daygrid-layout')\n );\n View.call(this, container);\n\n name = name || 'daygrid';\n\n this.options = util.extend({\n viewName: name,\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n renderStartDate: '',\n renderEndDate: '',\n containerBottomGutter: 18,\n scheduleHeight: parseInt(theme.week.dayGridSchedule.height, 10),\n scheduleGutter: parseInt(theme.week.dayGridSchedule.marginTop, 10),\n scheduleContainerTop: 1,\n timezones: options.timezones,\n isReadOnly: options.isReadOnly,\n getViewModelFunc: function(viewModel) {\n return viewModel.schedulesInDateRange[name];\n },\n setViewModelFunc: function(viewModel, matrices) {\n viewModel.schedulesInDateRange[name] = matrices;\n }\n }, options.week);\n\n this.handler = {};\n this.vPanel = null;\n\n this.state.collapsed = true;\n}\n\nutil.inherit(DayGrid, View);\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGrid.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options,\n daynames = opt.daynames,\n range = viewModel.range,\n grids = viewModel.grids,\n matrices = opt.getViewModelFunc(viewModel),\n exceedDate = {},\n panel = getPanel(opt.panels, opt.viewName),\n panelHeight = this.getViewBound().height,\n collapsed = this.state.collapsed,\n heightForcedSet = this.vPanel ? this.vPanel.getHeightForcedSet() : false,\n timezonesCollapsed = viewModel.state.timezonesCollapsed,\n styles = this._getStyles(viewModel.theme, timezonesCollapsed);\n\n var baseViewModel, visibleScheduleCount;\n var now = new TZDate().toLocalTime();\n\n if (panel.showExpandableButton) {\n if (!heightForcedSet) {\n if (collapsed) {\n panelHeight = mmax(panelHeight, panel.maxHeight);\n } else {\n panelHeight = mmin(panelHeight, panel.maxExpandableHeight);\n }\n }\n\n visibleScheduleCount = Math.floor(panelHeight / (opt.scheduleHeight + opt.scheduleGutter));\n if (collapsed) {\n exceedDate = this.parent.controller.getExceedDate(visibleScheduleCount,\n matrices,\n viewModel.range\n );\n matrices = this.parent.controller.excludeExceedSchedules(matrices, visibleScheduleCount);\n opt.setViewModelFunc(viewModel, matrices);\n }\n }\n\n baseViewModel = {\n viewName: opt.viewName,\n range: range,\n grids: grids,\n days: util.map(viewModel.range, function(d, index) {\n var day = d.getDay();\n var ymd = datetime.format(d, 'YYYYMMDD');\n var isToday = datetime.isSameDate(now, d);\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: isToday,\n date: d.getDate(),\n renderDate: datetime.format(d, 'YYYY-MM-DD'),\n hiddenSchedules: exceedDate[ymd] || 0,\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0,\n backgroundColor: viewModel.range.length > 1 ?\n getWeekBackgroundColor(day, isToday, styles) : styles.backgroundColor\n };\n }),\n exceedDate: exceedDate,\n showExpandableButton: panel.showExpandableButton,\n collapsed: collapsed,\n collapseBtnIndex: this.state.clickedExpandBtnIndex,\n styles: styles\n };\n\n return baseViewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGrid.prototype.render = function(viewModel) {\n var opt = this.options,\n container = this.container,\n baseViewModel = this.getBaseViewModel(viewModel),\n scheduleContainerTop = this.options.scheduleContainerTop;\n var dayGridSchedule;\n\n container.innerHTML = baseTmpl(baseViewModel);\n\n this.children.clear();\n\n dayGridSchedule = new DayGridSchedule(\n opt,\n domutil.find(config.classname('.container'), container)\n );\n this.addChild(dayGridSchedule);\n\n dayGridSchedule.on('afterRender', function(weekdayViewModel) {\n baseViewModel.height = weekdayViewModel.minHeight + scheduleContainerTop;\n });\n\n this.children.each(function(childView) {\n childView.render(viewModel);\n }, this);\n\n this.fire('afterRender', baseViewModel);\n};\n\nDayGrid.prototype._beforeDestroy = function() {\n};\n\nDayGrid.prototype.addHandler = function(type, handler, vPanel) {\n var self = this;\n\n this.handler[type] = handler;\n this.vPanel = vPanel;\n\n if (type === 'click') {\n handler.on('expand', function() {\n self.setState({\n collapsed: false\n });\n }, this);\n handler.on('collapse', function() {\n self.setState({\n collapsed: true\n });\n }, this);\n }\n};\n\nDayGrid.prototype._expand = function() {\n reqAnimFrame.requestAnimFrame(function() {\n var vPanel = this.vPanel;\n var opt = this.options;\n var panel = getPanel(opt.panels, opt.viewName);\n\n vPanel.setMaxHeight(panel.maxExpandableHeight);\n vPanel.setHeightForcedSet(false);\n vPanel.setHeight(null, panel.maxExpandableHeight);\n\n if (this.parent) {\n this.parent.render();\n }\n }, this);\n};\n\nDayGrid.prototype._collapse = function() {\n reqAnimFrame.requestAnimFrame(function() {\n var vPanel = this.vPanel;\n var opt = this.options;\n var panel = getPanel(opt.panels, opt.viewName);\n\n vPanel.setMaxHeight(panel.maxHeight);\n vPanel.setHeightForcedSet(false);\n vPanel.setHeight(null, panel.minHeight);\n\n if (this.parent) {\n this.parent.render();\n }\n }, this);\n};\n\n/**\n * set state\n * @param {object} state - state\n */\nDayGrid.prototype.setState = function(state) {\n var collapsed = this.state.collapsed;\n View.prototype.setState.call(this, state);\n\n if (this.state.collapsed === collapsed) {\n return;\n }\n\n if (this.state.collapsed) {\n this._collapse();\n } else {\n this._expand();\n }\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nDayGrid.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderRight = theme.week.daygrid.borderRight || theme.common.border;\n styles.todayBackgroundColor = theme.week.today.backgroundColor;\n styles.weekendBackgroundColor = theme.week.weekend.backgroundColor;\n styles.backgroundColor = theme.week.daygrid.backgroundColor;\n styles.leftWidth = theme.week.daygridLeft.width;\n styles.leftBackgroundColor = theme.week.daygridLeft.backgroundColor;\n styles.leftPaddingRight = theme.week.daygridLeft.paddingRight;\n styles.leftBorderRight = theme.week.daygridLeft.borderRight;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.leftWidth);\n styles.leftWidth = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\n/**\n * Get a background color based on day.\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {object} styles - style object\n * @returns {string} backgroundColor\n */\nfunction getWeekBackgroundColor(day, isToday, styles) {\n var backgroundColor = '';\n\n if (day === 0 || day === 6) {\n backgroundColor = styles.weekendBackgroundColor;\n } else if (isToday) {\n backgroundColor = styles.todayBackgroundColor;\n } else {\n backgroundColor = styles.backgroundColor;\n }\n\n return backgroundColor;\n}\n\n/**\n * get a panel infomation\n * @param {Array.} panels - panel infomations\n * @param {string} name - panel name\n * @returns {object} panel information\n */\nfunction getPanel(panels, name) {\n var found;\n\n util.forEach(panels, function(panel) {\n if (panel.name === name) {\n found = panel;\n }\n });\n\n return found;\n}\n\nmodule.exports = DayGrid;\n","/**\n * @fileoverview Weekday view for week\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Weekday = require('../weekday'),\n tmpl = require('../template/week/dayGridSchedule.hbs');\nvar mmax = Math.max;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for DayGridSchedule view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction DayGridSchedule(options, container) {\n Weekday.call(this, options, container);\n\n this.collapsed = true;\n}\n\nutil.inherit(DayGridSchedule, Weekday);\n\n/**\n * Render Weekday view\n * @override\n */\nDayGridSchedule.prototype.render = function(viewModel) {\n var container = this.container;\n var baseViewModel;\n\n baseViewModel = this.getBaseViewModel(viewModel);\n\n container.innerHTML = tmpl(baseViewModel);\n\n this.fire('afterRender', baseViewModel);\n};\n\n/**\n * returns maximum schedule count in day\n * @param {array} matrices - The matrices for schedule placing.\n * @returns {number} maximum schedule count in day\n */\nDayGridSchedule.prototype._getMaxScheduleInDay = function(matrices) {\n return mmax.apply(\n null,\n util.map(matrices, function(matrix) {\n return Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n })\n );\n};\n\n/**\n * returns minimum height for container.\n * @param {number} maxScheduleInDay - max schedule blocks in one day\n * @returns {number}\n */\nDayGridSchedule.prototype._getMinHeight = function(maxScheduleInDay) {\n var opt = this.options;\n var contentHeight = (maxScheduleInDay * opt.scheduleHeight)\n + ((maxScheduleInDay - 1) * opt.scheduleGutter);\n\n // if (this.collapsed && this.aboutMe.maxHeight >= contentHeight + opt.containerBottomGutter) {\n // contentHeight += opt.containerBottomGutter;\n // }\n\n return contentHeight;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGridSchedule.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var matrices = opt.getViewModelFunc(viewModel);\n var maxScheduleInDay = this._getMaxScheduleInDay(matrices);\n var baseViewModel;\n var styles = this._getStyles(viewModel.theme);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n minHeight: this._getMinHeight(maxScheduleInDay),\n matrices: matrices,\n scheduleContainerTop: this.options.scheduleContainerTop,\n maxScheduleInDay: maxScheduleInDay,\n isReadOnly: opt.isReadOnly,\n styles: styles\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nDayGridSchedule.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.borderRadius = theme.week.dayGridSchedule.borderRadius;\n }\n\n return styles;\n};\n\nmodule.exports = DayGridSchedule;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":4},\"end\":{\"line\":27,\"column\":15}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n \"\n + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":4},\"end\":{\"line\":26,\"column\":15}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n \"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":4},\"end\":{\"line\":25,\"column\":13}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=\"function\", alias5=container.lambda;\n\n return \"\\n
    \\n
    \\n \"\n + ((stack1 = (helpers[\"schedule-tmpl\"]||(depth0 && depth0[\"schedule-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":87},\"end\":{\"line\":21,\"column\":112}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers.unless.call(alias1,(helpers.or||(depth0 && depth0.or)||alias2).call(alias1,((stack1 = (data && data.root)) && stack1.isReadOnly),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":22},\"end\":{\"line\":22,\"column\":60}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":12},\"end\":{\"line\":22,\"column\":193}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":31},\"end\":{\"line\":8,\"column\":45}}}) : helper)))\n + \"weekday-exceed-left\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":32},\"end\":{\"line\":9,\"column\":46}}}) : helper)))\n + \"weekday-exceed-right\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":146},\"end\":{\"line\":13,\"column\":160}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression;\n\n return \" \";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRight), depth0))\n + \";\\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.days : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":17,\"column\":8},\"end\":{\"line\":27,\"column\":19}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (data && data.root)) && stack1.collapsed),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.program(9, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":12},\"end\":{\"line\":26,\"column\":19}}})) != null ? stack1 : \"\");\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":19,\"column\":16},\"end\":{\"line\":21,\"column\":23}}})) != null ? stack1 : \"\");\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"weekGridFooterExceed-tmpl\"]||(depth0 && depth0[\"weekGridFooterExceed-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"weekGridFooterExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":145},\"end\":{\"line\":20,\"column\":192}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && data.key),\"===\",((stack1 = (data && data.root)) && stack1.collapseBtnIndex),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":16},\"end\":{\"line\":25,\"column\":23}}})) != null ? stack1 : \"\");\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = ((helper = (helper = helpers[\"collapseBtnTitle-tmpl\"] || (depth0 != null ? depth0[\"collapseBtnTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"collapseBtnTitle-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":121},\"end\":{\"line\":24,\"column\":148}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"dayGridTitle-tmpl\"]||(depth0 && depth0[\"dayGridTitle-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.viewName : depth0),{\"name\":\"dayGridTitle-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":2,\"column\":36}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.days : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":8},\"end\":{\"line\":14,\"column\":19}}})) != null ? stack1 : \"\")\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (data && data.root)) && stack1.showExpandableButton),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":8},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview View for rendered schedules by times.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar datetime = require('../../common/datetime');\nvar Timezone = require('../../common/timezone');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar View = require('../view');\nvar Time = require('./time');\nvar AutoScroll = require('../../common/autoScroll');\nvar mainTmpl = require('../template/week/timeGrid.hbs');\nvar timezoneStickyTmpl = require('../template/week/timezoneSticky.hbs');\nvar timegridCurrentTimeTmpl = require('../template/week/timeGridCurrentTime.hbs');\nvar TZDate = Timezone.Date;\nvar HOURMARKER_REFRESH_INTERVAL = 1000 * 60;\nvar SIXTY_SECONDS = 60;\nvar SIXTY_MINUTES = 60;\n\n/**\n * Returns a list of time labels from start to end.\n * For hidden labels near the current time, set to hidden: true.\n * @param {object} opt - TimeGrid.options\n * @param {boolean} hasHourMarker - Whether the current time is displayed\n * @param {number} timezoneOffset - timezone offset\n * @param {object} styles - styles\n * @returns {Array.}\n */\nfunction getHoursLabels(opt, hasHourMarker, timezoneOffset, styles) {\n var hourStart = opt.hourStart;\n var hourEnd = opt.hourEnd;\n var renderEndDate = new TZDate(opt.renderEndDate);\n var shiftByOffset = parseInt(timezoneOffset / SIXTY_MINUTES, 10);\n var shiftMinutes = Math.abs(timezoneOffset % SIXTY_MINUTES);\n var now = new TZDate().toLocalTime();\n var nowMinutes = now.getMinutes();\n var hoursRange = util.range(0, 24);\n var nowAroundHours = null;\n var nowHours, nowHoursIndex;\n var isNegativeZero = 1 / -Infinity === shiftByOffset;\n\n if ((shiftByOffset < 0 || isNegativeZero) && shiftMinutes > 0) {\n shiftByOffset -= 1;\n }\n\n // shift the array and take elements between start and end\n common.shiftArray(hoursRange, shiftByOffset);\n common.takeArray(hoursRange, hourStart, hourEnd);\n\n nowHours = common.shiftHours(now.getHours(), shiftByOffset) % 24;\n nowHoursIndex = util.inArray(nowHours, hoursRange);\n\n if (hasHourMarker) {\n if (nowMinutes < 20) {\n nowAroundHours = nowHours;\n } else if (nowMinutes > 40) {\n nowAroundHours = nowHours + 1;\n }\n\n if (util.isNumber(nowAroundHours)) {\n nowAroundHours %= 24;\n }\n }\n\n return util.map(hoursRange, function(hour, index) {\n var color;\n var fontWeight;\n var isPast = (hasHourMarker && index <= nowHoursIndex) ||\n (renderEndDate < now && !datetime.isSameDate(renderEndDate, now));\n\n if (isPast) {\n // past\n color = styles.pastTimeColor;\n fontWeight = styles.pastTimeFontWeight;\n } else {\n // future\n color = styles.futureTimeColor;\n fontWeight = styles.futureTimeFontWeight;\n }\n\n return {\n hour: hour,\n minutes: shiftMinutes,\n hidden: nowAroundHours === hour || index === 0,\n color: color || '',\n fontWeight: fontWeight || ''\n };\n });\n}\n/**\n * @constructor\n * @extends {View}\n * @param {string} name - view name\n * @param {object} options The object for view customization.\n * @param {string} options.renderStartDate - render start date. YYYY-MM-DD\n * @param {string} options.renderEndDate - render end date. YYYY-MM-DD\n * @param {number} [options.hourStart=0] You can change view's start hours.\n * @param {number} [options.hourEnd=0] You can change view's end hours.\n * @param {HTMLElement} panelElement panel element.\n */\nfunction TimeGrid(name, options, panelElement) {\n var container = domutil.appendHTMLElement(\n 'div',\n panelElement,\n config.classname('timegrid-container')\n );\n var stickyContainer = domutil.appendHTMLElement(\n 'div',\n panelElement,\n config.classname('timegrid-sticky-container')\n );\n\n panelElement.style.position = 'relative'; // for stickyContainer\n\n name = name || 'time';\n\n View.call(this, container);\n\n if (!util.browser.safari) {\n /**\n * @type {AutoScroll}\n */\n this._autoScroll = new AutoScroll(container);\n }\n\n this.stickyContainer = stickyContainer;\n\n /**\n * Time view options.\n * @type {object}\n */\n this.options = util.extend({\n viewName: name,\n renderStartDate: '',\n renderEndDate: '',\n hourStart: 0,\n hourEnd: 24,\n timezones: options.timezones,\n isReadOnly: options.isReadOnly,\n showTimezoneCollapseButton: false\n }, options.week);\n\n if (this.options.timezones.length < 1) {\n this.options.timezones = [{\n timezoneOffset: Timezone.getOffset()\n }];\n }\n\n /**\n * Interval id for hourmarker animation.\n * @type {number}\n */\n this.intervalID = 0;\n\n /**\n * timer id for hourmarker initial state\n * @type {number}\n */\n this.timerID = 0;\n\n /**\n * @type {boolean}\n */\n this._scrolled = false;\n\n /**\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n /**\n * cache hoursLabels view model to render again TimeGrid\n * @type {object}\n */\n this._cacheHoursLabels = null;\n\n this.attachEvent();\n}\n\nutil.inherit(TimeGrid, View);\n\n/**********\n * Prototype props\n **********/\n\n/**\n * @type {string}\n */\nTimeGrid.prototype.viewName = 'timegrid';\n\n/**\n * Destroy view.\n * @override\n */\nTimeGrid.prototype._beforeDestroy = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n\n if (this._autoScroll) {\n this._autoScroll.destroy();\n }\n\n domevent.off(this.stickyContainer, 'click', this._onClickStickyContainer, this);\n\n this._autoScroll = this.hourmarkers = this.intervalID =\n this.timerID = this._cacheParentViewModel = this.stickyContainer = null;\n};\n\n/**\n * @param {Date} [time] - date object to convert pixel in grids.\n * use **Date.now()** when not supplied.\n * @returns {number} The pixel value represent current time in grids.\n */\nTimeGrid.prototype._getTopPercentByTime = function(time) {\n var opt = this.options,\n raw = datetime.raw(time || new TZDate()),\n hourLength = util.range(opt.hourStart, opt.hourEnd).length,\n maxMilliseconds = hourLength * datetime.MILLISECONDS_PER_HOUR,\n hmsMilliseconds = datetime.millisecondsFrom('hour', raw.h) +\n datetime.millisecondsFrom('minutes', raw.m) +\n datetime.millisecondsFrom('seconds', raw.s) +\n raw.ms,\n topPercent;\n\n topPercent = common.ratio(maxMilliseconds, 100, hmsMilliseconds);\n topPercent -= common.ratio(maxMilliseconds, 100, datetime.millisecondsFrom('hour', opt.hourStart));\n\n return common.limit(topPercent, [0], [100]);\n};\n\n/**\n * Get Hourmarker viewmodel.\n * @param {TZDate} now - now\n * @param {object} grids grid information(width, left, day)\n * @param {Array.} range render range\n * @returns {object} ViewModel of hourmarker.\n */\nTimeGrid.prototype._getHourmarkerViewModel = function(now, grids, range) {\n var todaymarkerLeft = -1;\n var todaymarkerWidth = -1;\n var hourmarkerTimzones = [];\n var opt = this.options;\n var primaryOffset = Timezone.getOffset();\n var timezones = opt.timezones;\n var viewModel;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(now, date)) {\n todaymarkerLeft = grids[index] ? grids[index].left : 0;\n todaymarkerWidth = grids[index] ? grids[index].width : 0;\n }\n });\n\n util.forEach(timezones, function(timezone) {\n var timezoneDifference = timezone.timezoneOffset + primaryOffset;\n var hourmarker = new TZDate(now);\n var dateDifference;\n\n hourmarker.setMinutes(hourmarker.getMinutes() + timezoneDifference);\n dateDifference = hourmarker.getDate() - now.getDate();\n\n hourmarkerTimzones.push({\n hourmarker: hourmarker,\n dateDifferenceSign: (dateDifference < 0) ? '-' : '+',\n dateDifference: Math.abs(dateDifference)\n });\n });\n\n viewModel = {\n currentHours: now.getHours(),\n hourmarkerTop: this._getTopPercentByTime(now),\n hourmarkerTimzones: hourmarkerTimzones,\n todaymarkerLeft: todaymarkerLeft,\n todaymarkerWidth: todaymarkerWidth,\n todaymarkerRight: todaymarkerLeft + todaymarkerWidth\n };\n\n return viewModel;\n};\n\n/**\n * Get timezone view model\n * @param {number} currentHours - current hour\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @param {object} styles - styles\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getTimezoneViewModel = function(currentHours, timezonesCollapsed, styles) {\n var opt = this.options;\n var primaryOffset = Timezone.getOffset();\n var timezones = opt.timezones;\n var timezonesLength = timezones.length;\n var timezoneViewModel = [];\n var collapsed = timezonesCollapsed;\n var width = collapsed ? 100 : 100 / timezonesLength;\n var now = new TZDate().toLocalTime();\n var backgroundColor = styles.displayTimezoneLabelBackgroundColor;\n\n util.forEach(timezones, function(timezone, index) {\n var hourmarker = new TZDate(now);\n var timezoneDifference;\n var timeSlots;\n var dateDifference;\n\n timezoneDifference = timezone.timezoneOffset + primaryOffset;\n timeSlots = getHoursLabels(opt, currentHours >= 0, timezoneDifference, styles);\n\n hourmarker.setMinutes(hourmarker.getMinutes() + timezoneDifference);\n dateDifference = hourmarker.getDate() - now.getDate();\n\n if (index > 0) {\n backgroundColor = styles.additionalTimezoneBackgroundColor;\n }\n\n timezoneViewModel.push({\n timeSlots: timeSlots,\n displayLabel: timezone.displayLabel,\n timezoneOffset: timezone.timezoneOffset,\n tooltip: timezone.tooltip || '',\n width: width,\n left: collapsed ? 0 : (timezones.length - index - 1) * width,\n isPrimary: index === 0,\n backgroundColor: backgroundColor || '',\n hidden: index !== 0 && collapsed,\n hourmarker: hourmarker,\n dateDifferenceSign: (dateDifference < 0) ? '-' : '+',\n dateDifference: Math.abs(dateDifference)\n });\n });\n\n return timezoneViewModel;\n};\n\n/**\n * Get base viewModel.\n * @param {object} viewModel - view model\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getBaseViewModel = function(viewModel) {\n var grids = viewModel.grids;\n var range = viewModel.range;\n var opt = this.options;\n var baseViewModel = this._getHourmarkerViewModel(new TZDate().toLocalTime(), grids, range);\n var timezonesCollapsed = util.pick(viewModel, 'state', 'timezonesCollapsed');\n var styles = this._getStyles(viewModel.theme, timezonesCollapsed);\n\n return util.extend(baseViewModel, {\n timezones: this._getTimezoneViewModel(baseViewModel.todaymarkerLeft, timezonesCollapsed, styles),\n hoursLabels: getHoursLabels(opt, baseViewModel.todaymarkerLeft >= 0, 0, styles),\n styles: styles,\n showTimezoneCollapseButton: util.pick(opt, 'showTimezoneCollapseButton'),\n timezonesCollapsed: timezonesCollapsed\n });\n};\n\n/**\n * Reconcilation child views and render.\n * @param {object} viewModels Viewmodel\n * @param {object} grids grid information(width, left, day)\n * @param {HTMLElement} container Container element for each time view.\n * @param {Theme} theme - theme instance\n */\nTimeGrid.prototype._renderChildren = function(viewModels, grids, container, theme) {\n var self = this,\n options = this.options,\n childOption,\n child,\n isToday,\n containerHeight,\n today = datetime.format(new TZDate(), 'YYYYMMDD'),\n i = 0;\n\n // clear contents\n container.innerHTML = '';\n this.children.clear();\n\n containerHeight = domutil.getSize(container.parentElement)[1];\n\n // reconcilation of child views\n util.forEach(viewModels, function(schedules, ymd) {\n isToday = ymd === today;\n\n childOption = {\n index: i,\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n ymd: ymd,\n isToday: isToday,\n isPending: options.isPending,\n isFocused: options.isFocused,\n isReadOnly: options.isReadOnly,\n hourStart: options.hourStart,\n hourEnd: options.hourEnd\n };\n\n child = new Time(\n childOption,\n domutil.appendHTMLElement('div', container, config.classname('time-date')),\n theme\n );\n child.render(ymd, schedules, containerHeight);\n\n self.addChild(child);\n\n i += 1;\n });\n};\n\n/**\n * @override\n * @param {object} viewModel ViewModel list from Week view.\n */\nTimeGrid.prototype.render = function(viewModel) {\n var opt = this.options,\n timeViewModel = viewModel.schedulesInDateRange[opt.viewName],\n container = this.container,\n grids = viewModel.grids,\n baseViewModel = this._getBaseViewModel(viewModel),\n scheduleLen = util.keys(timeViewModel).length;\n\n this._cacheParentViewModel = viewModel;\n this._cacheHoursLabels = baseViewModel.hoursLabels;\n\n if (!scheduleLen) {\n return;\n }\n\n baseViewModel.showHourMarker = baseViewModel.todaymarkerLeft >= 0;\n\n container.innerHTML = mainTmpl(baseViewModel);\n\n /**********\n * Render sticky container for timezone display label\n **********/\n this.renderStickyContainer(baseViewModel);\n\n /**********\n * Render children\n **********/\n this._renderChildren(\n timeViewModel,\n grids,\n domutil.find(config.classname('.timegrid-schedules-container'), container),\n viewModel.theme\n );\n\n this._hourLabels = domutil.find('ul', container);\n\n /**********\n * Render hourmarker\n **********/\n this.hourmarkers = domutil.find(config.classname('.timegrid-hourmarker'), container, true);\n\n if (!this._scrolled) {\n this._scrolled = true;\n this.scrollToNow();\n }\n};\n\nTimeGrid.prototype.renderStickyContainer = function(baseViewModel) {\n var stickyContainer = this.stickyContainer;\n\n stickyContainer.innerHTML = timezoneStickyTmpl(baseViewModel);\n\n stickyContainer.style.display = baseViewModel.timezones.length > 1 ? 'block' : 'none';\n stickyContainer.style.width = baseViewModel.styles.leftWidth;\n stickyContainer.style.height = baseViewModel.styles.displayTimezoneLabelHeight;\n stickyContainer.style.borderBottom = baseViewModel.styles.leftBorderRight;\n};\n\n/**\n * Refresh hourmarker element.\n */\nTimeGrid.prototype.refreshHourmarker = function() {\n var hourmarkers = this.hourmarkers;\n var viewModel = this._cacheParentViewModel;\n var hoursLabels = this._cacheHoursLabels;\n var baseViewModel;\n\n if (!hourmarkers || !viewModel) {\n return;\n }\n\n baseViewModel = this._getBaseViewModel(viewModel);\n\n reqAnimFrame.requestAnimFrame(function() {\n var needsRender = false;\n\n util.forEach(hoursLabels, function(hoursLabel, index) {\n if (hoursLabel.hidden !== baseViewModel.hoursLabels[index].hidden) {\n needsRender = true;\n\n return false;\n }\n\n return true;\n });\n\n if (needsRender) {\n this.render(viewModel);\n } else {\n util.forEach(hourmarkers, function(hourmarker) {\n var todaymarker = domutil.find(config.classname('.timegrid-todaymarker'), hourmarker);\n var hourmarkerContainer = domutil.find(config.classname('.timegrid-hourmarker-time'), hourmarker);\n var timezone = domutil.closest(hourmarker, config.classname('.timegrid-timezone'));\n var timezoneIndex = timezone ? domutil.getData(timezone, 'timezoneIndex') : 0;\n\n hourmarker.style.top = baseViewModel.hourmarkerTop + '%';\n\n if (todaymarker) {\n todaymarker.style.display = (baseViewModel.todaymarkerLeft >= 0) ? 'block' : 'none';\n }\n if (hourmarkerContainer) {\n hourmarkerContainer.innerHTML = timegridCurrentTimeTmpl(\n baseViewModel.hourmarkerTimzones[timezoneIndex]\n );\n }\n });\n }\n }, this);\n};\n\n/**\n * Attach events\n */\nTimeGrid.prototype.attachEvent = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n this.intervalID = this.timerID = null;\n\n this.timerID = setTimeout(util.bind(this.onTick, this), (SIXTY_SECONDS - new TZDate().getSeconds()) * 1000);\n\n domevent.on(this.stickyContainer, 'click', this._onClickStickyContainer, this);\n};\n\n/**\n * Scroll time grid to current hourmarker.\n */\nTimeGrid.prototype.scrollToNow = function() {\n var container = this.container;\n var offsetTop,\n viewBound,\n scrollTop,\n scrollAmount,\n scrollBy,\n scrollFn;\n\n if (!this.hourmarkers || !this.hourmarkers.length) {\n return;\n }\n\n offsetTop = this.hourmarkers[0].offsetTop;\n viewBound = this.getViewBound();\n scrollTop = offsetTop;\n scrollAmount = viewBound.height / 4;\n scrollBy = 10;\n\n scrollFn = function() {\n if (scrollTop > offsetTop - scrollAmount) {\n scrollTop -= scrollBy;\n container.scrollTop = scrollTop;\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n } else {\n container.scrollTop = offsetTop - scrollAmount;\n }\n };\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n};\n\n/**********\n * Schedule handlers\n **********/\n\n/**\n * Interval tick handler\n */\nTimeGrid.prototype.onTick = function() {\n if (this.timerID) {\n clearTimeout(this.timerID);\n this.timerID = null;\n }\n\n if (!this.intervalID) {\n this.intervalID = setInterval(util.bind(this.onTick, this), HOURMARKER_REFRESH_INTERVAL);\n }\n this.refreshHourmarker();\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nTimeGrid.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderBottom = theme.week.timegridHorizontalLine.borderBottom || theme.common.border;\n styles.halfHourBorderBottom = theme.week.timegridHalfHour.borderBottom || theme.common.border;\n\n styles.todayBackgroundColor = theme.week.today.backgroundColor;\n styles.weekendBackgroundColor = theme.week.weekend.backgroundColor;\n styles.backgroundColor = theme.week.daygrid.backgroundColor;\n styles.leftWidth = theme.week.timegridLeft.width;\n styles.leftBackgroundColor = theme.week.timegridLeft.backgroundColor;\n styles.leftBorderRight = theme.week.timegridLeft.borderRight || theme.common.border;\n styles.leftFontSize = theme.week.timegridLeft.fontSize;\n styles.timezoneWidth = theme.week.timegridLeft.width;\n styles.additionalTimezoneBackgroundColor = theme.week.timegridLeftAdditionalTimezone.backgroundColor\n || styles.leftBackgroundColor;\n\n styles.displayTimezoneLabelHeight = theme.week.timegridLeftTimezoneLabel.height;\n styles.displayTimezoneLabelBackgroundColor = theme.week.timegridLeft.backgroundColor === 'inherit' ? 'white' : theme.week.timegridLeft.backgroundColor;\n\n styles.oneHourHeight = theme.week.timegridOneHour.height;\n styles.halfHourHeight = theme.week.timegridHalfHour.height;\n styles.quaterHourHeight = (parseInt(styles.halfHourHeight, 10) / 2) + 'px';\n\n styles.currentTimeColor = theme.week.currentTime.color;\n styles.currentTimeFontSize = theme.week.currentTime.fontSize;\n styles.currentTimeFontWeight = theme.week.currentTime.fontWeight;\n\n styles.pastTimeColor = theme.week.pastTime.color;\n styles.pastTimeFontWeight = theme.week.pastTime.fontWeight;\n\n styles.futureTimeColor = theme.week.futureTime.color;\n styles.futureTimeFontWeight = theme.week.futureTime.fontWeight;\n\n styles.currentTimeLeftBorderTop = theme.week.currentTimeLinePast.border;\n styles.currentTimeBulletBackgroundColor = theme.week.currentTimeLineBullet.backgroundColor;\n styles.currentTimeTodayBorderTop = theme.week.currentTimeLineToday.border;\n styles.currentTimeRightBorderTop = theme.week.currentTimeLineFuture.border;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.leftWidth);\n styles.leftWidth = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\n/**\n * @param {MouseEvent} event - mouse event object\n */\nTimeGrid.prototype._onClickStickyContainer = function(event) {\n var target = event.target || event.srcElement;\n var closeBtn = domutil.closest(target, config.classname('.timegrid-timezone-close-btn'));\n\n if (!closeBtn) {\n return;\n }\n\n this.fire('clickTimezonesCollapsedBtn');\n};\n\nmodule.exports = TimeGrid;\n","/**\n * @fileoverview View of time.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar View = require('../view');\nvar timeTmpl = require('../template/week/time.hbs');\n\nvar forEachArr = util.forEachArray;\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options Options\n * @param {number} options.index Date index in week view.\n * @param {number} options.width Date element width (percent)\n * @param {string} options.ymd YYYMMDD string for this view\n * @param {boolean} options.isToday when set true then assign today design class to container.\n * @param {number} options.hourStart Can limit of render hour start.\n * @param {number} options.hourEnd Can limit of render hour end.\n * @param {HTMLElement} container Element to use container for this view.\n * @param {Theme} theme - theme instance\n */\nfunction Time(options, container, theme) {\n View.call(this, container);\n\n this.options = util.extend({\n index: 0,\n width: 0,\n ymd: '',\n isToday: false,\n pending: false,\n hourStart: 0,\n hourEnd: 24,\n defaultMarginBottom: 2,\n minHeight: 18.5,\n isReadOnly: false\n }, options);\n\n this.timeTmpl = timeTmpl;\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n container.style.width = options.width + '%';\n container.style.left = options.left + '%';\n\n if (this.options.isToday) {\n domutil.addClass(this.container, config.classname('today'));\n }\n\n this.applyTheme();\n}\n\nutil.inherit(Time, View);\n\n/**\n * Convert YYYYMMDD formatted string date to Date.\n * @param {string} str formatted string.\n * @returns {Date} start of date.\n */\nTime.prototype._parseDateGroup = function(str) {\n var y = parseInt(str.substr(0, 4), 10),\n m = parseInt(str.substr(4, 2), 10),\n d = parseInt(str.substr(6, 2), 10);\n var date = datetime.start();\n\n date.setFullYear(y, m - 1, d);\n\n return datetime.start(date);\n};\n\n/**\n * calculate left and width\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @returns {object} - left and width\n */\nTime.prototype._getScheduleViewBoundX = function(viewModel, options) {\n var width = options.baseWidth * (viewModel.extraSpace + 1);\n\n // set width auto when has no collisions.\n if (!viewModel.hasCollide) {\n width = null;\n }\n\n return {\n left: options.baseLeft[options.columnIndex],\n width: width\n };\n};\n\n/**\n * calculate top, height, croppedStart and croppedEnd\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @returns {object} - left and width\n */\nTime.prototype._getScheduleViewBoundY = function(viewModel, options) {\n var baseMS = options.baseMS;\n var baseHeight = options.baseHeight;\n var croppedStart = false;\n var croppedEnd = false;\n var goingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration);\n var comingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n var offsetStart = viewModel.valueOf().start - goingDuration - options.todayStart;\n // containerHeight : milliseconds in day = x : schedule's milliseconds\n var top = (baseHeight * offsetStart) / baseMS;\n var modelDuration = viewModel.duration();\n var height;\n var duration;\n var goingDurationHeight;\n var modelDurationHeight;\n var comingDurationHeight;\n\n modelDuration = modelDuration > SCHEDULE_MIN_DURATION ? modelDuration : SCHEDULE_MIN_DURATION;\n duration = modelDuration + goingDuration + comingDuration;\n height = (baseHeight * duration) / baseMS;\n\n goingDurationHeight = (baseHeight * goingDuration) / baseMS; // common.ratio(duration, goingDuration, 100);\n modelDurationHeight = (baseHeight * modelDuration) / baseMS; // common.ratio(duration, modelDuration, 100);\n comingDurationHeight = (baseHeight * comingDuration) / baseMS; // common.ratio(duration, comingDuration, 100);\n\n if (offsetStart < 0) {\n top = 0;\n height += ((baseHeight * offsetStart) / baseMS);\n croppedStart = true;\n }\n\n if (height + top > baseHeight) {\n height = baseHeight - top;\n croppedEnd = true;\n }\n\n return {\n top: top,\n height: Math.max(height, this.options.minHeight) - this.options.defaultMarginBottom,\n modelDurationHeight: modelDurationHeight,\n goingDurationHeight: goingDurationHeight,\n comingDurationHeight: comingDurationHeight,\n hasGoingDuration: goingDuration > 0,\n hasComingDuration: comingDuration > 0,\n croppedStart: croppedStart,\n croppedEnd: croppedEnd\n };\n};\n\n/**\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @param {Date} options.todayStart - date object represent schedule date's start (00:00:00)\n * @param {number} options.baseMS - the number of milliseconds to render schedule blocks.\n * @param {number} options.baseHeight - pixel value related with baseMS options.\n * @param {number[]} options.baseLeft - left position percents for each columns.\n * @param {number} options.baseWidth - the unit of schedule blocks width percent.\n * @param {number} options.columnIndex - the number index of schedule blocks.\n * it represent rendering index from left sides in view.\n * @returns {object} bound object for supplied view model.\n */\nTime.prototype.getScheduleViewBound = function(viewModel, options) {\n var boundX = this._getScheduleViewBoundX(viewModel, options);\n var boundY = this._getScheduleViewBoundY(viewModel, options);\n var schedule = viewModel.model;\n var isReadOnly = util.pick(schedule, 'isReadOnly') || false;\n var travelBorderColor = schedule.isFocused ? '#ffffff' : schedule.borderColor;\n if (travelBorderColor === schedule.bgColor) {\n travelBorderColor = null; // follow text color\n }\n\n return util.extend({\n isReadOnly: isReadOnly,\n travelBorderColor: travelBorderColor\n }, boundX, boundY);\n};\n\n/**\n * Set viewmodels for rendering.\n * @param {string} ymd The date of schedules. YYYYMMDD format.\n * @param {array} matrices The matrices for schedule placing.\n * @param {number} containerHeight - container's height\n */\nTime.prototype._getBaseViewModel = function(ymd, matrices, containerHeight) {\n var self = this,\n options = this.options,\n hourStart = options.hourStart,\n hourEnd = options.hourEnd,\n isReadOnly = options.isReadOnly,\n todayStart,\n baseMS;\n\n /**\n * Calculate each schedule element bounds relative with rendered hour milliseconds and\n * wrap each schedule model to viewmodels.\n */\n containerHeight = containerHeight || this.getViewBound().height;\n todayStart = this._parseDateGroup(ymd);\n todayStart.setHours(hourStart);\n baseMS = datetime.millisecondsFrom('hour', (hourEnd - hourStart));\n\n forEachArr(matrices, function(matrix) {\n var maxRowLength,\n widthPercent,\n leftPercents,\n i;\n\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n widthPercent = 100 / maxRowLength;\n\n leftPercents = [];\n for (i = 0; i < maxRowLength; i += 1) {\n leftPercents[i] = widthPercent * i;\n }\n\n forEachArr(matrix, function(row) {\n forEachArr(row, function(viewModel, col) {\n var viewBound;\n\n if (!viewModel) {\n return;\n }\n\n viewBound = self.getScheduleViewBound(viewModel, {\n todayStart: todayStart,\n baseMS: baseMS,\n baseLeft: leftPercents,\n baseWidth: widthPercent,\n baseHeight: containerHeight,\n columnIndex: col,\n isReadOnly: isReadOnly\n });\n\n util.extend(viewModel, viewBound);\n });\n });\n });\n};\n\n/**\n * @returns {Date} - Date of this view.\n */\nTime.prototype.getDate = function() {\n return this._parseDateGroup(this.options.ymd);\n};\n\n/**\n * @override\n * @param {string} ymd The date of schedules. YYYYMMDD format\n * @param {array} matrices Matrices for placing schedules\n * @param {number} containerHeight - container's height\n */\nTime.prototype.render = function(ymd, matrices, containerHeight) {\n this._getBaseViewModel(ymd, matrices, containerHeight);\n this.container.innerHTML = this.timeTmpl({\n matrices: matrices,\n styles: this._getStyles(this.theme),\n isReadOnly: this.options.isReadOnly\n });\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nTime.prototype._getStyles = function(theme) {\n var styles = {};\n var options = this.options;\n\n if (theme) {\n styles.borderRight = theme.week.timegrid.borderRight || theme.common.border;\n styles.marginRight = theme.week.timegrid.paddingRight;\n styles.borderRadius = theme.week.timegridSchedule.borderRadius;\n styles.paddingLeft = theme.week.timegridSchedule.paddingLeft;\n styles.backgroundColor = options.isToday ? theme.week.today.backgroundColor : 'inherit';\n }\n\n return styles;\n};\n\nTime.prototype.applyTheme = function() {\n var style = this.container.style;\n var styles = this._getStyles(this.theme);\n\n style.borderRight = styles.borderRight;\n style.backgroundColor = styles.backgroundColor;\n};\n\nmodule.exports = Time;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":4},\"end\":{\"line\":60,\"column\":13}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":59,\"column\":17}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":8},\"end\":{\"line\":58,\"column\":17}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hasGoingDuration : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(19, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":29,\"column\":12},\"end\":{\"line\":37,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"]||(depth0 && depth0[\"time-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":45,\"column\":20},\"end\":{\"line\":45,\"column\":41}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hasComingDuration : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":12},\"end\":{\"line\":54,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = helpers.unless.call(alias1,(helpers.or||(depth0 && depth0.or)||alias2).call(alias1,(depth0 != null ? depth0.croppedEnd : depth0),((stack1 = (data && data.root)) && stack1.isReadOnly),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":22},\"end\":{\"line\":56,\"column\":71}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(29, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":12},\"end\":{\"line\":56,\"column\":202}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":83},\"end\":{\"line\":6,\"column\":97}}}) : helper)))\n + \"time-date-schedule-block-pending\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" padding-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.paddingLeft), depth0))\n + \";\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":147},\"end\":{\"line\":12,\"column\":161}}}) : helper)))\n + \"time-schedule-focused \";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" border-bottom-left-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRadius), depth0))\n + \";\\n border-bottom-right-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRadius), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" border-top-left-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRadius), depth0))\n + \";\\n border-top-right-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderRadius), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"goingDuration-tmpl\"]||(depth0 && depth0[\"goingDuration-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"goingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":36,\"column\":66},\"end\":{\"line\":36,\"column\":96}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"border-bottom: 1px dashed \"\n + container.escapeExpression(((helper = (helper = helpers.travelBorderColor || (depth0 != null ? depth0.travelBorderColor : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"travelBorderColor\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":44,\"column\":67},\"end\":{\"line\":44,\"column\":88}}}) : helper)))\n + \";\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"comingDuration-tmpl\"]||(depth0 && depth0[\"comingDuration-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"comingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":53,\"column\":26},\"end\":{\"line\":53,\"column\":57}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n \";\n},\"29\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression;\n\n return \"
     
    \";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":61,\"column\":9}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Add autoscroll feature to elements that prevented text selection.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domevent = require('../common/domevent');\nvar domutil = require('../common/domutil');\nvar Point = require('../common/point');\n\nvar SCROLL_INTERVAL = 30;\nvar SCROLL_MAX = 15;\nvar SCROLL_CLICK_INCREASED = 2; // In IE, the offset of the actual UI pixel when the scroll bar is clicked is offset.\n\n/**\n * Add autoscroll feature to elements that prevented text selection.\n * @constructor\n * @param {HTMLElement} container - HTMLElement to add autoscroll features.\n */\nfunction AutoScroll(container) {\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * @type {AutoScroll.DIRECTION}\n */\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n /**\n * @type {number}\n */\n this._offset = 0;\n\n /**\n * interval to scrolling\n * @type {number}\n */\n this._intervalID = 0;\n\n domevent.on(container, {\n 'mousedown': this._onMouseDown\n }, this);\n}\n\n/**\n * @enum\n */\nAutoScroll.DIRECTION = {\n INSIDE: 0,\n TOP: 1,\n RIGHT: 2,\n BOTTOM: 3,\n LEFT: 4\n};\n\n/**\n * Instance destroy method.\n */\nAutoScroll.prototype.destroy = function() {\n domevent.off(this.container, {\n 'mousedown': this._onMouseDown,\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n\n window.clearInterval(this._intervalID);\n this._intervalID = this._direction = this.container = null;\n};\n\n/**\n * Normalize ClientRect and calculate each position of edges.\n * @param {ClientRect} clientRect - ClientRect object of element.\n * @returns {object} edges.\n */\nAutoScroll.prototype._getEdgePositions = function(clientRect) {\n return {\n top: clientRect.top,\n right: clientRect.left + clientRect.width,\n bottom: clientRect.bottom,\n left: clientRect.left\n };\n};\n\n/**\n * Get element real size (\"real size\" -> size without scrollbar)\n * @param {HTMLElement} el - element want to know real size (\"real size\" -> size without scrollbar)\n * @returns {number[]} real size [width, height]\n */\nAutoScroll.prototype.getRealSize = function(el) {\n var computed = domutil.getComputedStyle(el),\n border,\n padding;\n\n border = parseFloat(computed.getPropertyValue('border-top-width')) +\n parseFloat(computed.getPropertyValue('border-bottom-width'));\n padding = parseFloat(computed.getPropertyValue('padding-top')) +\n parseFloat(computed.getPropertyValue('padding-bottom'));\n\n return [el.clientWidth + border + padding, el.clientHeight + border + padding];\n};\n\n/**\n * Check supplied element has scrollbar.\n * @param {HTMLElement} el - element want to know has scrollbar.\n * @returns {boolean[]} has scrollbar? [horizontal, vertical]\n */\nAutoScroll.prototype.hasScrollbar = function(el) {\n var realSize = this.getRealSize(el);\n\n return [\n el.offsetWidth > Math.ceil(realSize[0]),\n el.offsetHeight > Math.ceil(realSize[1])\n ];\n};\n\n/**\n * @param {HTMLElement} el - element want to know.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {boolean} mouse pointer is on the scrollbar?\n */\nAutoScroll.prototype.isOnScrollbar = function(el, mouseEvent) {\n var realSize = this.getRealSize(el),\n pos = domevent.getMousePosition(mouseEvent, el),\n mouseInScrollbar = false;\n\n mouseInScrollbar = (realSize[0] - SCROLL_CLICK_INCREASED < pos[0] ||\n realSize[1] - SCROLL_CLICK_INCREASED < pos[1]);\n\n return mouseInScrollbar;\n};\n\n/**\n * MouseDown event handler\n * @param {MouseEvent} mouseDownEvent - mouse down event\n */\nAutoScroll.prototype._onMouseDown = function(mouseDownEvent) {\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n // deactivate autoscroll feature when mouse is on the scrollbar. (IE)\n if (util.browser.msie && this.isOnScrollbar(this.container, mouseDownEvent)) {\n return;\n }\n\n window.clearInterval(this._intervalID);\n this._intervalID = window.setInterval(util.bind(this._onTick, this), SCROLL_INTERVAL);\n\n domevent.on(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * MouseMove event handler\n * @param {MouseEvent} mouseEvent - mouse move event object.\n */\nAutoScroll.prototype._onMouseMove = function(mouseEvent) {\n var edge = this._getEdgePositions(this.container.getBoundingClientRect()),\n pos = Point.n(domevent.getMousePosition(mouseEvent));\n\n if (pos.y >= edge.top && pos.y <= edge.bottom &&\n pos.x >= edge.left && pos.x <= edge.right) {\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n return;\n }\n\n if (pos.y < edge.top) {\n this._direction = AutoScroll.DIRECTION.TOP;\n this._offset = edge.top - pos.y;\n\n return;\n }\n\n if (pos.y > edge.bottom) {\n this._direction = AutoScroll.DIRECTION.BOTTOM;\n this._offset = pos.y - edge.bottom;\n\n return;\n }\n\n if (pos.x < edge.left) {\n this._direction = AutoScroll.DIRECTION.LEFT;\n this._offset = edge.left - pos.x;\n\n return;\n }\n\n this._direction = AutoScroll.DIRECTION.RIGHT;\n this._offset = pos.x - edge.right;\n};\n\n/**\n * MouseUp event handler.\n */\nAutoScroll.prototype._onMouseUp = function() {\n window.clearInterval(this._intervalID);\n this._intervalID = 0;\n this._direction = AutoScroll.DIRECTION.INSIDE;\n this._offset = 0;\n\n domevent.off(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * Interval tick event handler\n */\nAutoScroll.prototype._onTick = function() {\n var direction = this._direction,\n container,\n factor;\n\n if (!direction) {\n return;\n }\n\n container = this.container;\n factor = Math.min(this._offset, SCROLL_MAX);\n\n switch (direction) {\n case AutoScroll.DIRECTION.TOP:\n container.scrollTop -= factor;\n break;\n case AutoScroll.DIRECTION.RIGHT:\n container.scrollLeft += factor;\n break;\n case AutoScroll.DIRECTION.BOTTOM:\n container.scrollTop += factor;\n break;\n default:\n container.scrollLeft -= factor;\n break;\n }\n};\n\nmodule.exports = AutoScroll;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.isPrimary : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.program(10, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":26,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none;\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.timeSlots : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":12},\"end\":{\"line\":9,\"column\":23}}})) != null ? stack1 : \"\")\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (data && data.root)) && stack1.showHourMarker),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":12},\"end\":{\"line\":14,\"column\":19}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"timegridDisplayPrimayTime-tmpl\"]||(depth0 && depth0[\"timegridDisplayPrimayTime-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"timegridDisplayPrimayTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":68},\"end\":{\"line\":7,\"column\":109}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n return \"display:none\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \"\n + ((stack1 = (helpers[\"timegridCurrentTime-tmpl\"]||(depth0 && depth0[\"timegridCurrentTime-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":223},\"end\":{\"line\":12,\"column\":258}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.timeSlots : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":12},\"end\":{\"line\":20,\"column\":23}}})) != null ? stack1 : \"\")\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (data && data.root)) && stack1.showHourMarker),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":12},\"end\":{\"line\":25,\"column\":19}}})) != null ? stack1 : \"\");\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"timegridDisplayTime-tmpl\"]||(depth0 && depth0[\"timegridDisplayTime-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"timegridDisplayTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":68},\"end\":{\"line\":18,\"column\":103}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \"\n + ((stack1 = (helpers[\"timegridCurrentTime-tmpl\"]||(depth0 && depth0[\"timegridCurrentTime-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":171},\"end\":{\"line\":23,\"column\":206}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n
    \\n\";\n},\"16\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-bottom: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderBottom), depth0))\n + \";\\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n
    today
    \\n
    \\n
    \\n
    \\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.timezones : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":32,\"column\":8},\"end\":{\"line\":40,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.showHourMarker : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(18, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":46,\"column\":4},\"end\":{\"line\":53,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(helpers.and||(depth0 && depth0.and)||alias2).call(alias1,(depth0 != null ? depth0.isPrimary : depth0),((stack1 = (data && data.root)) && stack1.showTimezoneCollapseButton),{\"name\":\"and\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":14},\"end\":{\"line\":4,\"column\":62}}}),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":10,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \"\n + ((stack1 = (helpers[\"timezoneDisplayLabel-tmpl\"]||(depth0 && depth0[\"timezoneDisplayLabel-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.timezoneOffset : depth0),(depth0 != null ? depth0.displayLabel : depth0),{\"name\":\"timezoneDisplayLabel-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":59},\"end\":{\"line\":11,\"column\":118}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none;\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n \\n \\n \\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":84},\"end\":{\"line\":7,\"column\":98}}}) : helper)))\n + \"ic-arrow-right\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":120},\"end\":{\"line\":7,\"column\":134}}}) : helper)))\n + \"ic-arrow-left\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return ((stack1 = helpers.each.call(alias1,(helpers.reverse||(depth0 && depth0.reverse)||container.hooks.helperMissing).call(alias1,(depth0 != null ? depth0.timezones : depth0),{\"name\":\"reverse\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":8},\"end\":{\"line\":1,\"column\":27}}}),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":14,\"column\":11}}})) != null ? stack1 : \"\");\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers[\"timegridCurrentTime-tmpl\"]||(depth0 && depth0[\"timegridCurrentTime-tmpl\"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":1,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"useData\":true});","module.exports = __WEBPACK_EXTERNAL_MODULE__76__;","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":150},\"end\":{\"line\":3,\"column\":164}}}) : helper)))\n + \"hide\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
  • \\n \\n \"\n + alias4(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"name\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":60},\"end\":{\"line\":14,\"column\":68}}}) : helper)))\n + \"\\n
  • \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":135},\"end\":{\"line\":24,\"column\":149}}}) : helper)))\n + \"public\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n return \" checked\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.state || (depth0 != null ? depth0.state : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"state\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":55,\"column\":99},\"end\":{\"line\":55,\"column\":108}}}) : helper)));\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper;\n\n return ((stack1 = ((helper = (helper = helpers[\"popupStateBusy-tmpl\"] || (depth0 != null ? depth0[\"popupStateBusy-tmpl\"] : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupStateBusy-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":55,\"column\":116},\"end\":{\"line\":55,\"column\":141}}}) : helper))) != null ? stack1 : \"\");\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, helper;\n\n return ((stack1 = ((helper = (helper = helpers[\"popupUpdate-tmpl\"] || (depth0 != null ? depth0[\"popupUpdate-tmpl\"] : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupUpdate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":70,\"column\":163},\"end\":{\"line\":70,\"column\":185}}}) : helper))) != null ? stack1 : \"\");\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper;\n\n return ((stack1 = ((helper = (helper = helpers[\"popupSave-tmpl\"] || (depth0 != null ? depth0[\"popupSave-tmpl\"] : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupSave-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":70,\"column\":193},\"end\":{\"line\":70,\"column\":213}}}) : helper))) != null ? stack1 : \"\");\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n
    \\n \\n
      \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.calendars : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":16},\"end\":{\"line\":16,\"column\":25}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n \\n \\n
    \\n \\n
    \\n
    \\n
    \\n \\n \\n
    \\n
    \\n
    \\n
    \\n \\n \\n
    \\n
    \\n -\\n
    \\n \\n \\n
    \\n
    \\n
    \\n \\n \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"popupIsAllDay-tmpl\"] || (depth0 != null ? depth0[\"popupIsAllDay-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupIsAllDay-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":49,\"column\":52},\"end\":{\"line\":49,\"column\":76}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n \\n
      \\n
    • \\n \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"popupStateBusy-tmpl\"] || (depth0 != null ? depth0[\"popupStateBusy-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupStateBusy-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":61,\"column\":52},\"end\":{\"line\":61,\"column\":77}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    • \\n
    • \\n \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"popupStateFree-tmpl\"] || (depth0 != null ? depth0[\"popupStateFree-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupStateFree-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":65,\"column\":52},\"end\":{\"line\":65,\"column\":77}}}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    • \\n
    \\n
    \\n \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"popupDetailLocation-tmpl\"]||(depth0 && depth0[\"popupDetailLocation-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{\"name\":\"popupDetailLocation-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":182},\"end\":{\"line\":11,\"column\":221}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"popupDetailRepeat-tmpl\"]||(depth0 && depth0[\"popupDetailRepeat-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{\"name\":\"popupDetailRepeat-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":186},\"end\":{\"line\":12,\"column\":223}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"popupDetailUser-tmpl\"]||(depth0 && depth0[\"popupDetailUser-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{\"name\":\"popupDetailUser-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":218},\"end\":{\"line\":13,\"column\":253}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"popupDetailState-tmpl\"]||(depth0 && depth0[\"popupDetailState-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{\"name\":\"popupDetailState-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":176},\"end\":{\"line\":14,\"column\":212}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \"\n + alias4(alias5(((stack1 = (depth0 != null ? depth0.calendar : depth0)) != null ? stack1.name : stack1), depth0))\n + \"
    \\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = (helpers[\"popupDetailBody-tmpl\"]||(depth0 && depth0[\"popupDetailBody-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.schedule : depth0),{\"name\":\"popupDetailBody-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":151},\"end\":{\"line\":18,\"column\":186}}})) != null ? stack1 : \"\")\n + \"
    \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n return \"\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \\n
    \\n \\n
    \\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n
    \\n
    \\n \\n \"\n + alias4(alias5(((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.title : stack1), depth0))\n + \"\\n
    \\n
    \"\n + ((stack1 = (helpers[\"popupDetailDate-tmpl\"]||(depth0 && depth0[\"popupDetailDate-tmpl\"])||alias2).call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.isAllDay : stack1),((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.start : stack1),((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.end : stack1),{\"name\":\"popupDetailDate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":73},\"end\":{\"line\":8,\"column\":145}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n \"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.location : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":8},\"end\":{\"line\":11,\"column\":241}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.recurrenceRule : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":8},\"end\":{\"line\":12,\"column\":243}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.attendees : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":8},\"end\":{\"line\":13,\"column\":273}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.state : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":8},\"end\":{\"line\":14,\"column\":232}}})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.calendar : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(9, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":8},\"end\":{\"line\":17,\"column\":15}}})) != null ? stack1 : \"\")\n + \" \"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.body : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":8},\"end\":{\"line\":18,\"column\":206}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.schedule : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.program(15, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":4},\"end\":{\"line\":27,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Dayname click event hander module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayName} [dayNameView] - DayName view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction DayNameClick(dragHandler, dayNameView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {DayName}\n */\n this.dayNameView = dayNameView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayNameClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.dayNameView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nDayNameClick.prototype.checkExpectCondition = function(target) {\n var container = domutil.closest(target, config.classname('.dayname-date-area'));\n\n if (!container) {\n return false;\n }\n\n return true;\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits DayNameClick#clickDayname\n */\nDayNameClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n daynameView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.dayname'));\n\n if (!daynameView || !blockElement) {\n return;\n }\n\n /**\n * @events DayNameClick#clickDayname\n * @type {object}\n * @property {string} date - click date\n */\n self.fire('clickDayname', {\n date: domutil.getData(blockElement, 'date')\n });\n};\n\nutil.CustomEvents.mixin(DayNameClick);\n\nmodule.exports = DayNameClick;\n","/**\n * @fileoverview Click handle module for daygrid schedules\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar DayGridMove = require('./move');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - daygrid view instance.\n * @param {Base} [controller] - Base controller instance.\n */\nfunction DayGridClick(dragHandler, view, controller) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * @type {Base}\n */\n this.controller = controller;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy handler module\n */\nDayGridClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.view = this.controller = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nDayGridClick.prototype.checkExpectCondition = DayGridMove.prototype.checkExpectedCondition;\n\n/**\n * Click event handler\n * @param {object} clickEvent - click event data\n * @emits DayGridClick#clickSchedule\n * @emits DayGridClick#collapse\n * @emits DayGridClick#expand\n */\nDayGridClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n dayGridScheduleView = this.checkExpectCondition(target),\n scheduleCollection = this.controller.schedules,\n collapseBtnElement = domutil.closest(\n target,\n config.classname('.weekday-collapse-btn')\n ),\n expandBtnElement = domutil.closest(\n target,\n config.classname('.weekday-exceed-in-week')\n ),\n containsTarget = this.view.container.contains(target);\n var blockElement, scheduleElement;\n\n if (!containsTarget) {\n return;\n }\n\n if (collapseBtnElement) {\n /**\n * click collpase btn event\n * @events DayGridClick#collapse\n */\n self.fire('collapse');\n\n return;\n }\n\n if (expandBtnElement) {\n this.view.setState({\n clickedExpandBtnIndex: parseInt(domutil.getData(expandBtnElement, 'index'), 10)\n });\n\n /**\n * click expand btn event\n * @events DayGridClick#expand\n */\n self.fire('expand');\n\n return;\n }\n\n if (!dayGridScheduleView) {\n return;\n }\n\n scheduleElement = domutil.closest(target, config.classname('.weekday-schedule'));\n if (scheduleElement) {\n blockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events DayGridClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(DayGridClick);\n\nmodule.exports = DayGridClick;\n","/**\n * @fileoverview Effect module for DayGrid.Move\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * Class for DayGrid.Move dragging effect.\n * @constructor\n * @param {DayGridMove} daygridMove - instance of DayGridMove.\n */\nfunction DayGridMoveGuide(daygridMove) {\n /**\n * @type {DayGridMove}\n */\n this.daygridMove = daygridMove;\n\n /**\n * The element that actually contains the event element\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {number}\n */\n this._dragStartXIndex = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n daygridMove.on({\n 'dragstart': this._onDragStart,\n 'drag': this._onDrag,\n 'dragend': this._clearGuideElement,\n 'click': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.daygridMove.off(this);\n this.daygridMove = this.scheduleContainer = this._dragStartXIndex =\n this.elements = this.guideElement = null;\n};\n\n/**\n * Clear guide element.\n */\nDayGridMoveGuide.prototype._clearGuideElement = function() {\n this._showOriginScheduleBlocks();\n\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._dragStartXIndex = this.getScheduleDataFunc = this.guideElement = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nDayGridMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n var scheduleBlocks = domutil.find(\n config.classname('.weekday-schedule-block'),\n this.daygridMove.view.container,\n true\n );\n\n this.elements = util.filter(scheduleBlocks, function(schedule) {\n return domutil.getData(schedule, 'id') === modelID;\n });\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nDayGridMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\n/**\n * Highlight element blocks\n * @param {Schedule} model - model\n * @param {HTMLElement} parent - parent element\n */\nDayGridMoveGuide.prototype._highlightScheduleBlocks = function(model, parent) {\n var elements = domutil.find(config.classname('.weekday-schedule'), parent, true);\n\n util.forEach(elements, function(el) {\n el.style.margin = '0';\n\n if (!model.isFocused) {\n el.style.backgroundColor = model.dragBgColor;\n el.style.borderLeftColor = model.borderColor;\n el.style.color = '#ffffff';\n }\n });\n};\n\n/**\n * Refresh guide element.\n * @param {number} leftPercent - left percent of guide element.\n * @param {number} widthPercent - width percent of guide element.\n * @param {boolean} isExceededLeft - schedule start is faster then render start date?\n * @param {boolean} isExceededRight - schedule end is later then render end date?\n */\nDayGridMoveGuide.prototype.refreshGuideElement = function(leftPercent, widthPercent, isExceededLeft, isExceededRight) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n\n if (isExceededLeft) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-left'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-left'));\n }\n\n if (isExceededRight) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-right'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-right'));\n }\n });\n};\n\n/**\n * Get schedule block information from schedule data.\n *\n * For example, there is single schedule has 10 length. but render range in view is 5 then\n * rendered block must be cut out to render properly. in this case, this method return\n * how many block are cut before rendering.\n *\n * @param {object} dragStartEventData - schedule data from DayGrid.Move handler.\n * @returns {function} function that return schedule block information.\n */\nDayGridMoveGuide.prototype._getScheduleBlockDataFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n datesInRange = dragStartEventData.datesInRange,\n range = dragStartEventData.range,\n baseWidthPercent = (100 / datesInRange),\n originScheduleStarts = datetime.start(model.start),\n originScheduleEnds = datetime.end(model.end),\n renderStartDate = datetime.start(range[0]),\n renderEndDate = datetime.end(range[range.length - 1]),\n fromLeft = Math.ceil((originScheduleStarts.getTime() -\n renderStartDate.getTime()) / datetime.MILLISECONDS_PER_DAY) || 0,\n fromRight = Math.ceil((originScheduleEnds.getTime() -\n renderEndDate.getTime()) / datetime.MILLISECONDS_PER_DAY) || 0;\n\n return function(indexOffset) {\n return {\n baseWidthPercent: baseWidthPercent,\n fromLeft: fromLeft + indexOffset,\n fromRight: fromRight + indexOffset\n };\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nDayGridMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var container = this.daygridMove.view.container,\n guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n this._hideOriginScheduleBlocks(String(dragStartEventData.model.cid()));\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), container);\n domutil.appendHTMLElement('div', guideElement, config.classname('weekday-schedule-cover'));\n scheduleContainer.appendChild(guideElement);\n\n this._dragStartXIndex = dragStartEventData.xIndex;\n this.getScheduleDataFunc = this._getScheduleBlockDataFunc(dragStartEventData);\n\n this._highlightScheduleBlocks(dragStartEventData.model, guideElement);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nDayGridMoveGuide.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStartXIndex = this._dragStartXIndex,\n datesInRange = dragEventData.datesInRange,\n grids = dragEventData.grids,\n scheduleData,\n isExceededLeft,\n isExceededRight,\n originLength,\n leftIndex,\n size,\n newLeft,\n newWidth;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.xIndex - dragStartXIndex);\n isExceededLeft = scheduleData.fromLeft < 0;\n isExceededRight = scheduleData.fromRight > 0;\n\n leftIndex = Math.max(0, scheduleData.fromLeft);\n originLength = (scheduleData.fromLeft * -1) + (datesInRange + scheduleData.fromRight);\n size = isExceededLeft ? (originLength + scheduleData.fromLeft) : originLength;\n size = isExceededRight ? (size - scheduleData.fromRight) : size;\n\n newLeft = grids[leftIndex] ? grids[leftIndex].left : 0;\n newWidth = getScheduleBlockWidth(leftIndex, size, grids);\n\n this.refreshGuideElement(newLeft, newWidth, isExceededLeft, isExceededRight);\n};\n\n/**\n * Get schedule width based on grids\n * @param {number} left - left index\n * @param {number} size - schedule width\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getScheduleBlockWidth(left, size, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n for (; i < size; i += 1) {\n left = (left + i) % length;\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nmodule.exports = DayGridMoveGuide;\n","/**\n * @fileoverview Handler module for WeekdayInWeek view's creation actions.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar dayGridCore = require('./core');\nvar DayGridCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CutomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - DayGrid view instance.\n * @param {Base} [controller] - Base controller instance.\n * @param {Options} [options] - calendar Options\n */\nfunction DayGridCreation(dragHandler, view, controller, options) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {DayGridCreationGuide}\n */\n this.guide = new DayGridCreationGuide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(view.container, 'dblclick', this._onDblClick, this);\n }\n}\n\n/**\n * Destroy method\n */\nDayGridCreation.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (this.view && this.view.container) {\n domevent.off(this.view.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.view = this.controller = this.getScheduleDataFunc = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nDayGridCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target).trim();\n var excludeTarget = true;\n var matches, schedulesElement;\n\n if (domutil.closest(target, config.classname('.weekday-exceed-in-week'))\n || domutil.closest(target, config.classname('.weekday-collapse-btn'))\n ) {\n return false;\n }\n\n if (domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget)) {\n return false;\n }\n\n schedulesElement = domutil.closest(target, config.classname('.weekday-schedules'));\n if (!schedulesElement && cssClass !== config.classname('weekday-schedules')) {\n return false;\n }\n\n target = schedulesElement ? schedulesElement.parentNode : target.parentNode;\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * Request schedule model creation to controller by custom schedules.\n * @fires {DayGridCreation#beforeCreateSchedule}\n * @param {object} scheduleData - schedule data from DayGridCreation module.\n */\nDayGridCreation.prototype._createSchedule = function(scheduleData) {\n var dateRange = scheduleData.range,\n startXIndex = scheduleData.dragStartXIndex,\n xIndex = scheduleData.xIndex,\n start, end;\n\n // when inverse start, end then change it.\n if (xIndex < startXIndex) {\n startXIndex = xIndex + startXIndex;\n xIndex = startXIndex - xIndex;\n startXIndex = startXIndex - xIndex;\n }\n\n start = new TZDate(dateRange[startXIndex]);\n end = datetime.end(dateRange[xIndex]);\n\n /**\n * @event {DayGridCreation#beforeCreateSchedule}\n * @type {object}\n * @property {string} category - schedule category\n * @property {boolean} isAllDay - whether schedule is fired in view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {DayGridCreationGuide} guide - DayGridCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n category: this.view.options.viewName,\n isAllDay: true,\n start: start,\n end: end,\n guide: this.guide,\n triggerEventName: scheduleData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler method.\n * @emits DayGridCreation#dragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler schedule data.\n */\nDayGridCreation.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n\n scheduleData = getScheduleDataFunc(dragStartEventData.originEvent);\n\n /**\n * @event DayGridCreation#dragstart\n * @type {object}\n * @property {DayGridView} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridCreation#drag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nDayGridCreation.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent);\n\n /**\n * @event DayGridCreation#drag\n * @type {object}\n * @property {DayGridView} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('drag', scheduleData);\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridCreation#dragend\n * @param {object} dragEndEventData - Drag#dragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n */\nDayGridCreation.prototype._onDragEnd = function(dragEndEventData, overrideEventName) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n var scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\n this._createSchedule(scheduleData);\n\n /**\n * @event DayGridCreation#dragend\n * @type {object}\n * @property {DayGridView} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridCreation#click\n * @param {object} clickEventData - Drag#click event handler data.\n */\nDayGridCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target) || this._disableClick) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, clickEventData.originEvent);\n scheduleData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('click', scheduleData);\n self._createSchedule(scheduleData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Dblclick event handler method.\n * @emits DayGridCreation#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridCreation.prototype._onDblClick = function(clickEventData) {\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target)) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, clickEventData);\n scheduleData = getScheduleDataFunc(clickEventData);\n\n this.fire('click', scheduleData);\n\n this._createSchedule(scheduleData);\n\n this._requestOnClick = false;\n};\n\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nDayGridCreation.prototype.invokeCreationClick = function(schedule) {\n var getScheduleDataFunc, scheduleData;\n\n getScheduleDataFunc = this._retriveScheduleDataFromDate(this.view, schedule.start);\n scheduleData = getScheduleDataFunc(schedule.start);\n\n this.fire('click', scheduleData);\n\n this._createSchedule(scheduleData);\n};\n\ncommon.mixin(dayGridCore, DayGridCreation);\nutil.CustomEvents.mixin(DayGridCreation);\n\nmodule.exports = DayGridCreation;\n","/**\n * @fileoverview Guide element for DayGrid.Creation\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * Class for DayGrid.Creation dragging effect.\n * @constructor\n * @param {DayGridCreation} creation - instance of DayGridCreation.\n */\nfunction DayGridCreationGuide(creation) {\n /**\n * @type {DayGridCreation}\n */\n this.creation = creation;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = document.createElement('div');\n\n this.initializeGuideElement();\n this.applyTheme(creation.controller.theme);\n\n creation.on({\n dragstart: this._createGuideElement,\n drag: this._onDrag,\n click: this._createGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.creation.off(this);\n this.creation = this.scheduleContainer = this.guideElement = null;\n};\n\n/**\n * initialize guide element's default style.\n */\nDayGridCreationGuide.prototype.initializeGuideElement = function() {\n domutil.addClass(this.guideElement, config.classname('daygrid-guide-creation-block'));\n};\n\n/**\n * Drag event handler\n * @param {object} scheduleData - schedule data from DayGrid.Creation handler.\n */\nDayGridCreationGuide.prototype._onDrag = function(scheduleData) {\n this._refreshGuideElement(scheduleData, true);\n};\n\n/**\n * Get element width based on narrowWeekend\n * @param {number} dragStartIndex - grid start index\n * @param {number} dragEndIndex - grid end index\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nDayGridCreationGuide.prototype._getGuideWidth = function(dragStartIndex, dragEndIndex, grids) {\n var width = 0;\n var i = dragStartIndex;\n for (; i <= dragEndIndex; i += 1) {\n width += grids[i] ? grids[i].width : 0;\n }\n\n return width;\n};\n\n/**\n * Refresh guide element.\n * @param {object} scheduleData - schedule data from DayGrid.Creation handler.\n * @param {boolean} defer - If set to true, set style in the next frame\n */\nDayGridCreationGuide.prototype._refreshGuideElement = function(scheduleData, defer) {\n var guideElement = this.guideElement,\n data = scheduleData,\n dragStartXIndex = data.dragStartXIndex < data.xIndex ? data.dragStartXIndex : data.xIndex,\n dragEndXIndex = data.dragStartXIndex < data.xIndex ? data.xIndex : data.dragStartXIndex,\n leftPercent,\n widthPercent;\n\n leftPercent = data.grids[dragStartXIndex] ? data.grids[dragStartXIndex].left : 0;\n widthPercent = this._getGuideWidth(dragStartXIndex, dragEndXIndex, data.grids);\n\n /** eslint-disable require-jsdoc */\n function setStyle() {\n guideElement.style.display = 'block';\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n }\n\n if (defer) {\n reqAnimFrame.requestAnimFrame(setStyle);\n } else {\n setStyle();\n }\n};\n\n/**\n * Clear guide element.\n */\nDayGridCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement;\n\n domutil.remove(guideElement);\n\n guideElement.style.display = 'none';\n guideElement.style.left = '';\n guideElement.style.width = '';\n};\n\n/**\n * Create guide element\n * @param {object} dragStartEventData - schedule data object of DayGrid.Creation.\n */\nDayGridCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var creation = this.creation,\n view = creation.view,\n container = view.container,\n scheduleContainer = domutil.find(config.classname('.weekday-grid'), container);\n\n scheduleContainer.appendChild(this.guideElement);\n this._refreshGuideElement(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - event data object of DayGrid.Creation.\n */\nDayGridCreationGuide.prototype._onDrag = function(dragEventData) {\n this._refreshGuideElement(dragEventData);\n};\n\nDayGridCreationGuide.prototype.applyTheme = function(theme) {\n var style = this.guideElement.style;\n\n style.backgroundColor = theme.common.creationGuide.backgroundColor;\n style.border = theme.common.creationGuide.border;\n};\n\nmodule.exports = DayGridCreationGuide;\n","/**\n * @fileoverview Resize handler module for DayGrid view.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar common = require('../../common/common');\nvar dayGridCore = require('./core');\nvar DayGridResizeGuide = require('./resizeGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - view instance.\n * @param {Base} [controller] - Base controller instance.\n */\nfunction DayGridResize(dragHandler, view, controller) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\n\n /**\n * Temporary variable for dragStart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {DayGridResizeGuide}\n */\n this.guide = new DayGridResizeGuide(this);\n}\n\n/**\n * Destroy method\n */\nDayGridResize.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.view = this.controller =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nDayGridResize.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (!~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n target = domutil.closest(target, config.classname('.weekday'));\n\n if (!target) {\n return false;\n }\n\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler.\n * @emits DayGridResize#dragstart\n * @param {object} dragStartEventData - schedule data.\n */\nDayGridResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.controller,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event DayGridResize#dragstart\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridResize#drag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nDayGridResize.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @event DayGridResize#drag\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('drag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule instance to base controller.\n * @fires DayGridResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from DayGridResize handler.\n */\nDayGridResize.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newEnds = new TZDate(schedule.end);\n var changes;\n\n newEnds = newEnds.addDate(dateOffset);\n newEnds = new TZDate(common.maxDate(datetime.end(schedule.start), newEnds));\n\n changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnds}\n );\n\n /**\n * @event DayGridResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridResize#dragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nDayGridResize.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event DayGridResize#dragend\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridResize#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridResize.prototype._onClick = function(clickEventData) {\n /**\n * @event DayGridResize#click\n * @type {object}\n * @property {View} relatedView - view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'click', true);\n};\n\ncommon.mixin(dayGridCore, DayGridResize);\nutil.CustomEvents.mixin(DayGridResize);\n\nmodule.exports = DayGridResize;\n","/**\n * @fileoverview Resize Guide module.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * @constructor\n * @param {DayGridResize} resizeHandler - instance of DayGridResize\n */\nfunction DayGridResizeGuide(resizeHandler) {\n /**\n * @type {DayGridResize}\n */\n this.resizeHandler = resizeHandler;\n\n /**\n * The element that actually contains the event element\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.scheduleBlockElement = null;\n\n resizeHandler.on({\n 'dragstart': this._onDragStart,\n 'drag': this._onDrag,\n 'dragend': this._clearGuideElement,\n 'click': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.resizeHandler.off(this);\n this.resizeHandler = this.scheduleContainer = this.getScheduleDataFunc =\n this.guideElement = this.scheduleBlockElement = null;\n};\n\n/**\n * Clear guide element.\n */\nDayGridResizeGuide.prototype._clearGuideElement = function() {\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n\n if (this.scheduleBlockElement) {\n domutil.removeClass(this.scheduleBlockElement, config.classname('weekday-schedule-block-dragging-dim'));\n }\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Refresh guide element\n * @param {number} newWidth - new width percentage value to resize guide element.\n */\nDayGridResizeGuide.prototype.refreshGuideElement = function(newWidth) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.width = newWidth + '%';\n });\n};\n\n/**\n * Return function that calculate guide element's new width percentage value.\n * @param {object} dragStartEventData - dragstart schedule data.\n * @returns {function} return function that calculate guide element new width percentage.\n */\nDayGridResizeGuide.prototype.getGuideElementWidthFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n viewOptions = this.resizeHandler.view.options,\n fromLeft = Math.ceil(\n (model.start - viewOptions.renderStartDate) / datetime.MILLISECONDS_PER_DAY\n ) || 0,\n grids = dragStartEventData.grids;\n\n return function(xIndex) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n width += grids[fromLeft] ? grids[fromLeft].width : 0;\n\n for (; i < length; i += 1) {\n if (i > fromLeft && i <= xIndex) {\n width += grids[i] ? grids[i].width : 0;\n }\n }\n\n return width;\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nDayGridResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var container = this.resizeHandler.view.container,\n scheduleBlockElement = this.scheduleBlockElement = dragStartEventData.scheduleBlockElement,\n guideElement = this.guideElement = scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), container);\n domutil.addClass(guideElement, config.classname('daygrid-guide-move'));\n domutil.addClass(scheduleBlockElement, config.classname('weekday-schedule-block-dragging-dim'));\n\n scheduleContainer.appendChild(guideElement);\n\n this.getScheduleDataFunc = this.getGuideElementWidthFunc(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nDayGridResizeGuide.prototype._onDrag = function(dragEventData) {\n var func = this.getScheduleDataFunc;\n\n if (!func) {\n return;\n }\n\n this.refreshGuideElement(func(dragEventData.xIndex));\n};\n\nmodule.exports = DayGridResizeGuide;\n","/**\n * @fileoverview Allday event click event hander module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeClick(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.timeGridView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nTimeClick.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits TimeClick#clickEvent\n */\nTimeClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n schedulesCollection = this.baseController.schedules;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n schedulesCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events TimeClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n};\n\nutil.CustomEvents.mixin(TimeClick);\n\nmodule.exports = TimeClick;\n","/**\n * @fileoverview Handling creation events from drag handler and time grid view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar common = require('../../common/common');\nvar TimeCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n * @param {Options} [options] - calendar Options\n */\nfunction TimeCreation(dragHandler, timeGridView, baseController, options) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * TimeGrid view instance.\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {TimeCreationGuide}\n */\n this.guide = new TimeCreationGuide(this);\n\n /**\n * Temporary function for single drag session's calc.\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * Temporary function for drag start data cache.\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(timeGridView.container, 'dblclick', this._onDblClick, this);\n }\n}\n\n/**\n * Destroy method\n */\nTimeCreation.prototype.destroy = function() {\n var timeGridView = this.timeGridView;\n\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (timeGridView && timeGridView.container) {\n domevent.off(timeGridView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this.guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {(boolean|Time)} - return Time view instance when satiate condition.\n */\nTimeCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (cssClass === config.classname('time-date-schedule-block-wrap')) {\n target = target.parentNode;\n cssClass = domutil.getClass(target);\n }\n\n matches = cssClass.match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, matches[1]);\n};\n\n/**\n * Drag#dragStart event handler.\n * @emits TimeCreation#timeCreationDragstart\n * @param {object} dragStartEventData - Drag#dragStart event data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDragStart = function(dragStartEventData, overrideEventName, revise) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n eventData;\n\n if (!result) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(result);\n eventData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @event TimeCreation#timeCreationDragstart\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDragstart', eventData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeCreation#timeCreationDrag\n * @param {object} dragEventData - event data from Drag#drag.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n eventData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n eventData = getScheduleDataFunc(dragEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDrag\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDrag', eventData);\n};\n\n/**\n * @fires TimeCreation#beforeCreateSchedule\n * @param {object} eventData - event data object from TimeCreation#timeCreationDragend\n * or TimeCreation#timeCreationClick\n */\nTimeCreation.prototype._createSchedule = function(eventData) {\n var relatedView = eventData.relatedView,\n createRange = eventData.createRange,\n nearestGridTimeY = eventData.nearestGridTimeY,\n nearestGridEndTimeY = eventData.nearestGridEndTimeY\n ? eventData.nearestGridEndTimeY\n : new TZDate(nearestGridTimeY).addMinutes(30),\n baseDate,\n dateStart,\n dateEnd,\n start,\n end;\n\n if (!createRange) {\n createRange = [\n nearestGridTimeY,\n nearestGridEndTimeY\n ];\n }\n\n baseDate = new TZDate(relatedView.getDate());\n dateStart = datetime.start(baseDate);\n dateEnd = datetime.getStartOfNextDay(baseDate);\n start = common.limitDate(createRange[0], dateStart, dateEnd);\n end = common.limitDate(createRange[1], dateStart, dateEnd);\n\n /**\n * @event TimeCreation#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: false,\n start: new TZDate(start),\n end: new TZDate(end),\n guide: this.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeCreation#timeCreationDragend\n * @param {object} dragEndEventData - event data from Drag#dragend\n */\nTimeCreation.prototype._onDragEnd = function(dragEndEventData) {\n var self = this,\n dragStart = this._dragStart;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * Function for manipulate event data before firing event\n * @param {object} eventData - event data\n */\n function reviseFunc(eventData) {\n var range = [\n dragStart.nearestGridTimeY,\n eventData.nearestGridTimeY\n ].sort(array.compare.num.asc);\n range[1].addMinutes(30);\n\n eventData.createRange = range;\n\n self._createSchedule(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDragend\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {number[]} createRange - milliseconds range between drag start and end to create.\n */\n this._onDrag(dragEndEventData, 'timeCreationDragend', reviseFunc);\n\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Drag#click event handler\n * @emits TimeCreation#timeCreationClick\n * @param {object} clickEventData - event data from Drag#click.\n */\nTimeCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var condResult, getScheduleDataFunc, eventData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n condResult = this.checkExpectedCondition(clickEventData.target);\n if (!condResult || this._disableClick) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('timeCreationClick', eventData);\n self._createSchedule(eventData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Dblclick event handler\n * @param {MouseEvent} e - Native MouseEvent\n */\nTimeCreation.prototype._onDblClick = function(e) {\n var condResult, getScheduleDataFunc, eventData;\n\n condResult = this.checkExpectedCondition(e.target);\n if (!condResult) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(e);\n\n this.fire('timeCreationClick', eventData);\n\n this._createSchedule(eventData);\n\n this._requestOnClick = false;\n};\n\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nTimeCreation.prototype.invokeCreationClick = function(schedule) {\n var opt = this.timeGridView.options,\n range = datetime.range(\n opt.renderStartDate,\n opt.renderEndDate,\n datetime.MILLISECONDS_PER_DAY),\n hourStart = opt.hourStart,\n targetDate = schedule.start;\n var getScheduleDataFunc, eventData, timeView;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, targetDate)) {\n timeView = this.timeGridView.children.toArray()[index];\n }\n }, this);\n\n // If start date is not in current date, set start date as first date.\n if (!timeView) {\n timeView = this.timeGridView.children.toArray()[0];\n }\n\n getScheduleDataFunc = this._retriveScheduleDataFromDate(timeView);\n eventData = getScheduleDataFunc(schedule.start, schedule.end, hourStart);\n\n this.fire('timeCreationClick', eventData);\n\n this._createSchedule(eventData);\n};\n\ntimeCore.mixin(TimeCreation);\nutil.CustomEvents.mixin(TimeCreation);\n\nmodule.exports = TimeCreation;\n","/**\n * @fileoverview Module for Time.Creation effect while dragging.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar TZDate = require('../../common/timezone').Date;\nvar MIN60 = (datetime.MILLISECONDS_PER_MINUTES * 60);\n\n/**\n * Class for Time.Creation dragging effect.\n * @constructor\n * @param {TimeCreation} timeCreation - instance of TimeCreation.\n */\nfunction TimeCreationGuide(timeCreation) {\n /**\n * Guide element for creation effect.\n * @type {HTMLElement}\n */\n this.guideElement = global.document.createElement('div');\n\n /**\n * @type {HTMLDivElement}\n */\n this.guideTimeElement = domutil.appendHTMLElement(\n 'span',\n this.guideElement,\n config.classname('time-guide-creation-label')\n );\n\n domutil.addClass(this.guideElement, config.classname('time-guide-creation'));\n\n /**\n * @type {TimeCreation}\n */\n this.timeCreation = timeCreation;\n\n /**\n * @type {array}\n */\n this._styleUnit = null;\n\n /**\n * @type {array}\n */\n this._styleStart = null;\n\n /**\n * @type {function}\n */\n this._styleFunc = null;\n\n timeCreation.on({\n timeCreationDragstart: this._createGuideElement,\n timeCreationDrag: this._onDrag,\n timeCreationClick: this._createGuideElement\n }, this);\n\n this.applyTheme(timeCreation.baseController.theme);\n}\n\n/**\n * Destroy method.\n */\nTimeCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.timeCreation.off(this);\n this.timeCreation = this._styleUnit = this._styleStart =\n this._styleFunc = this.guideElement = this.guideTimeElement = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement,\n timeElement = this.guideTimeElement;\n\n domutil.remove(guideElement);\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.display = 'none';\n guideElement.style.top = '';\n guideElement.style.height = '';\n timeElement.innerHTML = '';\n });\n};\n\n/**\n * Refresh guide element\n * @param {number} top - The number of guide element's style top\n * @param {number} height - The number of guide element's style height\n * @param {TZDate} start - start time of schedule to create\n * @param {TZDate} end - end time of schedule to create\n * @param {boolean} bottomLabel - is label need to render bottom of guide element?\n */\nTimeCreationGuide.prototype._refreshGuideElement = function(top, height, start, end, bottomLabel) {\n var guideElement = this.guideElement;\n var timeElement = this.guideTimeElement;\n\n guideElement.style.top = top + 'px';\n guideElement.style.height = height + 'px';\n guideElement.style.display = 'block';\n\n timeElement.innerHTML = datetime.format(start, 'HH:mm') +\n ' - ' + datetime.format(end, 'HH:mm');\n\n if (bottomLabel) {\n domutil.removeClass(timeElement, config.classname('time-guide-bottom'));\n } else {\n domutil.addClass(timeElement, config.classname('time-guide-bottom'));\n }\n};\n\n/**\n * Get unit data of calculating new style of guide element by user interaction\n * @param {Time} relatedView - time view instance related with schedule\n * @returns {array} unit data.\n */\nTimeCreationGuide.prototype._getUnitData = function(relatedView) {\n var viewOpt = relatedView.options,\n viewHeight = relatedView.getViewBound().height,\n hourLength = viewOpt.hourEnd - viewOpt.hourStart,\n todayStart = datetime.parse(viewOpt.ymd),\n todayEnd = datetime.getStartOfNextDay(todayStart);\n\n todayStart.setHours(0, 0, 0, 0);\n todayStart.setHours(viewOpt.hourStart);\n\n // [0] height of view\n // [1] hour length of view\n // [2] start time of view\n // [3] end time of view\n // [4] height of view for one hour\n return [\n viewHeight,\n hourLength,\n todayStart,\n todayEnd,\n viewHeight / hourLength\n ];\n};\n\n/**\n * Applying limitation to supplied data and return it.\n * @param {number} top - top pixel of guide element\n * @param {number} height - height pixel of guide element\n * @param {TZDate} start - relative time value of dragstart point\n * @param {TZDate} end - relative time value of dragend point\n * @returns {array} limited style data\n */\nTimeCreationGuide.prototype._limitStyleData = function(top, height, start, end) {\n var unitData = this._styleUnit;\n\n top = common.limit(top, [0], [unitData[0]]);\n height = common.limit(top + height, [0], [unitData[0]]) - top;\n start = common.limitDate(start, unitData[2], unitData[3]);\n end = common.limitDate(end, unitData[2], unitData[3]);\n\n return [top, height, start, end];\n};\n\n/**\n * Get function to calculate guide element UI data from supplied units\n * @param {number} viewHeight - total height of view's container element\n * @param {number} hourLength - hour length that rendered in time view\n * @param {TZDate} todayStart - time for view's start date\n * @returns {function} UI data calculator function\n */\nTimeCreationGuide.prototype._getStyleDataFunc = function(viewHeight, hourLength, todayStart) {\n var todayStartTime = todayStart;\n var todayEndTime = datetime.end(todayStart);\n\n /**\n * Get top, time value from schedule data\n * @param {object} scheduleData - schedule data object\n * @returns {number[]} top, time\n */\n function getStyleData(scheduleData) {\n var minMinutes = 30;\n var gridY = scheduleData.nearestGridY,\n gridTimeY = scheduleData.nearestGridTimeY,\n gridEndTimeY = scheduleData.nearestGridEndTimeY || new TZDate(gridTimeY).addMinutes(minMinutes),\n top, startTime, endTime;\n\n top = common.limit(ratio(hourLength, viewHeight, gridY), [0], [viewHeight]);\n startTime = common.limitDate(gridTimeY, todayStartTime, todayEndTime);\n endTime = common.limitDate(gridEndTimeY, todayStartTime, todayEndTime);\n\n return [top, startTime, endTime];\n }\n\n return getStyleData;\n};\n\n/**\n * DragStart event handler\n * @param {object} dragStartEventData - dragStart schedule data.\n */\nTimeCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var relatedView = dragStartEventData.relatedView,\n hourStart = datetime.millisecondsFrom('hour', dragStartEventData.hourStart) || 0,\n unitData, styleFunc, styleData, result, top, height, start, end;\n\n unitData = this._styleUnit = this._getUnitData(relatedView);\n styleFunc = this._styleFunc = this._getStyleDataFunc.apply(this, unitData);\n styleData = this._styleStart = styleFunc(dragStartEventData);\n\n start = new TZDate(styleData[1]).addMinutes(datetime.minutesFromHours(hourStart));\n end = new TZDate(styleData[2]).addMinutes(datetime.minutesFromHours(hourStart));\n top = styleData[0];\n height = (unitData[4] * (end - start) / MIN60);\n\n result = this._limitStyleData(\n top,\n height,\n start,\n end\n );\n\n this._refreshGuideElement.apply(this, result);\n\n relatedView.container.appendChild(this.guideElement);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEventData - drag schedule data.\n */\nTimeCreationGuide.prototype._onDrag = function(dragEventData) {\n var minutes30 = 30;\n var styleFunc = this._styleFunc,\n unitData = this._styleUnit,\n startStyle = this._styleStart,\n refreshGuideElement = this._refreshGuideElement.bind(this),\n heightOfHalfHour,\n endStyle,\n result;\n\n if (!styleFunc || !unitData || !startStyle) {\n return;\n }\n\n heightOfHalfHour = (unitData[4] / 2);\n endStyle = styleFunc(dragEventData);\n\n if (endStyle[0] > startStyle[0]) {\n result = this._limitStyleData(\n startStyle[0],\n (endStyle[0] - startStyle[0]) + heightOfHalfHour,\n startStyle[1],\n new TZDate(endStyle[1]).addMinutes(minutes30)\n );\n } else {\n result = this._limitStyleData(\n endStyle[0],\n (startStyle[0] - endStyle[0]) + heightOfHalfHour,\n endStyle[1],\n new TZDate(startStyle[1]).addMinutes(minutes30)\n );\n result.push(true);\n }\n\n reqAnimFrame.requestAnimFrame(function() {\n refreshGuideElement.apply(null, result);\n });\n};\n\nTimeCreationGuide.prototype.applyTheme = function(theme) {\n var style = this.guideElement.style;\n var timeStyle = this.guideTimeElement.style;\n\n // block\n style.backgroundColor = theme.common.creationGuide.backgroundColor;\n style.border = theme.common.creationGuide.border;\n\n // label\n timeStyle.color = theme.week.creationGuide.color;\n timeStyle.fontSize = theme.week.creationGuide.fontSize;\n timeStyle.fontWeight = theme.week.creationGuide.fontWeight;\n};\n\nmodule.exports = TimeCreationGuide;\n","/**\n * @fileoverview Handling move schedules from drag handler and time grid view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\nvar TimeMoveGuide = require('./moveGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeMove(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeMoveGuide}\n */\n this._guide = new TimeMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('mousedown', this._onMouseDown, this);\n}\n\n/**\n * Destroy method.\n */\nTimeMove.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {boolean|object} - return object when satiate condition.\n */\nTimeMove.prototype.checkExpectCondition = function(target) {\n if (!domutil.closest(target, config.classname('.time-schedule'))) {\n return false;\n }\n\n return this._getTimeView(target);\n};\n\n/**\n * Get Time view container from supplied element.\n * @param {HTMLElement} target - element to find time view container.\n * @returns {object|boolean} - return time view instance when finded.\n */\nTimeMove.prototype._getTimeView = function(target) {\n var container = domutil.closest(target, config.classname('.time-date')),\n matches;\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeMove#mousedown\n * @param {object} mouseDownEventData - Drag#mousedown schedule data.\n */\nTimeMove.prototype._onMouseDown = function(mouseDownEventData) {\n var target = mouseDownEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block'));\n\n if (!timeView || !blockElement) {\n return;\n }\n\n // EventTarget.target is not changed in mousemove event even if mouse is over the other element.\n // It's different with other browsers(IE, Chrome, Safari)\n if (util.browser.firefox) {\n domevent.preventDefault(mouseDownEventData.originEvent);\n }\n};\n\n/**\n * @emits TimeMove#timeMoveDragstart\n * @param {object} dragStartEventData - Drag#dragStart schedule data.\n */\nTimeMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n getScheduleDataFunc,\n scheduleData,\n ctrl = this.baseController,\n targetModelID,\n targetModel;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n targetModelID = domutil.getData(blockElement, 'id');\n targetModel = ctrl.schedules.items[targetModelID];\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: targetModelID,\n model: targetModel\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeMove#timeMoveDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {Schedule} model - model instance\n */\n this.fire('timeMoveDragstart', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveDrag\n * @param {MouseEvent} dragEventData - mousemove event object\n * @param {string} [overrideEventName] - name of emitting event to override.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeMove.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n timeView = this._getTimeView(dragEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n if (!timeView || !getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n currentView: timeView,\n targetModelID: dragStart.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeMove#timeMoveDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeMoveDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeMove#timeMoveDragend\n */\nTimeMove.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n dateDiff = 0,\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n currentView = scheduleData.currentView,\n newStarts,\n newEnds;\n\n if (!schedule || !currentView) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n newStarts = new TZDate(schedule.getStarts()).addMilliseconds(timeDiff);\n newEnds = new TZDate(schedule.getEnds()).addMilliseconds(timeDiff);\n\n if (currentView) {\n dateDiff = currentView.getDate() - relatedView.getDate();\n }\n\n newStarts.addMilliseconds(dateDiff);\n newEnds.addMilliseconds(dateDiff);\n\n /**\n * @event TimeMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: {\n start: newStarts,\n end: newEnds\n },\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * @emits TimeMove#timeMoveDragend\n * @param {MouseEvent} dragEndEventData - mouseup mouse event object.\n */\nTimeMove.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n currentView = this._getTimeView(dragEndEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n currentView: currentView,\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n new TZDate(scheduleData.timeY).addMinutes(30)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n new TZDate(scheduleData.nearestGridTimeY).addMinutes(30)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeMove#timeMoveDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeMoveDragend', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveClick\n * @param {MouseEvent} clickEventData - click mouse event object.\n */\nTimeMove.prototype._onClick = function(clickEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(clickEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n /**\n * @event TimeMove#timeMoveClick\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire('timeMoveClick', scheduleData);\n};\n\ntimeCore.mixin(TimeMove);\nutil.CustomEvents.mixin(TimeMove);\n\nmodule.exports = TimeMove;\n","/**\n * @fileoverview Module for Time.Move effect while dragging.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar FloatingLayer = require('../../common/floatingLayer');\nvar tmpl = require('../../view/template/week/timeMoveGuide.hbs');\nvar TZDate = require('../../common/timezone').Date;\nvar Schedule = require('../../model/schedule');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * Class for Time.Move effect.\n * @constructor\n * @param {TimeMove} timeMove - The instance of TimeMove.\n */\nfunction TimeMoveGuide(timeMove) {\n /**\n * @type {FloatingLayer}\n */\n this._guideLayer = null;\n\n /**\n * @Type {Schedule}\n */\n this._model = null;\n\n /**\n * @type {object}\n */\n this._viewModel = null;\n\n /**\n * @type {object}\n */\n this._lastDrag = null;\n\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeMove}\n */\n this.timeMove = timeMove;\n\n /**\n * @type {HTMLElement}\n */\n this._container = null;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n timeMove.on({\n 'timeMoveDragstart': this._onDragStart,\n 'timeMoveDrag': this._onDrag,\n 'timeMoveDragend': this._clearGuideElement,\n 'timeMoveClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeMove.off(this);\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n this.guideElement = this.timeMove = this._container = this._guideLayer = this._lastDrag =\n this._getTopFunc = this._startGridY = this._startTopPixel = this._viewModel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeMoveGuide.prototype._clearGuideElement = function() {\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n\n this._showOriginScheduleBlocks();\n\n this.guideElement = this._getTopFunc = this._guideLayer = this._model = this._lastDrag =\n this._startGridY = this._startTopPixel = this._viewModel = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nTimeMoveGuide.prototype._hideOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.addClass(this.guideElement, className);\n }\n};\n\n/**\n * Show element blocks\n */\nTimeMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.removeClass(this.guideElement, className);\n }\n};\n\n/**\n * Refresh guide element\n * @param {string} top - guide element's style top.\n * @param {Schedule} model - updated model\n * @param {object} viewModel - view model\n */\nTimeMoveGuide.prototype._refreshGuideElement = function(top, model, viewModel) {\n var self = this;\n\n reqAnimFrame.requestAnimFrame(function() {\n if (!self._guideLayer) {\n return;\n }\n self._guideLayer.setPosition(0, top);\n self._guideLayer.setContent(tmpl(util.extend({model: model}, viewModel)));\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var guideElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n );\n var duration, modelDuration, goingDuration, comingDuration;\n\n if (!guideElement) {\n return;\n }\n\n this._startTopPixel = parseFloat(guideElement.style.top);\n this._startGridY = dragStartEventData.nearestGridY;\n this.guideElement = guideElement;\n this._container = dragStartEventData.relatedView.container;\n\n this._model = util.extend(\n Schedule.create(dragStartEventData.model),\n dragStartEventData.model\n );\n\n modelDuration = this._model.duration();\n modelDuration = modelDuration > SCHEDULE_MIN_DURATION ? modelDuration : SCHEDULE_MIN_DURATION;\n goingDuration = datetime.millisecondsFrom('minutes', this._model.goingDuration);\n comingDuration = datetime.millisecondsFrom('minutes', this._model.comingDuration);\n duration = goingDuration + modelDuration + comingDuration;\n\n this._lastDrag = dragStartEventData;\n this._viewModel = {\n hasGoingDuration: goingDuration > 0,\n hasComingDuration: comingDuration > 0,\n goingDurationHeight: common.ratio(duration, goingDuration, 100),\n modelDurationHeight: common.ratio(duration, modelDuration, 100),\n comingDurationHeight: common.ratio(duration, comingDuration, 100)\n };\n\n this._resetGuideLayer();\n this._hideOriginScheduleBlocks();\n};\n\n/**\n * TimeMove#timeMoveDrag event handler\n * @param {object} dragEventData - drag event data\n */\nTimeMoveGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.currentView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n guideHeight = parseFloat(this.guideElement.style.height),\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n gridDiff = dragEventData.nearestGridY - this._lastDrag.nearestGridY,\n bottomLimit,\n top;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n if (this._container !== timeView.container) {\n this._container = timeView.container;\n this._resetGuideLayer();\n }\n\n top = this._startTopPixel + gridYOffsetPixel;\n bottomLimit = viewHeight - guideHeight;\n\n top = Math.max(top, 0);\n top = Math.min(top, bottomLimit);\n\n // update time\n this._model.start = new TZDate(this._model.getStarts()).addMinutes(datetime.minutesFromHours(gridDiff));\n this._model.end = new TZDate(this._model.getEnds()).addMinutes(datetime.minutesFromHours(gridDiff));\n this._lastDrag = dragEventData;\n\n this._refreshGuideElement(top, this._model, this._viewModel);\n};\n\nTimeMoveGuide.prototype._resetGuideLayer = function() {\n if (this._guideLayer) {\n this._guideLayer.destroy();\n this._guideLayer = null;\n }\n this._guideLayer = new FloatingLayer(null, this._container);\n this._guideLayer.setSize(this._container.getBoundingClientRect().width, this.guideElement.style.height);\n this._guideLayer.setPosition(0, this.guideElement.style.top);\n this._guideLayer.setContent(tmpl(util.extend({model: this._model}, this._viewModel)));\n this._guideLayer.show();\n};\n\nmodule.exports = TimeMoveGuide;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \"\n + ((stack1 = (helpers[\"goingDuration-tmpl\"]||(depth0 && depth0[\"goingDuration-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"goingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":230},\"end\":{\"line\":4,\"column\":260}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \"\n + ((stack1 = (helpers[\"comingDuration-tmpl\"]||(depth0 && depth0[\"comingDuration-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"comingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":228},\"end\":{\"line\":10,\"column\":259}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
     
    \";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hasGoingDuration : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":8},\"end\":{\"line\":5,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"]||(depth0 && depth0[\"time-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":16},\"end\":{\"line\":7,\"column\":37}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hasComingDuration : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":8},\"end\":{\"line\":11,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.croppedEnd : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":4},\"end\":{\"line\":13,\"column\":104}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Handling resize schedules from drag handler and time grid view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar common = require('../../common/common');\nvar timeCore = require('./core');\nvar TimeResizeGuide = require('./resizeGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeResize(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeResizeGuide}\n */\n this._guide = new TimeResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destroy method\n */\nTimeResize.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * @param {HTMLElement} target - element to check condition.\n * @returns {object|boolean} - return time view instance or false\n */\nTimeResize.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n if (!domutil.hasClass(target, config.classname('time-resize-handle'))) {\n return false;\n }\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeResize#timeResizeDragstart\n * @param {object} dragStartEventData - event data of Drag#dragstart\n */\nTimeResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n ctrl = this.baseController,\n targetModelID,\n getScheduleDataFunc,\n scheduleData;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n targetModelID = domutil.getData(blockElement, 'id');\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: targetModelID,\n schedule: ctrl.schedules.items[targetModelID]\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {Schedule} schedule - schedule data\n */\n this.fire('timeResizeDragstart', scheduleData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeResize#timeResizeDrag\n * @param {object} dragEventData - event data of Drag#drag custom event.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeResize.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n startScheduleData = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !startScheduleData) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n targetModelID: startScheduleData.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeResize#timeResizeDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeResizeDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeResize#timeResizeDragend\n */\nTimeResize.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n dateEnd,\n newEnds,\n baseDate;\n var changes;\n\n if (!schedule) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n\n baseDate = new TZDate(relatedView.getDate());\n dateEnd = datetime.end(baseDate);\n newEnds = new TZDate(schedule.getEnds()).addMilliseconds(timeDiff);\n\n if (newEnds > dateEnd) {\n newEnds = new TZDate(dateEnd);\n }\n\n if (newEnds.getTime() - schedule.getStarts().getTime() < datetime.millisecondsFrom('minutes', 30)) {\n newEnds = new TZDate(schedule.getStarts()).addMinutes(30);\n }\n\n changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnds}\n );\n\n /**\n * @event TimeResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeResize#timeResizeDragend\n * @param {MouseEvent} dragEndEventData - Mouse event of Drag#dragEnd custom event.\n */\nTimeResize.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n new TZDate(scheduleData.timeY).addMinutes(30)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n scheduleData.nearestGridTimeY.addMinutes(30)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeResize#timeResizeDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeResizeDragend', scheduleData);\n\n this._getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * @emits TimeResize#timeResizeClick\n */\nTimeResize.prototype._onClick = function() {\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeClick\n */\n this.fire('timeResizeClick');\n};\n\ntimeCore.mixin(TimeResize);\nutil.CustomEvents.mixin(TimeResize);\n\nmodule.exports = TimeResize;\n","/**\n * @fileoverview Module for Time.Resize effect while dragging.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar datetime = require('../../common/datetime');\n\n/**\n * Class for Time.Resize effect.\n * @constructor\n * @param {TimeResize} timeResize - the instance of TimeResize handler.\n */\nfunction TimeResizeGuide(timeResize) {\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeResize}\n */\n this.timeResize = timeResize;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {HTMLElement}\n */\n this._originScheduleElement = null;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n /**\n * @type {number}\n */\n this._startHeightPixel = 0;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n /**\n * @type {Schedule}\n */\n this._schedule = null;\n\n timeResize.on({\n 'timeResizeDragstart': this._onDragStart,\n 'timeResizeDrag': this._onDrag,\n 'timeResizeDragend': this._clearGuideElement,\n 'timeResizeClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeResize.off(this);\n this.guideElement = this.timeResize = this._getTopFunc =\n this._originScheduleElement = this._startHeightPixel =\n this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeResizeGuide.prototype._clearGuideElement = function() {\n var guideElement = this.guideElement,\n originElement = this._originScheduleElement;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing'));\n }\n\n if (originElement) {\n originElement.style.display = 'block';\n }\n\n domutil.remove(guideElement);\n\n this.guideElement = this._getTopFunc = this._originScheduleElement =\n this._startHeightPixel = this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Refresh guide element\n * @param {number} guideHeight - guide element's style height.\n * @param {number} minTimeHeight - time element's min height\n * @param {number} timeHeight - time element's height.\n */\nTimeResizeGuide.prototype._refreshGuideElement = function(guideHeight, minTimeHeight, timeHeight) {\n var guideElement = this.guideElement;\n var timeElement;\n\n if (!guideElement) {\n return;\n }\n\n timeElement = domutil.find(config.classname('.time-schedule-content-time'), guideElement);\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.height = guideHeight + 'px';\n guideElement.style.display = 'block';\n\n if (timeElement) {\n timeElement.style.height = timeHeight + 'px';\n timeElement.style.minHeight = minTimeHeight + 'px';\n }\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var originElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n ),\n schedule = dragStartEventData.schedule,\n guideElement;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing'));\n }\n\n if (!originElement || !schedule) {\n return;\n }\n\n this._startGridY = dragStartEventData.nearestGridY;\n this._startHeightPixel = parseFloat(originElement.style.height);\n this._startTopPixel = parseFloat(originElement.style.top);\n\n this._originScheduleElement = originElement;\n this._schedule = schedule;\n\n guideElement = this.guideElement = originElement.cloneNode(true);\n domutil.addClass(guideElement, config.classname('time-guide-resize'));\n\n originElement.style.display = 'none';\n dragStartEventData.relatedView.container.appendChild(guideElement);\n};\n\n/**\n * @param {object} dragEventData - event data from Drag#drag.\n */\nTimeResizeGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.relatedView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n guideElement = this.guideElement,\n guideTop = parseFloat(guideElement.style.top),\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n // hourLength : viewHeight = gridYOffset : X;\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n goingDuration = this._schedule.goingDuration,\n modelDuration = this._schedule.duration() / datetime.MILLISECONDS_PER_MINUTES,\n comingDuration = this._schedule.comingDuration,\n minutesLength = hourLength * 60,\n timeHeight,\n timeMinHeight,\n minHeight,\n maxHeight,\n height;\n\n height = (this._startHeightPixel + gridYOffsetPixel);\n // at least large than 30min from schedule start time.\n minHeight = guideTop + ratio(hourLength, viewHeight, 0.5);\n minHeight -= this._startTopPixel;\n timeMinHeight = minHeight;\n minHeight += ratio(minutesLength, viewHeight, goingDuration) + ratio(minutesLength, viewHeight, comingDuration);\n // smaller than 24h\n maxHeight = viewHeight - guideTop;\n\n height = Math.max(height, minHeight);\n height = Math.min(height, maxHeight);\n\n timeHeight = ratio(minutesLength, viewHeight, modelDuration) + gridYOffsetPixel;\n\n this._refreshGuideElement(height, timeMinHeight, timeHeight);\n};\n\nmodule.exports = TimeResizeGuide;\n","/**\n * @fileoverview Month view factory module\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n array = require('../common/array'),\n datetime = require('../common/datetime'),\n domutil = require('../common/domutil'),\n common = require('../common/common'),\n Month = require('../view/month/month'),\n MonthClick = require('../handler/month/click'),\n MonthCreation = require('../handler/month/creation'),\n MonthResize = require('../handler/month/resize'),\n MonthMove = require('../handler/month/move'),\n More = require('../view/month/more'),\n ScheduleCreationPopup = require('../view/popup/scheduleCreationPopup'),\n ScheduleDetailPopup = require('../view/popup/scheduleDetailPopup'),\n Schedule = require('../model/schedule');\n\n/**\n * Get the view model for more layer\n * @param {TZDate} date - date has more schedules\n * @param {HTMLElement} target - target element\n * @param {Collection} schedules - schedule collection\n * @param {string[]} daynames - daynames to use upside of month more view\n * @returns {object} view model\n */\nfunction getViewModelForMoreLayer(date, target, schedules, daynames) {\n schedules.each(function(schedule) {\n var model = schedule.model;\n schedule.hasMultiDates = !datetime.isSameDate(model.start, model.end);\n });\n\n return {\n target: target,\n date: datetime.format(date, 'YYYY.MM.DD'),\n dayname: daynames[date.getDay()],\n schedules: schedules.sort(array.compare.schedule.asc)\n };\n}\n\n/**\n * @param {Base} baseController - controller instance\n * @param {HTMLElement} layoutContainer - container element for month view\n * @param {Drag} dragHandler - drag handler instance\n * @param {object} options - options\n * @returns {object} view instance and refresh method\n */\nfunction createMonthView(baseController, layoutContainer, dragHandler, options) {\n var monthViewContainer, monthView, moreView, createView;\n var clickHandler, creationHandler, resizeHandler, moveHandler, clearSchedulesHandler, onUpdateSchedule;\n var onShowCreationPopup, onSaveNewSchedule, onShowEditPopup;\n var detailView, onShowDetailPopup, onDeleteSchedule, onEditSchedule;\n\n monthViewContainer = domutil.appendHTMLElement(\n 'div', layoutContainer, config.classname('month'));\n\n monthView = new Month(options, monthViewContainer, baseController.Month);\n moreView = new More(options.month, layoutContainer, baseController.theme);\n\n // handlers\n clickHandler = new MonthClick(dragHandler, monthView, baseController);\n if (!options.isReadOnly) {\n creationHandler = new MonthCreation(dragHandler, monthView, baseController, options);\n resizeHandler = new MonthResize(dragHandler, monthView, baseController);\n moveHandler = new MonthMove(dragHandler, monthView, baseController);\n }\n\n clearSchedulesHandler = function() {\n if (moreView) {\n moreView.hide();\n }\n };\n\n onUpdateSchedule = function() {\n if (moreView) {\n moreView.refresh();\n }\n };\n\n // binding +n click schedule\n clickHandler.on('clickMore', function(clickMoreSchedule) {\n var date = clickMoreSchedule.date,\n target = clickMoreSchedule.target,\n schedules = util.pick(baseController.findByDateRange(\n datetime.start(date),\n datetime.end(date)\n ), clickMoreSchedule.ymd);\n\n schedules.items = util.filter(schedules.items, function(item) {\n return options.month.scheduleFilter(item.model);\n });\n\n if (schedules && schedules.length) {\n moreView.render(getViewModelForMoreLayer(date, target, schedules, monthView.options.daynames));\n\n schedules.each(function(scheduleViewModel) {\n if (scheduleViewModel) {\n /**\n * @event More#afterRenderSchedule\n */\n monthView.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n\n monthView.fire('clickMore', {\n date: clickMoreSchedule.date,\n target: moreView.getMoreViewElement()\n });\n }\n });\n\n // binding popup for schedules creation\n if (options.useCreationPopup) {\n createView = new ScheduleCreationPopup(layoutContainer, baseController.calendars, options.usageStatistics);\n\n onSaveNewSchedule = function(scheduleData) {\n creationHandler.fire('beforeCreateSchedule', util.extend(scheduleData, {\n useCreationPopup: true\n }));\n };\n createView.on('beforeCreateSchedule', onSaveNewSchedule);\n }\n\n // binding popup for schedule detail\n if (options.useDetailPopup) {\n detailView = new ScheduleDetailPopup(layoutContainer, baseController.calendars);\n onShowDetailPopup = function(eventData) {\n var scheduleId = eventData.schedule.calendarId;\n eventData.calendar = common.find(baseController.calendars, function(calendar) {\n return calendar.id === scheduleId;\n });\n\n if (options.isReadOnly) {\n eventData.schedule = util.extend({}, eventData.schedule, {isReadOnly: true});\n }\n\n detailView.render(eventData);\n };\n onDeleteSchedule = function(eventData) {\n if (creationHandler) {\n creationHandler.fire('beforeDeleteSchedule', eventData);\n }\n };\n onEditSchedule = function(eventData) {\n moveHandler.fire('beforeUpdateSchedule', eventData);\n };\n\n clickHandler.on('clickSchedule', onShowDetailPopup);\n\n detailView.on('beforeDeleteSchedule', onDeleteSchedule);\n\n if (options.useCreationPopup) {\n onShowEditPopup = function(eventData) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n };\n createView.on('beforeUpdateSchedule', onEditSchedule);\n detailView.on('beforeUpdateSchedule', onShowEditPopup);\n } else {\n detailView.on('beforeUpdateSchedule', onEditSchedule);\n }\n }\n\n // binding clear schedules\n baseController.on('clearSchedules', clearSchedulesHandler);\n\n // bind update schedule event\n baseController.on('updateSchedule', onUpdateSchedule);\n\n if (moveHandler) {\n moveHandler.on('monthMoveStart_from_morelayer', function() {\n moreView.hide();\n });\n }\n\n monthView.handler = {\n click: {\n 'default': clickHandler\n }\n };\n\n if (!options.isReadOnly) {\n monthView.handler = util.extend(monthView.handler, {\n creation: {\n 'default': creationHandler\n },\n resize: {\n 'default': resizeHandler\n },\n move: {\n 'default': moveHandler\n }\n });\n }\n\n monthView._beforeDestroy = function() {\n moreView.destroy();\n baseController.off('clearSchedules', clearSchedulesHandler);\n baseController.off('updateSchedule', onUpdateSchedule);\n\n util.forEach(monthView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n\n if (options.useCreationPopup && options.useDetailPopup) {\n createView.off('beforeUpdateSchedule', onUpdateSchedule);\n }\n\n if (options.useCreationPopup) {\n if (creationHandler) {\n creationHandler.off('beforeCreateSchedule', onShowCreationPopup);\n }\n createView.off('saveSchedule', onSaveNewSchedule);\n createView.destroy();\n }\n\n if (options.useDetailPopup) {\n clickHandler.off('clickSchedule', onShowDetailPopup);\n detailView.off('beforeUpdateSchedule', onUpdateSchedule);\n detailView.off('beforeDeleteSchedule', onDeleteSchedule);\n detailView.destroy();\n }\n };\n\n // add controller\n monthView.controller = baseController.Month;\n\n return {\n view: monthView,\n refresh: function() {\n monthView.vLayout.refresh();\n },\n openCreationPopup: function(schedule) {\n if (createView && creationHandler) {\n creationHandler.invokeCreationClick(Schedule.create(schedule));\n }\n },\n showCreationPopup: function(eventData) {\n if (createView) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n }\n },\n hideMoreView: function() {\n if (moreView) {\n moreView.hide();\n }\n }\n };\n}\n\nmodule.exports = createMonthView;\n","/**\n * @fileoverview Month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n TZDate = require('../../common/timezone').Date,\n tmpl = require('../template/month/month.hbs'),\n View = require('../view'),\n VLayout = require('../..//common/vlayout'),\n WeekdayInMonth = require('./weekdayInMonth');\nvar mmin = Math.min;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {function} [options.scheduleFilter] - schedule filter\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {string} [options.renderMonth='2015-12'] - render month\n * @param {string[]} [options.daynames] - daynames to use upside of month view\n * @param {HTMLElement} container - container element\n * @param {Base.Month} controller - controller instance\n */\nfunction Month(options, container, controller) {\n var theme = controller ? controller.theme : null;\n var monthOption;\n\n options = options || {};\n monthOption = options ? options.month : {};\n\n View.call(this, container);\n\n /**\n * @type {Base.Month}\n */\n this.controller = controller;\n\n /**\n * @type {VLayout}\n */\n this.vLayout = new VLayout({\n panels: [\n {height: parseInt(controller.theme.month.dayname.height, 10) || 42},\n {autoHeight: true}\n ]\n }, container, theme);\n\n /**\n * @type {string}\n */\n this.options = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible);\n },\n startDayOfWeek: 0,\n renderMonth: '2018-01',\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n narrowWeekend: false,\n visibleWeeksCount: null,\n isAlways6Week: true,\n isReadOnly: options.isReadOnly,\n grid: {\n header: {\n height: 34\n },\n footer: {\n height: 3\n }\n }\n }, monthOption);\n\n this.options.grid.header = util.extend({\n height: 34\n }, util.pick(monthOption, 'grid', 'header'));\n this.options.grid.footer = util.extend({\n height: 3\n }, util.pick(monthOption, 'grid', 'footer'));\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = datetime.getGridLeftAndWidth(\n this.options.daynames.length,\n this.options.narrowWeekend,\n this.options.startDayOfWeek);\n}\n\nutil.inherit(Month, View);\n\n/**\n * Name of view. for managing subview at layout view\n * @type {string}\n */\nMonth.prototype.viewName = 'month';\n\n/**\n * Get calendar array by supplied date\n * @param {string} renderMonth - month to render YYYY-MM, weeks2/3 to render YYYY-MM-DD\n * @returns {array.} calendar array\n */\nMonth.prototype._getMonthCalendar = function(renderMonth) {\n var date = new TZDate(renderMonth);\n var startDayOfWeek = this.options.startDayOfWeek || 0;\n var visibleWeeksCount = mmin(this.options.visibleWeeksCount || 0, 6);\n var workweek = this.options.workweek || false;\n var datetimeOptions, calendar;\n\n if (this.options.visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: this.options.isAlways6Week,\n workweek: workweek\n };\n }\n\n calendar = datetime.arr2dCalendar(date, datetimeOptions);\n\n return calendar;\n};\n\n/**\n * Create children view (week) and add children\n * @param {HTMLElement} container - container element to render weeks\n * @param {array.} calendar - calendar array from datetime#arr2dCalendar\n * @param {Theme} theme - theme instance\n */\nMonth.prototype._renderChildren = function(container, calendar, theme) {\n var self = this;\n var weekCount = calendar.length;\n var heightPercent = 100 / weekCount;\n var opt = this.options;\n var renderMonth = opt.renderMonth;\n var narrowWeekend = opt.narrowWeekend;\n var startDayOfWeek = opt.startDayOfWeek;\n var visibleWeeksCount = opt.visibleWeeksCount;\n var visibleScheduleCount = opt.visibleScheduleCount;\n var gridOption = opt.grid;\n var isReadOnly = opt.isReadOnly;\n\n container.innerHTML = '';\n this.children.clear();\n\n util.forEach(calendar, function(weekArr) {\n var start = new TZDate(weekArr[0]),\n end = new TZDate(weekArr[weekArr.length - 1]),\n weekdayViewContainer,\n weekdayView;\n\n weekdayViewContainer = domutil.appendHTMLElement(\n 'div', container, config.classname('month-week-item'));\n\n weekdayView = new WeekdayInMonth({\n renderMonth: renderMonth,\n heightPercent: heightPercent,\n renderStartDate: start,\n renderEndDate: end,\n narrowWeekend: narrowWeekend,\n startDayOfWeek: startDayOfWeek,\n visibleWeeksCount: visibleWeeksCount,\n visibleScheduleCount: visibleScheduleCount,\n grid: gridOption,\n scheduleHeight: parseInt(theme.month.schedule.height, 10),\n scheduleGutter: parseInt(theme.month.schedule.marginTop, 10),\n isReadOnly: isReadOnly\n }, weekdayViewContainer);\n\n self.addChild(weekdayView);\n });\n};\n\n/**\n * Render month view\n * @override\n */\nMonth.prototype.render = function() {\n var self = this,\n opt = this.options,\n vLayout = this.vLayout,\n controller = this.controller,\n daynames = opt.daynames,\n workweek = opt.workweek,\n calendar = this._getMonthCalendar(opt.renderMonth),\n scheduleFilter = opt.scheduleFilter,\n theme = controller ? controller.theme : null,\n styles = this._getStyles(theme),\n grids,\n daynameViewModel,\n baseViewModel;\n\n grids = this.grids = datetime.getGridLeftAndWidth(\n opt.daynames.length,\n opt.narrowWeekend,\n opt.startDayOfWeek\n );\n\n daynameViewModel = util.map(\n util.range(opt.startDayOfWeek, 7).concat(util.range(7)).slice(0, 7),\n function(day, index) {\n return {\n day: day,\n label: daynames[day],\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0,\n color: this._getDayNameColor(theme, day)\n };\n },\n this\n );\n\n if (workweek) {\n grids = this.grids = datetime.getGridLeftAndWidth(5, opt.narrowWeekend, opt.startDayOfWeek, workweek);\n\n daynameViewModel = util.filter(daynameViewModel, function(daynameModel) {\n return !datetime.isWeekend(daynameModel.day);\n });\n\n util.forEach(daynameViewModel, function(daynameModel, index) {\n daynameModel.width = grids[index] ? grids[index].width : 0;\n daynameModel.left = grids[index] ? grids[index].left : 0;\n });\n }\n\n baseViewModel = {\n daynames: daynameViewModel,\n styles: styles\n };\n\n vLayout.panels[0].container.innerHTML = tmpl(baseViewModel);\n\n this._renderChildren(vLayout.panels[1].container, calendar, theme);\n\n baseViewModel.panelHeight = vLayout.panels[1].getHeight();\n\n this.children.each(function(childView) {\n var start = datetime.start(childView.options.renderStartDate);\n var end = datetime.start(childView.options.renderEndDate);\n var eventsInDateRange = controller.findByDateRange(\n datetime.start(start),\n datetime.end(end),\n scheduleFilter\n );\n var dateRange = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY);\n var viewModel = {\n eventsInDateRange: eventsInDateRange,\n range: dateRange.slice(0, grids.length),\n grids: grids,\n panelHeight: baseViewModel.panelHeight,\n theme: theme\n };\n\n childView.render(viewModel);\n\n self._invokeAfterRenderSchedule(eventsInDateRange);\n });\n};\n\n/**\n * Fire 'afterRenderSchedule' event\n * @param {Array} matrices - schedule matrices from view model\n * @fires Month#afterRenderSchedule\n */\nMonth.prototype._invokeAfterRenderSchedule = function(matrices) {\n var self = this;\n util.forEachArray(matrices, function(matrix) {\n util.forEachArray(matrix, function(column) {\n util.forEachArray(column, function(scheduleViewModel) {\n if (scheduleViewModel && !scheduleViewModel.hidden) {\n /**\n * @event Month#afterRenderSchedule\n */\n self.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n });\n });\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMonth.prototype._getStyles = function(theme) {\n var styles = {};\n var dayname;\n\n if (theme) {\n dayname = theme.month.dayname;\n\n styles.borderTop = dayname.borderTop || theme.common.border;\n styles.borderLeft = dayname.borderLeft || theme.common.border;\n styles.height = dayname.height;\n styles.paddingLeft = dayname.paddingLeft;\n styles.paddingRight = dayname.paddingRight;\n styles.fontSize = dayname.fontSize;\n styles.backgroundColor = dayname.backgroundColor;\n styles.fontWeight = dayname.fontWeight;\n styles.textAlign = dayname.textAlign;\n }\n\n return styles;\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @returns {string} style - color style\n */\nMonth.prototype._getDayNameColor = function(theme, day) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = theme.common.holiday.color;\n } else if (day === 6) {\n color = theme.common.saturday.color;\n } else {\n color = theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\nmodule.exports = Month;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"monthDayname-tmpl\"]||(depth0 && depth0[\"monthDayname-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"monthDayname-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":12},\"end\":{\"line\":16,\"column\":40}}})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderLeft), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, alias3=container.lambda;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.daynames : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":0},\"end\":{\"line\":19,\"column\":9}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Monthday in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common.js'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n Weekday = require('../weekday'),\n baseTmpl = require('../template/month/weekdayInMonth.hbs'),\n scheduleTmpl = require('../template/month/weekdayInMonthSchedule.hbs');\nvar mfloor = Math.floor,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for WeekdayInWeek view\n * @param {number} [options.heightPercent] - height percent of view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction WeekdayInMonth(options, container) {\n Weekday.call(this, options, container);\n container.style.height = options.heightPercent + '%';\n}\n\nutil.inherit(WeekdayInMonth, Weekday);\n\n/**\n * Get schedule container element's bound properly by override\n *\n * View#getViewBound.\n * @override\n */\nWeekdayInMonth.prototype.getViewBound = function() {\n var bound = View.prototype.getViewBound.call(this);\n\n return bound;\n};\n\n/**\n * Get limit index of schedule block in current view\n * @param {number} panelHeight - panel's height for pre-calculation\n * @returns {number} limit index\n */\nWeekdayInMonth.prototype._getRenderLimitIndex = function(panelHeight) {\n var opt = this.options;\n var containerHeight = panelHeight || this.getViewBound().height;\n var gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0;\n var gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0;\n var visibleScheduleCount = opt.visibleScheduleCount || 0;\n var count;\n\n containerHeight -= (gridHeaderHeight + gridFooterHeight);\n\n count = mfloor(containerHeight / (opt.scheduleHeight + opt.scheduleGutter));\n\n if (!visibleScheduleCount) {\n visibleScheduleCount = count;\n }\n\n return mmin(count, visibleScheduleCount); // subtraction for '+n' label block\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options,\n gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0,\n gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0,\n renderLimitIdx = this._getRenderLimitIndex() + 1,\n exceedDate = this.getExceedDate(renderLimitIdx, viewModel.eventsInDateRange, viewModel.range),\n styles = this._getStyles(viewModel.theme);\n var baseViewModel;\n\n viewModel = util.extend({\n exceedDate: exceedDate\n }, viewModel);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n matrices: viewModel.eventsInDateRange,\n gridHeaderHeight: gridHeaderHeight,\n gridFooterHeight: gridFooterHeight,\n renderLimitIdx: renderLimitIdx,\n isReadOnly: opt.isReadOnly,\n styles: styles\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.render = function(viewModel) {\n var container = this.container,\n baseViewModel = this.getBaseViewModel(viewModel),\n scheduleContainer;\n\n if (!this.options.visibleWeeksCount) {\n setIsOtherMonthFlag(baseViewModel.dates, this.options.renderMonth, viewModel.theme);\n }\n\n container.innerHTML = baseTmpl(baseViewModel);\n\n scheduleContainer = domutil.find(\n config.classname('.weekday-schedules'),\n container\n );\n\n if (!scheduleContainer) {\n return;\n }\n\n scheduleContainer.innerHTML = scheduleTmpl(baseViewModel);\n\n common.setAutoEllipsis(\n config.classname('.weekday-schedule-title'),\n container,\n true\n );\n};\n\nWeekdayInMonth.prototype._beforeDestroy = function() {\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nWeekdayInMonth.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.borderTop = theme.common.border;\n styles.borderLeft = theme.common.border;\n styles.fontSize = theme.month.day.fontSize;\n styles.borderRadius = theme.month.schedule.borderRadius;\n styles.marginLeft = theme.month.schedule.marginLeft;\n styles.marginRight = theme.month.schedule.marginRight;\n styles.scheduleBulletTop = this.options.scheduleHeight / 3;\n }\n\n return styles;\n};\n\n/**\n * 현재 달이 아닌 날짜에 대해 isOtherMonth = true 플래그를 추가한다.\n * @param {Array} dates - 날짜정보 배열\n * @param {TZDate} renderMonth - 현재 렌더링중인 월 (YYYYMM)\n * @param {Theme} theme - theme instance\n */\nfunction setIsOtherMonthFlag(dates, renderMonth, theme) {\n var month = renderMonth.getMonth() + 1;\n\n util.forEach(dates, function(dateObj) {\n var isOtherMonth = dateObj.month !== month;\n dateObj.isOtherMonth = isOtherMonth;\n\n if (isOtherMonth) {\n dateObj.color = Weekday.prototype._getDayNameColor(theme, dateObj.day, dateObj.isToday, isOtherMonth);\n }\n });\n}\n\nmodule.exports = WeekdayInMonth;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthGridHeader-tmpl\"]||(depth0 && depth0[\"monthGridHeader-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"monthGridHeader-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":44},\"end\":{\"line\":14,\"column\":75}}})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":12},\"end\":{\"line\":17,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthGridFooter-tmpl\"]||(depth0 && depth0[\"monthGridFooter-tmpl\"])||alias2).call(alias1,depth0,{\"name\":\"monthGridFooter-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":44},\"end\":{\"line\":20,\"column\":75}}})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(12, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":12},\"end\":{\"line\":23,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":84},\"end\":{\"line\":7,\"column\":98}}}) : helper)))\n + \"near-month-day\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":135},\"end\":{\"line\":7,\"column\":149}}}) : helper)))\n + \"today\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":182},\"end\":{\"line\":7,\"column\":196}}}) : helper)))\n + \"extra-date\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-right:\"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.borderLeft), depth0))\n + \";\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"monthGridHeaderExceed-tmpl\"]||(depth0 && depth0[\"monthGridHeaderExceed-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridHeaderExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":87},\"end\":{\"line\":16,\"column\":135}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"monthGridFooterExceed-tmpl\"]||(depth0 && depth0[\"monthGridFooterExceed-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridFooterExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":87},\"end\":{\"line\":22,\"column\":135}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":0},\"end\":{\"line\":26,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":80,\"column\":11}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":0},\"end\":{\"line\":79,\"column\":11}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":0},\"end\":{\"line\":78,\"column\":9}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.top : depth0),\"<\",((stack1 = (data && data.root)) && stack1.renderLimitIdx),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":4},\"end\":{\"line\":77,\"column\":13}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=\"function\";\n\n return \"
    \\n\"\n + ((stack1 = (helpers.fi||(depth0 && depth0.fi)||alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.program(23, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":8},\"end\":{\"line\":75,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":31},\"end\":{\"line\":9,\"column\":45}}}) : helper)))\n + \"weekday-exceed-left\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":32},\"end\":{\"line\":10,\"column\":46}}}) : helper)))\n + \"weekday-exceed-right\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"allday-tmpl\"]||(depth0 && depth0[\"allday-tmpl\"])||alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":29,\"column\":47},\"end\":{\"line\":29,\"column\":70}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers.unless.call(alias3,(helpers.or||(depth0 && depth0.or)||alias4).call(alias3,((stack1 = (data && data.root)) && stack1.isReadOnly),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":22},\"end\":{\"line\":30,\"column\":60}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(21, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":12},\"end\":{\"line\":30,\"column\":194}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":146},\"end\":{\"line\":14,\"column\":160}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginLeft), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginRight), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"21\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression;\n\n return \" \";\n},\"23\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.category : stack1),\"===\",\"time\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.program(33, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":33,\"column\":12},\"end\":{\"line\":74,\"column\":19}}})) != null ? stack1 : \"\");\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\";\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"]||(depth0 && depth0[\"time-tmpl\"])||alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":54,\"column\":53},\"end\":{\"line\":54,\"column\":74}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"25\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \"\\n\";\n},\"29\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"31\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n\";\n},\"33\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"schedule-tmpl\"]||(depth0 && depth0[\"schedule-tmpl\"])||alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":72,\"column\":65},\"end\":{\"line\":72,\"column\":90}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"34\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginLeft), depth0))\n + \";\\n\";\n},\"36\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginRight), depth0))\n + \";\\n\";\n},\"38\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"40\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":81,\"column\":11}}})) != null ? stack1 : \"\");\n},\"useData\":true});","/**\n * @fileoverview Click handler for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Month} [monthView] - Month view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction MonthClick(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.monthView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * @fires MonthClick#clickMore\n * @param {object} clickEvent - click event object\n */\nMonthClick.prototype._onClick = function(clickEvent) {\n var self = this,\n moreElement,\n scheduleCollection = this.baseController.schedules,\n blockElement = domutil.closest(clickEvent.target, config.classname('.weekday-schedule-block'))\n || domutil.closest(clickEvent.target, config.classname('.month-more-schedule'));\n\n moreElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-exceed-in-month')\n );\n\n if (moreElement) {\n self.fire('clickMore', {\n date: datetime.parse(domutil.getData(moreElement, 'ymd')),\n target: moreElement,\n ymd: domutil.getData(moreElement, 'ymd')\n });\n }\n\n if (blockElement) {\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events AlldayClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(MonthClick);\n\nmodule.exports = MonthClick;\n","/**\n * @fileoverview Creation handler for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar array = require('../../common/array');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar getMousePosDate = require('./core');\nvar Guide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n * @param {Options} [options] - calendar Options\n */\nfunction MonthCreation(dragHandler, monthView, baseController, options) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * Cache for dragging session\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthCreationGuide}\n */\n this.guide = new Guide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(monthView.container, 'dblclick', this._onDblClick, this);\n }\n}\n\n/**\n * Destructor\n */\nMonthCreation.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.guide.destroy();\n\n if (this.monthView && this.monthView.container) {\n domevent.off(this.monthView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.monthView = this.baseController =\n this.getScheduleData = this._cache = this.guide = null;\n};\n\n/**\n * Fire before create schedule\n * @fires {MonthCreation#beforeCreateSchedule}\n * @param {object} eventData - cache data from single dragging session\n */\nMonthCreation.prototype._createSchedule = function(eventData) {\n /**\n * @event {MonthCreation#beforeCreateSchedule}\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: eventData.isAllDay,\n start: eventData.start,\n end: eventData.end,\n guide: this.guide.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {object} dragStartEvent - dragStart event data\n */\nMonthCreation.prototype._onDragStart = function(dragStartEvent) {\n var eventData;\n\n if (!isElementWeekdayGrid(dragStartEvent.target)) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosDate(this.monthView);\n\n eventData = this.getScheduleData(dragStartEvent.originEvent);\n\n this._cache = {\n start: new TZDate(eventData.date)\n };\n\n /**\n * @event {MonthCreation#monthCreationDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragstart', eventData);\n};\n\n/**\n * Drag event handler\n * @fires {MonthCreation#monthCreationDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthCreation.prototype._onDrag = function(dragEvent) {\n var eventData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEvent.originEvent);\n\n if (!eventData) {\n return;\n }\n\n /**\n * @event {MonthCreation#monthCreationDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDrag', eventData);\n};\n\n/**\n * DragEnd event handler\n * @fires {MonthCreation#monthCreationDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthCreation.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var eventData;\n var times;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (eventData) {\n cache.end = new TZDate(eventData.date);\n cache.isAllDay = true;\n\n times = [\n cache.start,\n cache.end\n ].sort(array.compare.num.asc);\n\n cache.start = new TZDate(times[0]);\n cache.end = datetime.end(times[1]);\n\n this._createSchedule(cache);\n }\n\n /**\n * @event {MonthCreation#monthCreationDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragend', eventData);\n\n this.getScheduleData = this._cache = null;\n};\n\n/**\n * Dblclick event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onDblClick = function(e) {\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target)) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e);\n\n this.fire('monthCreationClick', eventData);\n\n range = this._adjustStartAndEndTime(new TZDate(eventData.date), new TZDate(eventData.date));\n\n this._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n\n this._requestOnClick = false;\n};\n\n/**\n * Click event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onClick = function(e) {\n var self = this;\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target) || this._disableClick) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('monthCreationClick', eventData);\n\n range = self._adjustStartAndEndTime(new TZDate(eventData.date), new TZDate(eventData.date));\n\n self._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Adjust time to our o'clock\n * @param {TZDate} start - start time\n * @param {TZDate} end - end time\n * @returns {Object} start and end\n */\nMonthCreation.prototype._adjustStartAndEndTime = function(start, end) {\n var now = new TZDate();\n var hours = now.getHours();\n var minutes = now.getMinutes();\n\n // adjust start to less time. Adjusting had been greater time in monthly view when clicking grid\n if (minutes <= 30) {\n minutes = 0;\n } else {\n minutes = 30;\n }\n start.setHours(hours, minutes, 0, 0);\n end.setHours(hours + 1, minutes, 0, 0);\n\n return {\n start: start,\n end: end\n };\n};\n\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nMonthCreation.prototype.invokeCreationClick = function(schedule) {\n var eventData = {\n model: schedule\n };\n\n this.fire('monthCreationClick', eventData);\n\n this._createSchedule({\n start: schedule.start,\n end: schedule.end,\n isAllDay: schedule.isAllDay,\n triggerEvent: 'manual'\n });\n};\n\n/**\n * Returns whether the given element is Weekday-Schedule.\n * @param {HTMLElement} el - target element\n * @returns {boolean}\n */\nfunction isElementWeekdayGrid(el) {\n return domutil.closest(el, config.classname('.weekday-grid'))\n && !domutil.closest(el, config.classname('.weekday-exceed-in-month'));\n}\n\nutil.CustomEvents.mixin(MonthCreation);\n\nmodule.exports = MonthCreation;\n","/**\n * @fileoverview Creation guide module for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthCreation} monthCreation - instance of MonthCreation\n */\nfunction MonthCreationGuide(monthCreation) {\n /**\n * @type {MonthCreation}\n */\n this.monthCreation = monthCreation;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthCreation.on({\n monthCreationDragstart: this._createGuideElement,\n monthCreationDrag: this._onDrag,\n monthCreationDragend: this._onDragEnd,\n monthCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthCreationGuide.prototype.destroy = function() {\n this.monthCreation.off(this);\n\n if (this.guide) {\n this.guide.destroy();\n }\n\n this.guide = this.monthCreation = null;\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._createGuideElement = function(dragStartEvent) {\n var options = {\n isCreationMode: true,\n height: '100%',\n top: 0\n };\n\n this.guide = new MonthGuide(options, this.monthCreation.monthView);\n this.guide.start(dragStartEvent);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthCreationGuide.prototype._onDragEnd = function() {\n // Do nothing. User calls destroy directly.\n this.guide = null;\n};\n\nmodule.exports = MonthCreationGuide;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, alias2=container.lambda;\n\n return \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.isAllDay : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.program(6, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":12},\"end\":{\"line\":13,\"column\":19}}})) != null ? stack1 : \"\")\n + \"
    \\n
     
    \\n
    \\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"allday-tmpl\"]||(depth0 && depth0[\"allday-tmpl\"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":16},\"end\":{\"line\":10,\"column\":38}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"time-tmpl\"]||(depth0 && depth0[\"time-tmpl\"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":16},\"end\":{\"line\":12,\"column\":36}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.isCreationMode : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":17,\"column\":11}}})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Module for resize schedule in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n getMousePosData = require('./core'),\n MonthResizeGuide = require('./resizeGuide'),\n TZDate = require('../../common/timezone').Date;\n\nvar common = require('../../common/common');\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthResize(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthResizeGuide}\n */\n this.guide = new MonthResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthResize.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Fire event for update model\n * @fires {MonthResize#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthResize.prototype._updateSchedule = function(scheduleCache) {\n // You can not change the start date of the event. Only the end time can be changed.\n var newEnd = datetime.end(new TZDate(scheduleCache.end)),\n schedule = scheduleCache.schedule;\n var changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnd}\n );\n\n /**\n * @event MonthResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: new TZDate(schedule.getStarts()),\n end: newEnd\n });\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthResize#monthResizeDragstart}\n * @param {object} dragStartEvent - drag start event data\n */\nMonthResize.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID, schedule,\n scheduleData;\n\n if (!domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return;\n }\n\n target = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\n if (!target) {\n return;\n }\n\n modelID = domutil.getData(target, 'id');\n schedule = this.baseController.schedules.items[modelID];\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.target = target;\n scheduleData.model = schedule;\n\n this._cache = {\n schedule: schedule,\n target: target,\n start: new TZDate(scheduleData.date)\n };\n\n /**\n * @event {MonthCreation#monthResizeDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthResizeDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthResize.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEvent.originEvent);\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthResize#monthResizeDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDrag', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthResize.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var scheduleData;\n var start, end;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n start = new TZDate(cache.schedule.getStarts());\n end = new TZDate(scheduleData.date);\n cache.end = end;\n\n if (start <= cache.end) {\n this._updateSchedule(cache);\n }\n }\n\n /**\n * @event {MonthResize#monthResizeDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthResize);\n\nmodule.exports = MonthResize;\n","/**\n * @fileoverview Module for modification of guide element in schedule resize\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthResize} monthResize - month/resize module instance\n */\nfunction MonthResizeGuide(monthResize) {\n /**\n * @type {MonthResize}\n */\n this.monthResize = monthResize;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthResize.on({\n monthResizeDragstart: this._onDragStart,\n monthResizeDrag: this._onDrag,\n monthResizeDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthResizeGuide.prototype.destroy = function() {\n this.monthResize.off(this);\n this.guide.destroy();\n\n this.guide = this.monthResize = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthResizeGuide.prototype._hideScheduleBlocks = function(modelID) {\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthResize.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n el.style.display = 'none';\n });\n};\n\n/**\n * Show element blocks\n */\nMonthResizeGuide.prototype._showScheduleBlocks = function() {\n util.forEach(this.elements, function(el) {\n el.style.display = 'block';\n });\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthResize\n */\nMonthResizeGuide.prototype._onDragStart = function(dragStartEvent) {\n this.guide = new MonthGuide({\n isResizeMode: true\n }, this.monthResize.monthView);\n\n this.guide.start(dragStartEvent);\n\n this._hideScheduleBlocks(dragStartEvent.model.cid());\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - event data from MonthCreation\n */\nMonthResizeGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthResizeGuide.prototype._onDragEnd = function() {\n this._showScheduleBlocks();\n\n this.guide.destroy();\n this.elements = this.guide = null;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\nmodule.exports = MonthResizeGuide;\n","/**\n * @fileoverview Move handler for month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n getMousePosData = require('./core'),\n MonthMoveGuide = require('./moveGuide'),\n TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthMove(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthMoveGuide}\n */\n this.guide = new MonthMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthMove.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Update target schedule\n * @fires {MonthMove#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthMove.prototype.updateSchedule = function(scheduleCache) {\n var schedule = scheduleCache.model;\n var duration = schedule.duration();\n var startDateRaw = datetime.raw(schedule.start);\n var dragEndTime = new TZDate(scheduleCache.end);\n var newStartDate = new TZDate(dragEndTime);\n\n newStartDate.setHours(startDateRaw.h, startDateRaw.m, startDateRaw.s, startDateRaw.ms);\n\n /**\n * @event MonthMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: {\n start: newStartDate,\n end: new TZDate(newStartDate).addMilliseconds(duration)\n },\n start: newStartDate,\n end: new TZDate(newStartDate).addMilliseconds(duration)\n });\n};\n\n/**\n * Get schedule block to clone for month guide effect\n * @param {HTMLElement} target - target element that related with drag schedule\n * @returns {HTMLElement} element to create guide effect\n */\nMonthMove.prototype.getMonthScheduleBlock = function(target) {\n var blockSelector = config.classname('.weekday-schedule-block');\n\n return domutil.closest(target, blockSelector);\n};\n\n/**\n * Get schedule block from more layer\n * @param {HTMLElement} target - element to check\n * @returns {HTMLElement} schedule element\n */\nMonthMove.prototype.getMoreLayerScheduleBlock = function(target) {\n var className = config.classname('.month-more-schedule');\n\n return domutil.closest(target, className);\n};\n\n/**\n * Check handler has permission to handle fired schedule\n * @fires {MonthMove#monthMoveStart_from_morelayer}\n * @param {HTMLElement} target - target element of fired schedule\n * @returns {(string|null)} model instance ID related with schedule. if handle\n * has not permission to handle the schedule then return null.\n */\nMonthMove.prototype.hasPermissionToHandle = function(target) {\n var modelID = null;\n var blockElement;\n\n if (domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return null;\n }\n\n blockElement = this.getMonthScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n } else {\n blockElement = this.getMoreLayerScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n /**\n * Fire for notificate that the drag schedule start at more layer view.\n * @event {MonthMove#monthMoveStart_from_morelayer}\n */\n this.fire('monthMoveStart_from_morelayer');\n }\n }\n\n return modelID;\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthMove#monthMoveDragstart}\n * @param {object} dragStartEvent - drag start schedule data\n */\nMonthMove.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID = this.hasPermissionToHandle(target),\n model = this.baseController.schedules.items[modelID],\n scheduleData;\n\n if (!modelID || !model || model.isReadOnly || model.isPending) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.originEvent = dragStartEvent.originEvent;\n scheduleData.target = this.getMonthScheduleBlock(target);\n scheduleData.model = model;\n\n this._cache = {\n model: model,\n target: target,\n start: new TZDate(Number(scheduleData.date))\n };\n\n /**\n * @event {MonthMove#monthMoveDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthMoveDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthMove#monthMoveDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthMove.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = util.extend({\n originEvent: dragEvent.originEvent\n }, this.getScheduleData(dragEvent.originEvent));\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthMove#monthMoveDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDrag', scheduleData);\n};\n\n/**\n * Event handler for Drag#dragEnd\n * @fires {MonthMove#monthMoveDragend}\n * @param {object} dragEndEvent - dragend event data\n */\nMonthMove.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n cache.end = new TZDate(scheduleData.date);\n this.updateSchedule(cache);\n }\n\n /**\n * @event {MonthResize#monthMoveDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthMove);\n\nmodule.exports = MonthMove;\n","/**\n * @fileoverview Module for modification of guide element for move in month view\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent'),\n FloatingLayer = require('../../common/floatingLayer'),\n tmpl = require('./moveGuide.hbs'),\n Schedule = require('../../model/schedule');\n\n/**\n * @constructor\n * @param {MonthMove} monthMove - month/move module instance\n */\nfunction MonthMoveGuide(monthMove) {\n /**\n * @type {MonthMove}\n */\n this.monthMove = monthMove;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = null;\n\n monthMove.on({\n monthMoveDragstart: this._onDragStart,\n monthMoveDrag: this._onDrag,\n monthMoveDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthMoveGuide.prototype.destroy = function() {\n this.monthMove.off(this);\n this._clearGridBgColor();\n\n if (this.layer) {\n this.layer.destroy();\n }\n\n if (this.element) {\n domutil.remove(this.element);\n }\n\n this.monthMove = this.elements = this.layer = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthMove.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nMonthMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\n/**\n * Clear background color for filled grid element.\n */\nMonthMoveGuide.prototype._clearGridBgColor = function() {\n var selector = config.classname('.weekday-filled'),\n className = config.classname('weekday-filled'),\n beforeGridElement = domutil.find(selector,\n this.monthMove.monthView.container);\n\n if (beforeGridElement) {\n domutil.removeClass(beforeGridElement, className);\n }\n};\n\n/**\n * Fill background color of date grids relatied with model updates.\n * @param {object} dragEvent - drag event data from MonthMoveGuide#_onDrag\n */\nMonthMoveGuide.prototype._updateGridBgColor = function(dragEvent) {\n var gridElements = domutil.find(config.classname('.weekday-grid-line'), this.monthMove.monthView.container, true),\n className = config.classname('weekday-filled'),\n targetIndex = (dragEvent.x + (dragEvent.sizeX * dragEvent.y));\n\n this._clearGridBgColor();\n\n if (!gridElements || !gridElements[targetIndex]) {\n return;\n }\n\n domutil.addClass(gridElements[targetIndex], className);\n};\n\n/**\n * Handler for MonthMove#dragStart\n * @param {object} dragStartEvent - dragStart schedule data object\n */\nMonthMoveGuide.prototype._onDragStart = function(dragStartEvent) {\n var monthView = this.monthMove.monthView,\n firstWeekdayView = monthView.children.single(),\n weekdayOptions = firstWeekdayView.options,\n widthPercent = 100 / firstWeekdayView.getRenderDateRange().length,\n height = weekdayOptions.scheduleGutter + weekdayOptions.scheduleHeight,\n container = monthView.container,\n mousePos = domevent.getMousePosition(dragStartEvent.originEvent, container),\n model = dragStartEvent.model,\n layer = new FloatingLayer(null, container);\n\n this._hideOriginScheduleBlocks(model.cid());\n\n this.layer = layer;\n layer.setSize(widthPercent + '%', height);\n layer.setPosition(mousePos[0], mousePos[1]);\n layer.setContent(tmpl({\n model: util.extend(\n Schedule.create(model),\n model\n ),\n styles: {\n scheduleHeight: weekdayOptions.scheduleHeight,\n scheduleBulletTop: weekdayOptions.scheduleHeight / 3,\n borderRadius: monthView.controller.theme.month.schedule.borderRadius\n }\n }));\n layer.show();\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n};\n\n/**\n * Handler for MonthMove#drag\n * @param {object} dragEvent - drag event data object\n */\nMonthMoveGuide.prototype._onDrag = function(dragEvent) {\n var container = this.monthMove.monthView.container,\n mousePos = domevent.getMousePosition(\n dragEvent.originEvent,\n container\n );\n\n this._updateGridBgColor(dragEvent);\n\n if (!this.layer) {\n return;\n }\n\n this.layer.setPosition(mousePos[0], mousePos[1]);\n};\n\n/**\n * Handler for MonthMove#dragEnd\n */\nMonthMoveGuide.prototype._onDragEnd = function() {\n this._showOriginScheduleBlocks();\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._clearGridBgColor();\n this.layer.destroy();\n this.layer = null;\n};\n\nmodule.exports = MonthMoveGuide;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-left:3px solid \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n \";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":110},\"end\":{\"line\":16,\"column\":124}}}) : helper)))\n + \"weekday-schedule-title-focused\\\"\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"allday-tmpl\"]||(depth0 && depth0[\"allday-tmpl\"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":12},\"end\":{\"line\":18,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"time-tmpl\"]||(depth0 && depth0[\"time-tmpl\"])||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":12},\"end\":{\"line\":20,\"column\":33}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n\"\n + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":4},\"end\":{\"line\":15,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.program(9, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":17,\"column\":8},\"end\":{\"line\":21,\"column\":15}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\";\n},\"useData\":true});","/**\n * @fileoverview Floating layer for displaying schedule in specific date\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar OUT_PADDING = 5;\nvar VIEW_MIN_WIDTH = 280;\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domevent = require('../../common/domevent'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n FloatingLayer = require('../../common/floatingLayer'),\n common = require('../../common/common'),\n tmpl = require('../template/month/more.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {object} [options.moreLayerSize] - more layer size\n * @param {object} [options.moreLayerSize.width=null] - css width value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {object} [options.moreLayerSize.height=null] - css height value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {HTMLElement} container = container element\n * @param {Theme} theme - theme instance\n */\nfunction More(options, container, theme) {\n View.call(this, container);\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n moreLayerSize: {\n width: null,\n height: null\n },\n scheduleHeight: parseInt(theme.month.schedule.height, 10) || 18,\n scheduleGutter: parseInt(theme.month.schedule.marginTop, 10) || 2,\n scheduleBulletTop: (parseInt(theme.month.schedule.height, 10) || 18) / 3,\n borderRadius: theme.month.schedule.borderRadius\n }, options);\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(More, View);\n\n/**\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nMore.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n var className = config.classname('month-more-close');\n\n if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Mousedown event handler for hiding more layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nMore.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n moreLayer = domutil.closest(target, config.classname('.month-more'));\n\n if (moreLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Get new position for more layer by +n element itself\n * @param {HTMLElement} target - parent grid-line element of +n element\n * @param {HTMLElement} weekItem - weekItem container element\n * @returns {number[]} new position of more layer\n */\nMore.prototype._getRenderPosition = function(target, weekItem) {\n var pos = domevent.getMousePosition({\n clientX: domutil.getPosition(target)[0],\n clientY: domutil.getPosition(weekItem)[1]\n }, this.container);\n var containerSize = domutil.getSize(this.container);\n var left = pos[0] - OUT_PADDING;\n var top = pos[1] - OUT_PADDING;\n\n left = common.ratio(containerSize[0], 100, left);\n top = common.ratio(containerSize[1], 100, top);\n\n return [left, top];\n};\n\n/**\n * @override\n */\nMore.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nMore.prototype.render = function(viewModel) {\n var target = domutil.closest(viewModel.target, config.classname('.weekday-grid-line'));\n var weekItem = domutil.closest(target, config.classname('.month-week-item'));\n var layer = this.layer;\n var self = this;\n var pos = this._getRenderPosition(target, weekItem);\n var minHeight = domutil.getSize(weekItem)[1] + (OUT_PADDING * 2);\n var width = target.offsetWidth + (OUT_PADDING * 2);\n var opt = this.options;\n var optMoreLayerSize = opt.moreLayerSize;\n var styles = this._getStyles(this.theme);\n var maxVisibleSchedulesInLayer = 10;\n var height = '';\n var containerSize = domutil.getSize(this.container);\n var calWidth = 0;\n var calHeight = 0;\n var isOverWidth = false;\n var isOverHeight = false;\n var leftPos = pos[0];\n var topPos = pos[1];\n\n this._viewModel = util.extend(viewModel, {\n scheduleGutter: opt.scheduleGutter,\n scheduleHeight: opt.scheduleHeight,\n scheduleBulletTop: opt.scheduleBulletTop,\n borderRadius: opt.borderRadius,\n styles: styles\n });\n\n width = Math.max(width, VIEW_MIN_WIDTH);\n height = parseInt(styles.titleHeight, 10);\n height += parseInt(styles.titleMarginBottom, 10);\n if (viewModel.schedules.length <= maxVisibleSchedulesInLayer) {\n height += (opt.scheduleGutter + opt.scheduleHeight) * viewModel.schedules.length;\n } else {\n height += (opt.scheduleGutter + opt.scheduleHeight) * maxVisibleSchedulesInLayer;\n }\n height += parseInt(styles.paddingBottom, 10);\n height += OUT_PADDING; // for border\n\n if (optMoreLayerSize.width) {\n width = optMoreLayerSize.width;\n }\n\n if (optMoreLayerSize.height) {\n height = optMoreLayerSize.height;\n }\n\n if (isNaN(height) || height < minHeight) {\n height = minHeight;\n }\n\n layer.setContent(tmpl(viewModel));\n\n calWidth = leftPos * containerSize[0] / 100;\n calHeight = topPos * containerSize[1] / 100;\n isOverWidth = calWidth + width >= containerSize[0];\n isOverHeight = calHeight + height >= containerSize[1];\n leftPos = leftPos + '%';\n topPos = topPos + '%';\n\n if (isOverWidth && isOverHeight) {\n layer.setLTRB({\n right: 0,\n bottom: 0\n });\n } else if (!isOverWidth && isOverHeight) {\n layer.setLTRB({\n left: leftPos,\n bottom: 0\n });\n } else if (isOverWidth && !isOverHeight) {\n layer.setLTRB({\n right: 0,\n top: topPos\n });\n } else {\n layer.setPosition(leftPos, topPos);\n }\n\n layer.setSize(width, height);\n\n layer.show();\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Hide layer\n */\nMore.prototype.hide = function() {\n this.layer.hide();\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nMore.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(tmpl(this._viewModel));\n }\n};\n\n/**\n * Return more layer root element\n * @returns {HTMLElement} root element\n */\nMore.prototype.getMoreViewElement = function() {\n return domutil.find(config.classname('.month-more'), this.layer.container);\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMore.prototype._getStyles = function(theme) {\n var styles = {};\n var listHeight = '';\n\n if (theme) {\n styles.border = theme.month.moreView.border || theme.common.border;\n styles.boxShadow = theme.month.moreView.boxShadow;\n styles.backgroundColor = theme.month.moreView.backgroundColor || theme.common.backgroundColor;\n styles.paddingBottom = theme.month.moreView.paddingBottom;\n styles.titleHeight = theme.month.moreViewTitle.height;\n styles.titleMarginBottom = theme.month.moreViewTitle.marginBottom;\n styles.titleBackgroundColor = theme.month.moreViewTitle.backgroundColor;\n styles.titleBorderBottom = theme.month.moreViewTitle.borderBottom;\n styles.titlePadding = theme.month.moreViewTitle.padding;\n styles.listPadding = theme.month.moreViewList.padding;\n listHeight = 'calc(100%';\n\n if (parseInt(styles.titleHeight, 10)) {\n listHeight += ' - ' + styles.titleHeight;\n }\n if (parseInt(styles.titleMarginBottom, 10)) {\n listHeight += ' - ' + styles.titleMarginBottom;\n }\n listHeight += ')';\n\n styles.listHeight = listHeight;\n }\n\n return styles;\n};\n\nmodule.exports = More;\n","var Handlebars = require('/Users/nhnent/Jodeng/workspace/Work/toast-ui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":8},\"end\":{\"line\":65,\"column\":15}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"allday-tmpl\"]||(depth0 && depth0[\"allday-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":20},\"end\":{\"line\":20,\"column\":43}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi||(depth0 && depth0.fi)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.category : stack1),\"===\",\"time\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.program(17, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":12},\"end\":{\"line\":64,\"column\":19}}})) != null ? stack1 : \"\");\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"]||(depth0 && depth0[\"time-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":42,\"column\":53},\"end\":{\"line\":42,\"column\":74}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \"\\n \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n \";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"schedule-tmpl\"]||(depth0 && depth0[\"schedule-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":62,\"column\":65},\"end\":{\"line\":62,\"column\":90}}})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":115},\"end\":{\"line\":47,\"column\":129}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginLeft), depth0))\n + \";\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && data.root)) && stack1.styles)) && stack1.marginRight), depth0))\n + \";\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthMoreTitleDate-tmpl\"]||(depth0 && depth0[\"monthMoreTitleDate-tmpl\"])||alias2).call(alias1,(depth0 != null ? depth0.date : depth0),(depth0 != null ? depth0.dayname : depth0),{\"name\":\"monthMoreTitleDate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":58},\"end\":{\"line\":4,\"column\":100}}})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":8},\"end\":{\"line\":66,\"column\":17}}})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});","/* eslint complexity: 0 */\n/**\n * @fileoverview Helpers for handlebar templates.\n * @author NHN FE Development Lab \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Handlebars = require('handlebars-template-loader/runtime');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar config = require('../../config');\nvar mmax = Math.max;\nvar SIXTY_MINUTES = 60;\nvar helpers = {\n /**\n * Stamp supplied object\n *\n * Commonly use for rendering object's unique ID to rendered view\n * @param {object} obj - object to stamp\n * @returns {number} stamp value\n */\n 'stamp': function(obj) {\n return util.stamp(obj);\n },\n\n /**\n * Whether supplied object are equal?\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} result of operation\n */\n 'equal': function(a, b) {\n return a === b;\n },\n\n /**\n * OR\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} or\n */\n 'or': function(a, b) {\n return a || b;\n },\n\n /**\n * AND\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} or\n */\n 'and': function(a, b) {\n return a && b;\n },\n\n /**\n * Compare object or apply logical operation by customizable oper parameter\n * @param {*} a - a\n * @param {string} oper - operator ex) '==', '<'\n * @param {*} b - b\n * @param {Handlebars} options - handlebar options\n * @returns {boolean} result of operation\n */\n 'fi': function(a, oper, b, options) {\n switch (oper) {\n case '==':\n return (a == b) ? options.fn(this) : options.inverse(this); // eslint-disable-line\n case '===':\n return (a === b) ? options.fn(this) : options.inverse(this);\n case '!==':\n return (a !== b) ? options.fn(this) : options.inverse(this);\n case '<':\n return (a < b) ? options.fn(this) : options.inverse(this);\n case '||':\n return (a || b) ? options.fn(this) : options.inverse(this);\n default:\n throw new Error('Not match operation');\n }\n },\n\n /**\n * Get hhmm formatted time str\n * @param {Date} date - date object\n * @returns {string} formatted value\n */\n 'hhmm': function(date) {\n return datetime.format(date, 'HH:mm');\n },\n\n /**\n * Get `width` stylesheet string\n * @param {number} width - width percentage\n * @returns {string} css style part\n */\n 'common-width': function(width) {\n return getElSize(width, '%', 'width');\n },\n\n /**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\n 'grid-left': function(viewModel, grids) {\n return getElLeft(viewModel, grids);\n },\n\n /**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\n 'grid-width': function(viewModel, grids) {\n return getElWidth(viewModel, grids);\n },\n\n /**\n * Use in time.hbs\n * @param {ScheduleViewModel} viewModel viewModel\n * @returns {string} element size css class\n */\n 'time-scheduleBlock': function(viewModel) {\n var top = getElSize(viewModel.top, 'px', 'top'),\n left = getElSize(viewModel.left, '%', 'left'),\n width = getElSize(viewModel.width, '%', 'width'),\n height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'month-scheduleBlock': function(viewModel, grids, blockHeight, paddingTop) {\n var top = getElSize(((viewModel.top - 1) * blockHeight) + paddingTop, 'px', 'top');\n var left = getElSize(grids[viewModel.left] ? grids[viewModel.left].left : 0, '%', 'left');\n var width = getElSize(getElWidth(viewModel, grids), '%', 'width');\n var height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'holiday': function(day) {\n var cssClass = '';\n\n if (day === 0) {\n cssClass = config.classname('holiday-sun');\n }\n\n if (day === 6) {\n cssClass = config.classname('holiday-sat');\n }\n\n return cssClass;\n },\n\n /**\n * Add supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'add': function(a, b) {\n return a + b;\n },\n\n /**\n * Multiply supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'multiply': function(a, b) {\n return a * b;\n },\n\n /**\n * Divide supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'divide': function(a, b) {\n return a / b;\n },\n\n /**\n * Subtract supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'subtract': function(a, b) {\n return a - b;\n },\n\n 'getRight': function(a, b) {\n return mmax(0, 100 - (a + b));\n },\n\n /**\n * Get css prefix in global configuration\n * @returns {string} css prefix\n */\n 'CSS_PREFIX': function() {\n return config.cssPrefix;\n },\n\n 'reverse': function(array) {\n return array.slice().reverse();\n },\n\n /**********\n * Default schedule template\n **********/\n\n 'milestone-tmpl': function(model) {\n var icon = config.classname('icon');\n var iconName = config.classname('ic-milestone');\n\n return '' + common.stripTags(model.title) + '';\n },\n\n 'milestoneTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return 'Milestone';\n },\n\n 'task-tmpl': function(model) {\n return '#' + model.title;\n },\n\n 'taskTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return 'Task';\n },\n\n 'alldayTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return 'All Day';\n },\n\n 'allday-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'time-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'goingDuration-tmpl': function(model) {\n var goingDuration = model.goingDuration;\n var hour = parseInt(goingDuration / SIXTY_MINUTES, 10);\n var minutes = goingDuration % SIXTY_MINUTES;\n\n return 'GoingTime ' + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n },\n\n 'comingDuration-tmpl': function(model) {\n var goingDuration = model.goingDuration;\n var hour = parseInt(goingDuration / SIXTY_MINUTES, 10);\n var minutes = goingDuration % SIXTY_MINUTES;\n\n return 'ComingTime ' + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n },\n\n 'monthMoreTitleDate-tmpl': function(date, dayname) {\n var classDay = config.classname('month-more-title-day');\n var classDayLabel = config.classname('month-more-title-day-label');\n var day = util.pick(date.split('.'), 2);\n\n return '' + day + ' ' + dayname + '';\n },\n\n 'monthMoreClose-tmpl': function() {\n return '';\n },\n\n 'monthGridHeader-tmpl': function(model) {\n var date = parseInt(model.date.split('-')[2], 10);\n var classNames = [];\n\n classNames.push(config.classname('weekday-grid-date'));\n if (model.isToday) {\n classNames.push(config.classname('weekday-grid-date-decorator'));\n }\n\n return '' + date + '';\n },\n\n 'monthGridHeaderExceed-tmpl': function(hiddenSchedules) {\n var className = config.classname('weekday-grid-more-schedules');\n\n return '' + hiddenSchedules + ' more';\n },\n\n 'monthGridFooter-tmpl': function() {\n return '';\n },\n\n /* eslint no-unused-vars: 0 */\n 'monthGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '';\n },\n\n 'monthDayname-tmpl': function(model) {\n return model.label;\n },\n\n 'weekDayname-tmpl': function(model) {\n var classDate = config.classname('dayname-date');\n var className = config.classname('dayname-name');\n\n return '' + model.date + '  ' + model.dayName + '';\n },\n\n 'weekGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '+' + hiddenSchedules;\n },\n\n 'dayGridTitle-tmpl': function(viewName) {\n var tmpl = Handlebars.helpers[viewName + 'Title-tmpl'];\n if (tmpl) {\n return tmpl(viewName);\n }\n\n return viewName;\n },\n\n 'schedule-tmpl': function(model) {\n var tmpl = Handlebars.helpers[model.category + '-tmpl'];\n if (tmpl) {\n return tmpl(model);\n }\n\n return '';\n },\n\n 'collapseBtnTitle-tmpl': function() {\n var iconName = config.classname('icon');\n var closeIconName = config.classname('ic-arrow-solid-top');\n\n return '';\n },\n\n 'timezoneDisplayLabel-tmpl': function(timezoneOffset, displayLabel) {\n var gmt, hour, minutes;\n\n if (util.isUndefined(displayLabel)) {\n gmt = timezoneOffset < 0 ? '-' : '+';\n hour = Math.abs(parseInt(timezoneOffset / SIXTY_MINUTES, 10));\n minutes = Math.abs(timezoneOffset % SIXTY_MINUTES);\n displayLabel = gmt + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n }\n\n return displayLabel;\n },\n\n 'timegridDisplayPrimayTime-tmpl': function(time) {\n /* TODO: 삭제 필요 (will be deprecated) */\n return Handlebars.helpers['timegridDisplayPrimaryTime-tmpl'](time);\n },\n\n 'timegridDisplayPrimaryTime-tmpl': function(time) {\n var hour = time.hour;\n var meridiem = hour >= 12 ? 'pm' : 'am';\n\n if (hour > 12) {\n hour = hour - 12;\n }\n\n return hour + ' ' + meridiem;\n },\n\n 'timegridDisplayTime-tmpl': function(time) {\n return datetime.leadingZero(time.hour, 2) + ':' + datetime.leadingZero(time.minutes, 2);\n },\n\n 'timegridCurrentTime-tmpl': function(timezone) {\n var templates = [];\n\n if (timezone.dateDifference) {\n templates.push('[' + timezone.dateDifferenceSign + timezone.dateDifference + ']
    ');\n }\n\n templates.push(datetime.format(timezone.hourmarker, 'HH:mm'));\n\n return templates.join('');\n },\n\n 'popupIsAllDay-tmpl': function() {\n return 'All day';\n },\n\n 'popupStateFree-tmpl': function() {\n return 'Free';\n },\n\n 'popupStateBusy-tmpl': function() {\n return 'Busy';\n },\n\n 'titlePlaceholder-tmpl': function() {\n return 'Subject';\n },\n\n 'locationPlaceholder-tmpl': function() {\n return 'Location';\n },\n\n 'startDatePlaceholder-tmpl': function() {\n return 'Start date';\n },\n\n 'endDatePlaceholder-tmpl': function() {\n return 'End date';\n },\n 'popupSave-tmpl': function() {\n return 'Save';\n },\n 'popupUpdate-tmpl': function() {\n return 'Update';\n },\n 'popupDetailDate-tmpl': function(isAllDay, start, end) {\n var isSameDate = datetime.isSameDate(start, end);\n var endFormat = (isSameDate ? '' : 'YYYY.MM.DD ') + 'hh:mm tt';\n\n if (isAllDay) {\n return datetime.format(start, 'YYYY.MM.DD') + (isSameDate ? '' : ' - ' + datetime.format(end, 'YYYY.MM.DD'));\n }\n\n return (datetime.format(start, 'YYYY.MM.DD hh:mm tt') + ' - ' + datetime.format(end, endFormat));\n },\n 'popupDetailLocation-tmpl': function(schedule) {\n return schedule.location;\n },\n 'popupDetailUser-tmpl': function(schedule) {\n return (schedule.attendees || []).join(', ');\n },\n 'popupDetailState-tmpl': function(schedule) {\n return schedule.state || 'Busy';\n },\n 'popupDetailRepeat-tmpl': function(schedule) {\n return schedule.recurrenceRule;\n },\n 'popupDetailBody-tmpl': function(schedule) {\n return schedule.body;\n },\n 'popupEdit-tmpl': function() {\n return 'Edit';\n },\n 'popupDelete-tmpl': function() {\n return 'Delete';\n }\n};\n\n/**\n * Get CSS syntax for element size\n * @param {number} value - size value to apply element\n * @param {string} postfix - postfix string ex) px, em, %\n * @param {string} prefix - property name ex) width, height\n * @returns {string} CSS syntax\n */\nfunction getElSize(value, postfix, prefix) {\n prefix = prefix || '';\n if (util.isNumber(value)) {\n return prefix + ':' + value + postfix;\n }\n\n return prefix + ':auto';\n}\n\n/**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\nfunction getElLeft(viewModel, grids) {\n return grids[viewModel.left] ? grids[viewModel.left].left : 0;\n}\n\n/**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getElWidth(viewModel, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n var left;\n for (; i < viewModel.width; i += 1) {\n left = (viewModel.left + i) % length;\n left += parseInt((viewModel.left + i) / length, 10);\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nHandlebars.registerHelper(helpers);\n"],"sourceRoot":""} \ No newline at end of file diff --git a/index.d.ts b/index.d.ts index cfa2361fa..9f909420f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for TOAST UI Calendar v1.12.10 +// Type definitions for TOAST UI Calendar v1.12.11 // TypeScript Version: 3.2.1 export type DateType = string | Date | TZDate; diff --git a/package.json b/package.json index d7ee578aa..90521bb7f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tui-calendar", "author": "NHN FE Development Lab ", - "version": "1.12.10", + "version": "1.12.11", "main": "dist/tui-calendar.js", "types": "index.d.ts", "license": "MIT",