cronstrue 3.25.0 → 3.27.0

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 (126) hide show
  1. package/dist/cronstrue-i18n.js +148 -4
  2. package/dist/cronstrue-i18n.min.js +1 -1
  3. package/dist/cronstrue.js +28 -4
  4. package/dist/cronstrue.min.js +1 -1
  5. package/dist/expressionDescriptor.d.ts +8 -1
  6. package/dist/i18n/locales/af.d.ts +1 -0
  7. package/dist/i18n/locales/ar.d.ts +1 -0
  8. package/dist/i18n/locales/be.d.ts +1 -0
  9. package/dist/i18n/locales/bg.d.ts +1 -0
  10. package/dist/i18n/locales/ca.d.ts +1 -0
  11. package/dist/i18n/locales/cs.d.ts +1 -0
  12. package/dist/i18n/locales/da.d.ts +1 -0
  13. package/dist/i18n/locales/de.d.ts +1 -0
  14. package/dist/i18n/locales/es.d.ts +1 -0
  15. package/dist/i18n/locales/fa.d.ts +1 -0
  16. package/dist/i18n/locales/fi.d.ts +1 -0
  17. package/dist/i18n/locales/fr.d.ts +1 -0
  18. package/dist/i18n/locales/he.d.ts +1 -0
  19. package/dist/i18n/locales/hr.d.ts +1 -0
  20. package/dist/i18n/locales/hu.d.ts +1 -0
  21. package/dist/i18n/locales/id.d.ts +1 -0
  22. package/dist/i18n/locales/it.d.ts +1 -0
  23. package/dist/i18n/locales/ja.d.ts +1 -0
  24. package/dist/i18n/locales/ko.d.ts +1 -0
  25. package/dist/i18n/locales/my.d.ts +1 -0
  26. package/dist/i18n/locales/nb.d.ts +1 -0
  27. package/dist/i18n/locales/nl.d.ts +1 -0
  28. package/dist/i18n/locales/nn.d.ts +1 -0
  29. package/dist/i18n/locales/pl.d.ts +1 -0
  30. package/dist/i18n/locales/pt_BR.d.ts +1 -0
  31. package/dist/i18n/locales/pt_PT.d.ts +1 -0
  32. package/dist/i18n/locales/ro.d.ts +1 -0
  33. package/dist/i18n/locales/ru.d.ts +1 -0
  34. package/dist/i18n/locales/sk.d.ts +1 -0
  35. package/dist/i18n/locales/sl.d.ts +1 -0
  36. package/dist/i18n/locales/sr.d.ts +1 -0
  37. package/dist/i18n/locales/sv.d.ts +1 -0
  38. package/dist/i18n/locales/sw.d.ts +1 -0
  39. package/dist/i18n/locales/tg.d.ts +1 -0
  40. package/dist/i18n/locales/th.d.ts +1 -0
  41. package/dist/i18n/locales/tr.d.ts +1 -0
  42. package/dist/i18n/locales/uk.d.ts +1 -0
  43. package/dist/i18n/locales/vi.d.ts +1 -0
  44. package/dist/i18n/locales/zh_CN.d.ts +1 -0
  45. package/dist/i18n/locales/zh_TW.d.ts +1 -0
  46. package/locales/af.js +3 -0
  47. package/locales/af.min.js +1 -1
  48. package/locales/ar.js +3 -0
  49. package/locales/ar.min.js +1 -1
  50. package/locales/be.js +3 -0
  51. package/locales/be.min.js +1 -1
  52. package/locales/bg.js +3 -0
  53. package/locales/bg.min.js +1 -1
  54. package/locales/ca.js +3 -0
  55. package/locales/ca.min.js +1 -1
  56. package/locales/cs.js +3 -0
  57. package/locales/cs.min.js +1 -1
  58. package/locales/da.js +3 -0
  59. package/locales/da.min.js +1 -1
  60. package/locales/de.js +3 -0
  61. package/locales/de.min.js +1 -1
  62. package/locales/es.js +3 -0
  63. package/locales/es.min.js +1 -1
  64. package/locales/fa.js +3 -0
  65. package/locales/fa.min.js +1 -1
  66. package/locales/fi.js +3 -0
  67. package/locales/fi.min.js +1 -1
  68. package/locales/fr.js +3 -0
  69. package/locales/fr.min.js +1 -1
  70. package/locales/he.js +3 -0
  71. package/locales/he.min.js +1 -1
  72. package/locales/hr.js +3 -0
  73. package/locales/hr.min.js +1 -1
  74. package/locales/hu.js +3 -0
  75. package/locales/hu.min.js +1 -1
  76. package/locales/id.js +3 -0
  77. package/locales/id.min.js +1 -1
  78. package/locales/it.js +3 -0
  79. package/locales/it.min.js +1 -1
  80. package/locales/ja.js +3 -0
  81. package/locales/ja.min.js +1 -1
  82. package/locales/ko.js +3 -0
  83. package/locales/ko.min.js +1 -1
  84. package/locales/my.js +3 -0
  85. package/locales/my.min.js +1 -1
  86. package/locales/nb.js +3 -0
  87. package/locales/nb.min.js +1 -1
  88. package/locales/nl.js +3 -0
  89. package/locales/nl.min.js +1 -1
  90. package/locales/nn.js +3 -0
  91. package/locales/nn.min.js +1 -1
  92. package/locales/pl.js +3 -0
  93. package/locales/pl.min.js +1 -1
  94. package/locales/pt_BR.js +3 -0
  95. package/locales/pt_BR.min.js +1 -1
  96. package/locales/pt_PT.js +3 -0
  97. package/locales/pt_PT.min.js +1 -1
  98. package/locales/ro.js +3 -0
  99. package/locales/ro.min.js +1 -1
  100. package/locales/ru.js +3 -0
  101. package/locales/ru.min.js +1 -1
  102. package/locales/sk.js +3 -0
  103. package/locales/sk.min.js +1 -1
  104. package/locales/sl.js +3 -0
  105. package/locales/sl.min.js +1 -1
  106. package/locales/sr.js +3 -0
  107. package/locales/sr.min.js +1 -1
  108. package/locales/sv.js +3 -0
  109. package/locales/sv.min.js +1 -1
  110. package/locales/sw.js +3 -0
  111. package/locales/sw.min.js +1 -1
  112. package/locales/tg.js +3 -0
  113. package/locales/tg.min.js +1 -1
  114. package/locales/th.js +3 -0
  115. package/locales/th.min.js +1 -1
  116. package/locales/tr.js +3 -0
  117. package/locales/tr.min.js +1 -1
  118. package/locales/uk.js +3 -0
  119. package/locales/uk.min.js +1 -1
  120. package/locales/vi.js +3 -0
  121. package/locales/vi.min.js +1 -1
  122. package/locales/zh_CN.js +3 -0
  123. package/locales/zh_CN.min.js +1 -1
  124. package/locales/zh_TW.js +3 -0
  125. package/locales/zh_TW.min.js +1 -1
  126. package/package.json +2 -2
package/dist/cronstrue.js CHANGED
@@ -409,7 +409,7 @@ var ExpressionDescriptor = (function () {
409
409
  : parseInt(s) < 20
410
410
  ? _this.i18n.atX0SecondsPastTheMinute(s)
411
411
  : _this.i18n.atX0SecondsPastTheMinuteGt20() || _this.i18n.atX0SecondsPastTheMinute(s);
412
- });
412
+ }, { min: 0, max: 59 });
413
413
  return description;
414
414
  };
415
415
  ExpressionDescriptor.prototype.getMinutesDescription = function () {
@@ -436,7 +436,7 @@ var ExpressionDescriptor = (function () {
436
436
  catch (e) {
437
437
  return _this.i18n.atX0MinutesPastTheHour(s);
438
438
  }
439
- });
439
+ }, { min: 0, max: 59 });
440
440
  return description;
441
441
  };
442
442
  ExpressionDescriptor.prototype.getHoursDescription = function () {
@@ -466,7 +466,7 @@ var ExpressionDescriptor = (function () {
466
466
  return _this.i18n.betweenX0AndX1();
467
467
  }, function (s) {
468
468
  return _this.i18n.atX0();
469
- });
469
+ }, { min: 0, max: 23 });
470
470
  return description;
471
471
  };
472
472
  ExpressionDescriptor.prototype.getDayOfWeekDescription = function () {
@@ -637,7 +637,7 @@ var ExpressionDescriptor = (function () {
637
637
  });
638
638
  return description;
639
639
  };
640
- ExpressionDescriptor.prototype.getSegmentDescription = function (expression, allDescription, getSingleItemDescription, getIncrementDescriptionFormat, getRangeDescriptionFormat, getDescriptionFormat) {
640
+ ExpressionDescriptor.prototype.getSegmentDescription = function (expression, allDescription, getSingleItemDescription, getIncrementDescriptionFormat, getRangeDescriptionFormat, getDescriptionFormat, range) {
641
641
  var description = null;
642
642
  var doesExpressionContainIncrement = expression.indexOf("/") > -1;
643
643
  var doesExpressionContainRange = expression.indexOf("-") > -1;
@@ -706,12 +706,36 @@ var ExpressionDescriptor = (function () {
706
706
  rangeItemDescription = rangeItemDescription.replace(", ", "");
707
707
  description += stringUtilities_1.StringUtilities.format(this.i18n.commaStartingX0(), rangeItemDescription);
708
708
  }
709
+ description += this.getWrappingIncrementDescription(expression, range, allDescription, getSingleItemDescription, getIncrementDescriptionFormat, getRangeDescriptionFormat, getDescriptionFormat);
709
710
  }
710
711
  else if (doesExpressionContainRange) {
711
712
  description = this.generateRangeSegmentDescription(expression, getRangeDescriptionFormat, getSingleItemDescription);
712
713
  }
713
714
  return description;
714
715
  };
716
+ ExpressionDescriptor.prototype.getWrappingIncrementDescription = function (expression, range, allDescription, getSingleItemDescription, getIncrementDescriptionFormat, getRangeDescriptionFormat, getDescriptionFormat) {
717
+ if (!this.options.verbose || !range) {
718
+ return "";
719
+ }
720
+ var _a = expression.split("/"), start = _a[0], stepValue = _a[1];
721
+ var step = parseInt(stepValue);
722
+ var length = range.max - range.min + 1;
723
+ var coversWholeField = start === "*";
724
+ var isUsableStep = Number.isInteger(step) && step > 1;
725
+ var dividesEvenly = isUsableStep && length % step === 0;
726
+ if (!coversWholeField || !isUsableStep || dividesEvenly) {
727
+ return "";
728
+ }
729
+ var values = [];
730
+ for (var value = range.min; value <= range.max; value += step) {
731
+ values.push(value);
732
+ }
733
+ if (values.length < 2) {
734
+ return "";
735
+ }
736
+ var valuesDescription = this.getSegmentDescription(values.join(","), allDescription, getSingleItemDescription, getIncrementDescriptionFormat, getRangeDescriptionFormat, getDescriptionFormat);
737
+ return valuesDescription ? ", ".concat(valuesDescription) : "";
738
+ };
715
739
  ExpressionDescriptor.prototype.generateRangeSegmentDescription = function (rangeExpression, getRangeDescriptionFormat, getSingleItemDescription) {
716
740
  var description = "";
717
741
  var rangeSegments = rangeExpression.split("-");
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("cronstrue",[],e):"object"==typeof exports?exports.cronstrue=e():t.cronstrue=e()}(globalThis,(()=>(()=>{"use strict";var t={6949(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CronParser=void 0;var r=n(9515),o=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=n}return t.prototype.parse=function(){var t,e,n=null!==(t=this.expression)&&void 0!==t?t:"";if("@reboot"===n)return e=["@reboot","","","","","",""];if(n.startsWith("@")){var r=this.parseSpecial(this.expression);e=this.extractParts(r)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},t.prototype.parseSpecial=function(t){var e={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"}[t];if(!e)throw new Error("Unknown special expression.");return e},t.prototype.extractParts=function(t){if(!this.expression)throw new Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),n=0;n<e.length;n++)if(e[n].includes(",")){var r=e[n].split(",").map((function(t){return t.trim()})).filter((function(t){return""!==t})).map((function(t){return isNaN(Number(t))?t:Number(t)})).filter((function(t){return null!==t&&""!==t}));0===r.length&&r.push("*"),r.sort((function(t,e){return null!==t&&null!==e?t-e:0})),e[n]=r.map((function(t){return null!==t?t.toString():""})).join(",")}if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(1==e.length?"":"s",". At least 5 parts are required."));if(5==e.length)e.unshift(""),e.push("");else if(6==e.length){/\d{4}$/.test(e[5])||"?"==e[4]||"?"==e[2]?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},t.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),0==t[0].indexOf("0/")&&(t[0]=t[0].replace("0/","*/")),0==t[1].indexOf("0/")&&(t[1]=t[1].replace("0/","*/")),0==t[2].indexOf("0/")&&(t[2]=t[2].replace("0/","*/")),0==t[3].indexOf("1/")&&(t[3]=t[3].replace("1/","*/")),0==t[4].indexOf("1/")&&(t[4]=t[4].replace("1/","*/")),0==t[6].indexOf("1/")&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),t.replace(n,r)})),"L"==t[5]&&(t[5]="6"),"?"==t[3]&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)t[5]=t[5].replace(new RegExp(r,"gi"),n[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),t.replace(n,r)}));var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var i in o)t[4]=t[4].replace(new RegExp(i,"gi"),o[i].toString());"0"==t[0]&&(t[0]=""),/\*|\-|\,|\//.test(t[2])||!/\*|\//.test(t[1])&&!/\*|\//.test(t[0])||(t[2]+="-".concat(t[2]));for(var a=0;a<t.length;a++)if(-1!=t[a].indexOf(",")&&(t[a]=t[a].split(",").filter((function(t){return""!==t})).join(",")||"*"),"*/1"==t[a]&&(t[a]="*"),t[a].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[a])){var s=null;switch(a){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null}if(null!==s){var u=t[a].split("/");t[a]="".concat(u[0],"-").concat(s,"/").concat(u[1])}}},t.prototype.validate=function(t){var e="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(t[0],e),this.validateOnlyExpectedCharactersFound(t[1],e),this.validateOnlyExpectedCharactersFound(t[2],e),this.validateOnlyExpectedCharactersFound(t[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(t[4],e),this.validateOnlyExpectedCharactersFound(t[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(t[6],e),this.validateAnyRanges(t)},t.prototype.validateAnyRanges=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},t.prototype.validateOnlyExpectedCharactersFound=function(t,e){var n=t.match(new RegExp("[^".concat(e,"]+"),"gi"));if(n&&n.length)throw new Error("Expression contains invalid values: '".concat(n.toString(),"'"))},t}();e.CronParser=o},8333(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressionDescriptor=void 0;var r=n(1823),o=n(6949),i=function(){function t(e,n){if(this.expression=e,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,n){var r=void 0===n?{}:n,o=r.throwExceptionOnParseError,i=void 0===o||o,a=r.verbose,s=void 0!==a&&a,u=r.dayOfWeekStartIndexZero,c=void 0===u||u,p=r.monthStartIndexZero,h=void 0!==p&&p,f=r.use24HourTimeFormat,l=r.trimHoursLeadingZero,d=void 0!==l&&l,y=r.locale,m=void 0===y?null:y,g=r.logicalAndDayFields,v={throwExceptionOnParseError:i,verbose:s,dayOfWeekStartIndexZero:c,monthStartIndexZero:h,use24HourTimeFormat:f,trimHoursLeadingZero:d,locale:m,logicalAndDayFields:void 0!==g&&g};return v.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported."),new t(e,v).getFullDescription()},t.initialize=function(e,n){void 0===n&&(n="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=n,e.load(t.locales)},t.prototype.getFullDescription=function(){var t,e,n="";try{var r=new o.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=r.parse(),"@reboot"===this.expressionParts[0])return(null===(e=(t=this.i18n).atReboot)||void 0===e?void 0:e.call(t))||"Run once, at startup";var i=this.getTimeOfDayDescription(),a=this.getDayOfMonthDescription(),s=this.getMonthDescription();n+=i+a+this.getDayOfWeekDescription()+s+this.getYearDescription(),n=(n=this.transformVerbosity(n,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+n.substr(1)}catch(t){if(this.options.throwExceptionOnParseError)throw"".concat(t);n=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return n},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],n=this.expressionParts[1],o=this.expressionParts[2],i="";if(r.StringUtilities.containsAny(n,t.specialCharacters)||r.StringUtilities.containsAny(o,t.specialCharacters)||r.StringUtilities.containsAny(e,t.specialCharacters))if(e||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||r.StringUtilities.containsAny(o,t.specialCharacters))if(!e&&o.indexOf(",")>-1&&-1==o.indexOf("-")&&-1==o.indexOf("/")&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var a=o.split(",");i+=this.i18n.at();for(var s=0;s<a.length;s++)i&&(i+=" "),i+=this.formatTime(a[s],n,""),s<a.length-2&&(i+=","),s==a.length-2&&(i+=this.i18n.spaceAnd())}else{var u=this.getSecondsDescription(),c=this.getMinutesDescription(),p=this.getHoursDescription();if((i+=u)&&c&&(i+=", "),i+=c,c===p)return i;i&&p&&(i+=", "),i+=p}else{var h=n.split("-");i+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(o,h[0],""),this.formatTime(o,h[1],""))}else i+=this.i18n.atSpace()+this.formatTime(o,n,e);return i},t.prototype.getSecondsDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Seconds(e),e)}),(function(e){return t.i18n.secondsX0ThroughX1PastTheMinute()}),(function(e){return"0"==e?"":parseInt(e)<20?t.i18n.atX0SecondsPastTheMinute(e):t.i18n.atX0SecondsPastTheMinuteGt20()||t.i18n.atX0SecondsPastTheMinute(e)}))},t.prototype.getMinutesDescription=function(){var t=this,e=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Minutes(e),e)}),(function(e){return t.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){var o,i;try{return"0"==r&&-1==n.indexOf("/")&&""==e?t.i18n.everyHour():"0"==r?(null===(i=(o=t.i18n).onTheHour)||void 0===i?void 0:i.call(o))||t.i18n.atX0MinutesPastTheHour(r):parseInt(r)<20?t.i18n.atX0MinutesPastTheHour(r):t.i18n.atX0MinutesPastTheHourGt20()||t.i18n.atX0MinutesPastTheHour(r)}catch(e){return t.i18n.atX0MinutesPastTheHour(r)}}))},t.prototype.getHoursDescription=function(){var t=this,e=this.expressionParts[2],n=0,o=[];e.split("/")[0].split(",").forEach((function(t){var e=t.split("-");2===e.length&&o.push({value:e[1],index:n+1}),n+=e.length}));var i=0;return this.getSegmentDescription(e,this.i18n.everyHour(),(function(e){var n=o.find((function(t){return t.value===e&&t.index===i}))&&"0"!==t.expressionParts[1];return i++,n?t.formatTime(e,"59",""):t.formatTime(e,"0","")}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Hours(e),e)}),(function(e){return t.i18n.betweenX0AndX1()}),(function(e){return t.i18n.atX0()}))},t.prototype.getDayOfWeekDescription=function(){var t=this,e=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(n,r){var o=n;n.indexOf("#")>-1?o=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(o=o.replace("L",""));var i=parseInt(o),a=t.i18n.daysOfTheWeekInCase?t.i18n.daysOfTheWeekInCase(r)[i]:e[i];if(n.indexOf("#")>-1){var s=null,u=n.substring(n.indexOf("#")+1),c=n.substring(0,n.indexOf("#"));switch(u){case"1":s=t.i18n.first(c);break;case"2":s=t.i18n.second(c);break;case"3":s=t.i18n.third(c);break;case"4":s=t.i18n.fourth(c);break;case"5":s=t.i18n.fifth(c)}a=s+" "+a}return a}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0DaysOfTheWeek(e),e)}),(function(e){var n=e.substring(0,e.indexOf("-"));return"*"!=t.expressionParts[3]?t.i18n.commaAndX0ThroughX1(n):t.i18n.commaX0ThroughX1(n)}),(function(e){var n=null;if(e.indexOf("#")>-1){var r=e.substring(e.indexOf("#")+1),o=e.substring(0,e.indexOf("#"));n=t.i18n.commaOnThe(r,o).trim()+t.i18n.spaceX0OfTheMonth()}else if(e.indexOf("L")>-1)n=t.i18n.commaOnTheLastX0OfTheMonth(e.replace("L",""));else{n="*"!=t.expressionParts[3]?t.options.logicalAndDayFields?t.i18n.commaOnlyOnX0(e):t.i18n.commaAndOnX0():t.i18n.commaOnlyOnX0(e)}return n}))},t.prototype.getMonthDescription=function(){var t=this,e=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",(function(n,r){return r&&t.i18n.monthsOfTheYearInCase?t.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:e[parseInt(n)-1]}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0Months(e),e)}),(function(e){return t.i18n.commaMonthX0ThroughMonthX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInMonthX0?t.i18n.commaOnlyInMonthX0():t.i18n.commaOnlyInX0()}))},t.prototype.getDayOfMonthDescription=function(){var t=this,e=null,n=this.expressionParts[3];switch(n){case"L":e=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":e=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var i=parseInt(o[0].replace("W","")),a=1==i?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),i.toString());e=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),a);break}var s=n.match(/L-(\d{1,2})/);if(s){var u=s[1];e=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(u),u);break}if("*"==n&&"*"!=this.expressionParts[5])return"";e=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(e){return"L"==e?t.i18n.lastDay():t.i18n.dayX0?r.StringUtilities.format(t.i18n.dayX0(),e):e}),(function(e){return"1"==e?t.i18n.commaEveryDay():t.i18n.commaEveryX0Days(e)}),(function(e){return t.i18n.commaBetweenDayX0AndX1OfTheMonth(e)}),(function(e){return t.i18n.commaOnDayX0OfTheMonth(e)}))}return e},t.prototype.getYearDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[6],"",(function(t){return/^\d+$/.test(t)?new Date(parseInt(t),1).getFullYear().toString():t}),(function(e){return r.StringUtilities.format(t.i18n.commaEveryX0Years(e),e)}),(function(e){return t.i18n.commaYearX0ThroughYearX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInYearX0?t.i18n.commaOnlyInYearX0():t.i18n.commaOnlyInX0()}))},t.prototype.getSegmentDescription=function(t,e,n,o,i,a){var s=null,u=t.indexOf("/")>-1,c=t.indexOf("-")>-1,p=t.indexOf(",")>-1;if(t)if("*"===t)s=e;else if(u||c||p)if(p){for(var h=t.split(","),f="",l=this.i18n.spaceAnd(),d=0;d<h.length;d++)if(d>0&&h.length>2&&(f+=",",d<h.length-1&&(f+=" ")),d>0&&h.length>1&&(d==h.length-1||2==h.length)&&(f+=","==l&&h.length>2?" ":"".concat(l," ")),h[d].indexOf("/")>-1||h[d].indexOf("-")>-1){var y=h[d].indexOf("-")>-1&&-1==h[d].indexOf("/"),m=this.getSegmentDescription(h[d],e,n,o,y?this.i18n.commaX0ThroughX1:i,a);y&&(m=m.replace(", ","")),f+=m}else if(u){var g=this.getSegmentDescription(h[d],e,n,o,i,a);g&&g.startsWith(", ")&&(g=g.substring(2)),f+=g}else f+=n(h[d]);s=u?f:r.StringUtilities.format(a(t),f)}else if(u){h=t.split("/");if(s=r.StringUtilities.format(o(h[1]),h[1]),h[0].indexOf("-")>-1){var v=this.generateRangeSegmentDescription(h[0],i,n);0!=v.indexOf(", ")&&(s+=", "),s+=v}else if(-1==h[0].indexOf("*")){var O=r.StringUtilities.format(a(h[0]),n(h[0]));O=O.replace(", ",""),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),O)}}else c&&(s=this.generateRangeSegmentDescription(t,i,n));else s=r.StringUtilities.format(a(t),n(t));else s="";return s},t.prototype.generateRangeSegmentDescription=function(t,e,n){var o="",i=t.split("-"),a=n(i[0],1),s=n(i[1],2),u=e(t);return o+=r.StringUtilities.format(u,a,s)},t.prototype.formatTime=function(t,e,n){var r=parseInt(t)+0,o=parseInt(e)+0;o>=60?(o-=60,r+=1):o<0&&(o+=60,r-=1),r>=24?r-=24:r<0&&(r=24+r);var i="",a=!1;this.options.use24HourTimeFormat||(i=(a=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(r)," "):" ".concat(this.getPeriod(r)),r>12&&(r-=12),0===r&&(r=12));var s="";n&&(s=":".concat(("00"+n).substring(n.length)));var u=r.toString(),c=("00"+u).substring(u.length),p=o.toString(),h=("00"+p).substring(p.length),f=this.options.trimHoursLeadingZero?u:c;return"".concat(a?i:"").concat(f,":").concat(h).concat(s).concat(a?"":i)},t.prototype.transformVerbosity=function(t,e){if(!e&&(t=(t=(t=(t=t.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(new RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var n=0,r=Object.entries(this.i18n.conciseVerbosityReplacements());n<r.length;n++){var o=r[n],i=o[0],a=o[1];t=t.replace(new RegExp(i,"g"),a)}return t},t.prototype.getPeriod=function(t){return t>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();e.ExpressionDescriptor=i},3747(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.enLocaleLoader=void 0;var r=n(9486),o=function(){function t(){}return t.prototype.load=function(t){t.en=new r.en},t}();e.enLocaleLoader=o},9486(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.en=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},t.prototype.everyMinute=function(){return"every minute"},t.prototype.everyHour=function(){return"every hour"},t.prototype.atSpace=function(){return"At "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},t.prototype.at=function(){return"At"},t.prototype.spaceAnd=function(){return" and"},t.prototype.everySecond=function(){return"every second"},t.prototype.everyX0Seconds=function(){return"every %s seconds"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},t.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},t.prototype.everyX0Minutes=function(){return"every %s minutes"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},t.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},t.prototype.everyX0Hours=function(){return"every %s hours"},t.prototype.betweenX0AndX1=function(){return"between %s and %s"},t.prototype.atX0=function(){return"at %s"},t.prototype.commaEveryDay=function(){return", every day"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},t.prototype.commaX0ThroughX1=function(){return", %s through %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},t.prototype.first=function(){return"first"},t.prototype.second=function(){return"second"},t.prototype.third=function(){return"third"},t.prototype.fourth=function(){return"fourth"},t.prototype.fifth=function(){return"fifth"},t.prototype.commaOnThe=function(){return", on the "},t.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},t.prototype.lastDay=function(){return"the last day"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},t.prototype.commaOnlyOnX0=function(){return", only on %s"},t.prototype.commaAndOnX0=function(){return", and on %s"},t.prototype.commaEveryX0Months=function(){return", every %s months"},t.prototype.commaOnlyInX0=function(){return", only in %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},t.prototype.firstWeekday=function(){return"first weekday"},t.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},t.prototype.commaEveryX0Days=function(){return", every %s days in a month"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},t.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},t.prototype.commaEveryHour=function(){return", every hour"},t.prototype.commaEveryX0Years=function(){return", every %s years"},t.prototype.commaStartingX0=function(){return", starting %s"},t.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},t.prototype.atReboot=function(){return"Run once, at startup"},t.prototype.onTheHour=function(){return"on the hour"},t}();e.en=n},9515(t,e){function n(t,e){if(!t)throw new Error(e)}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.secondRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"seconds part must be >= 0 and <= 59")}},t.minuteRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"minutes part must be >= 0 and <= 59")}},t.hourRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=23,"hours part must be >= 0 and <= 23")}},t.dayOfMonthRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=1&&o<=31,"DOM part must be >= 1 and <= 31")}},t.monthRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=1&&i<=12,e?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},t.dayOfWeekRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=0&&i<=6,e?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},t}();e.default=r},1823(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtilities=void 0;var n=function(){function t(){}return t.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.replace(/%s/g,(function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.shift()}))},t.containsAny=function(t,e){return e.some((function(e){return t.indexOf(e)>-1}))},t}();e.StringUtilities=n}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;var e=n(8333),o=n(3747);e.ExpressionDescriptor.initialize(new o.enLocaleLoader),t.default=e.ExpressionDescriptor;var i=e.ExpressionDescriptor.toString;t.toString=i})(),r})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("cronstrue",[],e):"object"==typeof exports?exports.cronstrue=e():t.cronstrue=e()}(globalThis,(()=>(()=>{"use strict";var t={6949(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CronParser=void 0;var r=n(9515),i=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=n}return t.prototype.parse=function(){var t,e,n=null!==(t=this.expression)&&void 0!==t?t:"";if("@reboot"===n)return e=["@reboot","","","","","",""];if(n.startsWith("@")){var r=this.parseSpecial(this.expression);e=this.extractParts(r)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},t.prototype.parseSpecial=function(t){var e={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"}[t];if(!e)throw new Error("Unknown special expression.");return e},t.prototype.extractParts=function(t){if(!this.expression)throw new Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),n=0;n<e.length;n++)if(e[n].includes(",")){var r=e[n].split(",").map((function(t){return t.trim()})).filter((function(t){return""!==t})).map((function(t){return isNaN(Number(t))?t:Number(t)})).filter((function(t){return null!==t&&""!==t}));0===r.length&&r.push("*"),r.sort((function(t,e){return null!==t&&null!==e?t-e:0})),e[n]=r.map((function(t){return null!==t?t.toString():""})).join(",")}if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(1==e.length?"":"s",". At least 5 parts are required."));if(5==e.length)e.unshift(""),e.push("");else if(6==e.length){/\d{4}$/.test(e[5])||"?"==e[4]||"?"==e[2]?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},t.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),0==t[0].indexOf("0/")&&(t[0]=t[0].replace("0/","*/")),0==t[1].indexOf("0/")&&(t[1]=t[1].replace("0/","*/")),0==t[2].indexOf("0/")&&(t[2]=t[2].replace("0/","*/")),0==t[3].indexOf("1/")&&(t[3]=t[3].replace("1/","*/")),0==t[4].indexOf("1/")&&(t[4]=t[4].replace("1/","*/")),0==t[6].indexOf("1/")&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),t.replace(n,r)})),"L"==t[5]&&(t[5]="6"),"?"==t[3]&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)t[5]=t[5].replace(new RegExp(r,"gi"),n[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),t.replace(n,r)}));var i={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var o in i)t[4]=t[4].replace(new RegExp(o,"gi"),i[o].toString());"0"==t[0]&&(t[0]=""),/\*|\-|\,|\//.test(t[2])||!/\*|\//.test(t[1])&&!/\*|\//.test(t[0])||(t[2]+="-".concat(t[2]));for(var a=0;a<t.length;a++)if(-1!=t[a].indexOf(",")&&(t[a]=t[a].split(",").filter((function(t){return""!==t})).join(",")||"*"),"*/1"==t[a]&&(t[a]="*"),t[a].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[a])){var s=null;switch(a){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null}if(null!==s){var u=t[a].split("/");t[a]="".concat(u[0],"-").concat(s,"/").concat(u[1])}}},t.prototype.validate=function(t){var e="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(t[0],e),this.validateOnlyExpectedCharactersFound(t[1],e),this.validateOnlyExpectedCharactersFound(t[2],e),this.validateOnlyExpectedCharactersFound(t[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(t[4],e),this.validateOnlyExpectedCharactersFound(t[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(t[6],e),this.validateAnyRanges(t)},t.prototype.validateAnyRanges=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},t.prototype.validateOnlyExpectedCharactersFound=function(t,e){var n=t.match(new RegExp("[^".concat(e,"]+"),"gi"));if(n&&n.length)throw new Error("Expression contains invalid values: '".concat(n.toString(),"'"))},t}();e.CronParser=i},8333(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressionDescriptor=void 0;var r=n(1823),i=n(6949),o=function(){function t(e,n){if(this.expression=e,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,n){var r=void 0===n?{}:n,i=r.throwExceptionOnParseError,o=void 0===i||i,a=r.verbose,s=void 0!==a&&a,u=r.dayOfWeekStartIndexZero,c=void 0===u||u,p=r.monthStartIndexZero,h=void 0!==p&&p,f=r.use24HourTimeFormat,l=r.trimHoursLeadingZero,d=void 0!==l&&l,m=r.locale,y=void 0===m?null:m,g=r.logicalAndDayFields,v={throwExceptionOnParseError:o,verbose:s,dayOfWeekStartIndexZero:c,monthStartIndexZero:h,use24HourTimeFormat:f,trimHoursLeadingZero:d,locale:y,logicalAndDayFields:void 0!==g&&g};return v.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported."),new t(e,v).getFullDescription()},t.initialize=function(e,n){void 0===n&&(n="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=n,e.load(t.locales)},t.prototype.getFullDescription=function(){var t,e,n="";try{var r=new i.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=r.parse(),"@reboot"===this.expressionParts[0])return(null===(e=(t=this.i18n).atReboot)||void 0===e?void 0:e.call(t))||"Run once, at startup";var o=this.getTimeOfDayDescription(),a=this.getDayOfMonthDescription(),s=this.getMonthDescription();n+=o+a+this.getDayOfWeekDescription()+s+this.getYearDescription(),n=(n=this.transformVerbosity(n,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+n.substr(1)}catch(t){if(this.options.throwExceptionOnParseError)throw"".concat(t);n=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return n},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],n=this.expressionParts[1],i=this.expressionParts[2],o="";if(r.StringUtilities.containsAny(n,t.specialCharacters)||r.StringUtilities.containsAny(i,t.specialCharacters)||r.StringUtilities.containsAny(e,t.specialCharacters))if(e||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||r.StringUtilities.containsAny(i,t.specialCharacters))if(!e&&i.indexOf(",")>-1&&-1==i.indexOf("-")&&-1==i.indexOf("/")&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var a=i.split(",");o+=this.i18n.at();for(var s=0;s<a.length;s++)o&&(o+=" "),o+=this.formatTime(a[s],n,""),s<a.length-2&&(o+=","),s==a.length-2&&(o+=this.i18n.spaceAnd())}else{var u=this.getSecondsDescription(),c=this.getMinutesDescription(),p=this.getHoursDescription();if((o+=u)&&c&&(o+=", "),o+=c,c===p)return o;o&&p&&(o+=", "),o+=p}else{var h=n.split("-");o+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(i,h[0],""),this.formatTime(i,h[1],""))}else o+=this.i18n.atSpace()+this.formatTime(i,n,e);return o},t.prototype.getSecondsDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Seconds(e),e)}),(function(e){return t.i18n.secondsX0ThroughX1PastTheMinute()}),(function(e){return"0"==e?"":parseInt(e)<20?t.i18n.atX0SecondsPastTheMinute(e):t.i18n.atX0SecondsPastTheMinuteGt20()||t.i18n.atX0SecondsPastTheMinute(e)}),{min:0,max:59})},t.prototype.getMinutesDescription=function(){var t=this,e=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Minutes(e),e)}),(function(e){return t.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){var i,o;try{return"0"==r&&-1==n.indexOf("/")&&""==e?t.i18n.everyHour():"0"==r?(null===(o=(i=t.i18n).onTheHour)||void 0===o?void 0:o.call(i))||t.i18n.atX0MinutesPastTheHour(r):parseInt(r)<20?t.i18n.atX0MinutesPastTheHour(r):t.i18n.atX0MinutesPastTheHourGt20()||t.i18n.atX0MinutesPastTheHour(r)}catch(e){return t.i18n.atX0MinutesPastTheHour(r)}}),{min:0,max:59})},t.prototype.getHoursDescription=function(){var t=this,e=this.expressionParts[2],n=0,i=[];e.split("/")[0].split(",").forEach((function(t){var e=t.split("-");2===e.length&&i.push({value:e[1],index:n+1}),n+=e.length}));var o=0;return this.getSegmentDescription(e,this.i18n.everyHour(),(function(e){var n=i.find((function(t){return t.value===e&&t.index===o}))&&"0"!==t.expressionParts[1];return o++,n?t.formatTime(e,"59",""):t.formatTime(e,"0","")}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Hours(e),e)}),(function(e){return t.i18n.betweenX0AndX1()}),(function(e){return t.i18n.atX0()}),{min:0,max:23})},t.prototype.getDayOfWeekDescription=function(){var t=this,e=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(n,r){var i=n;n.indexOf("#")>-1?i=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(i=i.replace("L",""));var o=parseInt(i),a=t.i18n.daysOfTheWeekInCase?t.i18n.daysOfTheWeekInCase(r)[o]:e[o];if(n.indexOf("#")>-1){var s=null,u=n.substring(n.indexOf("#")+1),c=n.substring(0,n.indexOf("#"));switch(u){case"1":s=t.i18n.first(c);break;case"2":s=t.i18n.second(c);break;case"3":s=t.i18n.third(c);break;case"4":s=t.i18n.fourth(c);break;case"5":s=t.i18n.fifth(c)}a=s+" "+a}return a}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0DaysOfTheWeek(e),e)}),(function(e){var n=e.substring(0,e.indexOf("-"));return"*"!=t.expressionParts[3]?t.i18n.commaAndX0ThroughX1(n):t.i18n.commaX0ThroughX1(n)}),(function(e){var n=null;if(e.indexOf("#")>-1){var r=e.substring(e.indexOf("#")+1),i=e.substring(0,e.indexOf("#"));n=t.i18n.commaOnThe(r,i).trim()+t.i18n.spaceX0OfTheMonth()}else if(e.indexOf("L")>-1)n=t.i18n.commaOnTheLastX0OfTheMonth(e.replace("L",""));else{n="*"!=t.expressionParts[3]?t.options.logicalAndDayFields?t.i18n.commaOnlyOnX0(e):t.i18n.commaAndOnX0():t.i18n.commaOnlyOnX0(e)}return n}))},t.prototype.getMonthDescription=function(){var t=this,e=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",(function(n,r){return r&&t.i18n.monthsOfTheYearInCase?t.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:e[parseInt(n)-1]}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0Months(e),e)}),(function(e){return t.i18n.commaMonthX0ThroughMonthX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInMonthX0?t.i18n.commaOnlyInMonthX0():t.i18n.commaOnlyInX0()}))},t.prototype.getDayOfMonthDescription=function(){var t=this,e=null,n=this.expressionParts[3];switch(n){case"L":e=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":e=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var i=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(i){var o=parseInt(i[0].replace("W","")),a=1==o?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),o.toString());e=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),a);break}var s=n.match(/L-(\d{1,2})/);if(s){var u=s[1];e=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(u),u);break}if("*"==n&&"*"!=this.expressionParts[5])return"";e=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(e){return"L"==e?t.i18n.lastDay():t.i18n.dayX0?r.StringUtilities.format(t.i18n.dayX0(),e):e}),(function(e){return"1"==e?t.i18n.commaEveryDay():t.i18n.commaEveryX0Days(e)}),(function(e){return t.i18n.commaBetweenDayX0AndX1OfTheMonth(e)}),(function(e){return t.i18n.commaOnDayX0OfTheMonth(e)}))}return e},t.prototype.getYearDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[6],"",(function(t){return/^\d+$/.test(t)?new Date(parseInt(t),1).getFullYear().toString():t}),(function(e){return r.StringUtilities.format(t.i18n.commaEveryX0Years(e),e)}),(function(e){return t.i18n.commaYearX0ThroughYearX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInYearX0?t.i18n.commaOnlyInYearX0():t.i18n.commaOnlyInX0()}))},t.prototype.getSegmentDescription=function(t,e,n,i,o,a,s){var u=null,c=t.indexOf("/")>-1,p=t.indexOf("-")>-1,h=t.indexOf(",")>-1;if(t)if("*"===t)u=e;else if(c||p||h)if(h){for(var f=t.split(","),l="",d=this.i18n.spaceAnd(),m=0;m<f.length;m++)if(m>0&&f.length>2&&(l+=",",m<f.length-1&&(l+=" ")),m>0&&f.length>1&&(m==f.length-1||2==f.length)&&(l+=","==d&&f.length>2?" ":"".concat(d," ")),f[m].indexOf("/")>-1||f[m].indexOf("-")>-1){var y=f[m].indexOf("-")>-1&&-1==f[m].indexOf("/"),g=this.getSegmentDescription(f[m],e,n,i,y?this.i18n.commaX0ThroughX1:o,a);y&&(g=g.replace(", ","")),l+=g}else if(c){var v=this.getSegmentDescription(f[m],e,n,i,o,a);v&&v.startsWith(", ")&&(v=v.substring(2)),l+=v}else l+=n(f[m]);u=c?l:r.StringUtilities.format(a(t),l)}else if(c){f=t.split("/");if(u=r.StringUtilities.format(i(f[1]),f[1]),f[0].indexOf("-")>-1){var O=this.generateRangeSegmentDescription(f[0],o,n);0!=O.indexOf(", ")&&(u+=", "),u+=O}else if(-1==f[0].indexOf("*")){var x=r.StringUtilities.format(a(f[0]),n(f[0]));x=x.replace(", ",""),u+=r.StringUtilities.format(this.i18n.commaStartingX0(),x)}u+=this.getWrappingIncrementDescription(t,s,e,n,i,o,a)}else p&&(u=this.generateRangeSegmentDescription(t,o,n));else u=r.StringUtilities.format(a(t),n(t));else u="";return u},t.prototype.getWrappingIncrementDescription=function(t,e,n,r,i,o,a){if(!this.options.verbose||!e)return"";var s=t.split("/"),u=s[0],c=s[1],p=parseInt(c),h=e.max-e.min+1,f="*"===u,l=Number.isInteger(p)&&p>1;if(!f||!l||l&&h%p==0)return"";for(var d=[],m=e.min;m<=e.max;m+=p)d.push(m);if(d.length<2)return"";var y=this.getSegmentDescription(d.join(","),n,r,i,o,a);return y?", ".concat(y):""},t.prototype.generateRangeSegmentDescription=function(t,e,n){var i="",o=t.split("-"),a=n(o[0],1),s=n(o[1],2),u=e(t);return i+=r.StringUtilities.format(u,a,s)},t.prototype.formatTime=function(t,e,n){var r=parseInt(t)+0,i=parseInt(e)+0;i>=60?(i-=60,r+=1):i<0&&(i+=60,r-=1),r>=24?r-=24:r<0&&(r=24+r);var o="",a=!1;this.options.use24HourTimeFormat||(o=(a=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(r)," "):" ".concat(this.getPeriod(r)),r>12&&(r-=12),0===r&&(r=12));var s="";n&&(s=":".concat(("00"+n).substring(n.length)));var u=r.toString(),c=("00"+u).substring(u.length),p=i.toString(),h=("00"+p).substring(p.length),f=this.options.trimHoursLeadingZero?u:c;return"".concat(a?o:"").concat(f,":").concat(h).concat(s).concat(a?"":o)},t.prototype.transformVerbosity=function(t,e){if(!e&&(t=(t=(t=(t=t.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(new RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var n=0,r=Object.entries(this.i18n.conciseVerbosityReplacements());n<r.length;n++){var i=r[n],o=i[0],a=i[1];t=t.replace(new RegExp(o,"g"),a)}return t},t.prototype.getPeriod=function(t){return t>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();e.ExpressionDescriptor=o},3747(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.enLocaleLoader=void 0;var r=n(9486),i=function(){function t(){}return t.prototype.load=function(t){t.en=new r.en},t}();e.enLocaleLoader=i},9486(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.en=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},t.prototype.everyMinute=function(){return"every minute"},t.prototype.everyHour=function(){return"every hour"},t.prototype.atSpace=function(){return"At "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},t.prototype.at=function(){return"At"},t.prototype.spaceAnd=function(){return" and"},t.prototype.everySecond=function(){return"every second"},t.prototype.everyX0Seconds=function(){return"every %s seconds"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},t.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},t.prototype.everyX0Minutes=function(){return"every %s minutes"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},t.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},t.prototype.everyX0Hours=function(){return"every %s hours"},t.prototype.betweenX0AndX1=function(){return"between %s and %s"},t.prototype.atX0=function(){return"at %s"},t.prototype.commaEveryDay=function(){return", every day"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},t.prototype.commaX0ThroughX1=function(){return", %s through %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},t.prototype.first=function(){return"first"},t.prototype.second=function(){return"second"},t.prototype.third=function(){return"third"},t.prototype.fourth=function(){return"fourth"},t.prototype.fifth=function(){return"fifth"},t.prototype.commaOnThe=function(){return", on the "},t.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},t.prototype.lastDay=function(){return"the last day"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},t.prototype.commaOnlyOnX0=function(){return", only on %s"},t.prototype.commaAndOnX0=function(){return", and on %s"},t.prototype.commaEveryX0Months=function(){return", every %s months"},t.prototype.commaOnlyInX0=function(){return", only in %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},t.prototype.firstWeekday=function(){return"first weekday"},t.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},t.prototype.commaEveryX0Days=function(){return", every %s days in a month"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},t.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},t.prototype.commaEveryHour=function(){return", every hour"},t.prototype.commaEveryX0Years=function(){return", every %s years"},t.prototype.commaStartingX0=function(){return", starting %s"},t.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},t.prototype.atReboot=function(){return"Run once, at startup"},t.prototype.onTheHour=function(){return"on the hour"},t}();e.en=n},9515(t,e){function n(t,e){if(!t)throw new Error(e)}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.secondRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var i=parseInt(e[r],10);n(i>=0&&i<=59,"seconds part must be >= 0 and <= 59")}},t.minuteRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var i=parseInt(e[r],10);n(i>=0&&i<=59,"minutes part must be >= 0 and <= 59")}},t.hourRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var i=parseInt(e[r],10);n(i>=0&&i<=23,"hours part must be >= 0 and <= 23")}},t.dayOfMonthRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var i=parseInt(e[r],10);n(i>=1&&i<=31,"DOM part must be >= 1 and <= 31")}},t.monthRange=function(t,e){for(var r=t.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var o=parseInt(r[i],10);n(o>=1&&o<=12,e?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},t.dayOfWeekRange=function(t,e){for(var r=t.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var o=parseInt(r[i],10);n(o>=0&&o<=6,e?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},t}();e.default=r},1823(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtilities=void 0;var n=function(){function t(){}return t.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.replace(/%s/g,(function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.shift()}))},t.containsAny=function(t,e){return e.some((function(e){return t.indexOf(e)>-1}))},t}();e.StringUtilities=n}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;var e=n(8333),i=n(3747);e.ExpressionDescriptor.initialize(new i.enLocaleLoader),t.default=e.ExpressionDescriptor;var o=e.ExpressionDescriptor.toString;t.toString=o})(),r})()));
@@ -23,7 +23,14 @@ export declare class ExpressionDescriptor {
23
23
  protected getMonthDescription(): string;
24
24
  protected getDayOfMonthDescription(): string | null;
25
25
  protected getYearDescription(): string;
26
- protected getSegmentDescription(expression: string, allDescription: string, getSingleItemDescription: (t: string, form?: number) => string, getIncrementDescriptionFormat: (t: string) => string, getRangeDescriptionFormat: (t: string) => string, getDescriptionFormat: (t: string) => string): string | null;
26
+ protected getSegmentDescription(expression: string, allDescription: string, getSingleItemDescription: (t: string, form?: number) => string, getIncrementDescriptionFormat: (t: string) => string, getRangeDescriptionFormat: (t: string) => string, getDescriptionFormat: (t: string) => string, range?: {
27
+ min: number;
28
+ max: number;
29
+ }): string | null;
30
+ protected getWrappingIncrementDescription(expression: string, range: {
31
+ min: number;
32
+ max: number;
33
+ } | undefined, allDescription: string, getSingleItemDescription: (t: string, form?: number) => string, getIncrementDescriptionFormat: (t: string) => string, getRangeDescriptionFormat: (t: string) => string, getDescriptionFormat: (t: string) => string): string;
27
34
  protected generateRangeSegmentDescription(rangeExpression: string, getRangeDescriptionFormat: (t: string) => string, getSingleItemDescription: (t: string, form?: number) => string): string;
28
35
  protected formatTime(hourExpression: string, minuteExpression: string, secondExpression: string): string;
29
36
  protected transformVerbosity(description: string, useVerboseFormat: boolean): string;
@@ -53,5 +53,6 @@ export declare class af implements Locale {
53
53
  commaStartingX0(): string;
54
54
  daysOfTheWeek(): string[];
55
55
  monthsOfTheYear(): string[];
56
+ atReboot(): string;
56
57
  onTheHour(): string;
57
58
  }
@@ -53,5 +53,6 @@ export declare class ar implements Locale {
53
53
  commaStartingX0(): string;
54
54
  daysOfTheWeek(): string[];
55
55
  monthsOfTheYear(): string[];
56
+ atReboot(): string;
56
57
  onTheHour(): string;
57
58
  }
@@ -52,5 +52,6 @@ export declare class be implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -53,5 +53,6 @@ export declare class bg implements Locale {
53
53
  commaStartingX0(): string;
54
54
  daysOfTheWeek(): string[];
55
55
  monthsOfTheYear(): string[];
56
+ atReboot(): string;
56
57
  onTheHour(): string;
57
58
  }
@@ -52,5 +52,6 @@ export declare class ca implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class cs implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class da implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class de implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class es implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -54,5 +54,6 @@ export declare class fa implements Locale {
54
54
  commaStartingX0(): string;
55
55
  daysOfTheWeek(): string[];
56
56
  monthsOfTheYear(): string[];
57
+ atReboot(): string;
57
58
  onTheHour(): string;
58
59
  }
@@ -55,5 +55,6 @@ export declare class fi implements Locale {
55
55
  commaAndOnX0(): string;
56
56
  daysOfTheWeek(): string[];
57
57
  monthsOfTheYear(): string[];
58
+ atReboot(): string;
58
59
  onTheHour(): string;
59
60
  }
@@ -57,5 +57,6 @@ export declare class fr implements Locale {
57
57
  commaStartingX0(): string;
58
58
  daysOfTheWeek(): string[];
59
59
  monthsOfTheYear(): string[];
60
+ atReboot(): string;
60
61
  onTheHour(): string;
61
62
  }
@@ -52,5 +52,6 @@ export declare class he implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class hr implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -53,5 +53,6 @@ export declare class hu implements Locale {
53
53
  commaStartingX0(): string;
54
54
  daysOfTheWeek(): string[];
55
55
  monthsOfTheYear(): string[];
56
+ atReboot(): string;
56
57
  onTheHour(): string;
57
58
  }
@@ -53,5 +53,6 @@ export declare class id implements Locale {
53
53
  commaStartingX0(): string;
54
54
  daysOfTheWeek(): string[];
55
55
  monthsOfTheYear(): string[];
56
+ atReboot(): string;
56
57
  onTheHour(): string;
57
58
  }
@@ -52,5 +52,6 @@ export declare class it implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -57,5 +57,6 @@ export declare class ja implements Locale {
57
57
  commaAndOnX0(): string;
58
58
  daysOfTheWeek(): string[];
59
59
  monthsOfTheYear(): string[];
60
+ atReboot(): string;
60
61
  onTheHour(): string;
61
62
  }
@@ -57,5 +57,6 @@ export declare class ko implements Locale {
57
57
  commaStartingX0(): string;
58
58
  daysOfTheWeek(): string[];
59
59
  monthsOfTheYear(): string[];
60
+ atReboot(): string;
60
61
  onTheHour(): string;
61
62
  }
@@ -53,5 +53,6 @@ export declare class my implements Locale {
53
53
  commaStartingX0(): string;
54
54
  daysOfTheWeek(): string[];
55
55
  monthsOfTheYear(): string[];
56
+ atReboot(): string;
56
57
  onTheHour(): string;
57
58
  }
@@ -52,5 +52,6 @@ export declare class nb implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class nl implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class nn implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class pl implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class pt_BR implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class pt_PT implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class ro implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -55,5 +55,6 @@ export declare class ru implements Locale {
55
55
  daysOfTheWeekInCase(f?: number): string[];
56
56
  monthsOfTheYear(): string[];
57
57
  monthsOfTheYearInCase(f?: number): string[];
58
+ atReboot(): string;
58
59
  onTheHour(): string;
59
60
  }
@@ -52,5 +52,6 @@ export declare class sk implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class sl implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class sr implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class sv implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class sw implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -55,5 +55,6 @@ export declare class tg implements Locale {
55
55
  daysOfTheWeekInCase(): string[];
56
56
  monthsOfTheYear(): string[];
57
57
  monthsOfTheYearInCase(f?: number): string[];
58
+ atReboot(): string;
58
59
  onTheHour(): string;
59
60
  }
@@ -53,5 +53,6 @@ export declare class th implements Locale {
53
53
  commaStartingX0(): string;
54
54
  daysOfTheWeek(): string[];
55
55
  monthsOfTheYear(): string[];
56
+ atReboot(): string;
56
57
  onTheHour(): string;
57
58
  }
@@ -52,5 +52,6 @@ export declare class tr implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -52,5 +52,6 @@ export declare class uk implements Locale {
52
52
  commaStartingX0(): string;
53
53
  daysOfTheWeek(): string[];
54
54
  monthsOfTheYear(): string[];
55
+ atReboot(): string;
55
56
  onTheHour(): string;
56
57
  }
@@ -53,5 +53,6 @@ export declare class vi implements Locale {
53
53
  commaStartingX0(): string;
54
54
  daysOfTheWeek(): string[];
55
55
  monthsOfTheYear(): string[];
56
+ atReboot(): string;
56
57
  onTheHour(): string;
57
58
  }
@@ -58,5 +58,6 @@ export declare class zh_CN implements Locale {
58
58
  dayX0(): string;
59
59
  daysOfTheWeek(): string[];
60
60
  monthsOfTheYear(): string[];
61
+ atReboot(): string;
61
62
  onTheHour(): string;
62
63
  }
@@ -55,5 +55,6 @@ export declare class zh_TW implements Locale {
55
55
  dayX0(): string;
56
56
  daysOfTheWeek(): string[];
57
57
  monthsOfTheYear(): string[];
58
+ atReboot(): string;
58
59
  onTheHour(): string;
59
60
  }
package/locales/af.js CHANGED
@@ -270,6 +270,9 @@ var af = (function () {
270
270
  "Desember",
271
271
  ];
272
272
  };
273
+ af.prototype.atReboot = function () {
274
+ return "Loop een keer, met opstart";
275
+ };
273
276
  af.prototype.onTheHour = function () {
274
277
  return "op die uur";
275
278
  };
package/locales/af.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/af.min",["cronstrue"],t):"object"==typeof exports?exports["locales/af.min"]=t(require("cronstrue")):e["locales/af.min"]=t(e.cronstrue)}(globalThis,(e=>(()=>{"use strict";var t={93(t){t.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var u=n[e]={exports:{}};return t[e](u,u.exports,o),u.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};o.r(r);var u=o(93),a=o.n(u),p=r;Object.defineProperty(p,"__esModule",{value:!0}),p.af=void 0;var i=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return", jaar %s na %s"},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Daar was 'n fout om die tydsuitdrukking the genereer. Raadpleeg asb die uitdrukking formaat."},e.prototype.everyMinute=function(){return"elke minuut"},e.prototype.everyHour=function(){return"elke uur"},e.prototype.atSpace=function(){return"Teen "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Elke minuut tussen %s en %s"},e.prototype.at=function(){return"Teen"},e.prototype.spaceAnd=function(){return" en"},e.prototype.everySecond=function(){return"elke sekonde"},e.prototype.everyX0Seconds=function(){return"elke %s sekonde"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekonde %s deur na %s na die minuut"},e.prototype.atX0SecondsPastTheMinute=function(){return"teen %s sekondes na die minuut"},e.prototype.everyX0Minutes=function(){return"elke %s minute"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minute %s deur na %s na die uur"},e.prototype.atX0MinutesPastTheHour=function(){return"teen %s minute na die uur"},e.prototype.everyX0Hours=function(){return"elke %s ure"},e.prototype.betweenX0AndX1=function(){return"tussen %s en %s"},e.prototype.atX0=function(){return"teen %s"},e.prototype.commaEveryDay=function(){return", elke dag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", elke %s dae van die week"},e.prototype.commaX0ThroughX1=function(){return", %s deur na %s"},e.prototype.commaAndX0ThroughX1=function(){return", en %s deur na %s"},e.prototype.first=function(){return"eerste"},e.prototype.second=function(){return"tweede"},e.prototype.third=function(){return"derde"},e.prototype.fourth=function(){return"vierde"},e.prototype.fifth=function(){return"vyfde"},e.prototype.commaOnThe=function(){return", op die "},e.prototype.spaceX0OfTheMonth=function(){return" %s van die maand"},e.prototype.lastDay=function(){return"die laaste dag"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", op die laaste %s van die maand"},e.prototype.commaOnlyOnX0=function(){return", net op %s"},e.prototype.commaAndOnX0=function(){return", en op %s"},e.prototype.commaEveryX0Months=function(){return", elke %s maande"},e.prototype.commaOnlyInX0=function(){return", net in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", op die laaste dag van die maand"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", op die laaste weeksdag van die maand"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dae voor die laaste dag van die maand"},e.prototype.firstWeekday=function(){return"eerste weeksdag"},e.prototype.weekdayNearestDayX0=function(){return"weeksdag naaste aan dag %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", op die %s van die maande"},e.prototype.commaEveryX0Days=function(){return", elke %s dae"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tussen dag %s en %s van die maand"},e.prototype.commaOnDayX0OfTheMonth=function(){return", op dag %s van die maand"},e.prototype.commaEveryHour=function(){return", elke uur"},e.prototype.commaEveryX0Years=function(){return", elke %s jare"},e.prototype.commaStartingX0=function(){return", beginnende %s"},e.prototype.daysOfTheWeek=function(){return["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},e.prototype.monthsOfTheYear=function(){return["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},e.prototype.onTheHour=function(){return"op die uur"},e}();return p.af=i,a().locales.af=new i,r})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/af.min",["cronstrue"],t):"object"==typeof exports?exports["locales/af.min"]=t(require("cronstrue")):e["locales/af.min"]=t(e.cronstrue)}(globalThis,(e=>(()=>{"use strict";var t={93(t){t.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var u=n[e]={exports:{}};return t[e](u,u.exports,o),u.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};o.r(r);var u=o(93),a=o.n(u),p=r;Object.defineProperty(p,"__esModule",{value:!0}),p.af=void 0;var i=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return", jaar %s na %s"},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Daar was 'n fout om die tydsuitdrukking the genereer. Raadpleeg asb die uitdrukking formaat."},e.prototype.everyMinute=function(){return"elke minuut"},e.prototype.everyHour=function(){return"elke uur"},e.prototype.atSpace=function(){return"Teen "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Elke minuut tussen %s en %s"},e.prototype.at=function(){return"Teen"},e.prototype.spaceAnd=function(){return" en"},e.prototype.everySecond=function(){return"elke sekonde"},e.prototype.everyX0Seconds=function(){return"elke %s sekonde"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekonde %s deur na %s na die minuut"},e.prototype.atX0SecondsPastTheMinute=function(){return"teen %s sekondes na die minuut"},e.prototype.everyX0Minutes=function(){return"elke %s minute"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minute %s deur na %s na die uur"},e.prototype.atX0MinutesPastTheHour=function(){return"teen %s minute na die uur"},e.prototype.everyX0Hours=function(){return"elke %s ure"},e.prototype.betweenX0AndX1=function(){return"tussen %s en %s"},e.prototype.atX0=function(){return"teen %s"},e.prototype.commaEveryDay=function(){return", elke dag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", elke %s dae van die week"},e.prototype.commaX0ThroughX1=function(){return", %s deur na %s"},e.prototype.commaAndX0ThroughX1=function(){return", en %s deur na %s"},e.prototype.first=function(){return"eerste"},e.prototype.second=function(){return"tweede"},e.prototype.third=function(){return"derde"},e.prototype.fourth=function(){return"vierde"},e.prototype.fifth=function(){return"vyfde"},e.prototype.commaOnThe=function(){return", op die "},e.prototype.spaceX0OfTheMonth=function(){return" %s van die maand"},e.prototype.lastDay=function(){return"die laaste dag"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", op die laaste %s van die maand"},e.prototype.commaOnlyOnX0=function(){return", net op %s"},e.prototype.commaAndOnX0=function(){return", en op %s"},e.prototype.commaEveryX0Months=function(){return", elke %s maande"},e.prototype.commaOnlyInX0=function(){return", net in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", op die laaste dag van die maand"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", op die laaste weeksdag van die maand"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dae voor die laaste dag van die maand"},e.prototype.firstWeekday=function(){return"eerste weeksdag"},e.prototype.weekdayNearestDayX0=function(){return"weeksdag naaste aan dag %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", op die %s van die maande"},e.prototype.commaEveryX0Days=function(){return", elke %s dae"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tussen dag %s en %s van die maand"},e.prototype.commaOnDayX0OfTheMonth=function(){return", op dag %s van die maand"},e.prototype.commaEveryHour=function(){return", elke uur"},e.prototype.commaEveryX0Years=function(){return", elke %s jare"},e.prototype.commaStartingX0=function(){return", beginnende %s"},e.prototype.daysOfTheWeek=function(){return["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},e.prototype.monthsOfTheYear=function(){return["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},e.prototype.atReboot=function(){return"Loop een keer, met opstart"},e.prototype.onTheHour=function(){return"op die uur"},e}();return p.af=i,a().locales.af=new i,r})()));
package/locales/ar.js CHANGED
@@ -270,6 +270,9 @@ var ar = (function () {
270
270
  "ديسمبر",
271
271
  ];
272
272
  };
273
+ ar.prototype.atReboot = function () {
274
+ return "تشغيل مرة واحدة، عند بدء التشغيل";
275
+ };
273
276
  ar.prototype.onTheHour = function () {
274
277
  return "في تمام الساعة";
275
278
  };