text: !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).later=e()}}((function(){var e={version:"4.0.1",array:{}};return e.array.sort=function(e,t){e.sort((function(e,t){return Number(e)-Number(t)})),t&&0===e[0]&&e.push(e.shift())},e.array.next=function(e,t,n){for(var r,a=0!==n[0],i=0,u=t.length-1;u>-1;--u){if((r=t[u])===e)return r;if(!(r>e||0===r&&a&&n[1]>e))break;i=u}return t[i]},e.array.nextInvalid=function(e,t,n){for(var r=n[0],a=n[1],i=t.length,u=0===t[i-1]&&0!==r?a:0,o=e,f=t.indexOf(e),d=o;o===(t[f]||u);)if(++o>a&&(o=r),++f===i&&(f=0),o===d)return;return o},e.array.prev=function(e,t,n){for(var r,a=t.length,i=0!==n[0],u=a-1,o=0;o<a;o++){if((r=t[o])===e)return r;if(!(r<e||0===r&&i&&n[1]<e))break;u=o}return t[u]},e.array.prevInvalid=function(e,t,n){for(var r=n[0],a=n[1],i=t.length,u=0===t[i-1]&&0!==r?a:0,o=e,f=t.indexOf(e),d=o;o===(t[f]||u);)if(--o<r&&(o=a),-1==--f&&(f=i-1),o===d)return;return o},e.day=e.D={name:"day",range:86400,val:function(t){return t.D||(t.D=e.date.getDate.call(t))},isValid:function(t,n){return e.D.val(t)===(n||e.D.extent(t)[1])},extent:function(t){if(t.DExtent)return t.DExtent;var n=e.M.val(t),r=e.DAYS_IN_MONTH[n-1];return 2===n&&366===e.dy.extent(t)[1]&&(r+=1),t.DExtent=[1,r]},start:function(t){return t.DStart||(t.DStart=e.date.next(e.Y.val(t),e.M.val(t),e.D.val(t)))},end:function(t){return t.DEnd||(t.DEnd=e.date.prev(e.Y.val(t),e.M.val(t),e.D.val(t)))},next:function(t,n){n=n>e.D.extent(t)[1]?1:n;var r=e.date.nextRollover(t,n,e.D,e.M),a=e.D.extent(r)[1];return n=n>a?1:n||a,e.date.next(e.Y.val(r),e.M.val(r),n)},prev:function(t,n){var r=e.date.prevRollover(t,n,e.D,e.M),a=e.D.extent(r)[1];return e.date.prev(e.Y.val(r),e.M.val(r),n>a?a:n||a)}},e.dayOfWeekCount=e.dc={name:"day of week count",range:604800,val:function(t){return t.dc||(t.dc=Math.floor((e.D.val(t)-1)/7)+1)},isValid:function(t,n){return e.dc.val(t)===n||0===n&&e.D.val(t)>e.D.extent(t)[1]-7},extent:function(t){return t.dcExtent||(t.dcExtent=[1,Math.ceil(e.D.extent(t)[1]/7)])},start:function(t){return t.dcStart||(t.dcStart=e.date.next(e.Y.val(t),e.M.val(t),Math.max(1,7*(e.dc.val(t)-1)+1||1)))},end:function(t){return t.dcEnd||(t.dcEnd=e.date.prev(e.Y.val(t),e.M.val(t),Math.min(7*e.dc.val(t),e.D.extent(t)[1])))},next:function(t,n){n=n>e.dc.extent(t)[1]?1:n;var r=e.date.nextRollover(t,n,e.dc,e.M);n=n>e.dc.extent(r)[1]?1:n;var a=e.date.next(e.Y.val(r),e.M.val(r),0===n?e.D.extent(r)[1]-6:1+7*(n-1));return a.getTime()<=t.getTime()?(r=e.M.next(t,e.M.val(t)+1),e.date.next(e.Y.val(r),e.M.val(r),0===n?e.D.extent(r)[1]-6:1+7*(n-1))):a},prev:function(t,n){var r=e.date.prevRollover(t,n,e.dc,e.M),a=e.dc.extent(r)[1];return n=n>a?a:n||a,e.dc.end(e.date.prev(e.Y.val(r),e.M.val(r),1+7*(n-1)))}},e.dayOfWeek=e.dw=e.d={name:"day of week",range:86400,val:function(t){return t.dw||(t.dw=e.date.getDay.call(t)+1)},isValid:function(t,n){return e.dw.val(t)===(n||7)},extent:function(){return[1,7]},start:function(t){return e.D.start(t)},end:function(t){return e.D.end(t)},next:function(t,n){return n=n>7?1:n||7,e.date.next(e.Y.val(t),e.M.val(t),e.D.val(t)+(n-e.dw.val(t))+(n<=e.dw.val(t)?7:0))},prev:function(t,n){return n=n>7?7:n||7,e.date.prev(e.Y.val(t),e.M.val(t),e.D.val(t)+(n-e.dw.val(t))+(n>=e.dw.val(t)?-7:0))}},e.dayOfYear=e.dy={name:"day of year",range:86400,val:function(t){return t.dy||(t.dy=Math.ceil(1+(e.D.start(t).getTime()-e.Y.start(t).getTime())/e.DAY))},isValid:function(t,n){return e.dy.val(t)===(n||e.dy.extent(t)[1])},extent:function(t){var n=e.Y.val(t);return t.dyExtent||(t.dyExtent=[1,n%4?365:366])},start:function(t){return e.D.start(t)},end:function(t){return e.D.end(t)},next:function(t,n){n=n>e.dy.extent(t)[1]?1:n;var r=e.date.nextRollover(t,n,e.dy,e.Y),a=e.dy.extent(r)[1];return n=n>a?1:n||a,e.date.next(e.Y.val(r),e.M.val(r),n)},prev:function(t,n){var r=e.date.prevRollover(t,n,e.dy,e.Y),a=e.dy.extent(r)[1];return n=n>a?a:n||a,e.date.prev(e.Y.val(r),e.M.val(r),n)}},e.hour=e.h={name:"hour",range:3600,val:function(t){return t.h||(t.h=e.date.getHour.call(t))},isValid:function(t,n){return e.h.val(t)===n},extent:function(){return[0,23]},start:function(t){return t.hStart||(t.hStart=e.date.next(e.Y.val(t),e.M.val(t),e.D.val(t),e.h.val(t)))},end:function(t){return t.hEnd||(t.hEnd=e.date.prev(e.Y.val(t),e.M.val(t),e.D.val(t),e.h.val(t)))},next:function(t,n){n=n>23?0:n;var r=e.date.next(e.Y.val(t),e.M.val(t),e.D.val(t)+(n<=e.h.val(t)?1:0),n);return!e.date.isUTC&&r.getTime()<=t.getTime()&&(r=e.date.next(e.Y.val(r),e.M.val(r),e.D.val(r),n+1)),r},prev:function(t,n){return n=n>23?23:n,e.date.prev(e.Y.val(t),e.M.val(t),e.D.val(t)+(n>=e.h.val(t)?-1:0),n)}},e.minute=e.m={name:"minute",range:60,val:function(t){return t.m||(t.m=e.date.getMin.call(t))},isValid:function(t,n){return e.m.val(t)===n},extent:function(e){return[0,59]},start:function(t){return t.mStart||(t.mStart=e.date.next(e.Y.val(t),e.M.val(t),e.D.val(t),e.h.val(t),e.m.val(t)))},end:function(t){return t.mEnd||(t.mEnd=e.date.prev(e.Y.val(t),e.M.val(t),e.D.val(t),e.h.val(t),e.m.val(t)))},next:function(t,n){var r=e.m.val(t),a=e.s.val(t),i=n>59?60-r:n<=r?60-r+n:n-r,u=new Date(t.getTime()+i*e.MIN-a*e.SEC);return!e.date.isUTC&&u.getTime()<=t.getTime()&&(u=new Date(t.getTime()+(i+120)*e.MIN-a*e.SEC)),u},prev:function(t,n){return n=n>59?59:n,e.date.prev(e.Y.val(t),e.M.val(t),e.D.val(t),e.h.val(t)+(n>=e.m.val(t)?-1:0),n)}},e.month=e.M={name:"month",range:2629740,val:function(t){return t.M||(t.M=e.date.getMonth.call(t)+1)},isValid:function(t,n){return e.M.val(t)===(n||12)},extent:function(){return[1,12]},start:function(t){return t.MStart||(t.MStart=e.date.next(e.Y.val(t),e.M.val(t)))},end:function(t){return t.MEnd||(t.MEnd=e.date.prev(e.Y.val(t),e.M.val(t)))},next:function(t,n){return n=n>12?1:n||12,e.date.next(e.Y.val(t)+(n>e.M.val(t)?0:1),n)},prev:function(t,n){return n=n>12?12:n||12,e.date.prev(e.Y.val(t)-(n>=e.M.val(t)?1:0),n)}},e.second=e.s={name:"second",range:1,val:function(t){return t.s||(t.s=e.date.getSec.call(t))},isValid:function(t,n){return e.s.val(t)===n},extent:function(){return[0,59]},start:function(e){return e},end:function(e){return e},next:function(t,n){var r=e.s.val(t),a=n>59?60-r:n<=r?60-r+n:n-r,i=new Date(t.getTime()+a*e.SEC);return!e.date.isUTC&&i.getTime()<=t.getTime()&&(i=new Date(t.getTime()+(a+7200)*e.SEC)),i},prev:function(t,n,r){return n=n>59?59:n,e.date.prev(e.Y.val(t),e.M.val(t),e.D.val(t),e.h.val(t),e.m.val(t)+(n>=e.s.val(t)?-1:0),n)}},e.time=e.t={name:"time",range:1,val:function(t){return t.t||(t.t=3600*e.h.val(t)+60*e.m.val(t)+e.s.val(t))},isValid:function(t,n){return e.t.val(t)===n},extent:function(){return[0,86399]},start:function(e){return e},end:function(e){return e},next:function(t,n){n=n>86399?0:n;var r=e.date.next(e.Y.val(t),e.M.val(t),e.D.val(t)+(n<=e.t.val(t)?1:0),0,0,n);return!e.date.isUTC&&r.getTime()<t.getTime()&&(r=e.date.next(e.Y.val(r),e.M.val(r),e.D.val(r),e.h.val(r),e.m.val(r),n+7200)),r},prev:function(t,n){return n=n>86399?86399:n,e.date.next(e.Y.val(t),e.M.val(t),e.D.val(t)+(n>=e.t.val(t)?-1:0),0,0,n)}},e.weekOfMonth=e.wm={name:"week of month",range:604800,val:function(t){return t.wm||(t.wm=(e.D.val(t)+(e.dw.val(e.M.start(t))-1)+(7-e.dw.val(t)))/7)},isValid:function(t,n){return e.wm.val(t)===(n||e.wm.extent(t)[1])},extent:function(t){return t.wmExtent||(t.wmExtent=[1,(e.D.extent(t)[1]+(e.dw.val(e.M.start(t))-1)+(7-e.dw.val(e.M.end(t))))/7])},start:function(t){return t.wmStart||(t.wmStart=e.date.next(e.Y.val(t),e.M.val(t),Math.max(e.D.val(t)-e.dw.val(t)+1,1)))},end:function(t){return t.wmEnd||(t.wmEnd=e.date.prev(e.Y.val(t),e.M.val(t),Math.min(e.D.val(t)+(7-e.dw.val(t)),e.D.extent(t)[1])))},next:function(t,n){n=n>e.wm.extent(t)[1]?1:n;var r=e.date.nextRollover(t,n,e.wm,e.M),a=e.wm.extent(r)[1];return n=n>a?1:n||a,e.date.next(e.Y.val(r),e.M.val(r),Math.max(1,7*(n-1)-(e.dw.val(r)-2)))},prev:function(t,n){var r=e.date.prevRollover(t,n,e.wm,e.M),a=e.wm.extent(r)[1];return n=n>a?a:n||a,e.wm.end(e.date.next(e.Y.val(r),e.M.val(r),Math.max(1,7*(n-1)-(e.dw.val(r)-2))))}},e.weekOfYear=e.wy={name:"week of year (ISO)",range:604800,val:function(t){if(t.wy)return t.wy;var n=e.dw.next(e.wy.start(t),5),r=e.dw.next(e.Y.prev(n,e.Y.val(n)-1),5);return t.wy=1+Math.ceil((n.getTime()-r.getTime())/e.WEEK)},isValid:function(t,n){return e.wy.val(t)===(n||e.wy.extent(t)[1])},extent:function(t){if(t.wyExtent)return t.wyExtent;var n=e.dw.next(e.wy.start(t),5),r=e.dw.val(e.Y.start(n)),a=e.dw.val(e.Y.end(n));return t.wyExtent=[1,5===r||5===a?53:52]},start:function(t){return t.wyStart||(t.wyStart=e.date.next(e.Y.val(t),e.M.val(t),e.D.val(t)-(e.dw.val(t)>1?e.dw.val(t)-2:6)))},end:function(t){return t.wyEnd||(t.wyEnd=e.date.prev(e.Y.val(t),e.M.val(t),e.D.val(t)+(e.dw.val(t)>1?8-e.dw.val(t):0)))},next:function(t,n){n=n>e.wy.extent(t)[1]?1:n;var r=e.dw.next(e.wy.start(t),5),a=e.date.nextRollover(r,n,e.wy,e.Y);1!==e.wy.val(a)&&(a=e.dw.next(a,2));var i=e.wy.extent(a)[1],u=e.wy.start(a);return n=n>i?1:n||i,e.date.next(e.Y.val(u),e.M.val(u),e.D.val(u)+7*(n-1))},prev:function(t,n){var r=e.dw.next(e.wy.start(t),5),a=e.date.prevRollover(r,n,e.wy,e.Y);1!==e.wy.val(a)&&(a=e.dw.next(a,2));var i=e.wy.extent(a)[1],u=e.wy.end(a);return n=n>i?i:n||i,e.wy.end(e.date.next(e.Y.val(u),e.M.val(u),e.D.val(u)+7*(n-1)))}},e.year=e.Y={name:"year",range:31556900,val:function(t){return t.Y||(t.Y=e.date.getYear.call(t))},isValid:function(t,n){return e.Y.val(t)===n},extent:function(){return[1970,2099]},start:function(t){return t.YStart||(t.YStart=e.date.next(e.Y.val(t)))},end:function(t){return t.YEnd||(t.YEnd=e.date.prev(e.Y.val(t)))},next:function(t,n){return n>e.Y.val(t)&&n<=e.Y.extent()[1]?e.date.next(n):e.NEVER},prev:function(t,n){return n<e.Y.val(t)&&n>=e.Y.extent()[0]?e.date.prev(n):e.NEVER}},e.fullDate=e.fd={name:"full date",range:1,val:function(e){return e.fd||(e.fd=e.getTime())},isValid:function(t,n){return e.fd.val(t)===n},extent:function(){return[0,3250368e7]},start:function(e){return e},end:function(e){return e},next:function(t,n){return e.fd.val(t)<n?new Date(n):e.NEVER},prev:function(t,n){return e.fd.val(t)>n?new Date(n):e.NEVER}},e.modifier={},e.modifier.after=e.modifier.a=function(e,t){var n=t[0];return{name:"after "+e.name,range:(e.extent(new Date)[1]-n)*e.range,val:e.val,isValid:function(e,t){return this.val(e)>=n},extent:e.extent,start:e.start,end:e.end,next:function(t,r){return r!=n&&(r=e.extent(t)[0]),e.next(t,r)},prev:function(t,r){return r=r===n?e.extent(t)[1]:n-1,e.prev(t,r)}}},e.modifier.before=e.modifier.b=function(e,t){var n=t[t.length-1];return{name:"before "+e.name,range:e.range*(n-1),val:e.val,isValid:function(e,t){return this.val(e)<n},extent:e.extent,start:e.start,end:e.end,next:function(t,r){return r=r===n?e.extent(t)[0]:n,e.next(t,r)},prev:function(t,r){return r=r===n?n-1:e.extent(t)[1],e.prev(t,r)}}},e.compile=function(t){var n,r=[],a=0;for(var i in t){var u=i.split("_"),o=u[0],f=u[1],d=t[i],l=f?e.modifier[f](e[o],d):e[o];r.push({constraint:l,vals:d}),a++}return r.sort((function(e,t){var n=e.constraint.range,r=t.constraint.range;return r<n?-1:r>n?1:0})),n=r[a-1].constraint,{start:function(t,i){for(var u,o=i,f=e.array[t],d=1e3;d--&&!u&&o;){u=!0;for(var l=0;l<a;l++){var v=r[l].constraint,c=v.val(o),s=v.extent(o),m=f(c,r[l].vals,s);if(!v.isValid(o,m)){o=v[t](o,m),u=!1;break}}}return o!==e.NEVER&&(o="next"===t?n.start(o):n.end(o)),o},end:function(t,n){for(var i,u=e.array[t+"Invalid"],o=function(e){return"next"===e?function(e,t){return e.getTime()>t.getTime()}:function(e,t){return t.getTime()>e.getTime()}}(t),f=a-1;f>=0;f--){var d,l=r[f].constraint,v=l.val(n),c=l.extent(n),s=u(v,r[f].vals,c);void 0!==s&&(!(d=l[t](n,s))||i&&!o(i,d)||(i=d))}return i},tick:function(t,r){return new Date("next"===t?n.end(r).getTime()+e.SEC:n.start(r).getTime()-e.SEC)},tickStart:function(e){return n.start(e)}}},e.schedule=function(t){if(!t)throw new Error("Missing schedule definition.");if(!t.schedules)throw new Error("Definition must include at least one schedule.");for(var n=[],r=t.schedules.length,a=[],i=t.exceptions?t.exceptions.length:0,u=0;u<r;u++)n.push(e.compile(t.schedules[u]));for(var o=0;o<i;o++)a.push(e.compile(t.exceptions[o]));function f(t,r,u,o,f){var p,g,D,M=w(t),b=r,Y=1e3,k=[],E=[],T=[],O="next"===t,N=O?0:1,S=O?1:0;if(!(u=u?new Date(u):new Date)||!u.getTime())throw new Error("Invalid start date.");for(function(e,t,n,r){for(var a=0,i=t.length;a<i;a++)n[a]=t[a].start(e,r)}(t,n,k,u),function(t,n,r,a){w(t);for(var i=0,u=n.length;i<u;i++){var o=n[i].start(t,a);r[i]=o?[o,n[i].end(t,o)]:e.NEVER}}(t,a,E,u);Y--&&b&&(p=y(k,M))&&(!o||!M(p,o));)if(i&&(v(t,a,E,p),g=m(t,E,p)))l(t,n,k,g);else{if(f){var R=h(E,M);g=x(t,n,k,p,R);var C=O?[new Date(Math.max(u,p)),g?new Date(o?Math.min(g,o):g):void 0]:[g?new Date(o?Math.max(o,g.getTime()+e.SEC):g.getTime()+e.SEC):void 0,new Date(Math.min(u,p.getTime()+e.SEC))];if(D&&C[N].getTime()===D[S].getTime()?(D[S]=C[S],b++):(D=C,T.push(D)),!g)break;l(t,n,k,g)}else T.push(O?new Date(Math.max(u,p)):s(n,k,p,o)),c(t,n,k,p);b--}for(var V=0,I=T.length;V<I;V++){var U=T[V];T[V]="[object Array]"===Object.prototype.toString.call(U)?[d(U[0]),d(U[1])]:d(U)}return 0===T.length?e.NEVER:1===r?T[0]:T}function d(e){if(e instanceof Date&&!isNaN(e.valueOf()))return new Date(e)}function l(e,t,n,r){for(var a=w(e),i=0,u=t.length;i<u;i++)n[i]&&!a(n[i],r)&&(n[i]=t[i].start(e,r))}function v(t,n,r,a){for(var i=w(t),u=0,o=n.length;u<o;u++)if(r[u]&&!i(r[u][0],a)){var f=n[u].start(t,a);r[u]=f?[f,n[u].end(t,f)]:e.NEVER}}function c(e,t,n,r){for(var a=0,i=t.length;a<i;a++)n[a]&&n[a].getTime()===r.getTime()&&(n[a]=t[a].start(e,t[a].tick(e,r)))}function s(e,t,n,r){for(var a,i=0,u=t.length;i<u;i++)if(t[i]&&t[i].getTime()===n.getTime()){var o=e[i].tickStart(n);if(r&&o<r)return r;(!a||o>a)&&(a=o)}return a}function m(e,t,n){for(var r,a=w(e),i=0,u=t.length;i<u;i++){var o=t[i];!o||a(o[0],n)||o[1]&&!a(o[1],n)||r&&!a(o[1],r)||(r=o[1])}return r}function h(e,t){for(var n,r=0,a=e.length;r<a;r++)!e[r]||n&&!t(n,e[r][0])||(n=e[r][0]);return n}function x(e,t,n,r,a){for(var i,u=w(e),o=0,f=t.length;o<f;o++){var d=n[o];if(d&&d.getTime()===r.getTime()){var l=t[o].end(e,d);if(a&&(!l||u(l,a)))return a;i&&!u(l,i)||(i=l)}}return i}function w(e){return"next"===e?function(e,t){return!t||e.getTime()>t.getTime()}:function(e,t){return!e||t.getTime()>e.getTime()}}function y(e,t){for(var n=e[0],r=1,a=e.length;r<a;r++)e[r]&&t(n,e[r])&&(n=e[r]);return n}return{isValid:function(t){return f("next",1,t,t)!==e.NEVER},next:function(e,t,n){return f("next",e||1,t,n)},prev:function(e,t,n){return f("prev",e||1,t,n)},nextRange:function(e,t,n){return f("next",e||1,t,n,!0)},prevRange:function(e,t,n){return f("prev",e||1,t,n,!0)}}},e.setTimeout=function(t,n){var r,a=e.schedule(n);return t&&function e(){var n=Date.now(),i=a.next(2,n);if(i[0]){var u=i[0].getTime()-n;u<1e3&&(u=i[1]?i[1].getTime()-n:1e3),r=u<2147483647?setTimeout(t,u):setTimeout(e,2147483647)}else r=void 0}(),{isDone:function(){return!r},clear:function(){clearTimeout(r)}}},e.setInterval=function(t,n){if(t){var r=e.setTimeout((function i(){a||(t(),r=e.setTimeout(i,n))}),n),a=r.isDone();return{isDone:function(){return r.isDone()},clear:function(){a=!0,r.clear()}}}},e.date={},e.date.timezone=function(t){e.date.build=t?function(e,t,n,r,a,i){return new Date(e,t,n,r,a,i)}:function(e,t,n,r,a,i){return new Date(Date.UTC(e,t,n,r,a,i))};var n=t?"get":"getUTC",r=Date.prototype;e.date.getYear=r[n+"FullYear"],e.date.getMonth=r[n+"Month"],e.date.getDate=r[n+"Date"],e.date.getDay=r[n+"Day"],e.date.getHour=r[n+"Hours"],e.date.getMin=r[n+"Minutes"],e.date.getSec=r[n+"Seconds"],e.date.isUTC=!t},e.date.UTC=function(){e.date.timezone(!1)},e.date.localTime=function(){e.date.timezone(!0)},e.date.UTC(),e.SEC=1e3,e.MIN=60*e.SEC,e.HOUR=60*e.MIN,e.DAY=24*e.HOUR,e.WEEK=7*e.DAY,e.DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],e.NEVER=0,e.date.next=function(t,n,r,a,i,u){return e.date.build(t,void 0!==n?n-1:0,void 0!==r?r:1,a||0,i||0,u||0)},e.date.nextRollover=function(t,n,r,a){var i=r.val(t),u=r.extent(t)[1];return(n||u)<=i||n>u?new Date(a.end(t).getTime()+e.SEC):a.start(t)},e.date.prev=function(t,n,r,a,i,u){var o=arguments.length;return n=o<2?11:n-1,r=o<3?e.D.extent(e.date.next(t,n+1))[1]:r,a=o<4?23:a,i=o<5?59:i,u=o<6?59:u,e.date.build(t,n,r,a,i,u)},e.date.prevRollover=function(e,t,n,r){return t>=n.val(e)||!t?r.start(r.prev(e,r.val(e)-1)):r.start(e)},e.parse={},e.parse.cron=function(e,t){var n={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12,SUN:1,MON:2,TUE:3,WED:4,THU:5,FRI:6,SAT:7},r={"* * * * * *":"0/1 * * * * *","@YEARLY":"0 0 1 1 *","@ANNUALLY":"0 0 1 1 *","@MONTHLY":"0 0 1 * *","@WEEKLY":"0 0 * * 0","@DAILY":"0 0 * * *","@HOURLY":"0 * * * *"},a={s:[0,0,59],m:[1,0,59],h:[2,0,23],D:[3,1,31],M:[4,1,12],Y:[6,1970,2099],d:[5,1,7,1]};function i(e,t,r){return isNaN(e)?n[e]||null:Math.min(Number(e)+(t||0),r||9999)}function u(e,t,n,r,a){var i=n;for(e[t]||(e[t]=[]);i<=r;)e[t].includes(i)||e[t].push(i),i+=a||1;e[t].sort((function(e,t){return e-t}))}function o(e,t,n,r){(t.d&&!t.dc||t.dc&&!t.dc.includes(r))&&(e.push(function(e){var t,n={};for(t in e)"dc"!==t&&"d"!==t&&(n[t]=e[t].slice(0));return n}(t)),t=e[e.length-1]),u(t,"d",n,n),u(t,"dc",r,r)}function f(e){return e.includes("#")||e.indexOf("L")>0}function d(e,t){return f(e)&&!f(t)?1:e-t}var l=function(e){var t=e.toUpperCase();return r[t]||t}(e);return function(e){var t,r,f,l,v,c,s,m,h,x,w,y,p,g,D={schedules:[{}],exceptions:[]},M=e.replace(/(\s)+/g," ").split(" ");for(t in a)if((f=M[(r=a[t])[0]])&&"*"!==f&&"?"!==f){var b,Y=(l=f.split(",").sort(d)).length;for(b=0;b<Y;b++)v=l[b],c=D,s=t,m=r[1],h=r[2],x=r[3],w=void 0,y=void 0,p=void 0,g=void 0,p=c.schedules,g=p[p.length-1],"L"===v&&(v=m-1),null!==(w=i(v,x,h))?u(g,s,w,w):null!==(w=i(v.replace("W",""),x,h))?function(e,t,r){var a={},i={};1===r?(u(t,"D",1,3),u(t,"d",n.MON,n.FRI),u(a,"D",2,2),u(a,"d",n.TUE,n.FRI),u(i,"D",3,3),u(i,"d",n.TUE,n.FRI)):(u(t,"D",r-1,r+1),u(t,"d",n.MON,n.FRI),u(a,"D",r-1,r-1),u(a,"d",n.MON,n.THU),u(i,"D",r+1,r+1),u(i,"d",n.TUE,n.FRI)),e.exceptions.push(a),e.exceptions.push(i)}(c,g,w):null!==(w=i(v.replace("L",""),x,h))?o(p,g,w,m-1):2===(y=v.split("#")).length?o(p,g,w=i(y[0],x,h),i(y[1])):function(e,t,n,r,a,o){var f=e.split("/"),d=Number(f[1]),l=f[0];if("*"!==l&&"0"!==l){var v=l.split("-");r=i(v[0],o,a),a=i(v[1],o,a)||a}u(t,n,r,a,d)}(v,g,s,m,h,x)}return D}(t?l:"0 "+l)},e.parse.recur=function(){var t,n,r,a,i,u,o,f,d,l=[],v=[],c=l;function s(e,l,v){if(e=i?e+"_"+i:e,t||(c.push({}),t=c[0]),t[e]||(t[e]=[]),n=t[e],a){for(r=[],f=l;f<=v;f+=a)r.push(f);d={n:e,x:a,c:n.length,m:v}}var s=(r=u?[l]:o?[v]:r).length;for(f=0;f<s;f+=1){var m=r[f];n.includes(m)||n.push(m)}r=a=i=u=o=0}return{schedules:l,exceptions:v,on:function(){return r=Array.isArray(arguments[0])?arguments[0]:arguments,this},every:function(e){return a=e||1,this},after:function(e){return i="a",r=[e],this},before:function(e){return i="b",r=[e],this},first:function(){return u=1,this},last:function(){return o=1,this},time:function(){for(var e=0,t=r.length;e<t;e++){var n=r[e].split(":");n.length<3&&n.push(0),r[e]=3600*Number(n[0])+60*Number(n[1])+Number(n[2])}return s("t"),this},second:function(){return s("s",0,59),this},minute:function(){return s("m",0,59),this},hour:function(){return s("h",0,23),this},dayOfMonth:function(){return s("D",1,o?0:31),this},dayOfWeek:function(){return s("d",1,7),this},onWeekend:function(){return r=[1,7],this.dayOfWeek()},onWeekday:function(){return r=[2,3,4,5,6],this.dayOfWeek()},dayOfWeekCount:function(){return s("dc",1,o?0:5),this},dayOfYear:function(){return s("dy",1,o?0:366),this},weekOfMonth:function(){return s("wm",1,o?0:5),this},weekOfYear:function(){return s("wy",1,o?0:53),this},month:function(){return s("M",1,12),this},year:function(){return s("Y",1970,2450),this},fullDate:function(){for(var e=0,t=r.length;e<t;e++)r[e]=r[e].getTime();return s("fd"),this},customModifier:function(t,n){if(!e.modifier[t])throw new Error("Custom modifier "+t+" not recognized!");return i=t,r=Array.isArray(arguments[1])?arguments[1]:[arguments[1]],this},customPeriod:function(t){var n=e[t];if(!n)throw new Error("Custom time period "+t+" not recognized!");return s(t,n.extent(new Date)[0],n.extent(new Date)[1]),this},startingOn:function(e){return this.between(e,d.m)},between:function(e,n){return t[d.n]=t[d.n].splice(0,d.c),a=d.x,s(d.n,e,n),this},and:function(){return t=c[c.push({})-1],this},except:function(){return c=v,t=null,this}}},e.parse.text=function(t){var n,r=e.parse.recur,a=0,i="",u={eof:/^$/,rank:/^((\d+)(st|nd|rd|th)?)\b/,time:/^(((0?[1-9]|1[0-2]):[0-5]\d(\s)?(am|pm))|((0?\d|1\d|2[0-3]):[0-5]\d))\b/,dayName:/^((sun|mon|tue(s)?|wed(nes)?|thu(r(s)?)?|fri|sat(ur)?)(day)?)\b/,monthName:/^(jan(uary)?|feb(ruary)?|ma((r(ch)?)?|y)|apr(il)?|ju(ly|ne)|aug(ust)?|oct(ober)?|(sept|nov|dec)(ember)?)\b/,yearIndex:/^(\d{4})\b/,every:/^every\b/,after:/^after\b/,before:/^before\b/,second:/^(s|sec(ond)?(s)?)\b/,minute:/^(m|min(ute)?(s)?)\b/,hour:/^(h|hour(s)?)\b/,day:/^(day(s)?( of the month)?)\b/,dayInstance:/^day instance\b/,dayOfWeek:/^day(s)? of the week\b/,dayOfYear:/^day(s)? of the year\b/,weekOfYear:/^week(s)?( of the year)?\b/,weekOfMonth:/^week(s)? of the month\b/,weekday:/^weekday\b/,weekend:/^weekend\b/,month:/^month(s)?\b/,year:/^year(s)?\b/,between:/^between (the)?\b/,start:/^(start(ing)? (at|on( the)?)?)\b/,at:/^(at|@)\b/,and:/^(,|and\b)/,except:/^(except\b)/,also:/(also)\b/,first:/^(first)\b/,last:/^last\b/,in:/^in\b/,of:/^of\b/,onthe:/^on the\b/,on:/^on\b/,through:/(-|^(to|through)\b)/},o={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12,sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7,"1st":1,fir:1,"2nd":2,sec:2,"3rd":3,thi:3,"4th":4,for:4};function f(e,t,n,r){return{startPos:e,endPos:t,text:n,type:r}}function d(e){var t,n,r,u,o,d,l=Array.isArray(e)?e:[e],v=/\s+/;for(l.push(v),o=a;!t||t.type===v;){var c;d=-1,n=i.slice(Math.max(0,o)),t=f(o,o,i.split(v)[0]);var s=l.length;for(c=0;c<s;c++)(r=(u=l[c]).exec(n))&&0===r.index&&r[0].length>d&&(t=f(o,o+(d=r[0].length),n.slice(0,Math.max(0,d)),u));t.type===v&&(o=t.endPos)}return t}function l(e){var t=d(e);return a=t.endPos,t}function v(e){for(var t=Number(y(e)),n=x(u.through)?Number(y(e)):t,r=[],a=t;a<=n;a++)r.push(a);return r}function c(e){for(var t=v(e);x(u.and);)t=t.concat(v(e));return t}function s(e){var t,n,r,a;x(u.weekend)?e.on(o.sun,o.sat).dayOfWeek():x(u.weekday)?e.on(o.mon,o.tue,o.wed,o.thu,o.fri).dayOfWeek():(t=y(u.rank),e.every(t),n=h(e),x(u.start)?(t=y(u.rank),e.startingOn(t),w(n.type)):x(u.between)&&(r=y(u.rank),x(u.and)&&(a=y(u.rank),e.between(r,a))))}function m(e){x(u.first)?e.first():x(u.last)?e.last():e.on(c(u.rank)),h(e)}function h(e){var t=w([u.second,u.minute,u.hour,u.dayOfYear,u.dayOfWeek,u.dayInstance,u.day,u.month,u.year,u.weekOfMonth,u.weekOfYear]);switch(t.type){case u.second:e.second();break;case u.minute:e.minute();break;case u.hour:e.hour();break;case u.dayOfYear:e.dayOfYear();break;case u.dayOfWeek:e.dayOfWeek();break;case u.dayInstance:e.dayOfWeekCount();break;case u.day:e.dayOfMonth();break;case u.weekOfMonth:e.weekOfMonth();break;case u.weekOfYear:e.weekOfYear();break;case u.month:e.month();break;case u.year:e.year();break;default:n=a}return t}function x(e){var t=d(e).type===e;return t&&l(e),t}function w(e){var t=l(e);return t.type?t.text=function(e,t){var n=e;switch(t){case u.time:var r=e.split(/(:|am|pm)/),a=Number.parseInt(r[0],10),i=r[2].trim();"pm"===r[3]&&a<12?a+=12:"am"===r[3]&&12===a&&(a-=12),n=(1===(a=String(a)).length?"0":"")+a+":"+i;break;case u.rank:n=Number.parseInt(/^\d+/.exec(e)[0],10);break;case u.monthName:case u.dayName:n=o[e.slice(0,3)]}return n}(t.text,e):n=a,t}function y(e){return w(e).text}return function(e){a=0,i=e,n=-1;for(var t=r();a<i.length&&n<0;)switch(w([u.every,u.after,u.before,u.onthe,u.on,u.of,u.in,u.at,u.and,u.except,u.also]).type){case u.every:s(t);break;case u.after:void 0!==d(u.time).type?(t.after(y(u.time)),t.time()):(t.after(y(u.rank)),h(t));break;case u.before:void 0!==d(u.time).type?(t.before(y(u.time)),t.time()):(t.before(y(u.rank)),h(t));break;case u.onthe:m(t);break;case u.on:t.on(c(u.dayName)).dayOfWeek();break;case u.of:t.on(c(u.monthName)).month();break;case u.in:t.on(c(u.yearIndex)).year();break;case u.at:for(t.on(y(u.time)).time();x(u.and);)t.on(y(u.time)).time();break;case u.and:break;case u.also:t.and();break;case u.except:t.except();break;default:n=a}return{schedules:t.schedules,exceptions:t.exceptions,error:n}}(t.toLowerCase())},e}));