Skip to content

Instantly share code, notes, and snippets.

@jtokash jtokash/nlpThings.js
Last active Feb 24, 2018

Embed
What would you like to do?
/*
Uses chrono (https://github.com/wanasit/chrono) to extract text related to time.
Usage:
Eat pizza tomorrow at 4 @food @yum #myproject
Will create a task called "Eat pizza" scheduled for 4pm tomorrow and add the food and yum tags in the myproject project.
*/
function processDraft(){
var text = draft.content;
if(editor.getSelectedText()){
text = editor.getSelectedText();
}
app.openURL(getThingsURL(text));
}
function getThingsURL(content){
var timeStuff = [];
var timeString = "";
var tags = [];
var projects = [];
var words = content.split(/[ ,]+/);
for(var i=0; i<words.length; i++){
if(words[i].startsWith("@")){
content = content.replace(words[i],"");
tags.push(words[i].substring(1));
}
if(words[i].startsWith("#")){
content = content.replace(words[i],"");
projects.push(words[i].substring(1));
}
}
var parsed = chrono.parse(content);
if(parsed.length > 0){
for(var i = 0; i< parsed.length; i++){
timeString += parsed[i].text+" ";
timeStuff.push(parsed[i].text);
content = content.replace(parsed[i].text,"");
}
}
if(timeString.length>0){
timeString="&when="+encodeURIComponent(timeString);
}
var tagString = "";
if(tags.length>0){
for(var i=0;i<tags.length;i++){
if(i>0){
tagString += ",";
}
tagString += tags[i];
}
tagString = "&tags="+encodeURIComponent(tagString);
}
var projectString = "";
if(projects.length>0){
for(var i=0;i<projects.length;i++){
projectString = projects[i];
}
projectString = "&list="+encodeURIComponent(projectString);
}
return "things:///add?title="+encodeURIComponent(content.trim())+timeString+tagString+projectString+"&reveal=true";
// things:///add?title=XX&notes=XX&when=XX&tags=XX&heading=XX&reveal=true
}
// Chrono, minified, below:
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.chrono = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
!function(e,d){"object"==typeof exports&&"undefined"!=typeof module?d(require("../moment")):"function"==typeof define&&define.amd?define(["moment"],d):d(e.moment)}(this,function(e){"use strict";return e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")},week:{dow:1,doy:4}})});
},{"../moment":2}],2:[function(require,module,exports){
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return Un.apply(null,arguments)}function e(t){return"[object Array]"===Object.prototype.toString.call(t)}function n(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function i(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){for(var n in e)r(e,n)&&(t[n]=e[n]);return r(e,"toString")&&(t.toString=e.toString),r(e,"valueOf")&&(t.valueOf=e.valueOf),t}function a(t,e,n,i){return kt(t,e,n,i,!0).utc()}function o(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function u(t){return null==t._pf&&(t._pf=o()),t._pf}function d(t){if(null==t._isValid){var e=u(t);t._isValid=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function l(t){var e=a(NaN);return null!=t?s(u(e),t):u(e).userInvalidated=!0,e}function c(t,e){var n,i,r;if(void 0!==e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),void 0!==e._i&&(t._i=e._i),void 0!==e._f&&(t._f=e._f),void 0!==e._l&&(t._l=e._l),void 0!==e._strict&&(t._strict=e._strict),void 0!==e._tzm&&(t._tzm=e._tzm),void 0!==e._isUTC&&(t._isUTC=e._isUTC),void 0!==e._offset&&(t._offset=e._offset),void 0!==e._pf&&(t._pf=u(e)),void 0!==e._locale&&(t._locale=e._locale),Wn.length>0)for(n in Wn)i=Wn[n],void 0!==(r=e[i])&&(t[i]=r);return t}function h(e){c(this,e),this._d=new Date(+e._d),!1===Gn&&(Gn=!0,t.updateOffset(this),Gn=!1)}function f(t){return t instanceof h||null!=t&&null!=t._isAMomentObject}function m(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function _(t,e,n){var i,r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),a=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&m(t[i])!==m(e[i]))&&a++;return a+s}function y(){}function p(t){return t?t.toLowerCase().replace("_","-"):t}function v(t){for(var e,n,i,r,s=0;s<t.length;){for(r=p(t[s]).split("-"),e=r.length,n=p(t[s+1]),n=n?n.split("-"):null;e>0;){if(i=g(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&_(r,n,!0)>=e-1)break;e--}s++}return null}function g(t){var e=null;if(!Fn[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=Cn._abbr,require("./locale/"+t),D(e)}catch(t){}return Fn[t]}function D(t,e){var n;return t&&(n=void 0===e?Y(t):M(t,e))&&(Cn=n),Cn._abbr}function M(t,e){return null!==e?(e.abbr=t,Fn[t]||(Fn[t]=new y),Fn[t].set(e),D(t),Fn[t]):(delete Fn[t],null)}function Y(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Cn;if(!e(t)){if(n=g(t))return n;t=[t]}return v(t)}function w(t,e){var n=t.toLowerCase();Pn[n]=Pn[n+"s"]=Pn[e]=t}function k(t){return"string"==typeof t?Pn[t]||Pn[t.toLowerCase()]:void 0}function T(t){var e,n,i={};for(n in t)r(t,n)&&(e=k(n))&&(i[e]=t[n]);return i}function S(e,n){return function(i){return null!=i?(O(this,e,i),t.updateOffset(this,n),this):b(this,e)}}function b(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function O(t,e,n){return t._d["set"+(t._isUTC?"UTC":"")+e](n)}function U(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=k(t),"function"==typeof this[t])return this[t](e);return this}function C(t,e,n){for(var i=""+Math.abs(t),r=t>=0;i.length<e;)i="0"+i;return(r?n?"+":"":"-")+i}function W(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(In[t]=r),e&&(In[e[0]]=function(){return C(r.apply(this,arguments),e[1],e[2])}),n&&(In[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function G(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function F(t){var e,n,i=t.match(Ln);for(e=0,n=i.length;e<n;e++)In[i[e]]?i[e]=In[i[e]]:i[e]=G(i[e]);return function(r){var s="";for(e=0;e<n;e++)s+=i[e]instanceof Function?i[e].call(r,t):i[e];return s}}function P(t,e){return t.isValid()?(e=L(e,t.localeData()),Hn[e]||(Hn[e]=F(e)),Hn[e](t)):t.localeData().invalidDate()}function L(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(xn.lastIndex=0;i>=0&&xn.test(t);)t=t.replace(xn,n),xn.lastIndex=0,i-=1;return t}function x(t,e,n){Kn[t]="function"==typeof e?e:function(t){return t&&n?n:e}}function H(t,e){return r(Kn,t)?Kn[t](e._strict,e._locale):new RegExp(I(t))}function I(t){return t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function A(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(i=function(t,n){n[e]=m(t)}),n=0;n<t.length;n++)ti[t[n]]=i}function z(t,e){A(t,function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)})}function Z(t,e,n){null!=e&&r(ti,t)&&ti[t](e,n._a,n,t)}function E(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function N(t){return this._months[t.month()]}function j(t){return this._monthsShort[t.month()]}function V(t,e,n){var i,r,s;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=a([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function q(t,e){var n;return"string"==typeof e&&"number"!=typeof(e=t.localeData().monthsParse(e))?t:(n=Math.min(t.date(),E(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t)}function J(e){return null!=e?(q(this,e),t.updateOffset(this,!0),this):b(this,"Month")}function $(){return E(this.year(),this.month())}function R(t){var e,n=t._a;return n&&-2===u(t).overflow&&(e=n[ni]<0||n[ni]>11?ni:n[ii]<1||n[ii]>E(n[ei],n[ni])?ii:n[ri]<0||n[ri]>24||24===n[ri]&&(0!==n[si]||0!==n[ai]||0!==n[oi])?ri:n[si]<0||n[si]>59?si:n[ai]<0||n[ai]>59?ai:n[oi]<0||n[oi]>999?oi:-1,u(t)._overflowDayOfYear&&(e<ei||e>ii)&&(e=ii),u(t).overflow=e),t}function B(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function Q(t,e){var n=!0,i=t+"\n"+(new Error).stack;return s(function(){return n&&(B(i),n=!1),e.apply(this,arguments)},e)}function X(t,e){li[t]||(B(e),li[t]=!0)}function K(t){var e,n,i=t._i,r=ci.exec(i);if(r){for(u(t).iso=!0,e=0,n=hi.length;e<n;e++)if(hi[e][1].exec(i)){t._f=hi[e][0]+(r[6]||" ");break}for(e=0,n=fi.length;e<n;e++)if(fi[e][1].exec(i)){t._f+=fi[e][0];break}i.match(Bn)&&(t._f+="Z"),vt(t)}else t._isValid=!1}function tt(e){var n=mi.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));K(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e))}function et(t,e,n,i,r,s,a){var o=new Date(t,e,n,i,r,s,a);return t<1970&&o.setFullYear(t),o}function nt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<1970&&e.setUTCFullYear(t),e}function it(t){return rt(t)?366:365}function rt(t){return t%4==0&&t%100!=0||t%400==0}function st(){return rt(this.year())}function at(t,e,n){var i,r=n-e,s=n-t.day();return s>r&&(s-=7),s<r-7&&(s+=7),i=Tt(t).add(s,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function ot(t){return at(t,this._week.dow,this._week.doy).week}function ut(){return this._week.dow}function dt(){return this._week.doy}function lt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function ct(t){var e=at(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function ht(t,e,n,i,r){var s,a,o=nt(t,0,1).getUTCDay();return o=0===o?7:o,n=null!=n?n:r,s=r-o+(o>i?7:0)-(o<r?7:0),a=7*(e-1)+(n-r)+s+1,{year:a>0?t:t-1,dayOfYear:a>0?a:it(t-1)+a}}function ft(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function mt(t,e,n){return null!=t?t:null!=e?e:n}function _t(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function yt(t){var e,n,i,r,s=[];if(!t._d){for(i=_t(t),t._w&&null==t._a[ii]&&null==t._a[ni]&&pt(t),t._dayOfYear&&(r=mt(t._a[ei],i[ei]),t._dayOfYear>it(r)&&(u(t)._overflowDayOfYear=!0),n=nt(r,0,t._dayOfYear),t._a[ni]=n.getUTCMonth(),t._a[ii]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[ri]&&0===t._a[si]&&0===t._a[ai]&&0===t._a[oi]&&(t._nextDay=!0,t._a[ri]=0),t._d=(t._useUTC?nt:et).apply(null,s),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[ri]=24)}}function pt(t){var e,n,i,r,s,a,o;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(s=1,a=4,n=mt(e.GG,t._a[ei],at(Tt(),1,4).year),i=mt(e.W,1),r=mt(e.E,1)):(s=t._locale._week.dow,a=t._locale._week.doy,n=mt(e.gg,t._a[ei],at(Tt(),s,a).year),i=mt(e.w,1),null!=e.d?(r=e.d)<s&&++i:r=null!=e.e?e.e+s:s),o=ht(n,i,r,a,s),t._a[ei]=o.year,t._dayOfYear=o.dayOfYear}function vt(e){if(e._f===t.ISO_8601)return void K(e);e._a=[],u(e).empty=!0;var n,i,r,s,a,o=""+e._i,d=o.length,l=0;for(r=L(e._f,e._locale).match(Ln)||[],n=0;n<r.length;n++)s=r[n],i=(o.match(H(s,e))||[])[0],i&&(a=o.substr(0,o.indexOf(i)),a.length>0&&u(e).unusedInput.push(a),o=o.slice(o.indexOf(i)+i.length),l+=i.length),In[s]?(i?u(e).empty=!1:u(e).unusedTokens.push(s),Z(s,i,e)):e._strict&&!i&&u(e).unusedTokens.push(s);u(e).charsLeftOver=d-l,o.length>0&&u(e).unusedInput.push(o),!0===u(e).bigHour&&e._a[ri]<=12&&e._a[ri]>0&&(u(e).bigHour=void 0),e._a[ri]=gt(e._locale,e._a[ri],e._meridiem),yt(e),R(e)}function gt(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Dt(t){var e,n,i,r,a;if(0===t._f.length)return u(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)a=0,e=c({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],vt(e),d(e)&&(a+=u(e).charsLeftOver,a+=10*u(e).unusedTokens.length,u(e).score=a,(null==i||a<i)&&(i=a,n=e));s(t,n||e)}function Mt(t){if(!t._d){var e=T(t._i);t._a=[e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],yt(t)}}function Yt(t){var i,r=t._i,s=t._f;return t._locale=t._locale||Y(t._l),null===r||void 0===s&&""===r?l({nullInput:!0}):("string"==typeof r&&(t._i=r=t._locale.preparse(r)),f(r)?new h(R(r)):(e(s)?Dt(t):s?vt(t):n(r)?t._d=r:wt(t),i=new h(R(t)),i._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i))}function wt(r){var s=r._i;void 0===s?r._d=new Date:n(s)?r._d=new Date(+s):"string"==typeof s?tt(r):e(s)?(r._a=i(s.slice(0),function(t){return parseInt(t,10)}),yt(r)):"object"==typeof s?Mt(r):"number"==typeof s?r._d=new Date(s):t.createFromInputFallback(r)}function kt(t,e,n,i,r){var s={};return"boolean"==typeof n&&(i=n,n=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=n,s._i=t,s._f=e,s._strict=i,Yt(s)}function Tt(t,e,n,i){return kt(t,e,n,i,!1)}function St(t,n){var i,r;if(1===n.length&&e(n[0])&&(n=n[0]),!n.length)return Tt();for(i=n[0],r=1;r<n.length;++r)n[r][t](i)&&(i=n[r]);return i}function bt(){return St("isBefore",[].slice.call(arguments,0))}function Ot(){return St("isAfter",[].slice.call(arguments,0))}function Ut(t){var e=T(t),n=e.year||0,i=e.quarter||0,r=e.month||0,s=e.week||0,a=e.day||0,o=e.hour||0,u=e.minute||0,d=e.second||0,l=e.millisecond||0;this._milliseconds=+l+1e3*d+6e4*u+36e5*o,this._days=+a+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=Y(),this._bubble()}function Ct(t){return t instanceof Ut}function Wt(t,e){W(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+C(~~(t/60),2)+e+C(~~t%60,2)})}function Gt(t){var e=(t||"").match(Bn)||[],n=e[e.length-1]||[],i=(n+"").match(gi)||["-",0,0],r=60*i[1]+m(i[2]);return"+"===i[0]?r:-r}function Ft(e,i){var r,s;return i._isUTC?(r=i.clone(),s=(f(e)||n(e)?+e:+Tt(e))-+r,r._d.setTime(+r._d+s),t.updateOffset(r,!1),r):Tt(e).local()}function Pt(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Lt(e,n){var i,r=this._offset||0;return null!=e?("string"==typeof e&&(e=Gt(e)),Math.abs(e)<16&&(e*=60),!this._isUTC&&n&&(i=Pt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!n||this._changeInProgress?Qt(this,qt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:Pt(this)}function xt(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Ht(t){return this.utcOffset(0,t)}function It(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Pt(this),"m")),this}function At(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Gt(this._i)),this}function zt(t){return t=t?Tt(t).utcOffset():0,(this.utcOffset()-t)%60==0}function Zt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Et(){if(this._a){var t=this._isUTC?a(this._a):Tt(this._a);return this.isValid()&&_(this._a,t.toArray())>0}return!1}function Nt(){return!this._isUTC}function jt(){return this._isUTC}function Vt(){return this._isUTC&&0===this._offset}function qt(t,e){var n,i,s,a=t,o=null;return Ct(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(a={},e?a[e]=t:a.milliseconds=t):(o=Di.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:m(o[ii])*n,h:m(o[ri])*n,m:m(o[si])*n,s:m(o[ai])*n,ms:m(o[oi])*n}):(o=Mi.exec(t))?(n="-"===o[1]?-1:1,a={y:Jt(o[2],n),M:Jt(o[3],n),d:Jt(o[4],n),h:Jt(o[5],n),m:Jt(o[6],n),s:Jt(o[7],n),w:Jt(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(s=Rt(Tt(a.from),Tt(a.to)),a={},a.ms=s.milliseconds,a.M=s.months),i=new Ut(a),Ct(t)&&r(t,"_locale")&&(i._locale=t._locale),i}function Jt(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function $t(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Rt(t,e){var n;return e=Ft(e,t),t.isBefore(e)?n=$t(t,e):(n=$t(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function Bt(t,e){return function(n,i){var r,s;return null===i||isNaN(+i)||(X(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),s=n,n=i,i=s),n="string"==typeof n?+n:n,r=qt(n,i),Qt(this,r,t),this}}function Qt(e,n,i,r){var s=n._milliseconds,a=n._days,o=n._months;r=null==r||r,s&&e._d.setTime(+e._d+s*i),a&&O(e,"Date",b(e,"Date")+a*i),o&&q(e,b(e,"Month")+o*i),r&&t.updateOffset(e,a||o)}function Xt(t){var e=t||Tt(),n=Ft(e,this).startOf("day"),i=this.diff(n,"days",!0),r=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse";return this.format(this.localeData().calendar(r,this,Tt(e)))}function Kt(){return new h(this)}function te(t,e){return e=k(void 0!==e?e:"millisecond"),"millisecond"===e?(t=f(t)?t:Tt(t),+this>+t):(f(t)?+t:+Tt(t))<+this.clone().startOf(e)}function ee(t,e){var n;return e=k(void 0!==e?e:"millisecond"),"millisecond"===e?(t=f(t)?t:Tt(t),+this<+t):(n=f(t)?+t:+Tt(t),+this.clone().endOf(e)<n)}function ne(t,e,n){return this.isAfter(t,n)&&this.isBefore(e,n)}function ie(t,e){var n;return e=k(e||"millisecond"),"millisecond"===e?(t=f(t)?t:Tt(t),+this==+t):(n=+Tt(t),+this.clone().startOf(e)<=n&&n<=+this.clone().endOf(e))}function re(t){return t<0?Math.ceil(t):Math.floor(t)}function se(t,e,n){var i,r,s=Ft(t,this),a=6e4*(s.utcOffset()-this.utcOffset());return e=k(e),"year"===e||"month"===e||"quarter"===e?(r=ae(this,s),"quarter"===e?r/=3:"year"===e&&(r/=12)):(i=this-s,r="second"===e?i/1e3:"minute"===e?i/6e4:"hour"===e?i/36e5:"day"===e?(i-a)/864e5:"week"===e?(i-a)/6048e5:i),n?r:re(r)}function ae(t,e){var n,i,r=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(r,"months");return e-s<0?(n=t.clone().add(r-1,"months"),i=(e-s)/(s-n)):(n=t.clone().add(r+1,"months"),i=(e-s)/(n-s)),-(r+i)}function oe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ue(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():P(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):P(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function de(e){var n=P(this,e||t.defaultFormat);return this.localeData().postformat(n)}function le(t,e){return this.isValid()?qt({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ce(t){return this.from(Tt(),t)}function he(t,e){return this.isValid()?qt({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function fe(t){return this.to(Tt(),t)}function me(t){var e;return void 0===t?this._locale._abbr:(e=Y(t),null!=e&&(this._locale=e),this)}function _e(){return this._locale}function ye(t){switch(t=k(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function pe(t){return t=k(t),void 0===t||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")}function ve(){return+this._d-6e4*(this._offset||0)}function ge(){return Math.floor(+this/1e3)}function De(){return this._offset?new Date(+this):this._d}function Me(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Ye(){return d(this)}function we(){return s({},u(this))}function ke(){return u(this).overflow}function Te(t,e){W(0,[t,t.length],0,e)}function Se(t,e,n){return at(Tt([t,11,31+e-n]),e,n).week}function be(t){var e=at(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")}function Oe(t){var e=at(this,1,4).year;return null==t?e:this.add(t-e,"y")}function Ue(){return Se(this.year(),1,4)}function Ce(){var t=this.localeData()._week;return Se(this.year(),t.dow,t.doy)}function We(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Ge(t,e){if("string"==typeof t)if(isNaN(t)){if("number"!=typeof(t=e.weekdaysParse(t)))return null}else t=parseInt(t,10);return t}function Fe(t){return this._weekdays[t.day()]}function Pe(t){return this._weekdaysShort[t.day()]}function Le(t){return this._weekdaysMin[t.day()]}function xe(t){var e,n,i;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;e<7;e++)if(this._weekdaysParse[e]||(n=Tt([2e3,1]).day(e),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e}function He(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ge(t,this.localeData()),this.add(t-e,"d")):e}function Ie(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ae(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)}function ze(t,e){W(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Ze(t,e){return e._meridiemParse}function Ee(t){return"p"===(t+"").toLowerCase().charAt(0)}function Ne(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function je(t){W(0,[t,3],0,"millisecond")}function Ve(){return this._isUTC?"UTC":""}function qe(){return this._isUTC?"Coordinated Universal Time":""}function Je(t){return Tt(1e3*t)}function $e(){return Tt.apply(null,arguments).parseZone()}function Re(t,e,n){var i=this._calendar[t];return"function"==typeof i?i.call(e,n):i}function Be(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e}function Qe(){return this._invalidDate}function Xe(t){return this._ordinal.replace("%d",t)}function Ke(t){return t}function tn(t,e,n,i){var r=this._relativeTime[n];return"function"==typeof r?r(t,e,n,i):r.replace(/%d/i,t)}function en(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)}function nn(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function rn(t,e,n,i){var r=Y(),s=a().set(i,e);return r[n](s,t)}function sn(t,e,n,i,r){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return rn(t,e,n,r);var s,a=[];for(s=0;s<i;s++)a[s]=rn(t,s,n,r);return a}function an(t,e){return sn(t,e,"months",12,"month")}function on(t,e){return sn(t,e,"monthsShort",12,"month")}function un(t,e){return sn(t,e,"weekdays",7,"day")}function dn(t,e){return sn(t,e,"weekdaysShort",7,"day")}function ln(t,e){return sn(t,e,"weekdaysMin",7,"day")}function cn(){var t=this._data;return this._milliseconds=Zi(this._milliseconds),this._days=Zi(this._days),this._months=Zi(this._months),t.milliseconds=Zi(t.milliseconds),t.seconds=Zi(t.seconds),t.minutes=Zi(t.minutes),t.hours=Zi(t.hours),t.months=Zi(t.months),t.years=Zi(t.years),this}function hn(t,e,n,i){var r=qt(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function fn(t,e){return hn(this,t,e,1)}function mn(t,e){return hn(this,t,e,-1)}function _n(){var t,e,n,i=this._milliseconds,r=this._days,s=this._months,a=this._data,o=0;return a.milliseconds=i%1e3,t=re(i/1e3),a.seconds=t%60,e=re(t/60),a.minutes=e%60,n=re(e/60),a.hours=n%24,r+=re(n/24),o=re(yn(r)),r-=re(pn(o)),s+=re(r/30),r%=30,o+=re(s/12),s%=12,a.days=r,a.months=s,a.years=o,this}function yn(t){return 400*t/146097}function pn(t){return 146097*t/400}function vn(t){var e,n,i=this._milliseconds;if("month"===(t=k(t))||"year"===t)return e=this._days+i/864e5,n=this._months+12*yn(e),"month"===t?n:n/12;switch(e=this._days+Math.round(pn(this._months/12)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function gn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12)}function Dn(t){return function(){return this.as(t)}}function Mn(t){return t=k(t),this[t+"s"]()}function Yn(t){return function(){return this._data[t]}}function wn(){return re(this.days()/7)}function kn(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function Tn(t,e,n){var i=qt(t).abs(),r=ir(i.as("s")),s=ir(i.as("m")),a=ir(i.as("h")),o=ir(i.as("d")),u=ir(i.as("M")),d=ir(i.as("y")),l=r<rr.s&&["s",r]||1===s&&["m"]||s<rr.m&&["mm",s]||1===a&&["h"]||a<rr.h&&["hh",a]||1===o&&["d"]||o<rr.d&&["dd",o]||1===u&&["M"]||u<rr.M&&["MM",u]||1===d&&["y"]||["yy",d];return l[2]=e,l[3]=+t>0,l[4]=n,kn.apply(null,l)}function Sn(t,e){return void 0!==rr[t]&&(void 0===e?rr[t]:(rr[t]=e,!0))}function bn(t){var e=this.localeData(),n=Tn(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function On(){var t=sr(this.years()),e=sr(this.months()),n=sr(this.days()),i=sr(this.hours()),r=sr(this.minutes()),s=sr(this.seconds()+this.milliseconds()/1e3),a=this.asSeconds();return a?(a<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(i||r||s?"T":"")+(i?i+"H":"")+(r?r+"M":"")+(s?s+"S":""):"P0D"}var Un,Cn,Wn=t.momentProperties=[],Gn=!1,Fn={},Pn={},Ln=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,xn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Hn={},In={},An=/\d/,zn=/\d\d/,Zn=/\d{3}/,En=/\d{4}/,Nn=/[+-]?\d{6}/,jn=/\d\d?/,Vn=/\d{1,3}/,qn=/\d{1,4}/,Jn=/[+-]?\d{1,6}/,$n=/\d+/,Rn=/[+-]?\d+/,Bn=/Z|[+-]\d\d:?\d\d/gi,Qn=/[+-]?\d+(\.\d{1,3})?/,Xn=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Kn={},ti={},ei=0,ni=1,ii=2,ri=3,si=4,ai=5,oi=6;W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),W("MMMM",0,0,function(t){return this.localeData().months(this,t)}),w("month","M"),x("M",jn),x("MM",jn,zn),x("MMM",Xn),x("MMMM",Xn),A(["M","MM"],function(t,e){e[ni]=m(t)-1}),A(["MMM","MMMM"],function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[ni]=r:u(n).invalidMonth=t});var ui="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),di="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),li={};t.suppressDeprecationWarnings=!1;var ci=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,hi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],fi=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],mi=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=Q("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),w("year","y"),x("Y",Rn),x("YY",jn,zn),x("YYYY",qn,En),x("YYYYY",Jn,Nn),x("YYYYYY",Jn,Nn),A(["YYYY","YYYYY","YYYYYY"],ei),A("YY",function(e,n){n[ei]=t.parseTwoDigitYear(e)}),t.parseTwoDigitYear=function(t){return m(t)+(m(t)>68?1900:2e3)};var _i=S("FullYear",!1);W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),w("week","w"),w("isoWeek","W"),x("w",jn),x("ww",jn,zn),x("W",jn),x("WW",jn,zn),z(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=m(t)});var yi={dow:0,doy:6};W("DDD",["DDDD",3],"DDDo","dayOfYear"),w("dayOfYear","DDD"),x("DDD",Vn),x("DDDD",Zn),A(["DDD","DDDD"],function(t,e,n){n._dayOfYear=m(t)}),t.ISO_8601=function(){};var pi=Q("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=Tt.apply(null,arguments);return t<this?this:t}),vi=Q("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=Tt.apply(null,arguments);return t>this?this:t});Wt("Z",":"),Wt("ZZ",""),x("Z",Bn),x("ZZ",Bn),A(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Gt(t)});var gi=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Di=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Mi=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;qt.fn=Ut.prototype;var Yi=Bt(1,"add"),wi=Bt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var ki=Q("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Te("gggg","weekYear"),Te("ggggg","weekYear"),Te("GGGG","isoWeekYear"),Te("GGGGG","isoWeekYear"),w("weekYear","gg"),w("isoWeekYear","GG"),x("G",Rn),x("g",Rn),x("GG",jn,zn),x("gg",jn,zn),x("GGGG",qn,En),x("gggg",qn,En),x("GGGGG",Jn,Nn),x("ggggg",Jn,Nn),z(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=m(t)}),z(["gg","GG"],function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)}),W("Q",0,0,"quarter"),w("quarter","Q"),x("Q",An),A("Q",function(t,e){e[ni]=3*(m(t)-1)}),W("D",["DD",2],"Do","date"),w("date","D"),x("D",jn),x("DD",jn,zn),x("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),A(["D","DD"],ii),A("Do",function(t,e){e[ii]=m(t.match(jn)[0],10)});var Ti=S("Date",!0);W("d",0,"do","day"),W("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),W("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),W("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),w("day","d"),w("weekday","e"),w("isoWeekday","E"),x("d",jn),x("e",jn),x("E",jn),x("dd",Xn),x("ddd",Xn),x("dddd",Xn),z(["dd","ddd","dddd"],function(t,e,n){var i=n._locale.weekdaysParse(t);null!=i?e.d=i:u(n).invalidWeekday=t}),z(["d","e","E"],function(t,e,n,i){e[i]=m(t)});var Si="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Oi="Su_Mo_Tu_We_Th_Fr_Sa".split("_");W("H",["HH",2],0,"hour"),W("h",["hh",2],0,function(){return this.hours()%12||12}),ze("a",!0),ze("A",!1),w("hour","h"),x("a",Ze),x("A",Ze),x("H",jn),x("h",jn),x("HH",jn,zn),x("hh",jn,zn),A(["H","HH"],ri),A(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),A(["h","hh"],function(t,e,n){e[ri]=m(t),u(n).bigHour=!0});var Ui=/[ap]\.?m?\.?/i,Ci=S("Hours",!0);W("m",["mm",2],0,"minute"),w("minute","m"),x("m",jn),x("mm",jn,zn),A(["m","mm"],si);var Wi=S("Minutes",!1);W("s",["ss",2],0,"second"),w("second","s"),x("s",jn),x("ss",jn,zn),A(["s","ss"],ai);var Gi=S("Seconds",!1);W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),je("SSS"),je("SSSS"),w("millisecond","ms"),x("S",Vn,An),x("SS",Vn,zn),x("SSS",Vn,Zn),x("SSSS",$n),A(["S","SS","SSS","SSSS"],function(t,e){e[oi]=m(1e3*("0."+t))});var Fi=S("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var Pi=h.prototype;Pi.add=Yi,Pi.calendar=Xt,Pi.clone=Kt,Pi.diff=se,Pi.endOf=pe,Pi.format=de,Pi.from=le,Pi.fromNow=ce,Pi.to=he,Pi.toNow=fe,Pi.get=U,Pi.invalidAt=ke,Pi.isAfter=te,Pi.isBefore=ee,Pi.isBetween=ne,Pi.isSame=ie,Pi.isValid=Ye,Pi.lang=ki,Pi.locale=me,Pi.localeData=_e,Pi.max=vi,Pi.min=pi,Pi.parsingFlags=we,Pi.set=U,Pi.startOf=ye,Pi.subtract=wi,Pi.toArray=Me,Pi.toDate=De,Pi.toISOString=ue,Pi.toJSON=ue,Pi.toString=oe,Pi.unix=ge,Pi.valueOf=ve,Pi.year=_i,Pi.isLeapYear=st,Pi.weekYear=be,Pi.isoWeekYear=Oe,Pi.quarter=Pi.quarters=We,Pi.month=J,Pi.daysInMonth=$,Pi.week=Pi.weeks=lt,Pi.isoWeek=Pi.isoWeeks=ct,Pi.weeksInYear=Ce,Pi.isoWeeksInYear=Ue,Pi.date=Ti,Pi.day=Pi.days=He,Pi.weekday=Ie,Pi.isoWeekday=Ae,Pi.dayOfYear=ft,Pi.hour=Pi.hours=Ci,Pi.minute=Pi.minutes=Wi,Pi.second=Pi.seconds=Gi,Pi.millisecond=Pi.milliseconds=Fi,Pi.utcOffset=Lt,Pi.utc=Ht,Pi.local=It,Pi.parseZone=At,Pi.hasAlignedHourOffset=zt,Pi.isDST=Zt,Pi.isDSTShifted=Et,Pi.isLocal=Nt,Pi.isUtcOffset=jt,Pi.isUtc=Vt,Pi.isUTC=Vt,Pi.zoneAbbr=Ve,Pi.zoneName=qe,Pi.dates=Q("dates accessor is deprecated. Use date instead.",Ti),Pi.months=Q("months accessor is deprecated. Use month instead",J),Pi.years=Q("years accessor is deprecated. Use year instead",_i),Pi.zone=Q("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",xt);var Li=Pi,xi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Hi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},Ii=/\d{1,2}/,Ai={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},zi=y.prototype;zi._calendar=xi,zi.calendar=Re,zi._longDateFormat=Hi,zi.longDateFormat=Be,zi._invalidDate="Invalid date",zi.invalidDate=Qe,zi._ordinal="%d",zi.ordinal=Xe,zi._ordinalParse=Ii,zi.preparse=Ke,
zi.postformat=Ke,zi._relativeTime=Ai,zi.relativeTime=tn,zi.pastFuture=en,zi.set=nn,zi.months=N,zi._months=ui,zi.monthsShort=j,zi._monthsShort=di,zi.monthsParse=V,zi.week=ot,zi._week=yi,zi.firstDayOfYear=dt,zi.firstDayOfWeek=ut,zi.weekdays=Fe,zi._weekdays=Si,zi.weekdaysMin=Le,zi._weekdaysMin=Oi,zi.weekdaysShort=Pe,zi._weekdaysShort=bi,zi.weekdaysParse=xe,zi.isPM=Ee,zi._meridiemParse=Ui,zi.meridiem=Ne,D("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===m(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),t.lang=Q("moment.lang is deprecated. Use moment.locale instead.",D),t.langData=Q("moment.langData is deprecated. Use moment.localeData instead.",Y);var Zi=Math.abs,Ei=Dn("ms"),Ni=Dn("s"),ji=Dn("m"),Vi=Dn("h"),qi=Dn("d"),Ji=Dn("w"),$i=Dn("M"),Ri=Dn("y"),Bi=Yn("milliseconds"),Qi=Yn("seconds"),Xi=Yn("minutes"),Ki=Yn("hours"),tr=Yn("days"),er=Yn("months"),nr=Yn("years"),ir=Math.round,rr={s:45,m:45,h:22,d:26,M:11},sr=Math.abs,ar=Ut.prototype;return ar.abs=cn,ar.add=fn,ar.subtract=mn,ar.as=vn,ar.asMilliseconds=Ei,ar.asSeconds=Ni,ar.asMinutes=ji,ar.asHours=Vi,ar.asDays=qi,ar.asWeeks=Ji,ar.asMonths=$i,ar.asYears=Ri,ar.valueOf=gn,ar._bubble=_n,ar.get=Mn,ar.milliseconds=Bi,ar.seconds=Qi,ar.minutes=Xi,ar.hours=Ki,ar.days=tr,ar.weeks=wn,ar.months=er,ar.years=nr,ar.humanize=bn,ar.toISOString=On,ar.toString=On,ar.toJSON=On,ar.locale=me,ar.localeData=_e,ar.toIsoString=Q("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",On),ar.lang=ki,W("X",0,0,"unix"),W("x",0,0,"valueOf"),x("x",Rn),x("X",Qn),A("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),A("x",function(t,e,n){n._d=new Date(m(t))}),t.version="2.10.3",function(t){Un=t}(Tt),t.fn=Li,t.min=bt,t.max=Ot,t.utc=a,t.unix=Je,t.months=an,t.isDate=n,t.locale=D,t.invalid=l,t.duration=qt,t.isMoment=f,t.weekdays=un,t.parseZone=$e,t.localeData=Y,t.isDuration=Ct,t.monthsShort=on,t.weekdaysMin=ln,t.defineLocale=M,t.weekdaysShort=dn,t.normalizeUnits=k,t.relativeTimeThreshold=Sn,t});
},{}],3:[function(require,module,exports){
var options=exports.options=require("./options");exports.parser=require("./parsers/parser"),exports.refiner=require("./refiners/refiner"),exports.Parser=exports.parser.Parser,exports.Refiner=exports.refiner.Refiner,exports.Filter=exports.refiner.Filter,exports.ParsedResult=require("./result").ParsedResult,exports.ParsedComponents=require("./result").ParsedComponents;var Chrono=function(o){o=o||exports.options.casualOption(),this.option=o,this.parsers=new Object(o.parsers),this.refiners=new Object(o.refiners)};Chrono.prototype.parse=function(o,e,r){e=e||new Date,r=r||{},r.forwardDate=r.forwardDate||r.forwardDate;var s=[];return this.parsers.forEach(function(n){var t=n.execute(o,e,r);s=s.concat(t)}),s.sort(function(o,e){return o.index-e.index}),this.refiners.forEach(function(e){s=e.refine(o,s,r)}),s},Chrono.prototype.parseDate=function(o,e,r){var s=this.parse(o,e,r);return s.length>0?s[0].start.date():null},exports.Chrono=Chrono,exports.strict=new Chrono(options.strictOption()),exports.casual=new Chrono(options.casualOption()),exports.en=new Chrono(options.mergeOptions([options.en.casual,options.commonPostProcessing])),exports.en_GB=new Chrono(options.mergeOptions([options.en_GB.casual,options.commonPostProcessing])),exports.de=new Chrono(options.mergeOptions([options.de.casual,options.en,options.commonPostProcessing])),exports.es=new Chrono(options.mergeOptions([options.es.casual,options.en,options.commonPostProcessing])),exports.fr=new Chrono(options.mergeOptions([options.fr.casual,options.en,options.commonPostProcessing])),exports.ja=new Chrono(options.mergeOptions([options.ja.casual,options.en,options.commonPostProcessing])),exports.parse=function(){return exports.casual.parse.apply(exports.casual,arguments)},exports.parseDate=function(){return exports.casual.parseDate.apply(exports.casual,arguments)};
},{"./options":4,"./parsers/parser":50,"./refiners/refiner":64,"./result":65}],4:[function(require,module,exports){
var parser=require("./parsers/parser"),refiner=require("./refiners/refiner");exports.mergeOptions=function(e){var r={},a={parsers:[],refiners:[]};return e.forEach(function(e){e.call&&(e=e.call()),e.parsers&&e.parsers.forEach(function(e){r[e.constructor]||(a.parsers.push(e),r[e.constructor]=!0)}),e.refiners&&e.refiners.forEach(function(e){r[e.constructor]||(a.refiners.push(e),r[e.constructor]=!0)})}),a},exports.commonPostProcessing=function(){return{refiners:[new refiner.ExtractTimezoneOffsetRefiner,new refiner.ExtractTimezoneAbbrRefiner,new refiner.UnlikelyFormatFilter]}},exports.strictOption=function(){var e={strict:!0};return exports.mergeOptions([exports.en(e),exports.de(e),exports.es(e),exports.fr(e),exports.ja(e),exports.zh,exports.commonPostProcessing])},exports.casualOption=function(){return exports.mergeOptions([exports.en.casual,exports.de({strict:!0}),exports.es.casual,exports.fr.casual,exports.ja.casual,exports.zh,exports.commonPostProcessing])},exports.de=function(e){return{parsers:[new parser.DEDeadlineFormatParser(e),new parser.DEMonthNameLittleEndianParser(e),new parser.DEMonthNameParser(e),new parser.DESlashDateFormatParser(e),new parser.DETimeAgoFormatParser(e),new parser.DETimeExpressionParser(e)],refiners:[new refiner.OverlapRemovalRefiner,new refiner.ForwardDateRefiner,new refiner.DEMergeDateTimeRefiner,new refiner.DEMergeDateRangeRefiner]}},exports.de.casual=function(){var e=exports.de({strict:!1});return e.parsers.unshift(new parser.DECasualDateParser),e.parsers.unshift(new parser.DEWeekdayParser),e},exports.en=function(e){return{parsers:[new parser.ENISOFormatParser(e),new parser.ENDeadlineFormatParser(e),new parser.ENMonthNameLittleEndianParser(e),new parser.ENMonthNameMiddleEndianParser(e),new parser.ENMonthNameParser(e),new parser.ENSlashDateFormatParser(e),new parser.ENSlashDateFormatStartWithYearParser(e),new parser.ENSlashMonthFormatParser(e),new parser.ENTimeAgoFormatParser(e),new parser.ENTimeLaterFormatParser(e),new parser.ENTimeExpressionParser(e)],refiners:[new refiner.OverlapRemovalRefiner,new refiner.ForwardDateRefiner,new refiner.ENMergeDateTimeRefiner,new refiner.ENMergeDateRangeRefiner,new refiner.ENPrioritizeSpecificDateRefiner]}},exports.en.casual=function(e){e=e||{},e.strict=!1;var r=exports.en(e);return r.parsers.unshift(new parser.ENCasualDateParser),r.parsers.unshift(new parser.ENCasualTimeParser),r.parsers.unshift(new parser.ENWeekdayParser),r.parsers.unshift(new parser.ENRelativeDateFormatParser),r},exports.en_GB=function(e){return e=e||{},e.littleEndian=!0,exports.en(e)},exports.en_GB.casual=function(e){return e=e||{},e.littleEndian=!0,exports.en.casual(e)},exports.ja=function(){return{parsers:[new parser.JPStandardParser],refiners:[new refiner.OverlapRemovalRefiner,new refiner.ForwardDateRefiner,new refiner.JPMergeDateRangeRefiner]}},exports.ja.casual=function(){var e=exports.ja();return e.parsers.unshift(new parser.JPCasualDateParser),e},exports.es=function(e){return{parsers:[new parser.ESTimeAgoFormatParser(e),new parser.ESDeadlineFormatParser(e),new parser.ESTimeExpressionParser(e),new parser.ESMonthNameLittleEndianParser(e),new parser.ESSlashDateFormatParser(e)],refiners:[new refiner.OverlapRemovalRefiner,new refiner.ForwardDateRefiner]}},exports.es.casual=function(){var e=exports.es({strict:!1});return e.parsers.unshift(new parser.ESCasualDateParser),e.parsers.unshift(new parser.ESWeekdayParser),e},exports.fr=function(e){return{parsers:[new parser.FRDeadlineFormatParser(e),new parser.FRMonthNameLittleEndianParser(e),new parser.FRSlashDateFormatParser(e),new parser.FRTimeAgoFormatParser(e),new parser.FRTimeExpressionParser(e)],refiners:[new refiner.OverlapRemovalRefiner,new refiner.ForwardDateRefiner,new refiner.FRMergeDateRangeRefiner,new refiner.FRMergeDateTimeRefiner]}},exports.fr.casual=function(){var e=exports.fr({strict:!1});return e.parsers.unshift(new parser.FRCasualDateParser),e.parsers.unshift(new parser.FRWeekdayParser),e.parsers.unshift(new parser.FRRelativeDateFormatParser),e},exports.zh=function(){return{parsers:[new parser.ZHHantDateParser,new parser.ZHHantWeekdayParser,new parser.ZHHantTimeExpressionParser,new parser.ZHHantCasualDateParser,new parser.ZHHantDeadlineFormatParser],refiners:[new refiner.OverlapRemovalRefiner,new refiner.ForwardDateRefiner]}};
},{"./parsers/parser":50,"./refiners/refiner":64}],5:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,PATTERN=new RegExp("(\\W|^)(jetzt|(?:heute|diesen)\\s*(morgen|vormittag|mittag|nachmittag|abend)|(?:heute|diese)\\s*nacht|heute|(?:(?:ü|ue)ber)?morgen(?:\\s*(morgen|vormittag|mittag|nachmittag|abend|nacht))?|(?:vor)?gestern(?:\\s*(morgen|vormittag|mittag|nachmittag|abend|nacht))?|letzte\\s*nacht)(?=\\W|$)","i");exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(t,e,r,a){var t=r[0].substr(r[1].length),s=r.index+r[1].length,i=new ParsedResult({index:s,text:t,ref:e}),n=moment(e),m=n.clone(),o=t.toLowerCase();/(?:heute|diese)\s*nacht/.test(o)?(i.start.imply("hour",22),i.start.imply("meridiem",1)):/^(?:ü|ue)bermorgen/.test(o)?m.add(n.hour()>1?2:1,"day"):/^morgen/.test(o)?n.hour()>1&&m.add(1,"day"):/^gestern/.test(o)?m.add(-1,"day"):/^vorgestern/.test(o)?m.add(-2,"day"):/letzte\s*nacht/.test(o)?(i.start.imply("hour",0),n.hour()>6&&m.add(-1,"day")):"jetzt"===o&&(i.start.imply("hour",n.hour()),i.start.imply("minute",n.minute()),i.start.imply("second",n.second()),i.start.imply("millisecond",n.millisecond()));var d=r[3]||r[4]||r[5];if(d)switch(d.toLowerCase()){case"morgen":i.start.imply("hour",6);break;case"vormittag":i.start.imply("hour",9);break;case"mittag":i.start.imply("hour",12);break;case"nachmittag":i.start.imply("hour",15),i.start.imply("meridiem",1);break;case"abend":i.start.imply("hour",18),i.start.imply("meridiem",1);break;case"nacht":i.start.imply("hour",0)}return i.start.assign("day",m.date()),i.start.assign("month",m.month()+1),i.start.assign("year",m.year()),i.tags.DECasualDateParser=!0,i}};
},{"../../result":65,"../parser":50,"moment":2}],6:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,util=require("../../utils/DE"),PATTERN=new RegExp("(\\W|^)(in|nach)\\s*("+util.INTEGER_WORDS_PATTERN+"|[0-9]+|einigen|eine[rm]\\s*halben|eine[rm])\\s*(sekunden?|min(?:ute)?n?|stunden?|tag(?:en)?|wochen?|monat(?:en)?|jahr(?:en)?)\\s*(?=\\W|$)","i"),STRICT_PATTERN=new RegExp("(\\W|^)(in|nach)\\s*("+util.INTEGER_WORDS_PATTERN+"|[0-9]+|eine(?:r|m)?)\\s*(sekunden?|minuten?|stunden?|tag(?:en)?)\\s*(?=\\W|$)","i");exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return this.isStrictMode()?STRICT_PATTERN:PATTERN},this.extract=function(e,t,n,s){var a=n.index+n[1].length,e=n[0];e=n[0].substr(n[1].length,n[0].length-n[1].length);var r=new ParsedResult({index:a,text:e,ref:t}),i=n[3].toLowerCase();i=void 0!==util.INTEGER_WORDS[i]?util.INTEGER_WORDS[i]:"einer"===i||"einem"===i?1:"einigen"===i?3:/halben/.test(i)?.5:parseInt(i);var d=moment(t);return/tag|woche|monat|jahr/i.test(n[4])?(/tag/i.test(n[4])?d.add(i,"d"):/woche/i.test(n[4])?d.add(7*i,"d"):/monat/i.test(n[4])?d.add(i,"month"):/jahr/i.test(n[4])&&d.add(i,"year"),r.start.assign("year",d.year()),r.start.assign("month",d.month()+1),r.start.assign("day",d.date()),r):(/stunde/i.test(n[4])?d.add(i,"hour"):/min/i.test(n[4])?d.add(i,"minute"):/sekunde/i.test(n[4])&&d.add(i,"second"),r.start.imply("year",d.year()),r.start.imply("month",d.month()+1),r.start.imply("day",d.date()),r.start.assign("hour",d.hour()),r.start.assign("minute",d.minute()),r.start.assign("second",d.second()),r.tags.DEDeadlineFormatParser=!0,r)}};
},{"../../result":65,"../../utils/DE":66,"../parser":50,"moment":2}],7:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,util=require("../../utils/DE"),PATTERN=new RegExp("(\\W|^)(?:am\\s*?)?(?:(Sonntag|Montag|Dienstag|Mittwoch|Donnerstag|Freitag|Samstag|So|Mo|Di|Mi|Do|Fr|Sa)\\s*,?\\s*)?(?:den\\s*)?([0-9]{1,2})\\.(?:\\s*(?:bis(?:\\s*(?:am|zum))?|\\-|\\–|\\s)\\s*([0-9]{1,2})\\.)?\\s*(Jan(?:uar|\\.)?|Feb(?:ruar|\\.)?|Mär(?:z|\\.)?|Maerz|Mrz\\.?|Apr(?:il|\\.)?|Mai|Jun(?:i|\\.)?|Jul(?:i|\\.)?|Aug(?:ust|\\.)?|Sep(?:t|t\\.|tember|\\.)?|Okt(?:ober|\\.)?|Nov(?:ember|\\.)?|Dez(?:ember|\\.)?)(?:,?\\s*([0-9]{1,4}(?![^\\s]\\d))(\\s*[vn]\\.?\\s*C(?:hr)?\\.?)?)?(?=\\W|$)","i"),WEEKDAY_GROUP=2,DATE_GROUP=3,DATE_TO_GROUP=4,MONTH_NAME_GROUP=5,YEAR_GROUP=6,YEAR_BE_GROUP=7;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(e,t,a,r){var s=new ParsedResult({text:a[0].substr(a[1].length,a[0].length-a[1].length),index:a.index+a[1].length,ref:t}),n=a[MONTH_NAME_GROUP];n=util.MONTH_OFFSET[n.toLowerCase()];var i=a[DATE_GROUP];i=parseInt(i);var o=null;if(a[YEAR_GROUP]&&(o=a[YEAR_GROUP],o=parseInt(o),a[YEAR_BE_GROUP]?/v/i.test(a[YEAR_BE_GROUP])&&(o=-o):o<100&&(o+=2e3)),o)s.start.assign("day",i),s.start.assign("month",n),s.start.assign("year",o);else{var E=moment(t);E.month(n-1),E.date(i),E.year(moment(t).year());var m=E.clone().add(1,"y"),R=E.clone().add(-1,"y");Math.abs(m.diff(moment(t)))<Math.abs(E.diff(moment(t)))?E=m:Math.abs(R.diff(moment(t)))<Math.abs(E.diff(moment(t)))&&(E=R),s.start.assign("day",i),s.start.assign("month",n),s.start.imply("year",E.year())}if(a[WEEKDAY_GROUP]){var u=a[WEEKDAY_GROUP];u=util.WEEKDAY_OFFSET[u.toLowerCase()],s.start.assign("weekday",u)}return a[DATE_TO_GROUP]&&(s.end=s.start.clone(),s.end.assign("day",parseInt(a[DATE_TO_GROUP]))),s.tags.DEMonthNameLittleEndianParser=!0,s}};
},{"../../result":65,"../../utils/DE":66,"../parser":50,"moment":2}],8:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,util=require("../../utils/DE"),PATTERN=new RegExp("(^|\\D\\s+|[^\\w\\s])(Jan\\.?|Januar|Feb\\.?|Februar|Mär\\.?|M(?:ä|ae)rz|Mrz\\.?|Apr\\.?|April|Mai\\.?|Jun\\.?|Juni|Jul\\.?|Juli|Aug\\.?|August|Sep\\.?|Sept\\.?|September|Okt\\.?|Oktober|Nov\\.?|November|Dez\\.?|Dezember)\\s*(?:,?\\s*(?:([0-9]{4})(\\s*[vn]\\.?\\s*C(?:hr)?\\.?)?|([0-9]{1,4})\\s*([vn]\\.?\\s*C(?:hr)?\\.?)))?(?=[^\\s\\w]|$)","i"),MONTH_NAME_GROUP=2,YEAR_GROUP=3,YEAR_BE_GROUP=4,YEAR_GROUP2=5,YEAR_BE_GROUP2=6;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(e,t,r,a){var s=new ParsedResult({text:r[0].substr(r[1].length,r[0].length-r[1].length),index:r.index+r[1].length,ref:t}),n=r[MONTH_NAME_GROUP];n=util.MONTH_OFFSET[n.toLowerCase()];var i=null;if((r[YEAR_GROUP]||r[YEAR_GROUP2])&&(i=r[YEAR_GROUP]||r[YEAR_GROUP2],i=parseInt(i),r[YEAR_BE_GROUP]||r[YEAR_BE_GROUP2]?/v/i.test(r[YEAR_BE_GROUP]||r[YEAR_BE_GROUP2])&&(i=-i):i<100&&(i+=2e3)),i)s.start.imply("day",1),s.start.assign("month",n),s.start.assign("year",i);else{var R=moment(t);R.month(n-1),R.date(1);var u=R.clone().add(1,"y"),E=R.clone().add(-1,"y");Math.abs(u.diff(moment(t)))<Math.abs(R.diff(moment(t)))?R=u:Math.abs(E.diff(moment(t)))<Math.abs(R.diff(moment(t)))&&(R=E),s.start.imply("day",1),s.start.assign("month",n),s.start.imply("year",R.year())}return s.tags.DEMonthNameParser=!0,s}};
},{"../../result":65,"../../utils/DE":66,"../parser":50,"moment":2}],9:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,PATTERN=new RegExp("(\\W|^)(?:(?:am\\s*?)?((?:sonntag|so|montag|mo|dienstag|di|mittwoch|mi|donnerstag|do|freitag|fr|samstag|sa))\\s*\\,?\\s*(?:den\\s*)?)?([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}s*,?s*|[0-9]{2}s*,?s*))?(\\W|$)","i"),DAYS_OFFSET={sonntag:0,so:0,montag:1,mo:1,dienstag:2,di:2,mittwoch:3,mi:3,donnerstag:4,do:4,freitag:5,fr:5,samstag:6,sa:6},OPENNING_GROUP=1,ENDING_GROUP=6,WEEKDAY_GROUP=2,DAY_GROUP=3,MONTH_GROUP=4,YEAR_GROUP=5;exports.Parser=function(t){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(t,e,s,a){if("/"==s[OPENNING_GROUP]||"/"==s[ENDING_GROUP])return void(s.index+=s[0].length);var r=s.index+s[OPENNING_GROUP].length,t=s[0].substr(s[OPENNING_GROUP].length,s[0].length-s[ENDING_GROUP].length),n=new ParsedResult({text:t,index:r,ref:e});if(!t.match(/^\d\.\d$/)&&!t.match(/^\d\.\d{1,2}\.\d{1,2}$/)&&(s[YEAR_GROUP]||!(s[0].indexOf("/")<0))){var i=s[YEAR_GROUP]||moment(e).year()+"",P=s[MONTH_GROUP],o=s[DAY_GROUP];return P=parseInt(P),(o=parseInt(o),i=parseInt(i),P<1||P>12)?null:o<1||o>31?null:(i<100&&(i+=i>50?1900:2e3),n.start.assign("day",o),n.start.assign("month",P),n.start.assign("year",i),s[WEEKDAY_GROUP]&&n.start.assign("weekday",DAYS_OFFSET[s[WEEKDAY_GROUP].toLowerCase()]),n.tags.DESlashDateFormatParser=!0,n)}}};
},{"../../result":65,"../parser":50,"moment":2}],10:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,util=require("../../utils/DE"),PATTERN=new RegExp("(\\W|^)vor\\s*("+util.INTEGER_WORDS_PATTERN+"|[0-9]+|einigen|eine[rm]\\s*halben|eine[rm])\\s*(sekunden?|min(?:ute)?n?|stunden?|wochen?|tag(?:en)?|monat(?:en)?|jahr(?:en)?)\\s*(?=(?:\\W|$))","i"),STRICT_PATTERN=new RegExp("(\\W|^)vor\\s*([0-9]+|eine(?:r|m))\\s*(sekunden?|minuten?|stunden?|tag(?:en)?)(?=(?:\\W|$))","i");exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return this.isStrictMode()?STRICT_PATTERN:PATTERN},this.extract=function(e,t,n,s){if(n.index>0&&e[n.index-1].match(/\w/))return null;var e=n[0];e=n[0].substr(n[1].length,n[0].length-n[1].length),index=n.index+n[1].length;var r=new ParsedResult({index:index,text:e,ref:t}),a=n[2].toLowerCase();a=void 0!==util.INTEGER_WORDS[a]?util.INTEGER_WORDS[a]:"einer"===a||"einem"===a?1:"einigen"===a?3:/halben/.test(a)?.5:parseInt(a);var i=moment(t);return/stunde|min|sekunde/i.test(n[3])?(/stunde/i.test(n[3])?i.add(-a,"hour"):/min/i.test(n[3])?i.add(-a,"minute"):/sekunde/i.test(n[3])&&i.add(-a,"second"),r.start.imply("day",i.date()),r.start.imply("month",i.month()+1),r.start.imply("year",i.year()),r.start.assign("hour",i.hour()),r.start.assign("minute",i.minute()),r.start.assign("second",i.second()),r.tags.DETimeAgoFormatParser=!0,r):/woche/i.test(n[3])?(i.add(-a,"week"),r.start.imply("day",i.date()),r.start.imply("month",i.month()+1),r.start.imply("year",i.year()),r.start.imply("weekday",i.day()),r):(/tag/i.test(n[3])&&i.add(-a,"d"),/monat/i.test(n[3])&&i.add(-a,"month"),/jahr/i.test(n[3])&&i.add(-a,"year"),r.start.assign("day",i.date()),r.start.assign("month",i.month()+1),r.start.assign("year",i.year()),r)}};
},{"../../result":65,"../../utils/DE":66,"../parser":50,"moment":2}],11:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,ParsedComponents=require("../../result").ParsedComponents,FIRST_REG_PATTERN=new RegExp("(^|\\s|T)(?:(?:um|von)\\s*)?(\\d{1,4}|mittags?|mitternachts?)(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\:|\\:)(\\d{2}))?)?(?:\\s*uhr)?(?:\\s*(morgens|vormittags|mittags|nachmittags|abends|nachts))?(?=\\W|$)","i"),SECOND_REG_PATTERN=new RegExp("^\\s*(\\-|\\–|\\~|\\〜|bis|\\?)\\s*(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2}))?)?(?:\\s*(morgens|vormittags|mittags|nachmittags|abends|nachts))?(?=\\W|$)","i"),HOUR_GROUP=2,MINUTE_GROUP=3,SECOND_GROUP=4,AM_PM_HOUR_GROUP=5;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return FIRST_REG_PATTERN},this.extract=function(t,e,r,s){if(r.index>0&&t[r.index-1].match(/\w/))return null;var n=moment(e),i=new ParsedResult;i.ref=e,i.index=r.index+r[1].length,i.text=r[0].substring(r[1].length),i.tags.DETimeExpressionParser=!0,i.start.imply("day",n.date()),i.start.imply("month",n.month()+1),i.start.imply("year",n.year());var a=0,m=0,d=-1;if(null!=r[SECOND_GROUP]){var l=parseInt(r[SECOND_GROUP]);if(l>=60)return null;i.start.assign("second",l)}if(/mittags?/i.test(r[HOUR_GROUP])?(d=1,a=12):/mitternachts?/i.test(r[HOUR_GROUP])?(d=0,a=0):a=parseInt(r[HOUR_GROUP]),null!=r[MINUTE_GROUP]?m=parseInt(r[MINUTE_GROUP]):a>100&&(m=a%100,a=parseInt(a/100)),m>=60)return null;if(a>24)return null;if(a>=12&&(d=1),null!=r[AM_PM_HOUR_GROUP]){if(a>12)return null;var u=r[AM_PM_HOUR_GROUP][0].toLowerCase();"morgens"===u||"vormittags"===u?(d=0,12==a&&(a=0)):(d=1,12!=a&&(a+=12))}if(i.start.assign("hour",a),i.start.assign("minute",m),d>=0?i.start.assign("meridiem",d):a<12?i.start.imply("meridiem",0):i.start.imply("meridiem",1),!(r=SECOND_REG_PATTERN.exec(t.substring(i.index+i.text.length))))return i.text.match(/^\d+$/)?null:i;if(r[0].match(/^\s*(\+|\-)\s*\d{3,4}$/))return i;null==i.end&&(i.end=new ParsedComponents(null,i.start.date()));var a=0,m=0,d=-1;if(null!=r[SECOND_GROUP]){var l=parseInt(r[SECOND_GROUP]);if(l>=60)return null;i.end.assign("second",l)}if(a=parseInt(r[2]),null!=r[MINUTE_GROUP]){if((m=parseInt(r[MINUTE_GROUP]))>=60)return i}else a>100&&(m=a%100,a=parseInt(a/100));if(m>=60)return null;if(a>24)return null;if(a>=12&&(d=1),null!=r[AM_PM_HOUR_GROUP]){if(a>12)return null;var u=r[AM_PM_HOUR_GROUP][0].toLowerCase();"morgens"===u||"vormittags"===u?(d=0,12==a&&(a=0,i.end.isCertain("day")||i.end.imply("day",i.end.get("day")+1))):(d=1,12!=a&&(a+=12)),i.start.isCertain("meridiem")||(0==d?(i.start.imply("meridiem",0),12==i.start.get("hour")&&i.start.assign("hour",0)):(i.start.imply("meridiem",1),12!=i.start.get("hour")&&i.start.assign("hour",i.start.get("hour")+12)))}if(i.text=i.text+r[0],i.end.assign("hour",a),i.end.assign("minute",m),d>=0)i.end.assign("meridiem",d);else{i.start.isCertain("meridiem")&&1==i.start.get("meridiem")&&i.start.get("hour")>a?i.end.imply("meridiem",0):a>12&&i.end.imply("meridiem",1)}return i.end.date().getTime()<i.start.date().getTime()&&i.end.imply("day",i.end.get("day")+1),i}};
},{"../../result":65,"../parser":50,"moment":2}],12:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,DAYS_OFFSET={sonntag:0,so:0,montag:1,mo:1,dienstag:2,di:2,mittwoch:3,mi:3,donnerstag:4,do:4,freitag:5,fr:5,samstag:6,sa:6},PATTERN=new RegExp("(\\W|^)(?:(?:\\,|\\(|\\()\\s*)?(?:a[mn]\\s*?)?(?:(diese[mn]|letzte[mn]|n(?:ä|ae)chste[mn])\\s*)?("+Object.keys(DAYS_OFFSET).join("|")+")(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(diese|letzte|n(?:ä|ae)chste)\\s*woche)?(?=\\W|$)","i"),PREFIX_GROUP=2,WEEKDAY_GROUP=3,POSTFIX_GROUP=4;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(e,t,a,r){var s=a.index+a[1].length,e=a[0].substr(a[1].length,a[0].length-a[1].length),n=new ParsedResult({index:s,text:e,ref:t}),d=a[WEEKDAY_GROUP].toLowerCase(),i=DAYS_OFFSET[d];if(void 0===i)return null;var o=moment(t),m=a[PREFIX_GROUP],P=a[POSTFIX_GROUP],h=o.day(),y=m||P;return y=y||"",y=y.toLowerCase(),/letzte/.test(y)?o.day(i-7):/n(?:ä|ae)chste/.test(y)?o.day(i+7):/diese/.test(y)?r.forwardDate&&h>i?o.day(i+7):o.day(i):r.forwardDate&&h>i?o.day(i+7):!r.forwardDate&&Math.abs(i-7-h)<Math.abs(i-h)?o.day(i-7):!r.forwardDate&&Math.abs(i+7-h)<Math.abs(i-h)?o.day(i+7):o.day(i),n.start.assign("weekday",i),n.start.imply("day",o.date()),n.start.imply("month",o.month()+1),n.start.imply("year",o.year()),n}};
},{"../../result":65,"../parser":50,"moment":2}],13:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,PATTERN=/(\W|^)(now|today|tonight|last\s*night|(?:tomorrow|tmr|yesterday)\s*|tomorrow|tmr|yesterday)(?=\W|$)/i;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(t,r,s,e){var t=s[0].substr(s[1].length),a=s.index+s[1].length,n=new ParsedResult({index:a,text:t,ref:r}),o=moment(r),i=o.clone(),d=t.toLowerCase();return"tonight"==d?(n.start.imply("hour",22),n.start.imply("meridiem",1)):/^tomorrow|^tmr/.test(d)?o.hour()>1&&i.add(1,"day"):/^yesterday/.test(d)?i.add(-1,"day"):d.match(/last\s*night/)?(n.start.imply("hour",0),o.hour()>6&&i.add(-1,"day")):d.match("now")&&(n.start.assign("hour",o.hour()),n.start.assign("minute",o.minute()),n.start.assign("second",o.second()),n.start.assign("millisecond",o.millisecond())),n.start.assign("day",i.date()),n.start.assign("month",i.month()+1),n.start.assign("year",i.year()),n.tags.ENCasualDateParser=!0,n}};
},{"../../result":65,"../parser":50,"moment":2}],14:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,PATTERN=/(\W|^)((this)?\s*(morning|afternoon|evening|noon))/i,TIME_MATCH=4;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(r,n,e,t){var r=e[0].substr(e[1].length),o=e.index+e[1].length,s=new ParsedResult({index:o,text:r,ref:n});return e[TIME_MATCH]||(TIME_MATCH=3),"afternoon"==e[TIME_MATCH]?s.start.imply("hour",t.afternoon?t.afternoon:15):"evening"==e[TIME_MATCH]?s.start.imply("hour",t.evening?t.evening:18):"morning"==e[TIME_MATCH]?s.start.imply("hour",t.morning?t.morning:6):"noon"==e[TIME_MATCH]&&s.start.imply("hour",t.noon?t.noon:12),s.tags.ENCasualTimeParser=!0,s}};
},{"../../result":65,"../parser":50,"moment":2}],15:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,util=require("../../utils/EN"),PATTERN=new RegExp("(\\W|^)(within|in)\\s*("+util.INTEGER_WORDS_PATTERN+"|[0-9]+|an?(?:\\s*few)?|half(?:\\s*an?)?)\\s*(seconds?|min(?:ute)?s?|hours?|days?|weeks?|months?|years?)\\s*(?=\\W|$)","i"),STRICT_PATTERN=new RegExp("(\\W|^)(within|in)\\s*("+util.INTEGER_WORDS_PATTERN+"|[0-9]+|an?)\\s*(seconds?|minutes?|hours?|days?)\\s*(?=\\W|$)","i");exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return this.isStrictMode()?STRICT_PATTERN:PATTERN},this.extract=function(t,e,a,r){var s=a.index+a[1].length,t=a[0];t=a[0].substr(a[1].length,a[0].length-a[1].length);var i=new ParsedResult({index:s,text:t,ref:e}),n=a[3].toLowerCase();n=void 0!==util.INTEGER_WORDS[n]?util.INTEGER_WORDS[n]:"a"===n||"an"===n?1:n.match(/few/i)?3:n.match(/half/i)?.5:parseInt(n);var m=moment(e);return a[4].match(/day|week|month|year/i)?(a[4].match(/day/i)?m.add(n,"d"):a[4].match(/week/i)?m.add(7*n,"d"):a[4].match(/month/i)?m.add(n,"month"):a[4].match(/year/i)&&m.add(n,"year"),i.start.imply("year",m.year()),i.start.imply("month",m.month()+1),i.start.imply("day",m.date()),i):(a[4].match(/hour/i)?m.add(n,"hour"):a[4].match(/min/i)?m.add(n,"minute"):a[4].match(/second/i)&&m.add(n,"second"),i.start.imply("year",m.year()),i.start.imply("month",m.month()+1),i.start.imply("day",m.date()),i.start.imply("hour",m.hour()),i.start.imply("minute",m.minute()),i.start.imply("second",m.second()),i.tags.ENDeadlineFormatParser=!0,i)}};
},{"../../result":65,"../../utils/EN":67,"../parser":50,"moment":2}],16:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,PATTERN=new RegExp("(\\W|^)([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(?:Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)","i"),YEAR_NUMBER_GROUP=2,MONTH_NUMBER_GROUP=3,DATE_NUMBER_GROUP=4,HOUR_NUMBER_GROUP=5,MINUTE_NUMBER_GROUP=6,SECOND_NUMBER_GROUP=7,MILLISECOND_NUMBER_GROUP=8,TZD_HOUR_OFFSET_GROUP=9,TZD_MINUTE_OFFSET_GROUP=10;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(t,e,s,r){var t=s[0].substr(s[1].length),n=s.index+s[1].length,R=new ParsedResult({text:t,index:n,ref:e});if(R.start.assign("year",parseInt(s[YEAR_NUMBER_GROUP])),R.start.assign("month",parseInt(s[MONTH_NUMBER_GROUP])),R.start.assign("day",parseInt(s[DATE_NUMBER_GROUP])),moment(R.start.get("month"))>12||moment(R.start.get("month"))<1||moment(R.start.get("day"))>31||moment(R.start.get("day"))<1)return null;if(null!=s[HOUR_NUMBER_GROUP])if(R.start.assign("hour",parseInt(s[HOUR_NUMBER_GROUP])),R.start.assign("minute",parseInt(s[MINUTE_NUMBER_GROUP])),null!=s[SECOND_NUMBER_GROUP]&&R.start.assign("second",parseInt(s[SECOND_NUMBER_GROUP])),null!=s[MILLISECOND_NUMBER_GROUP]&&R.start.assign("millisecond",parseInt(s[MILLISECOND_NUMBER_GROUP])),null==s[TZD_HOUR_OFFSET_GROUP])R.start.assign("timezoneOffset",0);else{var a=0,_=parseInt(s[TZD_HOUR_OFFSET_GROUP]);null!=s[TZD_MINUTE_OFFSET_GROUP]&&(a=parseInt(s[TZD_MINUTE_OFFSET_GROUP]));var U=60*_;U<0?U-=a:U+=a,R.start.assign("timezoneOffset",U)}return R.tags.ENISOFormatParser=!0,R}};
},{"../../result":65,"../parser":50,"moment":2}],17:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,util=require("../../utils/EN"),PATTERN=new RegExp("(\\W|^)(?:on\\s*?)?(?:(Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sun|Mon|Tue|Wed|Thu|Fri|Sat)\\s*,?\\s*)?(([0-9]{1,2})(?:st|nd|rd|th)?|"+util.ORDINAL_WORDS_PATTERN+")(?:\\s*(?:to|\\-|\\–|until|through|till|\\s)\\s*(([0-9]{1,2})(?:st|nd|rd|th)?|"+util.ORDINAL_WORDS_PATTERN+"))?(?:-|/|\\s*(?:of)?\\s*)(Jan(?:uary|\\.)?|Feb(?:ruary|\\.)?|Mar(?:ch|\\.)?|Apr(?:il|\\.)?|May|Jun(?:e|\\.)?|Jul(?:y|\\.)?|Aug(?:ust|\\.)?|Sep(?:tember|\\.)?|Oct(?:ober|\\.)?|Nov(?:ember|\\.)?|Dec(?:ember|\\.)?)(?:(?:-|/|,?\\s*)((?:[1-9][0-9]{0,3}\\s*(?:BE|AD|BC)|[1-2][0-9]{3})(?![^\\s]\\d)))?(?=\\W|$)","i"),WEEKDAY_GROUP=2,DATE_GROUP=3,DATE_NUM_GROUP=4,DATE_TO_GROUP=5,DATE_TO_NUM_GROUP=6,MONTH_NAME_GROUP=7,YEAR_GROUP=8;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(e,t,a,r){var s=new ParsedResult({text:a[0].substr(a[1].length,a[0].length-a[1].length),index:a.index+a[1].length,ref:t}),n=a[MONTH_NAME_GROUP];n=util.MONTH_OFFSET[n.toLowerCase()];var i=a[DATE_NUM_GROUP]?parseInt(a[DATE_NUM_GROUP]):util.ORDINAL_WORDS[a[DATE_GROUP].trim().replace("-"," ").toLowerCase()],_=null;if(a[YEAR_GROUP]&&(_=a[YEAR_GROUP],/BE/i.test(_)?(_=_.replace(/BE/i,""),_=parseInt(_)-543):/BC/i.test(_)?(_=_.replace(/BC/i,""),_=-parseInt(_)):/AD/i.test(_)?(_=_.replace(/AD/i,""),_=parseInt(_)):(_=parseInt(_))<100&&(_+=2e3)),_)s.start.assign("day",i),s.start.assign("month",n),s.start.assign("year",_);else{var O=moment(t);O.month(n-1),O.date(i),O.year(moment(t).year());var u=O.clone().add(1,"y"),R=O.clone().add(-1,"y");Math.abs(u.diff(moment(t)))<Math.abs(O.diff(moment(t)))?O=u:Math.abs(R.diff(moment(t)))<Math.abs(O.diff(moment(t)))&&(O=R),s.start.assign("day",i),s.start.assign("month",n),s.start.imply("year",O.year())}if(a[WEEKDAY_GROUP]){var E=a[WEEKDAY_GROUP];E=util.WEEKDAY_OFFSET[E.toLowerCase()],s.start.assign("weekday",E)}if(a[DATE_TO_GROUP]){var d=a[DATE_TO_NUM_GROUP]?parseInt(a[DATE_TO_NUM_GROUP]):util.ORDINAL_WORDS[a[DATE_TO_GROUP].trim().replace("-"," ").toLowerCase()];s.end=s.start.clone(),s.end.assign("day",d)}return s.tags.ENMonthNameLittleEndianParser=!0,s}};
},{"../../result":65,"../../utils/EN":67,"../parser":50,"moment":2}],18:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,util=require("../../utils/EN"),PATTERN=new RegExp("(\\W|^)(?:(?:on\\s*?)?(Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sun\\.?|Mon\\.?|Tue\\.?|Wed\\.?|Thu\\.?|Fri\\.?|Sat\\.?)\\s*,?\\s*)?(Jan\\.?|January|Feb\\.?|February|Mar\\.?|March|Apr\\.?|April|May\\.?|Jun\\.?|June|Jul\\.?|July|Aug\\.?|August|Sep\\.?|Sept\\.?|September|Oct\\.?|October|Nov\\.?|November|Dec\\.?|December)(?:-|/|\\s*,?\\s*)(([0-9]{1,2})(?:st|nd|rd|th)?|"+util.ORDINAL_WORDS_PATTERN+")(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(([0-9]{1,2})(?:st|nd|rd|th)?| "+util.ORDINAL_WORDS_PATTERN+")\\s*)?(?:(?:-|/|\\s*,?\\s*)(?:([0-9]{4})\\s*(BE|AD|BC)?|([0-9]{1,4})\\s*(AD|BC))\\s*)?(?=\\W|$)(?!\\:\\d)","i"),WEEKDAY_GROUP=2,MONTH_NAME_GROUP=3,DATE_GROUP=4,DATE_NUM_GROUP=5,DATE_TO_GROUP=6,DATE_TO_NUM_GROUP=7,YEAR_GROUP=8,YEAR_BE_GROUP=9,YEAR_GROUP2=10,YEAR_BE_GROUP2=11;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(e,t,a,r){var s=new ParsedResult({text:a[0].substr(a[1].length,a[0].length-a[1].length),index:a.index+a[1].length,ref:t}),n=a[MONTH_NAME_GROUP];n=util.MONTH_OFFSET[n.toLowerCase()];var R=a[DATE_NUM_GROUP]?parseInt(a[DATE_NUM_GROUP]):util.ORDINAL_WORDS[a[DATE_GROUP].trim().replace("-"," ").toLowerCase()],_=null;if(a[YEAR_GROUP]||a[YEAR_GROUP2]){_=a[YEAR_GROUP]||a[YEAR_GROUP2],_=parseInt(_);var E=a[YEAR_BE_GROUP]||a[YEAR_BE_GROUP2];E?/BE/i.test(E)?_-=543:/BC/i.test(E)&&(_=-_):_<100&&(_+=2e3)}if(_)s.start.assign("day",R),s.start.assign("month",n),s.start.assign("year",_);else{var O=moment(t);O.month(n-1),O.date(R);var i=O.clone().add(1,"y"),A=O.clone().add(-1,"y");Math.abs(i.diff(moment(t)))<Math.abs(O.diff(moment(t)))?O=i:Math.abs(A.diff(moment(t)))<Math.abs(O.diff(moment(t)))&&(O=A),s.start.assign("day",R),s.start.assign("month",n),s.start.imply("year",O.year())}if(a[WEEKDAY_GROUP]){var u=a[WEEKDAY_GROUP];u=util.WEEKDAY_OFFSET[u.toLowerCase()],s.start.assign("weekday",u)}if(a[DATE_TO_GROUP]){var P=a[DATE_TO_NUM_GROUP]?P=parseInt(a[DATE_TO_NUM_GROUP]):util.ORDINAL_WORDS[a[DATE_TO_GROUP].replace("-"," ").trim().toLowerCase()];s.end=s.start.clone(),s.end.assign("day",P)}return s.tags.ENMonthNameMiddleEndianParser=!0,s}};
},{"../../result":65,"../../utils/EN":67,"../parser":50,"moment":2}],19:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,util=require("../../utils/EN"),PATTERN=new RegExp("(^|\\D\\s+|[^\\w\\s])(Jan\\.?|January|Feb\\.?|February|Mar\\.?|March|Apr\\.?|April|May\\.?|Jun\\.?|June|Jul\\.?|July|Aug\\.?|August|Sep\\.?|Sept\\.?|September|Oct\\.?|October|Nov\\.?|November|Dec\\.?|December)\\s*(?:[,-]?\\s*([0-9]{4})(\\s*BE|AD|BC)?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)","i"),MONTH_NAME_GROUP=2,YEAR_GROUP=3,YEAR_BE_GROUP=4;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(e,t,r,a){var s=new ParsedResult({text:r[0].substr(r[1].length,r[0].length-r[1].length),index:r.index+r[1].length,ref:t}),n=r[MONTH_NAME_GROUP];n=util.MONTH_OFFSET[n.toLowerCase()];var i=null;if(r[YEAR_GROUP]&&(i=r[YEAR_GROUP],i=parseInt(i),r[YEAR_BE_GROUP]?r[YEAR_BE_GROUP].match(/BE/)?i-=543:r[YEAR_BE_GROUP].match(/BC/)&&(i=-i):i<100&&(i+=2e3)),i)s.start.imply("day",1),s.start.assign("month",n),s.start.assign("year",i);else{var u=moment(t);u.month(n-1),u.date(1);var m=u.clone().add(1,"y"),l=u.clone().add(-1,"y");Math.abs(m.diff(moment(t)))<Math.abs(u.diff(moment(t)))?u=m:Math.abs(l.diff(moment(t)))<Math.abs(u.diff(moment(t)))&&(u=l),s.start.imply("day",1),s.start.assign("month",n),s.start.imply("year",u.year())}return s.tags.ENMonthNameParser=!0,s}};
},{"../../result":65,"../../utils/EN":67,"../parser":50,"moment":2}],20:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,util=require("../../utils/EN"),PATTERN=new RegExp("(\\W|^)(this|next|last|past)\\s*("+util.INTEGER_WORDS_PATTERN+"|[0-9]+|few|half(?:\\s*an?)?)?\\s*(seconds?|min(?:ute)?s?|hours?|days?|weeks?|months?|years?)(?=\\s*)(?=\\W|$)","i"),MODIFIER_WORD_GROUP=2,MULTIPLIER_WORD_GROUP=3,RELATIVE_WORD_GROUP=4;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(t,a,e,s){var r=e.index+e[1].length,n=e[MODIFIER_WORD_GROUP].toLowerCase().match(/^next/)?1:-1,t=e[0];t=e[0].substr(e[1].length,e[0].length-e[1].length);var i=new ParsedResult({index:r,text:t,ref:a});i.tags.ENRelativeDateFormatParser=!0;var m=void 0===e[MULTIPLIER_WORD_GROUP]?"":e[3].toLowerCase();m=void 0!==util.INTEGER_WORDS[m]?util.INTEGER_WORDS[m]:""===m?1:m.match(/few/i)?3:m.match(/half/i)?.5:parseInt(m),m*=n;var R=moment(a);if(e[MODIFIER_WORD_GROUP].toLowerCase().match(/^this/)){if(e[MULTIPLIER_WORD_GROUP])return null;if(e[RELATIVE_WORD_GROUP].match(/day|week|month|year/i))return e[RELATIVE_WORD_GROUP].match(/week/i)?(R.add(-R.get("d"),"d"),i.start.imply("day",R.date()),i.start.imply("month",R.month()+1),i.start.imply("year",R.year())):e[RELATIVE_WORD_GROUP].match(/month/i)?(R.add(1-R.date(),"d"),i.start.imply("day",R.date()),i.start.assign("year",R.year()),i.start.assign("month",R.month()+1)):e[RELATIVE_WORD_GROUP].match(/year/i)&&(R.add(1-R.date(),"d"),R.add(-R.month(),"month"),i.start.imply("day",R.date()),i.start.imply("month",R.month()+1),i.start.assign("year",R.year())),i}return e[RELATIVE_WORD_GROUP].match(/day|week|month|year/i)?(e[RELATIVE_WORD_GROUP].match(/day/i)?(R.add(m,"d"),i.start.assign("year",R.year()),i.start.assign("month",R.month()+1),i.start.assign("day",R.date())):e[RELATIVE_WORD_GROUP].match(/week/i)?(R.add(7*m,"d"),i.start.imply("day",R.date()),i.start.imply("month",R.month()+1),i.start.imply("year",R.year())):e[RELATIVE_WORD_GROUP].match(/month/i)?(R.add(m,"month"),i.start.imply("day",R.date()),i.start.assign("year",R.year()),i.start.assign("month",R.month()+1)):e[RELATIVE_WORD_GROUP].match(/year/i)&&(R.add(m,"year"),i.start.imply("day",R.date()),i.start.imply("month",R.month()+1),i.start.assign("year",R.year())),i):(e[RELATIVE_WORD_GROUP].match(/hour/i)?(R.add(m,"hour"),i.start.imply("minute",R.minute()),i.start.imply("second",R.second())):e[RELATIVE_WORD_GROUP].match(/min/i)?(R.add(m,"minute"),i.start.assign("minute",R.minute()),i.start.imply("second",R.second())):e[RELATIVE_WORD_GROUP].match(/second/i)&&(R.add(m,"second"),i.start.assign("second",R.second()),i.start.assign("minute",R.minute())),i.start.assign("hour",R.hour()),i.start.assign("year",R.year()),i.start.assign("month",R.month()+1),i.start.assign("day",R.date()),i)}};
},{"../../result":65,"../../utils/EN":67,"../parser":50,"moment":2}],21:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,PATTERN=new RegExp("(\\W|^)(?:(?:on\\s*?)?((?:sun|mon|tues?|wed(?:nes)?|thu(?:rs?)?|fri|sat(?:ur)?)(?:day)?)\\s*\\,?\\s*)?([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}s*,?s*|[0-9]{2}s*,?s*))?(\\W|$)","i"),DAYS_OFFSET={sunday:0,sun:0,monday:1,mon:1,tuesday:2,wednesday:3,wed:3,thursday:4,thur:4,friday:5,fri:5,saturday:6,sat:6},OPENNING_GROUP=1,ENDING_GROUP=6,WEEKDAY_GROUP=2,FIRST_NUMBERS_GROUP=3,SECOND_NUMBERS_GROUP=4,YEAR_GROUP=5;exports.Parser=function(e){Parser.apply(this,arguments),e=e||{};var r=e.littleEndian,t=r?SECOND_NUMBERS_GROUP:FIRST_NUMBERS_GROUP,s=r?FIRST_NUMBERS_GROUP:SECOND_NUMBERS_GROUP;this.pattern=function(){return PATTERN},this.extract=function(e,r,a,n){if("/"==a[OPENNING_GROUP]||"/"==a[ENDING_GROUP])return void(a.index+=a[0].length);var R=a.index+a[OPENNING_GROUP].length,e=a[0].substr(a[OPENNING_GROUP].length,a[0].length-a[ENDING_GROUP].length),P=new ParsedResult({text:e,index:R,ref:r});if(!e.match(/^\d\.\d$/)&&!e.match(/^\d\.\d{1,2}\.\d{1,2}$/)&&(a[YEAR_GROUP]||!(a[0].indexOf("/")<0))){var E=a[YEAR_GROUP]||moment(r).year()+"",N=a[t],O=a[s];if(N=parseInt(N),O=parseInt(O),E=parseInt(E),(N<1||N>12)&&N>12){if(!(O>=1&&O<=12&&N>=13&&N<=31))return null;var i=N;N=O,O=i}return O<1||O>31?null:(E<100&&(E+=E>50?1900:2e3),P.start.assign("day",O),P.start.assign("month",N),a[YEAR_GROUP]?P.start.assign("year",E):P.start.imply("year",E),a[WEEKDAY_GROUP]&&P.start.assign("weekday",DAYS_OFFSET[a[WEEKDAY_GROUP].toLowerCase()]),P.tags.ENSlashDateFormatParser=!0,P)}}};
},{"../../result":65,"../parser":50,"moment":2}],22:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,PATTERN=new RegExp("(\\W|^)([0-9]{4})[\\-\\.\\/]([0-9]{1,2})[\\-\\.\\/]([0-9]{1,2})(?=\\W|$)","i"),YEAR_NUMBER_GROUP=2,MONTH_NUMBER_GROUP=3,DATE_NUMBER_GROUP=4;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(t,e,r,s){var t=r[0].substr(r[1].length),a=r.index+r[1].length,n=new ParsedResult({text:t,index:a,ref:e});return n.start.assign("year",parseInt(r[YEAR_NUMBER_GROUP])),n.start.assign("month",parseInt(r[MONTH_NUMBER_GROUP])),n.start.assign("day",parseInt(r[DATE_NUMBER_GROUP])),moment(n.start.get("month"))>12||moment(n.start.get("month"))<1||moment(n.start.get("day"))>31||moment(n.start.get("day"))<1?null:(n.tags.ENDateFormatParser=!0,n)}};
},{"../../result":65,"../parser":50,"moment":2}],23:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,PATTERN=new RegExp("(^|[^\\d/]\\s+|[^\\w\\s])([0-9]|0[1-9]|1[012])/([0-9]{4})([^\\d/]|$)","i"),OPENNING_GROUP=1,ENDING_GROUP=4,MONTH_GROUP=2,YEAR_GROUP=3;exports.Parser=function(r){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(r,e,t,s){var a=t.index+t[OPENNING_GROUP].length,r=t[0].substr(t[OPENNING_GROUP].length,t[0].length-(1+t[ENDING_GROUP].length)).trim(),n=new ParsedResult({text:r,index:a,ref:e}),P=t[YEAR_GROUP],N=t[MONTH_GROUP];return N=parseInt(N),P=parseInt(P),n.start.imply("day",1),n.start.assign("month",N),n.start.assign("year",P),n.tags.ENSlashMonthFormatParser=!0,n}};
},{"../../result":65,"../parser":50,"moment":2}],24:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,util=require("../../utils/EN"),PATTERN=new RegExp("(\\W|^)(?:within\\s*)?("+util.TIME_UNIT_PATTERN+")(?:ago|before|earlier)(?=(?:\\W|$))","i"),STRICT_PATTERN=new RegExp("(\\W|^)(?:within\\s*)?("+util.TIME_UNIT_STRICT_PATTERN+")ago(?=(?:\\W|$))","i");exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return this.isStrictMode()?STRICT_PATTERN:PATTERN},this.extract=function(t,e,r,a){if(r.index>0&&t[r.index-1].match(/\w/))return null;var t=r[0];t=r[0].substr(r[1].length,r[0].length-r[1].length),index=r.index+r[1].length;var s=new ParsedResult({index:index,text:t,ref:e}),i=util.extractDateTimeUnitFragments(r[2]),n=moment(e);for(var u in i)n.add(-i[u],u);return(i.hour>0||i.minute>0||i.second>0)&&(s.start.assign("hour",n.hour()),s.start.assign("minute",n.minute()),s.start.assign("second",n.second()),s.tags.ENTimeAgoFormatParser=!0),i.d>0||i.month>0||i.year>0?(s.start.assign("day",n.date()),s.start.assign("month",n.month()+1),s.start.assign("year",n.year())):(i.week>0&&s.start.imply("weekday",n.day()),s.start.imply("day",n.date()),s.start.imply("month",n.month()+1),s.start.imply("year",n.year())),s}};
},{"../../result":65,"../../utils/EN":67,"../parser":50,"moment":2}],25:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,ParsedComponents=require("../../result").ParsedComponents,FIRST_REG_PATTERN=new RegExp("(^|\\s|T)(?:(?:at|from)\\s*)??(\\d{1,4}|noon|midnight)(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\:|\\:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?|O\\W*CLOCK))?(?=\\W|$)","i"),SECOND_REG_PATTERN=new RegExp("^\\s*(\\-|\\–|\\~|\\〜|to|\\?)\\s*(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?|O\\W*CLOCK))?(?=\\W|$)","i"),HOUR_GROUP=2,MINUTE_GROUP=3,SECOND_GROUP=4,MILLI_SECOND_GROUP=5,AM_PM_HOUR_GROUP=6;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return FIRST_REG_PATTERN},this.extract=function(e,t,r,n){if(r.index>0&&e[r.index-1].match(/\w/))return null;var s=moment(t),i=new ParsedResult;i.ref=t,i.index=r.index+r[1].length,i.text=r[0].substring(r[1].length),i.tags.ENTimeExpressionParser=!0,i.start.imply("day",s.date()),i.start.imply("month",s.month()+1),i.start.imply("year",s.year());var a=0,l=0,u=-1;if(null!=r[MILLI_SECOND_GROUP]){var d=parseInt(r[MILLI_SECOND_GROUP].substring(0,3));if(d>=1e3)return null;i.start.assign("millisecond",d)}if(null!=r[SECOND_GROUP]){var m=parseInt(r[SECOND_GROUP]);if(m>=60)return null;i.start.assign("second",m)}if("noon"==r[HOUR_GROUP].toLowerCase()?(u=1,a=12):"midnight"==r[HOUR_GROUP].toLowerCase()?(u=0,a=0):a=parseInt(r[HOUR_GROUP]),null!=r[MINUTE_GROUP]?l=parseInt(r[MINUTE_GROUP]):a>100&&(l=a%100,a=parseInt(a/100)),l>=60)return null;if(a>24)return null;if(a>=12&&(u=1),null!=r[AM_PM_HOUR_GROUP]){if(a>12)return null;var O=r[AM_PM_HOUR_GROUP][0].toLowerCase();"a"==O&&(u=0,12==a&&(a=0)),"p"==O&&(u=1,12!=a&&(a+=12))}if(i.start.assign("hour",a),i.start.assign("minute",l),u>=0?i.start.assign("meridiem",u):a<12?i.start.imply("meridiem",0):i.start.imply("meridiem",1),!(r=SECOND_REG_PATTERN.exec(e.substring(i.index+i.text.length))))return i.text.match(/^\d+$/)?null:i;if(r[0].match(/^\s*(\+|\-)\s*\d{3,4}$/))return i;null==i.end&&(i.end=new ParsedComponents(null,i.start.date()));var a=0,l=0,u=-1;if(null!=r[MILLI_SECOND_GROUP]){var d=parseInt(r[MILLI_SECOND_GROUP].substring(0,3));if(d>=1e3)return null;i.end.assign("millisecond",d)}if(null!=r[SECOND_GROUP]){var m=parseInt(r[SECOND_GROUP]);if(m>=60)return null;i.end.assign("second",m)}if(a=parseInt(r[2]),null!=r[MINUTE_GROUP]){if((l=parseInt(r[MINUTE_GROUP]))>=60)return i}else a>100&&(l=a%100,a=parseInt(a/100));if(l>=60)return null;if(a>24)return null;if(a>=12&&(u=1),null!=r[AM_PM_HOUR_GROUP]){if(a>12)return null;var O=r[AM_PM_HOUR_GROUP][0].toLowerCase();"a"==O&&(u=0,12==a&&(a=0,i.end.isCertain("day")||i.end.imply("day",i.end.get("day")+1))),"p"==O&&(u=1,12!=a&&(a+=12)),i.start.isCertain("meridiem")||(0==u?(i.start.imply("meridiem",0),12==i.start.get("hour")&&i.start.assign("hour",0)):(i.start.imply("meridiem",1),12!=i.start.get("hour")&&i.start.assign("hour",i.start.get("hour")+12)))}if(i.text=i.text+r[0],i.end.assign("hour",a),i.end.assign("minute",l),u>=0)i.end.assign("meridiem",u);else{i.start.isCertain("meridiem")&&1==i.start.get("meridiem")&&i.start.get("hour")>a?i.end.imply("meridiem",0):a>12&&i.end.imply("meridiem",1)}return i.end.date().getTime()<i.start.date().getTime()&&i.end.imply("day",i.end.get("day")+1),i}};
},{"../../result":65,"../parser":50,"moment":2}],26:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,util=require("../../utils/EN"),PATTERN=new RegExp("(\\W|^)("+util.TIME_UNIT_PATTERN+")(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))","i"),STRICT_PATTERN=new RegExp("(\\W|^)("+util.TIME_UNIT_STRICT_PATTERN+")(?:later|from now)(?=(?:\\W|$))","i");exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return this.isStrictMode()?STRICT_PATTERN:PATTERN},this.extract=function(t,e,r,a){if(r.index>0&&t[r.index-1].match(/\w/))return null;var t=r[0];t=r[0].substr(r[1].length,r[0].length-r[1].length),index=r.index+r[1].length;var n=new ParsedResult({index:index,text:t,ref:e}),s=util.extractDateTimeUnitFragments(r[2]),i=moment(e);for(var o in s)i.add(s[o],o);return(s.hour>0||s.minute>0||s.second>0)&&(n.start.assign("hour",i.hour()),n.start.assign("minute",i.minute()),n.start.assign("second",i.second()),n.tags.ENTimeAgoFormatParser=!0),s.d>0||s.month>0||s.year>0?(n.start.assign("day",i.date()),n.start.assign("month",i.month()+1),n.start.assign("year",i.year())):(s.week>0&&n.start.imply("weekday",i.day()),n.start.imply("day",i.date()),n.start.imply("month",i.month()+1),n.start.imply("year",i.year())),n}};
},{"../../result":65,"../../utils/EN":67,"../parser":50,"moment":2}],27:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,DAYS_OFFSET={sunday:0,sun:0,monday:1,mon:1,tuesday:2,tues:2,tue:2,wednesday:3,wed:3,thursday:4,thurs:4,thur:4,thu:4,friday:5,fri:5,saturday:6,sat:6},PATTERN=new RegExp("(\\W|^)(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?("+Object.keys(DAYS_OFFSET).join("|")+")(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(this|last|past|next)\\s*week)?(?=\\W|$)","i"),PREFIX_GROUP=2,WEEKDAY_GROUP=3,POSTFIX_GROUP=4;exports.updateParsedComponent=function(t,e,a,s){var r=moment(e),n=!1,d=r.day();return"last"==s||"past"==s?(r.day(a-7),n=!0):"next"==s?(r.day(a+7),n=!0):"this"==s?r.day(a):Math.abs(a-7-d)<Math.abs(a-d)?r.day(a-7):Math.abs(a+7-d)<Math.abs(a-d)?r.day(a+7):r.day(a),t.start.assign("weekday",a),n?(t.start.assign("day",r.date()),t.start.assign("month",r.month()+1),t.start.assign("year",r.year())):(t.start.imply("day",r.date()),t.start.imply("month",r.month()+1),t.start.imply("year",r.year())),t},exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(t,e,a,s){var r=a.index+a[1].length,t=a[0].substr(a[1].length,a[0].length-a[1].length),n=new ParsedResult({index:r,text:t,ref:e}),d=a[WEEKDAY_GROUP].toLowerCase(),u=DAYS_OFFSET[d];if(void 0===u)return null;var i=a[PREFIX_GROUP],o=a[POSTFIX_GROUP],y=i||o;return y=y||"",y=y.toLowerCase(),exports.updateParsedComponent(n,e,u,y),n.tags.ENWeekdayParser=!0,n}};
},{"../../result":65,"../parser":50,"moment":2}],28:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,PATTERN=/(\W|^)(ahora|esta\s*(mañana|tarde|noche)|(ayer|mañana)\s*por\s*la\s*(mañana|tarde|noche)|hoy|mañana|ayer|anoche)(?=\W|$)/i;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(a,e,r,t){var a=r[0].substr(r[1].length),s=r.index+r[1].length,o=new ParsedResult({index:s,text:a,ref:e}),i=moment(e),n=i.clone(),m=a.toLowerCase().replace(/\s+/g," ");if("mañana"==m)i.hour()>1&&n.add(1,"day");else if("ayer"==m)n.add(-1,"day");else if("anoche"==m)o.start.imply("hour",0),i.hour()>6&&n.add(-1,"day");else if(m.match("esta")){var l=r[3].toLowerCase();"tarde"==l?o.start.imply("hour",18):"mañana"==l?o.start.imply("hour",6):"noche"==l&&(o.start.imply("hour",22),o.start.imply("meridiem",1))}else if(m.match(/por\s*la/)){var d=r[4].toLowerCase();"ayer"===d?n.add(-1,"day"):"mañana"===d&&n.add(1,"day");var l=r[5].toLowerCase();"tarde"==l?o.start.imply("hour",18):"mañana"==l?o.start.imply("hour",9):"noche"==l&&(o.start.imply("hour",22),o.start.imply("meridiem",1))}else m.match("ahora")&&(o.start.imply("hour",i.hour()),o.start.imply("minute",i.minute()),o.start.imply("second",i.second()),o.start.imply("millisecond",i.millisecond()));return o.start.assign("day",n.date()),o.start.assign("month",n.month()+1),o.start.assign("year",n.year()),o.tags.ESCasualDateParser=!0,o}};
},{"../../result":65,"../parser":50,"moment":2}],29:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,PATTERN=/(\W|^)(dentro\s*de|en)\s*([0-9]+|medi[oa]|una?)\s*(minutos?|horas?|d[]as?)\s*(?=(?:\W|$))/i;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(t,a,r,e){var s=r.index+r[1].length,t=r[0];t=r[0].substr(r[1].length,r[0].length-r[1].length);var n=new ParsedResult({index:s,text:t,ref:a}),i=parseInt(r[3]);isNaN(i)&&(i=r[3].match(/medi/)?.5:1);var m=moment(a);return r[4].match(/d[]a/)?(m.add(i,"d"),n.start.assign("year",m.year()),n.start.assign("month",m.month()+1),n.start.assign("day",m.date()),n):(r[4].match(/hora/)?m.add(i,"hour"):r[4].match(/minuto/)&&m.add(i,"minute"),n.start.imply("year",m.year()),n.start.imply("month",m.month()+1),n.start.imply("day",m.date()),n.start.assign("hour",m.hour()),n.start.assign("minute",m.minute()),n.tags.ESDeadlineFormatParser=!0,n)}};
},{"../../result":65,"../parser":50,"moment":2}],30:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,util=require("../../utils/ES"),DAYS_OFFSET=util.WEEKDAY_OFFSET,PATTERN=new RegExp("(\\W|^)(?:(Domingo|Lunes|Martes|Miércoles|Miercoles|Jueves|Viernes|Sábado|Sabado|Dom|Lun|Mar|Mie|Jue|Vie|Sab)\\s*,?\\s*)?([0-9]{1,2})(?:º|ª|°)?(?:\\s*(?:desde|de|\\-|\\–|al?|hasta|\\s)\\s*([0-9]{1,2})(?:º|ª|°)?)?\\s*(?:de)?\\s*(Ene(?:ro|\\.)?|Feb(?:rero|\\.)?|Mar(?:zo|\\.)?|Abr(?:il|\\.)?|May(?:o|\\.)?|Jun(?:io|\\.)?|Jul(?:io|\\.)?|Ago(?:sto|\\.)?|Sep(?:tiembre|\\.)?|Set(?:iembre|\\.)?|Oct(?:ubre|\\.)?|Nov(?:iembre|\\.)?|Dic(?:iembre|\\.)?)(?:\\s*(?:del?)?(\\s*[0-9]{1,4}(?![^\\s]\\d))(\\s*[ad]\\.?\\s*c\\.?|a\\.?\\s*d\\.?)?)?(?=\\W|$)","i"),WEEKDAY_GROUP=2,DATE_GROUP=3,DATE_TO_GROUP=4,MONTH_NAME_GROUP=5,YEAR_GROUP=6,YEAR_BE_GROUP=7;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(e,t,s,a){var r=new ParsedResult({text:s[0].substr(s[1].length,s[0].length-s[1].length),index:s.index+s[1].length,ref:t}),n=s[MONTH_NAME_GROUP];n=util.MONTH_OFFSET[n.toLowerCase()];var i=s[DATE_GROUP];i=parseInt(i);var o=null;if(s[YEAR_GROUP]&&(o=s[YEAR_GROUP],o=parseInt(o),s[YEAR_BE_GROUP]?/a\.?\s*c\.?/i.test(s[YEAR_BE_GROUP])&&(o=-o):o<100&&(o+=2e3)),o)r.start.assign("day",i),r.start.assign("month",n),r.start.assign("year",o);else{var E=moment(t);E.month(n-1),E.date(i),E.year(moment(t).year());var d=E.clone().add(1,"y"),l=E.clone().add(-1,"y");Math.abs(d.diff(moment(t)))<Math.abs(E.diff(moment(t)))?E=d:Math.abs(l.diff(moment(t)))<Math.abs(E.diff(moment(t)))&&(E=l),r.start.assign("day",i),r.start.assign("month",n),r.start.imply("year",E.year())}if(s[WEEKDAY_GROUP]){var R=s[WEEKDAY_GROUP];R=util.WEEKDAY_OFFSET[R.toLowerCase()],r.start.assign("weekday",R)}return s[DATE_TO_GROUP]&&(r.end=r.start.clone(),r.end.assign("day",parseInt(s[DATE_TO_GROUP]))),r.tags.ESMonthNameLittleEndianParser=!0,r}};
},{"../../result":65,"../../utils/ES":68,"../parser":50,"moment":2}],31:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,PATTERN=new RegExp("(\\W|^)(?:((?:domingo|dom|lunes|lun|martes|mar|mi[ée]rcoles|mie|jueves|jue|viernes|vie|s[áa]bado|sab))\\s*\\,?\\s*)?([0-1]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}s*,?s*|[0-9]{2}s*,?s*))?(\\W|$)","i"),DAYS_OFFSET={domingo:0,dom:0,lunes:1,lun:1,martes:2,mar:2,miercoles:3,"miércoles":3,mie:3,jueves:4,jue:4,viernes:5,vier:5,"sábado":6,sabado:6,sab:6},OPENNING_GROUP=1,ENDING_GROUP=6,WEEKDAY_GROUP=2,MONTH_GROUP=4,DAY_GROUP=3,YEAR_GROUP=5;exports.Parser=function(e){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(e,r,s,t){if("/"==s[OPENNING_GROUP]||"/"==s[ENDING_GROUP])return void(s.index+=s[0].length);var a=s.index+s[OPENNING_GROUP].length,e=s[0].substr(s[OPENNING_GROUP].length,s[0].length-s[ENDING_GROUP].length),n=new ParsedResult({text:e,index:a,ref:r});if(!e.match(/^\d\.\d$/)&&!e.match(/^\d\.\d{1,2}\.\d{1,2}$/)&&(s[YEAR_GROUP]||!(s[0].indexOf("/")<0))){var i=s[YEAR_GROUP]||moment(r).year()+"",P=s[MONTH_GROUP],O=s[DAY_GROUP];if(P=parseInt(P),O=parseInt(O),i=parseInt(i),(P<1||P>12)&&P>12){if(!(O>=1&&O<=12&&P>=13&&P<=31))return null;var R=P;P=O,O=R}return O<1||O>31?null:(i<100&&(i+=i>50?1900:2e3),n.start.assign("day",O),n.start.assign("month",P),n.start.assign("year",i),s[WEEKDAY_GROUP]&&n.start.assign("weekday",DAYS_OFFSET[s[WEEKDAY_GROUP].toLowerCase()]),n.tags.ESSlashDateFormatParser=!0,n)}}};
},{"../../result":65,"../parser":50,"moment":2}],32:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,PATTERN=/(\W|^)hace\s*([0-9]+|medi[oa]|una?)\s*(minutos?|horas?|semanas?|d[]as?|mes(es)?|años?)(?=(?:\W|$))/i;exports.Parser=function(){Parser.apply(this,arguments),this.pattern=function(){return PATTERN},this.extract=function(a,t,e,r){if(e.index>0&&a[e.index-1].match(/\w/))return null;var a=e[0];a=e[0].substr(e[1].length,e[0].length-e[1].length),index=e.index+e[1].length;var s=new ParsedResult({index:index,text:a,ref:t}),n=parseInt(e[2]);isNaN(n)&&(n=e[2].match(/medi/)?.5:1);var m=moment(t);return e[3].match(/hora/)||e[3].match(/minuto/)?(e[3].match(/hora/)?m.add(-n,"hour"):e[3].match(/minuto/)&&m.add(-n,"minute"),s.start.imply("day",m.date()),s.start.imply("month",m.month()+1),s.start.imply("year",m.year()),s.start.assign("hour",m.hour()),s.start.assign("minute",m.minute()),s.tags.ESTimeAgoFormatParser=!0,s):e[3].match(/semana/)?(m.add(-n,"week"),s.start.imply("day",m.date()),s.start.imply("month",m.month()+1),s.start.imply("year",m.year()),s.start.imply("weekday",m.day()),s):(e[3].match(/d[]a/)&&m.add(-n,"d"),e[3].match(/mes/)&&m.add(-n,"month"),e[3].match(/año/)&&m.add(-n,"year"),s.start.assign("day",m.date()),s.start.assign("month",m.month()+1),s.start.assign("year",m.year()),s)}};
},{"../../result":65,"../parser":50,"moment":2}],33:[function(require,module,exports){
var moment=require("moment"),Parser=require("../parser").Parser,ParsedResult=require("../../result").ParsedResult,ParsedComponents=require("../../result").ParsedComponents,FIRST_REG_PATTERN=new RegExp("(^|\\s|T)(?:(?:a las?|al?|desde|de)\\s*)?(\\d{1,4}|mediod[ií]a|medianoche)(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\:|\\:)(\\d{2}))?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)","i"),SECOND_REG_PATTERN=new RegExp("^\\s*(\\-|\\–|\\~|\\〜|a(?:s*las)?|\\?)\\s*(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2}))?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)",&qu