django-vue3-admin-web/dist/assets/result.m0JD-Xh7.js
2025-10-20 21:21:14 +08:00

3 lines
91 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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