UNPKG

date-holidays

Version:
2 lines 1.04 MB
/*! For license information please see umd.min.js.LICENSE.txt */ !function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?exports.Holidays=a():e.Holidays=a()}(self,(function(){return function(){var e={549:function(e,a,n){var t={};function o(e){var a=c(e);return n(a)}function c(e){if(!n.o(t,e)){var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}return t[e]}o.keys=function(){return Object.keys(t)},o.resolve=c,e.exports=o,o.id=549},923:function(e,a,n){var t={};function o(e){var a=c(e);return n(a)}function c(e){if(!n.o(t,e)){var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}return t[e]}o.keys=function(){return Object.keys(t)},o.resolve=c,e.exports=o,o.id=923},345:function(e,a,n){(e.exports=n(740)).tz.load(n(362))},740:function(e,a,n){var t,o,c;function r(e){return(r="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})(e)}e=n.nmd(e),function(i,s){"use strict";"object"===r(e)&&e.exports?e.exports=s(n(340)):(o=[n(340)],void 0===(c="function"==typeof(t=s)?t.apply(a,o):t)||(e.exports=c))}(0,(function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var a,n={},t={},o={},c={},i={};e&&"string"==typeof e.version||T("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var s=e.version.split("."),M=+s[0],u=+s[1];function d(e){return e>96?e-87:e>64?e-29:e-48}function l(e){var a=0,n=e.split("."),t=n[0],o=n[1]||"",c=1,r=0,i=1;for(45===e.charCodeAt(0)&&(a=1,i=-1);a<t.length;a++)r=60*r+d(t.charCodeAt(a));for(a=0;a<o.length;a++)c/=60,r+=d(o.charCodeAt(a))*c;return r*i}function p(e){for(var a=0;a<e.length;a++)e[a]=l(e[a])}function m(e,a){var n,t=[];for(n=0;n<a.length;n++)t[n]=e[a[n]];return t}function b(e){var a=e.split("|"),n=a[2].split(" "),t=a[3].split(""),o=a[4].split(" ");return p(n),p(t),p(o),function(e,a){for(var n=0;n<a;n++)e[n]=Math.round((e[n-1]||0)+6e4*e[n]);e[a-1]=1/0}(o,t.length),{name:a[0],abbrs:m(a[1].split(" "),t),offsets:m(n,t),untils:o,population:0|a[5]}}function f(e){e&&this._set(b(e))}function A(e,a){this.name=e,this.zones=a}function y(e){var a=e.toTimeString(),n=a.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=a.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+e,this.abbr=n,this.offset=e.getTimezoneOffset()}function h(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function z(e,a){for(var n,t;t=6e4*((a.at-e.at)/12e4|0);)(n=new y(new Date(e.at+t))).offset===e.offset?e=n:a=n;return e}function O(e,a){return e.offsetScore!==a.offsetScore?e.offsetScore-a.offsetScore:e.abbrScore!==a.abbrScore?e.abbrScore-a.abbrScore:e.zone.population!==a.zone.population?a.zone.population-e.zone.population:a.zone.name.localeCompare(e.zone.name)}function N(e,a){var n,t;for(p(a),n=0;n<a.length;n++)t=a[n],i[t]=i[t]||{},i[t][e]=!0}function L(e){var a,n,t,o=e.length,r={},s=[];for(a=0;a<o;a++)for(n in t=i[e[a].offset]||{})t.hasOwnProperty(n)&&(r[n]=!0);for(a in r)r.hasOwnProperty(a)&&s.push(c[a]);return s}function _(e){return(e||"").toLowerCase().replace(/\//g,"_")}function q(e){var a,t,o,r;for("string"==typeof e&&(e=[e]),a=0;a<e.length;a++)r=_(t=(o=e[a].split("|"))[0]),n[r]=e[a],c[r]=t,N(r,o[2].split(" "))}function v(e,a){e=_(e);var o,r=n[e];return r instanceof f?r:"string"==typeof r?(r=new f(r),n[e]=r,r):t[e]&&a!==v&&(o=v(t[e],v))?((r=n[e]=new f)._set(o),r.name=c[e],r):null}function g(e){var a,n,o,r;for("string"==typeof e&&(e=[e]),a=0;a<e.length;a++)o=_((n=e[a].split("|"))[0]),r=_(n[1]),t[o]=r,c[o]=n[0],t[r]=o,c[r]=n[1]}function W(e){var a="X"===e._f||"x"===e._f;return!(!e._a||void 0!==e._tzm||a)}function T(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function B(a){var n=Array.prototype.slice.call(arguments,0,-1),t=arguments[arguments.length-1],o=v(t),c=e.utc.apply(null,n);return o&&!e.isMoment(a)&&W(c)&&c.add(o.parse(c),"minutes"),c.tz(t),c}(M<2||2===M&&u<6)&&T("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),f.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var a,n=+e,t=this.untils;for(a=0;a<t.length;a++)if(n<t[a])return a},countries:function(){var e=this.name;return Object.keys(o).filter((function(a){return-1!==o[a].zones.indexOf(e)}))},parse:function(e){var a,n,t,o,c=+e,r=this.offsets,i=this.untils,s=i.length-1;for(o=0;o<s;o++)if(a=r[o],n=r[o+1],t=r[o?o-1:o],a<n&&B.moveAmbiguousForward?a=n:a>t&&B.moveInvalidForward&&(a=t),c<i[o]-6e4*a)return r[o];return r[s]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return T("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},h.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},B.version="0.5.33",B.dataVersion="",B._zones=n,B._links=t,B._names=c,B._countries=o,B.add=q,B.link=g,B.load=function(e){q(e.zones),g(e.links),function(e){var a,n,t,c;if(e&&e.length)for(a=0;a<e.length;a++)n=(c=e[a].split("|"))[0].toUpperCase(),t=c[1].split(" "),o[n]=new A(n,t)}(e.countries),B.dataVersion=e.version},B.zone=v,B.zoneExists=function e(a){return e.didShowError||(e.didShowError=!0,T("moment.tz.zoneExists('"+a+"') has been deprecated in favor of !moment.tz.zone('"+a+"')")),!!v(a)},B.guess=function(e){return a&&!e||(a=function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var a=c[_(e)];if(a)return a;T("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,t,o,r=function(){var e,a,n,t=(new Date).getFullYear()-2,o=new y(new Date(t,0,1)),c=[o];for(n=1;n<48;n++)(a=new y(new Date(t,n,1))).offset!==o.offset&&(e=z(o,a),c.push(e),c.push(new y(new Date(e.at+6e4)))),o=a;for(n=0;n<4;n++)c.push(new y(new Date(t+n,0,1))),c.push(new y(new Date(t+n,6,1)));return c}(),i=r.length,s=L(r),M=[];for(t=0;t<s.length;t++){for(n=new h(v(s[t]),i),o=0;o<i;o++)n.scoreOffsetAt(r[o]);M.push(n)}return M.sort(O),M.length>0?M[0].zone.name:void 0}()),a},B.names=function(){var e,a=[];for(e in c)c.hasOwnProperty(e)&&(n[e]||n[t[e]])&&c[e]&&a.push(c[e]);return a.sort()},B.Zone=f,B.unpack=b,B.unpackBase60=l,B.needsOffset=W,B.moveInvalidForward=!0,B.moveAmbiguousForward=!1,B.countries=function(){return Object.keys(o)},B.zonesForCountry=function(e,a){var n;if(n=(n=e).toUpperCase(),!(e=o[n]||null))return null;var t=e.zones.sort();return a?t.map((function(e){return{name:e,offset:v(e).utcOffset(new Date)}})):t};var D,S=e.fn;function X(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function w(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=B,e.defaultZone=null,e.updateOffset=function(a,n){var t,o=e.defaultZone;if(void 0===a._z&&(o&&W(a)&&!a._isUTC&&(a._d=e.utc(a._a)._d,a.utc().add(o.parse(a),"minutes")),a._z=o),a._z)if(t=a._z.utcOffset(a),Math.abs(t)<16&&(t/=60),void 0!==a.utcOffset){var c=a._z;a.utcOffset(-t,n),a._z=c}else a.zone(t,n)},S.tz=function(a,n){if(a){if("string"!=typeof a)throw new Error("Time zone name must be a string, got "+a+" ["+r(a)+"]");return this._z=v(a),this._z?e.updateOffset(this,n):T("Moment Timezone has no data for "+a+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},S.zoneName=X(S.zoneName),S.zoneAbbr=X(S.zoneAbbr),S.utc=w(S.utc),S.local=w(S.local),S.utcOffset=(D=S.utcOffset,function(){return arguments.length>0&&(this._z=null),D.apply(this,arguments)}),e.tz.setDefault=function(a){return(M<2||2===M&&u<9)&&T("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=a?v(a):null,e};var C=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(C)?(C.push("_z"),C.push("_a")):C&&(C._z=null),e}))},340:function(e,a,n){var t,o,c;function r(e){return(r="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})(e)}e=n.nmd(e),c=function(){"use strict";var a,t;function o(){return a.apply(null,arguments)}function c(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,a){return Object.prototype.hasOwnProperty.call(e,a)}function M(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var a;for(a in e)if(s(e,a))return!1;return!0}function u(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,a){var n,t=[];for(n=0;n<e.length;++n)t.push(a(e[n],n));return t}function m(e,a){for(var n in a)s(a,n)&&(e[n]=a[n]);return s(a,"toString")&&(e.toString=a.toString),s(a,"valueOf")&&(e.valueOf=a.valueOf),e}function b(e,a,n,t){return va(e,a,n,t,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function A(e){if(null==e._isValid){var a=f(e),n=t.call(a.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&n);if(e._strict&&(o=o&&0===a.charsLeftOver&&0===a.unusedTokens.length&&void 0===a.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function y(e){var a=b(NaN);return null!=e?m(f(a),e):f(a).userInvalidated=!0,a}t=Array.prototype.some?Array.prototype.some:function(e){var a,n=Object(this),t=n.length>>>0;for(a=0;a<t;a++)if(a in n&&e.call(this,n[a],a,n))return!0;return!1};var h=o.momentProperties=[],z=!1;function O(e,a){var n,t,o;if(u(a._isAMomentObject)||(e._isAMomentObject=a._isAMomentObject),u(a._i)||(e._i=a._i),u(a._f)||(e._f=a._f),u(a._l)||(e._l=a._l),u(a._strict)||(e._strict=a._strict),u(a._tzm)||(e._tzm=a._tzm),u(a._isUTC)||(e._isUTC=a._isUTC),u(a._offset)||(e._offset=a._offset),u(a._pf)||(e._pf=f(a)),u(a._locale)||(e._locale=a._locale),h.length>0)for(n=0;n<h.length;n++)u(o=a[t=h[n]])||(e[t]=o);return e}function N(e){O(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,o.updateOffset(this),z=!1)}function L(e){return e instanceof N||null!=e&&null!=e._isAMomentObject}function _(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function q(e,a){var n=!0;return m((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var t,c,i,M=[];for(c=0;c<arguments.length;c++){if(t="","object"===r(arguments[c])){for(i in t+="\n["+c+"] ",arguments[0])s(arguments[0],i)&&(t+=i+": "+arguments[0][i]+", ");t=t.slice(0,-2)}else t=arguments[c];M.push(t)}_(e+"\nArguments: "+Array.prototype.slice.call(M).join("")+"\n"+(new Error).stack),n=!1}return a.apply(this,arguments)}),a)}var v,g={};function W(e,a){null!=o.deprecationHandler&&o.deprecationHandler(e,a),g[e]||(_(a),g[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function B(e,a){var n,t=m({},e);for(n in a)s(a,n)&&(i(e[n])&&i(a[n])?(t[n]={},m(t[n],e[n]),m(t[n],a[n])):null!=a[n]?t[n]=a[n]:delete t[n]);for(n in e)s(e,n)&&!s(a,n)&&i(e[n])&&(t[n]=m({},t[n]));return t}function D(e){null!=e&&this.set(e)}function S(e,a,n){var t=""+Math.abs(e),o=a-t.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+t}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,v=Object.keys?Object.keys:function(e){var a,n=[];for(a in e)s(e,a)&&n.push(a);return n};var X=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,w=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,C={},k={};function E(e,a,n,t){var o=t;"string"==typeof t&&(o=function(){return this[t]()}),e&&(k[e]=o),a&&(k[a[0]]=function(){return S(o.apply(this,arguments),a[1],a[2])}),n&&(k[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function R(e,a){return e.isValid()?(a=P(a,e.localeData()),C[a]=C[a]||function(e){var a,n,t,o=e.match(X);for(a=0,n=o.length;a<n;a++)k[o[a]]?o[a]=k[o[a]]:o[a]=(t=o[a]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(a){var t,c="";for(t=0;t<n;t++)c+=T(o[t])?o[t].call(a,e):o[t];return c}}(a),C[a](e)):e.localeData().invalidDate()}function P(e,a){var n=5;function t(e){return a.longDateFormat(e)||e}for(w.lastIndex=0;n>=0&&w.test(e);)e=e.replace(w,t),w.lastIndex=0,n-=1;return e}var x={};function j(e,a){var n=e.toLowerCase();x[n]=x[n+"s"]=x[a]=e}function H(e){return"string"==typeof e?x[e]||x[e.toLowerCase()]:void 0}function I(e){var a,n,t={};for(n in e)s(e,n)&&(a=H(n))&&(t[a]=e[n]);return t}var F={};function G(e,a){F[e]=a}function U(e){return e%4==0&&e%100!=0||e%400==0}function Y(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var a=+e,n=0;return 0!==a&&isFinite(a)&&(n=Y(a)),n}function K(e,a){return function(n){return null!=n?(Q(this,e,n),o.updateOffset(this,a),this):J(this,e)}}function J(e,a){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+a]():NaN}function Q(e,a,n){e.isValid()&&!isNaN(n)&&("FullYear"===a&&U(e.year())&&1===e.month()&&29===e.date()?(n=V(n),e._d["set"+(e._isUTC?"UTC":"")+a](n,e.month(),Le(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+a](n))}var Z,$=/\d/,ee=/\d\d/,ae=/\d{3}/,ne=/\d{4}/,te=/[+-]?\d{6}/,oe=/\d\d?/,ce=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,se=/\d{1,4}/,Me=/[+-]?\d{1,6}/,ue=/\d+/,de=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,pe=/Z|[+-]\d\d(?::?\d\d)?/gi,me=/[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;function be(e,a,n){Z[e]=T(a)?a:function(e,t){return e&&n?n:a}}function fe(e,a){return s(Z,e)?Z[e](a._strict,a._locale):new RegExp(Ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,a,n,t,o){return a||n||t||o}))))}function Ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Z={};var ye,he={};function ze(e,a){var n,t=a;for("string"==typeof e&&(e=[e]),d(a)&&(t=function(e,n){n[a]=V(e)}),n=0;n<e.length;n++)he[e[n]]=t}function Oe(e,a){ze(e,(function(e,n,t,o){t._w=t._w||{},a(e,t._w,t,o)}))}function Ne(e,a,n){null!=a&&s(he,e)&&he[e](a,n._a,n,e)}function Le(e,a){if(isNaN(e)||isNaN(a))return NaN;var n=(a%12+12)%12;return e+=(a-n)/12,1===n?U(e)?29:28:31-n%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var a;for(a=0;a<this.length;++a)if(this[a]===e)return a;return-1},E("M",["MM",2],"Mo",(function(){return this.month()+1})),E("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),E("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),j("month","M"),G("month",8),be("M",oe),be("MM",oe,ee),be("MMM",(function(e,a){return a.monthsShortRegex(e)})),be("MMMM",(function(e,a){return a.monthsRegex(e)})),ze(["M","MM"],(function(e,a){a[1]=V(e)-1})),ze(["MMM","MMMM"],(function(e,a,n,t){var o=n._locale.monthsParse(e,t,n._strict);null!=o?a[1]=o:f(n).invalidMonth=e}));var _e="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ve=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ge=me,We=me;function Te(e,a,n){var t,o,c,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],t=0;t<12;++t)c=b([2e3,t]),this._shortMonthsParse[t]=this.monthsShort(c,"").toLocaleLowerCase(),this._longMonthsParse[t]=this.months(c,"").toLocaleLowerCase();return n?"MMM"===a?-1!==(o=ye.call(this._shortMonthsParse,r))?o:null:-1!==(o=ye.call(this._longMonthsParse,r))?o:null:"MMM"===a?-1!==(o=ye.call(this._shortMonthsParse,r))||-1!==(o=ye.call(this._longMonthsParse,r))?o:null:-1!==(o=ye.call(this._longMonthsParse,r))||-1!==(o=ye.call(this._shortMonthsParse,r))?o:null}function Be(e,a){var n;if(!e.isValid())return e;if("string"==typeof a)if(/^\d+$/.test(a))a=V(a);else if(!d(a=e.localeData().monthsParse(a)))return e;return n=Math.min(e.date(),Le(e.year(),a)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](a,n),e}function De(e){return null!=e?(Be(this,e),o.updateOffset(this,!0),this):J(this,"Month")}function Se(){function e(e,a){return a.length-e.length}var a,n,t=[],o=[],c=[];for(a=0;a<12;a++)n=b([2e3,a]),t.push(this.monthsShort(n,"")),o.push(this.months(n,"")),c.push(this.months(n,"")),c.push(this.monthsShort(n,""));for(t.sort(e),o.sort(e),c.sort(e),a=0;a<12;a++)t[a]=Ae(t[a]),o[a]=Ae(o[a]);for(a=0;a<24;a++)c[a]=Ae(c[a]);this._monthsRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Xe(e){return U(e)?366:365}E("Y",0,0,(function(){var e=this.year();return e<=9999?S(e,4):"+"+e})),E(0,["YY",2],0,(function(){return this.year()%100})),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),j("year","y"),G("year",1),be("Y",de),be("YY",oe,ee),be("YYYY",se,ne),be("YYYYY",Me,te),be("YYYYYY",Me,te),ze(["YYYYY","YYYYYY"],0),ze("YYYY",(function(e,a){a[0]=2===e.length?o.parseTwoDigitYear(e):V(e)})),ze("YY",(function(e,a){a[0]=o.parseTwoDigitYear(e)})),ze("Y",(function(e,a){a[0]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return V(e)+(V(e)>68?1900:2e3)};var we=K("FullYear",!0);function Ce(e,a,n,t,o,c,r){var i;return e<100&&e>=0?(i=new Date(e+400,a,n,t,o,c,r),isFinite(i.getFullYear())&&i.setFullYear(e)):i=new Date(e,a,n,t,o,c,r),i}function ke(e){var a,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,a=new Date(Date.UTC.apply(null,n)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(e)):a=new Date(Date.UTC.apply(null,arguments)),a}function Ee(e,a,n){var t=7+a-n;return-(7+ke(e,0,t).getUTCDay()-a)%7+t-1}function Re(e,a,n,t,o){var c,r,i=1+7*(a-1)+(7+n-t)%7+Ee(e,t,o);return i<=0?r=Xe(c=e-1)+i:i>Xe(e)?(c=e+1,r=i-Xe(e)):(c=e,r=i),{year:c,dayOfYear:r}}function Pe(e,a,n){var t,o,c=Ee(e.year(),a,n),r=Math.floor((e.dayOfYear()-c-1)/7)+1;return r<1?t=r+xe(o=e.year()-1,a,n):r>xe(e.year(),a,n)?(t=r-xe(e.year(),a,n),o=e.year()+1):(o=e.year(),t=r),{week:t,year:o}}function xe(e,a,n){var t=Ee(e,a,n),o=Ee(e+1,a,n);return(Xe(e)-t+o)/7}function je(e,a){return e.slice(a,7).concat(e.slice(0,a))}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),G("week",5),G("isoWeek",5),be("w",oe),be("ww",oe,ee),be("W",oe),be("WW",oe,ee),Oe(["w","ww","W","WW"],(function(e,a,n,t){a[t.substr(0,1)]=V(e)})),E("d",0,"do","day"),E("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),E("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),E("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),G("day",11),G("weekday",11),G("isoWeekday",11),be("d",oe),be("e",oe),be("E",oe),be("dd",(function(e,a){return a.weekdaysMinRegex(e)})),be("ddd",(function(e,a){return a.weekdaysShortRegex(e)})),be("dddd",(function(e,a){return a.weekdaysRegex(e)})),Oe(["dd","ddd","dddd"],(function(e,a,n,t){var o=n._locale.weekdaysParse(e,t,n._strict);null!=o?a.d=o:f(n).invalidWeekday=e})),Oe(["d","e","E"],(function(e,a,n,t){a[t]=V(e)}));var He="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ie="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Fe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ge=me,Ue=me,Ye=me;function Ve(e,a,n){var t,o,c,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],t=0;t<7;++t)c=b([2e3,1]).day(t),this._minWeekdaysParse[t]=this.weekdaysMin(c,"").toLocaleLowerCase(),this._shortWeekdaysParse[t]=this.weekdaysShort(c,"").toLocaleLowerCase(),this._weekdaysParse[t]=this.weekdays(c,"").toLocaleLowerCase();return n?"dddd"===a?-1!==(o=ye.call(this._weekdaysParse,r))?o:null:"ddd"===a?-1!==(o=ye.call(this._shortWeekdaysParse,r))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,r))?o:null:"dddd"===a?-1!==(o=ye.call(this._weekdaysParse,r))||-1!==(o=ye.call(this._shortWeekdaysParse,r))||-1!==(o=ye.call(this._minWeekdaysParse,r))?o:null:"ddd"===a?-1!==(o=ye.call(this._shortWeekdaysParse,r))||-1!==(o=ye.call(this._weekdaysParse,r))||-1!==(o=ye.call(this._minWeekdaysParse,r))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,r))||-1!==(o=ye.call(this._weekdaysParse,r))||-1!==(o=ye.call(this._shortWeekdaysParse,r))?o:null}function Ke(){function e(e,a){return a.length-e.length}var a,n,t,o,c,r=[],i=[],s=[],M=[];for(a=0;a<7;a++)n=b([2e3,1]).day(a),t=Ae(this.weekdaysMin(n,"")),o=Ae(this.weekdaysShort(n,"")),c=Ae(this.weekdays(n,"")),r.push(t),i.push(o),s.push(c),M.push(t),M.push(o),M.push(c);r.sort(e),i.sort(e),s.sort(e),M.sort(e),this._weekdaysRegex=new RegExp("^("+M.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(e,a){E(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)}))}function Ze(e,a){return a._meridiemParse}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,Je),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+Je.apply(this)+S(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+Je.apply(this)+S(this.minutes(),2)+S(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+S(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+S(this.minutes(),2)+S(this.seconds(),2)})),Qe("a",!0),Qe("A",!1),j("hour","h"),G("hour",13),be("a",Ze),be("A",Ze),be("H",oe),be("h",oe),be("k",oe),be("HH",oe,ee),be("hh",oe,ee),be("kk",oe,ee),be("hmm",ce),be("hmmss",re),be("Hmm",ce),be("Hmmss",re),ze(["H","HH"],3),ze(["k","kk"],(function(e,a,n){var t=V(e);a[3]=24===t?0:t})),ze(["a","A"],(function(e,a,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ze(["h","hh"],(function(e,a,n){a[3]=V(e),f(n).bigHour=!0})),ze("hmm",(function(e,a,n){var t=e.length-2;a[3]=V(e.substr(0,t)),a[4]=V(e.substr(t)),f(n).bigHour=!0})),ze("hmmss",(function(e,a,n){var t=e.length-4,o=e.length-2;a[3]=V(e.substr(0,t)),a[4]=V(e.substr(t,2)),a[5]=V(e.substr(o)),f(n).bigHour=!0})),ze("Hmm",(function(e,a,n){var t=e.length-2;a[3]=V(e.substr(0,t)),a[4]=V(e.substr(t))})),ze("Hmmss",(function(e,a,n){var t=e.length-4,o=e.length-2;a[3]=V(e.substr(0,t)),a[4]=V(e.substr(t,2)),a[5]=V(e.substr(o))}));var $e,ea=K("Hours",!0),aa={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:_e,monthsShort:qe,week:{dow:0,doy:6},weekdays:He,weekdaysMin:Fe,weekdaysShort:Ie,meridiemParse:/[ap]\.?m?\.?/i},na={},ta={};function oa(e,a){var n,t=Math.min(e.length,a.length);for(n=0;n<t;n+=1)if(e[n]!==a[n])return n;return t}function ca(e){return e?e.toLowerCase().replace("_","-"):e}function ra(a){var t=null;if(void 0===na[a]&&e&&e.exports)try{t=$e._abbr,n(549)("./"+a),ia(t)}catch(e){na[a]=null}return na[a]}function ia(e,a){var n;return e&&((n=u(a)?Ma(e):sa(e,a))?$e=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),$e._abbr}function sa(e,a){if(null!==a){var n,t=aa;if(a.abbr=e,null!=na[e])W("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),t=na[e]._config;else if(null!=a.parentLocale)if(null!=na[a.parentLocale])t=na[a.parentLocale]._config;else{if(null==(n=ra(a.parentLocale)))return ta[a.parentLocale]||(ta[a.parentLocale]=[]),ta[a.parentLocale].push({name:e,config:a}),null;t=n._config}return na[e]=new D(B(t,a)),ta[e]&&ta[e].forEach((function(e){sa(e.name,e.config)})),ia(e),na[e]}return delete na[e],null}function Ma(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return $e;if(!c(e)){if(a=ra(e))return a;e=[e]}return function(e){for(var a,n,t,o,c=0;c<e.length;){for(a=(o=ca(e[c]).split("-")).length,n=(n=ca(e[c+1]))?n.split("-"):null;a>0;){if(t=ra(o.slice(0,a).join("-")))return t;if(n&&n.length>=a&&oa(o,n)>=a-1)break;a--}c++}return $e}(e)}function ua(e){var a,n=e._a;return n&&-2===f(e).overflow&&(a=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Le(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,f(e)._overflowDayOfYear&&(a<0||a>2)&&(a=2),f(e)._overflowWeeks&&-1===a&&(a=7),f(e)._overflowWeekday&&-1===a&&(a=8),f(e).overflow=a),e}var da=/^\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)?)?$/,la=/^\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)?)?$/,pa=/Z|[+-]\d\d(?::?\d\d)?/,ma=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ba=[["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/]],fa=/^\/?Date\((-?\d+)/i,Aa=/^(?:(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}))$/,ya={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ha(e){var a,n,t,o,c,r,i=e._i,s=da.exec(i)||la.exec(i);if(s){for(f(e).iso=!0,a=0,n=ma.length;a<n;a++)if(ma[a][1].exec(s[1])){o=ma[a][0],t=!1!==ma[a][2];break}if(null==o)return void(e._isValid=!1);if(s[3]){for(a=0,n=ba.length;a<n;a++)if(ba[a][1].exec(s[3])){c=(s[2]||" ")+ba[a][0];break}if(null==c)return void(e._isValid=!1)}if(!t&&null!=c)return void(e._isValid=!1);if(s[4]){if(!pa.exec(s[4]))return void(e._isValid=!1);r="Z"}e._f=o+(c||"")+(r||""),_a(e)}else e._isValid=!1}function za(e){var a=parseInt(e,10);return a<=49?2e3+a:a<=999?1900+a:a}function Oa(e){var a,n,t,o,c,r,i,s,M=Aa.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(M){if(n=M[4],t=M[3],o=M[2],c=M[5],r=M[6],i=M[7],s=[za(n),qe.indexOf(t),parseInt(o,10),parseInt(c,10),parseInt(r,10)],i&&s.push(parseInt(i,10)),a=s,!function(e,a,n){return!e||Ie.indexOf(e)===new Date(a[0],a[1],a[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(M[1],a,e))return;e._a=a,e._tzm=function(e,a,n){if(e)return ya[e];if(a)return 0;var t=parseInt(n,10),o=t%100;return(t-o)/100*60+o}(M[8],M[9],M[10]),e._d=ke.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function Na(e,a,n){return null!=e?e:null!=a?a:n}function La(e){var a,n,t,c,r,i=[];if(!e._d){for(t=function(e){var a=new Date(o.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var a,n,t,o,c,r,i,s,M;null!=(a=e._w).GG||null!=a.W||null!=a.E?(c=1,r=4,n=Na(a.GG,e._a[0],Pe(ga(),1,4).year),t=Na(a.W,1),((o=Na(a.E,1))<1||o>7)&&(s=!0)):(c=e._locale._week.dow,r=e._locale._week.doy,M=Pe(ga(),c,r),n=Na(a.gg,e._a[0],M.year),t=Na(a.w,M.week),null!=a.d?((o=a.d)<0||o>6)&&(s=!0):null!=a.e?(o=a.e+c,(a.e<0||a.e>6)&&(s=!0)):o=c),t<1||t>xe(n,c,r)?f(e)._overflowWeeks=!0:null!=s?f(e)._overflowWeekday=!0:(i=Re(n,t,o,c,r),e._a[0]=i.year,e._dayOfYear=i.dayOfYear)}(e),null!=e._dayOfYear&&(r=Na(e._a[0],t[0]),(e._dayOfYear>Xe(r)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=ke(r,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=i[a]=t[a];for(;a<7;a++)e._a[a]=i[a]=null==e._a[a]?2===a?1:0:e._a[a];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?ke:Ce).apply(null,i),c=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&&void 0!==e._w.d&&e._w.d!==c&&(f(e).weekdayMismatch=!0)}}function _a(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],f(e).empty=!0;var a,n,t,c,r,i,s=""+e._i,M=s.length,u=0;for(t=P(e._f,e._locale).match(X)||[],a=0;a<t.length;a++)c=t[a],(n=(s.match(fe(c,e))||[])[0])&&((r=s.substr(0,s.indexOf(n))).length>0&&f(e).unusedInput.push(r),s=s.slice(s.indexOf(n)+n.length),u+=n.length),k[c]?(n?f(e).empty=!1:f(e).unusedTokens.push(c),Ne(c,n,e)):e._strict&&!n&&f(e).unusedTokens.push(c);f(e).charsLeftOver=M-u,s.length>0&&f(e).unusedInput.push(s),e._a[3]<=12&&!0===f(e).bigHour&&e._a[3]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[3]=function(e,a,n){var t;return null==n?a:null!=e.meridiemHour?e.meridiemHour(a,n):null!=e.isPM?((t=e.isPM(n))&&a<12&&(a+=12),t||12!==a||(a=0),a):a}(e._locale,e._a[3],e._meridiem),null!==(i=f(e).era)&&(e._a[0]=e._locale.erasConvertYear(i,e._a[0])),La(e),ua(e)}else Oa(e);else ha(e)}function qa(e){var a=e._i,n=e._f;return e._locale=e._locale||Ma(e._l),null===a||void 0===n&&""===a?y({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),L(a)?new N(ua(a)):(l(a)?e._d=a:c(n)?function(e){var a,n,t,o,c,r,i=!1;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)c=0,r=!1,a=O({},e),null!=e._useUTC&&(a._useUTC=e._useUTC),a._f=e._f[o],_a(a),A(a)&&(r=!0),c+=f(a).charsLeftOver,c+=10*f(a).unusedTokens.length,f(a).score=c,i?c<t&&(t=c,n=a):(null==t||c<t||r)&&(t=c,n=a,r&&(i=!0));m(e,n||a)}(e):n?_a(e):function(e){var a=e._i;u(a)?e._d=new Date(o.now()):l(a)?e._d=new Date(a.valueOf()):"string"==typeof a?function(e){var a=fa.exec(e._i);null===a?(ha(e),!1===e._isValid&&(delete e._isValid,Oa(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+a[1])}(e):c(a)?(e._a=p(a.slice(0),(function(e){return parseInt(e,10)})),La(e)):i(a)?function(e){if(!e._d){var a=I(e._i),n=void 0===a.day?a.date:a.day;e._a=p([a.year,a.month,n,a.hour,a.minute,a.second,a.millisecond],(function(e){return e&&parseInt(e,10)})),La(e)}}(e):d(a)?e._d=new Date(a):o.createFromInputFallback(e)}(e),A(e)||(e._d=null),e))}function va(e,a,n,t,o){var r,s={};return!0!==a&&!1!==a||(t=a,a=void 0),!0!==n&&!1!==n||(t=n,n=void 0),(i(e)&&M(e)||c(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=a,s._strict=t,(r=new N(ua(qa(s))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function ga(e,a,n,t){return va(e,a,n,t,!1)}o.createFromInputFallback=q("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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Wa=q("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=ga.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Ta=q("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=ga.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Ba(e,a){var n,t;if(1===a.length&&c(a[0])&&(a=a[0]),!a.length)return ga();for(n=a[0],t=1;t<a.length;++t)a[t].isValid()&&!a[t][e](n)||(n=a[t]);return n}var Da=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Sa(e){var a=I(e),n=a.year||0,t=a.quarter||0,o=a.month||0,c=a.week||a.isoWeek||0,r=a.day||0,i=a.hour||0,M=a.minute||0,u=a.second||0,d=a.millisecond||0;this._isValid=function(e){var a,n,t=!1;for(a in e)if(s(e,a)&&(-1===ye.call(Da,a)||null!=e[a]&&isNaN(e[a])))return!1;for(n=0;n<Da.length;++n)if(e[Da[n]]){if(t)return!1;parseFloat(e[Da[n]])!==V(e[Da[n]])&&(t=!0)}return!0}(a),this._milliseconds=+d+1e3*u+6e4*M+1e3*i*60*60,this._days=+r+7*c,this._months=+o+3*t+12*n,this._data={},this._locale=Ma(),this._bubble()}function Xa(e){return e instanceof Sa}function wa(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ca(e,a){E(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+S(~~(e/60),2)+a+S(~~e%60,2)}))}Ca("Z",":"),Ca("ZZ",""),be("Z",pe),be("ZZ",pe),ze(["Z","ZZ"],(function(e,a,n){n._useUTC=!0,n._tzm=Ea(pe,e)}));var ka=/([\+\-]|\d\d)/gi;function Ea(e,a){var n,t,o=(a||"").match(e);return null===o?null:0===(t=60*(n=((o[o.length-1]||[])+"").match(ka)||["-",0,0])[1]+V(n[2]))?0:"+"===n[0]?t:-t}function Ra(e,a){var n,t;return a._isUTC?(n=a.clone(),t=(L(e)||l(e)?e.valueOf():ga(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+t),o.updateOffset(n,!1),n):ga(e).local()}function Pa(e){return-Math.round(e._d.getTimezoneOffset())}function xa(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var ja=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ha=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ia(e,a){var n,t,o,c,i,M,u=e,l=null;return Xa(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(u={},a?u[a]=+e:u.milliseconds=+e):(l=ja.exec(e))?(n="-"===l[1]?-1:1,u={y:0,d:V(l[2])*n,h:V(l[3])*n,m:V(l[4])*n,s:V(l[5])*n,ms:V(wa(1e3*l[6]))*n}):(l=Ha.exec(e))?(n="-"===l[1]?-1:1,u={y:Fa(l[2],n),M:Fa(l[3],n),w:Fa(l[4],n),d:Fa(l[5],n),h:Fa(l[6],n),m:Fa(l[7],n),s:Fa(l[8],n)}):null==u?u={}:"object"===r(u)&&("from"in u||"to"in u)&&(c=ga(u.from),i=ga(u.to),o=c.isValid()&&i.isValid()?(i=Ra(i,c),c.isBefore(i)?M=Ga(c,i):((M=Ga(i,c)).milliseconds=-M.milliseconds,M.months=-M.months),M):{milliseconds:0,months:0},(u={}).ms=o.milliseconds,u.M=o.months),t=new Sa(u),Xa(e)&&s(e,"_locale")&&(t._locale=e._locale),Xa(e)&&s(e,"_isValid")&&(t._isValid=e._isValid),t}function Fa(e,a){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*a}function Ga(e,a){var n={};return n.months=a.month()-e.month()+12*(a.year()-e.year()),e.clone().add(n.months,"M").isAfter(a)&&--n.months,n.milliseconds=+a-+e.clone().add(n.months,"M"),n}function Ua(e,a){return function(n,t){var o;return null===t||isNaN(+t)||(W(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=t,t=o),Ya(this,Ia(n,t),e),this}}function Ya(e,a,n,t){var c=a._milliseconds,r=wa(a._days),i=wa(a._months);e.isValid()&&(t=null==t||t,i&&Be(e,J(e,"Month")+i*n),r&&Q(e,"Date",J(e,"Date")+r*n),c&&e._d.setTime(e._d.valueOf()+c*n),t&&o.updateOffset(e,r||i))}Ia.fn=Sa.prototype,Ia.invalid=function(){return Ia(NaN)};var Va=Ua(1,"add"),Ka=Ua(-1,"subtract");function Ja(e){return"string"==typeof e||e instanceof String}function Qa(e){return L(e)||l(e)||Ja(e)||d(e)||function(e){var a=c(e),n=!1;return a&&(n=0===e.filter((function(a){return!d(a)&&Ja(e)})).length),a&&n}(e)||function(e){var a,n=i(e)&&!M(e),t=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(a=0;a<o.length;a+=1)t=t||s(e,o[a]);return n&&t}(e)||null==e}function Za(e){var a,n=i(e)&&!M(e),t=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(a=0;a<o.length;a+=1)t=t||s(e,o[a]);return n&&t}function $a(e,a){if(e.date()<a.date())return-$a(a,e);var n=12*(a.year()-e.year())+(a.month()-e.month()),t=e.clone().add(n,"months");return-(n+(a-t<0?(a-t)/(t-e.clone().add(n-1,"months")):(a-t)/(e.clone().add(n+1,"months")-t)))||0}function en(e){var a;return void 0===e?this._locale._abbr:(null!=(a=Ma(e))&&(this._locale=a),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var an=q("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)}));function nn(){return this._locale}var tn=1e3,on=6e4,cn=36e5,rn=126227808e5;function sn(e,a){return(e%a+a)%a}function Mn(e,a,n){return e<100&&e>=0?new Date(e+400,a,n)-rn:new Date(e,a,n).valueOf()}function un(e,a,n){return e<100&&e>=0?Date.UTC(e+400,a,n)-rn:Date.UTC(e,a,n)}function dn(e,a){return a.erasAbbrRegex(e)}function ln(){var e,a,n=[],t=[],o=[],c=[],r=this.eras();for(e=0,a=r.length;e<a;++e)t.push(Ae(r[e].name)),n.push(Ae(r[e].abbr)),o.push(Ae(r[e].narrow)),c.push(Ae(r[e].name)),c.push(Ae(r[e].abbr)),c.push(Ae(r[e].narrow));this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function pn(e,a){E(0,[e,e.length],0,a)}function mn(e,a,n,t,o){var c;return null==e?Pe(this,t,o).year:(a>(c=xe(e,t,o))&&(a=c),bn.call(this,e,a,n,t,o))}function bn(e,a,n,t,o){var c=Re(e,a,n,t,o),r=ke(c.year,0,c.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),be("N",dn),be("NN",dn),be("NNN",dn),be("NNNN",(function(e,a){return a.erasNameRegex(e)})),be("NNNNN",(function(e,a){return a.erasNarrowRegex(e)})),ze(["N","NN","NNN","NNNN","NNNNN"],(function(e,a,n,t){var o=n._locale.erasParse(e,t,n._strict);o?f(n).era=o:f(n).invalidEra=e})),be("y",ue),be("yy",ue),be("yyy",ue),be("yyyy",ue),be("yo",(function(e,a){return a._eraYearOrdinalRegex||ue})),ze(["y","yy","yyy","yyyy"],0),ze(["yo"],(function(e,a,n,t){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?a[0]=n._locale.eraYearOrdinalParse(e,o):a[0]=parseInt(e,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),pn("gggg","weekYear"),pn("ggggg","weekYear"),pn("GGGG","isoWeekYear"),pn("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),G("weekYear",1),G("isoWeekYear",1),be("G",de),be("g",de),be("GG",oe,ee),be("gg",oe,ee),be("GGGG",se,ne),be("gggg",se,ne),be("GGGGG",Me,te),be("ggggg",Me,te),Oe(["gggg","ggggg","GGGG","GGGGG"],(function(e,a,n,t){a[t.substr(0,2)]=V(e)})),Oe(["gg","GG"],(function(e,a,n,t){a[t]=o.parseTwoDigitYear(e)})),E("Q",0,"Qo","quarter"),j("quarter","Q"),G("quarter",7),be("Q",$),ze("Q",(function(e,a){a[1]=3*(V(e)-1)})),E("D",["DD",2],"Do","date"),j("date","D"),G("date",9),be("D",oe),be("DD",oe,ee),be("Do",(function(e,a){return e?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient})),ze(["D","DD"],2),ze("Do",(function(e,a){a[2]=V(e.match(oe)[0])}));var fn=K("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),G("dayOfYear",4),be("DDD",ie),be("DDDD",ae),ze(["DDD","DDDD"],(function(e,a,n){n._dayOfYear=V(e)})),E("m",["mm",2],0,"minute"),j("minute","m"),G("minute",14),be("m",oe),be("mm",oe,ee),ze(["m","mm"],4);var An=K("Minutes",!1);E("s",["ss",2],0,"second"),j("second","s"),G("second",15),be("s",oe),be("ss",oe,ee),ze(["s","ss"],5);var yn,hn,zn=K("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),j("millisecond","ms"),G("millisecond",16),be("S",ie,$),be("SS",ie,ee),be("SSS",ie,ae),yn="SSSS";yn.length<=9;yn+="S")be(yn,ue);function On(e,a){a[6]=V(1e3*("0."+e))}for(yn="S";yn.length<=9;yn+="S")ze(yn,On);hn=K("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var Nn=N.prototype;function Ln(e){return e}Nn.add=Va,Nn.calendar=function(e,a){1===arguments.length&&(arguments[0]?Qa(arguments[0])?(e=arguments[0],a=void 0):Za(arguments[0])&&(a=arguments[0],e=void 0):(e=void 0,a=void 0));var n=e||ga(),t=Ra(n,this).startOf("day"),c=o.calendarFormat(this,t)||"sameElse",r=a&&(T(a[c])?a[c].call(this,n):a[c]);return this.format(r||this.localeData().calendar(c,this,ga(n)))},Nn.clone=function(){return new N(this)},Nn.diff=function(e,a,n){var t,o,c;if(!this.isValid())return NaN;if(!(t=Ra(e,this)).isValid())return NaN;switch(o=6e4*(t.utcOffset()-this.utcOffset()),a=H(a)){case"year":c=$a(this,t)/12;break;case"month":c=$a(this,t);break;case"quarter":c=$a(this,t)/3;break;case"second":c=(this-t)/1e3;break;case"minute":c=(this-t)/6e4;break;case"hour":c=(this-t)/36e5;break;case"day":c=(this-t-o)/864e5;break;case"week":c=(this-t-o)/6048e5;break;default:c=this-t}return n?c:Y(c)},Nn.endOf=function(e){var a,n;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?un:Mn,e){case"year":a=n(this.year()+1,0,1)-1;break;case"quarter":a=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=n(this.year(),this.month()+1,1)-1;break;case"week":a=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=cn-sn(a+(this._isUTC?0:this.utcOffset()*on),cn)-1;break;case"minute":a=this._d.valueOf(),a+=on-sn(a,on)-1;break;case"second":a=this._d.valueOf(),a+=tn-sn(a,tn)-1}return this._d.setTime(a),o.updateOffset(this,!0),this},Nn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var a=R(this,e);return this.localeData().postformat(a)},Nn.from=function(e,a){return this.isValid()&&(L(e)&&e.isValid()||ga(e).isValid())?Ia({to:this,from:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()},Nn.fromNow=function(e){return this.from(ga(),e)},Nn.to=function(e,a){return this.isValid()&&(L(e)&&e.isValid()||ga(e).isValid())?Ia({from:this,to:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()},Nn.toNow=function(e){return this.to(ga(),e)},Nn.get=function(e){return T(this[e=H(e)])?this[e]():this},Nn.invalidAt=function(){return f(this).overflow},Nn.isAfter=function(e,a){var n=L(e)?e:ga(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(a=H(a)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(a).valueOf())},Nn.isBefore=function(e,a){var n=L(e)?e:ga(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(a=H(a)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(a).valueOf()<n.valueOf())},Nn.isBetween=function(e,a,n,t){var o=L(e)?e:ga(e),c=L(a)?a:ga(a);return!!(this.isValid()&&o.isValid()&&c.isValid())&&("("===(t=t||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===t[1]?this.isBefore(c,n):!this.isAfter(c,n))},Nn.isSame=function(e,a){var n,t=L(e)?e:ga(e);return!(!this.isValid()||!t.isValid())&&("millisecond"===(a=H(a)||"millisecond")?this.valueOf()===t.valueOf():(n=t.valueOf(),this.clone().startOf(a).valueOf()<=n&&n<=this.clone().endOf(a).valueOf()))},Nn.isSameOrAfter=function(e,a){return this.isSame(e,a)||this.isAfter(e,a)},Nn.isSameOrBefore=function(e,a){return this.isSame(e,a)||this.isBefore(e,a)},Nn.isValid=function(){return A(this)},Nn.lang=an,Nn.locale=en,Nn.localeData=nn,Nn.max=Ta,Nn.min=Wa,Nn.parsingFlags=function(){return m({},f(this))},Nn.set=function(e,a){if("object"===r(e)){var n,t=function(e){var a,n=[];for(a in e)s(e,a)&&n.push({unit:a,priority:F[a]});return n.sort((function(e,a){return e.priority-a.priority})),n}(e=I(e));for(n=0;n<t.length;n++)this[t[n].unit](e[t[n].unit])}else if(T(this[e=H(e)]))return this[e](a);return this},Nn.startOf=function(e){var a,n;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?un:Mn,e){case"year":a=n(this.year(),0,1);break;case"quarter":a=n(this.year(),this.month()-this.month()%3,1);break;case"month":a=n(this.year(),this.month(),1);break;case"week":a=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=n(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=sn(a+(this._isUTC?0:this.utcOffset()*on),cn);break;case"minute":a=this._d.valueOf(),a-=sn(a,on);break;case"second":a=this._d.valueOf(),a-=sn(a,tn)}return this._d.setTime(a),o.updateOffset(this,!0),this},Nn.subtract=Ka,Nn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Nn.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()}},Nn.toDate=function(){return new Date(this.valueOf())},Nn.toISOString=function(e){if(!this.isValid())return null;var a=!0!==e,n=a?this.clone().utc():this;return n.year()<0||n.year()>9999?R(n,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(n,"Z")):R(n,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Nn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,a,n,t="moment",o="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+t+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+a+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Nn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Nn.toJSON=function(){return this.isValid()?this.toISOString():null},Nn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Nn.unix=function(){return Math.floor(this.valueOf()/1e3)},Nn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Nn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Nn.eraName=function(){var e,a,n,t=this.localeData().eras();for(e=0,a=t.length;e<a;++e){if(n=this.clone().startOf("day").valueOf(),t[e].since<=n&&n<=t[e].until)return t[e].name;if(t[e].until<=n&&n<=t[e].since)return t[e].name}return""},Nn.eraNarrow=function(){var e,a,n,t=this.localeData().eras();for(e=0,a=t.length;e<a;++e){if(n=this.clone().startOf("day").valueOf(),t[e].since<=n&&n<=t[e].until)return t[e].narrow;if(t[e].until<=n&&n<=t[e].since)return t[e].narrow}return""},Nn.eraAbbr=function(){var e,a,n,t=this.localeData().eras();for(e=0,a=t.length;e<a;++e){if(n=this.clone().startOf("day").valueOf(),t[e].since<=n&&n<=t[e].until)return t[e].abbr;if(t[e].until<=n&&n<=t[e].since)return t[e].abbr}return""},Nn.eraYear=function(){var e,a,n,t,c=this.localeData().eras();for(e=0,a=c.length;e<a;++e)if(n=c[e].since<=c[e].until?1:-1,t=this.clone().startOf("day").valueOf(),c[e].since<=t&&t<=c[e].until||c[e].until<=t&&t<=c[e].since)return(this.year()-o(c[e].since).year())*n+c[e].offset;return this.year()},Nn.year=we,Nn.isLeapYear=function(){return U(this.year())},Nn.weekYear=function(e){return mn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Nn.isoWeekYear=function(e){return mn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Nn.quarter=Nn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Nn.month=De,Nn.daysInMonth=function(){return Le(this.year(),this.month())},Nn.week=Nn.weeks=function(e){var a=this.localeData().week(this);return null==e?a