vis-network
Version:
A dynamic, browser-based visualization library.
25 lines • 560 kB
JavaScript
/**
* vis-network - network
* http://visjs.org/
*
* A dynamic, browser-based visualization library.
*
* @version 5.2.1
* @date 2019-08-09T11:28:19Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2018-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*/function _defineProperty(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var defineProperty=_defineProperty;function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}}var arrayWithoutHoles=_arrayWithoutHoles;function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}var iterableToArray=_iterableToArray;function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var nonIterableSpread=_nonIterableSpread;function _toConsumableArray(e){return arrayWithoutHoles(e)||iterableToArray(e)||nonIterableSpread()}var toConsumableArray=_toConsumableArray,commonjsGlobal="undefined"==typeof globalThis?"undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?{}:self:global:window:globalThis;function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}for(var _typeof_1=createCommonjsModule(function(e){function t(e){return t="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},t(e)}function o(n){return e.exports="function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?o=function(e){return t(e)}:o=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)},o(n)}e.exports=o}),moment=createCommonjsModule(function(e){var t=Math.round,o=Math.pow,n=Math.max,a=Math.abs,d=Math.min,s=Math.floor,r=Math.ceil;(function(t,o){e.exports=o()})(commonjsGlobal,function(){function l(){return Zt.apply(null,arguments)}function u(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function p(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function h(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function m(e){return void 0===e}function g(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function y(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var o=[],n;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 v(e,t){for(var o in t)_(t,o)&&(e[o]=t[o]);return _(t,"toString")&&(e.toString=t.toString),_(t,"valueOf")&&(e.valueOf=t.valueOf),e}function k(e,t,o,n){return it(e,t,o,n,!0).utc()}function w(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function x(e){return null==e._pf&&(e._pf=w()),e._pf}function S(e){if(null==e._isValid){var t=x(e),o=Xt.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&0>t.overflow&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&o);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null==Object.isFrozen||!Object.isFrozen(e))e._isValid=n;else return n}return e._isValid}function O(e){var t=k(NaN);return null==e?x(t).userInvalidated=!0:v(x(t),e),t}function D(e,t){var o,n,a;if(m(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),m(t._i)||(e._i=t._i),m(t._f)||(e._f=t._f),m(t._l)||(e._l=t._l),m(t._strict)||(e._strict=t._strict),m(t._tzm)||(e._tzm=t._tzm),m(t._isUTC)||(e._isUTC=t._isUTC),m(t._offset)||(e._offset=t._offset),m(t._pf)||(e._pf=x(t)),m(t._locale)||(e._locale=t._locale),0<Kt.length)for(o=0;o<Kt.length;o++)n=Kt[o],a=t[n],m(a)||(e[n]=a);return e}function T(e){D(this,e),this._d=new Date(null==e._d?NaN:e._d.getTime()),this.isValid()||(this._d=new Date(NaN)),!1===Qt&&(Qt=!0,l.updateOffset(this),Qt=!1)}function C(e){return e instanceof T||null!=e&&null!=e._isAMomentObject}function E(e){return 0>e?r(e)||0:s(e)}function M(e){var t=+e,o=0;return 0!=t&&isFinite(t)&&(o=E(t)),o}function I(e,t,o){var n=d(e.length,t.length),s=a(e.length-t.length),r=0,l;for(l=0;l<n;l++)(o&&e[l]!==t[l]||!o&&M(e[l])!==M(t[l]))&&r++;return r+s}function P(e){!1===l.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function F(e,t){var o=!0;return v(function(){if(null!=l.deprecationHandler&&l.deprecationHandler(null,e),o){for(var n=[],a=0,d;a<arguments.length;a++){if(d="","object"==typeof arguments[a]){for(var s in d+="\n["+a+"] ",arguments[0])d+=s+": "+arguments[0][s]+", ";d=d.slice(0,-2)}else d=arguments[a];n.push(d)}P(e+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+new Error().stack),o=!1}return t.apply(this,arguments)},t)}function Y(e,t){null!=l.deprecationHandler&&l.deprecationHandler(e,t),$t[e]||(P(t),$t[e]=!0)}function z(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function N(e){var t,o;for(o in e)t=e[o],z(t)?this[o]=t:this["_"+o]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function R(e,t){var o=v({},e),n;for(n in t)_(t,n)&&(p(e[n])&&p(t[n])?(o[n]={},v(o[n],e[n]),v(o[n],t[n])):null==t[n]?delete o[n]:o[n]=t[n]);for(n in e)_(e,n)&&!_(t,n)&&p(e[n])&&(o[n]=v({},o[n]));return o}function B(e){null!=e&&this.set(e)}function H(e,t){var o=e.toLowerCase();to[o]=to[o+"s"]=to[t]=e}function L(e){return"string"==typeof e?to[e]||to[e.toLowerCase()]:void 0}function A(e){var t={},o,n;for(n in e)_(e,n)&&(o=L(n),o&&(t[o]=e[n]));return t}function W(e,t){oo[e]=t}function j(e){var t=[];for(var o in e)t.push({unit:o,priority:oo[o]});return t.sort(function(e,t){return e.priority-t.priority}),t}function U(e,t,i){var d=""+a(e),s=t-d.length;return(0<=e?i?"+":"":"-")+o(10,n(0,s)).toString().substr(1)+d}function V(e,t,o,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),e&&(so[e]=i),t&&(so[t[0]]=function(){return U(i.apply(this,arguments),t[1],t[2])}),o&&(so[o]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function q(e){var t=e.match(no),o,n;for(o=0,n=t.length;o<n;o++)t[o]=so[t[o]]?so[t[o]]:G(t[o]);return function(o){var a="",d;for(d=0;d<n;d++)a+=z(t[d])?t[d].call(o,e):t[d];return a}}function Z(e,t){return e.isValid()?(t=X(t,e.localeData()),ao[t]=ao[t]||q(t),ao[t](e)):e.localeData().invalidDate()}function X(e,t){function o(e){return t.longDateFormat(e)||e}var n=5;for(io.lastIndex=0;0<=n&&io.test(e);)e=e.replace(io,o),io.lastIndex=0,n-=1;return e}function K(e,t,o){Oo[e]=z(t)?t:function(e){return e&&o?o:t}}function Q(e,t){return _(Oo,e)?Oo[e](t._strict,t._locale):new RegExp($(e))}function $(e){return J(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,o,n,i){return t||o||n||i}))}function J(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(e,t){var o=t,n;for("string"==typeof e&&(e=[e]),g(t)&&(o=function(e,o){o[t]=M(e)}),n=0;n<e.length;n++)Do[e[n]]=o}function te(e,t){ee(e,function(e,o,n,i){n._w=n._w||{},t(e,n._w,n,i)})}function oe(e,t,o){null!=t&&_(Do,e)&&Do[e](t,o._a,o,e)}function ne(e){return ie(e)?366:365}function ie(e){return 0==e%4&&0!=e%100||0==e%400}function ae(e,t){return function(o){return null==o?de(this,e):(se(this,e,o),l.updateOffset(this,t),this)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function se(e,t,o){e.isValid()&&!isNaN(o)&&("FullYear"===t&&ie(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](o,e.month(),ce(o,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](o))}function re(e,t){if("object"==typeof e){e=A(e);for(var o=j(e),n=0;n<o.length;n++)this[o[n].unit](e[o[n].unit])}else if(e=L(e),z(this[e]))return this[e](t);return this}function le(e,t){return(e%t+t)%t}function ce(e,t){if(isNaN(e)||isNaN(t))return NaN;var o=le(t,12);return e+=(t-o)/12,1===o?ie(e)?29:28:31-o%7%2}function ue(e,t,o){var n=e.toLocaleLowerCase(),a,d,s;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;12>a;++a)s=k([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(s,"").toLocaleLowerCase();return o?"MMM"===t?(d=Yo.call(this._shortMonthsParse,n),-1===d?null:d):(d=Yo.call(this._longMonthsParse,n),-1===d?null:d):"MMM"===t?(d=Yo.call(this._shortMonthsParse,n),-1!==d)?d:(d=Yo.call(this._longMonthsParse,n),-1===d?null:d):(d=Yo.call(this._longMonthsParse,n),-1!==d)?d:(d=Yo.call(this._shortMonthsParse,n),-1===d?null:d)}function pe(e,t,o){var n,a,d;if(this._monthsParseExact)return ue.call(this,e,t,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;12>n;n++){if(a=k([2e3,n]),o&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),o||this._monthsParse[n]||(d="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(d.replace(".",""),"i")),o&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(o&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!o&&this._monthsParse[n].test(e))return n}}function he(e,t){var o;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=M(t);else if(t=e.localeData().monthsParse(t),!g(t))return e;return o=d(e.date(),ce(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,o),e}function me(e){return null==e?de(this,"Month"):(he(this,e),l.updateOffset(this,!0),this)}function ge(){function e(e,t){return t.length-e.length}var t=[],o=[],n=[],a,d;for(a=0;12>a;a++)d=k([2e3,a]),t.push(this.monthsShort(d,"")),o.push(this.months(d,"")),n.push(this.months(d,"")),n.push(this.monthsShort(d,""));for(t.sort(e),o.sort(e),n.sort(e),a=0;12>a;a++)t[a]=J(t[a]),o[a]=J(o[a]);for(a=0;24>a;a++)n[a]=J(n[a]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ye(e,t,o,n,i,a,d){var s;return 100>e&&0<=e?(s=new Date(e+400,t,o,n,i,a,d),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,o,n,i,a,d),s}function fe(e){var t;if(100>e&&0<=e){var o=Array.prototype.slice.call(arguments);o[0]=e+400,t=new Date(Date.UTC.apply(null,o)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function be(e,t,o){var n=7+t-o,i=(7+fe(e,0,n).getUTCDay()-t)%7;return-i+n-1}function _e(e,t,o,n,i){var a=be(e,n,i),d=1+7*(t-1)+(7+o-n)%7+a,s,r;return 0>=d?(s=e-1,r=ne(s)+d):d>ne(e)?(s=e+1,r=d-ne(e)):(s=e,r=d),{year:s,dayOfYear:r}}function ve(e,t,o){var n=be(e.year(),t,o),i=s((e.dayOfYear()-n-1)/7)+1,a,d;return 1>i?(d=e.year()-1,a=i+ke(d,t,o)):i>ke(e.year(),t,o)?(a=i-ke(e.year(),t,o),d=e.year()+1):(d=e.year(),a=i),{week:a,year:d}}function ke(e,t,o){var n=be(e,t,o),i=be(e+1,t,o);return(ne(e)-n+i)/7}function we(e,t){return"string"==typeof e?isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10):e}function xe(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Se(e,t){return e.slice(t,7).concat(e.slice(0,t))}function Oe(e,t,o){var n=e.toLocaleLowerCase(),a,d,s;if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;7>a;++a)s=k([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(s,"").toLocaleLowerCase();return o?"dddd"===t?(d=Yo.call(this._weekdaysParse,n),-1===d?null:d):"ddd"===t?(d=Yo.call(this._shortWeekdaysParse,n),-1===d?null:d):(d=Yo.call(this._minWeekdaysParse,n),-1===d?null:d):"dddd"===t?(d=Yo.call(this._weekdaysParse,n),-1!==d)?d:(d=Yo.call(this._shortWeekdaysParse,n),-1!==d)?d:(d=Yo.call(this._minWeekdaysParse,n),-1===d?null:d):"ddd"===t?(d=Yo.call(this._shortWeekdaysParse,n),-1!==d)?d:(d=Yo.call(this._weekdaysParse,n),-1!==d)?d:(d=Yo.call(this._minWeekdaysParse,n),-1===d?null:d):(d=Yo.call(this._minWeekdaysParse,n),-1!==d)?d:(d=Yo.call(this._weekdaysParse,n),-1!==d)?d:(d=Yo.call(this._shortWeekdaysParse,n),-1===d?null:d)}function De(e,t,o){var n,a,d;if(this._weekdaysParseExact)return Oe.call(this,e,t,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;7>n;n++){if(a=k([2e3,1]).day(n),o&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(d="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(d.replace(".",""),"i")),o&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(o&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(o&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!o&&this._weekdaysParse[n].test(e))return n}}function Te(){function e(e,t){return t.length-e.length}var t=[],o=[],n=[],a=[],d,s,r,l,c;for(d=0;7>d;d++)s=k([2e3,1]).day(d),r=this.weekdaysMin(s,""),l=this.weekdaysShort(s,""),c=this.weekdays(s,""),t.push(r),o.push(l),n.push(c),a.push(r),a.push(l),a.push(c);for(t.sort(e),o.sort(e),n.sort(e),a.sort(e),d=0;7>d;d++)o[d]=J(o[d]),n[d]=J(n[d]),a[d]=J(a[d]);this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ce(){return this.hours()%12||12}function Ee(e,t){V(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Me(e,t){return t._meridiemParse}function Ie(e){return e?e.toLowerCase().replace("_","-"):e}function Pe(e){for(var t=0,o,n,a,d;t<e.length;){for(d=Ie(e[t]).split("-"),o=d.length,n=Ie(e[t+1]),n=n?n.split("-"):null;0<o;){if(a=Fe(d.slice(0,o).join("-")),a)return a;if(n&&n.length>=o&&I(d,n,!0)>=o-1)break;o--}t++}return Qo}function Fe(t){var o=null;if(!Ao[t]&&!0&&e&&e.exports)try{o=Qo._abbr;commonjsRequire("./locale/"+t),Ye(o)}catch(t){}return Ao[t]}function Ye(e,t){var o;return e&&(o=m(t)?Ne(e):ze(e,t),o?Qo=o:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Qo._abbr}function ze(e,t){if(null!==t){var o=Lo,n;if(t.abbr=e,null!=Ao[e])Y("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=Ao[e]._config;else if(null!=t.parentLocale)if(null!=Ao[t.parentLocale])o=Ao[t.parentLocale]._config;else if(n=Fe(t.parentLocale),null!=n)o=n._config;else return Wo[t.parentLocale]||(Wo[t.parentLocale]=[]),Wo[t.parentLocale].push({name:e,config:t}),null;return Ao[e]=new B(R(o,t)),Wo[e]&&Wo[e].forEach(function(e){ze(e.name,e.config)}),Ye(e),Ao[e]}return delete Ao[e],null}function Ne(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Qo;if(!u(e)){if(t=Fe(e),t)return t;e=[e]}return Pe(e)}function Re(){return Jt(Ao)}function Be(e){var t=e._a,o;return t&&-2===x(e).overflow&&(o=0>t[1]||11<t[1]?1:1>t[2]||t[2]>ce(t[0],t[1])?2:0>t[3]||24<t[3]||24===t[3]&&(0!==t[4]||0!==t[5]||0!==t[6])?3:0>t[4]||59<t[4]?4:0>t[5]||59<t[5]?5:0>t[6]||999<t[6]?6:-1,x(e)._overflowDayOfYear&&(0>o||2<o)&&(o=2),x(e)._overflowWeeks&&-1===o&&(o=7),x(e)._overflowWeekday&&-1===o&&(o=8),x(e).overflow=o),e}function He(e,t,o){return null==e?null==t?o:t:e}function Le(e){var t=new Date(l.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ae(e){var t=[],o,n,a,d,s;if(!e._d){for(a=Le(e),e._w&&null==e._a[2]&&null==e._a[1]&&We(e),null!=e._dayOfYear&&(s=He(e._a[0],a[0]),(e._dayOfYear>ne(s)||0===e._dayOfYear)&&(x(e)._overflowDayOfYear=!0),n=fe(s,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),o=0;3>o&&null==e._a[o];++o)e._a[o]=t[o]=a[o];for(;7>o;o++)e._a[o]=t[o]=null==e._a[o]?2===o?1:0:e._a[o];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?fe:ye).apply(null,t),d=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==d&&(x(e).weekdayMismatch=!0)}}function We(e){var t,o,n,i,a,d,s,r;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)a=1,d=4,o=He(t.GG,e._a[0],ve(at(),1,4).year),n=He(t.W,1),i=He(t.E,1),(1>i||7<i)&&(r=!0);else{a=e._locale._week.dow,d=e._locale._week.doy;var l=ve(at(),a,d);o=He(t.gg,e._a[0],l.year),n=He(t.w,l.week),null==t.d?null==t.e?i=a:(i=t.e+a,(0>t.e||6<t.e)&&(r=!0)):(i=t.d,(0>i||6<i)&&(r=!0))}1>n||n>ke(o,a,d)?x(e)._overflowWeeks=!0:null==r?(s=_e(o,n,i,a,d),e._a[0]=s.year,e._dayOfYear=s.dayOfYear):x(e)._overflowWeekday=!0}function je(e){var t=e._i,o=jo.exec(t)||Uo.exec(t),n,a,d,s,r,c;if(o){for(x(e).iso=!0,n=0,a=Go.length;n<a;n++)if(Go[n][1].exec(o[1])){s=Go[n][0],d=!1!==Go[n][2];break}if(null==s)return void(e._isValid=!1);if(o[3]){for(n=0,a=qo.length;n<a;n++)if(qo[n][1].exec(o[3])){r=(o[2]||" ")+qo[n][0];break}if(null==r)return void(e._isValid=!1)}if(!d&&null!=r)return void(e._isValid=!1);if(o[4])if(Vo.exec(o[4]))c="Z";else return void(e._isValid=!1);e._f=s+(r||"")+(c||""),Qe(e)}else e._isValid=!1}function Ue(e,t,o,n,i,a){var d=[Ve(e),No.indexOf(t),parseInt(o,10),parseInt(n,10),parseInt(i,10)];return a&&d.push(parseInt(a,10)),d}function Ve(e){var t=parseInt(e,10);return 49>=t?2e3+t:999>=t?1900+t:t}function Ge(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function qe(e,t,o){if(e){var n=Ro.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(n!==i)return x(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function Ze(e,t,o){if(e)return Ko[e];if(t)return 0;var n=parseInt(o,10),i=n%100;return 60*((n-i)/100)+i}function Xe(e){var t=Xo.exec(Ge(e._i));if(t){var o=Ue(t[4],t[3],t[2],t[5],t[6],t[7]);if(!qe(t[1],o,e))return;e._a=o,e._tzm=Ze(t[8],t[9],t[10]),e._d=fe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),x(e).rfc2822=!0}else e._isValid=!1}function Ke(e){var t=Zo.exec(e._i);if(null!==t)return void(e._d=new Date(+t[1]));if(je(e),!1===e._isValid)delete e._isValid;else return;if(Xe(e),!1===e._isValid)delete e._isValid;else return;l.createFromInputFallback(e)}function Qe(e){if(e._f===l.ISO_8601)return void je(e);if(e._f===l.RFC_2822)return void Xe(e);e._a=[],x(e).empty=!0;var t=""+e._i,o=t.length,n=0,a,d,s,r,c;for(s=X(e._f,e._locale).match(no)||[],a=0;a<s.length;a++)r=s[a],d=(t.match(Q(r,e))||[])[0],d&&(c=t.substr(0,t.indexOf(d)),0<c.length&&x(e).unusedInput.push(c),t=t.slice(t.indexOf(d)+d.length),n+=d.length),so[r]?(d?x(e).empty=!1:x(e).unusedTokens.push(r),oe(r,d,e)):e._strict&&!d&&x(e).unusedTokens.push(r);x(e).charsLeftOver=o-n,0<t.length&&x(e).unusedInput.push(t),12>=e._a[3]&&!0===x(e).bigHour&&0<e._a[3]&&(x(e).bigHour=void 0),x(e).parsedDateParts=e._a.slice(0),x(e).meridiem=e._meridiem,e._a[3]=$e(e._locale,e._a[3],e._meridiem),Ae(e),Be(e)}function $e(e,t,o){var n;return null==o?t:null==e.meridiemHour?null==e.isPM?t:(n=e.isPM(o),n&&12>t&&(t+=12),n||12!==t||(t=0),t):e.meridiemHour(t,o)}function Je(e){var t,o,n,a,d;if(0===e._f.length)return x(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)(d=0,t=D({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Qe(t),!!S(t))&&(d+=x(t).charsLeftOver,d+=10*x(t).unusedTokens.length,x(t).score=d,(null==n||d<n)&&(n=d,o=t));v(e,o||t)}function et(e){if(!e._d){var t=A(e._i);e._a=f([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Ae(e)}}function tt(e){var t=new T(Be(ot(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ot(e){var t=e._i,o=e._f;return(e._locale=e._locale||Ne(e._l),null===t||void 0===o&&""===t)?O({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),C(t))?new T(Be(t)):(y(t)?e._d=t:u(o)?Je(e):o?Qe(e):nt(e),S(e)||(e._d=null),e)}function nt(e){var t=e._i;m(t)?e._d=new Date(l.now()):y(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Ke(e):u(t)?(e._a=f(t.slice(0),function(e){return parseInt(e,10)}),Ae(e)):p(t)?et(e):g(t)?e._d=new Date(t):l.createFromInputFallback(e)}function it(e,t,o,n,i){var a={};return(!0===o||!1===o)&&(n=o,o=void 0),(p(e)&&h(e)||u(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=o,a._i=e,a._f=t,a._strict=n,tt(a)}function at(e,t,o,n){return it(e,t,o,n,!1)}function dt(e,t){var o,n;if(1===t.length&&u(t[0])&&(t=t[0]),!t.length)return at();for(o=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](o))&&(o=t[n]);return o}function st(e){for(var t in e)if(-1===Yo.call(en,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var o=!1,n=0;n<en.length;++n)if(e[en[n]]){if(o)return!1;parseFloat(e[en[n]])!==M(e[en[n]])&&(o=!0)}return!0}function rt(e){var t=A(e),o=t.year||0,n=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,d=t.day||0,s=t.hour||0,r=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=st(t),this._milliseconds=+c+1e3*l+6e4*r+60*(60*(1e3*s)),this._days=+d+7*a,this._months=+i+3*n+12*o,this._data={},this._locale=Ne(),this._bubble()}function lt(e){return e instanceof rt}function ct(e){return 0>e?-1*t(-1*e):t(e)}function ut(e,t){V(e,0,0,function(){var e=this.utcOffset(),o="+";return 0>e&&(e=-e,o="-"),o+U(~~(e/60),2)+t+U(~~e%60,2)})}function pt(e,t){var o=(t||"").match(e);if(null===o)return null;var n=o[o.length-1]||[],i=(n+"").match(tn)||["-",0,0],a=+(60*i[1])+M(i[2]);return 0===a?0:"+"===i[0]?a:-a}function ht(e,t){var o,n;return t._isUTC?(o=t.clone(),n=(C(e)||y(e)?e.valueOf():at(e).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+n),l.updateOffset(o,!1),o):at(e).local()}function mt(e){return 15*-t(e._d.getTimezoneOffset()/15)}function gt(){if(!m(this._isDSTShifted))return this._isDSTShifted;var e={};if(D(e,this),e=ot(e),e._a){var t=e._isUTC?k(e._a):at(e._a);this._isDSTShifted=this.isValid()&&0<I(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted}function yt(){return!!this.isValid()&&this._isUTC&&0===this._offset}function ft(e,t){var o=e,n=null,i,a,d;return lt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:g(e)?(o={},t?o[t]=e:o.milliseconds=e):(n=on.exec(e))?(i="-"===n[1]?-1:1,o={y:0,d:M(n[2])*i,h:M(n[3])*i,m:M(n[4])*i,s:M(n[5])*i,ms:M(ct(1e3*n[6]))*i}):(n=nn.exec(e))?(i="-"===n[1]?-1:1,o={y:bt(n[2],i),M:bt(n[3],i),w:bt(n[4],i),d:bt(n[5],i),h:bt(n[6],i),m:bt(n[7],i),s:bt(n[8],i)}):null==o?o={}:"object"==typeof o&&(("from"in o)||("to"in o))&&(d=vt(at(o.from),at(o.to)),o={},o.ms=d.milliseconds,o.M=d.months),a=new rt(o),lt(e)&&_(e,"_locale")&&(a._locale=e._locale),a}function bt(e,t){var o=e&&parseFloat(e.replace(",","."));return(isNaN(o)?0:o)*t}function _t(e,t){var o={};return o.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(o.months,"M").isAfter(t)&&--o.months,o.milliseconds=+t-+e.clone().add(o.months,"M"),o}function vt(e,t){var o;return e.isValid()&&t.isValid()?(t=ht(t,e),e.isBefore(t)?o=_t(e,t):(o=_t(t,e),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function kt(e,t){return function(o,n){var i,a;return null===n||isNaN(+n)||(Y(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=o,o=n,n=a),o="string"==typeof o?+o:o,i=ft(o,n),wt(this,i,e),this}}function wt(e,t,o,n){var i=t._milliseconds,a=ct(t._days),d=ct(t._months);e.isValid()&&(n=null==n||n,d&&he(e,de(e,"Month")+d*o),a&&se(e,"Date",de(e,"Date")+a*o),i&&e._d.setTime(e._d.valueOf()+i*o),n&&l.updateOffset(e,a||d))}function xt(e,t){var o=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(o,"months"),i,a;return 0>t-n?(i=e.clone().add(o-1,"months"),a=(t-n)/(n-i)):(i=e.clone().add(o+1,"months"),a=(t-n)/(i-n)),-(o+a)||0}function St(e){var t;return void 0===e?this._locale._abbr:(t=Ne(e),null!=t&&(this._locale=t),this)}function Ot(){return this._locale}function Dt(e,t){return(e%t+t)%t}function Tt(e,t,o){return 100>e&&0<=e?new Date(e+400,t,o)-12622780800000:new Date(e,t,o).valueOf()}function Ct(e,t,o){return 100>e&&0<=e?Date.UTC(e+400,t,o)-12622780800000:Date.UTC(e,t,o)}function Et(e,t){V(0,[e,e.length],0,t)}function Mt(e,t,o,n,i){var a;return null==e?ve(this,n,i).year:(a=ke(e,n,i),t>a&&(t=a),It.call(this,e,t,o,n,i))}function It(e,t,o,n,i){var a=_e(e,t,o,n,i),d=fe(a.year,0,a.dayOfYear);return this.year(d.getUTCFullYear()),this.month(d.getUTCMonth()),this.date(d.getUTCDate()),this}function Pt(e,t){t[6]=M(1e3*("0."+e))}function Ft(e){return e}function Yt(e,t,o,n){var i=Ne(),a=k().set(n,t);return i[o](a,e)}function zt(e,t,o){if(g(e)&&(t=e,e=void 0),e=e||"",null!=t)return Yt(e,t,o,"month");var n=[],a;for(a=0;12>a;a++)n[a]=Yt(e,a,o,"month");return n}function Nt(e,t,o,n){"boolean"==typeof e?(g(t)&&(o=t,t=void 0),t=t||""):(t=e,o=t,e=!1,g(t)&&(o=t,t=void 0),t=t||"");var a=Ne(),d=e?a._week.dow:0;if(null!=o)return Yt(t,(o+d)%7,n,"day");var s=[],r;for(r=0;7>r;r++)s[r]=Yt(t,(r+d)%7,n,"day");return s}function Rt(e,t,o,n){var i=ft(t,o);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function Bt(e){return 0>e?s(e):r(e)}function Ht(e){return 4800*e/146097}function Lt(e){return 146097*e/4800}function At(e){return function(){return this.as(e)}}function Wt(e){return function(){return this.isValid()?this._data[e]:NaN}}function jt(e,t,o,n,i){return i.relativeTime(t||1,!!o,e,n)}function Ut(e,t,o){var n=ft(e).abs(),i=Pn(n.as("s")),d=Pn(n.as("m")),s=Pn(n.as("h")),r=Pn(n.as("d")),l=Pn(n.as("M")),c=Pn(n.as("y")),u=i<=Fn.ss&&["s",i]||i<Fn.s&&["ss",i]||1>=d&&["m"]||d<Fn.m&&["mm",d]||1>=s&&["h"]||s<Fn.h&&["hh",s]||1>=r&&["d"]||r<Fn.d&&["dd",r]||1>=l&&["M"]||l<Fn.M&&["MM",l]||1>=c&&["y"]||["yy",c];return u[2]=t,u[3]=0<+e,u[4]=o,jt.apply(null,u)}function Vt(e){return void 0===e?Pn:"function"==typeof e&&(Pn=e,!0)}function Gt(e){return(0<e)-(0>e)||+e}function qt(){if(!this.isValid())return this.localeData().invalidDate();var e=Yn(this._milliseconds)/1e3,t=Yn(this._days),o=Yn(this._months),n,i,a;n=E(e/60),i=E(n/60),e%=60,n%=60,a=E(o/12),o%=12;var d=a,r=o,l=t,c=i,u=n,p=e?e.toFixed(3).replace(/\.?0+$/,""):"",s=this.asSeconds();if(!s)return"P0D";var h=0>s?"-":"",m=Gt(this._months)===Gt(s)?"":"-",g=Gt(this._days)===Gt(s)?"":"-",y=Gt(this._milliseconds)===Gt(s)?"":"-";return h+"P"+(d?m+d+"Y":"")+(r?m+r+"M":"")+(l?g+l+"D":"")+(c||u||p?"T":"")+(c?y+c+"H":"")+(u?y+u+"M":"")+(p?y+p+"S":"")}var Zt,Xt;Xt=Array.prototype.some?Array.prototype.some:function(e){for(var o=Object(this),t=o.length>>>0,n=0;n<t;n++)if((n in o)&&e.call(this,o[n],n,o))return!0;return!1};var Kt=l.momentProperties=[],Qt=!1,$t={};l.suppressDeprecationWarnings=!1,l.deprecationHandler=null;var Jt=Object.keys?Object.keys:function(e){var t=[],o;for(o in e)_(e,o)&&t.push(o);return t};var eo=/\d{1,2}/,to={},oo={},no=/(\[[^\[]*\])|(\\)?([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,io=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ao={},so={},ro=/\d/,lo=/\d\d/,co=/\d{3}/,uo=/\d{4}/,po=/[+-]?\d{6}/,ho=/\d\d?/,mo=/\d\d\d\d?/,go=/\d\d\d\d\d\d?/,yo=/\d{1,3}/,fo=/\d{1,4}/,bo=/[+-]?\d{1,6}/,_o=/\d+/,vo=/[+-]?\d+/,ko=/Z|[+-]\d\d:?\d\d/gi,wo=/Z|[+-]\d\d(?::?\d\d)?/gi,xo=/[+-]?\d+(\.\d{1,3})?/,So=/[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,Oo={},Do={},To=0,Co=1,Eo=2,Mo=3,Io=4,Po=5;V("Y",0,0,function(){var e=this.year();return 9999>=e?""+e:"+"+e}),V(0,["YY",2],0,function(){return this.year()%100}),V(0,["YYYY",4],0,"year"),V(0,["YYYYY",5],0,"year"),V(0,["YYYYYY",6,!0],0,"year"),H("year","y"),W("year",1),K("Y",vo),K("YY",ho,lo),K("YYYY",fo,uo),K("YYYYY",bo,po),K("YYYYYY",bo,po),ee(["YYYYY","YYYYYY"],To),ee("YYYY",function(e,t){t[To]=2===e.length?l.parseTwoDigitYear(e):M(e)}),ee("YY",function(e,t){t[To]=l.parseTwoDigitYear(e)}),ee("Y",function(e,t){t[To]=parseInt(e,10)}),l.parseTwoDigitYear=function(e){return M(e)+(68<M(e)?1900:2e3)};var Fo=ae("FullYear",!0),Yo;Yo=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},V("M",["MM",2],"Mo",function(){return this.month()+1}),V("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),V("MMMM",0,0,function(e){return this.localeData().months(this,e)}),H("month","M"),W("month",8),K("M",ho),K("MM",ho,lo),K("MMM",function(e,t){return t.monthsShortRegex(e)}),K("MMMM",function(e,t){return t.monthsRegex(e)}),ee(["M","MM"],function(e,t){t[Co]=M(e)-1}),ee(["MMM","MMMM"],function(e,t,o,n){var i=o._locale.monthsParse(e,n,o._strict);null==i?x(o).invalidMonth=e:t[Co]=i});var zo=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,No=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),W("week",5),W("isoWeek",5),K("w",ho),K("ww",ho,lo),K("W",ho),K("WW",ho,lo),te(["w","ww","W","WW"],function(e,t,o,n){t[n.substr(0,1)]=M(e)});V("d",0,"do","day"),V("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),V("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),V("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),K("d",ho),K("e",ho),K("E",ho),K("dd",function(e,t){return t.weekdaysMinRegex(e)}),K("ddd",function(e,t){return t.weekdaysShortRegex(e)}),K("dddd",function(e,t){return t.weekdaysRegex(e)}),te(["dd","ddd","dddd"],function(e,t,o,n){var i=o._locale.weekdaysParse(e,n,o._strict);null==i?x(o).invalidWeekday=e:t.d=i}),te(["d","e","E"],function(e,t,o,n){t[n]=M(e)});var Ro=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];V("H",["HH",2],0,"hour"),V("h",["hh",2],0,Ce),V("k",["kk",2],0,function(){return this.hours()||24}),V("hmm",0,0,function(){return""+Ce.apply(this)+U(this.minutes(),2)}),V("hmmss",0,0,function(){return""+Ce.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),V("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),V("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),Ee("a",!0),Ee("A",!1),H("hour","h"),W("hour",13),K("a",Me),K("A",Me),K("H",ho),K("h",ho),K("k",ho),K("HH",ho,lo),K("hh",ho,lo),K("kk",ho,lo),K("hmm",mo),K("hmmss",go),K("Hmm",mo),K("Hmmss",go),ee(["H","HH"],Mo),ee(["k","kk"],function(e,t){var o=M(e);t[Mo]=24===o?0:o}),ee(["a","A"],function(e,t,o){o._isPm=o._locale.isPM(e),o._meridiem=e}),ee(["h","hh"],function(e,t,o){t[Mo]=M(e),x(o).bigHour=!0}),ee("hmm",function(e,t,o){var n=e.length-2;t[Mo]=M(e.substr(0,n)),t[Io]=M(e.substr(n)),x(o).bigHour=!0}),ee("hmmss",function(e,t,o){var n=e.length-4,i=e.length-2;t[Mo]=M(e.substr(0,n)),t[Io]=M(e.substr(n,2)),t[Po]=M(e.substr(i)),x(o).bigHour=!0}),ee("Hmm",function(e,t){var o=e.length-2;t[Mo]=M(e.substr(0,o)),t[Io]=M(e.substr(o))}),ee("Hmmss",function(e,t){var o=e.length-4,n=e.length-2;t[Mo]=M(e.substr(0,o)),t[Io]=M(e.substr(o,2)),t[Po]=M(e.substr(n))});var Bo=/[ap]\.?m?\.?/i,Ho=ae("Hours",!0),Lo={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:eo,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:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:No,week:{dow:0,doy:6},weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekdaysShort:Ro,meridiemParse:Bo},Ao={},Wo={},jo=/^\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)?)?$/,Uo=/^\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)?)?$/,Vo=/Z|[+-]\d\d(?::?\d\d)?/,Go=[["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}/]],qo=[["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/]],Zo=/^\/?Date\((\-?\d+)/i,Xo=/^(?:(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}))$/,Ko={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},Qo;l.createFromInputFallback=F("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":""))}),l.ISO_8601=function(){},l.RFC_2822=function(){};var $o=F("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=at.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:O()}),Jo=F("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=at.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:O()}),en=["year","quarter","month","week","day","hour","minute","second","millisecond"];ut("Z",":"),ut("ZZ",""),K("Z",wo),K("ZZ",wo),ee(["Z","ZZ"],function(e,t,o){o._useUTC=!0,o._tzm=pt(wo,e)});var tn=/([\+\-]|\d\d)/gi;l.updateOffset=function(){};var on=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,nn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;ft.fn=rt.prototype,ft.invalid=function(){return ft(NaN)};var an=kt(1,"add"),dn=kt(-1,"subtract");l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sn=F("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)});V(0,["gg",2],0,function(){return this.weekYear()%100}),V(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Et("gggg","weekYear"),Et("ggggg","weekYear"),Et("GGGG","isoWeekYear"),Et("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),K("G",vo),K("g",vo),K("GG",ho,lo),K("gg",ho,lo),K("GGGG",fo,uo),K("gggg",fo,uo),K("GGGGG",bo,po),K("ggggg",bo,po),te(["gggg","ggggg","GGGG","GGGGG"],function(e,t,o,n){t[n.substr(0,2)]=M(e)}),te(["gg","GG"],function(e,t,o,n){t[n]=l.parseTwoDigitYear(e)}),V("Q",0,"Qo","quarter"),H("quarter","Q"),W("quarter",7),K("Q",ro),ee("Q",function(e,t){t[Co]=3*(M(e)-1)}),V("D",["DD",2],"Do","date"),H("date","D"),W("date",9),K("D",ho),K("DD",ho,lo),K("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ee(["D","DD"],Eo),ee("Do",function(e,t){t[Eo]=M(e.match(ho)[0])});var rn=ae("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),W("dayOfYear",4),K("DDD",yo),K("DDDD",co),ee(["DDD","DDDD"],function(e,t,o){o._dayOfYear=M(e)}),V("m",["mm",2],0,"minute"),H("minute","m"),W("minute",14),K("m",ho),K("mm",ho,lo),ee(["m","mm"],Io);var ln=ae("Minutes",!1);V("s",["ss",2],0,"second"),H("second","s"),W("second",15),K("s",ho),K("ss",ho,lo),ee(["s","ss"],Po);var cn=ae("Seconds",!1);V("S",0,0,function(){return~~(this.millisecond()/100)}),V(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,function(){return 10*this.millisecond()}),V(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),V(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),V(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),V(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),V(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),H("millisecond","ms"),W("millisecond",16),K("S",yo,ro),K("SS",yo,lo),K("SSS",yo,co);var un;for(un="SSSS";9>=un.length;un+="S")K(un,_o);for(un="S";9>=un.length;un+="S")ee(un,Pt);var pn=ae("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var hn=T.prototype;hn.add=an,hn.calendar=function(e,t){var o=e||at(),n=ht(o,this).startOf("day"),i=l.calendarFormat(this,n)||"sameElse",a=t&&(z(t[i])?t[i].call(this,o):t[i]);return this.format(a||this.localeData().calendar(i,this,at(o)))},hn.clone=function(){return new T(this)},hn.diff=function(e,t,o){var n,i,a;return this.isValid()?(n=ht(e,this),!n.isValid())?NaN:(i=6e4*(n.utcOffset()-this.utcOffset()),t=L(t),(a="year"===t?xt(this,n)/12:"month"===t?xt(this,n):"quarter"===t?xt(this,n)/3:"second"===t?(this-n)/1e3:"minute"===t?(this-n)/6e4:"hour"===t?(this-n)/36e5:"day"===t?(this-n-i)/864e5:"week"===t?(this-n-i)/6048e5:this-n,o?a:E(a))):NaN},hn.endOf=function(e){var t;if(e=L(e),void 0===e||"millisecond"===e||!this.isValid())return this;var o=this._isUTC?Ct:Tt;return"year"===e?t=o(this.year()+1,0,1)-1:"quarter"===e?t=o(this.year(),this.month()-this.month()%3+3,1)-1:"month"===e?t=o(this.year(),this.month()+1,1)-1:"week"===e?t=o(this.year(),this.month(),this.date()-this.weekday()+7)-1:"isoWeek"===e?t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1:"day"===e||"date"===e?t=o(this.year(),this.month(),this.date()+1)-1:"hour"===e?(t=this._d.valueOf(),t+=3600000-Dt(t+(this._isUTC?0:60000*this.utcOffset()),3600000)-1):"minute"===e?(t=this._d.valueOf(),t+=60000-Dt(t,60000)-1):"second"===e?(t=this._d.valueOf(),t+=1000-Dt(t,1000)-1):void 0,this._d.setTime(t),l.updateOffset(this,!0),this},hn.format=function(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=Z(this,e);return this.localeData().postformat(t)},hn.from=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||at(e).isValid())?ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hn.fromNow=function(e){return this.from(at(),e)},hn.to=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||at(e).isValid())?ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hn.toNow=function(e){return this.to(at(),e)},hn.get=function(e){return e=L(e),z(this[e])?this[e]():this},hn.invalidAt=function(){return x(this).overflow},hn.isAfter=function(e,t){var o=C(e)?e:at(e);return!!(this.isValid()&&o.isValid())&&(t=L(t)||"millisecond","millisecond"===t?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(t).valueOf())},hn.isBefore=function(e,t){var o=C(e)?e:at(e);return!!(this.isValid()&&o.isValid())&&(t=L(t)||"millisecond","millisecond"===t?this.valueOf()<o.valueOf():this.clone().endOf(t).valueOf()<o.valueOf())},hn.isBetween=function(e,t,o,n){var i=C(e)?e:at(e),a=C(t)?t:at(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&(n=n||"()",("("===n[0]?this.isAfter(i,o):!this.isBefore(i,o))&&(")"===n[1]?this.isBefore(a,o):!this.isAfter(a,o)))},hn.isSame=function(e,t){var o=C(e)?e:at(e),n;return!!(this.isValid()&&o.isValid())&&(t=L(t)||"millisecond","millisecond"===t?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},hn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},hn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},hn.isValid=function(){return S(this)},hn.lang=sn,hn.locale=St,hn.localeData=Ot,hn.max=Jo,hn.min=$o,hn.parsingFlags=function(){return v({},x(this))},hn.set=re,hn.startOf=function(e){var t;if(e=L(e),void 0===e||"millisecond"===e||!this.isValid())return this;var o=this._isUTC?Ct:Tt;return"year"===e?t=o(this.year(),0,1):"quarter"===e?t=o(this.year(),this.month()-this.month()%3,1):"month"===e?t=o(this.year(),this.month(),1):"week"===e?t=o(this.year(),this.month(),this.date()-this.weekday()):"isoWeek"===e?t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)):"day"===e||"date"===e?t=o(this.year(),this.month(),this.date()):"hour"===e?(t=this._d.valueOf(),t-=Dt(t+(this._isUTC?0:60000*this.utcOffset()),3600000)):"minute"===e?(t=this._d.valueOf(),t-=Dt(t,60000)):"second"===e?(t=this._d.valueOf(),t-=Dt(t,1000)):void 0,this._d.setTime(t),l.updateOffset(this,!0),this},hn.subtract=dn,hn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},hn.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()}},hn.toDate=function(){return new Date(this.valueOf())},hn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,o=t?this.clone().utc():this;return 0>o.year()||9999<o.year()?Z(o,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+1e3*(60*this.utcOffset())).toISOString().replace("Z",Z(o,"Z")):Z(o,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},hn.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 o="["+e+"(\"]",n=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",i=t+"[\")]";return this.format(o+n+"-MM-DD[T]HH:mm:ss.SSS"+i)},hn.toJSON=function(){return this.isValid()?this.toISOString():null},hn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},hn.unix=function(){return s(this.valueOf()/1e3)},hn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},hn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},hn.year=Fo,hn.isLeapYear=function(){return ie(this.year())},hn.weekYear=function(e){return Mt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},hn.isoWeekYear=function(e){return Mt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},hn.quarter=hn.quarters=function(e){return null==e?r((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},hn.month=me,hn.daysInMonth=function(){return ce(this.year(),this.month())},hn.week=hn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},hn.isoWeek=hn.isoWeeks=function(e){var t=ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},hn.weeksInYear=function(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)},hn.isoWeeksInYear=function(){return ke(this.year(),1,4)},hn.date=rn,hn.day=hn.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=we(e,this.localeData()),this.add(e-t,"d"))},hn.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")},hn.isoWeekday=function(e){if(!this.isValid())return null==e?NaN:this;if(null!=e){var t=xe(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},hn.dayOfYear=function(e){var o=t((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?o:this.add(e-o,"d")},hn.hour=hn.hours=Ho,hn.minute=hn.minutes=ln,hn.second=hn.seconds=cn,hn.millisecond=hn.milliseconds=pn,hn.utcOffset=function(e,t,o){var n=this._offset||0,i;if(!this.isValid())return null==e?NaN:this;if(null!=e){if("string"!=typeof e)16>a(e)&&!o&&(e*=60);else if(e=pt(wo,e),null===e)return this;return!this._isUTC&&t&&(i=mt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),n!==e&&(!t||this._changeInProgress?wt(this,ft(e-n,"m"),1,!1):!this._changeInProgress&&(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?n:mt(this)},hn.utc=function(e){return this.utcOffset(0,e)},hn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mt(this),"m")),this},hn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=pt(ko,this._i);null==e?this.utcOffset(0,!0):this.utcOffset(e)}return this},hn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?at(e).utcOffset():0,0==(this.utcOffset()-e)%60)},hn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hn.isLocal=function(){return!!this.isValid()&&!this._isUTC},hn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},hn.isUtc=yt,hn.isUTC=yt,hn.zoneAbbr=function(){return this._isUTC?"UTC":""},hn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hn.dates=F("dates accessor is deprecated. Use date instead.",rn),hn.months=F("months accessor is deprecated. Use month instead",me),hn.years=F("years accessor is deprecated. Use year instead",Fo),hn.zone=F("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)}),hn.isDSTShifted=F("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",gt);var mn=B.prototype;mn.calendar=function(e,t,o){var n=this._calendar[e]||this._calendar.sameElse;return z(n)?n.call(t,o):n},mn.longDateFormat=function(e){var t=this._longDateFormat[e],o=this._longDateFormat[e.toUpperCase()];return t||!o?t:(this._longDateFormat[e]=o.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},mn.invalidDate=function(){return this._invalidDate},mn.ordinal=function(e){return this._ordinal.replace("%d",e)},mn.preparse=Ft,mn.postformat=Ft,mn.relativeTime=function(e,t,o,n){var i=this._relativeTime[o];return z(i)?i(e,t,o,n):i.replace(/%d/i,e)},mn.pastFuture=function(e,t){var o=this._relativeTime[0<e?"future":"past"];return z(o)?o(t):o.replace(/%s/i,t)},mn.set=N,mn.months=function(e,t){return e?u(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||zo).test(t)?"format":"standalone"][e.month()]:u(this._months)?this._months:this._months.standalone},mn.monthsShort=function(e,t){return e?u(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[zo.test(t)?"format":"standalone"][e.month()]:u(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},mn.monthsParse=pe,mn.monthsRegex=function(e){return this._monthsParseExact?(_(this,"_monthsRegex")||ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(_(this,"_monthsRegex")||(this._monthsRegex=So),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},mn.monthsShortRegex=function(e){return this._monthsParseExact?(_(this,"_monthsRegex")||ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(_(this,"_monthsShortRegex")||(this._monthsShortRegex=So),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},mn.week=function(e){return ve(e,this._week.dow,this._week.doy).week},mn.firstDayOfYear=function(){return this._week.doy},mn.firstDayOfWeek=function(){return this._week.dow},mn.weekdays=function(e,t){var o=u(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Se(o,this._week.dow):e?o[e.day()]:o},mn.weekdaysMin=function(e){return!0===e?Se(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},mn.weekdaysShort=function(e){return!0===e?Se(this._weekdaysShort,this