UNPKG

flo-utils

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