express-sweet 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,30 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [1.0.22] - 2022-07-27
5
+ ### Fixed
6
+ - You can now set hook functions that are called before the view is rendered.
7
+ Hook functions can be used, for example, to set local variables that can be used in the view.
8
+
9
+ To use, add the beforeRender hook function to "config/view.js" as follows.
10
+ ```js
11
+ /**
12
+ * Hook function just before the view is rendered.
13
+ * For example, you can set your own local variables that can be used within the view.
14
+ *
15
+ * @example
16
+ * // The message set here can be referenced in the view as {{message}}.
17
+ * beforeRender: res => {
18
+ * res.loclas.message = 'Hello World';
19
+ * }
20
+ *
21
+ * @type {(res: express.Response) => void}
22
+ */
23
+ beforeRender: res => {
24
+ res.loclas.message = 'Hello World';
25
+ }
26
+ ```
27
+
4
28
  ## [1.0.21] - 2022-05-26
5
29
  ### Fixed
6
30
  - Added an option to the face indexing method to retrieve details (gender, emotion, age group) of indexed faces.
@@ -327,4 +351,5 @@ All notable changes to this project will be documented in this file.
327
351
  [1.0.18]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.17...v1.0.18
328
352
  [1.0.19]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.18...v1.0.19
329
353
  [1.0.20]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.19...v1.0.20
330
- [1.0.20]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.20...v1.0.21
354
+ [1.0.21]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.20...v1.0.21
355
+ [1.0.22]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.21...v1.0.22
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("fs"),a=require("path"),express=require("express"),crypto=require("crypto"),passport=require("passport"),passportLocal=require("passport-local"),buffer=require("buffer"),tty=require("tty"),util=require("util"),net=require("net"),url=require("url"),events=require("events"),i=require("os"),o=require("assert"),sequelize=require("sequelize"),AWS=require("aws-sdk");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var e__default=_interopDefaultLegacy(e),a__default=_interopDefaultLegacy(a),express__default=_interopDefaultLegacy(express),crypto__default=_interopDefaultLegacy(crypto),passport__default=_interopDefaultLegacy(passport),buffer__default=_interopDefaultLegacy(buffer),tty__default=_interopDefaultLegacy(tty),util__default=_interopDefaultLegacy(util),net__default=_interopDefaultLegacy(net),url__default=_interopDefaultLegacy(url),events__default=_interopDefaultLegacy(events),i__default=_interopDefaultLegacy(i),o__default=_interopDefaultLegacy(o),sequelize__default=_interopDefaultLegacy(sequelize),AWS__default=_interopDefaultLegacy(AWS),version="1.0.20";class Global{static mount(){global.APP_DIR=process.cwd(),console.log("Set global variable APP_DIR")}}function log$2(e){console.log(`[dotenv][DEBUG] ${e}`)}const NEWLINE="\n",RE_INI_KEY_VAL=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,RE_NEWLINES=/\\n/g,NEWLINES_MATCH=/\n|\r|\r\n/;function parse$4(e,a){const i=Boolean(a&&a.debug),n={};return e.toString().split(NEWLINES_MATCH).forEach((function(e,a){const t=e.match(RE_INI_KEY_VAL);if(null!=t){const e=t[1];let a=t[2]||"";const i=a.length-1,s='"'===a[0]&&'"'===a[i];"'"===a[0]&&"'"===a[i]||s?(a=a.substring(1,i),s&&(a=a.replace(RE_NEWLINES,NEWLINE))):a=a.trim(),n[e]=a}else i&&log$2(`did not match key and value when parsing line ${a+1}: ${e}`)})),n}function config(e){let a=a__default.default.resolve(process.cwd(),".env"),i="utf8",n=!1;e&&(null!=e.path&&(a=e.path),null!=e.encoding&&(i=e.encoding),null!=e.debug&&(n=!0));try{const e=parse$4(e__default.default.readFileSync(a,{encoding:i}),{debug:n});return Object.keys(e).forEach((function(a){Object.prototype.hasOwnProperty.call(process.env,a)?n&&log$2(`"${a}" is already defined in \`process.env\` and will not be overwritten`):process.env[a]=e[a]})),{parsed:e}}catch(e){return{error:e}}}var config_1=config,parse_1$2=parse$4,main={config:config_1,parse:parse_1$2};class Environment{static mount(){if(global.loadedEnv)return void console.log("env is already loaded, so do nothing");const e=this.loadOptions();if(!e.env_path)return;const a=main.parse(e__default.default.readFileSync(e.env_path));for(let e in a)console.log(`Read environment variable ${e}`),process.env[e]=a[e];global.loadedEnv=!0}static loadOptions(){const e={env_path:void 0},a=`${process.cwd()}/config/config`;return e__default.default.existsSync(`${a}.js`)?Object.assign(e,require(a).default||require(a)):e}}function cache_busting(e,a){const i=`${a__default.default.join(process.cwd(),"public")}/${e.replace(/^\//,"")}`;if(!e__default.default.existsSync(i))return e;const n=new Date(e__default.default.statSync(i).mtime).getTime();return`${a}/${e.replace(/^\//,"")}?${n}`}var html=Object.freeze({__proto__:null,cache_busting:cache_busting});function json_stringify(e,a=0){return JSON.stringify(e,null,a)}function json_parse(e){return JSON.parse(e)}var object=Object.freeze({__proto__:null,json_stringify:json_stringify,json_parse:json_parse}),isAsyncFunction=e=>e&&e.constructor&&e.constructor===Object.getPrototypeOf((async function(){})).constructor,isString=e=>"string"==typeof e&&""!==e,isObject=e=>null!=e&&"object"==typeof e&&!1===Array.isArray(e),isArray=e=>"[object Array]"===Object.prototype.toString.call(e),utils={isAsyncFunction:isAsyncFunction,isString:isString,isObject:isObject,isArray:isArray},index$5=Object.freeze({__proto__:null,default:utils});function replace(e,a,i){return e.replace(a,i)}function split(e,a){return utils.isString(e)?(utils.isString(a)||(a=","),e.split(a)):[]}var string=Object.freeze({__proto__:null,replace:replace,split:split});function eq(e,a){return e===a}function eqw(e,a){return e==a}function neq(e,a){return e!==a}function neqw(e,a){return e!=a}function lt(e,a){return e<a}function lte(e,a){return e<=a}function gt(e,a){return e>a}function gte(e,a){return e>=a}function not(e){return!e}function ifx(e,a,i){return utils.isObject(i)&&"ifx"===i.name&&i.hasOwnProperty("hash")&&(i=""),e?a:i}function empty(e){return"string"==typeof e?e=e.replace(/^[\s ]+|[\s ]+$/g,""):Array.isArray(e)&&0===e.length&&(e=null),!e}function not_empty(e){return"string"==typeof e?e=e.replace(/^[\s ]+|[\s ]+$/g,""):Array.isArray(e)&&0===e.length&&(e=null),!!e}function count(e){return!!Array.isArray(e)&&e.length}function and(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(!a)return!1;return!0}function or(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(a)return!0;return!1}function coalesce(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(a)return a;return e.pop()}function includes(e,a,i=!0){if(!Array.isArray(e)||0===e.length)return!1;for(let n of e)if(i&&n===a||!i&&n==a)return!0;return!1}var comparison=Object.freeze({__proto__:null,eq:eq,eqw:eqw,neq:neq,neqw:neqw,lt:lt,lte:lte,gt:gt,gte:gte,not:not,ifx:ifx,empty:empty,not_empty:not_empty,count:count,and:and,or:or,coalesce:coalesce,includes:includes}),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule(e,a){return e(a={exports:{}},a.exports),a.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var moment=createCommonjsModule((function(e,a){e.exports=function(){var a,i;function n(){return a.apply(null,arguments)}function t(e){a=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(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(r(e,a))return!1;return!0}function l(e){return void 0===e}function p(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 d(e,a){var i,n=[];for(i=0;i<e.length;++i)n.push(a(e[i],i));return n}function m(e,a){for(var i in a)r(a,i)&&(e[i]=a[i]);return r(a,"toString")&&(e.toString=a.toString),r(a,"valueOf")&&(e.valueOf=a.valueOf),e}function f(e,a,i,n){return Gi(e,a,i,n,!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 v(e){return null==e._pf&&(e._pf=h()),e._pf}function x(e){if(null==e._isValid){var a=v(e),n=i.call(a.parsedDateParts,(function(e){return null!=e})),t=!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&&n);if(e._strict&&(t=t&&0===a.charsLeftOver&&0===a.unusedTokens.length&&void 0===a.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return t;e._isValid=t}return e._isValid}function g(e){var a=f(NaN);return null!=e?m(v(a),e):v(a).userInvalidated=!0,a}i=Array.prototype.some?Array.prototype.some:function(e){var a,i=Object(this),n=i.length>>>0;for(a=0;a<n;a++)if(a in i&&e.call(this,i[a],a,i))return!0;return!1};var b=n.momentProperties=[],y=!1;function _(e,a){var i,n,t;if(l(a._isAMomentObject)||(e._isAMomentObject=a._isAMomentObject),l(a._i)||(e._i=a._i),l(a._f)||(e._f=a._f),l(a._l)||(e._l=a._l),l(a._strict)||(e._strict=a._strict),l(a._tzm)||(e._tzm=a._tzm),l(a._isUTC)||(e._isUTC=a._isUTC),l(a._offset)||(e._offset=a._offset),l(a._pf)||(e._pf=v(a)),l(a._locale)||(e._locale=a._locale),b.length>0)for(i=0;i<b.length;i++)l(t=a[n=b[i]])||(e[n]=t);return e}function w(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,n.updateOffset(this),y=!1)}function k(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function S(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,a){var i=!0;return m((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),i){var t,s,o,c=[];for(s=0;s<arguments.length;s++){if(t="","object"==typeof arguments[s]){for(o in t+="\n["+s+"] ",arguments[0])r(arguments[0],o)&&(t+=o+": "+arguments[0][o]+", ");t=t.slice(0,-2)}else t=arguments[s];c.push(t)}S(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),i=!1}return a.apply(this,arguments)}),a)}var D,M={};function j(e,a){null!=n.deprecationHandler&&n.deprecationHandler(e,a),M[e]||(S(a),M[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Y(e){var a,i;for(i in e)r(e,i)&&(T(a=e[i])?this[i]=a:this["_"+i]=a);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function E(e,a){var i,n=m({},e);for(i in a)r(a,i)&&(o(e[i])&&o(a[i])?(n[i]={},m(n[i],e[i]),m(n[i],a[i])):null!=a[i]?n[i]=a[i]:delete n[i]);for(i in e)r(e,i)&&!r(a,i)&&o(e[i])&&(n[i]=m({},n[i]));return n}function N(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,D=Object.keys?Object.keys:function(e){var a,i=[];for(a in e)r(e,a)&&i.push(a);return i};var C={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(e,a,i){var n=this._calendar[e]||this._calendar.sameElse;return T(n)?n.call(a,i):n}function R(e,a,i){var n=""+Math.abs(e),t=a-n.length;return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,t)).toString().substr(1)+n}var P=/(\[[^\[]*\])|(\\)?([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,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},I={};function U(e,a,i,n){var t=n;"string"==typeof n&&(t=function(){return this[n]()}),e&&(I[e]=t),a&&(I[a[0]]=function(){return R(t.apply(this,arguments),a[1],a[2])}),i&&(I[i]=function(){return this.localeData().ordinal(t.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $(e){var a,i,n=e.match(P);for(a=0,i=n.length;a<i;a++)I[n[a]]?n[a]=I[n[a]]:n[a]=z(n[a]);return function(a){var t,s="";for(t=0;t<i;t++)s+=T(n[t])?n[t].call(a,e):n[t];return s}}function H(e,a){return e.isValid()?(a=W(a,e.localeData()),F[a]=F[a]||$(a),F[a](e)):e.localeData().invalidDate()}function W(e,a){var i=5;function n(e){return a.longDateFormat(e)||e}for(L.lastIndex=0;i>=0&&L.test(e);)e=e.replace(L,n),L.lastIndex=0,i-=1;return e}var q={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 G(e){var a=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return a||!i?a:(this._longDateFormat[e]=i.match(P).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 B(){return this._invalidDate}var Z="%d",J=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var K={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 X(e,a,i,n){var t=this._relativeTime[i];return T(t)?t(e,a,i,n):t.replace(/%d/i,e)}function ee(e,a){var i=this._relativeTime[e>0?"future":"past"];return T(i)?i(a):i.replace(/%s/i,a)}var ae={};function ie(e,a){var i=e.toLowerCase();ae[i]=ae[i+"s"]=ae[a]=e}function ne(e){return"string"==typeof e?ae[e]||ae[e.toLowerCase()]:void 0}function te(e){var a,i,n={};for(i in e)r(e,i)&&(a=ne(i))&&(n[a]=e[i]);return n}var se={};function oe(e,a){se[e]=a}function re(e){var a,i=[];for(a in e)r(e,a)&&i.push({unit:a,priority:se[a]});return i.sort((function(e,a){return e.priority-a.priority})),i}function ce(e){return e%4==0&&e%100!=0||e%400==0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var a=+e,i=0;return 0!==a&&isFinite(a)&&(i=le(a)),i}function ue(e,a){return function(i){return null!=i?(me(this,e,i),n.updateOffset(this,a),this):de(this,e)}}function de(e,a){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+a]():NaN}function me(e,a,i){e.isValid()&&!isNaN(i)&&("FullYear"===a&&ce(e.year())&&1===e.month()&&29===e.date()?(i=pe(i),e._d["set"+(e._isUTC?"UTC":"")+a](i,e.month(),Xe(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+a](i))}function fe(e){return T(this[e=ne(e)])?this[e]():this}function he(e,a){if("object"==typeof e){var i,n=re(e=te(e));for(i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit])}else if(T(this[e=ne(e)]))return this[e](a);return this}var ve,xe=/\d/,ge=/\d\d/,be=/\d{3}/,ye=/\d{4}/,_e=/[+-]?\d{6}/,we=/\d\d?/,ke=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,Oe=/\d{1,3}/,De=/\d{1,4}/,Me=/[+-]?\d{1,6}/,je=/\d+/,Te=/[+-]?\d+/,Ye=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,Ne=/[+-]?\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 Ae(e,a,i){ve[e]=T(a)?a:function(e,n){return e&&i?i:a}}function Re(e,a){return r(ve,e)?ve[e](a._strict,a._locale):new RegExp(Pe(e))}function Pe(e){return Le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,a,i,n,t){return a||i||n||t})))}function Le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Fe={};function Ie(e,a){var i,n=a;for("string"==typeof e&&(e=[e]),p(a)&&(n=function(e,i){i[a]=pe(e)}),i=0;i<e.length;i++)Fe[e[i]]=n}function Ue(e,a){Ie(e,(function(e,i,n,t){n._w=n._w||{},a(e,n._w,n,t)}))}function ze(e,a,i){null!=a&&r(Fe,e)&&Fe[e](a,i._a,i,e)}var $e,He=0,We=1,qe=2,Ge=3,Ve=4,Be=5,Ze=6,Je=7,Qe=8;function Ke(e,a){return(e%a+a)%a}function Xe(e,a){if(isNaN(e)||isNaN(a))return NaN;var i=Ke(a,12);return e+=(a-i)/12,1===i?ce(e)?29:28:31-i%7%2}$e=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},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),U("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ie("month","M"),oe("month",8),Ae("M",we),Ae("MM",we,ge),Ae("MMM",(function(e,a){return a.monthsShortRegex(e)})),Ae("MMMM",(function(e,a){return a.monthsRegex(e)})),Ie(["M","MM"],(function(e,a){a[We]=pe(e)-1})),Ie(["MMM","MMMM"],(function(e,a,i,n){var t=i._locale.monthsParse(e,n,i._strict);null!=t?a[We]=t:v(i).invalidMonth=e}));var ea="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),aa="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ia=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,na=Ce,ta=Ce;function sa(e,a){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ia).test(a)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function oa(e,a){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ia.test(a)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ra(e,a,i){var n,t,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===a?-1!==(t=$e.call(this._shortMonthsParse,o))?t:null:-1!==(t=$e.call(this._longMonthsParse,o))?t:null:"MMM"===a?-1!==(t=$e.call(this._shortMonthsParse,o))||-1!==(t=$e.call(this._longMonthsParse,o))?t:null:-1!==(t=$e.call(this._longMonthsParse,o))||-1!==(t=$e.call(this._shortMonthsParse,o))?t:null}function ca(e,a,i){var n,t,s;if(this._monthsParseExact)return ra.call(this,e,a,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(t=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(t,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(t,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(t,"")+"|^"+this.monthsShort(t,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===a&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===a&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}}function la(e,a){var i;if(!e.isValid())return e;if("string"==typeof a)if(/^\d+$/.test(a))a=pe(a);else if(!p(a=e.localeData().monthsParse(a)))return e;return i=Math.min(e.date(),Xe(e.year(),a)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](a,i),e}function pa(e){return null!=e?(la(this,e),n.updateOffset(this,!0),this):de(this,"Month")}function ua(){return Xe(this.year(),this.month())}function da(e){return this._monthsParseExact?(r(this,"_monthsRegex")||fa.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=na),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ma(e){return this._monthsParseExact?(r(this,"_monthsRegex")||fa.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=ta),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function fa(){function e(e,a){return a.length-e.length}var a,i,n=[],t=[],s=[];for(a=0;a<12;a++)i=f([2e3,a]),n.push(this.monthsShort(i,"")),t.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(n.sort(e),t.sort(e),s.sort(e),a=0;a<12;a++)n[a]=Le(n[a]),t[a]=Le(t[a]);for(a=0;a<24;a++)s[a]=Le(s[a]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function ha(e){return ce(e)?366:365}U("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),ie("year","y"),oe("year",1),Ae("Y",Te),Ae("YY",we,ge),Ae("YYYY",De,ye),Ae("YYYYY",Me,_e),Ae("YYYYYY",Me,_e),Ie(["YYYYY","YYYYYY"],He),Ie("YYYY",(function(e,a){a[He]=2===e.length?n.parseTwoDigitYear(e):pe(e)})),Ie("YY",(function(e,a){a[He]=n.parseTwoDigitYear(e)})),Ie("Y",(function(e,a){a[He]=parseInt(e,10)})),n.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var va=ue("FullYear",!0);function xa(){return ce(this.year())}function ga(e,a,i,n,t,s,o){var r;return e<100&&e>=0?(r=new Date(e+400,a,i,n,t,s,o),isFinite(r.getFullYear())&&r.setFullYear(e)):r=new Date(e,a,i,n,t,s,o),r}function ba(e){var a,i;return e<100&&e>=0?((i=Array.prototype.slice.call(arguments))[0]=e+400,a=new Date(Date.UTC.apply(null,i)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(e)):a=new Date(Date.UTC.apply(null,arguments)),a}function ya(e,a,i){var n=7+a-i;return-(7+ba(e,0,n).getUTCDay()-a)%7+n-1}function _a(e,a,i,n,t){var s,o,r=1+7*(a-1)+(7+i-n)%7+ya(e,n,t);return r<=0?o=ha(s=e-1)+r:r>ha(e)?(s=e+1,o=r-ha(e)):(s=e,o=r),{year:s,dayOfYear:o}}function wa(e,a,i){var n,t,s=ya(e.year(),a,i),o=Math.floor((e.dayOfYear()-s-1)/7)+1;return o<1?n=o+ka(t=e.year()-1,a,i):o>ka(e.year(),a,i)?(n=o-ka(e.year(),a,i),t=e.year()+1):(t=e.year(),n=o),{week:n,year:t}}function ka(e,a,i){var n=ya(e,a,i),t=ya(e+1,a,i);return(ha(e)-n+t)/7}function Sa(e){return wa(e,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),ie("week","w"),ie("isoWeek","W"),oe("week",5),oe("isoWeek",5),Ae("w",we),Ae("ww",we,ge),Ae("W",we),Ae("WW",we,ge),Ue(["w","ww","W","WW"],(function(e,a,i,n){a[n.substr(0,1)]=pe(e)}));var Oa={dow:0,doy:6};function Da(){return this._week.dow}function Ma(){return this._week.doy}function ja(e){var a=this.localeData().week(this);return null==e?a:this.add(7*(e-a),"d")}function Ta(e){var a=wa(this,1,4).week;return null==e?a:this.add(7*(e-a),"d")}function Ya(e,a){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=a.weekdaysParse(e))?e:null:parseInt(e,10)}function Ea(e,a){return"string"==typeof e?a.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Na(e,a){return e.slice(a,7).concat(e.slice(0,a))}U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),ie("day","d"),ie("weekday","e"),ie("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Ae("d",we),Ae("e",we),Ae("E",we),Ae("dd",(function(e,a){return a.weekdaysMinRegex(e)})),Ae("ddd",(function(e,a){return a.weekdaysShortRegex(e)})),Ae("dddd",(function(e,a){return a.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,a,i,n){var t=i._locale.weekdaysParse(e,n,i._strict);null!=t?a.d=t:v(i).invalidWeekday=e})),Ue(["d","e","E"],(function(e,a,i,n){a[n]=pe(e)}));var Ca="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Aa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ra="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Pa=Ce,La=Ce,Fa=Ce;function Ia(e,a){var i=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(a)?"format":"standalone"];return!0===e?Na(i,this._week.dow):e?i[e.day()]:i}function Ua(e){return!0===e?Na(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function za(e){return!0===e?Na(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $a(e,a,i){var n,t,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===a?-1!==(t=$e.call(this._weekdaysParse,o))?t:null:"ddd"===a?-1!==(t=$e.call(this._shortWeekdaysParse,o))?t:null:-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:"dddd"===a?-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._shortWeekdaysParse,o))||-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:"ddd"===a?-1!==(t=$e.call(this._shortWeekdaysParse,o))||-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:-1!==(t=$e.call(this._minWeekdaysParse,o))||-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._shortWeekdaysParse,o))?t:null}function Ha(e,a,i){var n,t,s;if(this._weekdaysParseExact)return $a.call(this,e,a,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(t=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(t,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(t,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(t,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(t,"")+"|^"+this.weekdaysShort(t,"")+"|^"+this.weekdaysMin(t,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===a&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===a&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===a&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}}function Wa(e){if(!this.isValid())return null!=e?this:NaN;var a=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ya(e,this.localeData()),this.add(e-a,"d")):a}function qa(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 Ga(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var a=Ea(e,this.localeData());return this.day(this.day()%7?a:a-7)}return this.day()||7}function Va(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Pa),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ba(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=La),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Za(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ja(){function e(e,a){return a.length-e.length}var a,i,n,t,s,o=[],r=[],c=[],l=[];for(a=0;a<7;a++)i=f([2e3,1]).day(a),n=Le(this.weekdaysMin(i,"")),t=Le(this.weekdaysShort(i,"")),s=Le(this.weekdays(i,"")),o.push(n),r.push(t),c.push(s),l.push(n),l.push(t),l.push(s);o.sort(e),r.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qa(){return this.hours()%12||12}function Ka(){return this.hours()||24}function Xa(e,a){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)}))}function ei(e,a){return a._meridiemParse}function ai(e){return"p"===(e+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Qa),U("k",["kk",2],0,Ka),U("hmm",0,0,(function(){return""+Qa.apply(this)+R(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Qa.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Xa("a",!0),Xa("A",!1),ie("hour","h"),oe("hour",13),Ae("a",ei),Ae("A",ei),Ae("H",we),Ae("h",we),Ae("k",we),Ae("HH",we,ge),Ae("hh",we,ge),Ae("kk",we,ge),Ae("hmm",ke),Ae("hmmss",Se),Ae("Hmm",ke),Ae("Hmmss",Se),Ie(["H","HH"],Ge),Ie(["k","kk"],(function(e,a,i){var n=pe(e);a[Ge]=24===n?0:n})),Ie(["a","A"],(function(e,a,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),Ie(["h","hh"],(function(e,a,i){a[Ge]=pe(e),v(i).bigHour=!0})),Ie("hmm",(function(e,a,i){var n=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n)),v(i).bigHour=!0})),Ie("hmmss",(function(e,a,i){var n=e.length-4,t=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n,2)),a[Be]=pe(e.substr(t)),v(i).bigHour=!0})),Ie("Hmm",(function(e,a,i){var n=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n))})),Ie("Hmmss",(function(e,a,i){var n=e.length-4,t=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n,2)),a[Be]=pe(e.substr(t))}));var ii=/[ap]\.?m?\.?/i,ni=ue("Hours",!0);function ti(e,a,i){return e>11?i?"pm":"PM":i?"am":"AM"}var si,oi={calendar:C,longDateFormat:q,invalidDate:V,ordinal:Z,dayOfMonthOrdinalParse:J,relativeTime:K,months:ea,monthsShort:aa,week:Oa,weekdays:Ca,weekdaysMin:Ra,weekdaysShort:Aa,meridiemParse:ii},ri={},ci={};function li(e,a){var i,n=Math.min(e.length,a.length);for(i=0;i<n;i+=1)if(e[i]!==a[i])return i;return n}function pi(e){return e?e.toLowerCase().replace("_","-"):e}function ui(e){for(var a,i,n,t,s=0;s<e.length;){for(a=(t=pi(e[s]).split("-")).length,i=(i=pi(e[s+1]))?i.split("-"):null;a>0;){if(n=di(t.slice(0,a).join("-")))return n;if(i&&i.length>=a&&li(t,i)>=a-1)break;a--}s++}return si}function di(a){var i=null;if(void 0===ri[a]&&e&&e.exports)try{i=si._abbr,commonjsRequire("./locale/"+a),mi(i)}catch(e){ri[a]=null}return ri[a]}function mi(e,a){var i;return e&&((i=l(a)?vi(e):fi(e,a))?si=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),si._abbr}function fi(e,a){if(null!==a){var i,n=oi;if(a.abbr=e,null!=ri[e])j("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=ri[e]._config;else if(null!=a.parentLocale)if(null!=ri[a.parentLocale])n=ri[a.parentLocale]._config;else{if(null==(i=di(a.parentLocale)))return ci[a.parentLocale]||(ci[a.parentLocale]=[]),ci[a.parentLocale].push({name:e,config:a}),null;n=i._config}return ri[e]=new N(E(n,a)),ci[e]&&ci[e].forEach((function(e){fi(e.name,e.config)})),mi(e),ri[e]}return delete ri[e],null}function hi(e,a){if(null!=a){var i,n,t=oi;null!=ri[e]&&null!=ri[e].parentLocale?ri[e].set(E(ri[e]._config,a)):(null!=(n=di(e))&&(t=n._config),a=E(t,a),null==n&&(a.abbr=e),(i=new N(a)).parentLocale=ri[e],ri[e]=i),mi(e)}else null!=ri[e]&&(null!=ri[e].parentLocale?(ri[e]=ri[e].parentLocale,e===mi()&&mi(e)):null!=ri[e]&&delete ri[e]);return ri[e]}function vi(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return si;if(!s(e)){if(a=di(e))return a;e=[e]}return ui(e)}function xi(){return D(ri)}function gi(e){var a,i=e._a;return i&&-2===v(e).overflow&&(a=i[We]<0||i[We]>11?We:i[qe]<1||i[qe]>Xe(i[He],i[We])?qe:i[Ge]<0||i[Ge]>24||24===i[Ge]&&(0!==i[Ve]||0!==i[Be]||0!==i[Ze])?Ge:i[Ve]<0||i[Ve]>59?Ve:i[Be]<0||i[Be]>59?Be:i[Ze]<0||i[Ze]>999?Ze:-1,v(e)._overflowDayOfYear&&(a<He||a>qe)&&(a=qe),v(e)._overflowWeeks&&-1===a&&(a=Je),v(e)._overflowWeekday&&-1===a&&(a=Qe),v(e).overflow=a),e}var bi=/^\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)?)?$/,yi=/^\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)?)?$/,_i=/Z|[+-]\d\d(?::?\d\d)?/,wi=[["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]],ki=[["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/]],Si=/^\/?Date\((-?\d+)/i,Oi=/^(?:(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}))$/,Di={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mi(e){var a,i,n,t,s,o,r=e._i,c=bi.exec(r)||yi.exec(r);if(c){for(v(e).iso=!0,a=0,i=wi.length;a<i;a++)if(wi[a][1].exec(c[1])){t=wi[a][0],n=!1!==wi[a][2];break}if(null==t)return void(e._isValid=!1);if(c[3]){for(a=0,i=ki.length;a<i;a++)if(ki[a][1].exec(c[3])){s=(c[2]||" ")+ki[a][0];break}if(null==s)return void(e._isValid=!1)}if(!n&&null!=s)return void(e._isValid=!1);if(c[4]){if(!_i.exec(c[4]))return void(e._isValid=!1);o="Z"}e._f=t+(s||"")+(o||""),Ii(e)}else e._isValid=!1}function ji(e,a,i,n,t,s){var o=[Ti(e),aa.indexOf(a),parseInt(i,10),parseInt(n,10),parseInt(t,10)];return s&&o.push(parseInt(s,10)),o}function Ti(e){var a=parseInt(e,10);return a<=49?2e3+a:a<=999?1900+a:a}function Yi(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ei(e,a,i){return!e||Aa.indexOf(e)===new Date(a[0],a[1],a[2]).getDay()||(v(i).weekdayMismatch=!0,i._isValid=!1,!1)}function Ni(e,a,i){if(e)return Di[e];if(a)return 0;var n=parseInt(i,10),t=n%100;return(n-t)/100*60+t}function Ci(e){var a,i=Oi.exec(Yi(e._i));if(i){if(a=ji(i[4],i[3],i[2],i[5],i[6],i[7]),!Ei(i[1],a,e))return;e._a=a,e._tzm=Ni(i[8],i[9],i[10]),e._d=ba.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Ai(e){var a=Si.exec(e._i);null===a?(Mi(e),!1===e._isValid&&(delete e._isValid,Ci(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:n.createFromInputFallback(e)))):e._d=new Date(+a[1])}function Ri(e,a,i){return null!=e?e:null!=a?a:i}function Pi(e){var a=new Date(n.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function Li(e){var a,i,n,t,s,o=[];if(!e._d){for(n=Pi(e),e._w&&null==e._a[qe]&&null==e._a[We]&&Fi(e),null!=e._dayOfYear&&(s=Ri(e._a[He],n[He]),(e._dayOfYear>ha(s)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),i=ba(s,0,e._dayOfYear),e._a[We]=i.getUTCMonth(),e._a[qe]=i.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=o[a]=n[a];for(;a<7;a++)e._a[a]=o[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[Ge]&&0===e._a[Ve]&&0===e._a[Be]&&0===e._a[Ze]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?ba:ga).apply(null,o),t=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==t&&(v(e).weekdayMismatch=!0)}}function Fi(e){var a,i,n,t,s,o,r,c,l;null!=(a=e._w).GG||null!=a.W||null!=a.E?(s=1,o=4,i=Ri(a.GG,e._a[He],wa(Vi(),1,4).year),n=Ri(a.W,1),((t=Ri(a.E,1))<1||t>7)&&(c=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,l=wa(Vi(),s,o),i=Ri(a.gg,e._a[He],l.year),n=Ri(a.w,l.week),null!=a.d?((t=a.d)<0||t>6)&&(c=!0):null!=a.e?(t=a.e+s,(a.e<0||a.e>6)&&(c=!0)):t=s),n<1||n>ka(i,s,o)?v(e)._overflowWeeks=!0:null!=c?v(e)._overflowWeekday=!0:(r=_a(i,n,t,s,o),e._a[He]=r.year,e._dayOfYear=r.dayOfYear)}function Ii(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],v(e).empty=!0;var a,i,t,s,o,r,c=""+e._i,l=c.length,p=0;for(t=W(e._f,e._locale).match(P)||[],a=0;a<t.length;a++)s=t[a],(i=(c.match(Re(s,e))||[])[0])&&((o=c.substr(0,c.indexOf(i))).length>0&&v(e).unusedInput.push(o),c=c.slice(c.indexOf(i)+i.length),p+=i.length),I[s]?(i?v(e).empty=!1:v(e).unusedTokens.push(s),ze(s,i,e)):e._strict&&!i&&v(e).unusedTokens.push(s);v(e).charsLeftOver=l-p,c.length>0&&v(e).unusedInput.push(c),e._a[Ge]<=12&&!0===v(e).bigHour&&e._a[Ge]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ge]=Ui(e._locale,e._a[Ge],e._meridiem),null!==(r=v(e).era)&&(e._a[He]=e._locale.erasConvertYear(r,e._a[He])),Li(e),gi(e)}else Ci(e);else Mi(e)}function Ui(e,a,i){var n;return null==i?a:null!=e.meridiemHour?e.meridiemHour(a,i):null!=e.isPM?((n=e.isPM(i))&&a<12&&(a+=12),n||12!==a||(a=0),a):a}function zi(e){var a,i,n,t,s,o,r=!1;if(0===e._f.length)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(t=0;t<e._f.length;t++)s=0,o=!1,a=_({},e),null!=e._useUTC&&(a._useUTC=e._useUTC),a._f=e._f[t],Ii(a),x(a)&&(o=!0),s+=v(a).charsLeftOver,s+=10*v(a).unusedTokens.length,v(a).score=s,r?s<n&&(n=s,i=a):(null==n||s<n||o)&&(n=s,i=a,o&&(r=!0));m(e,i||a)}function $i(e){if(!e._d){var a=te(e._i),i=void 0===a.day?a.date:a.day;e._a=d([a.year,a.month,i,a.hour,a.minute,a.second,a.millisecond],(function(e){return e&&parseInt(e,10)})),Li(e)}}function Hi(e){var a=new w(gi(Wi(e)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Wi(e){var a=e._i,i=e._f;return e._locale=e._locale||vi(e._l),null===a||void 0===i&&""===a?g({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),k(a)?new w(gi(a)):(u(a)?e._d=a:s(i)?zi(e):i?Ii(e):qi(e),x(e)||(e._d=null),e))}function qi(e){var a=e._i;l(a)?e._d=new Date(n.now()):u(a)?e._d=new Date(a.valueOf()):"string"==typeof a?Ai(e):s(a)?(e._a=d(a.slice(0),(function(e){return parseInt(e,10)})),Li(e)):o(a)?$i(e):p(a)?e._d=new Date(a):n.createFromInputFallback(e)}function Gi(e,a,i,n,t){var r={};return!0!==a&&!1!==a||(n=a,a=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(o(e)&&c(e)||s(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=t,r._l=i,r._i=e,r._f=a,r._strict=n,Hi(r)}function Vi(e,a,i,n){return Gi(e,a,i,n,!1)}n.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var Bi=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Vi.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Zi=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Vi.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Ji(e,a){var i,n;if(1===a.length&&s(a[0])&&(a=a[0]),!a.length)return Vi();for(i=a[0],n=1;n<a.length;++n)a[n].isValid()&&!a[n][e](i)||(i=a[n]);return i}function Qi(){return Ji("isBefore",[].slice.call(arguments,0))}function Ki(){return Ji("isAfter",[].slice.call(arguments,0))}var Xi=function(){return Date.now?Date.now():+new Date},en=["year","quarter","month","week","day","hour","minute","second","millisecond"];function an(e){var a,i,n=!1;for(a in e)if(r(e,a)&&(-1===$e.call(en,a)||null!=e[a]&&isNaN(e[a])))return!1;for(i=0;i<en.length;++i)if(e[en[i]]){if(n)return!1;parseFloat(e[en[i]])!==pe(e[en[i]])&&(n=!0)}return!0}function nn(){return this._isValid}function tn(){return Mn(NaN)}function sn(e){var a=te(e),i=a.year||0,n=a.quarter||0,t=a.month||0,s=a.week||a.isoWeek||0,o=a.day||0,r=a.hour||0,c=a.minute||0,l=a.second||0,p=a.millisecond||0;this._isValid=an(a),this._milliseconds=+p+1e3*l+6e4*c+1e3*r*60*60,this._days=+o+7*s,this._months=+t+3*n+12*i,this._data={},this._locale=vi(),this._bubble()}function on(e){return e instanceof sn}function rn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cn(e,a,i){var n,t=Math.min(e.length,a.length),s=Math.abs(e.length-a.length),o=0;for(n=0;n<t;n++)(i&&e[n]!==a[n]||!i&&pe(e[n])!==pe(a[n]))&&o++;return o+s}function ln(e,a){U(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+R(~~(e/60),2)+a+R(~~e%60,2)}))}ln("Z",":"),ln("ZZ",""),Ae("Z",Ee),Ae("ZZ",Ee),Ie(["Z","ZZ"],(function(e,a,i){i._useUTC=!0,i._tzm=un(Ee,e)}));var pn=/([\+\-]|\d\d)/gi;function un(e,a){var i,n,t=(a||"").match(e);return null===t?null:0===(n=60*(i=((t[t.length-1]||[])+"").match(pn)||["-",0,0])[1]+pe(i[2]))?0:"+"===i[0]?n:-n}function dn(e,a){var i,t;return a._isUTC?(i=a.clone(),t=(k(e)||u(e)?e.valueOf():Vi(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+t),n.updateOffset(i,!1),i):Vi(e).local()}function mn(e){return-Math.round(e._d.getTimezoneOffset())}function fn(e,a,i){var t,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=un(Ee,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&a&&(t=mn(this)),this._offset=e,this._isUTC=!0,null!=t&&this.add(t,"m"),s!==e&&(!a||this._changeInProgress?Nn(this,Mn(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:mn(this)}function hn(e,a){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}function vn(e){return this.utcOffset(0,e)}function xn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mn(this),"m")),this}function gn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=un(Ye,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function bn(e){return!!this.isValid()&&(e=e?Vi(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function yn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _n(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,a={};return _(a,this),(a=Wi(a))._a?(e=a._isUTC?f(a._a):Vi(a._a),this._isDSTShifted=this.isValid()&&cn(a._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wn(){return!!this.isValid()&&!this._isUTC}function kn(){return!!this.isValid()&&this._isUTC}function Sn(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var On=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Mn(e,a){var i,n,t,s=e,o=null;return on(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:p(e)||!isNaN(+e)?(s={},a?s[a]=+e:s.milliseconds=+e):(o=On.exec(e))?(i="-"===o[1]?-1:1,s={y:0,d:pe(o[qe])*i,h:pe(o[Ge])*i,m:pe(o[Ve])*i,s:pe(o[Be])*i,ms:pe(rn(1e3*o[Ze]))*i}):(o=Dn.exec(e))?(i="-"===o[1]?-1:1,s={y:jn(o[2],i),M:jn(o[3],i),w:jn(o[4],i),d:jn(o[5],i),h:jn(o[6],i),m:jn(o[7],i),s:jn(o[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(t=Yn(Vi(s.from),Vi(s.to)),(s={}).ms=t.milliseconds,s.M=t.months),n=new sn(s),on(e)&&r(e,"_locale")&&(n._locale=e._locale),on(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function jn(e,a){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*a}function Tn(e,a){var i={};return i.months=a.month()-e.month()+12*(a.year()-e.year()),e.clone().add(i.months,"M").isAfter(a)&&--i.months,i.milliseconds=+a-+e.clone().add(i.months,"M"),i}function Yn(e,a){var i;return e.isValid()&&a.isValid()?(a=dn(a,e),e.isBefore(a)?i=Tn(e,a):((i=Tn(a,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function En(e,a){return function(i,n){var t;return null===n||isNaN(+n)||(j(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."),t=i,i=n,n=t),Nn(this,Mn(i,n),e),this}}function Nn(e,a,i,t){var s=a._milliseconds,o=rn(a._days),r=rn(a._months);e.isValid()&&(t=null==t||t,r&&la(e,de(e,"Month")+r*i),o&&me(e,"Date",de(e,"Date")+o*i),s&&e._d.setTime(e._d.valueOf()+s*i),t&&n.updateOffset(e,o||r))}Mn.fn=sn.prototype,Mn.invalid=tn;var Cn=En(1,"add"),An=En(-1,"subtract");function Rn(e){return"string"==typeof e||e instanceof String}function Pn(e){return k(e)||u(e)||Rn(e)||p(e)||Fn(e)||Ln(e)||null==e}function Ln(e){var a,i,n=o(e)&&!c(e),t=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(a=0;a<s.length;a+=1)i=s[a],t=t||r(e,i);return n&&t}function Fn(e){var a=s(e),i=!1;return a&&(i=0===e.filter((function(a){return!p(a)&&Rn(e)})).length),a&&i}function In(e){var a,i,n=o(e)&&!c(e),t=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(a=0;a<s.length;a+=1)i=s[a],t=t||r(e,i);return n&&t}function Un(e,a){var i=e.diff(a,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function zn(e,a){1===arguments.length&&(arguments[0]?Pn(arguments[0])?(e=arguments[0],a=void 0):In(arguments[0])&&(a=arguments[0],e=void 0):(e=void 0,a=void 0));var i=e||Vi(),t=dn(i,this).startOf("day"),s=n.calendarFormat(this,t)||"sameElse",o=a&&(T(a[s])?a[s].call(this,i):a[s]);return this.format(o||this.localeData().calendar(s,this,Vi(i)))}function $n(){return new w(this)}function Hn(e,a){var i=k(e)?e:Vi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(a).valueOf())}function Wn(e,a){var i=k(e)?e:Vi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(a).valueOf()<i.valueOf())}function qn(e,a,i,n){var t=k(e)?e:Vi(e),s=k(a)?a:Vi(a);return!!(this.isValid()&&t.isValid()&&s.isValid())&&("("===(n=n||"()")[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(")"===n[1]?this.isBefore(s,i):!this.isAfter(s,i))}function Gn(e,a){var i,n=k(e)?e:Vi(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(a).valueOf()<=i&&i<=this.clone().endOf(a).valueOf()))}function Vn(e,a){return this.isSame(e,a)||this.isAfter(e,a)}function Bn(e,a){return this.isSame(e,a)||this.isBefore(e,a)}function Zn(e,a,i){var n,t,s;if(!this.isValid())return NaN;if(!(n=dn(e,this)).isValid())return NaN;switch(t=6e4*(n.utcOffset()-this.utcOffset()),a=ne(a)){case"year":s=Jn(this,n)/12;break;case"month":s=Jn(this,n);break;case"quarter":s=Jn(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-t)/864e5;break;case"week":s=(this-n-t)/6048e5;break;default:s=this-n}return i?s:le(s)}function Jn(e,a){if(e.date()<a.date())return-Jn(a,e);var i=12*(a.year()-e.year())+(a.month()-e.month()),n=e.clone().add(i,"months");return-(i+(a-n<0?(a-n)/(n-e.clone().add(i-1,"months")):(a-n)/(e.clone().add(i+1,"months")-n)))||0}function Qn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Kn(e){if(!this.isValid())return null;var a=!0!==e,i=a?this.clone().utc():this;return i.year()<0||i.year()>9999?H(i,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(i,"Z")):H(i,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Xn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,a,i,n,t="moment",s="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+t+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",n=s+'[")]',this.format(e+a+i+n)}function et(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var a=H(this,e);return this.localeData().postformat(a)}function at(e,a){return this.isValid()&&(k(e)&&e.isValid()||Vi(e).isValid())?Mn({to:this,from:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function it(e){return this.from(Vi(),e)}function nt(e,a){return this.isValid()&&(k(e)&&e.isValid()||Vi(e).isValid())?Mn({from:this,to:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function tt(e){return this.to(Vi(),e)}function st(e){var a;return void 0===e?this._locale._abbr:(null!=(a=vi(e))&&(this._locale=a),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ot=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function rt(){return this._locale}var ct=1e3,lt=60*ct,pt=60*lt,ut=3506328*pt;function dt(e,a){return(e%a+a)%a}function mt(e,a,i){return e<100&&e>=0?new Date(e+400,a,i)-ut:new Date(e,a,i).valueOf()}function ft(e,a,i){return e<100&&e>=0?Date.UTC(e+400,a,i)-ut:Date.UTC(e,a,i)}function ht(e){var a,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ft:mt,e){case"year":a=i(this.year(),0,1);break;case"quarter":a=i(this.year(),this.month()-this.month()%3,1);break;case"month":a=i(this.year(),this.month(),1);break;case"week":a=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=i(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=dt(a+(this._isUTC?0:this.utcOffset()*lt),pt);break;case"minute":a=this._d.valueOf(),a-=dt(a,lt);break;case"second":a=this._d.valueOf(),a-=dt(a,ct)}return this._d.setTime(a),n.updateOffset(this,!0),this}function vt(e){var a,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ft:mt,e){case"year":a=i(this.year()+1,0,1)-1;break;case"quarter":a=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=i(this.year(),this.month()+1,1)-1;break;case"week":a=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=pt-dt(a+(this._isUTC?0:this.utcOffset()*lt),pt)-1;break;case"minute":a=this._d.valueOf(),a+=lt-dt(a,lt)-1;break;case"second":a=this._d.valueOf(),a+=ct-dt(a,ct)-1}return this._d.setTime(a),n.updateOffset(this,!0),this}function xt(){return this._d.valueOf()-6e4*(this._offset||0)}function gt(){return Math.floor(this.valueOf()/1e3)}function bt(){return new Date(this.valueOf())}function yt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _t(){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 wt(){return this.isValid()?this.toISOString():null}function kt(){return x(this)}function St(){return m({},v(this))}function Ot(){return v(this).overflow}function Dt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Mt(e,a){var i,t,s,o=this._eras||vi("en")._eras;for(i=0,t=o.length;i<t;++i)switch("string"==typeof o[i].since&&(s=n(o[i].since).startOf("day"),o[i].since=s.valueOf()),typeof o[i].until){case"undefined":o[i].until=1/0;break;case"string":s=n(o[i].until).startOf("day").valueOf(),o[i].until=s.valueOf()}return o}function jt(e,a,i){var n,t,s,o,r,c=this.eras();for(e=e.toUpperCase(),n=0,t=c.length;n<t;++n)if(s=c[n].name.toUpperCase(),o=c[n].abbr.toUpperCase(),r=c[n].narrow.toUpperCase(),i)switch(a){case"N":case"NN":case"NNN":if(o===e)return c[n];break;case"NNNN":if(s===e)return c[n];break;case"NNNNN":if(r===e)return c[n]}else if([s,o,r].indexOf(e)>=0)return c[n]}function Tt(e,a){var i=e.since<=e.until?1:-1;return void 0===a?n(e.since).year():n(e.since).year()+(a-e.offset)*i}function Yt(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].name;if(n[e].until<=i&&i<=n[e].since)return n[e].name}return""}function Et(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].narrow;if(n[e].until<=i&&i<=n[e].since)return n[e].narrow}return""}function Nt(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].abbr;if(n[e].until<=i&&i<=n[e].since)return n[e].abbr}return""}function Ct(){var e,a,i,t,s=this.localeData().eras();for(e=0,a=s.length;e<a;++e)if(i=s[e].since<=s[e].until?1:-1,t=this.clone().startOf("day").valueOf(),s[e].since<=t&&t<=s[e].until||s[e].until<=t&&t<=s[e].since)return(this.year()-n(s[e].since).year())*i+s[e].offset;return this.year()}function At(e){return r(this,"_erasNameRegex")||zt.call(this),e?this._erasNameRegex:this._erasRegex}function Rt(e){return r(this,"_erasAbbrRegex")||zt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Pt(e){return r(this,"_erasNarrowRegex")||zt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Lt(e,a){return a.erasAbbrRegex(e)}function Ft(e,a){return a.erasNameRegex(e)}function It(e,a){return a.erasNarrowRegex(e)}function Ut(e,a){return a._eraYearOrdinalRegex||je}function zt(){var e,a,i=[],n=[],t=[],s=[],o=this.eras();for(e=0,a=o.length;e<a;++e)n.push(Le(o[e].name)),i.push(Le(o[e].abbr)),t.push(Le(o[e].narrow)),s.push(Le(o[e].name)),s.push(Le(o[e].abbr)),s.push(Le(o[e].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}function $t(e,a){U(0,[e,e.length],0,a)}function Ht(e){return Zt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wt(e){return Zt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qt(){return ka(this.year(),1,4)}function Gt(){return ka(this.isoWeekYear(),1,4)}function Vt(){var e=this.localeData()._week;return ka(this.year(),e.dow,e.doy)}function Bt(){var e=this.localeData()._week;return ka(this.weekYear(),e.dow,e.doy)}function Zt(e,a,i,n,t){var s;return null==e?wa(this,n,t).year:(a>(s=ka(e,n,t))&&(a=s),Jt.call(this,e,a,i,n,t))}function Jt(e,a,i,n,t){var s=_a(e,a,i,n,t),o=ba(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Qt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Ae("N",Lt),Ae("NN",Lt),Ae("NNN",Lt),Ae("NNNN",Ft),Ae("NNNNN",It),Ie(["N","NN","NNN","NNNN","NNNNN"],(function(e,a,i,n){var t=i._locale.erasParse(e,n,i._strict);t?v(i).era=t:v(i).invalidEra=e})),Ae("y",je),Ae("yy",je),Ae("yyy",je),Ae("yyyy",je),Ae("yo",Ut),Ie(["y","yy","yyy","yyyy"],He),Ie(["yo"],(function(e,a,i,n){var t;i._locale._eraYearOrdinalRegex&&(t=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?a[He]=i._locale.eraYearOrdinalParse(e,t):a[He]=parseInt(e,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),$t("gggg","weekYear"),$t("ggggg","weekYear"),$t("GGGG","isoWeekYear"),$t("GGGGG","isoWeekYear"),ie("weekYear","gg"),ie("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Ae("G",Te),Ae("g",Te),Ae("GG",we,ge),Ae("gg",we,ge),Ae("GGGG",De,ye),Ae("gggg",De,ye),Ae("GGGGG",Me,_e),Ae("ggggg",Me,_e),Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,a,i,n){a[n.substr(0,2)]=pe(e)})),Ue(["gg","GG"],(function(e,a,i,t){a[t]=n.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),ie("quarter","Q"),oe("quarter",7),Ae("Q",xe),Ie("Q",(function(e,a){a[We]=3*(pe(e)-1)})),U("D",["DD",2],"Do","date"),ie("date","D"),oe("date",9),Ae("D",we),Ae("DD",we,ge),Ae("Do",(function(e,a){return e?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient})),Ie(["D","DD"],qe),Ie("Do",(function(e,a){a[qe]=pe(e.match(we)[0])}));var Kt=ue("Date",!0);function Xt(e){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?a:this.add(e-a,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),ie("dayOfYear","DDD"),oe("dayOfYear",4),Ae("DDD",Oe),Ae("DDDD",be),Ie(["DDD","DDDD"],(function(e,a,i){i._dayOfYear=pe(e)})),U("m",["mm",2],0,"minute"),ie("minute","m"),oe("minute",14),Ae("m",we),Ae("mm",we,ge),Ie(["m","mm"],Ve);var es=ue("Minutes",!1);U("s",["ss",2],0,"second"),ie("second","s"),oe("second",15),Ae("s",we),Ae("ss",we,ge),Ie(["s","ss"],Be);var as,is,ns=ue("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ie("millisecond","ms"),oe("millisecond",16),Ae("S",Oe,xe),Ae("SS",Oe,ge),Ae("SSS",Oe,be),as="SSSS";as.length<=9;as+="S")Ae(as,je);function ts(e,a){a[Ze]=pe(1e3*("0."+e))}for(as="S";as.length<=9;as+="S")Ie(as,ts);function ss(){return this._isUTC?"UTC":""}function os(){return this._isUTC?"Coordinated Universal Time":""}is=ue("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var rs=w.prototype;function cs(e){return Vi(1e3*e)}function ls(){return Vi.apply(null,arguments).parseZone()}function ps(e){return e}rs.add=Cn,rs.calendar=zn,rs.clone=$n,rs.diff=Zn,rs.endOf=vt,rs.format=et,rs.from=at,rs.fromNow=it,rs.to=nt,rs.toNow=tt,rs.get=fe,rs.invalidAt=Ot,rs.isAfter=Hn,rs.isBefore=Wn,rs.isBetween=qn,rs.isSame=Gn,rs.isSameOrAfter=Vn,rs.isSameOrBefore=Bn,rs.isValid=kt,rs.lang=ot,rs.locale=st,rs.localeData=rt,rs.max=Zi,rs.min=Bi,rs.parsingFlags=St,rs.set=he,rs.startOf=ht,rs.subtract=An,rs.toArray=yt,rs.toObject=_t,rs.toDate=bt,rs.toISOString=Kn,rs.inspect=Xn,"undefined"!=typeof Symbol&&null!=Symbol.for&&(rs[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),rs.toJSON=wt,rs.toString=Qn,rs.unix=gt,rs.valueOf=xt,rs.creationData=Dt,rs.eraName=Yt,rs.eraNarrow=Et,rs.eraAbbr=Nt,rs.eraYear=Ct,rs.year=va,rs.isLeapYear=xa,rs.weekYear=Ht,rs.isoWeekYear=Wt,rs.quarter=rs.quarters=Qt,rs.month=pa,rs.daysInMonth=ua,rs.week=rs.weeks=ja,rs.isoWeek=rs.isoWeeks=Ta,rs.weeksInYear=Vt,rs.weeksInWeekYear=Bt,rs.isoWeeksInYear=qt,rs.isoWeeksInISOWeekYear=Gt,rs.date=Kt,rs.day=rs.days=Wa,rs.weekday=qa,rs.isoWeekday=Ga,rs.dayOfYear=Xt,rs.hour=rs.hours=ni,rs.minute=rs.minutes=es,rs.second=rs.seconds=ns,rs.millisecond=rs.milliseconds=is,rs.utcOffset=fn,rs.utc=vn,rs.local=xn,rs.parseZone=gn,rs.hasAlignedHourOffset=bn,rs.isDST=yn,rs.isLocal=wn,rs.isUtcOffset=kn,rs.isUtc=Sn,rs.isUTC=Sn,rs.zoneAbbr=ss,rs.zoneName=os,rs.dates=O("dates accessor is deprecated. Use date instead.",Kt),rs.months=O("months accessor is deprecated. Use month instead",pa),rs.years=O("years accessor is deprecated. Use year instead",va),rs.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",hn),rs.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_n);var us=N.prototype;function ds(e,a,i,n){var t=vi(),s=f().set(n,a);return t[i](s,e)}function ms(e,a,i){if(p(e)&&(a=e,e=void 0),e=e||"",null!=a)return ds(e,a,i,"month");var n,t=[];for(n=0;n<12;n++)t[n]=ds(e,n,i,"month");return t}function fs(e,a,i,n){"boolean"==typeof e?(p(a)&&(i=a,a=void 0),a=a||""):(i=a=e,e=!1,p(a)&&(i=a,a=void 0),a=a||"");var t,s=vi(),o=e?s._week.dow:0,r=[];if(null!=i)return ds(a,(i+o)%7,n,"day");for(t=0;t<7;t++)r[t]=ds(a,(t+o)%7,n,"day");return r}function hs(e,a){return ms(e,a,"months")}function vs(e,a){return ms(e,a,"monthsShort")}function xs(e,a,i){return fs(e,a,i,"weekdays")}function gs(e,a,i){return fs(e,a,i,"weekdaysShort")}function bs(e,a,i){return fs(e,a,i,"weekdaysMin")}us.calendar=A,us.longDateFormat=G,us.invalidDate=B,us.ordinal=Q,us.preparse=ps,us.postformat=ps,us.relativeTime=X,us.pastFuture=ee,us.set=Y,us.eras=Mt,us.erasParse=jt,us.erasConvertYear=Tt,us.erasAbbrRegex=Rt,us.erasNameRegex=At,us.erasNarrowRegex=Pt,us.months=sa,us.monthsShort=oa,us.monthsParse=ca,us.monthsRegex=ma,us.monthsShortRegex=da,us.week=Sa,us.firstDayOfYear=Ma,us.firstDayOfWeek=Da,us.weekdays=Ia,us.weekdaysMin=za,us.weekdaysShort=Ua,us.weekdaysParse=Ha,us.weekdaysRegex=Va,us.weekdaysShortRegex=Ba,us.weekdaysMinRegex=Za,us.isPM=ai,us.meridiem=ti,mi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var a=e%10;return e+(1===pe(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}}),n.lang=O("moment.lang is deprecated. Use moment.locale instead.",mi),n.langData=O("moment.langData is deprecated. Use moment.localeData instead.",vi);var ys=Math.abs;function _s(){var e=this._data;return this._milliseconds=ys(this._milliseconds),this._days=ys(this._days),this._months=ys(this._months),e.milliseconds=ys(e.milliseconds),e.seconds=ys(e.seconds),e.minutes=ys(e.minutes),e.hours=ys(e.hours),e.months=ys(e.months),e.years=ys(e.years),this}function ws(e,a,i,n){var t=Mn(a,i);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function ks(e,a){return ws(this,e,a,1)}function Ss(e,a){return ws(this,e,a,-1)}function Os(e){return e<0?Math.floor(e):Math.ceil(e)}function Ds(){var e,a,i,n,t,s=this._milliseconds,o=this._days,r=this._months,c=this._data;return s>=0&&o>=0&&r>=0||s<=0&&o<=0&&r<=0||(s+=864e5*Os(js(r)+o),o=0,r=0),c.milliseconds=s%1e3,e=le(s/1e3),c.seconds=e%60,a=le(e/60),c.minutes=a%60,i=le(a/60),c.hours=i%24,o+=le(i/24),r+=t=le(Ms(o)),o-=Os(js(t)),n=le(r/12),r%=12,c.days=o,c.months=r,c.years=n,this}function Ms(e){return 4800*e/146097}function js(e){return 146097*e/4800}function Ts(e){if(!this.isValid())return NaN;var a,i,n=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(a=this._days+n/864e5,i=this._months+Ms(a),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(a=this._days+Math.round(js(this._months)),e){case"week":return a/7+n/6048e5;case"day":return a+n/864e5;case"hour":return 24*a+n/36e5;case"minute":return 1440*a+n/6e4;case"second":return 86400*a+n/1e3;case"millisecond":return Math.floor(864e5*a)+n;default:throw new Error("Unknown unit "+e)}}function Ys(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN}function Es(e){return function(){return this.as(e)}}var Ns=Es("ms"),Cs=Es("s"),As=Es("m"),Rs=Es("h"),Ps=Es("d"),Ls=Es("w"),Fs=Es("M"),Is=Es("Q"),Us=Es("y");function zs(){return Mn(this)}function $s(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Hs(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ws=Hs("milliseconds"),qs=Hs("seconds"),Gs=Hs("minutes"),Vs=Hs("hours"),Bs=Hs("days"),Zs=Hs("months"),Js=Hs("years");function Qs(){return le(this.days()/7)}var Ks=Math.round,Xs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function eo(e,a,i,n,t){return t.relativeTime(a||1,!!i,e,n)}function ao(e,a,i,n){var t=Mn(e).abs(),s=Ks(t.as("s")),o=Ks(t.as("m")),r=Ks(t.as("h")),c=Ks(t.as("d")),l=Ks(t.as("M")),p=Ks(t.as("w")),u=Ks(t.as("y")),d=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||o<=1&&["m"]||o<i.m&&["mm",o]||r<=1&&["h"]||r<i.h&&["hh",r]||c<=1&&["d"]||c<i.d&&["dd",c];return null!=i.w&&(d=d||p<=1&&["w"]||p<i.w&&["ww",p]),(d=d||l<=1&&["M"]||l<i.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=a,d[3]=+e>0,d[4]=n,eo.apply(null,d)}function io(e){return void 0===e?Ks:"function"==typeof e&&(Ks=e,!0)}function no(e,a){return void 0!==Xs[e]&&(void 0===a?Xs[e]:(Xs[e]=a,"s"===e&&(Xs.ss=a-1),!0))}function to(e,a){if(!this.isValid())return this.localeData().invalidDate();var i,n,t=!1,s=Xs;return"object"==typeof e&&(a=e,e=!1),"boolean"==typeof e&&(t=e),"object"==typeof a&&(s=Object.assign({},Xs,a),null!=a.s&&null==a.ss&&(s.ss=a.s-1)),n=ao(this,!t,s,i=this.localeData()),t&&(n=i.pastFuture(+this,n)),i.postformat(n)}var so=Math.abs;function oo(e){return(e>0)-(e<0)||+e}function ro(){if(!this.isValid())return this.localeData().invalidDate();var e,a,i,n,t,s,o,r,c=so(this._milliseconds)/1e3,l=so(this._days),p=so(this._months),u=this.asSeconds();return u?(e=le(c/60),a=le(e/60),c%=60,e%=60,i=le(p/12),p%=12,n=c?c.toFixed(3).replace(/\.?0+$/,""):"",t=u<0?"-":"",s=oo(this._months)!==oo(u)?"-":"",o=oo(this._days)!==oo(u)?"-":"",r=oo(this._milliseconds)!==oo(u)?"-":"",t+"P"+(i?s+i+"Y":"")+(p?s+p+"M":"")+(l?o+l+"D":"")+(a||e||c?"T":"")+(a?r+a+"H":"")+(e?r+e+"M":"")+(c?r+n+"S":"")):"P0D"}var co=sn.prototype;return co.isValid=nn,co.abs=_s,co.add=ks,co.subtract=Ss,co.as=Ts,co.asMilliseconds=Ns,co.asSeconds=Cs,co.asMinutes=As,co.asHours=Rs,co.asDays=Ps,co.asWeeks=Ls,co.asMonths=Fs,co.asQuarters=Is,co.asYears=Us,co.valueOf=Ys,co._bubble=Ds,co.clone=zs,co.get=$s,co.milliseconds=Ws,co.seconds=qs,co.minutes=Gs,co.hours=Vs,co.days=Bs,co.weeks=Qs,co.months=Zs,co.years=Js,co.humanize=to,co.toISOString=ro,co.toString=ro,co.toJSON=ro,co.locale=st,co.localeData=rt,co.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ro),co.lang=ot,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Ae("x",Te),Ae("X",Ne),Ie("X",(function(e,a,i){i._d=new Date(1e3*parseFloat(e))})),Ie("x",(function(e,a,i){i._d=new Date(pe(e))})),
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("fs"),a=require("path"),express=require("express"),crypto=require("crypto"),passport=require("passport"),passportLocal=require("passport-local"),buffer=require("buffer"),tty=require("tty"),util=require("util"),net=require("net"),url=require("url"),events=require("events"),i=require("os"),o=require("assert"),sequelize=require("sequelize"),AWS=require("aws-sdk");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var e__default=_interopDefaultLegacy(e),a__default=_interopDefaultLegacy(a),express__default=_interopDefaultLegacy(express),crypto__default=_interopDefaultLegacy(crypto),passport__default=_interopDefaultLegacy(passport),buffer__default=_interopDefaultLegacy(buffer),tty__default=_interopDefaultLegacy(tty),util__default=_interopDefaultLegacy(util),net__default=_interopDefaultLegacy(net),url__default=_interopDefaultLegacy(url),events__default=_interopDefaultLegacy(events),i__default=_interopDefaultLegacy(i),o__default=_interopDefaultLegacy(o),sequelize__default=_interopDefaultLegacy(sequelize),AWS__default=_interopDefaultLegacy(AWS),version="1.0.21";class Global{static mount(){global.APP_DIR=process.cwd(),console.log("Set global variable APP_DIR")}}function log$2(e){console.log(`[dotenv][DEBUG] ${e}`)}const NEWLINE="\n",RE_INI_KEY_VAL=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,RE_NEWLINES=/\\n/g,NEWLINES_MATCH=/\n|\r|\r\n/;function parse$4(e,a){const i=Boolean(a&&a.debug),n={};return e.toString().split(NEWLINES_MATCH).forEach((function(e,a){const t=e.match(RE_INI_KEY_VAL);if(null!=t){const e=t[1];let a=t[2]||"";const i=a.length-1,s='"'===a[0]&&'"'===a[i];"'"===a[0]&&"'"===a[i]||s?(a=a.substring(1,i),s&&(a=a.replace(RE_NEWLINES,NEWLINE))):a=a.trim(),n[e]=a}else i&&log$2(`did not match key and value when parsing line ${a+1}: ${e}`)})),n}function config(e){let a=a__default.default.resolve(process.cwd(),".env"),i="utf8",n=!1;e&&(null!=e.path&&(a=e.path),null!=e.encoding&&(i=e.encoding),null!=e.debug&&(n=!0));try{const e=parse$4(e__default.default.readFileSync(a,{encoding:i}),{debug:n});return Object.keys(e).forEach((function(a){Object.prototype.hasOwnProperty.call(process.env,a)?n&&log$2(`"${a}" is already defined in \`process.env\` and will not be overwritten`):process.env[a]=e[a]})),{parsed:e}}catch(e){return{error:e}}}var config_1=config,parse_1$2=parse$4,main={config:config_1,parse:parse_1$2};class Environment{static mount(){if(global.loadedEnv)return void console.log("env is already loaded, so do nothing");const e=this.loadOptions();if(!e.env_path)return;const a=main.parse(e__default.default.readFileSync(e.env_path));for(let e in a)console.log(`Read environment variable ${e}`),process.env[e]=a[e];global.loadedEnv=!0}static loadOptions(){const e={env_path:void 0},a=`${process.cwd()}/config/config`;return e__default.default.existsSync(`${a}.js`)?Object.assign(e,require(a).default||require(a)):e}}function cache_busting(e,a){const i=`${a__default.default.join(process.cwd(),"public")}/${e.replace(/^\//,"")}`;if(!e__default.default.existsSync(i))return e;const n=new Date(e__default.default.statSync(i).mtime).getTime();return`${a}/${e.replace(/^\//,"")}?${n}`}var html=Object.freeze({__proto__:null,cache_busting:cache_busting});function json_stringify(e,a=0){return JSON.stringify(e,null,a)}function json_parse(e){return JSON.parse(e)}var object=Object.freeze({__proto__:null,json_stringify:json_stringify,json_parse:json_parse}),isAsyncFunction=e=>e&&e.constructor&&e.constructor===Object.getPrototypeOf((async function(){})).constructor,isString=e=>"string"==typeof e&&""!==e,isObject=e=>null!=e&&"object"==typeof e&&!1===Array.isArray(e),isArray=e=>"[object Array]"===Object.prototype.toString.call(e),utils={isAsyncFunction:isAsyncFunction,isString:isString,isObject:isObject,isArray:isArray},index$5=Object.freeze({__proto__:null,default:utils});function replace(e,a,i){return e.replace(a,i)}function split(e,a){return utils.isString(e)?(utils.isString(a)||(a=","),e.split(a)):[]}var string=Object.freeze({__proto__:null,replace:replace,split:split});function eq(e,a){return e===a}function eqw(e,a){return e==a}function neq(e,a){return e!==a}function neqw(e,a){return e!=a}function lt(e,a){return e<a}function lte(e,a){return e<=a}function gt(e,a){return e>a}function gte(e,a){return e>=a}function not(e){return!e}function ifx(e,a,i){return utils.isObject(i)&&"ifx"===i.name&&i.hasOwnProperty("hash")&&(i=""),e?a:i}function empty(e){return"string"==typeof e?e=e.replace(/^[\s ]+|[\s ]+$/g,""):Array.isArray(e)&&0===e.length&&(e=null),!e}function not_empty(e){return"string"==typeof e?e=e.replace(/^[\s ]+|[\s ]+$/g,""):Array.isArray(e)&&0===e.length&&(e=null),!!e}function count(e){return!!Array.isArray(e)&&e.length}function and(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(!a)return!1;return!0}function or(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(a)return!0;return!1}function coalesce(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(a)return a;return e.pop()}function includes(e,a,i=!0){if(!Array.isArray(e)||0===e.length)return!1;for(let n of e)if(i&&n===a||!i&&n==a)return!0;return!1}var comparison=Object.freeze({__proto__:null,eq:eq,eqw:eqw,neq:neq,neqw:neqw,lt:lt,lte:lte,gt:gt,gte:gte,not:not,ifx:ifx,empty:empty,not_empty:not_empty,count:count,and:and,or:or,coalesce:coalesce,includes:includes}),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule(e,a){return e(a={exports:{}},a.exports),a.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var moment=createCommonjsModule((function(e,a){e.exports=function(){var a,i;function n(){return a.apply(null,arguments)}function t(e){a=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(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(r(e,a))return!1;return!0}function l(e){return void 0===e}function p(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 d(e,a){var i,n=[];for(i=0;i<e.length;++i)n.push(a(e[i],i));return n}function m(e,a){for(var i in a)r(a,i)&&(e[i]=a[i]);return r(a,"toString")&&(e.toString=a.toString),r(a,"valueOf")&&(e.valueOf=a.valueOf),e}function f(e,a,i,n){return Gi(e,a,i,n,!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 v(e){return null==e._pf&&(e._pf=h()),e._pf}function x(e){if(null==e._isValid){var a=v(e),n=i.call(a.parsedDateParts,(function(e){return null!=e})),t=!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&&n);if(e._strict&&(t=t&&0===a.charsLeftOver&&0===a.unusedTokens.length&&void 0===a.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return t;e._isValid=t}return e._isValid}function g(e){var a=f(NaN);return null!=e?m(v(a),e):v(a).userInvalidated=!0,a}i=Array.prototype.some?Array.prototype.some:function(e){var a,i=Object(this),n=i.length>>>0;for(a=0;a<n;a++)if(a in i&&e.call(this,i[a],a,i))return!0;return!1};var b=n.momentProperties=[],y=!1;function _(e,a){var i,n,t;if(l(a._isAMomentObject)||(e._isAMomentObject=a._isAMomentObject),l(a._i)||(e._i=a._i),l(a._f)||(e._f=a._f),l(a._l)||(e._l=a._l),l(a._strict)||(e._strict=a._strict),l(a._tzm)||(e._tzm=a._tzm),l(a._isUTC)||(e._isUTC=a._isUTC),l(a._offset)||(e._offset=a._offset),l(a._pf)||(e._pf=v(a)),l(a._locale)||(e._locale=a._locale),b.length>0)for(i=0;i<b.length;i++)l(t=a[n=b[i]])||(e[n]=t);return e}function w(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,n.updateOffset(this),y=!1)}function k(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function S(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,a){var i=!0;return m((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),i){var t,s,o,c=[];for(s=0;s<arguments.length;s++){if(t="","object"==typeof arguments[s]){for(o in t+="\n["+s+"] ",arguments[0])r(arguments[0],o)&&(t+=o+": "+arguments[0][o]+", ");t=t.slice(0,-2)}else t=arguments[s];c.push(t)}S(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),i=!1}return a.apply(this,arguments)}),a)}var D,M={};function j(e,a){null!=n.deprecationHandler&&n.deprecationHandler(e,a),M[e]||(S(a),M[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Y(e){var a,i;for(i in e)r(e,i)&&(T(a=e[i])?this[i]=a:this["_"+i]=a);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function E(e,a){var i,n=m({},e);for(i in a)r(a,i)&&(o(e[i])&&o(a[i])?(n[i]={},m(n[i],e[i]),m(n[i],a[i])):null!=a[i]?n[i]=a[i]:delete n[i]);for(i in e)r(e,i)&&!r(a,i)&&o(e[i])&&(n[i]=m({},n[i]));return n}function N(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,D=Object.keys?Object.keys:function(e){var a,i=[];for(a in e)r(e,a)&&i.push(a);return i};var C={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(e,a,i){var n=this._calendar[e]||this._calendar.sameElse;return T(n)?n.call(a,i):n}function R(e,a,i){var n=""+Math.abs(e),t=a-n.length;return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,t)).toString().substr(1)+n}var P=/(\[[^\[]*\])|(\\)?([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,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},I={};function U(e,a,i,n){var t=n;"string"==typeof n&&(t=function(){return this[n]()}),e&&(I[e]=t),a&&(I[a[0]]=function(){return R(t.apply(this,arguments),a[1],a[2])}),i&&(I[i]=function(){return this.localeData().ordinal(t.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $(e){var a,i,n=e.match(P);for(a=0,i=n.length;a<i;a++)I[n[a]]?n[a]=I[n[a]]:n[a]=z(n[a]);return function(a){var t,s="";for(t=0;t<i;t++)s+=T(n[t])?n[t].call(a,e):n[t];return s}}function H(e,a){return e.isValid()?(a=W(a,e.localeData()),F[a]=F[a]||$(a),F[a](e)):e.localeData().invalidDate()}function W(e,a){var i=5;function n(e){return a.longDateFormat(e)||e}for(L.lastIndex=0;i>=0&&L.test(e);)e=e.replace(L,n),L.lastIndex=0,i-=1;return e}var q={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 G(e){var a=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return a||!i?a:(this._longDateFormat[e]=i.match(P).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 B(){return this._invalidDate}var Z="%d",J=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var K={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 X(e,a,i,n){var t=this._relativeTime[i];return T(t)?t(e,a,i,n):t.replace(/%d/i,e)}function ee(e,a){var i=this._relativeTime[e>0?"future":"past"];return T(i)?i(a):i.replace(/%s/i,a)}var ae={};function ie(e,a){var i=e.toLowerCase();ae[i]=ae[i+"s"]=ae[a]=e}function ne(e){return"string"==typeof e?ae[e]||ae[e.toLowerCase()]:void 0}function te(e){var a,i,n={};for(i in e)r(e,i)&&(a=ne(i))&&(n[a]=e[i]);return n}var se={};function oe(e,a){se[e]=a}function re(e){var a,i=[];for(a in e)r(e,a)&&i.push({unit:a,priority:se[a]});return i.sort((function(e,a){return e.priority-a.priority})),i}function ce(e){return e%4==0&&e%100!=0||e%400==0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var a=+e,i=0;return 0!==a&&isFinite(a)&&(i=le(a)),i}function ue(e,a){return function(i){return null!=i?(me(this,e,i),n.updateOffset(this,a),this):de(this,e)}}function de(e,a){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+a]():NaN}function me(e,a,i){e.isValid()&&!isNaN(i)&&("FullYear"===a&&ce(e.year())&&1===e.month()&&29===e.date()?(i=pe(i),e._d["set"+(e._isUTC?"UTC":"")+a](i,e.month(),Xe(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+a](i))}function fe(e){return T(this[e=ne(e)])?this[e]():this}function he(e,a){if("object"==typeof e){var i,n=re(e=te(e));for(i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit])}else if(T(this[e=ne(e)]))return this[e](a);return this}var ve,xe=/\d/,ge=/\d\d/,be=/\d{3}/,ye=/\d{4}/,_e=/[+-]?\d{6}/,we=/\d\d?/,ke=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,Oe=/\d{1,3}/,De=/\d{1,4}/,Me=/[+-]?\d{1,6}/,je=/\d+/,Te=/[+-]?\d+/,Ye=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,Ne=/[+-]?\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 Ae(e,a,i){ve[e]=T(a)?a:function(e,n){return e&&i?i:a}}function Re(e,a){return r(ve,e)?ve[e](a._strict,a._locale):new RegExp(Pe(e))}function Pe(e){return Le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,a,i,n,t){return a||i||n||t})))}function Le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Fe={};function Ie(e,a){var i,n=a;for("string"==typeof e&&(e=[e]),p(a)&&(n=function(e,i){i[a]=pe(e)}),i=0;i<e.length;i++)Fe[e[i]]=n}function Ue(e,a){Ie(e,(function(e,i,n,t){n._w=n._w||{},a(e,n._w,n,t)}))}function ze(e,a,i){null!=a&&r(Fe,e)&&Fe[e](a,i._a,i,e)}var $e,He=0,We=1,qe=2,Ge=3,Ve=4,Be=5,Ze=6,Je=7,Qe=8;function Ke(e,a){return(e%a+a)%a}function Xe(e,a){if(isNaN(e)||isNaN(a))return NaN;var i=Ke(a,12);return e+=(a-i)/12,1===i?ce(e)?29:28:31-i%7%2}$e=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},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),U("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ie("month","M"),oe("month",8),Ae("M",we),Ae("MM",we,ge),Ae("MMM",(function(e,a){return a.monthsShortRegex(e)})),Ae("MMMM",(function(e,a){return a.monthsRegex(e)})),Ie(["M","MM"],(function(e,a){a[We]=pe(e)-1})),Ie(["MMM","MMMM"],(function(e,a,i,n){var t=i._locale.monthsParse(e,n,i._strict);null!=t?a[We]=t:v(i).invalidMonth=e}));var ea="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),aa="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ia=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,na=Ce,ta=Ce;function sa(e,a){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ia).test(a)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function oa(e,a){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ia.test(a)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ra(e,a,i){var n,t,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===a?-1!==(t=$e.call(this._shortMonthsParse,o))?t:null:-1!==(t=$e.call(this._longMonthsParse,o))?t:null:"MMM"===a?-1!==(t=$e.call(this._shortMonthsParse,o))||-1!==(t=$e.call(this._longMonthsParse,o))?t:null:-1!==(t=$e.call(this._longMonthsParse,o))||-1!==(t=$e.call(this._shortMonthsParse,o))?t:null}function ca(e,a,i){var n,t,s;if(this._monthsParseExact)return ra.call(this,e,a,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(t=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(t,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(t,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(t,"")+"|^"+this.monthsShort(t,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===a&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===a&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}}function la(e,a){var i;if(!e.isValid())return e;if("string"==typeof a)if(/^\d+$/.test(a))a=pe(a);else if(!p(a=e.localeData().monthsParse(a)))return e;return i=Math.min(e.date(),Xe(e.year(),a)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](a,i),e}function pa(e){return null!=e?(la(this,e),n.updateOffset(this,!0),this):de(this,"Month")}function ua(){return Xe(this.year(),this.month())}function da(e){return this._monthsParseExact?(r(this,"_monthsRegex")||fa.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=na),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ma(e){return this._monthsParseExact?(r(this,"_monthsRegex")||fa.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=ta),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function fa(){function e(e,a){return a.length-e.length}var a,i,n=[],t=[],s=[];for(a=0;a<12;a++)i=f([2e3,a]),n.push(this.monthsShort(i,"")),t.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(n.sort(e),t.sort(e),s.sort(e),a=0;a<12;a++)n[a]=Le(n[a]),t[a]=Le(t[a]);for(a=0;a<24;a++)s[a]=Le(s[a]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function ha(e){return ce(e)?366:365}U("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),ie("year","y"),oe("year",1),Ae("Y",Te),Ae("YY",we,ge),Ae("YYYY",De,ye),Ae("YYYYY",Me,_e),Ae("YYYYYY",Me,_e),Ie(["YYYYY","YYYYYY"],He),Ie("YYYY",(function(e,a){a[He]=2===e.length?n.parseTwoDigitYear(e):pe(e)})),Ie("YY",(function(e,a){a[He]=n.parseTwoDigitYear(e)})),Ie("Y",(function(e,a){a[He]=parseInt(e,10)})),n.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var va=ue("FullYear",!0);function xa(){return ce(this.year())}function ga(e,a,i,n,t,s,o){var r;return e<100&&e>=0?(r=new Date(e+400,a,i,n,t,s,o),isFinite(r.getFullYear())&&r.setFullYear(e)):r=new Date(e,a,i,n,t,s,o),r}function ba(e){var a,i;return e<100&&e>=0?((i=Array.prototype.slice.call(arguments))[0]=e+400,a=new Date(Date.UTC.apply(null,i)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(e)):a=new Date(Date.UTC.apply(null,arguments)),a}function ya(e,a,i){var n=7+a-i;return-(7+ba(e,0,n).getUTCDay()-a)%7+n-1}function _a(e,a,i,n,t){var s,o,r=1+7*(a-1)+(7+i-n)%7+ya(e,n,t);return r<=0?o=ha(s=e-1)+r:r>ha(e)?(s=e+1,o=r-ha(e)):(s=e,o=r),{year:s,dayOfYear:o}}function wa(e,a,i){var n,t,s=ya(e.year(),a,i),o=Math.floor((e.dayOfYear()-s-1)/7)+1;return o<1?n=o+ka(t=e.year()-1,a,i):o>ka(e.year(),a,i)?(n=o-ka(e.year(),a,i),t=e.year()+1):(t=e.year(),n=o),{week:n,year:t}}function ka(e,a,i){var n=ya(e,a,i),t=ya(e+1,a,i);return(ha(e)-n+t)/7}function Sa(e){return wa(e,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),ie("week","w"),ie("isoWeek","W"),oe("week",5),oe("isoWeek",5),Ae("w",we),Ae("ww",we,ge),Ae("W",we),Ae("WW",we,ge),Ue(["w","ww","W","WW"],(function(e,a,i,n){a[n.substr(0,1)]=pe(e)}));var Oa={dow:0,doy:6};function Da(){return this._week.dow}function Ma(){return this._week.doy}function ja(e){var a=this.localeData().week(this);return null==e?a:this.add(7*(e-a),"d")}function Ta(e){var a=wa(this,1,4).week;return null==e?a:this.add(7*(e-a),"d")}function Ya(e,a){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=a.weekdaysParse(e))?e:null:parseInt(e,10)}function Ea(e,a){return"string"==typeof e?a.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Na(e,a){return e.slice(a,7).concat(e.slice(0,a))}U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),ie("day","d"),ie("weekday","e"),ie("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Ae("d",we),Ae("e",we),Ae("E",we),Ae("dd",(function(e,a){return a.weekdaysMinRegex(e)})),Ae("ddd",(function(e,a){return a.weekdaysShortRegex(e)})),Ae("dddd",(function(e,a){return a.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,a,i,n){var t=i._locale.weekdaysParse(e,n,i._strict);null!=t?a.d=t:v(i).invalidWeekday=e})),Ue(["d","e","E"],(function(e,a,i,n){a[n]=pe(e)}));var Ca="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Aa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ra="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Pa=Ce,La=Ce,Fa=Ce;function Ia(e,a){var i=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(a)?"format":"standalone"];return!0===e?Na(i,this._week.dow):e?i[e.day()]:i}function Ua(e){return!0===e?Na(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function za(e){return!0===e?Na(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $a(e,a,i){var n,t,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===a?-1!==(t=$e.call(this._weekdaysParse,o))?t:null:"ddd"===a?-1!==(t=$e.call(this._shortWeekdaysParse,o))?t:null:-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:"dddd"===a?-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._shortWeekdaysParse,o))||-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:"ddd"===a?-1!==(t=$e.call(this._shortWeekdaysParse,o))||-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:-1!==(t=$e.call(this._minWeekdaysParse,o))||-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._shortWeekdaysParse,o))?t:null}function Ha(e,a,i){var n,t,s;if(this._weekdaysParseExact)return $a.call(this,e,a,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(t=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(t,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(t,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(t,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(t,"")+"|^"+this.weekdaysShort(t,"")+"|^"+this.weekdaysMin(t,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===a&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===a&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===a&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}}function Wa(e){if(!this.isValid())return null!=e?this:NaN;var a=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ya(e,this.localeData()),this.add(e-a,"d")):a}function qa(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 Ga(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var a=Ea(e,this.localeData());return this.day(this.day()%7?a:a-7)}return this.day()||7}function Va(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Pa),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ba(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=La),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Za(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ja(){function e(e,a){return a.length-e.length}var a,i,n,t,s,o=[],r=[],c=[],l=[];for(a=0;a<7;a++)i=f([2e3,1]).day(a),n=Le(this.weekdaysMin(i,"")),t=Le(this.weekdaysShort(i,"")),s=Le(this.weekdays(i,"")),o.push(n),r.push(t),c.push(s),l.push(n),l.push(t),l.push(s);o.sort(e),r.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qa(){return this.hours()%12||12}function Ka(){return this.hours()||24}function Xa(e,a){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)}))}function ei(e,a){return a._meridiemParse}function ai(e){return"p"===(e+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Qa),U("k",["kk",2],0,Ka),U("hmm",0,0,(function(){return""+Qa.apply(this)+R(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Qa.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Xa("a",!0),Xa("A",!1),ie("hour","h"),oe("hour",13),Ae("a",ei),Ae("A",ei),Ae("H",we),Ae("h",we),Ae("k",we),Ae("HH",we,ge),Ae("hh",we,ge),Ae("kk",we,ge),Ae("hmm",ke),Ae("hmmss",Se),Ae("Hmm",ke),Ae("Hmmss",Se),Ie(["H","HH"],Ge),Ie(["k","kk"],(function(e,a,i){var n=pe(e);a[Ge]=24===n?0:n})),Ie(["a","A"],(function(e,a,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),Ie(["h","hh"],(function(e,a,i){a[Ge]=pe(e),v(i).bigHour=!0})),Ie("hmm",(function(e,a,i){var n=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n)),v(i).bigHour=!0})),Ie("hmmss",(function(e,a,i){var n=e.length-4,t=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n,2)),a[Be]=pe(e.substr(t)),v(i).bigHour=!0})),Ie("Hmm",(function(e,a,i){var n=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n))})),Ie("Hmmss",(function(e,a,i){var n=e.length-4,t=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n,2)),a[Be]=pe(e.substr(t))}));var ii=/[ap]\.?m?\.?/i,ni=ue("Hours",!0);function ti(e,a,i){return e>11?i?"pm":"PM":i?"am":"AM"}var si,oi={calendar:C,longDateFormat:q,invalidDate:V,ordinal:Z,dayOfMonthOrdinalParse:J,relativeTime:K,months:ea,monthsShort:aa,week:Oa,weekdays:Ca,weekdaysMin:Ra,weekdaysShort:Aa,meridiemParse:ii},ri={},ci={};function li(e,a){var i,n=Math.min(e.length,a.length);for(i=0;i<n;i+=1)if(e[i]!==a[i])return i;return n}function pi(e){return e?e.toLowerCase().replace("_","-"):e}function ui(e){for(var a,i,n,t,s=0;s<e.length;){for(a=(t=pi(e[s]).split("-")).length,i=(i=pi(e[s+1]))?i.split("-"):null;a>0;){if(n=di(t.slice(0,a).join("-")))return n;if(i&&i.length>=a&&li(t,i)>=a-1)break;a--}s++}return si}function di(a){var i=null;if(void 0===ri[a]&&e&&e.exports)try{i=si._abbr,commonjsRequire("./locale/"+a),mi(i)}catch(e){ri[a]=null}return ri[a]}function mi(e,a){var i;return e&&((i=l(a)?vi(e):fi(e,a))?si=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),si._abbr}function fi(e,a){if(null!==a){var i,n=oi;if(a.abbr=e,null!=ri[e])j("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=ri[e]._config;else if(null!=a.parentLocale)if(null!=ri[a.parentLocale])n=ri[a.parentLocale]._config;else{if(null==(i=di(a.parentLocale)))return ci[a.parentLocale]||(ci[a.parentLocale]=[]),ci[a.parentLocale].push({name:e,config:a}),null;n=i._config}return ri[e]=new N(E(n,a)),ci[e]&&ci[e].forEach((function(e){fi(e.name,e.config)})),mi(e),ri[e]}return delete ri[e],null}function hi(e,a){if(null!=a){var i,n,t=oi;null!=ri[e]&&null!=ri[e].parentLocale?ri[e].set(E(ri[e]._config,a)):(null!=(n=di(e))&&(t=n._config),a=E(t,a),null==n&&(a.abbr=e),(i=new N(a)).parentLocale=ri[e],ri[e]=i),mi(e)}else null!=ri[e]&&(null!=ri[e].parentLocale?(ri[e]=ri[e].parentLocale,e===mi()&&mi(e)):null!=ri[e]&&delete ri[e]);return ri[e]}function vi(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return si;if(!s(e)){if(a=di(e))return a;e=[e]}return ui(e)}function xi(){return D(ri)}function gi(e){var a,i=e._a;return i&&-2===v(e).overflow&&(a=i[We]<0||i[We]>11?We:i[qe]<1||i[qe]>Xe(i[He],i[We])?qe:i[Ge]<0||i[Ge]>24||24===i[Ge]&&(0!==i[Ve]||0!==i[Be]||0!==i[Ze])?Ge:i[Ve]<0||i[Ve]>59?Ve:i[Be]<0||i[Be]>59?Be:i[Ze]<0||i[Ze]>999?Ze:-1,v(e)._overflowDayOfYear&&(a<He||a>qe)&&(a=qe),v(e)._overflowWeeks&&-1===a&&(a=Je),v(e)._overflowWeekday&&-1===a&&(a=Qe),v(e).overflow=a),e}var bi=/^\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)?)?$/,yi=/^\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)?)?$/,_i=/Z|[+-]\d\d(?::?\d\d)?/,wi=[["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]],ki=[["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/]],Si=/^\/?Date\((-?\d+)/i,Oi=/^(?:(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}))$/,Di={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mi(e){var a,i,n,t,s,o,r=e._i,c=bi.exec(r)||yi.exec(r);if(c){for(v(e).iso=!0,a=0,i=wi.length;a<i;a++)if(wi[a][1].exec(c[1])){t=wi[a][0],n=!1!==wi[a][2];break}if(null==t)return void(e._isValid=!1);if(c[3]){for(a=0,i=ki.length;a<i;a++)if(ki[a][1].exec(c[3])){s=(c[2]||" ")+ki[a][0];break}if(null==s)return void(e._isValid=!1)}if(!n&&null!=s)return void(e._isValid=!1);if(c[4]){if(!_i.exec(c[4]))return void(e._isValid=!1);o="Z"}e._f=t+(s||"")+(o||""),Ii(e)}else e._isValid=!1}function ji(e,a,i,n,t,s){var o=[Ti(e),aa.indexOf(a),parseInt(i,10),parseInt(n,10),parseInt(t,10)];return s&&o.push(parseInt(s,10)),o}function Ti(e){var a=parseInt(e,10);return a<=49?2e3+a:a<=999?1900+a:a}function Yi(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ei(e,a,i){return!e||Aa.indexOf(e)===new Date(a[0],a[1],a[2]).getDay()||(v(i).weekdayMismatch=!0,i._isValid=!1,!1)}function Ni(e,a,i){if(e)return Di[e];if(a)return 0;var n=parseInt(i,10),t=n%100;return(n-t)/100*60+t}function Ci(e){var a,i=Oi.exec(Yi(e._i));if(i){if(a=ji(i[4],i[3],i[2],i[5],i[6],i[7]),!Ei(i[1],a,e))return;e._a=a,e._tzm=Ni(i[8],i[9],i[10]),e._d=ba.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Ai(e){var a=Si.exec(e._i);null===a?(Mi(e),!1===e._isValid&&(delete e._isValid,Ci(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:n.createFromInputFallback(e)))):e._d=new Date(+a[1])}function Ri(e,a,i){return null!=e?e:null!=a?a:i}function Pi(e){var a=new Date(n.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function Li(e){var a,i,n,t,s,o=[];if(!e._d){for(n=Pi(e),e._w&&null==e._a[qe]&&null==e._a[We]&&Fi(e),null!=e._dayOfYear&&(s=Ri(e._a[He],n[He]),(e._dayOfYear>ha(s)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),i=ba(s,0,e._dayOfYear),e._a[We]=i.getUTCMonth(),e._a[qe]=i.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=o[a]=n[a];for(;a<7;a++)e._a[a]=o[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[Ge]&&0===e._a[Ve]&&0===e._a[Be]&&0===e._a[Ze]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?ba:ga).apply(null,o),t=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==t&&(v(e).weekdayMismatch=!0)}}function Fi(e){var a,i,n,t,s,o,r,c,l;null!=(a=e._w).GG||null!=a.W||null!=a.E?(s=1,o=4,i=Ri(a.GG,e._a[He],wa(Vi(),1,4).year),n=Ri(a.W,1),((t=Ri(a.E,1))<1||t>7)&&(c=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,l=wa(Vi(),s,o),i=Ri(a.gg,e._a[He],l.year),n=Ri(a.w,l.week),null!=a.d?((t=a.d)<0||t>6)&&(c=!0):null!=a.e?(t=a.e+s,(a.e<0||a.e>6)&&(c=!0)):t=s),n<1||n>ka(i,s,o)?v(e)._overflowWeeks=!0:null!=c?v(e)._overflowWeekday=!0:(r=_a(i,n,t,s,o),e._a[He]=r.year,e._dayOfYear=r.dayOfYear)}function Ii(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],v(e).empty=!0;var a,i,t,s,o,r,c=""+e._i,l=c.length,p=0;for(t=W(e._f,e._locale).match(P)||[],a=0;a<t.length;a++)s=t[a],(i=(c.match(Re(s,e))||[])[0])&&((o=c.substr(0,c.indexOf(i))).length>0&&v(e).unusedInput.push(o),c=c.slice(c.indexOf(i)+i.length),p+=i.length),I[s]?(i?v(e).empty=!1:v(e).unusedTokens.push(s),ze(s,i,e)):e._strict&&!i&&v(e).unusedTokens.push(s);v(e).charsLeftOver=l-p,c.length>0&&v(e).unusedInput.push(c),e._a[Ge]<=12&&!0===v(e).bigHour&&e._a[Ge]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ge]=Ui(e._locale,e._a[Ge],e._meridiem),null!==(r=v(e).era)&&(e._a[He]=e._locale.erasConvertYear(r,e._a[He])),Li(e),gi(e)}else Ci(e);else Mi(e)}function Ui(e,a,i){var n;return null==i?a:null!=e.meridiemHour?e.meridiemHour(a,i):null!=e.isPM?((n=e.isPM(i))&&a<12&&(a+=12),n||12!==a||(a=0),a):a}function zi(e){var a,i,n,t,s,o,r=!1;if(0===e._f.length)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(t=0;t<e._f.length;t++)s=0,o=!1,a=_({},e),null!=e._useUTC&&(a._useUTC=e._useUTC),a._f=e._f[t],Ii(a),x(a)&&(o=!0),s+=v(a).charsLeftOver,s+=10*v(a).unusedTokens.length,v(a).score=s,r?s<n&&(n=s,i=a):(null==n||s<n||o)&&(n=s,i=a,o&&(r=!0));m(e,i||a)}function $i(e){if(!e._d){var a=te(e._i),i=void 0===a.day?a.date:a.day;e._a=d([a.year,a.month,i,a.hour,a.minute,a.second,a.millisecond],(function(e){return e&&parseInt(e,10)})),Li(e)}}function Hi(e){var a=new w(gi(Wi(e)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Wi(e){var a=e._i,i=e._f;return e._locale=e._locale||vi(e._l),null===a||void 0===i&&""===a?g({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),k(a)?new w(gi(a)):(u(a)?e._d=a:s(i)?zi(e):i?Ii(e):qi(e),x(e)||(e._d=null),e))}function qi(e){var a=e._i;l(a)?e._d=new Date(n.now()):u(a)?e._d=new Date(a.valueOf()):"string"==typeof a?Ai(e):s(a)?(e._a=d(a.slice(0),(function(e){return parseInt(e,10)})),Li(e)):o(a)?$i(e):p(a)?e._d=new Date(a):n.createFromInputFallback(e)}function Gi(e,a,i,n,t){var r={};return!0!==a&&!1!==a||(n=a,a=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(o(e)&&c(e)||s(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=t,r._l=i,r._i=e,r._f=a,r._strict=n,Hi(r)}function Vi(e,a,i,n){return Gi(e,a,i,n,!1)}n.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var Bi=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Vi.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Zi=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Vi.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Ji(e,a){var i,n;if(1===a.length&&s(a[0])&&(a=a[0]),!a.length)return Vi();for(i=a[0],n=1;n<a.length;++n)a[n].isValid()&&!a[n][e](i)||(i=a[n]);return i}function Qi(){return Ji("isBefore",[].slice.call(arguments,0))}function Ki(){return Ji("isAfter",[].slice.call(arguments,0))}var Xi=function(){return Date.now?Date.now():+new Date},en=["year","quarter","month","week","day","hour","minute","second","millisecond"];function an(e){var a,i,n=!1;for(a in e)if(r(e,a)&&(-1===$e.call(en,a)||null!=e[a]&&isNaN(e[a])))return!1;for(i=0;i<en.length;++i)if(e[en[i]]){if(n)return!1;parseFloat(e[en[i]])!==pe(e[en[i]])&&(n=!0)}return!0}function nn(){return this._isValid}function tn(){return Mn(NaN)}function sn(e){var a=te(e),i=a.year||0,n=a.quarter||0,t=a.month||0,s=a.week||a.isoWeek||0,o=a.day||0,r=a.hour||0,c=a.minute||0,l=a.second||0,p=a.millisecond||0;this._isValid=an(a),this._milliseconds=+p+1e3*l+6e4*c+1e3*r*60*60,this._days=+o+7*s,this._months=+t+3*n+12*i,this._data={},this._locale=vi(),this._bubble()}function on(e){return e instanceof sn}function rn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cn(e,a,i){var n,t=Math.min(e.length,a.length),s=Math.abs(e.length-a.length),o=0;for(n=0;n<t;n++)(i&&e[n]!==a[n]||!i&&pe(e[n])!==pe(a[n]))&&o++;return o+s}function ln(e,a){U(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+R(~~(e/60),2)+a+R(~~e%60,2)}))}ln("Z",":"),ln("ZZ",""),Ae("Z",Ee),Ae("ZZ",Ee),Ie(["Z","ZZ"],(function(e,a,i){i._useUTC=!0,i._tzm=un(Ee,e)}));var pn=/([\+\-]|\d\d)/gi;function un(e,a){var i,n,t=(a||"").match(e);return null===t?null:0===(n=60*(i=((t[t.length-1]||[])+"").match(pn)||["-",0,0])[1]+pe(i[2]))?0:"+"===i[0]?n:-n}function dn(e,a){var i,t;return a._isUTC?(i=a.clone(),t=(k(e)||u(e)?e.valueOf():Vi(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+t),n.updateOffset(i,!1),i):Vi(e).local()}function mn(e){return-Math.round(e._d.getTimezoneOffset())}function fn(e,a,i){var t,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=un(Ee,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&a&&(t=mn(this)),this._offset=e,this._isUTC=!0,null!=t&&this.add(t,"m"),s!==e&&(!a||this._changeInProgress?Nn(this,Mn(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:mn(this)}function hn(e,a){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}function vn(e){return this.utcOffset(0,e)}function xn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mn(this),"m")),this}function gn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=un(Ye,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function bn(e){return!!this.isValid()&&(e=e?Vi(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function yn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _n(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,a={};return _(a,this),(a=Wi(a))._a?(e=a._isUTC?f(a._a):Vi(a._a),this._isDSTShifted=this.isValid()&&cn(a._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wn(){return!!this.isValid()&&!this._isUTC}function kn(){return!!this.isValid()&&this._isUTC}function Sn(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var On=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Mn(e,a){var i,n,t,s=e,o=null;return on(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:p(e)||!isNaN(+e)?(s={},a?s[a]=+e:s.milliseconds=+e):(o=On.exec(e))?(i="-"===o[1]?-1:1,s={y:0,d:pe(o[qe])*i,h:pe(o[Ge])*i,m:pe(o[Ve])*i,s:pe(o[Be])*i,ms:pe(rn(1e3*o[Ze]))*i}):(o=Dn.exec(e))?(i="-"===o[1]?-1:1,s={y:jn(o[2],i),M:jn(o[3],i),w:jn(o[4],i),d:jn(o[5],i),h:jn(o[6],i),m:jn(o[7],i),s:jn(o[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(t=Yn(Vi(s.from),Vi(s.to)),(s={}).ms=t.milliseconds,s.M=t.months),n=new sn(s),on(e)&&r(e,"_locale")&&(n._locale=e._locale),on(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function jn(e,a){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*a}function Tn(e,a){var i={};return i.months=a.month()-e.month()+12*(a.year()-e.year()),e.clone().add(i.months,"M").isAfter(a)&&--i.months,i.milliseconds=+a-+e.clone().add(i.months,"M"),i}function Yn(e,a){var i;return e.isValid()&&a.isValid()?(a=dn(a,e),e.isBefore(a)?i=Tn(e,a):((i=Tn(a,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function En(e,a){return function(i,n){var t;return null===n||isNaN(+n)||(j(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."),t=i,i=n,n=t),Nn(this,Mn(i,n),e),this}}function Nn(e,a,i,t){var s=a._milliseconds,o=rn(a._days),r=rn(a._months);e.isValid()&&(t=null==t||t,r&&la(e,de(e,"Month")+r*i),o&&me(e,"Date",de(e,"Date")+o*i),s&&e._d.setTime(e._d.valueOf()+s*i),t&&n.updateOffset(e,o||r))}Mn.fn=sn.prototype,Mn.invalid=tn;var Cn=En(1,"add"),An=En(-1,"subtract");function Rn(e){return"string"==typeof e||e instanceof String}function Pn(e){return k(e)||u(e)||Rn(e)||p(e)||Fn(e)||Ln(e)||null==e}function Ln(e){var a,i,n=o(e)&&!c(e),t=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(a=0;a<s.length;a+=1)i=s[a],t=t||r(e,i);return n&&t}function Fn(e){var a=s(e),i=!1;return a&&(i=0===e.filter((function(a){return!p(a)&&Rn(e)})).length),a&&i}function In(e){var a,i,n=o(e)&&!c(e),t=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(a=0;a<s.length;a+=1)i=s[a],t=t||r(e,i);return n&&t}function Un(e,a){var i=e.diff(a,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function zn(e,a){1===arguments.length&&(arguments[0]?Pn(arguments[0])?(e=arguments[0],a=void 0):In(arguments[0])&&(a=arguments[0],e=void 0):(e=void 0,a=void 0));var i=e||Vi(),t=dn(i,this).startOf("day"),s=n.calendarFormat(this,t)||"sameElse",o=a&&(T(a[s])?a[s].call(this,i):a[s]);return this.format(o||this.localeData().calendar(s,this,Vi(i)))}function $n(){return new w(this)}function Hn(e,a){var i=k(e)?e:Vi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(a).valueOf())}function Wn(e,a){var i=k(e)?e:Vi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(a).valueOf()<i.valueOf())}function qn(e,a,i,n){var t=k(e)?e:Vi(e),s=k(a)?a:Vi(a);return!!(this.isValid()&&t.isValid()&&s.isValid())&&("("===(n=n||"()")[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(")"===n[1]?this.isBefore(s,i):!this.isAfter(s,i))}function Gn(e,a){var i,n=k(e)?e:Vi(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(a).valueOf()<=i&&i<=this.clone().endOf(a).valueOf()))}function Vn(e,a){return this.isSame(e,a)||this.isAfter(e,a)}function Bn(e,a){return this.isSame(e,a)||this.isBefore(e,a)}function Zn(e,a,i){var n,t,s;if(!this.isValid())return NaN;if(!(n=dn(e,this)).isValid())return NaN;switch(t=6e4*(n.utcOffset()-this.utcOffset()),a=ne(a)){case"year":s=Jn(this,n)/12;break;case"month":s=Jn(this,n);break;case"quarter":s=Jn(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-t)/864e5;break;case"week":s=(this-n-t)/6048e5;break;default:s=this-n}return i?s:le(s)}function Jn(e,a){if(e.date()<a.date())return-Jn(a,e);var i=12*(a.year()-e.year())+(a.month()-e.month()),n=e.clone().add(i,"months");return-(i+(a-n<0?(a-n)/(n-e.clone().add(i-1,"months")):(a-n)/(e.clone().add(i+1,"months")-n)))||0}function Qn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Kn(e){if(!this.isValid())return null;var a=!0!==e,i=a?this.clone().utc():this;return i.year()<0||i.year()>9999?H(i,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(i,"Z")):H(i,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Xn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,a,i,n,t="moment",s="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+t+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",n=s+'[")]',this.format(e+a+i+n)}function et(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var a=H(this,e);return this.localeData().postformat(a)}function at(e,a){return this.isValid()&&(k(e)&&e.isValid()||Vi(e).isValid())?Mn({to:this,from:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function it(e){return this.from(Vi(),e)}function nt(e,a){return this.isValid()&&(k(e)&&e.isValid()||Vi(e).isValid())?Mn({from:this,to:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function tt(e){return this.to(Vi(),e)}function st(e){var a;return void 0===e?this._locale._abbr:(null!=(a=vi(e))&&(this._locale=a),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ot=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function rt(){return this._locale}var ct=1e3,lt=60*ct,pt=60*lt,ut=3506328*pt;function dt(e,a){return(e%a+a)%a}function mt(e,a,i){return e<100&&e>=0?new Date(e+400,a,i)-ut:new Date(e,a,i).valueOf()}function ft(e,a,i){return e<100&&e>=0?Date.UTC(e+400,a,i)-ut:Date.UTC(e,a,i)}function ht(e){var a,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ft:mt,e){case"year":a=i(this.year(),0,1);break;case"quarter":a=i(this.year(),this.month()-this.month()%3,1);break;case"month":a=i(this.year(),this.month(),1);break;case"week":a=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=i(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=dt(a+(this._isUTC?0:this.utcOffset()*lt),pt);break;case"minute":a=this._d.valueOf(),a-=dt(a,lt);break;case"second":a=this._d.valueOf(),a-=dt(a,ct)}return this._d.setTime(a),n.updateOffset(this,!0),this}function vt(e){var a,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ft:mt,e){case"year":a=i(this.year()+1,0,1)-1;break;case"quarter":a=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=i(this.year(),this.month()+1,1)-1;break;case"week":a=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=pt-dt(a+(this._isUTC?0:this.utcOffset()*lt),pt)-1;break;case"minute":a=this._d.valueOf(),a+=lt-dt(a,lt)-1;break;case"second":a=this._d.valueOf(),a+=ct-dt(a,ct)-1}return this._d.setTime(a),n.updateOffset(this,!0),this}function xt(){return this._d.valueOf()-6e4*(this._offset||0)}function gt(){return Math.floor(this.valueOf()/1e3)}function bt(){return new Date(this.valueOf())}function yt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _t(){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 wt(){return this.isValid()?this.toISOString():null}function kt(){return x(this)}function St(){return m({},v(this))}function Ot(){return v(this).overflow}function Dt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Mt(e,a){var i,t,s,o=this._eras||vi("en")._eras;for(i=0,t=o.length;i<t;++i)switch("string"==typeof o[i].since&&(s=n(o[i].since).startOf("day"),o[i].since=s.valueOf()),typeof o[i].until){case"undefined":o[i].until=1/0;break;case"string":s=n(o[i].until).startOf("day").valueOf(),o[i].until=s.valueOf()}return o}function jt(e,a,i){var n,t,s,o,r,c=this.eras();for(e=e.toUpperCase(),n=0,t=c.length;n<t;++n)if(s=c[n].name.toUpperCase(),o=c[n].abbr.toUpperCase(),r=c[n].narrow.toUpperCase(),i)switch(a){case"N":case"NN":case"NNN":if(o===e)return c[n];break;case"NNNN":if(s===e)return c[n];break;case"NNNNN":if(r===e)return c[n]}else if([s,o,r].indexOf(e)>=0)return c[n]}function Tt(e,a){var i=e.since<=e.until?1:-1;return void 0===a?n(e.since).year():n(e.since).year()+(a-e.offset)*i}function Yt(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].name;if(n[e].until<=i&&i<=n[e].since)return n[e].name}return""}function Et(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].narrow;if(n[e].until<=i&&i<=n[e].since)return n[e].narrow}return""}function Nt(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].abbr;if(n[e].until<=i&&i<=n[e].since)return n[e].abbr}return""}function Ct(){var e,a,i,t,s=this.localeData().eras();for(e=0,a=s.length;e<a;++e)if(i=s[e].since<=s[e].until?1:-1,t=this.clone().startOf("day").valueOf(),s[e].since<=t&&t<=s[e].until||s[e].until<=t&&t<=s[e].since)return(this.year()-n(s[e].since).year())*i+s[e].offset;return this.year()}function At(e){return r(this,"_erasNameRegex")||zt.call(this),e?this._erasNameRegex:this._erasRegex}function Rt(e){return r(this,"_erasAbbrRegex")||zt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Pt(e){return r(this,"_erasNarrowRegex")||zt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Lt(e,a){return a.erasAbbrRegex(e)}function Ft(e,a){return a.erasNameRegex(e)}function It(e,a){return a.erasNarrowRegex(e)}function Ut(e,a){return a._eraYearOrdinalRegex||je}function zt(){var e,a,i=[],n=[],t=[],s=[],o=this.eras();for(e=0,a=o.length;e<a;++e)n.push(Le(o[e].name)),i.push(Le(o[e].abbr)),t.push(Le(o[e].narrow)),s.push(Le(o[e].name)),s.push(Le(o[e].abbr)),s.push(Le(o[e].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}function $t(e,a){U(0,[e,e.length],0,a)}function Ht(e){return Zt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wt(e){return Zt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qt(){return ka(this.year(),1,4)}function Gt(){return ka(this.isoWeekYear(),1,4)}function Vt(){var e=this.localeData()._week;return ka(this.year(),e.dow,e.doy)}function Bt(){var e=this.localeData()._week;return ka(this.weekYear(),e.dow,e.doy)}function Zt(e,a,i,n,t){var s;return null==e?wa(this,n,t).year:(a>(s=ka(e,n,t))&&(a=s),Jt.call(this,e,a,i,n,t))}function Jt(e,a,i,n,t){var s=_a(e,a,i,n,t),o=ba(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Qt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Ae("N",Lt),Ae("NN",Lt),Ae("NNN",Lt),Ae("NNNN",Ft),Ae("NNNNN",It),Ie(["N","NN","NNN","NNNN","NNNNN"],(function(e,a,i,n){var t=i._locale.erasParse(e,n,i._strict);t?v(i).era=t:v(i).invalidEra=e})),Ae("y",je),Ae("yy",je),Ae("yyy",je),Ae("yyyy",je),Ae("yo",Ut),Ie(["y","yy","yyy","yyyy"],He),Ie(["yo"],(function(e,a,i,n){var t;i._locale._eraYearOrdinalRegex&&(t=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?a[He]=i._locale.eraYearOrdinalParse(e,t):a[He]=parseInt(e,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),$t("gggg","weekYear"),$t("ggggg","weekYear"),$t("GGGG","isoWeekYear"),$t("GGGGG","isoWeekYear"),ie("weekYear","gg"),ie("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Ae("G",Te),Ae("g",Te),Ae("GG",we,ge),Ae("gg",we,ge),Ae("GGGG",De,ye),Ae("gggg",De,ye),Ae("GGGGG",Me,_e),Ae("ggggg",Me,_e),Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,a,i,n){a[n.substr(0,2)]=pe(e)})),Ue(["gg","GG"],(function(e,a,i,t){a[t]=n.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),ie("quarter","Q"),oe("quarter",7),Ae("Q",xe),Ie("Q",(function(e,a){a[We]=3*(pe(e)-1)})),U("D",["DD",2],"Do","date"),ie("date","D"),oe("date",9),Ae("D",we),Ae("DD",we,ge),Ae("Do",(function(e,a){return e?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient})),Ie(["D","DD"],qe),Ie("Do",(function(e,a){a[qe]=pe(e.match(we)[0])}));var Kt=ue("Date",!0);function Xt(e){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?a:this.add(e-a,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),ie("dayOfYear","DDD"),oe("dayOfYear",4),Ae("DDD",Oe),Ae("DDDD",be),Ie(["DDD","DDDD"],(function(e,a,i){i._dayOfYear=pe(e)})),U("m",["mm",2],0,"minute"),ie("minute","m"),oe("minute",14),Ae("m",we),Ae("mm",we,ge),Ie(["m","mm"],Ve);var es=ue("Minutes",!1);U("s",["ss",2],0,"second"),ie("second","s"),oe("second",15),Ae("s",we),Ae("ss",we,ge),Ie(["s","ss"],Be);var as,is,ns=ue("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ie("millisecond","ms"),oe("millisecond",16),Ae("S",Oe,xe),Ae("SS",Oe,ge),Ae("SSS",Oe,be),as="SSSS";as.length<=9;as+="S")Ae(as,je);function ts(e,a){a[Ze]=pe(1e3*("0."+e))}for(as="S";as.length<=9;as+="S")Ie(as,ts);function ss(){return this._isUTC?"UTC":""}function os(){return this._isUTC?"Coordinated Universal Time":""}is=ue("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var rs=w.prototype;function cs(e){return Vi(1e3*e)}function ls(){return Vi.apply(null,arguments).parseZone()}function ps(e){return e}rs.add=Cn,rs.calendar=zn,rs.clone=$n,rs.diff=Zn,rs.endOf=vt,rs.format=et,rs.from=at,rs.fromNow=it,rs.to=nt,rs.toNow=tt,rs.get=fe,rs.invalidAt=Ot,rs.isAfter=Hn,rs.isBefore=Wn,rs.isBetween=qn,rs.isSame=Gn,rs.isSameOrAfter=Vn,rs.isSameOrBefore=Bn,rs.isValid=kt,rs.lang=ot,rs.locale=st,rs.localeData=rt,rs.max=Zi,rs.min=Bi,rs.parsingFlags=St,rs.set=he,rs.startOf=ht,rs.subtract=An,rs.toArray=yt,rs.toObject=_t,rs.toDate=bt,rs.toISOString=Kn,rs.inspect=Xn,"undefined"!=typeof Symbol&&null!=Symbol.for&&(rs[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),rs.toJSON=wt,rs.toString=Qn,rs.unix=gt,rs.valueOf=xt,rs.creationData=Dt,rs.eraName=Yt,rs.eraNarrow=Et,rs.eraAbbr=Nt,rs.eraYear=Ct,rs.year=va,rs.isLeapYear=xa,rs.weekYear=Ht,rs.isoWeekYear=Wt,rs.quarter=rs.quarters=Qt,rs.month=pa,rs.daysInMonth=ua,rs.week=rs.weeks=ja,rs.isoWeek=rs.isoWeeks=Ta,rs.weeksInYear=Vt,rs.weeksInWeekYear=Bt,rs.isoWeeksInYear=qt,rs.isoWeeksInISOWeekYear=Gt,rs.date=Kt,rs.day=rs.days=Wa,rs.weekday=qa,rs.isoWeekday=Ga,rs.dayOfYear=Xt,rs.hour=rs.hours=ni,rs.minute=rs.minutes=es,rs.second=rs.seconds=ns,rs.millisecond=rs.milliseconds=is,rs.utcOffset=fn,rs.utc=vn,rs.local=xn,rs.parseZone=gn,rs.hasAlignedHourOffset=bn,rs.isDST=yn,rs.isLocal=wn,rs.isUtcOffset=kn,rs.isUtc=Sn,rs.isUTC=Sn,rs.zoneAbbr=ss,rs.zoneName=os,rs.dates=O("dates accessor is deprecated. Use date instead.",Kt),rs.months=O("months accessor is deprecated. Use month instead",pa),rs.years=O("years accessor is deprecated. Use year instead",va),rs.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",hn),rs.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_n);var us=N.prototype;function ds(e,a,i,n){var t=vi(),s=f().set(n,a);return t[i](s,e)}function ms(e,a,i){if(p(e)&&(a=e,e=void 0),e=e||"",null!=a)return ds(e,a,i,"month");var n,t=[];for(n=0;n<12;n++)t[n]=ds(e,n,i,"month");return t}function fs(e,a,i,n){"boolean"==typeof e?(p(a)&&(i=a,a=void 0),a=a||""):(i=a=e,e=!1,p(a)&&(i=a,a=void 0),a=a||"");var t,s=vi(),o=e?s._week.dow:0,r=[];if(null!=i)return ds(a,(i+o)%7,n,"day");for(t=0;t<7;t++)r[t]=ds(a,(t+o)%7,n,"day");return r}function hs(e,a){return ms(e,a,"months")}function vs(e,a){return ms(e,a,"monthsShort")}function xs(e,a,i){return fs(e,a,i,"weekdays")}function gs(e,a,i){return fs(e,a,i,"weekdaysShort")}function bs(e,a,i){return fs(e,a,i,"weekdaysMin")}us.calendar=A,us.longDateFormat=G,us.invalidDate=B,us.ordinal=Q,us.preparse=ps,us.postformat=ps,us.relativeTime=X,us.pastFuture=ee,us.set=Y,us.eras=Mt,us.erasParse=jt,us.erasConvertYear=Tt,us.erasAbbrRegex=Rt,us.erasNameRegex=At,us.erasNarrowRegex=Pt,us.months=sa,us.monthsShort=oa,us.monthsParse=ca,us.monthsRegex=ma,us.monthsShortRegex=da,us.week=Sa,us.firstDayOfYear=Ma,us.firstDayOfWeek=Da,us.weekdays=Ia,us.weekdaysMin=za,us.weekdaysShort=Ua,us.weekdaysParse=Ha,us.weekdaysRegex=Va,us.weekdaysShortRegex=Ba,us.weekdaysMinRegex=Za,us.isPM=ai,us.meridiem=ti,mi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var a=e%10;return e+(1===pe(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}}),n.lang=O("moment.lang is deprecated. Use moment.locale instead.",mi),n.langData=O("moment.langData is deprecated. Use moment.localeData instead.",vi);var ys=Math.abs;function _s(){var e=this._data;return this._milliseconds=ys(this._milliseconds),this._days=ys(this._days),this._months=ys(this._months),e.milliseconds=ys(e.milliseconds),e.seconds=ys(e.seconds),e.minutes=ys(e.minutes),e.hours=ys(e.hours),e.months=ys(e.months),e.years=ys(e.years),this}function ws(e,a,i,n){var t=Mn(a,i);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function ks(e,a){return ws(this,e,a,1)}function Ss(e,a){return ws(this,e,a,-1)}function Os(e){return e<0?Math.floor(e):Math.ceil(e)}function Ds(){var e,a,i,n,t,s=this._milliseconds,o=this._days,r=this._months,c=this._data;return s>=0&&o>=0&&r>=0||s<=0&&o<=0&&r<=0||(s+=864e5*Os(js(r)+o),o=0,r=0),c.milliseconds=s%1e3,e=le(s/1e3),c.seconds=e%60,a=le(e/60),c.minutes=a%60,i=le(a/60),c.hours=i%24,o+=le(i/24),r+=t=le(Ms(o)),o-=Os(js(t)),n=le(r/12),r%=12,c.days=o,c.months=r,c.years=n,this}function Ms(e){return 4800*e/146097}function js(e){return 146097*e/4800}function Ts(e){if(!this.isValid())return NaN;var a,i,n=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(a=this._days+n/864e5,i=this._months+Ms(a),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(a=this._days+Math.round(js(this._months)),e){case"week":return a/7+n/6048e5;case"day":return a+n/864e5;case"hour":return 24*a+n/36e5;case"minute":return 1440*a+n/6e4;case"second":return 86400*a+n/1e3;case"millisecond":return Math.floor(864e5*a)+n;default:throw new Error("Unknown unit "+e)}}function Ys(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN}function Es(e){return function(){return this.as(e)}}var Ns=Es("ms"),Cs=Es("s"),As=Es("m"),Rs=Es("h"),Ps=Es("d"),Ls=Es("w"),Fs=Es("M"),Is=Es("Q"),Us=Es("y");function zs(){return Mn(this)}function $s(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Hs(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ws=Hs("milliseconds"),qs=Hs("seconds"),Gs=Hs("minutes"),Vs=Hs("hours"),Bs=Hs("days"),Zs=Hs("months"),Js=Hs("years");function Qs(){return le(this.days()/7)}var Ks=Math.round,Xs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function eo(e,a,i,n,t){return t.relativeTime(a||1,!!i,e,n)}function ao(e,a,i,n){var t=Mn(e).abs(),s=Ks(t.as("s")),o=Ks(t.as("m")),r=Ks(t.as("h")),c=Ks(t.as("d")),l=Ks(t.as("M")),p=Ks(t.as("w")),u=Ks(t.as("y")),d=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||o<=1&&["m"]||o<i.m&&["mm",o]||r<=1&&["h"]||r<i.h&&["hh",r]||c<=1&&["d"]||c<i.d&&["dd",c];return null!=i.w&&(d=d||p<=1&&["w"]||p<i.w&&["ww",p]),(d=d||l<=1&&["M"]||l<i.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=a,d[3]=+e>0,d[4]=n,eo.apply(null,d)}function io(e){return void 0===e?Ks:"function"==typeof e&&(Ks=e,!0)}function no(e,a){return void 0!==Xs[e]&&(void 0===a?Xs[e]:(Xs[e]=a,"s"===e&&(Xs.ss=a-1),!0))}function to(e,a){if(!this.isValid())return this.localeData().invalidDate();var i,n,t=!1,s=Xs;return"object"==typeof e&&(a=e,e=!1),"boolean"==typeof e&&(t=e),"object"==typeof a&&(s=Object.assign({},Xs,a),null!=a.s&&null==a.ss&&(s.ss=a.s-1)),n=ao(this,!t,s,i=this.localeData()),t&&(n=i.pastFuture(+this,n)),i.postformat(n)}var so=Math.abs;function oo(e){return(e>0)-(e<0)||+e}function ro(){if(!this.isValid())return this.localeData().invalidDate();var e,a,i,n,t,s,o,r,c=so(this._milliseconds)/1e3,l=so(this._days),p=so(this._months),u=this.asSeconds();return u?(e=le(c/60),a=le(e/60),c%=60,e%=60,i=le(p/12),p%=12,n=c?c.toFixed(3).replace(/\.?0+$/,""):"",t=u<0?"-":"",s=oo(this._months)!==oo(u)?"-":"",o=oo(this._days)!==oo(u)?"-":"",r=oo(this._milliseconds)!==oo(u)?"-":"",t+"P"+(i?s+i+"Y":"")+(p?s+p+"M":"")+(l?o+l+"D":"")+(a||e||c?"T":"")+(a?r+a+"H":"")+(e?r+e+"M":"")+(c?r+n+"S":"")):"P0D"}var co=sn.prototype;return co.isValid=nn,co.abs=_s,co.add=ks,co.subtract=Ss,co.as=Ts,co.asMilliseconds=Ns,co.asSeconds=Cs,co.asMinutes=As,co.asHours=Rs,co.asDays=Ps,co.asWeeks=Ls,co.asMonths=Fs,co.asQuarters=Is,co.asYears=Us,co.valueOf=Ys,co._bubble=Ds,co.clone=zs,co.get=$s,co.milliseconds=Ws,co.seconds=qs,co.minutes=Gs,co.hours=Vs,co.days=Bs,co.weeks=Qs,co.months=Zs,co.years=Js,co.humanize=to,co.toISOString=ro,co.toString=ro,co.toJSON=ro,co.locale=st,co.localeData=rt,co.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ro),co.lang=ot,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Ae("x",Te),Ae("X",Ne),Ie("X",(function(e,a,i){i._d=new Date(1e3*parseFloat(e))})),Ie("x",(function(e,a,i){i._d=new Date(pe(e))})),
2
2
  //! moment.js
3
- n.version="2.29.1",t(Vi),n.fn=rs,n.min=Qi,n.max=Ki,n.now=Xi,n.utc=f,n.unix=cs,n.months=hs,n.isDate=u,n.locale=mi,n.invalid=g,n.duration=Mn,n.isMoment=k,n.weekdays=xs,n.parseZone=ls,n.localeData=vi,n.isDuration=on,n.monthsShort=vs,n.weekdaysMin=bs,n.defineLocale=fi,n.updateLocale=hi,n.locales=xi,n.weekdaysShort=gs,n.normalizeUnits=ne,n.relativeTimeRounding=io,n.relativeTimeThreshold=no,n.calendarFormat=Un,n.prototype=rs,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()}));function format_date(e,a,i){if(e=utils.isString(e)?e:"",utils.isString(i)||utils.isArray(i)){const n=moment(a||new Date);return n.locale(i),n.format(e)}return moment(a||new Date).format(e)}var date=Object.freeze({__proto__:null,format_date:format_date}),helpers=Object.freeze({__proto__:null,html:html,object:object,string:string,comparison:comparison,date:date});class View{static mount(e){const a=this.loadOptions(),i=require("express-hbs");for(let[e,a]of Object.entries(helpers))for(let[e,n]of Object.entries(a))i.registerHelper(e,n);e.engine("hbs",i.express4({partialsDir:a.partials_dir,layoutsDir:a.layouts_dir,defaultLayout:a.default_layout,extname:a.extension})),e.set("view engine","hbs"),e.set("views",a.views_dir)}static loadOptions(){const e={views_dir:a__default.default.join(process.cwd(),"views"),partials_dir:a__default.default.join(process.cwd(),"views/partials"),layouts_dir:a__default.default.join(process.cwd(),"views/layout"),default_layout:a__default.default.join(process.cwd(),"views/layout/default.hbs"),extension:".hbs"},a=`${process.cwd()}/config/view`;return e__default.default.existsSync(`${a}.js`)?Object.assign(e,require(a).default||require(a)):e}}
3
+ n.version="2.29.1",t(Vi),n.fn=rs,n.min=Qi,n.max=Ki,n.now=Xi,n.utc=f,n.unix=cs,n.months=hs,n.isDate=u,n.locale=mi,n.invalid=g,n.duration=Mn,n.isMoment=k,n.weekdays=xs,n.parseZone=ls,n.localeData=vi,n.isDuration=on,n.monthsShort=vs,n.weekdaysMin=bs,n.defineLocale=fi,n.updateLocale=hi,n.locales=xi,n.weekdaysShort=gs,n.normalizeUnits=ne,n.relativeTimeRounding=io,n.relativeTimeThreshold=no,n.calendarFormat=Un,n.prototype=rs,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()}));function format_date(e,a,i){if(e=utils.isString(e)?e:"",utils.isString(i)||utils.isArray(i)){const n=moment(a||new Date);return n.locale(i),n.format(e)}return moment(a||new Date).format(e)}var date=Object.freeze({__proto__:null,format_date:format_date}),helpers=Object.freeze({__proto__:null,html:html,object:object,string:string,comparison:comparison,date:date});class View{static mount(e){const a=this.loadOptions(),i=require("express-hbs");for(let[e,a]of Object.entries(helpers))for(let[e,n]of Object.entries(a))i.registerHelper(e,n);e.engine("hbs",i.express4({partialsDir:a.partials_dir,layoutsDir:a.layouts_dir,defaultLayout:a.default_layout,extname:a.extension})),e.set("view engine","hbs"),e.set("views",a.views_dir),e.use(((e,i,n)=>{a.beforeRender&&a.beforeRender(i),n()}))}static loadOptions(){const e={views_dir:a__default.default.join(process.cwd(),"views"),partials_dir:a__default.default.join(process.cwd(),"views/partials"),layouts_dir:a__default.default.join(process.cwd(),"views/layout"),default_layout:a__default.default.join(process.cwd(),"views/layout/default.hbs"),extension:".hbs",beforeRender:e=>{}},a=`${process.cwd()}/config/view`;return e__default.default.existsSync(`${a}.js`)?Object.assign(e,require(a).default||require(a)):e}}
4
4
  /*!
5
5
  * cookie
6
6
  * Copyright(c) 2012-2014 Roman Shtylman
package/dist/build.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import e from"fs";import a from"path";import express from"express";import crypto from"crypto";import passport from"passport";import{Strategy}from"passport-local";import buffer from"buffer";import tty from"tty";import util from"util";import net from"net";import url from"url";import events from"events";import i from"os";import o from"assert";import sequelize from"sequelize";import AWS from"aws-sdk";var version="1.0.20";class Global{static mount(){global.APP_DIR=process.cwd(),console.log("Set global variable APP_DIR")}}function log$2(e){console.log(`[dotenv][DEBUG] ${e}`)}const NEWLINE="\n",RE_INI_KEY_VAL=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,RE_NEWLINES=/\\n/g,NEWLINES_MATCH=/\n|\r|\r\n/;function parse$4(e,a){const i=Boolean(a&&a.debug),n={};return e.toString().split(NEWLINES_MATCH).forEach((function(e,a){const t=e.match(RE_INI_KEY_VAL);if(null!=t){const e=t[1];let a=t[2]||"";const i=a.length-1,s='"'===a[0]&&'"'===a[i];"'"===a[0]&&"'"===a[i]||s?(a=a.substring(1,i),s&&(a=a.replace(RE_NEWLINES,NEWLINE))):a=a.trim(),n[e]=a}else i&&log$2(`did not match key and value when parsing line ${a+1}: ${e}`)})),n}function config(i){let n=a.resolve(process.cwd(),".env"),t="utf8",s=!1;i&&(null!=i.path&&(n=i.path),null!=i.encoding&&(t=i.encoding),null!=i.debug&&(s=!0));try{const a=parse$4(e.readFileSync(n,{encoding:t}),{debug:s});return Object.keys(a).forEach((function(e){Object.prototype.hasOwnProperty.call(process.env,e)?s&&log$2(`"${e}" is already defined in \`process.env\` and will not be overwritten`):process.env[e]=a[e]})),{parsed:a}}catch(e){return{error:e}}}var config_1=config,parse_1$2=parse$4,main={config:config_1,parse:parse_1$2};class Environment{static mount(){if(global.loadedEnv)return void console.log("env is already loaded, so do nothing");const a=this.loadOptions();if(!a.env_path)return;const i=main.parse(e.readFileSync(a.env_path));for(let e in i)console.log(`Read environment variable ${e}`),process.env[e]=i[e];global.loadedEnv=!0}static loadOptions(){const a={env_path:void 0},i=`${process.cwd()}/config/config`;return e.existsSync(`${i}.js`)?Object.assign(a,require(i).default||require(i)):a}}function cache_busting(i,n){const t=`${a.join(process.cwd(),"public")}/${i.replace(/^\//,"")}`;if(!e.existsSync(t))return i;const s=new Date(e.statSync(t).mtime).getTime();return`${n}/${i.replace(/^\//,"")}?${s}`}var html=Object.freeze({__proto__:null,cache_busting:cache_busting});function json_stringify(e,a=0){return JSON.stringify(e,null,a)}function json_parse(e){return JSON.parse(e)}var object=Object.freeze({__proto__:null,json_stringify:json_stringify,json_parse:json_parse}),isAsyncFunction=e=>e&&e.constructor&&e.constructor===Object.getPrototypeOf((async function(){})).constructor,isString=e=>"string"==typeof e&&""!==e,isObject=e=>null!=e&&"object"==typeof e&&!1===Array.isArray(e),isArray=e=>"[object Array]"===Object.prototype.toString.call(e),utils={isAsyncFunction:isAsyncFunction,isString:isString,isObject:isObject,isArray:isArray},index$5=Object.freeze({__proto__:null,default:utils});function replace(e,a,i){return e.replace(a,i)}function split(e,a){return utils.isString(e)?(utils.isString(a)||(a=","),e.split(a)):[]}var string=Object.freeze({__proto__:null,replace:replace,split:split});function eq(e,a){return e===a}function eqw(e,a){return e==a}function neq(e,a){return e!==a}function neqw(e,a){return e!=a}function lt(e,a){return e<a}function lte(e,a){return e<=a}function gt(e,a){return e>a}function gte(e,a){return e>=a}function not(e){return!e}function ifx(e,a,i){return utils.isObject(i)&&"ifx"===i.name&&i.hasOwnProperty("hash")&&(i=""),e?a:i}function empty(e){return"string"==typeof e?e=e.replace(/^[\s ]+|[\s ]+$/g,""):Array.isArray(e)&&0===e.length&&(e=null),!e}function not_empty(e){return"string"==typeof e?e=e.replace(/^[\s ]+|[\s ]+$/g,""):Array.isArray(e)&&0===e.length&&(e=null),!!e}function count(e){return!!Array.isArray(e)&&e.length}function and(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(!a)return!1;return!0}function or(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(a)return!0;return!1}function coalesce(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(a)return a;return e.pop()}function includes(e,a,i=!0){if(!Array.isArray(e)||0===e.length)return!1;for(let n of e)if(i&&n===a||!i&&n==a)return!0;return!1}var comparison=Object.freeze({__proto__:null,eq:eq,eqw:eqw,neq:neq,neqw:neqw,lt:lt,lte:lte,gt:gt,gte:gte,not:not,ifx:ifx,empty:empty,not_empty:not_empty,count:count,and:and,or:or,coalesce:coalesce,includes:includes}),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule(e,a){return e(a={exports:{}},a.exports),a.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var moment=createCommonjsModule((function(e,a){e.exports=function(){var a,i;function n(){return a.apply(null,arguments)}function t(e){a=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(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(r(e,a))return!1;return!0}function l(e){return void 0===e}function p(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 d(e,a){var i,n=[];for(i=0;i<e.length;++i)n.push(a(e[i],i));return n}function m(e,a){for(var i in a)r(a,i)&&(e[i]=a[i]);return r(a,"toString")&&(e.toString=a.toString),r(a,"valueOf")&&(e.valueOf=a.valueOf),e}function h(e,a,i,n){return Gi(e,a,i,n,!0).utc()}function f(){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 v(e){return null==e._pf&&(e._pf=f()),e._pf}function x(e){if(null==e._isValid){var a=v(e),n=i.call(a.parsedDateParts,(function(e){return null!=e})),t=!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&&n);if(e._strict&&(t=t&&0===a.charsLeftOver&&0===a.unusedTokens.length&&void 0===a.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return t;e._isValid=t}return e._isValid}function g(e){var a=h(NaN);return null!=e?m(v(a),e):v(a).userInvalidated=!0,a}i=Array.prototype.some?Array.prototype.some:function(e){var a,i=Object(this),n=i.length>>>0;for(a=0;a<n;a++)if(a in i&&e.call(this,i[a],a,i))return!0;return!1};var b=n.momentProperties=[],y=!1;function _(e,a){var i,n,t;if(l(a._isAMomentObject)||(e._isAMomentObject=a._isAMomentObject),l(a._i)||(e._i=a._i),l(a._f)||(e._f=a._f),l(a._l)||(e._l=a._l),l(a._strict)||(e._strict=a._strict),l(a._tzm)||(e._tzm=a._tzm),l(a._isUTC)||(e._isUTC=a._isUTC),l(a._offset)||(e._offset=a._offset),l(a._pf)||(e._pf=v(a)),l(a._locale)||(e._locale=a._locale),b.length>0)for(i=0;i<b.length;i++)l(t=a[n=b[i]])||(e[n]=t);return e}function w(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,n.updateOffset(this),y=!1)}function k(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function S(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,a){var i=!0;return m((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),i){var t,s,o,c=[];for(s=0;s<arguments.length;s++){if(t="","object"==typeof arguments[s]){for(o in t+="\n["+s+"] ",arguments[0])r(arguments[0],o)&&(t+=o+": "+arguments[0][o]+", ");t=t.slice(0,-2)}else t=arguments[s];c.push(t)}S(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),i=!1}return a.apply(this,arguments)}),a)}var D,M={};function j(e,a){null!=n.deprecationHandler&&n.deprecationHandler(e,a),M[e]||(S(a),M[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Y(e){var a,i;for(i in e)r(e,i)&&(T(a=e[i])?this[i]=a:this["_"+i]=a);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function E(e,a){var i,n=m({},e);for(i in a)r(a,i)&&(o(e[i])&&o(a[i])?(n[i]={},m(n[i],e[i]),m(n[i],a[i])):null!=a[i]?n[i]=a[i]:delete n[i]);for(i in e)r(e,i)&&!r(a,i)&&o(e[i])&&(n[i]=m({},n[i]));return n}function N(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,D=Object.keys?Object.keys:function(e){var a,i=[];for(a in e)r(e,a)&&i.push(a);return i};var C={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(e,a,i){var n=this._calendar[e]||this._calendar.sameElse;return T(n)?n.call(a,i):n}function R(e,a,i){var n=""+Math.abs(e),t=a-n.length;return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,t)).toString().substr(1)+n}var P=/(\[[^\[]*\])|(\\)?([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,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},I={};function U(e,a,i,n){var t=n;"string"==typeof n&&(t=function(){return this[n]()}),e&&(I[e]=t),a&&(I[a[0]]=function(){return R(t.apply(this,arguments),a[1],a[2])}),i&&(I[i]=function(){return this.localeData().ordinal(t.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $(e){var a,i,n=e.match(P);for(a=0,i=n.length;a<i;a++)I[n[a]]?n[a]=I[n[a]]:n[a]=z(n[a]);return function(a){var t,s="";for(t=0;t<i;t++)s+=T(n[t])?n[t].call(a,e):n[t];return s}}function H(e,a){return e.isValid()?(a=W(a,e.localeData()),F[a]=F[a]||$(a),F[a](e)):e.localeData().invalidDate()}function W(e,a){var i=5;function n(e){return a.longDateFormat(e)||e}for(L.lastIndex=0;i>=0&&L.test(e);)e=e.replace(L,n),L.lastIndex=0,i-=1;return e}var q={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 G(e){var a=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return a||!i?a:(this._longDateFormat[e]=i.match(P).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 B(){return this._invalidDate}var Z="%d",J=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var K={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 X(e,a,i,n){var t=this._relativeTime[i];return T(t)?t(e,a,i,n):t.replace(/%d/i,e)}function ee(e,a){var i=this._relativeTime[e>0?"future":"past"];return T(i)?i(a):i.replace(/%s/i,a)}var ae={};function ie(e,a){var i=e.toLowerCase();ae[i]=ae[i+"s"]=ae[a]=e}function ne(e){return"string"==typeof e?ae[e]||ae[e.toLowerCase()]:void 0}function te(e){var a,i,n={};for(i in e)r(e,i)&&(a=ne(i))&&(n[a]=e[i]);return n}var se={};function oe(e,a){se[e]=a}function re(e){var a,i=[];for(a in e)r(e,a)&&i.push({unit:a,priority:se[a]});return i.sort((function(e,a){return e.priority-a.priority})),i}function ce(e){return e%4==0&&e%100!=0||e%400==0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var a=+e,i=0;return 0!==a&&isFinite(a)&&(i=le(a)),i}function ue(e,a){return function(i){return null!=i?(me(this,e,i),n.updateOffset(this,a),this):de(this,e)}}function de(e,a){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+a]():NaN}function me(e,a,i){e.isValid()&&!isNaN(i)&&("FullYear"===a&&ce(e.year())&&1===e.month()&&29===e.date()?(i=pe(i),e._d["set"+(e._isUTC?"UTC":"")+a](i,e.month(),Xe(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+a](i))}function he(e){return T(this[e=ne(e)])?this[e]():this}function fe(e,a){if("object"==typeof e){var i,n=re(e=te(e));for(i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit])}else if(T(this[e=ne(e)]))return this[e](a);return this}var ve,xe=/\d/,ge=/\d\d/,be=/\d{3}/,ye=/\d{4}/,_e=/[+-]?\d{6}/,we=/\d\d?/,ke=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,Oe=/\d{1,3}/,De=/\d{1,4}/,Me=/[+-]?\d{1,6}/,je=/\d+/,Te=/[+-]?\d+/,Ye=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,Ne=/[+-]?\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 Ae(e,a,i){ve[e]=T(a)?a:function(e,n){return e&&i?i:a}}function Re(e,a){return r(ve,e)?ve[e](a._strict,a._locale):new RegExp(Pe(e))}function Pe(e){return Le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,a,i,n,t){return a||i||n||t})))}function Le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Fe={};function Ie(e,a){var i,n=a;for("string"==typeof e&&(e=[e]),p(a)&&(n=function(e,i){i[a]=pe(e)}),i=0;i<e.length;i++)Fe[e[i]]=n}function Ue(e,a){Ie(e,(function(e,i,n,t){n._w=n._w||{},a(e,n._w,n,t)}))}function ze(e,a,i){null!=a&&r(Fe,e)&&Fe[e](a,i._a,i,e)}var $e,He=0,We=1,qe=2,Ge=3,Ve=4,Be=5,Ze=6,Je=7,Qe=8;function Ke(e,a){return(e%a+a)%a}function Xe(e,a){if(isNaN(e)||isNaN(a))return NaN;var i=Ke(a,12);return e+=(a-i)/12,1===i?ce(e)?29:28:31-i%7%2}$e=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},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),U("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ie("month","M"),oe("month",8),Ae("M",we),Ae("MM",we,ge),Ae("MMM",(function(e,a){return a.monthsShortRegex(e)})),Ae("MMMM",(function(e,a){return a.monthsRegex(e)})),Ie(["M","MM"],(function(e,a){a[We]=pe(e)-1})),Ie(["MMM","MMMM"],(function(e,a,i,n){var t=i._locale.monthsParse(e,n,i._strict);null!=t?a[We]=t:v(i).invalidMonth=e}));var ea="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),aa="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ia=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,na=Ce,ta=Ce;function sa(e,a){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ia).test(a)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function oa(e,a){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ia.test(a)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ra(e,a,i){var n,t,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=h([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===a?-1!==(t=$e.call(this._shortMonthsParse,o))?t:null:-1!==(t=$e.call(this._longMonthsParse,o))?t:null:"MMM"===a?-1!==(t=$e.call(this._shortMonthsParse,o))||-1!==(t=$e.call(this._longMonthsParse,o))?t:null:-1!==(t=$e.call(this._longMonthsParse,o))||-1!==(t=$e.call(this._shortMonthsParse,o))?t:null}function ca(e,a,i){var n,t,s;if(this._monthsParseExact)return ra.call(this,e,a,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(t=h([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(t,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(t,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(t,"")+"|^"+this.monthsShort(t,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===a&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===a&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}}function la(e,a){var i;if(!e.isValid())return e;if("string"==typeof a)if(/^\d+$/.test(a))a=pe(a);else if(!p(a=e.localeData().monthsParse(a)))return e;return i=Math.min(e.date(),Xe(e.year(),a)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](a,i),e}function pa(e){return null!=e?(la(this,e),n.updateOffset(this,!0),this):de(this,"Month")}function ua(){return Xe(this.year(),this.month())}function da(e){return this._monthsParseExact?(r(this,"_monthsRegex")||ha.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=na),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ma(e){return this._monthsParseExact?(r(this,"_monthsRegex")||ha.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=ta),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ha(){function e(e,a){return a.length-e.length}var a,i,n=[],t=[],s=[];for(a=0;a<12;a++)i=h([2e3,a]),n.push(this.monthsShort(i,"")),t.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(n.sort(e),t.sort(e),s.sort(e),a=0;a<12;a++)n[a]=Le(n[a]),t[a]=Le(t[a]);for(a=0;a<24;a++)s[a]=Le(s[a]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function fa(e){return ce(e)?366:365}U("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),ie("year","y"),oe("year",1),Ae("Y",Te),Ae("YY",we,ge),Ae("YYYY",De,ye),Ae("YYYYY",Me,_e),Ae("YYYYYY",Me,_e),Ie(["YYYYY","YYYYYY"],He),Ie("YYYY",(function(e,a){a[He]=2===e.length?n.parseTwoDigitYear(e):pe(e)})),Ie("YY",(function(e,a){a[He]=n.parseTwoDigitYear(e)})),Ie("Y",(function(e,a){a[He]=parseInt(e,10)})),n.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var va=ue("FullYear",!0);function xa(){return ce(this.year())}function ga(e,a,i,n,t,s,o){var r;return e<100&&e>=0?(r=new Date(e+400,a,i,n,t,s,o),isFinite(r.getFullYear())&&r.setFullYear(e)):r=new Date(e,a,i,n,t,s,o),r}function ba(e){var a,i;return e<100&&e>=0?((i=Array.prototype.slice.call(arguments))[0]=e+400,a=new Date(Date.UTC.apply(null,i)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(e)):a=new Date(Date.UTC.apply(null,arguments)),a}function ya(e,a,i){var n=7+a-i;return-(7+ba(e,0,n).getUTCDay()-a)%7+n-1}function _a(e,a,i,n,t){var s,o,r=1+7*(a-1)+(7+i-n)%7+ya(e,n,t);return r<=0?o=fa(s=e-1)+r:r>fa(e)?(s=e+1,o=r-fa(e)):(s=e,o=r),{year:s,dayOfYear:o}}function wa(e,a,i){var n,t,s=ya(e.year(),a,i),o=Math.floor((e.dayOfYear()-s-1)/7)+1;return o<1?n=o+ka(t=e.year()-1,a,i):o>ka(e.year(),a,i)?(n=o-ka(e.year(),a,i),t=e.year()+1):(t=e.year(),n=o),{week:n,year:t}}function ka(e,a,i){var n=ya(e,a,i),t=ya(e+1,a,i);return(fa(e)-n+t)/7}function Sa(e){return wa(e,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),ie("week","w"),ie("isoWeek","W"),oe("week",5),oe("isoWeek",5),Ae("w",we),Ae("ww",we,ge),Ae("W",we),Ae("WW",we,ge),Ue(["w","ww","W","WW"],(function(e,a,i,n){a[n.substr(0,1)]=pe(e)}));var Oa={dow:0,doy:6};function Da(){return this._week.dow}function Ma(){return this._week.doy}function ja(e){var a=this.localeData().week(this);return null==e?a:this.add(7*(e-a),"d")}function Ta(e){var a=wa(this,1,4).week;return null==e?a:this.add(7*(e-a),"d")}function Ya(e,a){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=a.weekdaysParse(e))?e:null:parseInt(e,10)}function Ea(e,a){return"string"==typeof e?a.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Na(e,a){return e.slice(a,7).concat(e.slice(0,a))}U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),ie("day","d"),ie("weekday","e"),ie("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Ae("d",we),Ae("e",we),Ae("E",we),Ae("dd",(function(e,a){return a.weekdaysMinRegex(e)})),Ae("ddd",(function(e,a){return a.weekdaysShortRegex(e)})),Ae("dddd",(function(e,a){return a.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,a,i,n){var t=i._locale.weekdaysParse(e,n,i._strict);null!=t?a.d=t:v(i).invalidWeekday=e})),Ue(["d","e","E"],(function(e,a,i,n){a[n]=pe(e)}));var Ca="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Aa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ra="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Pa=Ce,La=Ce,Fa=Ce;function Ia(e,a){var i=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(a)?"format":"standalone"];return!0===e?Na(i,this._week.dow):e?i[e.day()]:i}function Ua(e){return!0===e?Na(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function za(e){return!0===e?Na(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $a(e,a,i){var n,t,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===a?-1!==(t=$e.call(this._weekdaysParse,o))?t:null:"ddd"===a?-1!==(t=$e.call(this._shortWeekdaysParse,o))?t:null:-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:"dddd"===a?-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._shortWeekdaysParse,o))||-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:"ddd"===a?-1!==(t=$e.call(this._shortWeekdaysParse,o))||-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:-1!==(t=$e.call(this._minWeekdaysParse,o))||-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._shortWeekdaysParse,o))?t:null}function Ha(e,a,i){var n,t,s;if(this._weekdaysParseExact)return $a.call(this,e,a,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(t=h([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(t,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(t,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(t,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(t,"")+"|^"+this.weekdaysShort(t,"")+"|^"+this.weekdaysMin(t,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===a&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===a&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===a&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}}function Wa(e){if(!this.isValid())return null!=e?this:NaN;var a=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ya(e,this.localeData()),this.add(e-a,"d")):a}function qa(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 Ga(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var a=Ea(e,this.localeData());return this.day(this.day()%7?a:a-7)}return this.day()||7}function Va(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Pa),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ba(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=La),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Za(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ja(){function e(e,a){return a.length-e.length}var a,i,n,t,s,o=[],r=[],c=[],l=[];for(a=0;a<7;a++)i=h([2e3,1]).day(a),n=Le(this.weekdaysMin(i,"")),t=Le(this.weekdaysShort(i,"")),s=Le(this.weekdays(i,"")),o.push(n),r.push(t),c.push(s),l.push(n),l.push(t),l.push(s);o.sort(e),r.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qa(){return this.hours()%12||12}function Ka(){return this.hours()||24}function Xa(e,a){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)}))}function ei(e,a){return a._meridiemParse}function ai(e){return"p"===(e+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Qa),U("k",["kk",2],0,Ka),U("hmm",0,0,(function(){return""+Qa.apply(this)+R(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Qa.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Xa("a",!0),Xa("A",!1),ie("hour","h"),oe("hour",13),Ae("a",ei),Ae("A",ei),Ae("H",we),Ae("h",we),Ae("k",we),Ae("HH",we,ge),Ae("hh",we,ge),Ae("kk",we,ge),Ae("hmm",ke),Ae("hmmss",Se),Ae("Hmm",ke),Ae("Hmmss",Se),Ie(["H","HH"],Ge),Ie(["k","kk"],(function(e,a,i){var n=pe(e);a[Ge]=24===n?0:n})),Ie(["a","A"],(function(e,a,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),Ie(["h","hh"],(function(e,a,i){a[Ge]=pe(e),v(i).bigHour=!0})),Ie("hmm",(function(e,a,i){var n=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n)),v(i).bigHour=!0})),Ie("hmmss",(function(e,a,i){var n=e.length-4,t=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n,2)),a[Be]=pe(e.substr(t)),v(i).bigHour=!0})),Ie("Hmm",(function(e,a,i){var n=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n))})),Ie("Hmmss",(function(e,a,i){var n=e.length-4,t=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n,2)),a[Be]=pe(e.substr(t))}));var ii=/[ap]\.?m?\.?/i,ni=ue("Hours",!0);function ti(e,a,i){return e>11?i?"pm":"PM":i?"am":"AM"}var si,oi={calendar:C,longDateFormat:q,invalidDate:V,ordinal:Z,dayOfMonthOrdinalParse:J,relativeTime:K,months:ea,monthsShort:aa,week:Oa,weekdays:Ca,weekdaysMin:Ra,weekdaysShort:Aa,meridiemParse:ii},ri={},ci={};function li(e,a){var i,n=Math.min(e.length,a.length);for(i=0;i<n;i+=1)if(e[i]!==a[i])return i;return n}function pi(e){return e?e.toLowerCase().replace("_","-"):e}function ui(e){for(var a,i,n,t,s=0;s<e.length;){for(a=(t=pi(e[s]).split("-")).length,i=(i=pi(e[s+1]))?i.split("-"):null;a>0;){if(n=di(t.slice(0,a).join("-")))return n;if(i&&i.length>=a&&li(t,i)>=a-1)break;a--}s++}return si}function di(a){var i=null;if(void 0===ri[a]&&e&&e.exports)try{i=si._abbr,commonjsRequire("./locale/"+a),mi(i)}catch(e){ri[a]=null}return ri[a]}function mi(e,a){var i;return e&&((i=l(a)?vi(e):hi(e,a))?si=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),si._abbr}function hi(e,a){if(null!==a){var i,n=oi;if(a.abbr=e,null!=ri[e])j("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=ri[e]._config;else if(null!=a.parentLocale)if(null!=ri[a.parentLocale])n=ri[a.parentLocale]._config;else{if(null==(i=di(a.parentLocale)))return ci[a.parentLocale]||(ci[a.parentLocale]=[]),ci[a.parentLocale].push({name:e,config:a}),null;n=i._config}return ri[e]=new N(E(n,a)),ci[e]&&ci[e].forEach((function(e){hi(e.name,e.config)})),mi(e),ri[e]}return delete ri[e],null}function fi(e,a){if(null!=a){var i,n,t=oi;null!=ri[e]&&null!=ri[e].parentLocale?ri[e].set(E(ri[e]._config,a)):(null!=(n=di(e))&&(t=n._config),a=E(t,a),null==n&&(a.abbr=e),(i=new N(a)).parentLocale=ri[e],ri[e]=i),mi(e)}else null!=ri[e]&&(null!=ri[e].parentLocale?(ri[e]=ri[e].parentLocale,e===mi()&&mi(e)):null!=ri[e]&&delete ri[e]);return ri[e]}function vi(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return si;if(!s(e)){if(a=di(e))return a;e=[e]}return ui(e)}function xi(){return D(ri)}function gi(e){var a,i=e._a;return i&&-2===v(e).overflow&&(a=i[We]<0||i[We]>11?We:i[qe]<1||i[qe]>Xe(i[He],i[We])?qe:i[Ge]<0||i[Ge]>24||24===i[Ge]&&(0!==i[Ve]||0!==i[Be]||0!==i[Ze])?Ge:i[Ve]<0||i[Ve]>59?Ve:i[Be]<0||i[Be]>59?Be:i[Ze]<0||i[Ze]>999?Ze:-1,v(e)._overflowDayOfYear&&(a<He||a>qe)&&(a=qe),v(e)._overflowWeeks&&-1===a&&(a=Je),v(e)._overflowWeekday&&-1===a&&(a=Qe),v(e).overflow=a),e}var bi=/^\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)?)?$/,yi=/^\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)?)?$/,_i=/Z|[+-]\d\d(?::?\d\d)?/,wi=[["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]],ki=[["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/]],Si=/^\/?Date\((-?\d+)/i,Oi=/^(?:(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}))$/,Di={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mi(e){var a,i,n,t,s,o,r=e._i,c=bi.exec(r)||yi.exec(r);if(c){for(v(e).iso=!0,a=0,i=wi.length;a<i;a++)if(wi[a][1].exec(c[1])){t=wi[a][0],n=!1!==wi[a][2];break}if(null==t)return void(e._isValid=!1);if(c[3]){for(a=0,i=ki.length;a<i;a++)if(ki[a][1].exec(c[3])){s=(c[2]||" ")+ki[a][0];break}if(null==s)return void(e._isValid=!1)}if(!n&&null!=s)return void(e._isValid=!1);if(c[4]){if(!_i.exec(c[4]))return void(e._isValid=!1);o="Z"}e._f=t+(s||"")+(o||""),Ii(e)}else e._isValid=!1}function ji(e,a,i,n,t,s){var o=[Ti(e),aa.indexOf(a),parseInt(i,10),parseInt(n,10),parseInt(t,10)];return s&&o.push(parseInt(s,10)),o}function Ti(e){var a=parseInt(e,10);return a<=49?2e3+a:a<=999?1900+a:a}function Yi(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ei(e,a,i){return!e||Aa.indexOf(e)===new Date(a[0],a[1],a[2]).getDay()||(v(i).weekdayMismatch=!0,i._isValid=!1,!1)}function Ni(e,a,i){if(e)return Di[e];if(a)return 0;var n=parseInt(i,10),t=n%100;return(n-t)/100*60+t}function Ci(e){var a,i=Oi.exec(Yi(e._i));if(i){if(a=ji(i[4],i[3],i[2],i[5],i[6],i[7]),!Ei(i[1],a,e))return;e._a=a,e._tzm=Ni(i[8],i[9],i[10]),e._d=ba.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Ai(e){var a=Si.exec(e._i);null===a?(Mi(e),!1===e._isValid&&(delete e._isValid,Ci(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:n.createFromInputFallback(e)))):e._d=new Date(+a[1])}function Ri(e,a,i){return null!=e?e:null!=a?a:i}function Pi(e){var a=new Date(n.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function Li(e){var a,i,n,t,s,o=[];if(!e._d){for(n=Pi(e),e._w&&null==e._a[qe]&&null==e._a[We]&&Fi(e),null!=e._dayOfYear&&(s=Ri(e._a[He],n[He]),(e._dayOfYear>fa(s)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),i=ba(s,0,e._dayOfYear),e._a[We]=i.getUTCMonth(),e._a[qe]=i.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=o[a]=n[a];for(;a<7;a++)e._a[a]=o[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[Ge]&&0===e._a[Ve]&&0===e._a[Be]&&0===e._a[Ze]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?ba:ga).apply(null,o),t=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==t&&(v(e).weekdayMismatch=!0)}}function Fi(e){var a,i,n,t,s,o,r,c,l;null!=(a=e._w).GG||null!=a.W||null!=a.E?(s=1,o=4,i=Ri(a.GG,e._a[He],wa(Vi(),1,4).year),n=Ri(a.W,1),((t=Ri(a.E,1))<1||t>7)&&(c=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,l=wa(Vi(),s,o),i=Ri(a.gg,e._a[He],l.year),n=Ri(a.w,l.week),null!=a.d?((t=a.d)<0||t>6)&&(c=!0):null!=a.e?(t=a.e+s,(a.e<0||a.e>6)&&(c=!0)):t=s),n<1||n>ka(i,s,o)?v(e)._overflowWeeks=!0:null!=c?v(e)._overflowWeekday=!0:(r=_a(i,n,t,s,o),e._a[He]=r.year,e._dayOfYear=r.dayOfYear)}function Ii(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],v(e).empty=!0;var a,i,t,s,o,r,c=""+e._i,l=c.length,p=0;for(t=W(e._f,e._locale).match(P)||[],a=0;a<t.length;a++)s=t[a],(i=(c.match(Re(s,e))||[])[0])&&((o=c.substr(0,c.indexOf(i))).length>0&&v(e).unusedInput.push(o),c=c.slice(c.indexOf(i)+i.length),p+=i.length),I[s]?(i?v(e).empty=!1:v(e).unusedTokens.push(s),ze(s,i,e)):e._strict&&!i&&v(e).unusedTokens.push(s);v(e).charsLeftOver=l-p,c.length>0&&v(e).unusedInput.push(c),e._a[Ge]<=12&&!0===v(e).bigHour&&e._a[Ge]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ge]=Ui(e._locale,e._a[Ge],e._meridiem),null!==(r=v(e).era)&&(e._a[He]=e._locale.erasConvertYear(r,e._a[He])),Li(e),gi(e)}else Ci(e);else Mi(e)}function Ui(e,a,i){var n;return null==i?a:null!=e.meridiemHour?e.meridiemHour(a,i):null!=e.isPM?((n=e.isPM(i))&&a<12&&(a+=12),n||12!==a||(a=0),a):a}function zi(e){var a,i,n,t,s,o,r=!1;if(0===e._f.length)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(t=0;t<e._f.length;t++)s=0,o=!1,a=_({},e),null!=e._useUTC&&(a._useUTC=e._useUTC),a._f=e._f[t],Ii(a),x(a)&&(o=!0),s+=v(a).charsLeftOver,s+=10*v(a).unusedTokens.length,v(a).score=s,r?s<n&&(n=s,i=a):(null==n||s<n||o)&&(n=s,i=a,o&&(r=!0));m(e,i||a)}function $i(e){if(!e._d){var a=te(e._i),i=void 0===a.day?a.date:a.day;e._a=d([a.year,a.month,i,a.hour,a.minute,a.second,a.millisecond],(function(e){return e&&parseInt(e,10)})),Li(e)}}function Hi(e){var a=new w(gi(Wi(e)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Wi(e){var a=e._i,i=e._f;return e._locale=e._locale||vi(e._l),null===a||void 0===i&&""===a?g({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),k(a)?new w(gi(a)):(u(a)?e._d=a:s(i)?zi(e):i?Ii(e):qi(e),x(e)||(e._d=null),e))}function qi(e){var a=e._i;l(a)?e._d=new Date(n.now()):u(a)?e._d=new Date(a.valueOf()):"string"==typeof a?Ai(e):s(a)?(e._a=d(a.slice(0),(function(e){return parseInt(e,10)})),Li(e)):o(a)?$i(e):p(a)?e._d=new Date(a):n.createFromInputFallback(e)}function Gi(e,a,i,n,t){var r={};return!0!==a&&!1!==a||(n=a,a=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(o(e)&&c(e)||s(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=t,r._l=i,r._i=e,r._f=a,r._strict=n,Hi(r)}function Vi(e,a,i,n){return Gi(e,a,i,n,!1)}n.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var Bi=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Vi.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Zi=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Vi.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Ji(e,a){var i,n;if(1===a.length&&s(a[0])&&(a=a[0]),!a.length)return Vi();for(i=a[0],n=1;n<a.length;++n)a[n].isValid()&&!a[n][e](i)||(i=a[n]);return i}function Qi(){return Ji("isBefore",[].slice.call(arguments,0))}function Ki(){return Ji("isAfter",[].slice.call(arguments,0))}var Xi=function(){return Date.now?Date.now():+new Date},en=["year","quarter","month","week","day","hour","minute","second","millisecond"];function an(e){var a,i,n=!1;for(a in e)if(r(e,a)&&(-1===$e.call(en,a)||null!=e[a]&&isNaN(e[a])))return!1;for(i=0;i<en.length;++i)if(e[en[i]]){if(n)return!1;parseFloat(e[en[i]])!==pe(e[en[i]])&&(n=!0)}return!0}function nn(){return this._isValid}function tn(){return Mn(NaN)}function sn(e){var a=te(e),i=a.year||0,n=a.quarter||0,t=a.month||0,s=a.week||a.isoWeek||0,o=a.day||0,r=a.hour||0,c=a.minute||0,l=a.second||0,p=a.millisecond||0;this._isValid=an(a),this._milliseconds=+p+1e3*l+6e4*c+1e3*r*60*60,this._days=+o+7*s,this._months=+t+3*n+12*i,this._data={},this._locale=vi(),this._bubble()}function on(e){return e instanceof sn}function rn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cn(e,a,i){var n,t=Math.min(e.length,a.length),s=Math.abs(e.length-a.length),o=0;for(n=0;n<t;n++)(i&&e[n]!==a[n]||!i&&pe(e[n])!==pe(a[n]))&&o++;return o+s}function ln(e,a){U(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+R(~~(e/60),2)+a+R(~~e%60,2)}))}ln("Z",":"),ln("ZZ",""),Ae("Z",Ee),Ae("ZZ",Ee),Ie(["Z","ZZ"],(function(e,a,i){i._useUTC=!0,i._tzm=un(Ee,e)}));var pn=/([\+\-]|\d\d)/gi;function un(e,a){var i,n,t=(a||"").match(e);return null===t?null:0===(n=60*(i=((t[t.length-1]||[])+"").match(pn)||["-",0,0])[1]+pe(i[2]))?0:"+"===i[0]?n:-n}function dn(e,a){var i,t;return a._isUTC?(i=a.clone(),t=(k(e)||u(e)?e.valueOf():Vi(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+t),n.updateOffset(i,!1),i):Vi(e).local()}function mn(e){return-Math.round(e._d.getTimezoneOffset())}function hn(e,a,i){var t,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=un(Ee,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&a&&(t=mn(this)),this._offset=e,this._isUTC=!0,null!=t&&this.add(t,"m"),s!==e&&(!a||this._changeInProgress?Nn(this,Mn(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:mn(this)}function fn(e,a){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}function vn(e){return this.utcOffset(0,e)}function xn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mn(this),"m")),this}function gn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=un(Ye,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function bn(e){return!!this.isValid()&&(e=e?Vi(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function yn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _n(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,a={};return _(a,this),(a=Wi(a))._a?(e=a._isUTC?h(a._a):Vi(a._a),this._isDSTShifted=this.isValid()&&cn(a._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wn(){return!!this.isValid()&&!this._isUTC}function kn(){return!!this.isValid()&&this._isUTC}function Sn(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var On=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Mn(e,a){var i,n,t,s=e,o=null;return on(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:p(e)||!isNaN(+e)?(s={},a?s[a]=+e:s.milliseconds=+e):(o=On.exec(e))?(i="-"===o[1]?-1:1,s={y:0,d:pe(o[qe])*i,h:pe(o[Ge])*i,m:pe(o[Ve])*i,s:pe(o[Be])*i,ms:pe(rn(1e3*o[Ze]))*i}):(o=Dn.exec(e))?(i="-"===o[1]?-1:1,s={y:jn(o[2],i),M:jn(o[3],i),w:jn(o[4],i),d:jn(o[5],i),h:jn(o[6],i),m:jn(o[7],i),s:jn(o[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(t=Yn(Vi(s.from),Vi(s.to)),(s={}).ms=t.milliseconds,s.M=t.months),n=new sn(s),on(e)&&r(e,"_locale")&&(n._locale=e._locale),on(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function jn(e,a){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*a}function Tn(e,a){var i={};return i.months=a.month()-e.month()+12*(a.year()-e.year()),e.clone().add(i.months,"M").isAfter(a)&&--i.months,i.milliseconds=+a-+e.clone().add(i.months,"M"),i}function Yn(e,a){var i;return e.isValid()&&a.isValid()?(a=dn(a,e),e.isBefore(a)?i=Tn(e,a):((i=Tn(a,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function En(e,a){return function(i,n){var t;return null===n||isNaN(+n)||(j(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."),t=i,i=n,n=t),Nn(this,Mn(i,n),e),this}}function Nn(e,a,i,t){var s=a._milliseconds,o=rn(a._days),r=rn(a._months);e.isValid()&&(t=null==t||t,r&&la(e,de(e,"Month")+r*i),o&&me(e,"Date",de(e,"Date")+o*i),s&&e._d.setTime(e._d.valueOf()+s*i),t&&n.updateOffset(e,o||r))}Mn.fn=sn.prototype,Mn.invalid=tn;var Cn=En(1,"add"),An=En(-1,"subtract");function Rn(e){return"string"==typeof e||e instanceof String}function Pn(e){return k(e)||u(e)||Rn(e)||p(e)||Fn(e)||Ln(e)||null==e}function Ln(e){var a,i,n=o(e)&&!c(e),t=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(a=0;a<s.length;a+=1)i=s[a],t=t||r(e,i);return n&&t}function Fn(e){var a=s(e),i=!1;return a&&(i=0===e.filter((function(a){return!p(a)&&Rn(e)})).length),a&&i}function In(e){var a,i,n=o(e)&&!c(e),t=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(a=0;a<s.length;a+=1)i=s[a],t=t||r(e,i);return n&&t}function Un(e,a){var i=e.diff(a,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function zn(e,a){1===arguments.length&&(arguments[0]?Pn(arguments[0])?(e=arguments[0],a=void 0):In(arguments[0])&&(a=arguments[0],e=void 0):(e=void 0,a=void 0));var i=e||Vi(),t=dn(i,this).startOf("day"),s=n.calendarFormat(this,t)||"sameElse",o=a&&(T(a[s])?a[s].call(this,i):a[s]);return this.format(o||this.localeData().calendar(s,this,Vi(i)))}function $n(){return new w(this)}function Hn(e,a){var i=k(e)?e:Vi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(a).valueOf())}function Wn(e,a){var i=k(e)?e:Vi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(a).valueOf()<i.valueOf())}function qn(e,a,i,n){var t=k(e)?e:Vi(e),s=k(a)?a:Vi(a);return!!(this.isValid()&&t.isValid()&&s.isValid())&&("("===(n=n||"()")[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(")"===n[1]?this.isBefore(s,i):!this.isAfter(s,i))}function Gn(e,a){var i,n=k(e)?e:Vi(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(a).valueOf()<=i&&i<=this.clone().endOf(a).valueOf()))}function Vn(e,a){return this.isSame(e,a)||this.isAfter(e,a)}function Bn(e,a){return this.isSame(e,a)||this.isBefore(e,a)}function Zn(e,a,i){var n,t,s;if(!this.isValid())return NaN;if(!(n=dn(e,this)).isValid())return NaN;switch(t=6e4*(n.utcOffset()-this.utcOffset()),a=ne(a)){case"year":s=Jn(this,n)/12;break;case"month":s=Jn(this,n);break;case"quarter":s=Jn(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-t)/864e5;break;case"week":s=(this-n-t)/6048e5;break;default:s=this-n}return i?s:le(s)}function Jn(e,a){if(e.date()<a.date())return-Jn(a,e);var i=12*(a.year()-e.year())+(a.month()-e.month()),n=e.clone().add(i,"months");return-(i+(a-n<0?(a-n)/(n-e.clone().add(i-1,"months")):(a-n)/(e.clone().add(i+1,"months")-n)))||0}function Qn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Kn(e){if(!this.isValid())return null;var a=!0!==e,i=a?this.clone().utc():this;return i.year()<0||i.year()>9999?H(i,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(i,"Z")):H(i,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Xn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,a,i,n,t="moment",s="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+t+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",n=s+'[")]',this.format(e+a+i+n)}function et(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var a=H(this,e);return this.localeData().postformat(a)}function at(e,a){return this.isValid()&&(k(e)&&e.isValid()||Vi(e).isValid())?Mn({to:this,from:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function it(e){return this.from(Vi(),e)}function nt(e,a){return this.isValid()&&(k(e)&&e.isValid()||Vi(e).isValid())?Mn({from:this,to:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function tt(e){return this.to(Vi(),e)}function st(e){var a;return void 0===e?this._locale._abbr:(null!=(a=vi(e))&&(this._locale=a),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ot=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function rt(){return this._locale}var ct=1e3,lt=60*ct,pt=60*lt,ut=3506328*pt;function dt(e,a){return(e%a+a)%a}function mt(e,a,i){return e<100&&e>=0?new Date(e+400,a,i)-ut:new Date(e,a,i).valueOf()}function ht(e,a,i){return e<100&&e>=0?Date.UTC(e+400,a,i)-ut:Date.UTC(e,a,i)}function ft(e){var a,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ht:mt,e){case"year":a=i(this.year(),0,1);break;case"quarter":a=i(this.year(),this.month()-this.month()%3,1);break;case"month":a=i(this.year(),this.month(),1);break;case"week":a=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=i(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=dt(a+(this._isUTC?0:this.utcOffset()*lt),pt);break;case"minute":a=this._d.valueOf(),a-=dt(a,lt);break;case"second":a=this._d.valueOf(),a-=dt(a,ct)}return this._d.setTime(a),n.updateOffset(this,!0),this}function vt(e){var a,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ht:mt,e){case"year":a=i(this.year()+1,0,1)-1;break;case"quarter":a=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=i(this.year(),this.month()+1,1)-1;break;case"week":a=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=pt-dt(a+(this._isUTC?0:this.utcOffset()*lt),pt)-1;break;case"minute":a=this._d.valueOf(),a+=lt-dt(a,lt)-1;break;case"second":a=this._d.valueOf(),a+=ct-dt(a,ct)-1}return this._d.setTime(a),n.updateOffset(this,!0),this}function xt(){return this._d.valueOf()-6e4*(this._offset||0)}function gt(){return Math.floor(this.valueOf()/1e3)}function bt(){return new Date(this.valueOf())}function yt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _t(){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 wt(){return this.isValid()?this.toISOString():null}function kt(){return x(this)}function St(){return m({},v(this))}function Ot(){return v(this).overflow}function Dt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Mt(e,a){var i,t,s,o=this._eras||vi("en")._eras;for(i=0,t=o.length;i<t;++i)switch("string"==typeof o[i].since&&(s=n(o[i].since).startOf("day"),o[i].since=s.valueOf()),typeof o[i].until){case"undefined":o[i].until=1/0;break;case"string":s=n(o[i].until).startOf("day").valueOf(),o[i].until=s.valueOf()}return o}function jt(e,a,i){var n,t,s,o,r,c=this.eras();for(e=e.toUpperCase(),n=0,t=c.length;n<t;++n)if(s=c[n].name.toUpperCase(),o=c[n].abbr.toUpperCase(),r=c[n].narrow.toUpperCase(),i)switch(a){case"N":case"NN":case"NNN":if(o===e)return c[n];break;case"NNNN":if(s===e)return c[n];break;case"NNNNN":if(r===e)return c[n]}else if([s,o,r].indexOf(e)>=0)return c[n]}function Tt(e,a){var i=e.since<=e.until?1:-1;return void 0===a?n(e.since).year():n(e.since).year()+(a-e.offset)*i}function Yt(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].name;if(n[e].until<=i&&i<=n[e].since)return n[e].name}return""}function Et(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].narrow;if(n[e].until<=i&&i<=n[e].since)return n[e].narrow}return""}function Nt(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].abbr;if(n[e].until<=i&&i<=n[e].since)return n[e].abbr}return""}function Ct(){var e,a,i,t,s=this.localeData().eras();for(e=0,a=s.length;e<a;++e)if(i=s[e].since<=s[e].until?1:-1,t=this.clone().startOf("day").valueOf(),s[e].since<=t&&t<=s[e].until||s[e].until<=t&&t<=s[e].since)return(this.year()-n(s[e].since).year())*i+s[e].offset;return this.year()}function At(e){return r(this,"_erasNameRegex")||zt.call(this),e?this._erasNameRegex:this._erasRegex}function Rt(e){return r(this,"_erasAbbrRegex")||zt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Pt(e){return r(this,"_erasNarrowRegex")||zt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Lt(e,a){return a.erasAbbrRegex(e)}function Ft(e,a){return a.erasNameRegex(e)}function It(e,a){return a.erasNarrowRegex(e)}function Ut(e,a){return a._eraYearOrdinalRegex||je}function zt(){var e,a,i=[],n=[],t=[],s=[],o=this.eras();for(e=0,a=o.length;e<a;++e)n.push(Le(o[e].name)),i.push(Le(o[e].abbr)),t.push(Le(o[e].narrow)),s.push(Le(o[e].name)),s.push(Le(o[e].abbr)),s.push(Le(o[e].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}function $t(e,a){U(0,[e,e.length],0,a)}function Ht(e){return Zt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wt(e){return Zt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qt(){return ka(this.year(),1,4)}function Gt(){return ka(this.isoWeekYear(),1,4)}function Vt(){var e=this.localeData()._week;return ka(this.year(),e.dow,e.doy)}function Bt(){var e=this.localeData()._week;return ka(this.weekYear(),e.dow,e.doy)}function Zt(e,a,i,n,t){var s;return null==e?wa(this,n,t).year:(a>(s=ka(e,n,t))&&(a=s),Jt.call(this,e,a,i,n,t))}function Jt(e,a,i,n,t){var s=_a(e,a,i,n,t),o=ba(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Qt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Ae("N",Lt),Ae("NN",Lt),Ae("NNN",Lt),Ae("NNNN",Ft),Ae("NNNNN",It),Ie(["N","NN","NNN","NNNN","NNNNN"],(function(e,a,i,n){var t=i._locale.erasParse(e,n,i._strict);t?v(i).era=t:v(i).invalidEra=e})),Ae("y",je),Ae("yy",je),Ae("yyy",je),Ae("yyyy",je),Ae("yo",Ut),Ie(["y","yy","yyy","yyyy"],He),Ie(["yo"],(function(e,a,i,n){var t;i._locale._eraYearOrdinalRegex&&(t=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?a[He]=i._locale.eraYearOrdinalParse(e,t):a[He]=parseInt(e,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),$t("gggg","weekYear"),$t("ggggg","weekYear"),$t("GGGG","isoWeekYear"),$t("GGGGG","isoWeekYear"),ie("weekYear","gg"),ie("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Ae("G",Te),Ae("g",Te),Ae("GG",we,ge),Ae("gg",we,ge),Ae("GGGG",De,ye),Ae("gggg",De,ye),Ae("GGGGG",Me,_e),Ae("ggggg",Me,_e),Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,a,i,n){a[n.substr(0,2)]=pe(e)})),Ue(["gg","GG"],(function(e,a,i,t){a[t]=n.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),ie("quarter","Q"),oe("quarter",7),Ae("Q",xe),Ie("Q",(function(e,a){a[We]=3*(pe(e)-1)})),U("D",["DD",2],"Do","date"),ie("date","D"),oe("date",9),Ae("D",we),Ae("DD",we,ge),Ae("Do",(function(e,a){return e?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient})),Ie(["D","DD"],qe),Ie("Do",(function(e,a){a[qe]=pe(e.match(we)[0])}));var Kt=ue("Date",!0);function Xt(e){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?a:this.add(e-a,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),ie("dayOfYear","DDD"),oe("dayOfYear",4),Ae("DDD",Oe),Ae("DDDD",be),Ie(["DDD","DDDD"],(function(e,a,i){i._dayOfYear=pe(e)})),U("m",["mm",2],0,"minute"),ie("minute","m"),oe("minute",14),Ae("m",we),Ae("mm",we,ge),Ie(["m","mm"],Ve);var es=ue("Minutes",!1);U("s",["ss",2],0,"second"),ie("second","s"),oe("second",15),Ae("s",we),Ae("ss",we,ge),Ie(["s","ss"],Be);var as,is,ns=ue("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ie("millisecond","ms"),oe("millisecond",16),Ae("S",Oe,xe),Ae("SS",Oe,ge),Ae("SSS",Oe,be),as="SSSS";as.length<=9;as+="S")Ae(as,je);function ts(e,a){a[Ze]=pe(1e3*("0."+e))}for(as="S";as.length<=9;as+="S")Ie(as,ts);function ss(){return this._isUTC?"UTC":""}function os(){return this._isUTC?"Coordinated Universal Time":""}is=ue("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var rs=w.prototype;function cs(e){return Vi(1e3*e)}function ls(){return Vi.apply(null,arguments).parseZone()}function ps(e){return e}rs.add=Cn,rs.calendar=zn,rs.clone=$n,rs.diff=Zn,rs.endOf=vt,rs.format=et,rs.from=at,rs.fromNow=it,rs.to=nt,rs.toNow=tt,rs.get=he,rs.invalidAt=Ot,rs.isAfter=Hn,rs.isBefore=Wn,rs.isBetween=qn,rs.isSame=Gn,rs.isSameOrAfter=Vn,rs.isSameOrBefore=Bn,rs.isValid=kt,rs.lang=ot,rs.locale=st,rs.localeData=rt,rs.max=Zi,rs.min=Bi,rs.parsingFlags=St,rs.set=fe,rs.startOf=ft,rs.subtract=An,rs.toArray=yt,rs.toObject=_t,rs.toDate=bt,rs.toISOString=Kn,rs.inspect=Xn,"undefined"!=typeof Symbol&&null!=Symbol.for&&(rs[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),rs.toJSON=wt,rs.toString=Qn,rs.unix=gt,rs.valueOf=xt,rs.creationData=Dt,rs.eraName=Yt,rs.eraNarrow=Et,rs.eraAbbr=Nt,rs.eraYear=Ct,rs.year=va,rs.isLeapYear=xa,rs.weekYear=Ht,rs.isoWeekYear=Wt,rs.quarter=rs.quarters=Qt,rs.month=pa,rs.daysInMonth=ua,rs.week=rs.weeks=ja,rs.isoWeek=rs.isoWeeks=Ta,rs.weeksInYear=Vt,rs.weeksInWeekYear=Bt,rs.isoWeeksInYear=qt,rs.isoWeeksInISOWeekYear=Gt,rs.date=Kt,rs.day=rs.days=Wa,rs.weekday=qa,rs.isoWeekday=Ga,rs.dayOfYear=Xt,rs.hour=rs.hours=ni,rs.minute=rs.minutes=es,rs.second=rs.seconds=ns,rs.millisecond=rs.milliseconds=is,rs.utcOffset=hn,rs.utc=vn,rs.local=xn,rs.parseZone=gn,rs.hasAlignedHourOffset=bn,rs.isDST=yn,rs.isLocal=wn,rs.isUtcOffset=kn,rs.isUtc=Sn,rs.isUTC=Sn,rs.zoneAbbr=ss,rs.zoneName=os,rs.dates=O("dates accessor is deprecated. Use date instead.",Kt),rs.months=O("months accessor is deprecated. Use month instead",pa),rs.years=O("years accessor is deprecated. Use year instead",va),rs.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fn),rs.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_n);var us=N.prototype;function ds(e,a,i,n){var t=vi(),s=h().set(n,a);return t[i](s,e)}function ms(e,a,i){if(p(e)&&(a=e,e=void 0),e=e||"",null!=a)return ds(e,a,i,"month");var n,t=[];for(n=0;n<12;n++)t[n]=ds(e,n,i,"month");return t}function hs(e,a,i,n){"boolean"==typeof e?(p(a)&&(i=a,a=void 0),a=a||""):(i=a=e,e=!1,p(a)&&(i=a,a=void 0),a=a||"");var t,s=vi(),o=e?s._week.dow:0,r=[];if(null!=i)return ds(a,(i+o)%7,n,"day");for(t=0;t<7;t++)r[t]=ds(a,(t+o)%7,n,"day");return r}function fs(e,a){return ms(e,a,"months")}function vs(e,a){return ms(e,a,"monthsShort")}function xs(e,a,i){return hs(e,a,i,"weekdays")}function gs(e,a,i){return hs(e,a,i,"weekdaysShort")}function bs(e,a,i){return hs(e,a,i,"weekdaysMin")}us.calendar=A,us.longDateFormat=G,us.invalidDate=B,us.ordinal=Q,us.preparse=ps,us.postformat=ps,us.relativeTime=X,us.pastFuture=ee,us.set=Y,us.eras=Mt,us.erasParse=jt,us.erasConvertYear=Tt,us.erasAbbrRegex=Rt,us.erasNameRegex=At,us.erasNarrowRegex=Pt,us.months=sa,us.monthsShort=oa,us.monthsParse=ca,us.monthsRegex=ma,us.monthsShortRegex=da,us.week=Sa,us.firstDayOfYear=Ma,us.firstDayOfWeek=Da,us.weekdays=Ia,us.weekdaysMin=za,us.weekdaysShort=Ua,us.weekdaysParse=Ha,us.weekdaysRegex=Va,us.weekdaysShortRegex=Ba,us.weekdaysMinRegex=Za,us.isPM=ai,us.meridiem=ti,mi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var a=e%10;return e+(1===pe(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}}),n.lang=O("moment.lang is deprecated. Use moment.locale instead.",mi),n.langData=O("moment.langData is deprecated. Use moment.localeData instead.",vi);var ys=Math.abs;function _s(){var e=this._data;return this._milliseconds=ys(this._milliseconds),this._days=ys(this._days),this._months=ys(this._months),e.milliseconds=ys(e.milliseconds),e.seconds=ys(e.seconds),e.minutes=ys(e.minutes),e.hours=ys(e.hours),e.months=ys(e.months),e.years=ys(e.years),this}function ws(e,a,i,n){var t=Mn(a,i);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function ks(e,a){return ws(this,e,a,1)}function Ss(e,a){return ws(this,e,a,-1)}function Os(e){return e<0?Math.floor(e):Math.ceil(e)}function Ds(){var e,a,i,n,t,s=this._milliseconds,o=this._days,r=this._months,c=this._data;return s>=0&&o>=0&&r>=0||s<=0&&o<=0&&r<=0||(s+=864e5*Os(js(r)+o),o=0,r=0),c.milliseconds=s%1e3,e=le(s/1e3),c.seconds=e%60,a=le(e/60),c.minutes=a%60,i=le(a/60),c.hours=i%24,o+=le(i/24),r+=t=le(Ms(o)),o-=Os(js(t)),n=le(r/12),r%=12,c.days=o,c.months=r,c.years=n,this}function Ms(e){return 4800*e/146097}function js(e){return 146097*e/4800}function Ts(e){if(!this.isValid())return NaN;var a,i,n=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(a=this._days+n/864e5,i=this._months+Ms(a),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(a=this._days+Math.round(js(this._months)),e){case"week":return a/7+n/6048e5;case"day":return a+n/864e5;case"hour":return 24*a+n/36e5;case"minute":return 1440*a+n/6e4;case"second":return 86400*a+n/1e3;case"millisecond":return Math.floor(864e5*a)+n;default:throw new Error("Unknown unit "+e)}}function Ys(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN}function Es(e){return function(){return this.as(e)}}var Ns=Es("ms"),Cs=Es("s"),As=Es("m"),Rs=Es("h"),Ps=Es("d"),Ls=Es("w"),Fs=Es("M"),Is=Es("Q"),Us=Es("y");function zs(){return Mn(this)}function $s(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Hs(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ws=Hs("milliseconds"),qs=Hs("seconds"),Gs=Hs("minutes"),Vs=Hs("hours"),Bs=Hs("days"),Zs=Hs("months"),Js=Hs("years");function Qs(){return le(this.days()/7)}var Ks=Math.round,Xs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function eo(e,a,i,n,t){return t.relativeTime(a||1,!!i,e,n)}function ao(e,a,i,n){var t=Mn(e).abs(),s=Ks(t.as("s")),o=Ks(t.as("m")),r=Ks(t.as("h")),c=Ks(t.as("d")),l=Ks(t.as("M")),p=Ks(t.as("w")),u=Ks(t.as("y")),d=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||o<=1&&["m"]||o<i.m&&["mm",o]||r<=1&&["h"]||r<i.h&&["hh",r]||c<=1&&["d"]||c<i.d&&["dd",c];return null!=i.w&&(d=d||p<=1&&["w"]||p<i.w&&["ww",p]),(d=d||l<=1&&["M"]||l<i.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=a,d[3]=+e>0,d[4]=n,eo.apply(null,d)}function io(e){return void 0===e?Ks:"function"==typeof e&&(Ks=e,!0)}function no(e,a){return void 0!==Xs[e]&&(void 0===a?Xs[e]:(Xs[e]=a,"s"===e&&(Xs.ss=a-1),!0))}function to(e,a){if(!this.isValid())return this.localeData().invalidDate();var i,n,t=!1,s=Xs;return"object"==typeof e&&(a=e,e=!1),"boolean"==typeof e&&(t=e),"object"==typeof a&&(s=Object.assign({},Xs,a),null!=a.s&&null==a.ss&&(s.ss=a.s-1)),n=ao(this,!t,s,i=this.localeData()),t&&(n=i.pastFuture(+this,n)),i.postformat(n)}var so=Math.abs;function oo(e){return(e>0)-(e<0)||+e}function ro(){if(!this.isValid())return this.localeData().invalidDate();var e,a,i,n,t,s,o,r,c=so(this._milliseconds)/1e3,l=so(this._days),p=so(this._months),u=this.asSeconds();return u?(e=le(c/60),a=le(e/60),c%=60,e%=60,i=le(p/12),p%=12,n=c?c.toFixed(3).replace(/\.?0+$/,""):"",t=u<0?"-":"",s=oo(this._months)!==oo(u)?"-":"",o=oo(this._days)!==oo(u)?"-":"",r=oo(this._milliseconds)!==oo(u)?"-":"",t+"P"+(i?s+i+"Y":"")+(p?s+p+"M":"")+(l?o+l+"D":"")+(a||e||c?"T":"")+(a?r+a+"H":"")+(e?r+e+"M":"")+(c?r+n+"S":"")):"P0D"}var co=sn.prototype;return co.isValid=nn,co.abs=_s,co.add=ks,co.subtract=Ss,co.as=Ts,co.asMilliseconds=Ns,co.asSeconds=Cs,co.asMinutes=As,co.asHours=Rs,co.asDays=Ps,co.asWeeks=Ls,co.asMonths=Fs,co.asQuarters=Is,co.asYears=Us,co.valueOf=Ys,co._bubble=Ds,co.clone=zs,co.get=$s,co.milliseconds=Ws,co.seconds=qs,co.minutes=Gs,co.hours=Vs,co.days=Bs,co.weeks=Qs,co.months=Zs,co.years=Js,co.humanize=to,co.toISOString=ro,co.toString=ro,co.toJSON=ro,co.locale=st,co.localeData=rt,co.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ro),co.lang=ot,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Ae("x",Te),Ae("X",Ne),Ie("X",(function(e,a,i){i._d=new Date(1e3*parseFloat(e))})),Ie("x",(function(e,a,i){i._d=new Date(pe(e))})),
1
+ import e from"fs";import a from"path";import express from"express";import crypto from"crypto";import passport from"passport";import{Strategy}from"passport-local";import buffer from"buffer";import tty from"tty";import util from"util";import net from"net";import url from"url";import events from"events";import i from"os";import o from"assert";import sequelize from"sequelize";import AWS from"aws-sdk";var version="1.0.21";class Global{static mount(){global.APP_DIR=process.cwd(),console.log("Set global variable APP_DIR")}}function log$2(e){console.log(`[dotenv][DEBUG] ${e}`)}const NEWLINE="\n",RE_INI_KEY_VAL=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,RE_NEWLINES=/\\n/g,NEWLINES_MATCH=/\n|\r|\r\n/;function parse$4(e,a){const i=Boolean(a&&a.debug),n={};return e.toString().split(NEWLINES_MATCH).forEach((function(e,a){const t=e.match(RE_INI_KEY_VAL);if(null!=t){const e=t[1];let a=t[2]||"";const i=a.length-1,s='"'===a[0]&&'"'===a[i];"'"===a[0]&&"'"===a[i]||s?(a=a.substring(1,i),s&&(a=a.replace(RE_NEWLINES,NEWLINE))):a=a.trim(),n[e]=a}else i&&log$2(`did not match key and value when parsing line ${a+1}: ${e}`)})),n}function config(i){let n=a.resolve(process.cwd(),".env"),t="utf8",s=!1;i&&(null!=i.path&&(n=i.path),null!=i.encoding&&(t=i.encoding),null!=i.debug&&(s=!0));try{const a=parse$4(e.readFileSync(n,{encoding:t}),{debug:s});return Object.keys(a).forEach((function(e){Object.prototype.hasOwnProperty.call(process.env,e)?s&&log$2(`"${e}" is already defined in \`process.env\` and will not be overwritten`):process.env[e]=a[e]})),{parsed:a}}catch(e){return{error:e}}}var config_1=config,parse_1$2=parse$4,main={config:config_1,parse:parse_1$2};class Environment{static mount(){if(global.loadedEnv)return void console.log("env is already loaded, so do nothing");const a=this.loadOptions();if(!a.env_path)return;const i=main.parse(e.readFileSync(a.env_path));for(let e in i)console.log(`Read environment variable ${e}`),process.env[e]=i[e];global.loadedEnv=!0}static loadOptions(){const a={env_path:void 0},i=`${process.cwd()}/config/config`;return e.existsSync(`${i}.js`)?Object.assign(a,require(i).default||require(i)):a}}function cache_busting(i,n){const t=`${a.join(process.cwd(),"public")}/${i.replace(/^\//,"")}`;if(!e.existsSync(t))return i;const s=new Date(e.statSync(t).mtime).getTime();return`${n}/${i.replace(/^\//,"")}?${s}`}var html=Object.freeze({__proto__:null,cache_busting:cache_busting});function json_stringify(e,a=0){return JSON.stringify(e,null,a)}function json_parse(e){return JSON.parse(e)}var object=Object.freeze({__proto__:null,json_stringify:json_stringify,json_parse:json_parse}),isAsyncFunction=e=>e&&e.constructor&&e.constructor===Object.getPrototypeOf((async function(){})).constructor,isString=e=>"string"==typeof e&&""!==e,isObject=e=>null!=e&&"object"==typeof e&&!1===Array.isArray(e),isArray=e=>"[object Array]"===Object.prototype.toString.call(e),utils={isAsyncFunction:isAsyncFunction,isString:isString,isObject:isObject,isArray:isArray},index$5=Object.freeze({__proto__:null,default:utils});function replace(e,a,i){return e.replace(a,i)}function split(e,a){return utils.isString(e)?(utils.isString(a)||(a=","),e.split(a)):[]}var string=Object.freeze({__proto__:null,replace:replace,split:split});function eq(e,a){return e===a}function eqw(e,a){return e==a}function neq(e,a){return e!==a}function neqw(e,a){return e!=a}function lt(e,a){return e<a}function lte(e,a){return e<=a}function gt(e,a){return e>a}function gte(e,a){return e>=a}function not(e){return!e}function ifx(e,a,i){return utils.isObject(i)&&"ifx"===i.name&&i.hasOwnProperty("hash")&&(i=""),e?a:i}function empty(e){return"string"==typeof e?e=e.replace(/^[\s ]+|[\s ]+$/g,""):Array.isArray(e)&&0===e.length&&(e=null),!e}function not_empty(e){return"string"==typeof e?e=e.replace(/^[\s ]+|[\s ]+$/g,""):Array.isArray(e)&&0===e.length&&(e=null),!!e}function count(e){return!!Array.isArray(e)&&e.length}function and(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(!a)return!1;return!0}function or(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(a)return!0;return!1}function coalesce(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(a)return a;return e.pop()}function includes(e,a,i=!0){if(!Array.isArray(e)||0===e.length)return!1;for(let n of e)if(i&&n===a||!i&&n==a)return!0;return!1}var comparison=Object.freeze({__proto__:null,eq:eq,eqw:eqw,neq:neq,neqw:neqw,lt:lt,lte:lte,gt:gt,gte:gte,not:not,ifx:ifx,empty:empty,not_empty:not_empty,count:count,and:and,or:or,coalesce:coalesce,includes:includes}),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule(e,a){return e(a={exports:{}},a.exports),a.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var moment=createCommonjsModule((function(e,a){e.exports=function(){var a,i;function n(){return a.apply(null,arguments)}function t(e){a=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(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(r(e,a))return!1;return!0}function l(e){return void 0===e}function p(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 d(e,a){var i,n=[];for(i=0;i<e.length;++i)n.push(a(e[i],i));return n}function m(e,a){for(var i in a)r(a,i)&&(e[i]=a[i]);return r(a,"toString")&&(e.toString=a.toString),r(a,"valueOf")&&(e.valueOf=a.valueOf),e}function h(e,a,i,n){return Gi(e,a,i,n,!0).utc()}function f(){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 v(e){return null==e._pf&&(e._pf=f()),e._pf}function x(e){if(null==e._isValid){var a=v(e),n=i.call(a.parsedDateParts,(function(e){return null!=e})),t=!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&&n);if(e._strict&&(t=t&&0===a.charsLeftOver&&0===a.unusedTokens.length&&void 0===a.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return t;e._isValid=t}return e._isValid}function g(e){var a=h(NaN);return null!=e?m(v(a),e):v(a).userInvalidated=!0,a}i=Array.prototype.some?Array.prototype.some:function(e){var a,i=Object(this),n=i.length>>>0;for(a=0;a<n;a++)if(a in i&&e.call(this,i[a],a,i))return!0;return!1};var b=n.momentProperties=[],y=!1;function _(e,a){var i,n,t;if(l(a._isAMomentObject)||(e._isAMomentObject=a._isAMomentObject),l(a._i)||(e._i=a._i),l(a._f)||(e._f=a._f),l(a._l)||(e._l=a._l),l(a._strict)||(e._strict=a._strict),l(a._tzm)||(e._tzm=a._tzm),l(a._isUTC)||(e._isUTC=a._isUTC),l(a._offset)||(e._offset=a._offset),l(a._pf)||(e._pf=v(a)),l(a._locale)||(e._locale=a._locale),b.length>0)for(i=0;i<b.length;i++)l(t=a[n=b[i]])||(e[n]=t);return e}function w(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,n.updateOffset(this),y=!1)}function k(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function S(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,a){var i=!0;return m((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),i){var t,s,o,c=[];for(s=0;s<arguments.length;s++){if(t="","object"==typeof arguments[s]){for(o in t+="\n["+s+"] ",arguments[0])r(arguments[0],o)&&(t+=o+": "+arguments[0][o]+", ");t=t.slice(0,-2)}else t=arguments[s];c.push(t)}S(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),i=!1}return a.apply(this,arguments)}),a)}var D,M={};function j(e,a){null!=n.deprecationHandler&&n.deprecationHandler(e,a),M[e]||(S(a),M[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Y(e){var a,i;for(i in e)r(e,i)&&(T(a=e[i])?this[i]=a:this["_"+i]=a);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function E(e,a){var i,n=m({},e);for(i in a)r(a,i)&&(o(e[i])&&o(a[i])?(n[i]={},m(n[i],e[i]),m(n[i],a[i])):null!=a[i]?n[i]=a[i]:delete n[i]);for(i in e)r(e,i)&&!r(a,i)&&o(e[i])&&(n[i]=m({},n[i]));return n}function N(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,D=Object.keys?Object.keys:function(e){var a,i=[];for(a in e)r(e,a)&&i.push(a);return i};var C={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(e,a,i){var n=this._calendar[e]||this._calendar.sameElse;return T(n)?n.call(a,i):n}function R(e,a,i){var n=""+Math.abs(e),t=a-n.length;return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,t)).toString().substr(1)+n}var P=/(\[[^\[]*\])|(\\)?([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,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},I={};function U(e,a,i,n){var t=n;"string"==typeof n&&(t=function(){return this[n]()}),e&&(I[e]=t),a&&(I[a[0]]=function(){return R(t.apply(this,arguments),a[1],a[2])}),i&&(I[i]=function(){return this.localeData().ordinal(t.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $(e){var a,i,n=e.match(P);for(a=0,i=n.length;a<i;a++)I[n[a]]?n[a]=I[n[a]]:n[a]=z(n[a]);return function(a){var t,s="";for(t=0;t<i;t++)s+=T(n[t])?n[t].call(a,e):n[t];return s}}function H(e,a){return e.isValid()?(a=W(a,e.localeData()),F[a]=F[a]||$(a),F[a](e)):e.localeData().invalidDate()}function W(e,a){var i=5;function n(e){return a.longDateFormat(e)||e}for(L.lastIndex=0;i>=0&&L.test(e);)e=e.replace(L,n),L.lastIndex=0,i-=1;return e}var q={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 G(e){var a=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return a||!i?a:(this._longDateFormat[e]=i.match(P).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 B(){return this._invalidDate}var Z="%d",J=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var K={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 X(e,a,i,n){var t=this._relativeTime[i];return T(t)?t(e,a,i,n):t.replace(/%d/i,e)}function ee(e,a){var i=this._relativeTime[e>0?"future":"past"];return T(i)?i(a):i.replace(/%s/i,a)}var ae={};function ie(e,a){var i=e.toLowerCase();ae[i]=ae[i+"s"]=ae[a]=e}function ne(e){return"string"==typeof e?ae[e]||ae[e.toLowerCase()]:void 0}function te(e){var a,i,n={};for(i in e)r(e,i)&&(a=ne(i))&&(n[a]=e[i]);return n}var se={};function oe(e,a){se[e]=a}function re(e){var a,i=[];for(a in e)r(e,a)&&i.push({unit:a,priority:se[a]});return i.sort((function(e,a){return e.priority-a.priority})),i}function ce(e){return e%4==0&&e%100!=0||e%400==0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var a=+e,i=0;return 0!==a&&isFinite(a)&&(i=le(a)),i}function ue(e,a){return function(i){return null!=i?(me(this,e,i),n.updateOffset(this,a),this):de(this,e)}}function de(e,a){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+a]():NaN}function me(e,a,i){e.isValid()&&!isNaN(i)&&("FullYear"===a&&ce(e.year())&&1===e.month()&&29===e.date()?(i=pe(i),e._d["set"+(e._isUTC?"UTC":"")+a](i,e.month(),Xe(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+a](i))}function he(e){return T(this[e=ne(e)])?this[e]():this}function fe(e,a){if("object"==typeof e){var i,n=re(e=te(e));for(i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit])}else if(T(this[e=ne(e)]))return this[e](a);return this}var ve,xe=/\d/,ge=/\d\d/,be=/\d{3}/,ye=/\d{4}/,_e=/[+-]?\d{6}/,we=/\d\d?/,ke=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,Oe=/\d{1,3}/,De=/\d{1,4}/,Me=/[+-]?\d{1,6}/,je=/\d+/,Te=/[+-]?\d+/,Ye=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,Ne=/[+-]?\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 Ae(e,a,i){ve[e]=T(a)?a:function(e,n){return e&&i?i:a}}function Re(e,a){return r(ve,e)?ve[e](a._strict,a._locale):new RegExp(Pe(e))}function Pe(e){return Le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,a,i,n,t){return a||i||n||t})))}function Le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Fe={};function Ie(e,a){var i,n=a;for("string"==typeof e&&(e=[e]),p(a)&&(n=function(e,i){i[a]=pe(e)}),i=0;i<e.length;i++)Fe[e[i]]=n}function Ue(e,a){Ie(e,(function(e,i,n,t){n._w=n._w||{},a(e,n._w,n,t)}))}function ze(e,a,i){null!=a&&r(Fe,e)&&Fe[e](a,i._a,i,e)}var $e,He=0,We=1,qe=2,Ge=3,Ve=4,Be=5,Ze=6,Je=7,Qe=8;function Ke(e,a){return(e%a+a)%a}function Xe(e,a){if(isNaN(e)||isNaN(a))return NaN;var i=Ke(a,12);return e+=(a-i)/12,1===i?ce(e)?29:28:31-i%7%2}$e=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},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),U("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ie("month","M"),oe("month",8),Ae("M",we),Ae("MM",we,ge),Ae("MMM",(function(e,a){return a.monthsShortRegex(e)})),Ae("MMMM",(function(e,a){return a.monthsRegex(e)})),Ie(["M","MM"],(function(e,a){a[We]=pe(e)-1})),Ie(["MMM","MMMM"],(function(e,a,i,n){var t=i._locale.monthsParse(e,n,i._strict);null!=t?a[We]=t:v(i).invalidMonth=e}));var ea="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),aa="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ia=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,na=Ce,ta=Ce;function sa(e,a){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ia).test(a)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function oa(e,a){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ia.test(a)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ra(e,a,i){var n,t,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=h([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===a?-1!==(t=$e.call(this._shortMonthsParse,o))?t:null:-1!==(t=$e.call(this._longMonthsParse,o))?t:null:"MMM"===a?-1!==(t=$e.call(this._shortMonthsParse,o))||-1!==(t=$e.call(this._longMonthsParse,o))?t:null:-1!==(t=$e.call(this._longMonthsParse,o))||-1!==(t=$e.call(this._shortMonthsParse,o))?t:null}function ca(e,a,i){var n,t,s;if(this._monthsParseExact)return ra.call(this,e,a,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(t=h([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(t,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(t,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(t,"")+"|^"+this.monthsShort(t,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===a&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===a&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}}function la(e,a){var i;if(!e.isValid())return e;if("string"==typeof a)if(/^\d+$/.test(a))a=pe(a);else if(!p(a=e.localeData().monthsParse(a)))return e;return i=Math.min(e.date(),Xe(e.year(),a)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](a,i),e}function pa(e){return null!=e?(la(this,e),n.updateOffset(this,!0),this):de(this,"Month")}function ua(){return Xe(this.year(),this.month())}function da(e){return this._monthsParseExact?(r(this,"_monthsRegex")||ha.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=na),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ma(e){return this._monthsParseExact?(r(this,"_monthsRegex")||ha.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=ta),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ha(){function e(e,a){return a.length-e.length}var a,i,n=[],t=[],s=[];for(a=0;a<12;a++)i=h([2e3,a]),n.push(this.monthsShort(i,"")),t.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(n.sort(e),t.sort(e),s.sort(e),a=0;a<12;a++)n[a]=Le(n[a]),t[a]=Le(t[a]);for(a=0;a<24;a++)s[a]=Le(s[a]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function fa(e){return ce(e)?366:365}U("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),ie("year","y"),oe("year",1),Ae("Y",Te),Ae("YY",we,ge),Ae("YYYY",De,ye),Ae("YYYYY",Me,_e),Ae("YYYYYY",Me,_e),Ie(["YYYYY","YYYYYY"],He),Ie("YYYY",(function(e,a){a[He]=2===e.length?n.parseTwoDigitYear(e):pe(e)})),Ie("YY",(function(e,a){a[He]=n.parseTwoDigitYear(e)})),Ie("Y",(function(e,a){a[He]=parseInt(e,10)})),n.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var va=ue("FullYear",!0);function xa(){return ce(this.year())}function ga(e,a,i,n,t,s,o){var r;return e<100&&e>=0?(r=new Date(e+400,a,i,n,t,s,o),isFinite(r.getFullYear())&&r.setFullYear(e)):r=new Date(e,a,i,n,t,s,o),r}function ba(e){var a,i;return e<100&&e>=0?((i=Array.prototype.slice.call(arguments))[0]=e+400,a=new Date(Date.UTC.apply(null,i)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(e)):a=new Date(Date.UTC.apply(null,arguments)),a}function ya(e,a,i){var n=7+a-i;return-(7+ba(e,0,n).getUTCDay()-a)%7+n-1}function _a(e,a,i,n,t){var s,o,r=1+7*(a-1)+(7+i-n)%7+ya(e,n,t);return r<=0?o=fa(s=e-1)+r:r>fa(e)?(s=e+1,o=r-fa(e)):(s=e,o=r),{year:s,dayOfYear:o}}function wa(e,a,i){var n,t,s=ya(e.year(),a,i),o=Math.floor((e.dayOfYear()-s-1)/7)+1;return o<1?n=o+ka(t=e.year()-1,a,i):o>ka(e.year(),a,i)?(n=o-ka(e.year(),a,i),t=e.year()+1):(t=e.year(),n=o),{week:n,year:t}}function ka(e,a,i){var n=ya(e,a,i),t=ya(e+1,a,i);return(fa(e)-n+t)/7}function Sa(e){return wa(e,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),ie("week","w"),ie("isoWeek","W"),oe("week",5),oe("isoWeek",5),Ae("w",we),Ae("ww",we,ge),Ae("W",we),Ae("WW",we,ge),Ue(["w","ww","W","WW"],(function(e,a,i,n){a[n.substr(0,1)]=pe(e)}));var Oa={dow:0,doy:6};function Da(){return this._week.dow}function Ma(){return this._week.doy}function ja(e){var a=this.localeData().week(this);return null==e?a:this.add(7*(e-a),"d")}function Ta(e){var a=wa(this,1,4).week;return null==e?a:this.add(7*(e-a),"d")}function Ya(e,a){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=a.weekdaysParse(e))?e:null:parseInt(e,10)}function Ea(e,a){return"string"==typeof e?a.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Na(e,a){return e.slice(a,7).concat(e.slice(0,a))}U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),ie("day","d"),ie("weekday","e"),ie("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Ae("d",we),Ae("e",we),Ae("E",we),Ae("dd",(function(e,a){return a.weekdaysMinRegex(e)})),Ae("ddd",(function(e,a){return a.weekdaysShortRegex(e)})),Ae("dddd",(function(e,a){return a.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,a,i,n){var t=i._locale.weekdaysParse(e,n,i._strict);null!=t?a.d=t:v(i).invalidWeekday=e})),Ue(["d","e","E"],(function(e,a,i,n){a[n]=pe(e)}));var Ca="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Aa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ra="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Pa=Ce,La=Ce,Fa=Ce;function Ia(e,a){var i=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(a)?"format":"standalone"];return!0===e?Na(i,this._week.dow):e?i[e.day()]:i}function Ua(e){return!0===e?Na(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function za(e){return!0===e?Na(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $a(e,a,i){var n,t,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===a?-1!==(t=$e.call(this._weekdaysParse,o))?t:null:"ddd"===a?-1!==(t=$e.call(this._shortWeekdaysParse,o))?t:null:-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:"dddd"===a?-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._shortWeekdaysParse,o))||-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:"ddd"===a?-1!==(t=$e.call(this._shortWeekdaysParse,o))||-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:-1!==(t=$e.call(this._minWeekdaysParse,o))||-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._shortWeekdaysParse,o))?t:null}function Ha(e,a,i){var n,t,s;if(this._weekdaysParseExact)return $a.call(this,e,a,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(t=h([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(t,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(t,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(t,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(t,"")+"|^"+this.weekdaysShort(t,"")+"|^"+this.weekdaysMin(t,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===a&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===a&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===a&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}}function Wa(e){if(!this.isValid())return null!=e?this:NaN;var a=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ya(e,this.localeData()),this.add(e-a,"d")):a}function qa(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 Ga(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var a=Ea(e,this.localeData());return this.day(this.day()%7?a:a-7)}return this.day()||7}function Va(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Pa),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ba(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=La),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Za(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ja(){function e(e,a){return a.length-e.length}var a,i,n,t,s,o=[],r=[],c=[],l=[];for(a=0;a<7;a++)i=h([2e3,1]).day(a),n=Le(this.weekdaysMin(i,"")),t=Le(this.weekdaysShort(i,"")),s=Le(this.weekdays(i,"")),o.push(n),r.push(t),c.push(s),l.push(n),l.push(t),l.push(s);o.sort(e),r.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qa(){return this.hours()%12||12}function Ka(){return this.hours()||24}function Xa(e,a){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)}))}function ei(e,a){return a._meridiemParse}function ai(e){return"p"===(e+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Qa),U("k",["kk",2],0,Ka),U("hmm",0,0,(function(){return""+Qa.apply(this)+R(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Qa.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Xa("a",!0),Xa("A",!1),ie("hour","h"),oe("hour",13),Ae("a",ei),Ae("A",ei),Ae("H",we),Ae("h",we),Ae("k",we),Ae("HH",we,ge),Ae("hh",we,ge),Ae("kk",we,ge),Ae("hmm",ke),Ae("hmmss",Se),Ae("Hmm",ke),Ae("Hmmss",Se),Ie(["H","HH"],Ge),Ie(["k","kk"],(function(e,a,i){var n=pe(e);a[Ge]=24===n?0:n})),Ie(["a","A"],(function(e,a,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),Ie(["h","hh"],(function(e,a,i){a[Ge]=pe(e),v(i).bigHour=!0})),Ie("hmm",(function(e,a,i){var n=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n)),v(i).bigHour=!0})),Ie("hmmss",(function(e,a,i){var n=e.length-4,t=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n,2)),a[Be]=pe(e.substr(t)),v(i).bigHour=!0})),Ie("Hmm",(function(e,a,i){var n=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n))})),Ie("Hmmss",(function(e,a,i){var n=e.length-4,t=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n,2)),a[Be]=pe(e.substr(t))}));var ii=/[ap]\.?m?\.?/i,ni=ue("Hours",!0);function ti(e,a,i){return e>11?i?"pm":"PM":i?"am":"AM"}var si,oi={calendar:C,longDateFormat:q,invalidDate:V,ordinal:Z,dayOfMonthOrdinalParse:J,relativeTime:K,months:ea,monthsShort:aa,week:Oa,weekdays:Ca,weekdaysMin:Ra,weekdaysShort:Aa,meridiemParse:ii},ri={},ci={};function li(e,a){var i,n=Math.min(e.length,a.length);for(i=0;i<n;i+=1)if(e[i]!==a[i])return i;return n}function pi(e){return e?e.toLowerCase().replace("_","-"):e}function ui(e){for(var a,i,n,t,s=0;s<e.length;){for(a=(t=pi(e[s]).split("-")).length,i=(i=pi(e[s+1]))?i.split("-"):null;a>0;){if(n=di(t.slice(0,a).join("-")))return n;if(i&&i.length>=a&&li(t,i)>=a-1)break;a--}s++}return si}function di(a){var i=null;if(void 0===ri[a]&&e&&e.exports)try{i=si._abbr,commonjsRequire("./locale/"+a),mi(i)}catch(e){ri[a]=null}return ri[a]}function mi(e,a){var i;return e&&((i=l(a)?vi(e):hi(e,a))?si=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),si._abbr}function hi(e,a){if(null!==a){var i,n=oi;if(a.abbr=e,null!=ri[e])j("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=ri[e]._config;else if(null!=a.parentLocale)if(null!=ri[a.parentLocale])n=ri[a.parentLocale]._config;else{if(null==(i=di(a.parentLocale)))return ci[a.parentLocale]||(ci[a.parentLocale]=[]),ci[a.parentLocale].push({name:e,config:a}),null;n=i._config}return ri[e]=new N(E(n,a)),ci[e]&&ci[e].forEach((function(e){hi(e.name,e.config)})),mi(e),ri[e]}return delete ri[e],null}function fi(e,a){if(null!=a){var i,n,t=oi;null!=ri[e]&&null!=ri[e].parentLocale?ri[e].set(E(ri[e]._config,a)):(null!=(n=di(e))&&(t=n._config),a=E(t,a),null==n&&(a.abbr=e),(i=new N(a)).parentLocale=ri[e],ri[e]=i),mi(e)}else null!=ri[e]&&(null!=ri[e].parentLocale?(ri[e]=ri[e].parentLocale,e===mi()&&mi(e)):null!=ri[e]&&delete ri[e]);return ri[e]}function vi(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return si;if(!s(e)){if(a=di(e))return a;e=[e]}return ui(e)}function xi(){return D(ri)}function gi(e){var a,i=e._a;return i&&-2===v(e).overflow&&(a=i[We]<0||i[We]>11?We:i[qe]<1||i[qe]>Xe(i[He],i[We])?qe:i[Ge]<0||i[Ge]>24||24===i[Ge]&&(0!==i[Ve]||0!==i[Be]||0!==i[Ze])?Ge:i[Ve]<0||i[Ve]>59?Ve:i[Be]<0||i[Be]>59?Be:i[Ze]<0||i[Ze]>999?Ze:-1,v(e)._overflowDayOfYear&&(a<He||a>qe)&&(a=qe),v(e)._overflowWeeks&&-1===a&&(a=Je),v(e)._overflowWeekday&&-1===a&&(a=Qe),v(e).overflow=a),e}var bi=/^\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)?)?$/,yi=/^\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)?)?$/,_i=/Z|[+-]\d\d(?::?\d\d)?/,wi=[["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]],ki=[["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/]],Si=/^\/?Date\((-?\d+)/i,Oi=/^(?:(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}))$/,Di={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mi(e){var a,i,n,t,s,o,r=e._i,c=bi.exec(r)||yi.exec(r);if(c){for(v(e).iso=!0,a=0,i=wi.length;a<i;a++)if(wi[a][1].exec(c[1])){t=wi[a][0],n=!1!==wi[a][2];break}if(null==t)return void(e._isValid=!1);if(c[3]){for(a=0,i=ki.length;a<i;a++)if(ki[a][1].exec(c[3])){s=(c[2]||" ")+ki[a][0];break}if(null==s)return void(e._isValid=!1)}if(!n&&null!=s)return void(e._isValid=!1);if(c[4]){if(!_i.exec(c[4]))return void(e._isValid=!1);o="Z"}e._f=t+(s||"")+(o||""),Ii(e)}else e._isValid=!1}function ji(e,a,i,n,t,s){var o=[Ti(e),aa.indexOf(a),parseInt(i,10),parseInt(n,10),parseInt(t,10)];return s&&o.push(parseInt(s,10)),o}function Ti(e){var a=parseInt(e,10);return a<=49?2e3+a:a<=999?1900+a:a}function Yi(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ei(e,a,i){return!e||Aa.indexOf(e)===new Date(a[0],a[1],a[2]).getDay()||(v(i).weekdayMismatch=!0,i._isValid=!1,!1)}function Ni(e,a,i){if(e)return Di[e];if(a)return 0;var n=parseInt(i,10),t=n%100;return(n-t)/100*60+t}function Ci(e){var a,i=Oi.exec(Yi(e._i));if(i){if(a=ji(i[4],i[3],i[2],i[5],i[6],i[7]),!Ei(i[1],a,e))return;e._a=a,e._tzm=Ni(i[8],i[9],i[10]),e._d=ba.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Ai(e){var a=Si.exec(e._i);null===a?(Mi(e),!1===e._isValid&&(delete e._isValid,Ci(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:n.createFromInputFallback(e)))):e._d=new Date(+a[1])}function Ri(e,a,i){return null!=e?e:null!=a?a:i}function Pi(e){var a=new Date(n.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function Li(e){var a,i,n,t,s,o=[];if(!e._d){for(n=Pi(e),e._w&&null==e._a[qe]&&null==e._a[We]&&Fi(e),null!=e._dayOfYear&&(s=Ri(e._a[He],n[He]),(e._dayOfYear>fa(s)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),i=ba(s,0,e._dayOfYear),e._a[We]=i.getUTCMonth(),e._a[qe]=i.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=o[a]=n[a];for(;a<7;a++)e._a[a]=o[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[Ge]&&0===e._a[Ve]&&0===e._a[Be]&&0===e._a[Ze]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?ba:ga).apply(null,o),t=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==t&&(v(e).weekdayMismatch=!0)}}function Fi(e){var a,i,n,t,s,o,r,c,l;null!=(a=e._w).GG||null!=a.W||null!=a.E?(s=1,o=4,i=Ri(a.GG,e._a[He],wa(Vi(),1,4).year),n=Ri(a.W,1),((t=Ri(a.E,1))<1||t>7)&&(c=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,l=wa(Vi(),s,o),i=Ri(a.gg,e._a[He],l.year),n=Ri(a.w,l.week),null!=a.d?((t=a.d)<0||t>6)&&(c=!0):null!=a.e?(t=a.e+s,(a.e<0||a.e>6)&&(c=!0)):t=s),n<1||n>ka(i,s,o)?v(e)._overflowWeeks=!0:null!=c?v(e)._overflowWeekday=!0:(r=_a(i,n,t,s,o),e._a[He]=r.year,e._dayOfYear=r.dayOfYear)}function Ii(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],v(e).empty=!0;var a,i,t,s,o,r,c=""+e._i,l=c.length,p=0;for(t=W(e._f,e._locale).match(P)||[],a=0;a<t.length;a++)s=t[a],(i=(c.match(Re(s,e))||[])[0])&&((o=c.substr(0,c.indexOf(i))).length>0&&v(e).unusedInput.push(o),c=c.slice(c.indexOf(i)+i.length),p+=i.length),I[s]?(i?v(e).empty=!1:v(e).unusedTokens.push(s),ze(s,i,e)):e._strict&&!i&&v(e).unusedTokens.push(s);v(e).charsLeftOver=l-p,c.length>0&&v(e).unusedInput.push(c),e._a[Ge]<=12&&!0===v(e).bigHour&&e._a[Ge]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ge]=Ui(e._locale,e._a[Ge],e._meridiem),null!==(r=v(e).era)&&(e._a[He]=e._locale.erasConvertYear(r,e._a[He])),Li(e),gi(e)}else Ci(e);else Mi(e)}function Ui(e,a,i){var n;return null==i?a:null!=e.meridiemHour?e.meridiemHour(a,i):null!=e.isPM?((n=e.isPM(i))&&a<12&&(a+=12),n||12!==a||(a=0),a):a}function zi(e){var a,i,n,t,s,o,r=!1;if(0===e._f.length)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(t=0;t<e._f.length;t++)s=0,o=!1,a=_({},e),null!=e._useUTC&&(a._useUTC=e._useUTC),a._f=e._f[t],Ii(a),x(a)&&(o=!0),s+=v(a).charsLeftOver,s+=10*v(a).unusedTokens.length,v(a).score=s,r?s<n&&(n=s,i=a):(null==n||s<n||o)&&(n=s,i=a,o&&(r=!0));m(e,i||a)}function $i(e){if(!e._d){var a=te(e._i),i=void 0===a.day?a.date:a.day;e._a=d([a.year,a.month,i,a.hour,a.minute,a.second,a.millisecond],(function(e){return e&&parseInt(e,10)})),Li(e)}}function Hi(e){var a=new w(gi(Wi(e)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Wi(e){var a=e._i,i=e._f;return e._locale=e._locale||vi(e._l),null===a||void 0===i&&""===a?g({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),k(a)?new w(gi(a)):(u(a)?e._d=a:s(i)?zi(e):i?Ii(e):qi(e),x(e)||(e._d=null),e))}function qi(e){var a=e._i;l(a)?e._d=new Date(n.now()):u(a)?e._d=new Date(a.valueOf()):"string"==typeof a?Ai(e):s(a)?(e._a=d(a.slice(0),(function(e){return parseInt(e,10)})),Li(e)):o(a)?$i(e):p(a)?e._d=new Date(a):n.createFromInputFallback(e)}function Gi(e,a,i,n,t){var r={};return!0!==a&&!1!==a||(n=a,a=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(o(e)&&c(e)||s(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=t,r._l=i,r._i=e,r._f=a,r._strict=n,Hi(r)}function Vi(e,a,i,n){return Gi(e,a,i,n,!1)}n.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var Bi=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Vi.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Zi=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Vi.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Ji(e,a){var i,n;if(1===a.length&&s(a[0])&&(a=a[0]),!a.length)return Vi();for(i=a[0],n=1;n<a.length;++n)a[n].isValid()&&!a[n][e](i)||(i=a[n]);return i}function Qi(){return Ji("isBefore",[].slice.call(arguments,0))}function Ki(){return Ji("isAfter",[].slice.call(arguments,0))}var Xi=function(){return Date.now?Date.now():+new Date},en=["year","quarter","month","week","day","hour","minute","second","millisecond"];function an(e){var a,i,n=!1;for(a in e)if(r(e,a)&&(-1===$e.call(en,a)||null!=e[a]&&isNaN(e[a])))return!1;for(i=0;i<en.length;++i)if(e[en[i]]){if(n)return!1;parseFloat(e[en[i]])!==pe(e[en[i]])&&(n=!0)}return!0}function nn(){return this._isValid}function tn(){return Mn(NaN)}function sn(e){var a=te(e),i=a.year||0,n=a.quarter||0,t=a.month||0,s=a.week||a.isoWeek||0,o=a.day||0,r=a.hour||0,c=a.minute||0,l=a.second||0,p=a.millisecond||0;this._isValid=an(a),this._milliseconds=+p+1e3*l+6e4*c+1e3*r*60*60,this._days=+o+7*s,this._months=+t+3*n+12*i,this._data={},this._locale=vi(),this._bubble()}function on(e){return e instanceof sn}function rn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cn(e,a,i){var n,t=Math.min(e.length,a.length),s=Math.abs(e.length-a.length),o=0;for(n=0;n<t;n++)(i&&e[n]!==a[n]||!i&&pe(e[n])!==pe(a[n]))&&o++;return o+s}function ln(e,a){U(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+R(~~(e/60),2)+a+R(~~e%60,2)}))}ln("Z",":"),ln("ZZ",""),Ae("Z",Ee),Ae("ZZ",Ee),Ie(["Z","ZZ"],(function(e,a,i){i._useUTC=!0,i._tzm=un(Ee,e)}));var pn=/([\+\-]|\d\d)/gi;function un(e,a){var i,n,t=(a||"").match(e);return null===t?null:0===(n=60*(i=((t[t.length-1]||[])+"").match(pn)||["-",0,0])[1]+pe(i[2]))?0:"+"===i[0]?n:-n}function dn(e,a){var i,t;return a._isUTC?(i=a.clone(),t=(k(e)||u(e)?e.valueOf():Vi(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+t),n.updateOffset(i,!1),i):Vi(e).local()}function mn(e){return-Math.round(e._d.getTimezoneOffset())}function hn(e,a,i){var t,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=un(Ee,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&a&&(t=mn(this)),this._offset=e,this._isUTC=!0,null!=t&&this.add(t,"m"),s!==e&&(!a||this._changeInProgress?Nn(this,Mn(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:mn(this)}function fn(e,a){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}function vn(e){return this.utcOffset(0,e)}function xn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mn(this),"m")),this}function gn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=un(Ye,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function bn(e){return!!this.isValid()&&(e=e?Vi(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function yn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _n(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,a={};return _(a,this),(a=Wi(a))._a?(e=a._isUTC?h(a._a):Vi(a._a),this._isDSTShifted=this.isValid()&&cn(a._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wn(){return!!this.isValid()&&!this._isUTC}function kn(){return!!this.isValid()&&this._isUTC}function Sn(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var On=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Mn(e,a){var i,n,t,s=e,o=null;return on(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:p(e)||!isNaN(+e)?(s={},a?s[a]=+e:s.milliseconds=+e):(o=On.exec(e))?(i="-"===o[1]?-1:1,s={y:0,d:pe(o[qe])*i,h:pe(o[Ge])*i,m:pe(o[Ve])*i,s:pe(o[Be])*i,ms:pe(rn(1e3*o[Ze]))*i}):(o=Dn.exec(e))?(i="-"===o[1]?-1:1,s={y:jn(o[2],i),M:jn(o[3],i),w:jn(o[4],i),d:jn(o[5],i),h:jn(o[6],i),m:jn(o[7],i),s:jn(o[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(t=Yn(Vi(s.from),Vi(s.to)),(s={}).ms=t.milliseconds,s.M=t.months),n=new sn(s),on(e)&&r(e,"_locale")&&(n._locale=e._locale),on(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function jn(e,a){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*a}function Tn(e,a){var i={};return i.months=a.month()-e.month()+12*(a.year()-e.year()),e.clone().add(i.months,"M").isAfter(a)&&--i.months,i.milliseconds=+a-+e.clone().add(i.months,"M"),i}function Yn(e,a){var i;return e.isValid()&&a.isValid()?(a=dn(a,e),e.isBefore(a)?i=Tn(e,a):((i=Tn(a,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function En(e,a){return function(i,n){var t;return null===n||isNaN(+n)||(j(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."),t=i,i=n,n=t),Nn(this,Mn(i,n),e),this}}function Nn(e,a,i,t){var s=a._milliseconds,o=rn(a._days),r=rn(a._months);e.isValid()&&(t=null==t||t,r&&la(e,de(e,"Month")+r*i),o&&me(e,"Date",de(e,"Date")+o*i),s&&e._d.setTime(e._d.valueOf()+s*i),t&&n.updateOffset(e,o||r))}Mn.fn=sn.prototype,Mn.invalid=tn;var Cn=En(1,"add"),An=En(-1,"subtract");function Rn(e){return"string"==typeof e||e instanceof String}function Pn(e){return k(e)||u(e)||Rn(e)||p(e)||Fn(e)||Ln(e)||null==e}function Ln(e){var a,i,n=o(e)&&!c(e),t=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(a=0;a<s.length;a+=1)i=s[a],t=t||r(e,i);return n&&t}function Fn(e){var a=s(e),i=!1;return a&&(i=0===e.filter((function(a){return!p(a)&&Rn(e)})).length),a&&i}function In(e){var a,i,n=o(e)&&!c(e),t=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(a=0;a<s.length;a+=1)i=s[a],t=t||r(e,i);return n&&t}function Un(e,a){var i=e.diff(a,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function zn(e,a){1===arguments.length&&(arguments[0]?Pn(arguments[0])?(e=arguments[0],a=void 0):In(arguments[0])&&(a=arguments[0],e=void 0):(e=void 0,a=void 0));var i=e||Vi(),t=dn(i,this).startOf("day"),s=n.calendarFormat(this,t)||"sameElse",o=a&&(T(a[s])?a[s].call(this,i):a[s]);return this.format(o||this.localeData().calendar(s,this,Vi(i)))}function $n(){return new w(this)}function Hn(e,a){var i=k(e)?e:Vi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(a).valueOf())}function Wn(e,a){var i=k(e)?e:Vi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(a).valueOf()<i.valueOf())}function qn(e,a,i,n){var t=k(e)?e:Vi(e),s=k(a)?a:Vi(a);return!!(this.isValid()&&t.isValid()&&s.isValid())&&("("===(n=n||"()")[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(")"===n[1]?this.isBefore(s,i):!this.isAfter(s,i))}function Gn(e,a){var i,n=k(e)?e:Vi(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(a).valueOf()<=i&&i<=this.clone().endOf(a).valueOf()))}function Vn(e,a){return this.isSame(e,a)||this.isAfter(e,a)}function Bn(e,a){return this.isSame(e,a)||this.isBefore(e,a)}function Zn(e,a,i){var n,t,s;if(!this.isValid())return NaN;if(!(n=dn(e,this)).isValid())return NaN;switch(t=6e4*(n.utcOffset()-this.utcOffset()),a=ne(a)){case"year":s=Jn(this,n)/12;break;case"month":s=Jn(this,n);break;case"quarter":s=Jn(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-t)/864e5;break;case"week":s=(this-n-t)/6048e5;break;default:s=this-n}return i?s:le(s)}function Jn(e,a){if(e.date()<a.date())return-Jn(a,e);var i=12*(a.year()-e.year())+(a.month()-e.month()),n=e.clone().add(i,"months");return-(i+(a-n<0?(a-n)/(n-e.clone().add(i-1,"months")):(a-n)/(e.clone().add(i+1,"months")-n)))||0}function Qn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Kn(e){if(!this.isValid())return null;var a=!0!==e,i=a?this.clone().utc():this;return i.year()<0||i.year()>9999?H(i,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(i,"Z")):H(i,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Xn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,a,i,n,t="moment",s="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+t+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",n=s+'[")]',this.format(e+a+i+n)}function et(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var a=H(this,e);return this.localeData().postformat(a)}function at(e,a){return this.isValid()&&(k(e)&&e.isValid()||Vi(e).isValid())?Mn({to:this,from:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function it(e){return this.from(Vi(),e)}function nt(e,a){return this.isValid()&&(k(e)&&e.isValid()||Vi(e).isValid())?Mn({from:this,to:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function tt(e){return this.to(Vi(),e)}function st(e){var a;return void 0===e?this._locale._abbr:(null!=(a=vi(e))&&(this._locale=a),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ot=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function rt(){return this._locale}var ct=1e3,lt=60*ct,pt=60*lt,ut=3506328*pt;function dt(e,a){return(e%a+a)%a}function mt(e,a,i){return e<100&&e>=0?new Date(e+400,a,i)-ut:new Date(e,a,i).valueOf()}function ht(e,a,i){return e<100&&e>=0?Date.UTC(e+400,a,i)-ut:Date.UTC(e,a,i)}function ft(e){var a,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ht:mt,e){case"year":a=i(this.year(),0,1);break;case"quarter":a=i(this.year(),this.month()-this.month()%3,1);break;case"month":a=i(this.year(),this.month(),1);break;case"week":a=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=i(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=dt(a+(this._isUTC?0:this.utcOffset()*lt),pt);break;case"minute":a=this._d.valueOf(),a-=dt(a,lt);break;case"second":a=this._d.valueOf(),a-=dt(a,ct)}return this._d.setTime(a),n.updateOffset(this,!0),this}function vt(e){var a,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ht:mt,e){case"year":a=i(this.year()+1,0,1)-1;break;case"quarter":a=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=i(this.year(),this.month()+1,1)-1;break;case"week":a=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=pt-dt(a+(this._isUTC?0:this.utcOffset()*lt),pt)-1;break;case"minute":a=this._d.valueOf(),a+=lt-dt(a,lt)-1;break;case"second":a=this._d.valueOf(),a+=ct-dt(a,ct)-1}return this._d.setTime(a),n.updateOffset(this,!0),this}function xt(){return this._d.valueOf()-6e4*(this._offset||0)}function gt(){return Math.floor(this.valueOf()/1e3)}function bt(){return new Date(this.valueOf())}function yt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _t(){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 wt(){return this.isValid()?this.toISOString():null}function kt(){return x(this)}function St(){return m({},v(this))}function Ot(){return v(this).overflow}function Dt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Mt(e,a){var i,t,s,o=this._eras||vi("en")._eras;for(i=0,t=o.length;i<t;++i)switch("string"==typeof o[i].since&&(s=n(o[i].since).startOf("day"),o[i].since=s.valueOf()),typeof o[i].until){case"undefined":o[i].until=1/0;break;case"string":s=n(o[i].until).startOf("day").valueOf(),o[i].until=s.valueOf()}return o}function jt(e,a,i){var n,t,s,o,r,c=this.eras();for(e=e.toUpperCase(),n=0,t=c.length;n<t;++n)if(s=c[n].name.toUpperCase(),o=c[n].abbr.toUpperCase(),r=c[n].narrow.toUpperCase(),i)switch(a){case"N":case"NN":case"NNN":if(o===e)return c[n];break;case"NNNN":if(s===e)return c[n];break;case"NNNNN":if(r===e)return c[n]}else if([s,o,r].indexOf(e)>=0)return c[n]}function Tt(e,a){var i=e.since<=e.until?1:-1;return void 0===a?n(e.since).year():n(e.since).year()+(a-e.offset)*i}function Yt(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].name;if(n[e].until<=i&&i<=n[e].since)return n[e].name}return""}function Et(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].narrow;if(n[e].until<=i&&i<=n[e].since)return n[e].narrow}return""}function Nt(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].abbr;if(n[e].until<=i&&i<=n[e].since)return n[e].abbr}return""}function Ct(){var e,a,i,t,s=this.localeData().eras();for(e=0,a=s.length;e<a;++e)if(i=s[e].since<=s[e].until?1:-1,t=this.clone().startOf("day").valueOf(),s[e].since<=t&&t<=s[e].until||s[e].until<=t&&t<=s[e].since)return(this.year()-n(s[e].since).year())*i+s[e].offset;return this.year()}function At(e){return r(this,"_erasNameRegex")||zt.call(this),e?this._erasNameRegex:this._erasRegex}function Rt(e){return r(this,"_erasAbbrRegex")||zt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Pt(e){return r(this,"_erasNarrowRegex")||zt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Lt(e,a){return a.erasAbbrRegex(e)}function Ft(e,a){return a.erasNameRegex(e)}function It(e,a){return a.erasNarrowRegex(e)}function Ut(e,a){return a._eraYearOrdinalRegex||je}function zt(){var e,a,i=[],n=[],t=[],s=[],o=this.eras();for(e=0,a=o.length;e<a;++e)n.push(Le(o[e].name)),i.push(Le(o[e].abbr)),t.push(Le(o[e].narrow)),s.push(Le(o[e].name)),s.push(Le(o[e].abbr)),s.push(Le(o[e].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}function $t(e,a){U(0,[e,e.length],0,a)}function Ht(e){return Zt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wt(e){return Zt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qt(){return ka(this.year(),1,4)}function Gt(){return ka(this.isoWeekYear(),1,4)}function Vt(){var e=this.localeData()._week;return ka(this.year(),e.dow,e.doy)}function Bt(){var e=this.localeData()._week;return ka(this.weekYear(),e.dow,e.doy)}function Zt(e,a,i,n,t){var s;return null==e?wa(this,n,t).year:(a>(s=ka(e,n,t))&&(a=s),Jt.call(this,e,a,i,n,t))}function Jt(e,a,i,n,t){var s=_a(e,a,i,n,t),o=ba(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Qt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Ae("N",Lt),Ae("NN",Lt),Ae("NNN",Lt),Ae("NNNN",Ft),Ae("NNNNN",It),Ie(["N","NN","NNN","NNNN","NNNNN"],(function(e,a,i,n){var t=i._locale.erasParse(e,n,i._strict);t?v(i).era=t:v(i).invalidEra=e})),Ae("y",je),Ae("yy",je),Ae("yyy",je),Ae("yyyy",je),Ae("yo",Ut),Ie(["y","yy","yyy","yyyy"],He),Ie(["yo"],(function(e,a,i,n){var t;i._locale._eraYearOrdinalRegex&&(t=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?a[He]=i._locale.eraYearOrdinalParse(e,t):a[He]=parseInt(e,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),$t("gggg","weekYear"),$t("ggggg","weekYear"),$t("GGGG","isoWeekYear"),$t("GGGGG","isoWeekYear"),ie("weekYear","gg"),ie("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Ae("G",Te),Ae("g",Te),Ae("GG",we,ge),Ae("gg",we,ge),Ae("GGGG",De,ye),Ae("gggg",De,ye),Ae("GGGGG",Me,_e),Ae("ggggg",Me,_e),Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,a,i,n){a[n.substr(0,2)]=pe(e)})),Ue(["gg","GG"],(function(e,a,i,t){a[t]=n.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),ie("quarter","Q"),oe("quarter",7),Ae("Q",xe),Ie("Q",(function(e,a){a[We]=3*(pe(e)-1)})),U("D",["DD",2],"Do","date"),ie("date","D"),oe("date",9),Ae("D",we),Ae("DD",we,ge),Ae("Do",(function(e,a){return e?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient})),Ie(["D","DD"],qe),Ie("Do",(function(e,a){a[qe]=pe(e.match(we)[0])}));var Kt=ue("Date",!0);function Xt(e){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?a:this.add(e-a,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),ie("dayOfYear","DDD"),oe("dayOfYear",4),Ae("DDD",Oe),Ae("DDDD",be),Ie(["DDD","DDDD"],(function(e,a,i){i._dayOfYear=pe(e)})),U("m",["mm",2],0,"minute"),ie("minute","m"),oe("minute",14),Ae("m",we),Ae("mm",we,ge),Ie(["m","mm"],Ve);var es=ue("Minutes",!1);U("s",["ss",2],0,"second"),ie("second","s"),oe("second",15),Ae("s",we),Ae("ss",we,ge),Ie(["s","ss"],Be);var as,is,ns=ue("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ie("millisecond","ms"),oe("millisecond",16),Ae("S",Oe,xe),Ae("SS",Oe,ge),Ae("SSS",Oe,be),as="SSSS";as.length<=9;as+="S")Ae(as,je);function ts(e,a){a[Ze]=pe(1e3*("0."+e))}for(as="S";as.length<=9;as+="S")Ie(as,ts);function ss(){return this._isUTC?"UTC":""}function os(){return this._isUTC?"Coordinated Universal Time":""}is=ue("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var rs=w.prototype;function cs(e){return Vi(1e3*e)}function ls(){return Vi.apply(null,arguments).parseZone()}function ps(e){return e}rs.add=Cn,rs.calendar=zn,rs.clone=$n,rs.diff=Zn,rs.endOf=vt,rs.format=et,rs.from=at,rs.fromNow=it,rs.to=nt,rs.toNow=tt,rs.get=he,rs.invalidAt=Ot,rs.isAfter=Hn,rs.isBefore=Wn,rs.isBetween=qn,rs.isSame=Gn,rs.isSameOrAfter=Vn,rs.isSameOrBefore=Bn,rs.isValid=kt,rs.lang=ot,rs.locale=st,rs.localeData=rt,rs.max=Zi,rs.min=Bi,rs.parsingFlags=St,rs.set=fe,rs.startOf=ft,rs.subtract=An,rs.toArray=yt,rs.toObject=_t,rs.toDate=bt,rs.toISOString=Kn,rs.inspect=Xn,"undefined"!=typeof Symbol&&null!=Symbol.for&&(rs[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),rs.toJSON=wt,rs.toString=Qn,rs.unix=gt,rs.valueOf=xt,rs.creationData=Dt,rs.eraName=Yt,rs.eraNarrow=Et,rs.eraAbbr=Nt,rs.eraYear=Ct,rs.year=va,rs.isLeapYear=xa,rs.weekYear=Ht,rs.isoWeekYear=Wt,rs.quarter=rs.quarters=Qt,rs.month=pa,rs.daysInMonth=ua,rs.week=rs.weeks=ja,rs.isoWeek=rs.isoWeeks=Ta,rs.weeksInYear=Vt,rs.weeksInWeekYear=Bt,rs.isoWeeksInYear=qt,rs.isoWeeksInISOWeekYear=Gt,rs.date=Kt,rs.day=rs.days=Wa,rs.weekday=qa,rs.isoWeekday=Ga,rs.dayOfYear=Xt,rs.hour=rs.hours=ni,rs.minute=rs.minutes=es,rs.second=rs.seconds=ns,rs.millisecond=rs.milliseconds=is,rs.utcOffset=hn,rs.utc=vn,rs.local=xn,rs.parseZone=gn,rs.hasAlignedHourOffset=bn,rs.isDST=yn,rs.isLocal=wn,rs.isUtcOffset=kn,rs.isUtc=Sn,rs.isUTC=Sn,rs.zoneAbbr=ss,rs.zoneName=os,rs.dates=O("dates accessor is deprecated. Use date instead.",Kt),rs.months=O("months accessor is deprecated. Use month instead",pa),rs.years=O("years accessor is deprecated. Use year instead",va),rs.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fn),rs.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_n);var us=N.prototype;function ds(e,a,i,n){var t=vi(),s=h().set(n,a);return t[i](s,e)}function ms(e,a,i){if(p(e)&&(a=e,e=void 0),e=e||"",null!=a)return ds(e,a,i,"month");var n,t=[];for(n=0;n<12;n++)t[n]=ds(e,n,i,"month");return t}function hs(e,a,i,n){"boolean"==typeof e?(p(a)&&(i=a,a=void 0),a=a||""):(i=a=e,e=!1,p(a)&&(i=a,a=void 0),a=a||"");var t,s=vi(),o=e?s._week.dow:0,r=[];if(null!=i)return ds(a,(i+o)%7,n,"day");for(t=0;t<7;t++)r[t]=ds(a,(t+o)%7,n,"day");return r}function fs(e,a){return ms(e,a,"months")}function vs(e,a){return ms(e,a,"monthsShort")}function xs(e,a,i){return hs(e,a,i,"weekdays")}function gs(e,a,i){return hs(e,a,i,"weekdaysShort")}function bs(e,a,i){return hs(e,a,i,"weekdaysMin")}us.calendar=A,us.longDateFormat=G,us.invalidDate=B,us.ordinal=Q,us.preparse=ps,us.postformat=ps,us.relativeTime=X,us.pastFuture=ee,us.set=Y,us.eras=Mt,us.erasParse=jt,us.erasConvertYear=Tt,us.erasAbbrRegex=Rt,us.erasNameRegex=At,us.erasNarrowRegex=Pt,us.months=sa,us.monthsShort=oa,us.monthsParse=ca,us.monthsRegex=ma,us.monthsShortRegex=da,us.week=Sa,us.firstDayOfYear=Ma,us.firstDayOfWeek=Da,us.weekdays=Ia,us.weekdaysMin=za,us.weekdaysShort=Ua,us.weekdaysParse=Ha,us.weekdaysRegex=Va,us.weekdaysShortRegex=Ba,us.weekdaysMinRegex=Za,us.isPM=ai,us.meridiem=ti,mi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var a=e%10;return e+(1===pe(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}}),n.lang=O("moment.lang is deprecated. Use moment.locale instead.",mi),n.langData=O("moment.langData is deprecated. Use moment.localeData instead.",vi);var ys=Math.abs;function _s(){var e=this._data;return this._milliseconds=ys(this._milliseconds),this._days=ys(this._days),this._months=ys(this._months),e.milliseconds=ys(e.milliseconds),e.seconds=ys(e.seconds),e.minutes=ys(e.minutes),e.hours=ys(e.hours),e.months=ys(e.months),e.years=ys(e.years),this}function ws(e,a,i,n){var t=Mn(a,i);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function ks(e,a){return ws(this,e,a,1)}function Ss(e,a){return ws(this,e,a,-1)}function Os(e){return e<0?Math.floor(e):Math.ceil(e)}function Ds(){var e,a,i,n,t,s=this._milliseconds,o=this._days,r=this._months,c=this._data;return s>=0&&o>=0&&r>=0||s<=0&&o<=0&&r<=0||(s+=864e5*Os(js(r)+o),o=0,r=0),c.milliseconds=s%1e3,e=le(s/1e3),c.seconds=e%60,a=le(e/60),c.minutes=a%60,i=le(a/60),c.hours=i%24,o+=le(i/24),r+=t=le(Ms(o)),o-=Os(js(t)),n=le(r/12),r%=12,c.days=o,c.months=r,c.years=n,this}function Ms(e){return 4800*e/146097}function js(e){return 146097*e/4800}function Ts(e){if(!this.isValid())return NaN;var a,i,n=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(a=this._days+n/864e5,i=this._months+Ms(a),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(a=this._days+Math.round(js(this._months)),e){case"week":return a/7+n/6048e5;case"day":return a+n/864e5;case"hour":return 24*a+n/36e5;case"minute":return 1440*a+n/6e4;case"second":return 86400*a+n/1e3;case"millisecond":return Math.floor(864e5*a)+n;default:throw new Error("Unknown unit "+e)}}function Ys(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN}function Es(e){return function(){return this.as(e)}}var Ns=Es("ms"),Cs=Es("s"),As=Es("m"),Rs=Es("h"),Ps=Es("d"),Ls=Es("w"),Fs=Es("M"),Is=Es("Q"),Us=Es("y");function zs(){return Mn(this)}function $s(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Hs(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ws=Hs("milliseconds"),qs=Hs("seconds"),Gs=Hs("minutes"),Vs=Hs("hours"),Bs=Hs("days"),Zs=Hs("months"),Js=Hs("years");function Qs(){return le(this.days()/7)}var Ks=Math.round,Xs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function eo(e,a,i,n,t){return t.relativeTime(a||1,!!i,e,n)}function ao(e,a,i,n){var t=Mn(e).abs(),s=Ks(t.as("s")),o=Ks(t.as("m")),r=Ks(t.as("h")),c=Ks(t.as("d")),l=Ks(t.as("M")),p=Ks(t.as("w")),u=Ks(t.as("y")),d=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||o<=1&&["m"]||o<i.m&&["mm",o]||r<=1&&["h"]||r<i.h&&["hh",r]||c<=1&&["d"]||c<i.d&&["dd",c];return null!=i.w&&(d=d||p<=1&&["w"]||p<i.w&&["ww",p]),(d=d||l<=1&&["M"]||l<i.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=a,d[3]=+e>0,d[4]=n,eo.apply(null,d)}function io(e){return void 0===e?Ks:"function"==typeof e&&(Ks=e,!0)}function no(e,a){return void 0!==Xs[e]&&(void 0===a?Xs[e]:(Xs[e]=a,"s"===e&&(Xs.ss=a-1),!0))}function to(e,a){if(!this.isValid())return this.localeData().invalidDate();var i,n,t=!1,s=Xs;return"object"==typeof e&&(a=e,e=!1),"boolean"==typeof e&&(t=e),"object"==typeof a&&(s=Object.assign({},Xs,a),null!=a.s&&null==a.ss&&(s.ss=a.s-1)),n=ao(this,!t,s,i=this.localeData()),t&&(n=i.pastFuture(+this,n)),i.postformat(n)}var so=Math.abs;function oo(e){return(e>0)-(e<0)||+e}function ro(){if(!this.isValid())return this.localeData().invalidDate();var e,a,i,n,t,s,o,r,c=so(this._milliseconds)/1e3,l=so(this._days),p=so(this._months),u=this.asSeconds();return u?(e=le(c/60),a=le(e/60),c%=60,e%=60,i=le(p/12),p%=12,n=c?c.toFixed(3).replace(/\.?0+$/,""):"",t=u<0?"-":"",s=oo(this._months)!==oo(u)?"-":"",o=oo(this._days)!==oo(u)?"-":"",r=oo(this._milliseconds)!==oo(u)?"-":"",t+"P"+(i?s+i+"Y":"")+(p?s+p+"M":"")+(l?o+l+"D":"")+(a||e||c?"T":"")+(a?r+a+"H":"")+(e?r+e+"M":"")+(c?r+n+"S":"")):"P0D"}var co=sn.prototype;return co.isValid=nn,co.abs=_s,co.add=ks,co.subtract=Ss,co.as=Ts,co.asMilliseconds=Ns,co.asSeconds=Cs,co.asMinutes=As,co.asHours=Rs,co.asDays=Ps,co.asWeeks=Ls,co.asMonths=Fs,co.asQuarters=Is,co.asYears=Us,co.valueOf=Ys,co._bubble=Ds,co.clone=zs,co.get=$s,co.milliseconds=Ws,co.seconds=qs,co.minutes=Gs,co.hours=Vs,co.days=Bs,co.weeks=Qs,co.months=Zs,co.years=Js,co.humanize=to,co.toISOString=ro,co.toString=ro,co.toJSON=ro,co.locale=st,co.localeData=rt,co.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ro),co.lang=ot,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Ae("x",Te),Ae("X",Ne),Ie("X",(function(e,a,i){i._d=new Date(1e3*parseFloat(e))})),Ie("x",(function(e,a,i){i._d=new Date(pe(e))})),
2
2
  //! moment.js
3
- n.version="2.29.1",t(Vi),n.fn=rs,n.min=Qi,n.max=Ki,n.now=Xi,n.utc=h,n.unix=cs,n.months=fs,n.isDate=u,n.locale=mi,n.invalid=g,n.duration=Mn,n.isMoment=k,n.weekdays=xs,n.parseZone=ls,n.localeData=vi,n.isDuration=on,n.monthsShort=vs,n.weekdaysMin=bs,n.defineLocale=hi,n.updateLocale=fi,n.locales=xi,n.weekdaysShort=gs,n.normalizeUnits=ne,n.relativeTimeRounding=io,n.relativeTimeThreshold=no,n.calendarFormat=Un,n.prototype=rs,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()}));function format_date(e,a,i){if(e=utils.isString(e)?e:"",utils.isString(i)||utils.isArray(i)){const n=moment(a||new Date);return n.locale(i),n.format(e)}return moment(a||new Date).format(e)}var date=Object.freeze({__proto__:null,format_date:format_date}),helpers=Object.freeze({__proto__:null,html:html,object:object,string:string,comparison:comparison,date:date});class View{static mount(e){const a=this.loadOptions(),i=require("express-hbs");for(let[e,a]of Object.entries(helpers))for(let[e,n]of Object.entries(a))i.registerHelper(e,n);e.engine("hbs",i.express4({partialsDir:a.partials_dir,layoutsDir:a.layouts_dir,defaultLayout:a.default_layout,extname:a.extension})),e.set("view engine","hbs"),e.set("views",a.views_dir)}static loadOptions(){const i={views_dir:a.join(process.cwd(),"views"),partials_dir:a.join(process.cwd(),"views/partials"),layouts_dir:a.join(process.cwd(),"views/layout"),default_layout:a.join(process.cwd(),"views/layout/default.hbs"),extension:".hbs"},n=`${process.cwd()}/config/view`;return e.existsSync(`${n}.js`)?Object.assign(i,require(n).default||require(n)):i}}
3
+ n.version="2.29.1",t(Vi),n.fn=rs,n.min=Qi,n.max=Ki,n.now=Xi,n.utc=h,n.unix=cs,n.months=fs,n.isDate=u,n.locale=mi,n.invalid=g,n.duration=Mn,n.isMoment=k,n.weekdays=xs,n.parseZone=ls,n.localeData=vi,n.isDuration=on,n.monthsShort=vs,n.weekdaysMin=bs,n.defineLocale=hi,n.updateLocale=fi,n.locales=xi,n.weekdaysShort=gs,n.normalizeUnits=ne,n.relativeTimeRounding=io,n.relativeTimeThreshold=no,n.calendarFormat=Un,n.prototype=rs,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()}));function format_date(e,a,i){if(e=utils.isString(e)?e:"",utils.isString(i)||utils.isArray(i)){const n=moment(a||new Date);return n.locale(i),n.format(e)}return moment(a||new Date).format(e)}var date=Object.freeze({__proto__:null,format_date:format_date}),helpers=Object.freeze({__proto__:null,html:html,object:object,string:string,comparison:comparison,date:date});class View{static mount(e){const a=this.loadOptions(),i=require("express-hbs");for(let[e,a]of Object.entries(helpers))for(let[e,n]of Object.entries(a))i.registerHelper(e,n);e.engine("hbs",i.express4({partialsDir:a.partials_dir,layoutsDir:a.layouts_dir,defaultLayout:a.default_layout,extname:a.extension})),e.set("view engine","hbs"),e.set("views",a.views_dir),e.use(((e,i,n)=>{a.beforeRender&&a.beforeRender(i),n()}))}static loadOptions(){const i={views_dir:a.join(process.cwd(),"views"),partials_dir:a.join(process.cwd(),"views/partials"),layouts_dir:a.join(process.cwd(),"views/layout"),default_layout:a.join(process.cwd(),"views/layout/default.hbs"),extension:".hbs",beforeRender:e=>{}},n=`${process.cwd()}/config/view`;return e.existsSync(`${n}.js`)?Object.assign(i,require(n).default||require(n)):i}}
4
4
  /*!
5
5
  * cookie
6
6
  * Copyright(c) 2012-2014 Roman Shtylman
package/docs/index.html CHANGED
@@ -115,7 +115,7 @@
115
115
  </div>
116
116
  <hr class="mx-auto mx-lg-0 my-5">
117
117
  <p class="text-muted">
118
- Currently <a href="https://github.com/takuya-motoshima/express-sweet/releases/tag/v1.0.21" target="_blank">v1.0.21</a>
118
+ Currently <a href="https://github.com/takuya-motoshima/express-sweet/releases/tag/v1.0.22" target="_blank">v1.0.22</a>
119
119
  <span class="px-1">•</span>
120
120
  <a href="#quick-start">Quick Start</a>
121
121
  <span class="px-1">•</span>
@@ -687,14 +687,14 @@ module.exports = router;</code></pre>
687
687
  </div>
688
688
  <ul class="list-group list-group-flush">
689
689
  <li class="list-group-item">
690
- <div class="fw-bold"><code class="h5">views_dir</code></div>
690
+ <div class="fw-bold"><code>string</code>views_dir</div>
691
691
  <div class="ms-3">
692
692
  The directory path where the view will be placed.<br>
693
693
  The default is the <code>"views"</code> directory directly under the application root.
694
694
  </div>
695
695
  </li>
696
696
  <li class="list-group-item">
697
- <div class="fw-bold"><code class="h5">partials_dir</code></div>
697
+ <div class="fw-bold"><code>string</code>partials_dir</div>
698
698
  <div class="ms-3">
699
699
  The directory path where the reusable templates are located.<br>
700
700
  The default is the <code>"views/partials"</code> directory directly under the application root.<br>
@@ -702,14 +702,14 @@ module.exports = router;</code></pre>
702
702
  </div>
703
703
  </li>
704
704
  <li class="list-group-item">
705
- <div class="fw-bold"><code class="h5">layouts_dir</code></div>
705
+ <div class="fw-bold"><code>string</code>layouts_dir</div>
706
706
  <div class="ms-3">
707
707
  The directory path where the reusable base template is located.<br>
708
708
  The default is the <code>"views/layout"</code> directory directly under the application root.
709
709
  </div>
710
710
  </li>
711
711
  <li class="list-group-item">
712
- <div class="fw-bold"><code class="h5">default_layout</code></div>
712
+ <div class="fw-bold"><code>string</code>default_layout</div>
713
713
  <div class="ms-3">
714
714
  The path to the layout file used by default.<br>
715
715
  The default is the <code>"views/layout/default.*"</code> File directly under the application root.<br>
@@ -717,12 +717,36 @@ module.exports = router;</code></pre>
717
717
  </div>
718
718
  </li>
719
719
  <li class="list-group-item">
720
- <div class="fw-bold"><code class="h5">extension</code></div>
720
+ <div class="fw-bold"><code>string</code>extension</div>
721
721
  <div class="ms-3">
722
722
  Extension for templates and partials files.<br>
723
723
  The default is <code>".hbs"</code>.
724
724
  </div>
725
725
  </li>
726
+ <li class="list-group-item">
727
+ <div class="fw-bold"><code>(res: express.Response) =&gt; void</code>beforeRender</div>
728
+ <div class="ms-3">
729
+ Hook function just before the view is rendered.<br>
730
+ For example, you can set your own local variables that can be used within the view.<br>
731
+ <div class="highlight">
732
+ <pre><code class="js">/**
733
+ * Hook function just before the view is rendered.
734
+ * For example, you can set your own local variables that can be used within the view.
735
+ *
736
+ * @example
737
+ * // The message set here can be referenced in the view as {{message}}.
738
+ * beforeRender: res =&gt; {
739
+ * res.loclas.message = &#039;Hello World&#039;;
740
+ * }
741
+ *
742
+ * @type {(res: express.Response) =&gt; void}
743
+ */
744
+ beforeRender: res =&gt; {
745
+ res.locals.message = &#039;Hello World&#039;;
746
+ }</code></pre>
747
+ </div>
748
+ </div>
749
+ </li>
726
750
  </ul>
727
751
  <h2 id="views-syntax">Syntax</h2>
728
752
  <p>To mark where layout should insert page.</p>
@@ -3279,18 +3303,18 @@ await BookModel.query(&quot;SELECT * FROM book&quot;, {type: BookModel.QueryType
3279
3303
  </div>
3280
3304
  <ul class="list-group list-group-flush">
3281
3305
  <li class="list-group-item">
3282
- <div class="fw-bold h5"><code>boolean</code>enabled</div>
3306
+ <div class="fw-bold"><code>boolean</code>enabled</div>
3283
3307
  <div class="ms-3">
3284
3308
  Set to true to enable user authentication using <a href="https://www.passportjs.org/docs/" target="_blank">Passport middleware</a>.<br>
3285
3309
  User authentication is enabled (<code>true</code>) by default.
3286
3310
  </div>
3287
3311
  </li>
3288
3312
  <li class="list-group-item">
3289
- <div class="fw-bold h5"><code>&#039;memory&#039;|&#039;redis&#039;</code>session_store</div>
3313
+ <div class="fw-bold"><code>&#039;memory&#039;|&#039;redis&#039;</code>session_store</div>
3290
3314
  <div class="ms-3">The session store instance, defaults to a new MemoryStore(<code>memory</code>) instance.</div>
3291
3315
  </li>
3292
3316
  <li class="list-group-item">
3293
- <div class="fw-bold h5"><code>string|undefined</code>redis_host?</div>
3317
+ <div class="fw-bold"><code>string|undefined</code>redis_host?</div>
3294
3318
  <div class="ms-3">
3295
3319
  If the session is stored in <code>&quot;redis&quot;</code>, this field is required and should be set to the hostname of the Redis server.
3296
3320
  For example, to connect to redis on localhost on port <code>6379</code>, set <code>&quot;redis://localhost:6379&quot;</code>.
@@ -3299,28 +3323,28 @@ await BookModel.query(&quot;SELECT * FROM book&quot;, {type: BookModel.QueryType
3299
3323
  </div>
3300
3324
  </li>
3301
3325
  <li class="list-group-item">
3302
- <div class="fw-bold h5"><code>string</code>username</div>
3326
+ <div class="fw-bold"><code>string</code>username</div>
3303
3327
  <div class="ms-3">
3304
3328
  The login username field name used for authentication.<br>
3305
3329
  This should be set to the same value as the user field name in the POST body sent to the server and the user example name in the login user table.
3306
3330
  </div>
3307
3331
  </li>
3308
3332
  <li class="list-group-item">
3309
- <div class="fw-bold h5"><code>string</code>password</div>
3333
+ <div class="fw-bold"><code>string</code>password</div>
3310
3334
  <div class="ms-3">
3311
3335
  The login password field name used for authentication.<br>
3312
3336
  This should be set to the same value as the password field name in the POST body sent to the server and the password column name in the login user table.
3313
3337
  </div>
3314
3338
  </li>
3315
3339
  <li class="list-group-item">
3316
- <div class="fw-bold h5"><code>string</code>success_redirect</div>
3340
+ <div class="fw-bold"><code>string</code>success_redirect</div>
3317
3341
  <div class="ms-3">
3318
3342
  The URL to redirect to after successful authentication.<br>
3319
3343
  The default is the root URL (<code>/</code>).
3320
3344
  </div>
3321
3345
  </li>
3322
3346
  <li class="list-group-item">
3323
- <div class="fw-bold h5"><code>string</code>failure_redirect</div>
3347
+ <div class="fw-bold"><code>string</code>failure_redirect</div>
3324
3348
  <div class="ms-3">
3325
3349
  Specify the URL to redirect after logging out, or the URL to redirect when the logoff user requests a URL that only the logged-in user can access.<br>
3326
3350
  This usually specifies the URL of the login page.<br>
@@ -3328,7 +3352,7 @@ await BookModel.query(&quot;SELECT * FROM book&quot;, {type: BookModel.QueryType
3328
3352
  </div>
3329
3353
  </li>
3330
3354
  <li class="list-group-item">
3331
- <div class="fw-bold h5"><code>(username: string, password: string): Promise&lt;object|null&gt;</code>authenticate_user</div>
3355
+ <div class="fw-bold"><code>(username: string, password: string): Promise&lt;object|null&gt;</code>authenticate_user</div>
3332
3356
  <div class="ms-3">
3333
3357
  This hook is called when authenticating a user.<br>
3334
3358
  Please find the user information that owns the credentials based on the user name and password you received and return it.<br>
@@ -3349,7 +3373,7 @@ await BookModel.query(&quot;SELECT * FROM book&quot;, {type: BookModel.QueryType
3349
3373
  </div>
3350
3374
  </li>
3351
3375
  <li class="list-group-item">
3352
- <div class="fw-bold h5"><code>(id: number): Promise&lt;object&gt;</code>subscribe_user</div>
3376
+ <div class="fw-bold"><code>(id: number): Promise&lt;object&gt;</code>subscribe_user</div>
3353
3377
  <div class="ms-3">
3354
3378
  This hook is called when user authentication is successful.<br>
3355
3379
  Please search and return the authenticated user information to be set in the session based on the user ID of the parameter.<br>
@@ -3369,7 +3393,7 @@ await BookModel.query(&quot;SELECT * FROM book&quot;, {type: BookModel.QueryType
3369
3393
  </div>
3370
3394
  </li>
3371
3395
  <li class="list-group-item">
3372
- <div class="fw-bold h5"><code>(string|RegExp)[]</code>allow_unauthenticated</div>
3396
+ <div class="fw-bold"><code>(string|RegExp)[]</code>allow_unauthenticated</div>
3373
3397
  <div class="ms-3">
3374
3398
  By default, it requires an authenticated user for all requests.<br>
3375
3399
  You can use the <code>"allow_unauthenticated"</code> option to disable this behavior on certain requests.<br>
@@ -3384,7 +3408,7 @@ await BookModel.query(&quot;SELECT * FROM book&quot;, {type: BookModel.QueryType
3384
3408
  </div>
3385
3409
  </li>
3386
3410
  <li class="list-group-item">
3387
- <div class="fw-bold h5"><code>number</code>expiration</div>
3411
+ <div class="fw-bold"><code>number</code>expiration</div>
3388
3412
  <div class="ms-3">
3389
3413
  Specifies the time, in milliseconds, before the session expires.<br>
3390
3414
  The default is 24 hours (<code>86400000</code> milliseconds).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-sweet",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "Extend Express functionality with Express Sweet and start developing fast, minimal web applications.",
5
5
  "main": "dist/build.common.js",
6
6
  "module": "dist/build.esm.js",
@@ -70,7 +70,6 @@ export default interface {
70
70
  * The returned data will be set in the req.user property and the view's session variable.
71
71
  *
72
72
  * @example
73
- *
74
73
  * subscribe_user: async (id) => {
75
74
  * const UserModel = require('../models/UserModel');
76
75
  * return UserModel.findOne({
@@ -1,3 +1,4 @@
1
+ import express from 'express';
1
2
  /**
2
3
  * View's configuration interface.
3
4
  */
@@ -27,4 +28,17 @@ export default interface {
27
28
  * @type {string}
28
29
  */
29
30
  extension?: string;
31
+ /**
32
+ * Hook function just before the view is rendered.
33
+ * For example, you can set your own local variables that can be used within the view.
34
+ *
35
+ * @example
36
+ * // The message set here can be referenced in the view as {{message}}.
37
+ * beforeRender: res => {
38
+ * res.loclas.message = 'Hello World';
39
+ * }
40
+ *
41
+ * @type {(res: express.Response) => void}
42
+ */
43
+ beforeRender?: (res: express.Response) => void;
30
44
  }