chrono-node 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -29
- package/dist/chrono.js +7865 -0
- package/dist/chrono.js.map +1 -0
- package/dist/chrono.min.js +3 -0
- package/dist/chrono.min.js.LICENSE.txt +19 -0
- package/dist/chrono.min.js.map +1 -0
- package/package.json +9 -7
- package/src/parsers/en/ENSlashMonthFormatParser.js +2 -3
- package/test/en/en_month.test.js +43 -0
- package/webpack.config.js +39 -0
- package/bower.json +0 -24
- package/chrono.js +0 -8101
- package/chrono.map.json +0 -1
- package/chrono.min.js +0 -163
- package/chrono.min.json +0 -1
- package/karma.conf.js +0 -68
- package/timezone.js +0 -9
package/chrono.min.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.js","sources":["node_modules/browserify/node_modules/browser-pack/_prelude.js","node_modules/moment/moment.js","src/chrono.js","src/options.js","src/parsers/EN/SlashParser.js","src/parsers/parser.js","src/refiners/EN/MergeDateRangeRefiner.js","src/refiners/refiner.js","src/result.js"],"names":[],"mappings":"AAAA;ACAA;AACA;AACA;AACA;;ACHA;;ACAA;;ACAA;;ACAA;;ACAA;;ACAA;;ACAA","sourcesContent":["(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})","(function (global){\n(function(e){function t(e,t,n){switch(arguments.length){case 2:return null!=e?e:t;case 3:return null!=e?e:null!=t?t:n;default:throw new Error(\"Implement me\")}}function n(e,t){return bt.call(e,t)}function s(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function a(e){Mt.suppressDeprecationWarnings===!1&&\"undefined\"!=typeof console&&console.warn&&console.warn(\"Deprecation warning: \"+e)}function i(e,t){var n=!0;return h(function(){return n&&(a(e),n=!1),t.apply(this,arguments)},t)}function r(e,t){pn[e]||(a(t),pn[e]=!0)}function o(e,t){return function(n){return m(e.call(this,n),t)}}function u(e,t){return function(n){return this.localeData().ordinal(e.call(this,n),t)}}function c(){}function l(e,t){t!==!1&&U(e),f(this,e),this._d=new Date(+e._d)}function d(e){var t=k(e),n=t.year||0,s=t.quarter||0,a=t.month||0,i=t.week||0,r=t.day||0,o=t.hour||0,u=t.minute||0,c=t.second||0,l=t.millisecond||0;this._milliseconds=+l+1e3*c+6e4*u+36e5*o,this._days=+r+7*i,this._months=+a+3*s+12*n,this._data={},this._locale=Mt.localeData(),this._bubble()}function h(e,t){for(var s in t)n(t,s)&&(e[s]=t[s]);return n(t,\"toString\")&&(e.toString=t.toString),n(t,\"valueOf\")&&(e.valueOf=t.valueOf),e}function f(e,t){var n,s,a;if(\"undefined\"!=typeof t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),\"undefined\"!=typeof t._i&&(e._i=t._i),\"undefined\"!=typeof t._f&&(e._f=t._f),\"undefined\"!=typeof t._l&&(e._l=t._l),\"undefined\"!=typeof t._strict&&(e._strict=t._strict),\"undefined\"!=typeof t._tzm&&(e._tzm=t._tzm),\"undefined\"!=typeof t._isUTC&&(e._isUTC=t._isUTC),\"undefined\"!=typeof t._offset&&(e._offset=t._offset),\"undefined\"!=typeof t._pf&&(e._pf=t._pf),\"undefined\"!=typeof t._locale&&(e._locale=t._locale),Pt.length>0)for(n in Pt)s=Pt[n],a=t[s],\"undefined\"!=typeof a&&(e[s]=a);return e}function _(e){return 0>e?Math.ceil(e):Math.floor(e)}function m(e,t,n){for(var s=\"\"+Math.abs(e),a=e>=0;s.length<t;)s=\"0\"+s;return(a?n?\"+\":\"\":\"-\")+s}function y(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,\"M\").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,\"M\"),n}function p(e,t){var n;return t=I(t,e),e.isBefore(t)?n=y(e,t):(n=y(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function g(e,t){return function(n,s){var a,i;return null===s||isNaN(+s)||(r(t,\"moment().\"+t+\"(period, number) is deprecated. Please use moment().\"+t+\"(number, period).\"),i=n,n=s,s=i),n=\"string\"==typeof n?+n:n,a=Mt.duration(n,s),M(this,a,e),this}}function M(e,t,n,s){var a=t._milliseconds,i=t._days,r=t._months;s=null==s?!0:s,a&&e._d.setTime(+e._d+a*n),i&&ft(e,\"Date\",ht(e,\"Date\")+i*n),r&&dt(e,ht(e,\"Month\")+r*n),s&&Mt.updateOffset(e,i||r)}function D(e){return\"[object Array]\"===Object.prototype.toString.call(e)}function Y(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function w(e,t,n){var s,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0;for(s=0;a>s;s++)(n&&e[s]!==t[s]||!n&&S(e[s])!==S(t[s]))&&r++;return r+i}function v(e){if(e){var t=e.toLowerCase().replace(/(.)s$/,\"$1\");e=ln[e]||dn[t]||t}return e}function k(e){var t,s,a={};for(s in e)n(e,s)&&(t=v(s),t&&(a[t]=e[s]));return a}function b(t){var n,s;if(0===t.indexOf(\"week\"))n=7,s=\"day\";else{if(0!==t.indexOf(\"month\"))return;n=12,s=\"month\"}Mt[t]=function(a,i){var r,o,u=Mt._locale[t],c=[];if(\"number\"==typeof a&&(i=a,a=e),o=function(e){var t=Mt().utc().set(s,e);return u.call(Mt._locale,t,a||\"\")},null!=i)return o(i);for(r=0;n>r;r++)c.push(o(r));return c}}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function T(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function O(e,t,n){return ot(Mt([e,11,31+t-n]),t,n).week}function W(e){return G(e)?366:365}function G(e){return 0===e%4&&0!==e%100||0===e%400}function U(e){var t;e._a&&-2===e._pf.overflow&&(t=e._a[Tt]<0||e._a[Tt]>11?Tt:e._a[Ot]<1||e._a[Ot]>T(e._a[St],e._a[Tt])?Ot:e._a[Wt]<0||e._a[Wt]>24||24===e._a[Wt]&&(0!==e._a[Gt]||0!==e._a[Ut]||0!==e._a[Ct])?Wt:e._a[Gt]<0||e._a[Gt]>59?Gt:e._a[Ut]<0||e._a[Ut]>59?Ut:e._a[Ct]<0||e._a[Ct]>999?Ct:-1,e._pf._overflowDayOfYear&&(St>t||t>Ot)&&(t=Ot),e._pf.overflow=t)}function C(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length&&t._pf.bigHour===e)),t._isValid}function F(e){return e?e.toLowerCase().replace(\"_\",\"-\"):e}function P(e){for(var t,n,s,a,i=0;i<e.length;){for(a=F(e[i]).split(\"-\"),t=a.length,n=F(e[i+1]),n=n?n.split(\"-\"):null;t>0;){if(s=z(a.slice(0,t).join(\"-\")))return s;if(n&&n.length>=t&&w(a,n,!0)>=t-1)break;t--}i++}return null}function z(e){var t=null;if(!Ft[e]&&zt)try{t=Mt.locale(),require(\"./locale/\"+e),Mt.locale(t)}catch(n){}return Ft[e]}function I(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(Mt.isMoment(e)||Y(e)?+e:+Mt(e))-+n,n._d.setTime(+n._d+s),Mt.updateOffset(n,!1),n):Mt(e).local()}function L(e){return e.match(/\\[[\\s\\S]/)?e.replace(/^\\[|\\]$/g,\"\"):e.replace(/\\\\/g,\"\")}function x(e){var t,n,s=e.match(Ht);for(t=0,n=s.length;n>t;t++)s[t]=yn[s[t]]?yn[s[t]]:L(s[t]);return function(a){var i=\"\";for(t=0;n>t;t++)i+=s[t]instanceof Function?s[t].call(a,e):s[t];return i}}function H(e,t){return e.isValid()?(t=A(t,e.localeData()),hn[t]||(hn[t]=x(t)),hn[t](e)):e.localeData().invalidDate()}function A(e,t){function n(e){return t.longDateFormat(e)||e}var s=5;for(At.lastIndex=0;s>=0&&At.test(e);)e=e.replace(At,n),At.lastIndex=0,s-=1;return e}function Z(e,t){var n,s=t._strict;switch(e){case\"Q\":return Xt;case\"DDDD\":return Kt;case\"YYYY\":case\"GGGG\":case\"gggg\":return s?en:jt;case\"Y\":case\"G\":case\"g\":return nn;case\"YYYYYY\":case\"YYYYY\":case\"GGGGG\":case\"ggggg\":return s?tn:Nt;case\"S\":if(s)return Xt;case\"SS\":if(s)return Bt;case\"SSS\":if(s)return Kt;case\"DDD\":return Et;case\"MMM\":case\"MMMM\":case\"dd\":case\"ddd\":case\"dddd\":return $t;case\"a\":case\"A\":return t._locale._meridiemParse;case\"x\":return Rt;case\"X\":return Qt;case\"Z\":case\"ZZ\":return qt;case\"T\":return Jt;case\"SSSS\":return Vt;case\"MM\":case\"DD\":case\"YY\":case\"GG\":case\"gg\":case\"HH\":case\"hh\":case\"mm\":case\"ss\":case\"ww\":case\"WW\":return s?Bt:Zt;case\"M\":case\"D\":case\"d\":case\"H\":case\"h\":case\"m\":case\"s\":case\"w\":case\"W\":case\"e\":case\"E\":return Zt;case\"Do\":return s?t._locale._ordinalParse:t._locale._ordinalParseLenient;default:return n=new RegExp(Q(R(e.replace(\"\\\\\",\"\")),\"i\"))}}function E(e){e=e||\"\";var t=e.match(qt)||[],n=t[t.length-1]||[],s=(n+\"\").match(un)||[\"-\",0,0],a=+(60*s[1])+S(s[2]);return\"+\"===s[0]?-a:a}function j(e,t,n){var s,a=n._a;switch(e){case\"Q\":null!=t&&(a[Tt]=3*(S(t)-1));break;case\"M\":case\"MM\":null!=t&&(a[Tt]=S(t)-1);break;case\"MMM\":case\"MMMM\":s=n._locale.monthsParse(t,e,n._strict),null!=s?a[Tt]=s:n._pf.invalidMonth=t;break;case\"D\":case\"DD\":null!=t&&(a[Ot]=S(t));break;case\"Do\":null!=t&&(a[Ot]=S(parseInt(t.match(/\\d{1,2}/)[0],10)));break;case\"DDD\":case\"DDDD\":null!=t&&(n._dayOfYear=S(t));break;case\"YY\":a[St]=Mt.parseTwoDigitYear(t);break;case\"YYYY\":case\"YYYYY\":case\"YYYYYY\":a[St]=S(t);break;case\"a\":case\"A\":n._isPm=n._locale.isPM(t);break;case\"h\":case\"hh\":n._pf.bigHour=!0;case\"H\":case\"HH\":a[Wt]=S(t);break;case\"m\":case\"mm\":a[Gt]=S(t);break;case\"s\":case\"ss\":a[Ut]=S(t);break;case\"S\":case\"SS\":case\"SSS\":case\"SSSS\":a[Ct]=S(1e3*(\"0.\"+t));break;case\"x\":n._d=new Date(S(t));break;case\"X\":n._d=new Date(1e3*parseFloat(t));break;case\"Z\":case\"ZZ\":n._useUTC=!0,n._tzm=E(t);break;case\"dd\":case\"ddd\":case\"dddd\":s=n._locale.weekdaysParse(t),null!=s?(n._w=n._w||{},n._w.d=s):n._pf.invalidWeekday=t;break;case\"w\":case\"ww\":case\"W\":case\"WW\":case\"d\":case\"e\":case\"E\":e=e.substr(0,1);case\"gggg\":case\"GGGG\":case\"GGGGG\":e=e.substr(0,2),t&&(n._w=n._w||{},n._w[e]=S(t));break;case\"gg\":case\"GG\":n._w=n._w||{},n._w[e]=Mt.parseTwoDigitYear(t)}}function N(e){var n,s,a,i,r,o,u;n=e._w,null!=n.GG||null!=n.W||null!=n.E?(r=1,o=4,s=t(n.GG,e._a[St],ot(Mt(),1,4).year),a=t(n.W,1),i=t(n.E,1)):(r=e._locale._week.dow,o=e._locale._week.doy,s=t(n.gg,e._a[St],ot(Mt(),r,o).year),a=t(n.w,1),null!=n.d?(i=n.d,r>i&&++a):i=null!=n.e?n.e+r:r),u=ut(s,a,i,o,r),e._a[St]=u.year,e._dayOfYear=u.dayOfYear}function V(e){var n,s,a,i,r=[];if(!e._d){for(a=q(e),e._w&&null==e._a[Ot]&&null==e._a[Tt]&&N(e),e._dayOfYear&&(i=t(e._a[St],a[St]),e._dayOfYear>W(i)&&(e._pf._overflowDayOfYear=!0),s=st(i,0,e._dayOfYear),e._a[Tt]=s.getUTCMonth(),e._a[Ot]=s.getUTCDate()),n=0;3>n&&null==e._a[n];++n)e._a[n]=r[n]=a[n];for(;7>n;n++)e._a[n]=r[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[Wt]&&0===e._a[Gt]&&0===e._a[Ut]&&0===e._a[Ct]&&(e._nextDay=!0,e._a[Wt]=0),e._d=(e._useUTC?st:nt).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()+e._tzm),e._nextDay&&(e._a[Wt]=24)}}function $(e){var t;e._d||(t=k(e._i),e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],V(e))}function q(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function J(t){if(t._f===Mt.ISO_8601)return B(t),void 0;t._a=[],t._pf.empty=!0;var n,s,a,i,r,o=\"\"+t._i,u=o.length,c=0;for(a=A(t._f,t._locale).match(Ht)||[],n=0;n<a.length;n++)i=a[n],s=(o.match(Z(i,t))||[])[0],s&&(r=o.substr(0,o.indexOf(s)),r.length>0&&t._pf.unusedInput.push(r),o=o.slice(o.indexOf(s)+s.length),c+=s.length),yn[i]?(s?t._pf.empty=!1:t._pf.unusedTokens.push(i),j(i,s,t)):t._strict&&!s&&t._pf.unusedTokens.push(i);t._pf.charsLeftOver=u-c,o.length>0&&t._pf.unusedInput.push(o),t._pf.bigHour===!0&&t._a[Wt]<=12&&(t._pf.bigHour=e),t._isPm&&t._a[Wt]<12&&(t._a[Wt]+=12),t._isPm===!1&&12===t._a[Wt]&&(t._a[Wt]=0),V(t),U(t)}function R(e){return e.replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(e,t,n,s,a){return t||n||s||a})}function Q(e){return e.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")}function X(e){var t,n,a,i,r;if(0===e._f.length)return e._pf.invalidFormat=!0,e._d=new Date(0/0),void 0;for(i=0;i<e._f.length;i++)r=0,t=f({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._pf=s(),t._f=e._f[i],J(t),C(t)&&(r+=t._pf.charsLeftOver,r+=10*t._pf.unusedTokens.length,t._pf.score=r,(null==a||a>r)&&(a=r,n=t));h(e,n||t)}function B(e){var t,n,s=e._i,a=sn.exec(s);if(a){for(e._pf.iso=!0,t=0,n=rn.length;n>t;t++)if(rn[t][1].exec(s)){e._f=rn[t][0]+(a[6]||\" \");break}for(t=0,n=on.length;n>t;t++)if(on[t][1].exec(s)){e._f+=on[t][0];break}s.match(qt)&&(e._f+=\"Z\"),J(e)}else e._isValid=!1}function K(e){B(e),e._isValid===!1&&(delete e._isValid,Mt.createFromInputFallback(e))}function et(e,t){var n,s=[];for(n=0;n<e.length;++n)s.push(t(e[n],n));return s}function tt(t){var n,s=t._i;s===e?t._d=new Date:Y(s)?t._d=new Date(+s):null!==(n=It.exec(s))?t._d=new Date(+n[1]):\"string\"==typeof s?K(t):D(s)?(t._a=et(s.slice(0),function(e){return parseInt(e,10)}),V(t)):\"object\"==typeof s?$(t):\"number\"==typeof s?t._d=new Date(s):Mt.createFromInputFallback(t)}function nt(e,t,n,s,a,i,r){var o=new Date(e,t,n,s,a,i,r);return 1970>e&&o.setFullYear(e),o}function st(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function at(e,t){if(\"string\"==typeof e)if(isNaN(e)){if(e=t.weekdaysParse(e),\"number\"!=typeof e)return null}else e=parseInt(e,10);return e}function it(e,t,n,s,a){return a.relativeTime(t||1,!!n,e,s)}function rt(e,t,n){var s=Mt.duration(e).abs(),a=kt(s.as(\"s\")),i=kt(s.as(\"m\")),r=kt(s.as(\"h\")),o=kt(s.as(\"d\")),u=kt(s.as(\"M\")),c=kt(s.as(\"y\")),l=a<fn.s&&[\"s\",a]||1===i&&[\"m\"]||i<fn.m&&[\"mm\",i]||1===r&&[\"h\"]||r<fn.h&&[\"hh\",r]||1===o&&[\"d\"]||o<fn.d&&[\"dd\",o]||1===u&&[\"M\"]||u<fn.M&&[\"MM\",u]||1===c&&[\"y\"]||[\"yy\",c];return l[2]=t,l[3]=+e>0,l[4]=n,it.apply({},l)}function ot(e,t,n){var s,a=n-t,i=n-e.day();return i>a&&(i-=7),a-7>i&&(i+=7),s=Mt(e).add(i,\"d\"),{week:Math.ceil(s.dayOfYear()/7),year:s.year()}}function ut(e,t,n,s,a){var i,r,o=st(e,0,1).getUTCDay();return o=0===o?7:o,n=null!=n?n:a,i=a-o+(o>s?7:0)-(a>o?7:0),r=7*(t-1)+(n-a)+i+1,{year:r>0?e:e-1,dayOfYear:r>0?r:W(e-1)+r}}function ct(t){var n,s=t._i,a=t._f;return t._locale=t._locale||Mt.localeData(t._l),null===s||a===e&&\"\"===s?Mt.invalid({nullInput:!0}):(\"string\"==typeof s&&(t._i=s=t._locale.preparse(s)),Mt.isMoment(s)?new l(s,!0):(a?D(a)?X(t):J(t):tt(t),n=new l(t),n._nextDay&&(n.add(1,\"d\"),n._nextDay=e),n))}function lt(e,t){var n,s;if(1===t.length&&D(t[0])&&(t=t[0]),!t.length)return Mt();for(n=t[0],s=1;s<t.length;++s)t[s][e](n)&&(n=t[s]);return n}function dt(e,t){var n;return\"string\"==typeof t&&(t=e.localeData().monthsParse(t),\"number\"!=typeof t)?e:(n=Math.min(e.date(),T(e.year(),t)),e._d[\"set\"+(e._isUTC?\"UTC\":\"\")+\"Month\"](t,n),e)}function ht(e,t){return e._d[\"get\"+(e._isUTC?\"UTC\":\"\")+t]()}function ft(e,t,n){return\"Month\"===t?dt(e,n):e._d[\"set\"+(e._isUTC?\"UTC\":\"\")+t](n)}function _t(e,t){return function(n){return null!=n?(ft(this,e,n),Mt.updateOffset(this,t),this):ht(this,e)}}function mt(e){return 400*e/146097}function yt(e){return 146097*e/400}function pt(e){Mt.duration.fn[e]=function(){return this._data[e]}}function gt(e){\"undefined\"==typeof ender&&(Dt=vt.moment,vt.moment=e?i(\"Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.\",Mt):Mt)}for(var Mt,Dt,Yt,wt=\"2.8.4\",vt=\"undefined\"!=typeof global?global:this,kt=Math.round,bt=Object.prototype.hasOwnProperty,St=0,Tt=1,Ot=2,Wt=3,Gt=4,Ut=5,Ct=6,Ft={},Pt=[],zt=\"undefined\"!=typeof module&&module&&module.exports,It=/^\\/?Date\\((\\-?\\d+)/i,Lt=/(\\-)?(?:(\\d*)\\.)?(\\d+)\\:(\\d+)(?:\\:(\\d+)\\.?(\\d{3})?)?/,xt=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Ht=/(\\[[^\\[]*\\])|(\\\\)?(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,At=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Zt=/\\d\\d?/,Et=/\\d{1,3}/,jt=/\\d{1,4}/,Nt=/[+\\-]?\\d{1,6}/,Vt=/\\d+/,$t=/[0-9]*['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+|[\\u0600-\\u06FF\\/]+(\\s*?[\\u0600-\\u06FF]+){1,2}/i,qt=/Z|[\\+\\-]\\d\\d:?\\d\\d/gi,Jt=/T/i,Rt=/[\\+\\-]?\\d+/,Qt=/[\\+\\-]?\\d+(\\.\\d{1,3})?/,Xt=/\\d/,Bt=/\\d\\d/,Kt=/\\d{3}/,en=/\\d{4}/,tn=/[+-]?\\d{6}/,nn=/[+-]?\\d+/,sn=/^\\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)?)?$/,an=\"YYYY-MM-DDTHH:mm:ssZ\",rn=[[\"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}/]],on=[[\"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/]],un=/([\\+\\-]|\\d\\d)/gi,cn=(\"Date|Hours|Minutes|Seconds|Milliseconds\".split(\"|\"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),ln={ms:\"millisecond\",s:\"second\",m:\"minute\",h:\"hour\",d:\"day\",D:\"date\",w:\"week\",W:\"isoWeek\",M:\"month\",Q:\"quarter\",y:\"year\",DDD:\"dayOfYear\",e:\"weekday\",E:\"isoWeekday\",gg:\"weekYear\",GG:\"isoWeekYear\"},dn={dayofyear:\"dayOfYear\",isoweekday:\"isoWeekday\",isoweek:\"isoWeek\",weekyear:\"weekYear\",isoweekyear:\"isoWeekYear\"},hn={},fn={s:45,m:45,h:22,d:26,M:11},_n=\"DDD w W M D d\".split(\" \"),mn=\"M D H h m s w W\".split(\" \"),yn={M:function(){return this.month()+1},MMM:function(e){return this.localeData().monthsShort(this,e)},MMMM:function(e){return this.localeData().months(this,e)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(e){return this.localeData().weekdaysMin(this,e)},ddd:function(e){return this.localeData().weekdaysShort(this,e)},dddd:function(e){return this.localeData().weekdays(this,e)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return m(this.year()%100,2)},YYYY:function(){return m(this.year(),4)},YYYYY:function(){return m(this.year(),5)},YYYYYY:function(){var e=this.year(),t=e>=0?\"+\":\"-\";return t+m(Math.abs(e),6)},gg:function(){return m(this.weekYear()%100,2)},gggg:function(){return m(this.weekYear(),4)},ggggg:function(){return m(this.weekYear(),5)},GG:function(){return m(this.isoWeekYear()%100,2)},GGGG:function(){return m(this.isoWeekYear(),4)},GGGGG:function(){return m(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return S(this.milliseconds()/100)},SS:function(){return m(S(this.milliseconds()/10),2)},SSS:function(){return m(this.milliseconds(),3)},SSSS:function(){return m(this.milliseconds(),3)},Z:function(){var e=-this.zone(),t=\"+\";return 0>e&&(e=-e,t=\"-\"),t+m(S(e/60),2)+\":\"+m(S(e)%60,2)},ZZ:function(){var e=-this.zone(),t=\"+\";return 0>e&&(e=-e,t=\"-\"),t+m(S(e/60),2)+m(S(e)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},pn={},gn=[\"months\",\"monthsShort\",\"weekdays\",\"weekdaysShort\",\"weekdaysMin\"];_n.length;)Yt=_n.pop(),yn[Yt+\"o\"]=u(yn[Yt],Yt);for(;mn.length;)Yt=mn.pop(),yn[Yt+Yt]=o(yn[Yt],2);yn.DDDD=o(yn.DDD,3),h(c.prototype,{set:function(e){var t,n;for(n in e)t=e[n],\"function\"==typeof t?this[n]=t:this[\"_\"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+\"|\"+/\\d{1,2}/.source)},_months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),months:function(e){return this._months[e.month()]},_monthsShort:\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),monthsShort:function(e){return this._monthsShort[e.month()]},monthsParse:function(e,t,n){var s,a,i;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;12>s;s++){if(a=Mt.utc([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp(\"^\"+this.months(a,\"\").replace(\".\",\"\")+\"$\",\"i\"),this._shortMonthsParse[s]=new RegExp(\"^\"+this.monthsShort(a,\"\").replace(\".\",\"\")+\"$\",\"i\")),n||this._monthsParse[s]||(i=\"^\"+this.months(a,\"\")+\"|^\"+this.monthsShort(a,\"\"),this._monthsParse[s]=new RegExp(i.replace(\".\",\"\"),\"i\")),n&&\"MMMM\"===t&&this._longMonthsParse[s].test(e))return s;if(n&&\"MMM\"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},_weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),weekdays:function(e){return this._weekdays[e.day()]},_weekdaysShort:\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),weekdaysShort:function(e){return this._weekdaysShort[e.day()]},_weekdaysMin:\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),weekdaysMin:function(e){return this._weekdaysMin[e.day()]},weekdaysParse:function(e){var t,n,s;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;7>t;t++)if(this._weekdaysParse[t]||(n=Mt([2e3,1]).day(t),s=\"^\"+this.weekdays(n,\"\")+\"|^\"+this.weekdaysShort(n,\"\")+\"|^\"+this.weekdaysMin(n,\"\"),this._weekdaysParse[t]=new RegExp(s.replace(\".\",\"\"),\"i\")),this._weekdaysParse[t].test(e))return t},_longDateFormat:{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\"},longDateFormat:function(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t},isPM:function(e){return\"p\"===(e+\"\").toLowerCase().charAt(0)},_meridiemParse:/[ap]\\.?m?\\.?/i,meridiem:function(e,t,n){return e>11?n?\"pm\":\"PM\":n?\"am\":\"AM\"},_calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},calendar:function(e,t,n){var s=this._calendar[e];return\"function\"==typeof s?s.apply(t,[n]):s},_relativeTime:{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\"},relativeTime:function(e,t,n,s){var a=this._relativeTime[n];return\"function\"==typeof a?a(e,t,n,s):a.replace(/%d/i,e)},pastFuture:function(e,t){var n=this._relativeTime[e>0?\"future\":\"past\"];return\"function\"==typeof n?n(t):n.replace(/%s/i,t)},ordinal:function(e){return this._ordinal.replace(\"%d\",e)},_ordinal:\"%d\",_ordinalParse:/\\d{1,2}/,preparse:function(e){return e},postformat:function(e){return e},week:function(e){return ot(e,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:\"Invalid date\",invalidDate:function(){return this._invalidDate}}),Mt=function(t,n,a,i){var r;return\"boolean\"==typeof a&&(i=a,a=e),r={},r._isAMomentObject=!0,r._i=t,r._f=n,r._l=a,r._strict=i,r._isUTC=!1,r._pf=s(),ct(r)},Mt.suppressDeprecationWarnings=!1,Mt.createFromInputFallback=i(\"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(e){e._d=new Date(e._i+(e._useUTC?\" UTC\":\"\"))}),Mt.min=function(){var e=[].slice.call(arguments,0);return lt(\"isBefore\",e)},Mt.max=function(){var e=[].slice.call(arguments,0);return lt(\"isAfter\",e)},Mt.utc=function(t,n,a,i){var r;return\"boolean\"==typeof a&&(i=a,a=e),r={},r._isAMomentObject=!0,r._useUTC=!0,r._isUTC=!0,r._l=a,r._i=t,r._f=n,r._strict=i,r._pf=s(),ct(r).utc()},Mt.unix=function(e){return Mt(1e3*e)},Mt.duration=function(e,t){var s,a,i,r,o=e,u=null;return Mt.isDuration(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:\"number\"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(u=Lt.exec(e))?(s=\"-\"===u[1]?-1:1,o={y:0,d:S(u[Ot])*s,h:S(u[Wt])*s,m:S(u[Gt])*s,s:S(u[Ut])*s,ms:S(u[Ct])*s}):(u=xt.exec(e))?(s=\"-\"===u[1]?-1:1,i=function(e){var t=e&&parseFloat(e.replace(\",\",\".\"));return(isNaN(t)?0:t)*s},o={y:i(u[2]),M:i(u[3]),d:i(u[4]),h:i(u[5]),m:i(u[6]),s:i(u[7]),w:i(u[8])}):\"object\"==typeof o&&(\"from\"in o||\"to\"in o)&&(r=p(Mt(o.from),Mt(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),a=new d(o),Mt.isDuration(e)&&n(e,\"_locale\")&&(a._locale=e._locale),a},Mt.version=wt,Mt.defaultFormat=an,Mt.ISO_8601=function(){},Mt.momentProperties=Pt,Mt.updateOffset=function(){},Mt.relativeTimeThreshold=function(t,n){return fn[t]===e?!1:n===e?fn[t]:(fn[t]=n,!0)},Mt.lang=i(\"moment.lang is deprecated. Use moment.locale instead.\",function(e,t){return Mt.locale(e,t)}),Mt.locale=function(e,t){var n;return e&&(n=\"undefined\"!=typeof t?Mt.defineLocale(e,t):Mt.localeData(e),n&&(Mt.duration._locale=Mt._locale=n)),Mt._locale._abbr},Mt.defineLocale=function(e,t){return null!==t?(t.abbr=e,Ft[e]||(Ft[e]=new c),Ft[e].set(t),Mt.locale(e),Ft[e]):(delete Ft[e],null)},Mt.langData=i(\"moment.langData is deprecated. Use moment.localeData instead.\",function(e){return Mt.localeData(e)}),Mt.localeData=function(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Mt._locale;if(!D(e)){if(t=z(e))return t;e=[e]}return P(e)},Mt.isMoment=function(e){return e instanceof l||null!=e&&n(e,\"_isAMomentObject\")},Mt.isDuration=function(e){return e instanceof d};for(Yt=gn.length-1;Yt>=0;--Yt)b(gn[Yt]);Mt.normalizeUnits=function(e){return v(e)},Mt.invalid=function(e){var t=Mt.utc(0/0);return null!=e?h(t._pf,e):t._pf.userInvalidated=!0,t},Mt.parseZone=function(){return Mt.apply(null,arguments).parseZone()},Mt.parseTwoDigitYear=function(e){return S(e)+(S(e)>68?1900:2e3)},h(Mt.fn=l.prototype,{clone:function(){return Mt(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var e=Mt(this).utc();return 0<e.year()&&e.year()<=9999?\"function\"==typeof Date.prototype.toISOString?this.toDate().toISOString():H(e,\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\"):H(e,\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\")},toArray:function(){var e=this;return[e.year(),e.month(),e.date(),e.hours(),e.minutes(),e.seconds(),e.milliseconds()]},isValid:function(){return C(this)},isDSTShifted:function(){return this._a?this.isValid()&&w(this._a,(this._isUTC?Mt.utc(this._a):Mt(this._a)).toArray())>0:!1},parsingFlags:function(){return h({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(e){return this.zone(0,e)},local:function(e){return this._isUTC&&(this.zone(0,e),this._isUTC=!1,e&&this.add(this._dateTzOffset(),\"m\")),this},format:function(e){var t=H(this,e||Mt.defaultFormat);return this.localeData().postformat(t)},add:g(1,\"add\"),subtract:g(-1,\"subtract\"),diff:function(e,t,n){var s,a,i,r=I(e,this),o=6e4*(this.zone()-r.zone());return t=v(t),\"year\"===t||\"month\"===t?(s=432e5*(this.daysInMonth()+r.daysInMonth()),a=12*(this.year()-r.year())+(this.month()-r.month()),i=this-Mt(this).startOf(\"month\")-(r-Mt(r).startOf(\"month\")),i-=6e4*(this.zone()-Mt(this).startOf(\"month\").zone()-(r.zone()-Mt(r).startOf(\"month\").zone())),a+=i/s,\"year\"===t&&(a/=12)):(s=this-r,a=\"second\"===t?s/1e3:\"minute\"===t?s/6e4:\"hour\"===t?s/36e5:\"day\"===t?(s-o)/864e5:\"week\"===t?(s-o)/6048e5:s),n?a:_(a)},from:function(e,t){return Mt.duration({to:this,from:e}).locale(this.locale()).humanize(!t)},fromNow:function(e){return this.from(Mt(),e)},calendar:function(e){var t=e||Mt(),n=I(t,this).startOf(\"day\"),s=this.diff(n,\"days\",!0),a=-6>s?\"sameElse\":-1>s?\"lastWeek\":0>s?\"lastDay\":1>s?\"sameDay\":2>s?\"nextDay\":7>s?\"nextWeek\":\"sameElse\";return this.format(this.localeData().calendar(a,this,Mt(t)))},isLeapYear:function(){return G(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=at(e,this.localeData()),this.add(e-t,\"d\")):t},month:_t(\"Month\",!0),startOf:function(e){switch(e=v(e)){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\"===e?this.weekday(0):\"isoWeek\"===e&&this.isoWeekday(1),\"quarter\"===e&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(t){return t=v(t),t===e||\"millisecond\"===t?this:this.startOf(t).add(1,\"isoWeek\"===t?\"week\":t).subtract(1,\"ms\")},isAfter:function(e,t){var n;return t=v(\"undefined\"!=typeof t?t:\"millisecond\"),\"millisecond\"===t?(e=Mt.isMoment(e)?e:Mt(e),+this>+e):(n=Mt.isMoment(e)?+e:+Mt(e),n<+this.clone().startOf(t))},isBefore:function(e,t){var n;return t=v(\"undefined\"!=typeof t?t:\"millisecond\"),\"millisecond\"===t?(e=Mt.isMoment(e)?e:Mt(e),+e>+this):(n=Mt.isMoment(e)?+e:+Mt(e),+this.clone().endOf(t)<n)},isSame:function(e,t){var n;return t=v(t||\"millisecond\"),\"millisecond\"===t?(e=Mt.isMoment(e)?e:Mt(e),+this===+e):(n=+Mt(e),+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t))},min:i(\"moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548\",function(e){return e=Mt.apply(null,arguments),this>e?this:e}),max:i(\"moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548\",function(e){return e=Mt.apply(null,arguments),e>this?this:e}),zone:function(e,t){var n,s=this._offset||0;return null==e?this._isUTC?s:this._dateTzOffset():(\"string\"==typeof e&&(e=E(e)),Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(n=this._dateTzOffset()),this._offset=e,this._isUTC=!0,null!=n&&this.subtract(n,\"m\"),s!==e&&(!t||this._changeInProgress?M(this,Mt.duration(s-e,\"m\"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Mt.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?\"UTC\":\"\"},zoneName:function(){return this._isUTC?\"Coordinated Universal Time\":\"\"},parseZone:function(){return this._tzm?this.zone(this._tzm):\"string\"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(e){return e=e?Mt(e).zone():0,0===(this.zone()-e)%60},daysInMonth:function(){return T(this.year(),this.month())},dayOfYear:function(e){var t=kt((Mt(this).startOf(\"day\")-Mt(this).startOf(\"year\"))/864e5)+1;return null==e?t:this.add(e-t,\"d\")},quarter:function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},weekYear:function(e){var t=ot(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,\"y\")},isoWeekYear:function(e){var t=ot(this,1,4).year;return null==e?t:this.add(e-t,\"y\")},week:function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),\"d\")},isoWeek:function(e){var t=ot(this,1,4).week;return null==e?t:this.add(7*(e-t),\"d\")},weekday:function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,\"d\")},isoWeekday:function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},isoWeeksInYear:function(){return O(this.year(),1,4)},weeksInYear:function(){var e=this.localeData()._week;return O(this.year(),e.dow,e.doy)},get:function(e){return e=v(e),this[e]()},set:function(e,t){return e=v(e),\"function\"==typeof this[e]&&this[e](t),this},locale:function(t){var n;return t===e?this._locale._abbr:(n=Mt.localeData(t),null!=n&&(this._locale=n),this)},lang:i(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\",function(t){return t===e?this.localeData():this.locale(t)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),Mt.fn.millisecond=Mt.fn.milliseconds=_t(\"Milliseconds\",!1),Mt.fn.second=Mt.fn.seconds=_t(\"Seconds\",!1),Mt.fn.minute=Mt.fn.minutes=_t(\"Minutes\",!1),Mt.fn.hour=Mt.fn.hours=_t(\"Hours\",!0),Mt.fn.date=_t(\"Date\",!0),Mt.fn.dates=i(\"dates accessor is deprecated. Use date instead.\",_t(\"Date\",!0)),Mt.fn.year=_t(\"FullYear\",!0),Mt.fn.years=i(\"years accessor is deprecated. Use year instead.\",_t(\"FullYear\",!0)),Mt.fn.days=Mt.fn.day,Mt.fn.months=Mt.fn.month,Mt.fn.weeks=Mt.fn.week,Mt.fn.isoWeeks=Mt.fn.isoWeek,Mt.fn.quarters=Mt.fn.quarter,Mt.fn.toJSON=Mt.fn.toISOString,h(Mt.duration.fn=d.prototype,{_bubble:function(){var e,t,n,s=this._milliseconds,a=this._days,i=this._months,r=this._data,o=0;r.milliseconds=s%1e3,e=_(s/1e3),r.seconds=e%60,t=_(e/60),r.minutes=t%60,n=_(t/60),r.hours=n%24,a+=_(n/24),o=_(mt(a)),a-=_(yt(o)),i+=_(a/30),a%=30,o+=_(i/12),i%=12,r.days=a,r.months=i,r.years=o},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return _(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+2592e6*(this._months%12)+31536e6*S(this._months/12)},humanize:function(e){var t=rt(this,!e,this.localeData());return e&&(t=this.localeData().pastFuture(+this,t)),this.localeData().postformat(t)},add:function(e,t){var n=Mt.duration(e,t);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(e,t){var n=Mt.duration(e,t);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(e){return e=v(e),this[e.toLowerCase()+\"s\"]()},as:function(e){var t,n;if(e=v(e),\"month\"===e||\"year\"===e)return t=this._days+this._milliseconds/864e5,n=this._months+12*mt(t),\"month\"===e?n:n/12;switch(t=this._days+Math.round(yt(this._months/12)),e){case\"week\":return t/7+this._milliseconds/6048e5;case\"day\":return t+this._milliseconds/864e5;case\"hour\":return 24*t+this._milliseconds/36e5;case\"minute\":return 60*24*t+this._milliseconds/6e4;case\"second\":return 60*60*24*t+this._milliseconds/1e3;\ncase\"millisecond\":return Math.floor(1e3*60*60*24*t)+this._milliseconds;default:throw new Error(\"Unknown unit \"+e)}},lang:Mt.fn.lang,locale:Mt.fn.locale,toIsoString:i(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",function(){return this.toISOString()}),toISOString:function(){var e=Math.abs(this.years()),t=Math.abs(this.months()),n=Math.abs(this.days()),s=Math.abs(this.hours()),a=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?\"-\":\"\")+\"P\"+(e?e+\"Y\":\"\")+(t?t+\"M\":\"\")+(n?n+\"D\":\"\")+(s||a||i?\"T\":\"\")+(s?s+\"H\":\"\")+(a?a+\"M\":\"\")+(i?i+\"S\":\"\"):\"P0D\"},localeData:function(){return this._locale}}),Mt.duration.fn.toString=Mt.duration.fn.toISOString;for(Yt in cn)n(cn,Yt)&&pt(Yt.toLowerCase());Mt.duration.fn.asMilliseconds=function(){return this.as(\"ms\")},Mt.duration.fn.asSeconds=function(){return this.as(\"s\")},Mt.duration.fn.asMinutes=function(){return this.as(\"m\")},Mt.duration.fn.asHours=function(){return this.as(\"h\")},Mt.duration.fn.asDays=function(){return this.as(\"d\")},Mt.duration.fn.asWeeks=function(){return this.as(\"weeks\")},Mt.duration.fn.asMonths=function(){return this.as(\"M\")},Mt.duration.fn.asYears=function(){return this.as(\"y\")},Mt.locale(\"en\",{ordinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===S(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\";return e+n}}),zt?module.exports=Mt:\"function\"==typeof define&&define.amd?(define(\"moment\",function(e,t,n){return n.config&&n.config()&&n.config().noGlobal===!0&&(vt.moment=Dt),Mt}),gt(!0)):gt()}).call(this);\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})","var Chrono=function(r){this.options=r,this.parsers=new Object(r.parsers),this.refiners=new Object(r.refiners)};Chrono.prototype.parse=function(r,e,s){e=e||new Date,s=s||{};var t=[];return this.parsers.forEach(function(n){var o=n.execute(r,e,s);t.concat(o)}),this.refiners.forEach(function(e){t=e.refine(r,t,s)}),t},Chrono.prototype.parseDate=function(r,e,s){var t=this.parse(r,e,s);return t>0?t[0].start.date():null},exports.Chrono=Chrono,exports.options=require(\"./options\"),exports.Parser=require(\"./parsers/parser\").Parser,exports.Refiner=require(\"./refiners/refiner\").Filter,exports.Filter=require(\"./refiners/refiner\").Filter,exports.ParsedResult=require(\"./result\").ParsedResult,exports.ParsedComponents=require(\"./result\").ParsedComponents,exports.standard=new Chrono(exports.options.standardOptions()),exports.parse=function(){exports.standard.parse.apply(exports.standard,arguments)},exports.parseDate=function(){exports.standard.parseDate.apply(exports.standard,arguments)};","var ENSlashDateFormatParser=require(\"./parsers/EN/SlashParser\").Parser,ENMergeDateRangeRefiner=require(\"./refiners/EN/MergeDateRangeRefiner\").Refiner;exports.standardOptions=function(){return{parsers:[new ENSlashDateFormatParser],refiners:[new ENMergeDateRangeRefiner]}};","function SlashParser(){}var Parser=require(\"../parser\").Parser;exports.Parser=SlashParser;","function Parser(){this.pattern=function(){return/./i},this.extract=function(){return null},this.execute=function(e,t,r){for(var n=[],i=this.pattern(),s=e,u=i.exec(s);u;){u.index+=e.length-s.length;var c=this.extract(e,t,u,r);s=c?e.substring(c.index+c.text.length):e.substring(u.index+1),u=i.exec(s)}return this.refiners&&this.refiners.forEach(function(){n=refiner.refine(n,e,options)}),n}}exports.Parser=Parser;","var Refiner=require(\"../refiner\").Refiner;exports.Refiner=function(){};","function Refiner(){}function Filter(){}Refiner.prototype.refine=function(){return/./i},Filter.prototype.isValid=function(){return!0},Filter.prototype.refine=function(e,r){for(var t=[],i=0;i=r.length;i++)this.isValid(r[i])&&t.push(r[i]);return t},exports.Refiner=Refiner,exports.Filter=Filter;","function ParsedResult(e){this.index=e.index,this.text=e.text,this.referenceDate=e.referenceDate,this.concordance=e.concordance,this.start=new DateComponents(e.start),e.end&&(this.end=new DateComponents(e.end))}function ParsedComponents(e){if(this.knownValues={},this.impliedValues={},e)for(key in e)this.knownValues[key]=e[key]}var moment=require(\"moment\");ParsedComponents.prototype.get=function(e){return e in this.knownValues?this.knownValues[e]:e in this.impliedValues?this.impliedValues[e]:void 0},ParsedComponents.prototype.assign=function(e,t){this.knownValues[e]=t,delete this.impliedValues[e]},ParsedComponents.prototype.imply=function(e,t){e in this.knownValues||(this.impliedValues[e]=t)},ParsedComponents.prototype.isCertain=function(e){return e in this.knownValues},ParsedComponents.prototype.date=function(e){this.isCertain(\"timezoneOffset\")&&(e=this.get(\"timezoneOffset\")),e=e||(new Date).getTimezoneOffset();var t=moment();return t.set(\"year\",this.get(\"year\")),t.set(\"month\",this.get(\"month\")-1),t.set(\"date\",this.get(\"day\")),void 0!==t.get(\"hour\")&&(t.set(\"hour\",this.get(\"hour\")),t.set(\"minute\",this.get(\"minute\")),t.set(\"second\",this.get(\"second\"))),t.add(e-(new Date).getTimezoneOffset(),\"minutes\"),t.toDate()},exports.ParsedComponents=ParsedComponents,exports.ParsedResult=ParsedResult;"]}
|
package/karma.conf.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
// Karma configuration
|
|
2
|
-
// Generated on Mon Oct 28 2013 19:53:46 GMT+0900 (JST)
|
|
3
|
-
|
|
4
|
-
module.exports = function(config) {
|
|
5
|
-
config.set({
|
|
6
|
-
|
|
7
|
-
// base path, that will be used to resolve files and exclude
|
|
8
|
-
basePath: '',
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
// frameworks to use
|
|
12
|
-
frameworks: ['qunit'],
|
|
13
|
-
|
|
14
|
-
// list of files / patterns to load in the browser
|
|
15
|
-
files: [
|
|
16
|
-
'chrono.js',
|
|
17
|
-
'test/test*.js',
|
|
18
|
-
],
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
// list of files to exclude
|
|
22
|
-
exclude: [
|
|
23
|
-
|
|
24
|
-
],
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
// test results reporter to use
|
|
28
|
-
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
|
|
29
|
-
reporters: ['progress'],
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
// web server port
|
|
33
|
-
port: 9876,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
// enable / disable colors in the output (reporters and logs)
|
|
37
|
-
colors: true,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// level of logging
|
|
41
|
-
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
|
42
|
-
logLevel: config.LOG_INFO,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
// enable / disable watching file and executing tests whenever any file changes
|
|
46
|
-
autoWatch: true,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
// Start these browsers, currently available:
|
|
50
|
-
// - Chrome
|
|
51
|
-
// - ChromeCanary
|
|
52
|
-
// - Firefox
|
|
53
|
-
// - Opera (has to be installed with `npm install karma-opera-launcher`)
|
|
54
|
-
// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
|
|
55
|
-
// - PhantomJS
|
|
56
|
-
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
|
|
57
|
-
browsers: ['Chrome'],
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
// If browser does not capture in given timeout [ms], kill it
|
|
61
|
-
captureTimeout: 60000,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
// Continuous Integration mode
|
|
65
|
-
// if true, it capture browsers, run tests and exit
|
|
66
|
-
singleRun: false
|
|
67
|
-
});
|
|
68
|
-
};
|
package/timezone.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
(function () {
|
|
2
|
-
|
|
3
|
-
if(typeof chrono == 'undefined')
|
|
4
|
-
throw 'Cannot find the chrono main module';
|
|
5
|
-
|
|
6
|
-
chrono.timezoneMap = {"A":60,"ACDT":630,"ACST":570,"ADT":-180,"AEDT":660,"AEST":600,"AFT":270,"AKDT":-480,"AKST":-540,"ALMT":360,"AMST":-180,"AMT":-240,"ANAST":720,"ANAT":720,"AQTT":300,"ART":-180,"AST":-240,"AWDT":540,"AWST":480,"AZOST":0,"AZOT":-60,"AZST":300,"AZT":240,"B":120,"BNT":480,"BOT":-240,"BRST":-120,"BRT":-180,"BST":60,"BTT":360,"C":180,"CAST":480,"CAT":120,"CCT":390,"CDT":-300,"CEST":120,"CET":60,"CHADT":825,"CHAST":765,"CKT":-600,"CLST":-180,"CLT":-240,"COT":-300,"CST":-360,"CVT":-60,"CXT":420,"ChST":600,"D":240,"DAVT":420,"E":300,"EASST":-300,"EAST":-360,"EAT":180,"ECT":-300,"EDT":-240,"EEST":180,"EET":120,"EGST":0,"EGT":-60,"EST":-300,"ET":-300,"F":360,"FJST":780,"FJT":720,"FKST":-180,"FKT":-240,"FNT":-120,"G":420,"GALT":-360,"GAMT":-540,"GET":240,"GFT":-180,"GILT":720,"GMT":0,"GST":240,"GYT":-240,"H":480,"HAA":-180,"HAC":-300,"HADT":-540,"HAE":-240,"HAP":-420,"HAR":-360,"HAST":-600,"HAT":-90,"HAY":-480,"HKT":480,"HLV":-210,"HNA":-240,"HNC":-360,"HNE":-300,"HNP":-480,"HNR":-420,"HNT":-150,"HNY":-540,"HOVT":420,"I":540,"ICT":420,"IDT":180,"IOT":360,"IRDT":270,"IRKST":540,"IRKT":540,"IRST":210,"IST":60,"JST":540,"K":600,"KGT":360,"KRAST":480,"KRAT":480,"KST":540,"KUYT":240,"L":660,"LHDT":660,"LHST":630,"LINT":840,"M":720,"MAGST":720,"MAGT":720,"MART":-510,"MAWT":300,"MDT":-360,"MESZ":120,"MEZ":60,"MHT":720,"MMT":390,"MSD":240,"MSK":240,"MST":-420,"MUT":240,"MVT":300,"MYT":480,"N":-60,"NCT":660,"NDT":-90,"NFT":690,"NOVST":420,"NOVT":360,"NPT":345,"NST":-150,"NUT":-660,"NZDT":780,"NZST":720,"O":-120,"OMSST":420,"OMST":420,"P":-180,"PDT":-420,"PET":-300,"PETST":720,"PETT":720,"PGT":600,"PHOT":780,"PHT":480,"PKT":300,"PMDT":-120,"PMST":-180,"PONT":660,"PST":-480,"PT":-480,"PWT":540,"PYST":-180,"PYT":-240,"Q":-240,"R":-300,"RET":240,"S":-360,"SAMT":240,"SAST":120,"SBT":660,"SCT":240,"SGT":480,"SRT":-180,"SST":-660,"T":-420,"TAHT":-600,"TFT":300,"TJT":300,"TKT":780,"TLT":540,"TMT":300,"TVT":720,"U":-480,"ULAT":480,"UTC":0,"UYST":-120,"UYT":-180,"UZT":300,"V":-540,"VET":-210,"VLAST":660,"VLAT":660,"VUT":660,"W":-600,"WAST":120,"WAT":60,"WEST":60,"WESZ":60,"WET":0,"WEZ":0,"WFT":720,"WGST":-120,"WGT":-180,"WIB":420,"WIT":540,"WITA":480,"WST":780,"WT":0,"X":-660,"Y":-720,"YAKST":600,"YAKT":600,"YAPT":600,"YEKST":360,"YEKT":360,"Z":0}
|
|
7
|
-
|
|
8
|
-
})();
|
|
9
|
-
|