+`;var Fi="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",Wi="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z";let Zi=class extends(tt(le)){hassSubscribe(){return this._fetchData(),[this.hass.connection.subscribeMessage((()=>this._fetchData()),{type:_e+"_config_updated"})]}async _fetchData(){var e,t;this.hass&&(this.config=await Xe(this.hass),this.data=(e=this.config,t=["calctime","autocalcenabled","autoupdateenabled","autoupdateschedule","autoupdatefirsttime","autoupdateinterval","autoclearenabled","cleardatatime","continuousupdates"],e?Object.entries(e).filter((([e])=>t.includes(e))).reduce(((e,[t,a])=>Object.assign(e,{[t]:a})),{}):{}))}firstUpdated(){(async()=>{await ye()})()}render(){if(this.hass&&this.config&&this.data){let e=Y`
@@ -5904,18 +237,12 @@
${Ci("panels.general.cards.automatic-duration-calculation.labels.auto-calc-enabled",this.hass.language)}:
{
- this.saveData({ autocalcenabled: Ri(e.target.value) });
- }}"
+ @change="${e=>{this.saveData({autocalcenabled:Ri(e.target.value)})}}"
/>${Ci("common.labels.yes",this.hass.language)}
{
- this.saveData({ autocalcenabled: Ri(e.target.value) });
- }}"
- />
-
`;
- this.data.autocalcenabled &&
- (e = Y`${e}
-
- :
- {
- this.saveData({ calctime: e.target.value });
- }}
- />
-
`),
- (e = Y`
- ${e}`);
- let t = Y`
-
-
-
-
-
-
-
- {
- this.saveData({ autoupdateenabled: Ri(e.target.value) });
- }}"
- />
- {
- this.saveData({ autoupdateenabled: Ri(e.target.value) });
- }}"
- />
-
`;
- this.data.autoupdateenabled &&
- (t = Y`${t}
-
-
- {
- this.saveData({ autoupdateinterval: parseInt(e.target.value) });
- }}"
- />
-
-
-
-
- {
- this.saveData({ autoupdatedelay: parseInt(e.target.value) });
- }}
- />
-
`),
- (t = Y`
${t}`);
- let a = Y`
-
-
-
-
-
-
-
- {
- this.saveData({ autoclearenabled: Ri(e.target.value) });
- }}"
- />
- {
- this.saveData({ autoclearenabled: Ri(e.target.value) });
- }}"
- />
-
`;
- this.data.autoclearenabled &&
- (a = Y`${a}
-
- :
- {
- this.saveData({ cleardatatime: e.target.value });
- }}
- />
-
`),
- (a = Y`
${a} `);
- let i = Y`
-
-
-
-
-
-
-
-
- {
- this.saveData({ continuousupdates: Ri(e.target.value) });
- }}"
- />
- {
- this.saveData({ continuousupdates: Ri(e.target.value) });
- }}"
- />
-
-
- `;
- return Y`
-
- ${Ci("panels.general.description", this.hass.language)}
-
${t}${e}${a}${i}`;
- }
- return Y``;
- }
- saveData(e) {
- var t, a;
- this.hass &&
- this.data &&
- ((this.data = Object.assign(Object.assign({}, this.data), e)),
- ((t = this.hass), (a = this.data), t.callApi("POST", _e + "/config", a))
- .catch((e) => Vi(e, this.shadowRoot.querySelector("ha-card")))
- .then());
- }
- toggleInformation(e) {
- var t;
- const a =
- null === (t = this.shadowRoot) || void 0 === t
- ? void 0
- : t.querySelector("#" + e);
- a &&
- ("hidden" != a.className
- ? (a.className = "hidden")
- : (a.className = "information"));
- }
- static get styles() {
- return c`
- ${Gi}
- .hidden {
- display: none;
- }
- .shortinput {
- width: 50px;
- }
- .information {
- margin-left: 20px;
- margin-top: 5px;
- }
- `;
- }
- };
- var qi;
- n([pe()], Zi.prototype, "narrow", void 0),
- n([pe()], Zi.prototype, "path", void 0),
- n([pe()], Zi.prototype, "data", void 0),
- n([pe()], Zi.prototype, "config", void 0),
- (Zi = n([de("smart-irrigation-view-general")], Zi)),
- (function (e) {
- (e.Disabled = "disabled"),
- (e.Manual = "manual"),
- (e.Automatic = "automatic");
- })(qi || (qi = {}));
- "undefined" != typeof globalThis
- ? globalThis
- : "undefined" != typeof window
- ? window
- : "undefined" != typeof global
- ? global
- : "undefined" != typeof self && self;
- function Ki(e) {
- return e &&
- e.__esModule &&
- Object.prototype.hasOwnProperty.call(e, "default")
- ? e.default
- : e;
- }
- function Xi(e) {
- throw new Error(
- 'Could not dynamically require "' +
- e +
- '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'
- );
- }
- var Ji = { exports: {} };
- !(function (e, t) {
- e.exports = (function () {
- var t, a;
- function i() {
- return t.apply(null, arguments);
- }
- function n(e) {
- t = e;
- }
- function s(e) {
- return (
- e instanceof Array ||
- "[object Array]" === Object.prototype.toString.call(e)
- );
- }
- function r(e) {
- return (
- null != e && "[object Object]" === Object.prototype.toString.call(e)
- );
- }
- function o(e, t) {
- return Object.prototype.hasOwnProperty.call(e, t);
- }
- function l(e) {
- if (Object.getOwnPropertyNames)
- return 0 === Object.getOwnPropertyNames(e).length;
- var t;
- for (t in e) if (o(e, t)) return !1;
- return !0;
- }
- function u(e) {
- return void 0 === e;
- }
- function d(e) {
- return (
- "number" == typeof e ||
- "[object Number]" === Object.prototype.toString.call(e)
- );
- }
- function c(e) {
- return (
- e instanceof Date ||
- "[object Date]" === Object.prototype.toString.call(e)
- );
- }
- function h(e, t) {
- var a,
- i = [],
- n = e.length;
- for (a = 0; a < n; ++a) i.push(t(e[a], a));
- return i;
- }
- function p(e, t) {
- for (var a in t) o(t, a) && (e[a] = t[a]);
- return (
- o(t, "toString") && (e.toString = t.toString),
- o(t, "valueOf") && (e.valueOf = t.valueOf),
- e
- );
- }
- function m(e, t, a, i) {
- return Wa(e, t, a, i, !0).utc();
- }
- function g() {
- return {
- empty: !1,
- unusedTokens: [],
- unusedInput: [],
- overflow: -2,
- charsLeftOver: 0,
- nullInput: !1,
- invalidEra: null,
- invalidMonth: null,
- invalidFormat: !1,
- userInvalidated: !1,
- iso: !1,
- parsedDateParts: [],
- era: null,
- meridiem: null,
- rfc2822: !1,
- weekdayMismatch: !1,
- };
- }
- function f(e) {
- return null == e._pf && (e._pf = g()), e._pf;
- }
- function v(e) {
- if (null == e._isValid) {
- var t = f(e),
- i = a.call(t.parsedDateParts, function (e) {
- return null != e;
- }),
- n =
- !isNaN(e._d.getTime()) &&
- t.overflow < 0 &&
- !t.empty &&
- !t.invalidEra &&
- !t.invalidMonth &&
- !t.invalidWeekday &&
- !t.weekdayMismatch &&
- !t.nullInput &&
- !t.invalidFormat &&
- !t.userInvalidated &&
- (!t.meridiem || (t.meridiem && i));
- if (
- (e._strict &&
- (n =
- n &&
- 0 === t.charsLeftOver &&
- 0 === t.unusedTokens.length &&
- void 0 === t.bigHour),
- null != Object.isFrozen && Object.isFrozen(e))
- )
- return n;
- e._isValid = n;
- }
- return e._isValid;
- }
- function b(e) {
- var t = m(NaN);
- return null != e ? p(f(t), e) : (f(t).userInvalidated = !0), t;
- }
- a = Array.prototype.some
- ? Array.prototype.some
- : function (e) {
- var t,
- a = Object(this),
- i = a.length >>> 0;
- for (t = 0; t < i; t++)
- if (t in a && e.call(this, a[t], t, a)) return !0;
- return !1;
- };
- var y = (i.momentProperties = []),
- _ = !1;
- function w(e, t) {
- var a,
- i,
- n,
- s = y.length;
- if (
- (u(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject),
- u(t._i) || (e._i = t._i),
- u(t._f) || (e._f = t._f),
- u(t._l) || (e._l = t._l),
- u(t._strict) || (e._strict = t._strict),
- u(t._tzm) || (e._tzm = t._tzm),
- u(t._isUTC) || (e._isUTC = t._isUTC),
- u(t._offset) || (e._offset = t._offset),
- u(t._pf) || (e._pf = f(t)),
- u(t._locale) || (e._locale = t._locale),
- s > 0)
- )
- for (a = 0; a < s; a++) u((n = t[(i = y[a])])) || (e[i] = n);
- return e;
- }
- function k(e) {
- w(this, e),
- (this._d = new Date(null != e._d ? e._d.getTime() : NaN)),
- this.isValid() || (this._d = new Date(NaN)),
- !1 === _ && ((_ = !0), i.updateOffset(this), (_ = !1));
- }
- function S(e) {
- return e instanceof k || (null != e && null != e._isAMomentObject);
- }
- function E(e) {
- !1 === i.suppressDeprecationWarnings &&
- "undefined" != typeof console &&
- console.warn &&
- console.warn("Deprecation warning: " + e);
- }
- function $(e, t) {
- var a = !0;
- return p(function () {
- if (
- (null != i.deprecationHandler && i.deprecationHandler(null, e), a)
- ) {
- var n,
- s,
- r,
- l = [],
- u = arguments.length;
- for (s = 0; s < u; s++) {
- if (((n = ""), "object" == typeof arguments[s])) {
- for (r in ((n += "\n[" + s + "] "), arguments[0]))
- o(arguments[0], r) &&
- (n += r + ": " + arguments[0][r] + ", ");
- n = n.slice(0, -2);
- } else n = arguments[s];
- l.push(n);
- }
- E(
- e +
- "\nArguments: " +
- Array.prototype.slice.call(l).join("") +
- "\n" +
- new Error().stack
- ),
- (a = !1);
- }
- return t.apply(this, arguments);
- }, t);
- }
- var A,
- M = {};
- function T(e, t) {
- null != i.deprecationHandler && i.deprecationHandler(e, t),
- M[e] || (E(t), (M[e] = !0));
- }
- function O(e) {
- return (
- ("undefined" != typeof Function && e instanceof Function) ||
- "[object Function]" === Object.prototype.toString.call(e)
- );
- }
- function x(e) {
- var t, a;
- for (a in e)
- o(e, a) && (O((t = e[a])) ? (this[a] = t) : (this["_" + a] = t));
- (this._config = e),
- (this._dayOfMonthOrdinalParseLenient = new RegExp(
- (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
- "|" +
- /\d{1,2}/.source
- ));
- }
- function z(e, t) {
- var a,
- i = p({}, e);
- for (a in t)
- o(t, a) &&
- (r(e[a]) && r(t[a])
- ? ((i[a] = {}), p(i[a], e[a]), p(i[a], t[a]))
- : null != t[a]
- ? (i[a] = t[a])
- : delete i[a]);
- for (a in e) o(e, a) && !o(t, a) && r(e[a]) && (i[a] = p({}, i[a]));
- return i;
- }
- function D(e) {
- null != e && this.set(e);
- }
- (i.suppressDeprecationWarnings = !1),
- (i.deprecationHandler = null),
- (A = Object.keys
- ? Object.keys
- : function (e) {
- var t,
- a = [];
- for (t in e) o(e, t) && a.push(t);
- return a;
- });
- var H = {
- sameDay: "[Today at] LT",
- nextDay: "[Tomorrow at] LT",
- nextWeek: "dddd [at] LT",
- lastDay: "[Yesterday at] LT",
- lastWeek: "[Last] dddd [at] LT",
- sameElse: "L",
- };
- function P(e, t, a) {
- var i = this._calendar[e] || this._calendar.sameElse;
- return O(i) ? i.call(t, a) : i;
- }
- function N(e, t, a) {
- var i = "" + Math.abs(e),
- n = t - i.length;
- return (
- (e >= 0 ? (a ? "+" : "") : "-") +
- Math.pow(10, Math.max(0, n)).toString().substr(1) +
- i
- );
- }
- var C =
- /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
- j = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
- L = {},
- B = {};
- function I(e, t, a, i) {
- var n = i;
- "string" == typeof i &&
- (n = function () {
- return this[i]();
- }),
- e && (B[e] = n),
- t &&
- (B[t[0]] = function () {
- return N(n.apply(this, arguments), t[1], t[2]);
- }),
- a &&
- (B[a] = function () {
- return this.localeData().ordinal(n.apply(this, arguments), e);
- });
- }
- function R(e) {
- return e.match(/\[[\s\S]/)
- ? e.replace(/^\[|\]$/g, "")
- : e.replace(/\\/g, "");
- }
- function U(e) {
- var t,
- a,
- i = e.match(C);
- for (t = 0, a = i.length; t < a; t++)
- B[i[t]] ? (i[t] = B[i[t]]) : (i[t] = R(i[t]));
- return function (t) {
- var n,
- s = "";
- for (n = 0; n < a; n++) s += O(i[n]) ? i[n].call(t, e) : i[n];
- return s;
- };
- }
- function Y(e, t) {
- return e.isValid()
- ? ((t = V(t, e.localeData())), (L[t] = L[t] || U(t)), L[t](e))
- : e.localeData().invalidDate();
- }
- function V(e, t) {
- var a = 5;
- function i(e) {
- return t.longDateFormat(e) || e;
- }
- for (j.lastIndex = 0; a >= 0 && j.test(e); )
- (e = e.replace(j, i)), (j.lastIndex = 0), (a -= 1);
- return e;
- }
- var G = {
- 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",
- };
- function F(e) {
- var t = this._longDateFormat[e],
- a = this._longDateFormat[e.toUpperCase()];
- return t || !a
- ? t
- : ((this._longDateFormat[e] = a
- .match(C)
- .map(function (e) {
- return "MMMM" === e || "MM" === e || "DD" === e || "dddd" === e
- ? e.slice(1)
- : e;
- })
- .join("")),
- this._longDateFormat[e]);
- }
- var W = "Invalid date";
- function Z() {
- return this._invalidDate;
- }
- var q = "%d",
- K = /\d{1,2}/;
- function X(e) {
- return this._ordinal.replace("%d", e);
- }
- var J = {
- 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",
- w: "a week",
- ww: "%d weeks",
- M: "a month",
- MM: "%d months",
- y: "a year",
- yy: "%d years",
- };
- function Q(e, t, a, i) {
- var n = this._relativeTime[a];
- return O(n) ? n(e, t, a, i) : n.replace(/%d/i, e);
- }
- function ee(e, t) {
- var a = this._relativeTime[e > 0 ? "future" : "past"];
- return O(a) ? a(t) : a.replace(/%s/i, t);
- }
- var te = {};
- function ae(e, t) {
- var a = e.toLowerCase();
- te[a] = te[a + "s"] = te[t] = e;
- }
- function ie(e) {
- return "string" == typeof e ? te[e] || te[e.toLowerCase()] : void 0;
- }
- function ne(e) {
- var t,
- a,
- i = {};
- for (a in e) o(e, a) && (t = ie(a)) && (i[t] = e[a]);
- return i;
- }
- var se = {};
- function re(e, t) {
- se[e] = t;
- }
- function oe(e) {
- var t,
- a = [];
- for (t in e) o(e, t) && a.push({ unit: t, priority: se[t] });
- return (
- a.sort(function (e, t) {
- return e.priority - t.priority;
- }),
- a
- );
- }
- function le(e) {
- return (e % 4 == 0 && e % 100 != 0) || e % 400 == 0;
- }
- function ue(e) {
- return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
- }
- function de(e) {
- var t = +e,
- a = 0;
- return 0 !== t && isFinite(t) && (a = ue(t)), a;
- }
- function ce(e, t) {
- return function (a) {
- return null != a
- ? (pe(this, e, a), i.updateOffset(this, t), this)
- : he(this, e);
- };
- }
- function he(e, t) {
- return e.isValid() ? e._d["get" + (e._isUTC ? "UTC" : "") + t]() : NaN;
- }
- function pe(e, t, a) {
- e.isValid() &&
- !isNaN(a) &&
- ("FullYear" === t &&
- le(e.year()) &&
- 1 === e.month() &&
- 29 === e.date()
- ? ((a = de(a)),
- e._d["set" + (e._isUTC ? "UTC" : "") + t](
- a,
- e.month(),
- Qe(a, e.month())
- ))
- : e._d["set" + (e._isUTC ? "UTC" : "") + t](a));
- }
- function me(e) {
- return O(this[(e = ie(e))]) ? this[e]() : this;
- }
- function ge(e, t) {
- if ("object" == typeof e) {
- var a,
- i = oe((e = ne(e))),
- n = i.length;
- for (a = 0; a < n; a++) this[i[a].unit](e[i[a].unit]);
- } else if (O(this[(e = ie(e))])) return this[e](t);
- return this;
- }
- var fe,
- ve = /\d/,
- be = /\d\d/,
- ye = /\d{3}/,
- _e = /\d{4}/,
- we = /[+-]?\d{6}/,
- ke = /\d\d?/,
- Se = /\d\d\d\d?/,
- Ee = /\d\d\d\d\d\d?/,
- $e = /\d{1,3}/,
- Ae = /\d{1,4}/,
- Me = /[+-]?\d{1,6}/,
- Te = /\d+/,
- Oe = /[+-]?\d+/,
- xe = /Z|[+-]\d\d:?\d\d/gi,
- ze = /Z|[+-]\d\d(?::?\d\d)?/gi,
- De = /[+-]?\d+(\.\d{1,3})?/,
- He =
- /[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;
- function Pe(e, t, a) {
- fe[e] = O(t)
- ? t
- : function (e, i) {
- return e && a ? a : t;
- };
- }
- function Ne(e, t) {
- return o(fe, e) ? fe[e](t._strict, t._locale) : new RegExp(Ce(e));
- }
- function Ce(e) {
- return je(
- e
- .replace("\\", "")
- .replace(
- /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
- function (e, t, a, i, n) {
- return t || a || i || n;
- }
- )
- );
- }
- function je(e) {
- return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
- }
- fe = {};
- var Le = {};
- function Be(e, t) {
- var a,
- i,
- n = t;
- for (
- "string" == typeof e && (e = [e]),
- d(t) &&
- (n = function (e, a) {
- a[t] = de(e);
- }),
- i = e.length,
- a = 0;
- a < i;
- a++
- )
- Le[e[a]] = n;
- }
- function Ie(e, t) {
- Be(e, function (e, a, i, n) {
- (i._w = i._w || {}), t(e, i._w, i, n);
- });
- }
- function Re(e, t, a) {
- null != t && o(Le, e) && Le[e](t, a._a, a, e);
- }
- var Ue,
- Ye = 0,
- Ve = 1,
- Ge = 2,
- Fe = 3,
- We = 4,
- Ze = 5,
- qe = 6,
- Ke = 7,
- Xe = 8;
- function Je(e, t) {
- return ((e % t) + t) % t;
- }
- function Qe(e, t) {
- if (isNaN(e) || isNaN(t)) return NaN;
- var a = Je(t, 12);
- return (
- (e += (t - a) / 12), 1 === a ? (le(e) ? 29 : 28) : 31 - ((a % 7) % 2)
- );
- }
- (Ue = 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;
- }),
- I("M", ["MM", 2], "Mo", function () {
- return this.month() + 1;
- }),
- I("MMM", 0, 0, function (e) {
- return this.localeData().monthsShort(this, e);
- }),
- I("MMMM", 0, 0, function (e) {
- return this.localeData().months(this, e);
- }),
- ae("month", "M"),
- re("month", 8),
- Pe("M", ke),
- Pe("MM", ke, be),
- Pe("MMM", function (e, t) {
- return t.monthsShortRegex(e);
- }),
- Pe("MMMM", function (e, t) {
- return t.monthsRegex(e);
- }),
- Be(["M", "MM"], function (e, t) {
- t[Ve] = de(e) - 1;
- }),
- Be(["MMM", "MMMM"], function (e, t, a, i) {
- var n = a._locale.monthsParse(e, i, a._strict);
- null != n ? (t[Ve] = n) : (f(a).invalidMonth = e);
- });
- var et =
- "January_February_March_April_May_June_July_August_September_October_November_December".split(
- "_"
- ),
- tt = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
- at = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
- it = He,
- nt = He;
- function st(e, t) {
- return e
- ? s(this._months)
- ? this._months[e.month()]
- : this._months[
- (this._months.isFormat || at).test(t) ? "format" : "standalone"
- ][e.month()]
- : s(this._months)
- ? this._months
- : this._months.standalone;
- }
- function rt(e, t) {
- return e
- ? s(this._monthsShort)
- ? this._monthsShort[e.month()]
- : this._monthsShort[at.test(t) ? "format" : "standalone"][e.month()]
- : s(this._monthsShort)
- ? this._monthsShort
- : this._monthsShort.standalone;
- }
- function ot(e, t, a) {
- var i,
- n,
- s,
- r = e.toLocaleLowerCase();
- if (!this._monthsParse)
- for (
- this._monthsParse = [],
- this._longMonthsParse = [],
- this._shortMonthsParse = [],
- i = 0;
- i < 12;
- ++i
- )
- (s = m([2e3, i])),
- (this._shortMonthsParse[i] = this.monthsShort(
- s,
- ""
- ).toLocaleLowerCase()),
- (this._longMonthsParse[i] = this.months(
- s,
- ""
- ).toLocaleLowerCase());
- return a
- ? "MMM" === t
- ? -1 !== (n = Ue.call(this._shortMonthsParse, r))
- ? n
- : null
- : -1 !== (n = Ue.call(this._longMonthsParse, r))
- ? n
- : null
- : "MMM" === t
- ? -1 !== (n = Ue.call(this._shortMonthsParse, r)) ||
- -1 !== (n = Ue.call(this._longMonthsParse, r))
- ? n
- : null
- : -1 !== (n = Ue.call(this._longMonthsParse, r)) ||
- -1 !== (n = Ue.call(this._shortMonthsParse, r))
- ? n
- : null;
- }
- function lt(e, t, a) {
- var i, n, s;
- if (this._monthsParseExact) return ot.call(this, e, t, a);
- for (
- this._monthsParse ||
- ((this._monthsParse = []),
- (this._longMonthsParse = []),
- (this._shortMonthsParse = [])),
- i = 0;
- i < 12;
- i++
- ) {
- if (
- ((n = m([2e3, i])),
- a &&
- !this._longMonthsParse[i] &&
- ((this._longMonthsParse[i] = new RegExp(
- "^" + this.months(n, "").replace(".", "") + "$",
- "i"
- )),
- (this._shortMonthsParse[i] = new RegExp(
- "^" + this.monthsShort(n, "").replace(".", "") + "$",
- "i"
- ))),
- a ||
- this._monthsParse[i] ||
- ((s = "^" + this.months(n, "") + "|^" + this.monthsShort(n, "")),
- (this._monthsParse[i] = new RegExp(s.replace(".", ""), "i"))),
- a && "MMMM" === t && this._longMonthsParse[i].test(e))
- )
- return i;
- if (a && "MMM" === t && this._shortMonthsParse[i].test(e)) return i;
- if (!a && this._monthsParse[i].test(e)) return i;
- }
- }
- function ut(e, t) {
- var a;
- if (!e.isValid()) return e;
- if ("string" == typeof t)
- if (/^\d+$/.test(t)) t = de(t);
- else if (!d((t = e.localeData().monthsParse(t)))) return e;
- return (
- (a = Math.min(e.date(), Qe(e.year(), t))),
- e._d["set" + (e._isUTC ? "UTC" : "") + "Month"](t, a),
- e
- );
- }
- function dt(e) {
- return null != e
- ? (ut(this, e), i.updateOffset(this, !0), this)
- : he(this, "Month");
- }
- function ct() {
- return Qe(this.year(), this.month());
- }
- function ht(e) {
- return this._monthsParseExact
- ? (o(this, "_monthsRegex") || mt.call(this),
- e ? this._monthsShortStrictRegex : this._monthsShortRegex)
- : (o(this, "_monthsShortRegex") || (this._monthsShortRegex = it),
- this._monthsShortStrictRegex && e
- ? this._monthsShortStrictRegex
- : this._monthsShortRegex);
- }
- function pt(e) {
- return this._monthsParseExact
- ? (o(this, "_monthsRegex") || mt.call(this),
- e ? this._monthsStrictRegex : this._monthsRegex)
- : (o(this, "_monthsRegex") || (this._monthsRegex = nt),
- this._monthsStrictRegex && e
- ? this._monthsStrictRegex
- : this._monthsRegex);
- }
- function mt() {
- function e(e, t) {
- return t.length - e.length;
- }
- var t,
- a,
- i = [],
- n = [],
- s = [];
- for (t = 0; t < 12; t++)
- (a = m([2e3, t])),
- i.push(this.monthsShort(a, "")),
- n.push(this.months(a, "")),
- s.push(this.months(a, "")),
- s.push(this.monthsShort(a, ""));
- for (i.sort(e), n.sort(e), s.sort(e), t = 0; t < 12; t++)
- (i[t] = je(i[t])), (n[t] = je(n[t]));
- for (t = 0; t < 24; t++) s[t] = je(s[t]);
- (this._monthsRegex = new RegExp("^(" + s.join("|") + ")", "i")),
- (this._monthsShortRegex = this._monthsRegex),
- (this._monthsStrictRegex = new RegExp("^(" + n.join("|") + ")", "i")),
- (this._monthsShortStrictRegex = new RegExp(
- "^(" + i.join("|") + ")",
- "i"
- ));
- }
- function gt(e) {
- return le(e) ? 366 : 365;
- }
- I("Y", 0, 0, function () {
- var e = this.year();
- return e <= 9999 ? N(e, 4) : "+" + e;
- }),
- I(0, ["YY", 2], 0, function () {
- return this.year() % 100;
- }),
- I(0, ["YYYY", 4], 0, "year"),
- I(0, ["YYYYY", 5], 0, "year"),
- I(0, ["YYYYYY", 6, !0], 0, "year"),
- ae("year", "y"),
- re("year", 1),
- Pe("Y", Oe),
- Pe("YY", ke, be),
- Pe("YYYY", Ae, _e),
- Pe("YYYYY", Me, we),
- Pe("YYYYYY", Me, we),
- Be(["YYYYY", "YYYYYY"], Ye),
- Be("YYYY", function (e, t) {
- t[Ye] = 2 === e.length ? i.parseTwoDigitYear(e) : de(e);
- }),
- Be("YY", function (e, t) {
- t[Ye] = i.parseTwoDigitYear(e);
- }),
- Be("Y", function (e, t) {
- t[Ye] = parseInt(e, 10);
- }),
- (i.parseTwoDigitYear = function (e) {
- return de(e) + (de(e) > 68 ? 1900 : 2e3);
- });
- var ft = ce("FullYear", !0);
- function vt() {
- return le(this.year());
- }
- function bt(e, t, a, i, n, s, r) {
- var o;
- return (
- e < 100 && e >= 0
- ? ((o = new Date(e + 400, t, a, i, n, s, r)),
- isFinite(o.getFullYear()) && o.setFullYear(e))
- : (o = new Date(e, t, a, i, n, s, r)),
- o
- );
- }
- function yt(e) {
- var t, a;
- return (
- e < 100 && e >= 0
- ? (((a = Array.prototype.slice.call(arguments))[0] = e + 400),
- (t = new Date(Date.UTC.apply(null, a))),
- isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e))
- : (t = new Date(Date.UTC.apply(null, arguments))),
- t
- );
- }
- function _t(e, t, a) {
- var i = 7 + t - a;
- return (-(7 + yt(e, 0, i).getUTCDay() - t) % 7) + i - 1;
- }
- function wt(e, t, a, i, n) {
- var s,
- r,
- o = 1 + 7 * (t - 1) + ((7 + a - i) % 7) + _t(e, i, n);
- return (
- o <= 0
- ? (r = gt((s = e - 1)) + o)
- : o > gt(e)
- ? ((s = e + 1), (r = o - gt(e)))
- : ((s = e), (r = o)),
- { year: s, dayOfYear: r }
- );
- }
- function kt(e, t, a) {
- var i,
- n,
- s = _t(e.year(), t, a),
- r = Math.floor((e.dayOfYear() - s - 1) / 7) + 1;
- return (
- r < 1
- ? (i = r + St((n = e.year() - 1), t, a))
- : r > St(e.year(), t, a)
- ? ((i = r - St(e.year(), t, a)), (n = e.year() + 1))
- : ((n = e.year()), (i = r)),
- { week: i, year: n }
- );
- }
- function St(e, t, a) {
- var i = _t(e, t, a),
- n = _t(e + 1, t, a);
- return (gt(e) - i + n) / 7;
- }
- function Et(e) {
- return kt(e, this._week.dow, this._week.doy).week;
- }
- I("w", ["ww", 2], "wo", "week"),
- I("W", ["WW", 2], "Wo", "isoWeek"),
- ae("week", "w"),
- ae("isoWeek", "W"),
- re("week", 5),
- re("isoWeek", 5),
- Pe("w", ke),
- Pe("ww", ke, be),
- Pe("W", ke),
- Pe("WW", ke, be),
- Ie(["w", "ww", "W", "WW"], function (e, t, a, i) {
- t[i.substr(0, 1)] = de(e);
- });
- var $t = { dow: 0, doy: 6 };
- function At() {
- return this._week.dow;
- }
- function Mt() {
- return this._week.doy;
- }
- function Tt(e) {
- var t = this.localeData().week(this);
- return null == e ? t : this.add(7 * (e - t), "d");
- }
- function Ot(e) {
- var t = kt(this, 1, 4).week;
- return null == e ? t : this.add(7 * (e - t), "d");
- }
- function xt(e, t) {
- return "string" != typeof e
- ? e
- : isNaN(e)
- ? "number" == typeof (e = t.weekdaysParse(e))
- ? e
- : null
- : parseInt(e, 10);
- }
- function zt(e, t) {
- return "string" == typeof e
- ? t.weekdaysParse(e) % 7 || 7
- : isNaN(e)
- ? null
- : e;
- }
- function Dt(e, t) {
- return e.slice(t, 7).concat(e.slice(0, t));
- }
- I("d", 0, "do", "day"),
- I("dd", 0, 0, function (e) {
- return this.localeData().weekdaysMin(this, e);
- }),
- I("ddd", 0, 0, function (e) {
- return this.localeData().weekdaysShort(this, e);
- }),
- I("dddd", 0, 0, function (e) {
- return this.localeData().weekdays(this, e);
- }),
- I("e", 0, 0, "weekday"),
- I("E", 0, 0, "isoWeekday"),
- ae("day", "d"),
- ae("weekday", "e"),
- ae("isoWeekday", "E"),
- re("day", 11),
- re("weekday", 11),
- re("isoWeekday", 11),
- Pe("d", ke),
- Pe("e", ke),
- Pe("E", ke),
- Pe("dd", function (e, t) {
- return t.weekdaysMinRegex(e);
- }),
- Pe("ddd", function (e, t) {
- return t.weekdaysShortRegex(e);
- }),
- Pe("dddd", function (e, t) {
- return t.weekdaysRegex(e);
- }),
- Ie(["dd", "ddd", "dddd"], function (e, t, a, i) {
- var n = a._locale.weekdaysParse(e, i, a._strict);
- null != n ? (t.d = n) : (f(a).invalidWeekday = e);
- }),
- Ie(["d", "e", "E"], function (e, t, a, i) {
- t[i] = de(e);
- });
- var Ht = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split(
- "_"
- ),
- Pt = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
- Nt = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
- Ct = He,
- jt = He,
- Lt = He;
- function Bt(e, t) {
- var a = s(this._weekdays)
- ? this._weekdays
- : this._weekdays[
- e && !0 !== e && this._weekdays.isFormat.test(t)
- ? "format"
- : "standalone"
- ];
- return !0 === e ? Dt(a, this._week.dow) : e ? a[e.day()] : a;
- }
- function It(e) {
- return !0 === e
- ? Dt(this._weekdaysShort, this._week.dow)
- : e
- ? this._weekdaysShort[e.day()]
- : this._weekdaysShort;
- }
- function Rt(e) {
- return !0 === e
- ? Dt(this._weekdaysMin, this._week.dow)
- : e
- ? this._weekdaysMin[e.day()]
- : this._weekdaysMin;
- }
- function Ut(e, t, a) {
- var i,
- n,
- s,
- r = e.toLocaleLowerCase();
- if (!this._weekdaysParse)
- for (
- this._weekdaysParse = [],
- this._shortWeekdaysParse = [],
- this._minWeekdaysParse = [],
- i = 0;
- i < 7;
- ++i
- )
- (s = m([2e3, 1]).day(i)),
- (this._minWeekdaysParse[i] = this.weekdaysMin(
- s,
- ""
- ).toLocaleLowerCase()),
- (this._shortWeekdaysParse[i] = this.weekdaysShort(
- s,
- ""
- ).toLocaleLowerCase()),
- (this._weekdaysParse[i] = this.weekdays(
- s,
- ""
- ).toLocaleLowerCase());
- return a
- ? "dddd" === t
- ? -1 !== (n = Ue.call(this._weekdaysParse, r))
- ? n
- : null
- : "ddd" === t
- ? -1 !== (n = Ue.call(this._shortWeekdaysParse, r))
- ? n
- : null
- : -1 !== (n = Ue.call(this._minWeekdaysParse, r))
- ? n
- : null
- : "dddd" === t
- ? -1 !== (n = Ue.call(this._weekdaysParse, r)) ||
- -1 !== (n = Ue.call(this._shortWeekdaysParse, r)) ||
- -1 !== (n = Ue.call(this._minWeekdaysParse, r))
- ? n
- : null
- : "ddd" === t
- ? -1 !== (n = Ue.call(this._shortWeekdaysParse, r)) ||
- -1 !== (n = Ue.call(this._weekdaysParse, r)) ||
- -1 !== (n = Ue.call(this._minWeekdaysParse, r))
- ? n
- : null
- : -1 !== (n = Ue.call(this._minWeekdaysParse, r)) ||
- -1 !== (n = Ue.call(this._weekdaysParse, r)) ||
- -1 !== (n = Ue.call(this._shortWeekdaysParse, r))
- ? n
- : null;
- }
- function Yt(e, t, a) {
- var i, n, s;
- if (this._weekdaysParseExact) return Ut.call(this, e, t, a);
- for (
- this._weekdaysParse ||
- ((this._weekdaysParse = []),
- (this._minWeekdaysParse = []),
- (this._shortWeekdaysParse = []),
- (this._fullWeekdaysParse = [])),
- i = 0;
- i < 7;
- i++
- ) {
- if (
- ((n = m([2e3, 1]).day(i)),
- a &&
- !this._fullWeekdaysParse[i] &&
- ((this._fullWeekdaysParse[i] = new RegExp(
- "^" + this.weekdays(n, "").replace(".", "\\.?") + "$",
- "i"
- )),
- (this._shortWeekdaysParse[i] = new RegExp(
- "^" + this.weekdaysShort(n, "").replace(".", "\\.?") + "$",
- "i"
- )),
- (this._minWeekdaysParse[i] = new RegExp(
- "^" + this.weekdaysMin(n, "").replace(".", "\\.?") + "$",
- "i"
- ))),
- this._weekdaysParse[i] ||
- ((s =
- "^" +
- this.weekdays(n, "") +
- "|^" +
- this.weekdaysShort(n, "") +
- "|^" +
- this.weekdaysMin(n, "")),
- (this._weekdaysParse[i] = new RegExp(s.replace(".", ""), "i"))),
- a && "dddd" === t && this._fullWeekdaysParse[i].test(e))
- )
- return i;
- if (a && "ddd" === t && this._shortWeekdaysParse[i].test(e)) return i;
- if (a && "dd" === t && this._minWeekdaysParse[i].test(e)) return i;
- if (!a && this._weekdaysParse[i].test(e)) return i;
- }
- }
- function Vt(e) {
- if (!this.isValid()) return null != e ? this : NaN;
- var t = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
- return null != e
- ? ((e = xt(e, this.localeData())), this.add(e - t, "d"))
- : t;
- }
- function Gt(e) {
- if (!this.isValid()) return null != e ? this : NaN;
- var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
- return null == e ? t : this.add(e - t, "d");
- }
- function Ft(e) {
- if (!this.isValid()) return null != e ? this : NaN;
- if (null != e) {
- var t = zt(e, this.localeData());
- return this.day(this.day() % 7 ? t : t - 7);
- }
- return this.day() || 7;
- }
- function Wt(e) {
- return this._weekdaysParseExact
- ? (o(this, "_weekdaysRegex") || Kt.call(this),
- e ? this._weekdaysStrictRegex : this._weekdaysRegex)
- : (o(this, "_weekdaysRegex") || (this._weekdaysRegex = Ct),
- this._weekdaysStrictRegex && e
- ? this._weekdaysStrictRegex
- : this._weekdaysRegex);
- }
- function Zt(e) {
- return this._weekdaysParseExact
- ? (o(this, "_weekdaysRegex") || Kt.call(this),
- e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex)
- : (o(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = jt),
- this._weekdaysShortStrictRegex && e
- ? this._weekdaysShortStrictRegex
- : this._weekdaysShortRegex);
- }
- function qt(e) {
- return this._weekdaysParseExact
- ? (o(this, "_weekdaysRegex") || Kt.call(this),
- e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex)
- : (o(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Lt),
- this._weekdaysMinStrictRegex && e
- ? this._weekdaysMinStrictRegex
- : this._weekdaysMinRegex);
- }
- function Kt() {
- function e(e, t) {
- return t.length - e.length;
- }
- var t,
- a,
- i,
- n,
- s,
- r = [],
- o = [],
- l = [],
- u = [];
- for (t = 0; t < 7; t++)
- (a = m([2e3, 1]).day(t)),
- (i = je(this.weekdaysMin(a, ""))),
- (n = je(this.weekdaysShort(a, ""))),
- (s = je(this.weekdays(a, ""))),
- r.push(i),
- o.push(n),
- l.push(s),
- u.push(i),
- u.push(n),
- u.push(s);
- r.sort(e),
- o.sort(e),
- l.sort(e),
- u.sort(e),
- (this._weekdaysRegex = new RegExp("^(" + u.join("|") + ")", "i")),
- (this._weekdaysShortRegex = this._weekdaysRegex),
- (this._weekdaysMinRegex = this._weekdaysRegex),
- (this._weekdaysStrictRegex = new RegExp(
- "^(" + l.join("|") + ")",
- "i"
- )),
- (this._weekdaysShortStrictRegex = new RegExp(
- "^(" + o.join("|") + ")",
- "i"
- )),
- (this._weekdaysMinStrictRegex = new RegExp(
- "^(" + r.join("|") + ")",
- "i"
- ));
- }
- function Xt() {
- return this.hours() % 12 || 12;
- }
- function Jt() {
- return this.hours() || 24;
- }
- function Qt(e, t) {
- I(e, 0, 0, function () {
- return this.localeData().meridiem(this.hours(), this.minutes(), t);
- });
- }
- function ea(e, t) {
- return t._meridiemParse;
- }
- function ta(e) {
- return "p" === (e + "").toLowerCase().charAt(0);
- }
- I("H", ["HH", 2], 0, "hour"),
- I("h", ["hh", 2], 0, Xt),
- I("k", ["kk", 2], 0, Jt),
- I("hmm", 0, 0, function () {
- return "" + Xt.apply(this) + N(this.minutes(), 2);
- }),
- I("hmmss", 0, 0, function () {
- return (
- "" + Xt.apply(this) + N(this.minutes(), 2) + N(this.seconds(), 2)
- );
- }),
- I("Hmm", 0, 0, function () {
- return "" + this.hours() + N(this.minutes(), 2);
- }),
- I("Hmmss", 0, 0, function () {
- return (
- "" + this.hours() + N(this.minutes(), 2) + N(this.seconds(), 2)
- );
- }),
- Qt("a", !0),
- Qt("A", !1),
- ae("hour", "h"),
- re("hour", 13),
- Pe("a", ea),
- Pe("A", ea),
- Pe("H", ke),
- Pe("h", ke),
- Pe("k", ke),
- Pe("HH", ke, be),
- Pe("hh", ke, be),
- Pe("kk", ke, be),
- Pe("hmm", Se),
- Pe("hmmss", Ee),
- Pe("Hmm", Se),
- Pe("Hmmss", Ee),
- Be(["H", "HH"], Fe),
- Be(["k", "kk"], function (e, t, a) {
- var i = de(e);
- t[Fe] = 24 === i ? 0 : i;
- }),
- Be(["a", "A"], function (e, t, a) {
- (a._isPm = a._locale.isPM(e)), (a._meridiem = e);
- }),
- Be(["h", "hh"], function (e, t, a) {
- (t[Fe] = de(e)), (f(a).bigHour = !0);
- }),
- Be("hmm", function (e, t, a) {
- var i = e.length - 2;
- (t[Fe] = de(e.substr(0, i))),
- (t[We] = de(e.substr(i))),
- (f(a).bigHour = !0);
- }),
- Be("hmmss", function (e, t, a) {
- var i = e.length - 4,
- n = e.length - 2;
- (t[Fe] = de(e.substr(0, i))),
- (t[We] = de(e.substr(i, 2))),
- (t[Ze] = de(e.substr(n))),
- (f(a).bigHour = !0);
- }),
- Be("Hmm", function (e, t, a) {
- var i = e.length - 2;
- (t[Fe] = de(e.substr(0, i))), (t[We] = de(e.substr(i)));
- }),
- Be("Hmmss", function (e, t, a) {
- var i = e.length - 4,
- n = e.length - 2;
- (t[Fe] = de(e.substr(0, i))),
- (t[We] = de(e.substr(i, 2))),
- (t[Ze] = de(e.substr(n)));
- });
- var aa = /[ap]\.?m?\.?/i,
- ia = ce("Hours", !0);
- function na(e, t, a) {
- return e > 11 ? (a ? "pm" : "PM") : a ? "am" : "AM";
- }
- var sa,
- ra = {
- calendar: H,
- longDateFormat: G,
- invalidDate: W,
- ordinal: q,
- dayOfMonthOrdinalParse: K,
- relativeTime: J,
- months: et,
- monthsShort: tt,
- week: $t,
- weekdays: Ht,
- weekdaysMin: Nt,
- weekdaysShort: Pt,
- meridiemParse: aa,
- },
- oa = {},
- la = {};
- function ua(e, t) {
- var a,
- i = Math.min(e.length, t.length);
- for (a = 0; a < i; a += 1) if (e[a] !== t[a]) return a;
- return i;
- }
- function da(e) {
- return e ? e.toLowerCase().replace("_", "-") : e;
- }
- function ca(e) {
- for (var t, a, i, n, s = 0; s < e.length; ) {
- for (
- t = (n = da(e[s]).split("-")).length,
- a = (a = da(e[s + 1])) ? a.split("-") : null;
- t > 0;
-
- ) {
- if ((i = pa(n.slice(0, t).join("-")))) return i;
- if (a && a.length >= t && ua(n, a) >= t - 1) break;
- t--;
- }
- s++;
- }
- return sa;
- }
- function ha(e) {
- return null != e.match("^[^/\\\\]*$");
- }
- function pa(t) {
- var a = null;
- if (void 0 === oa[t] && e && e.exports && ha(t))
- try {
- (a = sa._abbr), Xi("./locale/" + t), ma(a);
- } catch (e) {
- oa[t] = null;
- }
- return oa[t];
- }
- function ma(e, t) {
- var a;
- return (
- e &&
- ((a = u(t) ? va(e) : ga(e, t))
- ? (sa = a)
- : "undefined" != typeof console &&
- console.warn &&
- console.warn(
- "Locale " + e + " not found. Did you forget to load it?"
- )),
- sa._abbr
- );
- }
- function ga(e, t) {
- if (null !== t) {
- var a,
- i = ra;
- if (((t.abbr = e), null != oa[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."
- ),
- (i = oa[e]._config);
- else if (null != t.parentLocale)
- if (null != oa[t.parentLocale]) i = oa[t.parentLocale]._config;
- else {
- if (null == (a = pa(t.parentLocale)))
- return (
- la[t.parentLocale] || (la[t.parentLocale] = []),
- la[t.parentLocale].push({ name: e, config: t }),
- null
- );
- i = a._config;
- }
- return (
- (oa[e] = new D(z(i, t))),
- la[e] &&
- la[e].forEach(function (e) {
- ga(e.name, e.config);
- }),
- ma(e),
- oa[e]
- );
- }
- return delete oa[e], null;
- }
- function fa(e, t) {
- if (null != t) {
- var a,
- i,
- n = ra;
- null != oa[e] && null != oa[e].parentLocale
- ? oa[e].set(z(oa[e]._config, t))
- : (null != (i = pa(e)) && (n = i._config),
- (t = z(n, t)),
- null == i && (t.abbr = e),
- ((a = new D(t)).parentLocale = oa[e]),
- (oa[e] = a)),
- ma(e);
- } else
- null != oa[e] &&
- (null != oa[e].parentLocale
- ? ((oa[e] = oa[e].parentLocale), e === ma() && ma(e))
- : null != oa[e] && delete oa[e]);
- return oa[e];
- }
- function va(e) {
- var t;
- if ((e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e))
- return sa;
- if (!s(e)) {
- if ((t = pa(e))) return t;
- e = [e];
- }
- return ca(e);
- }
- function ba() {
- return A(oa);
- }
- function ya(e) {
- var t,
- a = e._a;
- return (
- a &&
- -2 === f(e).overflow &&
- ((t =
- a[Ve] < 0 || a[Ve] > 11
- ? Ve
- : a[Ge] < 1 || a[Ge] > Qe(a[Ye], a[Ve])
- ? Ge
- : a[Fe] < 0 ||
- a[Fe] > 24 ||
- (24 === a[Fe] && (0 !== a[We] || 0 !== a[Ze] || 0 !== a[qe]))
- ? Fe
- : a[We] < 0 || a[We] > 59
- ? We
- : a[Ze] < 0 || a[Ze] > 59
- ? Ze
- : a[qe] < 0 || a[qe] > 999
- ? qe
- : -1),
- f(e)._overflowDayOfYear && (t < Ye || t > Ge) && (t = Ge),
- f(e)._overflowWeeks && -1 === t && (t = Ke),
- f(e)._overflowWeekday && -1 === t && (t = Xe),
- (f(e).overflow = t)),
- e
- );
- }
- var _a =
- /^\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)?)?$/,
- wa =
- /^\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)?)?$/,
- ka = /Z|[+-]\d\d(?::?\d\d)?/,
- Sa = [
- ["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}/],
- ["YYYYMM", /\d{6}/, !1],
- ["YYYY", /\d{4}/, !1],
- ],
- Ea = [
- ["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/],
- ],
- $a = /^\/?Date\((-?\d+)/i,
- Aa =
- /^(?:(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}))$/,
- Ma = {
- UT: 0,
- GMT: 0,
- EDT: -240,
- EST: -300,
- CDT: -300,
- CST: -360,
- MDT: -360,
- MST: -420,
- PDT: -420,
- PST: -480,
- };
- function Ta(e) {
- var t,
- a,
- i,
- n,
- s,
- r,
- o = e._i,
- l = _a.exec(o) || wa.exec(o),
- u = Sa.length,
- d = Ea.length;
- if (l) {
- for (f(e).iso = !0, t = 0, a = u; t < a; t++)
- if (Sa[t][1].exec(l[1])) {
- (n = Sa[t][0]), (i = !1 !== Sa[t][2]);
- break;
- }
- if (null == n) return void (e._isValid = !1);
- if (l[3]) {
- for (t = 0, a = d; t < a; t++)
- if (Ea[t][1].exec(l[3])) {
- s = (l[2] || " ") + Ea[t][0];
- break;
- }
- if (null == s) return void (e._isValid = !1);
- }
- if (!i && null != s) return void (e._isValid = !1);
- if (l[4]) {
- if (!ka.exec(l[4])) return void (e._isValid = !1);
- r = "Z";
- }
- (e._f = n + (s || "") + (r || "")), Ia(e);
- } else e._isValid = !1;
- }
- function Oa(e, t, a, i, n, s) {
- var r = [
- xa(e),
- tt.indexOf(t),
- parseInt(a, 10),
- parseInt(i, 10),
- parseInt(n, 10),
- ];
- return s && r.push(parseInt(s, 10)), r;
- }
- function xa(e) {
- var t = parseInt(e, 10);
- return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
- }
- function za(e) {
- return e
- .replace(/\([^()]*\)|[\n\t]/g, " ")
- .replace(/(\s\s+)/g, " ")
- .replace(/^\s\s*/, "")
- .replace(/\s\s*$/, "");
- }
- function Da(e, t, a) {
- return (
- !e ||
- Pt.indexOf(e) === new Date(t[0], t[1], t[2]).getDay() ||
- ((f(a).weekdayMismatch = !0), (a._isValid = !1), !1)
- );
- }
- function Ha(e, t, a) {
- if (e) return Ma[e];
- if (t) return 0;
- var i = parseInt(a, 10),
- n = i % 100;
- return ((i - n) / 100) * 60 + n;
- }
- function Pa(e) {
- var t,
- a = Aa.exec(za(e._i));
- if (a) {
- if (((t = Oa(a[4], a[3], a[2], a[5], a[6], a[7])), !Da(a[1], t, e)))
- return;
- (e._a = t),
- (e._tzm = Ha(a[8], a[9], a[10])),
- (e._d = yt.apply(null, e._a)),
- e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
- (f(e).rfc2822 = !0);
- } else e._isValid = !1;
- }
- function Na(e) {
- var t = $a.exec(e._i);
- null === t
- ? (Ta(e),
- !1 === e._isValid &&
- (delete e._isValid,
- Pa(e),
- !1 === e._isValid &&
- (delete e._isValid,
- e._strict ? (e._isValid = !1) : i.createFromInputFallback(e))))
- : (e._d = new Date(+t[1]));
- }
- function Ca(e, t, a) {
- return null != e ? e : null != t ? t : a;
- }
- function ja(e) {
- var t = new Date(i.now());
- return e._useUTC
- ? [t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()]
- : [t.getFullYear(), t.getMonth(), t.getDate()];
- }
- function La(e) {
- var t,
- a,
- i,
- n,
- s,
- r = [];
- if (!e._d) {
- for (
- i = ja(e),
- e._w && null == e._a[Ge] && null == e._a[Ve] && Ba(e),
- null != e._dayOfYear &&
- ((s = Ca(e._a[Ye], i[Ye])),
- (e._dayOfYear > gt(s) || 0 === e._dayOfYear) &&
- (f(e)._overflowDayOfYear = !0),
- (a = yt(s, 0, e._dayOfYear)),
- (e._a[Ve] = a.getUTCMonth()),
- (e._a[Ge] = a.getUTCDate())),
- t = 0;
- t < 3 && null == e._a[t];
- ++t
- )
- e._a[t] = r[t] = i[t];
- for (; t < 7; t++)
- e._a[t] = r[t] = null == e._a[t] ? (2 === t ? 1 : 0) : e._a[t];
- 24 === e._a[Fe] &&
- 0 === e._a[We] &&
- 0 === e._a[Ze] &&
- 0 === e._a[qe] &&
- ((e._nextDay = !0), (e._a[Fe] = 0)),
- (e._d = (e._useUTC ? yt : bt).apply(null, r)),
- (n = e._useUTC ? e._d.getUTCDay() : e._d.getDay()),
- null != e._tzm && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
- e._nextDay && (e._a[Fe] = 24),
- e._w &&
- void 0 !== e._w.d &&
- e._w.d !== n &&
- (f(e).weekdayMismatch = !0);
- }
- }
- function Ba(e) {
- var t, a, i, n, s, r, o, l, u;
- null != (t = e._w).GG || null != t.W || null != t.E
- ? ((s = 1),
- (r = 4),
- (a = Ca(t.GG, e._a[Ye], kt(Za(), 1, 4).year)),
- (i = Ca(t.W, 1)),
- ((n = Ca(t.E, 1)) < 1 || n > 7) && (l = !0))
- : ((s = e._locale._week.dow),
- (r = e._locale._week.doy),
- (u = kt(Za(), s, r)),
- (a = Ca(t.gg, e._a[Ye], u.year)),
- (i = Ca(t.w, u.week)),
- null != t.d
- ? ((n = t.d) < 0 || n > 6) && (l = !0)
- : null != t.e
- ? ((n = t.e + s), (t.e < 0 || t.e > 6) && (l = !0))
- : (n = s)),
- i < 1 || i > St(a, s, r)
- ? (f(e)._overflowWeeks = !0)
- : null != l
- ? (f(e)._overflowWeekday = !0)
- : ((o = wt(a, i, n, s, r)),
- (e._a[Ye] = o.year),
- (e._dayOfYear = o.dayOfYear));
- }
- function Ia(e) {
- if (e._f !== i.ISO_8601)
- if (e._f !== i.RFC_2822) {
- (e._a = []), (f(e).empty = !0);
- var t,
- a,
- n,
- s,
- r,
- o,
- l,
- u = "" + e._i,
- d = u.length,
- c = 0;
- for (
- l = (n = V(e._f, e._locale).match(C) || []).length, t = 0;
- t < l;
- t++
- )
- (s = n[t]),
- (a = (u.match(Ne(s, e)) || [])[0]) &&
- ((r = u.substr(0, u.indexOf(a))).length > 0 &&
- f(e).unusedInput.push(r),
- (u = u.slice(u.indexOf(a) + a.length)),
- (c += a.length)),
- B[s]
- ? (a ? (f(e).empty = !1) : f(e).unusedTokens.push(s),
- Re(s, a, e))
- : e._strict && !a && f(e).unusedTokens.push(s);
- (f(e).charsLeftOver = d - c),
- u.length > 0 && f(e).unusedInput.push(u),
- e._a[Fe] <= 12 &&
- !0 === f(e).bigHour &&
- e._a[Fe] > 0 &&
- (f(e).bigHour = void 0),
- (f(e).parsedDateParts = e._a.slice(0)),
- (f(e).meridiem = e._meridiem),
- (e._a[Fe] = Ra(e._locale, e._a[Fe], e._meridiem)),
- null !== (o = f(e).era) &&
- (e._a[Ye] = e._locale.erasConvertYear(o, e._a[Ye])),
- La(e),
- ya(e);
- } else Pa(e);
- else Ta(e);
- }
- function Ra(e, t, a) {
- var i;
- return null == a
- ? t
- : null != e.meridiemHour
- ? e.meridiemHour(t, a)
- : null != e.isPM
- ? ((i = e.isPM(a)) && t < 12 && (t += 12),
- i || 12 !== t || (t = 0),
- t)
- : t;
- }
- function Ua(e) {
- var t,
- a,
- i,
- n,
- s,
- r,
- o = !1,
- l = e._f.length;
- if (0 === l)
- return (f(e).invalidFormat = !0), void (e._d = new Date(NaN));
- for (n = 0; n < l; n++)
- (s = 0),
- (r = !1),
- (t = w({}, e)),
- null != e._useUTC && (t._useUTC = e._useUTC),
- (t._f = e._f[n]),
- Ia(t),
- v(t) && (r = !0),
- (s += f(t).charsLeftOver),
- (s += 10 * f(t).unusedTokens.length),
- (f(t).score = s),
- o
- ? s < i && ((i = s), (a = t))
- : (null == i || s < i || r) && ((i = s), (a = t), r && (o = !0));
- p(e, a || t);
- }
- function Ya(e) {
- if (!e._d) {
- var t = ne(e._i),
- a = void 0 === t.day ? t.date : t.day;
- (e._a = h(
- [t.year, t.month, a, t.hour, t.minute, t.second, t.millisecond],
- function (e) {
- return e && parseInt(e, 10);
- }
- )),
- La(e);
- }
- }
- function Va(e) {
- var t = new k(ya(Ga(e)));
- return t._nextDay && (t.add(1, "d"), (t._nextDay = void 0)), t;
- }
- function Ga(e) {
- var t = e._i,
- a = e._f;
- return (
- (e._locale = e._locale || va(e._l)),
- null === t || (void 0 === a && "" === t)
- ? b({ nullInput: !0 })
- : ("string" == typeof t && (e._i = t = e._locale.preparse(t)),
- S(t)
- ? new k(ya(t))
- : (c(t) ? (e._d = t) : s(a) ? Ua(e) : a ? Ia(e) : Fa(e),
- v(e) || (e._d = null),
- e))
- );
- }
- function Fa(e) {
- var t = e._i;
- u(t)
- ? (e._d = new Date(i.now()))
- : c(t)
- ? (e._d = new Date(t.valueOf()))
- : "string" == typeof t
- ? Na(e)
- : s(t)
- ? ((e._a = h(t.slice(0), function (e) {
- return parseInt(e, 10);
- })),
- La(e))
- : r(t)
- ? Ya(e)
- : d(t)
- ? (e._d = new Date(t))
- : i.createFromInputFallback(e);
- }
- function Wa(e, t, a, i, n) {
- var o = {};
- return (
- (!0 !== t && !1 !== t) || ((i = t), (t = void 0)),
- (!0 !== a && !1 !== a) || ((i = a), (a = void 0)),
- ((r(e) && l(e)) || (s(e) && 0 === e.length)) && (e = void 0),
- (o._isAMomentObject = !0),
- (o._useUTC = o._isUTC = n),
- (o._l = a),
- (o._i = e),
- (o._f = t),
- (o._strict = i),
- Va(o)
- );
- }
- function Za(e, t, a, i) {
- return Wa(e, t, a, i, !1);
- }
- (i.createFromInputFallback = $(
- "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
- function (e) {
- e._d = new Date(e._i + (e._useUTC ? " UTC" : ""));
- }
- )),
- (i.ISO_8601 = function () {}),
- (i.RFC_2822 = function () {});
- var qa = $(
- "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
- function () {
- var e = Za.apply(null, arguments);
- return this.isValid() && e.isValid() ? (e < this ? this : e) : b();
- }
- ),
- Ka = $(
- "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
- function () {
- var e = Za.apply(null, arguments);
- return this.isValid() && e.isValid() ? (e > this ? this : e) : b();
- }
- );
- function Xa(e, t) {
- var a, i;
- if ((1 === t.length && s(t[0]) && (t = t[0]), !t.length)) return Za();
- for (a = t[0], i = 1; i < t.length; ++i)
- (t[i].isValid() && !t[i][e](a)) || (a = t[i]);
- return a;
- }
- function Ja() {
- return Xa("isBefore", [].slice.call(arguments, 0));
- }
- function Qa() {
- return Xa("isAfter", [].slice.call(arguments, 0));
- }
- var ei = function () {
- return Date.now ? Date.now() : +new Date();
- },
- ti = [
- "year",
- "quarter",
- "month",
- "week",
- "day",
- "hour",
- "minute",
- "second",
- "millisecond",
- ];
- function ai(e) {
- var t,
- a,
- i = !1,
- n = ti.length;
- for (t in e)
- if (
- o(e, t) &&
- (-1 === Ue.call(ti, t) || (null != e[t] && isNaN(e[t])))
- )
- return !1;
- for (a = 0; a < n; ++a)
- if (e[ti[a]]) {
- if (i) return !1;
- parseFloat(e[ti[a]]) !== de(e[ti[a]]) && (i = !0);
- }
- return !0;
- }
- function ii() {
- return this._isValid;
- }
- function ni() {
- return Mi(NaN);
- }
- function si(e) {
- var t = ne(e),
- a = t.year || 0,
- i = t.quarter || 0,
- n = t.month || 0,
- s = t.week || t.isoWeek || 0,
- r = t.day || 0,
- o = t.hour || 0,
- l = t.minute || 0,
- u = t.second || 0,
- d = t.millisecond || 0;
- (this._isValid = ai(t)),
- (this._milliseconds = +d + 1e3 * u + 6e4 * l + 1e3 * o * 60 * 60),
- (this._days = +r + 7 * s),
- (this._months = +n + 3 * i + 12 * a),
- (this._data = {}),
- (this._locale = va()),
- this._bubble();
- }
- function ri(e) {
- return e instanceof si;
- }
- function oi(e) {
- return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e);
- }
- function li(e, t, a) {
- var i,
- n = Math.min(e.length, t.length),
- s = Math.abs(e.length - t.length),
- r = 0;
- for (i = 0; i < n; i++)
- ((a && e[i] !== t[i]) || (!a && de(e[i]) !== de(t[i]))) && r++;
- return r + s;
- }
- function ui(e, t) {
- I(e, 0, 0, function () {
- var e = this.utcOffset(),
- a = "+";
- return (
- e < 0 && ((e = -e), (a = "-")),
- a + N(~~(e / 60), 2) + t + N(~~e % 60, 2)
- );
- });
- }
- ui("Z", ":"),
- ui("ZZ", ""),
- Pe("Z", ze),
- Pe("ZZ", ze),
- Be(["Z", "ZZ"], function (e, t, a) {
- (a._useUTC = !0), (a._tzm = ci(ze, e));
- });
- var di = /([\+\-]|\d\d)/gi;
- function ci(e, t) {
- var a,
- i,
- n = (t || "").match(e);
- return null === n
- ? null
- : 0 ===
- (i =
- 60 *
- (a = ((n[n.length - 1] || []) + "").match(di) || [
- "-",
- 0,
- 0,
- ])[1] +
- de(a[2]))
- ? 0
- : "+" === a[0]
- ? i
- : -i;
- }
- function hi(e, t) {
- var a, n;
- return t._isUTC
- ? ((a = t.clone()),
- (n = (S(e) || c(e) ? e.valueOf() : Za(e).valueOf()) - a.valueOf()),
- a._d.setTime(a._d.valueOf() + n),
- i.updateOffset(a, !1),
- a)
- : Za(e).local();
- }
- function pi(e) {
- return -Math.round(e._d.getTimezoneOffset());
- }
- function mi(e, t, a) {
- var n,
- s = this._offset || 0;
- if (!this.isValid()) return null != e ? this : NaN;
- if (null != e) {
- if ("string" == typeof e) {
- if (null === (e = ci(ze, e))) return this;
- } else Math.abs(e) < 16 && !a && (e *= 60);
- return (
- !this._isUTC && t && (n = pi(this)),
- (this._offset = e),
- (this._isUTC = !0),
- null != n && this.add(n, "m"),
- s !== e &&
- (!t || this._changeInProgress
- ? Di(this, Mi(e - s, "m"), 1, !1)
- : this._changeInProgress ||
- ((this._changeInProgress = !0),
- i.updateOffset(this, !0),
- (this._changeInProgress = null))),
- this
- );
- }
- return this._isUTC ? s : pi(this);
- }
- function gi(e, t) {
- return null != e
- ? ("string" != typeof e && (e = -e), this.utcOffset(e, t), this)
- : -this.utcOffset();
- }
- function fi(e) {
- return this.utcOffset(0, e);
- }
- function vi(e) {
- return (
- this._isUTC &&
- (this.utcOffset(0, e),
- (this._isUTC = !1),
- e && this.subtract(pi(this), "m")),
- this
- );
- }
- function bi() {
- if (null != this._tzm) this.utcOffset(this._tzm, !1, !0);
- else if ("string" == typeof this._i) {
- var e = ci(xe, this._i);
- null != e ? this.utcOffset(e) : this.utcOffset(0, !0);
- }
- return this;
- }
- function yi(e) {
- return (
- !!this.isValid() &&
- ((e = e ? Za(e).utcOffset() : 0), (this.utcOffset() - e) % 60 == 0)
- );
- }
- function _i() {
- return (
- this.utcOffset() > this.clone().month(0).utcOffset() ||
- this.utcOffset() > this.clone().month(5).utcOffset()
- );
- }
- function wi() {
- if (!u(this._isDSTShifted)) return this._isDSTShifted;
- var e,
- t = {};
- return (
- w(t, this),
- (t = Ga(t))._a
- ? ((e = t._isUTC ? m(t._a) : Za(t._a)),
- (this._isDSTShifted =
- this.isValid() && li(t._a, e.toArray()) > 0))
- : (this._isDSTShifted = !1),
- this._isDSTShifted
- );
- }
- function ki() {
- return !!this.isValid() && !this._isUTC;
- }
- function Si() {
- return !!this.isValid() && this._isUTC;
- }
- function Ei() {
- return !!this.isValid() && this._isUTC && 0 === this._offset;
- }
- i.updateOffset = function () {};
- var $i = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
- Ai =
- /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
- function Mi(e, t) {
- var a,
- i,
- n,
- s = e,
- r = null;
- return (
- ri(e)
- ? (s = { ms: e._milliseconds, d: e._days, M: e._months })
- : d(e) || !isNaN(+e)
- ? ((s = {}), t ? (s[t] = +e) : (s.milliseconds = +e))
- : (r = $i.exec(e))
- ? ((a = "-" === r[1] ? -1 : 1),
- (s = {
- y: 0,
- d: de(r[Ge]) * a,
- h: de(r[Fe]) * a,
- m: de(r[We]) * a,
- s: de(r[Ze]) * a,
- ms: de(oi(1e3 * r[qe])) * a,
- }))
- : (r = Ai.exec(e))
- ? ((a = "-" === r[1] ? -1 : 1),
- (s = {
- y: Ti(r[2], a),
- M: Ti(r[3], a),
- w: Ti(r[4], a),
- d: Ti(r[5], a),
- h: Ti(r[6], a),
- m: Ti(r[7], a),
- s: Ti(r[8], a),
- }))
- : null == s
- ? (s = {})
- : "object" == typeof s &&
- ("from" in s || "to" in s) &&
- ((n = xi(Za(s.from), Za(s.to))),
- ((s = {}).ms = n.milliseconds),
- (s.M = n.months)),
- (i = new si(s)),
- ri(e) && o(e, "_locale") && (i._locale = e._locale),
- ri(e) && o(e, "_isValid") && (i._isValid = e._isValid),
- i
- );
- }
- function Ti(e, t) {
- var a = e && parseFloat(e.replace(",", "."));
- return (isNaN(a) ? 0 : a) * t;
- }
- function Oi(e, t) {
- var a = {};
- return (
- (a.months = t.month() - e.month() + 12 * (t.year() - e.year())),
- e.clone().add(a.months, "M").isAfter(t) && --a.months,
- (a.milliseconds = +t - +e.clone().add(a.months, "M")),
- a
- );
- }
- function xi(e, t) {
- var a;
- return e.isValid() && t.isValid()
- ? ((t = hi(t, e)),
- e.isBefore(t)
- ? (a = Oi(e, t))
- : (((a = Oi(t, e)).milliseconds = -a.milliseconds),
- (a.months = -a.months)),
- a)
- : { milliseconds: 0, months: 0 };
- }
- function zi(e, t) {
- return function (a, i) {
- var n;
- return (
- null === i ||
- isNaN(+i) ||
- (T(
- t,
- "moment()." +
- t +
- "(period, number) is deprecated. Please use moment()." +
- t +
- "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
- ),
- (n = a),
- (a = i),
- (i = n)),
- Di(this, Mi(a, i), e),
- this
- );
- };
- }
- function Di(e, t, a, n) {
- var s = t._milliseconds,
- r = oi(t._days),
- o = oi(t._months);
- e.isValid() &&
- ((n = null == n || n),
- o && ut(e, he(e, "Month") + o * a),
- r && pe(e, "Date", he(e, "Date") + r * a),
- s && e._d.setTime(e._d.valueOf() + s * a),
- n && i.updateOffset(e, r || o));
- }
- (Mi.fn = si.prototype), (Mi.invalid = ni);
- var Hi = zi(1, "add"),
- Pi = zi(-1, "subtract");
- function Ni(e) {
- return "string" == typeof e || e instanceof String;
- }
- function Ci(e) {
- return S(e) || c(e) || Ni(e) || d(e) || Li(e) || ji(e) || null == e;
- }
- function ji(e) {
- var t,
- a,
- i = r(e) && !l(e),
- n = !1,
- s = [
- "years",
- "year",
- "y",
- "months",
- "month",
- "M",
- "days",
- "day",
- "d",
- "dates",
- "date",
- "D",
- "hours",
- "hour",
- "h",
- "minutes",
- "minute",
- "m",
- "seconds",
- "second",
- "s",
- "milliseconds",
- "millisecond",
- "ms",
- ],
- u = s.length;
- for (t = 0; t < u; t += 1) (a = s[t]), (n = n || o(e, a));
- return i && n;
- }
- function Li(e) {
- var t = s(e),
- a = !1;
- return (
- t &&
- (a =
- 0 ===
- e.filter(function (t) {
- return !d(t) && Ni(e);
- }).length),
- t && a
- );
- }
- function Bi(e) {
- var t,
- a,
- i = r(e) && !l(e),
- n = !1,
- s = [
- "sameDay",
- "nextDay",
- "lastDay",
- "nextWeek",
- "lastWeek",
- "sameElse",
- ];
- for (t = 0; t < s.length; t += 1) (a = s[t]), (n = n || o(e, a));
- return i && n;
- }
- function Ii(e, t) {
- var a = e.diff(t, "days", !0);
- return a < -6
- ? "sameElse"
- : a < -1
- ? "lastWeek"
- : a < 0
- ? "lastDay"
- : a < 1
- ? "sameDay"
- : a < 2
- ? "nextDay"
- : a < 7
- ? "nextWeek"
- : "sameElse";
- }
- function Ri(e, t) {
- 1 === arguments.length &&
- (arguments[0]
- ? Ci(arguments[0])
- ? ((e = arguments[0]), (t = void 0))
- : Bi(arguments[0]) && ((t = arguments[0]), (e = void 0))
- : ((e = void 0), (t = void 0)));
- var a = e || Za(),
- n = hi(a, this).startOf("day"),
- s = i.calendarFormat(this, n) || "sameElse",
- r = t && (O(t[s]) ? t[s].call(this, a) : t[s]);
- return this.format(r || this.localeData().calendar(s, this, Za(a)));
- }
- function Ui() {
- return new k(this);
- }
- function Yi(e, t) {
- var a = S(e) ? e : Za(e);
- return (
- !(!this.isValid() || !a.isValid()) &&
- ("millisecond" === (t = ie(t) || "millisecond")
- ? this.valueOf() > a.valueOf()
- : a.valueOf() < this.clone().startOf(t).valueOf())
- );
- }
- function Vi(e, t) {
- var a = S(e) ? e : Za(e);
- return (
- !(!this.isValid() || !a.isValid()) &&
- ("millisecond" === (t = ie(t) || "millisecond")
- ? this.valueOf() < a.valueOf()
- : this.clone().endOf(t).valueOf() < a.valueOf())
- );
- }
- function Gi(e, t, a, i) {
- var n = S(e) ? e : Za(e),
- s = S(t) ? t : Za(t);
- return (
- !!(this.isValid() && n.isValid() && s.isValid()) &&
- ("(" === (i = i || "()")[0]
- ? this.isAfter(n, a)
- : !this.isBefore(n, a)) &&
- (")" === i[1] ? this.isBefore(s, a) : !this.isAfter(s, a))
- );
- }
- function Fi(e, t) {
- var a,
- i = S(e) ? e : Za(e);
- return (
- !(!this.isValid() || !i.isValid()) &&
- ("millisecond" === (t = ie(t) || "millisecond")
- ? this.valueOf() === i.valueOf()
- : ((a = i.valueOf()),
- this.clone().startOf(t).valueOf() <= a &&
- a <= this.clone().endOf(t).valueOf()))
- );
- }
- function Wi(e, t) {
- return this.isSame(e, t) || this.isAfter(e, t);
- }
- function Zi(e, t) {
- return this.isSame(e, t) || this.isBefore(e, t);
- }
- function qi(e, t, a) {
- var i, n, s;
- if (!this.isValid()) return NaN;
- if (!(i = hi(e, this)).isValid()) return NaN;
- switch (((n = 6e4 * (i.utcOffset() - this.utcOffset())), (t = ie(t)))) {
- case "year":
- s = Ki(this, i) / 12;
- break;
- case "month":
- s = Ki(this, i);
- break;
- case "quarter":
- s = Ki(this, i) / 3;
- break;
- case "second":
- s = (this - i) / 1e3;
- break;
- case "minute":
- s = (this - i) / 6e4;
- break;
- case "hour":
- s = (this - i) / 36e5;
- break;
- case "day":
- s = (this - i - n) / 864e5;
- break;
- case "week":
- s = (this - i - n) / 6048e5;
- break;
- default:
- s = this - i;
- }
- return a ? s : ue(s);
- }
- function Ki(e, t) {
- if (e.date() < t.date()) return -Ki(t, e);
- var a = 12 * (t.year() - e.year()) + (t.month() - e.month()),
- i = e.clone().add(a, "months");
- return (
- -(
- a +
- (t - i < 0
- ? (t - i) / (i - e.clone().add(a - 1, "months"))
- : (t - i) / (e.clone().add(a + 1, "months") - i))
- ) || 0
- );
- }
- function Ji() {
- return this.clone()
- .locale("en")
- .format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
- }
- function Qi(e) {
- if (!this.isValid()) return null;
- var t = !0 !== e,
- a = t ? this.clone().utc() : this;
- return a.year() < 0 || a.year() > 9999
- ? Y(
- a,
- t
- ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"
- : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
- )
- : O(Date.prototype.toISOString)
- ? t
- ? this.toDate().toISOString()
- : new Date(this.valueOf() + 60 * this.utcOffset() * 1e3)
- .toISOString()
- .replace("Z", Y(a, "Z"))
- : Y(
- a,
- t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
- );
- }
- function en() {
- if (!this.isValid()) return "moment.invalid(/* " + this._i + " */)";
- var e,
- t,
- a,
- i,
- n = "moment",
- s = "";
- return (
- this.isLocal() ||
- ((n = 0 === this.utcOffset() ? "moment.utc" : "moment.parseZone"),
- (s = "Z")),
- (e = "[" + n + '("]'),
- (t = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY"),
- (a = "-MM-DD[T]HH:mm:ss.SSS"),
- (i = s + '[")]'),
- this.format(e + t + a + i)
- );
- }
- function tn(e) {
- e || (e = this.isUtc() ? i.defaultFormatUtc : i.defaultFormat);
- var t = Y(this, e);
- return this.localeData().postformat(t);
- }
- function an(e, t) {
- return this.isValid() && ((S(e) && e.isValid()) || Za(e).isValid())
- ? Mi({ to: this, from: e }).locale(this.locale()).humanize(!t)
- : this.localeData().invalidDate();
- }
- function nn(e) {
- return this.from(Za(), e);
- }
- function sn(e, t) {
- return this.isValid() && ((S(e) && e.isValid()) || Za(e).isValid())
- ? Mi({ from: this, to: e }).locale(this.locale()).humanize(!t)
- : this.localeData().invalidDate();
- }
- function rn(e) {
- return this.to(Za(), e);
- }
- function on(e) {
- var t;
- return void 0 === e
- ? this._locale._abbr
- : (null != (t = va(e)) && (this._locale = t), this);
- }
- (i.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ"),
- (i.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]");
- var ln = $(
- "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
- function (e) {
- return void 0 === e ? this.localeData() : this.locale(e);
- }
- );
- function un() {
- return this._locale;
- }
- var dn = 1e3,
- cn = 60 * dn,
- hn = 60 * cn,
- pn = 3506328 * hn;
- function mn(e, t) {
- return ((e % t) + t) % t;
- }
- function gn(e, t, a) {
- return e < 100 && e >= 0
- ? new Date(e + 400, t, a) - pn
- : new Date(e, t, a).valueOf();
- }
- function fn(e, t, a) {
- return e < 100 && e >= 0
- ? Date.UTC(e + 400, t, a) - pn
- : Date.UTC(e, t, a);
- }
- function vn(e) {
- var t, a;
- if (void 0 === (e = ie(e)) || "millisecond" === e || !this.isValid())
- return this;
- switch (((a = this._isUTC ? fn : gn), e)) {
- case "year":
- t = a(this.year(), 0, 1);
- break;
- case "quarter":
- t = a(this.year(), this.month() - (this.month() % 3), 1);
- break;
- case "month":
- t = a(this.year(), this.month(), 1);
- break;
- case "week":
- t = a(this.year(), this.month(), this.date() - this.weekday());
- break;
- case "isoWeek":
- t = a(
- this.year(),
- this.month(),
- this.date() - (this.isoWeekday() - 1)
- );
- break;
- case "day":
- case "date":
- t = a(this.year(), this.month(), this.date());
- break;
- case "hour":
- (t = this._d.valueOf()),
- (t -= mn(t + (this._isUTC ? 0 : this.utcOffset() * cn), hn));
- break;
- case "minute":
- (t = this._d.valueOf()), (t -= mn(t, cn));
- break;
- case "second":
- (t = this._d.valueOf()), (t -= mn(t, dn));
- }
- return this._d.setTime(t), i.updateOffset(this, !0), this;
- }
- function bn(e) {
- var t, a;
- if (void 0 === (e = ie(e)) || "millisecond" === e || !this.isValid())
- return this;
- switch (((a = this._isUTC ? fn : gn), e)) {
- case "year":
- t = a(this.year() + 1, 0, 1) - 1;
- break;
- case "quarter":
- t = a(this.year(), this.month() - (this.month() % 3) + 3, 1) - 1;
- break;
- case "month":
- t = a(this.year(), this.month() + 1, 1) - 1;
- break;
- case "week":
- t =
- a(this.year(), this.month(), this.date() - this.weekday() + 7) -
- 1;
- break;
- case "isoWeek":
- t =
- a(
- this.year(),
- this.month(),
- this.date() - (this.isoWeekday() - 1) + 7
- ) - 1;
- break;
- case "day":
- case "date":
- t = a(this.year(), this.month(), this.date() + 1) - 1;
- break;
- case "hour":
- (t = this._d.valueOf()),
- (t +=
- hn - mn(t + (this._isUTC ? 0 : this.utcOffset() * cn), hn) - 1);
- break;
- case "minute":
- (t = this._d.valueOf()), (t += cn - mn(t, cn) - 1);
- break;
- case "second":
- (t = this._d.valueOf()), (t += dn - mn(t, dn) - 1);
- }
- return this._d.setTime(t), i.updateOffset(this, !0), this;
- }
- function yn() {
- return this._d.valueOf() - 6e4 * (this._offset || 0);
- }
- function _n() {
- return Math.floor(this.valueOf() / 1e3);
- }
- function wn() {
- return new Date(this.valueOf());
- }
- function kn() {
- var e = this;
- return [
- e.year(),
- e.month(),
- e.date(),
- e.hour(),
- e.minute(),
- e.second(),
- e.millisecond(),
- ];
- }
- function Sn() {
- var e = this;
- return {
- years: e.year(),
- months: e.month(),
- date: e.date(),
- hours: e.hours(),
- minutes: e.minutes(),
- seconds: e.seconds(),
- milliseconds: e.milliseconds(),
- };
- }
- function En() {
- return this.isValid() ? this.toISOString() : null;
- }
- function $n() {
- return v(this);
- }
- function An() {
- return p({}, f(this));
- }
- function Mn() {
- return f(this).overflow;
- }
- function Tn() {
- return {
- input: this._i,
- format: this._f,
- locale: this._locale,
- isUTC: this._isUTC,
- strict: this._strict,
- };
- }
- function On(e, t) {
- var a,
- n,
- s,
- r = this._eras || va("en")._eras;
- for (a = 0, n = r.length; a < n; ++a)
- switch (
- ("string" == typeof r[a].since &&
- ((s = i(r[a].since).startOf("day")), (r[a].since = s.valueOf())),
- typeof r[a].until)
- ) {
- case "undefined":
- r[a].until = 1 / 0;
- break;
- case "string":
- (s = i(r[a].until).startOf("day").valueOf()),
- (r[a].until = s.valueOf());
- }
- return r;
- }
- function xn(e, t, a) {
- var i,
- n,
- s,
- r,
- o,
- l = this.eras();
- for (e = e.toUpperCase(), i = 0, n = l.length; i < n; ++i)
- if (
- ((s = l[i].name.toUpperCase()),
- (r = l[i].abbr.toUpperCase()),
- (o = l[i].narrow.toUpperCase()),
- a)
- )
- switch (t) {
- case "N":
- case "NN":
- case "NNN":
- if (r === e) return l[i];
- break;
- case "NNNN":
- if (s === e) return l[i];
- break;
- case "NNNNN":
- if (o === e) return l[i];
- }
- else if ([s, r, o].indexOf(e) >= 0) return l[i];
- }
- function zn(e, t) {
- var a = e.since <= e.until ? 1 : -1;
- return void 0 === t
- ? i(e.since).year()
- : i(e.since).year() + (t - e.offset) * a;
- }
- function Dn() {
- var e,
- t,
- a,
- i = this.localeData().eras();
- for (e = 0, t = i.length; e < t; ++e) {
- if (
- ((a = this.clone().startOf("day").valueOf()),
- i[e].since <= a && a <= i[e].until)
- )
- return i[e].name;
- if (i[e].until <= a && a <= i[e].since) return i[e].name;
- }
- return "";
- }
- function Hn() {
- var e,
- t,
- a,
- i = this.localeData().eras();
- for (e = 0, t = i.length; e < t; ++e) {
- if (
- ((a = this.clone().startOf("day").valueOf()),
- i[e].since <= a && a <= i[e].until)
- )
- return i[e].narrow;
- if (i[e].until <= a && a <= i[e].since) return i[e].narrow;
- }
- return "";
- }
- function Pn() {
- var e,
- t,
- a,
- i = this.localeData().eras();
- for (e = 0, t = i.length; e < t; ++e) {
- if (
- ((a = this.clone().startOf("day").valueOf()),
- i[e].since <= a && a <= i[e].until)
- )
- return i[e].abbr;
- if (i[e].until <= a && a <= i[e].since) return i[e].abbr;
- }
- return "";
- }
- function Nn() {
- var e,
- t,
- a,
- n,
- s = this.localeData().eras();
- for (e = 0, t = s.length; e < t; ++e)
- if (
- ((a = s[e].since <= s[e].until ? 1 : -1),
- (n = this.clone().startOf("day").valueOf()),
- (s[e].since <= n && n <= s[e].until) ||
- (s[e].until <= n && n <= s[e].since))
- )
- return (this.year() - i(s[e].since).year()) * a + s[e].offset;
- return this.year();
- }
- function Cn(e) {
- return (
- o(this, "_erasNameRegex") || Yn.call(this),
- e ? this._erasNameRegex : this._erasRegex
- );
- }
- function jn(e) {
- return (
- o(this, "_erasAbbrRegex") || Yn.call(this),
- e ? this._erasAbbrRegex : this._erasRegex
- );
- }
- function Ln(e) {
- return (
- o(this, "_erasNarrowRegex") || Yn.call(this),
- e ? this._erasNarrowRegex : this._erasRegex
- );
- }
- function Bn(e, t) {
- return t.erasAbbrRegex(e);
- }
- function In(e, t) {
- return t.erasNameRegex(e);
- }
- function Rn(e, t) {
- return t.erasNarrowRegex(e);
- }
- function Un(e, t) {
- return t._eraYearOrdinalRegex || Te;
- }
- function Yn() {
- var e,
- t,
- a = [],
- i = [],
- n = [],
- s = [],
- r = this.eras();
- for (e = 0, t = r.length; e < t; ++e)
- i.push(je(r[e].name)),
- a.push(je(r[e].abbr)),
- n.push(je(r[e].narrow)),
- s.push(je(r[e].name)),
- s.push(je(r[e].abbr)),
- s.push(je(r[e].narrow));
- (this._erasRegex = new RegExp("^(" + s.join("|") + ")", "i")),
- (this._erasNameRegex = new RegExp("^(" + i.join("|") + ")", "i")),
- (this._erasAbbrRegex = new RegExp("^(" + a.join("|") + ")", "i")),
- (this._erasNarrowRegex = new RegExp("^(" + n.join("|") + ")", "i"));
- }
- function Vn(e, t) {
- I(0, [e, e.length], 0, t);
- }
- function Gn(e) {
- return Xn.call(
- this,
- e,
- this.week(),
- this.weekday(),
- this.localeData()._week.dow,
- this.localeData()._week.doy
- );
- }
- function Fn(e) {
- return Xn.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4);
- }
- function Wn() {
- return St(this.year(), 1, 4);
- }
- function Zn() {
- return St(this.isoWeekYear(), 1, 4);
- }
- function qn() {
- var e = this.localeData()._week;
- return St(this.year(), e.dow, e.doy);
- }
- function Kn() {
- var e = this.localeData()._week;
- return St(this.weekYear(), e.dow, e.doy);
- }
- function Xn(e, t, a, i, n) {
- var s;
- return null == e
- ? kt(this, i, n).year
- : (t > (s = St(e, i, n)) && (t = s), Jn.call(this, e, t, a, i, n));
- }
- function Jn(e, t, a, i, n) {
- var s = wt(e, t, a, i, n),
- r = yt(s.year, 0, s.dayOfYear);
- return (
- this.year(r.getUTCFullYear()),
- this.month(r.getUTCMonth()),
- this.date(r.getUTCDate()),
- this
- );
- }
- function Qn(e) {
- return null == e
- ? Math.ceil((this.month() + 1) / 3)
- : this.month(3 * (e - 1) + (this.month() % 3));
- }
- I("N", 0, 0, "eraAbbr"),
- I("NN", 0, 0, "eraAbbr"),
- I("NNN", 0, 0, "eraAbbr"),
- I("NNNN", 0, 0, "eraName"),
- I("NNNNN", 0, 0, "eraNarrow"),
- I("y", ["y", 1], "yo", "eraYear"),
- I("y", ["yy", 2], 0, "eraYear"),
- I("y", ["yyy", 3], 0, "eraYear"),
- I("y", ["yyyy", 4], 0, "eraYear"),
- Pe("N", Bn),
- Pe("NN", Bn),
- Pe("NNN", Bn),
- Pe("NNNN", In),
- Pe("NNNNN", Rn),
- Be(["N", "NN", "NNN", "NNNN", "NNNNN"], function (e, t, a, i) {
- var n = a._locale.erasParse(e, i, a._strict);
- n ? (f(a).era = n) : (f(a).invalidEra = e);
- }),
- Pe("y", Te),
- Pe("yy", Te),
- Pe("yyy", Te),
- Pe("yyyy", Te),
- Pe("yo", Un),
- Be(["y", "yy", "yyy", "yyyy"], Ye),
- Be(["yo"], function (e, t, a, i) {
- var n;
- a._locale._eraYearOrdinalRegex &&
- (n = e.match(a._locale._eraYearOrdinalRegex)),
- a._locale.eraYearOrdinalParse
- ? (t[Ye] = a._locale.eraYearOrdinalParse(e, n))
- : (t[Ye] = parseInt(e, 10));
- }),
- I(0, ["gg", 2], 0, function () {
- return this.weekYear() % 100;
- }),
- I(0, ["GG", 2], 0, function () {
- return this.isoWeekYear() % 100;
- }),
- Vn("gggg", "weekYear"),
- Vn("ggggg", "weekYear"),
- Vn("GGGG", "isoWeekYear"),
- Vn("GGGGG", "isoWeekYear"),
- ae("weekYear", "gg"),
- ae("isoWeekYear", "GG"),
- re("weekYear", 1),
- re("isoWeekYear", 1),
- Pe("G", Oe),
- Pe("g", Oe),
- Pe("GG", ke, be),
- Pe("gg", ke, be),
- Pe("GGGG", Ae, _e),
- Pe("gggg", Ae, _e),
- Pe("GGGGG", Me, we),
- Pe("ggggg", Me, we),
- Ie(["gggg", "ggggg", "GGGG", "GGGGG"], function (e, t, a, i) {
- t[i.substr(0, 2)] = de(e);
- }),
- Ie(["gg", "GG"], function (e, t, a, n) {
- t[n] = i.parseTwoDigitYear(e);
- }),
- I("Q", 0, "Qo", "quarter"),
- ae("quarter", "Q"),
- re("quarter", 7),
- Pe("Q", ve),
- Be("Q", function (e, t) {
- t[Ve] = 3 * (de(e) - 1);
- }),
- I("D", ["DD", 2], "Do", "date"),
- ae("date", "D"),
- re("date", 9),
- Pe("D", ke),
- Pe("DD", ke, be),
- Pe("Do", function (e, t) {
- return e
- ? t._dayOfMonthOrdinalParse || t._ordinalParse
- : t._dayOfMonthOrdinalParseLenient;
- }),
- Be(["D", "DD"], Ge),
- Be("Do", function (e, t) {
- t[Ge] = de(e.match(ke)[0]);
- });
- var es = ce("Date", !0);
- function ts(e) {
- var t =
- Math.round(
- (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
- ) + 1;
- return null == e ? t : this.add(e - t, "d");
- }
- I("DDD", ["DDDD", 3], "DDDo", "dayOfYear"),
- ae("dayOfYear", "DDD"),
- re("dayOfYear", 4),
- Pe("DDD", $e),
- Pe("DDDD", ye),
- Be(["DDD", "DDDD"], function (e, t, a) {
- a._dayOfYear = de(e);
- }),
- I("m", ["mm", 2], 0, "minute"),
- ae("minute", "m"),
- re("minute", 14),
- Pe("m", ke),
- Pe("mm", ke, be),
- Be(["m", "mm"], We);
- var as = ce("Minutes", !1);
- I("s", ["ss", 2], 0, "second"),
- ae("second", "s"),
- re("second", 15),
- Pe("s", ke),
- Pe("ss", ke, be),
- Be(["s", "ss"], Ze);
- var is,
- ns,
- ss = ce("Seconds", !1);
- for (
- I("S", 0, 0, function () {
- return ~~(this.millisecond() / 100);
- }),
- I(0, ["SS", 2], 0, function () {
- return ~~(this.millisecond() / 10);
- }),
- I(0, ["SSS", 3], 0, "millisecond"),
- I(0, ["SSSS", 4], 0, function () {
- return 10 * this.millisecond();
- }),
- I(0, ["SSSSS", 5], 0, function () {
- return 100 * this.millisecond();
- }),
- I(0, ["SSSSSS", 6], 0, function () {
- return 1e3 * this.millisecond();
- }),
- I(0, ["SSSSSSS", 7], 0, function () {
- return 1e4 * this.millisecond();
- }),
- I(0, ["SSSSSSSS", 8], 0, function () {
- return 1e5 * this.millisecond();
- }),
- I(0, ["SSSSSSSSS", 9], 0, function () {
- return 1e6 * this.millisecond();
- }),
- ae("millisecond", "ms"),
- re("millisecond", 16),
- Pe("S", $e, ve),
- Pe("SS", $e, be),
- Pe("SSS", $e, ye),
- is = "SSSS";
- is.length <= 9;
- is += "S"
- )
- Pe(is, Te);
- function rs(e, t) {
- t[qe] = de(1e3 * ("0." + e));
- }
- for (is = "S"; is.length <= 9; is += "S") Be(is, rs);
- function os() {
- return this._isUTC ? "UTC" : "";
- }
- function ls() {
- return this._isUTC ? "Coordinated Universal Time" : "";
- }
- (ns = ce("Milliseconds", !1)),
- I("z", 0, 0, "zoneAbbr"),
- I("zz", 0, 0, "zoneName");
- var us = k.prototype;
- function ds(e) {
- return Za(1e3 * e);
- }
- function cs() {
- return Za.apply(null, arguments).parseZone();
- }
- function hs(e) {
- return e;
- }
- (us.add = Hi),
- (us.calendar = Ri),
- (us.clone = Ui),
- (us.diff = qi),
- (us.endOf = bn),
- (us.format = tn),
- (us.from = an),
- (us.fromNow = nn),
- (us.to = sn),
- (us.toNow = rn),
- (us.get = me),
- (us.invalidAt = Mn),
- (us.isAfter = Yi),
- (us.isBefore = Vi),
- (us.isBetween = Gi),
- (us.isSame = Fi),
- (us.isSameOrAfter = Wi),
- (us.isSameOrBefore = Zi),
- (us.isValid = $n),
- (us.lang = ln),
- (us.locale = on),
- (us.localeData = un),
- (us.max = Ka),
- (us.min = qa),
- (us.parsingFlags = An),
- (us.set = ge),
- (us.startOf = vn),
- (us.subtract = Pi),
- (us.toArray = kn),
- (us.toObject = Sn),
- (us.toDate = wn),
- (us.toISOString = Qi),
- (us.inspect = en),
- "undefined" != typeof Symbol &&
- null != Symbol.for &&
- (us[Symbol.for("nodejs.util.inspect.custom")] = function () {
- return "Moment<" + this.format() + ">";
- }),
- (us.toJSON = En),
- (us.toString = Ji),
- (us.unix = _n),
- (us.valueOf = yn),
- (us.creationData = Tn),
- (us.eraName = Dn),
- (us.eraNarrow = Hn),
- (us.eraAbbr = Pn),
- (us.eraYear = Nn),
- (us.year = ft),
- (us.isLeapYear = vt),
- (us.weekYear = Gn),
- (us.isoWeekYear = Fn),
- (us.quarter = us.quarters = Qn),
- (us.month = dt),
- (us.daysInMonth = ct),
- (us.week = us.weeks = Tt),
- (us.isoWeek = us.isoWeeks = Ot),
- (us.weeksInYear = qn),
- (us.weeksInWeekYear = Kn),
- (us.isoWeeksInYear = Wn),
- (us.isoWeeksInISOWeekYear = Zn),
- (us.date = es),
- (us.day = us.days = Vt),
- (us.weekday = Gt),
- (us.isoWeekday = Ft),
- (us.dayOfYear = ts),
- (us.hour = us.hours = ia),
- (us.minute = us.minutes = as),
- (us.second = us.seconds = ss),
- (us.millisecond = us.milliseconds = ns),
- (us.utcOffset = mi),
- (us.utc = fi),
- (us.local = vi),
- (us.parseZone = bi),
- (us.hasAlignedHourOffset = yi),
- (us.isDST = _i),
- (us.isLocal = ki),
- (us.isUtcOffset = Si),
- (us.isUtc = Ei),
- (us.isUTC = Ei),
- (us.zoneAbbr = os),
- (us.zoneName = ls),
- (us.dates = $("dates accessor is deprecated. Use date instead.", es)),
- (us.months = $("months accessor is deprecated. Use month instead", dt)),
- (us.years = $("years accessor is deprecated. Use year instead", ft)),
- (us.zone = $(
- "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
- gi
- )),
- (us.isDSTShifted = $(
- "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
- wi
- ));
- var ps = D.prototype;
- function ms(e, t, a, i) {
- var n = va(),
- s = m().set(i, t);
- return n[a](s, e);
- }
- function gs(e, t, a) {
- if ((d(e) && ((t = e), (e = void 0)), (e = e || ""), null != t))
- return ms(e, t, a, "month");
- var i,
- n = [];
- for (i = 0; i < 12; i++) n[i] = ms(e, i, a, "month");
- return n;
- }
- function fs(e, t, a, i) {
- "boolean" == typeof e
- ? (d(t) && ((a = t), (t = void 0)), (t = t || ""))
- : ((a = t = e),
- (e = !1),
- d(t) && ((a = t), (t = void 0)),
- (t = t || ""));
- var n,
- s = va(),
- r = e ? s._week.dow : 0,
- o = [];
- if (null != a) return ms(t, (a + r) % 7, i, "day");
- for (n = 0; n < 7; n++) o[n] = ms(t, (n + r) % 7, i, "day");
- return o;
- }
- function vs(e, t) {
- return gs(e, t, "months");
- }
- function bs(e, t) {
- return gs(e, t, "monthsShort");
- }
- function ys(e, t, a) {
- return fs(e, t, a, "weekdays");
- }
- function _s(e, t, a) {
- return fs(e, t, a, "weekdaysShort");
- }
- function ws(e, t, a) {
- return fs(e, t, a, "weekdaysMin");
- }
- (ps.calendar = P),
- (ps.longDateFormat = F),
- (ps.invalidDate = Z),
- (ps.ordinal = X),
- (ps.preparse = hs),
- (ps.postformat = hs),
- (ps.relativeTime = Q),
- (ps.pastFuture = ee),
- (ps.set = x),
- (ps.eras = On),
- (ps.erasParse = xn),
- (ps.erasConvertYear = zn),
- (ps.erasAbbrRegex = jn),
- (ps.erasNameRegex = Cn),
- (ps.erasNarrowRegex = Ln),
- (ps.months = st),
- (ps.monthsShort = rt),
- (ps.monthsParse = lt),
- (ps.monthsRegex = pt),
- (ps.monthsShortRegex = ht),
- (ps.week = Et),
- (ps.firstDayOfYear = Mt),
- (ps.firstDayOfWeek = At),
- (ps.weekdays = Bt),
- (ps.weekdaysMin = Rt),
- (ps.weekdaysShort = It),
- (ps.weekdaysParse = Yt),
- (ps.weekdaysRegex = Wt),
- (ps.weekdaysShortRegex = Zt),
- (ps.weekdaysMinRegex = qt),
- (ps.isPM = ta),
- (ps.meridiem = na),
- ma("en", {
- eras: [
- {
- since: "0001-01-01",
- until: 1 / 0,
- offset: 1,
- name: "Anno Domini",
- narrow: "AD",
- abbr: "AD",
- },
- {
- since: "0000-12-31",
- until: -1 / 0,
- offset: 1,
- name: "Before Christ",
- narrow: "BC",
- abbr: "BC",
- },
- ],
- dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
- ordinal: function (e) {
- var t = e % 10;
- return (
- e +
- (1 === de((e % 100) / 10)
- ? "th"
- : 1 === t
- ? "st"
- : 2 === t
- ? "nd"
- : 3 === t
- ? "rd"
- : "th")
- );
- },
- }),
- (i.lang = $(
- "moment.lang is deprecated. Use moment.locale instead.",
- ma
- )),
- (i.langData = $(
- "moment.langData is deprecated. Use moment.localeData instead.",
- va
- ));
- var ks = Math.abs;
- function Ss() {
- var e = this._data;
- return (
- (this._milliseconds = ks(this._milliseconds)),
- (this._days = ks(this._days)),
- (this._months = ks(this._months)),
- (e.milliseconds = ks(e.milliseconds)),
- (e.seconds = ks(e.seconds)),
- (e.minutes = ks(e.minutes)),
- (e.hours = ks(e.hours)),
- (e.months = ks(e.months)),
- (e.years = ks(e.years)),
- this
- );
- }
- function Es(e, t, a, i) {
- var n = Mi(t, a);
- return (
- (e._milliseconds += i * n._milliseconds),
- (e._days += i * n._days),
- (e._months += i * n._months),
- e._bubble()
- );
- }
- function $s(e, t) {
- return Es(this, e, t, 1);
- }
- function As(e, t) {
- return Es(this, e, t, -1);
- }
- function Ms(e) {
- return e < 0 ? Math.floor(e) : Math.ceil(e);
- }
- function Ts() {
- var e,
- t,
- a,
- i,
- n,
- s = this._milliseconds,
- r = this._days,
- o = this._months,
- l = this._data;
- return (
- (s >= 0 && r >= 0 && o >= 0) ||
- (s <= 0 && r <= 0 && o <= 0) ||
- ((s += 864e5 * Ms(xs(o) + r)), (r = 0), (o = 0)),
- (l.milliseconds = s % 1e3),
- (e = ue(s / 1e3)),
- (l.seconds = e % 60),
- (t = ue(e / 60)),
- (l.minutes = t % 60),
- (a = ue(t / 60)),
- (l.hours = a % 24),
- (r += ue(a / 24)),
- (o += n = ue(Os(r))),
- (r -= Ms(xs(n))),
- (i = ue(o / 12)),
- (o %= 12),
- (l.days = r),
- (l.months = o),
- (l.years = i),
- this
- );
- }
- function Os(e) {
- return (4800 * e) / 146097;
- }
- function xs(e) {
- return (146097 * e) / 4800;
- }
- function zs(e) {
- if (!this.isValid()) return NaN;
- var t,
- a,
- i = this._milliseconds;
- if ("month" === (e = ie(e)) || "quarter" === e || "year" === e)
- switch (
- ((t = this._days + i / 864e5), (a = this._months + Os(t)), e)
- ) {
- case "month":
- return a;
- case "quarter":
- return a / 3;
- case "year":
- return a / 12;
- }
- else
- switch (((t = this._days + Math.round(xs(this._months))), e)) {
- case "week":
- return t / 7 + i / 6048e5;
- case "day":
- return t + i / 864e5;
- case "hour":
- return 24 * t + i / 36e5;
- case "minute":
- return 1440 * t + i / 6e4;
- case "second":
- return 86400 * t + i / 1e3;
- case "millisecond":
- return Math.floor(864e5 * t) + i;
- default:
- throw new Error("Unknown unit " + e);
- }
- }
- function Ds() {
- return this.isValid()
- ? this._milliseconds +
- 864e5 * this._days +
- (this._months % 12) * 2592e6 +
- 31536e6 * de(this._months / 12)
- : NaN;
- }
- function Hs(e) {
- return function () {
- return this.as(e);
- };
- }
- var Ps = Hs("ms"),
- Ns = Hs("s"),
- Cs = Hs("m"),
- js = Hs("h"),
- Ls = Hs("d"),
- Bs = Hs("w"),
- Is = Hs("M"),
- Rs = Hs("Q"),
- Us = Hs("y");
- function Ys() {
- return Mi(this);
- }
- function Vs(e) {
- return (e = ie(e)), this.isValid() ? this[e + "s"]() : NaN;
- }
- function Gs(e) {
- return function () {
- return this.isValid() ? this._data[e] : NaN;
- };
- }
- var Fs = Gs("milliseconds"),
- Ws = Gs("seconds"),
- Zs = Gs("minutes"),
- qs = Gs("hours"),
- Ks = Gs("days"),
- Xs = Gs("months"),
- Js = Gs("years");
- function Qs() {
- return ue(this.days() / 7);
- }
- var er = Math.round,
- tr = { ss: 44, s: 45, m: 45, h: 22, d: 26, w: null, M: 11 };
- function ar(e, t, a, i, n) {
- return n.relativeTime(t || 1, !!a, e, i);
- }
- function ir(e, t, a, i) {
- var n = Mi(e).abs(),
- s = er(n.as("s")),
- r = er(n.as("m")),
- o = er(n.as("h")),
- l = er(n.as("d")),
- u = er(n.as("M")),
- d = er(n.as("w")),
- c = er(n.as("y")),
- h =
- (s <= a.ss && ["s", s]) ||
- (s < a.s && ["ss", s]) ||
- (r <= 1 && ["m"]) ||
- (r < a.m && ["mm", r]) ||
- (o <= 1 && ["h"]) ||
- (o < a.h && ["hh", o]) ||
- (l <= 1 && ["d"]) ||
- (l < a.d && ["dd", l]);
- return (
- null != a.w && (h = h || (d <= 1 && ["w"]) || (d < a.w && ["ww", d])),
- ((h = h ||
- (u <= 1 && ["M"]) ||
- (u < a.M && ["MM", u]) ||
- (c <= 1 && ["y"]) || ["yy", c])[2] = t),
- (h[3] = +e > 0),
- (h[4] = i),
- ar.apply(null, h)
- );
- }
- function nr(e) {
- return void 0 === e ? er : "function" == typeof e && ((er = e), !0);
- }
- function sr(e, t) {
- return (
- void 0 !== tr[e] &&
- (void 0 === t
- ? tr[e]
- : ((tr[e] = t), "s" === e && (tr.ss = t - 1), !0))
- );
- }
- function rr(e, t) {
- if (!this.isValid()) return this.localeData().invalidDate();
- var a,
- i,
- n = !1,
- s = tr;
- return (
- "object" == typeof e && ((t = e), (e = !1)),
- "boolean" == typeof e && (n = e),
- "object" == typeof t &&
- ((s = Object.assign({}, tr, t)),
- null != t.s && null == t.ss && (s.ss = t.s - 1)),
- (i = ir(this, !n, s, (a = this.localeData()))),
- n && (i = a.pastFuture(+this, i)),
- a.postformat(i)
- );
+ name="autocalcenabled"
+ value="False"
+ ?checked="${!this.config.autocalcenabled}"
+ @change="${e=>{this.saveData({autocalcenabled:Ri(e.target.value)})}}"
+ />
+
`;this.data.autocalcenabled&&(e=Y`${e}
+