1var LuxonError$1=class extends Error{},InvalidDateTimeError$1=class extends LuxonError$1{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},InvalidIntervalError$1=class extends LuxonError$1{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},InvalidDurationError$1=class extends LuxonError$1{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},ConflictingSpecificationError$1=class extends LuxonError$1{},InvalidUnitError$1=class extends LuxonError$1{constructor(e){super(`Invalid unit ${e}`)}},InvalidArgumentError$1=class extends LuxonError$1{},ZoneIsAbstractError$1=class extends LuxonError$1{constructor(){super(`Zone is an abstract class`)}},e=`numeric`,t=`short`,n=`long`,r={year:e,month:e,day:e},i={year:e,month:t,day:e},a={year:e,month:t,day:e,weekday:t},o={year:e,month:n,day:e},s={year:e,month:n,day:e,weekday:n},c={hour:e,minute:e},l={hour:e,minute:e,second:e},u={hour:e,minute:e,second:e,timeZoneName:t},d={hour:e,minute:e,second:e,timeZoneName:n},f={hour:e,minute:e,hourCycle:`h23`},p={hour:e,minute:e,second:e,hourCycle:`h23`},m={hour:e,minute:e,second:e,hourCycle:`h23`,timeZoneName:t},h={hour:e,minute:e,second:e,hourCycle:`h23`,timeZoneName:n},g={year:e,month:e,day:e,hour:e,minute:e},_={year:e,month:e,day:e,hour:e,minute:e,second:e},v={year:e,month:t,day:e,hour:e,minute:e},y={year:e,month:t,day:e,hour:e,minute:e,second:e},ee={year:e,month:t,day:e,weekday:t,hour:e,minute:e},b={year:e,month:n,day:e,hour:e,minute:e,timeZoneName:t},x={year:e,month:n,day:e,hour:e,minute:e,second:e,timeZoneName:t},te={year:e,month:n,day:e,weekday:n,hour:e,minute:e,timeZoneName:n},ne={year:e,month:n,day:e,weekday:n,hour:e,minute:e,second:e,timeZoneName:n},Zone$1=class{get type(){throw new ZoneIsAbstractError$1}get name(){throw new ZoneIsAbstractError$1}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError$1}offsetName(e,t){throw new ZoneIsAbstractError$1}formatOffset(e,t){throw new ZoneIsAbstractError$1}offset(e){throw new ZoneIsAbstractError$1}equals(e){throw new ZoneIsAbstractError$1}get isValid(){throw new ZoneIsAbstractError$1}},re=null,ie=class SystemZone$1 extends Zone$1{static get instance(){return re===null&&(re=new SystemZone$1),re}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return parseZoneInfo$1(e,t,n)}formatOffset(e,t){return formatOffset$1(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type===`system`}get isValid(){return!0}},ae=new Map;function makeDTF$1(e){let t=ae.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,era:`short`}),ae.set(e,t)),t}var oe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset$1(e,t){let n=e.format(t).replace(/\u200E/g,``),[,r,i,a,o,s,c,l]=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n);return[a,r,i,o,s,c,l]}function partsOffset$1(e,t){let n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){let{type:t,value:i}=n[e],a=oe[t];t===`era`?r[a]=i:isUndefined$1(a)||(r[a]=parseInt(i,10))}return r}var se=new Map,S=class IANAZone$1 extends Zone$1{static create(e){let t=se.get(e);return t===void 0&&se.set(e,t=new IANAZone$1(e)),t}static resetCache(){se.clear(),ae.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=IANAZone$1.isValidZone(e)}get type(){return`iana`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return parseZoneInfo$1(e,t,n,this.name)}formatOffset(e,t){return formatOffset$1(this.offset(e),t)}offset(e){if(!this.valid)return NaN;let t=new Date(e);if(isNaN(t))return NaN;let n=makeDTF$1(this.name),[r,i,a,o,s,c,l]=n.formatToParts?partsOffset$1(n,t):hackyOffset$1(n,t);o===`BC`&&(r=-Math.abs(r)+1);let u=objToLocalTS$1({year:r,month:i,day:a,hour:s===24?0:s,minute:c,second:l,millisecond:0}),d=+t,f=d%1e3;return d-=f>=0?f:1e3+f,(u-d)/(60*1e3)}equals(e){return e.type===`iana`&&e.name===this.name}get isValid(){return this.valid}},ce={};function getCachedLF$1(e,t={}){let n=JSON.stringify([e,t]),r=ce[n];return r||(r=new Intl.ListFormat(e,t),ce[n]=r),r}var le=new Map;function getCachedDTF$1(e,t={}){let n=JSON.stringify([e,t]),r=le.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),le.set(n,r)),r}var ue=new Map;function getCachedINF$1(e,t={}){let n=JSON.stringify([e,t]),r=ue.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),ue.set(n,r)),r}var de=new Map;function getCachedRTF$1(e,t={}){let{base:n,...r}=t,i=JSON.stringify([e,r]),a=de.get(i);return a===void 0&&(a=new Intl.RelativeTimeFormat(e,t),de.set(i,a)),a}var C=null;function systemLocale$1(){return C||(C=new Intl.DateTimeFormat().resolvedOptions().locale,C)}var fe=new Map;function getCachedIntResolvedOptions$1(e){let t=fe.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),fe.set(e,t)),t}var pe=new Map;function getCachedWeekInfo$1(e){let t=pe.get(e);if(!t){let n=new Intl.Locale(e);t=`getWeekInfo`in n?n.getWeekInfo():n.weekInfo,`minimalDays`in t||(t={...me,...t}),pe.set(e,t)}return t}
1function parseLocaleString$1(e){let t=e.indexOf(`-x-`);t!==-1&&(e=e.substring(0,t));let n=e.indexOf(`-u-`);if(n===-1)return[e];{let t,r;try{t=getCachedDTF$1(e).resolvedOptions(),r=e}catch{let i=e.substring(0,n);t=getCachedDTF$1(i).resolvedOptions(),r=i}let{numberingSystem:i,calendar:a}=t;return[r,i,a]}}function intlConfigString$1(e,t,n){return n||t?(e.includes(`-u-`)||(e+=`-u`),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}function mapMonths$1(e){let t=[];for(let n=1;n<=12;n++){let r=F.utc(2009,n,1);t.push(e(r))}return t}function mapWeekdays$1(e){let t=[];for(let n=1;n<=7;n++){let r=F.utc(2016,11,13+n);t.push(e(r))}return t}function listStuff$1(e,t,n,r){let i=e.listingMode();return i===`error`?null:i===`en`?n(t):r(t)}function supportsFastNumbers$1(e){return e.numberingSystem&&e.numberingSystem!==`latn`?!1:e.numberingSystem===`latn`||!e.locale||e.locale.startsWith(`en`)||getCachedIntResolvedOptions$1(e.locale).numberingSystem===`latn`}var PolyNumberFormatter$1=class{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:r,floor:i,...a}=n;if(!t||Object.keys(a).length>0){let t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=getCachedINF$1(e,t)}}format(e){if(this.inf){let t=this.floor?Math.floor(e):e;return this.inf.format(t)}else return padStart$1(this.floor?Math.floor(e):roundTo$1(e,3),this.padTo)}},PolyDateFormatter$1=class{constructor(e,t,n){this.opts=n,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type===`fixed`){let t=-1*(e.offset/60),n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;e.offset!==0&&S.create(n).valid?(r=n,this.dt=e):(r=`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,r=e.zone.name):(r=`UTC`,this.dt=e.setZone(`UTC`).plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=getCachedDTF$1(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(``):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if(e.type===`timeZoneName`){let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter$1=class{constructor(e,t,n){this.opts={style:`long`,...n},!t&&hasRelative$1()&&(this.rtf=getCachedRTF$1(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):formatRelativeTime$1(t,e,this.opts.numeric,this.opts.style!==`long`)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}},me={firstDay:1,minimalDays:4,weekend:[6,7]},w=class Locale$1{static fromOpts(e){return Locale$1.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,r,i=!1){let a=e||Settings$1.defaultLocale;return new Locale$1(a||(i?`en-US`:systemLocale$1()),t||Settings$1.defaultNumberingSystem,n||Settings$1.defaultOutputCalendar,validateWeekSettings$1(r)||Settings$1.defaultWeekSettings,a)}static resetCache(){C=null,le.clear(),ue.clear(),de.clear(),fe.clear(),pe.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:r}={}){return Locale$1.create(e,t,n,r)}constructor(e,t,n,r,i){let[a,o,s]=parseLocaleString$1(e);this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=intlConfigString$1(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??=supportsFastNumbers$1(this),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem===`latn`)&&(this.outputCalendar===null||this.outputCalendar===`gregory`);return e&&t?`en`:`intl`}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Locale$1.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings$1(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,t=!1){return listStuff$1(this,e,months$1,()=>
1{let n=this.intl===`ja`||this.intl.startsWith(`ja-`);t&=!n;let r=t?{month:e,day:`numeric`}:{month:e},i=t?`format`:`standalone`;if(!this.monthsCache[i][e]){let t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,`month`);this.monthsCache[i][e]=mapMonths$1(t)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return listStuff$1(this,e,weekdays$1,()=>{let n=t?{weekday:e,year:`numeric`,month:`long`,day:`numeric`}:{weekday:e},r=t?`format`:`standalone`;return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=mapWeekdays$1(e=>this.extract(e,n,`weekday`))),this.weekdaysCache[r][e]})}meridiems(){return listStuff$1(this,void 0,()=>Fe,()=>{if(!this.meridiemCache){let e={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[F.utc(2016,11,13,9),F.utc(2016,11,13,19)].map(t=>this.extract(t,e,`dayperiod`))}return this.meridiemCache})}eras(e){return listStuff$1(this,e,eras$1,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[F.utc(-40,1,1),F.utc(2017,1,1)].map(e=>this.extract(e,t,`era`))),this.eraCache[e]})}extract(e,t,n){let r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new PolyNumberFormatter$1(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter$1(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter$1(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF$1(this.intl,e)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||getCachedIntResolvedOptions$1(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo$1()?getCachedWeekInfo$1(this.locale):me}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},he=null,T=class FixedOffsetZone$1 extends Zone$1{static get utcInstance(){return he===null&&(he=new FixedOffsetZone$1(0)),he}static instance(e){return e===0?FixedOffsetZone$1.utcInstance:new FixedOffsetZone$1(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new FixedOffsetZone$1(signedOffset$1(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${formatOffset$1(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${formatOffset$1(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(e,t){return formatOffset$1(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type===`fixed`&&e.fixed===this.fixed}get isValid(){return!0}},InvalidZone$1=class extends Zone$1{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 normalizeZone$1(e,t){if(isUndefined$1(e)||e===null)return t;if(e instanceof Zone$1)return e;if(isString$1(e)){let n=e.toLowerCase();return n==="default"?t:n===`local`||n===`system`?ie.instance:n===`utc`||n===`gmt`?T.utcInstance:T.parseSpecifier(n)||S.create(e)}else if(isNumber$1(e))return T.instance(e);else if(typeof e==`object`&&`offset`in e&&typeof e.offset==`function`)return e;else return new InvalidZone$1(e)}var ge={arab:`[Ù -Ù©]`,arabext:`[Û°-Û¹]`,bali:`[á-á]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[ï¼-ï¼]`,gujr:`[૦-૯]`,hanidec:`[ã|ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹]`,khmr:`[á -á©]`,knda:`[೦-೯]`,laoo:`[à»-à»]`,limb:`[á¥-á¥]`,mlym:`[൦-൯]`,mong:`[á -á ]`,mymr:`[á-á]`,orya:`[à¦-à¯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[à¹-à¹]`,tibt:`[༠-༩]`,latn:`\\d`},_e={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]},ve=ge.hanidec.replace(/[\[|\]]/g,``).split(``);function parseDigits$1(e){let t=parseInt(e,10);if(isNaN(t)){t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(e[n].search(ge.hanidec)!==-1)t+=ve.indexOf(e[n]);else for(let e in _e){let[n,i]=_e[e];r>=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}else return t}var ye=new Map;function resetDigitRegexCache$1(){ye.clear()}function digitRegex$1({numberingSystem:e},t=``){let n=e||`latn`,r=ye.get(n);r===void 0&&(r=new Map,ye.set(n,r));let i=r.get(t);return i===void 0&&(i=RegExp(`${ge[n]}${t}`),r.set(t,i)),i}var now$1=()=>Date.now(),be=`system`,xe=null,Se=null,Ce=null,we=60,Te,Ee=null,Settings$1=class{static get now(){return now$1}static set now(e){now$1=e}static set defaultZone(e){be=e}static get defaultZone(){return normalizeZone$1(be,ie.instance)}static get defaultLocale(){return xe}static set defaultLocale(e){xe=e}static get defaultNumberingSystem(){return Se}static set defaultNumberingSystem(e){Se=e}
1static get defaultOutputCalendar(){return Ce}static set defaultOutputCalendar(e){Ce=e}static get defaultWeekSettings(){return Ee}static set defaultWeekSettings(e){Ee=validateWeekSettings$1(e)}static get twoDigitCutoffYear(){return we}static set twoDigitCutoffYear(e){we=e%100}static get throwOnInvalid(){return Te}static set throwOnInvalid(e){Te=e}static resetCaches(){w.resetCache(),S.resetCache(),F.resetCache(),resetDigitRegexCache$1()}},Invalid$1=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},De=[0,31,59,90,120,151,181,212,243,273,304,334],Oe=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange$1(e,t){return new Invalid$1(`unit out of range`,`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek$1(e,t,n){let r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);let i=r.getUTCDay();return i===0?7:i}function computeOrdinal$1(e,t,n){return n+(isLeapYear$1(e)?Oe:De)[t-1]}function uncomputeOrdinal$1(e,t){let n=isLeapYear$1(e)?Oe:De,r=n.findIndex(e=>e<t),i=t-n[r];return{month:r+1,day:i}}function isoWeekdayToLocal$1(e,t){return(e-t+7)%7+1}function gregorianToWeek$1(e,t=4,n=1){let{year:r,month:i,day:a}=e,o=computeOrdinal$1(r,i,a),s=isoWeekdayToLocal$1(dayOfWeek$1(r,i,a),n),c=Math.floor((o-s+14-t)/7),l;return c<1?(l=r-1,c=weeksInWeekYear$1(l,t,n)):c>weeksInWeekYear$1(r,t,n)?(l=r+1,c=1):l=r,{weekYear:l,weekNumber:c,weekday:s,...timeObject$1(e)}}function weekToGregorian$1(e,t=4,n=1){let{weekYear:r,weekNumber:i,weekday:a}=e,o=isoWeekdayToLocal$1(dayOfWeek$1(r,1,t),n),s=daysInYear$1(r),c=i*7+a-o-7+t,l;c<1?(l=r-1,c+=daysInYear$1(l)):c>s?(l=r+1,c-=daysInYear$1(r)):l=r;let{month:u,day:d}=uncomputeOrdinal$1(l,c);return{year:l,month:u,day:d,...timeObject$1(e)}}function gregorianToOrdinal$1(e){let{year:t,month:n,day:r}=e;return{year:t,ordinal:computeOrdinal$1(t,n,r),...timeObject$1(e)}}function ordinalToGregorian$1(e){let{year:t,ordinal:n}=e,{month:r,day:i}=uncomputeOrdinal$1(t,n);return{year:t,month:r,day:i,...timeObject$1(e)}}function usesLocalWeekValues$1(e,t){if(!isUndefined$1(e.localWeekday)||!isUndefined$1(e.localWeekNumber)||!isUndefined$1(e.localWeekYear)){if(!isUndefined$1(e.weekday)||!isUndefined$1(e.weekNumber)||!isUndefined$1(e.weekYear))throw new ConflictingSpecificationError$1(`Cannot mix locale-based week fields with ISO-based week fields`);return isUndefined$1(e.localWeekday)||(e.weekday=e.localWeekday),isUndefined$1(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),isUndefined$1(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData$1(e,t=4,n=1){let r=isInteger$1(e.weekYear),i=integerBetween$1(e.weekNumber,1,weeksInWeekYear$1(e.weekYear,t,n)),a=integerBetween$1(e.weekday,1,7);return r?i?a?!1:unitOutOfRange$1(`weekday`,e.weekday):unitOutOfRange$1(`week`,e.weekNumber):unitOutOfRange$1(`weekYear`,e.weekYear)}function hasInvalidOrdinalData$1(e){let t=isInteger$1(e.year),n=integerBetween$1(e.ordinal,1,daysInYear$1(e.year));return t?n?!1:unitOutOfRange$1(`ordinal`,e.ordinal):unitOutOfRange$1(`year`,e.year)}function hasInvalidGregorianData$1(e){let t=isInteger$1(e.year),n=integerBetween$1(e.month,1,12),r=integerBetween$1(e.day,1,daysInMonth$1(e.year,e.month));return t?n?r?!1:unitOutOfRange$1(`day`,e.day):unitOutOfRange$1(`month`,e.month):unitOutOfRange$1(`year`,e.year)}function hasInvalidTimeData$1(e){let{hour:t,minute:n,second:r,millisecond:i}=e,a=integerBetween$1(t,0,23)||t===24&&n===0&&r===0&&i===0,o=integerBetween$1(n,0,59),s=integerBetween$1(r,0,59),c=integerBetween$1(i,0,999);return a?o?s?c?!1:unitOutOfRange$1(`millisecond`,i):unitOutOfRange$1(`second`,r):unitOutOfRange$1(`minute`,n):unitOutOfRange$1(`hour`,t)}function isUndefined$1(e){return e===void 0}function isNumber$1(e){return typeof e==`number`}function isInteger$1(e){return typeof e==`number`&&e%1==0}function isString$1(e){return typeof e==`string`}function isDate$1(e){return Object.prototype.toString.call(e)===`[object Date]`}function hasRelative$1(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo$1(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function maybeArray$1(e){return Array.isArray(e)?e:[e]}function bestBy$1(e,t,n){if(e.length!==0)return e.reduce((e,r)=>{let i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function pick$1(e,t){return t.reduce((t,n)=>(t[n]=e[n],t),{})}function hasOwnProperty$1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings$1(e){if(e==null)return null;if(typeof e!=`object`)throw new InvalidArgumentError$1(`Week settings must be an object`);if(!integerBetween$1(e.firstDay,1,7)||!integerBetween$1(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!integerBetween$1(e,1,7)))throw new InvalidArgumentError$1(`Invalid week settings`);return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function integerBetween$1(e,t,n){return isInteger$1(e)&&e>=t&&e<=n}function floorMod$1(e,t){return e-t*Math.floor(e/t)}function padStart$1(e,t=2){let n=e<0,r;return r=n?`-`+(``+-e).padStart(t,`0`):(``+e).padStart(t,`0`),r}function parseInteger$1(e){if(!(isUndefined$1(e)||e===null||e===``))return parseInt(e,10)}function parseFloating$1(e){if(!(isUndefined$1(e)||e===null||e===``))return parseFloat(e)}function parseMillis$1(e){if(!(isUndefined$1(e)||e===null||e===``)){let t=parseFloat(`0.`+e)*1e3;return Math.floor(t)}}function roundTo$1(e,t,n=`round`){let r=10**t;switch(n){case`expand`:return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case`trunc`:return Math.trunc(e*r)/r;case`round`:return Math.round(e*r)/r;case`floor`:return Math.floor(e*r)/r;case`ceil`:return Math.ceil(e*r)/r;default:throw RangeError(`Value rounding ${n} is out of range`)}}function isLeapYear$1(e){return e%4==0&&(e%100!=0||e%400==0)}function daysInYear$1(e){return isLeapYear$1(e)?366:365}function daysInMonth$1(e,t){let n=floorMod$1(t-1,12)+1,r=e+(t-n)/12;return n===2?isLeapYear$1(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function objToLocalTS$1(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}
1function firstWeekOffset$1(e,t,n){return-isoWeekdayToLocal$1(dayOfWeek$1(e,1,t),n)+t-1}function weeksInWeekYear$1(e,t=4,n=1){let r=firstWeekOffset$1(e,t,n),i=firstWeekOffset$1(e+1,t,n);return(daysInYear$1(e)-r+i)/7}function untruncateYear$1(e){return e>99?e:e>Settings$1.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo$1(e,t,n,r=null){let i=new Date(e),a={hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};r&&(a.timeZone=r);let o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(n,o).formatToParts(i).find(e=>e.type.toLowerCase()===`timezonename`);return s?s.value:null}function signedOffset$1(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function asNumber$1(e){let t=Number(e);if(typeof e==`boolean`||e===``||!Number.isFinite(t))throw new InvalidArgumentError$1(`Invalid unit value ${e}`);return t}function normalizeObject$1(e,t){let n={};for(let r in e)if(hasOwnProperty$1(e,r)){let i=e[r];if(i==null)continue;n[t(r)]=asNumber$1(i)}return n}function formatOffset$1(e,t){let n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?`+`:`-`;switch(t){case`short`:return`${i}${padStart$1(n,2)}:${padStart$1(r,2)}`;case`narrow`:return`${i}${n}${r>0?`:${r}`:``}`;case`techie`:return`${i}${padStart$1(n,2)}${padStart$1(r,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function timeObject$1(e){return pick$1(e,[`hour`,`minute`,`second`,`millisecond`])}var ke=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Ae=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],je=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function months$1(e){switch(e){case`narrow`:return[...je];case`short`:return[...Ae];case`long`:return[...ke];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}}var Me=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],Ne=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],Pe=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function weekdays$1(e){switch(e){case`narrow`:return[...Pe];case`short`:return[...Ne];case`long`:return[...Me];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}var Fe=[`AM`,`PM`],Ie=[`Before Christ`,`Anno Domini`],Le=[`BC`,`AD`],Re=[`B`,`A`];function eras$1(e){switch(e){case`narrow`:return[...Re];case`short`:return[...Le];case`long`:return[...Ie];default:return null}}function meridiemForDateTime$1(e){return Fe[e.hour<12?0:1]}function weekdayForDateTime$1(e,t){return weekdays$1(t)[e.weekday-1]}function monthForDateTime$1(e,t){return months$1(t)[e.month-1]}function eraForDateTime$1(e,t){return eras$1(t)[e.year<0?0:1]}function formatRelativeTime$1(e,t,n=`always`,r=!1){let i={years:[`year`,`yr.`],quarters:[`quarter`,`qtr.`],months:[`month`,`mo.`],weeks:[`week`,`wk.`],days:[`day`,`day`,`days`],hours:[`hour`,`hr.`],minutes:[`minute`,`min.`],seconds:[`second`,`sec.`]},a=[`hours`,`minutes`,`seconds`].indexOf(e)===-1;if(n===`auto`&&a){let n=e===`days`;switch(t){case 1:return n?`tomorrow`:`next ${i[e][0]}`;case-1:return n?`yesterday`:`last ${i[e][0]}`;case 0:return n?`today`:`this ${i[e][0]}`}}let o=Object.is(t,-0)||t<0,s=Math.abs(t),c=s===1,l=i[e],u=r?c?l[1]:l[2]||l[1]:c?i[e][0]:e;return o?`${s} ${u} ago`:`in ${s} ${u}`}function stringifyTokens$1(e,t){let n=``;for(let r of e)r.literal?n+=r.val:n+=t(r.val);return n}var ze={D:r,DD:i,DDD:o,DDDD:s,t:c,tt:l,ttt:u,tttt:d,T:f,TT:p,TTT:m,TTTT:h,f:g,ff:v,fff:b,ffff:te,F:_,FF:y,FFF:x,FFFF:ne},E=class Formatter$1{static create(e,t={}){return new Formatter$1(e,t)}static parseFormat(e){let t=null,n=``,r=!1,i=[];for(let a=0;a<e.length;a++){let o=e.charAt(a);o===`'`?((n.length>0||r)&&i.push({literal:r||/^\s+$/.test(n),val:n===``?`'`:n}),t=null,n=``,r=!r):r||o===t?n+=o:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=o,t=o)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return ze[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem(
1)),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return padStart$1(e,t);let r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){let n=this.loc.listingMode()===`en`,r=this.loc.outputCalendar&&this.loc.outputCalendar!==`gregory`,string=(t,n)=>this.loc.extract(e,t,n),formatOffset=t=>e.isOffsetFixed&&e.offset===0&&t.allowZ?`Z`:e.isValid?e.zone.formatOffset(e.ts,t.format):``,meridiem=()=>n?meridiemForDateTime$1(e):string({hour:`numeric`,hourCycle:`h12`},`dayperiod`),month=(t,r)=>n?monthForDateTime$1(e,t):string(r?{month:t}:{month:t,day:`numeric`},`month`),weekday=(t,r)=>n?weekdayForDateTime$1(e,t):string(r?{weekday:t}:{weekday:t,month:`long`,day:`numeric`},`weekday`),maybeMacro=t=>{let n=Formatter$1.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},era=t=>n?eraForDateTime$1(e,t):string({era:t},`era`),tokenToString=t=>{switch(t){case`S`:return this.num(e.millisecond);case`u`:case`SSS`:return this.num(e.millisecond,3);case`s`:return this.num(e.second);case`ss`:return this.num(e.second,2);case`uu`:return this.num(Math.floor(e.millisecond/10),2);case`uuu`:return this.num(Math.floor(e.millisecond/100));case`m`:return this.num(e.minute);case`mm`:return this.num(e.minute,2);case`h`:return this.num(e.hour%12==0?12:e.hour%12);case`hh`:return this.num(e.hour%12==0?12:e.hour%12,2);case`H`:return this.num(e.hour);case`HH`:return this.num(e.hour,2);case`Z`:return formatOffset({format:`narrow`,allowZ:this.opts.allowZ});case`ZZ`:return formatOffset({format:`short`,allowZ:this.opts.allowZ});case`ZZZ`:return formatOffset({format:`techie`,allowZ:this.opts.allowZ});case`ZZZZ`:return e.zone.offsetName(e.ts,{format:`short`,locale:this.loc.locale});case`ZZZZZ`:return e.zone.offsetName(e.ts,{format:`long`,locale:this.loc.locale});case`z`:return e.zoneName;case`a`:return meridiem();case`d`:return r?string({day:`numeric`},`day`):this.num(e.day);case`dd`:return r?string({day:`2-digit`},`day`):this.num(e.day,2);case`c`:return this.num(e.weekday);case`ccc`:return weekday(`short`,!0);case`cccc`:return weekday(`long`,!0);case`ccccc`:return weekday(`narrow`,!0);case`E`:return this.num(e.weekday);case`EEE`:return weekday(`short`,!1);case`EEEE`:return weekday(`long`,!1);case`EEEEE`:return weekday(`narrow`,!1);case`L`:return r?string({month:`numeric`,day:`numeric`},`month`):this.num(e.month);case`LL`:return r?string({month:`2-digit`,day:`numeric`},`month`):this.num(e.month,2);case`LLL`:return month(`short`,!0);case`LLLL`:return month(`long`,!0);case`LLLLL`:return month(`narrow`,!0);case`M`:return r?string({month:`numeric`},`month`):this.num(e.month);case`MM`:return r?string({month:`2-digit`},`month`):this.num(e.month,2);case`MMM`:return month(`short`,!1);case`MMMM`:return month(`long`,!1);case`MMMMM`:return month(`narrow`,!1);case`y`:return r?string({year:`numeric`},`year`):this.num(e.year);case`yy`:return r?string({year:`2-digit`},`year`):this.num(e.year.toString().slice(-2),2);case`yyyy`:return r?string({year:`numeric`},`year`):this.num(e.year,4);case`yyyyyy`:return r?string({year:`numeric`},`year`):this.num(e.year,6);case`G`:return era(`short`);case`GG`:return era(`long`);case`GGGGG`:return era(`narrow`);case`kk`:return this.num(e.weekYear.toString().slice(-2),2);case`kkkk`:return this.num(e.weekYear,4);case`W`:return this.num(e.weekNumber);case`WW`:return this.num(e.weekNumber,2);case`n`:return this.num(e.localWeekNumber);case`nn`:return this.num(e.localWeekNumber,2);case`ii`:return this.num(e.localWeekYear.toString().slice(-2),2);case`iiii`:return this.num(e.localWeekYear,4);case`o`:return this.num(e.ordinal);case`ooo`:return this.num(e.ordinal,3);case`q`:return this.num(e.quarter);case`qq`:return this.num(e.quarter,2);case`X`:return this.num(Math.floor(e.ts/1e3));case`x`:return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens$1(Formatter$1.parseFormat(t),tokenToString)}formatDurationFromString(e,t){let n=this.opts.signMode===`negativeLargestOnly`?-1:1,tokenToField=e=>{switch(e[0]){case`S`:return`milliseconds`;case`s`:return`seconds`;case`m`:return`minutes`;case`h`:return`hours`;case`d`:return`days`;case`w`:return`weeks`;case`M`:return`months`;case`y`:return`years`;default:return null}},tokenToString=(e,t)=>
1r=>{let i=tokenToField(r);if(i){let a=t.isNegativeDuration&&i!==t.largestUnit?n:1,o;return o=this.opts.signMode===`negativeLargestOnly`&&i!==t.largestUnit?`never`:this.opts.signMode===`all`?`always`:`auto`,this.num(e.get(i)*a,r.length,o)}else return r},r=Formatter$1.parseFormat(t),i=r.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),a=e.shiftTo(...i.map(tokenToField).filter(e=>e));return stringifyTokens$1(r,tokenToString(a,{isNegativeDuration:a<0,largestUnit:Object.keys(a.values)[0]}))}},Be=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes$1(...e){let t=e.reduce((e,t)=>e+t.source,``);return RegExp(`^${t}$`)}function combineExtractors$1(...e){return t=>e.reduce(([e,n,r],i)=>{let[a,o,s]=i(t,r);return[{...e,...a},o||n,s]},[{},null,1]).slice(0,2)}function parse$1(e,...t){if(e==null)return[null,null];for(let[n,r]of t){let t=n.exec(e);if(t)return r(t)}return[null,null]}function simpleParse$1(...e){return(t,n)=>{let r={},i;for(i=0;i<e.length;i++)r[e[i]]=parseInteger$1(t[n+i]);return[r,null,n+i]}}var Ve=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,He=`(?:${Ve.source}?(?:\\[(${Be.source})\\])?)?`,Ue=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,We=RegExp(`${Ue.source}${He}`),Ge=RegExp(`(?:[Tt]${We.source})?`),Ke=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,qe=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Je=/(\d{4})-?(\d{3})/,Ye=simpleParse$1(`weekYear`,`weekNumber`,`weekDay`),Xe=simpleParse$1(`year`,`ordinal`),Ze=/(\d{4})-(\d\d)-(\d\d)/,Qe=RegExp(`${Ue.source} ?(?:${Ve.source}|(${Be.source}))?`),$e=RegExp(`(?: ${Qe.source})?`);function int$1(e,t,n){let r=e[t];return isUndefined$1(r)?n:parseInteger$1(r)}function extractISOYmd$1(e,t){return[{year:int$1(e,t),month:int$1(e,t+1,1),day:int$1(e,t+2,1)},null,t+3]}function extractISOTime$1(e,t){return[{hours:int$1(e,t,0),minutes:int$1(e,t+1,0),seconds:int$1(e,t+2,0),milliseconds:parseMillis$1(e[t+3])},null,t+4]}function extractISOOffset$1(e,t){let n=!e[t]&&!e[t+1],r=signedOffset$1(e[t+1],e[t+2]);return[{},n?null:T.instance(r),t+3]}function extractIANAZone$1(e,t){return[{},e[t]?S.create(e[t]):null,t+1]}var et=RegExp(`^T?${Ue.source}$`),tt=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration$1(e){let[t,n,r,i,a,o,s,c,l]=e,u=t[0]===`-`,d=c&&c[0]===`-`,maybeNegate=(e,t=!1)=>e!==void 0&&(t||e&&u)?-e:e;return[{years:maybeNegate(parseFloating$1(n)),months:maybeNegate(parseFloating$1(r)),weeks:maybeNegate(parseFloating$1(i)),days:maybeNegate(parseFloating$1(a)),hours:maybeNegate(parseFloating$1(o)),minutes:maybeNegate(parseFloating$1(s)),seconds:maybeNegate(parseFloating$1(c),c===`-0`),milliseconds:maybeNegate(parseMillis$1(l),d)}]}var nt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function fromStrings$1(e,t,n,r,i,a,o){let s={year:t.length===2?untruncateYear$1(parseInteger$1(t)):parseInteger$1(t),month:Ae.indexOf(n)+1,day:parseInteger$1(r),hour:parseInteger$1(i),minute:parseInteger$1(a)};return o&&(s.second=parseInteger$1(o)),e&&(s.weekday=e.length>3?Me.indexOf(e)+1:Ne.indexOf(e)+1),s}var rt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822$1(e){let[,t,n,r,i,a,o,s,c,l,u,d]=e,f=fromStrings$1(t,i,r,n,a,o,s),p;return p=c?nt[c]:l?0:signedOffset$1(u,d),[f,new T(p)]}function preprocessRFC2822$1(e){return e.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}var it=/^(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$/,at=/^(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$/,ot=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850$1(e){let[,t,n,r,i,a,o,s]=e;return[fromStrings$1(t,i,r,n,a,o,s),T.utcInstance]}function extractASCII$1(e){let[,t,n,r,i,a,o,s]=e;return[fromStrings$1(t,s,n,r,i,a,o),T.utcInstance]}var st=combineRegexes$1(Ke,Ge),ct=combineRegexes$1(qe,Ge),lt=combineRegexes$1(Je,Ge),ut=combineRegexes$1(We),dt=combineExtractors$1(extractISOYmd$1,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),ft=combineExtractors$1(Ye,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),pt=combineExtractors$1(Xe,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),mt=combineExtractors$1(extractISOTime$1,extractISOOffset$1,extractIANAZone$1);function parseISODate$1(e){return parse$1(e,[st,dt],[ct,ft],[lt,pt],[ut,mt])}function parseRFC2822Date$1(e){return parse$1(preprocessRFC2822$1(e),[rt,extractRFC2822$1])}function parseHTTPDate$1(e){return parse$1(e,[it,extractRFC1123Or850$1],[at,extractRFC1123Or850$1],[ot,extractASCII$1])}function parseISODuration$1(e){return parse$1(e,[tt,extractISODuration$1])}var ht=combineExtractors$1(extractISOTime$1);function parseISOTimeOnly$1(e){return parse$1(e,[et,ht])}var gt=combineRegexes$1(Ze,$e),_t=combineRegexes$1(Qe),vt=combineExtractors$1(extractISOTime$1,extractISOOffset$1,extractIANAZone$1);function parseSQL$1(e){return parse$1(e,[gt,dt],[_t,vt])}var yt=`Invalid Duration`,bt={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},xt={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:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...bt},D=146097/400,O=146097/4800,St={years:{quarters:4,months:12,weeks:D/7,days:D,hours:D*24,minutes:D*24*60,seconds:D*24*60*60,milliseconds:D*24*60*60*1e3},quarters:{months:3,weeks:D/28,days:D/4,hours:D*24/4,minutes:D*24*60/4,seconds:D*24*60*60/4,milliseconds:D*24*60*60*1e3/4},months:{weeks:O/7,days:O,hours:O*24,minutes:O*24*60,seconds:O*24*60*60,milliseconds:O*24*60*60*1e3},...bt},k=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],Ct=k.slice(0).reverse();function clone$1$1(e,t,n=!1){return new A({values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix})}function durationToMillis$1(e,t){let n=t.milliseconds??0;for(let r of Ct.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function normalizeValues$1(e,t){let n=durationToMillis$1(e,t)<0?-1:1;k.reduceRight((r,i)=>{if(isUndefined$1(t[i]))return r;if(r){let a=t[r]*n,o=e[i][r],s=Math.floor(a/o);t[i]+=s*n,t[r]-=s*o*n}return i},null),k.reduce((n,r)=>{if(isUndefined$1(t[r]))return n;if(n){let i=t[n]%1;t[n]-=i,t[r]+=i*e[n][r]}return r},null)}function removeZeroes$1(e){let t={};for(let[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}var A=class Duration$1{constructor(e){let t=e.conversionAccuracy===`longterm`||!1,n=t?St:xt;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||w.create(),this.conversionAccuracy=t?`longterm`:`casual`,this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Duration$1.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(typeof e!=`object`||!e)throw new InvalidArgumentError$1(`Duration.fromObject: argument expected to be an object, got ${e===null?`null`:typeof e}`);return new Duration$1({values:normalizeObject$1(e,Duration$1.normalizeUnit),loc:w.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber$1(e))return Duration$1.fromMillis(e);if(Duration$1.isDuration(e))return e;if(typeof e==`object`)return Duration$1.fromObject(e);throw new InvalidArgumentError$1(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[n]=parseISODuration$1(e);return n?Duration$1.fromObject(n,t):Duration$1.invalid(`unparsable`,`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[n]=parseISOTimeOnly$1(e);return n?Duration$1.fromObject(n,t):Duration$1.invalid(`unparsable`,`the input "${e}" can't be parsed as ISO 8601`)}
1static invalid(e,t=null){if(!e)throw new InvalidArgumentError$1(`need to specify a reason the Duration is invalid`);let n=e instanceof Invalid$1?e:new Invalid$1(e,t);if(Settings$1.throwOnInvalid)throw new InvalidDurationError$1(n);return new Duration$1({invalid:n})}static normalizeUnit(e){let t={year:`years`,years:`years`,quarter:`quarters`,quarters:`quarters`,month:`months`,months:`months`,week:`weeks`,weeks:`weeks`,day:`days`,days:`days`,hour:`hours`,hours:`hours`,minute:`minutes`,minutes:`minutes`,second:`seconds`,seconds:`seconds`,millisecond:`milliseconds`,milliseconds:`milliseconds`}[e&&e.toLowerCase()];if(!t)throw new InvalidUnitError$1(e);return t}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,t={}){let n={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?E.create(this.loc,n).formatDurationFromString(this,e):yt}toHuman(e={}){if(!this.isValid)return yt;let t=e.showZeros!==!1,n=k.map(n=>{let r=this.values[n];return isUndefined$1(r)||r===0&&!t?null:this.loc.numberFormatter({style:`unit`,unitDisplay:`long`,...e,unit:n.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:`conjunction`,style:e.listStyle||`narrow`,...e}).format(n)}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+=roundTo$1(this.seconds+this.milliseconds/1e3,3)+`S`),e===`P`&&(e+=`T0S`),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:`extended`,...e,includeOffset:!1},F.fromMillis(t,{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?durationToMillis$1(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=Duration$1.fromDurationLike(e),n={};for(let e of k)(hasOwnProperty$1(t.values,e)||hasOwnProperty$1(this.values,e))&&(n[e]=t.get(e)+this.get(e));return clone$1$1(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let t=Duration$1.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=asNumber$1(e(this.values[n],n));return clone$1$1(this,{values:t},!0)}get(e){return this[Duration$1.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let t={...this.values,...normalizeObject$1(e,Duration$1.normalizeUnit)};return clone$1$1(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){let i={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n};return clone$1$1(this,i)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return normalizeValues$1(this.matrix,e),clone$1$1(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=removeZeroes$1(this.normalize().shiftToAll().toObject());return clone$1$1(this,{values:e},!0)}shiftTo(...e){if(!this.isValid||e.length===0)return this;e=e.map(e=>Duration$1.normalizeUnit(e));let t={},n={},r=this.toObject(),i;for(let a of k)if(e.indexOf(a)>=0){i=a;let e=0;for(let t in n)e+=this.matrix[t][a]*n[t],n[t]=0;isNumber$1(r[a])&&(e+=r[a]);let o=Math.trunc(e);t[a]=o,n[a]=(e*1e3-o*1e3)/1e3}else isNumber$1(r[a])&&(n[a]=r[a]);for(let e in n)n[e]!==0&&(t[i]+=e===i?n[e]:n[e]/this.matrix[i][e]);return normalizeValues$1(this.matrix,t),clone$1$1(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo(`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return clone$1$1(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=removeZeroes$1(this.values);return clone$1$1(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 eq(e,t){return e===void 0||e===0?t===void 0||t===0:e===t}for(let t of k)if(!eq(this.values[t],e.values[t]))return!1;return!0}},j=`Invalid Interval`;function validateStartEnd$1(e,t){return!e||!e.isValid?M.invalid(`missing or invalid start`):!t||!t.isValid?M.invalid(`missing or invalid end`):t<e?M.invalid(`end before start`,`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var M=class Interval$1{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}
1static invalid(e,t=null){if(!e)throw new InvalidArgumentError$1(`need to specify a reason the Interval is invalid`);let n=e instanceof Invalid$1?e:new Invalid$1(e,t);if(Settings$1.throwOnInvalid)throw new InvalidIntervalError$1(n);return new Interval$1({invalid:n})}static fromDateTimes(e,t){let n=friendlyDateTime$1(e),r=friendlyDateTime$1(t);return validateStartEnd$1(n,r)??new Interval$1({start:n,end:r})}static after(e,t){let n=A.fromDurationLike(t),r=friendlyDateTime$1(e);return Interval$1.fromDateTimes(r,r.plus(n))}static before(e,t){let n=A.fromDurationLike(t),r=friendlyDateTime$1(e);return Interval$1.fromDateTimes(r.minus(n),r)}static fromISO(e,t){let[n,r]=(e||``).split(`/`,2);if(n&&r){let e,i;try{e=F.fromISO(n,t),i=e.isValid}catch{i=!1}let a,o;try{a=F.fromISO(r,t),o=a.isValid}catch{o=!1}if(i&&o)return Interval$1.fromDateTimes(e,a);if(i){let n=A.fromISO(r,t);if(n.isValid)return Interval$1.after(e,n)}else if(o){let e=A.fromISO(n,t);if(e.isValid)return Interval$1.before(a,e)}}return Interval$1.invalid(`unparsable`,`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e=`milliseconds`){return this.isValid?this.toDuration(e).get(e):NaN}count(e=`milliseconds`,t){if(!this.isValid)return NaN;let n=this.start.startOf(e,t),r;return r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!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:t}={}){return this.isValid?Interval$1.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(friendlyDateTime$1).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),n=[],{s:r}=this,i=0;for(;r<this.e;){let e=t[i]||this.e,a=+e>+this.e?this.e:e;n.push(Interval$1.fromDateTimes(r,a)),r=a,i+=1}return n}splitBy(e){let t=A.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as(`milliseconds`)===0)return[];let{s:n}=this,r=1,i,a=[];for(;n<this.e;){let e=this.start.plus(t.mapUnits(e=>e*r));i=+e>+this.e?this.e:e,a.push(Interval$1.fromDateTimes(n,i)),n=i,r+=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}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=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;let t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:Interval$1.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;let t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Interval$1.fromDateTimes(t,n)}static merge(e){let[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0,r=[],i=e.map(e=>[{time:e.s,type:`s`},{time:e.e,type:`e`}]),a=Array.prototype.concat(...i).sort((e,t)=>e.time-t.time);for(let e of a)n+=e.type===`s`?1:-1,n===1?t=e.time:(t&&+t!=+e.time&&r.push(Interval$1.fromDateTimes(t,e.time)),t=null);return Interval$1.merge(r)}difference(...e){return Interval$1.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} â ${this.e.toISO()})`:j}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}
1toLocaleString(e=r,t={}){return this.isValid?E.create(this.s.loc.clone(t),e).formatInterval(this):j}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:j}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:j}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:j}toFormat(e,{separator:t=` â `}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:j}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):A.invalid(this.invalidReason)}mapEndpoints(e){return Interval$1.fromDateTimes(e(this.s),e(this.e))}},Info$1=class{static hasDST(e=Settings$1.defaultZone){let t=F.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return S.isValidZone(e)}static normalizeZone(e){return normalizeZone$1(e,Settings$1.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||w.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||w.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||w.create(e)).getWeekendDays().slice()}static months(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i=`gregory`}={}){return(r||w.create(t,n,i)).months(e)}static monthsFormat(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i=`gregory`}={}){return(r||w.create(t,n,i)).months(e,!0)}static weekdays(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||w.create(t,n,null)).weekdays(e)}static weekdaysFormat(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||w.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return w.create(e).meridiems()}static eras(e=`short`,{locale:t=null}={}){return w.create(t,null,`gregory`).eras(e)}static features(){return{relative:hasRelative$1(),localeWeek:hasLocaleWeekInfo$1()}}};function dayDiff$1(e,t){let utcDayStart=e=>e.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),n=utcDayStart(t)-utcDayStart(e);return Math.floor(A.fromMillis(n).as(`days`))}function highOrderDiffs$1(e,t,n){let r=[[`years`,(e,t)=>t.year-e.year],[`quarters`,(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],[`months`,(e,t)=>t.month-e.month+(t.year-e.year)*12],[`weeks`,(e,t)=>{let n=dayDiff$1(e,t);return(n-n%7)/7}],[`days`,dayDiff$1]],i={},a=e,o,s;for(let[c,l]of r)n.indexOf(c)>=0&&(o=c,i[c]=l(e,t),s=a.plus(i),s>t?(i[c]--,e=a.plus(i),e>t&&(s=e,i[c]--,e=a.plus(i))):e=s);return[e,i,s,o]}function diff$1(e,t,n,r){let[i,a,o,s]=highOrderDiffs$1(e,t,n),c=t-i,l=n.filter(e=>[`hours`,`minutes`,`seconds`,`milliseconds`].indexOf(e)>=0);l.length===0&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+c/(o-i)));let u=A.fromObject(a,r);return l.length>0?A.fromMillis(c,r).shiftTo(...l).plus(u):u}var wt=`missing Intl.DateTimeFormat.formatToParts support`;function intUnit$1(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits$1(e))}}var Tt=`[ \xA0]`,Et=new RegExp(Tt,`g`);function fixListRegex$1(e){return e.replace(/\./g,`\\.?`).replace(Et,Tt)}function stripInsensitivities$1(e){return e.replace(/\./g,``).replace(Et,` `).toLowerCase()}function oneOf$1(e,t){return e===null?null:{regex:RegExp(e.map(fixListRegex$1).join(`|`)),deser:([n])=>e.findIndex(e=>stripInsensitivities$1(n)===stripInsensitivities$1(e))+t}}function offset$1(e,t){return{regex:e,deser:([,e,t])=>signedOffset$1(e,t),groups:t}}function simple$1(e){return{regex:e,deser:([e])=>e}}
1function escapeToken$1(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function unitForToken$1(e,t){let n=digitRegex$1(t),r=digitRegex$1(t,`{2}`),i=digitRegex$1(t,`{3}`),a=digitRegex$1(t,`{4}`),o=digitRegex$1(t,`{6}`),s=digitRegex$1(t,`{1,2}`),c=digitRegex$1(t,`{1,3}`),l=digitRegex$1(t,`{1,6}`),u=digitRegex$1(t,`{1,9}`),d=digitRegex$1(t,`{2,4}`),f=digitRegex$1(t,`{4,6}`),literal=e=>({regex:RegExp(escapeToken$1(e.val)),deser:([e])=>e,literal:!0}),unitate=p=>{if(e.literal)return literal(p);switch(p.val){case`G`:return oneOf$1(t.eras(`short`),0);case`GG`:return oneOf$1(t.eras(`long`),0);case`y`:return intUnit$1(l);case`yy`:return intUnit$1(d,untruncateYear$1);case`yyyy`:return intUnit$1(a);case`yyyyy`:return intUnit$1(f);case`yyyyyy`:return intUnit$1(o);case`M`:return intUnit$1(s);case`MM`:return intUnit$1(r);case`MMM`:return oneOf$1(t.months(`short`,!0),1);case`MMMM`:return oneOf$1(t.months(`long`,!0),1);case`L`:return intUnit$1(s);case`LL`:return intUnit$1(r);case`LLL`:return oneOf$1(t.months(`short`,!1),1);case`LLLL`:return oneOf$1(t.months(`long`,!1),1);case`d`:return intUnit$1(s);case`dd`:return intUnit$1(r);case`o`:return intUnit$1(c);case`ooo`:return intUnit$1(i);case`HH`:return intUnit$1(r);case`H`:return intUnit$1(s);case`hh`:return intUnit$1(r);case`h`:return intUnit$1(s);case`mm`:return intUnit$1(r);case`m`:return intUnit$1(s);case`q`:return intUnit$1(s);case`qq`:return intUnit$1(r);case`s`:return intUnit$1(s);case`ss`:return intUnit$1(r);case`S`:return intUnit$1(c);case`SSS`:return intUnit$1(i);case`u`:return simple$1(u);case`uu`:return simple$1(s);case`uuu`:return intUnit$1(n);case`a`:return oneOf$1(t.meridiems(),0);case`kkkk`:return intUnit$1(a);case`kk`:return intUnit$1(d,untruncateYear$1);case`W`:return intUnit$1(s);case`WW`:return intUnit$1(r);case`E`:case`c`:return intUnit$1(n);case`EEE`:return oneOf$1(t.weekdays(`short`,!1),1);case`EEEE`:return oneOf$1(t.weekdays(`long`,!1),1);case`ccc`:return oneOf$1(t.weekdays(`short`,!0),1);case`cccc`:return oneOf$1(t.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return offset$1(RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case`ZZZ`:return offset$1(RegExp(`([+-]${s.source})(${r.source})?`),2);case`z`:return simple$1(/[a-z_+-/]{1,256}?/i);case` `:return simple$1(/[^\S\n\r]/);default:return literal(p)}},p=unitate(e)||{invalidReason:wt};return p.token=e,p}var Dt={year:{"2-digit":`yy`,numeric:`yyyyy`},month:{numeric:`M`,"2-digit":`MM`,short:`MMM`,long:`MMMM`},day:{numeric:`d`,"2-digit":`dd`},weekday:{short:`EEE`,long:`EEEE`},dayperiod:`a`,dayPeriod:`a`,hour12:{numeric:`h`,"2-digit":`hh`},hour24:{numeric:`H`,"2-digit":`HH`},minute:{numeric:`m`,"2-digit":`mm`},second:{numeric:`s`,"2-digit":`ss`},timeZoneName:{long:`ZZZZZ`,short:`ZZZ`}};function tokenForPart$1(e,t,n){let{type:r,value:i}=e;if(r===`literal`){let e=/^\s+$/.test(i);return{literal:!e,val:e?` `:i}}let a=t[r],o=r;r===`hour`&&(o=t.hour12==null?t.hourCycle==null?n.hour12?`hour12`:`hour24`:t.hourCycle===`h11`||t.hourCycle===`h12`?`hour12`:`hour24`:t.hour12?`hour12`:`hour24`);let s=Dt[o];if(typeof s==`object`&&(s=s[a]),s)return{literal:!1,val:s}}function buildRegex$1(e){return[`^${e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,``)}$`,e]}function match$1(e,t,n){let r=e.match(t);if(r){let e={},t=1;for(let i in n)if(hasOwnProperty$1(n,i)){let a=n[i],o=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(r.slice(t,t+o))),t+=o}return[r,e]}else return[r,{}]}function dateTimeFromMatches$1(e){let toField=e=>{switch(e){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:case`H`:return`hour`;case`d`:return`day`;case`o`:return`ordinal`;case`L`:case`M`:return`month`;case`y`:return`year`;case`E`:case`c`:return`weekday`;case`W`:return`weekNumber`;case`k`:return`weekYear`;case`q`:return`quarter`;default:return null}},t=null,n;return isUndefined$1(e.z)||(t=S.create(e.z)),isUndefined$1(e.Z)||(t||=new T(e.Z),n=e.Z),isUndefined$1(e.q)||(e.M=(e.q-1)*3+1),isUndefined$1(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),isUndefined$1(e.u)||(e.S=parseMillis$1(e.u)),[Object.keys(e).reduce((t,n)=>{let r=toField(n);return r&&(t[r]=e[n]),t},{}),t,n]}var Ot=null;function getDummyDateTime$1(){return Ot||=F.fromMillis(1555555555555),Ot}function maybeExpandMacroToken$1(e,t){if(e.literal)return e;let n=formatOptsToTokens$1(E.macroTokenToFormatOpts(e.val),t);return n==null||n.includes(void 0)?e:n}function expandMacroTokens$1(e,t){return Array.prototype.concat(...e.map(e=>maybeExpandMacroToken$1(e,t)))}var TokenParser$1=class{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=expandMacroTokens$1(E.parseFormat(t),e),this.units=this.tokens.map(t=>unitForToken$1(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=buildRegex$1(this.units);this.regex=RegExp(e,`i`),this.handlers=t}}explainFromTokens(e){if(this.isValid){let[t,n]=match$1(e,this.regex,this.handlers),[r,i,a]=n?dateTimeFromMatches$1(n):[null,null,void 0];if(hasOwnProperty$1(n,`a`)&&hasOwnProperty$1(n,`H`))throw new ConflictingSpecificationError$1(`Can't include meridiem when specifying 24-hour format`);return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:i,specificOffset:a}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invali
1dReason:null}};function explainFromTokens$1(e,t,n){return new TokenParser$1(e,n).explainFromTokens(t)}function parseFromTokens$1(e,t,n){let{result:r,zone:i,specificOffset:a,invalidReason:o}=explainFromTokens$1(e,t,n);return[r,i,a,o]}function formatOptsToTokens$1(e,t){if(!e)return null;let n=E.create(t,e).dtFormatter(getDummyDateTime$1()),r=n.formatToParts(),i=n.resolvedOptions();return r.map(t=>tokenForPart$1(t,e,i))}var kt=`Invalid DateTime`,At=864e13;function unsupportedZone$1(e){return new Invalid$1(`unsupported zone`,`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData$1(e){return e.weekData===null&&(e.weekData=gregorianToWeek$1(e.c)),e.weekData}function possiblyCachedLocalWeekData$1(e){return e.localWeekData===null&&(e.localWeekData=gregorianToWeek$1(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function clone$2(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new F({...n,...t,old:n})}function fixOffset$1(e,t,n){let r=e-t*60*1e3,i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;let a=n.offset(r);return i===a?[r,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function tsToObj$1(e,t){e+=t*60*1e3;let n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function objToTS$1(e,t,n){return fixOffset$1(objToLocalTS$1(e),t,n)}function adjustTime$1(e,t){let n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:r,month:i,day:Math.min(e.c.day,daysInMonth$1(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=A.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as(`milliseconds`),[s,c]=fixOffset$1(objToLocalTS$1(a),n,e.zone);return o!==0&&(s+=o,c=e.zone.offset(s)),{ts:s,o:c}}function parseDataToDateTime$1(e,t,n,r,i,a){let{setZone:o,zone:s}=n;if(e&&Object.keys(e).length!==0||t){let r=t||s,i=F.fromObject(e,{...n,zone:r,specificOffset:a});return o?i:i.setZone(s)}else return F.invalid(new Invalid$1(`unparsable`,`the input "${i}" can't be parsed as ${r}`))}function toTechFormat$1(e,t,n=!0){return e.isValid?E.create(w.create(`en-US`),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function toISODate$1(e,t,n){let r=e.c.year>9999||e.c.year<0,i=``;if(r&&e.c.year>=0&&(i+=`+`),i+=padStart$1(e.c.year,r?6:4),n===`year`)return i;if(t){if(i+=`-`,i+=padStart$1(e.c.month),n===`month`)return i;i+=`-`}else if(i+=padStart$1(e.c.month),n===`month`)return i;return i+=padStart$1(e.c.day),i}function toISOTime$1(e,t,n,r,i,a,o){let s=!n||e.c.millisecond!==0||e.c.second!==0,c=``;switch(o){case`day`:case`month`:case`year`:break;default:if(c+=padStart$1(e.c.hour),o===`hour`)break;if(t){if(c+=`:`,c+=padStart$1(e.c.minute),o===`minute`)break;s&&(c+=`:`,c+=padStart$1(e.c.second))}else{if(c+=padStart$1(e.c.minute),o===`minute`)break;s&&(c+=padStart$1(e.c.second))}if(o===`second`)break;s&&(!r||e.c.millisecond!==0)&&(c+=`.`,c+=padStart$1(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!a?c+=`Z`:e.o<0?(c+=`-`,c+=padStart$1(Math.trunc(-e.o/60)),c+=`:`,c+=padStart$1(Math.trunc(-e.o%60))):(c+=`+`,c+=padStart$1(Math.trunc(e.o/60)),c+=`:`,c+=padStart$1(Math.trunc(e.o%60)))),a&&(c+=`[`+e.zone.ianaName+`]`),c}var jt={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Mt={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Nt={ordinal:1,hour:0,minute:0,second:0,millisecond:0},N=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Pt=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],Ft=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function normalizeUnit$1(e){let t={year:`year`,years:`year`,month:`month`,months:`month`,day:`day`,days:`day`,hour:`hour`,hours:`hour`,minute:`minute`,minutes:`minute`,quarter:`quarter`,quarters:`quarter`,second:`second`,seconds:`second`,millisecond:`millisecond`,milliseconds:`millisecond`,weekday:`weekday`,weekdays:`weekday`,weeknumber:`weekNumber`,weeksnumber:`weekNumber`,weeknumbers:`weekNumber`,weekyear:`weekYear`,weekyears:`weekYear`,ordinal:`ordinal`}[e.toLowerCase()];if(!t)throw new InvalidUnitError$1(e);return t}function normalizeUnitWithLocalWeeks$1(e){switch(e.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return normalizeUnit$1(e)}}
1function guessOffsetForZone$1(e){if(P===void 0&&(P=Settings$1.now()),e.type!==`iana`)return e.offset(P);let t=e.name,n=It.get(t);return n===void 0&&(n=e.offset(P),It.set(t,n)),n}function quickDT$1(e,t){let n=normalizeZone$1(t.zone,Settings$1.defaultZone);if(!n.isValid)return F.invalid(unsupportedZone$1(n));let r=w.fromObject(t),i,a;if(isUndefined$1(e.year))i=Settings$1.now();else{for(let t of N)isUndefined$1(e[t])&&(e[t]=jt[t]);let t=hasInvalidGregorianData$1(e)||hasInvalidTimeData$1(e);if(t)return F.invalid(t);let r=guessOffsetForZone$1(n);[i,a]=objToTS$1(e,r,n)}return new F({ts:i,zone:n,loc:r,o:a})}function diffRelative$1(e,t,n){let r=isUndefined$1(n.round)?!0:n.round,i=isUndefined$1(n.rounding)?`trunc`:n.rounding,format=(e,a)=>(e=roundTo$1(e,r||n.calendary?0:2,n.calendary?`round`:i),t.loc.clone(n).relFormatter(n).format(e,a)),differ=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return format(differ(n.unit),n.unit);for(let e of n.units){let t=differ(e);if(Math.abs(t)>=1)return format(t,e)}return format(e>t?-0:0,n.units[n.units.length-1])}function lastOpts$1(e){let t={},n;return e.length>0&&typeof e[e.length-1]==`object`?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}var P,It=new Map,F=class DateTime$1{constructor(e){let t=e.zone||Settings$1.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Invalid$1(`invalid input`):null)||(t.isValid?null:unsupportedZone$1(t));this.ts=isUndefined$1(e.ts)?Settings$1.now():e.ts;let r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,i]=[e.old.c,e.old.o];else{let a=isNumber$1(e.o)&&!e.old?e.o:t.offset(this.ts);r=tsToObj$1(this.ts,a),n=Number.isNaN(r.year)?new Invalid$1(`invalid input`):null,r=n?null:r,i=n?null:a}this._zone=t,this.loc=e.loc||w.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new DateTime$1({})}static local(){let[e,t]=lastOpts$1(arguments),[n,r,i,a,o,s,c]=t;return quickDT$1({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:c},e)}static utc(){let[e,t]=lastOpts$1(arguments),[n,r,i,a,o,s,c]=t;return e.zone=T.utcInstance,quickDT$1({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:c},e)}static fromJSDate(e,t={}){let n=isDate$1(e)?e.valueOf():NaN;if(Number.isNaN(n))return DateTime$1.invalid(`invalid input`);let r=normalizeZone$1(t.zone,Settings$1.defaultZone);return r.isValid?new DateTime$1({ts:n,zone:r,loc:w.fromObject(t)}):DateTime$1.invalid(unsupportedZone$1(r))}static fromMillis(e,t={}){if(!isNumber$1(e))throw new InvalidArgumentError$1(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`);return e<-864e13||e>At?DateTime$1.invalid(`Timestamp out of range`):new DateTime$1({ts:e,zone:normalizeZone$1(t.zone,Settings$1.defaultZone),loc:w.fromObject(t)})}static fromSeconds(e,t={}){if(isNumber$1(e))return new DateTime$1({ts:e*1e3,zone:normalizeZone$1(t.zone,Settings$1.defaultZone),loc:w.fromObject(t)});throw new InvalidArgumentError$1(`fromSeconds requires a numerical input`)}static fromObject(e,t={}){e||={};let n=normalizeZone$1(t.zone,Settings$1.defaultZone);if(!n.isValid)return DateTime$1.invalid(unsupportedZone$1(n));let r=w.fromObject(t),i=normalizeObject$1(e,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:a,startOfWeek:o}=usesLocalWeekValues$1(i,r),s=Settings$1.now(),c=isUndefined$1(t.specificOffset)?n.offset(s):t.specificOffset,l=!isUndefined$1(i.ordinal),u=!isUndefined$1(i.year),d=!isUndefined$1(i.month)||!isUndefined$1(i.day),f=u||d,p=i.weekYear||i.weekNumber;if((f||l)&&p)throw new ConflictingSpecificationError$1(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(d&&l)throw new ConflictingSpecificationError$1(`Can't mix ordinal dates with month/day`);let m=p||i.weekday&&!f,h,g,_=tsToObj$1(s,c);m?(h=Pt,g=Mt,_=gregorianToWeek$1(_,a,o)):l?(h=Ft,g=Nt,_=gregorianToOrdinal$1(_)):(h=N,g=jt);let v=!1;for(let e of h){let t=i[e];isUndefined$1(t)?v?i[e]=g[e]:i[e]=_[e]:v=!0}let y=(m?hasInvalidWeekData$1(i,a,o):l?hasInvalidOrdinalData$1(i):hasInvalidGregorianData$1(i))||hasInvalidTimeData$1(i);if(y)return DateTime$1.invalid(y);let[ee,b]=objToTS$1(m?weekToGregorian$1(i,a,o):l?ordinalToGregorian$1(i):i,c,n),x=new DateTime$1({ts:ee,zone:n,o:b,loc:r});return i.weekday&&f&&e.weekday!==x.weekday?DateTime$1.invalid(`mismatched weekday`,`you can't specify both a weekday of ${i.weekday} and a date of ${x.toISO()}`):x.isValid?x:DateTime$1.invalid(x.invalid)}static fromISO(e,t={}){let[n,r]=parseISODate$1(e);return parseDataToDateTime$1(n,r,t,`ISO 8601`,e)}static fromRFC2822(e,t={}){let[n,r]=parseRFC2822Date$1(e);return parseDataToDateTime$1(n,r,t,`RFC 2822`,e)}static fromHTTP(e,t={}){let[n,r]=parseHTTPDate$1(e);return parseDataToDateTime$1(n,r,t,`HTTP`,t)}static fromFormat(e,t,n={}){if(isUndefined$1(e)||isUndefined$1(t))throw new InvalidArgumentError$1(`fromFormat requires an input string and a format`);let{locale:r=null,numberingSystem:i=null}=n,[a,o,s,c]=parseFromTokens$1(w.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),e,t);return c?DateTime$1.invalid(c):parseDataToDateTime$1(a,o,n,`format ${t}`,e,s)}static fromString(e,t,n={}){return DateTime$1.fromFormat(e,t,n)}static fromSQL(e,t={}){let[n,r]=parseSQL$1(e);return parseDataToDateTime$1(n,r,t,`SQL`,e)}
1static invalid(e,t=null){if(!e)throw new InvalidArgumentError$1(`need to specify a reason the DateTime is invalid`);let n=e instanceof Invalid$1?e:new Invalid$1(e,t);if(Settings$1.throwOnInvalid)throw new InvalidDateTimeError$1(n);return new DateTime$1({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let n=formatOptsToTokens$1(e,w.fromObject(t));return n?n.map(e=>e?e.val:null).join(``):null}static expandFormat(e,t={}){return expandMacroTokens$1(E.parseFormat(e),w.fromObject(t)).map(e=>e.val).join(``)}static resetCache(){P=void 0,It.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData$1(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData$1(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData$1(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal$1(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info$1.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info$1.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info$1.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info$1.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];let e=864e5,t=6e4,n=objToLocalTS$1(this.c),r=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-r*t),o=this.zone.offset(n-i*t);if(a===o)return[this];let s=n-a*t,c=n-o*t,l=tsToObj$1(s,a),u=tsToObj$1(c,o);return l.hour===u.hour&&l.minute===u.minute&&l.second===u.second&&l.millisecond===u.millisecond?[clone$2(this,{ts:s}),clone$2(this,{ts:c})]:[this]}get isInLeapYear(){return isLeapYear$1(this.year)}get daysInMonth(){return daysInMonth$1(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear$1(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear$1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear$1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:n,calendar:r}=E.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(T.instance(e),t)}toLocal(){return this.setZone(Settings$1.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if(e=normalizeZone$1(e,Settings$1.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){let t=e.offset(this.ts),n=this.toObject();[r]=objToTS$1(n,t,e)}
1return clone$2(this,{ts:r,zone:e})}else return DateTime$1.invalid(unsupportedZone$1(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){let r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return clone$2(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let t=normalizeObject$1(e,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:n,startOfWeek:r}=usesLocalWeekValues$1(t,this.loc),i=!isUndefined$1(t.weekYear)||!isUndefined$1(t.weekNumber)||!isUndefined$1(t.weekday),a=!isUndefined$1(t.ordinal),o=!isUndefined$1(t.year),s=!isUndefined$1(t.month)||!isUndefined$1(t.day),c=o||s,l=t.weekYear||t.weekNumber;if((c||a)&&l)throw new ConflictingSpecificationError$1(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(s&&a)throw new ConflictingSpecificationError$1(`Can't mix ordinal dates with month/day`);let u;i?u=weekToGregorian$1({...gregorianToWeek$1(this.c,n,r),...t},n,r):isUndefined$1(t.ordinal)?(u={...this.toObject(),...t},isUndefined$1(t.day)&&(u.day=Math.min(daysInMonth$1(u.year,u.month),u.day))):u=ordinalToGregorian$1({...gregorianToOrdinal$1(this.c),...t});let[d,f]=objToTS$1(u,this.o,this.zone);return clone$2(this,{ts:d,o:f})}plus(e){if(!this.isValid)return this;let t=A.fromDurationLike(e);return clone$2(this,adjustTime$1(this,t))}minus(e){if(!this.isValid)return this;let t=A.fromDurationLike(e).negate();return clone$2(this,adjustTime$1(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let n={},r=A.normalizeUnit(e);switch(r){case`years`:n.month=1;case`quarters`:case`months`:n.day=1;case`weeks`:case`days`:n.hour=0;case`hours`:n.minute=0;case`minutes`:n.second=0;case`seconds`:n.millisecond=0;break}if(r===`weeks`)if(t){let e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;return r===`quarters`&&(n.month=(Math.ceil(this.month/3)-1)*3+1),this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?E.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):kt}toLocaleString(e=r,t={}){return this.isValid?E.create(this.loc.clone(t),e).formatDateTime(this):kt}toLocaleParts(e={}){return this.isValid?E.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e=`extended`,suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1,precision:a=`milliseconds`}={}){if(!this.isValid)return null;a=normalizeUnit$1(a);let o=e===`extended`,s=toISODate$1(this,o,a);return N.indexOf(a)>=3&&(s+=`T`),s+=toISOTime$1(this,o,t,n,r,i,a),s}toISODate({format:e=`extended`,precision:t=`day`}={}){return this.isValid?toISODate$1(this,e===`extended`,normalizeUnit$1(t)):null}toISOWeekDate(){return toTechFormat$1(this,`kkkk-'W'WW-c`)}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:a=`extended`,precision:o=`milliseconds`}={}){return this.isValid?(o=normalizeUnit$1(o),(r&&N.indexOf(o)>=3?`T`:``)+toISOTime$1(this,a===`extended`,t,e,n,i,o)):null}toRFC2822(){return toTechFormat$1(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return toTechFormat$1(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?toISODate$1(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r=`HH:mm:ss.SSS`;return(t||e)&&(n&&(r+=` `),t?r+=`z`:e&&(r+=`ZZ`)),toTechFormat$1(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():kt}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t=`milliseconds`,n={}
1){if(!this.isValid||!e.isValid)return A.invalid(`created by diffing an invalid DateTime`);let r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=maybeArray$1(t).map(A.normalizeUnit),a=e.valueOf()>this.valueOf(),o=diff$1(a?this:e,a?e:this,i,r);return a?o.negate():o}diffNow(e=`milliseconds`,t={}){return this.diff(DateTime$1.now(),e,t)}until(e){return this.isValid?M.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;let r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=r&&r<=i.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||DateTime$1.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0,r=[`years`,`months`,`days`,`hours`,`minutes`,`seconds`],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),diffRelative$1(t,this.plus(n),{...e,numeric:`always`,units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?diffRelative$1(e.base||DateTime$1.fromObject({},{zone:this.zone}),this,{...e,numeric:`auto`,units:[`years`,`months`,`days`],calendary:!0}):null}static min(...e){if(!e.every(DateTime$1.isDateTime))throw new InvalidArgumentError$1(`min requires all arguments be DateTimes`);return bestBy$1(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(DateTime$1.isDateTime))throw new InvalidArgumentError$1(`max requires all arguments be DateTimes`);return bestBy$1(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){let{locale:r=null,numberingSystem:i=null}=n;return explainFromTokens$1(w.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return DateTime$1.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){let{locale:n=null,numberingSystem:r=null}=t;return new TokenParser$1(w.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0}),e)}static fromFormatParser(e,t,n={}){if(isUndefined$1(e)||isUndefined$1(t))throw new InvalidArgumentError$1(`fromFormatParser requires an input string and a format parser`);let{locale:r=null,numberingSystem:i=null}=n,a=w.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!a.equals(t.locale))throw new InvalidArgumentError$1(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);let{result:o,zone:s,specificOffset:c,invalidReason:l}=t.explainFromTokens(e);return l?DateTime$1.invalid(l):parseDataToDateTime$1(o,s,n,`format ${t.format}`,e,c)}static get DATE_SHORT(){return r}static get DATE_MED(){return i}static get DATE_MED_WITH_WEEKDAY(){return a}static get DATE_FULL(){return o}static get DATE_HUGE(){return s}static get TIME_SIMPLE(){return c}static get TIME_WITH_SECONDS(){return l}static get TIME_WITH_SHORT_OFFSET(){return u}static get TIME_WITH_LONG_OFFSET(){return d}static get TIME_24_SIMPLE(){return f}static get TIME_24_WITH_SECONDS(){return p}static get TIME_24_WITH_SHORT_OFFSET(){return m}static get TIME_24_WITH_LONG_OFFSET(){return h}static get DATETIME_SHORT(){return g}static get DATETIME_SHORT_WITH_SECONDS(){return _}static get DATETIME_MED(){return v}static get DATETIME_MED_WITH_SECONDS(){return y}static get DATETIME_MED_WITH_WEEKDAY(){return ee}static get DATETIME_FULL(){return b}static get DATETIME_FULL_WITH_SECONDS(){return x}static get DATETIME_HUGE(){return te}static get DATETIME_HUGE_WITH_SECONDS(){return ne}};function friendlyDateTime$1(e){if(F.isDateTime(e))return e;if(e&&e.valueOf&&isNumber$1(e.valueOf()))return F.fromJSDate(e);if(e&&typeof e==`object`)return F.fromObject(e);throw new InvalidArgumentError$1(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var LuxonError=class extends Error{},InvalidDateTimeError=class extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},InvalidIntervalError=class extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},InvalidDurationError=class extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},ConflictingSpecificationError=class extends LuxonError{},InvalidUnitError=class extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}},InvalidArgumentError=class extends LuxonError{},ZoneIsAbstractError=class extends LuxonError{constructor(){super(`Zone is an abstract class`)}}
1,I=`numeric`,L=`short`,R=`long`,z={year:I,month:I,day:I},Lt={year:I,month:L,day:I},Rt={year:I,month:L,day:I,weekday:L},zt={year:I,month:R,day:I},Bt={year:I,month:R,day:I,weekday:R},Vt={hour:I,minute:I},Ht={hour:I,minute:I,second:I},Ut={hour:I,minute:I,second:I,timeZoneName:L},Wt={hour:I,minute:I,second:I,timeZoneName:R},Gt={hour:I,minute:I,hourCycle:`h23`},Kt={hour:I,minute:I,second:I,hourCycle:`h23`},qt={hour:I,minute:I,second:I,hourCycle:`h23`,timeZoneName:L},Jt={hour:I,minute:I,second:I,hourCycle:`h23`,timeZoneName:R},Yt={year:I,month:I,day:I,hour:I,minute:I},Xt={year:I,month:I,day:I,hour:I,minute:I,second:I},Zt={year:I,month:L,day:I,hour:I,minute:I},Qt={year:I,month:L,day:I,hour:I,minute:I,second:I},$t={year:I,month:L,day:I,weekday:L,hour:I,minute:I},en={year:I,month:R,day:I,hour:I,minute:I,timeZoneName:L},tn={year:I,month:R,day:I,hour:I,minute:I,second:I,timeZoneName:L},nn={year:I,month:R,day:I,weekday:R,hour:I,minute:I,timeZoneName:R},rn={year:I,month:R,day:I,weekday:R,hour:I,minute:I,second:I,timeZoneName:R},Zone=class{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}},an=null,on=class SystemZone extends Zone{static get instance(){return an===null&&(an=new SystemZone),an}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return parseZoneInfo(e,t,n)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type===`system`}get isValid(){return!0}},sn=new Map;function makeDTF(e){let t=sn.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,era:`short`}),sn.set(e,t)),t}var cn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){let n=e.format(t).replace(/\u200E/g,``),[,r,i,a,o,s,c,l]=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n);return[a,r,i,o,s,c,l]}function partsOffset(e,t){let n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){let{type:t,value:i}=n[e],a=cn[t];t===`era`?r[a]=i:isUndefined(a)||(r[a]=parseInt(i,10))}return r}var ln=new Map,B=class IANAZone extends Zone{static create(e){let t=ln.get(e);return t===void 0&&ln.set(e,t=new IANAZone(e)),t}static resetCache(){ln.clear(),sn.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=IANAZone.isValidZone(e)}get type(){return`iana`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return parseZoneInfo(e,t,n,this.name)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){if(!this.valid)return NaN;let t=new Date(e);if(isNaN(t))return NaN;let n=makeDTF(this.name),[r,i,a,o,s,c,l]=n.formatToParts?partsOffset(n,t):hackyOffset(n,t);o===`BC`&&(r=-Math.abs(r)+1);let u=objToLocalTS({year:r,month:i,day:a,hour:s===24?0:s,minute:c,second:l,millisecond:0}),d=+t,f=d%1e3;return d-=f>=0?f:1e3+f,(u-d)/(60*1e3)}equals(e){return e.type===`iana`&&e.name===this.name}get isValid(){return this.valid}},un={};function getCachedLF(e,t={}){let n=JSON.stringify([e,t]),r=un[n];return r||(r=new Intl.ListFormat(e,t),un[n]=r),r}var dn=new Map;function getCachedDTF(e,t={}){let n=JSON.stringify([e,t]),r=dn.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),dn.set(n,r)),r}var fn=new Map;function getCachedINF(e,t={}){let n=JSON.stringify([e,t]),r=fn.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),fn.set(n,r)),r}var pn=new Map;function getCachedRTF(e,t={}){let{base:n,...r}=t,i=JSON.stringify([e,r]),a=pn.get(i);return a===void 0&&(a=new Intl.RelativeTimeFormat(e,t),pn.set(i,a)),a}var V=null;function systemLocale(){return V||(V=new Intl.DateTimeFormat().resolvedOptions().locale,V)}var mn=new Map;function getCachedIntResolvedOptions(e){let t=mn.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),mn.set(e,t)),t}var hn=new Map;function getCachedWeekInfo(e){let t=hn.get(e);if(!t){let n=new Intl.Locale(e);t=`getWeekInfo`in n?n.getWeekInfo():n.weekInfo,`minimalDays`in t||(t={...gn,...t}),hn.set(e,t)}return t}
1function parseLocaleString(e){let t=e.indexOf(`-x-`);t!==-1&&(e=e.substring(0,t));let n=e.indexOf(`-u-`);if(n===-1)return[e];{let t,r;try{t=getCachedDTF(e).resolvedOptions(),r=e}catch{let i=e.substring(0,n);t=getCachedDTF(i).resolvedOptions(),r=i}let{numberingSystem:i,calendar:a}=t;return[r,i,a]}}function intlConfigString(e,t,n){return n||t?(e.includes(`-u-`)||(e+=`-u`),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}function mapMonths(e){let t=[];for(let n=1;n<=12;n++){let r=$.utc(2009,n,1);t.push(e(r))}return t}function mapWeekdays(e){let t=[];for(let n=1;n<=7;n++){let r=$.utc(2016,11,13+n);t.push(e(r))}return t}function listStuff(e,t,n,r){let i=e.listingMode();return i===`error`?null:i===`en`?n(t):r(t)}function supportsFastNumbers(e){return e.numberingSystem&&e.numberingSystem!==`latn`?!1:e.numberingSystem===`latn`||!e.locale||e.locale.startsWith(`en`)||getCachedIntResolvedOptions(e.locale).numberingSystem===`latn`}var PolyNumberFormatter=class{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:r,floor:i,...a}=n;if(!t||Object.keys(a).length>0){let t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=getCachedINF(e,t)}}format(e){if(this.inf){let t=this.floor?Math.floor(e):e;return this.inf.format(t)}else return padStart(this.floor?Math.floor(e):roundTo(e,3),this.padTo)}},PolyDateFormatter=class{constructor(e,t,n){this.opts=n,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type===`fixed`){let t=-1*(e.offset/60),n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;e.offset!==0&&B.create(n).valid?(r=n,this.dt=e):(r=`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,r=e.zone.name):(r=`UTC`,this.dt=e.setZone(`UTC`).plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=getCachedDTF(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(``):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if(e.type===`timeZoneName`){let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter=class{constructor(e,t,n){this.opts={style:`long`,...n},!t&&hasRelative()&&(this.rtf=getCachedRTF(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):formatRelativeTime(t,e,this.opts.numeric,this.opts.style!==`long`)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}},gn={firstDay:1,minimalDays:4,weekend:[6,7]},H=class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,r,i=!1){let a=e||Settings.defaultLocale;return new Locale(a||(i?`en-US`:systemLocale()),t||Settings.defaultNumberingSystem,n||Settings.defaultOutputCalendar,validateWeekSettings(r)||Settings.defaultWeekSettings,a)}static resetCache(){V=null,dn.clear(),fn.clear(),pn.clear(),mn.clear(),hn.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:r}={}){return Locale.create(e,t,n,r)}constructor(e,t,n,r,i){let[a,o,s]=parseLocaleString(e);this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??=supportsFastNumbers(this),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem===`latn`)&&(this.outputCalendar===null||this.outputCalendar===`gregory`);return e&&t?`en`:`intl`}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(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,t=!1){return listStuff(this,e,months,()=>
1{let n=this.intl===`ja`||this.intl.startsWith(`ja-`);t&=!n;let r=t?{month:e,day:`numeric`}:{month:e},i=t?`format`:`standalone`;if(!this.monthsCache[i][e]){let t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,`month`);this.monthsCache[i][e]=mapMonths(t)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return listStuff(this,e,weekdays,()=>{let n=t?{weekday:e,year:`numeric`,month:`long`,day:`numeric`}:{weekday:e},r=t?`format`:`standalone`;return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=mapWeekdays(e=>this.extract(e,n,`weekday`))),this.weekdaysCache[r][e]})}meridiems(){return listStuff(this,void 0,()=>Ln,()=>{if(!this.meridiemCache){let e={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[$.utc(2016,11,13,9),$.utc(2016,11,13,19)].map(t=>this.extract(t,e,`dayperiod`))}return this.meridiemCache})}eras(e){return listStuff(this,e,eras,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[$.utc(-40,1,1),$.utc(2017,1,1)].map(e=>this.extract(e,t,`era`))),this.eraCache[e]})}extract(e,t,n){let r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||getCachedIntResolvedOptions(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo()?getCachedWeekInfo(this.locale):gn}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},_n=null,U=class FixedOffsetZone extends Zone{static get utcInstance(){return _n===null&&(_n=new FixedOffsetZone(0)),_n}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new FixedOffsetZone(signedOffset(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${formatOffset(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${formatOffset(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type===`fixed`&&e.fixed===this.fixed}get isValid(){return!0}},InvalidZone=class extends Zone{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 normalizeZone(e,t){if(isUndefined(e)||e===null)return t;if(e instanceof Zone)return e;if(isString(e)){let n=e.toLowerCase();return n==="default"?t:n===`local`||n===`system`?on.instance:n===`utc`||n===`gmt`?U.utcInstance:U.parseSpecifier(n)||B.create(e)}else if(isNumber(e))return U.instance(e);else if(typeof e==`object`&&`offset`in e&&typeof e.offset==`function`)return e;else return new InvalidZone(e)}var vn={arab:`[Ù -Ù©]`,arabext:`[Û°-Û¹]`,bali:`[á-á]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[ï¼-ï¼]`,gujr:`[૦-૯]`,hanidec:`[ã|ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹]`,khmr:`[á -á©]`,knda:`[೦-೯]`,laoo:`[à»-à»]`,limb:`[á¥-á¥]`,mlym:`[൦-൯]`,mong:`[á -á ]`,mymr:`[á-á]`,orya:`[à¦-à¯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[à¹-à¹]`,tibt:`[༠-༩]`,latn:`\\d`},yn={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]},bn=vn.hanidec.replace(/[\[|\]]/g,``).split(``);function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(e[n].search(vn.hanidec)!==-1)t+=bn.indexOf(e[n]);else for(let e in yn){let[n,i]=yn[e];r>=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}else return t}var xn=new Map;function resetDigitRegexCache(){xn.clear()}function digitRegex({numberingSystem:e},t=``){let n=e||`latn`,r=xn.get(n);r===void 0&&(r=new Map,xn.set(n,r));let i=r.get(t);return i===void 0&&(i=RegExp(`${vn[n]}${t}`),r.set(t,i)),i}var now=()=>Date.now(),Sn=`system`,Cn=null,wn=null,Tn=null,En=60,Dn,On=null,Settings=class{static get now(){return now}static set now(e){now=e}static set defaultZone(e){Sn=e}static get defaultZone(){return normalizeZone(Sn,on.instance)}static get defaultLocale(){return Cn}static set defaultLocale(e){Cn=e}static get defaultNumberingSystem(){return wn}static set defaultNumberingSystem(e){wn=e}
1static get defaultOutputCalendar(){return Tn}static set defaultOutputCalendar(e){Tn=e}static get defaultWeekSettings(){return On}static set defaultWeekSettings(e){On=validateWeekSettings(e)}static get twoDigitCutoffYear(){return En}static set twoDigitCutoffYear(e){En=e%100}static get throwOnInvalid(){return Dn}static set throwOnInvalid(e){Dn=e}static resetCaches(){H.resetCache(),B.resetCache(),$.resetCache(),resetDigitRegexCache()}},Invalid=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},kn=[0,31,59,90,120,151,181,212,243,273,304,334],An=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid(`unit out of range`,`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,n){let r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);let i=r.getUTCDay();return i===0?7:i}function computeOrdinal(e,t,n){return n+(isLeapYear(e)?An:kn)[t-1]}function uncomputeOrdinal(e,t){let n=isLeapYear(e)?An:kn,r=n.findIndex(e=>e<t),i=t-n[r];return{month:r+1,day:i}}function isoWeekdayToLocal(e,t){return(e-t+7)%7+1}function gregorianToWeek(e,t=4,n=1){let{year:r,month:i,day:a}=e,o=computeOrdinal(r,i,a),s=isoWeekdayToLocal(dayOfWeek(r,i,a),n),c=Math.floor((o-s+14-t)/7),l;return c<1?(l=r-1,c=weeksInWeekYear(l,t,n)):c>weeksInWeekYear(r,t,n)?(l=r+1,c=1):l=r,{weekYear:l,weekNumber:c,weekday:s,...timeObject(e)}}function weekToGregorian(e,t=4,n=1){let{weekYear:r,weekNumber:i,weekday:a}=e,o=isoWeekdayToLocal(dayOfWeek(r,1,t),n),s=daysInYear(r),c=i*7+a-o-7+t,l;c<1?(l=r-1,c+=daysInYear(l)):c>s?(l=r+1,c-=daysInYear(r)):l=r;let{month:u,day:d}=uncomputeOrdinal(l,c);return{year:l,month:u,day:d,...timeObject(e)}}function gregorianToOrdinal(e){let{year:t,month:n,day:r}=e;return{year:t,ordinal:computeOrdinal(t,n,r),...timeObject(e)}}function ordinalToGregorian(e){let{year:t,ordinal:n}=e,{month:r,day:i}=uncomputeOrdinal(t,n);return{year:t,month:r,day:i,...timeObject(e)}}function usesLocalWeekValues(e,t){if(!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear)){if(!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear))throw new ConflictingSpecificationError(`Cannot mix locale-based week fields with ISO-based week fields`);return isUndefined(e.localWeekday)||(e.weekday=e.localWeekday),isUndefined(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),isUndefined(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData(e,t=4,n=1){let r=isInteger(e.weekYear),i=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,n)),a=integerBetween(e.weekday,1,7);return r?i?a?!1:unitOutOfRange(`weekday`,e.weekday):unitOutOfRange(`week`,e.weekNumber):unitOutOfRange(`weekYear`,e.weekYear)}function hasInvalidOrdinalData(e){let t=isInteger(e.year),n=integerBetween(e.ordinal,1,daysInYear(e.year));return t?n?!1:unitOutOfRange(`ordinal`,e.ordinal):unitOutOfRange(`year`,e.year)}function hasInvalidGregorianData(e){let t=isInteger(e.year),n=integerBetween(e.month,1,12),r=integerBetween(e.day,1,daysInMonth(e.year,e.month));return t?n?r?!1:unitOutOfRange(`day`,e.day):unitOutOfRange(`month`,e.month):unitOutOfRange(`year`,e.year)}function hasInvalidTimeData(e){let{hour:t,minute:n,second:r,millisecond:i}=e,a=integerBetween(t,0,23)||t===24&&n===0&&r===0&&i===0,o=integerBetween(n,0,59),s=integerBetween(r,0,59),c=integerBetween(i,0,999);return a?o?s?c?!1:unitOutOfRange(`millisecond`,i):unitOutOfRange(`second`,r):unitOutOfRange(`minute`,n):unitOutOfRange(`hour`,t)}function isUndefined(e){return e===void 0}function isNumber(e){return typeof e==`number`}function isInteger(e){return typeof e==`number`&&e%1==0}function isString(e){return typeof e==`string`}function isDate(e){return Object.prototype.toString.call(e)===`[object Date]`}function hasRelative(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,n){if(e.length!==0)return e.reduce((e,r)=>{let i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function pick(e,t){return t.reduce((t,n)=>(t[n]=e[n],t),{})}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null)return null;if(typeof e!=`object`)throw new InvalidArgumentError(`Week settings must be an object`);if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!integerBetween(e,1,7)))throw new InvalidArgumentError(`Invalid week settings`);return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}
1function integerBetween(e,t,n){return isInteger(e)&&e>=t&&e<=n}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){let n=e<0,r;return r=n?`-`+(``+-e).padStart(t,`0`):(``+e).padStart(t,`0`),r}function parseInteger(e){if(!(isUndefined(e)||e===null||e===``))return parseInt(e,10)}function parseFloating(e){if(!(isUndefined(e)||e===null||e===``))return parseFloat(e)}function parseMillis(e){if(!(isUndefined(e)||e===null||e===``)){let t=parseFloat(`0.`+e)*1e3;return Math.floor(t)}}function roundTo(e,t,n=`round`){let r=10**t;switch(n){case`expand`:return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case`trunc`:return Math.trunc(e*r)/r;case`round`:return Math.round(e*r)/r;case`floor`:return Math.floor(e*r)/r;case`ceil`:return Math.ceil(e*r)/r;default:throw RangeError(`Value rounding ${n} is out of range`)}}function isLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){let n=floorMod(t-1,12)+1,r=e+(t-n)/12;return n===2?isLeapYear(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function firstWeekOffset(e,t,n){return-isoWeekdayToLocal(dayOfWeek(e,1,t),n)+t-1}function weeksInWeekYear(e,t=4,n=1){let r=firstWeekOffset(e,t,n),i=firstWeekOffset(e+1,t,n);return(daysInYear(e)-r+i)/7}function untruncateYear(e){return e>99?e:e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,n,r=null){let i=new Date(e),a={hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};r&&(a.timeZone=r);let o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(n,o).formatToParts(i).find(e=>e.type.toLowerCase()===`timezonename`);return s?s.value:null}function signedOffset(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function asNumber(e){let t=Number(e);if(typeof e==`boolean`||e===``||!Number.isFinite(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){let n={};for(let r in e)if(hasOwnProperty(e,r)){let i=e[r];if(i==null)continue;n[t(r)]=asNumber(i)}return n}function formatOffset(e,t){let n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?`+`:`-`;switch(t){case`short`:return`${i}${padStart(n,2)}:${padStart(r,2)}`;case`narrow`:return`${i}${n}${r>0?`:${r}`:``}`;case`techie`:return`${i}${padStart(n,2)}${padStart(r,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return pick(e,[`hour`,`minute`,`second`,`millisecond`])}var jn=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Mn=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Nn=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function months(e){switch(e){case`narrow`:return[...Nn];case`short`:return[...Mn];case`long`:return[...jn];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}}var Pn=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],Fn=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],In=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function weekdays(e){switch(e){case`narrow`:return[...In];case`short`:return[...Fn];case`long`:return[...Pn];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}var Ln=[`AM`,`PM`],Rn=[`Before Christ`,`Anno Domini`],zn=[`BC`,`AD`],Bn=[`B`,`A`];function eras(e){switch(e){case`narrow`:return[...Bn];case`short`:return[...zn];case`long`:return[...Rn];default:return null}}function meridiemForDateTime(e){return Ln[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,n=`always`,r=!1){let i={years:[`year`,`yr.`],quarters:[`quarter`,`qtr.`],months:[`month`,`mo.`],weeks:[`week`,`wk.`],days:[`day`,`day`,`days`],hours:[`hour`,`hr.`],minutes:[`minute`,`min.`],seconds:[`second`,`sec.`]},a=[`hours`,`minutes`,`seconds`].indexOf(e)===-1;if(n===`auto`&&a){let n=e===`days`;switch(t){case 1:return n?`tomorrow`:`next ${i[e][0]}`;case-1:return n?`yesterday`:`last ${i[e][0]}`;case 0:return n?`today`:`this ${i[e][0]}`}}
1let o=Object.is(t,-0)||t<0,s=Math.abs(t),c=s===1,l=i[e],u=r?c?l[1]:l[2]||l[1]:c?i[e][0]:e;return o?`${s} ${u} ago`:`in ${s} ${u}`}function stringifyTokens(e,t){let n=``;for(let r of e)r.literal?n+=r.val:n+=t(r.val);return n}var Vn={D:z,DD:Lt,DDD:zt,DDDD:Bt,t:Vt,tt:Ht,ttt:Ut,tttt:Wt,T:Gt,TT:Kt,TTT:qt,TTTT:Jt,f:Yt,ff:Zt,fff:en,ffff:nn,F:Xt,FF:Qt,FFF:tn,FFFF:rn},W=class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,n=``,r=!1,i=[];for(let a=0;a<e.length;a++){let o=e.charAt(a);o===`'`?((n.length>0||r)&&i.push({literal:r||/^\s+$/.test(n),val:n===``?`'`:n}),t=null,n=``,r=!r):r||o===t?n+=o:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=o,t=o)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Vn[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return padStart(e,t);let r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){let n=this.loc.listingMode()===`en`,r=this.loc.outputCalendar&&this.loc.outputCalendar!==`gregory`,string=(t,n)=>this.loc.extract(e,t,n),formatOffset=t=>e.isOffsetFixed&&e.offset===0&&t.allowZ?`Z`:e.isValid?e.zone.formatOffset(e.ts,t.format):``,meridiem=()=>n?meridiemForDateTime(e):string({hour:`numeric`,hourCycle:`h12`},`dayperiod`),month=(t,r)=>n?monthForDateTime(e,t):string(r?{month:t}:{month:t,day:`numeric`},`month`),weekday=(t,r)=>n?weekdayForDateTime(e,t):string(r?{weekday:t}:{weekday:t,month:`long`,day:`numeric`},`weekday`),maybeMacro=t=>{let n=Formatter.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},era=t=>n?eraForDateTime(e,t):string({era:t},`era`),tokenToString=t=>{switch(t){case`S`:return this.num(e.millisecond);case`u`:case`SSS`:return this.num(e.millisecond,3);case`s`:return this.num(e.second);case`ss`:return this.num(e.second,2);case`uu`:return this.num(Math.floor(e.millisecond/10),2);case`uuu`:return this.num(Math.floor(e.millisecond/100));case`m`:return this.num(e.minute);case`mm`:return this.num(e.minute,2);case`h`:return this.num(e.hour%12==0?12:e.hour%12);case`hh`:return this.num(e.hour%12==0?12:e.hour%12,2);case`H`:return this.num(e.hour);case`HH`:return this.num(e.hour,2);case`Z`:return formatOffset({format:`narrow`,allowZ:this.opts.allowZ});case`ZZ`:return formatOffset({format:`short`,allowZ:this.opts.allowZ});case`ZZZ`:return formatOffset({format:`techie`,allowZ:this.opts.allowZ});case`ZZZZ`:return e.zone.offsetName(e.ts,{format:`short`,locale:this.loc.locale});case`ZZZZZ`:return e.zone.offsetName(e.ts,{format:`long`,locale:this.loc.locale});case`z`:return e.zoneName;case`a`:return meridiem();case`d`:return r?string({day:`numeric`},`day`):this.num(e.day);case`dd`:return r?string({day:`2-digit`},`day`):this.num(e.day,2);case`c`:return this.num(e.weekday);case`ccc`:return weekday(`short`,!0);case`cccc`:return weekday(`long`,!0);case`ccccc`:return weekday(`narrow`,!0);case`E`:return this.num(e.weekday);case`EEE`:return weekday(`short`,!1);case`EEEE`:return weekday(`long`,!1);case`EEEEE`:return weekday(`narrow`,!1);case`L`:return r?string({month:`numeric`,day:`numeric`},`month`):this.num(e.month);case`LL`:return r?string({month:`2-digit`,day:`numeric`},`month`):this.num(e.month,2);case`LLL`:return month(`short`,!0);case`LLLL`:return month(`long`,!0);case`LLLLL`:return month(`narrow`,!0);case`M`:return r?string({month:`numeric`},`month`):this.num(e.month);case`MM`:return r?string({month:`2-digit`},`month`):this.num(e.month,2);case`MMM`:return month(`short`,!1);case`MMMM`:return month(`long`,!1);case`MMMMM`:return month(`narrow`,!1);case`y`:return r?string({year:`numeric`},`year`):this.num(e.year);case`yy`:return r?string({year:`2-digit`},`year`):this.num(e.year.toString().slice(-2),2);case`yyyy`:return r?string({year:`numeric`},`year`):this.num(e.year,4);case`yyyyyy`:return r?string({year:`numeric`},`year`):this.num(e.year,6);case`G`:return era(`short`);case`GG`:return era(`long`);case`GGGGG`:return era(`narrow`);case`kk`:return this.num(e.weekYear.toString().slice(-2),2);case`kkkk`:return this.num(e.weekYear,4);case`W`:return this.num(e.weekNumber);case`WW`:return this.num(e.weekNumber,2);case`n`:return this.num(e.localWeekNumber);case`nn`:return this.num(e.localWeekNumber,2);case`ii`:return this.num(e.localWeekYear.toString().slice(-2),2);case`iiii`:return this.num(e.localWeekYear,4);case`o`:return this.num(e.ordinal);case`ooo`:return this.num(e.ordinal,3);case`q`:return this.num(e.quarter);case`qq`:return this.num(e.quarter,2);case`X`:return this.num(Math.floor(e.ts/1e3));case`x`:return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){let n=this.opts.signMode===`negativeLargestOnly`?-1:1,tokenToField=e=>{switch(e[0]){case`S`:return`milliseconds`;case`s`:return`seconds`;case`m`:return`minutes`;case`h`:return`hours`;case`d`:return`days`;case`w`:return`weeks`;case`M`:return`months`;case`y`:return`years`;default:return null}},tokenToString=(e,t)=>
1r=>{let i=tokenToField(r);if(i){let a=t.isNegativeDuration&&i!==t.largestUnit?n:1,o;return o=this.opts.signMode===`negativeLargestOnly`&&i!==t.largestUnit?`never`:this.opts.signMode===`all`?`always`:`auto`,this.num(e.get(i)*a,r.length,o)}else return r},r=Formatter.parseFormat(t),i=r.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),a=e.shiftTo(...i.map(tokenToField).filter(e=>e));return stringifyTokens(r,tokenToString(a,{isNegativeDuration:a<0,largestUnit:Object.keys(a.values)[0]}))}},Hn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){let t=e.reduce((e,t)=>e+t.source,``);return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce(([e,n,r],i)=>{let[a,o,s]=i(t,r);return[{...e,...a},o||n,s]},[{},null,1]).slice(0,2)}function parse(e,...t){if(e==null)return[null,null];for(let[n,r]of t){let t=n.exec(e);if(t)return r(t)}return[null,null]}function simpleParse(...e){return(t,n)=>{let r={},i;for(i=0;i<e.length;i++)r[e[i]]=parseInteger(t[n+i]);return[r,null,n+i]}}var Un=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Wn=`(?:${Un.source}?(?:\\[(${Hn.source})\\])?)?`,Gn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Kn=RegExp(`${Gn.source}${Wn}`),qn=RegExp(`(?:[Tt]${Kn.source})?`),Jn=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Yn=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Xn=/(\d{4})-?(\d{3})/,Zn=simpleParse(`weekYear`,`weekNumber`,`weekDay`),Qn=simpleParse(`year`,`ordinal`),$n=/(\d{4})-(\d\d)-(\d\d)/,er=RegExp(`${Gn.source} ?(?:${Un.source}|(${Hn.source}))?`),tr=RegExp(`(?: ${er.source})?`);function int(e,t,n){let r=e[t];return isUndefined(r)?n:parseInteger(r)}function extractISOYmd(e,t){return[{year:int(e,t),month:int(e,t+1,1),day:int(e,t+2,1)},null,t+3]}function extractISOTime(e,t){return[{hours:int(e,t,0),minutes:int(e,t+1,0),seconds:int(e,t+2,0),milliseconds:parseMillis(e[t+3])},null,t+4]}function extractISOOffset(e,t){let n=!e[t]&&!e[t+1],r=signedOffset(e[t+1],e[t+2]);return[{},n?null:U.instance(r),t+3]}function extractIANAZone(e,t){return[{},e[t]?B.create(e[t]):null,t+1]}var nr=RegExp(`^T?${Gn.source}$`),rr=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(e){let[t,n,r,i,a,o,s,c,l]=e,u=t[0]===`-`,d=c&&c[0]===`-`,maybeNegate=(e,t=!1)=>e!==void 0&&(t||e&&u)?-e:e;return[{years:maybeNegate(parseFloating(n)),months:maybeNegate(parseFloating(r)),weeks:maybeNegate(parseFloating(i)),days:maybeNegate(parseFloating(a)),hours:maybeNegate(parseFloating(o)),minutes:maybeNegate(parseFloating(s)),seconds:maybeNegate(parseFloating(c),c===`-0`),milliseconds:maybeNegate(parseMillis(l),d)}]}var ir={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function fromStrings(e,t,n,r,i,a,o){let s={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mn.indexOf(n)+1,day:parseInteger(r),hour:parseInteger(i),minute:parseInteger(a)};return o&&(s.second=parseInteger(o)),e&&(s.weekday=e.length>3?Pn.indexOf(e)+1:Fn.indexOf(e)+1),s}var ar=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){let[,t,n,r,i,a,o,s,c,l,u,d]=e,f=fromStrings(t,i,r,n,a,o,s),p;return p=c?ir[c]:l?0:signedOffset(u,d),[f,new U(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}var or=/^(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$/,sr=/^(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$/,cr=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){let[,t,n,r,i,a,o,s]=e;return[fromStrings(t,i,r,n,a,o,s),U.utcInstance]}function extractASCII(e){let[,t,n,r,i,a,o,s]=e;return[fromStrings(t,s,n,r,i,a,o),U.utcInstance]}var lr=combineRegexes(Jn,qn),ur=combineRegexes(Yn,qn),dr=combineRegexes(Xn,qn),fr=combineRegexes(Kn),pr=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),mr=combineExtractors(Zn,extractISOTime,extractISOOffset,extractIANAZone),hr=combineExtractors(Qn,extractISOTime,extractISOOffset,extractIANAZone),gr=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return parse(e,[lr,pr],[ur,mr],[dr,hr],[fr,gr])}function parseRFC2822Date(e){return parse(preprocessRFC2822(e),[ar,extractRFC2822])}function parseHTTPDate(e){return parse(e,[or,extractRFC1123Or850],[sr,extractRFC1123Or850],[cr,extractASCII])}function parseISODuration(e){return parse(e,[rr,extractISODuration])}var _r=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return parse(e,[nr,_r])}var vr=combineRegexes($n,tr),yr=combineRegexes(er),br=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);
1function parseSQL(e){return parse(e,[vr,pr],[yr,br])}var xr=`Invalid Duration`,Sr={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Cr={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:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...Sr},G=146097/400,K=146097/4800,wr={years:{quarters:4,months:12,weeks:G/7,days:G,hours:G*24,minutes:G*24*60,seconds:G*24*60*60,milliseconds:G*24*60*60*1e3},quarters:{months:3,weeks:G/28,days:G/4,hours:G*24/4,minutes:G*24*60/4,seconds:G*24*60*60/4,milliseconds:G*24*60*60*1e3/4},months:{weeks:K/7,days:K,hours:K*24,minutes:K*24*60,seconds:K*24*60*60,milliseconds:K*24*60*60*1e3},...Sr},q=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],Tr=q.slice(0).reverse();function clone$1(e,t,n=!1){return new J({values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix})}function durationToMillis(e,t){let n=t.milliseconds??0;for(let r of Tr.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function normalizeValues(e,t){let n=durationToMillis(e,t)<0?-1:1;q.reduceRight((r,i)=>{if(isUndefined(t[i]))return r;if(r){let a=t[r]*n,o=e[i][r],s=Math.floor(a/o);t[i]+=s*n,t[r]-=s*o*n}return i},null),q.reduce((n,r)=>{if(isUndefined(t[r]))return n;if(n){let i=t[n]%1;t[n]-=i,t[r]+=i*e[n][r]}return r},null)}function removeZeroes(e){let t={};for(let[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}var J=class Duration{constructor(e){let t=e.conversionAccuracy===`longterm`||!1,n=t?wr:Cr;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||H.create(),this.conversionAccuracy=t?`longterm`:`casual`,this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(typeof e!=`object`||!e)throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?`null`:typeof e}`);return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:H.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e))return Duration.fromMillis(e);if(Duration.isDuration(e))return e;if(typeof e==`object`)return Duration.fromObject(e);throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[n]=parseISODuration(e);return n?Duration.fromObject(n,t):Duration.invalid(`unparsable`,`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[n]=parseISOTimeOnly(e);return n?Duration.fromObject(n,t):Duration.invalid(`unparsable`,`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new InvalidArgumentError(`need to specify a reason the Duration is invalid`);let n=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDurationError(n);return new Duration({invalid:n})}static normalizeUnit(e){let t={year:`years`,years:`years`,quarter:`quarters`,quarters:`quarters`,month:`months`,months:`months`,week:`weeks`,weeks:`weeks`,day:`days`,days:`days`,hour:`hours`,hours:`hours`,minute:`minutes`,minutes:`minutes`,second:`seconds`,seconds:`seconds`,millisecond:`milliseconds`,milliseconds:`milliseconds`}[e&&e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}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,t={}){let n={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?W.create(this.loc,n).formatDurationFromString(this,e):xr}toHuman(e={}){if(!this.isValid)return xr;let t=e.showZeros!==!1,n=q.map(n=>{let r=this.values[n];return isUndefined(r)||r===0&&!t?null:this.loc.numberFormatter({style:`unit`,unitDisplay:`long`,...e,unit:n.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:`conjunction`,style:e.listStyle||`narrow`,...e}).format(n)}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+=roundTo(this.seconds+this.milliseconds/1e3,3)+`S`),e===`P`&&(e+=`T0S`),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:`extended`,...e,includeOffset:!1},$.fromMillis(t,{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?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=Duration.fromDurationLike(e),n={};for(let e of q)(hasOwnProperty(t.values,e)||hasOwnProperty(this.values,e))&&(n[e]=t.get(e)+this.get(e));return clone$1(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=asNumber(e(this.values[n],n));return clone$1(this,{values:t},!0)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone$1(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){let i={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n};return clone$1(this,i)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return normalizeValues(this.matrix,e),clone$1(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:e},!0)}shiftTo(...e){if(!this.isValid||e.length===0)return this;e=e.map(e=>Duration.normalizeUnit(e));let t={},n={},r=this.toObject(),i;for(let a of q)if(e.indexOf(a)>=0){i=a;let e=0;for(let t in n)e+=this.matrix[t][a]*n[t],n[t]=0;
1isNumber(r[a])&&(e+=r[a]);let o=Math.trunc(e);t[a]=o,n[a]=(e*1e3-o*1e3)/1e3}else isNumber(r[a])&&(n[a]=r[a]);for(let e in n)n[e]!==0&&(t[i]+=e===i?n[e]:n[e]/this.matrix[i][e]);return normalizeValues(this.matrix,t),clone$1(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo(`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return clone$1(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=removeZeroes(this.values);return clone$1(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 eq(e,t){return e===void 0||e===0?t===void 0||t===0:e===t}for(let t of q)if(!eq(this.values[t],e.values[t]))return!1;return!0}},Y=`Invalid Interval`;function validateStartEnd(e,t){return!e||!e.isValid?X.invalid(`missing or invalid start`):!t||!t.isValid?X.invalid(`missing or invalid end`):t<e?X.invalid(`end before start`,`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var X=class Interval{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new InvalidArgumentError(`need to specify a reason the Interval is invalid`);let n=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidIntervalError(n);return new Interval({invalid:n})}static fromDateTimes(e,t){let n=friendlyDateTime(e),r=friendlyDateTime(t);return validateStartEnd(n,r)??new Interval({start:n,end:r})}static after(e,t){let n=J.fromDurationLike(t),r=friendlyDateTime(e);return Interval.fromDateTimes(r,r.plus(n))}static before(e,t){let n=J.fromDurationLike(t),r=friendlyDateTime(e);return Interval.fromDateTimes(r.minus(n),r)}static fromISO(e,t){let[n,r]=(e||``).split(`/`,2);if(n&&r){let e,i;try{e=$.fromISO(n,t),i=e.isValid}catch{i=!1}let a,o;try{a=$.fromISO(r,t),o=a.isValid}catch{o=!1}if(i&&o)return Interval.fromDateTimes(e,a);if(i){let n=J.fromISO(r,t);if(n.isValid)return Interval.after(e,n)}else if(o){let e=J.fromISO(n,t);if(e.isValid)return Interval.before(a,e)}}return Interval.invalid(`unparsable`,`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e=`milliseconds`){return this.isValid?this.toDuration(e).get(e):NaN}count(e=`milliseconds`,t){if(!this.isValid)return NaN;let n=this.start.startOf(e,t),r;return r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!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:t}={}){return this.isValid?Interval.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(friendlyDateTime).filter(e=>this.contains(e)).sort((e,t)=>
1e.toMillis()-t.toMillis()),n=[],{s:r}=this,i=0;for(;r<this.e;){let e=t[i]||this.e,a=+e>+this.e?this.e:e;n.push(Interval.fromDateTimes(r,a)),r=a,i+=1}return n}splitBy(e){let t=J.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as(`milliseconds`)===0)return[];let{s:n}=this,r=1,i,a=[];for(;n<this.e;){let e=this.start.plus(t.mapUnits(e=>e*r));i=+e>+this.e?this.e:e,a.push(Interval.fromDateTimes(n,i)),n=i,r+=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}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=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;let t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:Interval.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;let t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Interval.fromDateTimes(t,n)}static merge(e){let[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0,r=[],i=e.map(e=>[{time:e.s,type:`s`},{time:e.e,type:`e`}]),a=Array.prototype.concat(...i).sort((e,t)=>e.time-t.time);for(let e of a)n+=e.type===`s`?1:-1,n===1?t=e.time:(t&&+t!=+e.time&&r.push(Interval.fromDateTimes(t,e.time)),t=null);return Interval.merge(r)}difference(...e){return Interval.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} â ${this.e.toISO()})`:Y}[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=z,t={}){return this.isValid?W.create(this.s.loc.clone(t),e).formatInterval(this):Y}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Y}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Y}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Y}toFormat(e,{separator:t=` â `}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Y}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):J.invalid(this.invalidReason)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}},Info=class{static hasDST(e=Settings.defaultZone){let t=$.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return B.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||H.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||H.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||H.create(e)).getWeekendDays().slice()}static months(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i=`gregory`}={}){return(r||H.create(t,n,i)).months(e)}static monthsFormat(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i=`gregory`}={}){return(r||H.create(t,n,i)).months(e,!0)}static weekdays(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||H.create(t,n,null)).weekdays(e)}static weekdaysFormat(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||H.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return H.create(e).meridiems()}static eras(e=`short`,{locale:t=null}={}){return H.create(t,null,`gregory`).eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}};function dayDiff(e,t){let utcDayStart=e=>e.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),n=utcDayStart(t)-utcDayStart(e);return Math.floor(J.fromMillis(n).as(`days`))}function highOrderDiffs(e,t,n){let r=[[`years`,(e,t)=>t.year-e.year],[`quarters`,(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],[`months`,(e,t)=>t.month-e.month+(t.year-e.year)*12],[`weeks`,(e,t)=>{let n=dayDiff(e,t);
1return(n-n%7)/7}],[`days`,dayDiff]],i={},a=e,o,s;for(let[c,l]of r)n.indexOf(c)>=0&&(o=c,i[c]=l(e,t),s=a.plus(i),s>t?(i[c]--,e=a.plus(i),e>t&&(s=e,i[c]--,e=a.plus(i))):e=s);return[e,i,s,o]}function diff(e,t,n,r){let[i,a,o,s]=highOrderDiffs(e,t,n),c=t-i,l=n.filter(e=>[`hours`,`minutes`,`seconds`,`milliseconds`].indexOf(e)>=0);l.length===0&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+c/(o-i)));let u=J.fromObject(a,r);return l.length>0?J.fromMillis(c,r).shiftTo(...l).plus(u):u}var Er=`missing Intl.DateTimeFormat.formatToParts support`;function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}var Dr=`[ \xA0]`,Or=new RegExp(Dr,`g`);function fixListRegex(e){return e.replace(/\./g,`\\.?`).replace(Or,Dr)}function stripInsensitivities(e){return e.replace(/\./g,``).replace(Or,` `).toLowerCase()}function oneOf(e,t){return e===null?null:{regex:RegExp(e.map(fixListRegex).join(`|`)),deser:([n])=>e.findIndex(e=>stripInsensitivities(n)===stripInsensitivities(e))+t}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}
1function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function unitForToken(e,t){let n=digitRegex(t),r=digitRegex(t,`{2}`),i=digitRegex(t,`{3}`),a=digitRegex(t,`{4}`),o=digitRegex(t,`{6}`),s=digitRegex(t,`{1,2}`),c=digitRegex(t,`{1,3}`),l=digitRegex(t,`{1,6}`),u=digitRegex(t,`{1,9}`),d=digitRegex(t,`{2,4}`),f=digitRegex(t,`{4,6}`),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:!0}),unitate=p=>{if(e.literal)return literal(p);switch(p.val){case`G`:return oneOf(t.eras(`short`),0);case`GG`:return oneOf(t.eras(`long`),0);case`y`:return intUnit(l);case`yy`:return intUnit(d,untruncateYear);case`yyyy`:return intUnit(a);case`yyyyy`:return intUnit(f);case`yyyyyy`:return intUnit(o);case`M`:return intUnit(s);case`MM`:return intUnit(r);case`MMM`:return oneOf(t.months(`short`,!0),1);case`MMMM`:return oneOf(t.months(`long`,!0),1);case`L`:return intUnit(s);case`LL`:return intUnit(r);case`LLL`:return oneOf(t.months(`short`,!1),1);case`LLLL`:return oneOf(t.months(`long`,!1),1);case`d`:return intUnit(s);case`dd`:return intUnit(r);case`o`:return intUnit(c);case`ooo`:return intUnit(i);case`HH`:return intUnit(r);case`H`:return intUnit(s);case`hh`:return intUnit(r);case`h`:return intUnit(s);case`mm`:return intUnit(r);case`m`:return intUnit(s);case`q`:return intUnit(s);case`qq`:return intUnit(r);case`s`:return intUnit(s);case`ss`:return intUnit(r);case`S`:return intUnit(c);case`SSS`:return intUnit(i);case`u`:return simple(u);case`uu`:return simple(s);case`uuu`:return intUnit(n);
1case`a`:return oneOf(t.meridiems(),0);case`kkkk`:return intUnit(a);case`kk`:return intUnit(d,untruncateYear);case`W`:return intUnit(s);case`WW`:return intUnit(r);case`E`:case`c`:return intUnit(n);case`EEE`:return oneOf(t.weekdays(`short`,!1),1);case`EEEE`:return oneOf(t.weekdays(`long`,!1),1);case`ccc`:return oneOf(t.weekdays(`short`,!0),1);case`cccc`:return oneOf(t.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return offset(RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case`ZZZ`:return offset(RegExp(`([+-]${s.source})(${r.source})?`),2);case`z`:return simple(/[a-z_+-/]{1,256}?/i);case` `:return simple(/[^\S\n\r]/);default:return literal(p)}},p=unitate(e)||{invalidReason:Er};return p.token=e,p}var kr={year:{"2-digit":`yy`,numeric:`yyyyy`},month:{numeric:`M`,"2-digit":`MM`,short:`MMM`,long:`MMMM`},day:{numeric:`d`,"2-digit":`dd`},weekday:{short:`EEE`,long:`EEEE`},dayperiod:`a`,dayPeriod:`a`,hour12:{numeric:`h`,"2-digit":`hh`},hour24:{numeric:`H`,"2-digit":`HH`},minute:{numeric:`m`,"2-digit":`mm`},second:{numeric:`s`,"2-digit":`ss`},timeZoneName:{long:`ZZZZZ`,short:`ZZZ`}};function tokenForPart(e,t,n){let{type:r,value:i}=e;if(r===`literal`){let e=/^\s+$/.test(i);return{literal:!e,val:e?` `:i}}let a=t[r],o=r;r===`hour`&&(o=t.hour12==null?t.hourCycle==null?n.hour12?`hour12`:`hour24`:t.hourCycle===`h11`||t.hourCycle===`h12`?`hour12`:`hour24`:t.hour12?`hour12`:`hour24`);let s=kr[o];if(typeof s==`object`&&(s=s[a]),s)return{literal:!1,val:s}}function buildRegex(e){return[`^${e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,``)}$`,e]}function match(e,t,n){let r=e.match(t);if(r){let e={},t=1;for(let i in n)if(hasOwnProperty(n,i)){let a=n[i],o=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(r.slice(t,t+o))),t+=o}return[r,e]}else return[r,{}]}function dateTimeFromMatches(e){let toField=e=>{switch(e){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:case`H`:return`hour`;case`d`:return`day`;case`o`:return`ordinal`;case`L`:case`M`:return`month`;case`y`:return`year`;case`E`:case`c`:return`weekday`;case`W`:return`weekNumber`;case`k`:return`weekYear`;case`q`:return`quarter`;default:return null}},t=null,n;return isUndefined(e.z)||(t=B.create(e.z)),isUndefined(e.Z)||(t||=new U(e.Z),n=e.Z),isUndefined(e.q)||(e.M=(e.q-1)*3+1),isUndefined(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),isUndefined(e.u)||(e.S=parseMillis(e.u)),[Object.keys(e).reduce((t,n)=>{let r=toField(n);return r&&(t[r]=e[n]),t},{}),t,n]}var Ar=null;function getDummyDateTime(){return Ar||=$.fromMillis(1555555555555),Ar}function maybeExpandMacroToken(e,t){if(e.literal)return e;let n=formatOptsToTokens(W.macroTokenToFormatOpts(e.val),t);return n==null||n.includes(void 0)?e:n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map(e=>maybeExpandMacroToken(e,t)))}var TokenParser=class{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=expandMacroTokens(W.parseFormat(t),e),this.units=this.tokens.map(t=>unitForToken(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=buildRegex(this.units);this.regex=RegExp(e,`i`),this.handlers=t}}explainFromTokens(e){if(this.isValid){let[t,n]=match(e,this.regex,this.handlers),[r,i,a]=n?dateTimeFromMatches(n):[null,null,void 0];if(hasOwnProperty(n,`a`)&&hasOwnProperty(n,`H`))throw new ConflictingSpecificationError(`Can't include meridiem when specifying 24-hour format`);return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:i,specificOffset:a}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invali
1dReason:null}};function explainFromTokens(e,t,n){return new TokenParser(e,n).explainFromTokens(t)}function parseFromTokens(e,t,n){let{result:r,zone:i,specificOffset:a,invalidReason:o}=explainFromTokens(e,t,n);return[r,i,a,o]}function formatOptsToTokens(e,t){if(!e)return null;let n=W.create(t,e).dtFormatter(getDummyDateTime()),r=n.formatToParts(),i=n.resolvedOptions();return r.map(t=>tokenForPart(t,e,i))}var jr=`Invalid DateTime`,Mr=864e13;function unsupportedZone(e){return new Invalid(`unsupported zone`,`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){return e.weekData===null&&(e.weekData=gregorianToWeek(e.c)),e.weekData}function possiblyCachedLocalWeekData(e){return e.localWeekData===null&&(e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function clone(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new $({...n,...t,old:n})}function fixOffset(e,t,n){let r=e-t*60*1e3,i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;let a=n.offset(r);return i===a?[r,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function tsToObj(e,t){e+=t*60*1e3;let n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function objToTS(e,t,n){return fixOffset(objToLocalTS(e),t,n)}function adjustTime(e,t){let n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:r,month:i,day:Math.min(e.c.day,daysInMonth(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=J.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as(`milliseconds`),[s,c]=fixOffset(objToLocalTS(a),n,e.zone);return o!==0&&(s+=o,c=e.zone.offset(s)),{ts:s,o:c}}function parseDataToDateTime(e,t,n,r,i,a){let{setZone:o,zone:s}=n;if(e&&Object.keys(e).length!==0||t){let r=t||s,i=$.fromObject(e,{...n,zone:r,specificOffset:a});return o?i:i.setZone(s)}else return $.invalid(new Invalid(`unparsable`,`the input "${i}" can't be parsed as ${r}`))}function toTechFormat(e,t,n=!0){return e.isValid?W.create(H.create(`en-US`),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function toISODate(e,t,n){let r=e.c.year>9999||e.c.year<0,i=``;if(r&&e.c.year>=0&&(i+=`+`),i+=padStart(e.c.year,r?6:4),n===`year`)return i;if(t){if(i+=`-`,i+=padStart(e.c.month),n===`month`)return i;i+=`-`}else if(i+=padStart(e.c.month),n===`month`)return i;return i+=padStart(e.c.day),i}function toISOTime(e,t,n,r,i,a,o){let s=!n||e.c.millisecond!==0||e.c.second!==0,c=``;switch(o){case`day`:case`month`:case`year`:break;default:if(c+=padStart(e.c.hour),o===`hour`)break;if(t){if(c+=`:`,c+=padStart(e.c.minute),o===`minute`)break;s&&(c+=`:`,c+=padStart(e.c.second))}else{if(c+=padStart(e.c.minute),o===`minute`)break;s&&(c+=padStart(e.c.second))}if(o===`second`)break;s&&(!r||e.c.millisecond!==0)&&(c+=`.`,c+=padStart(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!a?c+=`Z`:e.o<0?(c+=`-`,c+=padStart(Math.trunc(-e.o/60)),c+=`:`,c+=padStart(Math.trunc(-e.o%60))):(c+=`+`,c+=padStart(Math.trunc(e.o/60)),c+=`:`,c+=padStart(Math.trunc(e.o%60)))),a&&(c+=`[`+e.zone.ianaName+`]`),c}var Nr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Pr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Fr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Z=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Ir=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],Lr=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function normalizeUnit(e){let t={year:`year`,years:`year`,month:`month`,months:`month`,day:`day`,days:`day`,hour:`hour`,hours:`hour`,minute:`minute`,minutes:`minute`,quarter:`quarter`,quarters:`quarter`,second:`second`,seconds:`second`,millisecond:`millisecond`,milliseconds:`millisecond`,weekday:`weekday`,weekdays:`weekday`,weeknumber:`weekNumber`,weeksnumber:`weekNumber`,weeknumbers:`weekNumber`,weekyear:`weekYear`,weekyears:`weekYear`,ordinal:`ordinal`}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return normalizeUnit(e)}}function guessOffsetForZone(e){if(Q===void 0&&(Q=Settings.now()),e.type!==`iana`)return e.offset(Q);let t=e.name,n=Rr.get(t);return n===void 0&&(n=e.offset(Q),Rr.set(t,n)),n}function quickDT(e,t){let n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid)return $.invalid(unsupportedZone(n));let r=H.fromObject(t),i,a;if(isUndefined(e.year))i=Settings.now();else{for(let t of Z)isUndefined(e[t])&&(e[t]=Nr[t]);let t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t)return $.invalid(t);let r=guessOffsetForZone(n);[i,a]=objToTS(e,r,n)}return new $({ts:i,zone:n,loc:r,o:a})}function diffRelative(e,t,n){let r=isUndefined(n.round)?!0:n.round,i=isUndefined(n.rounding)?`trunc`:n.rounding,format=(e,a)=>(e=roundTo(e,r||n.calendary?0:2,n.calendary?`round`:i),t.loc.clone(n).relFormatter(n).format(e,a)),differ=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return format(differ(n.unit),n.unit);for(let e of n.units){let t=differ(e);if(Math.abs(t)>=1)return format(t,e)}return format(e>t?-0:0,n.units[n.units.length-1])}function lastOpts(e){let t={},n;return e.length>0&&typeof e[e.length-1]==`object`?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}var Q,Rr=new Map,$=class DateTime{constructor(e){let t=e.zone||Settings.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Invalid(`invali
1d input`):null)||(t.isValid?null:unsupportedZone(t));this.ts=isUndefined(e.ts)?Settings.now():e.ts;let r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,i]=[e.old.c,e.old.o];else{let a=isNumber(e.o)&&!e.old?e.o:t.offset(this.ts);r=tsToObj(this.ts,a),n=Number.isNaN(r.year)?new Invalid(`invalid input`):null,r=n?null:r,i=n?null:a}this._zone=t,this.loc=e.loc||H.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new DateTime({})}static local(){let[e,t]=lastOpts(arguments),[n,r,i,a,o,s,c]=t;return quickDT({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:c},e)}static utc(){let[e,t]=lastOpts(arguments),[n,r,i,a,o,s,c]=t;return e.zone=U.utcInstance,quickDT({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:c},e)}static fromJSDate(e,t={}){let n=isDate(e)?e.valueOf():NaN;if(Number.isNaN(n))return DateTime.invalid(`invalid input`);let r=normalizeZone(t.zone,Settings.defaultZone);return r.isValid?new DateTime({ts:n,zone:r,loc:H.fromObject(t)}):DateTime.invalid(unsupportedZone(r))}static fromMillis(e,t={}){if(!isNumber(e))throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`);return e<-864e13||e>Mr?DateTime.invalid(`Timestamp out of range`):new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:H.fromObject(t)})}static fromSeconds(e,t={}){if(isNumber(e))return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:H.fromObject(t)});throw new InvalidArgumentError(`fromSeconds requires a numerical input`)}static fromObject(e,t={}){e||={};let n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid)return DateTime.invalid(unsupportedZone(n));let r=H.fromObject(t),i=normalizeObject(e,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:a,startOfWeek:o}=usesLocalWeekValues(i,r),s=Settings.now(),c=isUndefined(t.specificOffset)?n.offset(s):t.specificOffset,l=!isUndefined(i.ordinal),u=!isUndefined(i.year),d=!isUndefined(i.month)||!isUndefined(i.day),f=u||d,p=i.weekYear||i.weekNumber;if((f||l)&&p)throw new ConflictingSpecificationError(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(d&&l)throw new ConflictingSpecificationError(`Can't mix ordinal dates with month/day`);let m=p||i.weekday&&!f,h,g,_=tsToObj(s,c);m?(h=Ir,g=Pr,_=gregorianToWeek(_,a,o)):l?(h=Lr,g=Fr,_=gregorianToOrdinal(_)):(h=Z,g=Nr);let v=!1;for(let e of h){let t=i[e];isUndefined(t)?v?i[e]=g[e]:i[e]=_[e]:v=!0}let y=(m?hasInvalidWeekData(i,a,o):l?hasInvalidOrdinalData(i):hasInvalidGregorianData(i))||hasInvalidTimeData(i);if(y)return DateTime.invalid(y);let[ee,b]=objToTS(m?weekToGregorian(i,a,o):l?ordinalToGregorian(i):i,c,n),x=new DateTime({ts:ee,zone:n,o:b,loc:r});return i.weekday&&f&&e.weekday!==x.weekday?DateTime.invalid(`mismatched weekday`,`you can't specify both a weekday of ${i.weekday} and a date of ${x.toISO()}`):x.isValid?x:DateTime.invalid(x.invalid)}static fromISO(e,t={}){let[n,r]=parseISODate(e);return parseDataToDateTime(n,r,t,`ISO 8601`,e)}static fromRFC2822(e,t={}){let[n,r]=parseRFC2822Date(e);return parseDataToDateTime(n,r,t,`RFC 2822`,e)}static fromHTTP(e,t={}){let[n,r]=parseHTTPDate(e);return parseDataToDateTime(n,r,t,`HTTP`,t)}static fromFormat(e,t,n={}){if(isUndefined(e)||isUndefined(t))throw new InvalidArgumentError(`fromFormat requires an input string and a format`);let{locale:r=null,numberingSystem:i=null}=n,[a,o,s,c]=parseFromTokens(H.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),e,t);return c?DateTime.invalid(c):parseDataToDateTime(a,o,n,`format ${t}`,e,s)}static fromString(e,t,n={}){return DateTime.fromFormat(e,t,n)}static fromSQL(e,t={}){let[n,r]=parseSQL(e);return parseDataToDateTime(n,r,t,`SQL`,e)}static invalid(e,t=null){if(!e)throw new InvalidArgumentError(`need to specify a reason the DateTime is invalid`);let n=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(n);return new DateTime({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let n=formatOptsToTokens(e,H.fromObject(t));return n?n.map(e=>e?e.val:null).join(``):null}static expandFormat(e,t={}){return expandMacroTokens(W.parseFormat(e),H.fromObject(t)).map(e=>e.val).join(``)}static resetCache(){Q=void 0,Rr.clear()}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}
1get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays(`long`,{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){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];let e=864e5,t=6e4,n=objToLocalTS(this.c),r=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-r*t),o=this.zone.offset(n-i*t);if(a===o)return[this];let s=n-a*t,c=n-o*t,l=tsToObj(s,a),u=tsToObj(c,o);return l.hour===u.hour&&l.minute===u.minute&&l.second===u.second&&l.millisecond===u.millisecond?[clone(this,{ts:s}),clone(this,{ts:c})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:n,calendar:r}=W.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(U.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if(e=normalizeZone(e,Settings.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){let t=e.offset(this.ts),n=this.toObject();[r]=objToTS(n,t,e)}return clone(this,{ts:r,zone:e})}else return DateTime.invalid(unsupportedZone(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){let r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return clone(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let t=normalizeObject(e,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:n,startOfWeek:r}
1=usesLocalWeekValues(t,this.loc),i=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),a=!isUndefined(t.ordinal),o=!isUndefined(t.year),s=!isUndefined(t.month)||!isUndefined(t.day),c=o||s,l=t.weekYear||t.weekNumber;if((c||a)&&l)throw new ConflictingSpecificationError(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(s&&a)throw new ConflictingSpecificationError(`Can't mix ordinal dates with month/day`);let u;i?u=weekToGregorian({...gregorianToWeek(this.c,n,r),...t},n,r):isUndefined(t.ordinal)?(u={...this.toObject(),...t},isUndefined(t.day)&&(u.day=Math.min(daysInMonth(u.year,u.month),u.day))):u=ordinalToGregorian({...gregorianToOrdinal(this.c),...t});let[d,f]=objToTS(u,this.o,this.zone);return clone(this,{ts:d,o:f})}plus(e){if(!this.isValid)return this;let t=J.fromDurationLike(e);return clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;let t=J.fromDurationLike(e).negate();return clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let n={},r=J.normalizeUnit(e);switch(r){case`years`:n.month=1;case`quarters`:case`months`:n.day=1;case`weeks`:case`days`:n.hour=0;case`hours`:n.minute=0;case`minutes`:n.second=0;case`seconds`:n.millisecond=0;break}if(r===`weeks`)if(t){let e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;return r===`quarters`&&(n.month=(Math.ceil(this.month/3)-1)*3+1),this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?W.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):jr}toLocaleString(e=z,t={}){return this.isValid?W.create(this.loc.clone(t),e).formatDateTime(this):jr}toLocaleParts(e={}){return this.isValid?W.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e=`extended`,suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1,precision:a=`milliseconds`}={}){if(!this.isValid)return null;a=normalizeUnit(a);let o=e===`extended`,s=toISODate(this,o,a);return Z.indexOf(a)>=3&&(s+=`T`),s+=toISOTime(this,o,t,n,r,i,a),s}toISODate({format:e=`extended`,precision:t=`day`}={}){return this.isValid?toISODate(this,e===`extended`,normalizeUnit(t)):null}toISOWeekDate(){return toTechFormat(this,`kkkk-'W'WW-c`)}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:a=`extended`,precision:o=`milliseconds`}={}){return this.isValid?(o=normalizeUnit(o),(r&&Z.indexOf(o)>=3?`T`:``)+toISOTime(this,a===`extended`,t,e,n,i,o)):null}toRFC2822(){return toTechFormat(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return toTechFormat(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r=`HH:mm:ss.SSS`;return(t||e)&&(n&&(r+=` `),t?r+=`z`:e&&(r+=`ZZ`)),toTechFormat(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():jr}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t=`milliseconds`,n={}){if(!this.isValid||!e.isValid)return J.invalid(`created by diffing an invalid DateTime`);let r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=maybeArray(t).map(J.normalizeUnit),a=e.valueOf()>this.valueOf(),o=diff(a?this:e,a?e:this,i,r);return a?o.negate():o}diffNow(e=`milliseconds`,t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?X.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;let r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=r&&r<=i.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||DateTime.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0,r=[`years`,`months`,`days`,`hours`,`minutes`,`seconds`],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),diffRelative(t,this.plus(n),{...e,numeric:`always`,units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?diffRelative(e.base||DateTime.fromObject({},{zone:this.zone}),this,{...e,numeric:`auto`,units:[`years`,`months`,`days`],calendary:!0}):null}static min(...e){if(!e.every(DateTime.isDateTime))throw new InvalidArgumentError(`min requires all arguments be DateTimes`);return bestBy(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime))throw new InvalidArgumentError(`max requires all arguments be DateTimes`);return bestBy(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){let{locale:r=null,numberingSystem:i=null}=n;return explainFromTokens(H.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return DateTime.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){let{locale:n=null,numberingSystem:r=null}=t;return new TokenParser(H.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0}),e)}static fromFormatParser(e,t,n={}){if(isUndefined(e)||isUndefined(t))throw new InvalidArgumentError(`fromFormatParser requires an input string and a format parser`);let{locale:r=null,numberingSystem:i=null}=n,a=H.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!a.equals(t.locale))throw new InvalidArgumentError(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);let{result:o,zone:s,specificOffset:c,invalidReason:l}=t.explainFromTokens(e);
1return l?DateTime.invalid(l):parseDataToDateTime(o,s,n,`format ${t.format}`,e,c)}static get DATE_SHORT(){return z}static get DATE_MED(){return Lt}static get DATE_MED_WITH_WEEKDAY(){return Rt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Bt}static get TIME_SIMPLE(){return Vt}static get TIME_WITH_SECONDS(){return Ht}static get TIME_WITH_SHORT_OFFSET(){return Ut}static get TIME_WITH_LONG_OFFSET(){return Wt}static get TIME_24_SIMPLE(){return Gt}static get TIME_24_WITH_SECONDS(){return Kt}static get TIME_24_WITH_SHORT_OFFSET(){return qt}static get TIME_24_WITH_LONG_OFFSET(){return Jt}static get DATETIME_SHORT(){return Yt}static get DATETIME_SHORT_WITH_SECONDS(){return Xt}static get DATETIME_MED(){return Zt}static get DATETIME_MED_WITH_SECONDS(){return Qt}static get DATETIME_MED_WITH_WEEKDAY(){return $t}static get DATETIME_FULL(){return en}static get DATETIME_FULL_WITH_SECONDS(){return tn}static get DATETIME_HUGE(){return nn}static get DATETIME_HUGE_WITH_SECONDS(){return rn}};function friendlyDateTime(e){if($.isDateTime(e))return e;if(e&&e.valueOf&&isNumber(e.valueOf()))return $.fromJSDate(e);if(e&&typeof e==`object`)return $.fromObject(e);throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}export{F as n,$ as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.