opds-web-client
Version:
2 lines • 783 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.OPDSWebClient=t():e.OPDSWebClient=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(625)},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(this,function(){"use strict";function t(){return _r.apply(null,arguments)}function r(e){_r=e}function o(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 a(e){var t;for(t in e)return!1;return!0}function s(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,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function A(e,t,n,r){return gt(e,t,n,r,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function f(e){return null==e._pf&&(e._pf=h()),e._pf}function p(e){if(null==e._isValid){var t=f(e),n=gr.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);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 m(e){var t=A(NaN);return null!=e?d(f(t),e):f(t).userInvalidated=!0,t}function _(e){return void 0===e}function y(e,t){var n,r,o;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=f(t)),_(t._locale)||(e._locale=t._locale),vr.length>0)for(n in vr)r=vr[n],o=t[r],_(o)||(e[r]=o);return e}function g(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Mr===!1&&(Mr=!0,t.updateOffset(this),Mr=!1)}function v(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function M(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=M(t)),n}function b(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&w(e[r])!==w(t[r]))&&a++;return a+i}function L(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,n){var r=!0;return d(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),r){for(var o,i=[],a=0;a<arguments.length;a++){if(o="","object"==typeof arguments[a]){o+="\n["+a+"] ";for(var s in arguments[0])o+=s+": "+arguments[0][s]+", ";o=o.slice(0,-2)}else o=arguments[a];i.push(o)}L(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function E(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),wr[e]||(L(n),wr[e]=!0)}function D(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e){var t,n;for(n in e)t=e[n],D(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function S(e,t){var n,r=d({},e);for(n in t)c(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)c(e,n)&&!c(t,n)&&i(e[n])&&(r[n]=d({},r[n]));return r}function Y(e){null!=e&&this.set(e)}function C(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r}function x(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function O(){return this._invalidDate}function P(e){return this._ordinal.replace("%d",e)}function R(e,t,n,r){var o=this._relativeTime[n];return D(o)?o(e,t,n,r):o.replace(/%d/i,e)}function j(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)}function I(e,t){var n=e.toLowerCase();xr[n]=xr[n+"s"]=xr[t]=e}function B(e){return"string"==typeof e?xr[e]||xr[e.toLowerCase()]:void 0}function H(e){var t,n,r={};for(n in e)c(e,n)&&(t=B(n),t&&(r[t]=e[n]));return r}function F(e,t){Or[e]=t}function N(e){var t=[];for(var n in e)t.push({unit:n,priority:Or[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function U(e,n){return function(r){return null!=r?(W(this,e,r),t.updateOffset(this,n),this):Q(this,e)}}function Q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function W(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function G(e){return e=B(e),D(this[e])?this[e]():this}function z(e,t){if("object"==typeof e){e=H(e);for(var n=N(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=B(e),D(this[e]))return this[e](t);return this}function K(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}function q(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(Ir[e]=o),t&&(Ir[t[0]]=function(){return K(o.apply(this,arguments),t[1],t[2])}),n&&(Ir[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function J(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,n,r=e.match(Pr);for(t=0,n=r.length;t<n;t++)Ir[r[t]]?r[t]=Ir[r[t]]:r[t]=J(r[t]);return function(t){var o,i="";for(o=0;o<n;o++)i+=r[o]instanceof Function?r[o].call(t,e):r[o];return i}}function Z(e,t){return e.isValid()?(t=X(t,e.localeData()),jr[t]=jr[t]||V(t),jr[t](e)):e.localeData().invalidDate()}function X(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Rr.lastIndex=0;r>=0&&Rr.test(e);)e=e.replace(Rr,n),Rr.lastIndex=0,r-=1;return e}function $(e,t,n){to[e]=D(t)?t:function(e,r){return e&&n?n:t}}function ee(e,t){return c(to,e)?to[e](t._strict,t._locale):new RegExp(te(e))}function te(e){return ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}function ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function re(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=w(e)}),n=0;n<e.length;n++)no[e[n]]=r}function oe(e,t){re(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function ie(e,t,n){null!=t&&c(no,e)&&no[e](t,n._a,n,e)}function ae(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function se(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||fo).test(t)?"format":"standalone"][e.month()]:this._months}function ue(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[fo.test(t)?"format":"standalone"][e.month()]:this._monthsShort}function le(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=A([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?(o=ho.call(this._shortMonthsParse,a),o!==-1?o:null):(o=ho.call(this._longMonthsParse,a),o!==-1?o:null):"MMM"===t?(o=ho.call(this._shortMonthsParse,a),o!==-1?o:(o=ho.call(this._longMonthsParse,a),o!==-1?o:null)):(o=ho.call(this._longMonthsParse,a),o!==-1?o:(o=ho.call(this._shortMonthsParse,a),o!==-1?o:null))}function ce(e,t,n){var r,o,i;if(this._monthsParseExact)return le.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=A([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function de(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=w(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return n=Math.min(e.date(),ae(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ae(e){return null!=e?(de(this,e),t.updateOffset(this,!0),this):Q(this,"Month")}function he(){return ae(this.year(),this.month())}function fe(e){return this._monthsParseExact?(c(this,"_monthsRegex")||me.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=_o),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(e){return this._monthsParseExact?(c(this,"_monthsRegex")||me.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=yo),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function me(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=A([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=ne(r[t]),o[t]=ne(o[t]);for(t=0;t<24;t++)i[t]=ne(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function _e(e){return ye(e)?366:365}function ye(e){return e%4===0&&e%100!==0||e%400===0}function ge(){return ye(this.year())}function ve(e,t,n,r,o,i,a){var s=new Date(e,t,n,r,o,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function Me(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function we(e,t,n){var r=7+t-n,o=(7+Me(e,0,r).getUTCDay()-t)%7;return-o+r-1}function be(e,t,n,r,o){var i,a,s=(7+n-r)%7,u=we(e,r,o),l=1+7*(t-1)+s+u;return l<=0?(i=e-1,a=_e(i)+l):l>_e(e)?(i=e+1,a=l-_e(e)):(i=e,a=l),{year:i,dayOfYear:a}}function Le(e,t,n){var r,o,i=we(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+ke(o,t,n)):a>ke(e.year(),t,n)?(r=a-ke(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function ke(e,t,n){var r=we(e,t,n),o=we(e+1,t,n);return(_e(e)-r+o)/7}function Ee(e){return Le(e,this._week.dow,this._week.doy).week}function De(){return this._week.dow}function Te(){return this._week.doy}function Se(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ye(e){var t=Le(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ce(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function xe(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Oe(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:this._weekdays}function Pe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Re(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function je(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=A([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?(o=ho.call(this._weekdaysParse,a),o!==-1?o:null):"ddd"===t?(o=ho.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=ho.call(this._minWeekdaysParse,a),o!==-1?o:null):"dddd"===t?(o=ho.call(this._weekdaysParse,a),o!==-1?o:(o=ho.call(this._shortWeekdaysParse,a),o!==-1?o:(o=ho.call(this._minWeekdaysParse,a),o!==-1?o:null))):"ddd"===t?(o=ho.call(this._shortWeekdaysParse,a),o!==-1?o:(o=ho.call(this._weekdaysParse,a),o!==-1?o:(o=ho.call(this._minWeekdaysParse,a),o!==-1?o:null))):(o=ho.call(this._minWeekdaysParse,a),o!==-1?o:(o=ho.call(this._weekdaysParse,a),o!==-1?o:(o=ho.call(this._shortWeekdaysParse,a),o!==-1?o:null)))}function Ie(e,t,n){var r,o,i;if(this._weekdaysParseExact)return je.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=A([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Be(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ce(e,this.localeData()),this.add(e-t,"d")):t}function He(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")}function Fe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=xe(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ne(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||We.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Lo),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ue(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||We.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ko),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qe(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||We.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Eo),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function We(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=A([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),u.push(i),l.push(r),l.push(o),l.push(i);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=ne(s[t]),u[t]=ne(u[t]),l[t]=ne(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ge(){return this.hours()%12||12}function ze(){return this.hours()||24}function Ke(e,t){q(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function qe(e,t){return t._meridiemParse}function Je(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ve(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ze(e){return e?e.toLowerCase().replace("_","-"):e}function Xe(e){for(var t,n,r,o,i=0;i<e.length;){for(o=Ze(e[i]).split("-"),t=o.length,n=Ze(e[i+1]),n=n?n.split("-"):null;t>0;){if(r=$e(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&b(o,n,!0)>=t-1)break;t--}i++}return null}function $e(t){var r=null;if(!Co[t]&&"undefined"!=typeof e&&e&&e.exports)try{r=Do._abbr,n(475)("./"+t),et(r)}catch(e){}return Co[t]}function et(e,t){var n;return e&&(n=_(t)?rt(e):tt(e,t),n&&(Do=n)),Do._abbr}function tt(e,t){if(null!==t){var n=Yo;if(t.abbr=e,null!=Co[e])E("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=Co[e]._config;else if(null!=t.parentLocale){if(null==Co[t.parentLocale])return xo[t.parentLocale]||(xo[t.parentLocale]=[]),xo[t.parentLocale].push({name:e,config:t}),null;n=Co[t.parentLocale]._config}return Co[e]=new Y(S(n,t)),xo[e]&&xo[e].forEach(function(e){tt(e.name,e.config)}),et(e),Co[e]}return delete Co[e],null}function nt(e,t){if(null!=t){var n,r=Yo;null!=Co[e]&&(r=Co[e]._config),t=S(r,t),n=new Y(t),n.parentLocale=Co[e],Co[e]=n,et(e)}else null!=Co[e]&&(null!=Co[e].parentLocale?Co[e]=Co[e].parentLocale:null!=Co[e]&&delete Co[e]);return Co[e]}function rt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Do;if(!o(e)){if(t=$e(e))return t;e=[e]}return Xe(e)}function ot(){return kr(Co)}function it(e){var t,n=e._a;return n&&f(e).overflow===-2&&(t=n[oo]<0||n[oo]>11?oo:n[io]<1||n[io]>ae(n[ro],n[oo])?io:n[ao]<0||n[ao]>24||24===n[ao]&&(0!==n[so]||0!==n[uo]||0!==n[lo])?ao:n[so]<0||n[so]>59?so:n[uo]<0||n[uo]>59?uo:n[lo]<0||n[lo]>999?lo:-1,f(e)._overflowDayOfYear&&(t<ro||t>io)&&(t=io),f(e)._overflowWeeks&&t===-1&&(t=co),f(e)._overflowWeekday&&t===-1&&(t=Ao),f(e).overflow=t),e}function at(e){var t,n,r,o,i,a,s=e._i,u=Oo.exec(s)||Po.exec(s);if(u){for(f(e).iso=!0,t=0,n=jo.length;t<n;t++)if(jo[t][1].exec(u[1])){o=jo[t][0],r=jo[t][2]!==!1;break}if(null==o)return void(e._isValid=!1);if(u[3]){for(t=0,n=Io.length;t<n;t++)if(Io[t][1].exec(u[3])){i=(u[2]||" ")+Io[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(u[4]){if(!Ro.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),At(e)}else e._isValid=!1}function st(e){var n=Bo.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(at(e),void(e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e))))}function ut(e,t,n){return null!=e?e:null!=t?t:n}function lt(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ct(e){var t,n,r,o,i=[];if(!e._d){for(r=lt(e),e._w&&null==e._a[io]&&null==e._a[oo]&&dt(e),e._dayOfYear&&(o=ut(e._a[ro],r[ro]),e._dayOfYear>_e(o)&&(f(e)._overflowDayOfYear=!0),n=Me(o,0,e._dayOfYear),e._a[oo]=n.getUTCMonth(),e._a[io]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ao]&&0===e._a[so]&&0===e._a[uo]&&0===e._a[lo]&&(e._nextDay=!0,e._a[ao]=0),e._d=(e._useUTC?Me:ve).apply(null,i),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ao]=24)}}function dt(e){var t,n,r,o,i,a,s,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)i=1,a=4,n=ut(t.GG,e._a[ro],Le(vt(),1,4).year),r=ut(t.W,1),o=ut(t.E,1),(o<1||o>7)&&(u=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var l=Le(vt(),i,a);n=ut(t.gg,e._a[ro],l.year),r=ut(t.w,l.week),null!=t.d?(o=t.d,(o<0||o>6)&&(u=!0)):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(u=!0)):o=i}r<1||r>ke(n,i,a)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(s=be(n,r,o,i,a),e._a[ro]=s.year,e._dayOfYear=s.dayOfYear)}function At(e){if(e._f===t.ISO_8601)return void at(e);e._a=[],f(e).empty=!0;var n,r,o,i,a,s=""+e._i,u=s.length,l=0;for(o=X(e._f,e._locale).match(Pr)||[],n=0;n<o.length;n++)i=o[n],r=(s.match(ee(i,e))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&f(e).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),l+=r.length),Ir[i]?(r?f(e).empty=!1:f(e).unusedTokens.push(i),ie(i,r,e)):e._strict&&!r&&f(e).unusedTokens.push(i);f(e).charsLeftOver=u-l,s.length>0&&f(e).unusedInput.push(s),e._a[ao]<=12&&f(e).bigHour===!0&&e._a[ao]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[ao]=ht(e._locale,e._a[ao],e._meridiem),ct(e),it(e)}function ht(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function ft(e){var t,n,r,o,i;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)i=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],At(t),p(t)&&(i+=f(t).charsLeftOver,i+=10*f(t).unusedTokens.length,f(t).score=i,(null==r||i<r)&&(r=i,n=t));d(e,n||t)}function pt(e){if(!e._d){var t=H(e._i);e._a=l([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ct(e)}}function mt(e){var t=new g(it(_t(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function _t(e){var t=e._i,n=e._f;return e._locale=e._locale||rt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new g(it(t)):(u(t)?e._d=t:o(n)?ft(e):n?At(e):yt(e),p(e)||(e._d=null),e))}function yt(e){var n=e._i;void 0===n?e._d=new Date(t.now()):u(n)?e._d=new Date(n.valueOf()):"string"==typeof n?st(e):o(n)?(e._a=l(n.slice(0),function(e){return parseInt(e,10)}),ct(e)):"object"==typeof n?pt(e):s(n)?e._d=new Date(n):t.createFromInputFallback(e)}function gt(e,t,n,r,s){var u={};return n!==!0&&n!==!1||(r=n,n=void 0),(i(e)&&a(e)||o(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=e,u._f=t,u._strict=r,mt(u)}function vt(e,t,n,r){return gt(e,t,n,r,!1)}function Mt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return vt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function wt(){var e=[].slice.call(arguments,0);return Mt("isBefore",e)}function bt(){var e=[].slice.call(arguments,0);return Mt("isAfter",e)}function Lt(e){var t=H(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||0,a=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=rt(),this._bubble()}function kt(e){return e instanceof Lt}function Et(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Dt(e,t){q(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+K(~~(e/60),2)+t+K(~~e%60,2)})}function Tt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],o=(r+"").match(Uo)||["-",0,0],i=+(60*o[1])+w(o[2]);return 0===i?0:"+"===o[0]?i:-i}function St(e,n){var r,o;return n._isUTC?(r=n.clone(),o=(v(e)||u(e)?e.valueOf():vt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+o),t.updateOffset(r,!1),r):vt(e).local()}function Yt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ct(e,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(e=Tt(Xr,e),null===e)return this}else Math.abs(e)<16&&(e*=60);return!this._isUTC&&n&&(r=Yt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!n||this._changeInProgress?Kt(this,Ut(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Yt(this)}function xt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ot(e){return this.utcOffset(0,e)}function Pt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Yt(this),"m")),this}function Rt(){if(null!=this._tzm)this.utcOffset(this._tzm);else if("string"==typeof this._i){var e=Tt(Zr,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function jt(e){return!!this.isValid()&&(e=e?vt(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function It(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Bt(){if(!_(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),e=_t(e),e._a){var t=e._isUTC?A(e._a):vt(e._a);this._isDSTShifted=this.isValid()&&b(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ht(){return!!this.isValid()&&!this._isUTC}function Ft(){return!!this.isValid()&&this._isUTC}function Nt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ut(e,t){var n,r,o,i=e,a=null;return kt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(i={},t?i[t]=e:i.milliseconds=e):(a=Qo.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:w(a[io])*n,h:w(a[ao])*n,m:w(a[so])*n,s:w(a[uo])*n,ms:w(Et(1e3*a[lo]))*n}):(a=Wo.exec(e))?(n="-"===a[1]?-1:1,i={y:Qt(a[2],n),M:Qt(a[3],n),w:Qt(a[4],n),d:Qt(a[5],n),h:Qt(a[6],n),m:Qt(a[7],n),s:Qt(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=Gt(vt(i.from),vt(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),r=new Lt(i),kt(e)&&c(e,"_locale")&&(r._locale=e._locale),r}function Qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Wt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(e,t){var n;return e.isValid()&&t.isValid()?(t=St(t,e),e.isBefore(t)?n=Wt(e,t):(n=Wt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function zt(e,t){return function(n,r){var o,i;return null===r||isNaN(+r)||(E(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."),i=n,n=r,r=i),n="string"==typeof n?+n:n,o=Ut(n,r),Kt(this,o,e),this}}function Kt(e,n,r,o){var i=n._milliseconds,a=Et(n._days),s=Et(n._months);e.isValid()&&(o=null==o||o,i&&e._d.setTime(e._d.valueOf()+i*r),a&&W(e,"Date",Q(e,"Date")+a*r),s&&de(e,Q(e,"Month")+s*r),o&&t.updateOffset(e,a||s))}function qt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Jt(e,n){var r=e||vt(),o=St(r,this).startOf("day"),i=t.calendarFormat(this,o)||"sameElse",a=n&&(D(n[i])?n[i].call(this,r):n[i]);return this.format(a||this.localeData().calendar(i,this,vt(r)))}function Vt(){return new g(this)}function Zt(e,t){var n=v(e)?e:vt(e);return!(!this.isValid()||!n.isValid())&&(t=B(_(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Xt(e,t){var n=v(e)?e:vt(e);return!(!this.isValid()||!n.isValid())&&(t=B(_(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function $t(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function en(e,t){var n,r=v(e)?e:vt(e);return!(!this.isValid()||!r.isValid())&&(t=B(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function tn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function nn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function rn(e,t,n){var r,o,i,a;return this.isValid()?(r=St(e,this),r.isValid()?(o=6e4*(r.utcOffset()-this.utcOffset()),t=B(t),"year"===t||"month"===t||"quarter"===t?(a=on(this,r),"quarter"===t?a/=3:"year"===t&&(a/=12)):(i=this-r,a="second"===t?i/1e3:"minute"===t?i/6e4:"hour"===t?i/36e5:"day"===t?(i-o)/864e5:"week"===t?(i-o)/6048e5:i),n?a:M(a)):NaN):NaN}function on(e,t){var n,r,o=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(o,"months");return t-i<0?(n=e.clone().add(o-1,"months"),r=(t-i)/(i-n)):(n=e.clone().add(o+1,"months"),r=(t-i)/(n-i)),-(o+r)||0}function an(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function sn(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?D(Date.prototype.toISOString)?this.toDate().toISOString():Z(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):Z(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function un(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]';return this.format(n+r+o+i)}function ln(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=Z(this,e);return this.localeData().postformat(n)}function cn(e,t){return this.isValid()&&(v(e)&&e.isValid()||vt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dn(e){return this.from(vt(),e)}function An(e,t){return this.isValid()&&(v(e)&&e.isValid()||vt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function hn(e){return this.to(vt(),e)}function fn(e){var t;return void 0===e?this._locale._abbr:(t=rt(e),null!=t&&(this._locale=t),this)}function pn(){return this._locale}function mn(e){switch(e=B(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function _n(e){return e=B(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function yn(){return this._d.valueOf()-6e4*(this._offset||0)}function gn(){return Math.floor(this.valueOf()/1e3)}function vn(){return new Date(this.valueOf())}function Mn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wn(){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()}}function bn(){return this.isValid()?this.toISOString():null}function Ln(){return p(this)}function kn(){return d({},f(this))}function En(){return f(this).overflow}function Dn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Tn(e,t){q(0,[e,e.length],0,t)}function Sn(e){return On.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Yn(e){return On.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Cn(){return ke(this.year(),1,4)}function xn(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)}function On(e,t,n,r,o){var i;return null==e?Le(this,r,o).year:(i=ke(e,r,o),t>i&&(t=i),Pn.call(this,e,t,n,r,o))}function Pn(e,t,n,r,o){var i=be(e,t,n,r,o),a=Me(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Rn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function jn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function In(e,t){t[lo]=w(1e3*("0."+e))}function Bn(){return this._isUTC?"UTC":""}function Hn(){return this._isUTC?"Coordinated Universal Time":"";
}function Fn(e){return vt(1e3*e)}function Nn(){return vt.apply(null,arguments).parseZone()}function Un(e){return e}function Qn(e,t,n,r){var o=rt(),i=A().set(r,t);return o[n](i,e)}function Wn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Qn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=Qn(e,r,n,"month");return o}function Gn(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var o=rt(),i=e?o._week.dow:0;if(null!=n)return Qn(t,(n+i)%7,r,"day");var a,u=[];for(a=0;a<7;a++)u[a]=Qn(t,(a+i)%7,r,"day");return u}function zn(e,t){return Wn(e,t,"months")}function Kn(e,t){return Wn(e,t,"monthsShort")}function qn(e,t,n){return Gn(e,t,n,"weekdays")}function Jn(e,t,n){return Gn(e,t,n,"weekdaysShort")}function Vn(e,t,n){return Gn(e,t,n,"weekdaysMin")}function Zn(){var e=this._data;return this._milliseconds=ti(this._milliseconds),this._days=ti(this._days),this._months=ti(this._months),e.milliseconds=ti(e.milliseconds),e.seconds=ti(e.seconds),e.minutes=ti(e.minutes),e.hours=ti(e.hours),e.months=ti(e.months),e.years=ti(e.years),this}function Xn(e,t,n,r){var o=Ut(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function $n(e,t){return Xn(this,e,t,1)}function er(e,t){return Xn(this,e,t,-1)}function tr(e){return e<0?Math.floor(e):Math.ceil(e)}function nr(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,u=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*tr(or(s)+a),a=0,s=0),u.milliseconds=i%1e3,e=M(i/1e3),u.seconds=e%60,t=M(e/60),u.minutes=t%60,n=M(t/60),u.hours=n%24,a+=M(n/24),o=M(rr(a)),s+=o,a-=tr(or(o)),r=M(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function rr(e){return 4800*e/146097}function or(e){return 146097*e/4800}function ir(e){var t,n,r=this._milliseconds;if(e=B(e),"month"===e||"year"===e)return t=this._days+r/864e5,n=this._months+rr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(or(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function ar(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12)}function sr(e){return function(){return this.as(e)}}function ur(e){return e=B(e),this[e+"s"]()}function lr(e){return function(){return this._data[e]}}function cr(){return M(this.days()/7)}function dr(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function Ar(e,t,n){var r=Ut(e).abs(),o=_i(r.as("s")),i=_i(r.as("m")),a=_i(r.as("h")),s=_i(r.as("d")),u=_i(r.as("M")),l=_i(r.as("y")),c=o<yi.s&&["s",o]||i<=1&&["m"]||i<yi.m&&["mm",i]||a<=1&&["h"]||a<yi.h&&["hh",a]||s<=1&&["d"]||s<yi.d&&["dd",s]||u<=1&&["M"]||u<yi.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,dr.apply(null,c)}function hr(e){return void 0===e?_i:"function"==typeof e&&(_i=e,!0)}function fr(e,t){return void 0!==yi[e]&&(void 0===t?yi[e]:(yi[e]=t,!0))}function pr(e){var t=this.localeData(),n=Ar(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function mr(){var e,t,n,r=gi(this._milliseconds)/1e3,o=gi(this._days),i=gi(this._months);e=M(r/60),t=M(e/60),r%=60,e%=60,n=M(i/12),i%=12;var a=n,s=i,u=o,l=t,c=e,d=r,A=this.asSeconds();return A?(A<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||d?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(d?d+"S":""):"P0D"}var _r,yr;yr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var gr=yr,vr=t.momentProperties=[],Mr=!1,wr={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var br;br=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};var Lr,kr=br,Er={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Dr={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"},Tr="Invalid date",Sr="%d",Yr=/\d{1,2}/,Cr={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},xr={},Or={},Pr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Rr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,jr={},Ir={},Br=/\d/,Hr=/\d\d/,Fr=/\d{3}/,Nr=/\d{4}/,Ur=/[+-]?\d{6}/,Qr=/\d\d?/,Wr=/\d\d\d\d?/,Gr=/\d\d\d\d\d\d?/,zr=/\d{1,3}/,Kr=/\d{1,4}/,qr=/[+-]?\d{1,6}/,Jr=/\d+/,Vr=/[+-]?\d+/,Zr=/Z|[+-]\d\d:?\d\d/gi,Xr=/Z|[+-]\d\d(?::?\d\d)?/gi,$r=/[+-]?\d+(\.\d{1,3})?/,eo=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,to={},no={},ro=0,oo=1,io=2,ao=3,so=4,uo=5,lo=6,co=7,Ao=8;Lr=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};var ho=Lr;q("M",["MM",2],"Mo",function(){return this.month()+1}),q("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),q("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),F("month",8),$("M",Qr),$("MM",Qr,Hr),$("MMM",function(e,t){return t.monthsShortRegex(e)}),$("MMMM",function(e,t){return t.monthsRegex(e)}),re(["M","MM"],function(e,t){t[oo]=w(e)-1}),re(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[oo]=o:f(n).invalidMonth=e});var fo=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,po="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),mo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_o=eo,yo=eo;q("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),q(0,["YY",2],0,function(){return this.year()%100}),q(0,["YYYY",4],0,"year"),q(0,["YYYYY",5],0,"year"),q(0,["YYYYYY",6,!0],0,"year"),I("year","y"),F("year",1),$("Y",Vr),$("YY",Qr,Hr),$("YYYY",Kr,Nr),$("YYYYY",qr,Ur),$("YYYYYY",qr,Ur),re(["YYYYY","YYYYYY"],ro),re("YYYY",function(e,n){n[ro]=2===e.length?t.parseTwoDigitYear(e):w(e)}),re("YY",function(e,n){n[ro]=t.parseTwoDigitYear(e)}),re("Y",function(e,t){t[ro]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return w(e)+(w(e)>68?1900:2e3)};var go=U("FullYear",!0);q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),F("week",5),F("isoWeek",5),$("w",Qr),$("ww",Qr,Hr),$("W",Qr),$("WW",Qr,Hr),oe(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=w(e)});var vo={dow:0,doy:6};q("d",0,"do","day"),q("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),q("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),q("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),$("d",Qr),$("e",Qr),$("E",Qr),$("dd",function(e,t){return t.weekdaysMinRegex(e)}),$("ddd",function(e,t){return t.weekdaysShortRegex(e)}),$("dddd",function(e,t){return t.weekdaysRegex(e)}),oe(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:f(n).invalidWeekday=e}),oe(["d","e","E"],function(e,t,n,r){t[r]=w(e)});var Mo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),wo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),bo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lo=eo,ko=eo,Eo=eo;q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Ge),q("k",["kk",2],0,ze),q("hmm",0,0,function(){return""+Ge.apply(this)+K(this.minutes(),2)}),q("hmmss",0,0,function(){return""+Ge.apply(this)+K(this.minutes(),2)+K(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+K(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+K(this.minutes(),2)+K(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),I("hour","h"),F("hour",13),$("a",qe),$("A",qe),$("H",Qr),$("h",Qr),$("HH",Qr,Hr),$("hh",Qr,Hr),$("hmm",Wr),$("hmmss",Gr),$("Hmm",Wr),$("Hmmss",Gr),re(["H","HH"],ao),re(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),re(["h","hh"],function(e,t,n){t[ao]=w(e),f(n).bigHour=!0}),re("hmm",function(e,t,n){var r=e.length-2;t[ao]=w(e.substr(0,r)),t[so]=w(e.substr(r)),f(n).bigHour=!0}),re("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[ao]=w(e.substr(0,r)),t[so]=w(e.substr(r,2)),t[uo]=w(e.substr(o)),f(n).bigHour=!0}),re("Hmm",function(e,t,n){var r=e.length-2;t[ao]=w(e.substr(0,r)),t[so]=w(e.substr(r))}),re("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[ao]=w(e.substr(0,r)),t[so]=w(e.substr(r,2)),t[uo]=w(e.substr(o))});var Do,To=/[ap]\.?m?\.?/i,So=U("Hours",!0),Yo={calendar:Er,longDateFormat:Dr,invalidDate:Tr,ordinal:Sr,ordinalParse:Yr,relativeTime:Cr,months:po,monthsShort:mo,week:vo,weekdays:Mo,weekdaysMin:bo,weekdaysShort:wo,meridiemParse:To},Co={},xo={},Oo=/^\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)?)?$/,Po=/^\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)?)?$/,Ro=/Z|[+-]\d\d(?::?\d\d)?/,jo=[["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}/]],Io=[["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/]],Bo=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=k("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non 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":""))}),t.ISO_8601=function(){};var Ho=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),Fo=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}),No=function(){return Date.now?Date.now():+new Date};Dt("Z",":"),Dt("ZZ",""),$("Z",Xr),$("ZZ",Xr),re(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Tt(Xr,e)});var Uo=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Qo=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Wo=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ut.fn=Lt.prototype;var Go=zt(1,"add"),zo=zt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ko=k("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)});q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Tn("gggg","weekYear"),Tn("ggggg","weekYear"),Tn("GGGG","isoWeekYear"),Tn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),$("G",Vr),$("g",Vr),$("GG",Qr,Hr),$("gg",Qr,Hr),$("GGGG",Kr,Nr),$("gggg",Kr,Nr),$("GGGGG",qr,Ur),$("ggggg",qr,Ur),oe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=w(e)}),oe(["gg","GG"],function(e,n,r,o){n[o]=t.parseTwoDigitYear(e)}),q("Q",0,"Qo","quarter"),I("quarter","Q"),F("quarter",7),$("Q",Br),re("Q",function(e,t){t[oo]=3*(w(e)-1)}),q("D",["DD",2],"Do","date"),I("date","D"),F("date",9),$("D",Qr),$("DD",Qr,Hr),$("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),re(["D","DD"],io),re("Do",function(e,t){t[io]=w(e.match(Qr)[0],10)});var qo=U("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),F("dayOfYear",4),$("DDD",zr),$("DDDD",Fr),re(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),q("m",["mm",2],0,"minute"),I("minute","m"),F("minute",14),$("m",Qr),$("mm",Qr,Hr),re(["m","mm"],so);var Jo=U("Minutes",!1);q("s",["ss",2],0,"second"),I("second","s"),F("second",15),$("s",Qr),$("ss",Qr,Hr),re(["s","ss"],uo);var Vo=U("Seconds",!1);q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),F("millisecond",16),$("S",zr,Br),$("SS",zr,Hr),$("SSS",zr,Fr);var Zo;for(Zo="SSSS";Zo.length<=9;Zo+="S")$(Zo,Jr);for(Zo="S";Zo.length<=9;Zo+="S")re(Zo,In);var Xo=U("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var $o=g.prototype;$o.add=Go,$o.calendar=Jt,$o.clone=Vt,$o.diff=rn,$o.endOf=_n,$o.format=ln,$o.from=cn,$o.fromNow=dn,$o.to=An,$o.toNow=hn,$o.get=G,$o.invalidAt=En,$o.isAfter=Zt,$o.isBefore=Xt,$o.isBetween=$t,$o.isSame=en,$o.isSameOrAfter=tn,$o.isSameOrBefore=nn,$o.isValid=Ln,$o.lang=Ko,$o.locale=fn,$o.localeData=pn,$o.max=Fo,$o.min=Ho,$o.parsingFlags=kn,$o.set=z,$o.startOf=mn,$o.subtract=zo,$o.toArray=Mn,$o.toObject=wn,$o.toDate=vn,$o.toISOString=sn,$o.inspect=un,$o.toJSON=bn,$o.toString=an,$o.unix=gn,$o.valueOf=yn,$o.creationData=Dn,$o.year=go,$o.isLeapYear=ge,$o.weekYear=Sn,$o.isoWeekYear=Yn,$o.quarter=$o.quarters=Rn,$o.month=Ae,$o.daysInMonth=he,$o.week=$o.weeks=Se,$o.isoWeek=$o.isoWeeks=Ye,$o.weeksInYear=xn,$o.isoWeeksInYear=Cn,$o.date=qo,$o.day=$o.days=Be,$o.weekday=He,$o.isoWeekday=Fe,$o.dayOfYear=jn,$o.hour=$o.hours=So,$o.minute=$o.minutes=Jo,$o.second=$o.seconds=Vo,$o.millisecond=$o.milliseconds=Xo,$o.utcOffset=Ct,$o.utc=Ot,$o.local=Pt,$o.parseZone=Rt,$o.hasAlignedHourOffset=jt,$o.isDST=It,$o.isLocal=Ht,$o.isUtcOffset=Ft,$o.isUtc=Nt,$o.isUTC=Nt,$o.zoneAbbr=Bn,$o.zoneName=Hn,$o.dates=k("dates accessor is deprecated. Use date instead.",qo),$o.months=k("months accessor is deprecated. Use month instead",Ae),$o.years=k("years accessor is deprecated. Use year instead",go),$o.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",xt),$o.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Bt);var ei=Y.prototype;ei.calendar=C,ei.longDateFormat=x,ei.invalidDate=O,ei.ordinal=P,ei.preparse=Un,ei.postformat=Un,ei.relativeTime=R,ei.pastFuture=j,ei.set=T,ei.months=se,ei.monthsShort=ue,ei.monthsParse=ce,ei.monthsRegex=pe,ei.monthsShortRegex=fe,ei.week=Ee,ei.firstDayOfYear=Te,ei.firstDayOfWeek=De,ei.weekdays=Oe,ei.weekdaysMin=Re,ei.weekdaysShort=Pe,ei.weekdaysParse=Ie,ei.weekdaysRegex=Ne,ei.weekdaysShortRegex=Ue,ei.weekdaysMinRegex=Qe,ei.isPM=Je,ei.meridiem=Ve,et("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=k("moment.lang is deprecated. Use moment.locale instead.",et),t.langData=k("moment.langData is deprecated. Use moment.localeData instead.",rt);var ti=Math.abs,ni=sr("ms"),ri=sr("s"),oi=sr("m"),ii=sr("h"),ai=sr("d"),si=sr("w"),ui=sr("M"),li=sr("y"),ci=lr("milliseconds"),di=lr("seconds"),Ai=lr("minutes"),hi=lr("hours"),fi=lr("days"),pi=lr("months"),mi=lr("years"),_i=Math.round,yi={s:45,m:45,h:22,d:26,M:11},gi=Math.abs,vi=Lt.prototype;return vi.abs=Zn,vi.add=$n,vi.subtract=er,vi.as=ir,vi.asMilliseconds=ni,vi.asSeconds=ri,vi.asMinutes=oi,vi.asHours=ii,vi.asDays=ai,vi.asWeeks=si,vi.asMonths=ui,vi.asYears=li,vi.valueOf=ar,vi._bubble=nr,vi.get=ur,vi.milliseconds=ci,vi.seconds=di,vi.minutes=Ai,vi.hours=hi,vi.days=fi,vi.weeks=cr,vi.months=pi,vi.years=mi,vi.humanize=pr,vi.toISOString=mr,vi.toString=mr,vi.toJSON=mr,vi.locale=fn,vi.localeData=pn,vi.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",mr),vi.lang=Ko,q("X",0,0,"unix"),q("x",0,0,"valueOf"),$("x",Vr),$("X",$r),re("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),re("x",function(e,t,n){n._d=new Date(w(e))}),t.version="2.17.1",r(vt),t.fn=$o,t.min=wt,t.max=bt,t.now=No,t.utc=A,t.unix=Fn,t.months=zn,t.isDate=u,t.locale=et,t.invalid=m,t.duration=Ut,t.isMoment=v,t.weekdays=qn,t.parseZone=Nn,t.localeData=rt,t.isDuration=kt,t.monthsShort=Kn,t.weekdaysMin=Vn,t.defineLocale=tt,t.updateLocale=nt,t.locales=ot,t.weekdaysShort=Jn,t.normalizeUnits=B,t.relativeTimeRounding=hr,t.relativeTimeThreshold=fr,t.calendarFormat=qt,t.prototype=$o,t})}).call(t,n(18)(e))},function(e,t,n){"use strict";e.exports=n(43)},function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){if(o(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,s,u],d=0;l=new Error(t.replace(/%s/g,function(){return c[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";var r=n(14),o=r;e.exports=o},function(e,t){"use strict";function n(e){for(var