keen-dashboard-builder
Version:
Dashboard builder for Keen.io
1,465 lines (1,464 loc) • 10.1 MB
JavaScript
!(function(e, t) {
if ('object' == typeof exports && 'object' == typeof module)
module.exports = t();
else if ('function' == typeof define && define.amd) define([], t);
else {
var n = t();
for (var r in n) ('object' == typeof exports ? exports : e)[r] = n[r];
}
})(window, function() {
return (function(e) {
var t = {};
function n(r) {
if (t[r]) return t[r].exports;
var o = (t[r] = { i: r, l: !1, exports: {} });
return e[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports;
}
return (
(n.m = e),
(n.c = t),
(n.d = function(e, t, r) {
n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: r });
}),
(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 r = Object.create(null);
if (
(n.r(r),
Object.defineProperty(r, 'default', { enumerable: !0, value: e }),
2 & t && 'string' != typeof e)
)
for (var o in e)
n.d(
r,
o,
function(t) {
return e[t];
}.bind(null, o)
);
return r;
}),
(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 = ''),
n((n.s = 878))
);
})([
function(e, t, n) {
'use strict';
e.exports = n(472);
},
function(e, t, n) {
e.exports = n(476)();
},
function(e, t, n) {
'use strict';
function r(e) {
if (void 0 === e)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called"
);
return e;
}
n.d(t, 'a', function() {
return r;
});
},
function(e, t, n) {
'use strict';
function r(e, t, n) {
return (
t in e
? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
})
: (e[t] = n),
e
);
}
n.d(t, 'a', function() {
return r;
});
},
function(e, t, n) {
(function(e) {
e.exports = (function() {
'use strict';
var t, r;
function o() {
return t.apply(null, arguments);
}
function i(e) {
return (
e instanceof Array ||
'[object Array]' === Object.prototype.toString.call(e)
);
}
function a(e) {
return (
null != e &&
'[object Object]' === Object.prototype.toString.call(e)
);
}
function s(e) {
return void 0 === e;
}
function c(e) {
return (
'number' == typeof e ||
'[object Number]' === Object.prototype.toString.call(e)
);
}
function u(e) {
return (
e instanceof Date ||
'[object Date]' === Object.prototype.toString.call(e)
);
}
function l(e, t) {
var n,
r = [];
for (n = 0; n < e.length; ++n) r.push(t(e[n], n));
return r;
}
function f(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
function d(e, t) {
for (var n in t) f(t, n) && (e[n] = t[n]);
return (
f(t, 'toString') && (e.toString = t.toString),
f(t, 'valueOf') && (e.valueOf = t.valueOf),
e
);
}
function p(e, t, n, r) {
return Dt(e, t, n, r, !0).utc();
}
function h(e) {
return (
null == e._pf &&
(e._pf = {
empty: !1,
unusedTokens: [],
unusedInput: [],
overflow: -2,
charsLeftOver: 0,
nullInput: !1,
invalidMonth: null,
invalidFormat: !1,
userInvalidated: !1,
iso: !1,
parsedDateParts: [],
meridiem: null,
rfc2822: !1,
weekdayMismatch: !1
}),
e._pf
);
}
function g(e) {
if (null == e._isValid) {
var t = h(e),
n = r.call(t.parsedDateParts, function(e) {
return null != e;
}),
o =
!isNaN(e._d.getTime()) &&
t.overflow < 0 &&
!t.empty &&
!t.invalidMonth &&
!t.invalidWeekday &&
!t.weekdayMismatch &&
!t.nullInput &&
!t.invalidFormat &&
!t.userInvalidated &&
(!t.meridiem || (t.meridiem && n));
if (
(e._strict &&
(o =
o &&
0 === t.charsLeftOver &&
0 === t.unusedTokens.length &&
void 0 === t.bigHour),
null != Object.isFrozen && Object.isFrozen(e))
)
return o;
e._isValid = o;
}
return e._isValid;
}
function m(e) {
var t = p(NaN);
return null != e ? d(h(t), e) : (h(t).userInvalidated = !0), t;
}
r = Array.prototype.some
? Array.prototype.some
: function(e) {
for (
var t = Object(this), n = t.length >>> 0, r = 0;
r < n;
r++
)
if (r in t && e.call(this, t[r], r, t)) return !0;
return !1;
};
var b = (o.momentProperties = []);
function y(e, t) {
var n, r, o;
if (
(s(t._isAMomentObject) ||
(e._isAMomentObject = t._isAMomentObject),
s(t._i) || (e._i = t._i),
s(t._f) || (e._f = t._f),
s(t._l) || (e._l = t._l),
s(t._strict) || (e._strict = t._strict),
s(t._tzm) || (e._tzm = t._tzm),
s(t._isUTC) || (e._isUTC = t._isUTC),
s(t._offset) || (e._offset = t._offset),
s(t._pf) || (e._pf = h(t)),
s(t._locale) || (e._locale = t._locale),
b.length > 0)
)
for (n = 0; n < b.length; n++)
s((o = t[(r = b[n])])) || (e[r] = o);
return e;
}
var v = !1;
function _(e) {
y(this, e),
(this._d = new Date(null != e._d ? e._d.getTime() : NaN)),
this.isValid() || (this._d = new Date(NaN)),
!1 === v && ((v = !0), o.updateOffset(this), (v = !1));
}
function w(e) {
return e instanceof _ || (null != e && null != e._isAMomentObject);
}
function x(e) {
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
}
function M(e) {
var t = +e,
n = 0;
return 0 !== t && isFinite(t) && (n = x(t)), n;
}
function k(e, t, n) {
var r,
o = Math.min(e.length, t.length),
i = Math.abs(e.length - t.length),
a = 0;
for (r = 0; r < o; r++)
((n && e[r] !== t[r]) || (!n && M(e[r]) !== M(t[r]))) && a++;
return a + i;
}
function S(e) {
!1 === o.suppressDeprecationWarnings &&
'undefined' != typeof console &&
console.warn &&
console.warn('Deprecation warning: ' + e);
}
function O(e, t) {
var n = !0;
return d(function() {
if (
(null != o.deprecationHandler && o.deprecationHandler(null, e),
n)
) {
for (var r, i = [], a = 0; a < arguments.length; a++) {
if (((r = ''), 'object' == typeof arguments[a])) {
for (var s in ((r += '\n[' + a + '] '), arguments[0]))
r += s + ': ' + arguments[0][s] + ', ';
r = r.slice(0, -2);
} else r = arguments[a];
i.push(r);
}
S(
e +
'\nArguments: ' +
Array.prototype.slice.call(i).join('') +
'\n' +
new Error().stack
),
(n = !1);
}
return t.apply(this, arguments);
}, t);
}
var E,
A = {};
function T(e, t) {
null != o.deprecationHandler && o.deprecationHandler(e, t),
A[e] || (S(t), (A[e] = !0));
}
function C(e) {
return (
e instanceof Function ||
'[object Function]' === Object.prototype.toString.call(e)
);
}
function L(e, t) {
var n,
r = d({}, e);
for (n in t)
f(t, n) &&
(a(e[n]) && a(t[n])
? ((r[n] = {}), d(r[n], e[n]), d(r[n], t[n]))
: null != t[n]
? (r[n] = t[n])
: delete r[n]);
for (n in e) f(e, n) && !f(t, n) && a(e[n]) && (r[n] = d({}, r[n]));
return r;
}
function P(e) {
null != e && this.set(e);
}
(o.suppressDeprecationWarnings = !1),
(o.deprecationHandler = null),
(E = Object.keys
? Object.keys
: function(e) {
var t,
n = [];
for (t in e) f(e, t) && n.push(t);
return n;
});
var D = {};
function j(e, t) {
var n = e.toLowerCase();
D[n] = D[n + 's'] = D[t] = e;
}
function z(e) {
return 'string' == typeof e ? D[e] || D[e.toLowerCase()] : void 0;
}
function N(e) {
var t,
n,
r = {};
for (n in e) f(e, n) && (t = z(n)) && (r[t] = e[n]);
return r;
}
var R = {};
function I(e, t) {
R[e] = t;
}
function F(e, t, n) {
var r = '' + Math.abs(e),
o = t - r.length;
return (
(e >= 0 ? (n ? '+' : '') : '-') +
Math.pow(10, Math.max(0, o))
.toString()
.substr(1) +
r
);
}
var q = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
B = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
H = {},
Y = {};
function W(e, t, n, r) {
var o = r;
'string' == typeof r &&
(o = function() {
return this[r]();
}),
e && (Y[e] = o),
t &&
(Y[t[0]] = function() {
return F(o.apply(this, arguments), t[1], t[2]);
}),
n &&
(Y[n] = function() {
return this.localeData().ordinal(o.apply(this, arguments), e);
});
}
function V(e, t) {
return e.isValid()
? ((t = U(t, e.localeData())),
(H[t] =
H[t] ||
(function(e) {
var t,
n,
r,
o = e.match(q);
for (t = 0, n = o.length; t < n; t++)
Y[o[t]]
? (o[t] = Y[o[t]])
: (o[t] = (r = o[t]).match(/\[[\s\S]/)
? r.replace(/^\[|\]$/g, '')
: r.replace(/\\/g, ''));
return function(t) {
var r,
i = '';
for (r = 0; r < n; r++)
i += C(o[r]) ? o[r].call(t, e) : o[r];
return i;
};
})(t)),
H[t](e))
: e.localeData().invalidDate();
}
function U(e, t) {
var n = 5;
function r(e) {
return t.longDateFormat(e) || e;
}
for (B.lastIndex = 0; n >= 0 && B.test(e); )
(e = e.replace(B, r)), (B.lastIndex = 0), (n -= 1);
return e;
}
var X = /\d/,
G = /\d\d/,
K = /\d{3}/,
$ = /\d{4}/,
Q = /[+-]?\d{6}/,
J = /\d\d?/,
Z = /\d\d\d\d?/,
ee = /\d\d\d\d\d\d?/,
te = /\d{1,3}/,
ne = /\d{1,4}/,
re = /[+-]?\d{1,6}/,
oe = /\d+/,
ie = /[+-]?\d+/,
ae = /Z|[+-]\d\d:?\d\d/gi,
se = /Z|[+-]\d\d(?::?\d\d)?/gi,
ce = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
ue = {};
function le(e, t, n) {
ue[e] = C(t)
? t
: function(e, r) {
return e && n ? n : t;
};
}
function fe(e, t) {
return f(ue, e)
? ue[e](t._strict, t._locale)
: new RegExp(
de(
e
.replace('\\', '')
.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(
e,
t,
n,
r,
o
) {
return t || n || r || o;
})
)
);
}
function de(e) {
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
}
var pe = {};
function he(e, t) {
var n,
r = t;
for (
'string' == typeof e && (e = [e]),
c(t) &&
(r = function(e, n) {
n[t] = M(e);
}),
n = 0;
n < e.length;
n++
)
pe[e[n]] = r;
}
function ge(e, t) {
he(e, function(e, n, r, o) {
(r._w = r._w || {}), t(e, r._w, r, o);
});
}
function me(e, t, n) {
null != t && f(pe, e) && pe[e](t, n._a, n, e);
}
var be = 0,
ye = 1,
ve = 2,
_e = 3,
we = 4,
xe = 5,
Me = 6,
ke = 7,
Se = 8;
function Oe(e) {
return Ee(e) ? 366 : 365;
}
function Ee(e) {
return (e % 4 == 0 && e % 100 != 0) || e % 400 == 0;
}
W('Y', 0, 0, function() {
var e = this.year();
return e <= 9999 ? '' + e : '+' + e;
}),
W(0, ['YY', 2], 0, function() {
return this.year() % 100;
}),
W(0, ['YYYY', 4], 0, 'year'),
W(0, ['YYYYY', 5], 0, 'year'),
W(0, ['YYYYYY', 6, !0], 0, 'year'),
j('year', 'y'),
I('year', 1),
le('Y', ie),
le('YY', J, G),
le('YYYY', ne, $),
le('YYYYY', re, Q),
le('YYYYYY', re, Q),
he(['YYYYY', 'YYYYYY'], be),
he('YYYY', function(e, t) {
t[be] = 2 === e.length ? o.parseTwoDigitYear(e) : M(e);
}),
he('YY', function(e, t) {
t[be] = o.parseTwoDigitYear(e);
}),
he('Y', function(e, t) {
t[be] = parseInt(e, 10);
}),
(o.parseTwoDigitYear = function(e) {
return M(e) + (M(e) > 68 ? 1900 : 2e3);
});
var Ae,
Te = Ce('FullYear', !0);
function Ce(e, t) {
return function(n) {
return null != n
? (Pe(this, e, n), o.updateOffset(this, t), this)
: Le(this, e);
};
}
function Le(e, t) {
return e.isValid()
? e._d['get' + (e._isUTC ? 'UTC' : '') + t]()
: NaN;
}
function Pe(e, t, n) {
e.isValid() &&
!isNaN(n) &&
('FullYear' === t &&
Ee(e.year()) &&
1 === e.month() &&
29 === e.date()
? e._d['set' + (e._isUTC ? 'UTC' : '') + t](
n,
e.month(),
De(n, e.month())
)
: e._d['set' + (e._isUTC ? 'UTC' : '') + t](n));
}
function De(e, t) {
if (isNaN(e) || isNaN(t)) return NaN;
var n,
r = ((t % (n = 12)) + n) % n;
return (
(e += (t - r) / 12),
1 === r ? (Ee(e) ? 29 : 28) : 31 - ((r % 7) % 2)
);
}
(Ae = Array.prototype.indexOf
? Array.prototype.indexOf
: function(e) {
var t;
for (t = 0; t < this.length; ++t) if (this[t] === e) return t;
return -1;
}),
W('M', ['MM', 2], 'Mo', function() {
return this.month() + 1;
}),
W('MMM', 0, 0, function(e) {
return this.localeData().monthsShort(this, e);
}),
W('MMMM', 0, 0, function(e) {
return this.localeData().months(this, e);
}),
j('month', 'M'),
I('month', 8),
le('M', J),
le('MM', J, G),
le('MMM', function(e, t) {
return t.monthsShortRegex(e);
}),
le('MMMM', function(e, t) {
return t.monthsRegex(e);
}),
he(['M', 'MM'], function(e, t) {
t[ye] = M(e) - 1;
}),
he(['MMM', 'MMMM'], function(e, t, n, r) {
var o = n._locale.monthsParse(e, r, n._strict);
null != o ? (t[ye] = o) : (h(n).invalidMonth = e);
});
var je = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
ze = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
'_'
),
Ne = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
function Re(e, t, n) {
var r,
o,
i,
a = e.toLocaleLowerCase();
if (!this._monthsParse)
for (
this._monthsParse = [],
this._longMonthsParse = [],
this._shortMonthsParse = [],
r = 0;
r < 12;
++r
)
(i = p([2e3, r])),
(this._shortMonthsParse[r] = this.monthsShort(
i,
''
).toLocaleLowerCase()),
(this._longMonthsParse[r] = this.months(
i,
''
).toLocaleLowerCase());
return n
? 'MMM' === t
? -1 !== (o = Ae.call(this._shortMonthsParse, a))
? o
: null
: -1 !== (o = Ae.call(this._longMonthsParse, a))
? o
: null
: 'MMM' === t
? -1 !== (o = Ae.call(this._shortMonthsParse, a))
? o
: -1 !== (o = Ae.call(this._longMonthsParse, a))
? o
: null
: -1 !== (o = Ae.call(this._longMonthsParse, a))
? o
: -1 !== (o = Ae.call(this._shortMonthsParse, a))
? o
: null;
}
function Ie(e, t) {
var n;
if (!e.isValid()) return e;
if ('string' == typeof t)
if (/^\d+$/.test(t)) t = M(t);
else if (!c((t = e.localeData().monthsParse(t)))) return e;
return (
(n = Math.min(e.date(), De(e.year(), t))),
e._d['set' + (e._isUTC ? 'UTC' : '') + 'Month'](t, n),
e
);
}
function Fe(e) {
return null != e
? (Ie(this, e), o.updateOffset(this, !0), this)
: Le(this, 'Month');
}
var qe = ce,
Be = ce;
function He() {
function e(e, t) {
return t.length - e.length;
}
var t,
n,
r = [],
o = [],
i = [];
for (t = 0; t < 12; t++)
(n = p([2e3, t])),
r.push(this.monthsShort(n, '')),
o.push(this.months(n, '')),
i.push(this.months(n, '')),
i.push(this.monthsShort(n, ''));
for (r.sort(e), o.sort(e), i.sort(e), t = 0; t < 12; t++)
(r[t] = de(r[t])), (o[t] = de(o[t]));
for (t = 0; t < 24; t++) i[t] = de(i[t]);
(this._monthsRegex = new RegExp('^(' + i.join('|') + ')', 'i')),
(this._monthsShortRegex = this._monthsRegex),
(this._monthsStrictRegex = new RegExp(
'^(' + o.join('|') + ')',
'i'
)),
(this._monthsShortStrictRegex = new RegExp(
'^(' + r.join('|') + ')',
'i'
));
}
function Ye(e, t, n, r, o, i, a) {
var s;
return (
e < 100 && e >= 0
? ((s = new Date(e + 400, t, n, r, o, i, a)),
isFinite(s.getFullYear()) && s.setFullYear(e))
: (s = new Date(e, t, n, r, o, i, a)),
s
);
}
function We(e) {
var t;
if (e < 100 && e >= 0) {
var n = Array.prototype.slice.call(arguments);
(n[0] = e + 400),
(t = new Date(Date.UTC.apply(null, n))),
isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e);
} else t = new Date(Date.UTC.apply(null, arguments));
return t;
}
function Ve(e, t, n) {
var r = 7 + t - n;
return (-(7 + We(e, 0, r).getUTCDay() - t) % 7) + r - 1;
}
function Ue(e, t, n, r, o) {
var i,
a,
s = 1 + 7 * (t - 1) + ((7 + n - r) % 7) + Ve(e, r, o);
return (
s <= 0
? (a = Oe((i = e - 1)) + s)
: s > Oe(e)
? ((i = e + 1), (a = s - Oe(e)))
: ((i = e), (a = s)),
{ year: i, dayOfYear: a }
);
}
function Xe(e, t, n) {
var r,
o,
i = Ve(e.year(), t, n),
a = Math.floor((e.dayOfYear() - i - 1) / 7) + 1;
return (
a < 1
? (r = a + Ge((o = e.year() - 1), t, n))
: a > Ge(e.year(), t, n)
? ((r = a - Ge(e.year(), t, n)), (o = e.year() + 1))
: ((o = e.year()), (r = a)),
{ week: r, year: o }
);
}
function Ge(e, t, n) {
var r = Ve(e, t, n),
o = Ve(e + 1, t, n);
return (Oe(e) - r + o) / 7;
}
function Ke(e, t) {
return e.slice(t, 7).concat(e.slice(0, t));
}
W('w', ['ww', 2], 'wo', 'week'),
W('W', ['WW', 2], 'Wo', 'isoWeek'),
j('week', 'w'),
j('isoWeek', 'W'),
I('week', 5),
I('isoWeek', 5),
le('w', J),
le('ww', J, G),
le('W', J),
le('WW', J, G),
ge(['w', 'ww', 'W', 'WW'], function(e, t, n, r) {
t[r.substr(0, 1)] = M(e);
}),
W('d', 0, 'do', 'day'),
W('dd', 0, 0, function(e) {
return this.localeData().weekdaysMin(this, e);
}),
W('ddd', 0, 0, function(e) {
return this.localeData().weekdaysShort(this, e);
}),
W('dddd', 0, 0, function(e) {
return this.localeData().weekdays(this, e);
}),
W('e', 0, 0, 'weekday'),
W('E', 0, 0, 'isoWeekday'),
j('day', 'd'),
j('weekday', 'e'),
j('isoWeekday', 'E'),
I('day', 11),
I('weekday', 11),
I('isoWeekday', 11),
le('d', J),
le('e', J),
le('E', J),
le('dd', function(e, t) {
return t.weekdaysMinRegex(e);
}),
le('ddd', function(e, t) {
return t.weekdaysShortRegex(e);
}),
le('dddd', function(e, t) {
return t.weekdaysRegex(e);
}),
ge(['dd', 'ddd', 'dddd'], function(e, t, n, r) {
var o = n._locale.weekdaysParse(e, r, n._strict);
null != o ? (t.d = o) : (h(n).invalidWeekday = e);
}),
ge(['d', 'e', 'E'], function(e, t, n, r) {
t[r] = M(e);
});
var $e = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
'_'
),
Qe = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
Je = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
function Ze(e, t, n) {
var r,
o,
i,
a = e.toLocaleLowerCase();
if (!this._weekdaysParse)
for (
this._weekdaysParse = [],
this._shortWeekdaysParse = [],
this._minWeekdaysParse = [],
r = 0;
r < 7;
++r
)
(i = p([2e3, 1]).day(r)),
(this._minWeekdaysParse[r] = this.weekdaysMin(
i,
''
).toLocaleLowerCase()),
(this._shortWeekdaysParse[r] = this.weekdaysShort(
i,
''
).toLocaleLowerCase()),
(this._weekdaysParse[r] = this.weekdays(
i,
''
).toLocaleLowerCase());
return n
? 'dddd' === t
? -1 !== (o = Ae.call(this._weekdaysParse, a))
? o
: null
: 'ddd' === t
? -1 !== (o = Ae.call(this._shortWeekdaysParse, a))
? o
: null
: -1 !== (o = Ae.call(this._minWeekdaysParse, a))
? o
: null
: 'dddd' === t
? -1 !== (o = Ae.call(this._weekdaysParse, a))
? o
: -1 !== (o = Ae.call(this._shortWeekdaysParse, a))
? o
: -1 !== (o = Ae.call(this._minWeekdaysParse, a))
? o
: null
: 'ddd' === t
? -1 !== (o = Ae.call(this._shortWeekdaysParse, a))
? o
: -1 !== (o = Ae.call(this._weekdaysParse, a))
? o
: -1 !== (o = Ae.call(this._minWeekdaysParse, a))
? o
: null
: -1 !== (o = Ae.call(this._minWeekdaysParse, a))
? o
: -1 !== (o = Ae.call(this._weekdaysParse, a))
? o
: -1 !== (o = Ae.call(this._shortWeekdaysParse, a))
? o
: null;
}
var et = ce,
tt = ce,
nt = ce;
function rt() {
function e(e, t) {
return t.length - e.length;
}
var t,
n,
r,
o,
i,
a = [],
s = [],
c = [],
u = [];
for (t = 0; t < 7; t++)
(n = p([2e3, 1]).day(t)),
(r = this.weekdaysMin(n, '')),
(o = this.weekdaysShort(n, '')),
(i = this.weekdays(n, '')),
a.push(r),
s.push(o),
c.push(i),
u.push(r),
u.push(o),
u.push(i);
for (a.sort(e), s.sort(e), c.sort(e), u.sort(e), t = 0; t < 7; t++)
(s[t] = de(s[t])), (c[t] = de(c[t])), (u[t] = de(u[t]));
(this._weekdaysRegex = new RegExp('^(' + u.join('|') + ')', 'i')),
(this._weekdaysShortRegex = this._weekdaysRegex),
(this._weekdaysMinRegex = this._weekdaysRegex),
(this._weekdaysStrictRegex = new RegExp(
'^(' + c.join('|') + ')',
'i'
)),
(this._weekdaysShortStrictRegex = new RegExp(
'^(' + s.join('|') + ')',
'i'
)),
(this._weekdaysMinStrictRegex = new RegExp(
'^(' + a.join('|') + ')',
'i'
));
}
function ot() {
return this.hours() % 12 || 12;
}
function it(e, t) {
W(e, 0, 0, function() {
return this.localeData().meridiem(
this.hours(),
this.minutes(),
t
);
});
}
function at(e, t) {
return t._meridiemParse;
}
W('H', ['HH', 2], 0, 'hour'),
W('h', ['hh', 2], 0, ot),
W('k', ['kk', 2], 0, function() {
return this.hours() || 24;
}),
W('hmm', 0, 0, function() {
return '' + ot.apply(this) + F(this.minutes(), 2);
}),
W('hmmss', 0, 0, function() {
return (
'' +
ot.apply(this) +
F(this.minutes(), 2) +
F(this.seconds(), 2)
);
}),
W('Hmm', 0, 0, function() {
return '' + this.hours() + F(this.minutes(), 2);
}),
W('Hmmss', 0, 0, function() {
return (
'' + this.hours() + F(this.minutes(), 2) + F(this.seconds(), 2)
);
}),
it('a', !0),
it('A', !1),
j('hour', 'h'),
I('hour', 13),
le('a', at),
le('A', at),
le('H', J),
le('h', J),
le('k', J),
le('HH', J, G),
le('hh', J, G),
le('kk', J, G),
le('hmm', Z),
le('hmmss', ee),
le('Hmm', Z),
le('Hmmss', ee),
he(['H', 'HH'], _e),
he(['k', 'kk'], function(e, t, n) {
var r = M(e);
t[_e] = 24 === r ? 0 : r;
}),
he(['a', 'A'], function(e, t, n) {
(n._isPm = n._locale.isPM(e)), (n._meridiem = e);
}),
he(['h', 'hh'], function(e, t, n) {
(t[_e] = M(e)), (h(n).bigHour = !0);
}),
he('hmm', function(e, t, n) {
var r = e.length - 2;
(t[_e] = M(e.substr(0, r))),
(t[we] = M(e.substr(r))),
(h(n).bigHour = !0);
}),
he('hmmss', function(e, t, n) {
var r = e.length - 4,
o = e.length - 2;
(t[_e] = M(e.substr(0, r))),
(t[we] = M(e.substr(r, 2))),
(t[xe] = M(e.substr(o))),
(h(n).bigHour = !0);
}),
he('Hmm', function(e, t, n) {
var r = e.length - 2;
(t[_e] = M(e.substr(0, r))), (t[we] = M(e.substr(r)));
}),
he('Hmmss', function(e, t, n) {
var r = e.length - 4,
o = e.length - 2;
(t[_e] = M(e.substr(0, r))),
(t[we] = M(e.substr(r, 2))),
(t[xe] = M(e.substr(o)));
});
var st,
ct = Ce('Hours', !0),
ut = {
calendar: {
sameDay: '[Today at] LT',
nextDay: '[Tomorrow at] LT',
nextWeek: 'dddd [at] LT',
lastDay: '[Yesterday at] LT',
lastWeek: '[Last] dddd [at] LT',
sameElse: 'L'
},
longDateFormat: {
LTS: 'h:mm:ss A',
LT: 'h:mm A',
L: 'MM/DD/YYYY',
LL: 'MMMM D, YYYY',
LLL: 'MMMM D, YYYY h:mm A',
LLLL: 'dddd, MMMM D, YYYY h:mm A'
},
invalidDate: 'Invalid date',
ordinal: '%d',
dayOfMonthOrdinalParse: /\d{1,2}/,
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'a few seconds',
ss: '%d seconds',
m: 'a minute',
mm: '%d minutes',
h: 'an hour',
hh: '%d hours',
d: 'a day',
dd: '%d days',
M: 'a month',
MM: '%d months',
y: 'a year',
yy: '%d years'
},
months: ze,
monthsShort: Ne,
week: { dow: 0, doy: 6 },
weekdays: $e,
weekdaysMin: Je,
weekdaysShort: Qe,
meridiemParse: /[ap]\.?m?\.?/i
},
lt = {},
ft = {};
function dt(e) {
return e ? e.toLowerCase().replace('_', '-') : e;
}
function pt(t) {
var r = null;
if (!lt[t] && void 0 !== e && e && e.exports)
try {
(r = st._abbr), n(744)('./' + t), ht(r);
} catch (e) {}
return lt[t];
}
function ht(e, t) {
var n;
return (
e &&
((n = s(t) ? mt(e) : gt(e, t))
? (st = n)
: 'undefined' != typeof console &&
console.warn &&
console.warn(
'Locale ' + e + ' not found. Did you forget to load it?'
)),
st._abbr
);
}
function gt(e, t) {
if (null !== t) {
var n,
r = ut;
if (((t.abbr = e), null != lt[e]))
T(
'defineLocaleOverride',
'use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'
),
(r = lt[e]._config);
else if (null != t.parentLocale)
if (null != lt[t.parentLocale]) r = lt[t.parentLocale]._config;
else {
if (null == (n = pt(t.parentLocale)))
return (
ft[t.parentLocale] || (ft[t.parentLocale] = []),
ft[t.parentLocale].push({ name: e, config: t }),
null
);
r = n._config;
}
return (
(lt[e] = new P(L(r, t))),
ft[e] &&
ft[e].forEach(function(e) {
gt(e.name, e.config);
}),
ht(e),
lt[e]
);
}
return delete lt[e], null;
}
function mt(e) {
var t;
if (
(e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
)
return st;
if (!i(e)) {
if ((t = pt(e))) return t;
e = [e];
}
return (function(e) {
for (var t, n, r, o, i = 0; i < e.length; ) {
for (
t = (o = dt(e[i]).split('-')).length,
n = (n = dt(e[i + 1])) ? n.split('-') : null;
t > 0;
) {
if ((r = pt(o.slice(0, t).join('-')))) return r;
if (n && n.length >= t && k(o, n, !0) >= t - 1) break;
t--;
}
i++;
}
return st;
})(e);
}
function bt(e) {
var t,
n = e._a;
return (
n &&
-2 === h(e).overflow &&
((t =
n[ye] < 0 || n[ye] > 11
? ye
: n[ve] < 1 || n[ve] > De(n[be], n[ye])
? ve
: n[_e] < 0 ||
n[_e] > 24 ||
(24 === n[_e] &&
(0 !== n[we] || 0 !== n[xe] || 0 !== n[Me]))
? _e
: n[we] < 0 || n[we] > 59
? we
: n[xe] < 0 || n[xe] > 59
? xe
: n[Me] < 0 || n[Me] > 999
? Me
: -1),
h(e)._overflowDayOfYear && (t < be || t > ve) && (t = ve),
h(e)._overflowWeeks && -1 === t && (t = ke),
h(e)._overflowWeekday && -1 === t && (t = Se),
(h(e).overflow = t)),
e
);
}
function yt(e, t, n) {
return null != e ? e : null != t ? t : n;
}
function vt(e) {
var t,
n,
r,
i,
a,
s = [];
if (!e._d) {
for (
r = (function(e) {
var t = new Date(o.now());
return e._useUTC
? [t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()]
: [t.getFullYear(), t.getMonth(), t.getDate()];
})(e),
e._w &&
null == e._a[ve] &&
null == e._a[ye] &&
(function(e) {
var t, n, r, o, i, a, s, c;
if (null != (t = e._w).GG || null != t.W || null != t.E)
(i = 1),
(a = 4),
(n = yt(t.GG, e._a[be], Xe(jt(), 1, 4).year)),
(r = yt(t.W, 1)),
((o = yt(t.E, 1)) < 1 || o > 7) && (c = !0);
else {
(i = e._locale._week.dow), (a = e._locale._week.doy);
var u = Xe(jt(), i, a);
(n = yt(t.gg, e._a[be], u.year)),
(r = yt(t.w, u.week)),
null != t.d
? ((o = t.d) < 0 || o > 6) && (c = !0)
: null != t.e
? ((o = t.e + i), (t.e < 0 || t.e > 6) && (c = !0))
: (o = i);
}
r < 1 || r > Ge(n, i, a)
? (h(e)._overflowWeeks = !0)
: null != c
? (h(e)._overflowWeekday = !0)
: ((s = Ue(n, r, o, i, a)),
(e._a[be] = s.year),
(e._dayOfYear = s.dayOfYear));
})(e),
null != e._dayOfYear &&
((a = yt(e._a[be], r[be])),
(e._dayOfYear > Oe(a) || 0 === e._dayOfYear) &&
(h(e)._overflowDayOfYear = !0),
(n = We(a, 0, e._dayOfYear)),
(e._a[ye] = n.getUTCMonth()),
(e._a[ve] = n.getUTCDate())),
t = 0;
t < 3 && null == e._a[t];
++t
)
e._a[t] = s[t] = r[t];
for (; t < 7; t++)
e._a[t] = s[t] = null == e._a[t] ? (2 === t ? 1 : 0) : e._a[t];
24 === e._a[_e] &&
0 === e._a[we] &&
0 === e._a[xe] &&
0 === e._a[Me] &&
((e._nextDay = !0), (e._a[_e] = 0)),
(e._d = (e._useUTC ? We : Ye).apply(null, s)),
(i = e._useUTC ? e._d.getUTCDay() : e._d.getDay()),
null != e._tzm &&
e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
e._nextDay && (e._a[_e] = 24),
e._w &&
void 0 !== e._w.d &&
e._w.d !== i &&
(h(e).weekdayMismatch = !0);
}
}
var _t = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
wt = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
xt = /Z|[+-]\d\d(?::?\d\d)?/,
Mt = [
['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
['GGGG-[W]WW', /\d{4}-W\d\d/, !1],
['YYYY-DDD', /\d{4}-\d{3}/],
['YYYY-MM', /\d{4}-\d\d/, !1],
['YYYYYYMMDD', /[+-]\d{10}/],
['YYYYMMDD', /\d{8}/],
['GGGG[W]WWE', /\d{4}W\d{3}/],
['GGGG[W]WW', /\d{4}W\d{2}/, !1],
['YYYYDDD', /\d{7}/]
],
kt = [
['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
['HH:mm:ss', /\d\d:\d\d:\d\d/],
['HH:mm', /\d\d:\d\d/],
['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
['HHmmss', /\d\d\d\d\d\d/],
['HHmm', /\d\d\d\d/],
['HH', /\d\d/]
],
St = /^\/?Date\((\-?\d+)/i;
function Ot(e) {
var t,
n,
r,
o,
i,
a,
s = e._i,
c = _t.exec(s) || wt.exec(s);
if (c) {
for (h(e).iso = !0, t = 0, n = Mt.length; t < n; t++)
if (Mt[t][1].exec(c[1])) {
(o = Mt[t][0]), (r = !1 !== Mt[t][2]);
break;
}
if (null == o) return void (e._isValid = !1);
if (c[3]) {
for (t = 0, n = kt.length; t < n; t++)
if (kt[t][1].exec(c[3])) {
i = (c[2] || ' ') + kt[t][0];
break;
}
if (null == i) return void (e._isValid = !1);
}
if (!r && null != i) return void (e._isValid = !1);
if (c[4]) {
if (!xt.exec(c[4])) return void (e._isValid = !1);
a = 'Z';
}
(e._f = o + (i || '') + (a || '')), Lt(e);
} else e._isValid = !1;
}
var Et = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;
function At(e) {
var t = parseInt(e, 10);
return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
}
var Tt = {
UT: 0,
GMT: 0,
EDT: -240,
EST: -300,
CDT: -300,
CST: -360,
MDT: -360,
MST: -420,
PDT: -420,
PST: -480
};
function Ct(e) {
var t,
n,
r,
o,
i,
a,
s,
c = Et.exec(
e._i
.replace(/\([^)]*\)|[\n\t]/g, ' ')
.replace(/(\s\s+)/g, ' ')
.replace(/^\s\s*/, '')
.replace(/\s\s*$/, '')
);
if (c) {
var u =
((t = c[4]),
(n = c[3]),
(r = c[2]),
(o = c[5]),
(i = c[6]),
(a = c[7]),
(s = [
At(t),
Ne.indexOf(n),
parseInt(r, 10),
parseInt(o, 10),
parseInt(i, 10)
]),
a && s.push(parseInt(a, 10)),
s);
if (
!(function(e, t, n) {
return (
!e ||
Qe.indexOf(e) === new Date(t[0], t[1], t[2]).getDay() ||
((h(n).weekdayMismatch = !0), (n._isValid = !1), !1)
);
})(c[1], u, e)
)
return;
(e._a = u),
(e._tzm = (function(e, t, n) {
if (e) return Tt[e];
if (t) return 0;
var r = parseInt(n, 10),
o = r % 100;
return ((r - o) / 100) * 60 + o;
})(c[8], c[9], c[10])),
(e._d = We.apply(null, e._a)),
e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
(h(e).rfc2822 = !0);
} else e._isValid = !1;
}
function Lt(e) {
if (e._f !== o.ISO_8601)
if (e._f !== o.RFC_2822) {
(e._a = []), (h(e).empty = !0);
var t,
n,
r,
i,
a,
s = '' + e._i,
c = s.length,
u = 0;
for (
r = U(e._f, e._locale).match(q) || [], t = 0;
t < r.length;
t++
)
(i = r[t]),
(n = (s.match(fe(i, e)) || [])[0]) &&
((a = s.substr(0, s.indexOf(n))).length > 0 &&
h(e).unusedInput.push(a),
(s = s.slice(s.indexOf(n) + n.length)),
(u += n.length)),
Y[i]
? (n ? (h(e).empty = !1) : h(e).unusedTokens.push(i),
me(i, n, e))
: e._strict && !n && h(e).unusedTokens.push(i);
(h(e).charsLeftOver = c - u),
s.length > 0 && h(e).unusedInput.push(s),
e._a[_e] <= 12 &&
!0 === h(e).bigHour &&
e._a[_e] > 0 &&
(h(e).bigHour = void 0),
(h(e).parsedDateParts = e._a.slice(0)),
(h(e).meridiem = e._meridiem),
(e._a[_e] = (function(e, t, n) {
var r;
return null == n
? t
: null != e.meridiemHour
? e.meridiemHour(t, n)
: null != e.isPM
? ((r = e.isPM(n)) && t < 12 && (t += 12),
r || 12 !== t || (t = 0),
t)
: t;
})(e._locale, e._a[_e], e._meridiem)),
vt(e),
bt(e);
} else Ct(e);
else Ot(e);
}
function Pt(e) {
var t = e._i,
n = e._f;
return (
(e._locale = e._locale || mt(e._l)),
null === t || (void 0 === n && '' === t)
? m({ nullInput: !0 })
: ('string' == typeof t && (e._i = t = e._locale.preparse(t)),
w(t)
? new _(bt(t))
: (u(t)
? (e._d = t)
: i(n)
? (f