@htmlbricks/calendar-component
Version:
Svelte Calendar WebComponent
1 lines • 786 kB
JavaScript
var calendar=function(){"use strict";function e(){}function a(e){return e()}function n(){return Object.create(null)}function t(e){e.forEach(a)}function i(e){return"function"==typeof e}function r(e,a){return e!=e?a==a:e!==a||e&&"object"==typeof e||"function"==typeof e}function s(e,a){e.appendChild(a)}function o(e,a,n){e.insertBefore(a,n||null)}function c(e){e.parentNode.removeChild(e)}function d(e,a){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(a)}function m(e){return document.createElement(e)}function u(e){return document.createTextNode(e)}function l(){return u(" ")}function M(){return u("")}function y(e,a,n,t){return e.addEventListener(a,n,t),()=>e.removeEventListener(a,n,t)}function h(e,a,n){null==n?e.removeAttribute(a):e.getAttribute(a)!==n&&e.setAttribute(a,n)}function p(e,a){a=""+a,e.wholeText!==a&&(e.data=a)}function f(e,a,n,t){e.style.setProperty(a,n,t?"important":"")}function b(e){const a={};for(const n of e)a[n.name]=n.value;return a}let A;function z(e){A=e}function _(){if(!A)throw new Error("Function called outside component initialization");return A}function g(){const e=_();return(a,n)=>{const t=e.$$.callbacks[a];if(t){const i=function(e,a,n=!1){const t=document.createEvent("CustomEvent");return t.initCustomEvent(e,n,!1,a),t}(a,n);t.slice().forEach((a=>{a.call(e,i)}))}}}const D=[],N=[],v=[],O=[],L=Promise.resolve();let S=!1;function q(e){v.push(e)}const T=new Set;let B=0;function W(){const e=A;do{for(;B<D.length;){const e=D[B];B++,z(e),w(e.$$)}for(z(null),D.length=0,B=0;N.length;)N.pop()();for(let e=0;e<v.length;e+=1){const a=v[e];T.has(a)||(T.add(a),a())}v.length=0}while(D.length);for(;O.length;)O.pop()();S=!1,T.clear(),z(e)}function w(e){if(null!==e.fragment){e.update(),t(e.before_update);const a=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,a),e.after_update.forEach(q)}}const C=new Set;function k(e,a){e&&e.i&&(C.delete(e),e.i(a))}function X(e,a){e.d(1),a.delete(e.key)}function R(e,a,n,t,i,r,s,o,c,d,m,u){let l=e.length,M=r.length,y=l;const h={};for(;y--;)h[e[y].key]=y;const p=[],f=new Map,b=new Map;for(y=M;y--;){const e=u(i,r,y),o=n(e);let c=s.get(o);c?t&&c.p(e,a):(c=d(o,e),c.c()),f.set(o,p[y]=c),o in h&&b.set(o,Math.abs(y-h[o]))}const A=new Set,z=new Set;function _(e){k(e,1),e.m(o,m),s.set(e.key,e),m=e.first,M--}for(;l&&M;){const a=p[M-1],n=e[l-1],t=a.key,i=n.key;a===n?(m=a.first,l--,M--):f.has(i)?!s.has(t)||A.has(t)?_(a):z.has(i)?l--:b.get(t)>b.get(i)?(z.add(t),_(a)):(A.add(i),l--):(c(n,s),l--)}for(;l--;){const a=e[l];f.has(a.key)||c(a,s)}for(;M;)_(p[M-1]);return p}function E(e,a){-1===e.$$.dirty[0]&&(D.push(e),S||(S=!0,L.then(W)),e.$$.dirty.fill(0)),e.$$.dirty[a/31|0]|=1<<a%31}function P(r,s,o,d,m,u,l,M=[-1]){const y=A;z(r);const h=r.$$={fragment:null,ctx:null,props:u,update:e,not_equal:m,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(y?y.$$.context:[])),callbacks:n(),dirty:M,skip_bound:!1,root:s.target||y.$$.root};l&&l(h.root);let p=!1;if(h.ctx=o?o(r,s.props||{},((e,a,...n)=>{const t=n.length?n[0]:a;return h.ctx&&m(h.ctx[e],h.ctx[e]=t)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](t),p&&E(r,e)),a})):[],h.update(),p=!0,t(h.before_update),h.fragment=!!d&&d(h.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);h.fragment&&h.fragment.l(e),e.forEach(c)}else h.fragment&&h.fragment.c();s.intro&&k(r.$$.fragment),function(e,n,r,s){const{fragment:o,on_mount:c,on_destroy:d,after_update:m}=e.$$;o&&o.m(n,r),s||q((()=>{const n=c.map(a).filter(i);d?d.push(...n):t(n),e.$$.on_mount=[]})),m.forEach(q)}(r,s.target,s.anchor,s.customElement),W()}z(y)}let x;"function"==typeof HTMLElement&&(x=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(a).filter(i);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,a,n){this[e]=n}disconnectedCallback(){t(this.$$.on_disconnect)}$destroy(){!function(e,a){const n=e.$$;null!==n.fragment&&(t(n.on_destroy),n.fragment&&n.fragment.d(a),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(e,a){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(a),()=>{const e=n.indexOf(a);-1!==e&&n.splice(e,1)}}$set(e){var a;this.$$set&&(a=e,0!==Object.keys(a).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function H(e){var a={exports:{}};return e(a,a.exports),a.exports}function I(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var F=H((function(e,a){e.exports=function(){var e=1e3,a=6e4,n=36e5,t="millisecond",i="second",r="minute",s="hour",o="day",c="week",d="month",m="quarter",u="year",l="date",M="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(e,a,n){var t=String(e);return!t||t.length>=a?e:""+Array(a+1-t.length).join(n)+e},b={s:f,z:function(e){var a=-e.utcOffset(),n=Math.abs(a),t=Math.floor(n/60),i=n%60;return(a<=0?"+":"-")+f(t,2,"0")+":"+f(i,2,"0")},m:function e(a,n){if(a.date()<n.date())return-e(n,a);var t=12*(n.year()-a.year())+(n.month()-a.month()),i=a.clone().add(t,d),r=n-i<0,s=a.clone().add(t+(r?-1:1),d);return+(-(t+(n-i)/(r?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:u,w:c,d:o,D:l,h:s,m:r,s:i,ms:t,Q:m}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},A="en",z={};z[A]=p;var _=function(e){return e instanceof v},g=function(e,a,n){var t;if(!e)return A;if("string"==typeof e)z[e]&&(t=e),a&&(z[e]=a,t=e);else{var i=e.name;z[i]=e,t=i}return!n&&t&&(A=t),t||!n&&A},D=function(e,a){if(_(e))return e.clone();var n="object"==typeof a?a:{};return n.date=e,n.args=arguments,new v(n)},N=b;N.l=g,N.i=_,N.w=function(e,a){return D(e,{locale:a.$L,utc:a.$u,x:a.$x,$offset:a.$offset})};var v=function(){function p(e){this.$L=g(e.locale,null,!0),this.parse(e)}var f=p.prototype;return f.parse=function(e){this.$d=function(e){var a=e.date,n=e.utc;if(null===a)return new Date(NaN);if(N.u(a))return new Date;if(a instanceof Date)return new Date(a);if("string"==typeof a&&!/Z$/i.test(a)){var t=a.match(y);if(t){var i=t[2]-1||0,r=(t[7]||"0").substring(0,3);return n?new Date(Date.UTC(t[1],i,t[3]||1,t[4]||0,t[5]||0,t[6]||0,r)):new Date(t[1],i,t[3]||1,t[4]||0,t[5]||0,t[6]||0,r)}}return new Date(a)}(e),this.$x=e.x||{},this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return N},f.isValid=function(){return!(this.$d.toString()===M)},f.isSame=function(e,a){var n=D(e);return this.startOf(a)<=n&&n<=this.endOf(a)},f.isAfter=function(e,a){return D(e)<this.startOf(a)},f.isBefore=function(e,a){return this.endOf(a)<D(e)},f.$g=function(e,a,n){return N.u(e)?this[a]:this.set(n,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,a){var n=this,t=!!N.u(a)||a,m=N.p(e),M=function(e,a){var i=N.w(n.$u?Date.UTC(n.$y,a,e):new Date(n.$y,a,e),n);return t?i:i.endOf(o)},y=function(e,a){return N.w(n.toDate()[e].apply(n.toDate("s"),(t?[0,0,0,0]:[23,59,59,999]).slice(a)),n)},h=this.$W,p=this.$M,f=this.$D,b="set"+(this.$u?"UTC":"");switch(m){case u:return t?M(1,0):M(31,11);case d:return t?M(1,p):M(0,p+1);case c:var A=this.$locale().weekStart||0,z=(h<A?h+7:h)-A;return M(t?f-z:f+(6-z),p);case o:case l:return y(b+"Hours",0);case s:return y(b+"Minutes",1);case r:return y(b+"Seconds",2);case i:return y(b+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(e,a){var n,c=N.p(e),m="set"+(this.$u?"UTC":""),M=(n={},n[o]=m+"Date",n[l]=m+"Date",n[d]=m+"Month",n[u]=m+"FullYear",n[s]=m+"Hours",n[r]=m+"Minutes",n[i]=m+"Seconds",n[t]=m+"Milliseconds",n)[c],y=c===o?this.$D+(a-this.$W):a;if(c===d||c===u){var h=this.clone().set(l,1);h.$d[M](y),h.init(),this.$d=h.set(l,Math.min(this.$D,h.daysInMonth())).$d}else M&&this.$d[M](y);return this.init(),this},f.set=function(e,a){return this.clone().$set(e,a)},f.get=function(e){return this[N.p(e)]()},f.add=function(t,m){var l,M=this;t=Number(t);var y=N.p(m),h=function(e){var a=D(M);return N.w(a.date(a.date()+Math.round(e*t)),M)};if(y===d)return this.set(d,this.$M+t);if(y===u)return this.set(u,this.$y+t);if(y===o)return h(1);if(y===c)return h(7);var p=(l={},l[r]=a,l[s]=n,l[i]=e,l)[y]||1,f=this.$d.getTime()+t*p;return N.w(f,this)},f.subtract=function(e,a){return this.add(-1*e,a)},f.format=function(e){var a=this,n=this.$locale();if(!this.isValid())return n.invalidDate||M;var t=e||"YYYY-MM-DDTHH:mm:ssZ",i=N.z(this),r=this.$H,s=this.$m,o=this.$M,c=n.weekdays,d=n.months,m=function(e,n,i,r){return e&&(e[n]||e(a,t))||i[n].substr(0,r)},u=function(e){return N.s(r%12||12,e,"0")},l=n.meridiem||function(e,a,n){var t=e<12?"AM":"PM";return n?t.toLowerCase():t},y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:N.s(o+1,2,"0"),MMM:m(n.monthsShort,o,d,3),MMMM:m(d,o),D:this.$D,DD:N.s(this.$D,2,"0"),d:String(this.$W),dd:m(n.weekdaysMin,this.$W,c,2),ddd:m(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(r),HH:N.s(r,2,"0"),h:u(1),hh:u(2),a:l(r,s,!0),A:l(r,s,!1),m:String(s),mm:N.s(s,2,"0"),s:String(this.$s),ss:N.s(this.$s,2,"0"),SSS:N.s(this.$ms,3,"0"),Z:i};return t.replace(h,(function(e,a){return a||y[e]||i.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(t,l,M){var y,h=N.p(l),p=D(t),f=(p.utcOffset()-this.utcOffset())*a,b=this-p,A=N.m(this,p);return A=(y={},y[u]=A/12,y[d]=A,y[m]=A/3,y[c]=(b-f)/6048e5,y[o]=(b-f)/864e5,y[s]=b/n,y[r]=b/a,y[i]=b/e,y)[h]||b,M?A:N.a(A)},f.daysInMonth=function(){return this.endOf(d).$D},f.$locale=function(){return z[this.$L]},f.locale=function(e,a){if(!e)return this.$L;var n=this.clone(),t=g(e,a,!0);return t&&(n.$L=t),n},f.clone=function(){return N.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},p}(),O=v.prototype;return D.prototype=O,[["$ms",t],["$s",i],["$m",r],["$H",s],["$W",o],["$M",d],["$y",u],["$D",l]].forEach((function(e){O[e[1]]=function(a){return this.$g(a,e[0],e[1])}})),D.extend=function(e,a){return e.$i||(e(a,v,D),e.$i=!0),D},D.locale=g,D.isDayjs=_,D.unix=function(e){return D(1e3*e)},D.en=z[A],D.Ls=z,D.p={},D}()})),Y=H((function(e,a){e.exports=function(){var a,n;function t(){return a.apply(null,arguments)}function i(e){a=e}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,a){return Object.prototype.hasOwnProperty.call(e,a)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var a;for(a in e)if(o(e,a))return!1;return!0}function d(e){return void 0===e}function m(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,a){var n,t=[];for(n=0;n<e.length;++n)t.push(a(e[n],n));return t}function M(e,a){for(var n in a)o(a,n)&&(e[n]=a[n]);return o(a,"toString")&&(e.toString=a.toString),o(a,"valueOf")&&(e.valueOf=a.valueOf),e}function y(e,a,n,t){return Vn(e,a,n,t,!0).utc()}function h(){return{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}}function p(e){return null==e._pf&&(e._pf=h()),e._pf}function f(e){if(null==e._isValid){var a=p(e),t=n.call(a.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&t);if(e._strict&&(i=i&&0===a.charsLeftOver&&0===a.unusedTokens.length&&void 0===a.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function b(e){var a=y(NaN);return null!=e?M(p(a),e):p(a).userInvalidated=!0,a}n=Array.prototype.some?Array.prototype.some:function(e){var a,n=Object(this),t=n.length>>>0;for(a=0;a<t;a++)if(a in n&&e.call(this,n[a],a,n))return!0;return!1};var A=t.momentProperties=[],z=!1;function _(e,a){var n,t,i;if(d(a._isAMomentObject)||(e._isAMomentObject=a._isAMomentObject),d(a._i)||(e._i=a._i),d(a._f)||(e._f=a._f),d(a._l)||(e._l=a._l),d(a._strict)||(e._strict=a._strict),d(a._tzm)||(e._tzm=a._tzm),d(a._isUTC)||(e._isUTC=a._isUTC),d(a._offset)||(e._offset=a._offset),d(a._pf)||(e._pf=p(a)),d(a._locale)||(e._locale=a._locale),A.length>0)for(n=0;n<A.length;n++)d(i=a[t=A[n]])||(e[t]=i);return e}function g(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,t.updateOffset(this),z=!1)}function D(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function N(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function v(e,a){var n=!0;return M((function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){var i,r,s,c=[];for(r=0;r<arguments.length;r++){if(i="","object"==typeof arguments[r]){for(s in i+="\n["+r+"] ",arguments[0])o(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[r];c.push(i)}N(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),n=!1}return a.apply(this,arguments)}),a)}var O,L={};function S(e,a){null!=t.deprecationHandler&&t.deprecationHandler(e,a),L[e]||(N(a),L[e]=!0)}function q(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e){var a,n;for(n in e)o(e,n)&&(q(a=e[n])?this[n]=a:this["_"+n]=a);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function B(e,a){var n,t=M({},e);for(n in a)o(a,n)&&(s(e[n])&&s(a[n])?(t[n]={},M(t[n],e[n]),M(t[n],a[n])):null!=a[n]?t[n]=a[n]:delete t[n]);for(n in e)o(e,n)&&!o(a,n)&&s(e[n])&&(t[n]=M({},t[n]));return t}function W(e){null!=e&&this.set(e)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var a,n=[];for(a in e)o(e,a)&&n.push(a);return n};var w={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function C(e,a,n){var t=this._calendar[e]||this._calendar.sameElse;return q(t)?t.call(a,n):t}function k(e,a,n){var t=""+Math.abs(e),i=a-t.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+t}var X=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,E={},P={};function x(e,a,n,t){var i=t;"string"==typeof t&&(i=function(){return this[t]()}),e&&(P[e]=i),a&&(P[a[0]]=function(){return k(i.apply(this,arguments),a[1],a[2])}),n&&(P[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var a,n,t=e.match(X);for(a=0,n=t.length;a<n;a++)P[t[a]]?t[a]=P[t[a]]:t[a]=j(t[a]);return function(a){var i,r="";for(i=0;i<n;i++)r+=q(t[i])?t[i].call(a,e):t[i];return r}}function F(e,a){return e.isValid()?(a=Y(a,e.localeData()),E[a]=E[a]||H(a),E[a](e)):e.localeData().invalidDate()}function Y(e,a){var n=5;function t(e){return a.longDateFormat(e)||e}for(R.lastIndex=0;n>=0&&R.test(e);)e=e.replace(R,t),R.lastIndex=0,n-=1;return e}var G={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"};function J(e){var a=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return a||!n?a:(this._longDateFormat[e]=n.match(X).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var V="Invalid date";function U(){return this._invalidDate}var K="%d",Z=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var $={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"};function ee(e,a,n,t){var i=this._relativeTime[n];return q(i)?i(e,a,n,t):i.replace(/%d/i,e)}function ae(e,a){var n=this._relativeTime[e>0?"future":"past"];return q(n)?n(a):n.replace(/%s/i,a)}var ne={};function te(e,a){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[a]=e}function ie(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function re(e){var a,n,t={};for(n in e)o(e,n)&&(a=ie(n))&&(t[a]=e[n]);return t}var se={};function oe(e,a){se[e]=a}function ce(e){var a,n=[];for(a in e)o(e,a)&&n.push({unit:a,priority:se[a]});return n.sort((function(e,a){return e.priority-a.priority})),n}function de(e){return e%4==0&&e%100!=0||e%400==0}function me(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ue(e){var a=+e,n=0;return 0!==a&&isFinite(a)&&(n=me(a)),n}function le(e,a){return function(n){return null!=n?(ye(this,e,n),t.updateOffset(this,a),this):Me(this,e)}}function Me(e,a){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+a]():NaN}function ye(e,a,n){e.isValid()&&!isNaN(n)&&("FullYear"===a&&de(e.year())&&1===e.month()&&29===e.date()?(n=ue(n),e._d["set"+(e._isUTC?"UTC":"")+a](n,e.month(),ea(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+a](n))}function he(e){return q(this[e=ie(e)])?this[e]():this}function pe(e,a){if("object"==typeof e){var n,t=ce(e=re(e));for(n=0;n<t.length;n++)this[t[n].unit](e[t[n].unit])}else if(q(this[e=ie(e)]))return this[e](a);return this}var fe,be=/\d/,Ae=/\d\d/,ze=/\d{3}/,_e=/\d{4}/,ge=/[+-]?\d{6}/,De=/\d\d?/,Ne=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,Oe=/\d{1,3}/,Le=/\d{1,4}/,Se=/[+-]?\d{1,6}/,qe=/\d+/,Te=/[+-]?\d+/,Be=/Z|[+-]\d\d:?\d\d/gi,We=/Z|[+-]\d\d(?::?\d\d)?/gi,we=/[+-]?\d+(\.\d{1,3})?/,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 ke(e,a,n){fe[e]=q(a)?a:function(e,t){return e&&n?n:a}}function Xe(e,a){return o(fe,e)?fe[e](a._strict,a._locale):new RegExp(Re(e))}function Re(e){return Ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,a,n,t,i){return a||n||t||i})))}function Ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}fe={};var Pe={};function xe(e,a){var n,t=a;for("string"==typeof e&&(e=[e]),m(a)&&(t=function(e,n){n[a]=ue(e)}),n=0;n<e.length;n++)Pe[e[n]]=t}function je(e,a){xe(e,(function(e,n,t,i){t._w=t._w||{},a(e,t._w,t,i)}))}function He(e,a,n){null!=a&&o(Pe,e)&&Pe[e](a,n._a,n,e)}var Ie,Fe=0,Ye=1,Ge=2,Je=3,Ve=4,Ue=5,Ke=6,Ze=7,Qe=8;function $e(e,a){return(e%a+a)%a}function ea(e,a){if(isNaN(e)||isNaN(a))return NaN;var n=$e(a,12);return e+=(a-n)/12,1===n?de(e)?29:28:31-n%7%2}Ie=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var a;for(a=0;a<this.length;++a)if(this[a]===e)return a;return-1},x("M",["MM",2],"Mo",(function(){return this.month()+1})),x("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),x("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),te("month","M"),oe("month",8),ke("M",De),ke("MM",De,Ae),ke("MMM",(function(e,a){return a.monthsShortRegex(e)})),ke("MMMM",(function(e,a){return a.monthsRegex(e)})),xe(["M","MM"],(function(e,a){a[Ye]=ue(e)-1})),xe(["MMM","MMMM"],(function(e,a,n,t){var i=n._locale.monthsParse(e,t,n._strict);null!=i?a[Ye]=i:p(n).invalidMonth=e}));var aa="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),na="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ta=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ia=Ce,ra=Ce;function sa(e,a){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ta).test(a)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone}function oa(e,a){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ta.test(a)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ca(e,a,n){var t,i,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],t=0;t<12;++t)r=y([2e3,t]),this._shortMonthsParse[t]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[t]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===a?-1!==(i=Ie.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ie.call(this._longMonthsParse,s))?i:null:"MMM"===a?-1!==(i=Ie.call(this._shortMonthsParse,s))||-1!==(i=Ie.call(this._longMonthsParse,s))?i:null:-1!==(i=Ie.call(this._longMonthsParse,s))||-1!==(i=Ie.call(this._shortMonthsParse,s))?i:null}function da(e,a,n){var t,i,r;if(this._monthsParseExact)return ca.call(this,e,a,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),t=0;t<12;t++){if(i=y([2e3,t]),n&&!this._longMonthsParse[t]&&(this._longMonthsParse[t]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[t]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[t]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[t]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===a&&this._longMonthsParse[t].test(e))return t;if(n&&"MMM"===a&&this._shortMonthsParse[t].test(e))return t;if(!n&&this._monthsParse[t].test(e))return t}}function ma(e,a){var n;if(!e.isValid())return e;if("string"==typeof a)if(/^\d+$/.test(a))a=ue(a);else if(!m(a=e.localeData().monthsParse(a)))return e;return n=Math.min(e.date(),ea(e.year(),a)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](a,n),e}function ua(e){return null!=e?(ma(this,e),t.updateOffset(this,!0),this):Me(this,"Month")}function la(){return ea(this.year(),this.month())}function Ma(e){return this._monthsParseExact?(o(this,"_monthsRegex")||ha.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=ia),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ya(e){return this._monthsParseExact?(o(this,"_monthsRegex")||ha.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=ra),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ha(){function e(e,a){return a.length-e.length}var a,n,t=[],i=[],r=[];for(a=0;a<12;a++)n=y([2e3,a]),t.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(t.sort(e),i.sort(e),r.sort(e),a=0;a<12;a++)t[a]=Ee(t[a]),i[a]=Ee(i[a]);for(a=0;a<24;a++)r[a]=Ee(r[a]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function pa(e){return de(e)?366:365}x("Y",0,0,(function(){var e=this.year();return e<=9999?k(e,4):"+"+e})),x(0,["YY",2],0,(function(){return this.year()%100})),x(0,["YYYY",4],0,"year"),x(0,["YYYYY",5],0,"year"),x(0,["YYYYYY",6,!0],0,"year"),te("year","y"),oe("year",1),ke("Y",Te),ke("YY",De,Ae),ke("YYYY",Le,_e),ke("YYYYY",Se,ge),ke("YYYYYY",Se,ge),xe(["YYYYY","YYYYYY"],Fe),xe("YYYY",(function(e,a){a[Fe]=2===e.length?t.parseTwoDigitYear(e):ue(e)})),xe("YY",(function(e,a){a[Fe]=t.parseTwoDigitYear(e)})),xe("Y",(function(e,a){a[Fe]=parseInt(e,10)})),t.parseTwoDigitYear=function(e){return ue(e)+(ue(e)>68?1900:2e3)};var fa=le("FullYear",!0);function ba(){return de(this.year())}function Aa(e,a,n,t,i,r,s){var o;return e<100&&e>=0?(o=new Date(e+400,a,n,t,i,r,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,a,n,t,i,r,s),o}function za(e){var a,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,a=new Date(Date.UTC.apply(null,n)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(e)):a=new Date(Date.UTC.apply(null,arguments)),a}function _a(e,a,n){var t=7+a-n;return-(7+za(e,0,t).getUTCDay()-a)%7+t-1}function ga(e,a,n,t,i){var r,s,o=1+7*(a-1)+(7+n-t)%7+_a(e,t,i);return o<=0?s=pa(r=e-1)+o:o>pa(e)?(r=e+1,s=o-pa(e)):(r=e,s=o),{year:r,dayOfYear:s}}function Da(e,a,n){var t,i,r=_a(e.year(),a,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?t=s+Na(i=e.year()-1,a,n):s>Na(e.year(),a,n)?(t=s-Na(e.year(),a,n),i=e.year()+1):(i=e.year(),t=s),{week:t,year:i}}function Na(e,a,n){var t=_a(e,a,n),i=_a(e+1,a,n);return(pa(e)-t+i)/7}function va(e){return Da(e,this._week.dow,this._week.doy).week}x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),te("week","w"),te("isoWeek","W"),oe("week",5),oe("isoWeek",5),ke("w",De),ke("ww",De,Ae),ke("W",De),ke("WW",De,Ae),je(["w","ww","W","WW"],(function(e,a,n,t){a[t.substr(0,1)]=ue(e)}));var Oa={dow:0,doy:6};function La(){return this._week.dow}function Sa(){return this._week.doy}function qa(e){var a=this.localeData().week(this);return null==e?a:this.add(7*(e-a),"d")}function Ta(e){var a=Da(this,1,4).week;return null==e?a:this.add(7*(e-a),"d")}function Ba(e,a){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=a.weekdaysParse(e))?e:null:parseInt(e,10)}function Wa(e,a){return"string"==typeof e?a.weekdaysParse(e)%7||7:isNaN(e)?null:e}function wa(e,a){return e.slice(a,7).concat(e.slice(0,a))}x("d",0,"do","day"),x("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),x("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),x("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),te("day","d"),te("weekday","e"),te("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),ke("d",De),ke("e",De),ke("E",De),ke("dd",(function(e,a){return a.weekdaysMinRegex(e)})),ke("ddd",(function(e,a){return a.weekdaysShortRegex(e)})),ke("dddd",(function(e,a){return a.weekdaysRegex(e)})),je(["dd","ddd","dddd"],(function(e,a,n,t){var i=n._locale.weekdaysParse(e,t,n._strict);null!=i?a.d=i:p(n).invalidWeekday=e})),je(["d","e","E"],(function(e,a,n,t){a[t]=ue(e)}));var Ca="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ka="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xa="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ra=Ce,Ea=Ce,Pa=Ce;function xa(e,a){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(a)?"format":"standalone"];return!0===e?wa(n,this._week.dow):e?n[e.day()]:n}function ja(e){return!0===e?wa(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ha(e){return!0===e?wa(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ia(e,a,n){var t,i,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],t=0;t<7;++t)r=y([2e3,1]).day(t),this._minWeekdaysParse[t]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[t]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[t]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===a?-1!==(i=Ie.call(this._weekdaysParse,s))?i:null:"ddd"===a?-1!==(i=Ie.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ie.call(this._minWeekdaysParse,s))?i:null:"dddd"===a?-1!==(i=Ie.call(this._weekdaysParse,s))||-1!==(i=Ie.call(this._shortWeekdaysParse,s))||-1!==(i=Ie.call(this._minWeekdaysParse,s))?i:null:"ddd"===a?-1!==(i=Ie.call(this._shortWeekdaysParse,s))||-1!==(i=Ie.call(this._weekdaysParse,s))||-1!==(i=Ie.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ie.call(this._minWeekdaysParse,s))||-1!==(i=Ie.call(this._weekdaysParse,s))||-1!==(i=Ie.call(this._shortWeekdaysParse,s))?i:null}function Fa(e,a,n){var t,i,r;if(this._weekdaysParseExact)return Ia.call(this,e,a,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),t=0;t<7;t++){if(i=y([2e3,1]).day(t),n&&!this._fullWeekdaysParse[t]&&(this._fullWeekdaysParse[t]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[t]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[t]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[t]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[t]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===a&&this._fullWeekdaysParse[t].test(e))return t;if(n&&"ddd"===a&&this._shortWeekdaysParse[t].test(e))return t;if(n&&"dd"===a&&this._minWeekdaysParse[t].test(e))return t;if(!n&&this._weekdaysParse[t].test(e))return t}}function Ya(e){if(!this.isValid())return null!=e?this:NaN;var a=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ba(e,this.localeData()),this.add(e-a,"d")):a}function Ga(e){if(!this.isValid())return null!=e?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return null==e?a:this.add(e-a,"d")}function Ja(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var a=Wa(e,this.localeData());return this.day(this.day()%7?a:a-7)}return this.day()||7}function Va(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Za.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ra),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ua(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Za.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ea),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ka(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Za.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Za(){function e(e,a){return a.length-e.length}var a,n,t,i,r,s=[],o=[],c=[],d=[];for(a=0;a<7;a++)n=y([2e3,1]).day(a),t=Ee(this.weekdaysMin(n,"")),i=Ee(this.weekdaysShort(n,"")),r=Ee(this.weekdays(n,"")),s.push(t),o.push(i),c.push(r),d.push(t),d.push(i),d.push(r);s.sort(e),o.sort(e),c.sort(e),d.sort(e),this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Qa(){return this.hours()%12||12}function $a(){return this.hours()||24}function en(e,a){x(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)}))}function an(e,a){return a._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}x("H",["HH",2],0,"hour"),x("h",["hh",2],0,Qa),x("k",["kk",2],0,$a),x("hmm",0,0,(function(){return""+Qa.apply(this)+k(this.minutes(),2)})),x("hmmss",0,0,(function(){return""+Qa.apply(this)+k(this.minutes(),2)+k(this.seconds(),2)})),x("Hmm",0,0,(function(){return""+this.hours()+k(this.minutes(),2)})),x("Hmmss",0,0,(function(){return""+this.hours()+k(this.minutes(),2)+k(this.seconds(),2)})),en("a",!0),en("A",!1),te("hour","h"),oe("hour",13),ke("a",an),ke("A",an),ke("H",De),ke("h",De),ke("k",De),ke("HH",De,Ae),ke("hh",De,Ae),ke("kk",De,Ae),ke("hmm",Ne),ke("hmmss",ve),ke("Hmm",Ne),ke("Hmmss",ve),xe(["H","HH"],Je),xe(["k","kk"],(function(e,a,n){var t=ue(e);a[Je]=24===t?0:t})),xe(["a","A"],(function(e,a,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),xe(["h","hh"],(function(e,a,n){a[Je]=ue(e),p(n).bigHour=!0})),xe("hmm",(function(e,a,n){var t=e.length-2;a[Je]=ue(e.substr(0,t)),a[Ve]=ue(e.substr(t)),p(n).bigHour=!0})),xe("hmmss",(function(e,a,n){var t=e.length-4,i=e.length-2;a[Je]=ue(e.substr(0,t)),a[Ve]=ue(e.substr(t,2)),a[Ue]=ue(e.substr(i)),p(n).bigHour=!0})),xe("Hmm",(function(e,a,n){var t=e.length-2;a[Je]=ue(e.substr(0,t)),a[Ve]=ue(e.substr(t))})),xe("Hmmss",(function(e,a,n){var t=e.length-4,i=e.length-2;a[Je]=ue(e.substr(0,t)),a[Ve]=ue(e.substr(t,2)),a[Ue]=ue(e.substr(i))}));var tn=/[ap]\.?m?\.?/i,rn=le("Hours",!0);function sn(e,a,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,cn={calendar:w,longDateFormat:G,invalidDate:V,ordinal:K,dayOfMonthOrdinalParse:Z,relativeTime:$,months:aa,monthsShort:na,week:Oa,weekdays:Ca,weekdaysMin:Xa,weekdaysShort:ka,meridiemParse:tn},dn={},mn={};function un(e,a){var n,t=Math.min(e.length,a.length);for(n=0;n<t;n+=1)if(e[n]!==a[n])return n;return t}function ln(e){return e?e.toLowerCase().replace("_","-"):e}function Mn(e){for(var a,n,t,i,r=0;r<e.length;){for(a=(i=ln(e[r]).split("-")).length,n=(n=ln(e[r+1]))?n.split("-"):null;a>0;){if(t=yn(i.slice(0,a).join("-")))return t;if(n&&n.length>=a&&un(i,n)>=a-1)break;a--}r++}return on}function yn(a){var n=null;if(void 0===dn[a]&&e&&e.exports)try{n=on._abbr,I("./locale/"+a),hn(n)}catch(e){dn[a]=null}return dn[a]}function hn(e,a){var n;return e&&((n=d(a)?bn(e):pn(e,a))?on=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function pn(e,a){if(null!==a){var n,t=cn;if(a.abbr=e,null!=dn[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),t=dn[e]._config;else if(null!=a.parentLocale)if(null!=dn[a.parentLocale])t=dn[a.parentLocale]._config;else{if(null==(n=yn(a.parentLocale)))return mn[a.parentLocale]||(mn[a.parentLocale]=[]),mn[a.parentLocale].push({name:e,config:a}),null;t=n._config}return dn[e]=new W(B(t,a)),mn[e]&&mn[e].forEach((function(e){pn(e.name,e.config)})),hn(e),dn[e]}return delete dn[e],null}function fn(e,a){if(null!=a){var n,t,i=cn;null!=dn[e]&&null!=dn[e].parentLocale?dn[e].set(B(dn[e]._config,a)):(null!=(t=yn(e))&&(i=t._config),a=B(i,a),null==t&&(a.abbr=e),(n=new W(a)).parentLocale=dn[e],dn[e]=n),hn(e)}else null!=dn[e]&&(null!=dn[e].parentLocale?(dn[e]=dn[e].parentLocale,e===hn()&&hn(e)):null!=dn[e]&&delete dn[e]);return dn[e]}function bn(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!r(e)){if(a=yn(e))return a;e=[e]}return Mn(e)}function An(){return O(dn)}function zn(e){var a,n=e._a;return n&&-2===p(e).overflow&&(a=n[Ye]<0||n[Ye]>11?Ye:n[Ge]<1||n[Ge]>ea(n[Fe],n[Ye])?Ge:n[Je]<0||n[Je]>24||24===n[Je]&&(0!==n[Ve]||0!==n[Ue]||0!==n[Ke])?Je:n[Ve]<0||n[Ve]>59?Ve:n[Ue]<0||n[Ue]>59?Ue:n[Ke]<0||n[Ke]>999?Ke:-1,p(e)._overflowDayOfYear&&(a<Fe||a>Ge)&&(a=Ge),p(e)._overflowWeeks&&-1===a&&(a=Ze),p(e)._overflowWeekday&&-1===a&&(a=Qe),p(e).overflow=a),e}var _n=/^\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)?)?$/,gn=/^\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)?)?$/,Dn=/Z|[+-]\d\d(?::?\d\d)?/,Nn=[["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]],vn=[["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/]],On=/^\/?Date\((-?\d+)/i,Ln=/^(?:(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}))$/,Sn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function qn(e){var a,n,t,i,r,s,o=e._i,c=_n.exec(o)||gn.exec(o);if(c){for(p(e).iso=!0,a=0,n=Nn.length;a<n;a++)if(Nn[a][1].exec(c[1])){i=Nn[a][0],t=!1!==Nn[a][2];break}if(null==i)return void(e._isValid=!1);if(c[3]){for(a=0,n=vn.length;a<n;a++)if(vn[a][1].exec(c[3])){r=(c[2]||" ")+vn[a][0];break}if(null==r)return void(e._isValid=!1)}if(!t&&null!=r)return void(e._isValid=!1);if(c[4]){if(!Dn.exec(c[4]))return void(e._isValid=!1);s="Z"}e._f=i+(r||"")+(s||""),jn(e)}else e._isValid=!1}function Tn(e,a,n,t,i,r){var s=[Bn(e),na.indexOf(a),parseInt(n,10),parseInt(t,10),parseInt(i,10)];return r&&s.push(parseInt(r,10)),s}function Bn(e){var a=parseInt(e,10);return a<=49?2e3+a:a<=999?1900+a:a}function Wn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function wn(e,a,n){return!e||ka.indexOf(e)===new Date(a[0],a[1],a[2]).getDay()||(p(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Cn(e,a,n){if(e)return Sn[e];if(a)return 0;var t=parseInt(n,10),i=t%100;return(t-i)/100*60+i}function kn(e){var a,n=Ln.exec(Wn(e._i));if(n){if(a=Tn(n[4],n[3],n[2],n[5],n[6],n[7]),!wn(n[1],a,e))return;e._a=a,e._tzm=Cn(n[8],n[9],n[10]),e._d=za.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Xn(e){var a=On.exec(e._i);null===a?(qn(e),!1===e._isValid&&(delete e._isValid,kn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))):e._d=new Date(+a[1])}function Rn(e,a,n){return null!=e?e:null!=a?a:n}function En(e){var a=new Date(t.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function Pn(e){var a,n,t,i,r,s=[];if(!e._d){for(t=En(e),e._w&&null==e._a[Ge]&&null==e._a[Ye]&&xn(e),null!=e._dayOfYear&&(r=Rn(e._a[Fe],t[Fe]),(e._dayOfYear>pa(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=za(r,0,e._dayOfYear),e._a[Ye]=n.getUTCMonth(),e._a[Ge]=n.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=s[a]=t[a];for(;a<7;a++)e._a[a]=s[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[Je]&&0===e._a[Ve]&&0===e._a[Ue]&&0===e._a[Ke]&&(e._nextDay=!0,e._a[Je]=0),e._d=(e._useUTC?za:Aa).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Je]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(p(e).weekdayMismatch=!0)}}function xn(e){var a,n,t,i,r,s,o,c,d;null!=(a=e._w).GG||null!=a.W||null!=a.E?(r=1,s=4,n=Rn(a.GG,e._a[Fe],Da(Un(),1,4).year),t=Rn(a.W,1),((i=Rn(a.E,1))<1||i>7)&&(c=!0)):(r=e._locale._week.dow,s=e._locale._week.doy,d=Da(Un(),r,s),n=Rn(a.gg,e._a[Fe],d.year),t=Rn(a.w,d.week),null!=a.d?((i=a.d)<0||i>6)&&(c=!0):null!=a.e?(i=a.e+r,(a.e<0||a.e>6)&&(c=!0)):i=r),t<1||t>Na(n,r,s)?p(e)._overflowWeeks=!0:null!=c?p(e)._overflowWeekday=!0:(o=ga(n,t,i,r,s),e._a[Fe]=o.year,e._dayOfYear=o.dayOfYear)}function jn(e){if(e._f!==t.ISO_8601)if(e._f!==t.RFC_2822){e._a=[],p(e).empty=!0;var a,n,i,r,s,o,c=""+e._i,d=c.length,m=0;for(i=Y(e._f,e._locale).match(X)||[],a=0;a<i.length;a++)r=i[a],(n=(c.match(Xe(r,e))||[])[0])&&((s=c.substr(0,c.indexOf(n))).length>0&&p(e).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),m+=n.length),P[r]?(n?p(e).empty=!1:p(e).unusedTokens.push(r),He(r,n,e)):e._strict&&!n&&p(e).unusedTokens.push(r);p(e).charsLeftOver=d-m,c.length>0&&p(e).unusedInput.push(c),e._a[Je]<=12&&!0===p(e).bigHour&&e._a[Je]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[Je]=Hn(e._locale,e._a[Je],e._meridiem),null!==(o=p(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(o,e._a[Fe])),Pn(e),zn(e)}else kn(e);else qn(e)}function Hn(e,a,n){var t;return null==n?a:null!=e.meridiemHour?e.meridiemHour(a,n):null!=e.isPM?((t=e.isPM(n))&&a<12&&(a+=12),t||12!==a||(a=0),a):a}function In(e){var a,n,t,i,r,s,o=!1;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)r=0,s=!1,a=_({},e),null!=e._useUTC&&(a._useUTC=e._useUTC),a._f=e._f[i],jn(a),f(a)&&(s=!0),r+=p(a).charsLeftOver,r+=10*p(a).unusedTokens.length,p(a).score=r,o?r<t&&(t=r,n=a):(null==t||r<t||s)&&(t=r,n=a,s&&(o=!0));M(e,n||a)}function Fn(e){if(!e._d){var a=re(e._i),n=void 0===a.day?a.date:a.day;e._a=l([a.year,a.month,n,a.hour,a.minute,a.second,a.millisecond],(function(e){return e&&parseInt(e,10)})),Pn(e)}}function Yn(e){var a=new g(zn(Gn(e)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Gn(e){var a=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===a||void 0===n&&""===a?b({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),D(a)?new g(zn(a)):(u(a)?e._d=a:r(n)?In(e):n?jn(e):Jn(e),f(e)||(e._d=null),e))}function Jn(e){var a=e._i;d(a)?e._d=new Date(t.now()):u(a)?e._d=new Date(a.valueOf()):"string"==typeof a?Xn(e):r(a)?(e._a=l(a.slice(0),(function(e){return parseInt(e,10)})),Pn(e)):s(a)?Fn(e):m(a)?e._d=new Date(a):t.createFromInputFallback(e)}function Vn(e,a,n,t,i){var o={};return!0!==a&&!1!==a||(t=a,a=void 0),!0!==n&&!1!==n||(t=n,n=void 0),(s(e)&&c(e)||r(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=a,o._strict=t,Yn(o)}function Un(e,a,n,t){return Vn(e,a,n,t,!1)}t.createFromInputFallback=v("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":""))})),t.ISO_8601=function(){},t.RFC_2822=function(){};var Kn=v("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Un.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Zn=v("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Un.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function Qn(e,a){var n,t;if(1===a.length&&r(a[0])&&(a=a[0]),!a.length)return Un();for(n=a[0],t=1;t<a.length;++t)a[t].isValid()&&!a[t][e](n)||(n=a[t]);return n}function $n(){return Qn("isBefore",[].slice.call(arguments,0))}function et(){return Qn("isAfter",[].slice.call(arguments,0))}var at=function(){return Date.now?Date.now():+new Date},nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tt(e){var a,n,t=!1;for(a in e)if(o(e,a)&&(-1===Ie.call(nt,a)||null!=e[a]&&isNaN(e[a])))return!1;for(n=0;n<nt.length;++n)if(e[nt[n]]){if(t)return!1;parseFloat(e[nt[n]])!==ue(e[nt[n]])&&(t=!0)}return!0}function it(){return this._isValid}function rt(){return St(NaN)}function st(e){var a=re(e),n=a.year||0,t=a.quarter||0,i=a.month||0,r=a.week||a.isoWeek||0,s=a.day||0,o=a.hour||0,c=a.minute||0,d=a.second||0,m=a.millisecond||0;this._isValid=tt(a),this._milliseconds=+m+1e3*d+6e4*c+1e3*o*60*60,this._days=+s+7*r,this._months=+i+3*t+12*n,this._data={},this._locale=bn(),this._bubble()}function ot(e){return e instanceof st}function ct(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function dt(e,a,n){var t,i=Math.min(e.length,a.length),r=Math.abs(e.length-a.length),s=0;for(t=0;t<i;t++)(n&&e[t]!==a[t]||!n&&ue(e[t])!==ue(a[t]))&&s++;return s+r}function mt(e,a){x(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+k(~~(e/60),2)+a+k(~~e%60,2)}))}mt("Z",":"),mt("ZZ",""),ke("Z",We),ke("ZZ",We),xe(["Z","ZZ"],(function(e,a,n){n._useUTC=!0,n._tzm=lt(We,e)}));var ut=/([\+\-]|\d\d)/gi;function lt(e,a){var n,t,i=(a||"").match(e);return null===i?null:0===(t=60*(n=((i[i.length-1]||[])+"").match(ut)||["-",0,0])[1]+ue(n[2]))?0:"+"===n[0]?t:-t}function Mt(e,a){var n,i;return a._isUTC?(n=a.clone(),i=(D(e)||u(e)?e.valueOf():Un(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),t.updateOffset(n,!1),n):Un(e).local()}function yt(e){return-Math.round(e._d.getTimezoneOffset())}function ht(e,a,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=lt(We,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&a&&(i=yt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!a||this._changeInProgress?wt(this,St(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:yt(this)}function pt(e,a){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}function ft(e){return this.utcOffset(0,e)}function bt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(yt(this),"m")),this}function At(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=lt(Be,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function zt(e){return!!this.isValid()&&(e=e?Un(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function _t(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function gt(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e,a={};return _(a,this),(a=Gn(a))._a?(e=a._isUTC?y(a._a):Un(a._a),this._isDSTShifted=this.isValid()&&dt(a._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Dt(){return!!this.isValid()&&!this._isUTC}function Nt(){return!!this.isValid()&&this._isUTC}function vt(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var Ot=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Lt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function St(e,a){var n,t,i,r=e,s=null;return ot(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:m(e)||!isNaN(+e)?(r={},a?r[a]=+e:r.milliseconds=+e):(s=Ot.exec(e))?(n="-"===s[1]?-1:1,r={y:0,d:ue(s[Ge])*n,h:ue(s[Je])*n,m:ue(s[Ve])*n,s:ue(s[Ue])*n,ms:ue(ct(1e3*s[Ke]))*n}):(s=Lt.exec(e))?(n="-"===s[1]?-1:1,r={y:qt(s[2],n),M:qt(s[3],n),w:qt(s[4],n),d:qt(s[5],n),h:qt(s[6],n),m:qt(s[7],n),s:qt(s[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=Bt(Un(r.from),Un(r.to)),(r={}).ms=i.milliseconds,r.M=i.months),t=new st(r),ot(e)&&o(e,"_locale")&&(t._locale=e._locale),ot(e)&&o(e,"_isValid")&&(t._isValid=e._isValid),t}function qt(e,a){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*a}function Tt(e,a){var n={};return n.months=a.month()-e.month()+12*(a.year()-e.year()),e.clone().add(n.months,"M").isAfter(a)&&--n.months,n.milliseconds=+a-+e.clone().add(n.months,"M"),n}function Bt(e,a){var n;return e.isValid()&&a.isValid()?(a=Mt(a,e),e.isBefore(a)?n=Tt(e,a):((n=Tt(a,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Wt(e,a){return function(n,t){var i;return null===t||isNaN(+t)||(S(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=t,t=i),wt(this,St(n,t),e),this}}function wt(e,a,n,i){var r=a._milliseconds,s=ct(a._days),o=ct(a._months);e.isValid()&&(i=null==i||i,o&&ma(e,Me(e,"Month")+o*n),s&&ye(e,"Date",Me(e,"Date")+s*n),r&&e._d.setTime(e._d.valueOf()+r*n),i&&t.updateOffset(e,s||o))}St.fn=st.prototype,St.invalid=rt;var Ct=Wt(1,"add"),kt=Wt(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Rt(e){return D(e)||u(e)||Xt(e)||m(e)||Pt(e)||Et(e)||null==e}function Et(e){var a,n,t=s(e)&&!c(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(a=0;a<r.length;a+=1)n=r[a],i=i||o(e,n);return t&&i}function Pt(e){var a=r(e),n=!1;return a&&(n=0===e.filter((function(a){return!m(a)&&Xt(e)})).length),a&&n}function xt(e){var a,n,t=s(e)&&!c(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(a=0;a<r.length;a+=1)n=r[a],i=i||o(e,n);return t&&i}function jt(e,a){var n=e.diff(a,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ht(e,a){1===arguments.length&&(arguments[0]?Rt(arguments[0])?(e=arguments[0],a=void 0):xt(arguments[0])&&(a=arguments[0],e=void 0):(e=void 0,a=void 0));var n=e||Un(),i=Mt(n,this).startOf("day"),r=t.calendarFormat(this,i)||"sameElse",s=a&&(q(a[r])?a[r].call(this,n):a[r]);return this.format(s||this.localeData().calendar(r,this,Un(n)))}function It(){return new g(this)}function Ft(e,a){var n=D(e)?e:Un(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(a=ie(a)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(a).valueOf())}function Yt(e,a){var n=D(e)?e:Un(e);return!(!this.isVa