@tachybase/module-cron 1.3.18 → 1.3.19

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.
Files changed (47) hide show
  1. package/dist/client/cron-jobs-table/CronJobsTable.schema.d.ts +2 -3
  2. package/dist/client/index.js +3 -3
  3. package/dist/externalVersion.js +7 -7
  4. package/dist/node_modules/cron-parser/LICENSE +1 -1
  5. package/dist/node_modules/cron-parser/lib/date.js +252 -0
  6. package/dist/node_modules/cron-parser/lib/expression.js +1002 -0
  7. package/dist/node_modules/cron-parser/lib/field_compactor.js +70 -0
  8. package/dist/node_modules/cron-parser/lib/field_stringify.js +58 -0
  9. package/dist/node_modules/cron-parser/lib/parser.js +1 -0
  10. package/dist/node_modules/cron-parser/package.json +1 -1
  11. package/dist/node_modules/cron-parser/types/common.d.ts +131 -0
  12. package/dist/node_modules/cron-parser/types/index.d.ts +45 -0
  13. package/dist/node_modules/cron-parser/types/ts3/index.d.ts +28 -0
  14. package/dist/server/service/StaticScheduleTrigger.d.ts +1 -1
  15. package/package.json +10 -10
  16. package/dist/node_modules/cron-parser/dist/CronDate.js +0 -497
  17. package/dist/node_modules/cron-parser/dist/CronExpression.js +0 -376
  18. package/dist/node_modules/cron-parser/dist/CronExpressionParser.js +0 -384
  19. package/dist/node_modules/cron-parser/dist/CronFieldCollection.js +0 -371
  20. package/dist/node_modules/cron-parser/dist/CronFileParser.js +0 -109
  21. package/dist/node_modules/cron-parser/dist/fields/CronDayOfMonth.js +0 -44
  22. package/dist/node_modules/cron-parser/dist/fields/CronDayOfWeek.js +0 -51
  23. package/dist/node_modules/cron-parser/dist/fields/CronField.js +0 -183
  24. package/dist/node_modules/cron-parser/dist/fields/CronHour.js +0 -40
  25. package/dist/node_modules/cron-parser/dist/fields/CronMinute.js +0 -40
  26. package/dist/node_modules/cron-parser/dist/fields/CronMonth.js +0 -44
  27. package/dist/node_modules/cron-parser/dist/fields/CronSecond.js +0 -40
  28. package/dist/node_modules/cron-parser/dist/fields/index.js +0 -24
  29. package/dist/node_modules/cron-parser/dist/fields/types.js +0 -2
  30. package/dist/node_modules/cron-parser/dist/index.js +0 -1
  31. package/dist/node_modules/cron-parser/dist/types/CronDate.d.ts +0 -273
  32. package/dist/node_modules/cron-parser/dist/types/CronExpression.d.ts +0 -110
  33. package/dist/node_modules/cron-parser/dist/types/CronExpressionParser.d.ts +0 -70
  34. package/dist/node_modules/cron-parser/dist/types/CronFieldCollection.d.ts +0 -153
  35. package/dist/node_modules/cron-parser/dist/types/CronFileParser.d.ts +0 -30
  36. package/dist/node_modules/cron-parser/dist/types/fields/CronDayOfMonth.d.ts +0 -25
  37. package/dist/node_modules/cron-parser/dist/types/fields/CronDayOfWeek.d.ts +0 -30
  38. package/dist/node_modules/cron-parser/dist/types/fields/CronField.d.ts +0 -114
  39. package/dist/node_modules/cron-parser/dist/types/fields/CronHour.d.ts +0 -23
  40. package/dist/node_modules/cron-parser/dist/types/fields/CronMinute.d.ts +0 -23
  41. package/dist/node_modules/cron-parser/dist/types/fields/CronMonth.d.ts +0 -24
  42. package/dist/node_modules/cron-parser/dist/types/fields/CronSecond.d.ts +0 -23
  43. package/dist/node_modules/cron-parser/dist/types/fields/index.d.ts +0 -8
  44. package/dist/node_modules/cron-parser/dist/types/fields/types.d.ts +0 -18
  45. package/dist/node_modules/cron-parser/dist/types/index.d.ts +0 -8
  46. package/dist/node_modules/cron-parser/dist/types/utils/random.d.ts +0 -10
  47. package/dist/node_modules/cron-parser/dist/utils/random.js +0 -38
@@ -0,0 +1,70 @@
1
+ 'use strict';
2
+
3
+ function buildRange(item) {
4
+ return {
5
+ start: item,
6
+ count: 1
7
+ };
8
+ }
9
+
10
+ function completeRangeWithItem(range, item) {
11
+ range.end = item;
12
+ range.step = item - range.start;
13
+ range.count = 2;
14
+ }
15
+
16
+ function finalizeCurrentRange(results, currentRange, currentItemRange) {
17
+ if (currentRange) {
18
+ // Two elements do not form a range so split them into 2 single elements
19
+ if (currentRange.count === 2) {
20
+ results.push(buildRange(currentRange.start));
21
+ results.push(buildRange(currentRange.end));
22
+ } else {
23
+ results.push(currentRange);
24
+ }
25
+ }
26
+ if (currentItemRange) {
27
+ results.push(currentItemRange);
28
+ }
29
+ }
30
+
31
+ function compactField(arr) {
32
+ var results = [];
33
+ var currentRange = undefined;
34
+
35
+ for (var i = 0; i < arr.length; i++) {
36
+ var currentItem = arr[i];
37
+ if (typeof currentItem !== 'number') {
38
+ // String elements can't form a range
39
+ finalizeCurrentRange(results, currentRange, buildRange(currentItem));
40
+ currentRange = undefined;
41
+ } else if (!currentRange) {
42
+ // Start a new range
43
+ currentRange = buildRange(currentItem);
44
+ } else if (currentRange.count === 1) {
45
+ // Guess that the current item starts a range
46
+ completeRangeWithItem(currentRange, currentItem);
47
+ } else {
48
+ if (currentRange.step === currentItem - currentRange.end) {
49
+ // We found another item that matches the current range
50
+ currentRange.count++;
51
+ currentRange.end = currentItem;
52
+ } else if (currentRange.count === 2) { // The current range can't be continued
53
+ // Break the first item of the current range into a single element, and try to start a new range with the second item
54
+ results.push(buildRange(currentRange.start));
55
+ currentRange = buildRange(currentRange.end);
56
+ completeRangeWithItem(currentRange, currentItem);
57
+ } else {
58
+ // Persist the current range and start a new one with current item
59
+ finalizeCurrentRange(results, currentRange);
60
+ currentRange = buildRange(currentItem);
61
+ }
62
+ }
63
+ }
64
+
65
+ finalizeCurrentRange(results, currentRange);
66
+
67
+ return results;
68
+ }
69
+
70
+ module.exports = compactField;
@@ -0,0 +1,58 @@
1
+ 'use strict';
2
+
3
+ var compactField = require('./field_compactor');
4
+
5
+ function stringifyField(arr, min, max) {
6
+ var ranges = compactField(arr);
7
+ if (ranges.length === 1) {
8
+ var singleRange = ranges[0];
9
+ var step = singleRange.step;
10
+ if (step === 1 && singleRange.start === min && singleRange.end === max) {
11
+ return '*';
12
+ }
13
+ if (step !== 1 && singleRange.start === min && singleRange.end === max - step + 1) {
14
+ return '*/' + step;
15
+ }
16
+ }
17
+
18
+ var result = [];
19
+ for (var i = 0, l = ranges.length; i < l; ++i) {
20
+ var range = ranges[i];
21
+ if (range.count === 1) {
22
+ result.push(range.start);
23
+ continue;
24
+ }
25
+
26
+ var step = range.step;
27
+ if (range.step === 1) {
28
+ result.push(range.start + '-' + range.end);
29
+ continue;
30
+ }
31
+
32
+ var multiplier = range.start == 0 ? range.count - 1 : range.count;
33
+ if (range.step * multiplier > range.end) {
34
+ result = result.concat(
35
+ Array
36
+ .from({ length: range.end - range.start + 1 })
37
+ .map(function (_, index) {
38
+ var value = range.start + index;
39
+ if ((value - range.start) % range.step === 0) {
40
+ return value;
41
+ }
42
+ return null;
43
+ })
44
+ .filter(function (value) {
45
+ return value != null;
46
+ })
47
+ );
48
+ } else if (range.end === max - range.step + 1) {
49
+ result.push(range.start + '/' + range.step);
50
+ } else {
51
+ result.push(range.start + '-' + range.end + '/' + range.step);
52
+ }
53
+ }
54
+
55
+ return result.join(',');
56
+ }
57
+
58
+ module.exports = stringifyField;
@@ -0,0 +1 @@
1
+ (function(){"use strict";var e={799:function(e,t,n){var r=n(588);CronDate.prototype.addYear=function(){this._date=this._date.plus({years:1})};CronDate.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")};CronDate.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")};CronDate.prototype.addHour=function(){var e=this._date;this._date=this._date.plus({hours:1}).startOf("hour");if(this._date<=e){this._date=this._date.plus({hours:1})}};CronDate.prototype.addMinute=function(){var e=this._date;this._date=this._date.plus({minutes:1}).startOf("minute");if(this._date<e){this._date=this._date.plus({hours:1})}};CronDate.prototype.addSecond=function(){var e=this._date;this._date=this._date.plus({seconds:1}).startOf("second");if(this._date<e){this._date=this._date.plus({hours:1})}};CronDate.prototype.subtractYear=function(){this._date=this._date.minus({years:1})};CronDate.prototype.subtractMonth=function(){this._date=this._date.minus({months:1}).endOf("month").startOf("second")};CronDate.prototype.subtractDay=function(){this._date=this._date.minus({days:1}).endOf("day").startOf("second")};CronDate.prototype.subtractHour=function(){var e=this._date;this._date=this._date.minus({hours:1}).endOf("hour").startOf("second");if(this._date>=e){this._date=this._date.minus({hours:1})}};CronDate.prototype.subtractMinute=function(){var e=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second");if(this._date>e){this._date=this._date.minus({hours:1})}};CronDate.prototype.subtractSecond=function(){var e=this._date;this._date=this._date.minus({seconds:1}).startOf("second");if(this._date>e){this._date=this._date.minus({hours:1})}};CronDate.prototype.getDate=function(){return this._date.day};CronDate.prototype.getFullYear=function(){return this._date.year};CronDate.prototype.getDay=function(){var e=this._date.weekday;return e==7?0:e};CronDate.prototype.getMonth=function(){return this._date.month-1};CronDate.prototype.getHours=function(){return this._date.hour};CronDate.prototype.getMinutes=function(){return this._date.minute};CronDate.prototype.getSeconds=function(){return this._date.second};CronDate.prototype.getMilliseconds=function(){return this._date.millisecond};CronDate.prototype.getTime=function(){return this._date.valueOf()};CronDate.prototype.getUTCDate=function(){return this._getUTC().day};CronDate.prototype.getUTCFullYear=function(){return this._getUTC().year};CronDate.prototype.getUTCDay=function(){var e=this._getUTC().weekday;return e==7?0:e};CronDate.prototype.getUTCMonth=function(){return this._getUTC().month-1};CronDate.prototype.getUTCHours=function(){return this._getUTC().hour};CronDate.prototype.getUTCMinutes=function(){return this._getUTC().minute};CronDate.prototype.getUTCSeconds=function(){return this._getUTC().second};CronDate.prototype.toISOString=function(){return this._date.toUTC().toISO()};CronDate.prototype.toJSON=function(){return this._date.toJSON()};CronDate.prototype.setDate=function(e){this._date=this._date.set({day:e})};CronDate.prototype.setFullYear=function(e){this._date=this._date.set({year:e})};CronDate.prototype.setDay=function(e){this._date=this._date.set({weekday:e})};CronDate.prototype.setMonth=function(e){this._date=this._date.set({month:e+1})};CronDate.prototype.setHours=function(e){this._date=this._date.set({hour:e})};CronDate.prototype.setMinutes=function(e){this._date=this._date.set({minute:e})};CronDate.prototype.setSeconds=function(e){this._date=this._date.set({second:e})};CronDate.prototype.setMilliseconds=function(e){this._date=this._date.set({millisecond:e})};CronDate.prototype._getUTC=function(){return this._date.toUTC()};CronDate.prototype.toString=function(){return this.toDate().toString()};CronDate.prototype.toDate=function(){return this._date.toJSDate()};CronDate.prototype.isLastDayOfMonth=function(){var e=this._date.plus({days:1}).startOf("day");return this._date.month!==e.month};CronDate.prototype.isLastWeekdayOfMonth=function(){var e=this._date.plus({days:7}).startOf("day");return this._date.month!==e.month};function CronDate(e,t){var n={zone:t};if(!e){this._date=r.DateTime.local()}else if(e instanceof CronDate){this._date=e._date}else if(e instanceof Date){this._date=r.DateTime.fromJSDate(e,n)}else if(typeof e==="number"){this._date=r.DateTime.fromMillis(e,n)}else if(typeof e==="string"){this._date=r.DateTime.fromISO(e,n);this._date.isValid||(this._date=r.DateTime.fromRFC2822(e,n));this._date.isValid||(this._date=r.DateTime.fromSQL(e,n));this._date.isValid||(this._date=r.DateTime.fromFormat(e,"EEE, d MMM yyyy HH:mm:ss",n))}if(!this._date||!this._date.isValid){throw new Error("CronDate: unhandled timestamp: "+JSON.stringify(e))}if(t&&t!==this._date.zoneName){this._date=this._date.setZone(t)}}e.exports=CronDate},937:function(e,t,n){var r=n(799);var i=n(173);var s=1e4;function CronExpression(e,t){this._options=t;this._utc=t.utc||false;this._tz=this._utc?"UTC":t.tz;this._currentDate=new r(t.currentDate,this._tz);this._startDate=t.startDate?new r(t.startDate,this._tz):null;this._endDate=t.endDate?new r(t.endDate,this._tz):null;this._isIterator=t.iterator||false;this._hasIterated=false;this._nthDayOfWeek=t.nthDayOfWeek||0;this.fields=CronExpression._freezeFields(e)}CronExpression.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"];CronExpression.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"};CronExpression.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}];CronExpression.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31];CronExpression.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}};CronExpression.parseDefaults=["0","*","*","*","*","*"];CronExpression.standardValidCharacters=/^[,*\d/-]+$/;CronExpression.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/;CronExpression.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/;CronExpression.validCharacters={second:CronExpression.standardValidCharacters,minute:CronExpression.standardValidCharacters,hour:CronExpression.standardValidCharacters,dayOfMonth:CronExpression.dayOfMonthValidCharacters,month:CronExpression.standardValidCharacters,dayOfWeek:CronExpression.dayOfWeekValidCharacters};CronExpression._isValidConstraintChar=function _isValidConstraintChar(e,t){if(typeof t!=="string"){return false}return e.chars.some((function(e){return t.indexOf(e)>-1}))};CronExpression._parseField=function _parseField(e,t,n){switch(e){case"month":case"dayOfWeek":var r=CronExpression.aliases[e];t=t.replace(/[a-z]{3}/gi,(function(e){e=e.toLowerCase();if(typeof r[e]!=="undefined"){return r[e]}else{throw new Error('Validation error, cannot resolve alias "'+e+'"')}}));break}if(!CronExpression.validCharacters[e].test(t)){throw new Error("Invalid characters, got value: "+t)}if(t.indexOf("*")!==-1){t=t.replace(/\*/g,n.min+"-"+n.max)}else if(t.indexOf("?")!==-1){t=t.replace(/\?/g,n.min+"-"+n.max)}function parseSequence(t){var r=[];function handleResult(t){if(t instanceof Array){for(var i=0,s=t.length;i<s;i++){var a=t[i];if(CronExpression._isValidConstraintChar(n,a)){r.push(a);continue}if(typeof a!=="number"||Number.isNaN(a)||a<n.min||a>n.max){throw new Error("Constraint error, got value "+a+" expected range "+n.min+"-"+n.max)}r.push(a)}}else{if(CronExpression._isValidConstraintChar(n,t)){r.push(t);return}var o=+t;if(Number.isNaN(o)||o<n.min||o>n.max){throw new Error("Constraint error, got value "+t+" expected range "+n.min+"-"+n.max)}if(e==="dayOfWeek"){o=o%7}r.push(o)}}var i=t.split(",");if(!i.every((function(e){return e.length>0}))){throw new Error("Invalid list value format")}if(i.length>1){for(var s=0,a=i.length;s<a;s++){handleResult(parseRepeat(i[s]))}}else{handleResult(parseRepeat(t))}r.sort(CronExpression._sortCompareFn);return r}function parseRepeat(e){var t=1;var r=e.split("/");if(r.length>2){throw new Error("Invalid repeat: "+e)}if(r.length>1){if(r[0]==+r[0]){r=[r[0]+"-"+n.max,r[1]]}return parseRange(r[0],r[r.length-1])}return parseRange(e,t)}function parseRange(t,r){var i=[];var s=t.split("-");if(s.length>1){if(s.length<2){return+t}if(!s[0].length){if(!s[1].length){throw new Error("Invalid range: "+t)}return+t}var a=+s[0];var o=+s[1];if(Number.isNaN(a)||Number.isNaN(o)||a<n.min||o>n.max){throw new Error("Constraint error, got range "+a+"-"+o+" expected range "+n.min+"-"+n.max)}else if(a>o){throw new Error("Invalid range: "+t)}var u=+r;if(Number.isNaN(u)||u<=0){throw new Error("Constraint error, cannot repeat at every "+u+" time.")}if(e==="dayOfWeek"&&o%7===0){i.push(0)}for(var l=a,c=o;l<=c;l++){var f=i.indexOf(l)!==-1;if(!f&&u>0&&u%r===0){u=1;i.push(l)}else{u++}}return i}return Number.isNaN(+t)?t:+t}return parseSequence(t)};CronExpression._sortCompareFn=function(e,t){var n=typeof e==="number";var r=typeof t==="number";if(n&&r){return e-t}if(!n&&r){return 1}if(n&&!r){return-1}return e.localeCompare(t)};CronExpression._handleMaxDaysInMonth=function(e){if(e.month.length===1){var t=CronExpression.daysInMonth[e.month[0]-1];if(e.dayOfMonth[0]>t){throw new Error("Invalid explicit day of month definition")}return e.dayOfMonth.filter((function(e){return e==="L"?true:e<=t})).sort(CronExpression._sortCompareFn)}};CronExpression._freezeFields=function(e){for(var t=0,n=CronExpression.map.length;t<n;++t){var r=CronExpression.map[t];var i=e[r];e[r]=Object.freeze(i)}return Object.freeze(e)};CronExpression.prototype._applyTimezoneShift=function(e,t,n){if(n==="Month"||n==="Day"){var r=e.getTime();e[t+n]();var i=e.getTime();if(r===i){if(e.getMinutes()===0&&e.getSeconds()===0){e.addHour()}else if(e.getMinutes()===59&&e.getSeconds()===59){e.subtractHour()}}}else{var s=e.getHours();e[t+n]();var a=e.getHours();var o=a-s;if(o===2){if(this.fields.hour.length!==24){this._dstStart=a}}else if(o===0&&e.getMinutes()===0&&e.getSeconds()===0){if(this.fields.hour.length!==24){this._dstEnd=a}}}};CronExpression.prototype._findSchedule=function _findSchedule(e){function matchSchedule(e,t){for(var n=0,r=t.length;n<r;n++){if(t[n]>=e){return t[n]===e}}return t[0]===e}function isNthDayMatch(e,t){if(t<6){if(e.getDate()<8&&t===1){return true}var n=e.getDate()%7?1:0;var r=e.getDate()-e.getDate()%7;var i=Math.floor(r/7)+n;return i===t}return false}function isLInExpressions(e){return e.length>0&&e.some((function(e){return typeof e==="string"&&e.indexOf("L")>=0}))}e=e||false;var t=e?"subtract":"add";var n=new r(this._currentDate,this._tz);var i=this._startDate;var a=this._endDate;var o=n.getTime();var u=0;function isLastWeekdayOfMonthMatch(e){return e.some((function(e){if(!isLInExpressions([e])){return false}var t=Number.parseInt(e[0])%7;if(Number.isNaN(t)){throw new Error("Invalid last weekday of the month expression: "+e)}return n.getDay()===t&&n.isLastWeekdayOfMonth()}))}while(u<s){u++;if(e){if(i&&n.getTime()-i.getTime()<0){throw new Error("Out of the timespan range")}}else{if(a&&a.getTime()-n.getTime()<0){throw new Error("Out of the timespan range")}}var l=matchSchedule(n.getDate(),this.fields.dayOfMonth);if(isLInExpressions(this.fields.dayOfMonth)){l=l||n.isLastDayOfMonth()}var c=matchSchedule(n.getDay(),this.fields.dayOfWeek);if(isLInExpressions(this.fields.dayOfWeek)){c=c||isLastWeekdayOfMonthMatch(this.fields.dayOfWeek)}var f=this.fields.dayOfMonth.length>=CronExpression.daysInMonth[n.getMonth()];var d=this.fields.dayOfWeek.length===CronExpression.constraints[5].max-CronExpression.constraints[5].min+1;var h=n.getHours();if(!l&&(!c||d)){this._applyTimezoneShift(n,t,"Day");continue}if(!f&&d&&!l){this._applyTimezoneShift(n,t,"Day");continue}if(f&&!d&&!c){this._applyTimezoneShift(n,t,"Day");continue}if(this._nthDayOfWeek>0&&!isNthDayMatch(n,this._nthDayOfWeek)){this._applyTimezoneShift(n,t,"Day");continue}if(!matchSchedule(n.getMonth()+1,this.fields.month)){this._applyTimezoneShift(n,t,"Month");continue}if(!matchSchedule(h,this.fields.hour)){if(this._dstStart!==h){this._dstStart=null;this._applyTimezoneShift(n,t,"Hour");continue}else if(!matchSchedule(h-1,this.fields.hour)){n[t+"Hour"]();continue}}else if(this._dstEnd===h){if(!e){this._dstEnd=null;this._applyTimezoneShift(n,"add","Hour");continue}}if(!matchSchedule(n.getMinutes(),this.fields.minute)){this._applyTimezoneShift(n,t,"Minute");continue}if(!matchSchedule(n.getSeconds(),this.fields.second)){this._applyTimezoneShift(n,t,"Second");continue}if(o===n.getTime()){if(t==="add"||n.getMilliseconds()===0){this._applyTimezoneShift(n,t,"Second")}else{n.setMilliseconds(0)}continue}break}if(u>=s){throw new Error("Invalid expression, loop limit exceeded")}this._currentDate=new r(n,this._tz);this._hasIterated=true;return n};CronExpression.prototype.next=function next(){var e=this._findSchedule();if(this._isIterator){return{value:e,done:!this.hasNext()}}return e};CronExpression.prototype.prev=function prev(){var e=this._findSchedule(true);if(this._isIterator){return{value:e,done:!this.hasPrev()}}return e};CronExpression.prototype.hasNext=function(){var e=this._currentDate;var t=this._hasIterated;try{this._findSchedule();return true}catch(e){return false}finally{this._currentDate=e;this._hasIterated=t}};CronExpression.prototype.hasPrev=function(){var e=this._currentDate;var t=this._hasIterated;try{this._findSchedule(true);return true}catch(e){return false}finally{this._currentDate=e;this._hasIterated=t}};CronExpression.prototype.iterate=function iterate(e,t){var n=[];if(e>=0){for(var r=0,i=e;r<i;r++){try{var s=this.next();n.push(s);if(t){t(s,r)}}catch(e){break}}}else{for(var r=0,i=e;r>i;r--){try{var s=this.prev();n.push(s);if(t){t(s,r)}}catch(e){break}}}return n};CronExpression.prototype.reset=function reset(e){this._currentDate=new r(e||this._options.currentDate)};CronExpression.prototype.stringify=function stringify(e){var t=[];for(var n=e?0:1,r=CronExpression.map.length;n<r;++n){var s=CronExpression.map[n];var a=this.fields[s];var o=CronExpression.constraints[n];if(s==="dayOfMonth"&&this.fields.month.length===1){o={min:1,max:CronExpression.daysInMonth[this.fields.month[0]-1]}}else if(s==="dayOfWeek"){o={min:0,max:6};a=a[a.length-1]===7?a.slice(0,-1):a}t.push(i(a,o.min,o.max))}return t.join(" ")};CronExpression.parse=function parse(e,t){var n=this;if(typeof t==="function"){t={}}function parse(e,t){if(!t){t={}}if(typeof t.currentDate==="undefined"){t.currentDate=new r(undefined,n._tz)}if(CronExpression.predefined[e]){e=CronExpression.predefined[e]}var i=[];var s=(e+"").trim().split(/\s+/);if(s.length>6){throw new Error("Invalid cron expression")}var a=CronExpression.map.length-s.length;for(var o=0,u=CronExpression.map.length;o<u;++o){var l=CronExpression.map[o];var c=s[s.length>u?o:o-a];if(o<a||!c){i.push(CronExpression._parseField(l,CronExpression.parseDefaults[o],CronExpression.constraints[o]))}else{var f=l==="dayOfWeek"?parseNthDay(c):c;i.push(CronExpression._parseField(l,f,CronExpression.constraints[o]))}}var d={};for(var o=0,u=CronExpression.map.length;o<u;o++){var h=CronExpression.map[o];d[h]=i[o]}var m=CronExpression._handleMaxDaysInMonth(d);d.dayOfMonth=m||d.dayOfMonth;return new CronExpression(d,t);function parseNthDay(e){var n=e.split("#");if(n.length>1){var r=+n[n.length-1];if(/,/.test(e)){throw new Error("Constraint error, invalid dayOfWeek `#` and `,` "+"special characters are incompatible")}if(/\//.test(e)){throw new Error("Constraint error, invalid dayOfWeek `#` and `/` "+"special characters are incompatible")}if(/-/.test(e)){throw new Error("Constraint error, invalid dayOfWeek `#` and `-` "+"special characters are incompatible")}if(n.length>2||Number.isNaN(r)||(r<1||r>5)){throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)")}t.nthDayOfWeek=r;return n[0]}return e}}return parse(e,t)};CronExpression.fieldsToExpression=function fieldsToExpression(e,t){function validateConstraints(e,t,n){if(!t){throw new Error("Validation error, Field "+e+" is missing")}if(t.length===0){throw new Error("Validation error, Field "+e+" contains no values")}for(var r=0,i=t.length;r<i;r++){var s=t[r];if(CronExpression._isValidConstraintChar(n,s)){continue}if(typeof s!=="number"||Number.isNaN(s)||s<n.min||s>n.max){throw new Error("Constraint error, got value "+s+" expected range "+n.min+"-"+n.max)}}}var n={};for(var r=0,i=CronExpression.map.length;r<i;++r){var s=CronExpression.map[r];var a=e[s];validateConstraints(s,a,CronExpression.constraints[r]);var o=[];var u=-1;while(++u<a.length){o[u]=a[u]}a=o.sort(CronExpression._sortCompareFn).filter((function(e,t,n){return!t||e!==n[t-1]}));if(a.length!==o.length){throw new Error("Validation error, Field "+s+" contains duplicate values")}n[s]=a}var l=CronExpression._handleMaxDaysInMonth(n);n.dayOfMonth=l||n.dayOfMonth;return new CronExpression(n,t||{})};e.exports=CronExpression},936:function(e){function buildRange(e){return{start:e,count:1}}function completeRangeWithItem(e,t){e.end=t;e.step=t-e.start;e.count=2}function finalizeCurrentRange(e,t,n){if(t){if(t.count===2){e.push(buildRange(t.start));e.push(buildRange(t.end))}else{e.push(t)}}if(n){e.push(n)}}function compactField(e){var t=[];var n=undefined;for(var r=0;r<e.length;r++){var i=e[r];if(typeof i!=="number"){finalizeCurrentRange(t,n,buildRange(i));n=undefined}else if(!n){n=buildRange(i)}else if(n.count===1){completeRangeWithItem(n,i)}else{if(n.step===i-n.end){n.count++;n.end=i}else if(n.count===2){t.push(buildRange(n.start));n=buildRange(n.end);completeRangeWithItem(n,i)}else{finalizeCurrentRange(t,n);n=buildRange(i)}}}finalizeCurrentRange(t,n);return t}e.exports=compactField},173:function(e,t,n){var r=n(936);function stringifyField(e,t,n){var i=r(e);if(i.length===1){var s=i[0];var a=s.step;if(a===1&&s.start===t&&s.end===n){return"*"}if(a!==1&&s.start===t&&s.end===n-a+1){return"*/"+a}}var o=[];for(var u=0,l=i.length;u<l;++u){var c=i[u];if(c.count===1){o.push(c.start);continue}var a=c.step;if(c.step===1){o.push(c.start+"-"+c.end);continue}var f=c.start==0?c.count-1:c.count;if(c.step*f>c.end){o=o.concat(Array.from({length:c.end-c.start+1}).map((function(e,t){var n=c.start+t;if((n-c.start)%c.step===0){return n}return null})).filter((function(e){return e!=null})))}else if(c.end===n-c.step+1){o.push(c.start+"/"+c.step)}else{o.push(c.start+"-"+c.end+"/"+c.step)}}return o.join(",")}e.exports=stringifyField},912:function(e,t,n){var r=n(937);function CronParser(){}CronParser._parseEntry=function _parseEntry(e){var t=e.split(" ");if(t.length===6){return{interval:r.parse(e)}}else if(t.length>6){return{interval:r.parse(t.slice(0,6).join(" ")),command:t.slice(6,t.length)}}else{throw new Error("Invalid entry: "+e)}};CronParser.parseExpression=function parseExpression(e,t){return r.parse(e,t)};CronParser.fieldsToExpression=function fieldsToExpression(e,t){return r.fieldsToExpression(e,t)};CronParser.parseString=function parseString(e){var t=e.split("\n");var n={variables:{},expressions:[],errors:{}};for(var r=0,i=t.length;r<i;r++){var s=t[r];var a=null;var o=s.trim();if(o.length>0){if(o.match(/^#/)){continue}else if(a=o.match(/^(.*)=(.*)$/)){n.variables[a[1]]=a[2]}else{var u=null;try{u=CronParser._parseEntry("0 "+o);n.expressions.push(u.interval)}catch(e){n.errors[o]=e}}}}return n};CronParser.parseFile=function parseFile(e,t){n(896).readFile(e,(function(e,n){if(e){t(e);return}return t(null,CronParser.parseString(n.toString()))}))};e.exports=CronParser},588:function(e,t){Object.defineProperty(t,"__esModule",{value:true});class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const n="numeric",r="short",i="long";const s={year:n,month:n,day:n};const a={year:n,month:r,day:n};const o={year:n,month:r,day:n,weekday:r};const u={year:n,month:i,day:n};const l={year:n,month:i,day:n,weekday:i};const c={hour:n,minute:n};const f={hour:n,minute:n,second:n};const d={hour:n,minute:n,second:n,timeZoneName:r};const h={hour:n,minute:n,second:n,timeZoneName:i};const m={hour:n,minute:n,hourCycle:"h23"};const p={hour:n,minute:n,second:n,hourCycle:"h23"};const y={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:r};const g={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:i};const v={year:n,month:n,day:n,hour:n,minute:n};const w={year:n,month:n,day:n,hour:n,minute:n,second:n};const T={year:n,month:r,day:n,hour:n,minute:n};const D={year:n,month:r,day:n,hour:n,minute:n,second:n};const O={year:n,month:r,day:n,weekday:r,hour:n,minute:n};const k={year:n,month:i,day:n,hour:n,minute:n,timeZoneName:r};const S={year:n,month:i,day:n,hour:n,minute:n,second:n,timeZoneName:r};const I={year:n,month:i,day:n,weekday:i,hour:n,minute:n,timeZoneName:i};const x={year:n,month:i,day:n,weekday:i,hour:n,minute:n,second:n,timeZoneName:i};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let b=null;class SystemZone extends Zone{static get instance(){if(b===null){b=new SystemZone}return b}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:n}){return parseZoneInfo(e,t,n)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let C={};function makeDTF(e){if(!C[e]){C[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return C[e]}const E={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,s,a,o,u,l,c]=r;return[a,i,s,o,u,l,c]}function partsOffset(e,t){const n=e.formatToParts(t);const r=[];for(let e=0;e<n.length;e++){const{type:t,value:i}=n[e];const s=E[t];if(t==="era"){r[s]=i}else if(!isUndefined(s)){r[s]=parseInt(i,10)}}return r}let N={};class IANAZone extends Zone{static create(e){if(!N[e]){N[e]=new IANAZone(e)}return N[e]}static resetCache(){N={};C={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e){return false}try{new Intl.DateTimeFormat("en-US",{timeZone:e}).format();return true}catch(e){return false}}constructor(e){super();this.zoneName=e;this.valid=IANAZone.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(e,{format:t,locale:n}){return parseZoneInfo(e,t,n,this.name)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=makeDTF(this.name);let[r,i,s,a,o,u,l]=n.formatToParts?partsOffset(n,t):hackyOffset(n,t);if(a==="BC"){r=-Math.abs(r)+1}const c=o===24?0:o;const f=objToLocalTS({year:r,month:i,day:s,hour:c,minute:u,second:l,millisecond:0});let d=+t;const h=d%1e3;d-=h>=0?h:1e3+h;return(f-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let _={};function getCachedLF(e,t={}){const n=JSON.stringify([e,t]);let r=_[n];if(!r){r=new Intl.ListFormat(e,t);_[n]=r}return r}let M={};function getCachedDTF(e,t={}){const n=JSON.stringify([e,t]);let r=M[n];if(!r){r=new Intl.DateTimeFormat(e,t);M[n]=r}return r}let F={};function getCachedINF(e,t={}){const n=JSON.stringify([e,t]);let r=F[n];if(!r){r=new Intl.NumberFormat(e,t);F[n]=r}return r}let L={};function getCachedRTF(e,t={}){const{base:n,...r}=t;const i=JSON.stringify([e,r]);let s=L[i];if(!s){s=new Intl.RelativeTimeFormat(e,t);L[i]=s}return s}let Z=null;function systemLocale(){if(Z){return Z}else{Z=(new Intl.DateTimeFormat).resolvedOptions().locale;return Z}}let W={};function getCachedWeekInfo(e){let t=W[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo;W[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const n=e.indexOf("-u-");if(n===-1){return[e]}else{let t;let r;try{t=getCachedDTF(e).resolvedOptions();r=e}catch(i){const s=e.substring(0,n);t=getCachedDTF(s).resolvedOptions();r=s}const{numberingSystem:i,calendar:s}=t;return[r,i,s]}}function intlConfigString(e,t,n){if(n||t){if(!e.includes("-u-")){e+="-u"}if(n){e+=`-ca-${n}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let n=1;n<=12;n++){const r=DateTime.utc(2009,n,1);t.push(e(r))}return t}function mapWeekdays(e){const t=[];for(let n=1;n<=7;n++){const r=DateTime.utc(2016,11,13+n);t.push(e(r))}return t}function listStuff(e,t,n,r){const i=e.listingMode();if(i==="error"){return null}else if(i==="en"){return n(t)}else{return r(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,n){this.padTo=n.padTo||0;this.floor=n.floor||false;const{padTo:r,floor:i,...s}=n;if(!t||Object.keys(s).length>0){const t={useGrouping:false,...n};if(n.padTo>0)t.minimumIntegerDigits=n.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,n){this.opts=n;this.originalZone=undefined;let r=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(n).valid){r=n;this.dt=e}else{r="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;r=e.zone.name}else{r="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const i={...this.opts};i.timeZone=i.timeZone||r;this.dtf=getCachedDTF(t,i)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,n){this.opts={style:"long",...n};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,n)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const V={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,r,i=false){const s=e||Settings.defaultLocale;const a=s||(i?"en-US":systemLocale());const o=t||Settings.defaultNumberingSystem;const u=n||Settings.defaultOutputCalendar;const l=validateWeekSettings(r)||Settings.defaultWeekSettings;return new Locale(a,o,u,l,s)}static resetCache(){Z=null;M={};F={};L={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:r}={}){return Locale.create(e,t,n,r)}constructor(e,t,n,r,i){const[s,a,o]=parseLocaleString(e);this.locale=s;this.numberingSystem=t||a||null;this.outputCalendar=n||o||null;this.weekSettings=r;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=i;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";if(!this.monthsCache[r][e]){this.monthsCache[r][e]=mapMonths((e=>this.extract(e,n,"month")))}return this.monthsCache[r][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";if(!this.weekdaysCache[r][e]){this.weekdaysCache[r][e]=mapWeekdays((e=>this.extract(e,n,"weekday")))}return this.weekdaysCache[r][e]}))}meridiems(){return listStuff(this,undefined,(()=>ie),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,n){const r=this.dtFormatter(e,t),i=r.formatToParts(),s=i.find((e=>e.type.toLowerCase()===n));return s?s.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return V}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let U=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(U===null){U=new FixedOffsetZone(0)}return U}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const n=e.toLowerCase();if(n==="default")return t;else if(n==="local"||n==="system")return SystemZone.instance;else if(n==="utc"||n==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(n)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}const z={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const A={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const R=z.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(z.hanidec)!==-1){t+=R.indexOf(e[n])}else{for(const e in A){const[n,i]=A[e];if(r>=n&&r<=i){t+=r-n}}}}return parseInt(t,10)}else{return t}}let $={};function resetDigitRegexCache(){$={}}function digitRegex({numberingSystem:e},t=""){const n=e||"latn";if(!$[n]){$[n]={}}if(!$[n][t]){$[n][t]=new RegExp(`${z[n]}${t}`)}return $[n][t]}let now=()=>Date.now(),j="system",q=null,Y=null,P=null,H=60,J,G=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){j=e}static get defaultZone(){return normalizeZone(j,SystemZone.instance)}static get defaultLocale(){return q}static set defaultLocale(e){q=e}static get defaultNumberingSystem(){return Y}static set defaultNumberingSystem(e){Y=e}static get defaultOutputCalendar(){return P}static set defaultOutputCalendar(e){P=e}static get defaultWeekSettings(){return G}static set defaultWeekSettings(e){G=validateWeekSettings(e)}static get twoDigitCutoffYear(){return H}static set twoDigitCutoffYear(e){H=e%100}static get throwOnInvalid(){return J}static set throwOnInvalid(e){J=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache();DateTime.resetCache();resetDigitRegexCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const B=[0,31,59,90,120,151,181,212,243,273,304,334],Q=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,n){const r=new Date(Date.UTC(e,t-1,n));if(e<100&&e>=0){r.setUTCFullYear(r.getUTCFullYear()-1900)}const i=r.getUTCDay();return i===0?7:i}function computeOrdinal(e,t,n){return n+(isLeapYear(e)?Q:B)[t-1]}function uncomputeOrdinal(e,t){const n=isLeapYear(e)?Q:B,r=n.findIndex((e=>e<t)),i=t-n[r];return{month:r+1,day:i}}function isoWeekdayToLocal(e,t){return(e-t+7)%7+1}function gregorianToWeek(e,t=4,n=1){const{year:r,month:i,day:s}=e,a=computeOrdinal(r,i,s),o=isoWeekdayToLocal(dayOfWeek(r,i,s),n);let u=Math.floor((a-o+14-t)/7),l;if(u<1){l=r-1;u=weeksInWeekYear(l,t,n)}else if(u>weeksInWeekYear(r,t,n)){l=r+1;u=1}else{l=r}return{weekYear:l,weekNumber:u,weekday:o,...timeObject(e)}}function weekToGregorian(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:s}=e,a=isoWeekdayToLocal(dayOfWeek(r,1,t),n),o=daysInYear(r);let u=i*7+s-a-7+t,l;if(u<1){l=r-1;u+=daysInYear(l)}else if(u>o){l=r+1;u-=daysInYear(r)}else{l=r}const{month:c,day:f}=uncomputeOrdinal(l,u);return{year:l,month:c,day:f,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:n,day:r}=e;const i=computeOrdinal(t,n,r);return{year:t,ordinal:i,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:n}=e;const{month:r,day:i}=uncomputeOrdinal(t,n);return{year:t,month:r,day:i,...timeObject(e)}}function usesLocalWeekValues(e,t){const n=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(n){const n=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(n){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,n=1){const r=isInteger(e.weekYear),i=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,n)),s=integerBetween(e.weekday,1,7);if(!r){return unitOutOfRange("weekYear",e.weekYear)}else if(!i){return unitOutOfRange("week",e.weekNumber)}else if(!s){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),n=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!n){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),n=integerBetween(e.month,1,12),r=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!n){return unitOutOfRange("month",e.month)}else if(!r){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:n,second:r,millisecond:i}=e;const s=integerBetween(t,0,23)||t===24&&n===0&&r===0&&i===0,a=integerBetween(n,0,59),o=integerBetween(r,0,59),u=integerBetween(i,0,999);if(!s){return unitOutOfRange("hour",t)}else if(!a){return unitOutOfRange("minute",n)}else if(!o){return unitOutOfRange("second",r)}else if(!u){return unitOutOfRange("millisecond",i)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,n){if(e.length===0){return undefined}return e.reduce(((e,r)=>{const i=[t(r),r];if(!e){return i}else if(n(e[0],i[0])===e[0]){return e}else{return i}}),null)[1]}function pick(e,t){return t.reduce(((t,n)=>{t[n]=e[n];return t}),{})}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,n){return isInteger(e)&&e>=t&&e<=n}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const n=e<0;let r;if(n){r="-"+(""+-e).padStart(t,"0")}else{r=(""+e).padStart(t,"0")}return r}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,n=false){const r=10**t,i=n?Math.trunc:Math.round;return i(e*r)/r}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const n=floorMod(t-1,12)+1,r=e+(t-n)/12;if(n===2){return isLeapYear(r)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,n){const r=isoWeekdayToLocal(dayOfWeek(e,1,t),n);return-r+t-1}function weeksInWeekYear(e,t=4,n=1){const r=firstWeekOffset(e,t,n);const i=firstWeekOffset(e+1,t,n);return(daysInYear(e)-r+i)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,n,r=null){const i=new Date(e),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(r){s.timeZone=r}const a={timeZoneName:t,...s};const o=new Intl.DateTimeFormat(n,a).formatToParts(i).find((e=>e.type.toLowerCase()==="timezonename"));return o?o.value:null}function signedOffset(e,t){let n=parseInt(e,10);if(Number.isNaN(n)){n=0}const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const n={};for(const r in e){if(hasOwnProperty(e,r)){const i=e[r];if(i===undefined||i===null)continue;n[t(r)]=asNumber(i)}}return n}function formatOffset(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${padStart(n,2)}:${padStart(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${padStart(n,2)}${padStart(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return pick(e,["hour","minute","second","millisecond"])}const K=["January","February","March","April","May","June","July","August","September","October","November","December"];const X=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const ee=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...ee];case"short":return[...X];case"long":return[...K];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const te=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const ne=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const re=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...re];case"short":return[...ne];case"long":return[...te];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const ie=["AM","PM"];const se=["Before Christ","Anno Domini"];const ae=["BC","AD"];const oe=["B","A"];function eras(e){switch(e){case"narrow":return[...oe];case"short":return[...ae];case"long":return[...se];default:return null}}function meridiemForDateTime(e){return ie[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,n="always",r=false){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const s=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&s){const n=e==="days";switch(t){case 1:return n?"tomorrow":`next ${i[e][0]}`;case-1:return n?"yesterday":`last ${i[e][0]}`;case 0:return n?"today":`this ${i[e][0]}`}}const a=Object.is(t,-0)||t<0,o=Math.abs(t),u=o===1,l=i[e],c=r?u?l[1]:l[2]||l[1]:u?i[e][0]:e;return a?`${o} ${c} ago`:`in ${o} ${c}`}function stringifyTokens(e,t){let n="";for(const r of e){if(r.literal){n+=r.val}else{n+=t(r.val)}}return n}const ue={D:s,DD:a,DDD:u,DDDD:l,t:c,tt:f,ttt:d,tttt:h,T:m,TT:p,TTT:y,TTTT:g,f:v,ff:T,fff:k,ffff:I,F:w,FF:D,FFF:S,FFFF:x};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,n="",r=false;const i=[];for(let s=0;s<e.length;s++){const a=e.charAt(s);if(a==="'"){if(n.length>0){i.push({literal:r||/^\s+$/.test(n),val:n})}t=null;n="";r=!r}else if(r){n+=a}else if(a===t){n+=a}else{if(n.length>0){i.push({literal:/^\s+$/.test(n),val:n})}n=a;t=a}}if(n.length>0){i.push({literal:r||/^\s+$/.test(n),val:n})}return i}static macroTokenToFormatOpts(e){return ue[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const n=this.systemLoc.dtFormatter(e,{...this.opts,...t});return n.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const n=this.dtFormatter(e.start,t);return n.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const n={...this.opts};if(t>0){n.padTo=t}return this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,n)=>this.loc.extract(e,t,n),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>n?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,r)=>n?monthForDateTime(e,t):string(r?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,r)=>n?weekdayForDateTime(e,t):string(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const n=Formatter.macroTokenToFormatOpts(t);if(n){return this.formatWithSystemDefault(e,n)}else{return t}},era=t=>n?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return r?string({day:"numeric"},"day"):this.num(e.day);case"dd":return r?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return r?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return r?string({month:"numeric"},"month"):this.num(e.month);case"MM":return r?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return r?string({year:"numeric"},"year"):this.num(e.year);case"yy":return r?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const n=tokenToField(t);if(n){return this.num(e.get(n),t.length)}else{return t}},n=Formatter.parseFormat(t),r=n.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]),i=e.shiftTo(...r.map(tokenToField).filter((e=>e)));return stringifyTokens(n,tokenToString(i))}}const le=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,n,r],i)=>{const[s,a,o]=i(t,r);return[{...e,...s},a||n,o]}),[{},null,1]).slice(0,2)}function parse(e,...t){if(e==null){return[null,null]}for(const[n,r]of t){const t=n.exec(e);if(t){return r(t)}}return[null,null]}function simpleParse(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++){r[e[i]]=parseInteger(t[n+i])}return[r,null,n+i]}}const ce=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/;const fe=`(?:${ce.source}?(?:\\[(${le.source})\\])?)?`;const de=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/;const he=RegExp(`${de.source}${fe}`);const me=RegExp(`(?:T${he.source})?`);const pe=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/;const ye=/(\d{4})-?W(\d\d)(?:-?(\d))?/;const ge=/(\d{4})-?(\d{3})/;const ve=simpleParse("weekYear","weekNumber","weekDay");const we=simpleParse("year","ordinal");const Te=/(\d{4})-(\d\d)-(\d\d)/;const De=RegExp(`${de.source} ?(?:${ce.source}|(${le.source}))?`);const Oe=RegExp(`(?: ${De.source})?`);function int(e,t,n){const r=e[t];return isUndefined(r)?n:parseInteger(r)}function extractISOYmd(e,t){const n={year:int(e,t),month:int(e,t+1,1),day:int(e,t+2,1)};return[n,null,t+3]}function extractISOTime(e,t){const n={hours:int(e,t,0),minutes:int(e,t+1,0),seconds:int(e,t+2,0),milliseconds:parseMillis(e[t+3])};return[n,null,t+4]}function extractISOOffset(e,t){const n=!e[t]&&!e[t+1],r=signedOffset(e[t+1],e[t+2]),i=n?null:FixedOffsetZone.instance(r);return[{},i,t+3]}function extractIANAZone(e,t){const n=e[t]?IANAZone.create(e[t]):null;return[{},n,t+1]}const ke=RegExp(`^T?${de.source}$`);const Se=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(e){const[t,n,r,i,s,a,o,u,l]=e;const c=t[0]==="-";const f=u&&u[0]==="-";const maybeNegate=(e,t=false)=>e!==undefined&&(t||e&&c)?-e:e;return[{years:maybeNegate(parseFloating(n)),months:maybeNegate(parseFloating(r)),weeks:maybeNegate(parseFloating(i)),days:maybeNegate(parseFloating(s)),hours:maybeNegate(parseFloating(a)),minutes:maybeNegate(parseFloating(o)),seconds:maybeNegate(parseFloating(u),u==="-0"),milliseconds:maybeNegate(parseMillis(l),f)}]}const Ie={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,n,r,i,s,a){const o={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:X.indexOf(n)+1,day:parseInteger(r),hour:parseInteger(i),minute:parseInteger(s)};if(a)o.second=parseInteger(a);if(e){o.weekday=e.length>3?te.indexOf(e)+1:ne.indexOf(e)+1}return o}const xe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,n,r,i,s,a,o,u,l,c,f]=e,d=fromStrings(t,i,r,n,s,a,o);let h;if(u){h=Ie[u]}else if(l){h=0}else{h=signedOffset(c,f)}return[d,new FixedOffsetZone(h)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const be=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ce=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ee=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,n,r,i,s,a,o]=e,u=fromStrings(t,i,r,n,s,a,o);return[u,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,n,r,i,s,a,o]=e,u=fromStrings(t,o,n,r,i,s,a);return[u,FixedOffsetZone.utcInstance]}const Ne=combineRegexes(pe,me);const _e=combineRegexes(ye,me);const Me=combineRegexes(ge,me);const Fe=combineRegexes(he);const Le=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const Ze=combineExtractors(ve,extractISOTime,extractISOOffset,extractIANAZone);const We=combineExtractors(we,extractISOTime,extractISOOffset,extractIANAZone);const Ve=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return parse(e,[Ne,Le],[_e,Ze],[Me,We],[Fe,Ve])}function parseRFC2822Date(e){return parse(preprocessRFC2822(e),[xe,extractRFC2822])}function parseHTTPDate(e){return parse(e,[be,extractRFC1123Or850],[Ce,extractRFC1123Or850],[Ee,extractASCII])}function parseISODuration(e){return parse(e,[Se,extractISODuration])}const Ue=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return parse(e,[ke,Ue])}const ze=combineRegexes(Te,Oe);const Ae=combineRegexes(De);const Re=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return parse(e,[ze,Le],[Ae,Re])}const $e="Invalid Duration";const je={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},qe={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...je},Ye=146097/400,Pe=146097/4800,He={years:{quarters:4,months:12,weeks:Ye/7,days:Ye,hours:Ye*24,minutes:Ye*24*60,seconds:Ye*24*60*60,milliseconds:Ye*24*60*60*1e3},quarters:{months:3,weeks:Ye/28,days:Ye/4,hours:Ye*24/4,minutes:Ye*24*60/4,seconds:Ye*24*60*60/4,milliseconds:Ye*24*60*60*1e3/4},months:{weeks:Pe/7,days:Pe,hours:Pe*24,minutes:Pe*24*60,seconds:Pe*24*60*60,milliseconds:Pe*24*60*60*1e3},...je};const Je=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Ge=Je.slice(0).reverse();function clone$1(e,t,n=false){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(r)}function durationToMillis(e,t){var n;let r=(n=t.milliseconds)!=null?n:0;for(const n of Ge.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const n=durationToMillis(e,t)<0?-1:1;Je.reduceRight(((r,i)=>{if(!isUndefined(t[i])){if(r){const s=t[r]*n;const a=e[i][r];const o=Math.floor(s/a);t[i]+=o*n;t[r]-=o*a*n}return i}else{return r}}),null);Je.reduce(((n,r)=>{if(!isUndefined(t[r])){if(n){const i=t[n]%1;t[n]-=i;t[r]+=i*e[n][r]}return r}else{return n}}),null)}function removeZeroes(e){const t={};for(const[n,r]of Object.entries(e)){if(r!==0){t[n]=r}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let n=t?He:qe;if(e.matrix){n=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=n;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[n]=parseISODuration(e);if(n){return Duration.fromObject(n,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[n]=parseISOTimeOnly(e);if(n){return Duration.fromObject(n,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const n=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(n)}else{return new Duration({invalid:n})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,n).formatDurationFromString(this,e):$e}toHuman(e={}){if(!this.isValid)return $e;const t=Je.map((t=>{const n=this.values[t];if(isUndefined(n)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const n=DateTime.fromMillis(t,{zone:"UTC"});return n.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),n={};for(const e of Je){if(hasOwnProperty(t.values,e)||hasOwnProperty(this.values,e)){n[e]=t.get(e)+this.get(e)}}return clone$1(this,{values:n},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values)){t[n]=asNumber(e(this.values[n],n))}return clone$1(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone$1(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){const i=this.loc.clone({locale:e,numberingSystem:t});const s={loc:i,matrix:r,conversionAccuracy:n};return clone$1(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone$1(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},n={},r=this.toObject();let i;for(const s of Je){if(e.indexOf(s)>=0){i=s;let e=0;for(const t in n){e+=this.matrix[t][s]*n[t];n[t]=0}if(isNumber(r[s])){e+=r[s]}const a=Math.trunc(e);t[s]=a;n[s]=(e*1e3-a*1e3)/1e3}else if(isNumber(r[s])){n[s]=r[s]}}for(const e in n){if(n[e]!==0){t[i]+=e===i?n[e]:n[e]/this.matrix[i][e]}}normalizeValues(this.matrix,t);return clone$1(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone$1(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Je){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Be="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(t<e){return Interval.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`)}else{return null}}class Interval{constructor(e){this.s=e.start;this.e=e.end;this.invalid=e.invalid||null;this.isLuxonInterval=true}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Interval is invalid")}const n=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidIntervalError(n)}else{return new Interval({invalid:n})}}static fromDateTimes(e,t){const n=friendlyDateTime(e),r=friendlyDateTime(t);const i=validateStartEnd(n,r);if(i==null){return new Interval({start:n,end:r})}else{return i}}static after(e,t){const n=Duration.fromDurationLike(t),r=friendlyDateTime(e);return Interval.fromDateTimes(r,r.plus(n))}static before(e,t){const n=Duration.fromDurationLike(t),r=friendlyDateTime(e);return Interval.fromDateTimes(r.minus(n),r)}static fromISO(e,t){const[n,r]=(e||"").split("/",2);if(n&&r){let e,i;try{e=DateTime.fromISO(n,t);i=e.isValid}catch(r){i=false}let s,a;try{s=DateTime.fromISO(r,t);a=s.isValid}catch(r){a=false}if(i&&a){return Interval.fromDateTimes(e,s)}if(i){const n=Duration.fromISO(r,t);if(n.isValid){return Interval.after(e,n)}}else if(a){const e=Duration.fromISO(n,t);if(e.isValid){return Interval.before(s,e)}}}return Interval.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||false}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(...[e]).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let r;if(t!=null&&t.useLocaleWeeks){r=this.end.reconfigure({locale:n.locale})}else{r=this.end}r=r.startOf(e,t);return Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):false}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){if(!this.isValid)return false;return this.s>e}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),n=[];let{s:r}=this,i=0;while(r<this.e){const e=t[i]||this.e,s=+e>+this.e?this.e:e;n.push(Interval.fromDateTimes(r,s));r=s;i+=1}return n}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:n}=this,r=1,i;const s=[];while(n<this.e){const e=this.start.plus(t.mapUnits((e=>e*r)));i=+e>+this.e?this.e:e;s.push(Interval.fromDateTimes(n,i));n=i;r+=1}return s}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){if(!this.isValid)return false;return+this.e===+e.s}abutsEnd(e){if(!this.isValid)return false;return+e.e===+this.s}engulfs(e){if(!this.isValid)return false;return this.s<=e.s&&this.e>=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;if(t>=n){return null}else{return Interval.fromDateTimes(t,n)}}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Interval.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>{if(!t){return[e,n]}else if(t.overlaps(n)||t.abutsStart(n)){return[e,t.union(n)]}else{return[e.concat([t]),n]}}),[[],null]);if(n){t.push(n)}return t}static xor(e){let t=null,n=0;const r=[],i=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),s=Array.prototype.concat(...i),a=s.sort(((e,t)=>e.time-t.time));for(const e of a){n+=e.type==="s"?1:-1;if(n===1){t=e.time}else{if(t&&+t!==+e.time){r.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(r)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Be;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=s,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Be}toISO(e){if(!this.isValid)return Be;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Be;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Be;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Be;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Locale.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Locale.create(t,n,i)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Locale.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Locale.create(t,n,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),n=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(n).as("days"))}function highOrderDiffs(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const n=dayDiff(e,t);return(n-n%7)/7}],["days",dayDiff]];const i={};const s=e;let a,o;for(const[u,l]of r){if(n.indexOf(u)>=0){a=u;i[u]=l(e,t);o=s.plus(i);if(o>t){i[u]--;e=s.plus(i);if(e>t){o=e;i[u]--;e=s.plus(i)}}else{e=o}}}return[e,i,o,a]}function diff(e,t,n,r){let[i,s,a,o]=highOrderDiffs(e,t,n);const u=t-i;const l=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(l.length===0){if(a<t){a=i.plus({[o]:1})}if(a!==i){s[o]=(s[o]||0)+u/(a-i)}}const c=Duration.fromObject(s,r);if(l.length>0){return Duration.fromMillis(u,r).shiftTo(...l).plus(c)}else{return c}}const Qe="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const Ke=String.fromCharCode(160);const Xe=`[ ${Ke}]`;const et=new RegExp(Xe,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(et,Xe)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(et," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([n])=>e.findIndex((e=>stripInsensitivities(n)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const n=digitRegex(t),r=digitRegex(t,"{2}"),i=digitRegex(t,"{3}"),s=digitRegex(t,"{4}"),a=digitRegex(t,"{6}"),o=digitRegex(t,"{1,2}"),u=digitRegex(t,"{1,3}"),l=digitRegex(t,"{1,6}"),c=digitRegex(t,"{1,9}"),f=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=h=>{if(e.literal){return literal(h)}switch(h.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(l);case"yy":return intUnit(f,untruncateYear);case"yyyy":return intUnit(s);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(a);case"M":return intUnit(o);case"MM":return intUnit(r);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(o);case"LL":return intUnit(r);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(o);case"dd":return intUnit(r);case"o":return intUnit(u);case"ooo":return intUnit(i);case"HH":return intUnit(r);case"H":return intUnit(o);case"hh":return intUnit(r);case"h":return intUnit(o);case"mm":return intUnit(r);case"m":return intUnit(o);case"q":return intUnit(o);case"qq":return intUnit(r);case"s":return intUnit(o);case"ss":return intUnit(r);case"S":return intUnit(u);case"SSS":return intUnit(i);case"u":return simple(c);case"uu":return simple(o);case"uuu":return intUnit(n);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(s);case"kk":return intUnit(f,untruncateYear);case"W":return intUnit(o);case"WW":return intUnit(r);case"E":case"c":return intUnit(n);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(h)}};const h=unitate(e)||{invalidReason:Qe};h.token=e;return h}const tt={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,n){const{type:r,value:i}=e;if(r==="literal"){const e=/^\s+$/.test(i);return{literal:!e,val:e?" ":i}}const s=t[r];let a=r;if(r==="hour"){if(t.hour12!=null){a=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){a="hour12"}else{a="hour24"}}else{a=n.hour12?"hour12":"hour24"}}let o=tt[a];if(typeof o==="object"){o=o[s]}if(o){return{literal:false,val:o}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const i in n){if(hasOwnProperty(n,i)){const s=n[i],a=s.groups?s.groups+1:1;if(!s.literal&&s.token){e[s.token.val[0]]=s.deser(r.slice(t,t+a))}t+=a}}return[r,e]}else{return[r,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let n;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}n=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const r=Object.keys(e).reduce(((t,n)=>{const r=toField(n);if(r){t[r]=e[n]}return t}),{});return[r,t,n]}let nt=null;function getDummyDateTime(){if(!nt){nt=DateTime.fromMillis(1555555555555)}return nt}function maybeExpandMacroToken(e,t){if(e.literal){return e}const n=Formatter.macroTokenToFormatOpts(e.val);const r=formatOptsToTokens(n,t);if(r==null||r.includes(undefined)){return e}return r}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}class TokenParser{constructor(e,t){this.locale=e;this.format=t;this.tokens=expandMacroTokens(Formatter.parseFormat(t),e);this.units=this.tokens.map((t=>unitForToken(t,e)));this.disqualifyingUnit=this.units.find((e=>e.invalidReason));if(!this.disqualifyingUnit){const[e,t]=buildRegex(this.units);this.regex=RegExp(e,"i");this.handlers=t}}explainFromTokens(e){if(!this.isValid){return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}else{const[t,n]=match(e,this.regex,this.handlers),[r,i,s]=n?dateTimeFromMatches(n):[null,null,undefined];if(hasOwnProperty(n,"a")&&hasOwnProperty(n,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:i,specificOffset:s}}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function explainFromTokens(e,t,n){const r=new TokenParser(e,n);return r.explainFromTokens(t)}function parseFromTokens(e,t,n){const{result:r,zone:i,specificOffset:s,invalidReason:a}=explainFromTokens(e,t,n);return[r,i,s,a]}function formatOptsToTokens(e,t){if(!e){return null}const n=Formatter.create(t,e);const r=n.dtFormatter(getDummyDateTime());const i=r.formatToParts();const s=r.resolvedOptions();return i.map((t=>tokenForPart(t,e,s)))}const rt="Invalid DateTime";const it=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function clone(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...n,...t,old:n})}function fixOffset(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i){return[r,t]}r-=(i-t)*60*1e3;const s=n.offset(r);if(i===s){return[r,i]}return[e-Math.min(i,s)*60*1e3,Math.max(i,s)]}function tsToObj(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function objToTS(e,t,n){return fixOffset(objToLocalTS(e),t,n)}function adjustTime(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,s={...e.c,year:r,month:i,day:Math.min(e.c.day,daysInMonth(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},a=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=objToLocalTS(s);let[u,l]=fixOffset(o,n,e.zone);if(a!==0){u+=a;l=e.zone.offset(u)}return{ts:u,o:l}}function parseDataToDateTime(e,t,n,r,i,s){const{setZone:a,zone:o}=n;if(e&&Object.keys(e).length!==0||t){const r=t||o,i=DateTime.fromObject(e,{...n,zone:r,specificOffset:s});return a?i:i.setZone(o)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${i}" can't be parsed as ${r}`))}}function toTechFormat(e,t,n=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:n,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const n=e.c.year>9999||e.c.year<0;let r="";if(n&&e.c.year>=0)r+="+";r+=padStart(e.c.year,n?6:4);if(t){r+="-";r+=padStart(e.c.month);r+="-";r+=padStart(e.c.day)}else{r+=padStart(e.c.month);r+=padStart(e.c.day)}return r}function toISOTime(e,t,n,r,i,s){let a=padStart(e.c.hour);if(t){a+=":";a+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!n){a+=":"}}else{a+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!n){a+=padStart(e.c.second);if(e.c.millisecond!==0||!r){a+=".";a+=padStart(e.c.millisecond,3)}}if(i){if(e.isOffsetFixed&&e.offset===0&&!s){a+="Z"}else if(e.o<0){a+="-";a+=padStart(Math.trunc(-e.o/60));a+=":";a+=padStart(Math.trunc(-e.o%60))}else{a+="+";a+=padStart(Math.trunc(e.o/60));a+=":";a+=padStart(Math.trunc(e.o%60))}}if(s){a+="["+e.zone.ianaName+"]"}return a}const st={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},at={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ot={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const ut=["year","month","day","hour","minute","second","millisecond"],lt=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ct=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function guessOffsetForZone(e){if(!dt[e]){if(ft===undefined){ft=Settings.now()}dt[e]=e.offset(ft)}return dt[e]}function quickDT(e,t){const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}const r=Locale.fromObject(t);let i,s;if(!isUndefined(e.year)){for(const t of ut){if(isUndefined(e[t])){e[t]=st[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const r=guessOffsetForZone(n);[i,s]=objToTS(e,r,n)}else{i=Settings.now()}return new DateTime({ts:i,zone:n,loc:r,o:s})}function diffRelative(e,t,n){const r=isUndefined(n.round)?true:n.round,format=(e,i)=>{e=roundTo(e,r||n.calendary?0:2,true);const s=t.loc.clone(n).relFormatter(n);return s.format(e,i)},differ=r=>{if(n.calendary){if(!t.hasSame(e,r)){return t.startOf(r).diff(e.startOf(r),r).get(r)}else return 0}else{return t.diff(e,r).get(r)}};if(n.unit){return format(differ(n.unit),n.unit)}for(const e of n.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,n.units[n.units.length-1])}function lastOpts(e){let t={},n;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];n=Array.from(e).slice(0,e.length-1)}else{n=Array.from(e)}return[t,n]}let ft;let dt={};class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let r=null,i=null;if(!n){const s=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(s){[r,i]=[e.old.c,e.old.o]}else{const s=isNumber(e.o)&&!e.old?e.o:t.offset(this.ts);r=tsToObj(this.ts,s);n=Number.isNaN(r.year)?new Invalid("invalid input"):null;r=n?null:r;i=n?null:s}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=n;this.weekData=null;this.localWeekData=null;this.c=r;this.o=i;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[n,r,i,s,a,o,u]=t;return quickDT({year:n,month:r,day:i,hour:s,minute:a,second:o,millisecond:u},e)}static utc(){const[e,t]=lastOpts(arguments),[n,r,i,s,a,o,u]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:n,month:r,day:i,hour:s,minute:a,second:o,millisecond:u},e)}static fromJSDate(e,t={}){const n=isDate(e)?e.valueOf():NaN;if(Number.isNaN(n)){return DateTime.invalid("invalid input")}const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}return new DateTime({ts:n,zone:r,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-it||e>it){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}const r=Locale.fromObject(t);const i=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:s,startOfWeek:a}=usesLocalWeekValues(i,r);const o=Settings.now(),u=!isUndefined(t.specificOffset)?t.specificOffset:n.offset(o),l=!isUndefined(i.ordinal),c=!isUndefined(i.year),f=!isUndefined(i.month)||!isUndefined(i.day),d=c||f,h=i.weekYear||i.weekNumber;if((d||l)&&h){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(f&&l){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const m=h||i.weekday&&!d;let p,y,g=tsToObj(o,u);if(m){p=lt;y=at;g=gregorianToWeek(g,s,a)}else if(l){p=ct;y=ot;g=gregorianToOrdinal(g)}else{p=ut;y=st}let v=false;for(const e of p){const t=i[e];if(!isUndefined(t)){v=true}else if(v){i[e]=y[e]}else{i[e]=g[e]}}const w=m?hasInvalidWeekData(i,s,a):l?hasInvalidOrdinalData(i):hasInvalidGregorianData(i),T=w||hasInvalidTimeData(i);if(T){return DateTime.invalid(T)}const D=m?weekToGregorian(i,s,a):l?ordinalToGregorian(i):i,[O,k]=objToTS(D,u,n),S=new DateTime({ts:O,zone:n,o:k,loc:r});if(i.weekday&&d&&e.weekday!==S.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${S.toISO()}`)}if(!S.isValid){return DateTime.invalid(S.invalid)}return S}static fromISO(e,t={}){const[n,r]=parseISODate(e);return parseDataToDateTime(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=parseRFC2822Date(e);return parseDataToDateTime(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=parseHTTPDate(e);return parseDataToDateTime(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:r=null,numberingSystem:i=null}=n,s=Locale.fromOpts({locale:r,numberingSystem:i,defaultToEN:true}),[a,o,u,l]=parseFromTokens(s,e,t);if(l){return DateTime.invalid(l)}else{return parseDataToDateTime(a,o,n,`format ${t}`,e,u)}}static fromString(e,t,n={}){return DateTime.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=parseSQL(e);return parseDataToDateTime(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const n=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(n)}else{return new DateTime({invalid:n})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const n=formatOptsToTokens(e,Locale.fromObject(t));return!n?null:n.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const n=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return n.map((e=>e.val)).join("")}static resetCache(){ft=undefined;dt={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const n=objToLocalTS(this.c);const r=this.zone.offset(n-e);const i=this.zone.offset(n+e);const s=this.zone.offset(n-r*t);const a=this.zone.offset(n-i*t);if(s===a){return[this]}const o=n-s*t;const u=n-a*t;const l=tsToObj(o,s);const c=tsToObj(u,a);if(l.hour===c.hour&&l.minute===c.minute&&l.second===c.second&&l.millisecond===c.millisecond){return[clone(this,{ts:o}),clone(this,{ts:u})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:n=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let r=this.ts;if(t||n){const t=e.offset(this.ts);const n=this.toObject();[r]=objToTS(n,t,e)}return clone(this,{ts:r,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){const r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return clone(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:n,startOfWeek:r}=usesLocalWeekValues(t,this.loc);const i=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),s=!isUndefined(t.ordinal),a=!isUndefined(t.year),o=!isUndefined(t.month)||!isUndefined(t.day),u=a||o,l=t.weekYear||t.weekNumber;if((u||s)&&l){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(o&&s){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let c;if(i){c=weekToGregorian({...gregorianToWeek(this.c,n,r),...t},n,r)}else if(!isUndefined(t.ordinal)){c=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{c={...this.toObject(),...t};if(isUndefined(t.day)){c.day=Math.min(daysInMonth(c.year,c.month),c.day)}}const[f,d]=objToTS(c,this.o,this.zone);return clone(this,{ts:f,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const n={},r=Duration.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(t<e){n.weekNumber=this.weekNumber-1}n.weekday=e}else{n.weekday=1}}if(r==="quarters"){const e=Math.ceil(this.month/3);n.month=(e-1)*3+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):rt}toLocaleString(e=s,t={}){return this.isValid?Formatter.create(this.loc.clone(t),e).formatDateTime(this):rt}toLocaleParts(e={}){return this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=false,suppressMilliseconds:n=false,includeOffset:r=true,extendedZone:i=false}={}){if(!this.isValid){return null}const s=e==="extended";let a=toISODate(this,s);a+="T";a+=toISOTime(this,s,t,n,r,i);return a}toISODate({format:e="extended"}={}){if(!this.isValid){return null}return toISODate(this,e==="extended")}toISOWeekDate(){return toTechFormat(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=false,suppressSeconds:t=false,includeOffset:n=true,includePrefix:r=false,extendedZone:i=false,format:s="extended"}={}){if(!this.isValid){return null}let a=r?"T":"";return a+toISOTime(this,s==="extended",t,e,n,i)}toRFC2822(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",false)}toHTTP(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){if(!this.isValid){return null}return toISODate(this,true)}toSQLTime({includeOffset:e=true,includeZone:t=false,includeOffsetSpace:n=true}={}){let r="HH:mm:ss.SSS";if(t||e){if(n){r+=" "}if(t){r+="z"}else if(e){r+="ZZ"}}return toTechFormat(this,r,true)}toSQL(e={}){if(!this.isValid){return null}return`${this.toSQLDate()} ${this.toSQLTime(e)}`}toString(){return this.isValid?this.toISO():rt}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`}else{return`DateTime { Invalid, reason: ${this.invalidReason} }`}}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};if(e.includeConfig){t.outputCalendar=this.outputCalendar;t.numberingSystem=this.loc.numberingSystem;t.locale=this.loc.locale}return t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid){return Duration.invalid("created by diffing an invalid DateTime")}const r={locale:this.locale,numberingSystem:this.numberingSystem,...n};const i=maybeArray(t).map(Duration.normalizeUnit),s=e.valueOf()>this.valueOf(),a=s?this:e,o=s?e:this,u=diff(a,o,i,r);return s?u.negate():u}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return false;const r=e.valueOf();const i=this.setZone(e.zone,{keepLocalTime:true});return i.startOf(t,n)<=r&&r<=i.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"];let i=e.unit;if(Array.isArray(e.unit)){r=e.unit;i=undefined}return diffRelative(t,this.plus(n),{...e,numeric:"always",units:r,unit:i})}toRelativeCalendar(e={}){if(!this.isValid)return null;return diffRelative(e.base||DateTime.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:true})}static min(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("min requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:i=null}=n,s=Locale.fromOpts({locale:r,numberingSystem:i,defaultToEN:true});return explainFromTokens(s,e,t)}static fromStringExplain(e,t,n={}){return DateTime.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:r=null}=t,i=Locale.fromOpts({locale:n,numberingSystem:r,defaultToEN:true});return new TokenParser(i,e)}static fromFormatParser(e,t,n={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormatParser requires an input string and a format parser")}const{locale:r=null,numberingSystem:i=null}=n,s=Locale.fromOpts({locale:r,numberingSystem:i,defaultToEN:true});if(!s.equals(t.locale)){throw new InvalidArgumentError(`fromFormatParser called with a locale of ${s}, `+`but the format parser was created for ${t.locale}`)}const{result:a,zone:o,specificOffset:u,invalidReason:l}=t.explainFromTokens(e);if(l){return DateTime.invalid(l)}else{return parseDataToDateTime(a,o,n,`format ${t.format}`,e,u)}}static get DATE_SHORT(){return s}static get DATE_MED(){return a}static get DATE_MED_WITH_WEEKDAY(){return o}static get DATE_FULL(){return u}static get DATE_HUGE(){return l}static get TIME_SIMPLE(){return c}static get TIME_WITH_SECONDS(){return f}static get TIME_WITH_SHORT_OFFSET(){return d}static get TIME_WITH_LONG_OFFSET(){return h}static get TIME_24_SIMPLE(){return m}static get TIME_24_WITH_SECONDS(){return p}static get TIME_24_WITH_SHORT_OFFSET(){return y}static get TIME_24_WITH_LONG_OFFSET(){return g}static get DATETIME_SHORT(){return v}static get DATETIME_SHORT_WITH_SECONDS(){return w}static get DATETIME_MED(){return T}static get DATETIME_MED_WITH_SECONDS(){return D}static get DATETIME_MED_WITH_WEEKDAY(){return O}static get DATETIME_FULL(){return k}static get DATETIME_FULL_WITH_SECONDS(){return S}static get DATETIME_HUGE(){return I}static get DATETIME_HUGE_WITH_SECONDS(){return x}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ht="3.5.0";t.DateTime=DateTime;t.Duration=Duration;t.FixedOffsetZone=FixedOffsetZone;t.IANAZone=IANAZone;t.Info=Info;t.Interval=Interval;t.InvalidZone=InvalidZone;t.Settings=Settings;t.SystemZone=SystemZone;t.VERSION=ht;t.Zone=Zone},896:function(e){e.exports=require("fs")}};var t={};function __nccwpck_require__(n){var r=t[n];if(r!==undefined){return r.exports}var i=t[n]={exports:{}};var s=true;try{e[n](i,i.exports,__nccwpck_require__);s=false}finally{if(s)delete t[n]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(912);module.exports=n})();
@@ -1 +1 @@
1
- {"name":"cron-parser","version":"5.3.0","description":"Node.js library for parsing crontab instructions","main":"dist/index.js","types":"dist/types/index.d.ts","type":"commonjs","scripts":{"clean":"rimraf dist","bench":"cross-env node -r ts-node/register benchmarks/index.ts","bench:pattern":"cross-env node -r ts-node/register benchmarks/pattern.ts","bench:clean":"rimraf benchmarks/versions && rimraf benchmarks/results","build":"npm run clean && tsc -p tsconfig.json","prepublishOnly":"npm run build","prepare":"husky && npm run build","precommit":"lint-staged","lint":"eslint .","lint:fix":"eslint --fix .","lint:debug":"cross-env DEBUG=eslint:cli-engine eslint .","format":"prettier --write \"**/*.{ts,js,json,md}\"","format:check":"prettier --check \"**/*.{ts,js,json,md}\"","test:unit":"cross-env TZ=UTC jest","test:coverage":"cross-env TZ=UTC jest --coverage","generate-badges":"jest-coverage-badges","test:types":"npm run build && tsd","test":"cross-env TZ=UTC npm run lint && npm run test:types && npm run test:coverage && npm run generate-badges","docs":"rimraf docs && typedoc --out docs --readme none --name 'CronParser' src"},"files":["dist","LICENSE","README.md"],"dependencies":{"luxon":"^3.6.1"},"devDependencies":{"@tsd/typescript":"^5.8.2","@types/jest":"^29.5.14","@types/luxon":"^3.6.2","@types/node":"^22.14.0","@typescript-eslint/eslint-plugin":"^8.29.0","@typescript-eslint/parser":"^8.29.0","chalk":"^5.4.1","cli-table3":"^0.6.5","cross-env":"^7.0.3","eslint":"^9.23.0","eslint-config-prettier":"^10.1.1","eslint-plugin-prettier":"^5.2.6","husky":"^9.1.7","jest":"^29.7.0","jest-coverage-badges":"^1.0.0","lint-staged":"^15.5.0","prettier":"^3.5.3","rimraf":"^6.0.1","sinon":"^20.0.0","ts-jest":"^29.3.1","ts-node":"^10.9.2","tsd":"^0.31.2","typedoc":"^0.28.1","typescript":"^5.8.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,js,json}":["prettier --write"]},"engines":{"node":">=18"},"browser":{"fs":false,"fs/promises":false},"tsd":{"directory":"tests"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>","Michael Hobbs <michael.lee.hobbs@gmail.com>"],"license":"MIT","_lastModified":"2025-07-17T07:52:37.042Z"}
1
+ {"name":"cron-parser","version":"4.9.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"types/index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^3.2.1"},"devDependencies":{"eslint":"^8.27.0","sinon":"^15.0.1","tap":"^16.3.3","tsd":"^0.26.0"},"engines":{"node":">=12.0.0"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"files":["lib","types","LICENSE","README.md"],"_lastModified":"2025-07-17T11:01:11.929Z"}
@@ -0,0 +1,131 @@
1
+ export type DateType = Date | number | string
2
+
3
+ export interface CronDate {
4
+ addYear(): void
5
+
6
+ addMonth(): void
7
+
8
+ addDay(): void
9
+
10
+ addHour(): void
11
+
12
+ addMinute(): void
13
+
14
+ addSecond(): void
15
+
16
+ subtractYear(): void
17
+
18
+ subtractMonth(): void
19
+
20
+ subtractDay(): void
21
+
22
+ subtractHour(): void
23
+
24
+ subtractMinute(): void
25
+
26
+ subtractSecond(): void
27
+
28
+ getDate(): number
29
+
30
+ getFullYear(): number
31
+
32
+ getDay(): number
33
+
34
+ getMonth(): number
35
+
36
+ getHours(): number
37
+
38
+ getMinutes(): number
39
+
40
+ getSeconds(): number
41
+
42
+ getMilliseconds(): number
43
+
44
+ getTime(): number
45
+
46
+ getUTCDate(): number
47
+
48
+ getUTCFullYear(): number
49
+
50
+ getUTCDay(): number
51
+
52
+ getUTCMonth(): number
53
+
54
+ getUTCHours(): number
55
+
56
+ getUTCMinutes(): number
57
+
58
+ getUTCSeconds(): number
59
+
60
+ toISOString(): string
61
+
62
+ toJSON(): string
63
+
64
+ setDate(d: number): void
65
+
66
+ setFullYear(y: number): void
67
+
68
+ setDay(d: number): void
69
+
70
+ setMonth(m: number): void
71
+
72
+ setHours(h: number): void
73
+
74
+ setMinutes(m: number): void
75
+
76
+ setSeconds(s: number): void
77
+
78
+ setMilliseconds(s: number): void
79
+
80
+ getTime(): number
81
+
82
+ toString(): string
83
+
84
+ toDate(): Date
85
+
86
+ isLastDayOfMonth(): boolean
87
+ }
88
+
89
+ export interface ParserOptions<IsIterable extends boolean = false> {
90
+ currentDate?: DateType
91
+ startDate?: DateType
92
+ endDate?: DateType
93
+ utc?: boolean
94
+ tz?: string
95
+ nthDayOfWeek?: number
96
+ iterator?: IsIterable
97
+ }
98
+
99
+ type IteratorResultOrCronDate<IsIterable extends boolean> = IsIterable extends true
100
+ ? IteratorResult<CronDate, CronDate>
101
+ : CronDate;
102
+
103
+ export interface ICronExpression<CronFields, IsIterable extends boolean> {
104
+ readonly fields: CronFields;
105
+
106
+ /** Find next suitable date */
107
+ next(): IteratorResultOrCronDate<IsIterable>
108
+
109
+ /** Find previous suitable date */
110
+ prev(): IteratorResultOrCronDate<IsIterable>
111
+
112
+ /** Check if next suitable date exists */
113
+ hasNext(): boolean
114
+
115
+ /** Check if previous suitable date exists */
116
+ hasPrev(): boolean
117
+
118
+ /** Iterate over expression iterator */
119
+ iterate(steps: number, callback?: (item: IteratorResultOrCronDate<IsIterable>, i: number) => void): IteratorResultOrCronDate<IsIterable>[]
120
+
121
+ /** Reset expression iterator state */
122
+ reset(resetDate?: string | number | Date): void
123
+
124
+ stringify(includeSeconds?: boolean): string
125
+ }
126
+
127
+ export interface IStringResult<CronFields> {
128
+ variables: Record<string, string>,
129
+ expressions: ICronExpression<CronFields, false>[],
130
+ errors: Record<string, any>,
131
+ }
@@ -0,0 +1,45 @@
1
+ import {
2
+ CronDate,
3
+ DateType,
4
+ ICronExpression,
5
+ IStringResult,
6
+ ParserOptions,
7
+ } from './common';
8
+
9
+ type BuildRangeTuple<Current extends [...number[]], Count extends number> =
10
+ Current["length"] extends Count
11
+ ? Current
12
+ : BuildRangeTuple<[number, ...Current], Count>
13
+ type RangeTuple<Count extends number> = BuildRangeTuple<[], Count>
14
+ type BuildRange<Current extends number, End extends number, Accu extends [...number[]]> =
15
+ Accu["length"] extends End
16
+ ? Current
17
+ : BuildRange<Current | Accu["length"], End, [number, ...Accu]>
18
+ type Range<StartInclusive extends number, EndExclusive extends number> = BuildRange<StartInclusive, EndExclusive, RangeTuple<StartInclusive>>
19
+
20
+ export type SixtyRange = Range<0, 30> | Range<30, 60>; // Typescript restriction on recursion depth
21
+ export type HourRange = Range<0, 24>;
22
+ export type DayOfTheMonthRange = Range<1, 32> | 'L';
23
+ export type MonthRange = Range<1, 13>;
24
+ export type DayOfTheWeekRange = Range<0, 8>;
25
+
26
+ export type CronFields = {
27
+ readonly second: readonly SixtyRange[];
28
+ readonly minute: readonly SixtyRange[];
29
+ readonly hour: readonly HourRange[];
30
+ readonly dayOfMonth: readonly DayOfTheMonthRange[];
31
+ readonly month: readonly MonthRange[];
32
+ readonly dayOfWeek: readonly DayOfTheWeekRange[];
33
+ }
34
+
35
+ export {ParserOptions, CronDate, DateType}
36
+ export type CronExpression<IsIterable extends boolean = false> = ICronExpression<CronFields, IsIterable>
37
+ export type StringResult = IStringResult<CronFields>
38
+
39
+ export function parseExpression<IsIterable extends boolean = false>(expression: string, options?: ParserOptions<IsIterable>): CronExpression<IsIterable>;
40
+
41
+ export function fieldsToExpression<IsIterable extends boolean = false>(fields: CronFields, options?: ParserOptions<IsIterable>): CronExpression<IsIterable>;
42
+
43
+ export function parseFile(filePath: string, callback: (err: any, data: StringResult) => any): void;
44
+
45
+ export function parseString(data: string): StringResult;
@@ -0,0 +1,28 @@
1
+ import {
2
+ CronDate,
3
+ DateType,
4
+ ICronExpression,
5
+ IStringResult,
6
+ ParserOptions,
7
+ } from '../common';
8
+
9
+ export type CronFields = {
10
+ readonly second: readonly number[];
11
+ readonly minute: readonly number[];
12
+ readonly hour: readonly number[];
13
+ readonly dayOfMonth: readonly (number | 'L')[];
14
+ readonly month: readonly number[];
15
+ readonly dayOfWeek: readonly number[];
16
+ }
17
+
18
+ export {ParserOptions, CronDate, DateType}
19
+ export type CronExpression<IsIterable extends boolean = false> = ICronExpression<CronFields, IsIterable>
20
+ export type StringResult = IStringResult<CronFields>
21
+
22
+ export function parseExpression<IsIterable extends boolean = false>(expression: string, options?: ParserOptions<IsIterable>): CronExpression<IsIterable>;
23
+
24
+ export function fieldsToExpression<IsIterable extends boolean = false>(fields: CronFields, options?: ParserOptions<IsIterable>): CronExpression<IsIterable>;
25
+
26
+ export function parseFile(filePath: string, callback: (err: any, data: StringResult) => any): void;
27
+
28
+ export function parseString(data: string): StringResult;
@@ -7,7 +7,7 @@ export declare class StaticScheduleTrigger {
7
7
  private timers;
8
8
  load(): Promise<void>;
9
9
  inspect(cronJobs: CronJobModel[]): void;
10
- getNextTime(cronJob: CronJobModel, currentDate: Date, nextSecond?: boolean): any;
10
+ getNextTime(cronJob: CronJobModel, currentDate: Date, nextSecond?: boolean): number;
11
11
  schedule(cronJob: CronJobModel, nextTime: number, toggle?: boolean): void;
12
12
  trigger(cronJobId: number, time: number): Promise<void>;
13
13
  on(cronJob: CronJobModel): void;