From 37b13035efd82b9b42c1b273eeca6d9788ff87bc Mon Sep 17 00:00:00 2001 From: Jenny Cho Date: Tue, 28 Apr 2020 19:26:16 +0900 Subject: [PATCH] 1.12.13 --- bower.json | 2 +- dist/tui-calendar.css | 2 +- dist/tui-calendar.js | 832 ++++++++++++++++++++++------------ dist/tui-calendar.js.map | 2 +- dist/tui-calendar.min.css | 2 +- dist/tui-calendar.min.css.map | 2 +- dist/tui-calendar.min.js | 4 +- dist/tui-calendar.min.js.map | 2 +- index.d.ts | 2 +- package.json | 2 +- 10 files changed, 560 insertions(+), 292 deletions(-) diff --git a/bower.json b/bower.json index 7f8f98fd4..1b6b603eb 100644 --- a/bower.json +++ b/bower.json @@ -8,7 +8,7 @@ "dist/tui-calendar.js", "dist/tui-calendar.css" ], - "version": "1.12.12", + "version": "1.12.13", "description": "TOAST UI Calendar", "ignore": [ "**/.*", diff --git a/dist/tui-calendar.css b/dist/tui-calendar.css index 8e726464e..af58ae5cc 100644 --- a/dist/tui-calendar.css +++ b/dist/tui-calendar.css @@ -1,6 +1,6 @@ /*! * TOAST UI Calendar - * @version 1.12.12 | Mon Mar 23 2020 + * @version 1.12.13 | Tue Apr 28 2020 * @author NHN FE Development Lab * @license MIT */ diff --git a/dist/tui-calendar.js b/dist/tui-calendar.js index 403402af5..a6d9f0b70 100644 --- a/dist/tui-calendar.js +++ b/dist/tui-calendar.js @@ -1,6 +1,6 @@ /*! * TOAST UI Calendar - * @version 1.12.12 | Mon Mar 23 2020 + * @version 1.12.13 | Tue Apr 28 2020 * @author NHN FE Development Lab * @license MIT */ @@ -3166,7 +3166,7 @@ module.exports = { if (datetime.compare(schedule[propName], data[propName])) { changes[propName] = data[propName]; } - } else if (data[propName] && schedule[propName] !== data[propName]) { + } else if (!util.isUndefined(data[propName]) && schedule[propName] !== data[propName]) { changes[propName] = data[propName]; } }); @@ -3799,6 +3799,7 @@ datetime = { var date = new TZDate(d); if (datetime.isStartOfDay(d)) { date.setDate(date.getDate() - 1); + date.setHours(23, 59, 59); } return date; @@ -4480,6 +4481,16 @@ var domevent = { } return -1; + }, + + /** + * Get target from event object + * + * @param {Event} event - The event object + * @returns {object} - The event target object + */ + getEventTarget: function(event) { + return event.target || event.srcElement; } }; @@ -4661,7 +4672,13 @@ domutil = { * @returns {HTMLElement} - element finded or null. */ closest: function(el, selector, excludeEl) { - var parent = el.parentNode; + var parent; + + if (!el) { + return null; + } + + parent = el.parentNode; if (!excludeEl && domutil._matcher(el, selector)) { return el; @@ -5082,7 +5099,7 @@ domutil = { } }; -/*eslint-disable*/ +/* eslint-disable */ var userSelectProperty = domutil.testProp([ 'userSelect', 'WebkitUserSelect', @@ -5092,7 +5109,8 @@ var userSelectProperty = domutil.testProp([ ]); var supportSelectStart = 'onselectstart' in document; var prevSelectStyle = ''; -/* eslint-enable*/ + +/* eslint-enable */ /** * Disable browser's text selection behaviors. @@ -5100,8 +5118,8 @@ var prevSelectStyle = ''; */ domutil.disableTextSelection = (function() { if (supportSelectStart) { - return function(dom) { - domevent.on(dom, 'selectstart', domevent.preventDefault); + return function(dom, onSelectstartHandler) { + domevent.on(dom, 'selectstart', onSelectstartHandler || domevent.preventDefault); }; } @@ -5118,8 +5136,8 @@ domutil.disableTextSelection = (function() { */ domutil.enableTextSelection = (function() { if (supportSelectStart) { - return function() { - domevent.off(window, 'selectstart', domevent.preventDefault); + return function(dom, onSelectstartHandler) { + domevent.off(window, 'selectstart', onSelectstartHandler || domevent.preventDefault); }; } @@ -7253,12 +7271,17 @@ Base.prototype.createSchedules = function(dataList, silent) { * @param {object} options updated object data. * @returns {Schedule} updated schedule instance */ +// eslint-disable-next-line complexity Base.prototype.updateSchedule = function(schedule, options) { var start = options.start || schedule.start; var end = options.end || schedule.end; options = options || {}; + if (['milestone', 'task', 'allday', 'time'].indexOf(options.category) > -1) { + schedule.set('category', options.category); + } + if (options.category === 'allday') { options.isAllDay = true; } @@ -8250,7 +8273,7 @@ var Week = { var model = viewModel.model; viewModel.hasMultiDates = true; viewModel.renderStarts = datetime.start(model.getStarts()); - viewModel.renderEnds = datetime.end(model.getEnds()); + viewModel.renderEnds = datetime.convertStartDayToLastDay(model.getEnds()); }); }, @@ -12889,6 +12912,7 @@ module.exports = DayGridResizeGuide; var util = __webpack_require__(/*! tui-code-snippet */ "tui-code-snippet"); var domutil = __webpack_require__(/*! ../common/domutil */ "./src/js/common/domutil.js"); var domevent = __webpack_require__(/*! ../common/domevent */ "./src/js/common/domevent.js"); +var config = __webpack_require__(/*! ../config */ "./src/js/config.js"); /** * @constructor @@ -12976,8 +13000,8 @@ Drag.prototype._toggleDragEvent = function(toBind) { method = 'enable'; } - domutil[method + 'TextSelection'](container); - domutil[method + 'ImageDrag'](container); + domutil[method + 'TextSelection'](container, preventDefaultWhenNotPopup); + domutil[method + 'ImageDrag'](container, preventDefaultWhenNotPopup); domevent[domMethod](global.document, { mousemove: this._onMouseMove, mouseup: this._onMouseUp @@ -12991,7 +13015,7 @@ Drag.prototype._toggleDragEvent = function(toBind) { */ Drag.prototype._getEventData = function(mouseEvent) { return { - target: mouseEvent.target || mouseEvent.srcElement, + target: domevent.getEventTarget(mouseEvent), originEvent: mouseEvent }; }; @@ -13002,7 +13026,7 @@ Drag.prototype._getEventData = function(mouseEvent) { */ Drag.prototype._onMouseDown = function(mouseDownEvent) { var opt = this.options, - target = (mouseDownEvent.srcElement || mouseDownEvent.target); + target = domevent.getEventTarget(mouseDownEvent); // only primary button can start drag. if (domevent.getMouseButton(mouseDownEvent) !== 0) { @@ -13047,7 +13071,7 @@ Drag.prototype._onMouseMove = function(mouseMoveEvent) { distance = this.options.distance; // prevent automatic scrolling. - domevent.preventDefault(mouseMoveEvent); + preventDefaultWhenNotPopup(mouseMoveEvent); if (this._distance < distance) { this._distance += 1; @@ -13122,6 +13146,19 @@ Drag.prototype._onMouseUp = function(mouseUpEvent) { this._clearData(); }; +/** + * If the target is not a popup, it prevents the default. + * @method + * @param {MouseEvent} event - Mouse event object + */ +function preventDefaultWhenNotPopup(event) { + var popup = domutil.closest(event.target, config.classname('.popup')); + + if (!popup) { + domevent.preventDefault(event); + } +} + util.CustomEvents.mixin(Drag); module.exports = Drag; @@ -15641,7 +15678,7 @@ var timeCore = { ); return util.extend({ - target: mouseEvent.target || mouseEvent.srcElement, + target: domevent.getEventTarget(mouseEvent), relatedView: timeView, originEvent: mouseEvent, mouseY: mouseY, @@ -19343,7 +19380,7 @@ util.inherit(More, View); * @param {MouseEvent} clickEvent - mouse event object */ More.prototype._onClick = function(clickEvent) { - var target = (clickEvent.target || clickEvent.srcElement); + var target = domevent.getEventTarget(clickEvent); var className = config.classname('month-more-close'); if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) { @@ -19359,7 +19396,7 @@ More.prototype._onClick = function(clickEvent) { * @param {MouseEvent} mouseDownEvent - mouse event object */ More.prototype._onMouseDown = function(mouseDownEvent) { - var target = (mouseDownEvent.target || mouseDownEvent.srcElement), + var target = domevent.getEventTarget(mouseDownEvent), moreLayer = domutil.closest(target, config.classname('.month-more')); if (moreLayer) { @@ -19775,10 +19812,10 @@ var config = __webpack_require__(/*! ../../config */ "./src/js/config.js"); var domevent = __webpack_require__(/*! ../../common/domevent */ "./src/js/common/domevent.js"); var domutil = __webpack_require__(/*! ../../common/domutil */ "./src/js/common/domutil.js"); var common = __webpack_require__(/*! ../../common/common */ "./src/js/common/common.js"); +var datetime = __webpack_require__(/*! ../../common/datetime */ "./src/js/common/datetime.js"); var tmpl = __webpack_require__(/*! ../template/popup/scheduleCreationPopup.hbs */ "./src/js/view/template/popup/scheduleCreationPopup.hbs"); var TZDate = timezone.Date; var MAX_WEEK_OF_MONTH = 6; -var ARROW_WIDTH_HALF = 8; /** * @constructor @@ -19825,7 +19862,7 @@ util.inherit(ScheduleCreationPopup, View); * @param {MouseEvent} mouseDownEvent - mouse event object */ ScheduleCreationPopup.prototype._onMouseDown = function(mouseDownEvent) { - var target = (mouseDownEvent.target || mouseDownEvent.srcElement), + var target = domevent.getEventTarget(mouseDownEvent), popupLayer = domutil.closest(target, config.classname('.floating-layer')); if (popupLayer) { @@ -19852,7 +19889,7 @@ ScheduleCreationPopup.prototype.destroy = function() { * @param {MouseEvent} clickEvent - mouse event object */ ScheduleCreationPopup.prototype._onClick = function(clickEvent) { - var target = (clickEvent.target || clickEvent.srcElement); + var target = domevent.getEventTarget(clickEvent); util.forEach(this._onClickListeners, function(listener) { return !listener(target); @@ -20002,12 +20039,16 @@ ScheduleCreationPopup.prototype._toggleIsPrivate = function(target) { * @param {HTMLElement} target click event target * @returns {boolean} whether save button is clicked or not */ +// eslint-disable-next-line complexity ScheduleCreationPopup.prototype._onClickSaveSchedule = function(target) { var className = config.classname('popup-save'); var cssPrefix = config.cssPrefix; - var title, isPrivate, location, isAllDay, startDate, endDate, state; - var start, end, calendarId; - var changes; + var title; + var startDate; + var endDate; + var rangeDate; + var form; + var isAllDay; if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) { return false; @@ -20017,78 +20058,32 @@ ScheduleCreationPopup.prototype._onClickSaveSchedule = function(target) { startDate = new TZDate(this.rangePicker.getStartDate()).toLocalTime(); endDate = new TZDate(this.rangePicker.getEndDate()).toLocalTime(); - if (!title.value) { - title.focus(); - - return true; - } + if (!this._validateForm(title, startDate, endDate)) { + if (!title.value) { + title.focus(); + } - if (!startDate && !endDate) { - return true; + return false; } - isPrivate = !domutil.hasClass(domutil.get(cssPrefix + 'schedule-private'), config.classname('public')); - location = domutil.get(cssPrefix + 'schedule-location'); - state = domutil.get(cssPrefix + 'schedule-state'); isAllDay = !!domutil.get(cssPrefix + 'schedule-allday').checked; + rangeDate = this._getRangeDate(startDate, endDate, isAllDay); - if (isAllDay) { - startDate.setHours(0, 0, 0); - endDate.setHours(23, 59, 59); - } - - start = new TZDate(startDate); - end = new TZDate(endDate); - - if (this._selectedCal) { - calendarId = this._selectedCal.id; - } + form = { + calendarId: this._selectedCal ? this._selectedCal.id : null, + title: title, + location: domutil.get(cssPrefix + 'schedule-location'), + start: rangeDate.start, + end: rangeDate.end, + isAllDay: isAllDay, + state: domutil.get(cssPrefix + 'schedule-state').innerText, + isPrivate: !domutil.hasClass(domutil.get(cssPrefix + 'schedule-private'), config.classname('public')) + }; if (this._isEditMode) { - changes = common.getScheduleChanges( - this._schedule, - ['calendarId', 'title', 'location', 'start', 'end', 'isAllDay', 'state'], - { - calendarId: calendarId, - title: title.value, - location: location.value, - start: start, - end: end, - isAllDay: isAllDay, - state: state.innerText - } - ); - - this.fire('beforeUpdateSchedule', { - schedule: util.extend({ - raw: { - class: isPrivate ? 'private' : 'public' - } - }, this._schedule), - changes: changes, - start: start, - end: end, - calendar: this._selectedCal, - triggerEventName: 'click' - }); + this._onClickUpdateSchedule(form); } else { - /** - * @event ScheduleCreationPopup#beforeCreateSchedule - * @type {object} - * @property {Schedule} schedule - new schedule instance to be added - */ - this.fire('beforeCreateSchedule', { - calendarId: calendarId, - title: title.value, - location: location.value, - raw: { - class: isPrivate ? 'private' : 'public' - }, - start: start, - end: end, - isAllDay: isAllDay, - state: state.innerText - }); + this._onClickCreateSchedule(form); } this.hide(); @@ -20189,20 +20184,9 @@ ScheduleCreationPopup.prototype._setPopupPositionAndArrowDirection = function(gu width: layer.offsetWidth, height: layer.offsetHeight }; - var windowSize = { - right: window.innerWidth, - bottom: window.innerHeight - }; - var parentRect = this.layer.parent.getBoundingClientRect(); - var parentBounds = { - left: parentRect.left, - top: parentRect.top - }; - var pos; + var containerBound = this.container.getBoundingClientRect(); + var pos = this._calcRenderingData(layerSize, containerBound, guideBound); - pos = this._calcRenderingData(layerSize, windowSize, guideBound); - pos.x -= parentBounds.left; - pos.y -= (parentBounds.top + 6); this.layer.setPosition(pos.x, pos.y); this._setArrowDirection(pos.arrow); }; @@ -20254,36 +20238,116 @@ ScheduleCreationPopup.prototype._getBoundOfFirstRowGuideElement = function(guide }; /** - * Calculate rendering position usering guide elements - * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height - * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} parentSize - width and height of the upper layer, that acts as a border of popup - * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} guideBound - guide element bound data - * @returns {PopupRenderingData} rendering position of popup and popup arrow + * Get calculate rendering positions of y and arrow direction by guide block elements + * @param {number} guideBoundTop - guide block's top + * @param {number} guideBoundBottom - guide block's bottom + * @param {number} layerHeight - popup layer's height + * @param {number} containerTop - container's top + * @param {number} containerBottom - container's bottom + * @returns {YAndArrowDirection} y and arrowDirection */ -ScheduleCreationPopup.prototype._calcRenderingData = function(layerSize, parentSize, guideBound) { - var guideHorizontalCenter = (guideBound.left + guideBound.right) / 2; - var x = guideHorizontalCenter - (layerSize.width / 2); - var y = guideBound.top - layerSize.height + 3; +ScheduleCreationPopup.prototype._getYAndArrowDirection = function( + guideBoundTop, + guideBoundBottom, + layerHeight, + containerTop, + containerBottom +) { var arrowDirection = 'arrow-bottom'; - var arrowLeft; + var MARGIN = 3; + var y = guideBoundTop - layerHeight; - if (y < 0) { - y = guideBound.bottom + 9; + if (y < containerTop) { + y = guideBoundBottom - containerTop + MARGIN; arrowDirection = 'arrow-top'; + } else { + y = y - containerTop - MARGIN; } - if (x > 0 && (x + layerSize.width > parentSize.right)) { - x = parentSize.right - layerSize.width; + if (y + layerHeight > containerBottom) { + y = containerBottom - layerHeight - containerTop - MARGIN; } - if (x < 0) { - x = 0; + /** + * @typedef {Object} YAndArrowDirection + * @property {number} y - top position of popup layer + * @property {string} [arrowDirection] - direction of popup arrow + */ + return { + y: y, + arrowDirection: arrowDirection + }; +}; + +/** +* Get calculate rendering x position and arrow left by guide block elements +* @param {number} guideBoundLeft - guide block's left +* @param {number} guideBoundRight - guide block's right +* @param {number} layerWidth - popup layer's width +* @param {number} containerLeft - container's left +* @param {number} containerRight - container's right +* @returns {XAndArrowLeft} x and arrowLeft +*/ +ScheduleCreationPopup.prototype._getXAndArrowLeft = function( + guideBoundLeft, + guideBoundRight, + layerWidth, + containerLeft, + containerRight +) { + var guideHorizontalCenter = (guideBoundLeft + guideBoundRight) / 2; + var x = guideHorizontalCenter - (layerWidth / 2); + var ARROW_WIDTH_HALF = 8; + var arrowLeft; + + if (x + layerWidth > containerRight) { + x = guideBoundRight - layerWidth + ARROW_WIDTH_HALF; + arrowLeft = guideHorizontalCenter - x; + } else { + x += ARROW_WIDTH_HALF; } - if (guideHorizontalCenter - x !== layerSize.width / 2) { - arrowLeft = guideHorizontalCenter - x - ARROW_WIDTH_HALF; + if (x < containerLeft) { + x = 0; + arrowLeft = guideHorizontalCenter - containerLeft - ARROW_WIDTH_HALF; + } else { + x = x - containerLeft - ARROW_WIDTH_HALF; } + /** + * @typedef {Object} XAndArrowLeft + * @property {number} x - left position of popup layer + * @property {numbe3er} arrowLeft - relative position of popup arrow, if it is not set, arrow appears on the middle of popup + */ + return { + x: x, + arrowLeft: arrowLeft + }; +}; + +/** + * Calculate rendering position usering guide elements + * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height + * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} containerBound - width and height of the upper layer, that acts as a border of popup + * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} guideBound - guide element bound data + * @returns {PopupRenderingData} rendering position of popup and popup arrow + */ +ScheduleCreationPopup.prototype._calcRenderingData = function(layerSize, containerBound, guideBound) { + var yPosInfo = this._getYAndArrowDirection( + guideBound.top, + guideBound.bottom, + layerSize.height, + containerBound.top, + containerBound.bottom + ); + var xPosInfo = this._getXAndArrowLeft( + guideBound.left, + guideBound.right, + layerSize.width, + containerBound.left, + containerBound.right + ); + /** * @typedef {Object} PopupRenderingData * @property {number} x - left position @@ -20292,11 +20356,11 @@ ScheduleCreationPopup.prototype._calcRenderingData = function(layerSize, parentS * @property {number} [arrow.position] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup */ return { - x: x, - y: y, + x: xPosInfo.x, + y: yPosInfo.y, arrow: { - direction: arrowDirection, - position: arrowLeft + direction: yPosInfo.arrowDirection, + position: xPosInfo.arrowLeft } }; }; @@ -20380,6 +20444,136 @@ ScheduleCreationPopup.prototype.setCalendars = function(calendars) { this.calendars = calendars || []; }; +/** + * Validate the form + * @param {string} title title of then entered schedule + * @param {TZDate} startDate start date time from range picker + * @param {TZDate} endDate end date time from range picker + * @returns {boolean} Returns false if the form is not valid for submission. + */ +ScheduleCreationPopup.prototype._validateForm = function(title, startDate, endDate) { + if (!title.value) { + return false; + } + + if (!startDate && !endDate) { + return false; + } + + if (datetime.compare(startDate, endDate) === 1) { + return false; + } + + return true; +}; + +/** + * Get range date from range picker + * @param {TZDate} startDate start date time from range picker + * @param {TZDate} endDate end date time from range picker + * @param {boolean} isAllDay whether it is an all-day schedule + * @returns {RangeDate} Returns the start and end time data that is the range date + */ +ScheduleCreationPopup.prototype._getRangeDate = function(startDate, endDate, isAllDay) { + if (isAllDay) { + startDate.setHours(0, 0, 0); + endDate = datetime.isStartOfDay(endDate) ? + datetime.convertStartDayToLastDay(endDate) : + endDate.setHours(23, 59, 59); + } + + /** + * @typedef {object} RangeDate + * @property {TZDate} start start time + * @property {TZDate} end end time + */ + return { + start: new TZDate(startDate), + end: new TZDate(endDate) + }; +}; + +/** + * Request schedule model creation to controller by custom schedules. + * @fires {ScheduleCreationPopup#beforeUpdateSchedule} + * @param {{ + calendarId: {string}, + title: {string}, + location: {string}, + start: {TZDate}, + end: {TZDate}, + isAllDay: {boolean}, + state: {string}, + isPrivate: {boolean} + }} form schedule input form data +*/ +ScheduleCreationPopup.prototype._onClickUpdateSchedule = function(form) { + var changes = common.getScheduleChanges( + this._schedule, + ['calendarId', 'title', 'location', 'start', 'end', 'isAllDay', 'state'], + { + calendarId: form.calendarId, + title: form.title.value, + location: location.value, + start: form.start, + end: form.end, + isAllDay: form.isAllDay, + state: form.state + } + ); + + /** + * @event ScheduleCreationPopup#beforeUpdateSchedule + * @type {object} + * @property {Schedule} schedule - schedule object to be updated + */ + this.fire('beforeUpdateSchedule', { + schedule: util.extend({ + raw: { + class: form.isPrivate ? 'private' : 'public' + } + }, this._schedule), + changes: changes, + start: form.start, + end: form.end, + calendar: this._selectedCal, + triggerEventName: 'click' + }); +}; + +/** + * Request the controller to update the schedule model according to the custom schedule. + * @fires {ScheduleCreationPopup#beforeCreateSchedule} + * @param {{ + calendarId: {string}, + title: {string}, + location: {string}, + start: {TZDate}, + end: {TZDate}, + isAllDay: {boolean}, + state: {string} + }} form schedule input form data + */ +ScheduleCreationPopup.prototype._onClickCreateSchedule = function(form) { + /** + * @event ScheduleCreationPopup#beforeCreateSchedule + * @type {object} + * @property {Schedule} schedule - new schedule instance to be added + */ + this.fire('beforeCreateSchedule', { + calendarId: form.calendarId, + title: form.title.value, + location: location.value, + raw: { + class: form.isPrivate ? 'private' : 'public' + }, + start: form.start, + end: form.end, + isAllDay: form.isAllDay, + state: form.state + }); +}; + module.exports = ScheduleCreationPopup; @@ -20406,7 +20600,6 @@ var config = __webpack_require__(/*! ../../config */ "./src/js/config.js"), domevent = __webpack_require__(/*! ../../common/domevent */ "./src/js/common/domevent.js"), domutil = __webpack_require__(/*! ../../common/domutil */ "./src/js/common/domutil.js"); var tmpl = __webpack_require__(/*! ../template/popup/scheduleDetailPopup.hbs */ "./src/js/view/template/popup/scheduleDetailPopup.hbs"); -var ARROW_WIDTH_HALF = 8; /** * @constructor @@ -20439,7 +20632,7 @@ util.inherit(ScheduleDetailPopup, View); * @param {MouseEvent} mouseDownEvent - mouse event object */ ScheduleDetailPopup.prototype._onMouseDown = function(mouseDownEvent) { - var target = (mouseDownEvent.target || mouseDownEvent.srcElement), + var target = domevent.getEventTarget(mouseDownEvent), popupLayer = domutil.closest(target, config.classname('.floating-layer')); if (popupLayer) { @@ -20466,7 +20659,7 @@ ScheduleDetailPopup.prototype.destroy = function() { * @param {MouseEvent} clickEvent - mouse event object */ ScheduleDetailPopup.prototype._onClick = function(clickEvent) { - var target = (clickEvent.target || clickEvent.srcElement); + var target = domevent.getEventTarget(clickEvent); this._onClickEditSchedule(target); @@ -20540,16 +20733,9 @@ ScheduleDetailPopup.prototype._setPopupPositionAndArrowDirection = function(even width: layer.offsetWidth, height: layer.offsetHeight }; - var windowSize = { - right: window.innerWidth, - bottom: window.innerHeight - }; - var parentRect = this.layer.parent.getBoundingClientRect(); - var parentBounds = { - left: parentRect.left, - top: parentRect.top - }; - var scheduleEl = event.target || event.srcElement; + + var containerBound = this.container.getBoundingClientRect(); + var scheduleEl = domevent.getEventTarget(event); var blockEl = domutil.closest(scheduleEl, config.classname('.time-date-schedule-block')) || domutil.closest(scheduleEl, config.classname('.weekday-schedule')) || scheduleEl; @@ -20558,43 +20744,125 @@ ScheduleDetailPopup.prototype._setPopupPositionAndArrowDirection = function(even this._scheduleEl = blockEl; - pos = this._calcRenderingData(layerSize, windowSize, scheduleBound); - pos.x -= parentBounds.left + 4; - pos.y -= (parentBounds.top + ARROW_WIDTH_HALF); + pos = this._calcRenderingData(layerSize, containerBound, scheduleBound); this.layer.setPosition(pos.x, pos.y); this._setArrowDirection(pos.arrow); }; /** - * Calculate rendering position usering guide elements - * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height - * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} parentSize - width and height of the upper layer, that acts as a border of popup - * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} guideBound - guide element bound data - * @returns {PopupRenderingData} rendering position of popup and popup arrow + * Get calculate rendering positions of y and arrow top by schedule block elements + * @param {number} scheduleBoundTop - schedule block's top + * @param {number} scheduleBoundBottom - schedule block's bottom + * @param {number} layerHeight - popup layer's height + * @param {number} containerTop - container's top + * @param {number} containerBottom - container's bottom + * @returns {YAndArrowTop} y and arrowTop */ -ScheduleDetailPopup.prototype._calcRenderingData = function(layerSize, parentSize, guideBound) { - var guideVerticalCenter = (guideBound.top + guideBound.bottom) / 2; - var x = guideBound.right; - var y = guideVerticalCenter; - var arrowDirection = 'arrow-left'; - var arrowTop; +ScheduleDetailPopup.prototype._getYAndArrowTop = function( + scheduleBoundTop, + scheduleBoundBottom, + layerHeight, + containerTop, + containerBottom +) { + var ARROW_WIDTH_HALF = 8; + var scheduleVerticalCenter, y, arrowTop; + + scheduleBoundTop = scheduleBoundTop < 0 ? 0 : scheduleBoundTop; + scheduleVerticalCenter = (scheduleBoundTop + scheduleBoundBottom) / 2; + y = scheduleVerticalCenter - (layerHeight / 2); - if (y < 0) { - y = y + (layerSize.height / 2) - guideVerticalCenter; + if (y < containerTop) { + y = 0; + arrowTop = scheduleVerticalCenter - containerTop - ARROW_WIDTH_HALF; + } else if (y + layerHeight > containerBottom) { + y = containerBottom - layerHeight - containerTop; + arrowTop = scheduleVerticalCenter - y - containerTop - ARROW_WIDTH_HALF; + } else { + y -= containerTop; } - if (x > 0 && (x + layerSize.width > parentSize.right)) { - x = guideBound.left - layerSize.width - ARROW_WIDTH_HALF - 3; + if (arrowTop < 0 || arrowTop > layerHeight) { + arrowTop = null; + } + + /** + * @typedef {Object} YAndArrowTop + * @property {number} y - top position of popup layer + * @property {number} [arrowTop] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup + */ + return { + y: y, + arrowTop: arrowTop + }; +}; + +/** + * Get calculate rendering x position and arrow direction by schedule block elements + * @param {number} scheduleBoundLeft - schedule block's left + * @param {number} scheduleBoundRight - schedule block's right + * @param {number} layerWidth - popup layer's width + * @param {number} containerLeft - container's left + * @param {number} containerRight - container's right + * @returns {XAndArrowDirection} x and arrowDirection + */ +ScheduleDetailPopup.prototype._getXAndArrowDirection = function( + scheduleBoundLeft, + scheduleBoundRight, + layerWidth, + containerLeft, + containerRight +) { + var arrowDirection = 'arrow-left'; + var x = scheduleBoundRight; + var MARGIN = 4; + + if (x + layerWidth > containerRight) { arrowDirection = 'arrow-right'; + x = scheduleBoundLeft - layerWidth - MARGIN; + } else { + x += MARGIN; } - if (x < 0) { + if (x < containerLeft) { x = 0; + } else { + x -= containerLeft; } - if (guideBound.right > x + layerSize.width) { - arrowDirection = 'arrow-right'; - } + /** + * @typedef {Object} XAndArrowDirection + * @property {number} x - left position of popup layer + * @property {string} arrowDirection - direction of popup arrow + */ + return { + x: x, + arrowDirection: arrowDirection + }; +}; + +/** + * Calculate rendering position usering guide elements + * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height + * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} containerBound - width and height of the upper layer, that acts as a border of popup + * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} scheduleBound - guide element bound data + * @returns {PopupRenderingData} rendering position of popup and popup arrow + */ +ScheduleDetailPopup.prototype._calcRenderingData = function(layerSize, containerBound, scheduleBound) { + var yPosInfo = this._getYAndArrowTop( + scheduleBound.top, + scheduleBound.bottom, + layerSize.height, + containerBound.top, + containerBound.bottom + ); + var xPosInfo = this._getXAndArrowDirection( + scheduleBound.left, + scheduleBound.right, + layerSize.width, + containerBound.left, + containerBound.right + ); /** * @typedef {Object} PopupRenderingData @@ -20604,11 +20872,11 @@ ScheduleDetailPopup.prototype._calcRenderingData = function(layerSize, parentSiz * @property {number} [arrow.position] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup */ return { - x: x + ARROW_WIDTH_HALF, - y: y - (layerSize.height / 2) + ARROW_WIDTH_HALF, + x: xPosInfo.x, + y: yPosInfo.y, arrow: { - direction: arrowDirection, - position: arrowTop + direction: xPosInfo.arrowDirection, + position: yPosInfo.arrowTop } }; }; @@ -20620,7 +20888,7 @@ ScheduleDetailPopup.prototype._calcRenderingData = function(layerSize, parentSiz ScheduleDetailPopup.prototype._setArrowDirection = function(arrow) { var direction = arrow.direction || 'arrow-left'; var arrowEl = domutil.find(config.classname('.popup-arrow'), this.layer.container); - var borderElement = domutil.find(config.classname('.popup-arrow-border', arrowEl)); + var borderElement = domutil.find(config.classname('.popup-arrow-border'), arrowEl); if (direction !== config.classname('arrow-left')) { domutil.removeClass(arrowEl, config.classname('arrow-left')); @@ -22116,21 +22384,21 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co }; 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 = 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":13,"column":60},"end":{"line":13,"column":68}}}) : helper))) + "\n
  • \n"; },"5":function(container,depth0,helpers,partials,data) { var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { @@ -22141,7 +22409,7 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co }; 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 = 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":23,"column":135},"end":{"line":23,"column":149}}}) : helper))) + "public"; },"7":function(container,depth0,helpers,partials,data) { return " checked"; @@ -22153,7 +22421,7 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co return undefined }; - 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 = 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":54,"column":99},"end":{"line":54,"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)) { @@ -22162,7 +22430,7 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co return undefined }; - 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 = 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":54,"column":116},"end":{"line":54,"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)) { @@ -22171,7 +22439,7 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co return undefined }; - 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 = 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":69,"column":163},"end":{"line":69,"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)) { @@ -22180,7 +22448,7 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co return undefined }; - 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 = 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":69,"column":193},"end":{"line":69,"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)) { @@ -22225,198 +22493,198 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co + alias4(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":7,"column":29},"end":{"line":7,"column":43}}}) : helper))) + "icon " + alias4(((helper = (helper = lookupProperty(helpers,"CSS_PREFIX") || (depth0 != null ? lookupProperty(depth0,"CSS_PREFIX") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"CSS_PREFIX","hash":{},"data":data,"loc":{"start":{"line":7,"column":48},"end":{"line":7,"column":62}}}) : helper))) - + "dropdown-arrow\">\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 : "") + + ((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":10,"column":16},"end":{"line":15,"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
      \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 = 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":48,"column":52},"end":{"line":48,"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 = 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":60,"column":52},"end":{"line":60,"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 = 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":64,"column":52},"end":{"line":64,"column":77}}}) : helper))) != null ? stack1 : "") + "\n
      • \n
      \n
      \n \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n"; },"useData":true}); @@ -23130,7 +23398,7 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co + "\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 " - + ((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 = lookupProperty(helpers,"unless").call(alias1,(lookupProperty(helpers,"or")||(depth0 && lookupProperty(depth0,"or"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"croppedEnd") : depth0),(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":56,"column":37},"end":{"line":56,"column":75}}}),{"name":"or","hash":{},"data":data,"loc":{"start":{"line":56,"column":22},"end":{"line":56,"column":76}}}),{"name":"unless","hash":{},"fn":container.program(29, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":56,"column":12},"end":{"line":56,"column":207}}})) != null ? stack1 : "") + "\n \n"; },"5":function(container,depth0,helpers,partials,data) { var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { @@ -23311,7 +23579,7 @@ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(co }; return "
       
      "; @@ -25665,7 +25933,7 @@ TimeGrid.prototype._getStyles = function(theme, timezonesCollapsed) { * @param {MouseEvent} event - mouse event object */ TimeGrid.prototype._onClickStickyContainer = function(event) { - var target = event.target || event.srcElement; + var target = domevent.getEventTarget(event); var closeBtn = domutil.closest(target, config.classname('.timegrid-timezone-close-btn')); if (!closeBtn) { diff --git a/dist/tui-calendar.js.map b/dist/tui-calendar.js.map index 28c00eed4..f1c5ff750 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,uCAAuC,kBAAkB;;AAE/F;;AAEA,uCAAuC,6BAA6B,YAAY,EAAE,OAAO,iBAAiB,mBAAmB,uBAAuB,4EAA4E,EAAE,EAAE,yBAAyB,eAAe,EAAE;;AAE9Q,sBAAsB,mBAAO,CAAC,gFAAmB;;AAEjD;;AAEA;AACA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B,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,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;;ACznBA;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;A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AAO;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;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;;;;;;;;;;;;;ACjZA;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;AAC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AS;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;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;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,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;;A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B,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;AACz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;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,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;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+RAA+R,GAAG,6BAA6B,oBAAoB,SAAS,qBAAqB,QAAQ,uBAAuB;AAChZ;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR,CAAC;AACD,qFAAqF;AACrF;AACA;AACA;AACA;AACA;;AAEA;AACA,s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;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;;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,kBAA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A;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;AACA,eAAe,KAAK;AACpB,eAAe,OAAO;AACtB,iBAAiB,SAAS;AAC1B;AACA;AACA;;AAEA;AACA,mBAA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EA;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;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;A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AS;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;AACA;AACA;AACA,kDAAkD,mBAAmB;AACrE;AACA;;AAEA;;;;;;;;;;;;;;ACxPA;AACA;AACA;AACA;AACa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ACA;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,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,qCAAW;AAChC,cAAc,mBAAO,CAAC,qDAAmB;AACzC,iBAA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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,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,KAA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G,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;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;;;;;;;;;;;;;AC/TA;AACA;AACA;AACA;AACa;;AAEb,WAAW,m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;;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;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;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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OEJBQXNCLG1CQUFtQjs7SUFBN0IsSUFBSTs7Ozs7b0NBSU8sMEJBQTBCOzs7O21DQUMzQix3QkFBd0I7Ozs7K0JBQ3ZCLG9CQUFvQjs7SUFBL0IsS0FBSzs7aUNBQ1Esc0JBQXNCOztJQUFuQyxPQUFPOztvQ0FFSSwwQkFBMEI7Ozs7O0FBR2pELFNBQVMsTUFBTSxHQUFHO0FBQ2hCLE1BQUksRUFBRSxHQUFHLElBQUksSUFBSSxDQUFDLHFCQUFxQixFQUFFLENBQUM7O0FBRTFDLE9BQUssQ0FBQyxNQUFNLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxDQUFDO0FBQ3ZCLElBQUUsQ0FBQyxVQUFVLG9DQUFhLENBQUM7QUFDM0IsSUFBRSxDQUFDLFNBQVMsbUNBQVksQ0FBQztBQUN6QixJQU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GFzIHJ1bnRpbWUgZnJvbSAnLi9oYW5kbGViYXJzL3J1bnRpbWUnO1xuXG5pbXBvcnQgbm9Db25mbGljdCBmcm9tICcuL2hhbmRsZWJhcnMvbm8tY29uZmxpY3QnO1xuXG4vLyBGb3IgY29tcGF0aWJpbGl0eSBhbmQgdXNhZ2Ugb3V0c2lkZSBvZiBtb2R1bGUgc3lzdGVtcywgbWFrZSB0aGUgSGFuZGxlYmFycyBvYmplY3QgYSBuYW1lc3BhY2VcbmZ1bmN0aW9uIGNyZWF0ZSgpIHtcbiAgbGV0IGhiID0gbmV3IGJhc2UuSGFuZGxlYmFyc0Vudmlyb25tZW50KCk7XG5cbiAgVXRpbHMuZXh0ZW5kKGhiLCBiYXNlKTtcbiAgaGIuU2FmZVN0cmluZyA9IFNhZmVTdHJpbmc7XG4gIGhiLkV4Y2VwdGlvbiA9IEV4Y2VwdGlvbjtcbiAgaGIuVXRpbHMgPSBVdGlscztcbiAgaGIuZXNjYXBlRXhwcmVzc2lvbiA9IFV0aWxzLmVzY2FwZUV4cHJlc3Npb247XG5cbiAgaGIuVk0gPSBydW50aW1lO1xuICBoYi50ZW1wbGF0ZSA9IGZ1bmN0aW9uKHNwZWMpIHtcbiAgICByZXR1cm4gcnVudGltZS50ZW1wbGF0ZShzcGVjLCBoYik7XG4gIH07XG5cbiAgcmV0dXJuIGhiO1xufVxuXG5sZXQgaW5zdCA9IGNyZWF0ZSgpO1xuaW5zdC5jcmVhdGUgPSBjcmVhdGU7XG5cbm5vQ29uZmxpY3QoaW5zdCk7XG5cbmluc3RbJ2RlZmF1bHQnXSA9IGluc3Q7XG5cbmV4cG9ydCBkZWZhdWx0IGluc3Q7XG4iXX0=\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.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 * 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQThDLFNBQVM7O3lCQUNqQyxhQUFhOzs7O3VCQUNJLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNyQyxVQUFVOzs7O21DQUNTLHlCQUF5Qjs7QUFFeEQsSUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDOztBQUN4QixJQUFNLGlCQUFpQixHQUFHLENBQUMsQ0FBQzs7QUFDNUIsSUFBTSxpQ0FBaUMsR0FBRyxDQUFDLENBQUM7OztBQUU1QyxJQUFNLGdCQUFnQixHQUFHO0FBQzlCLEdBQUMsRUFBRSxhQUFhO0FBQ2hCLEdBQUMsRUFBRSxlQUFlO0FBQ2xCLEdBQUMsRUFBRSxlQUFlO0FBQ2xCLEdBQUMsRUFBRSxVQUFVO0FBQ2IsR0FBQyxFQUFFLGtCQUFrQjtBQUNyQixHQUFDLEVBQUUsaUJBQWlCO0FBQ3BCLEdBQUMsRUFBRSxpQkFBaUI7QUFDcEIsR0FBQyxFQUFFLFVBQVU7Q0FDZCxDQUF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dGhhdCBoYXZlIGFscmVhZHkgYmVlbiBsb2dnZWQuXG4gICAqIEBkZXByZWNhdGVkIHNob3VsZCBvbmx5IGJlIHVzZWQgaW4gaGFuZGxlYmFycyB0ZXN0LWNhc2VzXG4gICAqL1xuICByZXNldExvZ2dlZFByb3BlcnR5QWNjZXNzZXMoKSB7XG4gICAgcmVzZXRMb2dnZWRQcm9wZXJ0aWVzKCk7XG4gIH1cbn07XG5cbmV4cG9ydCBsZXQgbG9nID0gbG9nZ2VyLmxvZztcblxuZXhwb3J0IHsgY3JlYXRlRnJhbWUsIGxvZ2dlciB9O1xuIl19\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQXVCLFVBQVU7O3FCQUVsQixVQUFTLFFBQVEsRUFBRTtBQUNoQyxVQUFRLENBQUMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVMsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFO0FBQzNFLFFBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUNiLFFBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxFQUFFO0FBQ25CLFdBQUssQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO0FBQ3BCLFNBQUcsR0FBRyxVQUFTLE9BQU8sRUFBRSxPQUFPLEVBQUU7O0FBRS9CLFlBQUksUUFBUSxHQUFHLFNBQVMsQ0FBQyxRQUFRLENBQUM7QUFDbEMsaUJBQVMsQ0FBQyxRQUFRLEdBQUcsY0FBTyxFQUFFLEVBQUUsUUFBUSxFQUFFLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUMxRCxZQUFJLEdBQUcsR0FBRyxFQUFFLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQyxDQUFDO0FBQy9CLGlCQUFTLENBQ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dXSA9IG9wdGlvbnMuZm47XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxJQUFNLFVBQVUsR0FBRyxDQUNqQixhQUFhLEVBQ2IsVUFBVSxFQUNWLFlBQVksRUFDWixlQUFlLEVBQ2YsU0FBUyxFQUNULE1BQU0sRUFDTixRQUFRLEV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dGhlIGNvbHVtbiB2YWx1ZVxuICAgICAgLyogaXN0YW5idWwgaWdub3JlIG5leHQgKi9cbiAgICAgIGlmIChPYmplY3QuZGVmaW5lUHJvcGVydHkpIHtcbiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMsICdjb2x1bW4nLCB7XG4gICAgICAgICAgdmFsdWU6IGNvbHVtbixcbiAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlXG4gICAgICAgIH0pO1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcywgJ2VuZENvbHVtbicsIHtcbiAgICAgICAgICB2YWx1ZTogZW5kQ29sdW1uLFxuICAgICAgICAgIGVudW1lcmFibGU6IHRydWVcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmNvbHVtbiA9IGNvbHVtbjtcbiAgICAgICAgdGhpcy5lbmRDb2x1bW4gPSBlbmRDb2x1bW47XG4gICAgICB9XG4gICAgfVxuICB9IGNhdGNoIChub3ApIHtcbiAgICAvKiBJZ25vcmUgaWYgdGhlIGJyb3dzZXIgaXMgdmVyeSBwYXJ0aWN1bGFyICovXG4gIH1cbn1cblxuRXhjZXB0aW9uLnByb3RvdHlwZSA9IG5ldyBFcnJvcigpO1xuXG5leHBvcnQgZGVmYXVsdCBFeGNlcHRpb247XG4iXX0=\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O3lDQUF1QyxnQ0FBZ0M7Ozs7MkJBQzlDLGdCQUFnQjs7OztvQ0FDUCwwQkFBMEI7Ozs7eUJBQ3JDLGNBQWM7Ozs7MEJBQ2IsZUFBZTs7Ozs2QkFDWixrQkFBa0I7Ozs7MkJBQ3BCLGdCQUFnQjs7OztBQUVsQyxTQUFTLHNCQUFzQixDQUFDLFFBQVEsRUFBRTtBQUMvQyx5Q0FBMkIsUUFBUSxDQUFDLENBQUM7QUFDckMsMkJBQWEsUUFBUSxDQUFDLENBQUM7QUFDdkIsb0NBQXNCLFFBQVEsQ0FBQyxDQUFDO0FBQ2hDLHlCQUFXLFFBQVEsQ0FBQyxDQUFDO0FBQ3JCLDBCQUFZLFFBQVEsQ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cmVnaXN0ZXJCbG9ja0hlbHBlck1pc3NpbmcoaW5zdGFuY2UpO1xuICByZWdpc3RlckVhY2goaW5zdGFuY2UpO1xuICByZWdpc3RlckhlbHBlck1pc3NpbmcoaW5zdGFuY2UpO1xuICByZWdpc3RlcklmKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJMb2coaW5zdGFuY2UpO1xuICByZWdpc3Rlckxvb2t1cChpbnN0YW5jZSk7XG4gIHJlZ2lzdGVyV2l0aChpbnN0YW5jZSk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBtb3ZlSGVscGVyVG9Ib29rcyhpbnN0YW5jZSwgaGVscGVyTmFtZSwga2VlcEhlbHBlcikge1xuICBpZiAoaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXSkge1xuICAgIGluc3RhbmNlLmhvb2tzW2hlbHBlck5hbWVdID0gaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXTtcbiAgICBpZiAoIWtlZXBIZWxwZXIpIHtcbiAgICAgIGRlbGV0ZSBpbnN0YW5jZS5oZWxwZXJzW2hlbHBlck5hbWVdO1xuICAgIH1cbiAgfVxufVxuIl19\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy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gICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnMuZWFjaChjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKFxuICAgICAgICAgIG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCxcbiAgICAgICAgICBvcHRpb25zLm5hbWVcbiAgICAgICAgKTtcbiAgICAgICAgb3B0aW9ucyA9IHsgZGF0YTogZGF0YSB9O1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gZm4oY29udGV4dCwgb3B0aW9ucyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvZWFjaC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQU1PLFVBQVU7O3lCQUNLLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLFVBQVMsT0FBTyxFQUFFLE9BQU8sRUFBRTtBQUN6RCxRQUFJLENBQUMsT0FBTyxFQUFFO0FBQ1osWUFBTSwyQkFBYyw2QkFBNkIsQ0FBQyxDQUFDO0tBQ3BEOztBQUVELFFBQUksRUFBRSxHQUFHLE9BQU8sQ0FBQyxFQUFFO1FBQ2pCLE9BQU8sR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cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztxQkFBb0MsVUFBVTs7eUJBQ3hCLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLFVBQVMsV0FBVyxFQUFFLE9BQU8sRUFBRTtBQUMzRCxRQUFJLFNBQVMsQ0FBQyxNQUFNLElBQUksQ0FBQyxFQUFFO0FBQ3pCLFlBQU0sMkJBQWMsbUNBQW1DLENBQUMsQ0FBQztLQUMxRDtBQUNELFFBQUksa0JBQVcsV0FBVyxDQUFDLEVBQUU7QUFDM0IsaUJBQVcsR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQ3RDOzs7OztBQUtELFFBQUksQUFBQyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsV0FBVyxJQUFJLENBQUMsV0FBVyxJQUFLLGVBQVEsV0FBVyxDQUFDLEVBQUU7QUFDdkUsYUFBTyxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQzlCLE1BQU07QUFDTCxhQUFPLE9BQU8sQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDekI7R0FDRixDQUFDLENBQUM7O0FBRUgsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxXQUFXLEVBQUUsT0FBTyxFQUFFO0FBQy9ELFFBQU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C8vIFRoZSBgaW5jbHVkZVplcm9gIG9wdGlvbiBtYXkgYmUgc2V0IHRvIHRyZWF0IHRoZSBjb25kdGlvbmFsIGFzIHB1cmVseSBub3QgZW1wdHkgYmFzZWQgb24gdGhlXG4gICAgLy8gYmVoYXZpb3Igb2YgaXNFbXB0eS4gRWZmZWN0aXZlbHkgdGhpcyBkZXRlcm1pbmVzIGlmIDAgaXMgaGFuZGxlZCBieSB0aGUgcG9zaXRpdmUgcGF0aCBvciBuZWdhdGl2ZS5cbiAgICBpZiAoKCFvcHRpb25zLmhhc2guaW5jbHVkZVplcm8gJiYgIWNvbmRpdGlvbmFsKSB8fCBpc0VtcHR5KGNvbmRpdGlvbmFsKSkge1xuICAgICAgcmV0dXJuIG9wdGlvbnMuaW52ZXJzZSh0aGlzKTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIG9wdGlvbnMuZm4odGhpcyk7XG4gICAgfVxuICB9KTtcblxuICBpbnN0YW5jZS5yZWdpc3RlckhlbHBlcigndW5sZXNzJywgZnVuY3Rpb24oY29uZGl0aW9uYWwsIG9wdGlvbnMpIHtcbiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCAhPSAyKSB7XG4gICAgICB0aHJvdyBuZXcgRXhjZXB0aW9uKCcjdW5sZXNzIHJlcXVpcmVzIGV4YWN0bHkgb25lIGFyZ3VtZW50Jyk7XG4gICAgfVxuICAgIHJldHVybiBpbnN0YW5jZS5oZWxwZXJzWydpZiddLmNhbGwodGhpcywgY29uZGl0aW9uYWwsIHtcbiAgICAgIGZuOiBvcHRpb25zLmludmVyc2UsXG4gICAgICBpbnZlcnNlOiBvcHRpb25zLmZuLFxuICAgICAgaGFzaDogb3B0aW9ucy5oYXNoXG4gICAgfSk7XG4gIH0pO1xufVxuIl19\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ3BCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUM1QyxTQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7QUFDN0MsVUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztLQUN6Qjs7QUFFRCxRQUFJLEtBQUssR0FBRyxDQUFDLENBQUM7QUFDZCxRQUFJLE9BQU8sQ0FBQyxJQUFJLENBQUMsS0FBSyxJQUFJLElBQUksRUFBRTtBQUM5QixXQUFLLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUM7S0FDNUIsTUFBTSxJQUFJLE9BQU8sQ0FBQyxJQUFJLElBQUksT0FBTyxDQUFDLElBQUksQ0FBQyxLQUFLLElBQUksSUFBSSxFQUFFO0FBQ3JELFdBQUssR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQztLQUM1QjtBQUNELFFBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxLQUFLLENBQUM7O0FBRWhCLFlBQVEsQ0FBQyxHQUFHLE1BQUEsQ0FBWixRQUFRLEVBQVEsSUFBSSxDQUFDLENBQUM7R0FDdkIsQ0FBQyxDQUFDO0NBQ0oiLCJmaWxlIjoibG9nLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ2xvZycsIGZ1bmN0aW9uKC8qIG1lc3NhZ2UsIG9wdGlvbnMgKi8pIHtcbiAgICBsZXQgYXJncyA9IFt1bmRlZmluZWRdLFxuICAgICAgb3B0aW9ucyA9IGFyZ3VtZW50c1thcmd1bWVudHMubGVuZ3RoIC0gMV07XG4gICAgZm9yIChsZXQgaSA9IDA7IGkgPCBhcmd1bWVudHMubGVuZ3RoIC0gMTsgaSsrKSB7XG4gICAgICBhcmdzLnB1c2goYXJndW1lbnRzW2ldKTtcbiAgICB9XG5cbiAgICBsZXQgbGV2ZWwgPSAxO1xuICAgIGlmIChvcHRpb25zLmhhc2gubGV2ZWwgIT0gbnVsbCkge1xuICAgICAgbGV2ZWwgPSBvcHRpb25zLmhhc2gubGV2ZWw7XG4gICAgfSBlbHNlIGlmIChvcHRpb25zLmRhdGEgJiYgb3B0aW9ucy5kYXRhLmxldmVsICE9IG51bGwpIHtcbiAgICAgIGxldmVsID0gb3B0aW9ucy5kYXRhLmxldmVsO1xuICAgIH1cbiAgICBhcmdzWzBdID0gbGV2ZWw7XG5cbiAgICBpbnN0YW5jZS5sb2coLi4uYXJncyk7XG4gIH0pO1xufVxuIl19\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQU1PLFVBQVU7O3lCQUNLLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLFVBQVMsT0FBTyxFQUFFLE9BQU8sRUFBRTtBQUN6RCxRQUFJLFNBQVMsQ0FBQyxNQUFNLElBQUksQ0FBQyxFQUFFO0FBQ3pCLFlBQU0sMkJBQWMscUNBQXFDLENBQUMsQ0FBQztLQUM1RDtBQUNELFFBQUksa0JBQVcsT0FBTyxDQUFDLEVBQUU7QUFDdkIsYUFBTyxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDOUI7O0FBRUQsUUFBSSxFQUFFLEdBQUcsT0FBTyxDQUFDLEVBQUUsQ0FBQzs7QUFFcEIsUUFBSSxDQUFDLGVBQVEsT0FBTyxDQUFDLEVBQUU7QUFDckIsVUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQztBQUN4QixVQUFJLE9BQU8sQ0FBQyxJQUFJLElBQUksT0FBTyxDQ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ICAgIGlmIChpc0Z1bmN0aW9uKGNvbnRleHQpKSB7XG4gICAgICBjb250ZXh0ID0gY29udGV4dC5jYWxsKHRoaXMpO1xuICAgIH1cblxuICAgIGxldCBmbiA9IG9wdGlvbnMuZm47XG5cbiAgICBpZiAoIWlzRW1wdHkoY29udGV4dCkpIHtcbiAgICAgIGxldCBkYXRhID0gb3B0aW9ucy5kYXRhO1xuICAgICAgaWYgKG9wdGlvbnMuZGF0YSAmJiBvcHRpb25zLmlkcykge1xuICAgICAgICBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKFxuICAgICAgICAgIG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCxcbiAgICAgICAgICBvcHRpb25zLmlkc1swXVxuICAgICAgICApO1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gZm4oY29udGV4dCwge1xuICAgICAgICBkYXRhOiBkYXRhLFxuICAgICAgICBibG9ja1BhcmFtczogYmxvY2tQYXJhbXMoW2NvbnRleHRdLCBbZGF0YSAmJiBkYXRhLmNvbnRleHRQYXRoXSlcbiAgICAgIH0pO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gb3B0aW9ucy5pbnZlcnNlKHRoaXMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\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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toAccessControl = 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3Byb3RvLWFjY2Vzcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O3FDQUFzQyw0QkFBNEI7O3NCQUMxQyxXQUFXOztJQUF2QixNQUFNOztBQUVsQixJQUFNLGdCQUFnQixHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUM7O0FBRXRDLFNBQVMsd0JBQXdCLENBQUMsY0FBYyxFQUFFO0FBQ3ZELE1BQUksc0JBQXNCLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUNqRCx3QkFBc0IsQ0FBQyxhQUFhLENBQUMsR0FBRyxLQUFLLENBQUM7QUFDOUMsd0JBQXNCLENBQUMsa0JBQWtCLENBQUMsR0FBRyxLQUFLLENBQUM7QUFDbkQsd0JBQXNCLENBQUMsa0JBQWtCLENBQUMsR0FBRyxLQUFLLENBQUM7QUFDbkQsd0JBQXNCLENBQUMsa0JBQWtCLENBQUMsR0FBRyxLQUFLLENBQUM7O0FBRW5ELE1BQUksd0JBQXdCLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQzs7QUFFbkQsMEJBQXdCLENBQUMsV0FBVyxDQUFDLEdBQUcsS0FBSyxD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lc3MgaGFzIGJlZW4gZGVuaWVkIHRvIHJlc29sdmUgdGhlIHByb3BlcnR5IFwiJHtwcm9wZXJ0eU5hbWV9XCIgYmVjYXVzZSBpdCBpcyBub3QgYW4gXCJvd24gcHJvcGVydHlcIiBvZiBpdHMgcGFyZW50LlxcbmAgK1xuICAgICAgICBgWW91IGNhbiBhZGQgYSBydW50aW1lIG9wdGlvbiB0byBkaXNhYmxlIHRoZSBjaGVjayBvciB0aGlzIHdhcm5pbmc6XFxuYCArXG4gICAgICAgIGBTZWUgaHR0cHM6Ly9oYW5kbGViYXJzanMuY29tL2FwaS1yZWZlcmVuY2UvcnVudGltZS1vcHRpb25zLmh0bWwjb3B0aW9ucy10by1jb250cm9sLXByb3RvdHlwZS1hY2Nlc3MgZm9yIGRldGFpbHNgXG4gICAgKTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gcmVzZXRMb2dnZWRQcm9wZXJ0aWVzKCkge1xuICBPYmplY3Qua2V5cyhsb2dnZWRQcm9wZXJ0aWVzKS5mb3JFYWNoKHByb3BlcnR5TmFtZSA9PiB7XG4gICAgZGVsZXRlIGxvZ2dlZFByb3BlcnRpZXNbcHJvcGVydHlOYW1lXTtcbiAgfSk7XG59XG4iXX0=\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3dyYXBIZW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uICB9XG4gIGxldCB3cmFwcGVyID0gZnVuY3Rpb24oLyogZHluYW1pYyBhcmd1bWVudHMgKi8pIHtcbiAgICBjb25zdCBvcHRpb25zID0gYXJndW1lbnRzW2FyZ3VtZW50cy5sZW5ndGggLSAxXTtcbiAgICBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdID0gdHJhbnNmb3JtT3B0aW9uc0ZuKG9wdGlvbnMpO1xuICAgIHJldHVybiBoZWxwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgfTtcbiAgcmV0dXJuIHdyYXBwZXI7XG59XG4iXX0=\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUF3QixTQUFTOztBQUVqQyxJQUFJLE1BQU0sR0FBRztBQUNYLF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wW2xldmVsXTtcbiAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby1jb25zb2xlXG4gICAgICBpZiAoIWNvbnNvbGVbbWV0aG9kXSkge1xuICAgICAgICBtZXRob2QgPSAnbG9nJztcbiAgICAgIH1cbiAgICAgIGNvbnNvbGVbbWV0aG9kXSguLi5tZXNzYWdlKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgfVxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBsb2dnZXI7XG4iXX0=\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3lCQUNLLGFBQWE7Ozs7b0JBTTVCLFFBQVE7O3VCQUNtQixXQUFXOztrQ0FDbEIsdUJBQXVCOzttQ0FJM0MseUJBQXlCOztBQUV6QixTQUFTLGFBQWEsQ0FBQyxZQUFZLEVBQUU7QUFDMUMsTUFBTSxnQkFBZ0IsR0FBRyxBQUFDLFlBQVksSUFBSSxZQUFZLENBQUMsQ0FBQyxDQUFDLElBQUssQ0FBQztNQUM3RCxlQUFlLDBCQUFvQixDQUFDOztBQUV0QyxNQUNFLGdCQUFnQiwyQ0FBcUMsSUFDckQsZ0JBQWdCLDJCQUFxQixFQUNyQztBQUNBLFdBQU87R0FDUjs7QUFFRCxNQUFJLGdCQUFnQiwwQ0FBb0MsRUFBRTtBQUN4RCxRQUFNLGV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1xuICAgIGlmICghb3B0aW9ucy5wYXJ0aWFsICYmIHRlbXBsYXRlU3BlYy51c2VEYXRhKSB7XG4gICAgICBkYXRhID0gaW5pdERhdGEoY29udGV4dCwgZGF0YSk7XG4gICAgfVxuICAgIGxldCBkZXB0aHMsXG4gICAgICBibG9ja1BhcmFtcyA9IHRlbXBsYXRlU3BlYy51c2VCbG9ja1BhcmFtcyA/IFtdIDogdW5kZWZpbmVkO1xuICAgIGlmICh0ZW1wbGF0ZVNwZWMudXNlRGVwdGhzKSB7XG4gICAgICBpZiAob3B0aW9ucy5kZXB0aHMpIHtcbiAgICAgICAgZGVwdGhzID1cbiAgICAgICAgICBjb250ZXh0ICE9IG9wdGlvbnMuZGVwdGhzWzBdXG4gICAgICAgICAgICA/IFtjb250ZXh0XS5jb25jYXQob3B0aW9ucy5kZXB0aHMpXG4gICAgICAgICAgICA6IG9wdGlvbnMuZGVwdGhzO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgZGVwdGhzID0gW2NvbnRleHRdO1xuICAgICAgfVxuICAgIH1cblxuICAgIGZ1bmN0aW9uIG1haW4oY29udGV4dCAvKiwgb3B0aW9ucyovKSB7XG4gICAgICByZXR1cm4gKFxuICAgICAgICAnJyArXG4gICAgICAgIHRlbXBsYXRlU3BlYy5tYWluKFxuICAgICAgICAgIGNvbnRhaW5lcixcbiAgICAgICAgICBjb250ZXh0LFxuICAgICAgICAgIGNvbnRhaW5lci5oZWxwZXJzLFxuICAgICAgICAgIGNvbnRhaW5lci5wYXJ0aWFscyxcbiAgICAgICAgICBkYXRhLFxuICAgICAgICAgIGJsb2NrUGFyYW1zLFxuICAgICAgICAgIGRlcHRoc1xuICAgICAgICApXG4gICAgICApO1xuICAgIH1cblxuICAgIG1haW4gPSBleGVjdXRlRGVjb3JhdG9ycyhcbiAgICAgIHRlbXBsYXRlU3BlYy5tYWluLFxuICAgICAgbWFpbixcbiAgICAgIGNvbnRhaW5lcixcbiAgICAgIG9wdGlvbnMuZGVwdG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Q==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFNLE1BQU0sR0FBRztBQUNiLEtBQUcsRUFBRSxPQUFPO0FBQ1osS0FBRyxFQUFFLE1BQU07QUFDWCxLQUFHLEVBQUUsTUFBTTtBQUNYLEtBQUcsRUFBRSxRQUFRO0FBQ2IsS0FBRyxFQUFFLFFBQVE7QUFDYixLQUFHLEVBQUUsUUFBUTtBQUNiLEtBQUcsRUFBRSxRQUFRO0NBQ2QsQ0FBQzs7QUFFRixJQUFNLFFBQVEsR0FBRyxZQUFZO0lBQzNCLFFBQVEsR0FBRyxXQUFXLENBQUM7O0FBRXpCLFNBQVMsVUFBVSxDQUFDLEdBQUcsRUFBRTtBQUN2QixTQUFPLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztDQUNwQjs7QUFFTSxTQUFTLE1BQU0sQ0FBQyxHQUFHLG9CQUFvQjtBQUM1QyxPQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sRUFBRSxDQUFDLEVBQUUsRUFBRTtBQUN6QyxTQUFLLElBQUksR0FBRyxJQUFJLFNBQVMsQ0FBQyxDQUFDLENBQUMsRUFBRTtBQUM1QixVQUFJLE1BQU0sQ0FBQyxTQUFTLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxD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ZXh0UGF0aCA/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 getDateDifference: function(d1, d2) {\n var _d1 = new TZDate(d1.getFullYear(), d1.getMonth(), d1.getDate()).getTime();\n var _d2 = new TZDate(d2.getFullYear(), d2.getMonth(), d2.getDate()).getTime();\n\n return Math.round((_d1 - _d2) / datetime.MILLISECONDS_PER_DAY);\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 if (options.raw) {\n schedule.set('raw', options.raw);\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, lookupProperty = container.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 WEEKEND_DAYS = 2;\n var weeks = this.weeks;\n var isWorkWeek = util.pick(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, lookupProperty = container.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/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, lookupProperty = container.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/toast-ui.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/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, lookupProperty = container.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/toast-ui.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/toast-ui.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/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, lookupProperty = container.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/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, lookupProperty = container.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/toast-ui.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/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, lookupProperty = container.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/toast-ui.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/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, lookupProperty = container.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/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, lookupProperty = container.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/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, lookupProperty = container.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/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, lookupProperty = container.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 = datetime.getDateDifference(hourmarker, now);\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 = datetime.getDateDifference(hourmarker, now);\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/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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;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;ACnH5C;;AAEb;AACA;AACA;;AAEA,sCAAsC,uCAAuC,kBAAkB;;AAE/F,wBAAwB,mBAAO,CAAC,+FAAqB;;AAErD;;AAEA;AACA;AACA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;ACf5C;;AAEb;;AAEA,aAAa,mBAAO,CAAC,wEAAU;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;AC5B5C;;AAEb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,mBAAmB,yBAAyB;AAC5C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;;AAEA;AACA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;AC/D5C;;AAEb;AACA;AACA;AACA;;AA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A;;AAEA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA,GAAG;AACH;;AAEA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;AC1C5C;;AAEb;AACA;;AAEA,aAAa,mBAAO,CAAC,wEAAU;;AAE/B;AACA;AACA;AACA,WAAW,UAAU;AACrB,aAAa;AACb;;AAEA;AACA,oEAAoE,aAAa;AACjF;AACA;;AAEA;AACA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;ACrB5C;;AAEb;AACA;AACA;AACA;AACA;;AAEA,uCAAuC,6BAA6B,YAAY,EAAE,OAAO,iBAAiB,mBAAmB,uBAAuB,4EAA4E,EAAE,EAAE,yBAAyB,eAAe,EAAE;;AAE9Q,6BAA6B,mBAAO,CAAC,sHAA4B;;AAEjE,cAAc,mBAAO,CAAC,0EAAW;;AAEjC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,2CAA2C,cAAc;;;;;;;;;;;;;ACxE5C;;AAEb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;AClB5C;;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,8CAAa;;AAEb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2CAA2C,cAAc;;;;;;;;;;;;;;AClB5C;;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,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;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;;AC1nBA;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,KAAK;;AAEL;AACA;AACA;AACA,eAAe,MAAM;AACrB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;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;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;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;;AAEA;;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;;;;;;;;;;;;;AC7oBA;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;AACA;;AAEA;;AAEA;AACA;AACA;;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;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;;;;;;;;;;;;;ACtZA;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,eAAe,WAAW;AAC1B,eAAe,OAAO;AACtB,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,MAAM;AACrB,eAAe,eAAe;AAC9B,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb,SAAS;;AAET;AACA,KAAK;;AAEL;AACA;AACA,eAAe,MAAM;AACrB,eAAe,OAAO;AACtB,iBAAiB,MA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;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;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;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB,cAAc,OAAO;AACrB,cAAc,eAAe;AAC7B,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB;;AAEA;AACA;AACA,aAAa,OAAO;AACpB,cAAc,eAAe;AAC7B,cAAc,OAAO;AACrB,cAAc,QAAQ;AACtB,cAAc,OAAO;AACrB,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uB,eAAe;AAC5D,cAAc,QAAQ;AACtB;;AAEA;AACA,IAAI,8EAA8E,cAAc;AAChG,aAAa,MAAM;AACnB;;AAEA;AACA,aAAa,OAAO;AACpB,cAAc,YAAY;AAC1B,cAAc,6BAA6B;AAC3C,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA,WAAW,mBAAmB;AAC9B,WAAW,QAAQ,yBAAyB,cAAc;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA,6BAA6B,MAAM;AACnC,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;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,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;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,WAAW,mBAAO,CAAC,uDAAoB;AACvC,WAAW,mBAAO,CAAC,2EAA8B;AACjD,WAAW,mBAAO,CAAC,2EAA8B;AACjD,YAAY,mBAAO,CAAC,6EAA+B;;AAEnD;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS,uDAAuD;AAC3E,aAAa,KAAK;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;AC5CA;AACA;AACA;AACA;AACa;;AAEb,WAAW,mBAAO,CAAC,0CAAkB;AACrC,aAAa,mBAAO,CAAC,qCAAW;AAChC,YAAY,mBAAO,CAAC,i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vD,gBAAgB,mBAAO,CAAC,6DAAuB;AAC/C,mBAAmB,mBAAO,CAAC,mEAA0B;AACrD,eAAe,mBAAO,CAAC,2DAAsB;AAC7C,iBAAiB,mBAAO,CAAC,+DAAwB;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,8BAA8B;AAC9B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,uCAAuC;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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;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;AAC3C,aAAa,mBAAO,CAAC,qCAAW;;AAEhC;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;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;;AClQA;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;;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ACA;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;;AA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;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,mBAAO,CAAC,kFAA0F;AACnH,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR,CAAC;AACD,qFAAqF;AACrF;AACA;AACA;AACA;AACA;;AAEA;AACA,sNAAsN,6BAA6B,oBAAoB,SAAS,sBAAsB,QAAQ,wBAAwB;AACtU;AACA,sNAAsN,6BAA6B,oBAAoB,SAAS,sBAAsB,QAAQ,wBAAwB;AACtU;AACA;AACA,UAAU;AACV,CAAC;AACD;AACA;AACA;AACA;AAC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AAC,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;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;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;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;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AK;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,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB,kBAAkB,SAAS;AAC3B,kBAAkB,SAAS;AAC3B;AACA;AACA;;AAEA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AAC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AEA;;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,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;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AEA;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,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;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;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;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;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;;AAEA;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,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,mBAAmB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,OAAO;AACxB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,OAAO;AACjB,UAAU,OAAO;AACjB,UAAU,OAAO;AACjB,UAAU,OAAO;AACjB,UAAU,OAAO;AACjB,YAAY,cAAc;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,iBAAiB,OAAO;AACxB,kBAAkB,OAAO;AACzB,kBAAkB,SAAS;AAC3B;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,OAAO;AACxB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX;AACA,iBAAiB,OAAO;AACxB,YAAY,OAAO;AACnB,eAAe,OAAO;AACtB,YAAY,OAAO;AACnB,UAAU,OAAO;AACjB,eAAe,QAAQ;AACvB,YAAY,OAAO;AACnB,gBAAgB;AAChB,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,WAAW;AACX;AACA,iBAAiB,OAAO;AACxB,YAAY,OAAO;AACnB,eAAe,OAAO;AACtB,YAAY,OAAO;AACnB,UAAU,OAAO;AACjB,eAAe,QAAQ;AACvB,YAAY;AACZ,IAAI;AACJ;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;;;;;;;;;;;;;ACzwBA;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;;AAE9D;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,aAAa;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,OAAO;AACxB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,mBAAmB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,iBAAiB,OAAO;AACxB,kBAAkB,OAAO;AACzB,kBAAkB,OAAO;AACzB;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;;;;;;;;;;;;AChVA;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;A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ACA;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;;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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OEJBQXNCLG1CQUFtQjs7SUFBN0IsSUFBSTs7Ozs7b0NBSU8sMEJBQTBCOzs7O21DQUMzQix3QkFB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GVjLCBoYik7XG4gIH07XG5cbiAgcmV0dXJuIGhiO1xufVxuXG5sZXQgaW5zdCA9IGNyZWF0ZSgpO1xuaW5zdC5jcmVhdGUgPSBjcmVhdGU7XG5cbm5vQ29uZmxpY3QoaW5zdCk7XG5cbmluc3RbJ2RlZmF1bHQnXSA9IGluc3Q7XG5cbmV4cG9ydCBkZWZhdWx0IGluc3Q7XG4iXX0=\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.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 * 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQThDLFNBQVM7O3lCQUNqQyxhQUFhOzs7O3VCQUNJLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNyQyxVQUFVOzs7O21DQUNTLHlCQUF5Qjs7QUFFeEQsSUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDOztBQU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wcG9ydGVkIHdpdGggbXVsdGlwbGUgZGVjb3JhdG9ycycpO1xuICAgICAgfVxuICAgICAgZXh0ZW5kKHRoaXMuZGVjb3JhdG9ycywgbmFtZSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRoaXMuZGVjb3JhdG9yc1tuYW1lXSA9IGZuO1xuICAgIH1cbiAgfSxcbiAgdW5yZWdpc3RlckRlY29yYXRvcjogZnVuY3Rpb24obmFtZSkge1xuICAgIGRlbGV0ZSB0aGlzLmRlY29yYXRvcnNbbmFtZV07XG4gIH0sXG4gIC8qKlxuICAgKiBSZXNldCB0aGUgbWVtb3J5IG9mIGlsbGVnYWwgcHJvcGVydHkgYWNjZXNzZXMgdGhhdCBoYXZlIGFscmVhZHkgYmVlbiBsb2dnZWQuXG4gICAqIEBkZXByZWNhdGVkIHNob3VsZCBvbmx5IGJlIHVzZWQgaW4gaGFuZGxlYmFycyB0ZXN0LWNhc2VzXG4gICAqL1xuICByZXNldExvZ2dlZFByb3BlcnR5QWNjZXNzZXMoKSB7XG4gICAgcmVzZXRMb2dnZWRQcm9wZXJ0aWVzKCk7XG4gIH1cbn07XG5cbmV4cG9ydCBsZXQgbG9nID0gbG9nZ2VyLmxvZztcblxuZXhwb3J0IHsgY3JlYXRlRnJhbWUsIGxvZ2dlciB9O1xuIl19\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQXVCLFVBQVU7O3FCQUVsQixVQUFTLFFBQVEsRUFBRTtBQUNoQyxVQUFRLENBQUMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVMsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFO0FBQzNFLFFBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUNiLFFBQUksQ0FBQyxLQUFLLENBQUMsUUFBUS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0aWFscyBzdGFjayBmcmFtZSBwcmlvciB0byBleGVjLlxuICAgICAgICBsZXQgb3JpZ2luYWwgPSBjb250YWluZXIucGFydGlhbHM7XG4gICAgICAgIGNvbnRhaW5lci5wYXJ0aWFscyA9IGV4dGVuZCh7fSwgb3JpZ2luYWwsIHByb3BzLnBhcnRpYWxzKTtcbiAgICAgICAgbGV0IHJldCA9IGZuKGNvbnRleHQsIG9wdGlvbnMpO1xuICAgICAgICBjb250YWluZXIucGFydGlhbHMgPSBvcmlnaW5hbDtcbiAgICAgICAgcmV0dXJuIHJldDtcbiAgICAgIH07XG4gICAgfVxuXG4gICAgcHJvcHMucGFydGlhbHNbb3B0aW9ucy5hcmdzWzBdXSA9IG9wdGlvbnMuZm47XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxJQUFNLFVBQVUsR0FBRyxDQUNqQixhQUFhLEVBQ2IsVUFBVSxFQUNWLFlBQVksRUFDWixlQUFlLEVBQ2YsU0FBUyxFQUNULE1BQU0sRUFDTixRQUFRLEVBQ1IsT0FBTyxDQUNSLENBQUM7O0FBRUYsU0FBUyxTQUFTLENBQUMsT0FBTyxFQUFFLElBQUksRUFBRTtBQUNoQyxNQUFJLEdBQUcsR0FBRyxJQUFJLElBQUksSUFBSSxDQUFDLEdBQUc7TUFDeEIsSUFBSSxZQUFBO01BQ0osYUFBYSxZQUFBO01BQ2IsTUFBTSxZQUFBO01BQ04sU0FBUyxZQUFBLENBQUM7O0FBRVosTUFBSSxHQUFHLEVBQUU7QUFDUCxRQUFJLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUM7QUFDdEIsaUJBQWEsR0FBRyxHQUFHLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQztBQUM3QixVQUFNLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUM7QUFDMUIsYUFBUyxHQUFHLEdBQUcsQ0FBQyxHQUFHLENBQUMsTUFBTSxDQUFDOztBQUUzQixXQUFPLElBQUksS0FBSyxHQUFHLElBQUksR0FBRyxHQUFHLEdBQUcsTUFBTSxDQUFDO0dBQ3hDOztBQUVELE1BQUksR0FBRyxHQUFHLEtBQUssQ0FBQyxTQUFTLENBQUMsV0FBVyxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsT0FBTy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uXG5leHBvcnQgZGVmYXVsdCBFeGNlcHRpb247XG4iXX0=\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O3lDQUF1Qyxn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c3RlckhlbHBlck1pc3NpbmcgZnJvbSAnLi9oZWxwZXJzL2hlbHBlci1taXNzaW5nJztcbmltcG9ydCByZWdpc3RlcklmIGZyb20gJy4vaGVscGVycy9pZic7XG5pbXBvcnQgcmVnaXN0ZXJMb2cgZnJvbSAnLi9oZWxwZXJzL2xvZyc7XG5pbXBvcnQgcmVnaXN0ZXJMb29rdXAgZnJvbSAnLi9oZWxwZXJzL2xvb2t1cCc7XG5pbXBvcnQgcmVnaXN0ZXJXaXRoIGZyb20gJy4vaGVscGVycy93aXRoJztcblxuZXhwb3J0IGZ1bmN0aW9uIHJlZ2lzdGVyRGVmYXVsdEhlbHBlcnMoaW5zdGFuY2UpIHtcbiAgcmVnaXN0ZXJCbG9ja0hlbHBlck1pc3NpbmcoaW5zdGFuY2UpO1xuICByZWdpc3RlckVhY2goaW5zdGFuY2UpO1xuICByZWdpc3RlckhlbHBlck1pc3NpbmcoaW5zdGFuY2UpO1xuICByZWdpc3RlcklmKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJMb2coaW5zdGFuY2UpO1xuICByZWdpc3Rlckxvb2t1cChpbnN0YW5jZSk7XG4gIHJlZ2lzdGVyV2l0aChpbnN0YW5jZSk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBtb3ZlSGVscGVyVG9Ib29rcyhpbnN0YW5jZSwgaGVscGVyTmFtZSwga2VlcEhlbHBlcikge1xuICBpZiAoaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXSkge1xuICAgIGluc3RhbmNlLmhvb2tzW2hlbHBlck5hbWVdID0gaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXTtcbiAgICBpZiAoIWtlZXBIZWxwZXIpIHtcbiAgICAgIGRlbGV0ZSBpbnN0YW5jZS5oZWxwZXJzW2hlbHBlck5hbWVdO1xuICAgIH1cbiAgfVxufVxuIl19\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBd0QsVUFBVTs7cUJBRW5ELFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsb0JBQW9CLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3ZFLFFBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPO1FBQzNCLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVsQixRQUFJLE9BQU8sS0FBSyxJQUFJLEVBQUU7QUFDcEIsYUFBTyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDakIsTUFBTSxJQUFJLE9BQU8sS0FBSyxLQUFLLElBQUksT0FBTyxJQUFJLElBQUksRUFBRTtBQUMvQyxhQUFPLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUN0QixNQUFNLElBQUksZUFBUSxPQUFPLENBQUMsRUFBRTtBQUMzQixVQUFJLE9BQU8sQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFO0FBQ3RCLFlBQUksT0FBTyxDQ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ICAgIGZuID0gb3B0aW9ucy5mbjtcblxuICAgIGlmIChjb250ZXh0ID09PSB0cnVlKSB7XG4gICAgICByZXR1cm4gZm4odGhpcyk7XG4gICAgfSBlbHNlIGlmIChjb250ZXh0ID09PSBmYWxzZSB8fCBjb250ZXh0ID09IG51bGwpIHtcbiAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgIH0gZWxzZSBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgaWYgKGNvbnRleHQubGVuZ3RoID4gMCkge1xuICAgICAgICBpZiAob3B0aW9ucy5pZHMpIHtcbiAgICAgICAgICBvcHRpb25zLmlkcyA9IFtvcHRpb25zLm5hbWVdO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnMuZWFjaChjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKFxuICAgICAgICAgIG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCxcbiAgICAgICAgICBvcHRpb25zLm5hbWVcbiAgICAgICAgKTtcbiAgICAgICAgb3B0aW9ucyA9IHsgZGF0YTogZGF0YSB9O1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gZm4oY29udGV4dCwgb3B0aW9ucyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL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Gl0ZXJtZWRpYXRlIGtleXMgYXJyYXkuXG4gICAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGV4ZWNJdGVyYXRpb24ocHJpb3JLZXksIGkgLSAxKTtcbiAgICAgICAgICB9XG4gICAgICAgICAgcHJpb3JLZXkgPSBrZXk7XG4gICAgICAgICAgaSsrO1xuICAgICAgICB9KTtcbiAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSwgdHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztxQkFBb0MsVUFBVTs7eUJBQ3hCLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLFVBQVMsV0FBVyxFQUFFLE9BQU8sRUFBRTtBQUMzRCxRQUFJLFNBQVMsQ0FBQyxNQUFNLElBQUksQ0FBQyxFQUFFO0FBQ3pCLFlBQU0sMkJBQWMsbUNBQW1DLENBQUMsQ0FBQztLQUMxRDtBQUNELFFBQUksa0JBQVcsV0FBVyxDQUFDLEVBQUU7QUFDM0IsaUJBQVcsR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQ3RDOzs7Ozt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NzIHJlcXVpcmVzIGV4YWN0bHkgb25lIGFyZ3VtZW50Jyk7XG4gICAgfVxuICAgIHJldHVybiBpbnN0YW5jZS5oZWxwZXJzWydpZiddLmNhbGwodGhpcywgY29uZGl0aW9uYWwsIHtcbiAgICAgIGZuOiBvcHRpb25zLmludmVyc2UsXG4gICAgICBpbnZlcnNlOiBvcHRpb25zLmZuLFxuICAgICAgaGFzaDogb3B0aW9ucy5oYXNoXG4gICAgfSk7XG4gIH0pO1xufVxuIl19\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ3BCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUM1QyxTQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7QUFDN0MsVUFBSSxDQUFDLElBQUksQ0FBQy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PSBvcHRpb25zLmhhc2gubGV2ZWw7XG4gICAgfSBlbHNlIGlmIChvcHRpb25zLmRhdGEgJiYgb3B0aW9ucy5kYXRhLmxldmVsICE9IG51bGwpIHtcbiAgICAgIGxldmVsID0gb3B0aW9ucy5kYXRhLmxldmVsO1xuICAgIH1cbiAgICBhcmdzWzBdID0gbGV2ZWw7XG5cbiAgICBpbnN0YW5jZS5sb2coLi4uYXJncyk7XG4gIH0pO1xufVxuIl19\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQU1PLFVBQVU7O3lCQUNLLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLFVBQVMsT0FBTyxFQUFFLE9BQU8sRUFBRTtBQUN6RCxRQUFJLFNBQVMsQ0FBQyxNQUFNLElBQUksQ0FBQyxFQUFFO0FBQ3pCLF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aW9ucy5pbnZlcnNlKHRoaXMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3Byb3RvLWFjY2Vzcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O3FDQUFzQyw0QkFBNEI7O3NCQUMxQyxXQUFXOztJQUF2QixNQUFNOztBQUVsQixJQUFNLGdCQUFnQixHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUM7O0FBRXRDLFNBQVMsd0JBQXdCLENBQUMsY0FBYyxFQUFFO0FBQ3ZELE1BQUksc0JBQXNCLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0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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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3dyYXBIZWxwZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBTyxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUUsa0JBQWtCLEVBQUU7QUFDckQsTUFBSSxPQUFPLE1BQU0sS0FBSyxVQUFVLEVBQUU7OztBQUdoQyxXQUFPLE1BQU0sQ0FBQztHQUNmO0FBQ0QsTUFBSSxPQUFPLEdBQUcsU0FBVixPQUFPLDBCQUFxQztBQUM5QyxRQUFNLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUNoRCxhQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsR0FBRyxrQkFBa0IsQ0FBQyxPQUFPLENBQUMsQ0FBQztBQUM5RCxXQUFPLE1BQU0sQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLFNBQVMsQ0FBQyxDQUFDO0dBQ3RDLENBQUM7QUFDRixTQUFPLE9BQU8sQ0FBQztDQUNoQiIsImZpbGUiOiJ3cmFwSGVscGVyLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIHdyYXBIZWxwZXIoaGVscGVyLCB0cmFuc2Zvcm1PcHRpb25zRm4pIHtcbiAgaWYgKHR5cGVvZiBoZWxwZXIgIT09ICdmdW5jdGlvbicpIHtcbiAgICAvLyBUaGlzIHNob3VsZCBub3QgaGFwcGVuLCBidXQgYXBwYXJlbnRseSBpdCBkb2VzIGluIGh0dHBzOi8vZ2l0aHViLmNvbS93eWNhdHMvaGFuZGxlYmFycy5qcy9pc3N1ZXMvMTYzOVxuICAgIC8vIFdlIHRyeSB0byBtYWtlIHRoZSB3cmFwcGVyIGxlYXN0LWludmFzaXZlIGJ5IG5vdCB3cmFwcGluZyBpdCwgaWYgdGhlIGhlbHBlciBpcyBub3QgYSBmdW5jdGlvbi5cbiAgICByZXR1cm4gaGVscGVyO1xuICB9XG4gIGxldCB3cmFwcGVyID0gZnVuY3Rpb24oLyogZHluYW1pYyBhcmd1bWVudHMgKi8pIHtcbiAgICBjb25zdCBvcHRpb25zID0gYXJndW1lbnRzW2FyZ3VtZW50cy5sZW5ndGggLSAxXTtcbiAgICBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdID0gdHJhbnNmb3JtT3B0aW9uc0ZuKG9wdGlvbnMpO1xuICAgIHJldHVybiBoZWxwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgfTtcbiAgcmV0dXJuIHdyYXBwZXI7XG59XG4iXX0=\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUF3QixTQUFTOztBQUVqQyxJQUFJLE1BQU0sR0FBRztBQUNYLFdBQVMsRUFBRSxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE9BQU8sQ0FBQztBQUM3QyxPQUFLLEVBQUUsTUFBTTs7O0FBR2IsYUFBVyxFQUFFLHFCQUFTLEtBQUssRUFBRTtBQUMzQixRQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsRUFBRTtBQUM3QixVQUFJLFFBQVEsR0FBRyxlQUFRLE1BQU0sQ0FBQyxTQUFTLEVBQUUsS0FBSyxDQUFDLFdBQVcsRUFBRSxDQUFDLENBQUM7QUFDOUQsVUFBSSxRQUFRLElBQUksQ0FBQyxFQUFFO0FBQ2pCLGFBQUssR0FBRyxRQUFRLENBQUM7T0FDbEIsTUFBTTtBQUNMLGFBQUssR0FBRyxRQUFRLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO09BQzdCO0tBQ0Y7O0FBRUQsV0FBTyxLQUFLLENBQUM7R0FDZDs7O0FBR0QsS0FBRyxFQUFFLGFBQVMsS0FBSyxFQUFjO0FBQy9CLFNBQUssR0FBRyxNQUFNLENBQUMsV0FBVyxDQUFDLEtBQUssQ0FBQyxDQUFDOztBQUVsQyxRQUNFLE9BQU8sT0FBTyxLQUFLLFdBQVcsSUFDOUIsTUFBTSxDQ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bGV2ZWw7XG4gIH0sXG5cbiAgLy8gQ2FuIGJlIG92ZXJyaWRkZW4gaW4gdGhlIGhvc3QgZW52aXJvbm1lbnRcbiAgbG9nOiBmdW5jdGlvbihsZXZlbCwgLi4ubWVzc2FnZSkge1xuICAgIGxldmVsID0gbG9nZ2VyLmxvb2t1cExldmVsKGxldmVsKTtcblxuICAgIGlmIChcbiAgICAgIHR5cGVvZiBjb25zb2xlICE9PSAndW5kZWZpbmVkJyAmJlxuICAgICAgbG9nZ2VyLmxvb2t1cExldmVsKGxvZ2dlci5sZXZlbCkgPD0gbGV2ZWxcbiAgICApIHtcbiAgICAgIGxldCBtZXRob2QgPSBsb2dnZXIubWV0aG9kTWFwW2xldmVsXTtcbiAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby1jb25zb2xlXG4gICAgICBpZiAoIWNvbnNvbGVbbWV0aG9kXSkge1xuICAgICAgICBtZXRob2QgPSAnbG9nJztcbiAgICAgIH1cbiAgICAgIGNvbnNvbGVbbWV0aG9kXSguLi5tZXNzYWdlKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgfVxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBsb2dnZXI7XG4iXX0=\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3lCQUNLLGFBQWE7Ozs7b0JBTTVCLFFBQ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m1lcmdlSWZOZWVkZWQoXG4gICAgICAgICAgb3B0aW9ucy5wYXJ0aWFscyxcbiAgICAgICAgICBlbnYucGFydGlhbHNcbiAgICAgICAgKTtcbiAgICAgIH1cbiAgICAgIGlmICh0ZW1wbGF0ZVNwZWMudXNlUGFydGlhbCB8fCB0ZW1wbGF0ZVNwZWMudXNlRGVjb3JhdG9ycykge1xuICAgICAgICBjb250YWluZXIuZGVjb3JhdG9ycyA9IFV0aWxzLmV4dGVuZChcbiAgICAgICAgICB7fSxcbiAgICAgICAgICBlbnYuZGVjb3JhdG9ycyxcbiAgICAgICAgICBvcHRpb25zLmRlY29yYXRvcnNcbiAgICAgICAgKTtcbiAgICAgIH1cblxuICAgICAgY29udGFpbmVyLmhvb2tzID0ge307XG4gICAgICBjb250YWluZXIucHJvdG9BY2Nlc3NDb250cm9sID0gY3JlYXRlUHJvdG9BY2Nlc3NDb250cm9sKG9wdGlvbnMpO1xuXG4gICAgICBsZXQga2VlcEhlbHBlckluSGVscGVycyA9XG4gICAgICAgIG9wdGlvbnMuYWxsb3dDYWxsc1RvSGVscGVyTWlzc2luZyB8fFxuICAgICAgICB0ZW1wbGF0ZVdhc1ByZWNvbXBpbGVkV2l0aENvbXBpbGVyVjc7XG4gICAgICBtb3ZlSGVscGVyVG9Ib29rcyhjb250YWluZXIsICdoZWxwZXJNaXNzaW5nJywga2VlcEhlbHBlckluSGVscGVycyk7XG4gICAgICBtb3ZlSGVscGVyVG9Ib29rcyhjb250YWluZXIsICdibG9ja0hlbHBlck1pc3NpbmcnLCBrZWVwSGVscGVySW5IZWxwZXJzKTtcbiAgICB9IGVsc2Uge1xuICAgICAgY29udGFpbmVyLnByb3RvQWNjZXNzQ29udHJvbCA9IG9wdGlvbnMucHJvdG9BY2Nlc3NDb250cm9sOyAvLyBpbnRlcm5hbCBvcHRpb25cbiAgICAgIGNvbnRhaW5lci5oZWxwZXJzID0gb3B0aW9ucy5oZWxwZXJzO1xuICAgICAgY29udGFpbmVyLnBhc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c1toZWxwZXJOYW1lXSA9IHBhc3NMb29rdXBQcm9wZXJ0eU9wdGlvbihoZWxwZXIsIGNvbnRhaW5lcik7XG4gIH0pO1xufVxuXG5mdW5jdGlvbiBwYXNzTG9va3VwUHJvcGVydHlPcHRpb24oaGVscGVyLCBjb250YWluZXIpIHtcbiAgY29uc3QgbG9va3VwUHJvcGVydHkgPSBjb250YWluZXIubG9va3VwUHJvcGVydHk7XG4gIHJldHVybiB3cmFwSGVscGVyKGhlbHBlciwgb3B0aW9ucyA9PiB7XG4gICAgcmV0dXJuIFV0aWxzLmV4dGVuZCh7IGxvb2t1cFByb3BlcnR5IH0sIG9wdGlvbnMpO1xuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFNLE1BQU0sR0FBRztBQUNiLEtBQUcsRUFBRSxPQUFPO0FBQ1osS0FBRyxFQUFFLE1BQU07QUFDWCxLQUFHLEVBQUUsTUFBTTtBQUNYLEtBQUcsRUFBRSxRQUFRO0FBQ2IsS0FBRyxFQUFFLFFBQVE7QUFDYixLQUFHLEVBQUUsUUFBUTtBQUNiLEtBQUcsRUFBRSxRQUFRO0NBQ2QsQ0FBQzs7QUFFRixJQUFNLFFBQVEsR0FBRyxZQUFZO0lBQzNCLFFBQVEsR0FBRyxXQUFXLENBQUM7O0FBRXpCLFNBQVMsVUFBVSxDQUFDLEdBQUcsRUFB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VxuXG5leHBvcnQgZnVuY3Rpb24gY3JlYXRlRnJhbWUob2JqZWN0KSB7XG4gIGxldCBmcmFtZSA9IGV4dGVuZCh7fSwgb2JqZWN0KTtcbiAgZnJhbWUuX3BhcmVudCA9IG9iamVjdDtcbiAgcmV0dXJuIGZyYW1lO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYmxvY2tQYXJhbXMocGFyYW1zLCBpZHMpIHtcbiAgcGFyYW1zLnBhdGggPSBpZHM7XG4gIHJldHVybiBwYXJhbXM7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBhcHBlbmRDb250ZXh0UGF0aChjb250ZXh0UGF0aCwgaWQpIHtcbiAgcmV0dXJuIChjb250ZXh0UGF0aCA/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 (!util.isUndefined(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 date.setHours(23, 59, 59);\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 getDateDifference: function(d1, d2) {\n var _d1 = new TZDate(d1.getFullYear(), d1.getMonth(), d1.getDate()).getTime();\n var _d2 = new TZDate(d2.getFullYear(), d2.getMonth(), d2.getDate()).getTime();\n\n return Math.round((_d1 - _d2) / datetime.MILLISECONDS_PER_DAY);\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 /**\n * Get target from event object\n *\n * @param {Event} event - The event object\n * @returns {object} - The event target object\n */\n getEventTarget: function(event) {\n return event.target || event.srcElement;\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;\n\n if (!el) {\n return null;\n }\n\n 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\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, onSelectstartHandler) {\n domevent.on(dom, 'selectstart', onSelectstartHandler || 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(dom, onSelectstartHandler) {\n domevent.off(window, 'selectstart', onSelectstartHandler || 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 */\n// eslint-disable-next-line complexity\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 (['milestone', 'task', 'allday', 'time'].indexOf(options.category) > -1) {\n schedule.set('category', options.category);\n }\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 if (options.raw) {\n schedule.set('raw', options.raw);\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.convertStartDayToLastDay(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');\nvar config = require('../config');\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, preventDefaultWhenNotPopup);\n domutil[method + 'ImageDrag'](container, preventDefaultWhenNotPopup);\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: domevent.getEventTarget(mouseEvent),\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 = domevent.getEventTarget(mouseDownEvent);\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 preventDefaultWhenNotPopup(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\n/**\n * If the target is not a popup, it prevents the default.\n * @method\n * @param {MouseEvent} event - Mouse event object\n */\nfunction preventDefaultWhenNotPopup(event) {\n var popup = domutil.closest(event.target, config.classname('.popup'));\n\n if (!popup) {\n domevent.preventDefault(event);\n }\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, lookupProperty = container.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 WEEKEND_DAYS = 2;\n var weeks = this.weeks;\n var isWorkWeek = util.pick(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, lookupProperty = container.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: domevent.getEventTarget(mouseEvent),\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 = domevent.getEventTarget(clickEvent);\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 = domevent.getEventTarget(mouseDownEvent),\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 datetime = require('../../common/datetime');\nvar tmpl = require('../template/popup/scheduleCreationPopup.hbs');\nvar TZDate = timezone.Date;\nvar MAX_WEEK_OF_MONTH = 6;\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 = domevent.getEventTarget(mouseDownEvent),\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 = domevent.getEventTarget(clickEvent);\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 */\n// eslint-disable-next-line complexity\nScheduleCreationPopup.prototype._onClickSaveSchedule = function(target) {\n var className = config.classname('popup-save');\n var cssPrefix = config.cssPrefix;\n var title;\n var startDate;\n var endDate;\n var rangeDate;\n var form;\n var isAllDay;\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 (!this._validateForm(title, startDate, endDate)) {\n if (!title.value) {\n title.focus();\n }\n\n return false;\n }\n\n isAllDay = !!domutil.get(cssPrefix + 'schedule-allday').checked;\n rangeDate = this._getRangeDate(startDate, endDate, isAllDay);\n\n form = {\n calendarId: this._selectedCal ? this._selectedCal.id : null,\n title: title,\n location: domutil.get(cssPrefix + 'schedule-location'),\n start: rangeDate.start,\n end: rangeDate.end,\n isAllDay: isAllDay,\n state: domutil.get(cssPrefix + 'schedule-state').innerText,\n isPrivate: !domutil.hasClass(domutil.get(cssPrefix + 'schedule-private'), config.classname('public'))\n };\n\n if (this._isEditMode) {\n this._onClickUpdateSchedule(form);\n } else {\n this._onClickCreateSchedule(form);\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 containerBound = this.container.getBoundingClientRect();\n var pos = this._calcRenderingData(layerSize, containerBound, guideBound);\n\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 * Get calculate rendering positions of y and arrow direction by guide block elements\n * @param {number} guideBoundTop - guide block's top\n * @param {number} guideBoundBottom - guide block's bottom\n * @param {number} layerHeight - popup layer's height\n * @param {number} containerTop - container's top\n * @param {number} containerBottom - container's bottom\n * @returns {YAndArrowDirection} y and arrowDirection\n */\nScheduleCreationPopup.prototype._getYAndArrowDirection = function(\n guideBoundTop,\n guideBoundBottom,\n layerHeight,\n containerTop,\n containerBottom\n) {\n var arrowDirection = 'arrow-bottom';\n var MARGIN = 3;\n var y = guideBoundTop - layerHeight;\n\n if (y < containerTop) {\n y = guideBoundBottom - containerTop + MARGIN;\n arrowDirection = 'arrow-top';\n } else {\n y = y - containerTop - MARGIN;\n }\n\n if (y + layerHeight > containerBottom) {\n y = containerBottom - layerHeight - containerTop - MARGIN;\n }\n\n /**\n * @typedef {Object} YAndArrowDirection\n * @property {number} y - top position of popup layer\n * @property {string} [arrowDirection] - direction of popup arrow\n */\n return {\n y: y,\n arrowDirection: arrowDirection\n };\n};\n\n/**\n* Get calculate rendering x position and arrow left by guide block elements\n* @param {number} guideBoundLeft - guide block's left\n* @param {number} guideBoundRight - guide block's right\n* @param {number} layerWidth - popup layer's width\n* @param {number} containerLeft - container's left\n* @param {number} containerRight - container's right\n* @returns {XAndArrowLeft} x and arrowLeft\n*/\nScheduleCreationPopup.prototype._getXAndArrowLeft = function(\n guideBoundLeft,\n guideBoundRight,\n layerWidth,\n containerLeft,\n containerRight\n) {\n var guideHorizontalCenter = (guideBoundLeft + guideBoundRight) / 2;\n var x = guideHorizontalCenter - (layerWidth / 2);\n var ARROW_WIDTH_HALF = 8;\n var arrowLeft;\n\n if (x + layerWidth > containerRight) {\n x = guideBoundRight - layerWidth + ARROW_WIDTH_HALF;\n arrowLeft = guideHorizontalCenter - x;\n } else {\n x += ARROW_WIDTH_HALF;\n }\n\n if (x < containerLeft) {\n x = 0;\n arrowLeft = guideHorizontalCenter - containerLeft - ARROW_WIDTH_HALF;\n } else {\n x = x - containerLeft - ARROW_WIDTH_HALF;\n }\n\n /**\n * @typedef {Object} XAndArrowLeft\n * @property {number} x - left position of popup layer\n * @property {numbe3er} arrowLeft - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n x: x,\n arrowLeft: arrowLeft\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}}} containerBound - 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, containerBound, guideBound) {\n var yPosInfo = this._getYAndArrowDirection(\n guideBound.top,\n guideBound.bottom,\n layerSize.height,\n containerBound.top,\n containerBound.bottom\n );\n var xPosInfo = this._getXAndArrowLeft(\n guideBound.left,\n guideBound.right,\n layerSize.width,\n containerBound.left,\n containerBound.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: xPosInfo.x,\n y: yPosInfo.y,\n arrow: {\n direction: yPosInfo.arrowDirection,\n position: xPosInfo.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\n/**\n * Validate the form\n * @param {string} title title of then entered schedule\n * @param {TZDate} startDate start date time from range picker\n * @param {TZDate} endDate end date time from range picker\n * @returns {boolean} Returns false if the form is not valid for submission.\n */\nScheduleCreationPopup.prototype._validateForm = function(title, startDate, endDate) {\n if (!title.value) {\n return false;\n }\n\n if (!startDate && !endDate) {\n return false;\n }\n\n if (datetime.compare(startDate, endDate) === 1) {\n return false;\n }\n\n return true;\n};\n\n/**\n * Get range date from range picker\n * @param {TZDate} startDate start date time from range picker\n * @param {TZDate} endDate end date time from range picker\n * @param {boolean} isAllDay whether it is an all-day schedule\n * @returns {RangeDate} Returns the start and end time data that is the range date\n */\nScheduleCreationPopup.prototype._getRangeDate = function(startDate, endDate, isAllDay) {\n if (isAllDay) {\n startDate.setHours(0, 0, 0);\n endDate = datetime.isStartOfDay(endDate) ?\n datetime.convertStartDayToLastDay(endDate) :\n endDate.setHours(23, 59, 59);\n }\n\n /**\n * @typedef {object} RangeDate\n * @property {TZDate} start start time\n * @property {TZDate} end end time\n */\n return {\n start: new TZDate(startDate),\n end: new TZDate(endDate)\n };\n};\n\n/**\n * Request schedule model creation to controller by custom schedules.\n * @fires {ScheduleCreationPopup#beforeUpdateSchedule}\n * @param {{\n calendarId: {string},\n title: {string},\n location: {string},\n start: {TZDate},\n end: {TZDate},\n isAllDay: {boolean},\n state: {string},\n isPrivate: {boolean}\n }} form schedule input form data\n*/\nScheduleCreationPopup.prototype._onClickUpdateSchedule = function(form) {\n var changes = common.getScheduleChanges(\n this._schedule,\n ['calendarId', 'title', 'location', 'start', 'end', 'isAllDay', 'state'],\n {\n calendarId: form.calendarId,\n title: form.title.value,\n location: location.value,\n start: form.start,\n end: form.end,\n isAllDay: form.isAllDay,\n state: form.state\n }\n );\n\n /**\n * @event ScheduleCreationPopup#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule object to be updated\n */\n this.fire('beforeUpdateSchedule', {\n schedule: util.extend({\n raw: {\n class: form.isPrivate ? 'private' : 'public'\n }\n }, this._schedule),\n changes: changes,\n start: form.start,\n end: form.end,\n calendar: this._selectedCal,\n triggerEventName: 'click'\n });\n};\n\n/**\n * Request the controller to update the schedule model according to the custom schedule.\n * @fires {ScheduleCreationPopup#beforeCreateSchedule}\n * @param {{\n calendarId: {string},\n title: {string},\n location: {string},\n start: {TZDate},\n end: {TZDate},\n isAllDay: {boolean},\n state: {string}\n }} form schedule input form data\n */\nScheduleCreationPopup.prototype._onClickCreateSchedule = function(form) {\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: form.calendarId,\n title: form.title.value,\n location: location.value,\n raw: {\n class: form.isPrivate ? 'private' : 'public'\n },\n start: form.start,\n end: form.end,\n isAllDay: form.isAllDay,\n state: form.state\n });\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');\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 = domevent.getEventTarget(mouseDownEvent),\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 = domevent.getEventTarget(clickEvent);\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\n var containerBound = this.container.getBoundingClientRect();\n var scheduleEl = domevent.getEventTarget(event);\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, containerBound, scheduleBound);\n this.layer.setPosition(pos.x, pos.y);\n this._setArrowDirection(pos.arrow);\n};\n\n/**\n * Get calculate rendering positions of y and arrow top by schedule block elements\n * @param {number} scheduleBoundTop - schedule block's top\n * @param {number} scheduleBoundBottom - schedule block's bottom\n * @param {number} layerHeight - popup layer's height\n * @param {number} containerTop - container's top\n * @param {number} containerBottom - container's bottom\n * @returns {YAndArrowTop} y and arrowTop\n */\nScheduleDetailPopup.prototype._getYAndArrowTop = function(\n scheduleBoundTop,\n scheduleBoundBottom,\n layerHeight,\n containerTop,\n containerBottom\n) {\n var ARROW_WIDTH_HALF = 8;\n var scheduleVerticalCenter, y, arrowTop;\n\n scheduleBoundTop = scheduleBoundTop < 0 ? 0 : scheduleBoundTop;\n scheduleVerticalCenter = (scheduleBoundTop + scheduleBoundBottom) / 2;\n y = scheduleVerticalCenter - (layerHeight / 2);\n\n if (y < containerTop) {\n y = 0;\n arrowTop = scheduleVerticalCenter - containerTop - ARROW_WIDTH_HALF;\n } else if (y + layerHeight > containerBottom) {\n y = containerBottom - layerHeight - containerTop;\n arrowTop = scheduleVerticalCenter - y - containerTop - ARROW_WIDTH_HALF;\n } else {\n y -= containerTop;\n }\n\n if (arrowTop < 0 || arrowTop > layerHeight) {\n arrowTop = null;\n }\n\n /**\n * @typedef {Object} YAndArrowTop\n * @property {number} y - top position of popup layer\n * @property {number} [arrowTop] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n y: y,\n arrowTop: arrowTop\n };\n};\n\n/**\n * Get calculate rendering x position and arrow direction by schedule block elements\n * @param {number} scheduleBoundLeft - schedule block's left\n * @param {number} scheduleBoundRight - schedule block's right\n * @param {number} layerWidth - popup layer's width\n * @param {number} containerLeft - container's left\n * @param {number} containerRight - container's right\n * @returns {XAndArrowDirection} x and arrowDirection\n */\nScheduleDetailPopup.prototype._getXAndArrowDirection = function(\n scheduleBoundLeft,\n scheduleBoundRight,\n layerWidth,\n containerLeft,\n containerRight\n) {\n var arrowDirection = 'arrow-left';\n var x = scheduleBoundRight;\n var MARGIN = 4;\n\n if (x + layerWidth > containerRight) {\n arrowDirection = 'arrow-right';\n x = scheduleBoundLeft - layerWidth - MARGIN;\n } else {\n x += MARGIN;\n }\n\n if (x < containerLeft) {\n x = 0;\n } else {\n x -= containerLeft;\n }\n\n /**\n * @typedef {Object} XAndArrowDirection\n * @property {number} x - left position of popup layer\n * @property {string} arrowDirection - direction of popup arrow\n */\n return {\n x: x,\n arrowDirection: arrowDirection\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}}} containerBound - width and height of the upper layer, that acts as a border of popup\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} scheduleBound - guide element bound data\n * @returns {PopupRenderingData} rendering position of popup and popup arrow\n */\nScheduleDetailPopup.prototype._calcRenderingData = function(layerSize, containerBound, scheduleBound) {\n var yPosInfo = this._getYAndArrowTop(\n scheduleBound.top,\n scheduleBound.bottom,\n layerSize.height,\n containerBound.top,\n containerBound.bottom\n );\n var xPosInfo = this._getXAndArrowDirection(\n scheduleBound.left,\n scheduleBound.right,\n layerSize.width,\n containerBound.left,\n containerBound.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: xPosInfo.x,\n y: yPosInfo.y,\n arrow: {\n direction: xPosInfo.arrowDirection,\n position: yPosInfo.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, lookupProperty = container.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/toast-ui.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/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, lookupProperty = container.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/toast-ui.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/toast-ui.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\":13,\"column\":60},\"end\":{\"line\":13,\"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\":23,\"column\":135},\"end\":{\"line\":23,\"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\":54,\"column\":99},\"end\":{\"line\":54,\"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\":54,\"column\":116},\"end\":{\"line\":54,\"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\":69,\"column\":163},\"end\":{\"line\":69,\"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\":69,\"column\":193},\"end\":{\"line\":69,\"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\":10,\"column\":16},\"end\":{\"line\":15,\"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\":48,\"column\":52},\"end\":{\"line\":48,\"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\":60,\"column\":52},\"end\":{\"line\":60,\"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\":64,\"column\":52},\"end\":{\"line\":64,\"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, lookupProperty = container.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/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, lookupProperty = container.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/toast-ui.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/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, lookupProperty = container.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/toast-ui.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),(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\":56,\"column\":37},\"end\":{\"line\":56,\"column\":75}}}),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":22},\"end\":{\"line\":56,\"column\":76}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(29, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":12},\"end\":{\"line\":56,\"column\":207}}})) != 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/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, lookupProperty = container.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/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, lookupProperty = container.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/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, lookupProperty = container.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/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, lookupProperty = container.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 = datetime.getDateDifference(hourmarker, now);\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 = datetime.getDateDifference(hourmarker, now);\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 = domevent.getEventTarget(event);\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 220ab4eea..7c37d1e03 100644 --- a/dist/tui-calendar.min.css +++ b/dist/tui-calendar.min.css @@ -1,6 +1,6 @@ /*! * TOAST UI Calendar - * @version 1.12.12 | Mon Mar 23 2020 + * @version 1.12.13 | Tue Apr 28 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 e2acd1c95..0b8f05edc 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,CDE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CJ,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.12 | Mon Mar 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,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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SroBA,uFACE,UAAO,CACP,WAAQ,CACR,gBAAc,CACd,QTuoBF,CSroBA,2DACE,gBAAa,CACb,WAAQ,CACR,cAAW,CACX,aTuoBF,CSroBA,kEACE,iBTuoBF,CSroBA,8EACE,cTuoBF,CSroBA,4EACE,iBAAa,CACb,iBTuoBF,CSroBA,kEACE,cAAW,CACX,eAAa,CACb,eAAa,CACb,oBTuoBF,CSroBA,oEACE,YAAS,CACT,UAAO,CACP,WAAQ,CACR,qXTuoBF,CSroBA,kGACE,aTuoBF,CSroBA,kEACE,kBTuoBF,CSroBA,kEACE,4BAAY,CACZ,WTuoBF,CSroBA,0DACE,gBAAc,CACd,QTuoBF,CSroBA,6DACE,iBAAU,CACV,OTuoBF,CSroBA,8DACE,oBAAS,CACT,oBAAS,CACT,qBAAO,CACP,YAAS,CACT,eAAY,CACZ,WAAQ,CACR,cTwoBF,CStoBA,uCACE,kBAAY,CACZ,SAAO,CACP,WAAQ,CACR,qBAAgB,CAChB,oBAAS,CACT,eTwoBF,CSroBA,gBACI,UAAM,CACN,SAAS,CACT,oBTuoBJ,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.13 | Tue Apr 28 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 f28c73c05..1bb2e041c 100644 --- a/dist/tui-calendar.min.js +++ b/dist/tui-calendar.min.js @@ -1,8 +1,8 @@ /*! * TOAST UI Calendar - * @version 1.12.12 | Mon Mar 23 2020 + * @version 1.12.13 | Tue Apr 28 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 c,u=t.childNodes,d=0,h=u.length;d0&&(e(c,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,n.replace(/^\s\s*/,"").replace(/\s\s*$/,""))):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=c,o=e+t;return n[o]||(n[o]=l._convMilliseconds(e,t,(function(e,t){return e/t}))),n[o]},millisecondsFrom:function(e,t){var n=u,o=e+t;return 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,c=a(new i(e)),u=[];s<=r&&r>=c.d.getTime();)u.push(l.start(c.d)),s+=n,c.addDate(1);return u},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,c,u,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),(c=a(new i(e))).addDate(7*(S-1)),c=c.d):(s=l.startDateOfMonth(e),c=l.endDateOfMonth(e)),o=r.range(g,7).concat(r.range(7)).slice(0,7),u=r.inArray(s.getDay(),o),h=7-(r.inArray(c.getDay(),o)+1),d=S?7*S:y?42:u+c.getDate()+h,p=l.start(s).addDate(-u),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,c=r.range(n,7).concat(r.range(e)).slice(0,7);return o&&(c=r.filter(c,(function(e){return!l.isWeekend(e)}))),t=!o&&t,r.map(c,(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},getDateDifference:function(e,t){var n=new i(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),o=new i(t.getFullYear(),t.getMonth(),t.getDate()).getTime();return Math.round((n-o)/l.MILLISECONDS_PER_DAY)}},e.exports=l}).call(this,n(9))},function(e,t,n){"use strict";var l=n(0),o=s(),i=o,a=null,r=!1;function s(e){return e=e||Date.now(),6e4*new Date(e).getTimezoneOffset()}function c(e){return!r&&a?6e4*a(e):i}function u(e){var t=Date.UTC.apply(null,e);return new Date(t+s(t))}function d(e){var t;if(e instanceof m)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)}function h(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=s(e),n=c(e);return e-n+t+(n?0:o-t)}(t),new Date(t)}function p(e){return e instanceof Date||"string"==typeof e}function m(e){var t;l.isUndefined(e)&&(e=Date.now()),t=arguments.length>1?u(arguments):p(e)?h(e):d(e),this._date=t}m.prototype.getTime=function(){var e=this._date.getTime();return e+c(e)-s(e)},m.prototype.getUTCTime=function(){return this._date.getTime()},m.prototype.toUTCString=function(){return this._date.toUTCString()},m.prototype.toDate=function(){return this._date},m.prototype.valueOf=function(){return this.getTime()},m.prototype.addDate=function(e){return this.setDate(this.getDate()+e),this},m.prototype.addMinutes=function(e){return this.setMinutes(this.getMinutes()+e),this},m.prototype.addMilliseconds=function(e){return this.setMilliseconds(this.getMilliseconds()+e),this},m.prototype.setWithRaw=function(e,t,n,l,o,i,a){return this.setFullYear(e,t,n),this.setHours(l,o,i,a),this},m.prototype.toLocalTime=function(){var e=this.getTime(),t=this.getUTCTime();return new m(t-(e-t))},["getDate","getDay","getFullYear","getHours","getMilliseconds","getMinutes","getMonth","getSeconds"].forEach((function(e){m.prototype[e]=function(){return this._date[e].apply(this._date,arguments)}})),["setDate","setFullYear","setHours","setMilliseconds","setMinutes","setMonth","setSeconds"].forEach((function(e){m.prototype[e]=function(){return this._date[e].apply(this._date,arguments),this.getTime()}})),e.exports={Date:m,setOffset:function(e){i=6e4*e},setOffsetByTimezoneOption:function(e){this.setOffset(-e),r=!0},getOffset:function(){return r?i/6e4:0},setOffsetCallback:function(e){a=e},restoreOffset:function(){i=s()}}},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)},c.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},c.prototype.clear=function(){this.items={},this.length=0},c.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)},c.prototype.doWhenHas=function(e,t,n){var o=this.items[e];l.isExisty(o)&&t.call(n||this,o)},c.prototype.find=function(e){var t=new c;return this.hasOwnProperty("getItemID")&&(t.getItemID=this.getItemID),this.each((function(n){!0===e(n)&&t.add(n)})),t},c.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 c(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 c(s)),n.add(t)})),i},c.prototype.single=function(e){var t,n=l.isFunction(e);return this.each((function(l){return n&&!e(l)||(t=l,!1)}),this),t},c.prototype.sort=function(e){var t=[];return this.each((function(e){t.push(e)})),a(e)&&(t=t.sort(e)),t},c.prototype.each=function(e,t){o(this.items,e,t||this)},c.prototype.toArray=function(){return this.length?l.map(this.items,(function(e){return e})):[]},e.exports=c},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,c="allday";function u(){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)}u.schema={required:["title"],dateRange:["start","end"]},u.create=function(e){var t=new u;return t.init(e),t},u.prototype.init=function(e){(e=l.extend({},e)).category===c&&(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},u.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)},u.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)},u.prototype.getStarts=function(){return this.start},u.prototype.getEnds=function(){return this.end},u.prototype.cid=function(){return l.stamp(this)},u.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))))))))},u.prototype.duration=function(){var e=this.getStarts(),t=this.getEnds();return this.isAllDay?i.end(t)-i.start(e):t-e},u.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),c=i.millisecondsFrom("minutes",e.goingDuration),u=i.millisecondsFrom("minutes",e.comingDuration);return Math.abs(n-t)(t-=a)&&lt&&o=n},r.mixin(u.prototype),a.mixin(u.prototype),e.exports=u},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,c=e.valueOf(),u=t.valueOf();return(r=i(c.isAllDay||e.hasMultiDates,u.isAllDay||t.hasMultiDates))?r:(s=o.compare(e.getStarts(),t.getStarts()))?s:(n=e.duration())<(a=t.duration())?1:n>a?-1:l.stamp(c)-l.stamp(u)}},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=c},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,c=t.single().getRenderDateRange().length,u=l.pick(e.vLayout.panels[1],"container"),d=i.getSize(u),h=e.grids;return function(e){var t,i,p,m=a.getMousePosition(e,u),f=function(e){for(var t,n=0,l=h.length;n=n.length&&(g=n.length-1),(t=l.pick(n,g))?(f<0&&(f=0),f>=(p=t.getRenderDateRange()).length&&(f=p.length-1),(i=l.pick(p,f))?{x:f,y:g,sizeX:c,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)),c=o(n(49)),u=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=c,e.template=function(t){return c.template(t,e)},e}var h=d();h.create=d,u.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(10),i=l(n(12)),a=n(23),r=n(45),s=l(n(24)),c=n(25);t.VERSION="4.7.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]},resetLoggedPropertyAccesses:function(){c.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),c.default(e),u.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)),c=l(n(43)),u=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),c=n(64),u=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 u({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,c=s?"nextPanel":"prevPanel";for(i=(o=this[s?"prevPanel":"nextPanel"](e)).getResizeInfoByGrowth(a),r.push([o,i[0]]),o=this[c](o);l.isExisty(o);o=this[c](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],c=s.getHeight(),u=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:u,guideElement:h,startY:d-u,minY:0,maxY:this.getViewBound().height-c},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 c(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 c(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(c,s),c.prototype.getRenderDateRange=function(){return this._cacheParentViewModel.range},c.prototype.getRenderDateGrids=function(){return this._cacheParentViewModel.grids},c.prototype.getBaseViewModel=function(e){var t=this.options,n=e.range,o=100/n.length,i=e.grids,s=e.exceedDate||{},c=e.theme,u=(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(u,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(c,n,o),backgroundColor:this._getDayBackgroundColor(c,n)}}),this)}},c.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=u.get(s.classname("popup-arrow")),l=u.find(s.classname(".popup-arrow-border",n));t!==s.classname("arrow-bottom")&&(u.removeClass(n,s.classname("arrow-bottom")),u.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),c.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),c=n(81);function u(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(u,l),u.prototype._onMouseDown=function(e){var t=e.target||e.srcElement;s.closest(t,a.classname(".floating-layer"))||this.hide()},u.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)},u.prototype._onClick=function(e){var t=e.target||e.srcElement;this._onClickEditSchedule(t),this._onClickDeleteSchedule(t)},u.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())},u.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())},u.prototype.render=function(e){var t=this.layer,n=this;t.setContent(c({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)}))()},u.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,c=i.top,u=e.target||e.srcElement,d=s.closest(u,a.classname(".time-date-schedule-block"))||s.closest(u,a.classname(".weekday-schedule"))||u,h=d.getBoundingClientRect();this._scheduleEl=d,(t=this._calcRenderingData(l,o,h)).x-=r+4,t.y-=c+8,this.layer.setPosition(t.x,t.y),this._setArrowDirection(t.arrow)},u.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}}},u.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")},u.prototype.hide=function(){this.layer.hide(),this.guide&&(this.guide.clearGuideElement(),this.guide=null),r.off(document.body,"mousedown",this._onMouseDown,this)},u.prototype.refresh=function(){this._viewModel&&this.layer.setContent(this.tmpl(this._viewModel))},e.exports=u},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),c=n(4).Date;function u(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)}u.prototype.destroy=function(){this.guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.view=this.controller=this.guide=this._dragStart=null},u.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])))},u.prototype._onDragStart=function(e){var t,n,i,r,s,c=e.target,u=this.checkExpectedCondition(c),d=this.controller;u&&(t=a.closest(c,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))))},u.prototype._onDrag=function(e){var t=this.getScheduleDataFunc;t&&this.fire("drag",t(e.originEvent))},u.prototype._updateSchedule=function(e){var t=e.targetModel,n=e.xIndex-e.dragStartXIndex,l=new c(t.start),o=new c(t.end);l=l.addDate(n),o=o.addDate(n),this.fire("beforeUpdateSchedule",{schedule:t,changes:{start:l,end:o},start:l,end:o})},u.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)},u.prototype._onClick=function(e){this._onDragEnd(e,"click",!0)},i.mixin(r,u),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(1),r=n(3),s=n(4).Date,c=n(106),u=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=c(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=l.pick(this.view,"options","workweek")?this.days+2:this.days,o=function(e,t){return p(r.millisecondsTo("day",h(t-e)))},i=r.start(t[0].options.renderStartDate),a=en[1]?l=n.slice(0):(o=u(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,c=e.y,u=new s(this.view.options.renderMonth);n.isCreationMode?i&&!r.isSameMonth(u,i.start)&&(i.start.setMonth(u.getMonth()),i.start.setDate(1),i.end.setMonth(u.getMonth()),i.end.setDate(1)):(a=(t=this._getCoordByDate(i.getStarts()))[0],c=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(c))&&(a=(t=this._getCoordByDate(i.getStarts()))[0],c=t[1]),this.startCoord=[a,c],this.update(a,c)},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=u(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]),u(o[1],a[1])+1),c=this._getExcludesInRange(s,r),h={};this._removeGuideElements(c),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=n(0),o=n(20),i=n(26),a=n(3),r=n(52),s=n(27),c=n(53),u=n(63),d=n(97),h=n(4).Date,p=n(2),m=n(4),f=n(11),g=Math.min;function y(e,t){!0===(t=l.extend({usageStatistics:!0},t)).usageStatistics&&l.sendHostname&&l.sendHostname("calendar","UA-129951699-1"),l.isString(e)&&(e=document.querySelector(e)),this._calendarColor={},this._renderDate=a.start(),this._renderRange={start:null,end:null},this._controller=function(e){return c(e)}(t),this._controller.setCalendars(t.calendars),this._layout=new r(e,this._controller.theme),this._dragHandler=new s({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 S(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(),l.forEach(this._options.template,(function(e,t){e&&o.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=l.extend({defaultView:n,taskView:!0,scheduleView:!0,template:l.extend({allday:null,time:null},l.pick(e,"template")||{}),week:l.extend({},l.pick(e,"week")||{}),month:l.extend({},l.pick(e,"month")||{}),calendars:[],useCreationPopup:!1,useDetailPopup:!1,timezones:e.timezones||[],disableDblClick:!1,disableClick:!1,isReadOnly:!1},e),this._options.week=l.extend({startDayOfWeek:0,workweek:!1},l.pick(this._options,"week")||{}),this._options.month=l.extend({startDayOfWeek:0,workweek:!1,scheduleFilter:function(e){return Boolean(e.isVisible)&&("allday"===e.category||"time"===e.category)}},l.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||[];l.forEach(e.template,(function(e,t){e&&o.registerHelper(t+"-tmpl",e)})),l.forEach(e.calendars||[],(function(e){this.setCalendarColor(e.id,e,!0)}),this),t.length&&m.setOffsetByTimezoneOption(t[0].timezoneOffset)},y.prototype.createSchedules=function(e,t){l.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 o,i,r,s;return t=t||0,o=(e=l.isDate(e)?e:new h(e)).getDay(),i=new h(e).addDate(-o+t),r=new h(i).addDate(6),o0?(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,i=n(10),a=n(12),r=(o=a)&&o.__esModule?o:{default:o};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new r.default("Must pass iterator to #each");var n,o=t.fn,a=t.inverse,s=0,c="",u=void 0,d=void 0;function h(t,n,l){u&&(u.key=t,u.index=n,u.first=0===n,u.last=!!l,d&&(u.contextPath=d+t)),c+=o(e[t],{data:u,blockParams:i.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(u=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var p=e.length;s=r.LAST_COMPATIBLE_COMPILER_REVISION&&t<=r.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=[]}c.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)},c.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},c.prototype.createSchedules=function(e,t){var n=this;return l.map(e,(function(e){return n.createSchedule(e,t)}))},c.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),t.raw&&e.set("raw",t.raw),this._removeFromMatrix(e),this._addToMatrix(e),this.fire("updateSchedule"),e},c.prototype.deleteSchedule=function(e){return this._removeFromMatrix(e),this.schedules.remove(e),e},c.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))}))},c.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)},c.prototype.addSchedule=function(e,t){return this.schedules.add(e),this._addToMatrix(e),t||this.fire("addedSchedule",e),e},c.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"),c=i[o];t=s[o]=r.createScheduleCollection(),c&&c.length&&l.forEachArray(c,(function(e){n.doWhenHas(e,(function(e){t.add(e)}))}))})),s},c.prototype.findByDateRange=function(e,t){var n,o,s,c=a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),u=this.schedules.items,d=this.dateMatrix,h=a.format,p={};return l.forEachArray(c,(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(u[e])})))})),p},c.prototype.clearSchedules=function(){this.dateMatrix={},this.schedules.clear(),this.fire("clearSchedules")},c.prototype.setTheme=function(e){return this.theme.setStyles(e)},c.prototype.setCalendars=function(e){this.calendars=e},l.CustomEvents.mixin(c),e.exports=c},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,c=r.wrap;l.isObject(t)?l.forEachOwnProperties(t,(function(t,n){c(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){var o;return o=e[t],n=!i.isUndefined(o)&&""!==l.trim(o)})),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),c=n(28),u={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=u.getLastRowInColumn;return o(t,(function(t){var a=[[]];o(t,(function(t){for(var n,o,r=e.items[t],s=0,c=!1;!c;)!1===(o=i(a,s))?(a[0].push(r),c=!0):r.collidesWith(a[o][s])||(n=o+1,l.isUndefined(a[n])&&(a[n]=[]),a[n][s]=r,c=!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(c.create(e))})),t}};e.exports=u},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,c={generateTimeArrayInRow:function(e){var t,n,o,i,r,c=[],u=[],d=Math.max.apply(null,l.map(e,(function(e){return e.length})));for(n=1;n=c&&lc&&o<=u||lc||o>u&&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),s={};r.forEach((function(e){var t=i.format(e.getStarts(),"YYYYMMDD"),o=s[t];l.isUndefined(o)&&(o=s[t]=n(t,a)),s[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={},c=this.dateMatrix;a.forEach((function(e){var t,o,a=i.format(e.getStarts(),"YYYYMMDD"),u=s[a];if(l.isUndefined(u)&&(u=s[a]=[],l.forEach(c[a],(function(e){n.doWhenHas(e,(function(e){u.push(e.top)}))}))),l.inArray(e.top,u)>=0)for(t=r.apply(null,u)+1,o=1;o<=t&&(e.top=o,!(l.inArray(e.top,u)<0));o+=1);u.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,c,u,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),c=d.getCollisionGroup(s),u=d.getMatrices(r,c),d.positionViewModels(e,t,u,h._weightTopValue),l?h._adjustTimeTopIndex(r):h._stackTimeFromTop(r),u}};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),c=n(14),u=n(65),d=n(66),h=n(68),p=n(72),m=n(32),f=n(33),g=n(82),y=n(83),S=n(85),_=n(34),C=n(87),v=n(89),E=n(90),w=n(92),P=n(95),k={click:y,creation:S,move:_,resize:C},b={click:v,creation:E,move:w,resize:P},R=[{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,y,S){var _,C,v,E,w,P,I,D,F,x,X,M,O,T,H=[],L=[],B=y.taskView,A=y.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(R,(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(y.week,{panels:H}),(_=new u(null,y.week,t,H,S)).handler={click:{},dayname:{},creation:{},move:{},resize:{}},C=i.appendHTMLElement("div",_.container,o.classname("dayname-layout")),v=new d(y,C,e.theme),_.handler.dayname.date=new g(n,v,e),_.addChild(v),(E=i.appendHTMLElement("div",_.container,o.classname("vlayout-area"))).style.height=i.getSize(_.container)[1]-v.container.offsetHeight+"px",w=new r({panels:L,panelHeights:y.week.panelHeights||[]},E,e.theme),_.vLayout=w,l.forEach(H,(function(t){var o,i=t.name,a=t.handlers;t.show&&("daygrid"===t.type?((o=new h(i,y,w.getPanelByName(t.name).container,e.theme)).on("afterRender",(function(e){w.getPanelByName(i).setHeight(null,e.height)})),_.addChild(o),l.forEach(a,(function(t){y.isReadOnly&&"click"!==t||(_.handler[t][i]=new k[t](n,o,e,y),o.addHandler(t,_.handler[t][i],w.getPanelByName(i)))}))):"timegrid"===t.type&&(o=new p(i,y,w.getPanelByName(i).container),_.addChild(o),l.forEach(a,(function(t){y.isReadOnly&&"click"!==t||(_.handler[t][i]=new b[t](n,o,e,y))})),o.on("clickTimezonesCollapsedBtn",(function(){var e=!_.state.timezonesCollapsed;_.setState({timezonesCollapsed:e}),s.requestAnimFrame((function(){_.invoke("clickTimezonesCollapseBtn",e)||_.render()}))}))))})),w.on("resize",(function(){s.requestAnimFrame((function(){_.render()}))})),y.useCreationPopup&&(P=new m(t,e.calendars,y.usageStatistics),I=function(e){l.extend(e,{useCreationPopup:!0}),e.isAllDay?_.handler.creation.allday.fire("beforeCreateSchedule",e):_.handler.creation.time.fire("beforeCreateSchedule",e)},P.on("beforeCreateSchedule",I)),D=function(e){P&&P.setCalendars(e)},e.on("setCalendars",D),y.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})),y.isReadOnly&&(t.schedule=l.extend({},t.schedule,{isReadOnly:!0})),x.render(t)},M=function(e){e.isAllDay?_.handler.creation.allday.fire("beforeDeleteSchedule",e):_.handler.creation.time.fire("beforeDeleteSchedule",e)},T=function(e){e.isAllDay?_.handler.move.allday.fire("beforeUpdateSchedule",e):_.handler.move.time.fire("beforeUpdateSchedule",e)},l.forEach(_.handler.click,(function(e){e.on("clickSchedule",X)})),y.useCreationPopup?(O=function(t){var n=e.calendars;t.isEditMode=!0,P.setCalendars(n),P.render(t)},P.on("beforeUpdateSchedule",T),x.on("beforeUpdateSchedule",O)):x.on("beforeUpdateSchedule",T),x.on("beforeDeleteSchedule",M)),_.on("afterRender",(function(){w.refresh()})),_.controller=e.Week,_._beforeDestroy=function(){l.forEach(_.handler,(function(e){l.forEach(e,(function(e){e.off(),e.destroy()}))})),y.useCreationPopup&&(P.off("beforeCreateSchedule",I),P.destroy()),y.useDetailPopup&&(x.off("beforeDeleteSchedule",M),x.destroy()),_.off()},{view:_,refresh:function(){var e=_.getViewBound().height,t=i.getBCRect(v.container).height;w.container.style.height=e-t+"px",w.refresh()},scrollToNow:function(){_.children.each((function(e){e.scrollToNow&&e.scrollToNow()}))},openCreationPopup:function(e){P&&(e.isAllDay?_.handler.creation.allday.invokeCreationClick(c.create(e)):_.handler.creation.time.invokeCreationClick(c.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 c(e,t,n,c,u){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=c,this.state={timezonesCollapsed:this.options.timezonesCollapsed},"day"===u&&function(e){e.workweek=!1}(this.options)}l.inherit(c,s),c.prototype.render=function(){var e,t,n,o,i,s,c=this,u=this.options,d=u.scheduleFilter,h=u.narrowWeekend,p=u.startDayOfWeek,m=u.workweek,f=this.controller.theme||{},g=this.state;e=new r(u.renderStartDate),t=new r(u.renderEndDate),s=a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),u.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)?c._invokeAfterRenderSchedule(t):l.forEach(t,(function(e){c._invokeAfterRenderSchedule(e)})))})),this.fire("afterRender")},c.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})}))}))}))},c.prototype.viewName="week",c.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(c),e.exports=c},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),c=n(8),u=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,c.call(this,t),this.applyTheme()}l.inherit(d,c),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),c=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,c="function",u=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,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: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,c=n(8),u=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")),c.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,n){return 0===e||6===e?n.weekendBackgroundColor:t?n.todayBackgroundColor:n.backgroundColor}function y(e,t){var n;return l.forEach(e,(function(e){e.name===t&&(n=e)})),n}l.inherit(f,c),f.prototype.getBaseViewModel=function(e){var t,n=this.options,o=n.daynames,i=e.range,r=e.grids,c=n.getViewModelFunc(e),u={},d=y(n.panels,n.viewName),h=this.getViewBound().height,f=this.state.collapsed,S=!!this.vPanel&&this.vPanel.getHeightForcedSet(),_=e.state.timezonesCollapsed,C=this._getStyles(e.theme,_),v=(new s).toLocalTime();return d.showExpandableButton&&(S||(h=f?p(h,d.maxHeight):m(h,d.maxExpandableHeight)),t=Math.floor(h/(n.scheduleHeight+n.scheduleGutter)),f&&(u=this.parent.controller.getExceedDate(t,c,e.range),c=this.parent.controller.excludeExceedSchedules(c,t),n.setViewModelFunc(e,c))),{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(v,t);return{day:l,dayName:o[l],isToday:s,date:t.getDate(),renderDate:a.format(t,"YYYY-MM-DD"),hiddenSchedules:u[i]||0,width:r[n]?r[n].width:0,left:r[n]?r[n].left:0,backgroundColor:e.range.length>1?g(l,s,C):C.backgroundColor}})),exceedDate:u,showExpandableButton:d.showExpandableButton,collapsed:f,collapseBtnIndex:this.state.clickedExpandBtnIndex,styles:C}},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 u(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=y(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=y(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;c.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,c=e.escapeExpression,u=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,c=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: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,c=e.escapeExpression,u=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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '+(null!=(i=(u(n,"weekGridFooterExceed-tmpl")||t&&u(t,"weekGridFooterExceed-tmpl")||s).call(r,null!=t?u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '+(null!=(i="function"==typeof(a=null!=(a=u(n,"collapseBtnTitle-tmpl")||(null!=t?u(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,c="function",u=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),c=n(4),u=n(11),d=n(8),h=n(73),p=n(75),m=n(76),f=n(77),g=n(78),y=c.Date;function S(e,t,n,o){var a,r,c=e.hourStart,u=e.hourEnd,d=new y(e.renderEndDate),h=parseInt(n/60,10),p=Math.abs(n%60),m=(new y).toLocalTime(),f=m.getMinutes(),g=l.range(0,24),S=null;return(h<0||-0===h)&&p>0&&(h-=1),i.shiftArray(g,h),i.takeArray(g,c,u),a=i.shiftHours(m.getHours(),h)%24,r=l.inArray(a,g),t&&(f<20?S=a:f>40&&(S=a+1),l.isNumber(S)&&(S%=24)),l.map(g,(function(e,n){var l,i;return t&&n<=r||d=0,r,n),g.setMinutes(g.getMinutes()+r),f=s.getDateDifference(g,p),l>0&&(m=n.additionalTimezoneBackgroundColor),u.push({timeSlots:c,displayLabel:t.displayLabel,timezoneOffset:t.timezoneOffset,tooltip:t.tooltip||"",width:h,left:d?0:(a.length-l-1)*h,isPrimary:0===l,backgroundColor:m||"",hidden:0!==l&&d,hourmarker:g,dateDifferenceSign:f<0?"-":"+",dateDifference:Math.abs(f)})})),u},_.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:S(o,i.todaymarkerLeft>=0,0,r),styles:r,showTimezoneCollapseButton:l.pick(o,"showTimezoneCollapseButton"),timezonesCollapsed:a})},_.prototype._renderChildren=function(e,t,n,i){var r,c,u,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){u=l===f,r={index:g,left:t[g]?t[g].left:0,width:t[g]?t[g].width:0,ymd:l,isToday:u,isPending:m.isPending,isFocused:m.isFocused,isReadOnly:m.isReadOnly,hourStart:m.hourStart,hourEnd:m.hourEnd},(c=new h(r,a.appendHTMLElement("div",n,o.classname("time-date")),i)).render(l,e,d),p.addChild(c),g+=1}))},_.prototype.render=function(e){var t=this.options,n=e.schedulesInDateRange[t.viewName],i=this.container,r=e.grids,s=this._getBaseViewModel(e),c=l.keys(n).length;this._cacheParentViewModel=e,this._cacheHoursLabels=s.hoursLabels,c&&(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()))},_.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},_.prototype.refreshHourmarker=function(){var e,t=this.hourmarkers,n=this._cacheParentViewModel,i=this._cacheHoursLabels;t&&n&&(e=this._getBaseViewModel(n),u.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))},_.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)},_.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,u.requestAnimFrame(o)):i.scrollTop=e-l},u.requestAnimFrame(o))},_.prototype.onTick=function(){this.timerID&&(clearTimeout(this.timerID),this.timerID=null),this.intervalID||(this.intervalID=setInterval(l.bind(this.onTick,this),6e4)),this.refreshHourmarker()},_.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},_.prototype._onClickStickyContainer=function(e){var t=e.target||e.srcElement;a.closest(t,o.classname(".timegrid-timezone-close-btn"))&&this.fire("clickTimezonesCollapsedBtn")},e.exports=_},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),c=l.forEachArray,u=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,c=!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>u?g:u)+h+p)/r,l=s*h/r,o=s*g/r,a=s*p/r,m<0&&(f=0,n+=s*m/r,c=!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:c,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,u=s.hourStart,d=s.hourEnd,h=s.isReadOnly;n=n||this.getViewBound().height,(o=this._parseDateGroup(e)).setHours(u),a=i.millisecondsFrom("hour",d-u),c(t,(function(e){var t,i,s,u;for(t=Math.max.apply(null,l.map(e,(function(e){return e.length}))),i=100/t,s=[],u=0;u\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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+(null!=(i=(u(n,"goingDuration-tmpl")||t&&u(t,"goingDuration-tmpl")||s).call(r,null!=t?u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+(null!=(i=(u(n,"comingDuration-tmpl")||t&&u(t,"comingDuration-tmpl")||s).call(r,null!=t?u(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,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: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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      \n '+(null!=(i=(u(n,"timegridDisplayPrimayTime-tmpl")||t&&u(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,c=e.escapeExpression,u=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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      \n '+(null!=(i=(u(n,"timegridDisplayTime-tmpl")||t&&u(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,c=e.escapeExpression,u=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,c=e.escapeExpression,u=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,c="function",u=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,c="function",u=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,c="function",u=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,c=e.escapeExpression,u=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",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    • \n \n '+c(typeof(i=null!=(i=u(n,"name")||(null!=t?u(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,c="function",u=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)===c?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)===c?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)===c?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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+(null!=(i=(u(n,"popupDetailLocation-tmpl")||t&&u(t,"popupDetailLocation-tmpl")||s).call(r,null!=t?u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+(null!=(i=(u(n,"popupDetailRepeat-tmpl")||t&&u(t,"popupDetailRepeat-tmpl")||s).call(r,null!=t?u(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,c="function",u=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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+(null!=(i=(u(n,"popupDetailState-tmpl")||t&&u(t,"popupDetailState-tmpl")||s).call(r,null!=t?u(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,c=e.escapeExpression,u=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+c(u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+(null!=(i=(u(n,"popupDetailBody-tmpl")||t&&u(t,"popupDetailBody-tmpl")||s).call(r,null!=t?u(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,c="function",u=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,c="function",u=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 '+u(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")),c=i.closest(l,o.classname(".weekday-exceed-in-week"));if(this.view.container.contains(l)){if(!s)return c?(this.view.setState({clickedExpandBtnIndex:parseInt(i.getData(c,"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]),c=i.end(l[l.length-1]),u=Math.ceil((a.getTime()-s.getTime())/i.MILLISECONDS_PER_DAY)||0,d=Math.ceil((r.getTime()-c.getTime())/i.MILLISECONDS_PER_DAY)||0;return function(e){return{baseWidthPercent:o,fromLeft:u+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,c=this.getScheduleDataFunc,u=this._dragStartXIndex,d=e.datesInRange,h=e.grids;c&&(n=(t=c(e.xIndex-u)).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),c=n(5),u=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 u(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,u=e.nearestGridTimeY,h=e.nearestGridEndTimeY?e.nearestGridEndTimeY:new d(u).addMinutes(30);s||(s=[u,h]),t=new d(r.getDate()),n=a.start(t),l=a.getStartOfNextDay(t),o=c.limitDate(s[0],n,l),i=c.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,c=n(4).Date,u=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,c=this.guideTimeElement;s.style.top=e+"px",s.style.height=t+"px",s.style.display="block",c.innerHTML=o.format(n,"HH:mm")+" - "+o.format(l,"HH:mm"),r?a.removeClass(c,i.classname("time-guide-bottom")):a.addClass(c,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,u=n.nearestGridEndTimeY||new c(r).addMinutes(30);return[l.limit(s(t,e,o),[0],[e]),l.limitDate(r,i,a),l.limitDate(u,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 c(l[1]).addMinutes(o.minutesFromHours(p)),d=new c(l[2]).addMinutes(o.minutesFromHours(p)),a=l[0],r=t[4]*(d-s)/u,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 c(n[1]).addMinutes(30)):(l=this._limitStyleData(n[0],a[0]-n[0]+t,n[1],new c(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,c=n(18),u=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 u(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),c=a.closest(r,o.classname(".time-date-schedule-block")),u=this.baseController;s&&c&&(l=a.getData(c,"id"),(i=u.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],c=0,u=l.schedules.items[o],d=e.relatedView,h=e.currentView;u&&h&&(r-=i.millisecondsFrom("minutes",30),t=new s(u.getStarts()).addMilliseconds(r),n=new s(u.getEnds()).addMilliseconds(r),h&&(c=h.getDate()-d.getDate()),t.addMilliseconds(c),n.addMilliseconds(c),this.fire("beforeUpdateSchedule",{schedule:u,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))},c.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),c=n(94),u=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(c(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,c=s.options,d=s.getViewBound().height,p=parseFloat(this.guideElement.style.height),m=c.hourEnd-c.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 u(this._model.getStarts()).addMinutes(h.minutesFromHours(y)),this._model.end=new u(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(c(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,c=e.escapeExpression,u=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,c=e.escapeExpression,u=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,c="function",u=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),c=n(18),u=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 u(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")),c=this.baseController;r&&s&&(t=a.getData(s,"id"),n=this._getScheduleDataFunc=this._retriveScheduleData(r),l=this._dragStart=n(e.originEvent,{targetModelID:t,schedule:c.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,c=e.targetModelID,u=e.nearestRange,d=u[1]-u[0],h=a.schedules.items[c],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,c=e.lambda,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: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),c=n(101),u=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),c=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:c},t)},p.prototype.render=function(e){var t,n,r,d,h,p=this.container,m=this.getBaseViewModel(e);this.options.visibleWeeksCount||(n=m.dates,r=this.options.renderMonth,d=e.theme,h=r.getMonth()+1,l.forEach(n,(function(e){var t=e.month!==h;e.isOtherMonth=t,t&&(e.color=s.prototype._getDayNameColor(d,e.day,e.isToday,t))}))),p.innerHTML=c(m),(t=a.find(o.classname(".weekday-schedules"),p))&&(t.innerHTML=u(m),i.setAutoEllipsis(o.classname(".weekday-schedule-title"),p,!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,c="function",u=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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '+(null!=(i=(u(n,"monthGridHeaderExceed-tmpl")||t&&u(t,"monthGridHeaderExceed-tmpl")||s).call(r,null!=t?u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '+(null!=(i=(u(n,"monthGridFooterExceed-tmpl")||t&&u(t,"monthGridFooterExceed-tmpl")||s).call(r,null!=t?u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      \n
      \n'+(null!=(i=u(n,"each").call(r,null!=t?u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      \n'+(null!=(i=(u(n,"fi")||t&&u(t,"fi")||s).call(r,null!=(i=null!=t?u(t,"model"):t)?u(i,"isAllDay"):i,"||",null!=t?u(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,c=null!=t?t:e.nullContext||{},u=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")||u).call(c,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(c,(d(n,"or")||t&&d(t,"or")||u).call(c,(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,c=null!=t?t:e.nullContext||{},u=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")||u).call(c,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,c=null!=t?t:e.nullContext||{},u=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")||u).call(c,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),c=n(19),u=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 u(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=c(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=c(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=c(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,c=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,c="function",u=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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      \n'+(null!=(i=u(n,"if").call(r,null!=t?u(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),c=n(4).Date,u=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 c(e.end)),n=e.schedule,l=u.getScheduleChanges(n,["end"],{end:t});this.fire("beforeUpdateSchedule",{schedule:n,changes:l,start:new c(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 c(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 c(o.schedule.getStarts()),l=new c(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),c=n(4).Date;function u(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)}u.prototype.destroy=function(){this.dragHandler.off(this),this.dragHandler=this.monthView=this.baseController=null},u.prototype.updateSchedule=function(e){var t=e.model,n=t.duration(),l=a.raw(t.start),o=new c(e.end),i=new c(o);i.setHours(l.h,l.m,l.s,l.ms),this.fire("beforeUpdateSchedule",{schedule:t,changes:{start:i,end:new c(i).addMilliseconds(n)},start:i,end:new c(i).addMilliseconds(n)})},u.prototype.getMonthScheduleBlock=function(e){var t=o.classname(".weekday-schedule-block");return i.closest(e,t)},u.prototype.getMoreLayerScheduleBlock=function(e){var t=o.classname(".month-more-schedule");return i.closest(e,t)},u.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)},u.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 c(Number(t.date))},this.fire("monthMoveDragstart",t))},u.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=l.extend({originEvent:e.originEvent},this.getScheduleData(e.originEvent)))&&this.fire("monthMoveDrag",t)},u.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 c(t.date),this.updateSchedule(n)),this.fire("monthMoveDragend",t),this.getScheduleData=this._cache=null)},l.CustomEvents.mixin(u),e.exports=u},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),c=n(14);function u(e){this.monthMove=e,this.elements=null,this.layer=null,e.on({monthMoveDragstart:this._onDragStart,monthMoveDrag:this._onDrag,monthMoveDragend:this._onDragEnd},this)}u.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},u.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)}))},u.prototype._showOriginScheduleBlocks=function(){var e=o.classname("weekday-schedule-block-dragging-dim");l.forEach(this.elements,(function(t){i.removeClass(t,e)}))},u.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)},u.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)},u.prototype._onDragStart=function(e){var n=this.monthMove.monthView,u=n.children.single(),d=u.options,h=100/u.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(c.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"))},u.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])},u.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=u}).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,c=e.escapeExpression,u=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,c="function",u=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),c=n(5),u=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=c.ratio(l[0],100,o),r=c.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,c=a.closest(e.target,o.classname(".weekday-grid-line")),d=a.closest(c,o.classname(".month-week-item")),h=this.layer,p=this,m=this._getRenderPosition(c,d),f=a.getSize(d)[1]+10,g=c.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(u(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,c=e.escapeExpression,u=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,c=e.escapeExpression,u=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,c=e.escapeExpression,u=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,c="function",u=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,c={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 u(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(c,a),i))break}(t=t||window.document.body,e),r?o[0]||null:o},closest:function(e,t,n){var o;if(!e)return null;if(o=e.parentNode,!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,n.replace(/^\s\s*/,"").replace(/\s\s*$/,""))):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=c,o=e+t;return n[o]||(n[o]=l._convMilliseconds(e,t,(function(e,t){return e/t}))),n[o]},millisecondsFrom:function(e,t){var n=u,o=e+t;return 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,c=a(new i(e)),u=[];s<=r&&r>=c.d.getTime();)u.push(l.start(c.d)),s+=n,c.addDate(1);return u},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,c,u,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),(c=a(new i(e))).addDate(7*(S-1)),c=c.d):(s=l.startDateOfMonth(e),c=l.endDateOfMonth(e)),o=r.range(g,7).concat(r.range(7)).slice(0,7),u=r.inArray(s.getDay(),o),h=7-(r.inArray(c.getDay(),o)+1),d=S?7*S:y?42:u+c.getDate()+h,p=l.start(s).addDate(-u),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,c=r.range(n,7).concat(r.range(e)).slice(0,7);return o&&(c=r.filter(c,(function(e){return!l.isWeekend(e)}))),t=!o&&t,r.map(c,(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.setHours(23,59,59)),t},getStartOfNextDay:function(e){var t=l.start(e);return t.setHours(24),t},getDateDifference:function(e,t){var n=new i(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),o=new i(t.getFullYear(),t.getMonth(),t.getDate()).getTime();return Math.round((n-o)/l.MILLISECONDS_PER_DAY)}},e.exports=l}).call(this,n(9))},function(e,t,n){"use strict";var l=n(0),o=s(),i=o,a=null,r=!1;function s(e){return e=e||Date.now(),6e4*new Date(e).getTimezoneOffset()}function c(e){return!r&&a?6e4*a(e):i}function u(e){var t=Date.UTC.apply(null,e);return new Date(t+s(t))}function d(e){var t;if(e instanceof m)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)}function h(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=s(e),n=c(e);return e-n+t+(n?0:o-t)}(t),new Date(t)}function p(e){return e instanceof Date||"string"==typeof e}function m(e){var t;l.isUndefined(e)&&(e=Date.now()),t=arguments.length>1?u(arguments):p(e)?h(e):d(e),this._date=t}m.prototype.getTime=function(){var e=this._date.getTime();return e+c(e)-s(e)},m.prototype.getUTCTime=function(){return this._date.getTime()},m.prototype.toUTCString=function(){return this._date.toUTCString()},m.prototype.toDate=function(){return this._date},m.prototype.valueOf=function(){return this.getTime()},m.prototype.addDate=function(e){return this.setDate(this.getDate()+e),this},m.prototype.addMinutes=function(e){return this.setMinutes(this.getMinutes()+e),this},m.prototype.addMilliseconds=function(e){return this.setMilliseconds(this.getMilliseconds()+e),this},m.prototype.setWithRaw=function(e,t,n,l,o,i,a){return this.setFullYear(e,t,n),this.setHours(l,o,i,a),this},m.prototype.toLocalTime=function(){var e=this.getTime(),t=this.getUTCTime();return new m(t-(e-t))},["getDate","getDay","getFullYear","getHours","getMilliseconds","getMinutes","getMonth","getSeconds"].forEach((function(e){m.prototype[e]=function(){return this._date[e].apply(this._date,arguments)}})),["setDate","setFullYear","setHours","setMilliseconds","setMinutes","setMonth","setSeconds"].forEach((function(e){m.prototype[e]=function(){return this._date[e].apply(this._date,arguments),this.getTime()}})),e.exports={Date:m,setOffset:function(e){i=6e4*e},setOffsetByTimezoneOption:function(e){this.setOffset(-e),r=!0},getOffset:function(){return r?i/6e4:0},setOffsetCallback:function(e){a=e},restoreOffset:function(){i=s()}}},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]):l.isUndefined(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)},getEventTarget:function(e){return e.target||e.srcElement}};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)},c.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},c.prototype.clear=function(){this.items={},this.length=0},c.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)},c.prototype.doWhenHas=function(e,t,n){var o=this.items[e];l.isExisty(o)&&t.call(n||this,o)},c.prototype.find=function(e){var t=new c;return this.hasOwnProperty("getItemID")&&(t.getItemID=this.getItemID),this.each((function(n){!0===e(n)&&t.add(n)})),t},c.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 c(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 c(s)),n.add(t)})),i},c.prototype.single=function(e){var t,n=l.isFunction(e);return this.each((function(l){return n&&!e(l)||(t=l,!1)}),this),t},c.prototype.sort=function(e){var t=[];return this.each((function(e){t.push(e)})),a(e)&&(t=t.sort(e)),t},c.prototype.each=function(e,t){o(this.items,e,t||this)},c.prototype.toArray=function(){return this.length?l.map(this.items,(function(e){return e})):[]},e.exports=c},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,c="allday";function u(){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)}u.schema={required:["title"],dateRange:["start","end"]},u.create=function(e){var t=new u;return t.init(e),t},u.prototype.init=function(e){(e=l.extend({},e)).category===c&&(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},u.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)},u.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)},u.prototype.getStarts=function(){return this.start},u.prototype.getEnds=function(){return this.end},u.prototype.cid=function(){return l.stamp(this)},u.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))))))))},u.prototype.duration=function(){var e=this.getStarts(),t=this.getEnds();return this.isAllDay?i.end(t)-i.start(e):t-e},u.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),c=i.millisecondsFrom("minutes",e.goingDuration),u=i.millisecondsFrom("minutes",e.comingDuration);return Math.abs(n-t)(t-=a)&&lt&&o=n},r.mixin(u.prototype),a.mixin(u.prototype),e.exports=u},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,c=e.valueOf(),u=t.valueOf();return(r=i(c.isAllDay||e.hasMultiDates,u.isAllDay||t.hasMultiDates))?r:(s=o.compare(e.getStarts(),t.getStarts()))?s:(n=e.duration())<(a=t.duration())?1:n>a?-1:l.stamp(c)-l.stamp(u)}},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=c},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,c=t.single().getRenderDateRange().length,u=l.pick(e.vLayout.panels[1],"container"),d=i.getSize(u),h=e.grids;return function(e){var t,i,p,m=a.getMousePosition(e,u),f=function(e){for(var t,n=0,l=h.length;n=n.length&&(g=n.length-1),(t=l.pick(n,g))?(f<0&&(f=0),f>=(p=t.getRenderDateRange()).length&&(f=p.length-1),(i=l.pick(p,f))?{x:f,y:g,sizeX:c,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)),c=o(n(49)),u=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=c,e.template=function(t){return c.template(t,e)},e}var h=d();h.create=d,u.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(10),i=l(n(12)),a=n(23),r=n(45),s=l(n(24)),c=n(25);t.VERSION="4.7.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]},resetLoggedPropertyAccesses:function(){c.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),c.default(e),u.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)),c=l(n(43)),u=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),a=n(2);function r(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}function s(e){o.closest(e.target,a.classname(".popup"))||i.preventDefault(e)}r.prototype.destroy=function(){i.off(this.container,"mousedown",this._onMouseDown,this),this._isMoved=null,this.container=null},r.prototype._clearData=function(){this._cancelled=!1,this._distance=0,this._isMoved=!1,this._dragStartFired=!1,this._dragStartEventData=null},r.prototype._toggleDragEvent=function(e){var n,l,a=this.container;e?(n="on",l="disable"):(n="off",l="enable"),o[l+"TextSelection"](a,s),o[l+"ImageDrag"](a,s),i[n](t.document,{mousemove:this._onMouseMove,mouseup:this._onMouseUp},this)},r.prototype._getEventData=function(e){return{target:i.getEventTarget(e),originEvent:e}},r.prototype._onMouseDown=function(e){var t=this.options,n=i.getEventTarget(e);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)))},r.prototype._onMouseMove=function(e){var t;if(this._cancelled)this._clearData();else if(t=this.options.distance,s(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),c=n(64),u=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 u({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,c=s?"nextPanel":"prevPanel";for(i=(o=this[s?"prevPanel":"nextPanel"](e)).getResizeInfoByGrowth(a),r.push([o,i[0]]),o=this[c](o);l.isExisty(o);o=this[c](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],c=s.getHeight(),u=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:u,guideElement:h,startY:d-u,minY:0,maxY:this.getViewBound().height-c},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 c(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 c(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(c,s),c.prototype.getRenderDateRange=function(){return this._cacheParentViewModel.range},c.prototype.getRenderDateGrids=function(){return this._cacheParentViewModel.grids},c.prototype.getBaseViewModel=function(e){var t=this.options,n=e.range,o=100/n.length,i=e.grids,s=e.exceedDate||{},c=e.theme,u=(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(u,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(c,n,o),backgroundColor:this._getDayBackgroundColor(c,n)}}),this)}},c.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.topo&&(a=o-n-l-3),{y:a,arrowDirection:i}},f.prototype._getXAndArrowLeft=function(e,t,n,l,o){var i,a=(e+t)/2,r=a-n/2;return r+n>o?i=a-(r=t-n+8):r+=8,ro?r=i-(a=o-n-l)-l-8:a-=l,(r<0||r>n)&&(r=null),{y:a,arrowTop:r}},u.prototype._getXAndArrowDirection=function(e,t,n,l,o){var i="arrow-left",a=t;return a+n>o?(i="arrow-right",a=e-n-4):a+=4,an[1]?l=n.slice(0):(o=u(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,c=e.y,u=new s(this.view.options.renderMonth);n.isCreationMode?i&&!r.isSameMonth(u,i.start)&&(i.start.setMonth(u.getMonth()),i.start.setDate(1),i.end.setMonth(u.getMonth()),i.end.setDate(1)):(a=(t=this._getCoordByDate(i.getStarts()))[0],c=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(c))&&(a=(t=this._getCoordByDate(i.getStarts()))[0],c=t[1]),this.startCoord=[a,c],this.update(a,c)},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=u(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]),u(o[1],a[1])+1),c=this._getExcludesInRange(s,r),h={};this._removeGuideElements(c),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=n(0),o=n(20),i=n(26),a=n(3),r=n(52),s=n(27),c=n(53),u=n(63),d=n(97),h=n(4).Date,p=n(2),m=n(4),f=n(11),g=Math.min;function y(e,t){!0===(t=l.extend({usageStatistics:!0},t)).usageStatistics&&l.sendHostname&&l.sendHostname("calendar","UA-129951699-1"),l.isString(e)&&(e=document.querySelector(e)),this._calendarColor={},this._renderDate=a.start(),this._renderRange={start:null,end:null},this._controller=function(e){return c(e)}(t),this._controller.setCalendars(t.calendars),this._layout=new r(e,this._controller.theme),this._dragHandler=new s({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 S(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(),l.forEach(this._options.template,(function(e,t){e&&o.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=l.extend({defaultView:n,taskView:!0,scheduleView:!0,template:l.extend({allday:null,time:null},l.pick(e,"template")||{}),week:l.extend({},l.pick(e,"week")||{}),month:l.extend({},l.pick(e,"month")||{}),calendars:[],useCreationPopup:!1,useDetailPopup:!1,timezones:e.timezones||[],disableDblClick:!1,disableClick:!1,isReadOnly:!1},e),this._options.week=l.extend({startDayOfWeek:0,workweek:!1},l.pick(this._options,"week")||{}),this._options.month=l.extend({startDayOfWeek:0,workweek:!1,scheduleFilter:function(e){return Boolean(e.isVisible)&&("allday"===e.category||"time"===e.category)}},l.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||[];l.forEach(e.template,(function(e,t){e&&o.registerHelper(t+"-tmpl",e)})),l.forEach(e.calendars||[],(function(e){this.setCalendarColor(e.id,e,!0)}),this),t.length&&m.setOffsetByTimezoneOption(t[0].timezoneOffset)},y.prototype.createSchedules=function(e,t){l.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 o,i,r,s;return t=t||0,o=(e=l.isDate(e)?e:new h(e)).getDay(),i=new h(e).addDate(-o+t),r=new h(i).addDate(6),o0?(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,i=n(10),a=n(12),r=(o=a)&&o.__esModule?o:{default:o};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new r.default("Must pass iterator to #each");var n,o=t.fn,a=t.inverse,s=0,c="",u=void 0,d=void 0;function h(t,n,l){u&&(u.key=t,u.index=n,u.first=0===n,u.last=!!l,d&&(u.contextPath=d+t)),c+=o(e[t],{data:u,blockParams:i.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(u=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var p=e.length;s=r.LAST_COMPATIBLE_COMPILER_REVISION&&t<=r.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=[]}c.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)},c.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},c.prototype.createSchedules=function(e,t){var n=this;return l.map(e,(function(e){return n.createSchedule(e,t)}))},c.prototype.updateSchedule=function(e,t){var n=t.start||e.start,o=t.end||e.end;return["milestone","task","allday","time"].indexOf((t=t||{}).category)>-1&&e.set("category",t.category),"allday"===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),t.raw&&e.set("raw",t.raw),this._removeFromMatrix(e),this._addToMatrix(e),this.fire("updateSchedule"),e},c.prototype.deleteSchedule=function(e){return this._removeFromMatrix(e),this.schedules.remove(e),e},c.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))}))},c.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)},c.prototype.addSchedule=function(e,t){return this.schedules.add(e),this._addToMatrix(e),t||this.fire("addedSchedule",e),e},c.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"),c=i[o];t=s[o]=r.createScheduleCollection(),c&&c.length&&l.forEachArray(c,(function(e){n.doWhenHas(e,(function(e){t.add(e)}))}))})),s},c.prototype.findByDateRange=function(e,t){var n,o,s,c=a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),u=this.schedules.items,d=this.dateMatrix,h=a.format,p={};return l.forEachArray(c,(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(u[e])})))})),p},c.prototype.clearSchedules=function(){this.dateMatrix={},this.schedules.clear(),this.fire("clearSchedules")},c.prototype.setTheme=function(e){return this.theme.setStyles(e)},c.prototype.setCalendars=function(e){this.calendars=e},l.CustomEvents.mixin(c),e.exports=c},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,c=r.wrap;l.isObject(t)?l.forEachOwnProperties(t,(function(t,n){c(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){var o;return o=e[t],n=!i.isUndefined(o)&&""!==l.trim(o)})),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),c=n(28),u={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=u.getLastRowInColumn;return o(t,(function(t){var a=[[]];o(t,(function(t){for(var n,o,r=e.items[t],s=0,c=!1;!c;)!1===(o=i(a,s))?(a[0].push(r),c=!0):r.collidesWith(a[o][s])||(n=o+1,l.isUndefined(a[n])&&(a[n]=[]),a[n][s]=r,c=!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(c.create(e))})),t}};e.exports=u},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,c={generateTimeArrayInRow:function(e){var t,n,o,i,r,c=[],u=[],d=Math.max.apply(null,l.map(e,(function(e){return e.length})));for(n=1;n=c&&lc&&o<=u||lc||o>u&&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),s={};r.forEach((function(e){var t=i.format(e.getStarts(),"YYYYMMDD"),o=s[t];l.isUndefined(o)&&(o=s[t]=n(t,a)),s[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={},c=this.dateMatrix;a.forEach((function(e){var t,o,a=i.format(e.getStarts(),"YYYYMMDD"),u=s[a];if(l.isUndefined(u)&&(u=s[a]=[],l.forEach(c[a],(function(e){n.doWhenHas(e,(function(e){u.push(e.top)}))}))),l.inArray(e.top,u)>=0)for(t=r.apply(null,u)+1,o=1;o<=t&&(e.top=o,!(l.inArray(e.top,u)<0));o+=1);u.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,c,u,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),c=d.getCollisionGroup(s),u=d.getMatrices(r,c),d.positionViewModels(e,t,u,h._weightTopValue),l?h._adjustTimeTopIndex(r):h._stackTimeFromTop(r),u}};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),c=n(14),u=n(65),d=n(66),h=n(68),p=n(72),m=n(32),f=n(33),g=n(82),y=n(83),S=n(85),_=n(34),C=n(87),v=n(89),E=n(90),w=n(92),P=n(95),k={click:y,creation:S,move:_,resize:C},b={click:v,creation:E,move:w,resize:P},R=[{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,y,S){var _,C,v,E,w,P,I,D,F,x,X,M,O,T,H=[],L=[],B=y.taskView,A=y.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(R,(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(y.week,{panels:H}),(_=new u(null,y.week,t,H,S)).handler={click:{},dayname:{},creation:{},move:{},resize:{}},C=i.appendHTMLElement("div",_.container,o.classname("dayname-layout")),v=new d(y,C,e.theme),_.handler.dayname.date=new g(n,v,e),_.addChild(v),(E=i.appendHTMLElement("div",_.container,o.classname("vlayout-area"))).style.height=i.getSize(_.container)[1]-v.container.offsetHeight+"px",w=new r({panels:L,panelHeights:y.week.panelHeights||[]},E,e.theme),_.vLayout=w,l.forEach(H,(function(t){var o,i=t.name,a=t.handlers;t.show&&("daygrid"===t.type?((o=new h(i,y,w.getPanelByName(t.name).container,e.theme)).on("afterRender",(function(e){w.getPanelByName(i).setHeight(null,e.height)})),_.addChild(o),l.forEach(a,(function(t){y.isReadOnly&&"click"!==t||(_.handler[t][i]=new k[t](n,o,e,y),o.addHandler(t,_.handler[t][i],w.getPanelByName(i)))}))):"timegrid"===t.type&&(o=new p(i,y,w.getPanelByName(i).container),_.addChild(o),l.forEach(a,(function(t){y.isReadOnly&&"click"!==t||(_.handler[t][i]=new b[t](n,o,e,y))})),o.on("clickTimezonesCollapsedBtn",(function(){var e=!_.state.timezonesCollapsed;_.setState({timezonesCollapsed:e}),s.requestAnimFrame((function(){_.invoke("clickTimezonesCollapseBtn",e)||_.render()}))}))))})),w.on("resize",(function(){s.requestAnimFrame((function(){_.render()}))})),y.useCreationPopup&&(P=new m(t,e.calendars,y.usageStatistics),I=function(e){l.extend(e,{useCreationPopup:!0}),e.isAllDay?_.handler.creation.allday.fire("beforeCreateSchedule",e):_.handler.creation.time.fire("beforeCreateSchedule",e)},P.on("beforeCreateSchedule",I)),D=function(e){P&&P.setCalendars(e)},e.on("setCalendars",D),y.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})),y.isReadOnly&&(t.schedule=l.extend({},t.schedule,{isReadOnly:!0})),x.render(t)},M=function(e){e.isAllDay?_.handler.creation.allday.fire("beforeDeleteSchedule",e):_.handler.creation.time.fire("beforeDeleteSchedule",e)},T=function(e){e.isAllDay?_.handler.move.allday.fire("beforeUpdateSchedule",e):_.handler.move.time.fire("beforeUpdateSchedule",e)},l.forEach(_.handler.click,(function(e){e.on("clickSchedule",X)})),y.useCreationPopup?(O=function(t){var n=e.calendars;t.isEditMode=!0,P.setCalendars(n),P.render(t)},P.on("beforeUpdateSchedule",T),x.on("beforeUpdateSchedule",O)):x.on("beforeUpdateSchedule",T),x.on("beforeDeleteSchedule",M)),_.on("afterRender",(function(){w.refresh()})),_.controller=e.Week,_._beforeDestroy=function(){l.forEach(_.handler,(function(e){l.forEach(e,(function(e){e.off(),e.destroy()}))})),y.useCreationPopup&&(P.off("beforeCreateSchedule",I),P.destroy()),y.useDetailPopup&&(x.off("beforeDeleteSchedule",M),x.destroy()),_.off()},{view:_,refresh:function(){var e=_.getViewBound().height,t=i.getBCRect(v.container).height;w.container.style.height=e-t+"px",w.refresh()},scrollToNow:function(){_.children.each((function(e){e.scrollToNow&&e.scrollToNow()}))},openCreationPopup:function(e){P&&(e.isAllDay?_.handler.creation.allday.invokeCreationClick(c.create(e)):_.handler.creation.time.invokeCreationClick(c.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 c(e,t,n,c,u){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=c,this.state={timezonesCollapsed:this.options.timezonesCollapsed},"day"===u&&function(e){e.workweek=!1}(this.options)}l.inherit(c,s),c.prototype.render=function(){var e,t,n,o,i,s,c=this,u=this.options,d=u.scheduleFilter,h=u.narrowWeekend,p=u.startDayOfWeek,m=u.workweek,f=this.controller.theme||{},g=this.state;e=new r(u.renderStartDate),t=new r(u.renderEndDate),s=a.range(a.start(e),a.end(t),a.MILLISECONDS_PER_DAY),u.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)?c._invokeAfterRenderSchedule(t):l.forEach(t,(function(e){c._invokeAfterRenderSchedule(e)})))})),this.fire("afterRender")},c.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})}))}))}))},c.prototype.viewName="week",c.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(c),e.exports=c},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),c=n(8),u=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,c.call(this,t),this.applyTheme()}l.inherit(d,c),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),c=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,c="function",u=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,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: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,c=n(8),u=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")),c.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,n){return 0===e||6===e?n.weekendBackgroundColor:t?n.todayBackgroundColor:n.backgroundColor}function y(e,t){var n;return l.forEach(e,(function(e){e.name===t&&(n=e)})),n}l.inherit(f,c),f.prototype.getBaseViewModel=function(e){var t,n=this.options,o=n.daynames,i=e.range,r=e.grids,c=n.getViewModelFunc(e),u={},d=y(n.panels,n.viewName),h=this.getViewBound().height,f=this.state.collapsed,S=!!this.vPanel&&this.vPanel.getHeightForcedSet(),_=e.state.timezonesCollapsed,C=this._getStyles(e.theme,_),v=(new s).toLocalTime();return d.showExpandableButton&&(S||(h=f?p(h,d.maxHeight):m(h,d.maxExpandableHeight)),t=Math.floor(h/(n.scheduleHeight+n.scheduleGutter)),f&&(u=this.parent.controller.getExceedDate(t,c,e.range),c=this.parent.controller.excludeExceedSchedules(c,t),n.setViewModelFunc(e,c))),{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(v,t);return{day:l,dayName:o[l],isToday:s,date:t.getDate(),renderDate:a.format(t,"YYYY-MM-DD"),hiddenSchedules:u[i]||0,width:r[n]?r[n].width:0,left:r[n]?r[n].left:0,backgroundColor:e.range.length>1?g(l,s,C):C.backgroundColor}})),exceedDate:u,showExpandableButton:d.showExpandableButton,collapsed:f,collapseBtnIndex:this.state.clickedExpandBtnIndex,styles:C}},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 u(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=y(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=y(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;c.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,c=e.escapeExpression,u=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,c=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: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,c=e.escapeExpression,u=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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '+(null!=(i=(u(n,"weekGridFooterExceed-tmpl")||t&&u(t,"weekGridFooterExceed-tmpl")||s).call(r,null!=t?u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '+(null!=(i="function"==typeof(a=null!=(a=u(n,"collapseBtnTitle-tmpl")||(null!=t?u(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,c="function",u=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),c=n(4),u=n(11),d=n(8),h=n(73),p=n(75),m=n(76),f=n(77),g=n(78),y=c.Date;function S(e,t,n,o){var a,r,c=e.hourStart,u=e.hourEnd,d=new y(e.renderEndDate),h=parseInt(n/60,10),p=Math.abs(n%60),m=(new y).toLocalTime(),f=m.getMinutes(),g=l.range(0,24),S=null;return(h<0||-0===h)&&p>0&&(h-=1),i.shiftArray(g,h),i.takeArray(g,c,u),a=i.shiftHours(m.getHours(),h)%24,r=l.inArray(a,g),t&&(f<20?S=a:f>40&&(S=a+1),l.isNumber(S)&&(S%=24)),l.map(g,(function(e,n){var l,i;return t&&n<=r||d=0,r,n),g.setMinutes(g.getMinutes()+r),f=s.getDateDifference(g,p),l>0&&(m=n.additionalTimezoneBackgroundColor),u.push({timeSlots:c,displayLabel:t.displayLabel,timezoneOffset:t.timezoneOffset,tooltip:t.tooltip||"",width:h,left:d?0:(a.length-l-1)*h,isPrimary:0===l,backgroundColor:m||"",hidden:0!==l&&d,hourmarker:g,dateDifferenceSign:f<0?"-":"+",dateDifference:Math.abs(f)})})),u},_.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:S(o,i.todaymarkerLeft>=0,0,r),styles:r,showTimezoneCollapseButton:l.pick(o,"showTimezoneCollapseButton"),timezonesCollapsed:a})},_.prototype._renderChildren=function(e,t,n,i){var r,c,u,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){u=l===f,r={index:g,left:t[g]?t[g].left:0,width:t[g]?t[g].width:0,ymd:l,isToday:u,isPending:m.isPending,isFocused:m.isFocused,isReadOnly:m.isReadOnly,hourStart:m.hourStart,hourEnd:m.hourEnd},(c=new h(r,a.appendHTMLElement("div",n,o.classname("time-date")),i)).render(l,e,d),p.addChild(c),g+=1}))},_.prototype.render=function(e){var t=this.options,n=e.schedulesInDateRange[t.viewName],i=this.container,r=e.grids,s=this._getBaseViewModel(e),c=l.keys(n).length;this._cacheParentViewModel=e,this._cacheHoursLabels=s.hoursLabels,c&&(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()))},_.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},_.prototype.refreshHourmarker=function(){var e,t=this.hourmarkers,n=this._cacheParentViewModel,i=this._cacheHoursLabels;t&&n&&(e=this._getBaseViewModel(n),u.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))},_.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)},_.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,u.requestAnimFrame(o)):i.scrollTop=e-l},u.requestAnimFrame(o))},_.prototype.onTick=function(){this.timerID&&(clearTimeout(this.timerID),this.timerID=null),this.intervalID||(this.intervalID=setInterval(l.bind(this.onTick,this),6e4)),this.refreshHourmarker()},_.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},_.prototype._onClickStickyContainer=function(e){var t=r.getEventTarget(e);a.closest(t,o.classname(".timegrid-timezone-close-btn"))&&this.fire("clickTimezonesCollapsedBtn")},e.exports=_},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),c=l.forEachArray,u=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,c=!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>u?g:u)+h+p)/r,l=s*h/r,o=s*g/r,a=s*p/r,m<0&&(f=0,n+=s*m/r,c=!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:c,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,u=s.hourStart,d=s.hourEnd,h=s.isReadOnly;n=n||this.getViewBound().height,(o=this._parseDateGroup(e)).setHours(u),a=i.millisecondsFrom("hour",d-u),c(t,(function(e){var t,i,s,u;for(t=Math.max.apply(null,l.map(e,(function(e){return e.length}))),i=100/t,s=[],u=0;u\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,(h(n,"or")||t&&h(t,"or")||s).call(r,(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:37},end:{line:56,column:75}}}),{name:"or",hash:{},data:o,loc:{start:{line:56,column:22},end:{line:56,column:76}}}),{name:"unless",hash:{},fn:e.program(29,o,0),inverse:e.noop,data:o,loc:{start:{line:56,column:12},end:{line:56,column:207}}}))?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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+(null!=(i=(u(n,"goingDuration-tmpl")||t&&u(t,"goingDuration-tmpl")||s).call(r,null!=t?u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+(null!=(i=(u(n,"comingDuration-tmpl")||t&&u(t,"comingDuration-tmpl")||s).call(r,null!=t?u(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,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: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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      \n '+(null!=(i=(u(n,"timegridDisplayPrimayTime-tmpl")||t&&u(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,c=e.escapeExpression,u=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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      \n '+(null!=(i=(u(n,"timegridDisplayTime-tmpl")||t&&u(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,c=e.escapeExpression,u=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,c=e.escapeExpression,u=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,c="function",u=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,c="function",u=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,c="function",u=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,c=e.escapeExpression,u=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",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    • \n \n '+c(typeof(i=null!=(i=u(n,"name")||(null!=t?u(t,"name"):t))?i:r)===s?i.call(a,{name:"name",hash:{},data:o,loc:{start:{line:13,column:60},end:{line:13,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:23,column:135},end:{line:23,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:54,column:99},end:{line:54,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:54,column:116},end:{line:54,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:69,column:163},end:{line:69,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:69,column:193},end:{line:69,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,c="function",u=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:10,column:16},end:{line:15,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)===c?a.call(r,{name:"popupIsAllDay-tmpl",hash:{},data:o,loc:{start:{line:48,column:52},end:{line:48,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)===c?a.call(r,{name:"popupStateBusy-tmpl",hash:{},data:o,loc:{start:{line:60,column:52},end:{line:60,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)===c?a.call(r,{name:"popupStateFree-tmpl",hash:{},data:o,loc:{start:{line:64,column:52},end:{line:64,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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+(null!=(i=(u(n,"popupDetailLocation-tmpl")||t&&u(t,"popupDetailLocation-tmpl")||s).call(r,null!=t?u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+(null!=(i=(u(n,"popupDetailRepeat-tmpl")||t&&u(t,"popupDetailRepeat-tmpl")||s).call(r,null!=t?u(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,c="function",u=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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+(null!=(i=(u(n,"popupDetailState-tmpl")||t&&u(t,"popupDetailState-tmpl")||s).call(r,null!=t?u(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,c=e.escapeExpression,u=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+c(u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      '+(null!=(i=(u(n,"popupDetailBody-tmpl")||t&&u(t,"popupDetailBody-tmpl")||s).call(r,null!=t?u(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,c="function",u=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,c="function",u=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 '+u(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")),c=i.closest(l,o.classname(".weekday-exceed-in-week"));if(this.view.container.contains(l)){if(!s)return c?(this.view.setState({clickedExpandBtnIndex:parseInt(i.getData(c,"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]),c=i.end(l[l.length-1]),u=Math.ceil((a.getTime()-s.getTime())/i.MILLISECONDS_PER_DAY)||0,d=Math.ceil((r.getTime()-c.getTime())/i.MILLISECONDS_PER_DAY)||0;return function(e){return{baseWidthPercent:o,fromLeft:u+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,c=this.getScheduleDataFunc,u=this._dragStartXIndex,d=e.datesInRange,h=e.grids;c&&(n=(t=c(e.xIndex-u)).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),c=n(5),u=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 u(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,u=e.nearestGridTimeY,h=e.nearestGridEndTimeY?e.nearestGridEndTimeY:new d(u).addMinutes(30);s||(s=[u,h]),t=new d(r.getDate()),n=a.start(t),l=a.getStartOfNextDay(t),o=c.limitDate(s[0],n,l),i=c.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,c=n(4).Date,u=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,c=this.guideTimeElement;s.style.top=e+"px",s.style.height=t+"px",s.style.display="block",c.innerHTML=o.format(n,"HH:mm")+" - "+o.format(l,"HH:mm"),r?a.removeClass(c,i.classname("time-guide-bottom")):a.addClass(c,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,u=n.nearestGridEndTimeY||new c(r).addMinutes(30);return[l.limit(s(t,e,o),[0],[e]),l.limitDate(r,i,a),l.limitDate(u,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 c(l[1]).addMinutes(o.minutesFromHours(p)),d=new c(l[2]).addMinutes(o.minutesFromHours(p)),a=l[0],r=t[4]*(d-s)/u,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 c(n[1]).addMinutes(30)):(l=this._limitStyleData(n[0],a[0]-n[0]+t,n[1],new c(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,c=n(18),u=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 u(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),c=a.closest(r,o.classname(".time-date-schedule-block")),u=this.baseController;s&&c&&(l=a.getData(c,"id"),(i=u.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],c=0,u=l.schedules.items[o],d=e.relatedView,h=e.currentView;u&&h&&(r-=i.millisecondsFrom("minutes",30),t=new s(u.getStarts()).addMilliseconds(r),n=new s(u.getEnds()).addMilliseconds(r),h&&(c=h.getDate()-d.getDate()),t.addMilliseconds(c),n.addMilliseconds(c),this.fire("beforeUpdateSchedule",{schedule:u,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))},c.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),c=n(94),u=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(c(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,c=s.options,d=s.getViewBound().height,p=parseFloat(this.guideElement.style.height),m=c.hourEnd-c.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 u(this._model.getStarts()).addMinutes(h.minutesFromHours(y)),this._model.end=new u(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(c(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,c=e.escapeExpression,u=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,c=e.escapeExpression,u=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,c="function",u=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),c=n(18),u=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 u(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")),c=this.baseController;r&&s&&(t=a.getData(s,"id"),n=this._getScheduleDataFunc=this._retriveScheduleData(r),l=this._dragStart=n(e.originEvent,{targetModelID:t,schedule:c.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,c=e.targetModelID,u=e.nearestRange,d=u[1]-u[0],h=a.schedules.items[c],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,c=e.lambda,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: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),c=n(101),u=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),c=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:c},t)},p.prototype.render=function(e){var t,n,r,d,h,p=this.container,m=this.getBaseViewModel(e);this.options.visibleWeeksCount||(n=m.dates,r=this.options.renderMonth,d=e.theme,h=r.getMonth()+1,l.forEach(n,(function(e){var t=e.month!==h;e.isOtherMonth=t,t&&(e.color=s.prototype._getDayNameColor(d,e.day,e.isToday,t))}))),p.innerHTML=c(m),(t=a.find(o.classname(".weekday-schedules"),p))&&(t.innerHTML=u(m),i.setAutoEllipsis(o.classname(".weekday-schedule-title"),p,!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,c="function",u=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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '+(null!=(i=(u(n,"monthGridHeaderExceed-tmpl")||t&&u(t,"monthGridHeaderExceed-tmpl")||s).call(r,null!=t?u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' '+(null!=(i=(u(n,"monthGridFooterExceed-tmpl")||t&&u(t,"monthGridFooterExceed-tmpl")||s).call(r,null!=t?u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      \n
      \n'+(null!=(i=u(n,"each").call(r,null!=t?u(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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      \n'+(null!=(i=(u(n,"fi")||t&&u(t,"fi")||s).call(r,null!=(i=null!=t?u(t,"model"):t)?u(i,"isAllDay"):i,"||",null!=t?u(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,c=null!=t?t:e.nullContext||{},u=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")||u).call(c,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(c,(d(n,"or")||t&&d(t,"or")||u).call(c,(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,c=null!=t?t:e.nullContext||{},u=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")||u).call(c,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,c=null!=t?t:e.nullContext||{},u=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")||u).call(c,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),c=n(19),u=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 u(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=c(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=c(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=c(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,c=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,c="function",u=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,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
      \n'+(null!=(i=u(n,"if").call(r,null!=t?u(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),c=n(4).Date,u=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 c(e.end)),n=e.schedule,l=u.getScheduleChanges(n,["end"],{end:t});this.fire("beforeUpdateSchedule",{schedule:n,changes:l,start:new c(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 c(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 c(o.schedule.getStarts()),l=new c(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),c=n(4).Date;function u(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)}u.prototype.destroy=function(){this.dragHandler.off(this),this.dragHandler=this.monthView=this.baseController=null},u.prototype.updateSchedule=function(e){var t=e.model,n=t.duration(),l=a.raw(t.start),o=new c(e.end),i=new c(o);i.setHours(l.h,l.m,l.s,l.ms),this.fire("beforeUpdateSchedule",{schedule:t,changes:{start:i,end:new c(i).addMilliseconds(n)},start:i,end:new c(i).addMilliseconds(n)})},u.prototype.getMonthScheduleBlock=function(e){var t=o.classname(".weekday-schedule-block");return i.closest(e,t)},u.prototype.getMoreLayerScheduleBlock=function(e){var t=o.classname(".month-more-schedule");return i.closest(e,t)},u.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)},u.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 c(Number(t.date))},this.fire("monthMoveDragstart",t))},u.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=l.extend({originEvent:e.originEvent},this.getScheduleData(e.originEvent)))&&this.fire("monthMoveDrag",t)},u.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 c(t.date),this.updateSchedule(n)),this.fire("monthMoveDragend",t),this.getScheduleData=this._cache=null)},l.CustomEvents.mixin(u),e.exports=u},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),c=n(14);function u(e){this.monthMove=e,this.elements=null,this.layer=null,e.on({monthMoveDragstart:this._onDragStart,monthMoveDrag:this._onDrag,monthMoveDragend:this._onDragEnd},this)}u.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},u.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)}))},u.prototype._showOriginScheduleBlocks=function(){var e=o.classname("weekday-schedule-block-dragging-dim");l.forEach(this.elements,(function(t){i.removeClass(t,e)}))},u.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)},u.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)},u.prototype._onDragStart=function(e){var n=this.monthMove.monthView,u=n.children.single(),d=u.options,h=100/u.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(c.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"))},u.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])},u.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=u}).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,c=e.escapeExpression,u=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,c="function",u=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),c=n(5),u=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=i.getEventTarget(e),n=o.classname("month-more-close");(a.hasClass(t,n)||a.closest(t,"."+n))&&this.hide()},d.prototype._onMouseDown=function(e){var t=i.getEventTarget(e);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=c.ratio(l[0],100,o),r=c.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,c=a.closest(e.target,o.classname(".weekday-grid-line")),d=a.closest(c,o.classname(".month-week-item")),h=this.layer,p=this,m=this._getRenderPosition(c,d),f=a.getSize(d)[1]+10,g=c.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(u(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,c=e.escapeExpression,u=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,c=e.escapeExpression,u=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,c=e.escapeExpression,u=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,c="function",u=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,c={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 u(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\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 getDateDifference: function(d1, d2) {\n var _d1 = new TZDate(d1.getFullYear(), d1.getMonth(), d1.getDate()).getTime();\n var _d2 = new TZDate(d2.getFullYear(), d2.getMonth(), d2.getDate()).getTime();\n\n return Math.round((_d1 - _d2) / datetime.MILLISECONDS_PER_DAY);\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiO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aW5nKSkge1xuICAgIHJldHVybiBzdHJpbmc7XG4gIH1cbiAgcmV0dXJuIHN0cmluZy5yZXBsYWNlKGJhZENoYXJzLCBlc2NhcGVDaGFyKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGlzRW1wdHkodmFsdWUpIHtcbiAgaWYgKCF2YWx1ZSAmJiB2YWx1ZSAhPT0gMCkge1xuICAgIHJldHVybiB0cnVlO1xuICB9IGVsc2UgaWYgKGlzQXJyYXkodmFsdWUpICYmIHZhbHVlLmxlbmd0aCA9PT0gMCkge1xuICAgIHJldHVybiB0cnVlO1xuICB9IGVsc2Uge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gY3JlYXRlRnJhbWUob2JqZWN0KSB7XG4gIGxldCBmcmFtZSA9IGV4dGVuZCh7fSwgb2JqZWN0KTtcbiAgZnJhbWUuX3BhcmVudCA9IG9iamVjdDtcbiAgcmV0dXJuIGZyYW1lO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYmxvY2tQYXJhbXMocGFyYW1zLCBpZHMpIHtcbiAgcGFyYW1zLnBhdGggPSBpZHM7XG4gIHJldHVybiBwYXJhbXM7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBhcHBlbmRDb250ZXh0UGF0aChjb250ZXh0UGF0aCwgaWQpIHtcbiAgcmV0dXJuIChjb250ZXh0UGF0aCA/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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N0YWNrVHJhY2UodGhpcywgRXhjZXB0aW9uKTtcbiAgfVxuXG4gIHRyeSB7XG4gICAgaWYgKGxvYykge1xuICAgICAgdGhpcy5saW5lTnVtYmVyID0gbGluZTtcbiAgICAgIHRoaXMuZW5kTGluZU51bWJlciA9IGVuZExpbmVOdW1iZXI7XG5cbiAgICAgIC8vIFdvcmsgYXJvdW5kIGlzc3VlIHVuZGVyIHNhZmFyaSB3aGVyZSB3ZSBjYW4ndCBkaXJlY3RseSBzZXQgdGhlIGNvbHVtbiB2YWx1ZVxuICAgICAgLyogaXN0YW5idWwgaWdub3JlIG5leHQgKi9cbiAgICAgIGlmIChPYmplY3QuZGVmaW5lUHJvcGVydHkpIHtcbiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMsICdjb2x1bW4nLCB7XG4gICAgICAgICAgdmFsdWU6IGNvbHVtbixcbiAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlXG4gICAgICAgIH0pO1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcywgJ2VuZENvbHVtbicsIHtcbiAgICAgICAgICB2YWx1ZTogZW5kQ29sdW1uLFxuICAgICAgICAgIGVudW1lcmFibGU6IHRydWVcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmNvbHVtbiA9IGNvbHVtbjtcbiAgICAgICAgdGhpcy5lbmRDb2x1bW4gPSBlbmRDb2x1bW47XG4gICAgICB9XG4gICAgfVxuICB9IGNhdGNoIChub3ApIHtcbiAgICAvKiBJZ25vcmUgaWYgdGhlIGJyb3dzZXIgaXMgdmVyeSBwYXJ0aWN1bGFyICovXG4gIH1cbn1cblxuRXhjZXB0aW9uLnByb3RvdHlwZSA9IG5ldyBFcnJvcigpO1xuXG5leHBvcnQgZGVmYXVsdCBFeGNlcHRpb247XG4iXX0=\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OEJBQXNCLG1CQUFtQjs7SUFBN0IsSUFBSTs7Ozs7b0NBSU8sMEJBQTBCOzs7O21DQUMzQix3QkFBd0I7Ozs7K0JBQ3ZCLG9CQUFvQjs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XJuIGhiO1xufVxuXG5sZXQgaW5zdCA9IGNyZWF0ZSgpO1xuaW5zdC5jcmVhdGUgPSBjcmVhdGU7XG5cbm5vQ29uZmxpY3QoaW5zdCk7XG5cbmluc3RbJ2RlZmF1bHQnXSA9IGluc3Q7XG5cbmV4cG9ydCBkZWZhdWx0IGluc3Q7XG4iXX0=\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.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 * 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQThDLFNBQVM7O3lCQUNqQyxhQUFhOzs7O3VCQUNJLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNyQyxVQUFVOzs7O21DQUNTLHlCQUF5Qjs7QUFFeEQsSUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDOztBQUN4QixJQUFNLGlCQUFpQixHQUFHLENBQUM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Vjb3JhdG9ycycpO1xuICAgICAgfVxuICAgICAgZXh0ZW5kKHRoaXMuZGVjb3JhdG9ycywgbmFtZSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRoaXMuZGVjb3JhdG9yc1tuYW1lXSA9IGZuO1xuICAgIH1cbiAgfSxcbiAgdW5yZWdpc3RlckRlY29yYXRvcjogZnVuY3Rpb24obmFtZSkge1xuICAgIGRlbGV0ZSB0aGlzLmRlY29yYXRvcnNbbmFtZV07XG4gIH0sXG4gIC8qKlxuICAgKiBSZXNldCB0aGUgbWVtb3J5IG9mIGlsbGVnYWwgcHJvcGVydHkgYWNjZXNzZXMgdGhhdCBoYXZlIGFscmVhZHkgYmVlbiBsb2dnZWQuXG4gICAqIEBkZXByZWNhdGVkIHNob3VsZCBvbmx5IGJlIHVzZWQgaW4gaGFuZGxlYmFycyB0ZXN0LWNhc2VzXG4gICAqL1xuICByZXNldExvZ2dlZFByb3BlcnR5QWNjZXNzZXMoKSB7XG4gICAgcmVzZXRMb2dnZWRQcm9wZXJ0aWVzKCk7XG4gIH1cbn07XG5cbmV4cG9ydCBsZXQgbG9nID0gbG9nZ2VyLmxvZztcblxuZXhwb3J0IHsgY3JlYXRlRnJhbWUsIGxvZ2dlciB9O1xuIl19\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O3lDQUF1QyxnQ0FBZ0M7Ozs7MkJBQzlDLGdCQUFnQjs7OztvQ0FDUCwwQkFBMEI7Ozs7eUJBQ3JDLGNBQWM7Ozs7MEJBQ2IsZUFBZTs7Ozs2QkFDWixrQkFBa0I7Ozs7MkJBQ3BCLGdCQUFnQjs7OztBQUVsQyxTQUFTLHNCQUFzQixDQUFDLFFBQVEsRUFBRTtBQUMvQyx5Q0FBMkIsUUFBUSxDQUFDLENBQUM7QUFDckMsMkJBQWEsUUFBUSxDQUFDLENBQUM7QUFDdkIsb0NBQXNCLFFBQVEsQ0FBQyxDQUFDO0FBQ2hDLHlCQUFXLFFBQVEsQ0FBQyxDQUFDO0FBQ3JCLDBCQUFZLFFBQVEsQ0FBQyxDQUFDO0FBQ3RCLDZCQUFlLFFBQVEsQ0FBQyxDQUFDO0FBQ3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pc3RlckVhY2goaW5zdGFuY2UpO1xuICByZWdpc3RlckhlbHBlck1pc3NpbmcoaW5zdGFuY2UpO1xuICByZWdpc3RlcklmKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJMb2coaW5zdGFuY2UpO1xuICByZWdpc3Rlckxvb2t1cChpbnN0YW5jZSk7XG4gIHJlZ2lzdGVyV2l0aChpbnN0YW5jZSk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBtb3ZlSGVscGVyVG9Ib29rcyhpbnN0YW5jZSwgaGVscGVyTmFtZSwga2VlcEhlbHBlcikge1xuICBpZiAoaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXSkge1xuICAgIGluc3RhbmNlLmhvb2tzW2hlbHBlck5hbWVdID0gaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXTtcbiAgICBpZiAoIWtlZXBIZWxwZXIpIHtcbiAgICAgIGRlbGV0ZSBpbnN0YW5jZS5oZWxwZXJzW2hlbHBlck5hbWVdO1xuICAgIH1cbiAgfVxufVxuIl19\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\n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ldmVsID0gbG9nZ2VyLmxvb2t1cExldmVsKGxldmVsKTtcblxuICAgIGlmIChcbiAgICAgIHR5cGVvZiBjb25zb2xlICE9PSAndW5kZWZpbmVkJyAmJlxuICAgICAgbG9nZ2VyLmxvb2t1cExldmVsKGxvZ2dlci5sZXZlbCkgPD0gbGV2ZWxcbiAgICApIHtcbiAgICAgIGxldCBtZXRob2QgPSBsb2dnZXIubWV0aG9kTWFwW2xldmVsXTtcbiAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby1jb25zb2xlXG4gICAgICBpZiAoIWNvbnNvbGVbbWV0aG9kXSkge1xuICAgICAgICBtZXRob2QgPSAnbG9nJztcbiAgICAgIH1cbiAgICAgIGNvbnNvbGVbbWV0aG9kXSguLi5tZXNzYWdlKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgfVxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBsb2dnZXI7XG4iXX0=\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3Byb3RvLWFjY2Vzcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O3FDQUFzQyw0QkFBNEI7O3NCQUMxQyxXQUFXOztJQUF2QixNQUFNOztBQUVsQixJQUFNLGd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Ckge1xuICBPYmplY3Qua2V5cyhsb2dnZWRQcm9wZXJ0aWVzKS5mb3JFYWNoKHByb3BlcnR5TmFtZSA9PiB7XG4gICAgZGVsZXRlIGxvZ2dlZFByb3BlcnRpZXNbcHJvcGVydHlOYW1lXTtcbiAgfSk7XG59XG4iXX0=\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 = util.pick(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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBd0QsVUFBVTs7cUJBRW5ELFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsb0JBQW9CLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3ZFLFFBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUF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gZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKFxuICAgICAgICAgIG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCxcbiAgICAgICAgICBvcHRpb25zLm5hbWVcbiAgICAgICAgKTtcbiAgICAgICAgb3B0aW9ucyA9IHsgZGF0YTogZGF0YSB9O1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gZm4oY29udGV4dCwgb3B0aW9ucyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvZWFjaC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQU1PLFVBQVU7O3lCQUNLLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLFVBQVMsT0FBTyxFQUFFLE9BQU8sRUFBRTtBQUN6RCxRQUFJLENBQUMsT0FBTyxFQUFFO0FBQ1osWUFBTSwyQkFBYyw2QkFBNkIsQ0FBQyxDQUFDO0tBQ3BEOztBQUVELFFBQUksRUFBRSxHQUFHLE9BQU8sQ0FBQyxFQUFFO1FBQ2pCLE9BQU8sR0FBRyxPQUFPLENBQUMsT0FBTztRQUN6QixDQUFDLEdBQUcsQ0FBQztRQUNMLEdBQUcsR0FBRyxFQUFFO1FBQ1IsSUFBSSxZQUFBO1FBQ0osV0FBVyxZQUFBLENBQUM7O0FBRWQsUUFBSSxPQUFPLENBQUMsSUFBSSxJQUFJLE9BQU8sQ0FBQyxHQUFHLEVBQUU7QUFDL0IsaUJBQVcsR0FDVCx5QkFBa0IsT0FBTyxDQUFDLElBQUksQ0FBQyxXQUFXLEVBQUUsT0FBTyxDQUFDLEdBQUcsQ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4oY29udGV4dFtmaWVsZF0sIHtcbiAgICAgICAgICBkYXRhOiBkYXRhLFxuICAgICAgICAgIGJsb2NrUGFyYW1zOiBibG9ja1BhcmFtcyhcbiAgICAgICAgICAgIFtjb250ZXh0W2ZpZWxkXSwgZmllbGRdLFxuICAgICAgICAgICAgW2NvbnRleHRQYXRoICsgZmllbGQsIG51bGxdXG4gICAgICAgICAgKVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBpZiAoY29udGV4dCAmJiB0eXBlb2YgY29udGV4dCA9PT0gJ29iamVjdCcpIHtcbiAgICAgIGlmIChpc0FycmF5KGNvbnRleHQpKSB7XG4gICAgICAgIGZvciAobGV0IGogPSBjb250ZXh0Lmxlbmd0aDsgaSA8IGo7IGkrKykge1xuICAgICAgICAgIGlmIChpIGluIGNvbnRleHQpIHtcbiAgICAgICAgICAgIGV4ZWNJdGVyYXRpb24oaSwgaSwgaSA9PT0gY29udGV4dC5sZW5ndGggLSAxKTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSBpZiAoZ2xvYmFsLlN5bWJvbCAmJiBjb250ZXh0W2dsb2JhbC5TeW1ib2wuaXRlcmF0b3JdKSB7XG4gICAgICAgIGNvbnN0IG5ld0NvbnRleHQgPSBbXTtcbiAgICAgICAgY29uc3QgaXRlcmF0b3IgPSBjb250ZXh0W2dsb2JhbC5TeW1ib2wuaXRlcmF0b3JdKCk7XG4gICAgICAgIGZvciAobGV0IGl0ID0gaXRlcmF0b3IubmV4dCgpOyAhaXQuZG9uZTsgaXQgPSBpdGVyYXRvci5uZXh0KCkpIHtcbiAgICAgICAgICBuZXdDb250ZXh0LnB1c2goaXQudmFsdWUpO1xuICAgICAgICB9XG4gICAgICAgIGNvbnRleHQgPSBuZXdDb250ZXh0O1xuICAgICAgICBmb3IgKGxldCBqID0gY29udGV4dC5sZW5ndGg7IGkgPCBqOyBpKyspIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKGksIGksIGkgPT09IGNvbnRleHQubGVuZ3RoIC0gMSk7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGxldCBwcmlvcktleTtcblxuICAgICAgICBPYmplY3Qua2V5cyhjb250ZXh0KS5mb3JFYWNoKGtleSA9PiB7XG4gICAgICAgICAgLy8gV2UncmUgcnVubmluZyB0aGUgaXRlcmF0aW9ucyBvbmUgc3RlcCBvdXQgb2Ygc3luYyBzbyB3ZSBjYW4gZGV0ZWN0XG4gICAgICAgICAgLy8gdGhlIGxhc3QgaXRlcmF0aW9uIHdpdGhvdXQgaGF2ZSB0byBzY2FuIHRoZSBvYmplY3QgdHdpY2UgYW5kIGNyZWF0ZVxuICAgICAgICAgIC8vIGFuIGl0ZXJtZWRpYXRlIGtleXMgYXJyYXkuXG4gICAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGV4ZWNJdGVyYXRpb24ocHJpb3JLZXksIGkgLSAxKTtcbiAgICAgICAgICB9XG4gICAgICAgICAgcHJpb3JLZXkgPSBrZXk7XG4gICAgICAgICAgaSsrO1xuICAgICAgICB9KTtcbiAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSwgdHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztxQ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zLmhhc2guaW5jbHVkZVplcm8gJiYgIWNvbmRpdGlvbmFsKSB8fCBpc0VtcHR5KGNvbmRpdGlvbmFsKSkge1xuICAgICAgcmV0dXJuIG9wdGlvbnMuaW52ZXJzZSh0aGlzKTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIG9wdGlvbnMuZm4odGhpcyk7XG4gICAgfVxuICB9KTtcblxuICBpbnN0YW5jZS5yZWdpc3RlckhlbHBlcigndW5sZXNzJywgZnVuY3Rpb24oY29uZGl0aW9uYWwsIG9wdGlvbnMpIHtcbiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCAhPSAyKSB7XG4gICAgICB0aHJvdyBuZXcgRXhjZXB0aW9uKCcjdW5sZXNzIHJlcXVpcmVzIGV4YWN0bHkgb25lIGFyZ3VtZW50Jyk7XG4gICAgfVxuICAgIHJldHVybiBpbnN0YW5jZS5oZWxwZXJzWydpZiddLmNhbGwodGhpcywgY29uZGl0aW9uYWwsIHtcbiAgICAgIGZuOiBvcHRpb25zLmludmVyc2UsXG4gICAgICBpbnZlcnNlOiBvcHRpb25zLmZuLFxuICAgICAgaGFzaDogb3B0aW9ucy5oYXNoXG4gICAgfSk7XG4gIH0pO1xufVxuIl19\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ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ZXJIZWxwZXIoJ2xvZycsIGZ1bmN0aW9uKC8qIG1lc3NhZ2UsIG9wdGlvbnMgKi8pIHtcbiAgICBsZXQgYXJncyA9IFt1bmRlZmluZWRdLFxuICAgICAgb3B0aW9ucyA9IGFyZ3VtZW50c1thcmd1bWVudHMubGVuZ3RoIC0gMV07XG4gICAgZm9yIChsZXQgaSA9IDA7IGkgPCBhcmd1bWVudHMubGVuZ3RoIC0gMTsgaSsrKSB7XG4gICAgICBhcmdzLnB1c2goYXJndW1lbnRzW2ldKTtcbiAgICB9XG5cbiAgICBsZXQgbGV2ZWwgPSAxO1xuICAgIGlmIChvcHRpb25zLmhhc2gubGV2ZWwgIT0gbnVsbCkge1xuICAgICAgbGV2ZWwgPSBvcHRpb25zLmhhc2gubGV2ZWw7XG4gICAgfSBlbHNlIGlmIChvcHRpb25zLmRhdGEgJiYgb3B0aW9ucy5kYXRhLmxldmVsICE9IG51bGwpIHtcbiAgICAgIGxldmVsID0gb3B0aW9ucy5kYXRhLmxldmVsO1xuICAgIH1cbiAgICBhcmdzWzBdID0gbGV2ZWw7XG5cbiAgICBpbnN0YW5jZS5sb2coLi4uYXJncyk7XG4gIH0pO1xufVxuIl19\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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bWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKFxuICAgICAgICAgIG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCxcbiAgICAgICAgICBvcHRpb25zLmlkc1swXVxuICAgICAgICApO1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gZm4oY29udGV4dCwge1xuICAgICAgICBkYXRhOiBkYXRhLFxuICAgICAgICBibG9ja1BhcmFtczogYmxvY2tQYXJhbXMoW2NvbnRleHRdLCBbZGF0YSAmJiBkYXRhLmNvbnRleHRQYXRoXSlcbiAgICAgIH0pO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gb3B0aW9ucy5pbnZlcnNlKHRoaXMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQXVCLFVBQVU7O3FCQUVsQixVQUFTLFFBQVEsRUFBRTtBQUNoQyxVQUFRLENBQUMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVMsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFO0FBQzNFLFFBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUNiLFFBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxFQUFFO0FBQ25CLFdBQUssQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO0FBQ3BCLFNBQUcsR0FBRyxVQUFTLE9BQU8sRUFBRSxPQUFPLEVBQUU7O0FBRS9CLFlBQUksUUFBUSxHQUFHLFNBQVMsQ0FBQyxRQUFRLENBQUM7QUFDbEMsaUJBQVMsQ0FBQyxRQUFRLEdBQUcsY0FBTyxFQUFFLEVBQUUsUUFBUSxFQUFFLEtBQUssQ0F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GFydGlhbHMgPSBvcmlnaW5hbDtcbiAgICAgICAgcmV0dXJuIHJldDtcbiAgICAgIH07XG4gICAgfVxuXG4gICAgcHJvcHMucGFydGlhbHNbb3B0aW9ucy5hcmdzWzBdXSA9IG9wdGlvbnMuZm47XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3lCQUNLLGFBQWE7Ozs7b0JBTTVCLFFBQVE7O3VCQUNtQixXQUFXOztrQ0FDbEIsdUJBQXVCOzttQ0FJM0MseUJBQXlCOztBQUV6QixTQUFTLGFBQWEsQ0FBQyxZQUFZLEVBQUU7QUFDMUMsTUFBTSxnQkFBZ0IsR0FBRyxBQUFDLFlBQVksSUFBSSxZQUFZLENBQUMsQ0FBQyxDQUFDLElBQUssQ0FBQztNQUM3RCxlQUFlLDBCQUFvQixDQUFDOztBQUV0QyxNQUNFLGdCQUFnQiwyQ0FBcUMsSUFDckQsZ0JBQWdCLDJCQUFxQixFQUNyQztBQUNBLFdBQU87R0FDUjs7QUFFRCxNQUFJLGdCQUFnQiwwQ0FBb0MsRUFBRTtBQUN4RCxRQUFNLGVBQWUsR0FBRyx1QkFBaUIsZUFBZSxDQUFDO1FBQ3ZELGdCQUFnQixHQUFHLHVCQUFpQixnQkFBZ0IsQ0FBQyxDQUFDO0FBQ3hELFVBQU0sMkJBQ0o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G4gICAgfVxuICAgIGxldCBkZXB0aHMsXG4gICAgICBibG9ja1BhcmFtcyA9IHRlbXBsYXRlU3BlYy51c2VCbG9ja1BhcmFtcyA/IFtdIDogdW5kZWZpbmVkO1xuICAgIGlmICh0ZW1wbGF0ZVNwZWMudXNlRGVwdGhzKSB7XG4gICAgICBpZiAob3B0aW9ucy5kZXB0aHMpIHtcbiAgICAgICAgZGVwdGhzID1cbiAgICAgICAgICBjb250ZXh0ICE9IG9wdGlvbnMuZGVwdGhzWzBdXG4gICAgICAgICAgICA/IFtjb250ZXh0XS5jb25jYXQob3B0aW9ucy5kZXB0aHMpXG4gICAgICAgICAgICA6IG9wdGlvbnMuZGVwdGhzO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgZGVwdGhzID0gW2NvbnRleHRdO1xuICAgICAgfVxuICAgIH1cblxuICAgIGZ1bmN0aW9uIG1haW4oY29udGV4dCAvKiwgb3B0aW9ucyovKSB7XG4gICAgICByZXR1cm4gKFxuICAgICAgICAnJyArXG4gICAgICAgIHRlbXBsYXRlU3BlYy5tYWluKFxuICAgICAgICAgIGNvbnRhaW5lcixcbiAgICAgICAgICBjb250ZXh0LFxuICAgICAgICAgIGNvbnRhaW5lci5oZWxwZXJzLFxuICAgICAgICAgIGNvbnRhaW5lci5wYXJ0aWFscyxcbiAgICAgICAgICBkYXRhLFxuICAgICAgICAgIGJsb2NrUGFyYW1zLFxuICAgICAgICAgIGRlcHRoc1xuICAgICAgICApXG4gICAgICApO1xuICAgIH1cblxuICAgIG1haW4gPSBleGVjdXRlRGVjb3JhdG9ycyhcbiAgICAgIHRlbXBsYXRlU3BlYy5tYWluLFxuICAgICAgbWFpbixcbiAgICAgIGNvbnRhaW5lcixcbiAgICAgIG9wdGlvbnMuZGVwdGhzIHx8IFtdLFxuICAgICAgZGF0YSxcbiAgICAgIGJsb2NrUGFyYW1zXG4gICAgKTtcbiAgICByZXR1cm4gbWFpbihjb250ZXh0LCBvcHRpb25zKTtcbiAgfVxuX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ykge1xuICBpZiAoZm4uZGVjb3JhdG9yKSB7XG4gICAgbGV0IHByb3BzID0ge307XG4gICAgcHJvZyA9IGZuLmRlY29yYXRvcihcbiAgICAgIHByb2csXG4gICAgICBwcm9wcyxcbiAgICAgIGNvbnRhaW5lcixcbiAgICAgIGRlcHRocyAmJiBkZXB0aHNbMF0sXG4gICAgICBkYXRhLFxuICAgICAgYmxvY2tQYXJhbXMsXG4gICAgICBkZXB0aHNcbiAgICApO1xuICAgIFV0aWxzLmV4dGVuZChwcm9nLCBwcm9wcyk7XG4gIH1cbiAgcmV0dXJuIHByb2c7XG59XG5cbmZ1bmN0aW9uIHdyYXBIZWxwZXJzVG9QYXNzTG9va3VwUHJvcGVydHkobWVyZ2VkSGVscGVycywgY29udGFpbmVyKSB7XG4gIE9iamVjdC5rZXlzKG1lcmdlZEhlbHBlcnMpLmZvckVhY2goaGVscGVyTmFtZSA9PiB7XG4gICAgbGV0IGhlbHBlciA9IG1lcmdlZEhlbHBlcnNbaGVscGVyTmFtZV07XG4gICAgbWVyZ2VkSGVscGVyc1toZWxwZXJOYW1lXSA9IHBhc3NMb29rdXBQcm9wZXJ0eU9wdGlvbihoZWxwZXIsIGNvbnRhaW5lcik7XG4gIH0pO1xufVxuXG5mdW5jdGlvbiBwYXNzTG9va3VwUHJvcGVydHlPcHRpb24oaGVscGVyLCBjb250YWluZXIpIHtcbiAgY29uc3QgbG9va3VwUHJvcGVydHkgPSBjb250YWluZXIubG9va3VwUHJvcGVydHk7XG4gIHJldHVybiB3cmFwSGVscGVyKGhlbHBlciwgb3B0aW9ucyA9PiB7XG4gICAgcmV0dXJuIFV0aWxzLmV4dGVuZCh7IGxvb2t1cFByb3BlcnR5IH0sIG9wdGlvbnMpO1xuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3dyYXBIZWxwZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBTyxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUUsa0JBQWtCLEVBQUU7QUFDckQsTUFBSSxPQUFPLE1BQU0sS0FBSyxVQUFVLEVBQUU7OztBQUdoQyxXQUFPLE1BQU0sQ0FBQztHQUNmO0FBQ0QsTUFBSSxPQUFPLEdBQUcsU0FBVixPQUFPLDBCQUFxQztBQUM5QyxRQUFNLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUNoRCxhQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsR0FBRyxrQkFBa0IsQ0FBQyxPQUFPLENBQUMsQ0FBQztBQUM5RCxXQUFPLE1BQU0sQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLFNBQVMsQ0FBQyxDQUFDO0dBQ3RDLENBQUM7QUFDRixTQUFPLE9BQU8sQ0FBQztDQUNoQiIsImZpbGUiOiJ3cmFwSGVscGVyLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIHdyYXBIZWxwZXIoaGVscGVyLCB0cmFuc2Zvcm1PcHRpb25zRm4pIHtcbiAgaWYgKHR5cGVvZiBoZWxwZXIgIT09ICdmdW5jdGlvbicpIHtcbiAgICAvLyBUaGlzIHNob3VsZCBub3QgaGFwcGVuLCBidXQgYXBwYXJlbnRseSBpdCBkb2VzIGluIGh0dHBzOi8vZ2l0aHViLmNvbS93eWNhdHMvaGFuZGxlYmFycy5qcy9pc3N1ZXMvMTYzOVxuICAgIC8vIFdlIHRyeSB0byBtYWtlIHRoZSB3cmFwcGVyIGxlYXN0LWludmFzaXZlIGJ5IG5vdCB3cmFwcGluZyBpdCwgaWYgdGhlIGhlbHBlciBpcyBub3QgYSBmdW5jdGlvbi5cbiAgICByZXR1cm4gaGVscGVyO1xuICB9XG4gIGxldCB3cmFwcGVyID0gZnVuY3Rpb24oLyogZHluYW1pYyBhcmd1bWVudHMgKi8pIHtcbiAgICBjb25zdCBvcHRpb25zID0gYXJndW1lbnRzW2FyZ3VtZW50cy5sZW5ndGggLSAxXTtcbiAgICBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdID0gdHJhbnNmb3JtT3B0aW9uc0ZuKG9wdGlvbnMpO1xuICAgIHJldHVybiBoZWxwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgfTtcbiAgcmV0dXJuIHdyYXBwZXI7XG59XG4iXX0=\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 if (options.raw) {\n schedule.set('raw', options.raw);\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, lookupProperty = container.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/toast-ui.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/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, lookupProperty = container.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 = datetime.getDateDifference(hourmarker, now);\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 = datetime.getDateDifference(hourmarker, now);\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, lookupProperty = container.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/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, lookupProperty = container.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/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, lookupProperty = container.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/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, lookupProperty = container.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/toast-ui.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/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, lookupProperty = container.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/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, lookupProperty = container.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/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, lookupProperty = container.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/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, lookupProperty = container.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/toast-ui.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/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, lookupProperty = container.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/toast-ui.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/toast-ui.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/./node_modules/handlebars/dist/cjs/handlebars/utils.js","webpack://tui.Calendar/./src/js/common/reqAnimFrame.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/./node_modules/handlebars/dist/cjs/handlebars/logger.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.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/internal/create-new-lookup-object.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/internal/wrapHelper.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":["installedModules","__webpack_require__","moduleId","exports","module","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","__WEBPACK_EXTERNAL_MODULE__0__","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","root","multiple","result","found","isFirst","isUndefined","isFilter","isFunction","isString","recurse","cursor","childNodes","len","length","push","window","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","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","onSelectstartHandler","on","preventDefault","enableTextSelection","off","disableImageDrag","enableImageDrag","cssPrefix","alldayGetViewID","alldayCheckPermission","config","throwError","msg","alert","classname","str","charAt","slice","allday","getViewIDRegExp","checkCondRegExp","daygrid","time","datetime","tokenFunc","TZDate","Date","dw","dateFormatRx","memo","date","getFullYear","leadingZero","getMonth","getDate","join","String","hour","getHours","minutes","getMinutes","MILLISECONDS_PER_DAY","MILLISECONDS_PER_HOUR","MILLISECONDS_PER_MINUTES","MILLISECONDS_SCHEDULE_MIN_DURATION","_convMilliseconds","iteratee","index","day","seconds","global","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","getDateDifference","Math","round","nativeOffsetMs","customOffsetMs","timezoneOffsetCallback","setByTimezoneOption","timestamp","now","getCustomTimezoneOffset","createDateWithMultipleArgs","args","utc","UTC","createDateWithUTCTime","arg","getUTCTime","Error","createDateAsLocalTime","timezoneOffset","customTimezoneOffset","getLocalTime","useLocalTimeConverter","nativeDate","_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","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","getEventTarget","target","srcElement","View","cssprefix","children","state","addChild","items","render","childView","recursive","skipThis","resize","_onResize","_beforeDestroy","_destroy","innerHTML","destroy","isChildView","getViewBound","position","size","setState","CustomEvents","g","Function","escapeExpression","string","toHTML","possible","badChars","escapeChar","isArray","createFrame","frame","_parent","blockParams","params","ids","appendContextPath","contextPath","escape","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","originEvent","nearestGridEndY","nearestGridEndTimeY","getNearestHour","proto","method","nearestHour","mfloor","floor","monthView","weekColl","weeks","weekCount","dayCount","relativeContainer","vLayout","panels","pos","sizeX","sizeY","_interopRequireDefault","_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","preventDefaultWhenNotPopup","_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","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","rangeDate","form","rangePicker","getStartDate","getEndDate","_validateForm","_getRangeDate","_isEditMode","_onClickUpdateSchedule","_onClickCreateSchedule","boxElement","guideElements","selectedCal","_makeEditModeData","guide","_getGuideElements","_createDatepicker","_setPopupPositionAndArrowDirection","debounce","class","isEditMode","guideBound","layerSize","containerBound","_calcRenderingData","_setArrowDirection","arrow","_getBoundOfFirstRowGuideElement","bottom","right","_getYAndArrowDirection","guideBoundTop","guideBoundBottom","layerHeight","containerTop","containerBottom","arrowDirection","_getXAndArrowLeft","guideBoundLeft","guideBoundRight","layerWidth","containerLeft","containerRight","arrowLeft","guideHorizontalCenter","yPosInfo","xPosInfo","direction","arrowEl","borderElement","createRangePicker","startpicker","input","endpicker","timepicker","showMeridiem","clearGuideElement","setCalendars","triggerEventName","ScheduleDetailPopup","_calendar","_onClickEditSchedule","_onClickDeleteSchedule","_scheduleEl","scheduleEl","blockEl","scheduleBound","_getYAndArrowTop","scheduleBoundTop","scheduleBoundBottom","scheduleVerticalCenter","arrowTop","_getXAndArrowDirection","scheduleBoundLeft","scheduleBoundRight","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","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","_exception","priorKey","execIteration","field","last","first","j","iterator","newContext","it","done","conditional","hash","includeZero","lookupProperty","_decoratorsInline2","_decoratorsInline","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","trim","validators","fields","valid","fieldName","validator","values","validatorName","parameterize","themeStandard","themeConfig","customTheme","_map","HashMap","setStyle","errors","categories","child","removeAll","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","sortedTimeSchedules","maxIndexInYMD","timeViewModel","scheduleYMD","alldayMaxTopInYMD","_stackTimeFromTop","indiceInYMD","maxTopInYMD","topArrayInYMD","alldayFirstMode","coll","vList","collisionGroup","DayName","DayGrid","TimeGrid","DayNameClick","DayGridClick","DayGridCreation","DayGridResize","TimeClick","TimeCreation","TimeMove","TimeResize","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","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","getWeekBackgroundColor","weekendBackgroundColor","todayBackgroundColor","getPanel","panelHeight","heightForcedSet","collapseBtnIndex","clickedExpandBtnIndex","weekdayViewModel","_expand","_collapse","borderRight","leftWidth","leftBackgroundColor","leftPaddingRight","paddingRight","leftBorderRight","_getMaxScheduleInDay","_getMinHeight","maxScheduleInDay","Timezone","Time","AutoScroll","mainTmpl","timezoneStickyTmpl","timegridCurrentTimeTmpl","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","_direction","DIRECTION","INSIDE","_offset","_intervalID","TOP","RIGHT","BOTTOM","LEFT","_getEdgePositions","clientRect","getRealSize","padding","computed","clientWidth","clientHeight","hasScrollbar","realSize","isOnScrollbar","_onTick","edge","scrollLeft","__WEBPACK_EXTERNAL_MODULE__79__","checkExpectCondition","daynameView","blockElement","dayGridScheduleView","collapseBtnElement","expandBtnElement","daygridMove","scheduleContainer","_dragStartXIndex","_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","_requestOnClick","_disableDblClick","_disableClick","_onDblClick","schedulesElement","_createSchedule","startXIndex","initializeGuideElement","dragstart","_getGuideWidth","dragStartIndex","dragEndIndex","defer","dragEndXIndex","DayGridResizeGuide","getGuideElementWidthFunc","viewOptions","timeGridView","schedulesCollection","TimeCreationGuide","_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","_guide","_getTimeView","mouseDownEventData","firefox","targetModelID","currentView","nearestRange","timeDiff","dateDiff","timeMove","_guideLayer","_model","_lastDrag","_container","_getTopFunc","_startGridY","_startTopPixel","_resetGuideLayer","bottomLimit","guideHeight","gridYOffset","gridYOffsetPixel","gridDiff","TimeResizeGuide","startScheduleData","timeResize","_originScheduleElement","_startHeightPixel","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","scheduleBulletTop","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","oper","getElSize","getElLeft","getElWidth","blockHeight","paddingTop","classDay","classDayLabel","classNames","classDate","gmt","meridiem","templates","endF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I,GAAK,EAC7BuH,GAAQguB,EAAUhuB,KAAOvH,GAAK0E,GAC9B6C,GAAQsL,UAAU0iB,EAAUhuB,KAAOvH,GAAK0E,EAAQ,KACrCA,IACPyD,GAASkiB,EAAM9iB,GAAQ8iB,EAAM9iB,GAAMY,MAAQ,GAInD,OAAOA,EAGX+gC,EAAWvZ,eAAeP","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;\n\n if (!el) {\n return null;\n }\n\n 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\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, onSelectstartHandler) {\n domevent.on(dom, 'selectstart', onSelectstartHandler || 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(dom, onSelectstartHandler) {\n domevent.off(window, 'selectstart', onSelectstartHandler || 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 date.setHours(23, 59, 59);\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 getDateDifference: function(d1, d2) {\n var _d1 = new TZDate(d1.getFullYear(), d1.getMonth(), d1.getDate()).getTime();\n var _d2 = new TZDate(d2.getFullYear(), d2.getMonth(), d2.getDate()).getTime();\n\n return Math.round((_d1 - _d2) / datetime.MILLISECONDS_PER_DAY);\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 (!util.isUndefined(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 /**\n * Get target from event object\n *\n * @param {Event} event - The event object\n * @returns {object} - The event target object\n */\n getEventTarget: function(event) {\n return event.target || event.srcElement;\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFNLE1BQU0sR0FBRztBQUNiLEtBQUcsRUFBRSxPQUFPO0FBQ1osS0FBRyxFQUFFLE1BQU07QUFDWCxLQUFHLEVBQUUsTUFBTTtBQUNYLEtBQUcsRUFBRSxRQUFRO0FBQ2IsS0FBRyxFQUFF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ZSAmJiB2YWx1ZSAhPT0gMCkge1xuICAgIHJldHVybiB0cnVlO1xuICB9IGVsc2UgaWYgKGlzQXJyYXkodmFsdWUpICYmIHZhbHVlLmxlbmd0aCA9PT0gMCkge1xuICAgIHJldHVybiB0cnVlO1xuICB9IGVsc2Uge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gY3JlYXRlRnJhbWUob2JqZWN0KSB7XG4gIGxldCBmcmFtZSA9IGV4dGVuZCh7fSwgb2JqZWN0KTtcbiAgZnJhbWUuX3BhcmVudCA9IG9iamVjdDtcbiAgcmV0dXJuIGZyYW1lO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYmxvY2tQYXJhbXMocGFyYW1zLCBpZHMpIHtcbiAgcGFyYW1zLnBhdGggPSBpZHM7XG4gIHJldHVybiBwYXJhbXM7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBhcHBlbmRDb250ZXh0UGF0aChjb250ZXh0UGF0aCwgaWQpIHtcbiAgcmV0dXJuIChjb250ZXh0UGF0aCA/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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxJQUFNLFVBQVUsR0FBRyxDQUN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AgICAgIC8vIFdvcmsgYXJvdW5kIGlzc3VlIHVuZGVyIHNhZmFyaSB3aGVyZSB3ZSBjYW4ndCBkaXJlY3RseSBzZXQgdGhlIGNvbHVtbiB2YWx1ZVxuICAgICAgLyogaXN0YW5idWwgaWdub3JlIG5leHQgKi9cbiAgICAgIGlmIChPYmplY3QuZGVmaW5lUHJvcGVydHkpIHtcbiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMsICdjb2x1bW4nLCB7XG4gICAgICAgICAgdmFsdWU6IGNvbHVtbixcbiAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlXG4gICAgICAgIH0pO1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcywgJ2VuZENvbHVtbicsIHtcbiAgICAgICAgICB2YWx1ZTogZW5kQ29sdW1uLFxuICAgICAgICAgIGVudW1lcmFibGU6IHRydWVcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmNvbHVtbiA9IGNvbHVtbjtcbiAgICAgICAgdGhpcy5lbmRDb2x1bW4gPSBlbmRDb2x1bW47XG4gICAgICB9XG4gICAgfVxuICB9IGNhdGNoIChub3ApIHtcbiAgICAvKiBJZ25vcmUgaWYgdGhlIGJyb3dzZXIgaXMgdmVyeSBwYXJ0aWN1bGFyICovXG4gIH1cbn1cblxuRXhjZXB0aW9uLnByb3RvdHlwZSA9IG5ldyBFcnJvcigpO1xuXG5leHBvcnQgZGVmYXVsdCBFeGNlcHRpb247XG4iXX0=\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: domevent.getEventTarget(mouseEvent),\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OEJBQXNCLG1CQUFtQjs7SUFBN0IsSUFBSTs7Ozs7b0NBSU8sMEJBQTBCOzs7O21DQUMzQix3QkFBd0I7Ozs7K0JBQ3ZCLG9CQUFvQjs7SUFBL0IsS0FBSzs7aUNBQ1Esc0JBQXNCOztJQUFuQyxPQUFPOztvQ0FFSSwwQkFBMEI7Ozs7O0FBR2pELFNBQVMsTUFBTSxHQUFHO0FBQ2hCLE1BQUksRUFBRSxHQUFHLElBQUksSUFBSSxDQUFDLHFCQUFxQixFQUFFLENBQUM7O0FBRTFDLE9BQUssQ0FBQyxNQUFNLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxDQUFDO0FBQ3ZCLElBQUUsQ0FBQyxVQUFVLG9DQUFhLENBQUM7QUFDM0IsSUFBRSxDQUFDLFNBQVMsbUNBQVksQ0FBQztBQUN6QixJQUFFLENBQUMsS0FBSyxHQUFHLEtBQUssQ0FBQztBQUNqQixJQUFFLENBQUMsZ0J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pbXBvcnQgbm9Db25mbGljdCBmcm9tICcuL2hhbmRsZWJhcnMvbm8tY29uZmxpY3QnO1xuXG4vLyBGb3IgY29tcGF0aWJpbGl0eSBhbmQgdXNhZ2Ugb3V0c2lkZSBvZiBtb2R1bGUgc3lzdGVtcywgbWFrZSB0aGUgSGFuZGxlYmFycyBvYmplY3QgYSBuYW1lc3BhY2VcbmZ1bmN0aW9uIGNyZWF0ZSgpIHtcbiAgbGV0IGhiID0gbmV3IGJhc2UuSGFuZGxlYmFyc0Vudmlyb25tZW50KCk7XG5cbiAgVXRpbHMuZXh0ZW5kKGhiLCBiYXNlKTtcbiAgaGIuU2FmZVN0cmluZyA9IFNhZmVTdHJpbmc7XG4gIGhiLkV4Y2VwdGlvbiA9IEV4Y2VwdGlvbjtcbiAgaGIuVXRpbHMgPSBVdGlscztcbiAgaGIuZXNjYXBlRXhwcmVzc2lvbiA9IFV0aWxzLmVzY2FwZUV4cHJlc3Npb247XG5cbiAgaGIuVk0gPSBydW50aW1lO1xuICBoYi50ZW1wbGF0ZSA9IGZ1bmN0aW9uKHNwZWMpIHtcbiAgICByZXR1cm4gcnVudGltZS50ZW1wbGF0ZShzcGVjLCBoYik7XG4gIH07XG5cbiAgcmV0dXJuIGhiO1xufVxuXG5sZXQgaW5zdCA9IGNyZWF0ZSgpO1xuaW5zdC5jcmVhdGUgPSBjcmVhdGU7XG5cbm5vQ29uZmxpY3QoaW5zdCk7XG5cbmluc3RbJ2RlZmF1bHQnXSA9IGluc3Q7XG5cbmV4cG9ydCBkZWZhdWx0IGluc3Q7XG4iXX0=\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.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 * 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQThDLFNBQVM7O3lCQUNqQyxhQUFhOzs7O3VCQUNJLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNyQyxVQUFVOzs7O21DQUNTLHlCQUF5Qjs7QUFFeEQsSUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDOztBQUN4QixJQUFNLGlCQUFpQixHQUFHLENBQUMsQ0FBQzs7QUFDNUIsSUFBTSxpQ0FBaUMsR0FBRyxDQUFDLENBQUM7OztBQUU1QyxJQUFNLGdCQUFnQixHQUFHO0FBQzlCLEdBQUMsRUFBRSxhQUFhO0FBQ2hCLEdBQUMsRUFBRSxlQUFlO0FBQ2xCLEdBQUMsRUFBRSxlQUFlO0FBQ2xCLEdBQUMsRUFBRSxVQUFVO0FBQ2IsR0FBQyxFQUFFLGtCQUFrQjtBQUNyQixHQUFDLEVBQUUsaUJBQWlCO0FBQ3BCLEdBQUMsRUFBRSxpQkFBaUI7QUFDcEIsR0FBQyxFQUFFLFVBQVU7Q0FDZCxDQUFDOzs7QUFFRixJQUFNLFVBQVUsR0FBRyxpQkFBaUIsQ0FBQzs7QUFFOUIsU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GVkIHNob3VsZCBvbmx5IGJlIHVzZWQgaW4gaGFuZGxlYmFycyB0ZXN0LWNhc2VzXG4gICAqL1xuICByZXNldExvZ2dlZFByb3BlcnR5QWNjZXNzZXMoKSB7XG4gICAgcmVzZXRMb2dnZWRQcm9wZXJ0aWVzKCk7XG4gIH1cbn07XG5cbmV4cG9ydCBsZXQgbG9nID0gbG9nZ2VyLmxvZztcblxuZXhwb3J0IHsgY3JlYXRlRnJhbWUsIGxvZ2dlciB9O1xuIl19\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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gaW5zdGFuY2UuaGVscGVyc1toZWxwZXJOYW1lXTtcbiAgICBpZiAoIWtlZXBIZWxwZXIpIHtcbiAgICAgIGRlbGV0ZSBpbnN0YW5jZS5oZWxwZXJzW2hlbHBlck5hbWVdO1xuICAgIH1cbiAgfVxufVxuIl19\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUF3QixTQUFTOztBQUVqQyxJQUFJLE1BQU0sR0FBRztBQUNYLFdBQVMsRUFBRSxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE9BQU8sQ0FBQztBQUM3QyxPQUFLLEVBQUUsTUFBTTs7O0FBR2IsYUFBVyxFQUFFLHFCQUFTLEtBQUssRUFBRTtBQUMzQixRQUFJLE9BQU8sS0FBS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9kXSguLi5tZXNzYWdlKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgfVxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBsb2dnZXI7XG4iXX0=\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3Byb3RvLWFjY2Vzcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O3FDQUFzQyw0QkFBNEI7O3NCQUMxQyxXQUFXOztJQUF2QixNQUFNOztBQUVsQixJQUFNLGdCQUFnQixHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUM7O0FBRXRDLFNBQVMsd0JBQXdCLENBQUMsY0FBYyxFQUFFO0FBQ3ZELE1BQUksc0JBQXNCLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUNqRCx3QkFBc0IsQ0FBQyxhQUFhLENBQUMsR0FBRyxLQUFLLENBQUM7QUFDOUMsd0JBQXNCLENBQUMsa0JBQWtCLENBQUMsR0FBRyxLQUFLLENBQUM7QUFDbkQsd0JBQXNCLENBQUMsa0JBQWtCLENBQUMsR0FBRyxLQUFLLENBQUM7QUFDbkQsd0JBQXNCLENBQUMsa0JBQWtCLENBQUMsR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bWVdICE9PSB0cnVlKSB7XG4gICAgbG9nZ2VkUHJvcGVydGllc1twcm9wZXJ0eU5hbWVdID0gdHJ1ZTtcbiAgICBsb2dnZXIubG9nKFxuICAgICAgJ2Vycm9yJyxcbiAgICAgIGBIYW5kbGViYXJzOiBBY2Nlc3MgaGFzIGJlZW4gZGVuaWVkIHRvIHJlc29sdmUgdGhlIHByb3BlcnR5IFwiJHtwcm9wZXJ0eU5hbWV9XCIgYmVjYXVzZSBpdCBpcyBub3QgYW4gXCJvd24gcHJvcGVydHlcIiBvZiBpdHMgcGFyZW50LlxcbmAgK1xuICAgICAgICBgWW91IGNhbiBhZGQgYSBydW50aW1lIG9wdGlvbiB0byBkaXNhYmxlIHRoZSBjaGVjayBvciB0aGlzIHdhcm5pbmc6XFxuYCArXG4gICAgICAgIGBTZWUgaHR0cHM6Ly9oYW5kbGViYXJzanMuY29tL2FwaS1yZWZlcmVuY2UvcnVudGltZS1vcHRpb25zLmh0bWwjb3B0aW9ucy10by1jb250cm9sLXByb3RvdHlwZS1hY2Nlc3MgZm9yIGRldGFpbHNgXG4gICAgKTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gcmVzZXRMb2dnZWRQcm9wZXJ0aWVzKCkge1xuICBPYmplY3Qua2V5cyhsb2dnZWRQcm9wZXJ0aWVzKS5mb3JFYWNoKHByb3BlcnR5TmFtZSA9PiB7XG4gICAgZGVsZXRlIGxvZ2dlZFByb3BlcnRpZXNbcHJvcGVydHlOYW1lXTtcbiAgfSk7XG59XG4iXX0=\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');\nvar config = require('../config');\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, preventDefaultWhenNotPopup);\n domutil[method + 'ImageDrag'](container, preventDefaultWhenNotPopup);\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: domevent.getEventTarget(mouseEvent),\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 = domevent.getEventTarget(mouseDownEvent);\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 preventDefaultWhenNotPopup(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\n/**\n * If the target is not a popup, it prevents the default.\n * @method\n * @param {MouseEvent} event - Mouse event object\n */\nfunction preventDefaultWhenNotPopup(event) {\n var popup = domutil.closest(event.target, config.classname('.popup'));\n\n if (!popup) {\n domevent.preventDefault(event);\n }\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 datetime = require('../../common/datetime');\nvar tmpl = require('../template/popup/scheduleCreationPopup.hbs');\nvar TZDate = timezone.Date;\nvar MAX_WEEK_OF_MONTH = 6;\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 = domevent.getEventTarget(mouseDownEvent),\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 = domevent.getEventTarget(clickEvent);\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 */\n// eslint-disable-next-line complexity\nScheduleCreationPopup.prototype._onClickSaveSchedule = function(target) {\n var className = config.classname('popup-save');\n var cssPrefix = config.cssPrefix;\n var title;\n var startDate;\n var endDate;\n var rangeDate;\n var form;\n var isAllDay;\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 (!this._validateForm(title, startDate, endDate)) {\n if (!title.value) {\n title.focus();\n }\n\n return false;\n }\n\n isAllDay = !!domutil.get(cssPrefix + 'schedule-allday').checked;\n rangeDate = this._getRangeDate(startDate, endDate, isAllDay);\n\n form = {\n calendarId: this._selectedCal ? this._selectedCal.id : null,\n title: title,\n location: domutil.get(cssPrefix + 'schedule-location'),\n start: rangeDate.start,\n end: rangeDate.end,\n isAllDay: isAllDay,\n state: domutil.get(cssPrefix + 'schedule-state').innerText,\n isPrivate: !domutil.hasClass(domutil.get(cssPrefix + 'schedule-private'), config.classname('public'))\n };\n\n if (this._isEditMode) {\n this._onClickUpdateSchedule(form);\n } else {\n this._onClickCreateSchedule(form);\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 containerBound = this.container.getBoundingClientRect();\n var pos = this._calcRenderingData(layerSize, containerBound, guideBound);\n\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 * Get calculate rendering positions of y and arrow direction by guide block elements\n * @param {number} guideBoundTop - guide block's top\n * @param {number} guideBoundBottom - guide block's bottom\n * @param {number} layerHeight - popup layer's height\n * @param {number} containerTop - container's top\n * @param {number} containerBottom - container's bottom\n * @returns {YAndArrowDirection} y and arrowDirection\n */\nScheduleCreationPopup.prototype._getYAndArrowDirection = function(\n guideBoundTop,\n guideBoundBottom,\n layerHeight,\n containerTop,\n containerBottom\n) {\n var arrowDirection = 'arrow-bottom';\n var MARGIN = 3;\n var y = guideBoundTop - layerHeight;\n\n if (y < containerTop) {\n y = guideBoundBottom - containerTop + MARGIN;\n arrowDirection = 'arrow-top';\n } else {\n y = y - containerTop - MARGIN;\n }\n\n if (y + layerHeight > containerBottom) {\n y = containerBottom - layerHeight - containerTop - MARGIN;\n }\n\n /**\n * @typedef {Object} YAndArrowDirection\n * @property {number} y - top position of popup layer\n * @property {string} [arrowDirection] - direction of popup arrow\n */\n return {\n y: y,\n arrowDirection: arrowDirection\n };\n};\n\n/**\n* Get calculate rendering x position and arrow left by guide block elements\n* @param {number} guideBoundLeft - guide block's left\n* @param {number} guideBoundRight - guide block's right\n* @param {number} layerWidth - popup layer's width\n* @param {number} containerLeft - container's left\n* @param {number} containerRight - container's right\n* @returns {XAndArrowLeft} x and arrowLeft\n*/\nScheduleCreationPopup.prototype._getXAndArrowLeft = function(\n guideBoundLeft,\n guideBoundRight,\n layerWidth,\n containerLeft,\n containerRight\n) {\n var guideHorizontalCenter = (guideBoundLeft + guideBoundRight) / 2;\n var x = guideHorizontalCenter - (layerWidth / 2);\n var ARROW_WIDTH_HALF = 8;\n var arrowLeft;\n\n if (x + layerWidth > containerRight) {\n x = guideBoundRight - layerWidth + ARROW_WIDTH_HALF;\n arrowLeft = guideHorizontalCenter - x;\n } else {\n x += ARROW_WIDTH_HALF;\n }\n\n if (x < containerLeft) {\n x = 0;\n arrowLeft = guideHorizontalCenter - containerLeft - ARROW_WIDTH_HALF;\n } else {\n x = x - containerLeft - ARROW_WIDTH_HALF;\n }\n\n /**\n * @typedef {Object} XAndArrowLeft\n * @property {number} x - left position of popup layer\n * @property {numbe3er} arrowLeft - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n x: x,\n arrowLeft: arrowLeft\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}}} containerBound - 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, containerBound, guideBound) {\n var yPosInfo = this._getYAndArrowDirection(\n guideBound.top,\n guideBound.bottom,\n layerSize.height,\n containerBound.top,\n containerBound.bottom\n );\n var xPosInfo = this._getXAndArrowLeft(\n guideBound.left,\n guideBound.right,\n layerSize.width,\n containerBound.left,\n containerBound.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: xPosInfo.x,\n y: yPosInfo.y,\n arrow: {\n direction: yPosInfo.arrowDirection,\n position: xPosInfo.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\n/**\n * Validate the form\n * @param {string} title title of then entered schedule\n * @param {TZDate} startDate start date time from range picker\n * @param {TZDate} endDate end date time from range picker\n * @returns {boolean} Returns false if the form is not valid for submission.\n */\nScheduleCreationPopup.prototype._validateForm = function(title, startDate, endDate) {\n if (!title.value) {\n return false;\n }\n\n if (!startDate && !endDate) {\n return false;\n }\n\n if (datetime.compare(startDate, endDate) === 1) {\n return false;\n }\n\n return true;\n};\n\n/**\n * Get range date from range picker\n * @param {TZDate} startDate start date time from range picker\n * @param {TZDate} endDate end date time from range picker\n * @param {boolean} isAllDay whether it is an all-day schedule\n * @returns {RangeDate} Returns the start and end time data that is the range date\n */\nScheduleCreationPopup.prototype._getRangeDate = function(startDate, endDate, isAllDay) {\n if (isAllDay) {\n startDate.setHours(0, 0, 0);\n endDate = datetime.isStartOfDay(endDate) ?\n datetime.convertStartDayToLastDay(endDate) :\n endDate.setHours(23, 59, 59);\n }\n\n /**\n * @typedef {object} RangeDate\n * @property {TZDate} start start time\n * @property {TZDate} end end time\n */\n return {\n start: new TZDate(startDate),\n end: new TZDate(endDate)\n };\n};\n\n/**\n * Request schedule model creation to controller by custom schedules.\n * @fires {ScheduleCreationPopup#beforeUpdateSchedule}\n * @param {{\n calendarId: {string},\n title: {string},\n location: {string},\n start: {TZDate},\n end: {TZDate},\n isAllDay: {boolean},\n state: {string},\n isPrivate: {boolean}\n }} form schedule input form data\n*/\nScheduleCreationPopup.prototype._onClickUpdateSchedule = function(form) {\n var changes = common.getScheduleChanges(\n this._schedule,\n ['calendarId', 'title', 'location', 'start', 'end', 'isAllDay', 'state'],\n {\n calendarId: form.calendarId,\n title: form.title.value,\n location: location.value,\n start: form.start,\n end: form.end,\n isAllDay: form.isAllDay,\n state: form.state\n }\n );\n\n /**\n * @event ScheduleCreationPopup#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule object to be updated\n */\n this.fire('beforeUpdateSchedule', {\n schedule: util.extend({\n raw: {\n class: form.isPrivate ? 'private' : 'public'\n }\n }, this._schedule),\n changes: changes,\n start: form.start,\n end: form.end,\n calendar: this._selectedCal,\n triggerEventName: 'click'\n });\n};\n\n/**\n * Request the controller to update the schedule model according to the custom schedule.\n * @fires {ScheduleCreationPopup#beforeCreateSchedule}\n * @param {{\n calendarId: {string},\n title: {string},\n location: {string},\n start: {TZDate},\n end: {TZDate},\n isAllDay: {boolean},\n state: {string}\n }} form schedule input form data\n */\nScheduleCreationPopup.prototype._onClickCreateSchedule = function(form) {\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: form.calendarId,\n title: form.title.value,\n location: location.value,\n raw: {\n class: form.isPrivate ? 'private' : 'public'\n },\n start: form.start,\n end: form.end,\n isAllDay: form.isAllDay,\n state: form.state\n });\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');\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 = domevent.getEventTarget(mouseDownEvent),\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 = domevent.getEventTarget(clickEvent);\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\n var containerBound = this.container.getBoundingClientRect();\n var scheduleEl = domevent.getEventTarget(event);\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, containerBound, scheduleBound);\n this.layer.setPosition(pos.x, pos.y);\n this._setArrowDirection(pos.arrow);\n};\n\n/**\n * Get calculate rendering positions of y and arrow top by schedule block elements\n * @param {number} scheduleBoundTop - schedule block's top\n * @param {number} scheduleBoundBottom - schedule block's bottom\n * @param {number} layerHeight - popup layer's height\n * @param {number} containerTop - container's top\n * @param {number} containerBottom - container's bottom\n * @returns {YAndArrowTop} y and arrowTop\n */\nScheduleDetailPopup.prototype._getYAndArrowTop = function(\n scheduleBoundTop,\n scheduleBoundBottom,\n layerHeight,\n containerTop,\n containerBottom\n) {\n var ARROW_WIDTH_HALF = 8;\n var scheduleVerticalCenter, y, arrowTop;\n\n scheduleBoundTop = scheduleBoundTop < 0 ? 0 : scheduleBoundTop;\n scheduleVerticalCenter = (scheduleBoundTop + scheduleBoundBottom) / 2;\n y = scheduleVerticalCenter - (layerHeight / 2);\n\n if (y < containerTop) {\n y = 0;\n arrowTop = scheduleVerticalCenter - containerTop - ARROW_WIDTH_HALF;\n } else if (y + layerHeight > containerBottom) {\n y = containerBottom - layerHeight - containerTop;\n arrowTop = scheduleVerticalCenter - y - containerTop - ARROW_WIDTH_HALF;\n } else {\n y -= containerTop;\n }\n\n if (arrowTop < 0 || arrowTop > layerHeight) {\n arrowTop = null;\n }\n\n /**\n * @typedef {Object} YAndArrowTop\n * @property {number} y - top position of popup layer\n * @property {number} [arrowTop] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n y: y,\n arrowTop: arrowTop\n };\n};\n\n/**\n * Get calculate rendering x position and arrow direction by schedule block elements\n * @param {number} scheduleBoundLeft - schedule block's left\n * @param {number} scheduleBoundRight - schedule block's right\n * @param {number} layerWidth - popup layer's width\n * @param {number} containerLeft - container's left\n * @param {number} containerRight - container's right\n * @returns {XAndArrowDirection} x and arrowDirection\n */\nScheduleDetailPopup.prototype._getXAndArrowDirection = function(\n scheduleBoundLeft,\n scheduleBoundRight,\n layerWidth,\n containerLeft,\n containerRight\n) {\n var arrowDirection = 'arrow-left';\n var x = scheduleBoundRight;\n var MARGIN = 4;\n\n if (x + layerWidth > containerRight) {\n arrowDirection = 'arrow-right';\n x = scheduleBoundLeft - layerWidth - MARGIN;\n } else {\n x += MARGIN;\n }\n\n if (x < containerLeft) {\n x = 0;\n } else {\n x -= containerLeft;\n }\n\n /**\n * @typedef {Object} XAndArrowDirection\n * @property {number} x - left position of popup layer\n * @property {string} arrowDirection - direction of popup arrow\n */\n return {\n x: x,\n arrowDirection: arrowDirection\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}}} containerBound - width and height of the upper layer, that acts as a border of popup\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} scheduleBound - guide element bound data\n * @returns {PopupRenderingData} rendering position of popup and popup arrow\n */\nScheduleDetailPopup.prototype._calcRenderingData = function(layerSize, containerBound, scheduleBound) {\n var yPosInfo = this._getYAndArrowTop(\n scheduleBound.top,\n scheduleBound.bottom,\n layerSize.height,\n containerBound.top,\n containerBound.bottom\n );\n var xPosInfo = this._getXAndArrowDirection(\n scheduleBound.left,\n scheduleBound.right,\n layerSize.width,\n containerBound.left,\n containerBound.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: xPosInfo.x,\n y: yPosInfo.y,\n arrow: {\n direction: xPosInfo.arrowDirection,\n position: yPosInfo.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 = util.pick(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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBd0QsVUFBVTs7cUJBRW5ELFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsb0JBQW9CLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3ZFLFFBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPO1FBQzNCLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVsQixRQUFJLE9BQU8sS0FBSyxJQUFJLEVBQUU7QUFDcEIsYUFBTyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDakIsTUFBTSxJQUFJLE9BQU8sS0FBSyxLQUFLLElBQUksT0FBTyxJQUFJLElBQUksRUFBRTtBQUMvQyxhQUFPLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUN0QixNQUFNLElBQUksZUFBUSxPQUFPLENBQUMsRUFBRTtBQUMzQixVQUFJLE9BQU8sQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFO0FBQ3RC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aW52ZXJzZSxcbiAgICAgIGZuID0gb3B0aW9ucy5mbjtcblxuICAgIGlmIChjb250ZXh0ID09PSB0cnVlKSB7XG4gICAgICByZXR1cm4gZm4odGhpcyk7XG4gICAgfSBlbHNlIGlmIChjb250ZXh0ID09PSBmYWxzZSB8fCBjb250ZXh0ID09IG51bGwpIHtcbiAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgIH0gZWxzZSBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgaWYgKGNvbnRleHQubGVuZ3RoID4gMCkge1xuICAgICAgICBpZiAob3B0aW9ucy5pZHMpIHtcbiAgICAgICAgICBvcHRpb25zLmlkcyA9IFtvcHRpb25zLm5hbWVdO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnMuZWFjaChjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKFxuICAgICAgICAgIG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCxcbiAgICAgICAgICBvcHRpb25zLm5hbWVcbiAgICAgICAgKTtcbiAgICAgICAgb3B0aW9ucyA9IHsgZGF0YTogZGF0YSB9O1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gZm4oY29udGV4dCwgb3B0aW9ucyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xp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gICAgICAgIC8vIGFuIGl0ZXJtZWRpYXRlIGtleXMgYXJyYXkuXG4gICAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGV4ZWNJdGVyYXRpb24ocHJpb3JLZXksIGkgLSAxKTtcbiAgICAgICAgICB9XG4gICAgICAgICAgcHJpb3JLZXkgPSBrZXk7XG4gICAgICAgICAgaSsrO1xuICAgICAgICB9KTtcbiAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSwgdHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztxQkFBb0MsVUFBVTs7eUJBQ3hCLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLFVBQVMsV0FBVyxFQUFFLE9BQU8sRUFBRTtBQUMzRCxRQUFJLFNBQVMsQ0FBQyxNQUFNLElBQUksQ0FBQyxFQUFFO0FBQ3pCLFlBQU0sMkJBQWMsbUNBQW1DLENBQUMsQ0FBQztLQUMxRDtBQUNELFFBQUksa0JBQVcsV0FBVyxDQUFDLEVBQUU7QUFDM0IsaUJBQVcsR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUF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B0aW9uKCcjdW5sZXNzIHJlcXVpcmVzIGV4YWN0bHkgb25lIGFyZ3VtZW50Jyk7XG4gICAgfVxuICAgIHJldHVybiBpbnN0YW5jZS5oZWxwZXJzWydpZiddLmNhbGwodGhpcywgY29uZGl0aW9uYWwsIHtcbiAgICAgIGZuOiBvcHRpb25zLmludmVyc2UsXG4gICAgICBpbnZlcnNlOiBvcHRpb25zLmZuLFxuICAgICAgaGFzaDogb3B0aW9ucy5oYXNoXG4gICAgfSk7XG4gIH0pO1xufVxuIl19\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ3BCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUM1QyxTQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7QUFDN0MsVUFBSSxDQ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uICAgICAgbGV2ZWwgPSBvcHRpb25zLmhhc2gubGV2ZWw7XG4gICAgfSBlbHNlIGlmIChvcHRpb25zLmRhdGEgJiYgb3B0aW9ucy5kYXRhLmxldmVsICE9IG51bGwpIHtcbiAgICAgIGxldmVsID0gb3B0aW9ucy5kYXRhLmxldmVsO1xuICAgIH1cbiAgICBhcmdzWzBdID0gbGV2ZWw7XG5cbiAgICBpbnN0YW5jZS5sb2coLi4uYXJncyk7XG4gIH0pO1xufVxuIl19\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQU1PLFVBQVU7O3lCQUNLLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLFVBQVMsT0FBTyxFQUFFLE9BQU8sRUFBRTtBQUN6RCxRQUFJLFNBQVMsQ0FBQyxNQUFNLElBQUksQ0FBQyx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AgICByZXR1cm4gb3B0aW9ucy5pbnZlcnNlKHRoaXMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\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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ZmlsZSI6ImlubGluZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGV4dGVuZCB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJEZWNvcmF0b3IoJ2lubGluZScsIGZ1bmN0aW9uKGZuLCBwcm9wcywgY29udGFpbmVyLCBvcHRpb25zKSB7XG4gICAgbGV0IHJldCA9IGZuO1xuICAgIGlmICghcHJvcHMucGFydGlhbHMpIHtcbiAgICAgIHByb3BzLnBhcnRpYWxzID0ge307XG4gICAgICByZXQgPSBmdW5jdGlvbihjb250ZXh0LCBvcHRpb25zKSB7XG4gICAgICAgIC8vIENyZWF0ZSBhIG5ldyBwYXJ0aWFscyBzdGFjayBmcmFtZSBwcmlvciB0byBleGVjLlxuICAgICAgICBsZXQgb3JpZ2luYWwgPSBjb250YWluZXIucGFydGlhbHM7XG4gICAgICAgIGNvbnRhaW5lci5wYXJ0aWFscyA9IGV4dGVuZCh7fSwgb3JpZ2luYWwsIHByb3BzLnBhcnRpYWxzKTtcbiAgICAgICAgbGV0IHJldCA9IGZuKGNvbnRleHQsIG9wdGlvbnMpO1xuICAgICAgICBjb250YWluZXIucGFydGlhbHMgPSBvcmlnaW5hbDtcbiAgICAgICAgcmV0dXJuIHJldDtcbiAgICAgIH07XG4gICAgfVxuXG4gICAgcHJvcHMucGFydGlhbHNbb3B0aW9ucy5hcmdzWzBdXSA9IG9wdGlvbnMuZm47XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozL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JvcGVydHkobWVyZ2VkSGVscGVycywgY29udGFpbmVyKSB7XG4gIE9iamVjdC5rZXlzKG1lcmdlZEhlbHBlcnMpLmZvckVhY2goaGVscGVyTmFtZSA9PiB7XG4gICAgbGV0IGhlbHBlciA9IG1lcmdlZEhlbHBlcnNbaGVscGVyTmFtZV07XG4gICAgbWVyZ2VkSGVscGVyc1toZWxwZXJOYW1lXSA9IHBhc3NMb29rdXBQcm9wZXJ0eU9wdGlvbihoZWxwZXIsIGNvbnRhaW5lcik7XG4gIH0pO1xufVxuXG5mdW5jdGlvbiBwYXNzTG9va3VwUHJvcGVydHlPcHRpb24oaGVscGVyLCBjb250YWluZXIpIHtcbiAgY29uc3QgbG9va3VwUHJvcGVydHkgPSBjb250YWluZXIubG9va3VwUHJvcGVydHk7XG4gIHJldHVybiB3cmFwSGVscGVyKGhlbHBlciwgb3B0aW9ucyA9PiB7XG4gICAgcmV0dXJuIFV0aWxzLmV4dGVuZCh7IGxvb2t1cFByb3BlcnR5IH0sIG9wdGlvbnMpO1xuICB9KTtcbn1cbiJdfQ==\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3dyYXBIZWxwZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBTyxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUUs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25zID0gYXJndW1lbnRzW2FyZ3VtZW50cy5sZW5ndGggLSAxXTtcbiAgICBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdID0gdHJhbnNmb3JtT3B0aW9uc0ZuKG9wdGlvbnMpO1xuICAgIHJldHVybiBoZWxwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgfTtcbiAgcmV0dXJuIHdyYXBwZXI7XG59XG4iXX0=\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 */\n// eslint-disable-next-line complexity\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 (['milestone', 'task', 'allday', 'time'].indexOf(options.category) > -1) {\n schedule.set('category', options.category);\n }\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 if (options.raw) {\n schedule.set('raw', options.raw);\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.convertStartDayToLastDay(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, lookupProperty = container.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/toast-ui.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/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, lookupProperty = container.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 = datetime.getDateDifference(hourmarker, now);\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 = datetime.getDateDifference(hourmarker, now);\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 = domevent.getEventTarget(event);\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, lookupProperty = container.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),(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\":56,\"column\":37},\"end\":{\"line\":56,\"column\":75}}}),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":22},\"end\":{\"line\":56,\"column\":76}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(29, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":12},\"end\":{\"line\":56,\"column\":207}}})) != 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/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, lookupProperty = container.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/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, lookupProperty = container.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/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, lookupProperty = container.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/toast-ui.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\":13,\"column\":60},\"end\":{\"line\":13,\"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\":23,\"column\":135},\"end\":{\"line\":23,\"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\":54,\"column\":99},\"end\":{\"line\":54,\"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\":54,\"column\":116},\"end\":{\"line\":54,\"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\":69,\"column\":163},\"end\":{\"line\":69,\"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\":69,\"column\":193},\"end\":{\"line\":69,\"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\":10,\"column\":16},\"end\":{\"line\":15,\"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\":48,\"column\":52},\"end\":{\"line\":48,\"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\":60,\"column\":52},\"end\":{\"line\":60,\"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\":64,\"column\":52},\"end\":{\"line\":64,\"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, lookupProperty = container.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/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, lookupProperty = container.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/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, lookupProperty = container.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/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, lookupProperty = container.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/toast-ui.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/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, lookupProperty = container.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/toast-ui.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 = domevent.getEventTarget(clickEvent);\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 = domevent.getEventTarget(mouseDownEvent),\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, lookupProperty = container.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 diff --git a/index.d.ts b/index.d.ts index eaaf05b3f..44df7d47d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for TOAST UI Calendar v1.12.12 +// Type definitions for TOAST UI Calendar v1.12.13 // TypeScript Version: 3.2.1 export type DateType = string | Date | TZDate; diff --git a/package.json b/package.json index 9eb764b07..555ec0abc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tui-calendar", "author": "NHN FE Development Lab ", - "version": "1.12.12", + "version": "1.12.13", "main": "dist/tui-calendar.js", "types": "index.d.ts", "license": "MIT",