PageSourceSearch

https://www.igmetall-ruhrgebiet-mitte.de/typo3conf/ext/events2/Res…/Public/JavaScript/LitePicker.js?1723712684

js igmetall-ruhrgebiet-mitte.de collected 2026-10-06 20:37:40 UTC 77,051 bytes, 1,004 lines download raw bytes

1/*!
2 *
3 * litepicker.js
4 * Litepicker v2.0.12 (https://github.com/wakirin/Litepicker)
5 * Package: litepicker (https://www.npmjs.com/package/litepicker)
6 * License: MIT (https://github.com/wakirin/Litepicker/blob/master/LICENCE.md)
7 * Copyright 2019-2021 Rinat G.
8 *
9 * Hash: a5019ade4d1fcf3e6277
10 *
11 */
12var Litepicker = function (t) {
13  var e = {};
14
15  function i (n) {
16    if (e[n]) return e[n].exports;
17    var o = e[n] = { i: n, l: !1, exports: {} };
18    return t[n].call(o.exports, o, o.exports, i), o.l = !0, o.exports;
19  }
20
21  return i.m = t, i.c = e, i.d = function (t, e, n) {
22    i.o(t, e) || Object.defineProperty(t, e, {
23      enumerable: !0,
24      get: n
25    });
26  }, i.r = function (t) {'undefined' != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: 'Module' }), Object.defineProperty(t, '__esModule', { value: !0 });}, i.t = function (t, e) {
27    if (1 & e && (t = i(t)), 8 & e) return t;
28    if (4 & e && 'object' == typeof t && t && t.__esModule) return t;
29    var n = Object.create(null);
30    if (i.r(n), Object.defineProperty(n, 'default', {
31      enumerable: !0,
32      value: t
33    }), 2 & e && 'string' != typeof t) for (var o in t) i.d(n, o, function (e) {return t[e];}.bind(null, o));
34    return n;
35  }, i.n = function (t) {
36    var e = t && t.__esModule ? function () {return t.default;} : function () {return t;};
37    return i.d(e, 'a', e), e;
38  }, i.o = function (t, e) {return Object.prototype.hasOwnProperty.call(t, e);}, i.p = '', i(i.s = 4);
39}([function (t, e, i) {
40  'use strict';
41  Object.defineProperty(e, '__esModule', { value: !0 });
42  var n = function () {
43    function t (e, i, n) {void 0 === e && (e = null), void 0 === i && (i = null), void 0 === n && (n = 'en-US'), this.dateInstance = 'object' == typeof i && null !== i ? i.parse(e instanceof t ? e.clone().toJSDate() : e) : 'string' == typeof i ? t.parseDateTime(e, i, n) : e ? t.parseDateTime(e) : t.parseDateTime(new Date), this.lang = n;}
44
45    return t.parseDateTime = function (e, i, n) {
46      if (void 0 === i && (i = 'YYYY-MM-DD'), void 0 === n && (n = 'en-US'), !e) return new Date(NaN);
47      if (e instanceof Date) return new Date(e);
48      if (e instanceof t) return e.clone().toJSDate();
49      if (/^-?\d{10,}$/.test(e)) return t.getDateZeroTime(new Date(Number(e)));
50      if ('string' == typeof e) {
51        for (var o = [], s = null; null != (s = t.regex.exec(i));) '\\' !== s[1] && o.push(s);
52        if (o.length) {
53          var r = { year: null, month: null, shortMonth: null, longMonth: null, day: null, value: '' };
54          o[0].index > 0 && (r.value += '.*?');
55          for (var a = 0, l = Object.entries(o); a < l.length; a++) {
56            var c = l[a], h = c[0], p = c[1], d = Number(h), u = t.formatPatterns(p[0], n), m = u.group, f = u.pattern;
57            r[m] = d + 1, r.value += f, r.value += '.*?';
58          }
59          var g = new RegExp('^' + r.value + '$');
60          if (g.test(e)) {
61            var v = g.exec(e), y = Number(v[r.year]), b = null;
62            r.month ? b = Number(v[r.month]) - 1 : r.shortMonth ? b = t.shortMonths(n).indexOf(v[r.shortMonth]) : r.longMonth && (b = t.longMonths(n).indexOf(v[r.longMonth]));
63            var k = Number(v[r.day]) || 1;
64            return new Date(y, b, k, 0, 0, 0, 0);
65          }
66        }
67      }
68      return t.getDateZeroTime(new Date(e));
69    }, t.convertArray = function (e, i) {return e.map((function (e) {return e instanceof Array ? e.map((function (e) {return new t(e, i);})) : new t(e, i);}));}, t.getDateZeroTime = function (t) {return new Date(t.getFullYear(), t.getMonth(), t.getDate(), 0, 0, 0, 0);}, t.shortMonths = function (e) {return t.MONTH_JS.map((function (t) {return new Date(2019, t).toLocaleString(e, { month: 'short' });}));}, t.longMonths = function (e) {return t.MONTH_JS.map((function (t) {return new Date(2019, t).toLocaleString(e, { month: 'long' });}));}, t.formatPatterns = function (e, i) {
70      switch (e) {
71        case'YY':
72        case'YYYY':
73          return { group: 'year', pattern: '(\\d{' + e.length + '})' };
74        case'M':
75          return { group: 'month', pattern: '(\\d{1,2})' };
76        case'MM':
77          return { group: 'month', pattern: '(\\d{2})' };
78        case'MMM':
79          return { group: 'shortMonth', pattern: '(' + t.shortMonths(i).join('|') + ')' };
80        case'MMMM':
81          return { group: 'longMonth', pattern: '(' + t.longMonths(i).join('|') + ')' };
82        case'D':
83          return { group: 'day', pattern: '(\\d{1,2})' };
84        case'DD':
85          return { group: 'day', pattern: '(\\d{2})' };
86      }
87    }, t.prototype.toJSDate = function () {return this.dateInstance;}
87, t.prototype.toLocaleString = function (t, e) {return this.dateInstance.toLocaleString(t, e);}, t.prototype.toDateString = function () {return this.dateInstance.toDateString();}, t.prototype.getSeconds = function () {return this.dateInstance.getSeconds();}, t.prototype.getDay = function () {return this.dateInstance.getDay();}, t.prototype.getTime = function () {return this.dateInstance.getTime();}, t.prototype.getDate = function () {return this.dateInstance.getDate();}, t.prototype.getMonth = function () {return this.dateInstance.getMonth();}, t.prototype.getFullYear = function () {return this.dateInstance.getFullYear();}, t.prototype.setMonth = function (t) {return this.dateInstance.setMonth(t);}, t.prototype.setHours = function (t, e, i, n) {void 0 === t && (t = 0), void 0 === e && (e = 0), void 0 === i && (i = 0), void 0 === n && (n = 0), this.dateInstance.setHours(t, e, i, n);}, t.prototype.setSeconds = function (t) {return this.dateInstance.setSeconds(t);}, t.prototype.setDate = function (t) {return this.dateInstance.setDate(t);}, t.prototype.setFullYear = function (t) {return this.dateInstance.setFullYear(t);}, t.prototype.getWeek = function (t) {
88      var e = new Date(this.timestamp()), i = (this.getDay() + (7 - t)) % 7;
89      e.setDate(e.getDate() - i);
90      var n = e.getTime();
91      return e.setMonth(0, 1), e.getDay() !== t && e.setMonth(0, 1 + (4 - e.getDay() + 7) % 7), 1 + Math.ceil((n - e.getTime()) / 6048e5);
92    }, t.prototype.clone = function () {return new t(this.toJSDate());}, t.prototype.isBetween = function (t, e, i) {
93      switch (void 0 === i && (i = '()'), i) {
94        default:
95        case'()':
96          return this.timestamp() > t.getTime() && this.timestamp() < e.getTime();
97        case'[)':
98          return this.timestamp() >= t.getTime() && this.timestamp() < e.getTime();
99        case'(]':
100          return this.timestamp() > t.getTime() && this.timestamp() <= e.getTime();
101        case'[]':
102          return this.timestamp() >= t.getTime() && this.timestamp() <= e.getTime();
103      }
104    }, t.prototype.isBefore = function (t, e) {
105      switch (void 0 === e && (e = 'seconds'), e) {
106        case'second':
107        case'seconds':
108          return t.getTime() > this.getTime();
109        case'day':
110        case'days':
111          return new Date(t.getFullYear(), t.getMonth(), t.getDate()).getTime() > new Date(this.getFullYear(), this.getMonth(), this.getDate()).getTime();
112        case'month':
113        case'months':
114          return new Date(t.getFullYear(), t.getMonth(), 1).getTime() > new Date(this.getFullYear(), this.getMonth(), 1).getTime();
115        case'year':
116        case'years':
117          return t.getFullYear() > this.getFullYear();
118      }
119      throw new Error('isBefore: Invalid unit!');
120    }, t.prototype.isSameOrBefore = function (t, e) {
121      switch (void 0 === e && (e = 'seconds'), e) {
122        case'second':
123        case'seconds':
124          return t.getTime() >= this.getTime();
125        case'day':
126        case'days':
127          return new Date(t.getFullYear(), t.getMonth(), t.getDate()).getTime() >= new Date(this.getFullYear(), this.getMonth(), this.getDate()).getTime();
128        case'month':
129        case'months':
130          return new Date(t.getFullYear(), t.getMonth(), 1).getTime() >= new Date(this.getFullYear(), this.getMonth(), 1).getTime();
131      }
132      throw new Error('isSameOrBefore: Invalid unit!');
133    }, t.prototype.isAfter = function (t, e) {
134      switch (void 0 === e && (e = 'seconds'), e) {
135        case'second':
136        case'seconds':
137          return this.getTime() > t.getTime();
138        case'day':
139        case'days':
140          return new Date(this.getFullYear(), this.getMonth(), this.getDate()).getTime() > new Date(t.getFullYear(), t.getMonth(), t.getDate()).getTime();
141        case'month':
142        case'months':
143          return new Date(this.getFullYear(), this.getMonth(), 1).getTime() > new Date(t.getFullYear(), t.getMonth(), 1).getTime();
144        case'year':
145        case'years':
146          return this.getFullYear() > t.getFullYear();
147      }
148      throw new Error('isAfter: Invalid unit!');
149    }, t.prototype.isSameOrAfter = function (t, e) {
150      switch (void 0 === e && (e = 'seconds'), e) {
151        case'second':
152        case'seconds':
153          return this.getTime() >= t.getTime();
154        case'day':
155        case'days':
156          return new Date(this.getFullYear(), this.getMonth(), this.getDate()).getTime() >= new Date(t.getFullYear(), t.getMonth(), t.getDate()).getTime();
157        case'month':
158        case'months':
159          return new Date(this.getFullYear(), this.getMonth(), 1).getTime() >= new Date(t.getFullYear(), t.getMonth(), 1).getTime();
160      }
161      throw new Error('isSameOrAfter: Invalid unit!');
162    }, t.prototype.isSame = function (t, e) {
163      switch (void 0 === e && (e = 'seconds'), e) {
164        case'second':
165        case'seconds':
166          return this.getTime() === t.getTime();
167        case'day':
168        case'days':
169          return new Date(this.getFullYear(), this.getMonth(), this.getDate()).getTime() === new Date(t.getFullYear(), t.getMonth(), t.getDate()).getTime();
170        case'month':
171        case'months':
172          return new Date(this.getFullYear(), this.getMonth(), 1).getTime() === new Date(t.getFullYear(), t.getMonth(), 1).getTime();
173      }
174      throw new Error('isSame: Invalid unit!');
175    }, t.prototype.add = function (t, e) {
176      switch (void 0 === e && (e = 'seconds'), e) {
177        case'second':
178        case'seconds':
179          this.setSeconds(this.getSeconds() + t);
180          break;
181        case'day':
182        case'days':
183          this.setDate(this.getDate() + t);
184          break;
185        case'month':
186        case'months':
187          this.setMonth(this.getMonth() + t);
188      }
189      return this;
190    }, t.prototype.subtract = function (t, e) {
191      switch (void 0 === e && (e = 'seconds'), e) {
192        case'second':
193        case'seconds':
194          this.setSeconds(this.getSeconds() - t);
195          break;
196        case'day':
197        case'days':
198          this.setDate(this.getDate() - t);
199          break;
200        case'month':
201        case'months':
202          this.setMonth(this.getMonth() - t);
203      }
204      return this;
205    }, t.prototype.diff = function (t, e) {
206      void 0 === e && (e = 'seconds');
207      switch (e) {
208        default:
209        case'second':
210        case'seconds':
211          return this.getTime() - t.getTime();
212        case'day':
213        case'days':
214          return Math.round((this.timestamp() - t.getTime()) / 864e5);
215        case'month':
216        case'months':
217      }
218    }, t.prototype.format = function (e, i) {
219      if (void 0 === i && (i = 'en-US'), 'object' == typeof e) return e.output(this.clone().toJSDate());
220      for (var n = '', o = [], s = null; null != (s = t.regex.exec(e));) '\\' !== s[1] && o.push(s);
221      if (o.length) {
222        o[0].index > 0 && (n += e.substring(0, o[0].index));
223        for (var r = 0, a = Object.entries(o); r < a.length; r++) {
224          var l = a[r], c = l[0], h = l[1], p = Number(c);
225          n += this.formatTokens(h[0], i), o[p + 1] && (n += e.substring(h.index + h[0].length, o[p + 1].index)), p === o.length - 1 && (n += e.substring(h.index + h[0].length));
226        }
227      }
228      return n.replace(/\\/g, '');
229    }, t.prototype.timestamp = function () {return new Date(this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0, 0).getTime();}, t.prototype.formatTokens = function (e, i) {
230      switch (e) {
231        case'YY':
232          return String(this.getFullYear()).slice(-2);
233        case'YYYY':
234          return String(this.getFullYear());
235        case'M':
236          return String(this.getMonth() + 1);
237        case'MM':
238          return ('0' + (this.getMonth() + 1)).slice(-2);
239        case'MMM':
240          return t.shortMonths(i)[this.getMonth()];
241        case'MMMM':
242          return t.longMonths(i)[this.getMonth()];
243        case'D':
244          return String(this.getDate());
245        case'DD':
246          return ('0' + this.getDate()).slice(-2);
247        default:
248          return '';
249      }
250    }, t.regex = /(\\)?(Y{2,4}|M{1,4}|D{1,2}|d{1,4})/g, t.MONTH_JS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], t;
251  }();
252  e.DateTime = n;
253}, function (t, e, i) {
254  'use strict';
255  var n,
256    o = this && this.__extends || (n = function (t, e) {return (n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (t, e) {t.__proto__ = e;} || function (t, e) {for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);})(t, e);}, function (t, e) {
257      function i () {this.constructor = t;}
258
259      n(t, e), t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype, new i);
260    }), s = this && this.__spreadArrays || function () {
261      for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
262      var n = Array(t), o = 0;
263      for (e = 0; e < i; e++) for (var s = arguments[e], r = 0, a = s.length; r < a; r++, o++) n[o] = s[r];
264      return n;
265    };
266  Object.defineProperty(e, '__esModule', { value: !0 });
267  var r = i(5), a = i(0), l = i(3), c = i(2), h = function (t) {
268    function e (e) {
269      var i = t.call(this, e) || this;
270      return i.preventClick = !1, i.bindEvents(), i;
271    }
272
273    return o(e, t), e.prototype.scrollToDate = function (t) {
274      if (this.options.scrollToDate) {
275        var e = this.options.startDate instanceof a.DateTime ? this.options.startDate.clone() : null,
276          i = this.options.endDate instanceof a.DateTime ? this.options.endDate.clone() : null;
277        !this.options.startDate || t && t !== this.options.element ? t && this.options.endDate && t === this.options.elementEnd && (i.setDate(1), this.options.numberOfMonths > 1 && i.isAfter(e) && i.setMonth(i.getMonth() - (this.options.numberOfMonths - 1)), this.calendars[0] = i.clone()) : (e.setDate(1), this.calendars[0] = e.clone());
278      }
279    }, e.prototype.bindEvents = function () {
280      document.addEventListener('click', this.onClick.bind(this), !0), this.ui = document.createElement('div'), this.ui.className = l.litepicker, this.ui.style.display = 'none', this.ui.addEventListener('mouseenter', this.onMouseEnter.bind(this), !0), this.ui.addEventListener('mouseleave', this.onMouseLeave.bind(this), !1), this.options.autoRefresh ? (this.options.element instanceof HTMLElement && this.options.element.addEventListener('keyup', this.onInput.bind(this), !0), this.options.elementEnd instanceof HTMLElement && this.options.elementEnd.addEventListener('keyup', this.onInput.bind(this), !0)) : (this.options.element instanceof HTMLElement && this.options.element.addEventListener('change', this.onInput.bind(this), !0), this.options.elementEnd instanceof HTMLElement && this.options.elementEnd.addEventListener('change', this.onInput.bind(this), !0)), this.options.parentEl ? this.options.parentEl instanceof HTMLElement ? this.options.parentEl.appendChild(this.ui) : document.querySelector(this.options.parentEl).appendChild(this.ui) : this.options.inlineMode ? this.options.element instanceof HTMLInputElement ? this.options.element.parentNode.appendChild(this.ui) : this.options.element.appendChild(this.ui) : document.body.appendChild(this.ui), this.updateInput(), this.init(), 'function' == typeof this.options.setup && this.options.setup.call(this, this), this.render(), this.options.inlineMode && this.show();
281    }, e.prototype.updateInput = function () {
282      if (this.options.element instanceof HTMLInputElement) {
283        var t = this.options.startDate, e = this.options.endDate;
284        if (this.options.singleMode && t) this.options.element.value = t.format(this.options.format, this.options.lang); else if (!this.options.singleMode && t && e) {
285          var i = t.format(this.options.format, this.options.lang),
286            n = e.format(this.options.format, this.options.lang);
287          this.options.elementEnd instanceof HTMLInputElement ? (this.options.element.value = i, this.options.elementEnd.value = n) : this.options.element.value = '' + i + this.options.delimiter + n;
288        }
289        t || e || (this.options.element.value = '', this.options.elementEnd instanceof HTMLInputElement && (this.options.elementEnd.value = ''));
290      }
291    }, e.prototype.isSamePicker = function (t) {return t.closest('.' + l.litepicker) === this.ui;}, e.prototype.shouldShown = function (t) {return !t.disabled && (t === this.options.element || this.options.elementEnd && t === this.options.elementEnd);}, e.prototype.shouldResetDatePicked = function () {return this.options.singleMode || 2 === this.datePicked.length;}, e.prototype.shouldSwapDatePicked = function () {return 2 === this.datePicked.length && this.datePicked[0].getTime() > this.datePicked[1].getTime();}, e.prototype.shouldCheckLockDays = function () {return this.options.disallowLockDaysInRange && 2 === this.datePicked.length;}, e.prototype.onClick = function (t) {
292      var e = t.target;
293      if (t.target.shadowRoot && (e = t.composedPath()[0]), e && this.ui) if (this.shouldShown(e)) this.show(e); else if (e.closest('.' + l.litepicker) || !this.isShowning()) {
294        if (this.isSamePicker(e)) if (this.emit('before:click', e), this.preventClick) this.preventClick = !1; else {
295          if (e.classList.contains(l.dayItem)) {
296            if (t.preventDefault(), e.classList.contains(l.isLocked)) return;
297            if (this.shouldResetDatePicked() && (this.datePicked.length = 0), this.datePicked[this.datePicked.length] = new a.DateTime(e.dataset.time), this.shouldSwapDatePicked()) {
298              var i = this.datePicked[1].clone();
299              this.datePicked[1] = this.datePicked[0].clone(), this.datePicked[0] = i.clone();
300            }
301            if (this.shouldCheckLockDays()) c.rangeIsLocked(this.datePicked, this.options) && (this.emit('error:range', this.datePicked), this.datePicked.length = 0);
302            return this.render(), this.emit.apply(this, s(['preselect'], s(this.datePicked).map((function (t) {return t.clone();})))), void (this.options.autoApply && (this.options.singleMode && this.datePicked.length ? (this.setDate(this.datePicked[0]), this.hide()) : this.options.singleMode || 2 !== this.datePicked.length || (this.setDateRange(this.datePicked[0], this.datePicked[1]), this.hide())));
303          }
304          if (e.classList.contains(l.buttonPreviousMonth)) {
305            t.preventDefault();
306            var n = 0, o = this.options.switchingMonths || this.options.numberOfMonths;
307            if (this.options.splitView) {
308              var r = e.closest('.' + l.monthItem);
309              n = c.findNestedMonthItem(r), o = 1;
310            }
311            return this.calendars[n].setMonth(this.calendars[n].getMonth() - o), this.gotoDate(this.calendars[n], n), void this.emit('change:month', this.calendars[n], n);
312          }
313          if (e.classList.contains(l.buttonNextMonth)) {
314            t.preventDefault();
315            n = 0, o = this.options.switchingMonths || this.options.numberOfMonths;
316            if (this.options.splitView) {
317              r = e.closest('.' + l.monthItem);
318              n = c.findNestedMonthItem(r), o = 1;
319            }
320            return this.calendars[n].setMonth(this.calendars[n].getMonth() + o), this.gotoDate(this.calendars[n], n), void this.emit('change:month', this.calendars[n], n);
321          }
322          e.classList.contains(l.buttonCancel) && (t.preventDefault(), this.hide(), this.emit('button:cancel')), e.classList.contains(l.buttonApply) && (t.preventDefault(), this.options.singleMode && this.datePicked.length ? this.setDate(this.datePicked[0]) : this.options.singleMode || 2 !== this.datePicked.length || this.setDateRange(this.datePicked[0], this.datePicked[1]), this.hide(), this.emit('button:apply', this.options.startDate, this.options.endDate));
323        }
324      } else this.hide();
325    }, e.prototype.showTooltip = function (t, e) {
326      var i = this.ui.querySelector('.' + l.containerTooltip);
327      i.style.visibility = 'visible', i.innerHTML = e;
328      var n = this.ui.getBoundingClientRect(), o = i.getBoundingClientRect(), s = t.getBoundingClientRect(), r = s.top,
329        a = s.left;
330      if (this.options.inlineMode && this.options.parentEl) {
331        var c = this.ui.parentNode.getBoundingClientRect();
332        r -= c.top, a -= c.left;
333      } else r -= n.top, a -= n.left;
334      r -= o.height, a -= o.width / 2, a += s.width / 2, i.style.top = r + 'px', i.style.left = a + 'px', this.emit('tooltip', i, t);
335    }, e.prototype.hideTooltip = function () {this.ui.querySelector('.' + l.containerTooltip).style.visibility = 'hidden';}, e.prototype.shouldAllowMouseEnter = function (t) {return !this.options.singleMode && !t.classList.contains(l.isLocked);}, e.prototype.shouldAllowRepick = function () {return this.options.elementEnd && this.options.allowRepick && this.options.startDate && this.options.endDate;}, e.prototype.isDayItem = function (t) {return t.classList.contains(l.dayItem);}, e.prototype.onMouseEnter = function (t) {
336      var e = this, i = t.target;
337      if (this.isDayItem(i) && this.shouldAllowMouseEnter(i)) {
338        if (this.shouldAllowRepick() && (this.triggerElement === this.options.element ? this.datePicked[0] = this.options.endDate.clone() : this.triggerElement === this.options.elementEnd && (this.datePicked[0] = this.options.startDate.clone())), 1 !== this.datePicked.length) return;
339        var n = this.ui.querySelector('.' + l.dayItem + '[data-time="' + this.datePicked[0].getTime() + '"]'),
340          o = this.datePicked[0].clone(), s = new a.DateTime(i.dataset.time), r = !1;
341        if (o.getTime() > s.getTime()) {
342          var c = o.clone();
343          o = s.clone(), s = c.clone(), r = !0;
344        }
345        if (Array.prototype.slice.call(this.ui.querySelectorAll('.' + l.dayItem)).forEac
345h((function (t) {
346          var i = new a.DateTime(t.dataset.time), n = e.renderDay(i);
347          i.isBetween(o, s) && n.classList.add(l.isInRange), t.className = n.className;
348        })), i.classList.add(l.isEndDate), r ? (n && n.classList.add(l.isFlipped), i.classList.add(l.isFlipped)) : (n && n.classList.remove(l.isFlipped), i.classList.remove(l.isFlipped)), this.options.showTooltip) {
349          var h = s.diff(o, 'day') + 1;
350          if ('function' == typeof this.options.tooltipNumber && (h = this.options.tooltipNumber.call(this, h)), h > 0) {
351            var p = this.pluralSelector(h),
352              d = h + ' ' + (this.options.tooltipText[p] ? this.options.tooltipText[p] : '[' + p + ']');
353            this.showTooltip(i, d);
354            var u = window.navigator.userAgent, m = /(iphone|ipad)/i.test(u), f = /OS 1([0-2])/i.test(u);
355            m && f && i.dispatchEvent(new Event('click'));
356          } else this.hideTooltip();
357        }
358      }
359    }, e.prototype.onMouseLeave = function (t) {
360      t.target;
361      this.options.allowRepick && (!this.options.allowRepick || this.options.startDate || this.options.endDate) && (this.datePicked.length = 0, this.render());
362    }, e.prototype.onInput = function (t) {
363      var e = this.parseInput(), i = e[0], n = e[1], o = this.options.format;
364      if (this.options.elementEnd ? i instanceof a.DateTime && n instanceof a.DateTime && i.format(
364o) === this.options.element.value && n.format(o) === this.options.elementEnd.value : this.options.singleMode ? i instanceof a.DateTime && i.format(o) === this.options.element.value : i instanceof a.DateTime && n instanceof a.DateTime && '' + i.format(o) + this.options.delimiter + n.format(o) === this.options.element.value) {
365        if (n && i.getTime() > n.getTime()) {
366          var s = i.clone();
367          i = n.clone(), n = s.clone();
368        }
369        this.options.startDate = new a.DateTime(i, this.options.format, this.options.lang), n && (this.options.endDate = new a.DateTime(n, this.options.format, this.options.lang)), this.updateInput(), this.render();
370        var r = i.clone(), l = 0;
371        (this.options.elementEnd ? i.format(o) === t.target.value : t.target.value.startsWith(i.format(o))) || (r = n.clone(), l = this.options.numberOfMonths - 1), this.emit('selected', this.getStartDate(), this.getEndDate()), this.gotoDate(r, l);
372      }
373    }, e;
374  }(r.Calendar);
375  e.Litepicker = h;
376}, function (t, e, i) {
377  'use strict';
378  Object.defineProperty(e, '__esModule', { value: !0 }), e.findNestedMonthItem = function (t) {
379    for (var e = t.parentNode.childNodes, i = 0; i < e.length; i += 1) {if (e.item(i) === t) return i;}
380    return 0;
381  }, e.dateIsLocked = function (t, e, i) {
382    var n = !1;
383    return e.lockDays.length && (n = e.lockDays.filter((function (i) {return i instanceof Array ? t.isBetween(i[0], i[1], e.lockDaysInclusivity) : i.isSame(t, 'day');})).length), n || 'function' != typeof e.lockDaysFilter || (n = e.lockDaysFilter.call(this, t.clone(), null, i)), n;
384  }, e.rangeIsLocked = function (t, e) {
385    var i = !1;
386    return e.lockDays.length && (i = e.lockDays.filter((function (i) {
387      if (i instanceof Array) {
388        var n = t[0].toDateString() === i[0].toDateString() && t[1].toDateString() === i[1].toDateString();
389        return i[0].isBetween(t[0], t[1], e.lockDaysInclusivity) || i[1].isBetween(t[0], t[1], e.lockDaysInclusivity) || n;
390      }
391      return i.isBetween(t[0], t[1], e.lockDaysInclusivity);
392    })).length), i || 'function' != typeof e.lockDaysFilter || (i = e.lockDaysFilter.call(this, t[0].clone(), t[1].clone(), t)), i;
393  };
394}, function (t, e, i) {
395  var n = i(8);
396  'string' == typeof n && (n = [[t.i, n, '']]);
397  var o = {
398    insert: function (t) {
399      var e = document.querySelector('head'), i = window._lastElementInsertedByStyleLoader;
400      window.disableLitepickerStyles || (i ? i.nextSibling ? e.insertBefore(t, i.nextSibling) : e.appendChild(t) : e.insertBefore(t, e.firstChild), window._lastElementInsertedByStyleLoader = t);
401    }, singleton: !1
402  };
403  i(10)(n, o);
404  n.locals && (t.exports = n.locals);
405}, function (t, e, i) {
406  'use strict';
407  Object.defineProperty(e, '__esModule', { value: !0 });
408  var n = i(1);
409  e.Litepicker = n.Litepicker, i(11), window.Litepicker = n.Litepicker, e.default = n.Litepicker;
410}, function (t, e, i) {
411  'use strict';
412  var n,
413    o = this && this.__extends || (n = function (t, e) {return (n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (t, e) {t.__proto__ = e;} || function (t, e) {for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);})(t, e);}, function (t, e) {
414      function i () {this.constructor = t;}
415
416      n(t, e), t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype, new i);
417    });
418  Object.defineProperty(e, '__esModule', { value: !0 });
419  var s = i(6), r = i(0), a = i(3), l = i(2), c = function (t) {
420    function e (e) {return t.call(this, e) || this;}
421
422    return o(e, t), e.prototype.render = function () {
423      var t = this;
424      this.emit('before:render', this.ui);
425      var e = document.createElement('div');
426      e.className = a.containerMain;
427      var i = document.createElement('div');
428      i.className = a.containerMonths, a['columns' + this.options.numberOfColumns] && (i.classList.remove(a.columns2, a.columns3, a.columns4), i.classList.add(a['columns' + this.options.numberOfColumns])), this.options.splitView && i.classList.add(a.splitView), this.options.showWeekNumbers && i.classList.add(a.showWeekNumbers);
429      for (var n = this.calendars[0].clone(), o = n.getMonth(), s = n.getMonth() + this.options.numberOfMonths, r = 0, l = o; l < s; l += 1) {
430        var c = n.clone();
431        c.setDate(1), c.setHours(0, 0, 0, 0), this.options.splitView ? c = this.calendars[r].clone() : c.setMonth(l), i.appendChild(this.renderMonth(c, r)), r += 1;
432      }
433      if (this.ui.innerHTML = '', e.appendChild(i), this.options.resetButton) {
434        var h = void 0;
435        'function' == typeof this.options.resetButton ? h = this.options.resetButton.call(this) : ((h = document.createElement('button')).type = 'button', h.
435className = a.resetButton, h.innerHTML = this.options.buttonText.reset), h.addEventListener('click', (function (e) {e.preventDefault(), t.clearSelection();})), e.querySelector('.' + a.monthItem + ':last-child').querySelector('.' + a.monthItemHeader).appendChild(h);
436      }
437      this.ui.appendChild(e), this.options.autoApply && !this.options.footerHTML || this.ui.appendChild(this.renderFooter()), this.options.showTooltip && this.ui.appendChild(this.renderTooltip()), this.ui.dataset.plugins = (this.options.plugins || []).join('|'), this.emit('render', this.ui);
438    }, e.prototype.renderMonth = function (t, e) {
439      var i = this, n = t.clone(), o = 32 - new Date(n.getFullYear(), n.getMonth(), 32).getDate(),
440        s = document.createElement('div');
441      s.className = a.monthItem;
442      var c = document.createElement('div');
443      c.className = a.monthItemHeader;
444      var h = document.createElement('div');
445      if (this.options.dropdowns.months) {
446        var p = document.createElement('select');
447        p.className = a.monthItemName;
448        for (var d = 0; d < 12; d += 1) {
449          var u = document.createElement('option'), m = new r.DateTime(new Date(t.getFullYear(), d, 2, 0, 0, 0)),
450            f = new r.DateTime(new Date(t.getFullYear(), d, 1, 0, 0, 0));
451          u.value = String(d), u.text = m.toLocaleString(this.options.lang, { month: 'long' }), u.disabled = this.options.minDate && f.isBefore(new r.DateTime(this.options.minDate), 'month') || this.options.maxDate && f.isAfter(new r.DateTime(this.options.maxDate), 'month'), u.selected = f.getMonth() === t.getMonth(), p.appendChild(u);
452        }
453        p.addEventListener('change', (function (t) {
454          var e = t.target, n = 0;
455          if (i.options.splitView) {
456            var o = e.closest('.' + a.monthItem);
457            n = l.findNestedMonthItem(o);
458          }
459          i.calendars[n].setMonth(Number(e.value)), i.render(), i.emit('change:month', i.calendars[n], n, t);
460        })), h.appendChild(p);
461      } else {(m = document.createElement('strong')).className = a.monthItemName, m.innerHTML = t.toLocaleString(this.options.lang, { month: 'long' }), h.appendChild(m);}
462      if (this.options.dropdowns.years) {
463        var g = document.createElement('select');
464        g.className = a.monthItemYear;
465        var v = this.options.dropdowns.minYear,
466          y = this.options.dropdowns.maxYear ? this.options.dropdowns.maxYear : (new Date).getFullYear();
467        if (t.getFullYear() > y) (u = document.createElement('option')).value = String(t.getFullYear()), u.text = String(t.getFullYear()), u.selected = !0, u.disabled = !0, g.appendChild(u);
468        for (d = y; d >= v; d -= 1) {
469          var u = document.createElement('option'), b = new r.DateTime(new Date(d, 0, 1, 0, 0, 0));
470          u.value = String(d), u.text = String(d), u.disabled = this.options.minDate && b.isBefore(new r.DateTime(this.options.minDate), 'year') || this.options.maxDate && b.isAfter(new r.DateTime(this.options.maxDate), 'year'), u.selected = t.getFullYear() === d, g.appendChild(u);
471        }
472        if (t.getFullYear() < v) (u = document.createElement('option')).value = String(t.getFullYear()), u.text = String(t.getFullYear()), u.selected = !0, u.disabled = !0, g.appendChild(u);
473        if ('asc' === this.options.dropdowns.years) {
474          var k = Array.prototype.slice.call(g.childNodes).reverse();
475          g.innerHTML = '', k.forEach((function (t) {t.innerHTML = t.value, g.appendChild(t);}));
476        }
477        g.addEventListener('change', (function (t) {
478          var e = t.target, n = 0;
479          if (i.options.splitView) {
480            var o = e.closest('.' + a.monthItem);
481            n = l.findNestedMonthItem(o);
482          }
483          i.calendars[n].setFullYear(Number(e.value)), i.render(), i.emit('change:year', i.calendars[n], n, t);
484        })), h.appendChild(g);
485      } else {
486        var D = document.createElement('span');
487        D.className = a.monthItemYear, D.innerHTML = String(t.getFullYear()), h.appendChild(D);
488      }
489      var w = document.createElement('button');
490      w.type = 'button', w.className = a.buttonPreviousMonth, w.innerHTML = this.options.buttonText.previousMonth;
491      var x = document.createElement('button');
492      x.type = 'button', x.className = a.buttonNextMonth, x.innerHTML = this.options.buttonText.nextMonth, c.appendChild(w), c.appendChild(h), c.appendChild(x), this.options.minDate && n.isSameOrBefore(new r.DateTime(this.options.minDate), 'month') && s.classList.add(a.noPreviousMonth), this.options.maxDate && n.isSameOrAfter(new r.DateTime(this.options.maxDate), 'month') && s.classList.add(a.noNextMonth);
493      var M = document.createElement('div');
494      M.className = a.monthItemWeekdaysRow, this.options.showWeekNumbers && (M.innerHTML = '<div>W</div>');
495      for (var _ = 1; _ <= 7; _ += 1) {
496        var T = 3 + this.options.firstDay + _, L = document.createElement('div');
497        L.innerHTML = this.weekdayName(T), L.title = this.weekdayName(T, 'long'), M.appendChild(L);
498      }
499      var E = document.createElement('div');
500      E.className = a.containerDays;
501      var S = this.calcSkipDays(n);
502      this.options.showWeekNumbers && S && E.appendChild(this.renderWeekNumber(n));
503      for (var I = 0; I < S; I += 1) {
504        var P = document.createElement('div');
505        E.appendChild(P);
506      }
507      for (I = 1; I <= o; I += 1) n.setDate(I), this.options.showWeekNumbers && n.getDay() === this.options.firstDay && E.appendChild(this.renderWeekNumber(n)), E.appendChild(this.renderDay(n));
508      return s.appendChild(c), s.appendChild(M), s.appendChild(E), this.emit
508('render:month', s, t), s;
509    }, e.prototype.renderDay = function (t) {
510      t.setHours();
511      var e = document.createElement('div');
512      if (e.className = a.dayItem, e.innerHTML = String(t.getDate()), e.dataset.time = String(t.getTime()), t.toDateString() === (new Date).toDateString() && e.classList.add(a.isToday), this.datePicked.length) this.datePicked[0].toDateString() === t.toDateString() && (e.classList.add(a.isStartDate), this.options.singleMode && e.classList.add(a.isEndDate)), 2 === this.datePicked.length && this.datePicked[1].toDateString() === t.toDateString() && e.classList.add(a.isEndDate), 2 === this.datePicked.length && t.isBetween(this.datePicked[0], this.datePicked[1]) && e.classList.add(a.isInRange); else if (this.options.startDate) {
513        var i = this.options.startDate, n = this.options.endDate;
514        i.toDateString() === t.toDateString() && (e.classList.add(a.isStartDate), this.options.singleMode && e.classList.add(a.isEndDate)), n && n.toDateString() === t.toDateString() && e.classList.add(a.isEndDate), i && n && t.isBetween(i, n) && e.classList.add(a.isInRange);
515      }
516      if (this.options.minDate && t.isBefore(new r.DateTime(this.options.minDate)) && e.classList.add(a.isLocked), this.options.maxDate && t.isAfter(new r.DateTime(this.options.maxDate)) && e.classList.add(a.isLocked), this.options.minDays > 1 && 1 === this.datePicked.length) {
517        var o = this.options.minDays - 1, s = this.datePicked[0].clone().subtract(o, 'day'),
518          c = this.datePicked[0].clone().add(o, 'day');
519        t.isBetween(s, this.datePicked[0], '(]') && e.classList.add(a.isLocked), t.isBetween(this.datePicked[0], c, '[)') && e.classList.add(a.isLocked);
520      }
521      if (this.options.maxDays && 1 === this.datePicked.length) {
522        var h = this.options.maxDays;
523        s = this.datePicked[0].clone().subtract(h, 'day'), c = this.datePicked[0].clone().add(h, 'day');
524        t.isSameOrBefore(s) && e.classList.add(a.isLocked), t.isSameOrAfter(c) && e.classList.add(a.isLocked);
525      }
526      (this.options.selectForward && 1 === this.datePicked.length && t.isBefore(this.datePicked[0]) && e.classList.add(a.isLocked), this.options.selectBackward && 1 === this.datePicked.length && t.isAfter(this.datePicked[0]) && e.classList.add(a.isLocked), l.dateIsLocked(t, this.options, this.datePicked) && e.classList.add(a.isLocked), this.options.highlightedDays.length) && (this.options.highlightedDays.filter((function (e) {return e instanceof Array ? t.isBetween(e[0], e[1], '[]') : e.isSame(t, 'day');})).length && e.classList.add(a.isHighlighted));
527      return e.tabIndex = e.classList.contains('is-locked') ? -1 : 0, this.emit('render:day', e, t), e;
528    }, e.prototype.renderFooter = function () {
529      var t = document.createElement('div');
530      if (t.className = a.containerFooter, this.options.footerHTML ? t.innerHTML = this.options.footerHTML : t.innerHTML = '\n      <span class="' + a.previewDateRange + '"></span>\n      <button type="button" class="' + a.buttonCancel + '">' + this.options.buttonText.cancel + '</button>\n      <button type="button" class="' + a.buttonApply + '">' + this.options.buttonText.apply + '</button>\n      ', this.options.singleMode) {
531        if (1 === this.datePicked.length) {
532          var e = this.datePicked[0].format(this.options.format, this.options.lang);
533          t.querySelector('.' + a.previewDateRange).innerHTML = e;
534        }
535      } else if (1 === this.datePicked.length && t.querySelector('.' + a.buttonApply).setAttribute('disabled', ''), 2 === this.datePicked.length) {
536        e = this.datePicked[0].format(this.options.format, this.options.lang);
537        var i = this.datePicked[1].format(this.options.format, this.options.lang);
538        t.querySelector('.' + a.previewDateRange).innerHTML = '' + e + this.options.delimiter + i;
539      }
540      return this.emit('render:footer', t), t;
541    }, e.prototype.renderWeekNumber = function (t) {
542      var e = document.createElement('div'), i = t.getWeek(this.options.firstDay);
543      return e.className = a.weekNumber, e.innerHTML = 53 === i && 0 === t.getMonth() ? '53 / 1' : i, e;
544    }, e.prototype.renderTooltip = function () {
545      var t = document.createElement('div');
546      return t.className = a.containerTooltip, t;
547    }, e.prototype.weekdayName = function (t, e) {return void 0 === e && (e = 'short'), new Date(1970, 0, t, 12, 0, 0, 0).toLocaleStr
547ing(this.options.lang, { weekday: e });}, e.prototype.calcSkipDays = function (t) {
548      var e = t.getDay() - this.options.firstDay;
549      return e < 0 && (e += 7), e;
550    }, e;
551  }(s.LPCore);
552  e.Calendar = c;
553}, function (t, e, i) {
554  'use strict';
555  var n,
556    o = this && this.__extends || (n = function (t, e) {return (n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (t, e) {t.__proto__ = e;} || function (t, e) {for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);})(t, e);}, function (t, e) {
557      function i () {this.constructor = t;}
558
559      n(t, e), t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype, new i);
560    }), s = this && this.__assign || function () {
561      return (s = Object.assign || function (t) {
562        for (var e, i = 1, n = arguments.length; i < n; i++) for (var o in e = arguments[i]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
563        return t;
564      }).apply(this, arguments);
565    };
566  Object.defineProperty(e, '__esModule', { value: !0 });
567  var r = i(7), a = i(0), l = i(1), c = function (t) {
568    function e (e) {
569      var i = t.call(this) || this;
570      i.datePicked = [], i.calendars = [], i.options = {
571        element: null,
572        elementEnd: null,
573        parentEl: null,
574        firstDay: 1,
575        format: 'YYYY-MM-DD',
576        lang: 'en-US',
577        delimiter: ' - ',
578        numberOfMonths: 1,
579        numberOfColumns: 1,
580        startDate: null,
581        endDate: null,
582        zIndex: 9999,
583        position: 'auto',
584        selectForward: !1,
585        selectBackward: !1,
586        splitView: !1,
587        inlineMode: !1,
588        singleMode: !0,
589        autoApply: !0,
590        allowRepick: !1,
591        showWeekNumbers: !1,
592        showTooltip: !0,
593        scrollToDate: !0,
594        mobileFriendly: !0,
595        resetButton: !1,
596        autoRefresh: !1,
597        lockDaysFormat: 'YYYY-MM-DD',
598        lockDays: [],
599        disallowLockDaysInRange: !1,
600        lockDaysInclusivity: '[]',
601        highlightedDaysFormat: 'YYYY-MM-DD',
602        highlightedDays: [],
603        dropdowns: { minYear: 1990, maxYear: null, months: !1, years: !1 },
604        buttonText: {
605          apply: 'Apply',
606          cancel: 'Cancel',
607          previousMonth: '<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.919 0l2.748 2.667L5.333 8l5.334 5.333L7.919 16 0 8z" fill-rule="nonzero"/></svg>',
608          nextMonth: '<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.748 16L0 13.333 5.333 8 0 2.667 2.748 0l7.919 8z" fill-rule="nonzero"/></svg>',
609          reset: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">\n        <path d="M0 0h24v24H0z" fill="none"/>\n        <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/>\n      </svg>'
610        },
611        tooltipText: { one: 'day', other: 'days' }
612      }, i.options = s(s({}, i.options), e.element.dataset), Object.keys(i.options).forEach((function (t) {'true' !== i.options[t] && 'false' !== i.options[t] || (i.options[t] = 'true' === i.options[t]);}));
613      var n = s(s({}, i.options.dropdowns), e.dropdowns), o = s(s({}, i.options.buttonText), e.buttonText),
614        r = s(s({}, i.options.tooltipText), e.tooltipText);
615      i.options = s(s({}, i.options), e), i.options.dropdowns = s({}, n), i.options.buttonText = s({}, o), i.options.tooltipText = s({}, r), i.options.elementEnd || (i.options.allowRepick = !1), i.options.lockDays.length && (i.options.lockDays = a.DateTime.convertArray(i.options.lockDays, i.options.lockDaysFormat)), i.options.highlightedDays.length && (i.options.highlightedDays = a.DateTime.convertArray(i.options.highlightedDays, i.options.highlightedDaysFormat));
616      var l = i.parseInput(), c = l[0], h = l[1];
617      i.options.startDate && (i.options.singleMode || i.options.endDate) && (c = new a.DateTime(i.options.startDate, i.options.format, i.options.lang)), c && i.options.endDate && (h = new a.DateTime(i.options.endDate, i.options.format, i.options.lang)), c instanceof a.DateTime && !isNaN(c.getTime()) && (i.options.startDate = c), i.options.startDate && h instanceof a.DateTime && !isNaN(h.getTime()) && (i.options.endDate = h), !i.options.singleMode || i.options.startDate instanceof a.DateTime || (i.options.startDate = null), i.options.singleMode || i.options.startDate instanceof a.DateTime && i.options.endDate instanceof a.DateTime || (i.options.startDate = null, i.options.endDate = null);
618      for (var p = 0; p < i.options.numberOfMonths; p += 1) {
619        var d = i.options.startDate instanceof a.DateTime ? i.options.startDate.clone() : new a.DateTime;
620        if (!i.options.startDate && (0 === p || i.options.splitView)) {
621          var u = i.options.maxDate ? new a.DateTime(i.options.maxDate) : null,
622            m = i.options.minDate ? new a.DateTime(i.options.minDate) : null, f = i.options.numberOfMonths - 1;
623          m && u && d.isAfter(u) ? (d = m.clone()).setDate(1) : !m && u && d.isAfter(u) && ((d = u.clone()).setDate(1), d.setMonth(d.getMonth() - f));
624        }
625        d.setDate(1), d.setMonth(d.getMonth() + p), i.calendars[p] = d;
626      }
627      if (i.options.showTooltip) if (i.options.tooltipPluralSelector) i.pluralSelector = i.options.tooltipPluralSelector; else try {
628        var g = new Intl.PluralRules(i.options.lang);
629        i.pluralSelector = g.select.bind(g);
630      } catch (t) {i.pluralSelector = function (t) {return 0 === Math.abs(t) ? 'one' : 'other';};}
631      return i;
632    }
633
634    return o(e, t), e.add = function (t, e) {l.Litepicker.prototype[t] = e;}, e.prototype.DateTime = function (t, e) {return t ? new a.DateTime(t, e) : new a.DateTime;}, e.prototype.init = function () {
635      var t = this;
636      this.options.plugins && this.options.plugins.length && this.options.plugins.forEach((function (e) {l.Litepicker.prototype.hasOwnProperty(e) ? l.Litepicker.prototype[e].init.call(t, t) : console.warn('Litepicker: plugin «' + e + '» not found.');}));
637    }, e.prototype.parseInput = function () {
638      var t = this.options.delimiter, e = new RegExp('' + t),
639        i = this.options.element instanceof HTMLInputElement ? this.options.element.value.split(t) : [];
640      if (this.options.elementEnd) {if (this.options.element instanceof HTMLInputElement && this.options.element.value.length && this.options.elementEnd instanceof HTMLInputElement && this.options.elementEnd.value.length) return [new a.DateTime(this.options.element.value, this.options.format), new a.DateTime(this.options.elementEnd.value, this.options.format)];} else if (this.options.singleMode) {if (this.options.element instanceof HTMLInputElement && this.options.element.value.length) return [new a.DateTime(this.options.element.value, this.options.format)];} else if (this.options.element instanceof HTMLInputElement && e.test(this.options.element.value) && i.length && i.length % 2 == 0) {
641        var n = i.slice(0, i.length / 2).join(t), o = i.slice(i.length / 2).join(t);
642        return [new a.DateTime(n, this.options.format), new a.DateTime(o, this.options.format)];
643      }
644      return [];
645    }, e.prototype.isShowning = function () {return this.ui && 'none' !== this.ui.style.display;}, e.prototype.findPosition = function (t) {
646      var e = t.getBoundingClientRect(), i = this.ui.getBoundingClientRect(), n = this.options.position.split(' '),
647        o = window.scrollX || window.pageXOffset, s = window.scrollY || window.pageYOffset, r = 0, a = 0;
648      if ('auto' !== n[0] && /top|bottom/.test(n[0])) r = e[n[0]] + s, 'top' === n[0] && (r -= i.height); else {
649        r = e.bottom + s;
650        var l = e.bottom + i.height > window.innerHeight, c = e.top + s - i.height >= i.height;
651        l && c && (r = e.top + s - i.height);
652      }
653      if (/left|right/.test(n[0]) || n[1] && 'auto' !== n[1] && /left|right/.test(n[1])) a = /left|right/.test(n[0]) ? e[n[0]] + o : e[n[1]] + o, 'right' !== n[0] && 'right' !== n[1] || (a -= i.width); else {
654        a = e.left + o;
655        l = e.left + i.width > window.innerWidth;
656        var h = e.right + o - i.width >= 0;
657        l && h && (a = e.right + o - i.width);
658      }
659      return { left: a, top: r };
660    }, e;
661  }(r.EventEmitter);
662  e.LPCore = c;
663}, function (t, e, i) {
664  'use strict';
665  var n, o = 'object' == typeof Reflect ? Reflect : null,
666    s = o && 'function' == typeof o.apply ? o.apply : function (t, e, i) {return Function.prototype.apply.call(t, e, i);};
667  n = o && 'function' == typeof o.ownKeys ? o.ownKeys : Object.getOwnPropertySymbols ? function (t) {return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));} : function (t) {return Object.getOwnPropertyNames(t);};
668  var r = Number.isNaN || function (t) {return t != t;};
669
670  function a () {a.init.call(this);}
671
672  t.exports = a, a.EventEmitter = a, a.prototype._events = void 0, a.prototype._eventsCount = 0, a.prototype._maxListeners = void 0;
673  var l = 10;
674
675  function c (t) {return void 0 === t._maxListeners ? a.defaultMaxListeners : t._maxListeners;}
676
677  function h (t, e, i, n) {
678    var o, s, r, a;
679    if ('function' != typeof i) throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof i);
680    if (void 0 === (s = t._events) ? (s = t._events = Object.create(null), t._eventsCount = 0) : (void 0 !== s.newListener && (t.emit('newListener', e, i.listener ? i.listener : i), s = t._events), r = s[e]), void 0 === r) r = s[e] = i, ++t._eventsCount; else if ('function' == typeof r ? r = s[e] = n ? [i, r] : [r, i] : n ? r.unshift(i) : r.push(i), (o = c(t)) > 0 && r.length > o && !r.warned) {
681      r.warned = !0;
682      var l = new Error('Possible EventEmitter memory leak detected. ' + r.length + ' ' + String(e) + ' listeners added. Use emitter.setMaxListeners() to increase limit');
683      l.name = 'MaxListenersExceededWarning', l.emitter = t, l.type = e, l.count = r.length, a = l, console && console.warn && console.warn(a);
684    }
685    return t;
686  }
687
688  function p () {
689    for (var t = [], e = 0; e < arguments.length; e++) t.push(arguments[e]);
690    this.fired || (this.target.removeListener(this.type, this.wrapFn), this.fired = !0, s(this.listener, this.target, t));
691  }
692
693  function d (t, e, i) {
694    var n = { fired: !1, wrapFn: void 0, target: t, type: e, listener: i }, o = p.bind(n);
695    return o.listener = i, n.wrapFn = o, o;
696  }
697
698  function u (t, e, i) {
699    var n = t._events;
700    if (void 0 === n) return [];
701    var o = n[e];
702    return void 0 === o ? [] : 'function' == typeof o ? i ? [o.listener || o] : [o] : i ? function (t) {
703      for (var e = new Array(t.length), i = 0; i < e.length; ++i) e[i] = t[i].listener || t[i];
704      return e;
705    }(o) : f(o, o.length);
706  }
707
708  function m (t) {
709    var e = this._events;
710    if (void 0 !== e) {
711      var i = e[t];
712      if ('function' == typeof i) return 1;
713      if (void 0 !== i) return i.length;
714    }
715    return 0;
716  }
717
718  function f (t, e) {
719    for (var i = new Array(e), n = 0; n < e; ++n) i[n] = t[n];
720    return i;
721  }
722
723  Object.defineProperty(a, 'defaultMaxListeners', {
724    enumerable: !0,
725    get: function () {return l;},
726    set: function (t) {
727      if ('number' != typeof t || t < 0 || r(t)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + '.');
728      l = t;
729    }
730  }), a.init = function () {void 0 !== this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;}, a.prototype.setMaxListeners = function (t) {
731    if ('number' != typeof t || t < 0 || r(t)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + '.');
732    return this._maxListeners = t, this;
733  }, a.prototype.getMaxListeners = function () {return c(this);}, a.prototype.emit = function (t) {
734    for (var e = [], i = 1; i < arguments.length; i++) e.push(arguments[i]);
735    var n = 'error' === t, o = this._events;
736    if (void 0 !== o) n = n && void 0 === o.error; else if (!n) return !1;
737    if (n) {
738      var r;
739      if (e.length > 0 && (r = e[0]), r instanceof Error) throw r;
740      var a = new Error('Unhandled error.' + (r ? ' (' + r.message + ')' : ''));
741      throw a.context = r, a;
742    }
743    var l = o[t];
744    if (void 0 === l) return !1;
745    if ('function' == typeof l) s(l, this, e); else {
746      var c = l.length, h = f(l, c);
747      for (i = 0; i < c; ++i) s(h[i], this, e);
748    }
749    return !0;
750  }, a.prototype.addListener = function (t, e) {return h(this, t, e, !1);}, a.prototype.on = a.prototype.addListener, a.prototype.prependListener = function (t, e) {return h(this, t, e, !0);}, a.prototype.once = function (t, e) {
751    if ('function' != typeof e) throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e);
752    return this.on(t, d(this, t, e)), this;
753  }, a.prototype.prependOnceListener = function (t, e) {
754    if ('function' != typeof e) throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e);
755    return this.prependListener(t, d(this, t, e)), this;
756  }, a.prototype.removeListener = function (t, e) {
757    var i, n, o, s, r;
758    if ('function' != typeof e) throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e);
759    if (void 0 === (n = this._events)) return this;
760    if (void 0 === (i = n[t])) return this;
761    if (i === e || i.listener === e) 0 == --this._eventsCount ? this._events = Object.create(null) : (delete n[t], n.removeListener && this.emit('removeListener', t, i.listener || e)); else if ('function' != typeof i) {
762      for (o = -1, s = i.length - 1; s >= 0; s--) if (i[s] === e || i[s].listener === e) {
763        r = i[s].listener, o = s;
764        break;
765      }
766      if (o < 0) return this;
767      0 === o ? i.shift() : function (t, e) {
768        for (; e + 1 < t.length; e++) t[e] = t[e + 1];
769        t.pop();
770      }(i, o), 1 === i.length && (n[t] = i[0]), void 0 !== n.removeListener && this.emit('removeListener', t, r || e);
771    }
772    return this;
773  }, a.prototype.off = a.prototype.removeListener, a.prototype.removeAllListeners = function (t) {
774    var e, i, n;
775    if (void 0 === (i = this._events)) return this;
776    if (void 0 === i.removeListener) return 0 === arguments.length ? (this._events = Object.create(null), this._eventsCount = 0) : void 0 !== i[t] && (0 == --this._eventsCount ? this._events = Object.create(null) : delete i[t]), this;
777    if (0 === arguments.length) {
778      var o, s = Object.keys(i);
779      for (n = 0; n < s.length; ++n) 'removeListener' !== (o = s[n]) && this.removeAllListeners(o);
780      return this.removeAllListeners('removeListener'), this._events = Object.create(null), this._eventsCount = 0, this;
781    }
782    if ('function' == typeof (e = i[t])) this.removeListener(t, e); else if (void 0 !== e) for (n = e.length - 1; n >= 0; n--) this.removeListener(t, e[n]);
783    return this;
784  }, a.prototype.listeners = function (t) {return u(this, t, !0);}, a.prototype.rawListeners = function (t) {return u(this, t, !1);}, a.listenerCount = function (t, e) {return 'function' == typeof t.listenerCount ? t.listenerCount(e) : m.call(t, e);}, a.prototype.listenerCount = m, a.prototype.eventNames = function () {return this._eventsCount > 0 ? n(this._events) : [];};
785}, function (t, e, i) {
786  (e = i(9)(!1)).push([t.i, 
vendor: 10,875 bytes, line 786
786':root{--litepicker-container-months-color-bg: #fff;--litepicker-container-months-box-shadow-color: #ddd;--litepicker-footer-color-bg: #fafafa;--litepicker-footer-box-shadow-color: #ddd;--litepicker-tooltip-color-bg: #fff;--litepicker-month-header-color: #333;--litepicker-button-prev-month-color: #9e9e9e;--litepicker-button-next-month-color: #9e9e9e;--litepicker-button-prev-month-color-hover: #2196f3;--litepicker-button-next-month-color-hover: #2196f3;--litepicker-month-width: calc(var(--litepicker-day-width) * 7);--litepicker-month-weekday-color: #9e9e9e;--litepicker-month-week-number-color: #9e9e9e;--litepicker-day-width: 38px;--litepicker-day-color: #333;--litepicker-day-color-hover: #2196f3;--litepicker-is-today-color: #f44336;--litepicker-is-in-range-color: #bbdefb;--litepicker-is-locked-color: #9e9e9e;--litepicker-is-start-color: #fff;--litepicker-is-start-color-bg: #2196f3;--litepicker-is-end-color: #fff;--litepicker-is-end-color-bg: #2196f3;--litepicker-button-cancel-color: #fff;--litepicker-button-cancel-color-bg: #9e9e9e;--litepicker-button-apply-color: #fff;--litepicker-button-apply-color-bg: #2196f3;--litepicker-button-reset-color: #909090;--litepicker-button-reset-color-hover: #2196f3;--litepicker-highlighted-day-color: #333;--litepicker-highlighted-day-color-bg: #ffeb3b}.show-week-numbers{--litepicker-month-width: calc(var(--litepicker-day-width) * 8)}.litepicker{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-size:0.8em;display:none}.litepicker button{border:none;background:none}.litepicker .container__main{display:-webkit-box;display:-ms-flexbox;display:flex}.litepicker .container__months{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;background-color:var(--litepicker-container-months-color-bg);border-radius:5px;-webkit-box-shadow:0 0 5px var(--litepicker-container-months-box-shadow-color);box-shadow:0 0 5px var(--litepicker-container-months-box-shadow-color);width:calc(var(--litepicker-month-width) + 10px);-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__months.columns-2{width:calc((var(--litepicker-month-width) * 2) + 20px)}.litepicker .container__months.columns-3{width:calc((var(--litepicker-month-width) * 3) + 30px)}.litepicker .container__months.columns-4{width:calc((var(--litepicker-month-width) * 4) + 40px)}.litepicker .container__months.split-view .month-item-header .button-previous-month,.litepicker .container__months.split-view .month-item-header .button-next-month{visibility:visible}.litepicker .container__months .month-item{padding:5px;width:var(--litepicker-month-width);-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__months .month-item-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-weight:500;padding:10px 5px;text-align:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--litepicker-month-header-color)}.litepicker .container__months .month-item-header div{-webkit-box-flex:1;-ms-flex:1;flex:1}.litepicker .container__months .month-item-header div>.month-item-name{margin-right:5px}.litepicker .container__months .month-item-header div>.month-item-year{padding:0}.litepicker .container__months .month-item-header .reset-button{color:var(--litepicker-button-reset-color)}.litepicker .container__months .month-item-header .reset-button>svg{fill:var(--litepicker-button-reset-color)}.litepicker .container__months .month-item-header .reset-button *{pointer-events:none}.litepicker .container__months .month-item-header .reset-button:hover{color:var(--litepicker-button-reset-color-hover)}.litepicker .container__months .month-item-header .reset-button:hover>svg{fill:var(--litepicker-button-reset-color-hover)}.litepicker .container__months .month-item-header .button-previous-month,.litepicker .container__months .month-item-header .button-next-month{visibility:hidden;text-decoration:none;padding:3px 5px;border-radius:3px;-webkit-transition:color 0.3s, border 0.3s;transition:color 0.3s, border 0.3s;cursor:default}.litepicker .container__months .month-item-header .button-previous-month *,.litepicker .container__months .month-item-header .button-next-month *{pointer-events:none}.litepicker .container__months .month-item-header .button-previous-month{color:var(--litepicker-button-prev-month-color)}.litepicker .container__months .month-item-header .button-previous-month>svg,.litepicker .container__months .month-item-header .button-previous-month>img{fill:var(--litepicker-button-prev-month-color)}.litepicker .container__months .month-item-header .button-previous-month:hover{color:var(--litepicker-button-prev-month-color-hover)}.litepicker .container__months .month-item-header .button-previous-month:hover>svg{fill:var(--litepicker-button-prev-month-color-hover)}.litepicker .container__months .month-item-header .button-next-month{color:var(--litepicker-button-next-month-color)}.litepicker .container__months .month-item-header .button-next-month>svg,.litepicker .container__months .month-item-header .button-next-month>img{fill:var(--litepicker-button-next-month-color)}.litepicker .container__months .month-item-header .button-next-month:hover{color:var(--litepicker-button-next-month-color-hover)}.litepicker .container__months .month-item-header .button-next-month:hover>svg{fill:var(--litepicker-button-next-month-color-hover)}.litepicker .container__months .month-item-weekdays-row{display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;color:var(--litepicker-month-weekday-color)}.litepicker .container__months .month-item-weekdays-row>div{padding:5px 0;font-size:85%;-webkit-box-flex:1;-ms-flex:1;flex:1;width:var(--litepicker-day-width);text-align:center}.litepicker .container__months .month-item:first-child .button-previous-month{visibility:visible}.litepicker .container__months .month-item:last-child .button-next-month{visibility:visible}.litepicker .container__months .month-item.no-previous-month .button-previous-month{visibility:hidden}.litepicker .container__months .month-item.no-next-month .button-next-month{visibility:hidden}.litepicker .container__days{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;justify-self:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;text-align:center;-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__days>div,.litepicker .container__days>a{padding:5px 0;width:var(--litepicker-day-width)}.litepicker .container__days .day-item{color:var(--litepicker-day-color);text-align:center;text-decoration:none;border-radius:3px;-webkit-transition:color 0.3s, border 0.3s;transition:color 0.3s, border 0.3s;cursor:default}.litepicker .container__days .day-item:hover{color:var(--litepicker-day-color-hover);-webkit-box-shadow:inset 0 0 0 1px var(--litepicker-day-color-hover);box-shadow:inset 0 0 0 1px var(--litepicker-day-color-hover)}.litepicker .container__days .day-item.is-today{color:var(--litepicker-is-today-color)}.litepicker .container__days .day-item.is-locked{color:var(--litepicker-is-locked-color)}.litepicker .container__days .day-item.is-locked:hover{color:var(--litepicker-is-locked-color);-webkit-box-shadow:none;box-shadow:none;cursor:default}.litepicker .container__days .day-item.is-in-range{background-color:var(--litepicker-is-in-range-color);border-radius:0}.litepicker .container__days .day-item.is-start-date{color:var(--litepicker-is-start-color);background-color:var(--litepicker-is-start-color-bg);border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:0;border-bottom-right-radius:0}.litepicker .container__days .day-item.is-start-date.is-flipped{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-end-date{color:var(--litepicker-is-end-color);background-color:var(--litepicker-is-end-color-bg);border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-end-date.is-flipped{border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:0;border-bottom-right-radius:0}.litepicker .container__days .day-item.is-start-date.is-end-date{border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-highlighted{color:var(--litepicker-highlighted-day-color);background-color:var(--litepicker-highlighted-day-color-bg)}.litepicker .container__days .week-number{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:var(--litepicker-month-week-number-color);font-size:85%}.litepicker .container__footer{text-align:right;padding:10px 5px;margin:0 5px;background-color:var(--litepicker-footer-color-bg);-webkit-box-shadow:inset 0px 3px 3px 0px var(--litepicker-footer-box-shadow-color);box-shadow:inset 0px 3px 3px 0px var(--litepicker-footer-box-shadow-color);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.litepicker .container__footer .preview-date-range{margin-right:10px;font-size:90%}.litepicker .container__footer .button-cancel{background-color:var(--litepicker-button-cancel-color-bg);color:var(--litepicker-button-cancel-color);border:0;padding:3px 7px 4px;border-radius:3px}.litepicker .container__footer .button-cancel *{pointer-events:none}.litepicker .container__footer .button-apply{background-color:var(--litepicker-button-apply-color-bg);color:var(--litepicker-button-apply-color);border:0;padding:3px 7px 4px;border-radius:3px;margin-left:10px;margin-right:10px}.litepicker .container__footer .button-apply:disabled{opacity:0.7}.litepicker .container__footer .button-apply *{pointer-events:none}.litepicker .container__tooltip{position:absolute;margin-top:-4px;padding:4px 8px;border-radius:4px;background-color:var(--litepicker-tooltip-color-bg);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25);box-shadow:0 1px 3px rgba(0,0,0,0.25);white-space:nowrap;font-size:11px;pointer-events:none;visibility:hidden}.litepicker .container__tooltip:before{position:absolute;bottom:-5px;left:calc(50% - 5px);border-top:5px solid rgba(0,0,0,0.12);border-right:5px solid transparent;border-left:5px solid transparent;content:""}.litepicker .container__tooltip:after{position:absolute;bottom:-4px;left:calc(50% - 4px);border-top:4px solid var(--litepicker-tooltip-color-bg);border-right:4px solid transparent;border-left:4px solid transparent;content:""}\n',
786 '']), e.locals = {
787    showWeekNumbers: 'show-week-numbers',
788    litepicker: 'litepicker',
789    containerMain: 'container__main',
790    containerMonths: 'container__months',
791    columns2: 'columns-2',
792    columns3: 'columns-3',
793    columns4: 'columns-4',
794    splitView: 'split-view',
795    monthItemHeader: 'month-item-header',
796    buttonPreviousMonth: 'button-previous-month',
797    buttonNextMonth: 'button-next-month',
798    monthItem: 'month-item',
799    monthItemName: 'month-item-name',
800    monthItemYear: 'month-item-year',
801    resetButton: 'reset-button',
802    monthItemWeekdaysRow: 'month-item-weekdays-row',
803    noPreviousMonth: 'no-previous-month',
804    noNextMonth: 'no-next-month',
805    containerDays: 'container__days',
806    dayItem: 'day-item',
807    isToday: 'is-today',
808    isLocked: 'is-locked',
809    isInRange: 'is-in-range',
810    isStartDate: 'is-start-date',
811    isFlipped: 'is-flipped',
812    isEndDate: 'is-end-date',
813    isHighlighted: 'is-highlighted',
814    weekNumber: 'week-number',
815    containerFooter: 'container__footer',
816    previewDateRange: 'preview-date-range',
817    buttonCancel: 'button-cancel',
818    buttonApply: 'button-apply',
819    containerTooltip: 'container__tooltip'
820  }, t.exports = e;
821}, function (t, e, i) {
822  'use strict';
823  t.exports = function (t) {
824    var e = [];
825    return e.toString = function () {
826      return this.map((function (e) {
827        var i = function (t, e) {
828          var i = t[1] || '', n = t[3];
829          if (!n) return i;
830          if (e && 'function' == typeof btoa) {
831            var o = (r = n, a = btoa(unescape(encodeURIComponent(JSON.stringify(r)))), l = 'sourceMappingURL=data:application/json;charset=utf-8;base64,'.concat(a), '/*# '.concat(l, ' */')),
832              s = n.sources.map((function (t) {return '/*# sourceURL='.concat(n.sourceRoot || '').concat(t, ' */');}));
833            return [i].concat(s).concat([o]).join('\n');
834          }
835          var r, a, l;
836          return [i].join('\n');
837        }(e, t);
838        return e[2] ? '@media '.concat(e[2], ' {').concat(i, '}') : i;
839      })).join('');
840    }, e.i = function (t, i, n) {
841      'string' == typeof t && (t = [[null, t, '']]);
842      var o = {};
843      if (n) for (var s = 0; s < this.length; s++) {
844        var r = this[s][0];
845        null != r && (o[r] = !0);
846      }
847      for (var a = 0; a < t.length; a++) {
848        var l = [].concat(t[a]);
849        n && o[l[0]] || (i && (l[2] ? l[2] = ''.concat(i, ' and ').concat(l[2]) : l[2] = i), e.push(l));
850      }
851    }, e;
852  };
853}, function (t, e, i) {
854  'use strict';
855  var n, o = {},
856    s = function () {return void 0 === n && (n = Boolean(window && document && document.all && !window.atob)), n;},
857    r = function () {
858      var t = {};
859      return function (e) {
860        if (void 0 === t[e]) {
861          var i = document.querySelector(e);
862          if (window.HTMLIFrameElement && i instanceof window.HTMLIFrameElement) try {i = i.contentDocument.head;} catch (t) {i = null;}
863          t[e] = i;
864        }
865        return t[e];
866      };
867    }();
868
869  function a (t, e) {
870    for (var i = [], n = {}, o = 0; o < t.length; o++) {
871      var s = t[o], r = e.base ? s[0] + e.base : s[0], a = { css: s[1], media: s[2], sourceMap: s[3] };
872      n[r] ? n[r].parts.push(a) : i.push(n[r] = { id: r, parts: [a] });
873    }
874    return i;
875  }
876
877  function l (t, e) {
878    for (var i = 0; i < t.length; i++) {
879      var n = t[i], s = o[n.id], r = 0;
880      if (s) {
881        for (s.refs++; r < s.parts.length; r++) s.parts[r](n.parts[r]);
882        for (; r < n.parts.length; r++) s.parts.push(g(n.parts[r], e));
883      } else {
884        for (var a = []; r < n.parts.length; r++) a.push(g(n.parts[r], e));
885        o[n.id] = { id: n.id, refs: 1, parts: a };
886      }
887    }
888  }
889
890  function c (t) {
891    var e = document.createElement('style');
892    if (void 0 === t.attributes.nonce) {
893      var n = i.nc;
894      n && (t.attributes.nonce = n);
895    }
896    if (Object.keys(t.attributes).forEach((function (i) {e.setAttribute(i, t.attributes[i]);})), 'function' == typeof t.insert) t.insert(e); else {
897      var o = r(t.insert || 'head');
898      if (!o) throw new Error('Couldn\'t find a style target. This probably means that the value for the \'insert\' parameter is invalid.');
899      o.appendChild(e);
900    }
901    return e;
902  }
903
904  var h, p = (h = [], function (t, e) {return h[t] = e, h.filter(Boolean).join('\n');});
905
906  function d (t, e, i, n) {
907    var o = i ? '' : n.css;
908    if (t.styleSheet) t.styleSheet.cssText = p(e, o); else {
909      var s = document.createTextNode(o), r = t.childNodes;
910      r[e] && t.removeChild(r[e]), r.length ? t.insertBefore(s, r[e]) : t.appendChild(s);
911    }
912  }
913
914  function u (t, e, i) {
915    var n = i.css, o = i.media, s = i.sourceMap;
916    if (o && t.setAttribute('media', o), s && btoa && (n += '\n/*# sourceMappingURL=data:application/json;base64,'.concat(btoa(unescape(encodeURIComponent(JSON.stringify(s)))), ' */')), t.styleSheet) t.styleSheet.cssText = n; else {
917      for (; t.firstChild;) t.removeChild(t.firstChild);
918      t.appendChild(document.createTextNode(n));
919    }
920  }
921
922  var m = null, f = 0;
923
924  function g (t, e) {
925    var i, n, o;
926    if (e.singleton) {
927      var s = f++;
928      i = m || (m = c(e)), n = d.bind(null, i, s, !1), o = d.bind(null, i, s, !0);
929    } else i = c(e), n = u.bind(null, i, e), o = function () {
930      !function (t) {
931        if (null === t.parentNode) return !1;
932        t.parentNode.removeChild(t);
933      }(i);
934    };
935    return n(t), function (e) {
936      if (e) {
937        if (e.css === t.css && e.media === t.media && e.sourceMap === t.sourceMap) return;
938        n(t = e);
939      } else o();
940    };
941  }
942
943  t.exports = function (t, e) {
944    (e = e || {}).attributes = 'object' == typeof e.attributes ? e.attributes : {}, e.singleton || 'boolean' == typeof e.singleton || (e.singleton = s());
945    var i = a(t, e);
946    return l(i, e), function (t) {
947      for (var n = [], s = 0; s < i.length; s++) {
948        var r = i[s], c = o[r.id];
949        c && (c.refs--, n.push(c));
950      }
951      t && l(a(t, e), e);
952      for (var h = 0; h < n.length; h++) {
953        var p = n[h];
954        if (0 === p.refs) {
955          for (var d = 0; d < p.parts.length; d++) p.parts[d]();
956          delete o[p.id];
957        }
958      }
959    };
960  };
961}, function (t, e, i) {
962  'use strict';
963  var n = this && this.__assign || function () {
964    return (n = Object.assign || function (t) {
965      for (var e, i = 1, n = arguments.length; i < n; i++) for (var o in e = arguments[i]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
966      return t;
967    }).apply(this, arguments);
968  };
969  Object.defineProperty(e, '__esModule', { value: !0 });
970  var o = i(0), s = i(1), r = i(2);
971  s.Litepicker.prototype.show = function (t) {
972    void 0 === t && (t = null), this.emit('before:show', t);
973    var e = t || this.options.element;
974    if (this.triggerElement = e, !this.isShowning()) {
975      if (this.options.inlineMode) return this.ui.style.position = 'relative', this.ui.style.display = 'inline-block', this.ui.style.top = null, this.ui.style.left = null, this.ui.style.bottom = null, void (this.ui.style.right = null);
976      this.scrollToDate(t), this.render(), this.ui.style.position = 'absolute', this.ui.style.display = 'block', this.ui.style.zIndex = this.options.zIndex;
977      var i = this.findPosition(e);
978      this.ui.style.top = i.top + 'px', this.ui.style.left = i.left + 'px', this.ui.style.right = null, this.ui.style.bottom = null, this.emit('show', t);
979    }
980  }, s.Litepicker.prototype.hide = function () {this.isShowning() && (this.datePicked.length = 0, this.updateInput(), this.options.inlineMode ? this.render() : (this.ui.style.display = 'none', this.emit('hide')));}, s.Litepicker.prototype.getDate = function () {return this.getStartDate();}, s.Litepicker.prototype.getStartDate = function () {return this.options.startDate ? this.options.startDate.clone() : null;}, s.Litepicker.prototype.getEndDate = function () {return this.options.endDate ? this.options.endDate.clone() : null;}, s.Litepicker.prototype.setDate = function (t, e) {
981    void 0 === e && (e = !1);
982    var i = new o.DateTime(t, this.options.format, this.options.lang);
983    r.dateIsLocked(i, this.options, [i]) && !e ? this.emit('error:date', i) : (this.setStartDate(t), this.options.inlineMode && this.render(), this.emit('selected', this.getDate()));
984  }, s.Litepicker.prototype.setStartDate = function (t) {t && (this.options.startDate = new o.DateTime(t, this.options.format, this.options.lang), this.updateInput());}, s.Litepicker.prototype.setEndDate = function (t) {t && (this.options.endDate = new o.DateTime(t, this.options.format, this.options.lang), this.options.startDate.getTime() > this.options.endDate.getTime() && (this.options.endDate = this.options.startDate.clone(), this.options.startDate = new o.DateTime(t, this.options.format, this.options.lang)), this.updateInput());}, s.Litepicker.prototype.setDateRange = function (t, e, i) {
985    void 0 === i && (i = !1), this.triggerElement = void 0;
986    var n = new o.DateTime(t, this.options.format, this.options.lang),
987      s = new o.DateTime(e, this.options.format, this.options.lang);
988    (this.options.disallowLockDaysInRange ? r.rangeIsLocked([n, s], this.options) : r.dateIsLocked(n, this.options, [n, s]) || r.dateIsLocked(s, this.options, [n, s])) && !i ? this.emit
988('error:range', [n, s]) : (this.setStartDate(n), this.setEndDate(s), this.options.inlineMode && this.render(), this.updateInput(), this.emit('selected', this.getStartDate(), this.getEndDate()));
989  }, s.Litepicker.prototype.gotoDate = function (t, e) {
990    void 0 === e && (e = 0);
991    var i = new o.DateTime(t);
992    i.setDate(1), this.calendars[e] = i.clone(), this.render();
993  }, s.Litepicker.prototype.setLockDays = function (t) {this.options.lockDays = o.DateTime.convertArray(t, this.options.lockDaysFormat), this.render();}, s.Litepicker.prototype.setHighlightedDays = function (t) {this.options.highlightedDays = o.DateTime.convertArray(t, this.options.highlightedDaysFormat), this.render();}, s.Litepicker.prototype.setOptions = function (t) {
994    delete t.element, delete t.elementEnd, delete t.parentEl, t.startDate && (t.startDate = new o.DateTime(t.startDate, this.options.format, this.options.lang)), t.endDate && (t.endDate = new o.DateTime(t.endDate, this.options.format, this.options.lang));
995    var e = n(n({}, this.options.dropdowns), t.dropdowns), i = n(n({}, this.options.buttonText), t.buttonText),
996      s = n(n({}, this.options.tooltipText), t.tooltipText);
997    this.options = n(n({}, this.options), t), this.options.dropdowns = n({}, e), this.options.buttonText = n({}, i), this.options.tooltipText = n({}, s), !this.options.singleMode || this.options.startDate instanceof o.DateTime || (this.options.startDate = null, this.options.endDate = null), this.options.singleMode || this.options.startDate instanceof o.DateTime && this.options.endDate instanceof o.DateTime || (this.options.startDate = null, this.options.endDate = null);
998    for (var r = 0; r < this.options.numberOfMonths; r += 1) {
999      var a = this.options.startDate ? this.options.startDate.clone() : new o.DateTime;
1000      a.setDate(1), a.setMonth(a.getMonth() + r), this.calendars[r] = a;
1001    }
1002    this.options.lockDays.length && (this.options.lockDays = o.DateTime.convertArray(this.options.lockDays, this.options.lockDaysFormat)), this.options.highlightedDays.length && (this.options.highlightedDays = o.DateTime.convertArray(this.options.highlightedDays, this.options.highlightedDaysFormat)), this.render(), this.options.inlineMode && this.show(), this.updateInput();
1003  }, s.Litepicker.prototype.clearSelection = function () {this.options.startDate = null, this.options.endDate = null, this.datePicked.length = 0, this.updateInput(), this.isShowning() && this.render(), this.emit('clear:selection');}, s.Litepicker.prototype.destroy = function () {this.ui && this.ui.parentNode && (this.ui.parentNode.removeChild(this.ui), this.ui = null), this.emit('destroy');};
1004}]).Litepicker;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.