UNPKG

rat-provider

Version:

rat-provider component for Rat.

2 lines 321 kB
// {"framework" : "Rax"} define("rat-provider",["rat-frame","rat-util"],function(require,exports,module){module.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var module=t[o]={i:o,l:!1,exports:{}};return e[o].call(module.exports,module,module.exports,n),module.l=!0,module.exports}return n.m=e,n.c=t,n.d=function(exports,e,t){n.o(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:t})},n.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(module){var e=module&&module.__esModule?function(){return module.default}:function(){return module};return n.d(e,"a",e),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=128)}([function(module,exports,e){"use strict";(function(module){var t,n,o,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o=function(){function t(){return Qe.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,o=[];for(n=0;n<e.length;++n)o.push(t(e[n],n));return o}function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){for(var n in t)_(t,n)&&(e[n]=t[n]);return _(t,"toString")&&(e.toString=t.toString),_(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,o){return Me(e,t,n,o,!0).utc()}function l(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function y(e){if(null==e._isValid){var t=l(e),n=Xe.call(t.parsedDateParts,function(e){return null!=e}),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function c(e){var t=m(NaN);return null==e?l(t).userInvalidated=!0:u(l(t),e),t}function f(e,t){var n,o,a;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=l(t)),r(t._locale)||(e._locale=t._locale),rt.length>0)for(n=0;n<rt.length;n++)r(a=t[o=rt[n]])||(e[o]=a);return e}function p(e){f(this,e),this._d=new Date(null==e._d?NaN:e._d.getTime()),this.isValid()||(this._d=new Date(NaN)),!1===st&&(st=!0,t.updateOffset(this),st=!1)}function h(e){return e instanceof p||null!=e&&null!=e._isAMomentObject}function M(e){return e<0?at(e)||0:ot(e)}function L(e){var t=+e,n=0;return 0!=t&&isFinite(t)&&(n=M(t)),n}function Y(e,t,n){var o,a=nt(e.length,t.length),r=tt(e.length-t.length),s=0;for(o=0;o<a;o++)(n&&e[o]!==t[o]||!n&&L(e[o])!==L(t[o]))&&s++;return s+r}function b(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,n){var o=!0;return u(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),o){for(var r,s=[],i=0;i<arguments.length;i++){if(r="","object"===a(arguments[i])){for(var d in r+="\n["+i+"] ",arguments[0])r+=d+": "+arguments[0][d]+", ";r=r.slice(0,-2)}else r=arguments[i];s.push(r)}b(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),o=!1}return n.apply(this,arguments)},n)}function D(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),it[e]||(b(n),it[e]=!0)}function S(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function v(e,t){var n,a=u({},e);for(n in t)_(t,n)&&(o(e[n])&&o(t[n])?(a[n]={},u(a[n],e[n]),u(a[n],t[n])):null==t[n]?delete a[n]:a[n]=t[n]);for(n in e)_(e,n)&&!_(t,n)&&o(e[n])&&(a[n]=u({},a[n]));return a}function T(e){null!=e&&this.set(e)}function g(e,t){var n=e.toLowerCase();_t[n]=_t[n+"s"]=_t[t]=e}function w(e){return"string"==typeof e?_t[e]||_t[e.toLowerCase()]:void 0}function j(e){var t,n,o={};for(n in e)_(e,n)&&((t=w(n))&&(o[t]=e[n]));return o}function H(e,t){ut[e]=t}function x(e,t,n){var o=""+tt(e),a=t-o.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+o}function P(e,t,n,o){var a=o;"string"==typeof o&&(a=function(){return this[o]()}),e&&(ct[e]=a),t&&(ct[t[0]]=function(){return x(a.apply(this,arguments),t[1],t[2])}),n&&(ct[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function O(e,t){return e.isValid()?(t=W(t,e.localeData()),yt[t]=yt[t]||function(e){var t,n,o,a=e.match(mt);for(t=0,n=a.length;t<n;t++)a[t]=ct[a[t]]?ct[a[t]]:(o=a[t]).match(/\[[\s\S]/)?o.replace(/^\[|\]$/g,""):o.replace(/\\/g,"");return function(t){var o,r="";for(o=0;o<n;o++)r+=S(a[o])?a[o].call(t,e):a[o];return r}}(t),yt[t](e)):e.localeData().invalidDate()}function W(e,t){function n(e){return t.longDateFormat(e)||e}var o=5;for(lt.lastIndex=0;o>=0&&lt.test(e);)e=e.replace(lt,n),lt.lastIndex=0,o-=1;return e}function E(e,t,n){xt[e]=S(t)?t:function(e){return e&&n?n:t}}function F(e,t){return _(xt,e)?xt[e](t._strict,t._locale):new RegExp(A(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,a){return t||n||o||a})))}function A(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function z(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),s(t)&&(o=function(e,n){n[t]=L(e)}),n=0;n<e.length;n++)Pt[e[n]]=o}function J(e,t){z(e,function(e,n,o,a){o._w=o._w||{},t(e,o._w,o,a)})}function C(e,t,n){null!=t&&_(Pt,e)&&Pt[e](t,n._a,n,e)}function N(e){return I(e)?366:365}function I(e){return e%4==0&&e%100!=0||e%400==0}function R(e,n){return function(o){return null==o?U(this,e):(G(this,e,o),t.updateOffset(this,n),this)}}function U(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function G(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&I(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),V(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function V(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,o=(t%(n=12)+n)%n;return e+=(t-o)/12,1===o?I(e)?29:28:31-o%7%2}function $(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=L(t);else if(!s(t=e.localeData().monthsParse(t)))return e;return n=nt(e.date(),V(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function K(e){return null==e?U(this,"Month"):($(this,e),t.updateOffset(this,!0),this)}function Z(){function e(e,t){return t.length-e.length}var t,n,o=[],a=[],r=[];for(t=0;t<12;t++)n=m([2e3,t]),o.push(this.monthsShort(n,"")),a.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(o.sort(e),a.sort(e),r.sort(e),t=0;t<12;t++)o[t]=A(o[t]),a[t]=A(a[t]);for(t=0;t<24;t++)r[t]=A(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function q(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function B(e,t,n){var o=7+t-n;return-((7+q(e,0,o).getUTCDay()-t)%7)+o-1}function Q(e,t,n,o,a){var r,s,i=1+7*(t-1)+(7+n-o)%7+B(e,o,a);return i<=0?s=N(r=e-1)+i:i>N(e)?(r=e+1,s=i-N(e)):(r=e,s=i),{year:r,dayOfYear:s}}function X(e,t,n){var o,a,r=B(e.year(),t,n),s=ot((e.dayOfYear()-r-1)/7)+1;return s<1?o=s+ee(a=e.year()-1,t,n):s>ee(e.year(),t,n)?(o=s-ee(e.year(),t,n),a=e.year()+1):(a=e.year(),o=s),{week:o,year:a}}function ee(e,t,n){var o=B(e,t,n),a=B(e+1,t,n);return(N(e)-o+a)/7}function te(){function e(e,t){return t.length-e.length}var t,n,o,a,r,s=[],i=[],d=[],_=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),o=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(o),i.push(a),d.push(r),_.push(o),_.push(a),_.push(r);for(s.sort(e),i.sort(e),d.sort(e),_.sort(e),t=0;t<7;t++)i[t]=A(i[t]),d[t]=A(d[t]),_[t]=A(_[t]);this._weekdaysRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function ne(){return this.hours()%12||12}function oe(e,t){P(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ae(e,t){return t._meridiemParse}function re(e){return e?e.toLowerCase().replace("_","-"):e}function se(t){var n=null;if(!Xt[t]&&void 0!==module&&module&&module.exports)try{n=qt._abbr;e(138)("./"+t),ie(n)}catch(e){}return Xt[t]}function ie(e,t){var n;return e&&((n=r(t)?_e(e):de(e,t))?qt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),qt._abbr}function de(e,t){if(null!==t){var n,o=Qt;if(t.abbr=e,null!=Xt[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=Xt[e]._config;else if(null!=t.parentLocale)if(null!=Xt[t.parentLocale])o=Xt[t.parentLocale]._config;else{if(null==(n=se(t.parentLocale)))return en[t.parentLocale]||(en[t.parentLocale]=[]),en[t.parentLocale].push({name:e,config:t}),null;o=n._config}return Xt[e]=new T(v(o,t)),en[e]&&en[e].forEach(function(e){de(e.name,e.config)}),ie(e),Xt[e]}return delete Xt[e],null}function _e(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return qt;if(!n(e)){if(t=se(e))return t;e=[e]}return function(e){for(var t,n,o,a,r=0;r<e.length;){for(t=(a=re(e[r]).split("-")).length,n=(n=re(e[r+1]))?n.split("-"):null;t>0;){if(o=se(a.slice(0,t).join("-")))return o;if(n&&n.length>=t&&Y(a,n,!0)>=t-1)break;t--}r++}return qt}(e)}function ue(e){var t,n=e._a;return n&&-2===l(e).overflow&&(t=n[Wt]<0||n[Wt]>11?Wt:n[Et]<1||n[Et]>V(n[Ot],n[Wt])?Et:n[Ft]<0||n[Ft]>24||24===n[Ft]&&(0!==n[At]||0!==n[zt]||0!==n[Jt])?Ft:n[At]<0||n[At]>59?At:n[zt]<0||n[zt]>59?zt:n[Jt]<0||n[Jt]>999?Jt:-1,l(e)._overflowDayOfYear&&(t<Ot||t>Et)&&(t=Et),l(e)._overflowWeeks&&-1===t&&(t=Ct),l(e)._overflowWeekday&&-1===t&&(t=Nt),l(e).overflow=t),e}function me(e,t,n){return null==e?null==t?n:t:e}function le(e){var n,o,a,r,s,i=[];if(!e._d){for(a=function(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(e),e._w&&null==e._a[Et]&&null==e._a[Wt]&&function(e){var t,n,o,a,r,s,i,d;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,s=4,n=me(t.GG,e._a[Ot],X(Le(),1,4).year),o=me(t.W,1),((a=me(t.E,1))<1||a>7)&&(d=!0);else{r=e._locale._week.dow,s=e._locale._week.doy;var _=X(Le(),r,s);n=me(t.gg,e._a[Ot],_.year),o=me(t.w,_.week),null==t.d?null==t.e?a=r:(a=t.e+r,(t.e<0||t.e>6)&&(d=!0)):((a=t.d)<0||a>6)&&(d=!0)}o<1||o>ee(n,r,s)?l(e)._overflowWeeks=!0:null==d?(i=Q(n,o,a,r,s),e._a[Ot]=i.year,e._dayOfYear=i.dayOfYear):l(e)._overflowWeekday=!0}(e),null!=e._dayOfYear&&(s=me(e._a[Ot],a[Ot]),(e._dayOfYear>N(s)||0===e._dayOfYear)&&(l(e)._overflowDayOfYear=!0),o=q(s,0,e._dayOfYear),e._a[Wt]=o.getUTCMonth(),e._a[Et]=o.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=i[n]=a[n];for(;n<7;n++)e._a[n]=i[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[Ft]&&0===e._a[At]&&0===e._a[zt]&&0===e._a[Jt]&&(e._nextDay=!0,e._a[Ft]=0),e._d=(e._useUTC?q:function(e,t,n,o,a,r,s){var i=new Date(e,t,n,o,a,r,s);return e<100&&e>=0&&isFinite(i.getFullYear())&&i.setFullYear(e),i}).apply(null,i),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ft]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(l(e).weekdayMismatch=!0)}}function ye(e){var t,n,o,a,r,s,i=e._i,d=tn.exec(i)||nn.exec(i);if(d){for(l(e).iso=!0,t=0,n=an.length;t<n;t++)if(an[t][1].exec(d[1])){a=an[t][0],o=!1!==an[t][2];break}if(null==a)return void(e._isValid=!1);if(d[3]){for(t=0,n=rn.length;t<n;t++)if(rn[t][1].exec(d[3])){r=(d[2]||" ")+rn[t][0];break}if(null==r)return void(e._isValid=!1)}if(!o&&null!=r)return void(e._isValid=!1);if(d[4]){if(!on.exec(d[4]))return void(e._isValid=!1);s="Z"}e._f=a+(r||"")+(s||""),pe(e)}else e._isValid=!1}function ce(e,t,n,o,a,r){var s=[function(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}(e),Vt.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(a,10)];return r&&s.push(parseInt(r,10)),s}function fe(e){var t=dn.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(t){var n=ce(t[4],t[3],t[2],t[5],t[6],t[7]);if(!function(e,t,n){return!e||Kt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(l(n).weekdayMismatch=!0,n._isValid=!1,!1)}(t[1],n,e))return;e._a=n,e._tzm=function(e,t,n){if(e)return _n[e];if(t)return 0;var o=parseInt(n,10),a=o%100;return(o-a)/100*60+a}(t[8],t[9],t[10]),e._d=q.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),l(e).rfc2822=!0}else e._isValid=!1}function pe(e){if(e._f!==t.ISO_8601)if(e._f!==t.RFC_2822){e._a=[],l(e).empty=!0;var n,o,a,r,s,i,d,_,u,m=""+e._i,y=m.length,c=0;for(a=W(e._f,e._locale).match(mt)||[],n=0;n<a.length;n++)r=a[n],(o=(m.match(F(r,e))||[])[0])&&((s=m.substr(0,m.indexOf(o))).length>0&&l(e).unusedInput.push(s),m=m.slice(m.indexOf(o)+o.length),c+=o.length),ct[r]?(o?l(e).empty=!1:l(e).unusedTokens.push(r),C(r,o,e)):e._strict&&!o&&l(e).unusedTokens.push(r);l(e).charsLeftOver=y-c,m.length>0&&l(e).unusedInput.push(m),e._a[Ft]<=12&&!0===l(e).bigHour&&e._a[Ft]>0&&(l(e).bigHour=void 0),l(e).parsedDateParts=e._a.slice(0),l(e).meridiem=e._meridiem,e._a[Ft]=(i=e._locale,d=e._a[Ft],null==(_=e._meridiem)?d:null==i.meridiemHour?null==i.isPM?d:((u=i.isPM(_))&&d<12&&(d+=12),u||12!==d||(d=0),d):i.meridiemHour(d,_)),le(e),ue(e)}else fe(e);else ye(e)}function he(e){var a=e._i,_=e._f;return e._locale=e._locale||_e(e._l),null===a||void 0===_&&""===a?c({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),h(a)?new p(ue(a)):(i(a)?e._d=a:n(_)?function(e){var t,n,o,a,r;if(0===e._f.length)return l(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)r=0,t=f({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],pe(t),y(t)&&(r+=l(t).charsLeftOver,r+=10*l(t).unusedTokens.length,l(t).score=r,(null==o||r<o)&&(o=r,n=t));u(e,n||t)}(e):_?pe(e):function(e){var a=e._i;r(a)?e._d=new Date(t.now()):i(a)?e._d=new Date(a.valueOf()):"string"==typeof a?function(e){var n=sn.exec(e._i);null===n?(ye(e),!1===e._isValid&&(delete e._isValid,fe(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))):e._d=new Date(+n[1])}(e):n(a)?(e._a=d(a.slice(0),function(e){return parseInt(e,10)}),le(e)):o(a)?function(e){if(!e._d){var t=j(e._i);e._a=d([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),le(e)}}(e):s(a)?e._d=new Date(a):t.createFromInputFallback(e)}(e),y(e)||(e._d=null),e))}function Me(e,t,a,r,s){var i,d={};return(!0===a||!1===a)&&(r=a,a=void 0),(o(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||n(e)&&0===e.length)&&(e=void 0),d._isAMomentObject=!0,d._useUTC=d._isUTC=s,d._l=a,d._i=e,d._f=t,d._strict=r,(i=new p(ue(he(d))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function Le(e,t,n,o){return Me(e,t,n,o,!1)}function Ye(e,t){var o,a;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return Le();for(o=t[0],a=1;a<t.length;++a)(!t[a].isValid()||t[a][e](o))&&(o=t[a]);return o}function be(e){var t=j(e),n=t.year||0,o=t.quarter||0,a=t.month||0,r=t.week||0,s=t.day||0,i=t.hour||0,d=t.minute||0,_=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===It.call(ln,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,o=0;o<ln.length;++o)if(e[ln[o]]){if(n)return!1;parseFloat(e[ln[o]])!==L(e[ln[o]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*_+6e4*d+1e3*i*60*60,this._days=+s+7*r,this._months=+a+3*o+12*n,this._data={},this._locale=_e(),this._bubble()}function ke(e){return e instanceof be}function De(e){return e<0?-1*et(-1*e):et(e)}function Se(e,t){P(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+x(~~(e/60),2)+t+x(~~e%60,2)})}function ve(e,t){var n=(t||"").match(e);if(null===n)return null;var o=((n[n.length-1]||[])+"").match(yn)||["-",0,0],a=60*o[1]+L(o[2]);return 0===a?0:"+"===o[0]?a:-a}function Te(e,n){var o,a;return n._isUTC?(o=n.clone(),a=(h(e)||i(e)?e.valueOf():Le(e).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+a),t.updateOffset(o,!1),o):Le(e).local()}function ge(e){return 15*-et(e._d.getTimezoneOffset()/15)}function we(){return!!this.isValid()&&this._isUTC&&0===this._offset}function je(e,t){var n,o,r,i,d,u,m=e,l=null;return ke(e)?m={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(m={},t?m[t]=e:m.milliseconds=e):(l=cn.exec(e))?(n="-"===l[1]?-1:1,m={y:0,d:L(l[Et])*n,h:L(l[Ft])*n,m:L(l[At])*n,s:L(l[zt])*n,ms:L(De(1e3*l[Jt]))*n}):(l=fn.exec(e))?(n="-"===l[1]?-1:(l[1],1),m={y:He(l[2],n),M:He(l[3],n),w:He(l[4],n),d:He(l[5],n),h:He(l[6],n),m:He(l[7],n),s:He(l[8],n)}):null==m?m={}:"object"===(void 0===m?"undefined":a(m))&&("from"in m||"to"in m)&&(i=Le(m.from),d=Le(m.to),r=i.isValid()&&d.isValid()?(d=Te(d,i),i.isBefore(d)?u=xe(i,d):((u=xe(d,i)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(m={}).ms=r.milliseconds,m.M=r.months),o=new be(m),ke(e)&&_(e,"_locale")&&(o._locale=e._locale),o}function He(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function xe(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 Pe(e,t){return function(n,o){var a;return null===o||isNaN(+o)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=o,o=a),Oe(this,je(n="string"==typeof n?+n:n,o),e),this}}function Oe(e,n,o,a){var r=n._milliseconds,s=De(n._days),i=De(n._months);e.isValid()&&(a=null==a||a,i&&$(e,U(e,"Month")+i*o),s&&G(e,"Date",U(e,"Date")+s*o),r&&e._d.setTime(e._d.valueOf()+r*o),a&&t.updateOffset(e,s||i))}function We(e,t){var n,o=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(o,"months");return t-a<0?n=(t-a)/(a-e.clone().add(o-1,"months")):n=(t-a)/(e.clone().add(o+1,"months")-a),-(o+n)||0}function Ee(e){var t;return void 0===e?this._locale._abbr:(null!=(t=_e(e))&&(this._locale=t),this)}function Fe(){return this._locale}function Ae(e,t){P(0,[e,e.length],0,t)}function ze(e,t,n,o,a){var r;return null==e?X(this,o,a).year:(t>(r=ee(e,o,a))&&(t=r),function(e,t,n,o,a){var r=Q(e,t,n,o,a),s=q(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,e,t,n,o,a))}function Je(e,t){t[Jt]=L(1e3*("0."+e))}function Ce(e){return e}function Ne(e,t,n,o){var a=_e(),r=m().set(o,t);return a[n](r,e)}function Ie(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Ne(e,t,n,"month");var o,a=[];for(o=0;o<12;o++)a[o]=Ne(e,o,n,"month");return a}function Re(e,t,n,o){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var a=_e(),r=e?a._week.dow:0;if(null!=n)return Ne(t,(n+r)%7,o,"day");var i,d=[];for(i=0;i<7;i++)d[i]=Ne(t,(i+r)%7,o,"day");return d}function Ue(e,t,n,o){var a=je(t,n);return e._milliseconds+=o*a._milliseconds,e._days+=o*a._days,e._months+=o*a._months,e._bubble()}function Ge(e){return e<0?ot(e):at(e)}function Ve(e){return 4800*e/146097}function $e(e){return 146097*e/4800}function Ke(e){return function(){return this.as(e)}}function Ze(e){return function(){return this.isValid()?this._data[e]:NaN}}function qe(e){return(e>0)-(e<0)||+e}function Be(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Un(this._milliseconds)/1e3,o=Un(this._days),a=Un(this._months);t=M((e=M(n/60))/60),n%=60,e%=60;var r=M(a/12),s=a%=12,i=o,d=t,_=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",m=this.asSeconds();if(!m)return"P0D";var l=m<0?"-":"",y=qe(this._months)===qe(m)?"":"-",c=qe(this._days)===qe(m)?"":"-",f=qe(this._milliseconds)===qe(m)?"":"-";return l+"P"+(r?y+r+"Y":"")+(s?y+s+"M":"")+(i?c+i+"D":"")+(d||_||u?"T":"")+(d?f+d+"H":"")+(_?f+_+"M":"")+(u?f+u+"S":"")}var Qe,Xe,et=Math.round,tt=Math.abs,nt=Math.min,ot=Math.floor,at=Math.ceil;Xe=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var rt=t.momentProperties=[],st=!1,it={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var dt=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)_(e,t)&&n.push(t);return n},_t={},ut={},mt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,lt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,yt={},ct={},ft=/\d/,pt=/\d\d/,ht=/\d{3}/,Mt=/\d{4}/,Lt=/[+-]?\d{6}/,Yt=/\d\d?/,bt=/\d\d\d\d?/,kt=/\d\d\d\d\d\d?/,Dt=/\d{1,3}/,St=/\d{1,4}/,vt=/[+-]?\d{1,6}/,Tt=/\d+/,gt=/[+-]?\d+/,wt=/Z|[+-]\d\d:?\d\d/gi,jt=/Z|[+-]\d\d(?::?\d\d)?/gi,Ht=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,xt={},Pt={},Ot=0,Wt=1,Et=2,Ft=3,At=4,zt=5,Jt=6,Ct=7,Nt=8;P("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),P(0,["YY",2],0,function(){return this.year()%100}),P(0,["YYYY",4],0,"year"),P(0,["YYYYY",5],0,"year"),P(0,["YYYYYY",6,!0],0,"year"),g("year","y"),H("year",1),E("Y",gt),E("YY",Yt,pt),E("YYYY",St,Mt),E("YYYYY",vt,Lt),E("YYYYYY",vt,Lt),z(["YYYYY","YYYYYY"],Ot),z("YYYY",function(e,n){n[Ot]=2===e.length?t.parseTwoDigitYear(e):L(e)}),z("YY",function(e,n){n[Ot]=t.parseTwoDigitYear(e)}),z("Y",function(e,t){t[Ot]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return L(e)+(L(e)>68?1900:2e3)};var It,Rt=R("FullYear",!0);It=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},P("M",["MM",2],"Mo",function(){return this.month()+1}),P("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),P("MMMM",0,0,function(e){return this.localeData().months(this,e)}),g("month","M"),H("month",8),E("M",Yt),E("MM",Yt,pt),E("MMM",function(e,t){return t.monthsShortRegex(e)}),E("MMMM",function(e,t){return t.monthsRegex(e)}),z(["M","MM"],function(e,t){t[Wt]=L(e)-1}),z(["MMM","MMMM"],function(e,t,n,o){var a=n._locale.monthsParse(e,o,n._strict);null==a?l(n).invalidMonth=e:t[Wt]=a});var Ut=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Gt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Vt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),g("week","w"),g("isoWeek","W"),H("week",5),H("isoWeek",5),E("w",Yt),E("ww",Yt,pt),E("W",Yt),E("WW",Yt,pt),J(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=L(e)}),P("d",0,"do","day"),P("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),P("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),P("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),g("day","d"),g("weekday","e"),g("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),E("d",Yt),E("e",Yt),E("E",Yt),E("dd",function(e,t){return t.weekdaysMinRegex(e)}),E("ddd",function(e,t){return t.weekdaysShortRegex(e)}),E("dddd",function(e,t){return t.weekdaysRegex(e)}),J(["dd","ddd","dddd"],function(e,t,n,o){var a=n._locale.weekdaysParse(e,o,n._strict);null==a?l(n).invalidWeekday=e:t.d=a}),J(["d","e","E"],function(e,t,n,o){t[o]=L(e)});var $t="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Kt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");P("H",["HH",2],0,"hour"),P("h",["hh",2],0,ne),P("k",["kk",2],0,function(){return this.hours()||24}),P("hmm",0,0,function(){return""+ne.apply(this)+x(this.minutes(),2)}),P("hmmss",0,0,function(){return""+ne.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)}),P("Hmm",0,0,function(){return""+this.hours()+x(this.minutes(),2)}),P("Hmmss",0,0,function(){return""+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)}),oe("a",!0),oe("A",!1),g("hour","h"),H("hour",13),E("a",ae),E("A",ae),E("H",Yt),E("h",Yt),E("k",Yt),E("HH",Yt,pt),E("hh",Yt,pt),E("kk",Yt,pt),E("hmm",bt),E("hmmss",kt),E("Hmm",bt),E("Hmmss",kt),z(["H","HH"],Ft),z(["k","kk"],function(e,t){var n=L(e);t[Ft]=24===n?0:n}),z(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),z(["h","hh"],function(e,t,n){t[Ft]=L(e),l(n).bigHour=!0}),z("hmm",function(e,t,n){var o=e.length-2;t[Ft]=L(e.substr(0,o)),t[At]=L(e.substr(o)),l(n).bigHour=!0}),z("hmmss",function(e,t,n){var o=e.length-4,a=e.length-2;t[Ft]=L(e.substr(0,o)),t[At]=L(e.substr(o,2)),t[zt]=L(e.substr(a)),l(n).bigHour=!0}),z("Hmm",function(e,t){var n=e.length-2;t[Ft]=L(e.substr(0,n)),t[At]=L(e.substr(n))}),z("Hmmss",function(e,t){var n=e.length-4,o=e.length-2;t[Ft]=L(e.substr(0,n)),t[At]=L(e.substr(n,2)),t[zt]=L(e.substr(o))});var qt,Bt=R("Hours",!0),Qt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Gt,monthsShort:Vt,week:{dow:0,doy:6},weekdays:$t,weekdaysMin:Zt,weekdaysShort:Kt,meridiemParse:/[ap]\.?m?\.?/i},Xt={},en={},tn=/^\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)?)?$/,nn=/^\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)?)?$/,on=/Z|[+-]\d\d(?::?\d\d)?/,an=[["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}/]],rn=[["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/]],sn=/^\/?Date\((\-?\d+)/i,dn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_n={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var un=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Le.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:c()}),mn=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Le.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:c()}),ln=["year","quarter","month","week","day","hour","minute","second","millisecond"];Se("Z",":"),Se("ZZ",""),E("Z",jt),E("ZZ",jt),z(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=ve(jt,e)});var yn=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var cn=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,fn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;je.fn=be.prototype,je.invalid=function(){return je(NaN)};var pn=Pe(1,"add"),hn=Pe(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Mn=k("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)});P(0,["gg",2],0,function(){return this.weekYear()%100}),P(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ae("gggg","weekYear"),Ae("ggggg","weekYear"),Ae("GGGG","isoWeekYear"),Ae("GGGGG","isoWeekYear"),g("weekYear","gg"),g("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),E("G",gt),E("g",gt),E("GG",Yt,pt),E("gg",Yt,pt),E("GGGG",St,Mt),E("gggg",St,Mt),E("GGGGG",vt,Lt),E("ggggg",vt,Lt),J(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=L(e)}),J(["gg","GG"],function(e,n,o,a){n[a]=t.parseTwoDigitYear(e)}),P("Q",0,"Qo","quarter"),g("quarter","Q"),H("quarter",7),E("Q",ft),z("Q",function(e,t){t[Wt]=3*(L(e)-1)}),P("D",["DD",2],"Do","date"),g("date","D"),H("date",9),E("D",Yt),E("DD",Yt,pt),E("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),z(["D","DD"],Et),z("Do",function(e,t){t[Et]=L(e.match(Yt)[0])});var Ln=R("Date",!0);P("DDD",["DDDD",3],"DDDo","dayOfYear"),g("dayOfYear","DDD"),H("dayOfYear",4),E("DDD",Dt),E("DDDD",ht),z(["DDD","DDDD"],function(e,t,n){n._dayOfYear=L(e)}),P("m",["mm",2],0,"minute"),g("minute","m"),H("minute",14),E("m",Yt),E("mm",Yt,pt),z(["m","mm"],At);var Yn=R("Minutes",!1);P("s",["ss",2],0,"second"),g("second","s"),H("second",15),E("s",Yt),E("ss",Yt,pt),z(["s","ss"],zt);var bn,kn=R("Seconds",!1);for(P("S",0,0,function(){return~~(this.millisecond()/100)}),P(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),P(0,["SSS",3],0,"millisecond"),P(0,["SSSS",4],0,function(){return 10*this.millisecond()}),P(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),P(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),P(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),P(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),P(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),g("millisecond","ms"),H("millisecond",16),E("S",Dt,ft),E("SS",Dt,pt),E("SSS",Dt,ht),bn="SSSS";bn.length<=9;bn+="S")E(bn,Tt);for(bn="S";bn.length<=9;bn+="S")z(bn,Je);var Dn=R("Milliseconds",!1);P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var Sn=p.prototype;Sn.add=pn,Sn.calendar=function(e,n){var o=e||Le(),a=Te(o,this).startOf("day"),r=t.calendarFormat(this,a)||"sameElse",s=n&&(S(n[r])?n[r].call(this,o):n[r]);return this.format(s||this.localeData().calendar(r,this,Le(o)))},Sn.clone=function(){return new p(this)},Sn.diff=function(e,t,n){var o,a,r;return this.isValid()?(o=Te(e,this)).isValid()?(a=6e4*(o.utcOffset()-this.utcOffset()),r="year"===(t=w(t))?We(this,o)/12:"month"===t?We(this,o):"quarter"===t?We(this,o)/3:"second"===t?(this-o)/1e3:"minute"===t?(this-o)/6e4:"hour"===t?(this-o)/36e5:"day"===t?(this-o-a)/864e5:"week"===t?(this-o-a)/6048e5:this-o,n?r:M(r)):NaN:NaN},Sn.endOf=function(e){return void 0===(e=w(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},Sn.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=O(this,e);return this.localeData().postformat(n)},Sn.from=function(e,t){return this.isValid()&&(h(e)&&e.isValid()||Le(e).isValid())?je({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Sn.fromNow=function(e){return this.from(Le(),e)},Sn.to=function(e,t){return this.isValid()&&(h(e)&&e.isValid()||Le(e).isValid())?je({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Sn.toNow=function(e){return this.to(Le(),e)},Sn.get=function(e){return S(this[e=w(e)])?this[e]():this},Sn.invalidAt=function(){return l(this).overflow},Sn.isAfter=function(e,t){var n=h(e)?e:Le(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=w(r(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},Sn.isBefore=function(e,t){var n=h(e)?e:Le(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=w(r(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},Sn.isBetween=function(e,t,n,o){return("("===(o=o||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))},Sn.isSame=function(e,t){var n,o=h(e)?e:Le(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(t=w(t||"millisecond"))?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},Sn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Sn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Sn.isValid=function(){return y(this)},Sn.lang=Mn,Sn.locale=Ee,Sn.localeData=Fe,Sn.max=mn,Sn.min=un,Sn.parsingFlags=function(){return u({},l(this))},Sn.set=function(e,t){if("object"===(void 0===e?"undefined":a(e)))for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:ut[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=j(e)),o=0;o<n.length;o++)this[n[o].unit](e[n[o].unit]);else if(S(this[e=w(e)]))return this[e](t);return this},Sn.startOf=function(e){switch(e=w(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*ot(this.month()/3)),this},Sn.subtract=hn,Sn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Sn.toObject=function(){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()}},Sn.toDate=function(){return new Date(this.valueOf())},Sn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?O(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",O(n,"Z")):O(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Sn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=t+'[")]';return this.format(n+o+"-MM-DD[T]HH:mm:ss.SSS"+a)},Sn.toJSON=function(){return this.isValid()?this.toISOString():null},Sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Sn.unix=function(){return ot(this.valueOf()/1e3)},Sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Sn.year=Rt,Sn.isLeapYear=function(){return I(this.year())},Sn.weekYear=function(e){return ze.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Sn.isoWeekYear=function(e){return ze.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Sn.quarter=Sn.quarters=function(e){return null==e?at((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Sn.month=K,Sn.daysInMonth=function(){return V(this.year(),this.month())},Sn.week=Sn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Sn.isoWeek=Sn.isoWeeks=function(e){var t=X(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Sn.weeksInYear=function(){var e=this.localeData()._week;return ee(this.year(),e.dow,e.doy)},Sn.isoWeeksInYear=function(){return ee(this.year(),1,4)},Sn.date=Ln,Sn.day=Sn.days=function(e){if(!this.isValid())return null==e?NaN:this;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null==e?t:(e=function(e,t){return"string"==typeof e?isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10):e}(e,this.localeData()),this.add(e-t,"d"))},Sn.weekday=function(e){if(!this.isValid())return null==e?NaN:this;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Sn.isoWeekday=function(e){if(!this.isValid())return null==e?NaN:this;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Sn.dayOfYear=function(e){var t=et((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Sn.hour=Sn.hours=Bt,Sn.minute=Sn.minutes=Yn,Sn.second=Sn.seconds=kn,Sn.millisecond=Sn.milliseconds=Dn,Sn.utcOffset=function(e,n,o){var a,r=this._offset||0;if(!this.isValid())return null==e?NaN:this;if(null!=e){if("string"!=typeof e)tt(e)<16&&!o&&(e*=60);else if(null===(e=ve(jt,e)))return this;return!this._isUTC&&n&&(a=ge(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),r!==e&&(!n||this._changeInProgress?Oe(this,je(e-r,"m"),1,!1):!this._changeInProgress&&(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:ge(this)},Sn.utc=function(e){return this.utcOffset(0,e)},Sn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ge(this),"m")),this},Sn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=ve(wt,this._i);null==e?this.utcOffset(0,!0):this.utcOffset(e)}return this},Sn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Le(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Sn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Sn.isUtc=we,Sn.isUTC=we,Sn.zoneAbbr=function(){return this._isUTC?"UTC":""},Sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Sn.dates=k("dates accessor is deprecated. Use date instead.",Ln),Sn.months=k("months accessor is deprecated. Use month instead",K),Sn.years=k("years accessor is deprecated. Use year instead",Rt),Sn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null==e?-this.utcOffset():("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this)}),Sn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e={};if(f(e,this),(e=he(e))._a){var t=e._isUTC?m(e._a):Le(e._a);this._isDSTShifted=this.isValid()&&Y(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var vn=T.prototype;vn.calendar=function(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return S(o)?o.call(t,n):o},vn.longDateFormat=function(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])},vn.invalidDate=function(){return this._invalidDate},vn.ordinal=function(e){return this._ordinal.replace("%d",e)},vn.preparse=Ce,vn.postformat=Ce,vn.relativeTime=function(e,t,n,o){var a=this._relativeTime[n];return S(a)?a(e,t,n,o):a.replace(/%d/i,e)},vn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)},vn.set=function(e){var t,n;for(n in e)S(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},vn.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ut).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},vn.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ut.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},vn.monthsParse=function(e,t,n){var o,a,r;if(this._monthsParseExact)return function(e,t,n){var o,a,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)r=m([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1===(a=It.call(this._shortMonthsParse,s))?null:a:-1===(a=It.call(this._longMonthsParse,s))?null:a:"MMM"===t?-1!==(a=It.call(this._shortMonthsParse,s))?a:-1===(a=It.call(this._longMonthsParse,s))?null:a:-1!==(a=It.call(this._longMonthsParse,s))?a:-1===(a=It.call(this._shortMonthsParse,s))?null:a}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(a=m([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[o]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},vn.monthsRegex=function(e){return this._monthsParseExact?(_(this,"_monthsRegex")||Z.call(this),e?this._monthsStrictRegex:this._monthsRegex):(_(this,"_monthsRegex")||(this._monthsRegex=Ht),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},vn.monthsShortRegex=function(e){return this._monthsParseExact?(_(this,"_monthsRegex")||Z.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(_(this,"_monthsShortRegex")||(this._monthsShortRegex=Ht),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},vn.week=function(e){return X(e,this._week.dow,this._week.doy).week},vn.firstDayOfYear=function(){return this._week.doy},vn.firstDayOfWeek=function(){return this._week.dow},vn.weekdays=function(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone},vn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},vn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},vn.weekdaysParse=function(e,t,n){var o,a,r;if(this._weekdaysParseExact)return function(e,t,n){var o,a,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)r=m([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1===(a=It.call(this._weekdaysParse,s))?null:a:"ddd"===t?-1===(a=It.call(this._shortWeekdaysParse,s))?null:a:-1===(a=It.call(this._minWeekdaysParse,s))?null:a:"dddd"===t?-1!==(a=It.call(this._weekdaysParse,s))?a:-1!==(a=It.call(this._shortWeekdaysParse,s))?a:-1===(a=It.call(this._minWeekdaysParse,s))?null:a:"ddd"===t?-1!==(a=It.call(this._shortWeekdaysParse,s))?a:-1!==(a=It.call(this._weekdaysParse,s))?a:-1===(a=It.call(this._minWeekdaysParse,s))?null:a:-1!==(a=It.call(this._minWeekdaysParse,s))?a:-1!==(a=It.call(this._weekdaysParse,s))?a:-1===(a=It.call(this._shortWeekdaysParse,s))?null:a}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(a=m([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[o]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},vn.weekdaysRegex=function(e){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||te.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(_(this,"_weekdaysRegex")||(this._weekdaysRegex=Ht),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},vn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||te.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(_(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ht),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},vn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||te.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(_(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ht),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},vn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},vn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ie("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===L(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),t.lang=k("moment.lang is deprecated. Use moment.locale instead.",ie),t.langData=k("moment.langData is deprecated. Use moment.localeData instead.",_e);var Tn=tt,gn=Ke("ms"),wn=Ke("s"),jn=Ke("m"),Hn=Ke("h"),xn=Ke("d"),Pn=Ke("w"),On=Ke("M"),Wn=Ke("y"),En=Ze("milliseconds"),Fn=Ze("seconds"),An=Ze("minutes"),zn=Ze("hours"),Jn=Ze("days"),Cn=Ze("months"),Nn=Ze("years"),In=et,Rn={ss:44,s:45,m:45,h:22,d:26,M:11},Un=tt,Gn=be.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),e.milliseconds=Tn(e.milliseconds),e.seconds=Tn(e.seconds),e.minutes=Tn(e.minutes),e.hours=Tn(e.hours),e.months=Tn(e.months),e.years=Tn(e.years),this},Gn.add=function(e,t){return Ue(this,e,t,1)},Gn.subtract=function(e,t){return Ue(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=w(e))||"year"===e)return t=this._days+o/864e5,n=this._months+Ve(t),"month"===e?n:n/12;switch(t=this._days+et($e(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return ot(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=gn,Gn.asSeconds=wn,Gn.asMinutes=jn,Gn.asHours=Hn,Gn.asDays=xn,Gn.asWeeks=Pn,Gn.asMonths=On,Gn.asYears=Wn,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*L(this._months/12):NaN},Gn._bubble=function(){var e,t,n,o,a,r=this._milliseconds,s=this._days,i=this._months,d=this._data;return r>=0&&s>=0&&i>=0||r<=0&&s<=0&&i<=0||(r+=864e5*Ge($e(i)+s),s=0,i=0),d.milliseconds=r%1e3,e=M(r/1e3),d.seconds=e%60,t=M(e/60),d.minutes=t%60,n=M(t/60),d.hours=n%24,i+=a=M(Ve(s+=M(n/24))),s-=Ge($e(a)),o=M(i/12),i%=12,d.days=s,d.months=i,d.years=o,this},Gn.clone=function(){return je(this)},Gn.get=function(e){return e=w(e),this.isValid()?this[e+"s"]():NaN},Gn.milliseconds=En,Gn.seconds=Fn,Gn.minutes=An,Gn.hours=zn,Gn.days=Jn,Gn.weeks=function(){return M(this.days()/7)},Gn.months=Cn,Gn.years=Nn,Gn.humanize=function(e){if(!this.isValid())return thi