(function(pe,ge){typeof exports=="object"&&typeof module<"u"?module.exports=ge():typeof define=="function"&&define.amd?define(ge):(pe=typeof globalThis<"u"?globalThis:pe||self,pe["cron-timezone-converter"]=ge())})(this,function(){"use strict";function pe(t,e){const r=un(e);return"formatToParts"in r?an(r,t):on(r,t)}const ge={year:0,month:1,day:2,hour:3,minute:4,second:5};function an(t,e){try{const r=t.formatToParts(e),n=[];for(let s=0;s=0?i:1e3+i,n-s}function dn(t,e,r){let s=t.getTime()-e;const i=je(new Date(s),r);if(e===i)return e;s-=i-e;const a=je(new Date(s),r);return i===a?i:Math.max(i,a)}function kt(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}const vt={};function hn(t){if(vt[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),vt[t]=!0,!0}catch{return!1}}function Dt(t,e){return-cn(t,e)}function mn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yn(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return t[n]}})}),r}var V={};Object.defineProperty(V,"__esModule",{value:!0});class Q extends Error{}class pn extends Q{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class gn extends Q{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class wn extends Q{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ie extends Q{}class Mt extends Q{constructor(e){super(`Invalid unit ${e}`)}}class F extends Q{}class P extends Q{constructor(){super("Zone is an abstract class")}}const f="numeric",Z="short",W="long",_e={year:f,month:f,day:f},Nt={year:f,month:Z,day:f},Tn={year:f,month:Z,day:f,weekday:Z},Et={year:f,month:W,day:f},It={year:f,month:W,day:f,weekday:W},_t={hour:f,minute:f},xt={hour:f,minute:f,second:f},Ct={hour:f,minute:f,second:f,timeZoneName:Z},bt={hour:f,minute:f,second:f,timeZoneName:W},Ft={hour:f,minute:f,hourCycle:"h23"},Vt={hour:f,minute:f,second:f,hourCycle:"h23"},Wt={hour:f,minute:f,second:f,hourCycle:"h23",timeZoneName:Z},Lt={hour:f,minute:f,second:f,hourCycle:"h23",timeZoneName:W},$t={year:f,month:f,day:f,hour:f,minute:f},zt={year:f,month:f,day:f,hour:f,minute:f,second:f},Zt={year:f,month:Z,day:f,hour:f,minute:f},Ut={year:f,month:Z,day:f,hour:f,minute:f,second:f},On={year:f,month:Z,day:f,weekday:Z,hour:f,minute:f},At={year:f,month:W,day:f,hour:f,minute:f,timeZoneName:Z},Ht={year:f,month:W,day:f,hour:f,minute:f,second:f,timeZoneName:Z},Rt={year:f,month:W,day:f,weekday:W,hour:f,minute:f,timeZoneName:W},Yt={year:f,month:W,day:f,weekday:W,hour:f,minute:f,second:f,timeZoneName:W};class ae{get type(){throw new P}get name(){throw new P}get ianaName(){return this.name}get isUniversal(){throw new P}offsetName(e,r){throw new P}formatOffset(e,r){throw new P}offset(e){throw new P}equals(e){throw new P}get isValid(){throw new P}}let Be=null;class we extends ae{static get instance(){return Be===null&&(Be=new we),Be}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return yr(e,r,n)}formatOffset(e,r){return ke(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let xe={};function Sn(t){return xe[t]||(xe[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),xe[t]}const kn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function vn(t,e){const r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,i,a,o,u,l,c]=n;return[a,s,i,o,u,l,c]}function Dn(t,e){const r=t.formatToParts(e),n=[];for(let s=0;s=0?y:1e3+y,(p-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let qt={};function Mn(t,e={}){const r=JSON.stringify([t,e]);let n=qt[r];return n||(n=new Intl.ListFormat(t,e),qt[r]=n),n}let Qe={};function Ke(t,e={}){const r=JSON.stringify([t,e]);let n=Qe[r];return n||(n=new Intl.DateTimeFormat(t,e),Qe[r]=n),n}let Xe={};function Nn(t,e={}){const r=JSON.stringify([t,e]);let n=Xe[r];return n||(n=new Intl.NumberFormat(t,e),Xe[r]=n),n}let et={};function En(t,e={}){const{base:r,...n}=e,s=JSON.stringify([t,n]);let i=et[s];return i||(i=new Intl.RelativeTimeFormat(t,e),et[s]=i),i}let Te=null;function In(){return Te||(Te=new Intl.DateTimeFormat().resolvedOptions().locale,Te)}let Pt={};function _n(t){let e=Pt[t];if(!e){const r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,Pt[t]=e}return e}function xn(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const r=t.indexOf("-u-");if(r===-1)return[t];{let n,s;try{n=Ke(t).resolvedOptions(),s=t}catch{const u=t.substring(0,r);n=Ke(u).resolvedOptions(),s=u}const{numberingSystem:i,calendar:a}=n;return[s,i,a]}}function Cn(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function bn(t){const e=[];for(let r=1;r<=12;r++){const n=T.utc(2009,r,1);e.push(t(n))}return e}function Fn(t){const e=[];for(let r=1;r<=7;r++){const n=T.utc(2016,11,13+r);e.push(t(n))}return e}function be(t,e,r,n){const s=t.listingMode();return s==="error"?null:s==="en"?r(e):n(e)}function Vn(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class Wn{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:s,floor:i,...a}=n;if(!r||Object.keys(a).length>0){const o={useGrouping:!1,...n};n.padTo>0&&(o.minimumIntegerDigits=n.padTo),this.inf=Nn(e,o)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):ot(e,3);return _(r,this.padTo)}}}class Ln{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&Y.create(o).valid?(s=o,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=Ke(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class $n{constructor(e,r,n){this.opts={style:"long",...n},!r&&fr()&&(this.rtf=En(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):rs(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}const zn={firstDay:1,minimalDays:4,weekend:[6,7]};class M{static fromOpts(e){return M.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,s,i=!1){const a=e||I.defaultLocale,o=a||(i?"en-US":In()),u=r||I.defaultNumberingSystem,l=n||I.defaultOutputCalendar,c=it(s)||I.defaultWeekSettings;return new M(o,u,l,c,a)}static resetCache(){Te=null,Qe={},Xe={},et={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:s}={}){return M.create(e,r,n,s)}constructor(e,r,n,s,i){const[a,o,u]=xn(e);this.locale=a,this.numberingSystem=r||o||null,this.outputCalendar=n||u||null,this.weekSettings=s,this.intl=Cn(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Vn(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:M.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,it(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return be(this,e,wr,()=>{const n=r?{month:e,day:"numeric"}:{month:e},s=r?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=bn(i=>this.extract(i,n,"month"))),this.monthsCache[s][e]})}weekdays(e,r=!1){return be(this,e,Sr,()=>{const n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=r?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=Fn(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return be(this,void 0,()=>kr,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[T.utc(2016,11,13,9),T.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return be(this,e,vr,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[T.utc(-40,1,1),T.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){const s=this.dtFormatter(e,r),i=s.formatToParts(),a=i.find(o=>o.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new Wn(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Ln(e,this.intl,r)}relFormatter(e={}){return new $n(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Mn(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:dr()?_n(this.locale):zn}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let tt=null;class C extends ae{static get utcInstance(){return tt===null&&(tt=new C(0)),tt}static instance(e){return e===0?C.utcInstance:new C(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new C($e(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ke(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ke(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return ke(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Gt extends ae{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function G(t,e){if(w(t)||t===null)return e;if(t instanceof ae)return t;if(An(t)){const r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?we.instance:r==="utc"||r==="gmt"?C.utcInstance:C.parseSpecifier(r)||Y.create(t)}else return K(t)?C.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Gt(t)}let Jt=()=>Date.now(),jt="system",Bt=null,Qt=null,Kt=null,Xt=60,er,tr=null;class I{static get now(){return Jt}static set now(e){Jt=e}static set defaultZone(e){jt=e}static get defaultZone(){return G(jt,we.instance)}static get defaultLocale(){return Bt}static set defaultLocale(e){Bt=e}static get defaultNumberingSystem(){return Qt}static set defaultNumberingSystem(e){Qt=e}static get defaultOutputCalendar(){return Kt}static set defaultOutputCalendar(e){Kt=e}static get defaultWeekSettings(){return tr}static set defaultWeekSettings(e){tr=it(e)}static get twoDigitCutoffYear(){return Xt}static set twoDigitCutoffYear(e){Xt=e%100}static get throwOnInvalid(){return er}static set throwOnInvalid(e){er=e}static resetCaches(){M.resetCache(),Y.resetCache()}}class U{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const rr=[0,31,59,90,120,151,181,212,243,273,304,334],nr=[0,31,60,91,121,152,182,213,244,274,305,335];function L(t,e){return new U("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function rt(t,e,r){const n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const s=n.getUTCDay();return s===0?7:s}function sr(t,e,r){return r+(Oe(t)?nr:rr)[e-1]}function ir(t,e){const r=Oe(t)?nr:rr,n=r.findIndex(i=>iSe(n,e,r)?(l=n+1,u=1):l=n,{weekYear:l,weekNumber:u,weekday:o,...Ze(t)}}function ar(t,e=4,r=1){const{weekYear:n,weekNumber:s,weekday:i}=t,a=nt(rt(n,1,e),r),o=ue(n);let u=s*7+i-a-7+e,l;u<1?(l=n-1,u+=ue(l)):u>o?(l=n+1,u-=ue(n)):l=n;const{month:c,day:m}=ir(l,u);return{year:l,month:c,day:m,...Ze(t)}}function st(t){const{year:e,month:r,day:n}=t,s=sr(e,r,n);return{year:e,ordinal:s,...Ze(t)}}function or(t){const{year:e,ordinal:r}=t,{month:n,day:s}=ir(e,r);return{year:e,month:n,day:s,...Ze(t)}}function ur(t,e){if(!w(t.localWeekday)||!w(t.localWeekNumber)||!w(t.localWeekYear)){if(!w(t.weekday)||!w(t.weekNumber)||!w(t.weekYear))throw new ie("Cannot mix locale-based week fields with ISO-based week fields");return w(t.localWeekday)||(t.weekday=t.localWeekday),w(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),w(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Zn(t,e=4,r=1){const n=Ve(t.weekYear),s=$(t.weekNumber,1,Se(t.weekYear,e,r)),i=$(t.weekday,1,7);return n?s?i?!1:L("weekday",t.weekday):L("week",t.weekNumber):L("weekYear",t.weekYear)}function Un(t){const e=Ve(t.year),r=$(t.ordinal,1,ue(t.year));return e?r?!1:L("ordinal",t.ordinal):L("year",t.year)}function lr(t){const e=Ve(t.year),r=$(t.month,1,12),n=$(t.day,1,We(t.year,t.month));return e?r?n?!1:L("day",t.day):L("month",t.month):L("year",t.year)}function cr(t){const{hour:e,minute:r,second:n,millisecond:s}=t,i=$(e,0,23)||e===24&&r===0&&n===0&&s===0,a=$(r,0,59),o=$(n,0,59),u=$(s,0,999);return i?a?o?u?!1:L("millisecond",s):L("second",n):L("minute",r):L("hour",e)}function w(t){return typeof t>"u"}function K(t){return typeof t=="number"}function Ve(t){return typeof t=="number"&&t%1===0}function An(t){return typeof t=="string"}function Hn(t){return Object.prototype.toString.call(t)==="[object Date]"}function fr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function dr(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Rn(t){return Array.isArray(t)?t:[t]}function hr(t,e,r){if(t.length!==0)return t.reduce((n,s)=>{const i=[e(s),s];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function Yn(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function oe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function it(t){if(t==null)return null;if(typeof t!="object")throw new F("Week settings must be an object");if(!$(t.firstDay,1,7)||!$(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!$(e,1,7)))throw new F("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function $(t,e,r){return Ve(t)&&t>=e&&t<=r}function qn(t,e){return t-e*Math.floor(t/e)}function _(t,e=2){const r=t<0;let n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function J(t){if(!(w(t)||t===null||t===""))return parseInt(t,10)}function X(t){if(!(w(t)||t===null||t===""))return parseFloat(t)}function at(t){if(!(w(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function ot(t,e,r=!1){const n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function Oe(t){return t%4===0&&(t%100!==0||t%400===0)}function ue(t){return Oe(t)?366:365}function We(t,e){const r=qn(e-1,12)+1,n=t+(e-r)/12;return r===2?Oe(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Le(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function mr(t,e,r){return-nt(rt(t,1,e),r)+e-1}function Se(t,e=4,r=1){const n=mr(t,e,r),s=mr(t+1,e,r);return(ue(t)-n+s)/7}function ut(t){return t>99?t:t>I.twoDigitCutoffYear?1900+t:2e3+t}function yr(t,e,r,n=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(r,a).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return o?o.value:null}function $e(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function pr(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new F(`Invalid unit value ${t}`);return e}function ze(t,e){const r={};for(const n in t)if(oe(t,n)){const s=t[n];if(s==null)continue;r[e(n)]=pr(s)}return r}function ke(t,e){const r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${_(r,2)}:${_(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${_(r,2)}${_(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Ze(t){return Yn(t,["hour","minute","second","millisecond"])}const Pn=["January","February","March","April","May","June","July","August","September","October","November","December"],gr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Gn=["J","F","M","A","M","J","J","A","S","O","N","D"];function wr(t){switch(t){case"narrow":return[...Gn];case"short":return[...gr];case"long":return[...Pn];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Tr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Or=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Jn=["M","T","W","T","F","S","S"];function Sr(t){switch(t){case"narrow":return[...Jn];case"short":return[...Or];case"long":return[...Tr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const kr=["AM","PM"],jn=["Before Christ","Anno Domini"],Bn=["BC","AD"],Qn=["B","A"];function vr(t){switch(t){case"narrow":return[...Qn];case"short":return[...Bn];case"long":return[...jn];default:return null}}function Kn(t){return kr[t.hour<12?0:1]}function Xn(t,e){return Sr(e)[t.weekday-1]}function es(t,e){return wr(e)[t.month-1]}function ts(t,e){return vr(e)[t.year<0?0:1]}function rs(t,e,r="always",n=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&i){const m=t==="days";switch(e){case 1:return m?"tomorrow":`next ${s[t][0]}`;case-1:return m?"yesterday":`last ${s[t][0]}`;case 0:return m?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),u=o===1,l=s[t],c=n?u?l[1]:l[2]||l[1]:u?s[t][0]:t;return a?`${o} ${c} ago`:`in ${o} ${c}`}function Dr(t,e){let r="";for(const n of t)n.literal?r+=n.val:r+=e(n.val);return r}const ns={D:_e,DD:Nt,DDD:Et,DDDD:It,t:_t,tt:xt,ttt:Ct,tttt:bt,T:Ft,TT:Vt,TTT:Wt,TTTT:Lt,f:$t,ff:Zt,fff:At,ffff:Rt,F:zt,FF:Ut,FFF:Ht,FFFF:Yt};class b{static create(e,r={}){return new b(e,r)}static parseFormat(e){let r=null,n="",s=!1;const i=[];for(let a=0;a0&&i.push({literal:s||/^\s+$/.test(n),val:n}),r=null,n="",s=!s):s||o===r?n+=o:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=o,r=o)}return n.length>0&&i.push({literal:s||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return ns[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return _(e,r);const n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){const n=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(d,y)=>this.loc.extract(e,d,y),a=d=>e.isOffsetFixed&&e.offset===0&&d.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,d.format):"",o=()=>n?Kn(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(d,y)=>n?es(e,d):i(y?{month:d}:{month:d,day:"numeric"},"month"),l=(d,y)=>n?Xn(e,d):i(y?{weekday:d}:{weekday:d,month:"long",day:"numeric"},"weekday"),c=d=>{const y=b.macroTokenToFormatOpts(d);return y?this.formatWithSystemDefault(e,y):d},m=d=>n?ts(e,d):i({era:d},"era"),p=d=>{switch(d){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(d)}};return Dr(b.parseFormat(r),p)}formatDurationFromString(e,r){const n=u=>{switch(u[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=u=>l=>{const c=n(l);return c?this.num(u.get(c),l.length):l},i=b.parseFormat(r),a=i.reduce((u,{literal:l,val:c})=>l?u:u.concat(c),[]),o=e.shiftTo(...a.map(n).filter(u=>u));return Dr(i,s(o))}}const Mr=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function le(...t){const e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function ce(...t){return e=>t.reduce(([r,n,s],i)=>{const[a,o,u]=i(e,s);return[{...r,...a},o||n,u]},[{},null,1]).slice(0,2)}function fe(t,...e){if(t==null)return[null,null];for(const[r,n]of e){const s=r.exec(t);if(s)return n(s)}return[null,null]}function Nr(...t){return(e,r)=>{const n={};let s;for(s=0;sd!==void 0&&(y||d&&c)?-d:d;return[{years:p(X(r)),months:p(X(n)),weeks:p(X(s)),days:p(X(i)),hours:p(X(a)),minutes:p(X(o)),seconds:p(X(u),u==="-0"),milliseconds:p(at(l),m)}]}const ps={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ft(t,e,r,n,s,i,a){const o={year:e.length===2?ut(J(e)):J(e),month:gr.indexOf(r)+1,day:J(n),hour:J(s),minute:J(i)};return a&&(o.second=J(a)),t&&(o.weekday=t.length>3?Tr.indexOf(t)+1:Or.indexOf(t)+1),o}const gs=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function ws(t){const[,e,r,n,s,i,a,o,u,l,c,m]=t,p=ft(e,s,n,r,i,a,o);let d;return u?d=ps[u]:l?d=0:d=$e(c,m),[p,new C(d)]}function Ts(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Os=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ss=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ks=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function xr(t){const[,e,r,n,s,i,a,o]=t;return[ft(e,s,n,r,i,a,o),C.utcInstance]}function vs(t){const[,e,r,n,s,i,a,o]=t;return[ft(e,o,r,n,s,i,a),C.utcInstance]}const Ds=le(is,ct),Ms=le(as,ct),Ns=le(os,ct),Es=le(Ir),Cr=ce(ds,he,ve,De),Is=ce(us,he,ve,De),_s=ce(ls,he,ve,De),xs=ce(he,ve,De);function Cs(t){return fe(t,[Ds,Cr],[Ms,Is],[Ns,_s],[Es,xs])}function bs(t){return fe(Ts(t),[gs,ws])}function Fs(t){return fe(t,[Os,xr],[Ss,xr],[ks,vs])}function Vs(t){return fe(t,[ms,ys])}const Ws=ce(he);function Ls(t){return fe(t,[hs,Ws])}const $s=le(cs,fs),zs=le(_r),Zs=ce(he,ve,De);function Us(t){return fe(t,[$s,Cr],[zs,Zs])}const br="Invalid Duration",Fr={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},As={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Fr},z=146097/400,me=146097/4800,Hs={years:{quarters:4,months:12,weeks:z/7,days:z,hours:z*24,minutes:z*24*60,seconds:z*24*60*60,milliseconds:z*24*60*60*1e3},quarters:{months:3,weeks:z/28,days:z/4,hours:z*24/4,minutes:z*24*60/4,seconds:z*24*60*60/4,milliseconds:z*24*60*60*1e3/4},months:{weeks:me/7,days:me,hours:me*24,minutes:me*24*60,seconds:me*24*60*60,milliseconds:me*24*60*60*1e3},...Fr},ee=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Rs=ee.slice(0).reverse();function j(t,e,r=!1){const n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new S(n)}function Vr(t,e){var r;let n=(r=e.milliseconds)!=null?r:0;for(const s of Rs.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function Wr(t,e){const r=Vr(t,e)<0?-1:1;ee.reduceRight((n,s)=>{if(w(e[s]))return n;if(n){const i=e[n]*r,a=t[s][n],o=Math.floor(i/a);e[s]+=o*r,e[n]-=o*a*r}return s},null),ee.reduce((n,s)=>{if(w(e[s]))return n;if(n){const i=e[n]%1;e[n]-=i,e[s]+=i*t[n][s]}return s},null)}function Ys(t){const e={};for(const[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}class S{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;let n=r?Hs:As;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||M.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return S.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new F(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new S({values:ze(e,S.normalizeUnit),loc:M.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(K(e))return S.fromMillis(e);if(S.isDuration(e))return e;if(typeof e=="object")return S.fromObject(e);throw new F(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[n]=Vs(e);return n?S.fromObject(n,r):S.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[n]=Ls(e);return n?S.fromObject(n,r):S.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new F("need to specify a reason the Duration is invalid");const n=e instanceof U?e:new U(e,r);if(I.throwOnInvalid)throw new wn(n);return new S({invalid:n})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new Mt(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?b.create(this.loc,n).formatDurationFromString(this,e):br}toHuman(e={}){if(!this.isValid)return br;const r=ee.map(n=>{const s=this.values[n];return w(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(s)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=ot(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},T.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Vr(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=S.fromDurationLike(e),n={};for(const s of ee)(oe(r.values,s)||oe(this.values,s))&&(n[s]=r.get(s)+this.get(s));return j(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const r=S.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=pr(e(this.values[n],n));return j(this,{values:r},!0)}get(e){return this[S.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...ze(e,S.normalizeUnit)};return j(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:s,conversionAccuracy:n};return j(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Wr(this.matrix,e),j(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Ys(this.normalize().shiftToAll().toObject());return j(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>S.normalizeUnit(a));const r={},n={},s=this.toObject();let i;for(const a of ee)if(e.indexOf(a)>=0){i=a;let o=0;for(const l in n)o+=this.matrix[l][a]*n[l],n[l]=0;K(s[a])&&(o+=s[a]);const u=Math.trunc(o);r[a]=u,n[a]=(o*1e3-u*1e3)/1e3}else K(s[a])&&(n[a]=s[a]);for(const a in n)n[a]!==0&&(r[i]+=a===i?n[a]:n[a]/this.matrix[i][a]);return Wr(this.matrix,r),j(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return j(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,s){return n===void 0||n===0?s===void 0||s===0:n===s}for(const n of ee)if(!r(this.values[n],e.values[n]))return!1;return!0}}const ye="Invalid Interval";function qs(t,e){return!t||!t.isValid?N.invalid("missing or invalid start"):!e||!e.isValid?N.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?N.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(Ee).filter(a=>this.contains(a)).sort((a,o)=>a.toMillis()-o.toMillis()),n=[];let{s}=this,i=0;for(;s+this.e?this.e:a;n.push(N.fromDateTimes(s,o)),s=o,i+=1}return n}splitBy(e){const r=S.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,s=1,i;const a=[];for(;nu*s));i=+o>+this.e?this.e:o,a.push(N.fromDateTimes(n,i)),n=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,n=this.e=n?null:N.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;const r=this.se.e?this.e:e.e;return N.fromDateTimes(r,n)}static merge(e){const[r,n]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0;const s=[],i=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...i),o=a.sort((u,l)=>u.time-l.time);for(const u of o)n+=u.type==="s"?1:-1,n===1?r=u.time:(r&&+r!=+u.time&&s.push(N.fromDateTimes(r,u.time)),r=null);return N.merge(s)}difference(...e){return N.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ye}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=_e,r={}){return this.isValid?b.create(this.s.loc.clone(r),e).formatInterval(this):ye}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ye}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ye}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ye}toFormat(e,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:ye}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):S.invalid(this.invalidReason)}mapEndpoints(e){return N.fromDateTimes(e(this.s),e(this.e))}}class Me{static hasDST(e=I.defaultZone){const r=T.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return Y.isValidZone(e)}static normalizeZone(e){return G(e,I.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||M.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||M.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||M.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||M.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return M.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return M.create(r,null,"gregory").eras(e)}static features(){return{relative:fr(),localeWeek:dr()}}}function Lr(t,e){const r=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(S.fromMillis(n).as("days"))}function Ps(t,e,r){const n=[["years",(u,l)=>l.year-u.year],["quarters",(u,l)=>l.quarter-u.quarter+(l.year-u.year)*4],["months",(u,l)=>l.month-u.month+(l.year-u.year)*12],["weeks",(u,l)=>{const c=Lr(u,l);return(c-c%7)/7}],["days",Lr]],s={},i=t;let a,o;for(const[u,l]of n)r.indexOf(u)>=0&&(a=u,s[u]=l(t,e),o=i.plus(s),o>e?(s[u]--,t=i.plus(s),t>e&&(o=t,s[u]--,t=i.plus(s))):t=o);return[t,s,o,a]}function Gs(t,e,r,n){let[s,i,a,o]=Ps(t,e,r);const u=e-s,l=r.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);l.length===0&&(a0?S.fromMillis(u,n).shiftTo(...l).plus(c):c}const dt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},$r={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Js=dt.hanidec.replace(/[\[|\]]/g,"").split("");function js(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r=i&&n<=a&&(e+=n-i)}}return parseInt(e,10)}else return e}function A({numberingSystem:t},e=""){return new RegExp(`${dt[t||"latn"]}${e}`)}const Bs="missing Intl.DateTimeFormat.formatToParts support";function k(t,e=r=>r){return{regex:t,deser:([r])=>e(js(r))}}const zr="[  ]",Zr=new RegExp(zr,"g");function Qs(t){return t.replace(/\./g,"\\.?").replace(Zr,zr)}function Ur(t){return t.replace(/\./g,"").replace(Zr," ").toLowerCase()}function H(t,e){return t===null?null:{regex:RegExp(t.map(Qs).join("|")),deser:([r])=>t.findIndex(n=>Ur(r)===Ur(n))+e}}function Ar(t,e){return{regex:t,deser:([,r,n])=>$e(r,n),groups:e}}function Ue(t){return{regex:t,deser:([e])=>e}}function Ks(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Xs(t,e){const r=A(e),n=A(e,"{2}"),s=A(e,"{3}"),i=A(e,"{4}"),a=A(e,"{6}"),o=A(e,"{1,2}"),u=A(e,"{1,3}"),l=A(e,"{1,6}"),c=A(e,"{1,9}"),m=A(e,"{2,4}"),p=A(e,"{4,6}"),d=E=>({regex:RegExp(Ks(E.val)),deser:([O])=>O,literal:!0}),D=(E=>{if(t.literal)return d(E);switch(E.val){case"G":return H(e.eras("short"),0);case"GG":return H(e.eras("long"),0);case"y":return k(l);case"yy":return k(m,ut);case"yyyy":return k(i);case"yyyyy":return k(p);case"yyyyyy":return k(a);case"M":return k(o);case"MM":return k(n);case"MMM":return H(e.months("short",!0),1);case"MMMM":return H(e.months("long",!0),1);case"L":return k(o);case"LL":return k(n);case"LLL":return H(e.months("short",!1),1);case"LLLL":return H(e.months("long",!1),1);case"d":return k(o);case"dd":return k(n);case"o":return k(u);case"ooo":return k(s);case"HH":return k(n);case"H":return k(o);case"hh":return k(n);case"h":return k(o);case"mm":return k(n);case"m":return k(o);case"q":return k(o);case"qq":return k(n);case"s":return k(o);case"ss":return k(n);case"S":return k(u);case"SSS":return k(s);case"u":return Ue(c);case"uu":return Ue(o);case"uuu":return k(r);case"a":return H(e.meridiems(),0);case"kkkk":return k(i);case"kk":return k(m,ut);case"W":return k(o);case"WW":return k(n);case"E":case"c":return k(r);case"EEE":return H(e.weekdays("short",!1),1);case"EEEE":return H(e.weekdays("long",!1),1);case"ccc":return H(e.weekdays("short",!0),1);case"cccc":return H(e.weekdays("long",!0),1);case"Z":case"ZZ":return Ar(new RegExp(`([+-]${o.source})(?::(${n.source}))?`),2);case"ZZZ":return Ar(new RegExp(`([+-]${o.source})(${n.source})?`),2);case"z":return Ue(/[a-z_+-/]{1,256}?/i);case" ":return Ue(/[^\S\n\r]/);default:return d(E)}})(t)||{invalidReason:Bs};return D.token=t,D}const ei={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function ti(t,e,r){const{type:n,value:s}=t;if(n==="literal"){const u=/^\s+$/.test(s);return{literal:!u,val:u?" ":s}}const i=e[n];let a=n;n==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=r.hour12?"hour12":"hour24");let o=ei[a];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function ri(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function ni(t,e,r){const n=t.match(e);if(n){const s={};let i=1;for(const a in r)if(oe(r,a)){const o=r[a],u=o.groups?o.groups+1:1;!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(n.slice(i,i+u))),i+=u}return[n,s]}else return[n,{}]}function si(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return w(t.z)||(r=Y.create(t.z)),w(t.Z)||(r||(r=new C(t.Z)),n=t.Z),w(t.q)||(t.M=(t.q-1)*3+1),w(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),w(t.u)||(t.S=at(t.u)),[Object.keys(t).reduce((i,a)=>{const o=e(a);return o&&(i[o]=t[a]),i},{}),r,n]}let ht=null;function ii(){return ht||(ht=T.fromMillis(1555555555555)),ht}function ai(t,e){if(t.literal)return t;const r=b.macroTokenToFormatOpts(t.val),n=Yr(r,e);return n==null||n.includes(void 0)?t:n}function Hr(t,e){return Array.prototype.concat(...t.map(r=>ai(r,e)))}function Rr(t,e,r){const n=Hr(b.parseFormat(r),t),s=n.map(a=>Xs(a,t)),i=s.find(a=>a.invalidReason);if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};{const[a,o]=ri(s),u=RegExp(a,"i"),[l,c]=ni(e,u,o),[m,p,d]=c?si(c):[null,null,void 0];if(oe(c,"a")&&oe(c,"H"))throw new ie("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:u,rawMatches:l,matches:c,result:m,zone:p,specificOffset:d}}}function oi(t,e,r){const{result:n,zone:s,specificOffset:i,invalidReason:a}=Rr(t,e,r);return[n,s,i,a]}function Yr(t,e){if(!t)return null;const n=b.create(e,t).dtFormatter(ii()),s=n.formatToParts(),i=n.resolvedOptions();return s.map(a=>ti(a,t,i))}const mt="Invalid DateTime",qr=864e13;function Ae(t){return new U("unsupported zone",`the zone "${t.name}" is not supported`)}function yt(t){return t.weekData===null&&(t.weekData=Fe(t.c)),t.weekData}function pt(t){return t.localWeekData===null&&(t.localWeekData=Fe(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function te(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new T({...r,...e,old:r})}function Pr(t,e,r){let n=t-e*60*1e3;const s=r.offset(n);if(e===s)return[n,e];n-=(s-e)*60*1e3;const i=r.offset(n);return s===i?[n,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function He(t,e){t+=e*60*1e3;const r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Re(t,e,r){return Pr(Le(t),e,r)}function Gr(t,e){const r=t.o,n=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:n,month:s,day:Math.min(t.c.day,We(n,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=S.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=Le(i);let[u,l]=Pr(o,r,t.zone);return a!==0&&(u+=a,l=t.zone.offset(u)),{ts:u,o:l}}function Ne(t,e,r,n,s,i){const{setZone:a,zone:o}=r;if(t&&Object.keys(t).length!==0||e){const u=e||o,l=T.fromObject(t,{...r,zone:u,specificOffset:i});return a?l:l.setZone(o)}else return T.invalid(new U("unparsable",`the input "${s}" can't be parsed as ${n}`))}function Ye(t,e,r=!0){return t.isValid?b.create(M.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function gt(t,e){const r=t.c.year>9999||t.c.year<0;let n="";return r&&t.c.year>=0&&(n+="+"),n+=_(t.c.year,r?6:4),e?(n+="-",n+=_(t.c.month),n+="-",n+=_(t.c.day)):(n+=_(t.c.month),n+=_(t.c.day)),n}function Jr(t,e,r,n,s,i){let a=_(t.c.hour);return e?(a+=":",a+=_(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(a+=":")):a+=_(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(a+=_(t.c.second),(t.c.millisecond!==0||!n)&&(a+=".",a+=_(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!i?a+="Z":t.o<0?(a+="-",a+=_(Math.trunc(-t.o/60)),a+=":",a+=_(Math.trunc(-t.o%60))):(a+="+",a+=_(Math.trunc(t.o/60)),a+=":",a+=_(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const jr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ui={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},li={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Br=["year","month","day","hour","minute","second","millisecond"],ci=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],fi=["year","ordinal","hour","minute","second","millisecond"];function di(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Mt(t);return e}function Qr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return di(t)}}function Kr(t,e){const r=G(e.zone,I.defaultZone),n=M.fromObject(e),s=I.now();let i,a;if(w(t.year))i=s;else{for(const l of Br)w(t[l])&&(t[l]=jr[l]);const o=lr(t)||cr(t);if(o)return T.invalid(o);const u=r.offset(s);[i,a]=Re(t,u,r)}return new T({ts:i,zone:r,loc:n,o:a})}function Xr(t,e,r){const n=w(r.round)?!0:r.round,s=(a,o)=>(a=ot(a,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(a,o)),i=a=>r.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(r.unit)return s(i(r.unit),r.unit);for(const a of r.units){const o=i(a);if(Math.abs(o)>=1)return s(o,a)}return s(t>e?-0:0,r.units[r.units.length-1])}function en(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}class T{constructor(e){const r=e.zone||I.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new U("invalid input"):null)||(r.isValid?null:Ae(r));this.ts=w(e.ts)?I.now():e.ts;let s=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[s,i]=[e.old.c,e.old.o];else{const o=r.offset(this.ts);s=He(this.ts,o),n=Number.isNaN(s.year)?new U("invalid input"):null,s=n?null:s,i=n?null:o}this._zone=r,this.loc=e.loc||M.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new T({})}static local(){const[e,r]=en(arguments),[n,s,i,a,o,u,l]=r;return Kr({year:n,month:s,day:i,hour:a,minute:o,second:u,millisecond:l},e)}static utc(){const[e,r]=en(arguments),[n,s,i,a,o,u,l]=r;return e.zone=C.utcInstance,Kr({year:n,month:s,day:i,hour:a,minute:o,second:u,millisecond:l},e)}static fromJSDate(e,r={}){const n=Hn(e)?e.valueOf():NaN;if(Number.isNaN(n))return T.invalid("invalid input");const s=G(r.zone,I.defaultZone);return s.isValid?new T({ts:n,zone:s,loc:M.fromObject(r)}):T.invalid(Ae(s))}static fromMillis(e,r={}){if(K(e))return e<-qr||e>qr?T.invalid("Timestamp out of range"):new T({ts:e,zone:G(r.zone,I.defaultZone),loc:M.fromObject(r)});throw new F(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(K(e))return new T({ts:e*1e3,zone:G(r.zone,I.defaultZone),loc:M.fromObject(r)});throw new F("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const n=G(r.zone,I.defaultZone);if(!n.isValid)return T.invalid(Ae(n));const s=M.fromObject(r),i=ze(e,Qr),{minDaysInFirstWeek:a,startOfWeek:o}=ur(i,s),u=I.now(),l=w(r.specificOffset)?n.offset(u):r.specificOffset,c=!w(i.ordinal),m=!w(i.year),p=!w(i.month)||!w(i.day),d=m||p,y=i.weekYear||i.weekNumber;if((d||c)&&y)throw new ie("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&c)throw new ie("Can't mix ordinal dates with month/day");const D=y||i.weekday&&!d;let E,O,v=He(u,l);D?(E=ci,O=ui,v=Fe(v,a,o)):c?(E=fi,O=li,v=st(v)):(E=Br,O=jr);let x=!1;for(const Ie of E){const Wi=i[Ie];w(Wi)?x?i[Ie]=O[Ie]:i[Ie]=v[Ie]:x=!0}const R=D?Zn(i,a,o):c?Un(i):lr(i),q=R||cr(i);if(q)return T.invalid(q);const bi=D?ar(i,a,o):c?or(i):i,[Fi,Vi]=Re(bi,l,n),Tt=new T({ts:Fi,zone:n,o:Vi,loc:s});return i.weekday&&d&&e.weekday!==Tt.weekday?T.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${Tt.toISO()}`):Tt}static fromISO(e,r={}){const[n,s]=Cs(e);return Ne(n,s,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[n,s]=bs(e);return Ne(n,s,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[n,s]=Fs(e);return Ne(n,s,r,"HTTP",r)}static fromFormat(e,r,n={}){if(w(e)||w(r))throw new F("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=n,a=M.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[o,u,l,c]=oi(a,e,r);return c?T.invalid(c):Ne(o,u,n,`format ${r}`,e,l)}static fromString(e,r,n={}){return T.fromFormat(e,r,n)}static fromSQL(e,r={}){const[n,s]=Us(e);return Ne(n,s,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new F("need to specify a reason the DateTime is invalid");const n=e instanceof U?e:new U(e,r);if(I.throwOnInvalid)throw new pn(n);return new T({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){const n=Yr(e,M.fromObject(r));return n?n.map(s=>s?s.val:null).join(""):null}static expandFormat(e,r={}){return Hr(b.parseFormat(e),M.fromObject(r)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?yt(this).weekYear:NaN}get weekNumber(){return this.isValid?yt(this).weekNumber:NaN}get weekday(){return this.isValid?yt(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?pt(this).weekday:NaN}get localWeekNumber(){return this.isValid?pt(this).weekNumber:NaN}get localWeekYear(){return this.isValid?pt(this).weekYear:NaN}get ordinal(){return this.isValid?st(this.c).ordinal:NaN}get monthShort(){return this.isValid?Me.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Me.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Me.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Me.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,r=6e4,n=Le(this.c),s=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-s*r),o=this.zone.offset(n-i*r);if(a===o)return[this];const u=n-a*r,l=n-o*r,c=He(u,a),m=He(l,o);return c.hour===m.hour&&c.minute===m.minute&&c.second===m.second&&c.millisecond===m.millisecond?[te(this,{ts:u}),te(this,{ts:l})]:[this]}get isInLeapYear(){return Oe(this.year)}get daysInMonth(){return We(this.year,this.month)}get daysInYear(){return this.isValid?ue(this.year):NaN}get weeksInWeekYear(){return this.isValid?Se(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Se(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:n,calendar:s}=b.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:s}}toUTC(e=0,r={}){return this.setZone(C.instance(e),r)}toLocal(){return this.setZone(I.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=G(e,I.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(r||n){const i=e.offset(this.ts),a=this.toObject();[s]=Re(a,i,e)}return te(this,{ts:s,zone:e})}else return T.invalid(Ae(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){const s=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return te(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=ze(e,Qr),{minDaysInFirstWeek:n,startOfWeek:s}=ur(r,this.loc),i=!w(r.weekYear)||!w(r.weekNumber)||!w(r.weekday),a=!w(r.ordinal),o=!w(r.year),u=!w(r.month)||!w(r.day),l=o||u,c=r.weekYear||r.weekNumber;if((l||a)&&c)throw new ie("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new ie("Can't mix ordinal dates with month/day");let m;i?m=ar({...Fe(this.c,n,s),...r},n,s):w(r.ordinal)?(m={...this.toObject(),...r},w(r.day)&&(m.day=Math.min(We(m.year,m.month),m.day))):m=or({...st(this.c),...r});const[p,d]=Re(m,this.o,this.zone);return te(this,{ts:p,o:d})}plus(e){if(!this.isValid)return this;const r=S.fromDurationLike(e);return te(this,Gr(this,r))}minus(e){if(!this.isValid)return this;const r=S.fromDurationLike(e).negate();return te(this,Gr(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},s=S.normalizeUnit(e);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(s==="weeks")if(r){const i=this.loc.getStartOfWeek(),{weekday:a}=this;athis.valueOf(),o=a?this:e,u=a?e:this,l=Gs(o,u,i,s);return a?l.negate():l}diffNow(e="milliseconds",r={}){return this.diff(T.now(),e,r)}until(e){return this.isValid?N.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(r,n)<=s&&s<=i.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||T.fromObject({},{zone:this.zone}),n=e.padding?thisr.valueOf(),Math.min)}static max(...e){if(!e.every(T.isDateTime))throw new F("max requires all arguments be DateTimes");return hr(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){const{locale:s=null,numberingSystem:i=null}=n,a=M.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return Rr(a,e,r)}static fromStringExplain(e,r,n={}){return T.fromFormatExplain(e,r,n)}static get DATE_SHORT(){return _e}static get DATE_MED(){return Nt}static get DATE_MED_WITH_WEEKDAY(){return Tn}static get DATE_FULL(){return Et}static get DATE_HUGE(){return It}static get TIME_SIMPLE(){return _t}static get TIME_WITH_SECONDS(){return xt}static get TIME_WITH_SHORT_OFFSET(){return Ct}static get TIME_WITH_LONG_OFFSET(){return bt}static get TIME_24_SIMPLE(){return Ft}static get TIME_24_WITH_SECONDS(){return Vt}static get TIME_24_WITH_SHORT_OFFSET(){return Wt}static get TIME_24_WITH_LONG_OFFSET(){return Lt}static get DATETIME_SHORT(){return $t}static get DATETIME_SHORT_WITH_SECONDS(){return zt}static get DATETIME_MED(){return Zt}static get DATETIME_MED_WITH_SECONDS(){return Ut}static get DATETIME_MED_WITH_WEEKDAY(){return On}static get DATETIME_FULL(){return At}static get DATETIME_FULL_WITH_SECONDS(){return Ht}static get DATETIME_HUGE(){return Rt}static get DATETIME_HUGE_WITH_SECONDS(){return Yt}}function Ee(t){if(T.isDateTime(t))return t;if(t&&t.valueOf&&K(t.valueOf()))return T.fromJSDate(t);if(t&&typeof t=="object")return T.fromObject(t);throw new F(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const hi="3.4.4";V.DateTime=T,V.Duration=S,V.FixedOffsetZone=C,V.IANAZone=Y,V.Info=Me,V.Interval=N,V.InvalidZone=Gt,V.Settings=I,V.SystemZone=we,V.VERSION=hi,V.Zone=ae;var re=V;g.prototype.addYear=function(){this._date=this._date.plus({years:1})},g.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")},g.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")},g.prototype.addHour=function(){var t=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=t&&(this._date=this._date.plus({hours:1}))},g.prototype.addMinute=function(){var t=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date=t&&(this._date=this._date.minus({hours:1}))},g.prototype.subtractMinute=function(){var t=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>t&&(this._date=this._date.minus({hours:1}))},g.prototype.subtractSecond=function(){var t=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>t&&(this._date=this._date.minus({hours:1}))},g.prototype.getDate=function(){return this._date.day},g.prototype.getFullYear=function(){return this._date.year},g.prototype.getDay=function(){var t=this._date.weekday;return t==7?0:t},g.prototype.getMonth=function(){return this._date.month-1},g.prototype.getHours=function(){return this._date.hour},g.prototype.getMinutes=function(){return this._date.minute},g.prototype.getSeconds=function(){return this._date.second},g.prototype.getMilliseconds=function(){return this._date.millisecond},g.prototype.getTime=function(){return this._date.valueOf()},g.prototype.getUTCDate=function(){return this._getUTC().day},g.prototype.getUTCFullYear=function(){return this._getUTC().year},g.prototype.getUTCDay=function(){var t=this._getUTC().weekday;return t==7?0:t},g.prototype.getUTCMonth=function(){return this._getUTC().month-1},g.prototype.getUTCHours=function(){return this._getUTC().hour},g.prototype.getUTCMinutes=function(){return this._getUTC().minute},g.prototype.getUTCSeconds=function(){return this._getUTC().second},g.prototype.toISOString=function(){return this._date.toUTC().toISO()},g.prototype.toJSON=function(){return this._date.toJSON()},g.prototype.setDate=function(t){this._date=this._date.set({day:t})},g.prototype.setFullYear=function(t){this._date=this._date.set({year:t})},g.prototype.setDay=function(t){this._date=this._date.set({weekday:t})},g.prototype.setMonth=function(t){this._date=this._date.set({month:t+1})},g.prototype.setHours=function(t){this._date=this._date.set({hour:t})},g.prototype.setMinutes=function(t){this._date=this._date.set({minute:t})},g.prototype.setSeconds=function(t){this._date=this._date.set({second:t})},g.prototype.setMilliseconds=function(t){this._date=this._date.set({millisecond:t})},g.prototype._getUTC=function(){return this._date.toUTC()},g.prototype.toString=function(){return this.toDate().toString()},g.prototype.toDate=function(){return this._date.toJSDate()},g.prototype.isLastDayOfMonth=function(){var t=this._date.plus({days:1}).startOf("day");return this._date.month!==t.month},g.prototype.isLastWeekdayOfMonth=function(){var t=this._date.plus({days:7}).startOf("day");return this._date.month!==t.month};function g(t,e){var r={zone:e};if(t?t instanceof g?this._date=t._date:t instanceof Date?this._date=re.DateTime.fromJSDate(t,r):typeof t=="number"?this._date=re.DateTime.fromMillis(t,r):typeof t=="string"&&(this._date=re.DateTime.fromISO(t,r),this._date.isValid||(this._date=re.DateTime.fromRFC2822(t,r)),this._date.isValid||(this._date=re.DateTime.fromSQL(t,r)),this._date.isValid||(this._date=re.DateTime.fromFormat(t,"EEE, d MMM yyyy HH:mm:ss",r))):this._date=re.DateTime.local(),!this._date||!this._date.isValid)throw new Error("CronDate: unhandled timestamp: "+JSON.stringify(t));e&&e!==this._date.zoneName&&(this._date=this._date.setZone(e))}var mi=g;function ne(t){return{start:t,count:1}}function tn(t,e){t.end=e,t.step=e-t.start,t.count=2}function wt(t,e,r){e&&(e.count===2?(t.push(ne(e.start)),t.push(ne(e.end))):t.push(e)),r&&t.push(r)}function yi(t){for(var e=[],r=void 0,n=0;nl.end?a=a.concat(Array.from({length:l.end-l.start+1}).map(function(p,d){var y=l.start+d;return(y-l.start)%l.step===0?y:null}).filter(function(p){return p!=null})):l.end===r-l.step+1?a.push(l.start+"/"+l.step):a.push(l.start+"-"+l.end+"/"+l.step)}return a.join(",")}var Ti=wi,se=mi,Oi=Ti,rn=1e4;function h(t,e){this._options=e,this._utc=e.utc||!1,this._tz=this._utc?"UTC":e.tz,this._currentDate=new se(e.currentDate,this._tz),this._startDate=e.startDate?new se(e.startDate,this._tz):null,this._endDate=e.endDate?new se(e.endDate,this._tz):null,this._isIterator=e.iterator||!1,this._hasIterated=!1,this._nthDayOfWeek=e.nthDayOfWeek||0,this.fields=h._freezeFields(t)}h.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"],h.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"},h.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}],h.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31],h.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}},h.parseDefaults=["0","*","*","*","*","*"],h.standardValidCharacters=/^[,*\d/-]+$/,h.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/,h.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/,h.validCharacters={second:h.standardValidCharacters,minute:h.standardValidCharacters,hour:h.standardValidCharacters,dayOfMonth:h.dayOfMonthValidCharacters,month:h.standardValidCharacters,dayOfWeek:h.dayOfWeekValidCharacters},h._isValidConstraintChar=function(e,r){return typeof r!="string"?!1:e.chars.some(function(n){return r.indexOf(n)>-1})},h._parseField=function(e,r,n){switch(e){case"month":case"dayOfWeek":var s=h.aliases[e];r=r.replace(/[a-z]{3}/gi,function(u){if(u=u.toLowerCase(),typeof s[u]<"u")return s[u];throw new Error('Validation error, cannot resolve alias "'+u+'"')});break}if(!h.validCharacters[e].test(r))throw new Error("Invalid characters, got value: "+r);r.indexOf("*")!==-1?r=r.replace(/\*/g,n.min+"-"+n.max):r.indexOf("?")!==-1&&(r=r.replace(/\?/g,n.min+"-"+n.max));function i(u){var l=[];function c(y){if(y instanceof Array)for(var D=0,E=y.length;Dn.max)throw new Error("Constraint error, got value "+O+" expected range "+n.min+"-"+n.max);l.push(O)}else{if(h._isValidConstraintChar(n,y)){l.push(y);return}var v=+y;if(Number.isNaN(v)||vn.max)throw new Error("Constraint error, got value "+y+" expected range "+n.min+"-"+n.max);e==="dayOfWeek"&&(v=v%7),l.push(v)}}var m=u.split(",");if(!m.every(function(y){return y.length>0}))throw new Error("Invalid list value format");if(m.length>1)for(var p=0,d=m.length;p2)throw new Error("Invalid repeat: "+u);return c.length>1?(c[0]==+c[0]&&(c=[c[0]+"-"+n.max,c[1]]),o(c[0],c[c.length-1])):o(u,l)}function o(u,l){var c=[],m=u.split("-");if(m.length>1){if(m.length<2)return+u;if(!m[0].length){if(!m[1].length)throw new Error("Invalid range: "+u);return+u}var p=+m[0],d=+m[1];if(Number.isNaN(p)||Number.isNaN(d)||pn.max)throw new Error("Constraint error, got range "+p+"-"+d+" expected range "+n.min+"-"+n.max);if(p>d)throw new Error("Invalid range: "+u);var y=+l;if(Number.isNaN(y)||y<=0)throw new Error("Constraint error, cannot repeat at every "+y+" time.");e==="dayOfWeek"&&d%7===0&&c.push(0);for(var D=p,E=d;D<=E;D++){var O=c.indexOf(D)!==-1;!O&&y>0&&y%l===0?(y=1,c.push(D)):y++}return c}return Number.isNaN(+u)?u:+u}return i(r)},h._sortCompareFn=function(t,e){var r=typeof t=="number",n=typeof e=="number";return r&&n?t-e:!r&&n?1:r&&!n?-1:t.localeCompare(e)},h._handleMaxDaysInMonth=function(t){if(t.month.length===1){var e=h.daysInMonth[t.month[0]-1];if(t.dayOfMonth[0]>e)throw new Error("Invalid explicit day of month definition");return t.dayOfMonth.filter(function(r){return r==="L"?!0:r<=e}).sort(h._sortCompareFn)}},h._freezeFields=function(t){for(var e=0,r=h.map.length;e=O)return v[x]===O;return v[0]===O}function n(O,v){if(v<6){if(O.getDate()<8&&v===1)return!0;var x=O.getDate()%7?1:0,R=O.getDate()-O.getDate()%7,q=Math.floor(R/7)+x;return q===v}return!1}function s(O){return O.length>0&&O.some(function(v){return typeof v=="string"&&v.indexOf("L")>=0})}e=e||!1;var i=e?"subtract":"add",a=new se(this._currentDate,this._tz),o=this._startDate,u=this._endDate,l=a.getTime(),c=0;function m(O){return O.some(function(v){if(!s([v]))return!1;var x=Number.parseInt(v[0])%7;if(Number.isNaN(x))throw new Error("Invalid last weekday of the month expression: "+v);return a.getDay()===x&&a.isLastWeekdayOfMonth()})}for(;c=h.daysInMonth[a.getMonth()],D=this.fields.dayOfWeek.length===h.constraints[5].max-h.constraints[5].min+1,E=a.getHours();if(!p&&(!d||D)){this._applyTimezoneShift(a,i,"Day");continue}if(!y&&D&&!p){this._applyTimezoneShift(a,i,"Day");continue}if(y&&!D&&!d){this._applyTimezoneShift(a,i,"Day");continue}if(this._nthDayOfWeek>0&&!n(a,this._nthDayOfWeek)){this._applyTimezoneShift(a,i,"Day");continue}if(!r(a.getMonth()+1,this.fields.month)){this._applyTimezoneShift(a,i,"Month");continue}if(r(E,this.fields.hour)){if(this._dstEnd===E&&!e){this._dstEnd=null,this._applyTimezoneShift(a,"add","Hour");continue}}else if(this._dstStart!==E){this._dstStart=null,this._applyTimezoneShift(a,i,"Hour");continue}else if(!r(E-1,this.fields.hour)){a[i+"Hour"]();continue}if(!r(a.getMinutes(),this.fields.minute)){this._applyTimezoneShift(a,i,"Minute");continue}if(!r(a.getSeconds(),this.fields.second)){this._applyTimezoneShift(a,i,"Second");continue}if(l===a.getTime()){i==="add"||a.getMilliseconds()===0?this._applyTimezoneShift(a,i,"Second"):a.setMilliseconds(0);continue}break}if(c>=rn)throw new Error("Invalid expression, loop limit exceeded");return this._currentDate=new se(a,this._tz),this._hasIterated=!0,a},h.prototype.next=function(){var e=this._findSchedule();return this._isIterator?{value:e,done:!this.hasNext()}:e},h.prototype.prev=function(){var e=this._findSchedule(!0);return this._isIterator?{value:e,done:!this.hasPrev()}:e},h.prototype.hasNext=function(){var t=this._currentDate,e=this._hasIterated;try{return this._findSchedule(),!0}catch{return!1}finally{this._currentDate=t,this._hasIterated=e}},h.prototype.hasPrev=function(){var t=this._currentDate,e=this._hasIterated;try{return this._findSchedule(!0),!0}catch{return!1}finally{this._currentDate=t,this._hasIterated=e}},h.prototype.iterate=function(e,r){var n=[];if(e>=0)for(var s=0,i=e;si;s--)try{var a=this.prev();n.push(a),r&&r(a,s)}catch{break}return n},h.prototype.reset=function(e){this._currentDate=new se(e||this._options.currentDate)},h.prototype.stringify=function(e){for(var r=[],n=e?0:1,s=h.map.length;n"u"&&(a.currentDate=new se(void 0,n._tz)),h.predefined[i]&&(i=h.predefined[i]);var o=[],u=(i+"").trim().split(/\s+/);if(u.length>6)throw new Error("Invalid cron expression");for(var l=h.map.length-u.length,c=0,m=h.map.length;cm?c:c-l];if(c1){var q=+R[R.length-1];if(/,/.test(x))throw new Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(x))throw new Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(x))throw new Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(R.length>2||Number.isNaN(q)||q<1||q>5)throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return a.nthDayOfWeek=q,R[0]}return x}}return s(e,r)},h.fieldsToExpression=function(e,r){function n(p,d,y){if(!d)throw new Error("Validation error, Field "+p+" is missing");if(d.length===0)throw new Error("Validation error, Field "+p+" contains no values");for(var D=0,E=d.length;Dy.max))throw new Error("Constraint error, got value "+O+" expected range "+y.min+"-"+y.max)}}for(var s={},i=0,a=h.map.length;i6)return{interval:qe.parse(r.slice(0,6).join(" ")),command:r.slice(6,r.length)};throw new Error("Invalid entry: "+e)},B.parseExpression=function(e,r){return qe.parse(e,r)},B.fieldsToExpression=function(e,r){return qe.fieldsToExpression(e,r)},B.parseString=function(e){for(var r=e.split(` `),n={variables:{},expressions:[],errors:{}},s=0,i=r.length;s0){if(u.match(/^#/))continue;if(o=u.match(/^(.*)=(.*)$/))n.variables[o[1]]=o[2];else{var l=null;try{l=B._parseEntry("0 "+u),n.expressions.push(l.interval)}catch(c){n.errors[u]=c}}}}return n},B.parseFile=function(e,r){ki.readFile(e,function(n,s){if(n){r(n);return}return r(null,B.parseString(s.toString()))})};var vi=B;const Pe=mn(vi),Di=(t,e,r,n=!0)=>{const s=Pe.parseExpression(t),i=new Date,a=(Dt(r,i)-Dt(e,i))/1e3/60,o=Mi(s.fields.hour[0],s.fields.minute[0],a),u=Ni(t);u.minute=_i(u.minute,o.minutes),u.hour=Ii(u.hour,o.hours),(u.dayOfMonth.indexOf(1)>=0&&o.days===-1||u.dayOfMonth.indexOf(31)>=0&&o.days===1)&&(u.month=sn(u.month,o.days)),u.dayOfMonth=xi(u.dayOfMonth,o.days),u.dayOfWeek=Ci(u.dayOfWeek,o.days);try{return nn(u,n)}catch(l){return l.message.includes("Invalid explicit day of month definition")?(u.dayOfMonth=[1],u.month=sn(u.month,1),nn(u,n)):t}},Mi=(t,e,r)=>{const s=t*60+e+r,i=Math.floor(s/60)%24-t,a=s%60-e,o=Math.floor(s/(60*24));return{hours:i,minutes:a,days:o}},Ni=t=>{const e=Pe.parseExpression(t);return JSON.parse(JSON.stringify(e.fields))},nn=(t,e)=>{const r=Pe.fieldsToExpression(t).stringify();return e?`${Ei({...t})} ${r}`:r},Ei=t=>(t.minute=t.second,Pe.fieldsToExpression(t).stringify().split(" ")[0]),Ii=(t,e)=>t.map(r=>{const n=r+e;return n>23?n-24:n<0?n+24:n}),_i=(t,e)=>t.map(r=>{const n=r+e;return n>59?n-60:n<0?n+60:n}),xi=(t,e)=>t.length>30?t:t.map(r=>{const n=r+e;return n>31||r==="L"?1:n<1?"L":n}),Ci=(t,e)=>t.length>6?t:t.map(r=>{const n=r+e;return n>6?0:n<0?6:n}),sn=(t,e)=>t.length>11?t:t.map(r=>{const n=r+e;return n>12?1:n<1?12:n});return Di});