vite-vanilla-ts-module
Version:
<p align="center"> <img alt="license" src="https://img.shields.io/github/license/entwurfhaus/vite-vanilla-ts-module?style=flat-square" /> <img alt="release" src="https://img.shields.io/github/v/tag/entwurfhaus/vite-vanilla-ts-module?label=release&
1 lines • 63.2 kB
JavaScript
"use strict";var br=Object.defineProperty,Fr=Object.defineProperties;var Vr=Object.getOwnPropertyDescriptors;var ye=Object.getOwnPropertySymbols;var rt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable;var tt=(r,e,t)=>e in r?br(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,f=(r,e)=>{for(var t in e||(e={}))rt.call(e,t)&&tt(r,t,e[t]);if(ye)for(var t of ye(e))nt.call(e,t)&&tt(r,t,e[t]);return r},A=(r,e)=>Fr(r,Vr(e));var be=(r,e)=>{var t={};for(var n in r)rt.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&ye)for(var n of ye(r))e.indexOf(n)<0&&nt.call(r,n)&&(t[n]=r[n]);return t};Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Cr=(r,e)=>r+e,Lr=(r,e)=>r-e,$r=(r,e)=>r*e,Ar=(r,e)=>r/e,Zr=r=>`Hello, ${r}!`;class _ extends Error{}class zr extends _{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Rr extends _{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Wr extends _{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ae extends _{}class Dt extends _{constructor(e){super(`Invalid unit ${e}`)}}class x extends _{}class R extends _{constructor(){super("Zone is an abstract class")}}const c="numeric",$="short",I="long",Re={year:c,month:c,day:c},xt={year:c,month:$,day:c},Ur={year:c,month:$,day:c,weekday:$},bt={year:c,month:I,day:c},Ft={year:c,month:I,day:c,weekday:I},Vt={hour:c,minute:c},Ct={hour:c,minute:c,second:c},Lt={hour:c,minute:c,second:c,timeZoneName:$},$t={hour:c,minute:c,second:c,timeZoneName:I},At={hour:c,minute:c,hourCycle:"h23"},Zt={hour:c,minute:c,second:c,hourCycle:"h23"},zt={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:$},Rt={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:I},Wt={year:c,month:c,day:c,hour:c,minute:c},Ut={year:c,month:c,day:c,hour:c,minute:c,second:c},qt={year:c,month:$,day:c,hour:c,minute:c},Ht={year:c,month:$,day:c,hour:c,minute:c,second:c},qr={year:c,month:$,day:c,weekday:$,hour:c,minute:c},Pt={year:c,month:I,day:c,hour:c,minute:c,timeZoneName:$},Yt={year:c,month:I,day:c,hour:c,minute:c,second:c,timeZoneName:$},Gt={year:c,month:I,day:c,weekday:I,hour:c,minute:c,timeZoneName:I},_t={year:c,month:I,day:c,weekday:I,hour:c,minute:c,second:c,timeZoneName:I};function y(r){return typeof r=="undefined"}function G(r){return typeof r=="number"}function Ne(r){return typeof r=="number"&&r%1===0}function Hr(r){return typeof r=="string"}function Pr(r){return Object.prototype.toString.call(r)==="[object Date]"}function Jt(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Yr(r){return Array.isArray(r)?r:[r]}function st(r,e,t){if(r.length!==0)return r.reduce((n,s)=>{const a=[e(s),s];return n&&t(n[0],a[0])===n[0]?n:a},null)[1]}function Gr(r,e){return e.reduce((t,n)=>(t[n]=r[n],t),{})}function B(r,e){return Object.prototype.hasOwnProperty.call(r,e)}function Z(r,e,t){return Ne(r)&&r>=e&&r<=t}function _r(r,e){return r-e*Math.floor(r/e)}function M(r,e=2){const t=r<0;let n;return t?n="-"+(""+-r).padStart(e,"0"):n=(""+r).padStart(e,"0"),n}function W(r){if(!(y(r)||r===null||r===""))return parseInt(r,10)}function H(r){if(!(y(r)||r===null||r===""))return parseFloat(r)}function Ge(r){if(!(y(r)||r===null||r==="")){const e=parseFloat("0."+r)*1e3;return Math.floor(e)}}function _e(r,e,t=!1){const n=10**e;return(t?Math.trunc:Math.round)(r*n)/n}function ce(r){return r%4===0&&(r%100!==0||r%400===0)}function ue(r){return ce(r)?366:365}function Me(r,e){const t=_r(e-1,12)+1,n=r+(e-t)/12;return t===2?ce(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function Je(r){let e=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function Ee(r){const e=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7,t=r-1,n=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7;return e===4||n===3?53:52}function We(r){return r>99?r:r>60?1900+r:2e3+r}function jt(r,e,t,n=null){const s=new Date(r),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(a.timeZone=n);const i=f({timeZoneName:e},a),o=new Intl.DateTimeFormat(t,i).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return o?o.value:null}function Ie(r,e){let t=parseInt(r,10);Number.isNaN(t)&&(t=0);const n=parseInt(e,10)||0,s=t<0||Object.is(t,-0)?-n:n;return t*60+s}function Bt(r){const e=Number(r);if(typeof r=="boolean"||r===""||Number.isNaN(e))throw new x(`Invalid unit value ${r}`);return e}function ke(r,e){const t={};for(const n in r)if(B(r,n)){const s=r[n];if(s==null)continue;t[e(n)]=Bt(s)}return t}function le(r,e){const t=Math.trunc(Math.abs(r/60)),n=Math.trunc(Math.abs(r%60)),s=r>=0?"+":"-";switch(e){case"short":return`${s}${M(t,2)}:${M(n,2)}`;case"narrow":return`${s}${t}${n>0?`:${n}`:""}`;case"techie":return`${s}${M(t,2)}${M(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function De(r){return Gr(r,["hour","minute","second","millisecond"])}const Qt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,Jr=["January","February","March","April","May","June","July","August","September","October","November","December"],Kt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],jr=["J","F","M","A","M","J","J","A","S","O","N","D"];function Xt(r){switch(r){case"narrow":return[...jr];case"short":return[...Kt];case"long":return[...Jr];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 er=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Br=["M","T","W","T","F","S","S"];function rr(r){switch(r){case"narrow":return[...Br];case"short":return[...tr];case"long":return[...er];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const nr=["AM","PM"],Qr=["Before Christ","Anno Domini"],Kr=["BC","AD"],Xr=["B","A"];function sr(r){switch(r){case"narrow":return[...Xr];case"short":return[...Kr];case"long":return[...Qr];default:return null}}function en(r){return nr[r.hour<12?0:1]}function tn(r,e){return rr(e)[r.weekday-1]}function rn(r,e){return Xt(e)[r.month-1]}function nn(r,e){return sr(e)[r.year<0?0:1]}function sn(r,e,t="always",n=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(r)===-1;if(t==="auto"&&a){const T=r==="days";switch(e){case 1:return T?"tomorrow":`next ${s[r][0]}`;case-1:return T?"yesterday":`last ${s[r][0]}`;case 0:return T?"today":`this ${s[r][0]}`}}const i=Object.is(e,-0)||e<0,o=Math.abs(e),u=o===1,l=s[r],m=n?u?l[1]:l[2]||l[1]:u?s[r][0]:r;return i?`${o} ${m} ago`:`in ${o} ${m}`}function it(r,e){let t="";for(const n of r)n.literal?t+=n.val:t+=e(n.val);return t}const an={D:Re,DD:xt,DDD:bt,DDDD:Ft,t:Vt,tt:Ct,ttt:Lt,tttt:$t,T:At,TT:Zt,TTT:zt,TTTT:Rt,f:Wt,ff:qt,fff:Pt,ffff:Gt,F:Ut,FF:Ht,FFF:Yt,FFFF:_t};class N{static create(e,t={}){return new N(e,t)}static parseFormat(e){let t=null,n="",s=!1;const a=[];for(let i=0;i<e.length;i++){const o=e.charAt(i);o==="'"?(n.length>0&&a.push({literal:s,val:n}),t=null,n="",s=!s):s||o===t?n+=o:(n.length>0&&a.push({literal:!1,val:n}),n=o,t=o)}return n.length>0&&a.push({literal:s,val:n}),a}static macroTokenToFormatOpts(e){return an[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,f(f({},this.opts),t)).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,f(f({},this.opts),t)).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,f(f({},this.opts),t)).formatToParts()}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,f(f({},this.opts),t)).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return M(e,t);const n=f({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(d,v)=>this.loc.extract(e,d,v),i=d=>e.isOffsetFixed&&e.offset===0&&d.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,d.format):"",o=()=>n?en(e):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(d,v)=>n?rn(e,d):a(v?{month:d}:{month:d,day:"numeric"},"month"),l=(d,v)=>n?tn(e,d):a(v?{weekday:d}:{weekday:d,month:"long",day:"numeric"},"weekday"),m=d=>{const v=N.macroTokenToFormatOpts(d);return v?this.formatWithSystemDefault(e,v):d},T=d=>n?nn(e,d):a({era:d},"era"),O=d=>{switch(d){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({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?a({day:"numeric"},"day"):this.num(e.day);case"dd":return s?a({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?a({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?a({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?a({month:"numeric"},"month"):this.num(e.month);case"MM":return s?a({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?a({year:"numeric"},"year"):this.num(e.year);case"yy":return s?a({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?a({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?a({year:"numeric"},"year"):this.num(e.year,6);case"G":return T("short");case"GG":return T("long");case"GGGGG":return T("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"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 m(d)}};return it(N.parseFormat(t),O)}formatDurationFromString(e,t){const n=u=>{switch(u[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=u=>l=>{const m=n(l);return m?this.num(u.get(m),l.length):l},a=N.parseFormat(t),i=a.reduce((u,{literal:l,val:m})=>l?u:u.concat(m),[]),o=e.shiftTo(...i.map(n).filter(u=>u));return it(a,s(o))}}class L{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class fe{get type(){throw new R}get name(){throw new R}get ianaName(){return this.name}get isUniversal(){throw new R}offsetName(e,t){throw new R}formatOffset(e,t){throw new R}offset(e){throw new R}equals(e){throw new R}get isValid(){throw new R}}let Fe=null;class je extends fe{static get instance(){return Fe===null&&(Fe=new je),Fe}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return jt(e,t,n)}formatOffset(e,t){return le(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Oe={};function on(r){return Oe[r]||(Oe[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Oe[r]}const un={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ln(r,e){const t=r.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,s,a,i,o,u,l,m]=n;return[i,s,a,o,u,l,m]}function cn(r,e){const t=r.formatToParts(e),n=[];for(let s=0;s<t.length;s++){const{type:a,value:i}=t[s],o=un[a];a==="era"?n[o]=i:y(o)||(n[o]=parseInt(i,10))}return n}let ge={};class z extends fe{static create(e){return ge[e]||(ge[e]=new z(e)),ge[e]}static resetCache(){ge={},Oe={}}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=z.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return jt(e,t,n,this.name)}formatOffset(e,t){return le(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=on(this.name);let[s,a,i,o,u,l,m]=n.formatToParts?cn(n,t):ln(n,t);o==="BC"&&(s=-Math.abs(s)+1);const O=Je({year:s,month:a,day:i,hour:u===24?0:u,minute:l,second:m,millisecond:0});let d=+t;const v=d%1e3;return d-=v>=0?v:1e3+v,(O-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ve=null;class k extends fe{static get utcInstance(){return Ve===null&&(Ve=new k(0)),Ve}static instance(e){return e===0?k.utcInstance:new k(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new k(Ie(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${le(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${le(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return le(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class fn extends fe{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 U(r,e){if(y(r)||r===null)return e;if(r instanceof fe)return r;if(Hr(r)){const t=r.toLowerCase();return t==="local"||t==="system"?e:t==="utc"||t==="gmt"?k.utcInstance:k.parseSpecifier(t)||z.create(r)}else return G(r)?k.instance(r):typeof r=="object"&&r.offset&&typeof r.offset=="number"?r:new fn(r)}let at=()=>Date.now(),ot="system",ut=null,lt=null,ct=null,ft;class E{static get now(){return at}static set now(e){at=e}static set defaultZone(e){ot=e}static get defaultZone(){return U(ot,je.instance)}static get defaultLocale(){return ut}static set defaultLocale(e){ut=e}static get defaultNumberingSystem(){return lt}static set defaultNumberingSystem(e){lt=e}static get defaultOutputCalendar(){return ct}static set defaultOutputCalendar(e){ct=e}static get throwOnInvalid(){return ft}static set throwOnInvalid(e){ft=e}static resetCaches(){S.resetCache(),z.resetCache()}}let dt={};function dn(r,e={}){const t=JSON.stringify([r,e]);let n=dt[t];return n||(n=new Intl.ListFormat(r,e),dt[t]=n),n}let Ue={};function qe(r,e={}){const t=JSON.stringify([r,e]);let n=Ue[t];return n||(n=new Intl.DateTimeFormat(r,e),Ue[t]=n),n}let He={};function hn(r,e={}){const t=JSON.stringify([r,e]);let n=He[t];return n||(n=new Intl.NumberFormat(r,e),He[t]=n),n}let Pe={};function mn(r,e={}){const i=e,{base:t}=i,n=be(i,["base"]),s=JSON.stringify([r,n]);let a=Pe[s];return a||(a=new Intl.RelativeTimeFormat(r,e),Pe[s]=a),a}let oe=null;function yn(){return oe||(oe=new Intl.DateTimeFormat().resolvedOptions().locale,oe)}function gn(r){const e=r.indexOf("-u-");if(e===-1)return[r];{let t;const n=r.substring(0,e);try{t=qe(r).resolvedOptions()}catch{t=qe(n).resolvedOptions()}const{numberingSystem:s,calendar:a}=t;return[n,s,a]}}function wn(r,e,t){return(t||e)&&(r+="-u",t&&(r+=`-ca-${t}`),e&&(r+=`-nu-${e}`)),r}function Tn(r){const e=[];for(let t=1;t<=12;t++){const n=h.utc(2016,t,1);e.push(r(n))}return e}function Sn(r){const e=[];for(let t=1;t<=7;t++){const n=h.utc(2016,11,13+t);e.push(r(n))}return e}function we(r,e,t,n,s){const a=r.listingMode(t);return a==="error"?null:a==="en"?n(e):s(e)}function pn(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||new Intl.DateTimeFormat(r.intl).resolvedOptions().numberingSystem==="latn"}class On{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const o=n,{padTo:s,floor:a}=o,i=be(o,["padTo","floor"]);if(!t||Object.keys(i).length>0){const u=f({useGrouping:!1},n);n.padTo>0&&(u.minimumIntegerDigits=n.padTo),this.inf=hn(e,u)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):_e(e,3);return M(t,this.padTo)}}}class vn{constructor(e,t,n){this.opts=n;let s;if(e.zone.isUniversal){const i=-1*(e.offset/60),o=i>=0?`Etc/GMT+${i}`:`Etc/GMT${i}`;e.offset!==0&&z.create(o).valid?(s=o,this.dt=e):(s="UTC",n.timeZoneName?this.dt=e:this.dt=e.offset===0?e:h.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,s=e.zone.name);const a=f({},this.opts);s&&(a.timeZone=s),this.dtf=qe(t,a)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Mn{constructor(e,t,n){this.opts=f({style:"long"},n),!t&&Jt()&&(this.rtf=mn(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):sn(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class S{static fromOpts(e){return S.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,n,s=!1){const a=e||E.defaultLocale,i=a||(s?"en-US":yn()),o=t||E.defaultNumberingSystem,u=n||E.defaultOutputCalendar;return new S(i,o,u,a)}static resetCache(){oe=null,Ue={},He={},Pe={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n}={}){return S.create(e,t,n)}constructor(e,t,n,s){const[a,i,o]=gn(e);this.locale=a,this.numberingSystem=t||i||null,this.outputCalendar=n||o||null,this.intl=wn(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=pn(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:S.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone(A(f({},e),{defaultToEN:!0}))}redefaultToSystem(e={}){return this.clone(A(f({},e),{defaultToEN:!1}))}months(e,t=!1,n=!0){return we(this,e,n,Xt,()=>{const s=t?{month:e,day:"numeric"}:{month:e},a=t?"format":"standalone";return this.monthsCache[a][e]||(this.monthsCache[a][e]=Tn(i=>this.extract(i,s,"month"))),this.monthsCache[a][e]})}weekdays(e,t=!1,n=!0){return we(this,e,n,rr,()=>{const s=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},a=t?"format":"standalone";return this.weekdaysCache[a][e]||(this.weekdaysCache[a][e]=Sn(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[a][e]})}meridiems(e=!0){return we(this,void 0,e,()=>nr,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[h.utc(2016,11,13,9),h.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(e,t=!0){return we(this,e,t,sr,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[h.utc(-40,1,1),h.utc(2017,1,1)].map(s=>this.extract(s,n,"era"))),this.eraCache[e]})}extract(e,t,n){const s=this.dtFormatter(e,t),a=s.formatToParts(),i=a.find(o=>o.type.toLowerCase()===n);return i?i.value:null}numberFormatter(e={}){return new On(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new vn(e,this.intl,t)}relFormatter(e={}){return new Mn(this.intl,this.isEnglish(),e)}listFormatter(e={}){return dn(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function Q(...r){const e=r.reduce((t,n)=>t+n.source,"");return RegExp(`^${e}$`)}function K(...r){return e=>r.reduce(([t,n,s],a)=>{const[i,o,u]=a(e,s);return[f(f({},t),i),o||n,u]},[{},null,1]).slice(0,2)}function X(r,...e){if(r==null)return[null,null];for(const[t,n]of e){const s=t.exec(r);if(s)return n(s)}return[null,null]}function ir(...r){return(e,t)=>{const n={};let s;for(s=0;s<r.length;s++)n[r[s]]=W(e[t+s]);return[n,null,t+s]}}const ar=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,En=`(?:${ar.source}?(?:\\[(${Qt.source})\\])?)?`,Be=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,or=RegExp(`${Be.source}${En}`),Qe=RegExp(`(?:T${or.source})?`),kn=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Nn=/(\d{4})-?W(\d\d)(?:-?(\d))?/,In=/(\d{4})-?(\d{3})/,Dn=ir("weekYear","weekNumber","weekDay"),xn=ir("year","ordinal"),bn=/(\d{4})-(\d\d)-(\d\d)/,ur=RegExp(`${Be.source} ?(?:${ar.source}|(${Qt.source}))?`),Fn=RegExp(`(?: ${ur.source})?`);function j(r,e,t){const n=r[e];return y(n)?t:W(n)}function Vn(r,e){return[{year:j(r,e),month:j(r,e+1,1),day:j(r,e+2,1)},null,e+3]}function ee(r,e){return[{hours:j(r,e,0),minutes:j(r,e+1,0),seconds:j(r,e+2,0),milliseconds:Ge(r[e+3])},null,e+4]}function de(r,e){const t=!r[e]&&!r[e+1],n=Ie(r[e+1],r[e+2]),s=t?null:k.instance(n);return[{},s,e+3]}function he(r,e){const t=r[e]?z.create(r[e]):null;return[{},t,e+1]}const Cn=RegExp(`^T?${Be.source}$`),Ln=/^-?P(?:(?:(-?\d{1,9}(?:\.\d{1,9})?)Y)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,9}(?:\.\d{1,9})?)W)?(?:(-?\d{1,9}(?:\.\d{1,9})?)D)?(?:T(?:(-?\d{1,9}(?:\.\d{1,9})?)H)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function $n(r){const[e,t,n,s,a,i,o,u,l]=r,m=e[0]==="-",T=u&&u[0]==="-",O=(d,v=!1)=>d!==void 0&&(v||d&&m)?-d:d;return[{years:O(H(t)),months:O(H(n)),weeks:O(H(s)),days:O(H(a)),hours:O(H(i)),minutes:O(H(o)),seconds:O(H(u),u==="-0"),milliseconds:O(Ge(l),T)}]}const An={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 Ke(r,e,t,n,s,a,i){const o={year:e.length===2?We(W(e)):W(e),month:Kt.indexOf(t)+1,day:W(n),hour:W(s),minute:W(a)};return i&&(o.second=W(i)),r&&(o.weekday=r.length>3?er.indexOf(r)+1:tr.indexOf(r)+1),o}const Zn=/^(?:(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 zn(r){const[,e,t,n,s,a,i,o,u,l,m,T]=r,O=Ke(e,s,n,t,a,i,o);let d;return u?d=An[u]:l?d=0:d=Ie(m,T),[O,new k(d)]}function Rn(r){return r.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Wn=/^(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$/,Un=/^(Monday|Tuesday|Wedsday|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$/,qn=/^(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 ht(r){const[,e,t,n,s,a,i,o]=r;return[Ke(e,s,n,t,a,i,o),k.utcInstance]}function Hn(r){const[,e,t,n,s,a,i,o]=r;return[Ke(e,o,t,n,s,a,i),k.utcInstance]}const Pn=Q(kn,Qe),Yn=Q(Nn,Qe),Gn=Q(In,Qe),_n=Q(or),lr=K(Vn,ee,de,he),Jn=K(Dn,ee,de,he),jn=K(xn,ee,de,he),Bn=K(ee,de,he);function Qn(r){return X(r,[Pn,lr],[Yn,Jn],[Gn,jn],[_n,Bn])}function Kn(r){return X(Rn(r),[Zn,zn])}function Xn(r){return X(r,[Wn,ht],[Un,ht],[qn,Hn])}function es(r){return X(r,[Ln,$n])}const ts=K(ee);function rs(r){return X(r,[Cn,ts])}const ns=Q(bn,Fn),ss=Q(ur),is=K(ee,de,he);function as(r){return X(r,[ns,lr],[ss,is])}const os="Invalid Duration",cr={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}},us=f({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}},cr),D=146097/400,J=146097/4800,ls=f({years:{quarters:4,months:12,weeks:D/7,days:D,hours:D*24,minutes:D*24*60,seconds:D*24*60*60,milliseconds:D*24*60*60*1e3},quarters:{months:3,weeks:D/28,days:D/4,hours:D*24/4,minutes:D*24*60/4,seconds:D*24*60*60/4,milliseconds:D*24*60*60*1e3/4},months:{weeks:J/7,days:J,hours:J*24,minutes:J*24*60,seconds:J*24*60*60,milliseconds:J*24*60*60*1e3}},cr),Y=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],cs=Y.slice(0).reverse();function P(r,e,t=!1){const n={values:t?e.values:f(f({},r.values),e.values||{}),loc:r.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||r.conversionAccuracy};return new g(n)}function fs(r){return r<0?Math.floor(r):Math.ceil(r)}function fr(r,e,t,n,s){const a=r[s][t],i=e[t]/a,o=Math.sign(i)===Math.sign(n[s]),u=!o&&n[s]!==0&&Math.abs(i)<=1?fs(i):Math.trunc(i);n[s]+=u,e[t]-=u*a}function ds(r,e){cs.reduce((t,n)=>y(e[n])?t:(t&&fr(r,e,t,e,n),n),null)}class g{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;this.values=e.values,this.loc=e.loc||S.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?ls:us,this.isLuxonDuration=!0}static fromMillis(e,t){return g.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new x(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new g({values:ke(e,g.normalizeUnit),loc:S.fromObject(t),conversionAccuracy:t.conversionAccuracy})}static fromDurationLike(e){if(G(e))return g.fromMillis(e);if(g.isDuration(e))return e;if(typeof e=="object")return g.fromObject(e);throw new x(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=es(e);return n?g.fromObject(n,t):g.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=rs(e);return n?g.fromObject(n,t):g.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new x("need to specify a reason the Duration is invalid");const n=e instanceof L?e:new L(e,t);if(E.throwOnInvalid)throw new Wr(n);return new g({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new Dt(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n=A(f({},t),{floor:t.round!==!1&&t.floor!==!1});return this.isValid?N.create(this.loc,n).formatDurationFromString(this,e):os}toHuman(e={}){const t=Y.map(n=>{const s=this.values[n];return y(s)?null:this.loc.numberFormatter(A(f({style:"unit",unitDisplay:"long"},e),{unit:n.slice(0,-1)})).format(s)}).filter(n=>n);return this.loc.listFormatter(f({type:"conjunction",style:e.listStyle||"narrow"},e)).format(t)}toObject(){return this.isValid?f({},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+=_e(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e=f({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);const n=this.shiftTo("hours","minutes","seconds","milliseconds");let s=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||n.seconds!==0||n.milliseconds!==0)&&(s+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||n.milliseconds!==0)&&(s+=".SSS"));let a=n.toFormat(s);return e.includePrefix&&(a="T"+a),a}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=g.fromDurationLike(e),n={};for(const s of Y)(B(t.values,s)||B(this.values,s))&&(n[s]=t.get(s)+this.get(s));return P(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=g.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Bt(e(this.values[n],n));return P(this,{values:t},!0)}get(e){return this[g.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t=f(f({},this.values),ke(e,g.normalizeUnit));return P(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t}),a={loc:s};return n&&(a.conversionAccuracy=n),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 ds(this.matrix,e),P(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(i=>g.normalizeUnit(i));const t={},n={},s=this.toObject();let a;for(const i of Y)if(e.indexOf(i)>=0){a=i;let o=0;for(const l in n)o+=this.matrix[l][i]*n[l],n[l]=0;G(s[i])&&(o+=s[i]);const u=Math.trunc(o);t[i]=u,n[i]=(o*1e3-u*1e3)/1e3;for(const l in s)Y.indexOf(l)>Y.indexOf(i)&&fr(this.matrix,s,l,t,i)}else G(s[i])&&(n[i]=s[i]);for(const i in n)n[i]!==0&&(t[a]+=i===a?n[i]:n[i]/this.matrix[a][i]);return P(this,{values:t},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];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 t(n,s){return n===void 0||n===0?s===void 0||s===0:n===s}for(const n of Y)if(!t(this.values[n],e.values[n]))return!1;return!0}}const re="Invalid Interval";function hs(r,e){return!r||!r.isValid?p.invalid("missing or invalid start"):!e||!e.isValid?p.invalid("missing or invalid end"):e<r?p.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${e.toISO()}`):null}class p{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new x("need to specify a reason the Interval is invalid");const n=e instanceof L?e:new L(e,t);if(E.throwOnInvalid)throw new Rr(n);return new p({invalid:n})}static fromDateTimes(e,t){const n=ie(e),s=ie(t),a=hs(n,s);return a==null?new p({start:n,end:s}):a}static after(e,t){const n=g.fromDurationLike(t),s=ie(e);return p.fromDateTimes(s,s.plus(n))}static before(e,t){const n=g.fromDurationLike(t),s=ie(e);return p.fromDateTimes(s.minus(n),s)}static fromISO(e,t){const[n,s]=(e||"").split("/",2);if(n&&s){let a,i;try{a=h.fromISO(n,t),i=a.isValid}catch{i=!1}let o,u;try{o=h.fromISO(s,t),u=o.isValid}catch{u=!1}if(i&&u)return p.fromDateTimes(a,o);if(i){const l=g.fromISO(s,t);if(l.isValid)return p.after(a,l)}else if(u){const l=g.fromISO(n,t);if(l.isValid)return p.before(o,l)}}return p.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 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"){if(!this.isValid)return NaN;const t=this.start.startOf(e),n=this.end.startOf(e);return Math.floor(n.diff(t,e).get(e))+1}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?p.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(ie).filter(i=>this.contains(i)).sort(),n=[];let{s}=this,a=0;for(;s<this.e;){const i=t[a]||this.e,o=+i>+this.e?this.e:i;n.push(p.fromDateTimes(s,o)),s=o,a+=1}return n}splitBy(e){const t=g.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:n}=this,s=1,a;const i=[];for(;n<this.e;){const o=this.start.plus(t.mapUnits(u=>u*s));a=+o>+this.e?this.e:o,i.push(p.fromDateTimes(n,a)),n=a,s+=1}return i}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 t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:p.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return p.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort((s,a)=>s.s-a.s).reduce(([s,a],i)=>a?a.overlaps(i)||a.abutsStart(i)?[s,a.union(i)]:[s.concat([a]),i]:[s,i],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const s=[],a=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),i=Array.prototype.concat(...a),o=i.sort((u,l)=>u.time-l.time);for(const u of o)n+=u.type==="s"?1:-1,n===1?t=u.time:(t&&+t!=+u.time&&s.push(p.fromDateTimes(t,u.time)),t=null);return p.merge(s)}difference(...e){return p.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:re}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:re}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:re}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:re}toFormat(e,{separator:t=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:re}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):g.invalid(this.invalidReason)}mapEndpoints(e){return p.fromDateTimes(e(this.s),e(this.e))}}class Te{static hasDST(e=E.defaultZone){const t=h.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return z.isValidZone(e)}static normalizeZone(e){return U(e,E.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null,outputCalendar:a="gregory"}={}){return(s||S.create(t,n,a)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null,outputCalendar:a="gregory"}={}){return(s||S.create(t,n,a)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null}={}){return(s||S.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null}={}){return(s||S.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return S.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return S.create(t,null,"gregory").eras(e)}static features(){return{relative:Jt()}}}function mt(r,e){const t=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=t(e)-t(r);return Math.floor(g.fromMillis(n).as("days"))}function ms(r,e,t){const n=[["years",(o,u)=>u.year-o.year],["quarters",(o,u)=>u.quarter-o.quarter],["months",(o,u)=>u.month-o.month+(u.year-o.year)*12],["weeks",(o,u)=>{const l=mt(o,u);return(l-l%7)/7}],["days",mt]],s={};let a,i;for(const[o,u]of n)if(t.indexOf(o)>=0){a=o;let l=u(r,e);i=r.plus({[o]:l}),i>e?(r=r.plus({[o]:l-1}),l-=1):r=i,s[o]=l}return[r,s,i,a]}function ys(r,e,t,n){let[s,a,i,o]=ms(r,e,t);const u=e-s,l=t.filter(T=>["hours","minutes","seconds","milliseconds"].indexOf(T)>=0);l.length===0&&(i<e&&(i=s.plus({[o]:1})),i!==s&&(a[o]=(a[o]||0)+u/(i-s)));const m=g.fromObject(a,n);return l.length>0?g.fromMillis(u,n).shiftTo(...l).plus(m):m}const Xe={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},yt={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]},gs=Xe.hanidec.replace(/[\[|\]]/g,"").split("");function ws(r){let e=parseInt(r,10);if(isNaN(e)){e="";for(let t=0;t<r.length;t++){const n=r.charCodeAt(t);if(r[t].search(Xe.hanidec)!==-1)e+=gs.indexOf(r[t]);else for(const s in yt){const[a,i]=yt[s];n>=a&&n<=i&&(e+=n-a)}}return parseInt(e,10)}else return e}function V({numberingSystem:r},e=""){return new RegExp(`${Xe[r||"latn"]}${e}`)}const Ts="missing Intl.DateTimeFormat.formatToParts support";function w(r,e=t=>t){return{regex:r,deser:([t])=>e(ws(t))}}const Ss=String.fromCharCode(160),dr=`[ ${Ss}]`,hr=new RegExp(dr,"g");function ps(r){return r.replace(/\./g,"\\.?").replace(hr,dr)}function gt(r){return r.replace(/\./g,"").replace(hr," ").toLowerCase()}function C(r,e){return r===null?null:{regex:RegExp(r.map(ps).join("|")),deser:([t])=>r.findIndex(n=>gt(t)===gt(n))+e}}function wt(r,e){return{regex:r,deser:([,t,n])=>Ie(t,n),groups:e}}function Ce(r){return{regex:r,deser:([e])=>e}}function Os(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function vs(r,e){const t=V(e),n=V(e,"{2}"),s=V(e,"{3}"),a=V(e,"{4}"),i=V(e,"{6}"),o=V(e,"{1,2}"),u=V(e,"{1,3}"),l=V(e,"{1,6}"),m=V(e,"{1,9}"),T=V(e,"{2,4}"),O=V(e,"{4,6}"),d=F=>({regex:RegExp(Os(F.val)),deser:([me])=>me,literal:!0}),q=(F=>{if(r.literal)return d(F);switch(F.val){case"G":return C(e.eras("short",!1),0);case"GG":return C(e.eras("long",!1),0);case"y":return w(l);case"yy":return w(T,We);case"yyyy":return w(a);case"yyyyy":return w(O);case"yyyyyy":return w(i);case"M":return w(o);case"MM":return w(n);case"MMM":return C(e.months("short",!0,!1),1);case"MMMM":return C(e.months("long",!0,!1),1);case"L":return w(o);case"LL":return w(n);case"LLL":return C(e.months("short",!1,!1),1);case"LLLL":return C(e.months("long",!1,!1),1);case"d":return w(o);case"dd":return w(n);case"o":return w(u);case"ooo":return w(s);case"HH":return w(n);case"H":return w(o);case"hh":return w(n);case"h":return w(o);case"mm":return w(n);case"m":return w(o);case"q":return w(o);case"qq":return w(n);case"s":return w(o);case"ss":return w(n);case"S":return w(u);case"SSS":return w(s);case"u":return Ce(m);case"uu":return Ce(o);case"uuu":return w(t);case"a":return C(e.meridiems(),0);case"kkkk":return w(a);case"kk":return w(T,We);case"W":return w(o);case"WW":return w(n);case"E":case"c":return w(t);case"EEE":return C(e.weekdays("short",!1,!1),1);case"EEEE":return C(e.weekdays("long",!1,!1),1);case"ccc":return C(e.weekdays("short",!0,!1),1);case"cccc":return C(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return wt(new RegExp(`([+-]${o.source})(?::(${n.source}))?`),2);case"ZZZ":return wt(new RegExp(`([+-]${o.source})(${n.source})?`),2);case"z":return Ce(/[a-z_+-/]{1,256}?/i);default:return d(F)}})(r)||{invalidReason:Ts};return q.token=r,q}const Ms={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",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function Es(r,e,t){const{type:n,value:s}=r;if(n==="literal")return{literal:!0,val:s};const a=t[n];let i=Ms[n];if(typeof i=="object"&&(i=i[a]),i)return{literal:!1,val:i}}function ks(r){return[`^${r.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,r]}function Ns(r,e,t){const n=r.match(e);if(n){const s={};let a=1;for(const i in t)if(B(t,i)){const o=t[i],u=o.groups?o.groups+1:1;!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(n.slice(a,a+u))),a+=u}return[n,s]}else return[n,{}]}function Is(r){const e=a=>{switch(a){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 t=null,n;return y(r.z)||(t=z.create(r.z)),y(r.Z)||(t||(t=new k(r.Z)),n=r.Z),y(r.q)||(r.M=(r.q-1)*3+1),y(r.h)||(r.h<12&&r.a===1?r.h+=12:r.h===12&&r.a===0&&(r.h=0)),r.G===0&&r.y&&(r.y=-r.y),y(r.u)||(r.S=Ge(r.u)),[Object.keys(r).reduce((a,i)=>{const o=e(i);return o&&(a[o]=r[i]),a},{}),t,n]}let Le=null;function Ds(){return Le||(Le=h.fromMillis(1555555555555)),Le}function xs(r,e){if(r.literal)return r;const t=N.macroTokenToFormatOpts(r.val);if(!t)return r;const a=N.create(e,t).formatDateTimeParts(Ds()).map(i=>Es(i,e,t));return a.includes(void 0)?r:a}function bs(r,e){return Array.prototype.concat(...r.map(t=>xs(t,e)))}function mr(r,e,t){const n=bs(N.parseFormat(t),r),s=n.map(i=>vs(i,r)),a=s.find(i=>i.invalidReason);if(a)return{input:e,tokens:n,invalidReason:a.invalidReason};{const[i,o]=ks(s),u=RegExp(i,"i"),[l,m]=Ns(e,u,o),[T,O,d]=m?Is(m):[null,null,void 0];if(B(m,"a")&&B(m,"H"))throw new ae("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:u,rawMatches:l,matches:m,result:T,zone:O,specificOffset:d}}}function Fs(r,e,t){const{result:n,zone:s,specificOffset:a,invalidReason:i}=mr(r,e,t);return[n,s,a,i]}const yr=[0,31,59,90,120,151,181,212,243,273,304,334],gr=[0,31,60,91,121,152,182,213,244,274,305,335];function b(r,e){return new L("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${r}, which is invalid`)}function wr(r,e,t){const n=new Date(Date.UTC(r,e-1,t));r<100&&r>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const s=n.getUTCDay();return s===0?7:s}function Tr(r,e,t){return t+(ce(r)?gr:yr)[e-1]}function Sr(r,e){const t=ce(r)?gr:yr,n=t.findIndex(a=>a<e),s=e-t[n];return{month:n+1,day:s}}function Ye(r){const{year:e,month:t,day:n}=r,s=Tr(e,t,n),a=wr(e,t,n);let i=Math.floor((s-a+10)/7),o;return i<1?(o=e-1,i=Ee(o)):i>Ee(e)?(o=e+1,i=1):o=e,f({weekYear:o,weekNumber:i,weekday:a},De(r))}function Tt(r){const{weekYear:e,weekNumber:t,weekday:n}=r,s=wr(e,1,4),a=ue(e);let i=t*7+n-s-3,o;i<1?(o=e-1,i+=ue(o)):i>a?(o=e+1,i-=ue(e)):o=e;const{month:u,day:l}=Sr(o,i);return f({year:o,month:u,day:l},De(r))}function $e(r){const{year:e,month:t,day:n}=r,s=Tr(e,t,n);return f({year:e,ordinal:s},De(r))}function St(r){const{year:e,ordinal:t}=r,{month:n,day:s}=Sr(e,t);return f({year:e,month:n,day:s},De(r))}function Vs(r){const e=Ne(r.weekYear),t=Z(r.weekNumber,1,Ee(r.weekYear)),n=Z(r.weekday,1,7);return e?t?n?!1:b("weekday",r.weekday):b("week",r.week):b("weekYear",r.weekYear)}function Cs(r){const e=Ne(r.year),t=Z(r.ordinal,1,ue(r.year));return e?t?!1:b("ordinal",r.ordinal):b("year",r.year)}function pr(r){const e=Ne(r.year),t=Z(r.month,1,12),n=Z(r.day,1,Me(r.year,r.month));return e?t?n?!1:b("day",r.day):b("month",r.month):b("year",r.year)}function Or(r){const{hour:e,minute:t,second:n,millisecond:s}=r,a=Z(e,0,23)||e===24&&t===0&&n===0&&s===0,i=Z(t,0,59),o=Z(n,0,59),u=Z(s,0,999);return a?i?o?u?!1:b("millisecond",s):b("second",n):b("minute",t):b("hour",e)}const Ae="Invalid DateTime",pt=864e13;function Se(r){return new L("unsupported zone",`the zone "${r.name}" is not supported`)}function Ze(r){return r.weekData===null&&(r.weekData=Ye(r.c)),r.weekData}function ne(r,e){const t={ts:r.ts,zone:r.zone,c:r.c,o:r.o,loc:r.loc,invalid:r.invalid};return new h(A(f(f({},t),e),{old:t}))}function vr(r,e,t){let n=r-e*60*1e3;const s=t.offset(n);if(e===s)return[n,e];n-=(s-e)*60*1e3;const a=t.offset(n);return s===a?[n,s]:[r-Math.min(s,a)*60*1e3,Math.max(s,a)]}function Ot(r,e){r+=e*60*1e3;const t=new Date(r);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function ve(r,e,t){return vr(Je(r),e,t)}function vt(r,e){const t=r.o,n=r.c.year+Math.trunc(e.years),s=r.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,a=A(f({},r.c),{year:n,month:s,day:Math.min(r.c.day,Me(n,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7}),i=g.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=Je(a);let[u,l]=vr(o,t,r.zone);return i!==0&&(u+=i,l=r.zone.offset(u)),{ts:u,o:l}}function se(r,e,t,n,s,a){const{setZone:i,zone:o}=t;if(r&&Object.keys(r).length!==0){const u=e||o,l=h.fromObject(r,A(f({},t),{zone:u,specificOffset:a}));return i?l:l.setZone(o)}else return h.invalid(new L("unparsable",`the input "${s}" can't be parsed as ${n}`))}function pe(r,e,t=!0){return r.isValid?N.create(S.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(r,e):null}function ze(r,e){const t=r.c.year>9999||r.c.year<0;let n="";return t&&r.c.year>=0&&(n+="+"),n+=M(r.c.year,t?6:4),e?(n+="-",n+=M(r.c.month),n+="-",n+=M(r.c.day)):(n+=M(r.c.month),n+=M(r.c.day)),n}function Mt(r,e,t,n,s,a){let i=M(r.c.hour);return e?(i+=":",i+=M(r.c.minute),(r.c.second!==0||!t)&&(i+=":")):i+=M(r.c.minute),(r.c.second!==0||!t)&&(i+=M(r.c.second),(r.c.millisecond!==0||!n)&&(i+=".",i+=M(r.c.millisecond,3))),s&&(r.isOffsetFixed&&r.offset===0&&!a?i+="Z":r.o<0?(i+="-",i+=M(Math.trunc(-r.o/60)),i+=":",i+=M(Math.trunc(-r.o%60))):(i+="+",i+=M(Math.trunc(r.o/60)),i+=":",i+=M(Math.trunc(r.o%60)))),a&&(i+="["+r.zone.ianaName+"]"),i}const Mr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ls={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},$s={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Er=["year","month","day","hour","minute","second","millisecond"],As=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Zs=["year","ordinal","hour","minute","second","millisecond"];function Et(r){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:"o