chartjs-ng2
Version:
Reactive, responsive, beautiful charts for Angular2 based on Chart.js
1 lines • 399 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core")):"function"==typeof define&&define.amd?define(["@angular/core"],t):"object"==typeof exports?exports["chartjs-ng2.umd.min"]=t(require("@angular/core")):e["chartjs-ng2.umd.min"]=t(e["@angular/core"])}(this,function(e){return function(e){function t(n){if(a[n])return a[n].exports;var r=a[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var a={};return t.m=e,t.c=a,t.i=function(e){return e},t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=168)}([function(e,t,a){(function(e){!function(t,a){e.exports=a()}(0,function(){"use strict";function t(){return vn.apply(null,arguments)}function n(e){vn=e}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){var t;for(t in e)return!1;return!0}function o(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var a,n=[];for(a=0;a<e.length;++a)n.push(t(e[a],a));return n}function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var a in t)_(t,a)&&(e[a]=t[a]);return _(t,"toString")&&(e.toString=t.toString),_(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,a,n){return Lt(e,t,a,n,!0).utc()}function h(){return{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}}function f(e){return null==e._pf&&(e._pf=h()),e._pf}function M(e){if(null==e._isValid){var t=f(e),a=kn.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);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 p(e){var t=m(NaN);return null!=e?c(f(t),e):f(t).userInvalidated=!0,t}function y(e,t){var a,n,r;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=f(t)),o(t._locale)||(e._locale=t._locale),bn.length>0)for(a=0;a<bn.length;a++)n=bn[a],r=t[n],o(r)||(e[n]=r);return e}function g(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Dn&&(Dn=!0,t.updateOffset(this),Dn=!1)}function L(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function v(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Y(e){var t=+e,a=0;return 0!==t&&isFinite(t)&&(a=v(t)),a}function k(e,t,a){var n,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0;for(n=0;n<r;n++)(a&&e[n]!==t[n]||!a&&Y(e[n])!==Y(t[n]))&&s++;return s+i}function b(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,a){var n=!0;return c(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){for(var r,i=[],s=0;s<arguments.length;s++){if(r="","object"==typeof arguments[s]){r+="\n["+s+"] ";for(var o in arguments[0])r+=o+": "+arguments[0][o]+", ";r=r.slice(0,-2)}else r=arguments[s];i.push(r)}b(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),n=!1}return a.apply(this,arguments)},a)}function w(e,a){null!=t.deprecationHandler&&t.deprecationHandler(e,a),wn[e]||(b(a),wn[e]=!0)}function x(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e){var t,a;for(a in e)t=e[a],x(t)?this[a]=t:this["_"+a]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function S(e,t){var a,n=c({},e);for(a in t)_(t,a)&&(i(e[a])&&i(t[a])?(n[a]={},c(n[a],e[a]),c(n[a],t[a])):null!=t[a]?n[a]=t[a]:delete n[a]);for(a in e)_(e,a)&&!_(t,a)&&i(e[a])&&(n[a]=c({},n[a]));return n}function H(e){null!=e&&this.set(e)}function j(e,t,a){var n=this._calendar[e]||this._calendar.sameElse;return x(n)?n.call(t,a):n}function P(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function A(){return this._invalidDate}function O(e){return this._ordinal.replace("%d",e)}function C(e,t,a,n){var r=this._relativeTime[a];return x(r)?r(e,t,a,n):r.replace(/%d/i,e)}function F(e,t){var a=this._relativeTime[e>0?"future":"past"];return x(a)?a(t):a.replace(/%s/i,t)}function W(e,t){var a=e.toLowerCase();Fn[a]=Fn[a+"s"]=Fn[t]=e}function I(e){return"string"==typeof e?Fn[e]||Fn[e.toLowerCase()]:void 0}function E(e){var t,a,n={};for(a in e)_(e,a)&&(t=I(a))&&(n[t]=e[a]);return n}function z(e,t){Wn[e]=t}function R(e){var t=[];for(var a in e)t.push({unit:a,priority:Wn[a]});return t.sort(function(e,t){return e.priority-t.priority}),t}function V(e,a){return function(n){return null!=n?(B(this,e,n),t.updateOffset(this,a),this):N(this,e)}}function N(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function B(e,t,a){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](a)}function J(e){return e=I(e),x(this[e])?this[e]():this}function G(e,t){if("object"==typeof e){e=E(e);for(var a=R(e),n=0;n<a.length;n++)this[a[n].unit](e[a[n].unit])}else if(e=I(e),x(this[e]))return this[e](t);return this}function U(e,t,a){var n=""+Math.abs(e),r=t-n.length;return(e>=0?a?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}function q(e,t,a,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),e&&(Rn[e]=r),t&&(Rn[t[0]]=function(){return U(r.apply(this,arguments),t[1],t[2])}),a&&(Rn[a]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function K(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Z(e){var t,a,n=e.match(In);for(t=0,a=n.length;t<a;t++)Rn[n[t]]?n[t]=Rn[n[t]]:n[t]=K(n[t]);return function(t){var r,i="";for(r=0;r<a;r++)i+=x(n[r])?n[r].call(t,e):n[r];return i}}function $(e,t){return e.isValid()?(t=Q(t,e.localeData()),zn[t]=zn[t]||Z(t),zn[t](e)):e.localeData().invalidDate()}function Q(e,t){function a(e){return t.longDateFormat(e)||e}var n=5;for(En.lastIndex=0;n>=0&&En.test(e);)e=e.replace(En,a),En.lastIndex=0,n-=1;return e}function X(e,t,a){ir[e]=x(t)?t:function(e,n){return e&&a?a:t}}function ee(e,t){return _(ir,e)?ir[e](t._strict,t._locale):new RegExp(te(e))}function te(e){return ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,a,n,r){return t||a||n||r}))}function ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,t){var a,n=t;for("string"==typeof e&&(e=[e]),d(t)&&(n=function(e,a){a[t]=Y(e)}),a=0;a<e.length;a++)sr[e[a]]=n}function re(e,t){ne(e,function(e,a,n,r){n._w=n._w||{},t(e,n._w,n,r)})}function ie(e,t,a){null!=t&&_(sr,e)&&sr[e](t,a._a,a,e)}function se(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function oe(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||pr).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone}function de(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[pr.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(e,t,a){var n,r,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=m([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return a?"MMM"===t?(r=Mr.call(this._shortMonthsParse,s),-1!==r?r:null):(r=Mr.call(this._longMonthsParse,s),-1!==r?r:null):"MMM"===t?-1!==(r=Mr.call(this._shortMonthsParse,s))?r:(r=Mr.call(this._longMonthsParse,s),-1!==r?r:null):-1!==(r=Mr.call(this._longMonthsParse,s))?r:(r=Mr.call(this._shortMonthsParse,s),-1!==r?r:null)}function ue(e,t,a){var n,r,i;if(this._monthsParseExact)return le.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=m([2e3,n]),a&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),a||this._monthsParse[n]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),a&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(a&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!a&&this._monthsParse[n].test(e))return n}}function _e(e,t){var a;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Y(t);else if(t=e.localeData().monthsParse(t),!d(t))return e;return a=Math.min(e.date(),se(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a),e}function ce(e){return null!=e?(_e(this,e),t.updateOffset(this,!0),this):N(this,"Month")}function me(){return se(this.year(),this.month())}function he(e){return this._monthsParseExact?(_(this,"_monthsRegex")||Me.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(_(this,"_monthsShortRegex")||(this._monthsShortRegex=Lr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function fe(e){return this._monthsParseExact?(_(this,"_monthsRegex")||Me.call(this),e?this._monthsStrictRegex:this._monthsRegex):(_(this,"_monthsRegex")||(this._monthsRegex=vr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Me(){function e(e,t){return t.length-e.length}var t,a,n=[],r=[],i=[];for(t=0;t<12;t++)a=m([2e3,t]),n.push(this.monthsShort(a,"")),r.push(this.months(a,"")),i.push(this.months(a,"")),i.push(this.monthsShort(a,""));for(n.sort(e),r.sort(e),i.sort(e),t=0;t<12;t++)n[t]=ae(n[t]),r[t]=ae(r[t]);for(t=0;t<24;t++)i[t]=ae(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function pe(e){return ye(e)?366:365}function ye(e){return e%4==0&&e%100!=0||e%400==0}function ge(){return ye(this.year())}function Le(e,t,a,n,r,i,s){var o=new Date(e,t,a,n,r,i,s);return e<100&&e>=0&&isFinite(o.getFullYear())&&o.setFullYear(e),o}function ve(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ye(e,t,a){var n=7+t-a;return-(7+ve(e,0,n).getUTCDay()-t)%7+n-1}function ke(e,t,a,n,r){var i,s,o=(7+a-n)%7,d=Ye(e,n,r),l=1+7*(t-1)+o+d;return l<=0?(i=e-1,s=pe(i)+l):l>pe(e)?(i=e+1,s=l-pe(e)):(i=e,s=l),{year:i,dayOfYear:s}}function be(e,t,a){var n,r,i=Ye(e.year(),t,a),s=Math.floor((e.dayOfYear()-i-1)/7)+1;return s<1?(r=e.year()-1,n=s+De(r,t,a)):s>De(e.year(),t,a)?(n=s-De(e.year(),t,a),r=e.year()+1):(r=e.year(),n=s),{week:n,year:r}}function De(e,t,a){var n=Ye(e,t,a),r=Ye(e+1,t,a);return(pe(e)-n+r)/7}function we(e){return be(e,this._week.dow,this._week.doy).week}function xe(){return this._week.dow}function Te(){return this._week.doy}function Se(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function He(e){var t=be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function je(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Pe(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ae(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone}function Oe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ce(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Fe(e,t,a){var n,r,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=m([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return a?"dddd"===t?(r=Mr.call(this._weekdaysParse,s),-1!==r?r:null):"ddd"===t?(r=Mr.call(this._shortWeekdaysParse,s),-1!==r?r:null):(r=Mr.call(this._minWeekdaysParse,s),-1!==r?r:null):"dddd"===t?-1!==(r=Mr.call(this._weekdaysParse,s))?r:-1!==(r=Mr.call(this._shortWeekdaysParse,s))?r:(r=Mr.call(this._minWeekdaysParse,s),-1!==r?r:null):"ddd"===t?-1!==(r=Mr.call(this._shortWeekdaysParse,s))?r:-1!==(r=Mr.call(this._weekdaysParse,s))?r:(r=Mr.call(this._minWeekdaysParse,s),-1!==r?r:null):-1!==(r=Mr.call(this._minWeekdaysParse,s))?r:-1!==(r=Mr.call(this._weekdaysParse,s))?r:(r=Mr.call(this._shortWeekdaysParse,s),-1!==r?r:null)}function We(e,t,a){var n,r,i;if(this._weekdaysParseExact)return Fe.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=m([2e3,1]).day(n),a&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),a&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(a&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(a&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!a&&this._weekdaysParse[n].test(e))return n}}function Ie(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=je(e,this.localeData()),this.add(e-t,"d")):t}function Ee(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 ze(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pe(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Re(e){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(_(this,"_weekdaysRegex")||(this._weekdaysRegex=xr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ve(e){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(_(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Tr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ne(e){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(_(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Sr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Be(){function e(e,t){return t.length-e.length}var t,a,n,r,i,s=[],o=[],d=[],l=[];for(t=0;t<7;t++)a=m([2e3,1]).day(t),n=this.weekdaysMin(a,""),r=this.weekdaysShort(a,""),i=this.weekdays(a,""),s.push(n),o.push(r),d.push(i),l.push(n),l.push(r),l.push(i);for(s.sort(e),o.sort(e),d.sort(e),l.sort(e),t=0;t<7;t++)o[t]=ae(o[t]),d[t]=ae(d[t]),l[t]=ae(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Je(){return this.hours()%12||12}function Ge(){return this.hours()||24}function Ue(e,t){q(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function qe(e,t){return t._meridiemParse}function Ke(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ze(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}function $e(e){return e?e.toLowerCase().replace("_","-"):e}function Qe(e){for(var t,a,n,r,i=0;i<e.length;){for(r=$e(e[i]).split("-"),t=r.length,a=$e(e[i+1]),a=a?a.split("-"):null;t>0;){if(n=Xe(r.slice(0,t).join("-")))return n;if(a&&a.length>=t&&k(r,a,!0)>=t-1)break;t--}i++}return null}function Xe(t){var n=null;if(!Or[t]&&void 0!==e&&e&&e.exports)try{n=Hr._abbr,a(165)("./"+t),et(n)}catch(e){}return Or[t]}function et(e,t){var a;return e&&(a=o(t)?nt(e):tt(e,t))&&(Hr=a),Hr._abbr}function tt(e,t){if(null!==t){var a=Ar;if(t.abbr=e,null!=Or[e])w("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."),a=Or[e]._config;else if(null!=t.parentLocale){if(null==Or[t.parentLocale])return Cr[t.parentLocale]||(Cr[t.parentLocale]=[]),Cr[t.parentLocale].push({name:e,config:t}),null;a=Or[t.parentLocale]._config}return Or[e]=new H(S(a,t)),Cr[e]&&Cr[e].forEach(function(e){tt(e.name,e.config)}),et(e),Or[e]}return delete Or[e],null}function at(e,t){if(null!=t){var a,n=Ar;null!=Or[e]&&(n=Or[e]._config),t=S(n,t),a=new H(t),a.parentLocale=Or[e],Or[e]=a,et(e)}else null!=Or[e]&&(null!=Or[e].parentLocale?Or[e]=Or[e].parentLocale:null!=Or[e]&&delete Or[e]);return Or[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Hr;if(!r(e)){if(t=Xe(e))return t;e=[e]}return Qe(e)}function rt(){return Sn(Or)}function it(e){var t,a=e._a;return a&&-2===f(e).overflow&&(t=a[dr]<0||a[dr]>11?dr:a[lr]<1||a[lr]>se(a[or],a[dr])?lr:a[ur]<0||a[ur]>24||24===a[ur]&&(0!==a[_r]||0!==a[cr]||0!==a[mr])?ur:a[_r]<0||a[_r]>59?_r:a[cr]<0||a[cr]>59?cr:a[mr]<0||a[mr]>999?mr:-1,f(e)._overflowDayOfYear&&(t<or||t>lr)&&(t=lr),f(e)._overflowWeeks&&-1===t&&(t=hr),f(e)._overflowWeekday&&-1===t&&(t=fr),f(e).overflow=t),e}function st(e){var t,a,n,r,i,s,o=e._i,d=Fr.exec(o)||Wr.exec(o);if(d){for(f(e).iso=!0,t=0,a=Er.length;t<a;t++)if(Er[t][1].exec(d[1])){r=Er[t][0],n=!1!==Er[t][2];break}if(null==r)return void(e._isValid=!1);if(d[3]){for(t=0,a=zr.length;t<a;t++)if(zr[t][1].exec(d[3])){i=(d[2]||" ")+zr[t][0];break}if(null==i)return void(e._isValid=!1)}if(!n&&null!=i)return void(e._isValid=!1);if(d[4]){if(!Ir.exec(d[4]))return void(e._isValid=!1);s="Z"}e._f=r+(i||"")+(s||""),mt(e)}else e._isValid=!1}function ot(e){var t,a,n,r,i,s,o,d,l={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},u="YXWVUTSRQPONZABCDEFGHIKLM";if(t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),a=Vr.exec(t)){if(n=a[1]?"ddd"+(5===a[1].length?", ":" "):"",r="D MMM "+(a[2].length>10?"YYYY ":"YY "),i="HH:mm"+(a[4]?":ss":""),a[1]){var _=new Date(a[2]),c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][_.getDay()];if(a[1].substr(0,3)!==c)return f(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(a[5].length){case 2:0===d?o=" +0000":(d=u.indexOf(a[5][1].toUpperCase())-12,o=(d<0?" -":" +")+(""+d).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:o=l[a[5]];break;default:o=l[" GMT"]}a[5]=o,e._i=a.splice(1).join(""),s=" ZZ",e._f=n+r+i+s,mt(e),f(e).rfc2822=!0}else e._isValid=!1}function dt(e){var a=Rr.exec(e._i);if(null!==a)return void(e._d=new Date(+a[1]));st(e),!1===e._isValid&&(delete e._isValid,ot(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function lt(e,t,a){return null!=e?e:null!=t?t:a}function ut(e){var a=new Date(t.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function _t(e){var t,a,n,r,i=[];if(!e._d){for(n=ut(e),e._w&&null==e._a[lr]&&null==e._a[dr]&&ct(e),null!=e._dayOfYear&&(r=lt(e._a[or],n[or]),(e._dayOfYear>pe(r)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),a=ve(r,0,e._dayOfYear),e._a[dr]=a.getUTCMonth(),e._a[lr]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=n[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ur]&&0===e._a[_r]&&0===e._a[cr]&&0===e._a[mr]&&(e._nextDay=!0,e._a[ur]=0),e._d=(e._useUTC?ve:Le).apply(null,i),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ur]=24)}}function ct(e){var t,a,n,r,i,s,o,d;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)i=1,s=4,a=lt(t.GG,e._a[or],be(vt(),1,4).year),n=lt(t.W,1),((r=lt(t.E,1))<1||r>7)&&(d=!0);else{i=e._locale._week.dow,s=e._locale._week.doy;var l=be(vt(),i,s);a=lt(t.gg,e._a[or],l.year),n=lt(t.w,l.week),null!=t.d?((r=t.d)<0||r>6)&&(d=!0):null!=t.e?(r=t.e+i,(t.e<0||t.e>6)&&(d=!0)):r=i}n<1||n>De(a,i,s)?f(e)._overflowWeeks=!0:null!=d?f(e)._overflowWeekday=!0:(o=ke(a,n,r,i,s),e._a[or]=o.year,e._dayOfYear=o.dayOfYear)}function mt(e){if(e._f===t.ISO_8601)return void st(e);if(e._f===t.RFC_2822)return void ot(e);e._a=[],f(e).empty=!0;var a,n,r,i,s,o=""+e._i,d=o.length,l=0;for(r=Q(e._f,e._locale).match(In)||[],a=0;a<r.length;a++)i=r[a],n=(o.match(ee(i,e))||[])[0],n&&(s=o.substr(0,o.indexOf(n)),s.length>0&&f(e).unusedInput.push(s),o=o.slice(o.indexOf(n)+n.length),l+=n.length),Rn[i]?(n?f(e).empty=!1:f(e).unusedTokens.push(i),ie(i,n,e)):e._strict&&!n&&f(e).unusedTokens.push(i);f(e).charsLeftOver=d-l,o.length>0&&f(e).unusedInput.push(o),e._a[ur]<=12&&!0===f(e).bigHour&&e._a[ur]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[ur]=ht(e._locale,e._a[ur],e._meridiem),_t(e),it(e)}function ht(e,t,a){var n;return null==a?t:null!=e.meridiemHour?e.meridiemHour(t,a):null!=e.isPM?(n=e.isPM(a),n&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function ft(e){var t,a,n,r,i;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)i=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],mt(t),M(t)&&(i+=f(t).charsLeftOver,i+=10*f(t).unusedTokens.length,f(t).score=i,(null==n||i<n)&&(n=i,a=t));c(e,a||t)}function Mt(e){if(!e._d){var t=E(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),_t(e)}}function pt(e){var t=new g(it(yt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function yt(e){var t=e._i,a=e._f;return e._locale=e._locale||nt(e._l),null===t||void 0===a&&""===t?p({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),L(t)?new g(it(t)):(l(t)?e._d=t:r(a)?ft(e):a?mt(e):gt(e),M(e)||(e._d=null),e))}function gt(e){var a=e._i;o(a)?e._d=new Date(t.now()):l(a)?e._d=new Date(a.valueOf()):"string"==typeof a?dt(e):r(a)?(e._a=u(a.slice(0),function(e){return parseInt(e,10)}),_t(e)):i(a)?Mt(e):d(a)?e._d=new Date(a):t.createFromInputFallback(e)}function Lt(e,t,a,n,o){var d={};return!0!==a&&!1!==a||(n=a,a=void 0),(i(e)&&s(e)||r(e)&&0===e.length)&&(e=void 0),d._isAMomentObject=!0,d._useUTC=d._isUTC=o,d._l=a,d._i=e,d._f=t,d._strict=n,pt(d)}function vt(e,t,a,n){return Lt(e,t,a,n,!1)}function Yt(e,t){var a,n;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return vt();for(a=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](a)||(a=t[n]);return a}function kt(){return Yt("isBefore",[].slice.call(arguments,0))}function bt(){return Yt("isAfter",[].slice.call(arguments,0))}function Dt(e){for(var t in e)if(-1===Gr.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var a=!1,n=0;n<Gr.length;++n)if(e[Gr[n]]){if(a)return!1;parseFloat(e[Gr[n]])!==Y(e[Gr[n]])&&(a=!0)}return!0}function wt(){return this._isValid}function xt(){return Gt(NaN)}function Tt(e){var t=E(e),a=t.year||0,n=t.quarter||0,r=t.month||0,i=t.week||0,s=t.day||0,o=t.hour||0,d=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=Dt(t),this._milliseconds=+u+1e3*l+6e4*d+1e3*o*60*60,this._days=+s+7*i,this._months=+r+3*n+12*a,this._data={},this._locale=nt(),this._bubble()}function St(e){return e instanceof Tt}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function jt(e,t){q(e,0,0,function(){var e=this.utcOffset(),a="+";return e<0&&(e=-e,a="-"),a+U(~~(e/60),2)+t+U(~~e%60,2)})}function Pt(e,t){var a=(t||"").match(e);if(null===a)return null;var n=a[a.length-1]||[],r=(n+"").match(Ur)||["-",0,0],i=60*r[1]+Y(r[2]);return 0===i?0:"+"===r[0]?i:-i}function At(e,a){var n,r;return a._isUTC?(n=a.clone(),r=(L(e)||l(e)?e.valueOf():vt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),t.updateOffset(n,!1),n):vt(e).local()}function Ot(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ct(e,a,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Pt(ar,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&a&&(r=Ot(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!a||this._changeInProgress?$t(this,Gt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Ot(this)}function Ft(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Wt(e){return this.utcOffset(0,e)}function It(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ot(this),"m")),this}function Et(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Pt(tr,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function zt(e){return!!this.isValid()&&(e=e?vt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Rt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vt(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),e=yt(e),e._a){var t=e._isUTC?m(e._a):vt(e._a);this._isDSTShifted=this.isValid()&&k(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Nt(){return!!this.isValid()&&!this._isUTC}function Bt(){return!!this.isValid()&&this._isUTC}function Jt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Gt(e,t){var a,n,r,i=e,s=null;return St(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:d(e)?(i={},t?i[t]=e:i.milliseconds=e):(s=qr.exec(e))?(a="-"===s[1]?-1:1,i={y:0,d:Y(s[lr])*a,h:Y(s[ur])*a,m:Y(s[_r])*a,s:Y(s[cr])*a,ms:Y(Ht(1e3*s[mr]))*a}):(s=Kr.exec(e))?(a="-"===s[1]?-1:1,i={y:Ut(s[2],a),M:Ut(s[3],a),w:Ut(s[4],a),d:Ut(s[5],a),h:Ut(s[6],a),m:Ut(s[7],a),s:Ut(s[8],a)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(r=Kt(vt(i.from),vt(i.to)),i={},i.ms=r.milliseconds,i.M=r.months),n=new Tt(i),St(e)&&_(e,"_locale")&&(n._locale=e._locale),n}function Ut(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function qt(e,t){var a={milliseconds:0,months:0};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 Kt(e,t){var a;return e.isValid()&&t.isValid()?(t=At(t,e),e.isBefore(t)?a=qt(e,t):(a=qt(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function Zt(e,t){return function(a,n){var r,i;return null===n||isNaN(+n)||(w(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."),i=a,a=n,n=i),a="string"==typeof a?+a:a,r=Gt(a,n),$t(this,r,e),this}}function $t(e,a,n,r){var i=a._milliseconds,s=Ht(a._days),o=Ht(a._months);e.isValid()&&(r=null==r||r,i&&e._d.setTime(e._d.valueOf()+i*n),s&&B(e,"Date",N(e,"Date")+s*n),o&&_e(e,N(e,"Month")+o*n),r&&t.updateOffset(e,s||o))}function Qt(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 Xt(e,a){var n=e||vt(),r=At(n,this).startOf("day"),i=t.calendarFormat(this,r)||"sameElse",s=a&&(x(a[i])?a[i].call(this,n):a[i]);return this.format(s||this.localeData().calendar(i,this,vt(n)))}function ea(){return new g(this)}function ta(e,t){var a=L(e)?e:vt(e);return!(!this.isValid()||!a.isValid())&&(t=I(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())}function aa(e,t){var a=L(e)?e:vt(e);return!(!this.isValid()||!a.isValid())&&(t=I(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())}function na(e,t,a,n){return n=n||"()",("("===n[0]?this.isAfter(e,a):!this.isBefore(e,a))&&(")"===n[1]?this.isBefore(t,a):!this.isAfter(t,a))}function ra(e,t){var a,n=L(e)?e:vt(e);return!(!this.isValid()||!n.isValid())&&(t=I(t||"millisecond"),"millisecond"===t?this.valueOf()===n.valueOf():(a=n.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))}function ia(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function sa(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function oa(e,t,a){var n,r,i,s;return this.isValid()?(n=At(e,this),n.isValid()?(r=6e4*(n.utcOffset()-this.utcOffset()),t=I(t),"year"===t||"month"===t||"quarter"===t?(s=da(this,n),"quarter"===t?s/=3:"year"===t&&(s/=12)):(i=this-n,s="second"===t?i/1e3:"minute"===t?i/6e4:"hour"===t?i/36e5:"day"===t?(i-r)/864e5:"week"===t?(i-r)/6048e5:i),a?s:v(s)):NaN):NaN}function da(e,t){var a,n,r=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(r,"months");return t-i<0?(a=e.clone().add(r-1,"months"),n=(t-i)/(i-a)):(a=e.clone().add(r+1,"months"),n=(t-i)/(a-i)),-(r+n)||0}function la(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ua(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||e.year()>9999?$(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):x(Date.prototype.toISOString)?this.toDate().toISOString():$(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function _a(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var a="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=t+'[")]';return this.format(a+n+"-MM-DD[T]HH:mm:ss.SSS"+r)}function ca(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var a=$(this,e);return this.localeData().postformat(a)}function ma(e,t){return this.isValid()&&(L(e)&&e.isValid()||vt(e).isValid())?Gt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ha(e){return this.from(vt(),e)}function fa(e,t){return this.isValid()&&(L(e)&&e.isValid()||vt(e).isValid())?Gt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ma(e){return this.to(vt(),e)}function pa(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function ya(){return this._locale}function ga(e){switch(e=I(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function La(e){return void 0===(e=I(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function va(){return this._d.valueOf()-6e4*(this._offset||0)}function Ya(){return Math.floor(this.valueOf()/1e3)}function ka(){return new Date(this.valueOf())}function ba(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Da(){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 wa(){return this.isValid()?this.toISOString():null}function xa(){return M(this)}function Ta(){return c({},f(this))}function Sa(){return f(this).overflow}function Ha(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function ja(e,t){q(0,[e,e.length],0,t)}function Pa(e){return Fa.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Aa(e){return Fa.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Oa(){return De(this.year(),1,4)}function Ca(){var e=this.localeData()._week;return De(this.year(),e.dow,e.doy)}function Fa(e,t,a,n,r){var i;return null==e?be(this,n,r).year:(i=De(e,n,r),t>i&&(t=i),Wa.call(this,e,t,a,n,r))}function Wa(e,t,a,n,r){var i=ke(e,t,a,n,r),s=ve(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Ia(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Ea(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function za(e,t){t[mr]=Y(1e3*("0."+e))}function Ra(){return this._isUTC?"UTC":""}function Va(){return this._isUTC?"Coordinated Universal Time":""}function Na(e){return vt(1e3*e)}function Ba(){return vt.apply(null,arguments).parseZone()}function Ja(e){return e}function Ga(e,t,a,n){var r=nt(),i=m().set(n,t);return r[a](i,e)}function Ua(e,t,a){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return Ga(e,t,a,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Ga(e,n,a,"month");return r}function qa(e,t,a,n){"boolean"==typeof e?(d(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,d(t)&&(a=t,t=void 0),t=t||"");var r=nt(),i=e?r._week.dow:0;if(null!=a)return Ga(t,(a+i)%7,n,"day");var s,o=[];for(s=0;s<7;s++)o[s]=Ga(t,(s+i)%7,n,"day");return o}function Ka(e,t){return Ua(e,t,"months")}function Za(e,t){return Ua(e,t,"monthsShort")}function $a(e,t,a){return qa(e,t,a,"weekdays")}function Qa(e,t,a){return qa(e,t,a,"weekdaysShort")}function Xa(e,t,a){return qa(e,t,a,"weekdaysMin")}function en(){var e=this._data;return this._milliseconds=si(this._milliseconds),this._days=si(this._days),this._months=si(this._months),e.milliseconds=si(e.milliseconds),e.seconds=si(e.seconds),e.minutes=si(e.minutes),e.hours=si(e.hours),e.months=si(e.months),e.years=si(e.years),this}function tn(e,t,a,n){var r=Gt(t,a);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}function an(e,t){return tn(this,e,t,1)}function nn(e,t){return tn(this,e,t,-1)}function rn(e){return e<0?Math.floor(e):Math.ceil(e)}function sn(){var e,t,a,n,r,i=this._milliseconds,s=this._days,o=this._months,d=this._data;return i>=0&&s>=0&&o>=0||i<=0&&s<=0&&o<=0||(i+=864e5*rn(dn(o)+s),s=0,o=0),d.milliseconds=i%1e3,e=v(i/1e3),d.seconds=e%60,t=v(e/60),d.minutes=t%60,a=v(t/60),d.hours=a%24,s+=v(a/24),r=v(on(s)),o+=r,s-=rn(dn(r)),n=v(o/12),o%=12,d.days=s,d.months=o,d.years=n,this}function on(e){return 4800*e/146097}function dn(e){return 146097*e/4800}function ln(e){if(!this.isValid())return NaN;var t,a,n=this._milliseconds;if("month"===(e=I(e))||"year"===e)return t=this._days+n/864e5,a=this._months+on(t),"month"===e?a:a/12;switch(t=this._days+Math.round(dn(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function un(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Y(this._months/12):NaN}function _n(e){return function(){return this.as(e)}}function cn(e){return e=I(e),this.isValid()?this[e+"s"]():NaN}function mn(e){return function(){return this.isValid()?this._data[e]:NaN}}function hn(){return v(this.days()/7)}function fn(e,t,a,n,r){return r.relativeTime(t||1,!!a,e,n)}function Mn(e,t,a){var n=Gt(e).abs(),r=Yi(n.as("s")),i=Yi(n.as("m")),s=Yi(n.as("h")),o=Yi(n.as("d")),d=Yi(n.as("M")),l=Yi(n.as("y")),u=r<=ki.ss&&["s",r]||r<ki.s&&["ss",r]||i<=1&&["m"]||i<ki.m&&["mm",i]||s<=1&&["h"]||s<ki.h&&["hh",s]||o<=1&&["d"]||o<ki.d&&["dd",o]||d<=1&&["M"]||d<ki.M&&["MM",d]||l<=1&&["y"]||["yy",l];return u[2]=t,u[3]=+e>0,u[4]=a,fn.apply(null,u)}function pn(e){return void 0===e?Yi:"function"==typeof e&&(Yi=e,!0)}function yn(e,t){return void 0!==ki[e]&&(void 0===t?ki[e]:(ki[e]=t,"s"===e&&(ki.ss=t-1),!0))}function gn(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),a=Mn(this,!e,t);return e&&(a=t.pastFuture(+this,a)),t.postformat(a)}function Ln(){if(!this.isValid())return this.localeData().invalidDate();var e,t,a,n=bi(this._milliseconds)/1e3,r=bi(this._days),i=bi(this._months);e=v(n/60),t=v(e/60),n%=60,e%=60,a=v(i/12),i%=12;var s=a,o=i,d=r,l=t,u=e,_=n,c=this.asSeconds();return c?(c<0?"-":"")+"P"+(s?s+"Y":"")+(o?o+"M":"")+(d?d+"D":"")+(l||u||_?"T":"")+(l?l+"H":"")+(u?u+"M":"")+(_?_+"S":""):"P0D"}var vn,Yn;Yn=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),a=t.length>>>0,n=0;n<a;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};var kn=Yn,bn=t.momentProperties=[],Dn=!1,wn={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var xn;xn=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)_(e,t)&&a.push(t);return a};var Tn,Sn=xn,Hn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},jn={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"},Pn="Invalid date",An="%d",On=/\d{1,2}/,Cn={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"},Fn={},Wn={},In=/(\[[^\[]*\])|(\\)?([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,En=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zn={},Rn={},Vn=/\d/,Nn=/\d\d/,Bn=/\d{3}/,Jn=/\d{4}/,Gn=/[+-]?\d{6}/,Un=/\d\d?/,qn=/\d\d\d\d?/,Kn=/\d\d\d\d\d\d?/,Zn=/\d{1,3}/,$n=/\d{1,4}/,Qn=/[+-]?\d{1,6}/,Xn=/\d+/,er=/[+-]?\d+/,tr=/Z|[+-]\d\d:?\d\d/gi,ar=/Z|[+-]\d\d(?::?\d\d)?/gi,nr=/[+-]?\d+(\.\d{1,3})?/,rr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ir={},sr={},or=0,dr=1,lr=2,ur=3,_r=4,cr=5,mr=6,hr=7,fr=8;Tn=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};var Mr=Tn;q("M",["MM",2],"Mo",function(){return this.month()+1}),q("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),q("MMMM",0,0,function(e){return this.localeData().months(this,e)}),W("month","M"),z("month",8),X("M",Un),X("MM",Un,Nn),X("MMM",function(e,t){return t.monthsShortRegex(e)}),X("MMMM",function(e,t){return t.monthsRegex(e)}),ne(["M","MM"],function(e,t){t[dr]=Y(e)-1}),ne(["MMM","MMMM"],function(e,t,a,n){var r=a._locale.monthsParse(e,n,a._strict);null!=r?t[dr]=r:f(a).invalidMonth=e});var pr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,yr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),gr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Lr=rr,vr=rr;q("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),q(0,["YY",2],0,function(){return this.year()%100}),q(0,["YYYY",4],0,"year"),q(0,["YYYYY",5],0,"year"),q(0,["YYYYYY",6,!0],0,"year"),W("year","y"),z("year",1),X("Y",er),X("YY",Un,Nn),X("YYYY",$n,Jn),X("YYYYY",Qn,Gn),X("YYYYYY",Qn,Gn),ne(["YYYYY","YYYYYY"],or),ne("YYYY",function(e,a){a[or]=2===e.length?t.parseTwoDigitYear(e):Y(e)}),ne("YY",function(e,a){a[or]=t.parseTwoDigitYear(e)}),ne("Y",function(e,t){t[or]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return Y(e)+(Y(e)>68?1900:2e3)};var Yr=V("FullYear",!0);q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),W("week","w"),W("isoWeek","W"),z("week",5),z("isoWeek",5),X("w",Un),X("ww",Un,Nn),X("W",Un),X("WW",Un,Nn),re(["w","ww","W","WW"],function(e,t,a,n){t[n.substr(0,1)]=Y(e)});var kr={dow:0,doy:6};q("d",0,"do","day"),q("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),q("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),q("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),W("day","d"),W("weekday","e"),W("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),X("d",Un),X("e",Un),X("E",Un),X("dd",function(e,t){return t.weekdaysMinRegex(e)}),X("ddd",function(e,t){return t.weekdaysShortRegex(e)}),X("dddd",function(e,t){return t.weekdaysRegex(e)}),re(["dd","ddd","dddd"],function(e,t,a,n){var r=a._locale.weekdaysParse(e,n,a._strict);null!=r?t.d=r:f(a).invalidWeekday=e}),re(["d","e","E"],function(e,t,a,n){t[n]=Y(e)});var br="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),xr=rr,Tr=rr,Sr=rr;q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Je),q("k",["kk",2],0,Ge),q("hmm",0,0,function(){return""+Je.apply(this)+U(this.minutes(),2)}),q("hmmss",0,0,function(){return""+Je.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),Ue("a",!0),Ue("A",!1),W("hour","h"),z("hour",13),X("a",qe),X("A",qe),X("H",Un),X("h",Un),X("k",Un),X("HH",Un,Nn),X("hh",Un,Nn),X("kk",Un,Nn),X("hmm",qn),X("hmmss",Kn),X("Hmm",qn),X("Hmmss",Kn),ne(["H","HH"],ur),ne(["k","kk"],function(e,t,a){var n=Y(e);t[ur]=24===n?0:n}),ne(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),ne(["h","hh"],function(e,t,a){t[ur]=Y(e),f(a).bigHour=!0}),ne("hmm",function(e,t,a){var n=e.length-2;t[ur]=Y(e.substr(0,n)),t[_r]=Y(e.substr(n)),f(a).bigHour=!0}),ne("hmmss",function(e,t,a){var n=e.length-4,r=e.length-2;t[ur]=Y(e.substr(0,n)),t[_r]=Y(e.substr(n,2)),t[cr]=Y(e.substr(r)),f(a).bigHour=!0}),ne("Hmm",function(e,t,a){var n=e.length-2;t[ur]=Y(e.substr(0,n)),t[_r]=Y(e.substr(n))}),ne("Hmmss",function(e,t,a){var n=e.length-4,r=e.length-2;t[ur]=Y(e.substr(0,n)),t[_r]=Y(e.substr(n,2)),t[cr]=Y(e.substr(r))});var Hr,jr=/[ap]\.?m?\.?/i,Pr=V("Hours",!0),Ar={calendar:Hn,longDateFormat:jn,invalidDate:Pn,ordinal:An,dayOfMonthOrdinalParse:On,relativeTime:Cn,months:yr,monthsShort:gr,week:kr,weekdays:br,weekdaysMin:wr,weekdaysShort:Dr,meridiemParse:jr},Or={},Cr={},Fr=/^\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)?)?$/,Wr=/^\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)?)?$/,Ir=/Z|[+-]\d\d(?::?\d\d)?/,Er=[["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}/]],zr=[["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/]],Rr=/^\/?Date\((\-?\d+)/i,Vr=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;t.createFromInputFallback=D("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Nr=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),Br=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()}),Jr=function(){return Date.now?Date.now():+new Date},Gr=["year","quarter","month","week","day","hour","minute","second","millisecond"];jt("Z",":"),jt("ZZ",""),X("Z",ar),X("ZZ",ar),ne(["Z","ZZ"],function(e,t,a){a._useUTC=!0,a._tzm=Pt(ar,e)});var Ur=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var qr=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Kr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Gt.fn=Tt.prototype,Gt.invalid=xt;var Zr=Zt(1,"add"),$r=Zt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qr=D("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)});q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ja("gggg","weekYear"),ja("ggggg","weekYear"),ja("GGGG","isoWeekYear"),ja("GGGGG","isoWeekYear"),W("weekYear","gg"),W("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),X("G",er),X("g",er),X("GG",Un,Nn),X("gg",Un,Nn),X("GGGG",$n,Jn),X("gggg",$n,Jn),X("GGGGG",Qn,Gn),X("ggggg",Qn,Gn),re(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,n){t[n.substr(0,2)]=Y(e)}),re(["gg","GG"],function(e,a,n,r){a[r]=t.parseTwoDigitYear(e)}),q("Q",0,"Qo","quarter"),W("quarter","Q"),z("quarter",7),X("Q",Vn),ne("Q",function(e,t){t[dr]=3*(Y(e)-1)}),q("D",["DD",2],"Do","date"),W("date","D"),z("date",9),X("D",Un),X("DD",Un,Nn),X("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ne(["D","DD"],lr),ne("Do",function(e,t){t[lr]=Y(e.match(Un)[0],10)});var Xr=V("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),W("dayOfYear","DDD"),z("dayOfYear",4),X("DDD",Zn),X("DDDD",Bn),ne(["DDD","DDDD"],function(e,t,a){a._dayOfYear=Y(e)}),q("m",["mm",2],0,"minute"),W("minute","m"),z("minute",14),X("m",Un),X("mm",Un,Nn),ne(["m","mm"],_r);var ei=V("Minutes",!1);q("s",["ss",2],0,"second"),W("second","s"),z("second",15),X("s",Un),X("ss",Un,Nn),ne(["s","ss"],cr);var ti=V("Seconds",!1);q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),W("millisecond","ms"),z("millisecond",16),X("S",Zn,Vn),X("SS",Zn,Nn),X("SSS",Zn,Bn);var ai;for(ai="SSSS";ai.length<=9;ai+="S")X(ai,Xn);for(ai="S";ai.length<=9;ai+="S")ne(ai,za);var ni=V("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var ri=g.prototype;ri.add=Zr,ri.calendar=Xt,ri.clone=ea,ri.diff=oa,ri.endOf=La,ri.format=ca,ri.from=ma,ri.fromNow=ha,ri.to=fa,ri.toNow=Ma,ri.get=J,ri.invalidAt=Sa,ri.isAfter=ta,ri.isBefore=aa,ri.isBetween=na,ri.isSame=ra,ri.isSameOrAfter=ia,ri.isSameOrBefore=sa,ri.isValid=xa,ri.lang=Qr,ri.locale=pa,ri.localeData=ya,ri.max=Br,ri.min=Nr,ri.parsingFlags=Ta,ri.set=G,ri.startOf=ga,ri.subtract=$r,ri.toArray=ba,ri.toObject=Da,ri.toDate=ka,ri.toISOString=ua,ri.inspect=_a,ri.toJSON=wa,ri.toString=la,ri.unix=Ya,ri.valueOf=va,ri.creationData=Ha,ri.year=Yr,ri.isLeapYear=ge,ri.weekYear=Pa,ri.isoWeekYear=Aa,ri.quarter=ri.quarters=Ia,ri.month=ce,ri.daysInMonth=me,ri.week=ri.weeks=Se,ri.isoWeek=ri.isoWeeks=He,ri.weeksInYear=Ca,ri.isoWeeksInYear=Oa,ri.date=Xr,ri.day=ri.days=Ie,ri.weekday=Ee,ri.isoWeekday=ze,ri.dayOfYear=Ea,ri.hour=ri.hours=Pr,ri.minute=ri.minutes=ei,ri.second=ri.seconds=ti,ri.millisecond=ri.milliseconds=ni,ri.utcOffset=Ct,ri.utc=Wt,ri.local=It,ri.parseZone=Et,ri.hasAlignedHourOffset=zt,ri.isDST=Rt,ri.isLocal=Nt,ri.isUtcOffset=Bt,ri.isUtc=Jt,ri.isUTC=Jt,ri.zoneAbbr=Ra,ri.zoneName=Va,ri.dates=D("dates accessor is deprecated. Use date instead.",Xr),ri.months=D("months accessor is deprecated. Use month instead",ce),ri.years=D("years accessor is deprecated. Use year instead",Yr),ri.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ft),ri.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vt);var ii=H.prototype;ii.calendar=j,ii.longDateFormat=P,ii.invalidDate=A,ii.ordinal=O,ii.preparse=Ja,ii.postformat=Ja,ii.relativeTime=C,ii.pastFuture=F,ii.set=T,ii.months=oe,ii.monthsShort=de,ii.monthsParse=ue,ii.monthsRegex=fe,ii.monthsShortRe