!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function t(){return af.apply(null,arguments)}function ut(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function ai(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function b(n){return void 0===n}function dt(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function nr(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function yf(n,t){for(var r=[],i=0;iwi(n)?(e=n+1,f-wi(n)):(e=n,f),{year:e,dayOfYear:o}}function ki(n,t,i){var u,f,e=pr(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1;return r<1?u=r+ti(f=n.year()-1,t,i):r>ti(n.year(),t,i)?(u=r-ti(n.year(),t,i),f=n.year()+1):(f=n.year(),u=r),{week:u,year:f}}function ti(n,t,i){var r=pr(n,t,i),u=pr(n+1,t,i);return(wi(n)-r+u)/7}function au(n,t){return n.slice(t,7).concat(n.slice(0,t))}function vu(){function u(n,t){return t.length-n.length}for(var f,e,o,s,h=[],i=[],r=[],t=[],n=0;n<7;n++)f=ft([2e3,1]).day(n),e=this.weekdaysMin(f,""),o=this.weekdaysShort(f,""),s=this.weekdays(f,""),h.push(e),i.push(o),r.push(s),t.push(e),t.push(o),t.push(s);for(h.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=gt(i[n]),r[n]=gt(r[n]),t[n]=gt(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function yu(){return this.hours()%12||12}function pe(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function we(n,t){return t._meridiemParse}function ke(n){return n?n.toLowerCase().replace("_","-"):n}function wr(n){var t=null;if(!y[n]&&"undefined"!=typeof module&&module&&module.exports)try{t=di._abbr;require("./locale/"+n);oi(t)}catch(n){}return y[n]}function oi(n,t){var i;return n&&((i=b(t)?wt(n):pu(n,t))?di=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),di._abbr}function pu(n,t){if(null===t)return delete y[n],null;var r,i=be;if(t.abbr=n,null!=y[n])kf("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."),i=y[n]._config;else if(null!=t.parentLocale)if(null!=y[t.parentLocale])i=y[t.parentLocale]._config;else{if(null==(r=wr(t.parentLocale)))return gi[t.parentLocale]||(gi[t.parentLocale]=[]),gi[t.parentLocale].push({name:n,config:t}),null;i=r._config}return y[n]=new uu(df(i,t)),gi[n]&&gi[n].forEach(function(n){pu(n.name,n.config)}),oi(n),y[n]}function wt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return di;if(!ut(n)){if(t=wr(n))return t;n=[n]}return function(n){for(var t,i,f,u,r=0;r=t&&pf(u,i,!0)>=t-1)break;t--}r++}return di}(n)}function wu(n){var i,t=n._a;return t&&-2===u(n).overflow&&(i=t[at]<0||11yr(t[tt],t[at])?st:t[v]<0||24ti(o,r,e)?u(n)._overflowWeeks=!0:null!=s?u(n)._overflowWeekday=!0:(h=ve(o,f,i,r,e),n._a[tt]=h.year,n._dayOfYear=h.dayOfYear)}(n),null!=n._dayOfYear&&(o=si(n._a[tt],e[tt]),(n._dayOfYear>wi(o)||0===n._dayOfYear)&&(u(n)._overflowDayOfYear=!0),f=bi(o,0,n._dayOfYear),n._a[at]=f.getUTCMonth(),n._a[st]=f.getUTCDate()),i=0;i<3&&null==n._a[i];++i)n._a[i]=s[i]=e[i];for(;i<7;i++)n._a[i]=s[i]=null==n._a[i]?2===i?1:0:n._a[i];24===n._a[v]&&0===n._a[it]&&0===n._a[vt]&&0===n._a[ni]&&(n._nextDay=!0,n._a[v]=0);n._d=(n._useUTC?bi:function(n,t,i,r,u,f,e){var o;return n<100&&0<=n?(o=new Date(n+400,t,i,r,u,f,e),isFinite(o.getFullYear())&&o.setFullYear(n)):o=new Date(n,t,i,r,u,f,e),o}).apply(null,s);h=n._useUTC?n._d.getUTCDay():n._d.getDay();null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[v]=24);n._w&&void 0!==n._w.d&&n._w.d!==h&&(u(n).weekdayMismatch=!0)}}function de(n){var t,r,o,e,f,s,h=n._i,i=nh.exec(h)||th.exec(h);if(i){for(u(n).iso=!0,t=0,r=br.length;t>>0,t=0;ti.valueOf():i.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()};n.isLocal=function(){return!!this.isValid()&&!this._isUTC};n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC};n.isUtc=ho;n.isUTC=ho;n.zoneAbbr=function(){return this._isUTC?"UTC":""};n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};n.dates=g("dates accessor is deprecated. Use date instead.",sf);n.months=g("months accessor is deprecated. Use month instead",he);n.years=g("years accessor is deprecated. Use year instead",lu);n.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()});n.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var n,t;return b(this._isDSTShifted)?(n={},(iu(n,this),(n=io(n))._a)?(t=n._isUTC?ft(n._a):c(n._a),this._isDSTShifted=this.isValid()&&0 :not(nav)")),v=0;vg)){--v;i(ut,-1);b=undefined;continue}if(b=new Date(f),!c&&(c=new Date(f),c.setDate(1),i(c,1),h(c,-1),d&&d>c)){--v;i(ut,1);c=undefined;continue}y(nt,".pmu-month").innerHTML=it;ot=function(n){return u.mode==="range"&&n>=new Date(s[0]).getFullYear()&&n<=new Date(s[1]).getFullYear()||u.mode==="multiple"&&s.reduce(function(n,t){return n.push(new Date(t).getFullYear()),n},[]).indexOf(n)!==-1||new Date(s).getFullYear()===n};st=function(n,t){var i=new Date(s[0]).getFullYear(),r=new Date(s[1]).getFullYear(),f=new Date(s[0]).getMonth(),e=new Date(s[1]).getMonth();return u.mode==="range"&&(n>i&&ni&&n===r&&t<=e||n===i&&n=f||n===i&&n===r&&t>=f&&t<=e)||u.mode==="multiple"&&s.reduce(function(n,t){return t=new Date(t),n.push(t.getFullYear()+"-"+t.getMonth()),n},[]).indexOf(n+"-"+t)!==-1||new Date(s).getFullYear()===n&&new Date(s).getMonth()===t},function(){for(var e=[],o=f.getFullYear()-6,s=new Date(u.min).getFullYear(),h=new Date(u.max).getFullYear(),t,i,r=0;r<12;++r)t=o+r,i=document.createElement("div"),i.textContent=t,i.__pickmeup_year=t,u.min&&th?n(i,"pmu-disabled"):ot(t)&&n(i,"pmu-selected"),e.push(i);nt.appendChild(u.instance_content_template(e,"pmu-years"))}(),function(){for(var e=[],r=f.getFullYear(),o=new Date(u.min).getFullYear(),h=new Date(u.min).getMonth(),s=new Date(u.max).getFullYear(),c=new Date(u.max).getMonth(),i,t=0;t<12;++t)i=document.createElement("div"),i.textContent=u.locales[u.locale].monthsShort[t],i.__pickmeup_month=t,i.__pickmeup_year=r,u.min&&(rs||t>c&&r>=s)?n(i,"pmu-disabled"):st(r,t)&&n(i,"pmu-selected"),e.push(i);nt.appendChild(u.instance_content_template(e,"pmu-months"))}(),function(){var s=[],a=f.getMonth(),v=o(new Date).valueOf(),e,t,i,r,c,l;for(function(){f.setDate(1);var n=(f.getDay()-u.first_day)%7;h(f,-(n+(n<0?7:0)))}(),e=0;e<42;++e)t=document.createElement("div"),t.textContent=f.getDate(),t.__pickmeup_day=f.getDate(),t.__pickmeup_month=f.getMonth(),t.__pickmeup_year=f.getFullYear(),a!==f.getMonth()&&n(t,"pmu-not-in-month"),f.getDay()===0?n(t,"pmu-sunday"):f.getDay()===6&&n(t,"pmu-saturday"),i=u.render(new Date(f))||{},r=o(new Date(f)).valueOf(),c=u.min&&u.min>f||u.max&&u.max=u.date[0]&&r<=u.date[1],!i.disabled&&("disabled"in i||!c)?!i.selected&&("selected"in i||!l)||n(t,"pmu-selected"):n(t,"pmu-disabled"),r===v&&n(t,"pmu-today"),i.class_name&&i.class_name.split(" ").forEach(n.bind(t,t)),s.push(t),h(f,1);nt.appendChild(u.instance_content_template(s,"pmu-days"))}()}c.setDate(1);b.setDate(1);i(b,1);h(b,-1);ft=y(w,".pmu-prev");et=y(w,".pmu-next");ft&&(ft.style.visibility=u.min&&u.min>=c?"hidden":"visible");et&&(et.style.visibility=u.max&&u.max<=b?"hidden":"visible");l(r,"fill")}function f(n,t){var w=t.format,u=t.separator,e=t.locales[t.locale],i,a,v;if(n instanceof Date||typeof n=="number")return o(new Date(n));if(n){if(n instanceof Array){for(n=n.slice(),i=0;i1)return a.forEach(function(n,i,r){r[i]=f(n.trim(),t)}),a;u=[].concat(e.daysShort,e.daysMin,e.days,e.monthsShort,e.months);u=u.map(function(n){return"("+n+")"});u=new RegExp("[^0-9a-zA-Z"+u.join("")+"]+");var r=n.split(u),b=w.split(u),y,h,c,s,p,l=new Date;for(i=0;i100?0:c<29?2e3:1900);break;case"H":case"I":case"k":case"l":s=parseInt(r[i],10);break;case"P":case"p":/pm/i.test(r[i])&&s<12?s+=12:/am/i.test(r[i])&&s>=12&&(s-=12);break;case"M":p=parseInt(r[i],10)}return v=new Date(c===undefined?l.getFullYear():c,h===undefined?l.getMonth():h,y===undefined?l.getDate():y,s===undefined?l.getHours():s,p===undefined?l.getMinutes():p,0),isNaN(v*1)&&(v=new Date),o(v)}function o(n){return n.setHours(0,0,0,0),n}function a(n,t,i){var f=n.getMonth(),h=n.getDate(),c=n.getFullYear(),l=n.getDay(),u=n.getHours(),p=u>=12,e=p?u-12:u,o=rt(n),s;e===0&&(e=12);var v=n.getMinutes(),y=n.getSeconds(),a=t.split(""),r;for(s=0;sa.t+a.h&&(s=o.top-f.offsetHeight);sa.l+a.w&&(h=o.left-f.offsetWidth);h0)if(r.date=f(t,r),r.mode!=="single")for(r.date instanceof Array?(r.date[0]=r.date[0]||f(new Date,r),r.mode==="range"&&(r.date[1]=r.date[1]||f(r.date[0],r))):(r.date=[r.date],r.mode==="range"&&r.date.push(f(r.date[0],r))),u=0;un?new Date(t):i&&i