UNPKG

json-schema-remote

Version:

Node.js module to validate JSON objects against a JSON Schema, including remote references ($ref)

1 lines 834 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.validator=t():e.validator=t()}(window,(function(){return function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=174)}([function(e,t,a){(function(e){e.exports=function(){"use strict";var t,r;function n(){return t.apply(null,arguments)}function s(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 o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function u(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function _(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,t){var a,r=[];for(a=0;a<e.length;++a)r.push(t(e[a],a));return r}function c(e,t){for(var a in t)o(t,a)&&(e[a]=t[a]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,a,r){return wt(e,t,a,r,!0).utc()}function h(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 M(e){if(null==e._isValid){var t=h(e),a=r.call(t.parsedDateParts,(function(e){return null!=e})),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function p(e){var t=f(NaN);return null!=e?c(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,a=Object(this),r=a.length>>>0;for(t=0;t<r;t++)if(t in a&&e.call(this,a[t],t,a))return!0;return!1};var y=n.momentProperties=[],L=!1;function Y(e,t){var a,r,n;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=h(t)),u(t._locale)||(e._locale=t._locale),y.length>0)for(a=0;a<y.length;a++)u(n=t[r=y[a]])||(e[r]=n);return e}function v(e){Y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===L&&(L=!0,n.updateOffset(this),L=!1)}function g(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function k(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var a=!0;return c((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),a){var r,s,i,d=[];for(s=0;s<arguments.length;s++){if(r="","object"==typeof arguments[s]){for(i in r+="\n["+s+"] ",arguments[0])o(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[s];d.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(d).join("")+"\n"+(new Error).stack),a=!1}return t.apply(this,arguments)}),t)}var w,T={};function b(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),T[e]||(k(t),T[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e,t){var a,r=c({},e);for(a in t)o(t,a)&&(i(e[a])&&i(t[a])?(r[a]={},c(r[a],e[a]),c(r[a],t[a])):null!=t[a]?r[a]=t[a]:delete r[a]);for(a in e)o(e,a)&&!o(t,a)&&i(e[a])&&(r[a]=c({},r[a]));return r}function j(e){null!=e&&this.set(e)}function H(e,t,a){var r=""+Math.abs(e),n=t-r.length;return(e>=0?a?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+r}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,w=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)o(e,t)&&a.push(t);return a};var O=/(\[[^\[]*\])|(\\)?([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,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},E={};function F(e,t,a,r){var n=r;"string"==typeof r&&(n=function(){return this[r]()}),e&&(E[e]=n),t&&(E[t[0]]=function(){return H(n.apply(this,arguments),t[1],t[2])}),a&&(E[a]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function $(e,t){return e.isValid()?(t=W(t,e.localeData()),P[t]=P[t]||function(e){var t,a,r,n=e.match(O);for(t=0,a=n.length;t<a;t++)E[n[t]]?n[t]=E[n[t]]:n[t]=(r=n[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,s="";for(r=0;r<a;r++)s+=S(n[r])?n[r].call(t,e):n[r];return s}}(t),P[t](e)):e.localeData().invalidDate()}function W(e,t){var a=5;function r(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;a>=0&&A.test(e);)e=e.replace(A,r),A.lastIndex=0,a-=1;return e}var R={};function N(e,t){var a=e.toLowerCase();R[a]=R[a+"s"]=R[t]=e}function I(e){return"string"==typeof e?R[e]||R[e.toLowerCase()]:void 0}function z(e){var t,a,r={};for(a in e)o(e,a)&&(t=I(a))&&(r[t]=e[a]);return r}var C={};function U(e,t){C[e]=t}function J(e){return e%4==0&&e%100!=0||e%400==0}function Z(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=+e,a=0;return 0!==t&&isFinite(t)&&(a=Z(t)),a}function B(e,t){return function(a){return null!=a?(V(this,e,a),n.updateOffset(this,t),this):K(this,e)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function V(e,t,a){e.isValid()&&!isNaN(a)&&("FullYear"===t&&J(e.year())&&1===e.month()&&29===e.date()?(a=G(a),e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),ge(a,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](a))}var q,X=/\d/,Q=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ae=/[+-]?\d{6}/,re=/\d\d?/,ne=/\d\d\d\d?/,se=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,oe=/\d{1,4}/,de=/[+-]?\d{1,6}/,ue=/\d+/,le=/[+-]?\d+/,_e=/Z|[+-]\d\d:?\d\d/gi,me=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[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 fe(e,t,a){q[e]=S(t)?t:function(e,r){return e&&a?a:t}}function he(e,t){return o(q,e)?q[e](t._strict,t._locale):new RegExp(Me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,a,r,n){return t||a||r||n}))))}function Me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}q={};var pe,ye={};function Le(e,t){var a,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,a){a[t]=G(e)}),a=0;a<e.length;a++)ye[e[a]]=r}function Ye(e,t){Le(e,(function(e,a,r,n){r._w=r._w||{},t(e,r._w,r,n)}))}function ve(e,t,a){null!=t&&o(ye,e)&&ye[e](t,a._a,a,e)}function ge(e,t){if(isNaN(e)||isNaN(t))return NaN;var a,r=(t%(a=12)+a)%a;return e+=(t-r)/12,1===r?J(e)?29:28:31-r%7%2}pe=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},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),F("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),N("month","M"),U("month",8),fe("M",re),fe("MM",re,Q),fe("MMM",(function(e,t){return t.monthsShortRegex(e)})),fe("MMMM",(function(e,t){return t.monthsRegex(e)})),Le(["M","MM"],(function(e,t){t[1]=G(e)-1})),Le(["MMM","MMMM"],(function(e,t,a,r){var n=a._locale.monthsParse(e,r,a._strict);null!=n?t[1]=n:h(a).invalidMonth=e}));var ke="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),we=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Te=ce,be=ce;function Se(e,t,a){var r,n,s,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return a?"MMM"===t?-1!==(n=pe.call(this._shortMonthsParse,i))?n:null:-1!==(n=pe.call(this._longMonthsParse,i))?n:null:"MMM"===t?-1!==(n=pe.call(this._shortMonthsParse,i))||-1!==(n=pe.call(this._longMonthsParse,i))?n:null:-1!==(n=pe.call(this._longMonthsParse,i))||-1!==(n=pe.call(this._shortMonthsParse,i))?n:null}function xe(e,t){var a;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=G(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return a=Math.min(e.date(),ge(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a),e}function je(e){return null!=e?(xe(this,e),n.updateOffset(this,!0),this):K(this,"Month")}function He(){function e(e,t){return t.length-e.length}var t,a,r=[],n=[],s=[];for(t=0;t<12;t++)a=f([2e3,t]),r.push(this.monthsShort(a,"")),n.push(this.months(a,"")),s.push(this.months(a,"")),s.push(this.monthsShort(a,""));for(r.sort(e),n.sort(e),s.sort(e),t=0;t<12;t++)r[t]=Me(r[t]),n[t]=Me(n[t]);for(t=0;t<24;t++)s[t]=Me(s[t]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Oe(e){return J(e)?366:365}F("Y",0,0,(function(){var e=this.year();return e<=9999?H(e,4):"+"+e})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),N("year","y"),U("year",1),fe("Y",le),fe("YY",re,Q),fe("YYYY",oe,te),fe("YYYYY",de,ae),fe("YYYYYY",de,ae),Le(["YYYYY","YYYYYY"],0),Le("YYYY",(function(e,t){t[0]=2===e.length?n.parseTwoDigitYear(e):G(e)})),Le("YY",(function(e,t){t[0]=n.parseTwoDigitYear(e)})),Le("Y",(function(e,t){t[0]=parseInt(e,10)})),n.parseTwoDigitYear=function(e){return G(e)+(G(e)>68?1900:2e3)};var Ae=B("FullYear",!0);function Pe(e,t,a,r,n,s,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,a,r,n,s,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,a,r,n,s,i),o}function Ee(e){var t,a;return e<100&&e>=0?((a=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,a){var r=7+t-a;return-(7+Ee(e,0,r).getUTCDay()-t)%7+r-1}function $e(e,t,a,r,n){var s,i,o=1+7*(t-1)+(7+a-r)%7+Fe(e,r,n);return o<=0?i=Oe(s=e-1)+o:o>Oe(e)?(s=e+1,i=o-Oe(e)):(s=e,i=o),{year:s,dayOfYear:i}}function We(e,t,a){var r,n,s=Fe(e.year(),t,a),i=Math.floor((e.dayOfYear()-s-1)/7)+1;return i<1?r=i+Re(n=e.year()-1,t,a):i>Re(e.year(),t,a)?(r=i-Re(e.year(),t,a),n=e.year()+1):(n=e.year(),r=i),{week:r,year:n}}function Re(e,t,a){var r=Fe(e,t,a),n=Fe(e+1,t,a);return(Oe(e)-r+n)/7}function Ne(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),U("week",5),U("isoWeek",5),fe("w",re),fe("ww",re,Q),fe("W",re),fe("WW",re,Q),Ye(["w","ww","W","WW"],(function(e,t,a,r){t[r.substr(0,1)]=G(e)})),F("d",0,"do","day"),F("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),F("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),F("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),fe("d",re),fe("e",re),fe("E",re),fe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),fe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),fe("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ye(["dd","ddd","dddd"],(function(e,t,a,r){var n=a._locale.weekdaysParse(e,r,a._strict);null!=n?t.d=n:h(a).invalidWeekday=e})),Ye(["d","e","E"],(function(e,t,a,r){t[r]=G(e)}));var Ie="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ce="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=ce,Je=ce,Ze=ce;function Ge(e,t,a){var r,n,s,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return a?"dddd"===t?-1!==(n=pe.call(this._weekdaysParse,i))?n:null:"ddd"===t?-1!==(n=pe.call(this._shortWeekdaysParse,i))?n:null:-1!==(n=pe.call(this._minWeekdaysParse,i))?n:null:"dddd"===t?-1!==(n=pe.call(this._weekdaysParse,i))||-1!==(n=pe.call(this._shortWeekdaysParse,i))||-1!==(n=pe.call(this._minWeekdaysParse,i))?n:null:"ddd"===t?-1!==(n=pe.call(this._shortWeekdaysParse,i))||-1!==(n=pe.call(this._weekdaysParse,i))||-1!==(n=pe.call(this._minWeekdaysParse,i))?n:null:-1!==(n=pe.call(this._minWeekdaysParse,i))||-1!==(n=pe.call(this._weekdaysParse,i))||-1!==(n=pe.call(this._shortWeekdaysParse,i))?n:null}function Be(){function e(e,t){return t.length-e.length}var t,a,r,n,s,i=[],o=[],d=[],u=[];for(t=0;t<7;t++)a=f([2e3,1]).day(t),r=Me(this.weekdaysMin(a,"")),n=Me(this.weekdaysShort(a,"")),s=Me(this.weekdays(a,"")),i.push(r),o.push(n),d.push(s),u.push(r),u.push(n),u.push(s);i.sort(e),o.sort(e),d.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Ve(e,t){F(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function qe(e,t){return t._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Ke),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+Ke.apply(this)+H(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Ke.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+H(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)})),Ve("a",!0),Ve("A",!1),N("hour","h"),U("hour",13),fe("a",qe),fe("A",qe),fe("H",re),fe("h",re),fe("k",re),fe("HH",re,Q),fe("hh",re,Q),fe("kk",re,Q),fe("hmm",ne),fe("hmmss",se),fe("Hmm",ne),fe("Hmmss",se),Le(["H","HH"],3),Le(["k","kk"],(function(e,t,a){var r=G(e);t[3]=24===r?0:r})),Le(["a","A"],(function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e})),Le(["h","hh"],(function(e,t,a){t[3]=G(e),h(a).bigHour=!0})),Le("hmm",(function(e,t,a){var r=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r)),h(a).bigHour=!0})),Le("hmmss",(function(e,t,a){var r=e.length-4,n=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r,2)),t[5]=G(e.substr(n)),h(a).bigHour=!0})),Le("Hmm",(function(e,t,a){var r=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r))})),Le("Hmmss",(function(e,t,a){var r=e.length-4,n=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r,2)),t[5]=G(e.substr(n))}));var Xe,Qe=B("Hours",!0),et={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:ke,monthsShort:De,week:{dow:0,doy:6},weekdays:Ie,weekdaysMin:Ce,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},tt={},at={};function rt(e,t){var a,r=Math.min(e.length,t.length);for(a=0;a<r;a+=1)if(e[a]!==t[a])return a;return r}function nt(e){return e?e.toLowerCase().replace("_","-"):e}function st(t){var r=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports)try{r=Xe._abbr,a(230)("./"+t),it(r)}catch(e){tt[t]=null}return tt[t]}function it(e,t){var a;return e&&((a=u(t)?dt(e):ot(e,t))?Xe=a:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function ot(e,t){if(null!==t){var a,r=et;if(t.abbr=e,null!=tt[e])b("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."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(a=st(t.parentLocale)))return at[t.parentLocale]||(at[t.parentLocale]=[]),at[t.parentLocale].push({name:e,config:t}),null;r=a._config}return tt[e]=new j(x(r,t)),at[e]&&at[e].forEach((function(e){ot(e.name,e.config)})),it(e),tt[e]}return delete tt[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!s(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,a,r,n,s=0;s<e.length;){for(t=(n=nt(e[s]).split("-")).length,a=(a=nt(e[s+1]))?a.split("-"):null;t>0;){if(r=st(n.slice(0,t).join("-")))return r;if(a&&a.length>=t&&rt(n,a)>=t-1)break;t--}s++}return Xe}(e)}function ut(e){var t,a=e._a;return a&&-2===h(e).overflow&&(t=a[1]<0||a[1]>11?1:a[2]<1||a[2]>ge(a[0],a[1])?2:a[3]<0||a[3]>24||24===a[3]&&(0!==a[4]||0!==a[5]||0!==a[6])?3:a[4]<0||a[4]>59?4:a[5]<0||a[5]>59?5:a[6]<0||a[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var lt=/^\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)?)?$/,_t=/^\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)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,ct=[["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]],ft=[["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/]],ht=/^\/?Date\((-?\d+)/i,Mt=/^(?:(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}))$/,pt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,a,r,n,s,i,o=e._i,d=lt.exec(o)||_t.exec(o);if(d){for(h(e).iso=!0,t=0,a=ct.length;t<a;t++)if(ct[t][1].exec(d[1])){n=ct[t][0],r=!1!==ct[t][2];break}if(null==n)return void(e._isValid=!1);if(d[3]){for(t=0,a=ft.length;t<a;t++)if(ft[t][1].exec(d[3])){s=(d[2]||" ")+ft[t][0];break}if(null==s)return void(e._isValid=!1)}if(!r&&null!=s)return void(e._isValid=!1);if(d[4]){if(!mt.exec(d[4]))return void(e._isValid=!1);i="Z"}e._f=n+(s||"")+(i||""),kt(e)}else e._isValid=!1}function Lt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Yt(e){var t,a,r,n,s,i,o,d,u=Mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(a=u[4],r=u[3],n=u[2],s=u[5],i=u[6],o=u[7],d=[Lt(a),De.indexOf(r),parseInt(n,10),parseInt(s,10),parseInt(i,10)],o&&d.push(parseInt(o,10)),t=d,!function(e,t,a){return!e||ze.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(a).weekdayMismatch=!0,a._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,a){if(e)return pt[e];if(t)return 0;var r=parseInt(a,10),n=r%100;return(r-n)/100*60+n}(u[8],u[9],u[10]),e._d=Ee.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function vt(e,t,a){return null!=e?e:null!=t?t:a}function gt(e){var t,a,r,s,i,o=[];if(!e._d){for(r=function(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,a,r,n,s,i,o,d,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(s=1,i=4,a=vt(t.GG,e._a[0],We(Tt(),1,4).year),r=vt(t.W,1),((n=vt(t.E,1))<1||n>7)&&(d=!0)):(s=e._locale._week.dow,i=e._locale._week.doy,u=We(Tt(),s,i),a=vt(t.gg,e._a[0],u.year),r=vt(t.w,u.week),null!=t.d?((n=t.d)<0||n>6)&&(d=!0):null!=t.e?(n=t.e+s,(t.e<0||t.e>6)&&(d=!0)):n=s),r<1||r>Re(a,s,i)?h(e)._overflowWeeks=!0:null!=d?h(e)._overflowWeekday=!0:(o=$e(a,r,n,s,i),e._a[0]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(i=vt(e._a[0],r[0]),(e._dayOfYear>Oe(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),a=Ee(i,0,e._dayOfYear),e._a[1]=a.getUTCMonth(),e._a[2]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];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?Ee:Pe).apply(null,o),s=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!==s&&(h(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],h(e).empty=!0;var t,a,r,s,i,o,d=""+e._i,u=d.length,l=0;for(r=W(e._f,e._locale).match(O)||[],t=0;t<r.length;t++)s=r[t],(a=(d.match(he(s,e))||[])[0])&&((i=d.substr(0,d.indexOf(a))).length>0&&h(e).unusedInput.push(i),d=d.slice(d.indexOf(a)+a.length),l+=a.length),E[s]?(a?h(e).empty=!1:h(e).unusedTokens.push(s),ve(s,a,e)):e._strict&&!a&&h(e).unusedTokens.push(s);h(e).charsLeftOver=u-l,d.length>0&&h(e).unusedInput.push(d),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,a){var r;return null==a?t:null!=e.meridiemHour?e.meridiemHour(t,a):null!=e.isPM?((r=e.isPM(a))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(o=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(o,e._a[0])),gt(e),ut(e)}else Yt(e);else yt(e)}function Dt(e){var t=e._i,a=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===a&&""===t?p({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),g(t)?new v(ut(t)):(_(t)?e._d=t:s(a)?function(e){var t,a,r,n,s,i,o=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(n=0;n<e._f.length;n++)s=0,i=!1,t=Y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],kt(t),M(t)&&(i=!0),s+=h(t).charsLeftOver,s+=10*h(t).unusedTokens.length,h(t).score=s,o?s<r&&(r=s,a=t):(null==r||s<r||i)&&(r=s,a=t,i&&(o=!0));c(e,a||t)}(e):a?kt(e):function(e){var t=e._i;u(t)?e._d=new Date(n.now()):_(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=ht.exec(e._i);null===t?(yt(e),!1===e._isValid&&(delete e._isValid,Yt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:n.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):s(t)?(e._a=m(t.slice(0),(function(e){return parseInt(e,10)})),gt(e)):i(t)?function(e){if(!e._d){var t=z(e._i),a=void 0===t.day?t.date:t.day;e._a=m([t.year,t.month,a,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),gt(e)}}(e):l(t)?e._d=new Date(t):n.createFromInputFallback(e)}(e),M(e)||(e._d=null),e))}function wt(e,t,a,r,n){var o,u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==a&&!1!==a||(r=a,a=void 0),(i(e)&&d(e)||s(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=n,u._l=a,u._i=e,u._f=t,u._strict=r,(o=new v(ut(Dt(u))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Tt(e,t,a,r){return wt(e,t,a,r,!1)}n.createFromInputFallback=D("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":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var bt=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()})),St=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()}));function xt(e,t){var a,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Tt();for(a=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](a)||(a=t[r]);return a}var jt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ht(e){var t=z(e),a=t.year||0,r=t.quarter||0,n=t.month||0,s=t.week||t.isoWeek||0,i=t.day||0,d=t.hour||0,u=t.minute||0,l=t.second||0,_=t.millisecond||0;this._isValid=function(e){var t,a,r=!1;for(t in e)if(o(e,t)&&(-1===pe.call(jt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(a=0;a<jt.length;++a)if(e[jt[a]]){if(r)return!1;parseFloat(e[jt[a]])!==G(e[jt[a]])&&(r=!0)}return!0}(t),this._milliseconds=+_+1e3*l+6e4*u+1e3*d*60*60,this._days=+i+7*s,this._months=+n+3*r+12*a,this._data={},this._locale=dt(),this._bubble()}function Ot(e){return e instanceof Ht}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){F(e,0,0,(function(){var e=this.utcOffset(),a="+";return e<0&&(e=-e,a="-"),a+H(~~(e/60),2)+t+H(~~e%60,2)}))}Pt("Z",":"),Pt("ZZ",""),fe("Z",me),fe("ZZ",me),Le(["Z","ZZ"],(function(e,t,a){a._useUTC=!0,a._tzm=Ft(me,e)}));var Et=/([\+\-]|\d\d)/gi;function Ft(e,t){var a,r,n=(t||"").match(e);return null===n?null:0===(r=60*(a=((n[n.length-1]||[])+"").match(Et)||["-",0,0])[1]+G(a[2]))?0:"+"===a[0]?r:-r}function $t(e,t){var a,r;return t._isUTC?(a=t.clone(),r=(g(e)||_(e)?e.valueOf():Tt(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+r),n.updateOffset(a,!1),a):Tt(e).local()}function Wt(e){return-Math.round(e._d.getTimezoneOffset())}function Rt(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Nt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,It=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zt(e,t){var a,r,n,s,i,d,u=e,_=null;return Ot(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(_=Nt.exec(e))?(a="-"===_[1]?-1:1,u={y:0,d:G(_[2])*a,h:G(_[3])*a,m:G(_[4])*a,s:G(_[5])*a,ms:G(At(1e3*_[6]))*a}):(_=It.exec(e))?(a="-"===_[1]?-1:1,u={y:Ct(_[2],a),M:Ct(_[3],a),w:Ct(_[4],a),d:Ct(_[5],a),h:Ct(_[6],a),m:Ct(_[7],a),s:Ct(_[8],a)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=Tt(u.from),i=Tt(u.to),n=s.isValid()&&i.isValid()?(i=$t(i,s),s.isBefore(i)?d=Ut(s,i):((d=Ut(i,s)).milliseconds=-d.milliseconds,d.months=-d.months),d):{milliseconds:0,months:0},(u={}).ms=n.milliseconds,u.M=n.months),r=new Ht(u),Ot(e)&&o(e,"_locale")&&(r._locale=e._locale),Ot(e)&&o(e,"_isValid")&&(r._isValid=e._isValid),r}function Ct(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function Ut(e,t){var a={};return a.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Jt(e,t){return function(a,r){var n;return null===r||isNaN(+r)||(b(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."),n=a,a=r,r=n),Zt(this,zt(a,r),e),this}}function Zt(e,t,a,r){var s=t._milliseconds,i=At(t._days),o=At(t._months);e.isValid()&&(r=null==r||r,o&&xe(e,K(e,"Month")+o*a),i&&V(e,"Date",K(e,"Date")+i*a),s&&e._d.setTime(e._d.valueOf()+s*a),r&&n.updateOffset(e,i||o))}zt.fn=Ht.prototype,zt.invalid=function(){return zt(NaN)};var Gt=Jt(1,"add"),Bt=Jt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Vt(e){return g(e)||_(e)||Kt(e)||l(e)||function(e){var t=s(e),a=!1;return t&&(a=0===e.filter((function(t){return!l(t)&&Kt(e)})).length),t&&a}(e)||function(e){var t,a,r=i(e)&&!d(e),n=!1,s=["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(t=0;t<s.length;t+=1)a=s[t],n=n||o(e,a);return r&&n}(e)||null==e}function qt(e){var t,a=i(e)&&!d(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<n.length;t+=1)r=r||o(e,n[t]);return a&&r}function Xt(e,t){if(e.date()<t.date())return-Xt(t,e);var a=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(a,"months");return-(a+(t-r<0?(t-r)/(r-e.clone().add(a-1,"months")):(t-r)/(e.clone().add(a+1,"months")-r)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ea=D("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 ta(){return this._locale}function aa(e,t){return(e%t+t)%t}function ra(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-126227808e5:new Date(e,t,a).valueOf()}function na(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-126227808e5:Date.UTC(e,t,a)}function sa(e,t){return t.erasAbbrRegex(e)}function ia(){var e,t,a=[],r=[],n=[],s=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(Me(i[e].name)),a.push(Me(i[e].abbr)),n.push(Me(i[e].narrow)),s.push(Me(i[e].name)),s.push(Me(i[e].abbr)),s.push(Me(i[e].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function oa(e,t){F(0,[e,e.length],0,t)}function da(e,t,a,r,n){var s;return null==e?We(this,r,n).year:(t>(s=Re(e,r,n))&&(t=s),ua.call(this,e,t,a,r,n))}function ua(e,t,a,r,n){var s=$e(e,t,a,r,n),i=Ee(s.year,0,s.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),fe("N",sa),fe("NN",sa),fe("NNN",sa),fe("NNNN",(function(e,t){return t.erasNameRegex(e)})),fe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),Le(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,a,r){var n=a._locale.erasParse(e,r,a._strict);n?h(a).era=n:h(a).invalidEra=e})),fe("y",ue),fe("yy",ue),fe("yyy",ue),fe("yyyy",ue),fe("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),Le(["y","yy","yyy","yyyy"],0),Le(["yo"],(function(e,t,a,r){var n;a._locale._eraYearOrdinalRegex&&(n=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[0]=a._locale.eraYearOrdinalParse(e,n):t[0]=parseInt(e,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),oa("gggg","weekYear"),oa("ggggg","weekYear"),oa("GGGG","isoWeekYear"),oa("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),fe("G",le),fe("g",le),fe("GG",re,Q),fe("gg",re,Q),fe("GGGG",oe,te),fe("gggg",oe,te),fe("GGGGG",de,ae),fe("ggggg",de,ae),Ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,a,r){t[r.substr(0,2)]=G(e)})),Ye(["gg","GG"],(function(e,t,a,r){t[r]=n.parseTwoDigitYear(e)})),F("Q",0,"Qo","quarter"),N("quarter","Q"),U("quarter",7),fe("Q",X),Le("Q",(function(e,t){t[1]=3*(G(e)-1)})),F("D",["DD",2],"Do","date"),N("date","D"),U("date",9),fe("D",re),fe("DD",re,Q),fe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Le(["D","DD"],2),Le("Do",(function(e,t){t[2]=G(e.match(re)[0])}));var la=B("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),U("dayOfYear",4),fe("DDD",ie),fe("DDDD",ee),Le(["DDD","DDDD"],(function(e,t,a){a._dayOfYear=G(e)})),F("m",["mm",2],0,"minute"),N("minute","m"),U("minute",14),fe("m",re),fe("mm",re,Q),Le(["m","mm"],4);var _a=B("Minutes",!1);F("s",["ss",2],0,"second"),N("second","s"),U("second",15),fe("s",re),fe("ss",re,Q),Le(["s","ss"],5);var ma,ca,fa=B("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),N("millisecond","ms"),U("millisecond",16),fe("S",ie,X),fe("SS",ie,Q),fe("SSS",ie,ee),ma="SSSS";ma.length<=9;ma+="S")fe(ma,ue);function ha(e,t){t[6]=G(1e3*("0."+e))}for(ma="S";ma.length<=9;ma+="S")Le(ma,ha);ca=B("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var Ma=v.prototype;function pa(e){return e}Ma.add=Gt,Ma.calendar=function(e,t){1===arguments.length&&(arguments[0]?Vt(arguments[0])?(e=arguments[0],t=void 0):qt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var a=e||Tt(),r=$t(a,this).startOf("day"),s=n.calendarFormat(this,r)||"sameElse",i=t&&(S(t[s])?t[s].call(this,a):t[s]);return this.format(i||this.localeData().calendar(s,this,Tt(a)))},Ma.clone=function(){return new v(this)},Ma.diff=function(e,t,a){var r,n,s;if(!this.isValid())return NaN;if(!(r=$t(e,this)).isValid())return NaN;switch(n=6e4*(r.utcOffset()-this.utcOffset()),t=I(t)){case"year":s=Xt(this,r)/12;break;case"month":s=Xt(this,r);break;case"quarter":s=Xt(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-n)/864e5;break;case"week":s=(this-r-n)/6048e5;break;default:s=this-r}return a?s:Z(s)},Ma.endOf=function(e){var t,a;if(void 0===(e=I(e))||"millisecond"===e||!this.isValid())return this;switch(a=this._isUTC?na:ra,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-aa(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-aa(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-aa(t,1e3)-1}return this._d.setTime(t),n.updateOffset(this,!0),this},Ma.format=function(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)},Ma.from=function(e,t){return this.isValid()&&(g(e)&&e.isValid()||Tt(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Ma.fromNow=function(e){return this.from(Tt(),e)},Ma.to=function(e,t){return this.isValid()&&(g(e)&&e.isValid()||Tt(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Ma.toNow=function(e){return this.to(Tt(),e)},Ma.get=function(e){return S(this[e=I(e)])?this[e]():this},Ma.invalidAt=function(){return h(this).overflow},Ma.isAfter=function(e,t){var a=g(e)?e:Tt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=I(t)||"millisecond")?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())},Ma.isBefore=function(e,t){var a=g(e)?e:Tt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=I(t)||"millisecond")?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())},Ma.isBetween=function(e,t,a,r){var n=g(e)?e:Tt(e),s=g(t)?t:Tt(t);return!!(this.isValid()&&n.isValid()&&s.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(n,a):!this.isBefore(n,a))&&(")"===r[1]?this.isBefore(s,a):!this.isAfter(s,a)))},Ma.isSame=function(e,t){var a,r=g(e)?e:Tt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=I(t)||"millisecond")?this.valueOf()===r.valueOf():(a=r.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))},Ma.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Ma.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Ma.isValid=function(){return M(this)},Ma.lang=ea,Ma.locale=Qt,Ma.localeData=ta,Ma.max=St,Ma.min=bt,Ma.parsingFlags=function(){return c({},h(this))},Ma.set=function(e,t){if("object"==typeof e){var a,r=function(e){var t,a=[];for(t in e)o(e,t)&&a.push({unit:t,priority:C[t]});return a.sort((function(e,t){return e.priority-t.priority})),a}(e=z(e));for(a=0;a<r.length;a++)this[r[a].unit](e[r[a].unit])}else if(S(this[e=I(e)]))return this[e](t);return this},Ma.startOf=function(e){var t,a;if(void 0===(e=I(e))||"millisecond"===e||!this.isValid())return this;switch(a=this._isUTC?na:ra,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=aa(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=aa(t,6e4);break;case"second":t=this._d.valueOf(),t-=aa(t,1e3)}return this._d.setTime(t),n.updateOffset(this,!0),this},Ma.subtract=Bt,Ma.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Ma.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()}},Ma.toDate=function(){return new Date(this.valueOf())},Ma.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?$(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(a,"Z")):$(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ma.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,a,r="moment",n="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=n+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+a)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Ma[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ma.toJSON=function(){return this.isValid()?this.toISOString():null},Ma.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ma.unix=function(){return Math.floor(this.valueOf()/1e3)},Ma.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ma.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ma.eraName=function(){var e,t,a,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),r[e].since<=a&&a<=r[e].until)return r[e].name;if(r[e].until<=a&&a<=r[e].since)return r[e].name}return""},Ma.eraNarrow=function(){var e,t,a,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),r[e].since<=a&&a<=r[e].until)return r[e].narrow;if(r[e].until<=a&&a<=r[e].since)return r[e].narrow}return""},Ma.eraAbbr=function(){var e,t,a,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),r[e].since<=a&&a<=r[e].until)return r[e].abbr;if(r[e].until<=a&&a<=r[e].since)return r[e].abbr}return""},Ma.eraYear=function(){var e,t,a,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(a=s[e].since<=s[e].until?1:-1,r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return(this.year()-n(s[e].since).year())*a+s[e].offset;return this.year()},Ma.year=Ae,Ma.isLeapYear=function(){return J(this.year())},Ma.weekYear=function(e){return da.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ma.isoWeekYear=function(e){return da.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Ma.quarter=Ma.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Ma.month=je,Ma.daysInMonth=function(){return ge(this.year(),this.month())},Ma.week=Ma.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Ma.isoWeek=Ma.isoWeeks=function(e){var t=We(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Ma.weeksInYear=function(){var e=this.localeData()._week;return Re(this.year(),e.dow,e.doy)},Ma.weeksInWeekYear=function(){var e=this.localeData()._week;return Re(this.weekYear(),e.dow,e.doy)},Ma.isoWeeksInYear=function(){return Re(this.year(),1,4)},Ma.isoWeeksInISOWeekYear=function(){return Re(this.isoWeekYear(),1,4)},Ma.date=la,Ma.day=Ma.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Ma.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Ma.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Ma.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Ma.hour=Ma.hours=Qe,Ma.minute=Ma.minutes=_a,Ma.second=Ma.seconds=fa,Ma.millisecond=Ma.milliseconds=ca,Ma.utcOffset=function(e,t,a){var r,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ft(me,e)))return this}else Math.abs(e)<16&&!a&&(e*=60);return!this._isUTC&&t&&(r=Wt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==e&&(!t||this._changeInProgress?Zt(this,zt(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:Wt(this)},Ma.utc=function(e){return this.utcOffset(0,e)},Ma.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Wt(this),"m")),this},Ma.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ft(_e,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Ma.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Ma.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ma.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ma.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ma.isUtc=Rt,Ma.isUTC=Rt,Ma.zoneAbbr=function(){return this._isUTC?"UTC":""},Ma.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ma.dates=D("dates accessor is deprecated. Use date instead.",la),Ma.months=D("months accessor is deprecated. Use month instead",je),Ma.years=D("years accessor is deprecated. Use year instead",Ae),Ma.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),Ma.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return Y(t,this),(t=Dt(t))._a?(e=t._isUTC?f(t._a):Tt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,a){var r,n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),i=0;for(r=0;r<n;r++)(a&&e[r]!==t[r]||!a&&G(e[r])!==G(t[r]))&&i++;return i+s}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var ya=j.prototype;function La(e,t,a,r){var n=dt(),s=f().set(r,t);return n[a](s,e)}function Ya(e,t,a){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return La(e,t,a,"month");var r,n=[];for(r=0;r<12;r++)n[r]=La(e,r,a,"month");return n}function va(e,t,a,r){"boolean"==typeof e?(l(t)&&(a=t,t=void 0),t=t||""):(a=t=e,e=!1,l(t)&&(a=t,t=void 0),t=t||"");var n,s=dt(),i=e?s._week.dow:0,o=[];if(null!=a)return La(t,(a+i)%7,r,"day");for(n=0;n<7;n++)o[n]=La(t,(n+i)%7,r,"day");return o}ya.calendar=function(e,t,a){var r=this._calendar[e]||this._calendar.sameElse;return S(r)?r.call(t,a):r},ya.longDateFormat=function(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(O).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},ya.invalidDate=function(){return this._invalidDate},ya.ordinal=function(e){return this._ordinal.replace("%d",e)},ya.preparse=pa,ya.postformat=pa,ya.relativeTime=function(e,t,a,r){var n=this._relativeTime[a];return S(n)?n(e,t,a,r):n.replace(/%d/i,e)},ya.pastFuture=function(e,t){var a=this._relativeTime[e>0?"future":"past"];return S(a)?a(t):a.replace(/%s/i,t)},ya.set=function(e){var t,a;for(a in e)o(e,a)&&(S(t=e[a])?this[a]=t:this["_"+a]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ya.eras=function(e,t){var a,r,s,i=this._eras||dt("en")._eras;for(a=0,r=i.length;a<r;++a){switch(typeof i[a].since){case"string":s=n(i[a].since).startOf("day"),i[a].since=s.valueOf()}switch(typeof i[a].until){case"undefined":i[a].until=1/0;break;case"string":s=n(i[a].until).startOf("day").valueOf(),i[a].until=s.valueOf()}}return i},ya.erasParse=function(e,t,a){var r,n,s,i,o,d=this.eras();for(e=e.toUpperCase(),r=0,n=d.length;r<n;++r)if(s=d[r].name.toUpperCase(),i=d[r].abbr.toUpperCase(),o=d[r].narrow.toUpperCase(),a)switch(t){case"N":case"NN":case"NNN":if(i===e)return d[r];break;case"NNNN":if(s===e)return d[r];break;case"NNNNN":if(o===e)return d[r]}else if([s,i,o].indexOf(e)>=0)return d[r]},ya.erasConvertYear=function(e,t){var a=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*a},ya.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||ia.call(this),e?this._erasAbbrRegex:this._erasRegex},ya.erasNameRegex=function(e){return o(this,"_erasNameRegex")||ia.call(this),e?this._erasNameRegex:this._erasRegex},ya.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||ia.call(this),e?this._erasNarrowRegex:this._erasRegex},ya.months=function(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||we).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},ya.monthsShort=function(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[we.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ya.monthsParse=function(e,t,a){var r,n,s;if(this._monthsParseExact)return Se.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=f([2e3,r]),a&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),a||this._monthsParse[r]||(s="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(s.replace(".