cronstrue 3.14.0 → 3.18.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.
package/dist/cronstrue.js CHANGED
@@ -364,7 +364,9 @@ var ExpressionDescriptor = (function () {
364
364
  var hourParts = hourExpression.split(",");
365
365
  description += this.i18n.at();
366
366
  for (var i = 0; i < hourParts.length; i++) {
367
- description += " ";
367
+ if (description) {
368
+ description += " ";
369
+ }
368
370
  description += this.formatTime(hourParts[i], minuteExpression, "");
369
371
  if (i < hourParts.length - 2) {
370
372
  description += ",";
@@ -652,6 +654,7 @@ var ExpressionDescriptor = (function () {
652
654
  else if (doesExpressionContainMultipleValues) {
653
655
  var segments = expression.split(",");
654
656
  var descriptionContent = "";
657
+ var conjunction = this.i18n.spaceAnd();
655
658
  for (var i = 0; i < segments.length; i++) {
656
659
  if (i > 0 && segments.length > 2) {
657
660
  descriptionContent += ",";
@@ -660,7 +663,7 @@ var ExpressionDescriptor = (function () {
660
663
  }
661
664
  }
662
665
  if (i > 0 && segments.length > 1 && (i == segments.length - 1 || segments.length == 2)) {
663
- descriptionContent += "".concat(this.i18n.spaceAnd(), " ");
666
+ descriptionContent += conjunction == "," && segments.length > 2 ? " " : "".concat(conjunction, " ");
664
667
  }
665
668
  if (segments[i].indexOf("/") > -1 || segments[i].indexOf("-") > -1) {
666
669
  var isSegmentRangeWithoutIncrement = segments[i].indexOf("-") > -1 && segments[i].indexOf("/") == -1;
@@ -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={949(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CronParser=void 0;var r=n(515),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},333(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressionDescriptor=void 0;var r=n(823),o=n(949),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+=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=0;l<h.length;l++)if(l>0&&h.length>2&&(f+=",",l<h.length-1&&(f+=" ")),l>0&&h.length>1&&(l==h.length-1||2==h.length)&&(f+="".concat(this.i18n.spaceAnd()," ")),h[l].indexOf("/")>-1||h[l].indexOf("-")>-1){var d=h[l].indexOf("-")>-1&&-1==h[l].indexOf("/"),y=this.getSegmentDescription(h[l],e,n,o,d?this.i18n.commaX0ThroughX1:i,a);d&&(y=y.replace(", ","")),f+=y}else if(u){var m=this.getSegmentDescription(h[l],e,n,o,i,a);m&&m.startsWith(", ")&&(m=m.substring(2)),f+=m}else f+=n(h[l]);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 g=this.generateRangeSegmentDescription(h[0],i,n);0!=g.indexOf(", ")&&(s+=", "),s+=g}else if(-1==h[0].indexOf("*")){var v=r.StringUtilities.format(a(h[0]),n(h[0]));v=v.replace(", ",""),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),v)}}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},747(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.enLocaleLoader=void 0;var r=n(486),o=function(){function t(){}return t.prototype.load=function(t){t.en=new r.en},t}();e.enLocaleLoader=o},486(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},515(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},823(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(333),o=n(747);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={949(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CronParser=void 0;var r=n(515),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},333(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressionDescriptor=void 0;var r=n(823),o=n(949),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},747(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.enLocaleLoader=void 0;var r=n(486),o=function(){function t(){}return t.prototype.load=function(t){t.en=new r.en},t}();e.enLocaleLoader=o},486(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},515(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},823(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(333),o=n(747);e.ExpressionDescriptor.initialize(new o.enLocaleLoader),t.default=e.ExpressionDescriptor;var i=e.ExpressionDescriptor.toString;t.toString=i})(),r})()));
@@ -8,6 +8,7 @@ export { id } from "./locales/id";
8
8
  export { ko } from "./locales/ko";
9
9
  export { nl } from "./locales/nl";
10
10
  export { nb } from "./locales/nb";
11
+ export { nn } from "./locales/nn";
11
12
  export { sv } from "./locales/sv";
12
13
  export { pl } from "./locales/pl";
13
14
  export { pt_BR } from "./locales/pt_BR";
@@ -0,0 +1,56 @@
1
+ import { Locale } from "../locale";
2
+ export declare class nn implements Locale {
3
+ atX0SecondsPastTheMinuteGt20(): string | null;
4
+ atX0MinutesPastTheHourGt20(): string | null;
5
+ commaMonthX0ThroughMonthX1(): string | null;
6
+ commaYearX0ThroughYearX1(): string | null;
7
+ use24HourTimeFormatByDefault(): boolean;
8
+ anErrorOccuredWhenGeneratingTheExpressionD(): string;
9
+ at(): string;
10
+ atSpace(): string;
11
+ atX0(): string;
12
+ atX0MinutesPastTheHour(): string;
13
+ atX0SecondsPastTheMinute(): string;
14
+ betweenX0AndX1(): string;
15
+ commaBetweenDayX0AndX1OfTheMonth(): string;
16
+ commaEveryDay(): string;
17
+ commaEveryX0Days(): string;
18
+ commaEveryX0DaysOfTheWeek(): string;
19
+ commaEveryX0Months(): string;
20
+ commaEveryX0Years(): string;
21
+ commaOnDayX0OfTheMonth(): string;
22
+ commaOnlyInX0(): string;
23
+ commaOnlyOnX0(): string;
24
+ commaAndOnX0(): string;
25
+ commaOnThe(): string;
26
+ commaOnTheLastDayOfTheMonth(): string;
27
+ commaOnTheLastWeekdayOfTheMonth(): string;
28
+ commaDaysBeforeTheLastDayOfTheMonth(): string;
29
+ commaOnTheLastX0OfTheMonth(): string;
30
+ commaOnTheX0OfTheMonth(): string;
31
+ commaX0ThroughX1(): string;
32
+ commaAndX0ThroughX1(): string;
33
+ everyHour(): string;
34
+ everyMinute(): string;
35
+ everyMinuteBetweenX0AndX1(): string;
36
+ everySecond(): string;
37
+ everyX0Hours(): string;
38
+ everyX0Minutes(): string;
39
+ everyX0Seconds(): string;
40
+ fifth(): string;
41
+ first(): string;
42
+ firstWeekday(): string;
43
+ fourth(): string;
44
+ minutesX0ThroughX1PastTheHour(): string;
45
+ second(): string;
46
+ secondsX0ThroughX1PastTheMinute(): string;
47
+ spaceAnd(): string;
48
+ spaceX0OfTheMonth(): string;
49
+ lastDay(): string;
50
+ third(): string;
51
+ weekdayNearestDayX0(): string;
52
+ commaStartingX0(): string;
53
+ daysOfTheWeek(): string[];
54
+ monthsOfTheYear(): string[];
55
+ onTheHour(): string;
56
+ }
@@ -18,8 +18,8 @@ export declare class pt_BR implements Locale {
18
18
  commaEveryX0DaysOfTheWeek(): string;
19
19
  commaEveryX0Months(): string;
20
20
  commaOnDayX0OfTheMonth(): string;
21
- commaOnlyInX0(s?: string): "somente %s" | ", somente em %s";
22
- commaOnlyOnX0(s?: string): ", somente %s" | ", somente de %s";
21
+ commaOnlyInX0(s?: string): ", somente em %s" | "somente %s";
22
+ commaOnlyOnX0(s?: string): ", somente de %s" | ", somente %s";
23
23
  commaAndOnX0(): string;
24
24
  commaOnThe(s?: string, day?: string): ", no" | ", na ";
25
25
  commaOnTheLastDayOfTheMonth(): string;
package/locales/ko.js CHANGED
@@ -132,16 +132,16 @@ var ko = (function () {
132
132
  return "1시간마다";
133
133
  };
134
134
  ko.prototype.atSpace = function () {
135
- return "시간 ";
135
+ return "";
136
136
  };
137
137
  ko.prototype.everyMinuteBetweenX0AndX1 = function () {
138
138
  return "매분 %s~%s";
139
139
  };
140
140
  ko.prototype.at = function () {
141
- return "시간";
141
+ return "";
142
142
  };
143
143
  ko.prototype.spaceAnd = function () {
144
- return "";
144
+ return ",";
145
145
  };
146
146
  ko.prototype.everySecond = function () {
147
147
  return "1초마다";
@@ -168,7 +168,7 @@ var ko = (function () {
168
168
  return "%s시간마다";
169
169
  };
170
170
  ko.prototype.betweenX0AndX1 = function () {
171
- return "%s에서 %s 사이";
171
+ return "%s부터 %s까지";
172
172
  };
173
173
  ko.prototype.atX0 = function () {
174
174
  return "%s에서";
@@ -180,10 +180,10 @@ var ko = (function () {
180
180
  return ", 주 중 %s일마다";
181
181
  };
182
182
  ko.prototype.commaX0ThroughX1 = function () {
183
- return ", %s에서 %s까지";
183
+ return ", %s부터 %s까지";
184
184
  };
185
185
  ko.prototype.commaAndX0ThroughX1 = function () {
186
- return ", %s에서 %s까지";
186
+ return ", %s부터 %s까지";
187
187
  };
188
188
  ko.prototype.first = function () {
189
189
  return "첫 번째";
@@ -216,7 +216,7 @@ var ko = (function () {
216
216
  return ", %s에만";
217
217
  };
218
218
  ko.prototype.commaAndOnX0 = function () {
219
- return ", %s에";
219
+ return ", %s에";
220
220
  };
221
221
  ko.prototype.commaEveryX0Months = function () {
222
222
  return ", %s개월마다";
package/locales/ko.min.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/ko.min",["cronstrue"],e):"object"==typeof exports?exports["locales/ko.min"]=e(require("cronstrue")):t["locales/ko.min"]=e(t.cronstrue)}(globalThis,(t=>(()=>{"use strict";var e={93(e){e.exports=t}},o={};function r(t){var n=o[t];if(void 0!==n)return n.exports;var u=o[t]={exports:{}};return e[t](u,u.exports,r),u.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};r.r(n);var u=r(93),p=r.n(u),c=n;Object.defineProperty(c,"__esModule",{value:!0}),c.ko=void 0;var i=function(){function t(){}return t.prototype.setPeriodBeforeTime=function(){return!0},t.prototype.pm=function(){return"오후"},t.prototype.am=function(){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"표현식 설명을 생성하는 중 오류가 발생했습니다. cron 표현식 구문을 확인하십시오."},t.prototype.everyMinute=function(){return"1분마다"},t.prototype.everyHour=function(){return"1시간마다"},t.prototype.atSpace=function(){return"시간 "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"매분 %s~%s"},t.prototype.at=function(){return"시간"},t.prototype.spaceAnd=function(){return""},t.prototype.everySecond=function(){return"1초마다"},t.prototype.everyX0Seconds=function(){return"%s초마다"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"%s~%s초"},t.prototype.atX0SecondsPastTheMinute=function(){return"%s초"},t.prototype.everyX0Minutes=function(){return"%s분마다"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"%s~%s분"},t.prototype.atX0MinutesPastTheHour=function(){return"%s분"},t.prototype.everyX0Hours=function(){return"%s시간마다"},t.prototype.betweenX0AndX1=function(){return"%s에서 %s 사이"},t.prototype.atX0=function(){return"%s에서"},t.prototype.commaEveryDay=function(){return", 매일"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", 주 중 %s일마다"},t.prototype.commaX0ThroughX1=function(){return", %s에서 %s까지"},t.prototype.commaAndX0ThroughX1=function(){return", %s에서 %s까지"},t.prototype.first=function(){return"첫 번째"},t.prototype.second=function(){return"두 번째"},t.prototype.third=function(){return"세 번째"},t.prototype.fourth=function(){return"네 번째"},t.prototype.fifth=function(){return"다섯 번째"},t.prototype.commaOnThe=function(){return", 매월 "},t.prototype.spaceX0OfTheMonth=function(){return" %s"},t.prototype.lastDay=function(){return"마지막 날"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", 해당 월의 마지막 %s"},t.prototype.commaOnlyOnX0=function(){return", %s에만"},t.prototype.commaAndOnX0=function(){return", %s에"},t.prototype.commaEveryX0Months=function(){return", %s개월마다"},t.prototype.commaOnlyInX0=function(){return", %s에만"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", 해당 월의 마지막 날에"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 매월 마지막 평일"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 해당 월의 마지막 날 %s일 전"},t.prototype.firstWeekday=function(){return"첫 번째 평일"},t.prototype.weekdayNearestDayX0=function(){return"%s일과 가장 가까운 평일"},t.prototype.commaOnTheX0OfTheMonth=function(){return", 매월 %s"},t.prototype.commaEveryX0Days=function(){return", %s일마다"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 해당 월의 %s일에서 %s일까지"},t.prototype.commaOnDayX0OfTheMonth=function(){return", 매월 %s일"},t.prototype.commaEveryMinute=function(){return", 1분마다"},t.prototype.commaEveryHour=function(){return", 1시간마다"},t.prototype.commaEveryX0Years=function(){return", %s년마다"},t.prototype.commaStartingX0=function(){return", %s부터"},t.prototype.daysOfTheWeek=function(){return["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},t.prototype.monthsOfTheYear=function(){return["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},t.prototype.onTheHour=function(){return"정각"},t}();return c.ko=i,p().locales.ko=new i,n})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/ko.min",["cronstrue"],e):"object"==typeof exports?exports["locales/ko.min"]=e(require("cronstrue")):t["locales/ko.min"]=e(t.cronstrue)}(globalThis,(t=>(()=>{"use strict";var e={93(e){e.exports=t}},o={};function r(t){var n=o[t];if(void 0!==n)return n.exports;var u=o[t]={exports:{}};return e[t](u,u.exports,r),u.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};r.r(n);var u=r(93),p=r.n(u),c=n;Object.defineProperty(c,"__esModule",{value:!0}),c.ko=void 0;var i=function(){function t(){}return t.prototype.setPeriodBeforeTime=function(){return!0},t.prototype.pm=function(){return"오후"},t.prototype.am=function(){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"표현식 설명을 생성하는 중 오류가 발생했습니다. cron 표현식 구문을 확인하십시오."},t.prototype.everyMinute=function(){return"1분마다"},t.prototype.everyHour=function(){return"1시간마다"},t.prototype.atSpace=function(){return""},t.prototype.everyMinuteBetweenX0AndX1=function(){return"매분 %s~%s"},t.prototype.at=function(){return""},t.prototype.spaceAnd=function(){return","},t.prototype.everySecond=function(){return"1초마다"},t.prototype.everyX0Seconds=function(){return"%s초마다"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"%s~%s초"},t.prototype.atX0SecondsPastTheMinute=function(){return"%s초"},t.prototype.everyX0Minutes=function(){return"%s분마다"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"%s~%s분"},t.prototype.atX0MinutesPastTheHour=function(){return"%s분"},t.prototype.everyX0Hours=function(){return"%s시간마다"},t.prototype.betweenX0AndX1=function(){return"%s부터 %s까지"},t.prototype.atX0=function(){return"%s에서"},t.prototype.commaEveryDay=function(){return", 매일"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", 주 중 %s일마다"},t.prototype.commaX0ThroughX1=function(){return", %s부터 %s까지"},t.prototype.commaAndX0ThroughX1=function(){return", %s부터 %s까지"},t.prototype.first=function(){return"첫 번째"},t.prototype.second=function(){return"두 번째"},t.prototype.third=function(){return"세 번째"},t.prototype.fourth=function(){return"네 번째"},t.prototype.fifth=function(){return"다섯 번째"},t.prototype.commaOnThe=function(){return", 매월 "},t.prototype.spaceX0OfTheMonth=function(){return" %s"},t.prototype.lastDay=function(){return"마지막 날"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", 해당 월의 마지막 %s"},t.prototype.commaOnlyOnX0=function(){return", %s에만"},t.prototype.commaAndOnX0=function(){return", %s에"},t.prototype.commaEveryX0Months=function(){return", %s개월마다"},t.prototype.commaOnlyInX0=function(){return", %s에만"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", 해당 월의 마지막 날에"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 매월 마지막 평일"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 해당 월의 마지막 날 %s일 전"},t.prototype.firstWeekday=function(){return"첫 번째 평일"},t.prototype.weekdayNearestDayX0=function(){return"%s일과 가장 가까운 평일"},t.prototype.commaOnTheX0OfTheMonth=function(){return", 매월 %s"},t.prototype.commaEveryX0Days=function(){return", %s일마다"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 해당 월의 %s일에서 %s일까지"},t.prototype.commaOnDayX0OfTheMonth=function(){return", 매월 %s일"},t.prototype.commaEveryMinute=function(){return", 1분마다"},t.prototype.commaEveryHour=function(){return", 1시간마다"},t.prototype.commaEveryX0Years=function(){return", %s년마다"},t.prototype.commaStartingX0=function(){return", %s부터"},t.prototype.daysOfTheWeek=function(){return["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},t.prototype.monthsOfTheYear=function(){return["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},t.prototype.onTheHour=function(){return"정각"},t}();return c.ko=i,p().locales.ko=new i,n})()));
package/locales/nn.js ADDED
@@ -0,0 +1,283 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("cronstrue"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("locales/nn", ["cronstrue"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["locales/nn"] = factory(require("cronstrue"));
8
+ else
9
+ root["locales/nn"] = factory(root["cronstrue"]);
10
+ })(globalThis, (__WEBPACK_EXTERNAL_MODULE__93__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 93
16
+ (module) {
17
+
18
+ module.exports = __WEBPACK_EXTERNAL_MODULE__93__;
19
+
20
+ /***/ }
21
+
22
+ /******/ });
23
+ /************************************************************************/
24
+ /******/ // The module cache
25
+ /******/ var __webpack_module_cache__ = {};
26
+ /******/
27
+ /******/ // The require function
28
+ /******/ function __webpack_require__(moduleId) {
29
+ /******/ // Check if module is in cache
30
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
31
+ /******/ if (cachedModule !== undefined) {
32
+ /******/ return cachedModule.exports;
33
+ /******/ }
34
+ /******/ // Create a new module (and put it into the cache)
35
+ /******/ var module = __webpack_module_cache__[moduleId] = {
36
+ /******/ // no module.id needed
37
+ /******/ // no module.loaded needed
38
+ /******/ exports: {}
39
+ /******/ };
40
+ /******/
41
+ /******/ // Execute the module function
42
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
43
+ /******/
44
+ /******/ // Return the exports of the module
45
+ /******/ return module.exports;
46
+ /******/ }
47
+ /******/
48
+ /************************************************************************/
49
+ /******/ /* webpack/runtime/compat get default export */
50
+ /******/ (() => {
51
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
52
+ /******/ __webpack_require__.n = (module) => {
53
+ /******/ var getter = module && module.__esModule ?
54
+ /******/ () => (module['default']) :
55
+ /******/ () => (module);
56
+ /******/ __webpack_require__.d(getter, { a: getter });
57
+ /******/ return getter;
58
+ /******/ };
59
+ /******/ })();
60
+ /******/
61
+ /******/ /* webpack/runtime/define property getters */
62
+ /******/ (() => {
63
+ /******/ // define getter functions for harmony exports
64
+ /******/ __webpack_require__.d = (exports, definition) => {
65
+ /******/ for(var key in definition) {
66
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
67
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
68
+ /******/ }
69
+ /******/ }
70
+ /******/ };
71
+ /******/ })();
72
+ /******/
73
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
74
+ /******/ (() => {
75
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
76
+ /******/ })();
77
+ /******/
78
+ /******/ /* webpack/runtime/make namespace object */
79
+ /******/ (() => {
80
+ /******/ // define __esModule on exports
81
+ /******/ __webpack_require__.r = (exports) => {
82
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
83
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
84
+ /******/ }
85
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
86
+ /******/ };
87
+ /******/ })();
88
+ /******/
89
+ /************************************************************************/
90
+ var __webpack_exports__ = {};
91
+ __webpack_require__.r(__webpack_exports__);
92
+ /* harmony import */ var cronstrue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93);
93
+ /* harmony import */ var cronstrue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cronstrue__WEBPACK_IMPORTED_MODULE_0__);
94
+ var nn_exports = __webpack_exports__;
95
+ "use strict";
96
+ Object.defineProperty(nn_exports, "__esModule", { value: true });
97
+ nn_exports.nn = void 0;
98
+ var nn = (function () {
99
+ function nn() {
100
+ }
101
+ nn.prototype.atX0SecondsPastTheMinuteGt20 = function () {
102
+ return null;
103
+ };
104
+ nn.prototype.atX0MinutesPastTheHourGt20 = function () {
105
+ return null;
106
+ };
107
+ nn.prototype.commaMonthX0ThroughMonthX1 = function () {
108
+ return null;
109
+ };
110
+ nn.prototype.commaYearX0ThroughYearX1 = function () {
111
+ return null;
112
+ };
113
+ nn.prototype.use24HourTimeFormatByDefault = function () {
114
+ return true;
115
+ };
116
+ nn.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {
117
+ return "Ein feil oppstod ved generering av uttrykksskildring. Sjekk cron-syntaksen.";
118
+ };
119
+ nn.prototype.at = function () {
120
+ return "Kl.";
121
+ };
122
+ nn.prototype.atSpace = function () {
123
+ return "Kl.";
124
+ };
125
+ nn.prototype.atX0 = function () {
126
+ return "på %s";
127
+ };
128
+ nn.prototype.atX0MinutesPastTheHour = function () {
129
+ return "på %s minutt etter timen";
130
+ };
131
+ nn.prototype.atX0SecondsPastTheMinute = function () {
132
+ return "på %s sekund etter minuttet";
133
+ };
134
+ nn.prototype.betweenX0AndX1 = function () {
135
+ return "mellom %s og %s";
136
+ };
137
+ nn.prototype.commaBetweenDayX0AndX1OfTheMonth = function () {
138
+ return ", mellom dag %s og %s av månaden";
139
+ };
140
+ nn.prototype.commaEveryDay = function () {
141
+ return ", kvar dag";
142
+ };
143
+ nn.prototype.commaEveryX0Days = function () {
144
+ return ", kvar %s dag";
145
+ };
146
+ nn.prototype.commaEveryX0DaysOfTheWeek = function () {
147
+ return ", kvar %s vekedag";
148
+ };
149
+ nn.prototype.commaEveryX0Months = function () {
150
+ return ", kvar %s månad";
151
+ };
152
+ nn.prototype.commaEveryX0Years = function () {
153
+ return ", kvart %s år";
154
+ };
155
+ nn.prototype.commaOnDayX0OfTheMonth = function () {
156
+ return ", på dag %s av månaden";
157
+ };
158
+ nn.prototype.commaOnlyInX0 = function () {
159
+ return ", berre i %s";
160
+ };
161
+ nn.prototype.commaOnlyOnX0 = function () {
162
+ return ", på %s";
163
+ };
164
+ nn.prototype.commaAndOnX0 = function () {
165
+ return ", og på %s";
166
+ };
167
+ nn.prototype.commaOnThe = function () {
168
+ return ", på ";
169
+ };
170
+ nn.prototype.commaOnTheLastDayOfTheMonth = function () {
171
+ return ", på den siste dagen i månaden";
172
+ };
173
+ nn.prototype.commaOnTheLastWeekdayOfTheMonth = function () {
174
+ return ", den siste vekedagen i månaden";
175
+ };
176
+ nn.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
177
+ return ", %s dagar før den siste dagen i månaden";
178
+ };
179
+ nn.prototype.commaOnTheLastX0OfTheMonth = function () {
180
+ return ", på den siste %s av månaden";
181
+ };
182
+ nn.prototype.commaOnTheX0OfTheMonth = function () {
183
+ return ", på den %s av månaden";
184
+ };
185
+ nn.prototype.commaX0ThroughX1 = function () {
186
+ return ", %s til og med %s";
187
+ };
188
+ nn.prototype.commaAndX0ThroughX1 = function () {
189
+ return ", og %s til og med %s";
190
+ };
191
+ nn.prototype.everyHour = function () {
192
+ return "kvar time";
193
+ };
194
+ nn.prototype.everyMinute = function () {
195
+ return "kvart minutt";
196
+ };
197
+ nn.prototype.everyMinuteBetweenX0AndX1 = function () {
198
+ return "Kvart minutt mellom %s og %s";
199
+ };
200
+ nn.prototype.everySecond = function () {
201
+ return "kvart sekund";
202
+ };
203
+ nn.prototype.everyX0Hours = function () {
204
+ return "kvar %s time";
205
+ };
206
+ nn.prototype.everyX0Minutes = function () {
207
+ return "kvart %s minutt";
208
+ };
209
+ nn.prototype.everyX0Seconds = function () {
210
+ return "kvart %s sekund";
211
+ };
212
+ nn.prototype.fifth = function () {
213
+ return "femte";
214
+ };
215
+ nn.prototype.first = function () {
216
+ return "første";
217
+ };
218
+ nn.prototype.firstWeekday = function () {
219
+ return "første vekedag";
220
+ };
221
+ nn.prototype.fourth = function () {
222
+ return "fjerde";
223
+ };
224
+ nn.prototype.minutesX0ThroughX1PastTheHour = function () {
225
+ return "minutta frå %s til og med %s etter timen";
226
+ };
227
+ nn.prototype.second = function () {
228
+ return "andre";
229
+ };
230
+ nn.prototype.secondsX0ThroughX1PastTheMinute = function () {
231
+ return "sekunda frå %s til og med %s etter minuttet";
232
+ };
233
+ nn.prototype.spaceAnd = function () {
234
+ return " og";
235
+ };
236
+ nn.prototype.spaceX0OfTheMonth = function () {
237
+ return " %s i månaden";
238
+ };
239
+ nn.prototype.lastDay = function () {
240
+ return "den siste dagen";
241
+ };
242
+ nn.prototype.third = function () {
243
+ return "tredje";
244
+ };
245
+ nn.prototype.weekdayNearestDayX0 = function () {
246
+ return "vekedag nærmast dag %s";
247
+ };
248
+ nn.prototype.commaStartingX0 = function () {
249
+ return ", startar %s";
250
+ };
251
+ nn.prototype.daysOfTheWeek = function () {
252
+ return ["sundag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"];
253
+ };
254
+ nn.prototype.monthsOfTheYear = function () {
255
+ return [
256
+ "januar",
257
+ "februar",
258
+ "mars",
259
+ "april",
260
+ "mai",
261
+ "juni",
262
+ "juli",
263
+ "august",
264
+ "september",
265
+ "oktober",
266
+ "november",
267
+ "desember",
268
+ ];
269
+ };
270
+ nn.prototype.onTheHour = function () {
271
+ return "på timen";
272
+ };
273
+ return nn;
274
+ }());
275
+ nn_exports.nn = nn;
276
+
277
+
278
+ (cronstrue__WEBPACK_IMPORTED_MODULE_0___default().locales)["nn"] = new nn();
279
+
280
+ /******/ return __webpack_exports__;
281
+ /******/ })()
282
+ ;
283
+ });
@@ -0,0 +1 @@
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/nn.min",["cronstrue"],e):"object"==typeof exports?exports["locales/nn.min"]=e(require("cronstrue")):t["locales/nn.min"]=e(t.cronstrue)}(globalThis,(t=>(()=>{"use strict";var e={93(e){e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var u=n[t]={exports:{}};return e[t](u,u.exports,r),u.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};r.r(o);var u=r(93),a=r.n(u),p=o;Object.defineProperty(p,"__esModule",{value:!0}),p.nn=void 0;var i=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!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ein feil oppstod ved generering av uttrykksskildring. Sjekk cron-syntaksen."},t.prototype.at=function(){return"Kl."},t.prototype.atSpace=function(){return"Kl."},t.prototype.atX0=function(){return"på %s"},t.prototype.atX0MinutesPastTheHour=function(){return"på %s minutt etter timen"},t.prototype.atX0SecondsPastTheMinute=function(){return"på %s sekund etter minuttet"},t.prototype.betweenX0AndX1=function(){return"mellom %s og %s"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", mellom dag %s og %s av månaden"},t.prototype.commaEveryDay=function(){return", kvar dag"},t.prototype.commaEveryX0Days=function(){return", kvar %s dag"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", kvar %s vekedag"},t.prototype.commaEveryX0Months=function(){return", kvar %s månad"},t.prototype.commaEveryX0Years=function(){return", kvart %s år"},t.prototype.commaOnDayX0OfTheMonth=function(){return", på dag %s av månaden"},t.prototype.commaOnlyInX0=function(){return", berre i %s"},t.prototype.commaOnlyOnX0=function(){return", på %s"},t.prototype.commaAndOnX0=function(){return", og på %s"},t.prototype.commaOnThe=function(){return", på "},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", på den siste dagen i månaden"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", den siste vekedagen i månaden"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dagar før den siste dagen i månaden"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", på den siste %s av månaden"},t.prototype.commaOnTheX0OfTheMonth=function(){return", på den %s av månaden"},t.prototype.commaX0ThroughX1=function(){return", %s til og med %s"},t.prototype.commaAndX0ThroughX1=function(){return", og %s til og med %s"},t.prototype.everyHour=function(){return"kvar time"},t.prototype.everyMinute=function(){return"kvart minutt"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Kvart minutt mellom %s og %s"},t.prototype.everySecond=function(){return"kvart sekund"},t.prototype.everyX0Hours=function(){return"kvar %s time"},t.prototype.everyX0Minutes=function(){return"kvart %s minutt"},t.prototype.everyX0Seconds=function(){return"kvart %s sekund"},t.prototype.fifth=function(){return"femte"},t.prototype.first=function(){return"første"},t.prototype.firstWeekday=function(){return"første vekedag"},t.prototype.fourth=function(){return"fjerde"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutta frå %s til og med %s etter timen"},t.prototype.second=function(){return"andre"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunda frå %s til og med %s etter minuttet"},t.prototype.spaceAnd=function(){return" og"},t.prototype.spaceX0OfTheMonth=function(){return" %s i månaden"},t.prototype.lastDay=function(){return"den siste dagen"},t.prototype.third=function(){return"tredje"},t.prototype.weekdayNearestDayX0=function(){return"vekedag nærmast dag %s"},t.prototype.commaStartingX0=function(){return", startar %s"},t.prototype.daysOfTheWeek=function(){return["sundag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"]},t.prototype.monthsOfTheYear=function(){return["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},t.prototype.onTheHour=function(){return"på timen"},t}();return p.nn=i,a().locales.nn=new i,o})()));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cronstrue",
3
3
  "title": "cRonstrue",
4
- "version": "3.14.0",
4
+ "version": "3.18.0",
5
5
  "description": "Convert cron expressions into human readable descriptions",
6
6
  "author": "Brady Holt",
7
7
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "repository": {
40
40
  "type": "git",
41
- "url": "git+https://github.com/bradymholt/cronstrue.git"
41
+ "url": "git+https://github.com/bradymholt/cRonstrue.git"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"