backsplash-app
Version:
An AI powered wallpaper app.
1 lines • 232 kB
JavaScript
"use strict";var pw=Object.create;var Na=Object.defineProperty;var gw=Object.getOwnPropertyDescriptor;var mw=Object.getOwnPropertyNames;var yw=Object.getPrototypeOf,vw=Object.prototype.hasOwnProperty;var Sw=(i,n,r)=>n in i?Na(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r;var ww=(i,n,r,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of mw(n))!vw.call(i,o)&&o!==r&&Na(i,o,{get:()=>n[o],enumerable:!(a=gw(n,o))||a.enumerable});return i};var ka=(i,n,r)=>(r=i!=null?pw(yw(i)):{},ww(n||!i||!i.__esModule?Na(r,"default",{value:i,enumerable:!0}):r,i));var me=(i,n,r)=>Sw(i,typeof n!="symbol"?n+"":n,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("electron"),y=require("./filesystemStorageService-C_YAB_8J.js"),tf=require("events"),nf=require("fs"),_w=require("worker_threads"),Xn=require("path"),Ew=require("node:assert"),Tw=require("node:fs"),Iw=require("node:os"),Ow=require("node:path"),Cw=require("node:util"),Mw=require("https"),zi=require("child_process");function vo(i){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const r in i)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:()=>i[r]})}}return n.default=i,Object.freeze(n)}const Nr=vo(nf),jn=vo(Xn),mc=vo(Mw);var je={};Object.defineProperty(je,"__esModule",{value:!0});class Dn extends Error{}class bw extends Dn{constructor(n){super(`Invalid DateTime: ${n.toMessage()}`)}}class Aw extends Dn{constructor(n){super(`Invalid Interval: ${n.toMessage()}`)}}class Dw extends Dn{constructor(n){super(`Invalid Duration: ${n.toMessage()}`)}}class Qn extends Dn{}class rf extends Dn{constructor(n){super(`Invalid unit ${n}`)}}class ke extends Dn{}class Xt extends Dn{constructor(){super("Zone is an abstract class")}}const L="numeric",Et="short",Qe="long",Qi={year:L,month:L,day:L},sf={year:L,month:Et,day:L},xw={year:L,month:Et,day:L,weekday:Et},af={year:L,month:Qe,day:L},of={year:L,month:Qe,day:L,weekday:Qe},uf={hour:L,minute:L},lf={hour:L,minute:L,second:L},cf={hour:L,minute:L,second:L,timeZoneName:Et},ff={hour:L,minute:L,second:L,timeZoneName:Qe},hf={hour:L,minute:L,hourCycle:"h23"},df={hour:L,minute:L,second:L,hourCycle:"h23"},pf={hour:L,minute:L,second:L,hourCycle:"h23",timeZoneName:Et},gf={hour:L,minute:L,second:L,hourCycle:"h23",timeZoneName:Qe},mf={year:L,month:L,day:L,hour:L,minute:L},yf={year:L,month:L,day:L,hour:L,minute:L,second:L},vf={year:L,month:Et,day:L,hour:L,minute:L},Sf={year:L,month:Et,day:L,hour:L,minute:L,second:L},Lw={year:L,month:Et,day:L,weekday:Et,hour:L,minute:L},wf={year:L,month:Qe,day:L,hour:L,minute:L,timeZoneName:Et},_f={year:L,month:Qe,day:L,hour:L,minute:L,second:L,timeZoneName:Et},Ef={year:L,month:Qe,day:L,weekday:Qe,hour:L,minute:L,timeZoneName:Qe},Tf={year:L,month:Qe,day:L,weekday:Qe,hour:L,minute:L,second:L,timeZoneName:Qe};class ir{get type(){throw new Xt}get name(){throw new Xt}get ianaName(){return this.name}get isUniversal(){throw new Xt}offsetName(n,r){throw new Xt}formatOffset(n,r){throw new Xt}offset(n){throw new Xt}equals(n){throw new Xt}get isValid(){throw new Xt}}let Wa=null;class Gr extends ir{static get instance(){return Wa===null&&(Wa=new Gr),Wa}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(n,{format:r,locale:a}){return Wf(n,r,a)}formatOffset(n,r){return $r(this.offset(n),r)}offset(n){return-new Date(n).getTimezoneOffset()}equals(n){return n.type==="system"}get isValid(){return!0}}const eo=new Map;function Nw(i){let n=eo.get(i);return n===void 0&&(n=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),eo.set(i,n)),n}const kw={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Ww(i,n){const r=i.format(n).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,o,c,f,p,g,S,I]=a;return[f,o,c,p,g,S,I]}function Rw(i,n){const r=i.formatToParts(n),a=[];for(let o=0;o<r.length;o++){const{type:c,value:f}=r[o],p=kw[c];c==="era"?a[p]=f:G(p)||(a[p]=parseInt(f,10))}return a}const Ra=new Map;class bt extends ir{static create(n){let r=Ra.get(n);return r===void 0&&Ra.set(n,r=new bt(n)),r}static resetCache(){Ra.clear(),eo.clear()}static isValidSpecifier(n){return this.isValidZone(n)}static isValidZone(n){if(!n)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:n}).format(),!0}catch{return!1}}constructor(n){super(),this.zoneName=n,this.valid=bt.isValidZone(n)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(n,{format:r,locale:a}){return Wf(n,r,a,this.name)}formatOffset(n,r){return $r(this.offset(n),r)}offset(n){if(!this.valid)return NaN;const r=new Date(n);if(isNaN(r))return NaN;const a=Nw(this.name);let[o,c,f,p,g,S,I]=a.formatToParts?Rw(a,r):Ww(a,r);p==="BC"&&(o=-Math.abs(o)+1);const N=os({year:o,month:c,day:f,hour:g===24?0:g,minute:S,second:I,millisecond:0});let A=+r;const U=A%1e3;return A-=U>=0?U:1e3+U,(N-A)/(60*1e3)}equals(n){return n.type==="iana"&&n.name===this.name}get isValid(){return this.valid}}let yc={};function Uw(i,n={}){const r=JSON.stringify([i,n]);let a=yc[r];return a||(a=new Intl.ListFormat(i,n),yc[r]=a),a}const to=new Map;function no(i,n={}){const r=JSON.stringify([i,n]);let a=to.get(r);return a===void 0&&(a=new Intl.DateTimeFormat(i,n),to.set(r,a)),a}const ro=new Map;function Pw(i,n={}){const r=JSON.stringify([i,n]);let a=ro.get(r);return a===void 0&&(a=new Intl.NumberFormat(i,n),ro.set(r,a)),a}const io=new Map;function $w(i,n={}){const{base:r,...a}=n,o=JSON.stringify([i,a]);let c=io.get(o);return c===void 0&&(c=new Intl.RelativeTimeFormat(i,n),io.set(o,c)),c}let Wr=null;function Fw(){return Wr||(Wr=new Intl.DateTimeFormat().resolvedOptions().locale,Wr)}const so=new Map;function If(i){let n=so.get(i);return n===void 0&&(n=new Intl.DateTimeFormat(i).resolvedOptions(),so.set(i,n)),n}const ao=new Map;function Hw(i){let n=ao.get(i);if(!n){const r=new Intl.Locale(i);n="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in n||(n={...Of,...n}),ao.set(i,n)}return n}function Vw(i){const n=i.indexOf("-x-");n!==-1&&(i=i.substring(0,n));const r=i.indexOf("-u-");if(r===-1)return[i];{let a,o;try{a=no(i).resolvedOptions(),o=i}catch{const g=i.substring(0,r);a=no(g).resolvedOptions(),o=g}const{numberingSystem:c,calendar:f}=a;return[o,c,f]}}function Gw(i,n,r){return(r||n)&&(i.includes("-u-")||(i+="-u"),r&&(i+=`-ca-${r}`),n&&(i+=`-nu-${n}`)),i}function zw(i){const n=[];for(let r=1;r<=12;r++){const a=V.utc(2009,r,1);n.push(i(a))}return n}function Bw(i){const n=[];for(let r=1;r<=7;r++){const a=V.utc(2016,11,13+r);n.push(i(a))}return n}function Bi(i,n,r,a){const o=i.listingMode();return o==="error"?null:o==="en"?r(n):a(n)}function Zw(i){return i.numberingSystem&&i.numberingSystem!=="latn"?!1:i.numberingSystem==="latn"||!i.locale||i.locale.startsWith("en")||If(i.locale).numberingSystem==="latn"}class qw{constructor(n,r,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;const{padTo:o,floor:c,...f}=a;if(!r||Object.keys(f).length>0){const p={useGrouping:!1,...a};a.padTo>0&&(p.minimumIntegerDigits=a.padTo),this.inf=Pw(n,p)}}format(n){if(this.inf){const r=this.floor?Math.floor(n):n;return this.inf.format(r)}else{const r=this.floor?Math.floor(n):To(n,3);return Ie(r,this.padTo)}}}class Yw{constructor(n,r,a){this.opts=a,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=n;else if(n.zone.type==="fixed"){const f=-1*(n.offset/60),p=f>=0?`Etc/GMT+${f}`:`Etc/GMT${f}`;n.offset!==0&&bt.create(p).valid?(o=p,this.dt=n):(o="UTC",this.dt=n.offset===0?n:n.setZone("UTC").plus({minutes:n.offset}),this.originalZone=n.zone)}else n.zone.type==="system"?this.dt=n:n.zone.type==="iana"?(this.dt=n,o=n.zone.name):(o="UTC",this.dt=n.setZone("UTC").plus({minutes:n.offset}),this.originalZone=n.zone);const c={...this.opts};c.timeZone=c.timeZone||o,this.dtf=no(r,c)}format(){return this.originalZone?this.formatToParts().map(({value:n})=>n).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const n=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?n.map(r=>{if(r.type==="timeZoneName"){const a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:a}}else return r}):n}resolvedOptions(){return this.dtf.resolvedOptions()}}class Jw{constructor(n,r,a){this.opts={style:"long",...a},!r&&Nf()&&(this.rtf=$w(n,a))}format(n,r){return this.rtf?this.rtf.format(n,r):m0(r,n,this.opts.numeric,this.opts.style!=="long")}formatToParts(n,r){return this.rtf?this.rtf.formatToParts(n,r):[]}}const Of={firstDay:1,minimalDays:4,weekend:[6,7]};class ue{static fromOpts(n){return ue.create(n.locale,n.numberingSystem,n.outputCalendar,n.weekSettings,n.defaultToEN)}static create(n,r,a,o,c=!1){const f=n||we.defaultLocale,p=f||(c?"en-US":Fw()),g=r||we.defaultNumberingSystem,S=a||we.defaultOutputCalendar,I=uo(o)||we.defaultWeekSettings;return new ue(p,g,S,I,f)}static resetCache(){Wr=null,to.clear(),ro.clear(),io.clear(),so.clear(),ao.clear()}static fromObject({locale:n,numberingSystem:r,outputCalendar:a,weekSettings:o}={}){return ue.create(n,r,a,o)}constructor(n,r,a,o,c){const[f,p,g]=Vw(n);this.locale=f,this.numberingSystem=r||p||null,this.outputCalendar=a||g||null,this.weekSettings=o,this.intl=Gw(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=c,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Zw(this)),this.fastNumbersCached}listingMode(){const n=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return n&&r?"en":"intl"}clone(n){return!n||Object.getOwnPropertyNames(n).length===0?this:ue.create(n.locale||this.specifiedLocale,n.numberingSystem||this.numberingSystem,n.outputCalendar||this.outputCalendar,uo(n.weekSettings)||this.weekSettings,n.defaultToEN||!1)}redefaultToEN(n={}){return this.clone({...n,defaultToEN:!0})}redefaultToSystem(n={}){return this.clone({...n,defaultToEN:!1})}months(n,r=!1){return Bi(this,n,Pf,()=>{const a=r?{month:n,day:"numeric"}:{month:n},o=r?"format":"standalone";return this.monthsCache[o][n]||(this.monthsCache[o][n]=zw(c=>this.extract(c,a,"month"))),this.monthsCache[o][n]})}weekdays(n,r=!1){return Bi(this,n,Hf,()=>{const a=r?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},o=r?"format":"standalone";return this.weekdaysCache[o][n]||(this.weekdaysCache[o][n]=Bw(c=>this.extract(c,a,"weekday"))),this.weekdaysCache[o][n]})}meridiems(){return Bi(this,void 0,()=>Vf,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[V.utc(2016,11,13,9),V.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(n){return Bi(this,n,Gf,()=>{const r={era:n};return this.eraCache[n]||(this.eraCache[n]=[V.utc(-40,1,1),V.utc(2017,1,1)].map(a=>this.extract(a,r,"era"))),this.eraCache[n]})}extract(n,r,a){const o=this.dtFormatter(n,r),c=o.formatToParts(),f=c.find(p=>p.type.toLowerCase()===a);return f?f.value:null}numberFormatter(n={}){return new qw(this.intl,n.forceSimple||this.fastNumbers,n)}dtFormatter(n,r={}){return new Yw(n,this.intl,r)}relFormatter(n={}){return new Jw(this.intl,this.isEnglish(),n)}listFormatter(n={}){return Uw(this.intl,n)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||If(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:kf()?Hw(this.locale):Of}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(n){return this.locale===n.locale&&this.numberingSystem===n.numberingSystem&&this.outputCalendar===n.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Ua=null;class Re extends ir{static get utcInstance(){return Ua===null&&(Ua=new Re(0)),Ua}static instance(n){return n===0?Re.utcInstance:new Re(n)}static parseSpecifier(n){if(n){const r=n.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new Re(us(r[1],r[2]))}return null}constructor(n){super(),this.fixed=n}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${$r(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${$r(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(n,r){return $r(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(n){return n.type==="fixed"&&n.fixed===this.fixed}get isValid(){return!0}}class Cf extends ir{constructor(n){super(),this.zoneName=n}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 rn(i,n){if(G(i)||i===null)return n;if(i instanceof ir)return i;if(t0(i)){const r=i.toLowerCase();return r==="default"?n:r==="local"||r==="system"?Gr.instance:r==="utc"||r==="gmt"?Re.utcInstance:Re.parseSpecifier(r)||bt.create(i)}else return an(i)?Re.instance(i):typeof i=="object"&&"offset"in i&&typeof i.offset=="function"?i:new Cf(i)}const So={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},vc={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]},Kw=So.hanidec.replace(/[\[|\]]/g,"").split("");function Xw(i){let n=parseInt(i,10);if(isNaN(n)){n="";for(let r=0;r<i.length;r++){const a=i.charCodeAt(r);if(i[r].search(So.hanidec)!==-1)n+=Kw.indexOf(i[r]);else for(const o in vc){const[c,f]=vc[o];a>=c&&a<=f&&(n+=a-c)}}return parseInt(n,10)}else return n}const oo=new Map;function Qw(){oo.clear()}function St({numberingSystem:i},n=""){const r=i||"latn";let a=oo.get(r);a===void 0&&(a=new Map,oo.set(r,a));let o=a.get(n);return o===void 0&&(o=new RegExp(`${So[r]}${n}`),a.set(n,o)),o}let Sc=()=>Date.now(),wc="system",_c=null,Ec=null,Tc=null,Ic=60,Oc,Cc=null;class we{static get now(){return Sc}static set now(n){Sc=n}static set defaultZone(n){wc=n}static get defaultZone(){return rn(wc,Gr.instance)}static get defaultLocale(){return _c}static set defaultLocale(n){_c=n}static get defaultNumberingSystem(){return Ec}static set defaultNumberingSystem(n){Ec=n}static get defaultOutputCalendar(){return Tc}static set defaultOutputCalendar(n){Tc=n}static get defaultWeekSettings(){return Cc}static set defaultWeekSettings(n){Cc=uo(n)}static get twoDigitCutoffYear(){return Ic}static set twoDigitCutoffYear(n){Ic=n%100}static get throwOnInvalid(){return Oc}static set throwOnInvalid(n){Oc=n}static resetCaches(){ue.resetCache(),bt.resetCache(),V.resetCache(),Qw()}}class _t{constructor(n,r){this.reason=n,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Mf=[0,31,59,90,120,151,181,212,243,273,304,334],bf=[0,31,60,91,121,152,182,213,244,274,305,335];function lt(i,n){return new _t("unit out of range",`you specified ${n} (of type ${typeof n}) as a ${i}, which is invalid`)}function wo(i,n,r){const a=new Date(Date.UTC(i,n-1,r));i<100&&i>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);const o=a.getUTCDay();return o===0?7:o}function Af(i,n,r){return r+(zr(i)?bf:Mf)[n-1]}function Df(i,n){const r=zr(i)?bf:Mf,a=r.findIndex(c=>c<n),o=n-r[a];return{month:a+1,day:o}}function _o(i,n){return(i-n+7)%7+1}function ji(i,n=4,r=1){const{year:a,month:o,day:c}=i,f=Af(a,o,c),p=_o(wo(a,o,c),r);let g=Math.floor((f-p+14-n)/7),S;return g<1?(S=a-1,g=Fr(S,n,r)):g>Fr(a,n,r)?(S=a+1,g=1):S=a,{weekYear:S,weekNumber:g,weekday:p,...ls(i)}}function Mc(i,n=4,r=1){const{weekYear:a,weekNumber:o,weekday:c}=i,f=_o(wo(a,1,n),r),p=er(a);let g=o*7+c-f-7+n,S;g<1?(S=a-1,g+=er(S)):g>p?(S=a+1,g-=er(a)):S=a;const{month:I,day:D}=Df(S,g);return{year:S,month:I,day:D,...ls(i)}}function Pa(i){const{year:n,month:r,day:a}=i,o=Af(n,r,a);return{year:n,ordinal:o,...ls(i)}}function bc(i){const{year:n,ordinal:r}=i,{month:a,day:o}=Df(n,r);return{year:n,month:a,day:o,...ls(i)}}function Ac(i,n){if(!G(i.localWeekday)||!G(i.localWeekNumber)||!G(i.localWeekYear)){if(!G(i.weekday)||!G(i.weekNumber)||!G(i.weekYear))throw new Qn("Cannot mix locale-based week fields with ISO-based week fields");return G(i.localWeekday)||(i.weekday=i.localWeekday),G(i.localWeekNumber)||(i.weekNumber=i.localWeekNumber),G(i.localWeekYear)||(i.weekYear=i.localWeekYear),delete i.localWeekday,delete i.localWeekNumber,delete i.localWeekYear,{minDaysInFirstWeek:n.getMinDaysInFirstWeek(),startOfWeek:n.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function jw(i,n=4,r=1){const a=as(i.weekYear),o=ct(i.weekNumber,1,Fr(i.weekYear,n,r)),c=ct(i.weekday,1,7);return a?o?c?!1:lt("weekday",i.weekday):lt("week",i.weekNumber):lt("weekYear",i.weekYear)}function e0(i){const n=as(i.year),r=ct(i.ordinal,1,er(i.year));return n?r?!1:lt("ordinal",i.ordinal):lt("year",i.year)}function xf(i){const n=as(i.year),r=ct(i.month,1,12),a=ct(i.day,1,es(i.year,i.month));return n?r?a?!1:lt("day",i.day):lt("month",i.month):lt("year",i.year)}function Lf(i){const{hour:n,minute:r,second:a,millisecond:o}=i,c=ct(n,0,23)||n===24&&r===0&&a===0&&o===0,f=ct(r,0,59),p=ct(a,0,59),g=ct(o,0,999);return c?f?p?g?!1:lt("millisecond",o):lt("second",a):lt("minute",r):lt("hour",n)}function G(i){return typeof i>"u"}function an(i){return typeof i=="number"}function as(i){return typeof i=="number"&&i%1===0}function t0(i){return typeof i=="string"}function n0(i){return Object.prototype.toString.call(i)==="[object Date]"}function Nf(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function kf(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function r0(i){return Array.isArray(i)?i:[i]}function Dc(i,n,r){if(i.length!==0)return i.reduce((a,o)=>{const c=[n(o),o];return a&&r(a[0],c[0])===a[0]?a:c},null)[1]}function i0(i,n){return n.reduce((r,a)=>(r[a]=i[a],r),{})}function rr(i,n){return Object.prototype.hasOwnProperty.call(i,n)}function uo(i){if(i==null)return null;if(typeof i!="object")throw new ke("Week settings must be an object");if(!ct(i.firstDay,1,7)||!ct(i.minimalDays,1,7)||!Array.isArray(i.weekend)||i.weekend.some(n=>!ct(n,1,7)))throw new ke("Invalid week settings");return{firstDay:i.firstDay,minimalDays:i.minimalDays,weekend:Array.from(i.weekend)}}function ct(i,n,r){return as(i)&&i>=n&&i<=r}function s0(i,n){return i-n*Math.floor(i/n)}function Ie(i,n=2){const r=i<0;let a;return r?a="-"+(""+-i).padStart(n,"0"):a=(""+i).padStart(n,"0"),a}function tn(i){if(!(G(i)||i===null||i===""))return parseInt(i,10)}function _n(i){if(!(G(i)||i===null||i===""))return parseFloat(i)}function Eo(i){if(!(G(i)||i===null||i==="")){const n=parseFloat("0."+i)*1e3;return Math.floor(n)}}function To(i,n,r=!1){const a=10**n;return(r?Math.trunc:Math.round)(i*a)/a}function zr(i){return i%4===0&&(i%100!==0||i%400===0)}function er(i){return zr(i)?366:365}function es(i,n){const r=s0(n-1,12)+1,a=i+(n-r)/12;return r===2?zr(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function os(i){let n=Date.UTC(i.year,i.month-1,i.day,i.hour,i.minute,i.second,i.millisecond);return i.year<100&&i.year>=0&&(n=new Date(n),n.setUTCFullYear(i.year,i.month-1,i.day)),+n}function xc(i,n,r){return-_o(wo(i,1,n),r)+n-1}function Fr(i,n=4,r=1){const a=xc(i,n,r),o=xc(i+1,n,r);return(er(i)-a+o)/7}function lo(i){return i>99?i:i>we.twoDigitCutoffYear?1900+i:2e3+i}function Wf(i,n,r,a=null){const o=new Date(i),c={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(c.timeZone=a);const f={timeZoneName:n,...c},p=new Intl.DateTimeFormat(r,f).formatToParts(o).find(g=>g.type.toLowerCase()==="timezonename");return p?p.value:null}function us(i,n){let r=parseInt(i,10);Number.isNaN(r)&&(r=0);const a=parseInt(n,10)||0,o=r<0||Object.is(r,-0)?-a:a;return r*60+o}function Rf(i){const n=Number(i);if(typeof i=="boolean"||i===""||Number.isNaN(n))throw new ke(`Invalid unit value ${i}`);return n}function ts(i,n){const r={};for(const a in i)if(rr(i,a)){const o=i[a];if(o==null)continue;r[n(a)]=Rf(o)}return r}function $r(i,n){const r=Math.trunc(Math.abs(i/60)),a=Math.trunc(Math.abs(i%60)),o=i>=0?"+":"-";switch(n){case"short":return`${o}${Ie(r,2)}:${Ie(a,2)}`;case"narrow":return`${o}${r}${a>0?`:${a}`:""}`;case"techie":return`${o}${Ie(r,2)}${Ie(a,2)}`;default:throw new RangeError(`Value format ${n} is out of range for property format`)}}function ls(i){return i0(i,["hour","minute","second","millisecond"])}const a0=["January","February","March","April","May","June","July","August","September","October","November","December"],Uf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],o0=["J","F","M","A","M","J","J","A","S","O","N","D"];function Pf(i){switch(i){case"narrow":return[...o0];case"short":return[...Uf];case"long":return[...a0];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 $f=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ff=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],u0=["M","T","W","T","F","S","S"];function Hf(i){switch(i){case"narrow":return[...u0];case"short":return[...Ff];case"long":return[...$f];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Vf=["AM","PM"],l0=["Before Christ","Anno Domini"],c0=["BC","AD"],f0=["B","A"];function Gf(i){switch(i){case"narrow":return[...f0];case"short":return[...c0];case"long":return[...l0];default:return null}}function h0(i){return Vf[i.hour<12?0:1]}function d0(i,n){return Hf(n)[i.weekday-1]}function p0(i,n){return Pf(n)[i.month-1]}function g0(i,n){return Gf(n)[i.year<0?0:1]}function m0(i,n,r="always",a=!1){const o={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."]},c=["hours","minutes","seconds"].indexOf(i)===-1;if(r==="auto"&&c){const D=i==="days";switch(n){case 1:return D?"tomorrow":`next ${o[i][0]}`;case-1:return D?"yesterday":`last ${o[i][0]}`;case 0:return D?"today":`this ${o[i][0]}`}}const f=Object.is(n,-0)||n<0,p=Math.abs(n),g=p===1,S=o[i],I=a?g?S[1]:S[2]||S[1]:g?o[i][0]:i;return f?`${p} ${I} ago`:`in ${p} ${I}`}function Lc(i,n){let r="";for(const a of i)a.literal?r+=a.val:r+=n(a.val);return r}const y0={D:Qi,DD:sf,DDD:af,DDDD:of,t:uf,tt:lf,ttt:cf,tttt:ff,T:hf,TT:df,TTT:pf,TTTT:gf,f:mf,ff:vf,fff:wf,ffff:Ef,F:yf,FF:Sf,FFF:_f,FFFF:Tf};class We{static create(n,r={}){return new We(n,r)}static parseFormat(n){let r=null,a="",o=!1;const c=[];for(let f=0;f<n.length;f++){const p=n.charAt(f);p==="'"?(a.length>0&&c.push({literal:o||/^\s+$/.test(a),val:a}),r=null,a="",o=!o):o||p===r?a+=p:(a.length>0&&c.push({literal:/^\s+$/.test(a),val:a}),a=p,r=p)}return a.length>0&&c.push({literal:o||/^\s+$/.test(a),val:a}),c}static macroTokenToFormatOpts(n){return y0[n]}constructor(n,r){this.opts=r,this.loc=n,this.systemLoc=null}formatWithSystemDefault(n,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(n,{...this.opts,...r}).format()}dtFormatter(n,r={}){return this.loc.dtFormatter(n,{...this.opts,...r})}formatDateTime(n,r){return this.dtFormatter(n,r).format()}formatDateTimeParts(n,r){return this.dtFormatter(n,r).formatToParts()}formatInterval(n,r){return this.dtFormatter(n.start,r).dtf.formatRange(n.start.toJSDate(),n.end.toJSDate())}resolvedOptions(n,r){return this.dtFormatter(n,r).resolvedOptions()}num(n,r=0){if(this.opts.forceSimple)return Ie(n,r);const a={...this.opts};return r>0&&(a.padTo=r),this.loc.numberFormatter(a).format(n)}formatDateTimeFromString(n,r){const a=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",c=(A,U)=>this.loc.extract(n,A,U),f=A=>n.isOffsetFixed&&n.offset===0&&A.allowZ?"Z":n.isValid?n.zone.formatOffset(n.ts,A.format):"",p=()=>a?h0(n):c({hour:"numeric",hourCycle:"h12"},"dayperiod"),g=(A,U)=>a?p0(n,A):c(U?{month:A}:{month:A,day:"numeric"},"month"),S=(A,U)=>a?d0(n,A):c(U?{weekday:A}:{weekday:A,month:"long",day:"numeric"},"weekday"),I=A=>{const U=We.macroTokenToFormatOpts(A);return U?this.formatWithSystemDefault(n,U):A},D=A=>a?g0(n,A):c({era:A},"era"),N=A=>{switch(A){case"S":return this.num(n.millisecond);case"u":case"SSS":return this.num(n.millisecond,3);case"s":return this.num(n.second);case"ss":return this.num(n.second,2);case"uu":return this.num(Math.floor(n.millisecond/10),2);case"uuu":return this.num(Math.floor(n.millisecond/100));case"m":return this.num(n.minute);case"mm":return this.num(n.minute,2);case"h":return this.num(n.hour%12===0?12:n.hour%12);case"hh":return this.num(n.hour%12===0?12:n.hour%12,2);case"H":return this.num(n.hour);case"HH":return this.num(n.hour,2);case"Z":return f({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return f({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return f({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return n.zone.offsetName(n.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return n.zone.offsetName(n.ts,{format:"long",locale:this.loc.locale});case"z":return n.zoneName;case"a":return p();case"d":return o?c({day:"numeric"},"day"):this.num(n.day);case"dd":return o?c({day:"2-digit"},"day"):this.num(n.day,2);case"c":return this.num(n.weekday);case"ccc":return S("short",!0);case"cccc":return S("long",!0);case"ccccc":return S("narrow",!0);case"E":return this.num(n.weekday);case"EEE":return S("short",!1);case"EEEE":return S("long",!1);case"EEEEE":return S("narrow",!1);case"L":return o?c({month:"numeric",day:"numeric"},"month"):this.num(n.month);case"LL":return o?c({month:"2-digit",day:"numeric"},"month"):this.num(n.month,2);case"LLL":return g("short",!0);case"LLLL":return g("long",!0);case"LLLLL":return g("narrow",!0);case"M":return o?c({month:"numeric"},"month"):this.num(n.month);case"MM":return o?c({month:"2-digit"},"month"):this.num(n.month,2);case"MMM":return g("short",!1);case"MMMM":return g("long",!1);case"MMMMM":return g("narrow",!1);case"y":return o?c({year:"numeric"},"year"):this.num(n.year);case"yy":return o?c({year:"2-digit"},"year"):this.num(n.year.toString().slice(-2),2);case"yyyy":return o?c({year:"numeric"},"year"):this.num(n.year,4);case"yyyyyy":return o?c({year:"numeric"},"year"):this.num(n.year,6);case"G":return D("short");case"GG":return D("long");case"GGGGG":return D("narrow");case"kk":return this.num(n.weekYear.toString().slice(-2),2);case"kkkk":return this.num(n.weekYear,4);case"W":return this.num(n.weekNumber);case"WW":return this.num(n.weekNumber,2);case"n":return this.num(n.localWeekNumber);case"nn":return this.num(n.localWeekNumber,2);case"ii":return this.num(n.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(n.localWeekYear,4);case"o":return this.num(n.ordinal);case"ooo":return this.num(n.ordinal,3);case"q":return this.num(n.quarter);case"qq":return this.num(n.quarter,2);case"X":return this.num(Math.floor(n.ts/1e3));case"x":return this.num(n.ts);default:return I(A)}};return Lc(We.parseFormat(r),N)}formatDurationFromString(n,r){const a=g=>{switch(g[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=g=>S=>{const I=a(S);return I?this.num(g.get(I),S.length):S},c=We.parseFormat(r),f=c.reduce((g,{literal:S,val:I})=>S?g:g.concat(I),[]),p=n.shiftTo(...f.map(a).filter(g=>g));return Lc(c,o(p))}}const zf=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function sr(...i){const n=i.reduce((r,a)=>r+a.source,"");return RegExp(`^${n}$`)}function ar(...i){return n=>i.reduce(([r,a,o],c)=>{const[f,p,g]=c(n,o);return[{...r,...f},p||a,g]},[{},null,1]).slice(0,2)}function or(i,...n){if(i==null)return[null,null];for(const[r,a]of n){const o=r.exec(i);if(o)return a(o)}return[null,null]}function Bf(...i){return(n,r)=>{const a={};let o;for(o=0;o<i.length;o++)a[i[o]]=tn(n[r+o]);return[a,null,r+o]}}const Zf=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,v0=`(?:${Zf.source}?(?:\\[(${zf.source})\\])?)?`,Io=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,qf=RegExp(`${Io.source}${v0}`),Oo=RegExp(`(?:T${qf.source})?`),S0=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,w0=/(\d{4})-?W(\d\d)(?:-?(\d))?/,_0=/(\d{4})-?(\d{3})/,E0=Bf("weekYear","weekNumber","weekDay"),T0=Bf("year","ordinal"),I0=/(\d{4})-(\d\d)-(\d\d)/,Yf=RegExp(`${Io.source} ?(?:${Zf.source}|(${zf.source}))?`),O0=RegExp(`(?: ${Yf.source})?`);function tr(i,n,r){const a=i[n];return G(a)?r:tn(a)}function C0(i,n){return[{year:tr(i,n),month:tr(i,n+1,1),day:tr(i,n+2,1)},null,n+3]}function ur(i,n){return[{hours:tr(i,n,0),minutes:tr(i,n+1,0),seconds:tr(i,n+2,0),milliseconds:Eo(i[n+3])},null,n+4]}function Br(i,n){const r=!i[n]&&!i[n+1],a=us(i[n+1],i[n+2]),o=r?null:Re.instance(a);return[{},o,n+3]}function Zr(i,n){const r=i[n]?bt.create(i[n]):null;return[{},r,n+1]}const M0=RegExp(`^T?${Io.source}$`),b0=/^-?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 A0(i){const[n,r,a,o,c,f,p,g,S]=i,I=n[0]==="-",D=g&&g[0]==="-",N=(A,U=!1)=>A!==void 0&&(U||A&&I)?-A:A;return[{years:N(_n(r)),months:N(_n(a)),weeks:N(_n(o)),days:N(_n(c)),hours:N(_n(f)),minutes:N(_n(p)),seconds:N(_n(g),g==="-0"),milliseconds:N(Eo(S),D)}]}const D0={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 Co(i,n,r,a,o,c,f){const p={year:n.length===2?lo(tn(n)):tn(n),month:Uf.indexOf(r)+1,day:tn(a),hour:tn(o),minute:tn(c)};return f&&(p.second=tn(f)),i&&(p.weekday=i.length>3?$f.indexOf(i)+1:Ff.indexOf(i)+1),p}const x0=/^(?:(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 L0(i){const[,n,r,a,o,c,f,p,g,S,I,D]=i,N=Co(n,o,a,r,c,f,p);let A;return g?A=D0[g]:S?A=0:A=us(I,D),[N,new Re(A)]}function N0(i){return i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const k0=/^(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$/,W0=/^(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$/,R0=/^(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 Nc(i){const[,n,r,a,o,c,f,p]=i;return[Co(n,o,a,r,c,f,p),Re.utcInstance]}function U0(i){const[,n,r,a,o,c,f,p]=i;return[Co(n,p,r,a,o,c,f),Re.utcInstance]}const P0=sr(S0,Oo),$0=sr(w0,Oo),F0=sr(_0,Oo),H0=sr(qf),Jf=ar(C0,ur,Br,Zr),V0=ar(E0,ur,Br,Zr),G0=ar(T0,ur,Br,Zr),z0=ar(ur,Br,Zr);function B0(i){return or(i,[P0,Jf],[$0,V0],[F0,G0],[H0,z0])}function Z0(i){return or(N0(i),[x0,L0])}function q0(i){return or(i,[k0,Nc],[W0,Nc],[R0,U0])}function Y0(i){return or(i,[b0,A0])}const J0=ar(ur);function K0(i){return or(i,[M0,J0])}const X0=sr(I0,O0),Q0=sr(Yf),j0=ar(ur,Br,Zr);function e_(i){return or(i,[X0,Jf],[Q0,j0])}const kc="Invalid Duration",Kf={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}},t_={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},...Kf},ut=146097/400,Yn=146097/4800,n_={years:{quarters:4,months:12,weeks:ut/7,days:ut,hours:ut*24,minutes:ut*24*60,seconds:ut*24*60*60,milliseconds:ut*24*60*60*1e3},quarters:{months:3,weeks:ut/28,days:ut/4,hours:ut*24/4,minutes:ut*24*60/4,seconds:ut*24*60*60/4,milliseconds:ut*24*60*60*1e3/4},months:{weeks:Yn/7,days:Yn,hours:Yn*24,minutes:Yn*24*60,seconds:Yn*24*60*60,milliseconds:Yn*24*60*60*1e3},...Kf},Cn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],r_=Cn.slice(0).reverse();function Qt(i,n,r=!1){const a={values:r?n.values:{...i.values,...n.values||{}},loc:i.loc.clone(n.loc),conversionAccuracy:n.conversionAccuracy||i.conversionAccuracy,matrix:n.matrix||i.matrix};return new re(a)}function Xf(i,n){var r;let a=(r=n.milliseconds)!=null?r:0;for(const o of r_.slice(1))n[o]&&(a+=n[o]*i[o].milliseconds);return a}function Wc(i,n){const r=Xf(i,n)<0?-1:1;Cn.reduceRight((a,o)=>{if(G(n[o]))return a;if(a){const c=n[a]*r,f=i[o][a],p=Math.floor(c/f);n[o]+=p*r,n[a]-=p*f*r}return o},null),Cn.reduce((a,o)=>{if(G(n[o]))return a;if(a){const c=n[a]%1;n[a]-=c,n[o]+=c*i[a][o]}return o},null)}function i_(i){const n={};for(const[r,a]of Object.entries(i))a!==0&&(n[r]=a);return n}class re{constructor(n){const r=n.conversionAccuracy==="longterm"||!1;let a=r?n_:t_;n.matrix&&(a=n.matrix),this.values=n.values,this.loc=n.loc||ue.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=n.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(n,r){return re.fromObject({milliseconds:n},r)}static fromObject(n,r={}){if(n==null||typeof n!="object")throw new ke(`Duration.fromObject: argument expected to be an object, got ${n===null?"null":typeof n}`);return new re({values:ts(n,re.normalizeUnit),loc:ue.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(n){if(an(n))return re.fromMillis(n);if(re.isDuration(n))return n;if(typeof n=="object")return re.fromObject(n);throw new ke(`Unknown duration argument ${n} of type ${typeof n}`)}static fromISO(n,r){const[a]=Y0(n);return a?re.fromObject(a,r):re.invalid("unparsable",`the input "${n}" can't be parsed as ISO 8601`)}static fromISOTime(n,r){const[a]=K0(n);return a?re.fromObject(a,r):re.invalid("unparsable",`the input "${n}" can't be parsed as ISO 8601`)}static invalid(n,r=null){if(!n)throw new ke("need to specify a reason the Duration is invalid");const a=n instanceof _t?n:new _t(n,r);if(we.throwOnInvalid)throw new Dw(a);return new re({invalid:a})}static normalizeUnit(n){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[n&&n.toLowerCase()];if(!r)throw new rf(n);return r}static isDuration(n){return n&&n.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(n,r={}){const a={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?We.create(this.loc,a).formatDurationFromString(this,n):kc}toHuman(n={}){if(!this.isValid)return kc;const r=Cn.map(a=>{const o=this.values[a];return G(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...n,unit:a.slice(0,-1)}).format(o)}).filter(a=>a);return this.loc.listFormatter({type:"conjunction",style:n.listStyle||"narrow",...n}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let n="P";return this.years!==0&&(n+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(n+=this.months+this.quarters*3+"M"),this.weeks!==0&&(n+=this.weeks+"W"),this.days!==0&&(n+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(n+="T"),this.hours!==0&&(n+=this.hours+"H"),this.minutes!==0&&(n+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(n+=To(this.seconds+this.milliseconds/1e3,3)+"S"),n==="P"&&(n+="T0S"),n}toISOTime(n={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(n={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...n,includeOffset:!1},V.fromMillis(r,{zone:"UTC"}).toISOTime(n))}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?Xf(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(n){if(!this.isValid)return this;const r=re.fromDurationLike(n),a={};for(const o of Cn)(rr(r.values,o)||rr(this.values,o))&&(a[o]=r.get(o)+this.get(o));return Qt(this,{values:a},!0)}minus(n){if(!this.isValid)return this;const r=re.fromDurationLike(n);return this.plus(r.negate())}mapUnits(n){if(!this.isValid)return this;const r={};for(const a of Object.keys(this.values))r[a]=Rf(n(this.values[a],a));return Qt(this,{values:r},!0)}get(n){return this[re.normalizeUnit(n)]}set(n){if(!this.isValid)return this;const r={...this.values,...ts(n,re.normalizeUnit)};return Qt(this,{values:r})}reconfigure({locale:n,numberingSystem:r,conversionAccuracy:a,matrix:o}={}){const f={loc:this.loc.clone({locale:n,numberingSystem:r}),matrix:o,conversionAccuracy:a};return Qt(this,f)}as(n){return this.isValid?this.shiftTo(n).get(n):NaN}normalize(){if(!this.isValid)return this;const n=this.toObject();return Wc(this.matrix,n),Qt(this,{values:n},!0)}rescale(){if(!this.isValid)return this;const n=i_(this.normalize().shiftToAll().toObject());return Qt(this,{values:n},!0)}shiftTo(...n){if(!this.isValid)return this;if(n.length===0)return this;n=n.map(f=>re.normalizeUnit(f));const r={},a={},o=this.toObject();let c;for(const f of Cn)if(n.indexOf(f)>=0){c=f;let p=0;for(const S in a)p+=this.matrix[S][f]*a[S],a[S]=0;an(o[f])&&(p+=o[f]);const g=Math.trunc(p);r[f]=g,a[f]=(p*1e3-g*1e3)/1e3}else an(o[f])&&(a[f]=o[f]);for(const f in a)a[f]!==0&&(r[c]+=f===c?a[f]:a[f]/this.matrix[c][f]);return Wc(this.matrix,r),Qt(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=this.values[r]===0?0:-this.values[r];return Qt(this,{values:n},!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(n){if(!this.isValid||!n.isValid||!this.loc.equals(n.loc))return!1;function r(a,o){return a===void 0||a===0?o===void 0||o===0:a===o}for(const a of Cn)if(!r(this.values[a],n.values[a]))return!1;return!0}}const Jn="Invalid Interval";function s_(i,n){return!i||!i.isValid?Se.invalid("missing or invalid start"):!n||!n.isValid?Se.invalid("missing or invalid end"):n<i?Se.invalid("end before start",`The end of an interval must be after its start, but you had start=${i.toISO()} and end=${n.toISO()}`):null}class Se{constructor(n){this.s=n.start,this.e=n.end,this.invalid=n.invalid||null,this.isLuxonInterval=!0}static invalid(n,r=null){if(!n)throw new ke("need to specify a reason the Interval is invalid");const a=n instanceof _t?n:new _t(n,r);if(we.throwOnInvalid)throw new Aw(a);return new Se({invalid:a})}static fromDateTimes(n,r){const a=kr(n),o=kr(r),c=s_(a,o);return c??new Se({start:a,end:o})}static after(n,r){const a=re.fromDurationLike(r),o=kr(n);return Se.fromDateTimes(o,o.plus(a))}static before(n,r){const a=re.fromDurationLike(r),o=kr(n);return Se.fromDateTimes(o.minus(a),o)}static fromISO(n,r){const[a,o]=(n||"").split("/",2);if(a&&o){let c,f;try{c=V.fromISO(a,r),f=c.isValid}catch{f=!1}let p,g;try{p=V.fromISO(o,r),g=p.isValid}catch{g=!1}if(f&&g)return Se.fromDateTimes(c,p);if(f){const S=re.fromISO(o,r);if(S.isValid)return Se.after(c,S)}else if(g){const S=re.fromISO(a,r);if(S.isValid)return Se.before(p,S)}}return Se.invalid("unparsable",`the input "${n}" can't be parsed as ISO 8601`)}static isInterval(n){return n&&n.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(n="milliseconds"){return this.isValid?this.toDuration(n).get(n):NaN}count(n="milliseconds",r){if(!this.isValid)return NaN;const a=this.start.startOf(n,r);let o;return r!=null&&r.useLocaleWeeks?o=this.end.reconfigure({locale:a.locale}):o=this.end,o=o.startOf(n,r),Math.floor(o.diff(a,n).get(n))+(o.valueOf()!==this.end.valueOf())}hasSame(n){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,n):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(n){return this.isValid?this.s>n:!1}isBefore(n){return this.isValid?this.e<=n:!1}contains(n){return this.isValid?this.s<=n&&this.e>n:!1}set({start:n,end:r}={}){return this.isValid?Se.fromDateTimes(n||this.s,r||this.e):this}splitAt(...n){if(!this.isValid)return[];const r=n.map(kr).filter(f=>this.contains(f)).sort((f,p)=>f.toMillis()-p.toMillis()),a=[];let{s:o}=this,c=0;for(;o<this.e;){const f=r[c]||this.e,p=+f>+this.e?this.e:f;a.push(Se.fromDateTimes(o,p)),o=p,c+=1}return a}splitBy(n){const r=re.fromDurationLike(n);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:a}=this,o=1,c;const f=[];for(;a<this.e;){const p=this.start.plus(r.mapUnits(g=>g*o));c=+p>+this.e?this.e:p,f.push(Se.fromDateTimes(a,c)),a=c,o+=1}return f}divideEqually(n){return this.isValid?this.splitBy(this.length()/n).slice(0,n):[]}overlaps(n){return this.e>n.s&&this.s<n.e}abutsStart(n){return this.isValid?+this.e==+n.s:!1}abutsEnd(n){return this.isValid?+n.e==+this.s:!1}engulfs(n){return this.isValid?this.s<=n.s&&this.e>=n.e:!1}equals(n){return!this.isValid||!n.isValid?!1:this.s.equals(n.s)&&this.e.equals(n.e)}intersection(n){if(!this.isValid)return this;const r=this.s>n.s?this.s:n.s,a=this.e<n.e?this.e:n.e;return r>=a?null:Se.fromDateTimes(r,a)}union(n){if(!this.isValid)return this;const r=this.s<n.s?this.s:n.s,a=this.e>n.e?this.e:n.e;return Se.fromDateTimes(r,a)}static merge(n){const[r,a]=n.sort((o,c)=>o.s-c.s).reduce(([o,c],f)=>c?c.overlaps(f)||c.abutsStart(f)?[o,c.union(f)]:[o.concat([c]),f]:[o,f],[[],null]);return a&&r.push(a),r}static xor(n){let r=null,a=0;const o=[],c=n.map(g=>[{time:g.s,type:"s"},{time:g.e,type:"e"}]),f=Array.prototype.concat(...c),p=f.sort((g,S)=>g.time-S.time);for(const g of p)a+=g.type==="s"?1:-1,a===1?r=g.time:(r&&+r!=+g.time&&o.push(Se.fromDateTimes(r,g.time)),r=null);return Se.merge(o)}difference(...n){return Se.xor([this].concat(n)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Jn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(n=Qi,r={}){return this.isValid?We.create(this.s.loc.clone(r),n).formatInterval(this):Jn}toISO(n){return this.isValid?`${this.s.toISO(n)}/${this.e.toISO(n)}`:Jn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Jn}toISOTime(n){return this.isValid?`${this.s.toISOTime(n)}/${this.e.toISOTime(n)}`:Jn}toFormat(n,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(n)}${r}${this.e.toFormat(n)}`:Jn}toDuration(n,r){return this.isValid?this.e.diff(this.s,n,r):re.invalid(this.invalidReason)}mapEndpoints(n){return Se.fromDateTimes(n(this.s),n(this.e))}}class Rr{static hasDST(n=we.defaultZone){const r=V.now().setZone(n).set({month:12});return!n.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(n){return bt.isValidZone(n)}static normalizeZone(n){return rn(n,we.defaultZone)}static getStartOfWeek({locale:n=null,locObj:r=null}={}){return(r||ue.create(n)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:n=null,locObj:r=null}={}){return(r||ue.create(n)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:n=null,locObj:r=null}={}){return(r||ue.create(n)).getWeekendDays().slice()}static months(n="long",{locale:r=null,numberingSystem:a=null,locObj:o=null,outputCalendar:c="gregory"}={}){return(o||ue.create(r,a,c)).months(n)}static monthsFormat(n="long",{locale:r=null,numberingSystem:a=null,locObj:o=null,outputCalendar:c="gregory"}={}){return(o||ue.create(r,a,c)).months(n,!0)}static weekdays(n="long",{locale:r=null,numberingSystem:a=null,locObj:o=null}={}){return(o||ue.create(r,a,null)).weekdays(n)}static weekdaysFormat(n="long",{locale:r=null,numberingSystem:a=null,locObj:o=null}={}){return(o||ue.create(r,a,null)).weekdays(n,!0)}static meridiems({locale:n=null}={}){return ue.create(n).meridiems()}static eras(n="short",{locale:r=null}={}){return ue.create(r,null,"gregory").eras(n)}static features(){return{relative:Nf(),localeWeek:kf()}}}function Rc(i,n){const r=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=r(n)-r(i);return Math.floor(re.fromMillis(a).as("days"))}function a_(i,n,r){const a=[["years",(g,S)=>S.year-g.year],["quarters",(g,S)=>S.quarter-g.quarter+(S.year-g.year)*4],["months",(g,S)=>S.month-g.month+(S.year-g.year)*12],["weeks",(g,S)=>{const I=Rc(g,S);return(I-I%7)/7}],["days",Rc]],o={},c=i;let f,p;for(const[g,S]of a)r.indexOf(g)>=0&&(f=g,o[g]=S(i,n),p=c.plus(o),p>n?(o[g]--,i=c.plus(o),i>n&&(p=i,o[g]--,i=c.plus(o))):i=p);return[i,o,p,f]}function o_(i,n,r,a){let[o,c,f,p]=a_(i,n,r);const g=n-o,S=r.filter(D=>["hours","minutes","seconds","milliseconds"].indexOf(D)>=0);S.length===0&&(f<n&&(f=o.plus({[p]:1})),f!==o&&(c[p]=(c[p]||0)+g/(f-o)));const I=re.fromObject(c,a);return S.length>0?re.fromMillis(g,a).shiftTo(...S).plus(I):I}const u_="missing Intl.DateTimeFormat.formatToParts support";function ae(i,n=r=>r){return{regex:i,deser:([r])=>n(Xw(r))}}const l_=" ",Qf=`[ ${l_}]`,jf=new RegExp(Qf,"g");function c_(i){return i.replace(/\./g,"\\.?").replace(jf,Qf)}function Uc(i){return i.replace(/\./g,"").replace(jf," ").toLowerCase()}function wt(i,n){return i===null?null:{regex:RegExp(i.map(c_).join("|")),deser:([r])=>i.findIndex(a=>Uc(r)===Uc(a))+n}}function Pc(i,n){return{regex:i,deser:([,r,a])=>us(r,a),groups:n}}function Zi(i){return{regex:i,deser:([n])=>n}}function f_(i){return i.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function h_(i,n){const r=St(n),a=St(n,"{2}"),o=St(n,"{3}"),c=St(n,"{4}"),f=St(n,"{6}"),p=St(n,"{1,2}"),g=St(n,"{1,3}"),S=St(n,"{1,6}"),I=St(n,"{1,9}"),D=St(n,"{2,4}"),N=St(n,"{4,6}"),A=Q=>({regex:RegExp(f_(Q.val)),deser:([H])=>H,literal:!0}),ee=(Q=>{if(i.literal)return A(Q);switch(Q.val){case"G":return wt(n.eras("short"),0);case"GG":return wt(n.eras("long"),0);case"y":return ae(S);case"yy":return ae(D,lo);case"yyyy":return ae(c);case"yyyyy":return ae(N);case"yyyyyy":return ae(f);case"M":return ae(p);case"MM":return ae(a);case"MMM":return wt(n.months("short",!0),1);case"MMMM":return wt(n.months("long",!0),1);case"L":return ae(p);case"LL":return ae(a);case"LLL":return wt(n.months("short",!1),1);case"LLLL":return wt(n.months("long",!1),1);case"d":return ae(p);case"dd":return ae(a);case"o":return ae(g);case"ooo":return ae(o);case"HH":return ae(a);case"H":return ae(p);case"hh":return ae(a);case"h":return ae(p);case"mm":return ae(a);case"m":return ae(p);case"q":return ae(p);case"qq":return ae(a);case"s":return ae(p);case"ss":return ae(a);case"S":return ae(g);case"SSS":return ae(o);case"u":return Zi(I);case"uu":return Zi(p);case"uuu":return ae(r);case"a":return wt(n.meridiems(),0);case"kkkk":return ae(c);case"kk":return ae(D,lo);case"W":return ae(p);case"WW":return ae(a);case"E":case"c":return ae(r);case"EEE":return wt(n.weekdays("short",!1),1);case"EEEE":return wt(n.weekdays("long",!1),1);case"ccc":return wt(n.weekdays("short",!0),1);case"cccc":return wt(n.weekdays("long",!0),1);case"Z":case"ZZ":return Pc(new RegExp(`([+-]${p.source})(?::(${a.source}))?`),2);case"ZZZ":return Pc(new RegExp(`([+-]${p.source})(${a.source})?`),2);case"z":return Zi(/[a-z_+-/]{1,256}?/i);case" ":return Zi(/[^\S\n\r]/);default:return A(Q)}})(i)||{invalidReason:u_};return ee.token=i,ee}const d_={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:{