UNPKG

react-date-picker

Version:

A carefully crafted date picker for React

2 lines 219 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports.DatePicker=t(require("React")):e.DatePicker=t(e.React)}(this,function(e){return function(e){function t(a){if(n[a])return n[a].exports;var s=n[a]={exports:{},id:a,loaded:!1};return e[a].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function s(){}var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i=n(5),d=n(1),_=n(2),o=n(6),u=n(108),m=n(109),l=n(106),c=n(107),h=n(4),M=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},L=n(3),Y={month:u,year:m,decade:l},f=i.createClass({displayName:"DatePicker",propTypes:{todayText:i.PropTypes.string,gotoSelectedText:i.PropTypes.string,renderFooter:i.PropTypes.func,onChange:i.PropTypes.func,date:i.PropTypes.any,viewDate:i.PropTypes.any},getViewOrder:function(){return this.props.viewOrder||["month","year","decade"]},getDefaultProps:function(){var e=_({},o(),{highlightWeekends:!1,weekNumberName:"",isDatePicker:!0,navOnDateClick:!0,highlightRangeOnMouseMove:!0,defaultStyle:{boxSizing:"border-box"},onRangeChange:function(){}});return delete e.viewDate,delete e.date,e},getInitialState:function(){return{view:this.props.defaultView,viewDate:this.props.defaultViewDate,defaultDate:this.props.defaultDate,defaultRange:this.props.defaultRange}},getViewName:function(){var e=null!=this.props.view?this.props.view:this.state.view;return e||"month"},addViewIndex:function(e){var t=this.getViewName(),n=this.getViewOrder(),a=n.indexOf(t);return a+=e,a%n.length},getNextViewName:function(){return this.getViewOrder()[this.addViewIndex(1)]},getPrevViewName:function(){return this.getViewOrder()[this.addViewIndex(-1)]},getView:function(){var e=this.props.views||Y;return e[this.getViewName()]||e.month},getViewFactory:function(){var e=this.getView();return i.createFactory&&e&&e.prototype&&"function"==typeof e.prototype.render&&(e.__factory=e.__factory||i.createFactory(e),e=e.__factory),e},getViewDate:function(){var e=M(this.props,"viewDate")?this.props.viewDate:this.state.viewDate;return e=e||this.viewMoment||this.getDate()||new Date,d.isMoment(e)&&(e=+e),e=this.toMoment(e)},getDate:function(){var e;return e=M(this.props,"date")?this.props.date:this.state.defaultDate,e?this.toMoment(e):null},getRange:function(){var e,t=this;return M(this.props,"range")?e=this.props.range:this.state.defaultRange&&(e=this.state.defaultRange),e?e.map(function(e){return e?t.toMoment(e):null})||null:null},render:function(){var e=this.p=_({},this.props);this.toMoment=function(t,n){return h(t,n||e.dateFormat,{locale:e.locale})};var t=this.getViewFactory();e.date=this.getDate(),e.range=this.getRange();var n=null==e.date?"":e.date.format(this.props.dateFormat);e.viewDate=this.viewMoment=this.getViewDate(),e.locale=this.props.locale,e.localeData=d.localeData(e.locale),e.renderDay=this.props.renderDay,e.onRenderDay=this.props.onRenderDay;var a=(this.props.className||"")+" date-picker";e.style=this.prepareStyle(e);var s=e,s=o(e);return s.toMoment=this.toMoment,s.highlightWeekends=this.props.highlightWeekends,s.weekNumbers=this.props.weekNumbers,s.weekNumberName=this.props.weekNumberName,s.dateString=n,s.localeData=e.localeData,s.onSelect=this.handleSelect,s.onChange=this.handleChange,s.onWeekChange=this.props.onWeekChange,s.renderWeekNumber=this.props.renderWeekNumber,s.highlightRangeOnMouseMove=this.props.highlightRangeOnMouseMove,s.range=e.range,i.createElement("div",r({},this.props,{className:a,style:e.style}),this.renderHeader(t,e),i.createElement("div",{className:"dp-body",style:{flex:1}},t(s)),this.renderFooter(e))},prepareStyle:function(e){return _({},e.defaultStyle,e.style)},renderFooter:function(e){if(!this.props.hideFooter){this.props.today&&console.warn('Please use "todayText" prop instead of "today"!'),this.props.gotoSelected&&console.warn('Please use "gotoSelectedText" prop instead of "gotoSelected"!');var t,n=this.props.todayText||"Today",a=this.props.gotoSelectedText||"Go to selected",s={todayText:n,gotoSelectedText:a,gotoToday:this.gotoNow,gotoSelected:this.gotoSelected.bind(this,e),date:e.date,viewDate:e.viewDate};return"function"==typeof this.props.footerFactory&&(t=this.props.footerFactory(s)),void 0!==t?t:i.createElement("div",{className:"dp-footer"},i.createElement("div",{tabIndex:"1",role:"link",className:"dp-footer-today",onClick:s.gotoToday,onKeyUp:L(s.gotoToday)},n),i.createElement("div",{tabIndex:"1",role:"link",className:"dp-footer-selected",onClick:s.gotoSelected,onKeyUp:L(s.gotoSelected)},a))}},gotoNow:function(){this.gotoDate(+new Date)},gotoSelected:function(e){this.gotoDate(e.date||+new Date)},gotoDate:function(e){this.setView("month"),this.setViewDate(e)},getViewColspan:function(){var e={month:5,year:2,decade:2};return e[this.getViewName()]},renderHeader:function(e,t){if(!this.props.hideHeader){t=t||this.props;var n=this.getViewDate(),a=this.getView().getHeaderText(n,t),s=this.getViewColspan(),r=this.props.navPrev,d=this.props.navNext;return i.createElement(c,{prevText:r,nextText:d,colspan:s,onPrev:this.handleNavPrev,onNext:this.handleNavNext,onChange:this.handleViewChange},a)}},handleRenderDay:function(e){return(this.props.renderDay||s)(e)||[]},handleViewChange:function(){this.setView(this.getNextViewName())},setView:function(e){"function"==typeof this.props.onViewChange&&this.props.onViewChange(e),null==this.props.view&&this.setState({view:e})},setViewDate:function(e){e=this.toMoment(e);var t=this.props.onViewDateChange;if("function"==typeof t){var n=e.format(this.props.dateFormat),a=this.getViewName();t(n,e,a)}M(this.props,"viewDate")||this.setState({viewDate:e})},getNext:function(){var e=this.getViewDate(),t=this.toMoment;return{month:function(){return t(e).add(1,"month")},year:function(){return t(e).add(1,"year")},decade:function(){return t(e).add(10,"year")}}[this.getViewName()]()},getPrev:function(){var e=this.getViewDate(),t=this.toMoment;return{month:function(){return t(e).add(-1,"month")},year:function(){return t(e).add(-1,"year")},decade:function(){return t(e).add(-10,"year")}}[this.getViewName()]()},handleNavigation:function(e,t){var n=-1==e?this.getPrev():this.getNext();if(this.setViewDate(n),"function"==typeof this.props.onNav){var a=n.format(this.props.dateFormat),s=this.getViewName();this.props.onNav(a,n,s,e,t)}},handleNavPrev:function(e){this.handleNavigation(-1,e)},handleNavNext:function(e){this.handleNavigation(1,e)},handleChange:function(e,t){if(e=this.toMoment(e),this.props.navOnDateClick){var n=this.toMoment(this.getViewDate()),a=n.format("YYYY-MM"),r=e.format("YYYY-MM");r>a?this.handleNavNext(t):a>r&&this.handleNavPrev(t)}var i=e.format(this.props.dateFormat);M(this.props,"date")||this.setState({defaultDate:i}),(this.props.onChange||s)(i,e,t),this.p.range&&this.handleRangeChange(e,t)},handleRangeChange:function(e){var t=this,n=this.p.range;n=n.length<2?[].concat(a(n),[e]):[e],n.sort(function(e,t){return e-t}),this.props.range||this.setState({defaultRange:n});var s=n.map(function(e){return e.format(t.props.dateFormat)});this.props.onRangeChange(s,n,event)},handleSelect:function(e,t){var n=this.getViewName(),a={decade:"year",year:"month"}[n],s=e.get(a),r=this.toMoment(this.getViewDate()).set(a,s),i=this.getPrevViewName();if(this.setViewDate(r),this.setView(i),"function"==typeof this.props.onSelect){var d=r.format(this.props.dateFormat);this.props.onSelect(d,r,i,t)}}});f.views=Y;var y=i.PropTypes;f.propTypes={highlightWeekends:y.bool,onChange:y.func,onNav:y.func,onSelect:y.func,renderDay:y.func,onRenderDay:y.func,defaultView:y.string,view:y.string,onViewDateChange:y.func,onViewChange:y.func,navOnDateClick:y.bool,highlightRangeOnMouseMove:y.bool},e.exports=f},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(this,function(){"use strict";function t(){return $n.apply(null,arguments)}function a(e){$n=e}function s(e){return"[object Array]"===Object.prototype.toString.call(e)}function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function i(e,t){var n,a=[];for(n=0;n<e.length;++n)a.push(t(e[n],n));return a}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function o(e,t,n,a){return xe(e,t,n,a,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function m(e){return null==e._pf&&(e._pf=u()),e._pf}function l(e){if(null==e._isValid){var t=m(e);e._isValid=!(isNaN(e._d.getTime())||!(t.overflow<0)||t.empty||t.invalidMonth||t.invalidWeekday||t.nullInput||t.invalidFormat||t.userInvalidated),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function c(e){var t=o(NaN);return null!=e?_(m(t),e):m(t).userInvalidated=!0,t}function h(e){return void 0===e}function M(e,t){var n,a,s;if(h(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),h(t._i)||(e._i=t._i),h(t._f)||(e._f=t._f),h(t._l)||(e._l=t._l),h(t._strict)||(e._strict=t._strict),h(t._tzm)||(e._tzm=t._tzm),h(t._isUTC)||(e._isUTC=t._isUTC),h(t._offset)||(e._offset=t._offset),h(t._pf)||(e._pf=m(t)),h(t._locale)||(e._locale=t._locale),Bn.length>0)for(n in Bn)a=Bn[n],s=t[a],h(s)||(e[a]=s);return e}function L(e){M(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),Qn===!1&&(Qn=!0,t.updateOffset(this),Qn=!1)}function Y(e){return e instanceof L||null!=e&&null!=e._isAMomentObject}function f(e){return 0>e?Math.ceil(e):Math.floor(e)}function y(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=f(t)),n}function p(e,t,n){var a,s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(a=0;s>a;a++)(n&&e[a]!==t[a]||!n&&y(e[a])!==y(t[a]))&&i++;return i+r}function D(){}function k(e){return e?e.toLowerCase().replace("_","-"):e}function g(e){for(var t,n,a,s,r=0;r<e.length;){for(s=k(e[r]).split("-"),t=s.length,n=k(e[r+1]),n=n?n.split("-"):null;t>0;){if(a=T(s.slice(0,t).join("-")))return a;if(n&&n.length>=t&&p(s,n,!0)>=t-1)break;t--}r++}return null}function T(t){var a=null;if(!Xn[t]&&"undefined"!=typeof e&&e&&e.exports)try{a=Zn._abbr,n(110)("./"+t),v(a)}catch(s){}return Xn[t]}function v(e,t){var n;return e&&(n=h(t)?S(e):w(e,t),n&&(Zn=n)),Zn._abbr}function w(e,t){return null!==t?(t.abbr=e,Xn[e]=Xn[e]||new D,Xn[e].set(t),v(e),Xn[e]):(delete Xn[e],null)}function S(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Zn;if(!s(e)){if(t=T(e))return t;e=[e]}return g(e)}function b(e,t){var n=e.toLowerCase();ea[n]=ea[n+"s"]=ea[t]=e}function H(e){return"string"==typeof e?ea[e]||ea[e.toLowerCase()]:void 0}function j(e){var t,n,a={};for(n in e)d(e,n)&&(t=H(n),t&&(a[t]=e[n]));return a}function x(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function W(e,n){return function(a){return null!=a?(P(this,e,a),t.updateOffset(this,n),this):F(this,e)}}function F(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function P(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function A(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(e=H(e),x(this[e]))return this[e](t);return this}function O(e,t,n){var a=""+Math.abs(e),s=t-a.length,r=e>=0;return(r?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+a}function E(e,t,n,a){var s=a;"string"==typeof a&&(s=function(){return this[a]()}),e&&(sa[e]=s),t&&(sa[t[0]]=function(){return O(s.apply(this,arguments),t[1],t[2])}),n&&(sa[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function N(e){var t,n,a=e.match(ta);for(t=0,n=a.length;n>t;t++)sa[a[t]]?a[t]=sa[a[t]]:a[t]=z(a[t]);return function(s){var r="";for(t=0;n>t;t++)r+=a[t]instanceof Function?a[t].call(s,e):a[t];return r}}function J(e,t){return e.isValid()?(t=C(t,e.localeData()),aa[t]=aa[t]||N(t),aa[t](e)):e.localeData().invalidDate()}function C(e,t){function n(e){return t.longDateFormat(e)||e}var a=5;for(na.lastIndex=0;a>=0&&na.test(e);)e=e.replace(na,n),na.lastIndex=0,a-=1;return e}function V(e,t,n){ka[e]=x(t)?t:function(e,a){return e&&n?n:t}}function I(e,t){return d(ka,e)?ka[e](t._strict,t._locale):new RegExp(G(e))}function G(e){return R(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,a,s){return t||n||a||s}))}function R(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function U(e,t){var n,a=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(a=function(e,n){n[t]=y(e)}),n=0;n<e.length;n++)ga[e[n]]=a}function K(e,t){U(e,function(e,n,a,s){a._w=a._w||{},t(e,a._w,a,s)})}function q(e,t,n){null!=t&&d(ga,e)&&ga[e](t,n._a,n,e)}function $(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function Z(e,t){return s(this._months)?this._months[e.month()]:this._months[Fa.test(t)?"format":"standalone"][e.month()]}function B(e,t){return s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Fa.test(t)?"format":"standalone"][e.month()]}function Q(e,t,n){var a,s,r;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;12>a;a++){if(s=o([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[a]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}}function X(e,t){var n;return e.isValid()?"string"==typeof t&&(t=e.localeData().monthsParse(t),"number"!=typeof t)?e:(n=Math.min(e.date(),$(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e):e}function ee(e){return null!=e?(X(this,e),t.updateOffset(this,!0),this):F(this,"Month")}function te(){return $(this.year(),this.month())}function ne(e){return this._monthsParseExact?(d(this,"_monthsRegex")||se.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}function ae(e){return this._monthsParseExact?(d(this,"_monthsRegex")||se.call(this),e?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}function se(){function e(e,t){return t.length-e.length}var t,n,a=[],s=[],r=[];for(t=0;12>t;t++)n=o([2e3,t]),a.push(this.monthsShort(n,"")),s.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(a.sort(e),s.sort(e),r.sort(e),t=0;12>t;t++)a[t]=R(a[t]),s[t]=R(s[t]),r[t]=R(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")$","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")$","i")}function re(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[va]<0||n[va]>11?va:n[wa]<1||n[wa]>$(n[Ta],n[va])?wa:n[Sa]<0||n[Sa]>24||24===n[Sa]&&(0!==n[ba]||0!==n[Ha]||0!==n[ja])?Sa:n[ba]<0||n[ba]>59?ba:n[Ha]<0||n[Ha]>59?Ha:n[ja]<0||n[ja]>999?ja:-1,m(e)._overflowDayOfYear&&(Ta>t||t>wa)&&(t=wa),m(e)._overflowWeeks&&-1===t&&(t=xa),m(e)._overflowWeekday&&-1===t&&(t=Wa),m(e).overflow=t),e}function ie(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function de(e,t){var n=!0;return _(function(){return n&&(ie(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),n=!1),t.apply(this,arguments)},t)}function _e(e,t){za[e]||(ie(t),za[e]=!0)}function oe(e){var t,n,a,s,r,i,d=e._i,_=Na.exec(d)||Ja.exec(d);if(_){for(m(e).iso=!0,t=0,n=Va.length;n>t;t++)if(Va[t][1].exec(_[1])){s=Va[t][0],a=Va[t][2]!==!1;break}if(null==s)return void(e._isValid=!1);if(_[3]){for(t=0,n=Ia.length;n>t;t++)if(Ia[t][1].exec(_[3])){r=(_[2]||" ")+Ia[t][0];break}if(null==r)return void(e._isValid=!1)}if(!a&&null!=r)return void(e._isValid=!1);if(_[4]){if(!Ca.exec(_[4]))return void(e._isValid=!1);i="Z"}e._f=s+(r||"")+(i||""),Te(e)}else e._isValid=!1}function ue(e){var n=Ga.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(oe(e),void(e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e))))}function me(e,t,n,a,s,r,i){var d=new Date(e,t,n,a,s,r,i);return 100>e&&e>=0&&isFinite(d.getFullYear())&&d.setFullYear(e),d}function le(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ce(e){return he(e)?366:365}function he(e){return e%4===0&&e%100!==0||e%400===0}function Me(){return he(this.year())}function Le(e,t,n){var a=7+t-n,s=(7+le(e,0,a).getUTCDay()-t)%7;return-s+a-1}function Ye(e,t,n,a,s){var r,i,d=(7+n-a)%7,_=Le(e,a,s),o=1+7*(t-1)+d+_;return 0>=o?(r=e-1,i=ce(r)+o):o>ce(e)?(r=e+1,i=o-ce(e)):(r=e,i=o),{year:r,dayOfYear:i}}function fe(e,t,n){var a,s,r=Le(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1;return 1>i?(s=e.year()-1,a=i+ye(s,t,n)):i>ye(e.year(),t,n)?(a=i-ye(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function ye(e,t,n){var a=Le(e,t,n),s=Le(e+1,t,n);return(ce(e)-a+s)/7}function pe(e,t,n){return null!=e?e:null!=t?t:n}function De(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ke(e){var t,n,a,s,r=[];if(!e._d){for(a=De(e),e._w&&null==e._a[wa]&&null==e._a[va]&&ge(e),e._dayOfYear&&(s=pe(e._a[Ta],a[Ta]),e._dayOfYear>ce(s)&&(m(e)._overflowDayOfYear=!0),n=le(s,0,e._dayOfYear),e._a[va]=n.getUTCMonth(),e._a[wa]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=r[t]=a[t];for(;7>t;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Sa]&&0===e._a[ba]&&0===e._a[Ha]&&0===e._a[ja]&&(e._nextDay=!0,e._a[Sa]=0),e._d=(e._useUTC?le:me).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Sa]=24)}}function ge(e){var t,n,a,s,r,i,d,_;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(r=1,i=4,n=pe(t.GG,e._a[Ta],fe(We(),1,4).year),a=pe(t.W,1),s=pe(t.E,1),(1>s||s>7)&&(_=!0)):(r=e._locale._week.dow,i=e._locale._week.doy,n=pe(t.gg,e._a[Ta],fe(We(),r,i).year),a=pe(t.w,1),null!=t.d?(s=t.d,(0>s||s>6)&&(_=!0)):null!=t.e?(s=t.e+r,(t.e<0||t.e>6)&&(_=!0)):s=r),1>a||a>ye(n,r,i)?m(e)._overflowWeeks=!0:null!=_?m(e)._overflowWeekday=!0:(d=Ye(n,a,s,r,i),e._a[Ta]=d.year,e._dayOfYear=d.dayOfYear)}function Te(e){if(e._f===t.ISO_8601)return void oe(e);e._a=[],m(e).empty=!0;var n,a,s,r,i,d=""+e._i,_=d.length,o=0;for(s=C(e._f,e._locale).match(ta)||[],n=0;n<s.length;n++)r=s[n],a=(d.match(I(r,e))||[])[0],a&&(i=d.substr(0,d.indexOf(a)),i.length>0&&m(e).unusedInput.push(i),d=d.slice(d.indexOf(a)+a.length),o+=a.length),sa[r]?(a?m(e).empty=!1:m(e).unusedTokens.push(r),q(r,a,e)):e._strict&&!a&&m(e).unusedTokens.push(r);m(e).charsLeftOver=_-o,d.length>0&&m(e).unusedInput.push(d),m(e).bigHour===!0&&e._a[Sa]<=12&&e._a[Sa]>0&&(m(e).bigHour=void 0),e._a[Sa]=ve(e._locale,e._a[Sa],e._meridiem),ke(e),re(e)}function ve(e,t,n){var a;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(a=e.isPM(n),a&&12>t&&(t+=12),a||12!==t||(t=0),t):t}function we(e){var t,n,a,s,r;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<e._f.length;s++)r=0,t=M({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],Te(t),l(t)&&(r+=m(t).charsLeftOver,r+=10*m(t).unusedTokens.length,m(t).score=r,(null==a||a>r)&&(a=r,n=t));_(e,n||t)}function Se(e){if(!e._d){var t=j(e._i);e._a=i([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ke(e)}}function be(e){var t=new L(re(He(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function He(e){var t=e._i,n=e._f;return e._locale=e._locale||S(e._l),null===t||void 0===n&&""===t?c({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),Y(t)?new L(re(t)):(s(n)?we(e):n?Te(e):r(t)?e._d=t:je(e),l(e)||(e._d=null),e))}function je(e){var n=e._i;void 0===n?e._d=new Date(t.now()):r(n)?e._d=new Date(+n):"string"==typeof n?ue(e):s(n)?(e._a=i(n.slice(0),function(e){return parseInt(e,10)}),ke(e)):"object"==typeof n?Se(e):"number"==typeof n?e._d=new Date(n):t.createFromInputFallback(e)}function xe(e,t,n,a,s){var r={};return"boolean"==typeof n&&(a=n,n=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=s,r._l=n,r._i=e,r._f=t,r._strict=a,be(r)}function We(e,t,n,a){return xe(e,t,n,a,!1)}function Fe(e,t){var n,a;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return We();for(n=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](n)||(n=t[a]);return n}function Pe(){var e=[].slice.call(arguments,0);return Fe("isBefore",e)}function Ae(){var e=[].slice.call(arguments,0);return Fe("isAfter",e)}function Oe(e){var t=j(e),n=t.year||0,a=t.quarter||0,s=t.month||0,r=t.week||0,i=t.day||0,d=t.hour||0,_=t.minute||0,o=t.second||0,u=t.millisecond||0;this._milliseconds=+u+1e3*o+6e4*_+36e5*d,this._days=+i+7*r,this._months=+s+3*a+12*n,this._data={},this._locale=S(),this._bubble()}function Ee(e){return e instanceof Oe}function ze(e,t){E(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+O(~~(e/60),2)+t+O(~~e%60,2)})}function Ne(e,t){var n=(t||"").match(e)||[],a=n[n.length-1]||[],s=(a+"").match($a)||["-",0,0],r=+(60*s[1])+y(s[2]);return"+"===s[0]?r:-r}function Je(e,n){var a,s;return n._isUTC?(a=n.clone(),s=(Y(e)||r(e)?+e:+We(e))-+a,a._d.setTime(+a._d+s),t.updateOffset(a,!1),a):We(e).local()}function Ce(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ve(e,n){var a,s=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=Ne(ya,e):Math.abs(e)<16&&(e=60*e),!this._isUTC&&n&&(a=Ce(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),s!==e&&(!n||this._changeInProgress?st(this,Xe(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?s:Ce(this):null!=e?this:NaN}function Ie(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ge(e){return this.utcOffset(0,e)}function Re(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ce(this),"m")),this}function Ue(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ne(fa,this._i)),this}function Ke(e){return this.isValid()?(e=e?We(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function qe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $e(){if(!h(this._isDSTShifted))return this._isDSTShifted;var e={};if(M(e,this),e=He(e),e._a){var t=e._isUTC?o(e._a):We(e._a);this._isDSTShifted=this.isValid()&&p(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ze(){return this.isValid()?!this._isUTC:!1}function Be(){return this.isValid()?this._isUTC:!1}function Qe(){return this.isValid()?this._isUTC&&0===this._offset:!1}function Xe(e,t){var n,a,s,r=e,i=null;return Ee(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(r={},t?r[t]=e:r.milliseconds=e):(i=Za.exec(e))?(n="-"===i[1]?-1:1,r={y:0,d:y(i[wa])*n,h:y(i[Sa])*n,m:y(i[ba])*n,s:y(i[Ha])*n,ms:y(i[ja])*n}):(i=Ba.exec(e))?(n="-"===i[1]?-1:1,r={y:et(i[2],n),M:et(i[3],n),d:et(i[4],n),h:et(i[5],n),m:et(i[6],n),s:et(i[7],n),w:et(i[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(s=nt(We(r.from),We(r.to)),r={},r.ms=s.milliseconds,r.M=s.months),a=new Oe(r),Ee(e)&&d(e,"_locale")&&(a._locale=e._locale),a}function et(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function tt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function nt(e,t){var n;return e.isValid()&&t.isValid()?(t=Je(t,e),e.isBefore(t)?n=tt(e,t):(n=tt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function at(e,t){return function(n,a){var s,r;return null===a||isNaN(+a)||(_e(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),r=n,n=a,a=r),n="string"==typeof n?+n:n,s=Xe(n,a),st(this,s,e),this}}function st(e,n,a,s){var r=n._milliseconds,i=n._days,d=n._months;e.isValid()&&(s=null==s?!0:s,r&&e._d.setTime(+e._d+r*a),i&&P(e,"Date",F(e,"Date")+i*a),d&&X(e,F(e,"Month")+d*a),s&&t.updateOffset(e,i||d))}function rt(e,t){var n=e||We(),a=Je(n,this).startOf("day"),s=this.diff(a,"days",!0),r=-6>s?"sameElse":-1>s?"lastWeek":0>s?"lastDay":1>s?"sameDay":2>s?"nextDay":7>s?"nextWeek":"sameElse",i=t&&(x(t[r])?t[r]():t[r]);return this.format(i||this.localeData().calendar(r,this,We(n)))}function it(){return new L(this)}function dt(e,t){var n=Y(e)?e:We(e);return this.isValid()&&n.isValid()?(t=H(h(t)?"millisecond":t),"millisecond"===t?+this>+n:+n<+this.clone().startOf(t)):!1}function _t(e,t){var n=Y(e)?e:We(e);return this.isValid()&&n.isValid()?(t=H(h(t)?"millisecond":t),"millisecond"===t?+n>+this:+this.clone().endOf(t)<+n):!1}function ot(e,t,n){return this.isAfter(e,n)&&this.isBefore(t,n)}function ut(e,t){var n,a=Y(e)?e:We(e);return this.isValid()&&a.isValid()?(t=H(t||"millisecond"),"millisecond"===t?+this===+a:(n=+a,+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t))):!1}function mt(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function lt(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ct(e,t,n){var a,s,r,i;return this.isValid()?(a=Je(e,this),a.isValid()?(s=6e4*(a.utcOffset()-this.utcOffset()),t=H(t),"year"===t||"month"===t||"quarter"===t?(i=ht(this,a),"quarter"===t?i/=3:"year"===t&&(i/=12)):(r=this-a,i="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-s)/864e5:"week"===t?(r-s)/6048e5:r),n?i:f(i)):NaN):NaN}function ht(e,t){var n,a,s=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(s,"months");return 0>t-r?(n=e.clone().add(s-1,"months"),a=(t-r)/(r-n)):(n=e.clone().add(s+1,"months"),a=(t-r)/(n-r)),-(s+a)}function Mt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Lt(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?x(Date.prototype.toISOString)?this.toDate().toISOString():J(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):J(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function Yt(e){var n=J(this,e||t.defaultFormat);return this.localeData().postformat(n)}function ft(e,t){return this.isValid()&&(Y(e)&&e.isValid()||We(e).isValid())?Xe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function yt(e){return this.from(We(),e)}function pt(e,t){return this.isValid()&&(Y(e)&&e.isValid()||We(e).isValid())?Xe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Dt(e){return this.to(We(),e)}function kt(e){var t;return void 0===e?this._locale._abbr:(t=S(e),null!=t&&(this._locale=t),this)}function gt(){return this._locale}function Tt(e){switch(e=H(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":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 vt(e){return e=H(e),void 0===e||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")}function wt(){return+this._d-6e4*(this._offset||0)}function St(){return Math.floor(+this/1e3)}function bt(){return this._offset?new Date(+this):this._d}function Ht(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function jt(){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 xt(){return this.isValid()?this.toISOString():"null"}function Wt(){return l(this)}function Ft(){return _({},m(this))}function Pt(){return m(this).overflow}function At(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ot(e,t){E(0,[e,e.length],0,t)}function Et(e){return Ct.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function zt(e){return Ct.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Nt(){return ye(this.year(),1,4)}function Jt(){var e=this.localeData()._week;return ye(this.year(),e.dow,e.doy)}function Ct(e,t,n,a,s){var r;return null==e?fe(this,a,s).year:(r=ye(e,a,s),t>r&&(t=r),Vt.call(this,e,t,n,a,s))}function Vt(e,t,n,a,s){var r=Ye(e,t,n,a,s),i=le(r.year,0,r.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function It(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Gt(e){return fe(e,this._week.dow,this._week.doy).week}function Rt(){return this._week.dow}function Ut(){return this._week.doy}function Kt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function qt(e){var t=fe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function $t(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Zt(e,t){return s(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function Bt(e){return this._weekdaysShort[e.day()]}function Qt(e){return this._weekdaysMin[e.day()]}function Xt(e,t,n){var a,s,r;for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;7>a;a++){if(s=We([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(s,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(s,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(s,"").replace(".",".?")+"$","i")),this._weekdaysParse[a]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[a]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(n&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(n&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!n&&this._weekdaysParse[a].test(e))return a}}function en(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=$t(e,this.localeData()),this.add(e-t,"d")):t}function tn(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 nn(e){return this.isValid()?null==e?this.day()||7:this.day(this.day()%7?e:e-7):null!=e?this:NaN}function an(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 sn(){return this.hours()%12||12}function rn(e,t){E(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function dn(e,t){return t._meridiemParse}function _n(e){return"p"===(e+"").toLowerCase().charAt(0)}function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function un(e,t){t[ja]=y(1e3*("0."+e))}function mn(){return this._isUTC?"UTC":""}function ln(){return this._isUTC?"Coordinated Universal Time":""}function cn(e){return We(1e3*e)}function hn(){return We.apply(null,arguments).parseZone(); }function Mn(e,t,n){var a=this._calendar[e];return x(a)?a.call(t,n):a}function Ln(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function Yn(){return this._invalidDate}function fn(e){return this._ordinal.replace("%d",e)}function yn(e){return e}function pn(e,t,n,a){var s=this._relativeTime[n];return x(s)?s(e,t,n,a):s.replace(/%d/i,e)}function Dn(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}function kn(e){var t,n;for(n in e)t=e[n],x(t)?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function gn(e,t,n,a){var s=S(),r=o().set(a,t);return s[n](r,e)}function Tn(e,t,n,a,s){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return gn(e,t,n,s);var r,i=[];for(r=0;a>r;r++)i[r]=gn(e,r,n,s);return i}function vn(e,t){return Tn(e,t,"months",12,"month")}function wn(e,t){return Tn(e,t,"monthsShort",12,"month")}function Sn(e,t){return Tn(e,t,"weekdays",7,"day")}function bn(e,t){return Tn(e,t,"weekdaysShort",7,"day")}function Hn(e,t){return Tn(e,t,"weekdaysMin",7,"day")}function jn(){var e=this._data;return this._milliseconds=Ds(this._milliseconds),this._days=Ds(this._days),this._months=Ds(this._months),e.milliseconds=Ds(e.milliseconds),e.seconds=Ds(e.seconds),e.minutes=Ds(e.minutes),e.hours=Ds(e.hours),e.months=Ds(e.months),e.years=Ds(e.years),this}function xn(e,t,n,a){var s=Xe(t,n);return e._milliseconds+=a*s._milliseconds,e._days+=a*s._days,e._months+=a*s._months,e._bubble()}function Wn(e,t){return xn(this,e,t,1)}function Fn(e,t){return xn(this,e,t,-1)}function Pn(e){return 0>e?Math.floor(e):Math.ceil(e)}function An(){var e,t,n,a,s,r=this._milliseconds,i=this._days,d=this._months,_=this._data;return r>=0&&i>=0&&d>=0||0>=r&&0>=i&&0>=d||(r+=864e5*Pn(En(d)+i),i=0,d=0),_.milliseconds=r%1e3,e=f(r/1e3),_.seconds=e%60,t=f(e/60),_.minutes=t%60,n=f(t/60),_.hours=n%24,i+=f(n/24),s=f(On(i)),d+=s,i-=Pn(En(s)),a=f(d/12),d%=12,_.days=i,_.months=d,_.years=a,this}function On(e){return 4800*e/146097}function En(e){return 146097*e/4800}function zn(e){var t,n,a=this._milliseconds;if(e=H(e),"month"===e||"year"===e)return t=this._days+a/864e5,n=this._months+On(t),"month"===e?n:n/12;switch(t=this._days+Math.round(En(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}}function Nn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12)}function Jn(e){return function(){return this.as(e)}}function Cn(e){return e=H(e),this[e+"s"]()}function Vn(e){return function(){return this._data[e]}}function In(){return f(this.days()/7)}function Gn(e,t,n,a,s){return s.relativeTime(t||1,!!n,e,a)}function Rn(e,t,n){var a=Xe(e).abs(),s=Es(a.as("s")),r=Es(a.as("m")),i=Es(a.as("h")),d=Es(a.as("d")),_=Es(a.as("M")),o=Es(a.as("y")),u=s<zs.s&&["s",s]||1>=r&&["m"]||r<zs.m&&["mm",r]||1>=i&&["h"]||i<zs.h&&["hh",i]||1>=d&&["d"]||d<zs.d&&["dd",d]||1>=_&&["M"]||_<zs.M&&["MM",_]||1>=o&&["y"]||["yy",o];return u[2]=t,u[3]=+e>0,u[4]=n,Gn.apply(null,u)}function Un(e,t){return void 0===zs[e]?!1:void 0===t?zs[e]:(zs[e]=t,!0)}function Kn(e){var t=this.localeData(),n=Rn(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function qn(){var e,t,n,a=Ns(this._milliseconds)/1e3,s=Ns(this._days),r=Ns(this._months);e=f(a/60),t=f(e/60),a%=60,e%=60,n=f(r/12),r%=12;var i=n,d=r,_=s,o=t,u=e,m=a,l=this.asSeconds();return l?(0>l?"-":"")+"P"+(i?i+"Y":"")+(d?d+"M":"")+(_?_+"D":"")+(o||u||m?"T":"")+(o?o+"H":"")+(u?u+"M":"")+(m?m+"S":""):"P0D"}var $n,Zn,Bn=t.momentProperties=[],Qn=!1,Xn={},ea={},ta=/(\[[^\[]*\])|(\\)?([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?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,na=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,aa={},sa={},ra=/\d/,ia=/\d\d/,da=/\d{3}/,_a=/\d{4}/,oa=/[+-]?\d{6}/,ua=/\d\d?/,ma=/\d\d\d\d?/,la=/\d\d\d\d\d\d?/,ca=/\d{1,3}/,ha=/\d{1,4}/,Ma=/[+-]?\d{1,6}/,La=/\d+/,Ya=/[+-]?\d+/,fa=/Z|[+-]\d\d:?\d\d/gi,ya=/Z|[+-]\d\d(?::?\d\d)?/gi,pa=/[+-]?\d+(\.\d{1,3})?/,Da=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ka={},ga={},Ta=0,va=1,wa=2,Sa=3,ba=4,Ha=5,ja=6,xa=7,Wa=8;E("M",["MM",2],"Mo",function(){return this.month()+1}),E("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),E("MMMM",0,0,function(e){return this.localeData().months(this,e)}),b("month","M"),V("M",ua),V("MM",ua,ia),V("MMM",function(e,t){return t.monthsShortRegex(e)}),V("MMMM",function(e,t){return t.monthsRegex(e)}),U(["M","MM"],function(e,t){t[va]=y(e)-1}),U(["MMM","MMMM"],function(e,t,n,a){var s=n._locale.monthsParse(e,a,n._strict);null!=s?t[va]=s:m(n).invalidMonth=e});var Fa=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Pa="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Aa="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Oa=Da,Ea=Da,za={};t.suppressDeprecationWarnings=!1;var Na=/^\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)?)?/,Ja=/^\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)?)?/,Ca=/Z|[+-]\d\d(?::?\d\d)?/,Va=[["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}/]],Ia=[["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/]],Ga=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=de("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),E("Y",0,0,function(){var e=this.year();return 9999>=e?""+e:"+"+e}),E(0,["YY",2],0,function(){return this.year()%100}),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),b("year","y"),V("Y",Ya),V("YY",ua,ia),V("YYYY",ha,_a),V("YYYYY",Ma,oa),V("YYYYYY",Ma,oa),U(["YYYYY","YYYYYY"],Ta),U("YYYY",function(e,n){n[Ta]=2===e.length?t.parseTwoDigitYear(e):y(e)}),U("YY",function(e,n){n[Ta]=t.parseTwoDigitYear(e)}),U("Y",function(e,t){t[Ta]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return y(e)+(y(e)>68?1900:2e3)};var Ra=W("FullYear",!1);t.ISO_8601=function(){};var Ua=de("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=We.apply(null,arguments);return this.isValid()&&e.isValid()?this>e?this:e:c()}),Ka=de("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=We.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:c()}),qa=function(){return Date.now?Date.now():+new Date};ze("Z",":"),ze("ZZ",""),V("Z",ya),V("ZZ",ya),U(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ne(ya,e)});var $a=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Za=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,Ba=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Xe.fn=Oe.prototype;var Qa=at(1,"add"),Xa=at(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var es=de("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)});E(0,["gg",2],0,function(){return this.weekYear()%100}),E(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ot("gggg","weekYear"),Ot("ggggg","weekYear"),Ot("GGGG","isoWeekYear"),Ot("GGGGG","isoWeekYear"),b("weekYear","gg"),b("isoWeekYear","GG"),V("G",Ya),V("g",Ya),V("GG",ua,ia),V("gg",ua,ia),V("GGGG",ha,_a),V("gggg",ha,_a),V("GGGGG",Ma,oa),V("ggggg",Ma,oa),K(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,a){t[a.substr(0,2)]=y(e)}),K(["gg","GG"],function(e,n,a,s){n[s]=t.parseTwoDigitYear(e)}),E("Q",0,"Qo","quarter"),b("quarter","Q"),V("Q",ra),U("Q",function(e,t){t[va]=3*(y(e)-1)}),E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),b("week","w"),b("isoWeek","W"),V("w",ua),V("ww",ua,ia),V("W",ua),V("WW",ua,ia),K(["w","ww","W","WW"],function(e,t,n,a){t[a.substr(0,1)]=y(e)});var ts={dow:0,doy:6};E("D",["DD",2],"Do","date"),b("date","D"),V("D",ua),V("DD",ua,ia),V("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),U(["D","DD"],wa),U("Do",function(e,t){t[wa]=y(e.match(ua)[0],10)});var ns=W("Date",!0);E("d",0,"do","day"),E("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),E("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),E("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),b("day","d"),b("weekday","e"),b("isoWeekday","E"),V("d",ua),V("e",ua),V("E",ua),V("dd",Da),V("ddd",Da),V("dddd",Da),K(["dd","ddd","dddd"],function(e,t,n,a){var s=n._locale.weekdaysParse(e,a,n._strict);null!=s?t.d=s:m(n).invalidWeekday=e}),K(["d","e","E"],function(e,t,n,a){t[a]=y(e)});var as="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ss="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),rs="Su_Mo_Tu_We_Th_Fr_Sa".split("_");E("DDD",["DDDD",3],"DDDo","dayOfYear"),b("dayOfYear","DDD"),V("DDD",ca),V("DDDD",da),U(["DDD","DDDD"],function(e,t,n){n._dayOfYear=y(e)}),E("H",["HH",2],0,"hour"),E("h",["hh",2],0,sn),E("hmm",0,0,function(){return""+sn.apply(this)+O(this.minutes(),2)}),E("hmmss",0,0,function(){return""+sn.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)}),E("Hmm",0,0,function(){return""+this.hours()+O(this.minutes(),2)}),E("Hmmss",0,0,function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)}),rn("a",!0),rn("A",!1),b("hour","h"),V("a",dn),V("A",dn),V("H",ua),V("h",ua),V("HH",ua,ia),V("hh",ua,ia),V("hmm",ma),V("hmmss",la),V("Hmm",ma),V("Hmmss",la),U(["H","HH"],Sa),U(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),U(["h","hh"],function(e,t,n){t[Sa]=y(e),m(n).bigHour=!0}),U("hmm",function(e,t,n){var a=e.length-2;t[Sa]=y(e.substr(0,a)),t[ba]=y(e.substr(a)),m(n).bigHour=!0}),U("hmmss",function(e,t,n){var a=e.length-4,s=e.length-2;t[Sa]=y(e.substr(0,a)),t[ba]=y(e.substr(a,2)),t[Ha]=y(e.substr(s)),m(n).bigHour=!0}),U("Hmm",function(e,t,n){var a=e.length-2;t[Sa]=y(e.substr(0,a)),t[ba]=y(e.substr(a))}),U("Hmmss",function(e,t,n){var a=e.length-4,s=e.length-2;t[Sa]=y(e.substr(0,a)),t[ba]=y(e.substr(a,2)),t[Ha]=y(e.substr(s))});var is=/[ap]\.?m?\.?/i,ds=W("Hours",!0);E("m",["mm",2],0,"minute"),b("minute","m"),V("m",ua),V("mm",ua,ia),U(["m","mm"],ba);var _s=W("Minutes",!1);E("s",["ss",2],0,"second"),b("second","s"),V("s",ua),V("ss",ua,ia),U(["s","ss"],Ha);var os=W("Seconds",!1);E("S",0,0,function(){return~~(this.millisecond()/100)}),E(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,function(){return 10*this.millisecond()}),E(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),E(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),E(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),E(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),E(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),b("millisecond","ms"),V("S",ca,ra),V("SS",ca,ia),V("SSS",ca,da);var us;for(us="SSSS";us.length<=9;us+="S")V(us,La);for(us="S";us.length<=9;us+="S")U(us,un);var ms=W("Milliseconds",!1);E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var ls=L.prototype;ls.add=Qa,ls.calendar=rt,ls.clone=it,ls.diff=ct,ls.endOf=vt,ls.format=Yt,ls.from=ft,ls.fromNow=yt,ls.to=pt,ls.toNow=Dt,ls.get=A,ls.invalidAt=Pt,ls.isAfter=dt,ls.isBefore=_t,ls.isBetween=ot,ls.isSame=ut,ls.isSameOrAfter=mt,ls.isSameOrBefore=lt,ls.isValid=Wt,ls.lang=es,ls.locale=kt,ls.localeData=gt,ls.max=Ka,ls.min=Ua,ls.parsingFlags=Ft,ls.set=A,ls.startOf=Tt,ls.subtract=Xa,ls.toArray=Ht,ls.toObject=jt,ls.toDate=bt,ls.toISOString=Lt,ls.toJSON=xt,ls.toString=Mt,ls.unix=St,ls.valueOf=wt,ls.creationData=At,ls.year=Ra,ls.isLeapYear=Me,ls.weekYear=Et,ls.isoWeekYear=zt,ls.quarter=ls.quarters=It,ls.month=ee,ls.daysInMonth=te,ls.week=ls.weeks=Kt,ls.isoWeek=ls.isoWeeks=qt,ls.weeksInYear=Jt,ls.isoWeeksInYear=Nt,ls.date=ns,ls.day=ls.days=en,ls.weekday=tn,ls.isoWeekday=nn,ls.dayOfYear=an,ls.hour=ls.hours=ds,ls.minute=ls.minutes=_s,ls.second=ls.seconds=os,ls.millisecond=ls.milliseconds=ms,ls.utcOffset=Ve,ls.utc=Ge,ls.local=Re,ls.parseZone=Ue,ls.hasAlignedHourOffset=Ke,ls.isDST=qe,ls.isDSTShifted=$e,ls.isLocal=Ze,ls.isUtcOffset=Be,ls.isUtc=Qe,ls.isUTC=Qe,ls.zoneAbbr=mn,ls.zoneName=ln,ls.dates=de("dates accessor is deprecated. Use date instead.",ns),ls.months=de("months accessor is deprecated. Use month instead",ee),ls.years=de("years accessor is deprecated. Use year instead",Ra),ls.zone=de("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Ie);var cs=ls,hs={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ms={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"},Ls="Invalid date",Ys="%d",fs=/\d{1,2}/,ys={future:"in %s",past:"%s ago",s:"a few 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"},ps=D.prototype;ps._calendar=hs,ps.calendar=Mn,ps._longDateFormat=Ms,ps.longDateFormat=Ln,ps._invalidDate=Ls,ps.invalidDate=Yn,ps._ordinal=Ys,ps.ordinal=fn,ps._ordinalParse=fs,ps.preparse=yn,ps.postformat=yn,ps._relativeTime=ys,ps.relativeTime=pn,ps.pastFuture=Dn,ps.set=kn,ps.months=Z,ps._months=Pa,ps.monthsShort=B,ps._monthsShort=Aa,ps.monthsParse=Q,ps._monthsRegex=Ea,ps.monthsRegex=ae,ps._monthsShortRegex=Oa,ps.monthsShortRegex=ne,ps.week=Gt,ps._week=ts,ps.firstDayOfYear=Ut,ps.firstDayOfWeek=Rt,ps.weekdays=Zt,ps._weekdays=as,ps.weekdaysMin=Qt,ps._weekdaysMin=rs,ps.weekdaysShort=Bt,ps._weekdaysShort=ss,ps.weekdaysParse=Xt,ps.isPM=_n,ps._meridiemParse=is,ps.meridiem=on,v("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===y(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=de("moment.lang is deprecated. Use moment.locale instead.",v),t.langData=de("moment.langData is deprecated. Use moment.localeData instead.",S);var Ds=Math.abs,ks=Jn("ms"),gs=Jn("s"),Ts=Jn("m"),vs=Jn("h"),ws=Jn("d"),Ss=Jn("w"),bs=Jn("M"),Hs=Jn("y"),js=Vn("milliseconds"),xs=Vn("seconds"),Ws=Vn("minutes"),Fs=Vn("hours"),Ps=Vn("days"),As=Vn("months"),Os=Vn("years"),Es=Math.round,zs={s:45,m:45,h:22,d:26,M:11},Ns=Math.abs,Js=Oe.prototype;Js.abs=jn,Js.add=Wn,Js.subtract=Fn,Js.as=zn,Js.asMilliseconds=ks,Js.asSeconds=gs,Js.asMinutes=Ts,Js.asHours=vs,Js.asDays=ws,Js.asWeeks=Ss,Js.asMonths=bs,Js.asYears=Hs,Js.valueOf=Nn,Js._bubble=An,Js.get=Cn,Js.milliseconds=js,Js.seconds=xs,Js.minutes=Ws,Js.hours=Fs,Js.days=Ps,Js.weeks=In,Js.months=As,Js.years=Os,Js.humanize=Kn,Js.toISOString=qn,Js.toString=qn,Js.toJSON=qn,Js.locale=kt,Js.localeData=gt,Js.toIsoString=de("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qn),Js.lang=es,E("X",0,0,"unix"),E("x",0,0,"valueOf"),V("x",Ya),V("X",pa),U("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),U("x",function(e,t,n){n._d=new Date(y(e))}),t.version="2.11.2",a(We),t.fn=cs,t.min=Pe,t.max=Ae,t.now=qa,t.utc=o,t.unix=cn,t.months=vn,t.isDate=r,t.locale=v,t.invalid=c,t.duration=Xe,t.isMoment=Y,t.weekdays=Sn,t.parseZone=hn,t.localeData=S,t.isDuration=Ee,t.monthsShort=wn,t.weekdaysMin=Hn,t.defineLocale=w,t.weekdaysShort=bn,t.normalizeUnits=H,t.relativeTimeThreshold=Un,t.prototype=cs;var Cs=t;return Cs})}).call(t,n(111)(e))},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=Object.assign||function(e,t){for(var r,i,d=n(e),_=1;_<arguments.length;_++){r=Object(arguments[_]);for(var o in r)a.call(r,o)&&(d[o]=r[o]);if(Object.getOwnPropertySymbols){i=Object.getOwnPropertySymbols(r);for(var u=0;u<i.length;u++)s.call(r,i[u])&&(d[i[u]]=r[i[u]])}}return d}},function(e,t){"use strict";e.exports=function(e){return function(t){"Enter"==t.key&&e(t)}}},function(e,t,n){"use strict";var a=n(1),s=n(8);e.exports=function(e,t,n){var r=!(!n||!n.strict),i=n&&n.locale;return t=t||s.dateFormat,"string"==typeof e?a(e,t,i,r):a(null==e?new Date:e,void 0,i,r)}},function(t,n){t.exports=e},function(e,t,n){"use strict";function a(e,t,n){return e&&n.forEach(function(n){t[n]=e[n]}),t}var s=n(2),r=n(8),i=Object.keys(r);e.exports=function(e,t){var n=i;return t&&(n=Object.keys(t)),t=t||r,e?a(e,s({},t),n):s({},t)}},function(e,t){"use strict";var n=function(){function e(e,t){var n=[],a=!0,s=!1,r=void 0;try{for(var i,d=e[Symbol.iterator]();!(a=(i=d.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(_){s=!0,r=_}finally{try{!a&&d["return"]&&d["return"]()}finally{if(s)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))retur