react-date-field
Version:
React DateField
7 lines • 203 kB
JavaScript
!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.ReactDateField=t(require("React")):e.ReactDateField=t(e.React)}(this,function(e){return function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={exports:{},id:a,loaded:!1};return e[a].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}(function(e){for(var t in e)switch(typeof e[t]){case"number":e[t]=e[e[t]];break;case"object":e[t]=function(t){var n=t.slice(1),a=e[t[0]];return function(e,t,r){a.apply(null,[e,t,r].concat(n))}}(e[t])}return e}([function(e,t,n){"use strict";function a(){}var r=n(2),s=n(5),i=n(96),o=r.createFactory(n(95)),d=n(104),_=n(103),u=n(101),l=n(102),c=n(100),m=n(117);e.exports=r.createClass({displayName:"ReactDateField",mixins:[m],getInitialState:function(){return{defaultValue:this.props.defaultValue,pickerVisible:this.props.defaultPickerVisible}},getDefaultProps:function(){return{constrainTo:!0,validate:!0,calendarToolColor:"#a8a8a8",calendarToolOverColor:"#7F7C7C",calendarToolWidth:12,showPickerOnFocus:!0,dateFormat:c.dateFormat,strict:!0,defaultPickerFactory:o,defaultPickerStyle:{position:"absolute",left:0,top:"100%"}}},render:function(){this.toMoment=function(e,t){return _(e,this.props.dateFormat,t||{strict:this.props.strict})};var e=this.state,t=this.prepareProps(this.props,e),n=this.renderPicker(t,e),a=this.renderHiddenField(t,e);return r.createElement("div",r.__spread({},this.prepareWrapperProps(t,e)),a,r.createElement(i,r.__spread({},t.fieldProps),n))},renderPicker:function(e,t){return this._renderPicker(e,t)},renderHiddenField:function(e,t){return e.hiddenName?r.createElement("input",{type:"hidden",value:this.getValue(e,t),name:e.hiddenName}):null},format:function(e){return e.format(this.props.dateFormat)},prepareProps:function(e,t){var n={};return s(n,e),n.value=this.prepareValue(n,t),n.tools=this.renderTools,n.style=this.prepareStyle(n),n.fieldProps=this.prepareFieldProps(n,t),n.pickerProps=this.preparePickerProps(n),n},renderTools:function(e,t){var n=e.renderCalendarTool||this.renderCalendarTool;return[t,n(e)]},renderCalendarTool:function(e){var t=this.state,n=t.calendarToolMouseOver?e.calendarToolOverColor:e.calendarToolColor,a=e.calendarToolWidth,s={height:"100%",position:"relative",display:"flex",flexFlow:"column",alignItems:"stretch",cursor:"pointer",padding:"7px 5px 5px 5px",boxSizing:"border-box"},i={height:"100%",width:a,borderColor:n,borderStyle:"solid",borderWidth:"4px 2px 2px 2px",position:"relative"},o={borderColor:n,borderStyle:"solid",borderWidth:"0px 3px 0px 3px",height:5,right:1,left:1,top:-6,position:"absolute"},d={position:"absolute",bottom:2,right:2,width:4,height:4,background:n};return r.createElement("div",{style:s,onMouseEnter:this.handleCalendarToolMouseEnter,onMouseLeave:this.handleCalendarToolMouseLeave,onClick:this.handleCalendarToolClick,onMouseDown:this.handleCalendarToolMouseDown},r.createElement("div",{style:i},r.createElement("div",{style:o}),r.createElement("div",{style:d})))},handleCalendarToolMouseEnter:function(){this.setState({calendarToolMouseOver:!0})},handleCalendarToolMouseLeave:function(){this.setState({calendarToolMouseOver:!1})},handleCalendarToolClick:function(){this.togglePicker()},handleCalendarToolMouseDown:function(e){e.preventDefault()},prepareValue:function(e,t){var n=this.getValue(e,t);e.strictMoment=this.toMoment(n,{strict:!0}),e.moment=this.toMoment(e.strictMoment.isValid()?e.strictMoment:n),(u(n)||"number"==typeof n||l(n))&&(n=this.format(e.moment));var a=!0;return e.strictMoment.isValid()?n=this.format(e.moment):e.moment.isValid()||(a=!1),e.valid=a,n},preparePickerProps:function(e){var t=this._preparePickerProps(e);return e.valid&&(t.date=e.moment),t.onMouseDown=this.handlePickerMouseDown.bind(this,e,t),t.onChange=this.handlePickerChange.bind(this,e,t),t},handlePickerMouseDown:function(e,t,n){var a=this.props.pickerProps;a&&a.onMouseDown&&a.onMouseDown(n),n.preventDefault()},handlePickerChange:function(e,t,n,r){var s=this.props.pickerProps||{},i=[].slice.call(arguments,2);(s.onChange||a).apply(null,i),this.notify(r),this.setPickerVisible(!1)},prepareFieldProps:function(e,t){var n=this._prepareFieldProps(e,t);return n.value=e.value,n.validate===!0&&(n.validate=function(){return e.strictMoment.isValid()}),n},prepareStyle:function(e){var t={};return s(t,e.defaultStyle,e.style),t},getValue:function(e,t){return void 0===e.value?t.defaultValue:e.value},handleKeyDown:function(e,t){var n=t.key,a="handle"+d(n)+"KeyDown";this[a]&&this[a](e,t)},handleChange:function(e,t,n,r){if(!e.readOnly||!r||"input"!=r.type){var s=this.toMoment(t);void 0===this.props.value&&this.setState({defaultValue:t});var i=[t,s,r];(e.onChange||a).apply(null,i);var n=this.props.fieldProps||{};(n.onChange||a).apply(null,i)}},prepareWrapperProps:function(e){var t=this._prepareWrapperProps.apply(this,arguments);return t.style=this.prepareWrapperStyle(e,t),t},prepareWrapperStyle:function(e,t){var n=s({},t.style);return"absolute"!=n.position&&(n.position="relative"),n},notify:function(){return this._notify.apply(this,arguments)},focus:function(){return this._focus.apply(this,arguments)},getInput:function(){return this._getInput.apply(this,arguments)},isFocused:function(){return this._isFocused.apply(this,arguments)},handleFocus:function(e){this.props.showPickerOnFocus&&this.setPickerVisible(!0);var t=this.props.fieldProps;t&&t.onFocus&&t.onFocus(e),this.props.onFocus&&this.props.onFocus(e)},handleBlur:function(e){this.setPickerVisible(!1);var t=this.props.fieldProps;t&&t.onBlur&&t.onBlur(e),this.props.onBlur&&this.props.onBlur(e)},isPickerVisible:function(){return this._isPickerVisible()},setPickerVisible:function(e){if(e!=this.state.pickerVisible){var t=this.getValue(this.props,this.state),n=e?this.props.onPickerShow:this.props.onPickerHide;(n||a)(t),this.setState({pickerVisible:e})}},togglePicker:function(){this.setState({pickerVisible:!this.state.pickerVisible})}})},function(e,t,n){var a;(function(e,r){//! moment.js
//! version : 2.8.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(s){function i(e,t,n){switch(arguments.length){case 2:return null!=e?e:t;case 3:return null!=e?e:null!=t?t:n;default:throw new Error("Implement me")}}function o(e,t){return jt.call(e,t)}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function _(e){gt.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function u(e,t){var n=!0;return M(function(){return n&&(_(e),n=!1),t.apply(this,arguments)},t)}function l(e,t){vn[e]||(_(t),vn[e]=!0)}function c(e,t){return function(n){return Y(e.call(this,n),t)}}function m(e,t){return function(n){return this.localeData().ordinal(e.call(this,n),t)}}function h(){}function p(e,t){t!==!1&&E(e),L(this,e),this._d=new Date(+e._d)}function f(e){var t=x(e),n=t.year||0,a=t.quarter||0,r=t.month||0,s=t.week||0,i=t.day||0,o=t.hour||0,d=t.minute||0,_=t.second||0,u=t.millisecond||0;this._milliseconds=+u+1e3*_+6e4*d+36e5*o,this._days=+i+7*s,this._months=+r+3*a+12*n,this._data={},this._locale=gt.localeData(),this._bubble()}function M(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function L(e,t){var n,a,r;if("undefined"!=typeof t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(e._i=t._i),"undefined"!=typeof t._f&&(e._f=t._f),"undefined"!=typeof t._l&&(e._l=t._l),"undefined"!=typeof t._strict&&(e._strict=t._strict),"undefined"!=typeof t._tzm&&(e._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(e._isUTC=t._isUTC),"undefined"!=typeof t._offset&&(e._offset=t._offset),"undefined"!=typeof t._pf&&(e._pf=t._pf),"undefined"!=typeof t._locale&&(e._locale=t._locale),Nt.length>0)for(n in Nt)a=Nt[n],r=t[a],"undefined"!=typeof r&&(e[a]=r);return e}function y(e){return 0>e?Math.ceil(e):Math.floor(e)}function Y(e,t,n){for(var a=""+Math.abs(e),r=e>=0;a.length<t;)a="0"+a;return(r?n?"+":"":"-")+a}function T(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 v(e,t){var n;return t=V(t,e),e.isBefore(t)?n=T(e,t):(n=T(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function D(e,t){return function(n,a){var r,s;return null===a||isNaN(+a)||(l(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),s=n,n=a,a=s),n="string"==typeof n?+n:n,r=gt.duration(n,a),g(this,r,e),this}}function g(e,t,n,a){var r=t._milliseconds,s=t._days,i=t._months;a=null==a?!0:a,r&&e._d.setTime(+e._d+r*n),s&&Lt(e,"Date",Mt(e,"Date")+s*n),i&&ft(e,Mt(e,"Month")+i*n),a&>.updateOffset(e,s||i)}function k(e){return"[object Array]"===Object.prototype.toString.call(e)}function w(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}function b(e,t,n){var a,r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),i=0;for(a=0;r>a;a++)(n&&e[a]!==t[a]||!n&&P(e[a])!==P(t[a]))&&i++;return i+s}function S(e){if(e){var t=e.toLowerCase().replace(/(.)s$/,"$1");e=pn[e]||fn[t]||t}return e}function x(e){var t,n,a={};for(n in e)o(e,n)&&(t=S(n),t&&(a[t]=e[n]));return a}function j(e){var t,n;if(0===e.indexOf("week"))t=7,n="day";else{if(0!==e.indexOf("month"))return;t=12,n="month"}gt[e]=function(a,r){var i,o,d=gt._locale[e],_=[];if("number"==typeof a&&(r=a,a=s),o=function(e){var t=gt().utc().set(n,e);return d.call(gt._locale,t,a||"")},null!=r)return o(r);for(i=0;t>i;i++)_.push(o(i));return _}}function P(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function W(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function F(e,t,n){return ct(gt([e,11,31+t-n]),t,n).week}function C(e){return H(e)?366:365}function H(e){return e%4===0&&e%100!==0||e%400===0}function E(e){var t;e._a&&-2===e._pf.overflow&&(t=e._a[Wt]<0||e._a[Wt]>11?Wt:e._a[Ft]<1||e._a[Ft]>W(e._a[Pt],e._a[Wt])?Ft:e._a[Ct]<0||e._a[Ct]>24||24===e._a[Ct]&&(0!==e._a[Ht]||0!==e._a[Et]||0!==e._a[zt])?Ct:e._a[Ht]<0||e._a[Ht]>59?Ht:e._a[Et]<0||e._a[Et]>59?Et:e._a[zt]<0||e._a[zt]>999?zt:-1,e._pf._overflowDayOfYear&&(Pt>t||t>Ft)&&(t=Ft),e._pf.overflow=t)}function z(e){return null==e._isValid&&(e._isValid=!isNaN(e._d.getTime())&&e._pf.overflow<0&&!e._pf.empty&&!e._pf.invalidMonth&&!e._pf.nullInput&&!e._pf.invalidFormat&&!e._pf.userInvalidated,e._strict&&(e._isValid=e._isValid&&0===e._pf.charsLeftOver&&0===e._pf.unusedTokens.length&&e._pf.bigHour===s)),e._isValid}function O(e){return e?e.toLowerCase().replace("_","-"):e}function N(e){for(var t,n,a,r,s=0;s<e.length;){for(r=O(e[s]).split("-"),t=r.length,n=O(e[s+1]),n=n?n.split("-"):null;t>0;){if(a=A(r.slice(0,t).join("-")))return a;if(n&&n.length>=t&&b(r,n,!0)>=t-1)break;t--}s++}return null}function A(e){var t=null;if(!Ot[e]&&At)try{t=gt.locale(),n(97)("./"+e),gt.locale(t)}catch(a){}return Ot[e]}function V(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(gt.isMoment(e)||w(e)?+e:+gt(e))-+n,n._d.setTime(+n._d+a),gt.updateOffset(n,!1),n):gt(e).local()}function I(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,n,a=e.match(Jt);for(t=0,n=a.length;n>t;t++)a[t]=Tn[a[t]]?Tn[a[t]]:I(a[t]);return function(r){var s="";for(t=0;n>t;t++)s+=a[t]instanceof Function?a[t].call(r,e):a[t];return s}}function J(e,t){return e.isValid()?(t=U(t,e.localeData()),Mn[t]||(Mn[t]=G(t)),Mn[t](e)):e.localeData().invalidDate()}function U(e,t){function n(e){return t.longDateFormat(e)||e}var a=5;for(Ut.lastIndex=0;a>=0&&Ut.test(e);)e=e.replace(Ut,n),Ut.lastIndex=0,a-=1;return e}function R(e,t){var n,a=t._strict;switch(e){case"Q":return nn;case"DDDD":return rn;case"YYYY":case"GGGG":case"gggg":return a?sn:Bt;case"Y":case"G":case"g":return dn;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return a?on:Zt;case"S":if(a)return nn;case"SS":if(a)return an;case"SSS":if(a)return rn;case"DDD":return qt;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return $t;case"a":case"A":return t._locale._meridiemParse;case"x":return en;case"X":return tn;case"Z":case"ZZ":return Xt;case"T":return Qt;case"SSSS":return Kt;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return a?an:Rt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Rt;case"Do":return a?t._locale._ordinalParse:t._locale._ordinalParseLenient;default:return n=new RegExp(tt(et(e.replace("\\","")),"i"))}}function q(e){e=e||"";var t=e.match(Xt)||[],n=t[t.length-1]||[],a=(n+"").match(mn)||["-",0,0],r=+(60*a[1])+P(a[2]);return"+"===a[0]?-r:r}function B(e,t,n){var a,r=n._a;switch(e){case"Q":null!=t&&(r[Wt]=3*(P(t)-1));break;case"M":case"MM":null!=t&&(r[Wt]=P(t)-1);break;case"MMM":case"MMMM":a=n._locale.monthsParse(t,e,n._strict),null!=a?r[Wt]=a:n._pf.invalidMonth=t;break;case"D":case"DD":null!=t&&(r[Ft]=P(t));break;case"Do":null!=t&&(r[Ft]=P(parseInt(t.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=t&&(n._dayOfYear=P(t));break;case"YY":r[Pt]=gt.parseTwoDigitYear(t);break;case"YYYY":case"YYYYY":case"YYYYYY":r[Pt]=P(t);break;case"a":case"A":n._isPm=n._locale.isPM(t);break;case"h":case"hh":n._pf.bigHour=!0;case"H":case"HH":r[Ct]=P(t);break;case"m":case"mm":r[Ht]=P(t);break;case"s":case"ss":r[Et]=P(t);break;case"S":case"SS":case"SSS":case"SSSS":r[zt]=P(1e3*("0."+t));break;case"x":n._d=new Date(P(t));break;case"X":n._d=new Date(1e3*parseFloat(t));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=q(t);break;case"dd":case"ddd":case"dddd":a=n._locale.weekdaysParse(t),null!=a?(n._w=n._w||{},n._w.d=a):n._pf.invalidWeekday=t;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":e=e.substr(0,1);case"gggg":case"GGGG":case"GGGGG":e=e.substr(0,2),t&&(n._w=n._w||{},n._w[e]=P(t));break;case"gg":case"GG":n._w=n._w||{},n._w[e]=gt.parseTwoDigitYear(t)}}function Z(e){var t,n,a,r,s,o,d;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(s=1,o=4,n=i(t.GG,e._a[Pt],ct(gt(),1,4).year),a=i(t.W,1),r=i(t.E,1)):(s=e._locale._week.dow,o=e._locale._week.doy,n=i(t.gg,e._a[Pt],ct(gt(),s,o).year),a=i(t.w,1),null!=t.d?(r=t.d,s>r&&++a):r=null!=t.e?t.e+s:s),d=mt(n,a,r,o,s),e._a[Pt]=d.year,e._dayOfYear=d.dayOfYear}function K(e){var t,n,a,r,s=[];if(!e._d){for(a=X(e),e._w&&null==e._a[Ft]&&null==e._a[Wt]&&Z(e),e._dayOfYear&&(r=i(e._a[Pt],a[Pt]),e._dayOfYear>C(r)&&(e._pf._overflowDayOfYear=!0),n=dt(r,0,e._dayOfYear),e._a[Wt]=n.getUTCMonth(),e._a[Ft]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=s[t]=a[t];for(;7>t;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ct]&&0===e._a[Ht]&&0===e._a[Et]&&0===e._a[zt]&&(e._nextDay=!0,e._a[Ct]=0),e._d=(e._useUTC?dt:ot).apply(null,s),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()+e._tzm),e._nextDay&&(e._a[Ct]=24)}}function $(e){var t;e._d||(t=x(e._i),e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],K(e))}function X(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Q(e){if(e._f===gt.ISO_8601)return void at(e);e._a=[],e._pf.empty=!0;var t,n,a,r,i,o=""+e._i,d=o.length,_=0;for(a=U(e._f,e._locale).match(Jt)||[],t=0;t<a.length;t++)r=a[t],n=(o.match(R(r,e))||[])[0],n&&(i=o.substr(0,o.indexOf(n)),i.length>0&&e._pf.unusedInput.push(i),o=o.slice(o.indexOf(n)+n.length),_+=n.length),Tn[r]?(n?e._pf.empty=!1:e._pf.unusedTokens.push(r),B(r,n,e)):e._strict&&!n&&e._pf.unusedTokens.push(r);e._pf.charsLeftOver=d-_,o.length>0&&e._pf.unusedInput.push(o),e._pf.bigHour===!0&&e._a[Ct]<=12&&(e._pf.bigHour=s),e._isPm&&e._a[Ct]<12&&(e._a[Ct]+=12),e._isPm===!1&&12===e._a[Ct]&&(e._a[Ct]=0),K(e),E(e)}function et(e){return e.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,a,r){return t||n||a||r})}function tt(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function nt(e){var t,n,a,r,s;if(0===e._f.length)return e._pf.invalidFormat=!0,void(e._d=new Date(0/0));for(r=0;r<e._f.length;r++)s=0,t=L({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._pf=d(),t._f=e._f[r],Q(t),z(t)&&(s+=t._pf.charsLeftOver,s+=10*t._pf.unusedTokens.length,t._pf.score=s,(null==a||a>s)&&(a=s,n=t));M(e,n||t)}function at(e){var t,n,a=e._i,r=_n.exec(a);if(r){for(e._pf.iso=!0,t=0,n=ln.length;n>t;t++)if(ln[t][1].exec(a)){e._f=ln[t][0]+(r[6]||" ");break}for(t=0,n=cn.length;n>t;t++)if(cn[t][1].exec(a)){e._f+=cn[t][0];break}a.match(Xt)&&(e._f+="Z"),Q(e)}else e._isValid=!1}function rt(e){at(e),e._isValid===!1&&(delete e._isValid,gt.createFromInputFallback(e))}function st(e,t){var n,a=[];for(n=0;n<e.length;++n)a.push(t(e[n],n));return a}function it(e){var t,n=e._i;n===s?e._d=new Date:w(n)?e._d=new Date(+n):null!==(t=Vt.exec(n))?e._d=new Date(+t[1]):"string"==typeof n?rt(e):k(n)?(e._a=st(n.slice(0),function(e){return parseInt(e,10)}),K(e)):"object"==typeof n?$(e):"number"==typeof n?e._d=new Date(n):gt.createFromInputFallback(e)}function ot(e,t,n,a,r,s,i){var o=new Date(e,t,n,a,r,s,i);return 1970>e&&o.setFullYear(e),o}function dt(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function _t(e,t){if("string"==typeof e)if(isNaN(e)){if(e=t.weekdaysParse(e),"number"!=typeof e)return null}else e=parseInt(e,10);return e}function ut(e,t,n,a,r){return r.relativeTime(t||1,!!n,e,a)}function lt(e,t,n){var a=gt.duration(e).abs(),r=xt(a.as("s")),s=xt(a.as("m")),i=xt(a.as("h")),o=xt(a.as("d")),d=xt(a.as("M")),_=xt(a.as("y")),u=r<Ln.s&&["s",r]||1===s&&["m"]||s<Ln.m&&["mm",s]||1===i&&["h"]||i<Ln.h&&["hh",i]||1===o&&["d"]||o<Ln.d&&["dd",o]||1===d&&["M"]||d<Ln.M&&["MM",d]||1===_&&["y"]||["yy",_];return u[2]=t,u[3]=+e>0,u[4]=n,ut.apply({},u)}function ct(e,t,n){var a,r=n-t,s=n-e.day();return s>r&&(s-=7),r-7>s&&(s+=7),a=gt(e).add(s,"d"),{week:Math.ceil(a.dayOfYear()/7),year:a.year()}}function mt(e,t,n,a,r){var s,i,o=dt(e,0,1).getUTCDay();return o=0===o?7:o,n=null!=n?n:r,s=r-o+(o>a?7:0)-(r>o?7:0),i=7*(t-1)+(n-r)+s+1,{year:i>0?e:e-1,dayOfYear:i>0?i:C(e-1)+i}}function ht(e){var t,n=e._i,a=e._f;return e._locale=e._locale||gt.localeData(e._l),null===n||a===s&&""===n?gt.invalid({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),gt.isMoment(n)?new p(n,!0):(a?k(a)?nt(e):Q(e):it(e),t=new p(e),t._nextDay&&(t.add(1,"d"),t._nextDay=s),t))}function pt(e,t){var n,a;if(1===t.length&&k(t[0])&&(t=t[0]),!t.length)return gt();for(n=t[0],a=1;a<t.length;++a)t[a][e](n)&&(n=t[a]);return n}function ft(e,t){var n;return"string"==typeof t&&(t=e.localeData().monthsParse(t),"number"!=typeof t)?e:(n=Math.min(e.date(),W(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e)}function Mt(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function Lt(e,t,n){return"Month"===t?ft(e,n):e._d["set"+(e._isUTC?"UTC":"")+t](n)}function yt(e,t){return function(n){return null!=n?(Lt(this,e,n),gt.updateOffset(this,t),this):Mt(this,e)}}function Yt(e){return 400*e/146097}function Tt(e){return 146097*e/400}function vt(e){gt.duration.fn[e]=function(){return this._data[e]}}function Dt(e){"undefined"==typeof ender&&(kt=St.moment,St.moment=e?u("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",gt):gt)}for(var gt,kt,wt,bt="2.8.4",St="undefined"!=typeof e?e:this,xt=Math.round,jt=Object.prototype.hasOwnProperty,Pt=0,Wt=1,Ft=2,Ct=3,Ht=4,Et=5,zt=6,Ot={},Nt=[],At="undefined"!=typeof r&&r&&r.exports,Vt=/^\/?Date\((\-?\d+)/i,It=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Gt=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Jt=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Ut=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Rt=/\d\d?/,qt=/\d{1,3}/,Bt=/\d{1,4}/,Zt=/[+\-]?\d{1,6}/,Kt=/\d+/,$t=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Xt=/Z|[\+\-]\d\d:?\d\d/gi,Qt=/T/i,en=/[\+\-]?\d+/,tn=/[\+\-]?\d+(\.\d{1,3})?/,nn=/\d/,an=/\d\d/,rn=/\d{3}/,sn=/\d{4}/,on=/[+-]?\d{6}/,dn=/[+-]?\d+/,_n=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,un="YYYY-MM-DDTHH:mm:ssZ",ln=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],cn=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],mn=/([\+\-]|\d\d)/gi,hn=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),pn={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},fn={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},Mn={},Ln={s:45,m:45,h:22,d:26,M:11},yn="DDD w W M D d".split(" "),Yn="M D H h m s w W".split(" "),Tn={M:function(){return this.month()+1},MMM:function(e){return this.localeData().monthsShort(this,e)},MMMM:function(e){return this.localeData().months(this,e)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(e){return this.localeData().weekdaysMin(this,e)},ddd:function(e){return this.localeData().weekdaysShort(this,e)},dddd:function(e){return this.localeData().weekdays(this,e)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return Y(this.year()%100,2)},YYYY:function(){return Y(this.year(),4)},YYYYY:function(){return Y(this.year(),5)},YYYYYY:function(){var e=this.year(),t=e>=0?"+":"-";return t+Y(Math.abs(e),6)},gg:function(){return Y(this.weekYear()%100,2)},gggg:function(){return Y(this.weekYear(),4)},ggggg:function(){return Y(this.weekYear(),5)},GG:function(){return Y(this.isoWeekYear()%100,2)},GGGG:function(){return Y(this.isoWeekYear(),4)},GGGGG:function(){return Y(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return P(this.milliseconds()/100)},SS:function(){return Y(P(this.milliseconds()/10),2)},SSS:function(){return Y(this.milliseconds(),3)},SSSS:function(){return Y(this.milliseconds(),3)},Z:function(){var e=-this.zone(),t="+";return 0>e&&(e=-e,t="-"),t+Y(P(e/60),2)+":"+Y(P(e)%60,2)},ZZ:function(){var e=-this.zone(),t="+";return 0>e&&(e=-e,t="-"),t+Y(P(e/60),2)+Y(P(e)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},vn={},Dn=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];yn.length;)wt=yn.pop(),Tn[wt+"o"]=m(Tn[wt],wt);for(;Yn.length;)wt=Yn.pop(),Tn[wt+wt]=c(Tn[wt],2);Tn.DDDD=c(Tn.DDD,3),M(h.prototype,{set:function(e){var t,n;for(n in e)t=e[n],"function"==typeof t?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(e){return this._months[e.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(e){return this._monthsShort[e.month()]},monthsParse:function(e,t,n){var a,r,s;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;12>a;a++){if(r=gt.utc([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[a]=new RegExp(s.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}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(e){return this._weekdays[e.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(e){return this._weekdaysShort[e.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(e){return this._weekdaysMin[e.day()]},weekdaysParse:function(e){var t,n,a;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;7>t;t++)if(this._weekdaysParse[t]||(n=gt([2e3,1]).day(t),a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(a.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t},isPM:function(e){return"p"===(e+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(e,t,n){var a=this._calendar[e];return"function"==typeof a?a.apply(t,[n]):a},_relativeTime:{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"},relativeTime:function(e,t,n,a){var r=this._relativeTime[n];return"function"==typeof r?r(e,t,n,a):r.replace(/%d/i,e)},pastFuture:function(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)},ordinal:function(e){return this._ordinal.replace("%d",e)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(e){return e},postformat:function(e){return e},week:function(e){return ct(e,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),gt=function(e,t,n,a){var r;return"boolean"==typeof n&&(a=n,n=s),r={},r._isAMomentObject=!0,r._i=e,r._f=t,r._l=n,r._strict=a,r._isUTC=!1,r._pf=d(),ht(r)},gt.suppressDeprecationWarnings=!1,gt.createFromInputFallback=u("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":""))}),gt.min=function(){var e=[].slice.call(arguments,0);return pt("isBefore",e)},gt.max=function(){var e=[].slice.call(arguments,0);return pt("isAfter",e)},gt.utc=function(e,t,n,a){var r;return"boolean"==typeof n&&(a=n,n=s),r={},r._isAMomentObject=!0,r._useUTC=!0,r._isUTC=!0,r._l=n,r._i=e,r._f=t,r._strict=a,r._pf=d(),ht(r).utc()},gt.unix=function(e){return gt(1e3*e)},gt.duration=function(e,t){var n,a,r,s,i=e,d=null;return gt.isDuration(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(i={},t?i[t]=e:i.milliseconds=e):(d=It.exec(e))?(n="-"===d[1]?-1:1,i={y:0,d:P(d[Ft])*n,h:P(d[Ct])*n,m:P(d[Ht])*n,s:P(d[Et])*n,ms:P(d[zt])*n}):(d=Gt.exec(e))?(n="-"===d[1]?-1:1,r=function(e){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*n},i={y:r(d[2]),M:r(d[3]),d:r(d[4]),h:r(d[5]),m:r(d[6]),s:r(d[7]),w:r(d[8])}):"object"==typeof i&&("from"in i||"to"in i)&&(s=v(gt(i.from),gt(i.to)),i={},i.ms=s.milliseconds,i.M=s.months),a=new f(i),gt.isDuration(e)&&o(e,"_locale")&&(a._locale=e._locale),a},gt.version=bt,gt.defaultFormat=un,gt.ISO_8601=function(){},gt.momentProperties=Nt,gt.updateOffset=function(){},gt.relativeTimeThreshold=function(e,t){return Ln[e]===s?!1:t===s?Ln[e]:(Ln[e]=t,!0)},gt.lang=u("moment.lang is deprecated. Use moment.locale instead.",function(e,t){return gt.locale(e,t)}),gt.locale=function(e,t){var n;return e&&(n="undefined"!=typeof t?gt.defineLocale(e,t):gt.localeData(e),n&&(gt.duration._locale=gt._locale=n)),gt._locale._abbr},gt.defineLocale=function(e,t){return null!==t?(t.abbr=e,Ot[e]||(Ot[e]=new h),Ot[e].set(t),gt.locale(e),Ot[e]):(delete Ot[e],null)},gt.langData=u("moment.langData is deprecated. Use moment.localeData instead.",function(e){return gt.localeData(e)}),gt.localeData=function(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return gt._locale;if(!k(e)){if(t=A(e))return t;e=[e]}return N(e)},gt.isMoment=function(e){return e instanceof p||null!=e&&o(e,"_isAMomentObject")},gt.isDuration=function(e){return e instanceof f};for(wt=Dn.length-1;wt>=0;--wt)j(Dn[wt]);gt.normalizeUnits=function(e){return S(e)},gt.invalid=function(e){var t=gt.utc(0/0);return null!=e?M(t._pf,e):t._pf.userInvalidated=!0,t},gt.parseZone=function(){return gt.apply(null,arguments).parseZone()},gt.parseTwoDigitYear=function(e){return P(e)+(P(e)>68?1900:2e3)},M(gt.fn=p.prototype,{clone:function(){return gt(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var e=gt(this).utc();return 0<e.year()&&e.year()<=9999?"function"==typeof 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]")},toArray:function(){var e=this;return[e.year(),e.month(),e.date(),e.hours(),e.minutes(),e.seconds(),e.milliseconds()]},isValid:function(){return z(this)},isDSTShifted:function(){return this._a?this.isValid()&&b(this._a,(this._isUTC?gt.utc(this._a):gt(this._a)).toArray())>0:!1},parsingFlags:function(){return M({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(e){return this.zone(0,e)},local:function(e){return this._isUTC&&(this.zone(0,e),this._isUTC=!1,e&&this.add(this._dateTzOffset(),"m")),this},format:function(e){var t=J(this,e||gt.defaultFormat);return this.localeData().postformat(t)},add:D(1,"add"),subtract:D(-1,"subtract"),diff:function(e,t,n){var a,r,s,i=V(e,this),o=6e4*(this.zone()-i.zone());return t=S(t),"year"===t||"month"===t?(a=432e5*(this.daysInMonth()+i.daysInMonth()),r=12*(this.year()-i.year())+(this.month()-i.month()),s=this-gt(this).startOf("month")-(i-gt(i).startOf("month")),s-=6e4*(this.zone()-gt(this).startOf("month").zone()-(i.zone()-gt(i).startOf("month").zone())),r+=s/a,"year"===t&&(r/=12)):(a=this-i,r="second"===t?a/1e3:"minute"===t?a/6e4:"hour"===t?a/36e5:"day"===t?(a-o)/864e5:"week"===t?(a-o)/6048e5:a),n?r:y(r)},from:function(e,t){return gt.duration({to:this,from:e}).locale(this.locale()).humanize(!t)},fromNow:function(e){return this.from(gt(),e)},calendar:function(e){var t=e||gt(),n=V(t,this).startOf("day"),a=this.diff(n,"days",!0),r=-6>a?"sameElse":-1>a?"lastWeek":0>a?"lastDay":1>a?"sameDay":2>a?"nextDay":7>a?"nextWeek":"sameElse";return this.format(this.localeData().calendar(r,this,gt(t)))},isLeapYear:function(){return H(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=_t(e,this.localeData()),this.add(e-t,"d")):t},month:yt("Month",!0),startOf:function(e){switch(e=S(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},endOf:function(e){return e=S(e),e===s||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")},isAfter:function(e,t){var n;return t=S("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=gt.isMoment(e)?e:gt(e),+this>+e):(n=gt.isMoment(e)?+e:+gt(e),n<+this.clone().startOf(t))},isBefore:function(e,t){var n;return t=S("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=gt.isMoment(e)?e:gt(e),+e>+this):(n=gt.isMoment(e)?+e:+gt(e),+this.clone().endOf(t)<n)},isSame:function(e,t){var n;return t=S(t||"millisecond"),"millisecond"===t?(e=gt.isMoment(e)?e:gt(e),+this===+e):(n=+gt(e),+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t))},min:u("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(e){return e=gt.apply(null,arguments),this>e?this:e}),max:u("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(e){return e=gt.apply(null,arguments),e>this?this:e}),zone:function(e,t){var n,a=this._offset||0;return null==e?this._isUTC?a:this._dateTzOffset():("string"==typeof e&&(e=q(e)),Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(n=this._dateTzOffset()),this._offset=e,this._isUTC=!0,null!=n&&this.subtract(n,"m"),a!==e&&(!t||this._changeInProgress?g(this,gt.duration(a-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,gt.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(e){return e=e?gt(e).zone():0,(this.zone()-e)%60===0},daysInMonth:function(){return W(this.year(),this.month())},dayOfYear:function(e){var t=xt((gt(this).startOf("day")-gt(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},quarter:function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},weekYear:function(e){var t=ct(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")},isoWeekYear:function(e){var t=ct(this,1,4).year;return null==e?t:this.add(e-t,"y")},week:function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},isoWeek:function(e){var t=ct(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},weekday:function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},isoWeekday:function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},isoWeeksInYear:function(){return F(this.year(),1,4)},weeksInYear:function(){var e=this.localeData()._week;return F(this.year(),e.dow,e.doy)},get:function(e){return e=S(e),this[e]()},set:function(e,t){return e=S(e),"function"==typeof this[e]&&this[e](t),this},locale:function(e){var t;return e===s?this._locale._abbr:(t=gt.localeData(e),null!=t&&(this._locale=t),this)},lang:u("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===s?this.localeData():this.locale(e)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),gt.fn.millisecond=gt.fn.milliseconds=yt("Milliseconds",!1),gt.fn.second=gt.fn.seconds=yt("Seconds",!1),gt.fn.minute=gt.fn.minutes=yt("Minutes",!1),gt.fn.hour=gt.fn.hours=yt("Hours",!0),gt.fn.date=yt("Date",!0),gt.fn.dates=u("dates accessor is deprecated. Use date instead.",yt("Date",!0)),gt.fn.year=yt("FullYear",!0),gt.fn.years=u("years accessor is deprecated. Use year instead.",yt("FullYear",!0)),gt.fn.days=gt.fn.day,gt.fn.months=gt.fn.month,gt.fn.weeks=gt.fn.week,gt.fn.isoWeeks=gt.fn.isoWeek,gt.fn.quarters=gt.fn.quarter,gt.fn.toJSON=gt.fn.toISOString,M(gt.duration.fn=f.prototype,{_bubble:function(){var e,t,n,a=this._milliseconds,r=this._days,s=this._months,i=this._data,o=0;i.milliseconds=a%1e3,e=y(a/1e3),i.seconds=e%60,t=y(e/60),i.minutes=t%60,n=y(t/60),i.hours=n%24,r+=y(n/24),o=y(Yt(r)),r-=y(Tt(o)),s+=y(r/30),r%=30,o+=y(s/12),s%=12,i.days=r,i.months=s,i.years=o},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return y(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*P(this._months/12)},humanize:function(e){var t=lt(this,!e,this.localeData());return e&&(t=this.localeData().pastFuture(+this,t)),this.localeData().postformat(t)},add:function(e,t){var n=gt.duration(e,t);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(e,t){var n=gt.duration(e,t);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(e){return e=S(e),this[e.toLowerCase()+"s"]()},as:function(e){var t,n;if(e=S(e),"month"===e||"year"===e)return t=this._days+this._milliseconds/864e5,n=this._months+12*Yt(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Tt(this._months/12)),e){case"week":return t/7+this._milliseconds/6048e5;case"day":return t+this._milliseconds/864e5;case"hour":return 24*t+this._milliseconds/36e5;case"minute":return 24*t*60+this._milliseconds/6e4;case"second":return 24*t*60*60+this._milliseconds/1e3;
case"millisecond":return Math.floor(24*t*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+e)}},lang:gt.fn.lang,locale:gt.fn.locale,toIsoString:u("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var e=Math.abs(this.years()),t=Math.abs(this.months()),n=Math.abs(this.days()),a=Math.abs(this.hours()),r=Math.abs(this.minutes()),s=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(n?n+"D":"")+(a||r||s?"T":"")+(a?a+"H":"")+(r?r+"M":"")+(s?s+"S":""):"P0D"},localeData:function(){return this._locale}}),gt.duration.fn.toString=gt.duration.fn.toISOString;for(wt in hn)o(hn,wt)&&vt(wt.toLowerCase());gt.duration.fn.asMilliseconds=function(){return this.as("ms")},gt.duration.fn.asSeconds=function(){return this.as("s")},gt.duration.fn.asMinutes=function(){return this.as("m")},gt.duration.fn.asHours=function(){return this.as("h")},gt.duration.fn.asDays=function(){return this.as("d")},gt.duration.fn.asWeeks=function(){return this.as("weeks")},gt.duration.fn.asMonths=function(){return this.as("M")},gt.duration.fn.asYears=function(){return this.as("y")},gt.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===P(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),At?r.exports=gt:(a=function(e,t,n){return n.config&&n.config()&&n.config().noGlobal===!0&&(St.moment=kt),gt}.call(t,n,t,r),!(a!==s&&(r.exports=a)),Dt(!0))}).call(this)}).call(t,function(){return this}(),n(98)(e))},function(t){t.exports=e},function(e,t,n){"use strict";var a=n(1),r=n(6);e.exports=function(e,t,n){var s=!(!n||!n.strict);return t=t||r.dateFormat,"string"==typeof e?a(e,t,s):a.isMoment(e)?e:a(null==e?new Date:e)}},function(e,t,n){"use strict";function a(e,t,n){return e&&n.forEach(function(n){t[n]=e[n]}),t}var r=n(5),s=n(6),i=Object.keys(s);e.exports=function(e,t){var n=i;return t&&(n=Object.keys(t)),t=t||s,e?a(e,r({},t),n):r({},t)}},function(e){"use strict";function t(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=Object.assign||function(e){for(var n,a,r=t(e),s=1;s<arguments.length;s++){n=arguments[s],a=Object.keys(Object(n));for(var i=0;i<a.length;i++)r[a[i]]=n[a[i]]}return r}},function(e,t,n){"use strict";var a=n(88);e.exports={weekDayNames:a(),weekStartDay:0,dayFormat:"D",monthFormat:"MMMM",yearFormat:"YYYY",navPrev:"‹",navNext:"›",view:null,defaultView:"month",date:null,minDate:null,maxDate:null,viewDate:null,defaultViewDate:null,dateFormat:"YYYY-MM-DD"}},function(e,t,n){"use strict";function a(e,t){return s(e).format(t)}var r=n(6),s=n(3);e.exports={day:function(e,t){return a(e,t||r.dayFormat)},month:function(e,t){return a(e,t||r.monthFormat)},year:function(e,t){return a(e,t||r.yearFormat)}}},5,function(e,t,n){var a,r,s;!function(i){r=[n(1)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiem:function(e,t,n){return 12>e?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(1)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})})},function(e,t,n){var a,r,s;!function(i){r=[n(1)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(e){return 12>e?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(e,t,n){var a,r,s;!function(i){r=[n(1)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},a=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&10>=e%100?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(e){return function(t,n){var s=a(t),i=r[e][a(t)];return 2===s&&(i=i[n?0:1]),i.replace(/%d/i,t)}},i=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];return e.defineLocale("ar",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(e){return 12>e?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(e,t,n){var a,r,s;!function(i){r=[n(1)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};return e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiem:function(e){return 4>e?"gecə":12>e?"səhər":17>e?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,a=e%100-n,r=e>=100?100:null;return e+(t[n]||t[a]||t[r])},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(1)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function n(e,n,a){var r={mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===a?n?"хвіліна":"хвіліну":"h"===a?n?"гадзіна":"гадзіну":e+" "+t(r[a],+e)}function a(e,t){var n={nominative:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_"),accusative:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_")},a=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[a][e.month()]}function r(e,t){var n={nominative:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),accusative:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_")},a=/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/.test(t)?"accusative":"nominative";return n[a][e.day()]}return e.defineLocale("be",{months:a,monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:r,weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT