UNPKG

@qikdev/vue-ui

Version:

Vue UI component library

1 lines 704 kB
(function(E,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@qikdev/sdk")):typeof define=="function"&&define.amd?define(["exports","vue","@qikdev/sdk"],t):(E=typeof globalThis<"u"?globalThis:E||self,t(E["@qikdev/vue-ui"]={},E.Vue,E.sdk))})(this,function(E,t,Ot){"use strict";var DL=Object.defineProperty;var OL=(E,t,Ot)=>t in E?DL(E,t,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):E[t]=Ot;var z=(E,t,Ot)=>OL(E,typeof t!="symbol"?t+"":t,Ot);const jh="0.3.1";class Mt extends Error{}class qh extends Mt{constructor(n){super(`Invalid DateTime: ${n.toMessage()}`)}}class zh extends Mt{constructor(n){super(`Invalid Interval: ${n.toMessage()}`)}}class Wh extends Mt{constructor(n){super(`Invalid Duration: ${n.toMessage()}`)}}class yn extends Mt{}class jl extends Mt{constructor(n){super(`Invalid unit ${n}`)}}class Ie extends Mt{}class ct extends Mt{constructor(){super("Zone is an abstract class")}}const T="numeric",qe="short",De="long",ro={year:T,month:T,day:T},ql={year:T,month:qe,day:T},Hh={year:T,month:qe,day:T,weekday:qe},zl={year:T,month:De,day:T},Wl={year:T,month:De,day:T,weekday:De},Hl={hour:T,minute:T},Gl={hour:T,minute:T,second:T},Yl={hour:T,minute:T,second:T,timeZoneName:qe},Jl={hour:T,minute:T,second:T,timeZoneName:De},Kl={hour:T,minute:T,hourCycle:"h23"},Zl={hour:T,minute:T,second:T,hourCycle:"h23"},Xl={hour:T,minute:T,second:T,hourCycle:"h23",timeZoneName:qe},Ql={hour:T,minute:T,second:T,hourCycle:"h23",timeZoneName:De},vl={year:T,month:T,day:T,hour:T,minute:T},ea={year:T,month:T,day:T,hour:T,minute:T,second:T},ta={year:T,month:qe,day:T,hour:T,minute:T},na={year:T,month:qe,day:T,hour:T,minute:T,second:T},Gh={year:T,month:qe,day:T,weekday:qe,hour:T,minute:T},ra={year:T,month:De,day:T,hour:T,minute:T,timeZoneName:qe},oa={year:T,month:De,day:T,hour:T,minute:T,second:T,timeZoneName:qe},ia={year:T,month:De,day:T,weekday:De,hour:T,minute:T,timeZoneName:De},sa={year:T,month:De,day:T,weekday:De,hour:T,minute:T,second:T,timeZoneName:De};function H(e){return typeof e>"u"}function Ft(e){return typeof e=="number"}function Kn(e){return typeof e=="number"&&e%1===0}function Yh(e){return typeof e=="string"}function Jh(e){return Object.prototype.toString.call(e)==="[object Date]"}function la(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Kh(e){return Array.isArray(e)?e:[e]}function aa(e,n,r){if(e.length!==0)return e.reduce((i,s)=>{const o=[n(s),s];return i&&r(i[0],o[0])===i[0]?i:o},null)[1]}function Zh(e,n){return n.reduce((r,i)=>(r[i]=e[i],r),{})}function Qt(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function rt(e,n,r){return Kn(e)&&e>=n&&e<=r}function Xh(e,n){return e-n*Math.floor(e/n)}function fe(e,n=2){const r=e<0;let i;return r?i="-"+(""+-e).padStart(n,"0"):i=(""+e).padStart(n,"0"),i}function dt(e){if(!(H(e)||e===null||e===""))return parseInt(e,10)}function It(e){if(!(H(e)||e===null||e===""))return parseFloat(e)}function oo(e){if(!(H(e)||e===null||e==="")){const n=parseFloat("0."+e)*1e3;return Math.floor(n)}}function io(e,n,r=!1){const i=10**n;return(r?Math.trunc:Math.round)(e*i)/i}function kn(e){return e%4===0&&(e%100!==0||e%400===0)}function _n(e){return kn(e)?366:365}function Zn(e,n){const r=Xh(n-1,12)+1,i=e+(n-r)/12;return r===2?kn(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function so(e){let n=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(n=new Date(n),n.setUTCFullYear(n.getUTCFullYear()-1900)),+n}function Xn(e){const n=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,i=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return n===4||i===3?53:52}function lo(e){return e>99?e:e>60?1900+e:2e3+e}function ca(e,n,r,i=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(o.timeZone=i);const l={timeZoneName:n,...o},a=new Intl.DateTimeFormat(r,l).formatToParts(s).find(c=>c.type.toLowerCase()==="timezonename");return a?a.value:null}function Qn(e,n){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const i=parseInt(n,10)||0,s=r<0||Object.is(r,-0)?-i:i;return r*60+s}function da(e){const n=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(n))throw new Ie(`Invalid unit value ${e}`);return n}function vn(e,n){const r={};for(const i in e)if(Qt(e,i)){const s=e[i];if(s==null)continue;r[n(i)]=da(s)}return r}function er(e,n){const r=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(n){case"short":return`${s}${fe(r,2)}:${fe(i,2)}`;case"narrow":return`${s}${r}${i>0?`:${i}`:""}`;case"techie":return`${s}${fe(r,2)}${fe(i,2)}`;default:throw new RangeError(`Value format ${n} is out of range for property format`)}}function tr(e){return Zh(e,["hour","minute","second","millisecond"])}const Qh=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z0-9_+-]{1,256}(\/[A-Za-z0-9_+-]{1,256})?)?/,vh=["January","February","March","April","May","June","July","August","September","October","November","December"],ua=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ep=["J","F","M","A","M","J","J","A","S","O","N","D"];function ma(e){switch(e){case"narrow":return[...ep];case"short":return[...ua];case"long":return[...vh];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 fa=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ha=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],tp=["M","T","W","T","F","S","S"];function pa(e){switch(e){case"narrow":return[...tp];case"short":return[...ha];case"long":return[...fa];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const ga=["AM","PM"],np=["Before Christ","Anno Domini"],rp=["BC","AD"],op=["B","A"];function ya(e){switch(e){case"narrow":return[...op];case"short":return[...rp];case"long":return[...np];default:return null}}function ip(e){return ga[e.hour<12?0:1]}function sp(e,n){return pa(n)[e.weekday-1]}function lp(e,n){return ma(n)[e.month-1]}function ap(e,n){return ya(n)[e.year<0?0:1]}function cp(e,n,r="always",i=!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."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const m=e==="days";switch(n){case 1:return m?"tomorrow":`next ${s[e][0]}`;case-1:return m?"yesterday":`last ${s[e][0]}`;case 0:return m?"today":`this ${s[e][0]}`}}const l=Object.is(n,-0)||n<0,a=Math.abs(n),c=a===1,d=s[e],u=i?c?d[1]:d[2]||d[1]:c?s[e][0]:e;return l?`${a} ${u} ago`:`in ${a} ${u}`}function ka(e,n){let r="";for(const i of e)i.literal?r+=i.val:r+=n(i.val);return r}const dp={D:ro,DD:ql,DDD:zl,DDDD:Wl,t:Hl,tt:Gl,ttt:Yl,tttt:Jl,T:Kl,TT:Zl,TTT:Xl,TTTT:Ql,f:vl,ff:ta,fff:ra,ffff:ia,F:ea,FF:na,FFF:oa,FFFF:sa};class Ne{static create(n,r={}){return new Ne(n,r)}static parseFormat(n){let r=null,i="",s=!1;const o=[];for(let l=0;l<n.length;l++){const a=n.charAt(l);a==="'"?(i.length>0&&o.push({literal:s,val:i}),r=null,i="",s=!s):s||a===r?i+=a:(i.length>0&&o.push({literal:!1,val:i}),i=a,r=a)}return i.length>0&&o.push({literal:s,val:i}),o}static macroTokenToFormatOpts(n){return dp[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()}formatDateTime(n,r={}){return this.loc.dtFormatter(n,{...this.opts,...r}).format()}formatDateTimeParts(n,r={}){return this.loc.dtFormatter(n,{...this.opts,...r}).formatToParts()}resolvedOptions(n,r={}){return this.loc.dtFormatter(n,{...this.opts,...r}).resolvedOptions()}num(n,r=0){if(this.opts.forceSimple)return fe(n,r);const i={...this.opts};return r>0&&(i.padTo=r),this.loc.numberFormatter(i).format(n)}formatDateTimeFromString(n,r){const i=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(h,g)=>this.loc.extract(n,h,g),l=h=>n.isOffsetFixed&&n.offset===0&&h.allowZ?"Z":n.isValid?n.zone.formatOffset(n.ts,h.format):"",a=()=>i?ip(n):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(h,g)=>i?lp(n,h):o(g?{month:h}:{month:h,day:"numeric"},"month"),d=(h,g)=>i?sp(n,h):o(g?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),u=h=>{const g=Ne.macroTokenToFormatOpts(h);return g?this.formatWithSystemDefault(n,g):h},m=h=>i?ap(n,h):o({era:h},"era"),f=h=>{switch(h){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 l({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return l({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return l({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 a();case"d":return s?o({day:"numeric"},"day"):this.num(n.day);case"dd":return s?o({day:"2-digit"},"day"):this.num(n.day,2);case"c":return this.num(n.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(n.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return s?o({month:"numeric",day:"numeric"},"month"):this.num(n.month);case"LL":return s?o({month:"2-digit",day:"numeric"},"month"):this.num(n.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return s?o({month:"numeric"},"month"):this.num(n.month);case"MM":return s?o({month:"2-digit"},"month"):this.num(n.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return s?o({year:"numeric"},"year"):this.num(n.year);case"yy":return s?o({year:"2-digit"},"year"):this.num(n.year.toString().slice(-2),2);case"yyyy":return s?o({year:"numeric"},"year"):this.num(n.year,4);case"yyyyyy":return s?o({year:"numeric"},"year"):this.num(n.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("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"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 u(h)}};return ka(Ne.parseFormat(r),f)}formatDurationFromString(n,r){const i=c=>{switch(c[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=c=>d=>{const u=i(d);return u?this.num(c.get(u),d.length):d},o=Ne.parseFormat(r),l=o.reduce((c,{literal:d,val:u})=>d?c:c.concat(u),[]),a=n.shiftTo(...l.map(i).filter(c=>c));return ka(o,s(a))}}class ze{constructor(n,r){this.reason=n,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class wn{get type(){throw new ct}get name(){throw new ct}get isUniversal(){throw new ct}offsetName(n,r){throw new ct}formatOffset(n,r){throw new ct}offset(n){throw new ct}equals(n){throw new ct}get isValid(){throw new ct}}let ao=null;class co extends wn{static get instance(){return ao===null&&(ao=new co),ao}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(n,{format:r,locale:i}){return ca(n,r,i)}formatOffset(n,r){return er(this.offset(n),r)}offset(n){return-new Date(n).getTimezoneOffset()}equals(n){return n.type==="system"}get isValid(){return!0}}let nr={};function up(e){return nr[e]||(nr[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),nr[e]}const mp={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function fp(e,n){const r=e.format(n).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,l,a,c,d,u]=i;return[l,s,o,a,c,d,u]}function hp(e,n){const r=e.formatToParts(n),i=[];for(let s=0;s<r.length;s++){const{type:o,value:l}=r[s],a=mp[o];o==="era"?i[a]=l:H(a)||(i[a]=parseInt(l,10))}return i}let rr={};class ot extends wn{static create(n){return rr[n]||(rr[n]=new ot(n)),rr[n]}static resetCache(){rr={},nr={}}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=ot.isValidZone(n)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(n,{format:r,locale:i}){return ca(n,r,i,this.name)}formatOffset(n,r){return er(this.offset(n),r)}offset(n){const r=new Date(n);if(isNaN(r))return NaN;const i=up(this.name);let[s,o,l,a,c,d,u]=i.formatToParts?hp(i,r):fp(i,r);a==="BC"&&(s=-Math.abs(s)+1);const f=so({year:s,month:o,day:l,hour:c===24?0:c,minute:d,second:u,millisecond:0});let h=+r;const g=h%1e3;return h-=g>=0?g:1e3+g,(f-h)/(60*1e3)}equals(n){return n.type==="iana"&&n.name===this.name}get isValid(){return this.valid}}let uo=null;class Ce extends wn{static get utcInstance(){return uo===null&&(uo=new Ce(0)),uo}static instance(n){return n===0?Ce.utcInstance:new Ce(n)}static parseSpecifier(n){if(n){const r=n.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new Ce(Qn(r[1],r[2]))}return null}constructor(n){super(),this.fixed=n}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${er(this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(n,r){return er(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 pp extends wn{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 ut(e,n){if(H(e)||e===null)return n;if(e instanceof wn)return e;if(Yh(e)){const r=e.toLowerCase();return r==="local"||r==="system"?n:r==="utc"||r==="gmt"?Ce.utcInstance:Ce.parseSpecifier(r)||ot.create(e)}else return Ft(e)?Ce.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new pp(e)}let _a=()=>Date.now(),wa="system",xa=null,ba=null,Ca=null,Va;class ge{static get now(){return _a}static set now(n){_a=n}static set defaultZone(n){wa=n}static get defaultZone(){return ut(wa,co.instance)}static get defaultLocale(){return xa}static set defaultLocale(n){xa=n}static get defaultNumberingSystem(){return ba}static set defaultNumberingSystem(n){ba=n}static get defaultOutputCalendar(){return Ca}static set defaultOutputCalendar(n){Ca=n}static get throwOnInvalid(){return Va}static set throwOnInvalid(n){Va=n}static resetCaches(){se.resetCache(),ot.resetCache()}}let Na={};function gp(e,n={}){const r=JSON.stringify([e,n]);let i=Na[r];return i||(i=new Intl.ListFormat(e,n),Na[r]=i),i}let mo={};function fo(e,n={}){const r=JSON.stringify([e,n]);let i=mo[r];return i||(i=new Intl.DateTimeFormat(e,n),mo[r]=i),i}let ho={};function yp(e,n={}){const r=JSON.stringify([e,n]);let i=ho[r];return i||(i=new Intl.NumberFormat(e,n),ho[r]=i),i}let po={};function kp(e,n={}){const{base:r,...i}=n,s=JSON.stringify([e,i]);let o=po[s];return o||(o=new Intl.RelativeTimeFormat(e,n),po[s]=o),o}let xn=null;function _p(){return xn||(xn=new Intl.DateTimeFormat().resolvedOptions().locale,xn)}function wp(e){const n=e.indexOf("-u-");if(n===-1)return[e];{let r;const i=e.substring(0,n);try{r=fo(e).resolvedOptions()}catch{r=fo(i).resolvedOptions()}const{numberingSystem:s,calendar:o}=r;return[i,s,o]}}function xp(e,n,r){return(r||n)&&(e+="-u",r&&(e+=`-ca-${r}`),n&&(e+=`-nu-${n}`)),e}function bp(e){const n=[];for(let r=1;r<=12;r++){const i=_.utc(2016,r,1);n.push(e(i))}return n}function Cp(e){const n=[];for(let r=1;r<=7;r++){const i=_.utc(2016,11,13+r);n.push(e(i))}return n}function or(e,n,r,i,s){const o=e.listingMode(r);return o==="error"?null:o==="en"?i(n):s(n)}function Vp(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class Np{constructor(n,r,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:s,floor:o,...l}=i;if(!r||Object.keys(l).length>0){const a={useGrouping:!1,...i};i.padTo>0&&(a.minimumIntegerDigits=i.padTo),this.inf=yp(n,a)}}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):io(n,3);return fe(r,this.padTo)}}}class Ep{constructor(n,r,i){this.opts=i;let s;if(n.zone.isUniversal){const l=-1*(n.offset/60),a=l>=0?`Etc/GMT+${l}`:`Etc/GMT${l}`;n.offset!==0&&ot.create(a).valid?(s=a,this.dt=n):(s="UTC",i.timeZoneName?this.dt=n:this.dt=n.offset===0?n:_.fromMillis(n.ts+n.offset*60*1e3))}else n.zone.type==="system"?this.dt=n:(this.dt=n,s=n.zone.name);const o={...this.opts};s&&(o.timeZone=s),this.dtf=fo(r,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Sp{constructor(n,r,i){this.opts={style:"long",...i},!r&&la()&&(this.rtf=kp(n,i))}format(n,r){return this.rtf?this.rtf.format(n,r):cp(r,n,this.opts.numeric,this.opts.style!=="long")}formatToParts(n,r){return this.rtf?this.rtf.formatToParts(n,r):[]}}class se{static fromOpts(n){return se.create(n.locale,n.numberingSystem,n.outputCalendar,n.defaultToEN)}static create(n,r,i,s=!1){const o=n||ge.defaultLocale,l=o||(s?"en-US":_p()),a=r||ge.defaultNumberingSystem,c=i||ge.defaultOutputCalendar;return new se(l,a,c,o)}static resetCache(){xn=null,mo={},ho={},po={}}static fromObject({locale:n,numberingSystem:r,outputCalendar:i}={}){return se.create(n,r,i)}constructor(n,r,i,s){const[o,l,a]=wp(n);this.locale=o,this.numberingSystem=r||l||null,this.outputCalendar=i||a||null,this.intl=xp(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=Vp(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:se.create(n.locale||this.specifiedLocale,n.numberingSystem||this.numberingSystem,n.outputCalendar||this.outputCalendar,n.defaultToEN||!1)}redefaultToEN(n={}){return this.clone({...n,defaultToEN:!0})}redefaultToSystem(n={}){return this.clone({...n,defaultToEN:!1})}months(n,r=!1,i=!0){return or(this,n,i,ma,()=>{const s=r?{month:n,day:"numeric"}:{month:n},o=r?"format":"standalone";return this.monthsCache[o][n]||(this.monthsCache[o][n]=bp(l=>this.extract(l,s,"month"))),this.monthsCache[o][n]})}weekdays(n,r=!1,i=!0){return or(this,n,i,pa,()=>{const s=r?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},o=r?"format":"standalone";return this.weekdaysCache[o][n]||(this.weekdaysCache[o][n]=Cp(l=>this.extract(l,s,"weekday"))),this.weekdaysCache[o][n]})}meridiems(n=!0){return or(this,void 0,n,()=>ga,()=>{if(!this.meridiemCache){const r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[_.utc(2016,11,13,9),_.utc(2016,11,13,19)].map(i=>this.extract(i,r,"dayperiod"))}return this.meridiemCache})}eras(n,r=!0){return or(this,n,r,ya,()=>{const i={era:n};return this.eraCache[n]||(this.eraCache[n]=[_.utc(-40,1,1),_.utc(2017,1,1)].map(s=>this.extract(s,i,"era"))),this.eraCache[n]})}extract(n,r,i){const s=this.dtFormatter(n,r),o=s.formatToParts(),l=o.find(a=>a.type.toLowerCase()===i);return l?l.value:null}numberFormatter(n={}){return new Np(this.intl,n.forceSimple||this.fastNumbers,n)}dtFormatter(n,r={}){return new Ep(n,this.intl,r)}relFormatter(n={}){return new Sp(this.intl,this.isEnglish(),n)}listFormatter(n={}){return gp(this.intl,n)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(n){return this.locale===n.locale&&this.numberingSystem===n.numberingSystem&&this.outputCalendar===n.outputCalendar}}function vt(...e){const n=e.reduce((r,i)=>r+i.source,"");return RegExp(`^${n}$`)}function At(...e){return n=>e.reduce(([r,i,s],o)=>{const[l,a,c]=o(n,s);return[{...r,...l},i||a,c]},[{},null,1]).slice(0,2)}function en(e,...n){if(e==null)return[null,null];for(const[r,i]of n){const s=r.exec(e);if(s)return i(s)}return[null,null]}function Ea(...e){return(n,r)=>{const i={};let s;for(s=0;s<e.length;s++)i[e[s]]=dt(n[r+s]);return[i,null,r+s]}}const Sa=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,go=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ba=RegExp(`${go.source}${Sa.source}?`),yo=RegExp(`(?:T${Ba.source})?`),Bp=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Tp=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Dp=/(\d{4})-?(\d{3})/,Op=Ea("weekYear","weekNumber","weekDay"),Mp=Ea("year","ordinal"),Fp=/(\d{4})-(\d\d)-(\d\d)/,Ta=RegExp(`${go.source} ?(?:${Sa.source}|(${Qh.source}))?`),Ip=RegExp(`(?: ${Ta.source})?`);function tn(e,n,r){const i=e[n];return H(i)?r:dt(i)}function Da(e,n){return[{year:tn(e,n),month:tn(e,n+1,1),day:tn(e,n+2,1)},null,n+3]}function Lt(e,n){return[{hours:tn(e,n,0),minutes:tn(e,n+1,0),seconds:tn(e,n+2,0),milliseconds:oo(e[n+3])},null,n+4]}function nn(e,n){const r=!e[n]&&!e[n+1],i=Qn(e[n+1],e[n+2]),s=r?null:Ce.instance(i);return[{},s,n+3]}function Oa(e,n){const r=e[n]?ot.create(e[n]):null;return[{},r,n+1]}const Ap=RegExp(`^T?${go.source}$`),Lp=/^-?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 $p(e){const[n,r,i,s,o,l,a,c,d]=e,u=n[0]==="-",m=c&&c[0]==="-",f=(h,g=!1)=>h!==void 0&&(g||h&&u)?-h:h;return[{years:f(It(r)),months:f(It(i)),weeks:f(It(s)),days:f(It(o)),hours:f(It(l)),minutes:f(It(a)),seconds:f(It(c),c==="-0"),milliseconds:f(oo(d),m)}]}const Pp={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 ko(e,n,r,i,s,o,l){const a={year:n.length===2?lo(dt(n)):dt(n),month:ua.indexOf(r)+1,day:dt(i),hour:dt(s),minute:dt(o)};return l&&(a.second=dt(l)),e&&(a.weekday=e.length>3?fa.indexOf(e)+1:ha.indexOf(e)+1),a}const Rp=/^(?:(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 Up(e){const[,n,r,i,s,o,l,a,c,d,u,m]=e,f=ko(n,s,i,r,o,l,a);let h;return c?h=Pp[c]:d?h=0:h=Qn(u,m),[f,new Ce(h)]}function jp(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const qp=/^(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$/,zp=/^(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$/,Wp=/^(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 Ma(e){const[,n,r,i,s,o,l,a]=e;return[ko(n,s,i,r,o,l,a),Ce.utcInstance]}function Hp(e){const[,n,r,i,s,o,l,a]=e;return[ko(n,a,r,i,s,o,l),Ce.utcInstance]}const Gp=vt(Bp,yo),Yp=vt(Tp,yo),Jp=vt(Dp,yo),Kp=vt(Ba),Zp=At(Da,Lt,nn),Xp=At(Op,Lt,nn),Qp=At(Mp,Lt,nn),vp=At(Lt,nn);function eg(e){return en(e,[Gp,Zp],[Yp,Xp],[Jp,Qp],[Kp,vp])}function tg(e){return en(jp(e),[Rp,Up])}function ng(e){return en(e,[qp,Ma],[zp,Ma],[Wp,Hp])}function rg(e){return en(e,[Lp,$p])}const og=At(Lt);function ig(e){return en(e,[Ap,og])}const sg=vt(Fp,Ip),lg=vt(Ta),ag=At(Da,Lt,nn,Oa),cg=At(Lt,nn,Oa);function dg(e){return en(e,[sg,ag],[lg,cg])}const ug="Invalid Duration",Fa={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}},mg={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},...Fa},Ae=146097/400,rn=146097/4800,fg={years:{quarters:4,months:12,weeks:Ae/7,days:Ae,hours:Ae*24,minutes:Ae*24*60,seconds:Ae*24*60*60,milliseconds:Ae*24*60*60*1e3},quarters:{months:3,weeks:Ae/28,days:Ae/4,hours:Ae*24/4,minutes:Ae*24*60/4,seconds:Ae*24*60*60/4,milliseconds:Ae*24*60*60*1e3/4},months:{weeks:rn/7,days:rn,hours:rn*24,minutes:rn*24*60,seconds:rn*24*60*60,milliseconds:rn*24*60*60*1e3},...Fa},$t=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],hg=$t.slice(0).reverse();function Pt(e,n,r=!1){const i={values:r?n.values:{...e.values,...n.values||{}},loc:e.loc.clone(n.loc),conversionAccuracy:n.conversionAccuracy||e.conversionAccuracy};return new Y(i)}function pg(e){return e<0?Math.floor(e):Math.ceil(e)}function Ia(e,n,r,i,s){const o=e[s][r],l=n[r]/o,a=Math.sign(l)===Math.sign(i[s]),c=!a&&i[s]!==0&&Math.abs(l)<=1?pg(l):Math.trunc(l);i[s]+=c,n[r]-=c*o}function gg(e,n){hg.reduce((r,i)=>H(n[i])?r:(r&&Ia(e,n,r,n,i),i),null)}class Y{constructor(n){const r=n.conversionAccuracy==="longterm"||!1;this.values=n.values,this.loc=n.loc||se.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=n.invalid||null,this.matrix=r?fg:mg,this.isLuxonDuration=!0}static fromMillis(n,r){return Y.fromObject({milliseconds:n},r)}static fromObject(n,r={}){if(n==null||typeof n!="object")throw new Ie(`Duration.fromObject: argument expected to be an object, got ${n===null?"null":typeof n}`);return new Y({values:vn(n,Y.normalizeUnit),loc:se.fromObject(r),conversionAccuracy:r.conversionAccuracy})}static fromDurationLike(n){if(Ft(n))return Y.fromMillis(n);if(Y.isDuration(n))return n;if(typeof n=="object")return Y.fromObject(n);throw new Ie(`Unknown duration argument ${n} of type ${typeof n}`)}static fromISO(n,r){const[i]=rg(n);return i?Y.fromObject(i,r):Y.invalid("unparsable",`the input "${n}" can't be parsed as ISO 8601`)}static fromISOTime(n,r){const[i]=ig(n);return i?Y.fromObject(i,r):Y.invalid("unparsable",`the input "${n}" can't be parsed as ISO 8601`)}static invalid(n,r=null){if(!n)throw new Ie("need to specify a reason the Duration is invalid");const i=n instanceof ze?n:new ze(n,r);if(ge.throwOnInvalid)throw new Wh(i);return new Y({invalid:i})}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 jl(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 i={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?Ne.create(this.loc,i).formatDurationFromString(this,n):ug}toHuman(n={}){const r=$t.map(i=>{const s=this.values[i];return H(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...n,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);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+=io(this.seconds+this.milliseconds/1e3,3)+"S"),n==="P"&&(n+="T0S"),n}toISOTime(n={}){if(!this.isValid)return null;const r=this.toMillis();if(r<0||r>=864e5)return null;n={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...n};const i=this.shiftTo("hours","minutes","seconds","milliseconds");let s=n.format==="basic"?"hhmm":"hh:mm";(!n.suppressSeconds||i.seconds!==0||i.milliseconds!==0)&&(s+=n.format==="basic"?"ss":":ss",(!n.suppressMilliseconds||i.milliseconds!==0)&&(s+=".SSS"));let o=i.toFormat(s);return n.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(n){if(!this.isValid)return this;const r=Y.fromDurationLike(n),i={};for(const s of $t)(Qt(r.values,s)||Qt(this.values,s))&&(i[s]=r.get(s)+this.get(s));return Pt(this,{values:i},!0)}minus(n){if(!this.isValid)return this;const r=Y.fromDurationLike(n);return this.plus(r.negate())}mapUnits(n){if(!this.isValid)return this;const r={};for(const i of Object.keys(this.values))r[i]=da(n(this.values[i],i));return Pt(this,{values:r},!0)}get(n){return this[Y.normalizeUnit(n)]}set(n){if(!this.isValid)return this;const r={...this.values,...vn(n,Y.normalizeUnit)};return Pt(this,{values:r})}reconfigure({locale:n,numberingSystem:r,conversionAccuracy:i}={}){const s=this.loc.clone({locale:n,numberingSystem:r}),o={loc:s};return i&&(o.conversionAccuracy=i),Pt(this,o)}as(n){return this.isValid?this.shiftTo(n).get(n):NaN}normalize(){if(!this.isValid)return this;const n=this.toObject();return gg(this.matrix,n),Pt(this,{values:n},!0)}shiftTo(...n){if(!this.isValid)return this;if(n.length===0)return this;n=n.map(l=>Y.normalizeUnit(l));const r={},i={},s=this.toObject();let o;for(const l of $t)if(n.indexOf(l)>=0){o=l;let a=0;for(const d in i)a+=this.matrix[d][l]*i[d],i[d]=0;Ft(s[l])&&(a+=s[l]);const c=Math.trunc(a);r[l]=c,i[l]=(a*1e3-c*1e3)/1e3;for(const d in s)$t.indexOf(d)>$t.indexOf(l)&&Ia(this.matrix,s,d,r,l)}else Ft(s[l])&&(i[l]=s[l]);for(const l in i)i[l]!==0&&(r[o]+=l===o?i[l]:i[l]/this.matrix[o][l]);return Pt(this,{values:r},!0).normalize()}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 Pt(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(i,s){return i===void 0||i===0?s===void 0||s===0:i===s}for(const i of $t)if(!r(this.values[i],n.values[i]))return!1;return!0}}const bn="Invalid Interval";function yg(e,n){return!e||!e.isValid?ce.invalid("missing or invalid start"):!n||!n.isValid?ce.invalid("missing or invalid end"):n<e?ce.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${n.toISO()}`):null}class ce{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 Ie("need to specify a reason the Interval is invalid");const i=n instanceof ze?n:new ze(n,r);if(ge.throwOnInvalid)throw new zh(i);return new ce({invalid:i})}static fromDateTimes(n,r){const i=Nn(n),s=Nn(r),o=yg(i,s);return o??new ce({start:i,end:s})}static after(n,r){const i=Y.fromDurationLike(r),s=Nn(n);return ce.fromDateTimes(s,s.plus(i))}static before(n,r){const i=Y.fromDurationLike(r),s=Nn(n);return ce.fromDateTimes(s.minus(i),s)}static fromISO(n,r){const[i,s]=(n||"").split("/",2);if(i&&s){let o,l;try{o=_.fromISO(i,r),l=o.isValid}catch{l=!1}let a,c;try{a=_.fromISO(s,r),c=a.isValid}catch{c=!1}if(l&&c)return ce.fromDateTimes(o,a);if(l){const d=Y.fromISO(s,r);if(d.isValid)return ce.after(o,d)}else if(c){const d=Y.fromISO(i,r);if(d.isValid)return ce.before(a,d)}}return ce.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 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"){if(!this.isValid)return NaN;const r=this.start.startOf(n),i=this.end.startOf(n);return Math.floor(i.diff(r,n).get(n))+1}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?ce.fromDateTimes(n||this.s,r||this.e):this}splitAt(...n){if(!this.isValid)return[];const r=n.map(Nn).filter(l=>this.contains(l)).sort(),i=[];let{s}=this,o=0;for(;s<this.e;){const l=r[o]||this.e,a=+l>+this.e?this.e:l;i.push(ce.fromDateTimes(s,a)),s=a,o+=1}return i}splitBy(n){const r=Y.fromDurationLike(n);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:i}=this,s=1,o;const l=[];for(;i<this.e;){const a=this.start.plus(r.mapUnits(c=>c*s));o=+a>+this.e?this.e:a,l.push(ce.fromDateTimes(i,o)),i=o,s+=1}return l}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,i=this.e<n.e?this.e:n.e;return r>=i?null:ce.fromDateTimes(r,i)}union(n){if(!this.isValid)return this;const r=this.s<n.s?this.s:n.s,i=this.e>n.e?this.e:n.e;return ce.fromDateTimes(r,i)}static merge(n){const[r,i]=n.sort((s,o)=>s.s-o.s).reduce(([s,o],l)=>o?o.overlaps(l)||o.abutsStart(l)?[s,o.union(l)]:[s.concat([o]),l]:[s,l],[[],null]);return i&&r.push(i),r}static xor(n){let r=null,i=0;const s=[],o=n.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),l=Array.prototype.concat(...o),a=l.sort((c,d)=>c.time-d.time);for(const c of a)i+=c.type==="s"?1:-1,i===1?r=c.time:(r&&+r!=+c.time&&s.push(ce.fromDateTimes(r,c.time)),r=null);return ce.merge(s)}difference(...n){return ce.xor([this].concat(n)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:bn}toISO(n){return this.isValid?`${this.s.toISO(n)}/${this.e.toISO(n)}`:bn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:bn}toISOTime(n){return this.isValid?`${this.s.toISOTime(n)}/${this.e.toISOTime(n)}`:bn}toFormat(n,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(n)}${r}${this.e.toFormat(n)}`:bn}toDuration(n,r){return this.isValid?this.e.diff(this.s,n,r):Y.invalid(this.invalidReason)}mapEndpoints(n){return ce.fromDateTimes(n(this.s),n(this.e))}}let ir=class{static hasDST(n=ge.defaultZone){const r=_.now().setZone(n).set({month:12});return!n.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(n){return ot.isValidZone(n)}static normalizeZone(n){return ut(n,ge.defaultZone)}static months(n="long",{locale:r=null,numberingSystem:i=null,locObj:s=null,outputCalendar:o="gregory"}={}){return(s||se.create(r,i,o)).months(n)}static monthsFormat(n="long",{locale:r=null,numberingSystem:i=null,locObj:s=null,outputCalendar:o="gregory"}={}){return(s||se.create(r,i,o)).months(n,!0)}static weekdays(n="long",{locale:r=null,numberingSystem:i=null,locObj:s=null}={}){return(s||se.create(r,i,null)).weekdays(n)}static weekdaysFormat(n="long",{locale:r=null,numberingSystem:i=null,locObj:s=null}={}){return(s||se.create(r,i,null)).weekdays(n,!0)}static meridiems({locale:n=null}={}){return se.create(n).meridiems()}static eras(n="short",{locale:r=null}={}){return se.create(r,null,"gregory").eras(n)}static features(){return{relative:la()}}};function Aa(e,n){const r=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=r(n)-r(e);return Math.floor(Y.fromMillis(i).as("days"))}function kg(e,n,r){const i=[["years",(a,c)=>c.year-a.year],["quarters",(a,c)=>c.quarter-a.quarter],["months",(a,c)=>c.month-a.month+(c.year-a.year)*12],["weeks",(a,c)=>{const d=Aa(a,c);return(d-d%7)/7}],["days",Aa]],s={};let o,l;for(const[a,c]of i)if(r.indexOf(a)>=0){o=a;let d=c(e,n);l=e.plus({[a]:d}),l>n?(e=e.plus({[a]:d-1}),d-=1):e=l,s[a]=d}return[e,s,l,o]}function _g(e,n,r,i){let[s,o,l,a]=kg(e,n,r);const c=n-s,d=r.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);d.length===0&&(l<n&&(l=s.plus({[a]:1})),l!==s&&(o[a]=(o[a]||0)+c/(l-s)));const u=Y.fromObject(o,i);return d.length>0?Y.fromMillis(c,i).shiftTo(...d).plus(u):u}const _o={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},La={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]},wg=_o.hanidec.replace(/[\[|\]]/g,"").split("");function xg(e){let n=parseInt(e,10);if(isNaN(n)){n="";for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);if(e[r].search(_o.hanidec)!==-1)n+=wg.indexOf(e[r]);else for(const s in La){const[o,l]=La[s];i>=o&&i<=l&&(n+=i-o)}}return parseInt(n,10)}else return n}function We({numberingSystem:e},n=""){return new RegExp(`${_o[e||"latn"]}${n}`)}const bg="missing Intl.DateTimeFormat.formatToParts support";function Z(e,n=r=>r){return{regex:e,deser:([r])=>n(xg(r))}}const $a="( | )",Pa=new RegExp($a,"g");function Cg(e){return e.replace(/\./g,"\\.?").replace(Pa,$a)}function Ra(e){return e.replace(/\./g,"").replace(Pa," ").toLowerCase()}function He(e,n){return e===null?null:{regex:RegExp(e.map(Cg).join("|")),deser:([r])=>e.findIndex(i=>Ra(r)===Ra(i))+n}}function Ua(e,n){return{regex:e,deser:([,r,i])=>Qn(r,i),groups:n}}function wo(e){return{regex:e,deser:([n])=>n}}function Vg(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ng(e,n){const r=We(n),i=We(n,"{2}"),s=We(n,"{3}"),o=We(n,"{4}"),l=We(n,"{6}"),a=We(n,"{1,2}"),c=We(n,"{1,3}"),d=We(n,"{1,6}"),u=We(n,"{1,9}"),m=We(n,"{2,4}"),f=We(n,"{4,6}"),h=y=>({regex:RegExp(Vg(y.val)),deser:([k])=>k,literal:!0}),p=(y=>{if(e.literal)return h(y);switch(y.val){case"G":return He(n.eras("short",!1),0);case"GG":return He(n.eras("long",!1),0);case"y":return Z(d);case"yy":return Z(m,lo);case"yyyy":return Z(o);case"yyyyy":return Z(f);case"yyyyyy":return Z(l);case"M":return Z(a);case"MM":return Z(i);case"MMM":return He(n.months("short",!0,!1),1);case"MMMM":return He(n.months("long",!0,!1),1);case"L":return Z(a);case"LL":return Z(i);case"LLL":return He(n.months("short",!1,!1),1);case"LLLL":return He(n.months("long",!1,!1),1);case"d":return Z(a);case"dd":return Z(i);case"o":return Z(c);case"ooo":return Z(s);case"HH":return Z(i);case"H":return Z(a);case"hh":return Z(i);case"h":return Z(a);case"mm":return Z(i);case"m":return Z(a);case"q":return Z(a);case"qq":return Z(i);case"s":return Z(a);case"ss":return Z(i);case"S":return Z(c);case"SSS":return Z(s);case"u":return wo(u);case"uu":return wo(a);case"uuu":return Z(r);case"a":return He(n.meridiems(),0);case"kkkk":return Z(o);case"kk":return Z(m,lo);case"W":return Z(a);case"WW":return Z(i);case"E":case"c":return Z(r);case"EEE":return He(n.weekdays("short",!1,!1),1);case"EEEE":return He(n.weekdays("long",!1,!1),1);case"ccc":return He(n.weekdays("short",!0,!1),1);case"cccc":return He(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Ua(new RegExp(`([+-]${a.source})(?::(${i.source}))?`),2);case"ZZZ":return Ua(new RegExp(`([+-]${a.source})(${i.source})?`),2);case"z":return wo(/[a-z_+-/]{1,256}?/i);default:return h(y)}})(e)||{invalidReason:bg};return p.token=e,p}const Eg={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 Sg(e,n,r){const{type:i,value:s}=e;if(i==="literal")return{literal:!0,val:s};const o=r[i];let l=Eg[i];if(typeof l=="object"&&(l=l[o]),l)return{literal:!1,val:l}}function Bg(e){return[`^${e.map(r=>r.regex).reduce((r,i)=>`${r}(${i.source})`,"")}$`,e]}function Tg(e,n,r){const i=e.match(n);if(i){const s={};let o=1;for(const l in r)if(Qt(r,l)){const a=r[l],c=a.groups?a.groups+1:1;!a.literal&&a.token&&(s[a.token.val[0]]=a.deser(i.slice(o,o+c))),o+=c}return[i,s]}else return[i,{}]}function Dg(e){const n=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,i;return H(e.z)||(r=ot.create(e.z)),H(e.Z)||(r||(r=new Ce(e.Z)),i=e.Z),H(e.q)||(e.M=(e.q-1)*3+1),H(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),H(e.u)||(e.S=oo(e.u)),[Object.keys(e).reduce((o,l)=>{const a=n(l);return a&&(o[a]=e[l]),o},{}),r,i]}let xo=null;function Og(){return xo||(xo=_.fromMillis(1555555555555)),xo}function Mg(e,n){if(e.literal)return e;const r=Ne.macroTokenToFormatOpts(e.val);if(!r)return e;const o=Ne.create(n,r).formatDateTimeParts(Og()).map(l=>Sg(l,n,r));return o.includes(void 0)?e:o}function Fg(e,n){return Array.prototype.concat(...e.map(r=>Mg(r,n)))}function ja(e,n,r){const i=Fg(Ne.parseFormat(r),e),s=i.map(l=>Ng(l,e)),o=s.find(l=>l.invalidReason);if(o)return{input:n,tokens:i,invalidReason:o.invalidReason};{const[l,a]=Bg(s),c=RegExp(l,"i"),[d,u]=Tg(n,c,a),[m,f,h]=u?Dg(u):[null,null,void 0];if(Qt(u,"a")&&Qt(u,"H"))throw new yn("Can't include meridiem when specifying 24-hour format");return{input:n,tokens:i,regex:c,rawMatches:d,matches:u,result:m,zone:f,specificOffset:h}}}function Ig(e,n,r){const{result:i,zone:s,specificOffset:o,invalidReason:l}=ja(e,n,r);return[i,s,o,l]}const qa=[0,31,59,90,120,151,181,212,243,273,304,334],za=[0,31,60,91,121,152,182,213,244,274,305,335];function Le(e,n){return new ze("unit out of range",`you specified ${n} (of type ${typeof n}) as a ${e}, which is invalid`)}function Wa(e,n,r){const i=new Date(Date.UTC(e,n-1,r));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return s===0?7:s}function Ha(e,n,r){return r+(kn(e)?za:qa)[n-1]}function Ga(e,n){const r=kn(e)?za:qa,i=r.findIndex(o=>o<n),s=n-r[i];return{month:i+1,day:s}}function bo(e){const{year:n,month:r,day:i}=e,s=Ha(n,r,i),o=Wa(n,r,i);let l=Math.floor((s-o+10)/7),a;return l<1?(a=n-1,l=Xn(a)):l>Xn(n)?(a=n+1,l=1):a=n,{weekYear:a,weekNumber:l,weekday:o,...tr(e)}}function Ya(e){const{weekYear:n,weekNumber:r,weekday:i}=e,s=Wa(n,1,4),o=_n(n);let l=r*7+i-s-3,a;l<1?(a=n-1,l+=_n(a)):l>o?(a=n+1,l-=_n(n)):a=n;const{month:c,day:d}=Ga(a,l);return{year:a,month:c,day:d,...tr(e)}}function Co(e){const{year:n,month:r,day:i}=e,s=Ha(n,r,i);return{year:n,ordinal:s,...tr(e)}}function Ja(e){const{year:n,ordinal:r}=e,{month:i,day:s}=Ga(n,r);return{year:n,month:i,day:s,...tr(e)}}function Ag(e){const n=Kn(e.weekYear),r=rt(e.weekNumber,1,Xn(e.weekYear)),i=rt(e.weekday,1,7);return n?r?i?!1:Le("weekday",e.weekday):Le("week",e.week):Le("weekYear",e.weekYear)}function Lg(e){const n=Kn(e.year),r=rt(e.ordinal,1,_n(e.year));return n?r?!1:Le("ordinal",e.ordinal):Le("year",e.year)}function Ka(e){const n=Kn(e.year),r=rt(e.month,1,12),i=rt(e.day,1,Zn(e.year,e.month));return n?r?i?!1:Le("day",e.day):Le("month",e.month):Le("year",e.year)}function Za(e){const{hour:n,minute:r,second:i,millisecond:s}=e,o=rt(n,0,23)||n===24&&r===0&&i===0&&s===0,l=rt(r,0,59),a=rt(i,0,59),c=rt(s,0,999);return o?l?a?c?!1:Le("millisecond",s):Le("second",i):Le("minute",r):Le("hour",n)}const Vo="Invalid DateTime",$g=864e13;function sr(e){return new ze("unsupported zone",`the zone "${e.name}" is not supported`)}function No(e){return e.weekData===null&&(e.weekData=bo(e.c)),e.weekData}function Cn(e,n){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new _({...r,...n,old:r})}function Xa(e,n,r){let i=e-n*60*1e3;const s=r.offset(i);if(n===s)return[i,n];i-=(s-n)*60*1e3;const o=r.offset(i);return s===o?[i,s]:[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function Qa(e,n){e+=n*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function lr(e,n,r){return Xa(so(e),n,r)}function va(e,n){const r=e.o,i=e.c.year+Math.trunc(n.years),s=e.c.month+Math.trunc(n.months)+Math.trunc(n.quarters)*3,o={...e.c,year:i,month:s,day:Math.min(e.c.day,Zn(i,s))+Math.trunc(n.days)+Math.trunc(n.weeks)*7},l=Y.fromObject({years:n.years-Math.trunc(n.years),quarters:n.quarters-Math.trunc(n.quarters),months:n.months-Math.trunc(n.months),weeks:n.weeks-Math.trunc(n.weeks),days:n.days-Math.trunc(n.days),hours:n.hours,minutes:n.minutes,seconds:n.seconds,milliseconds:n.milliseconds}).as("milliseconds"),a=so(o);let[c,d]=Xa(a,r,e.zone);return l!==0&&(c+=l,d=e.zone.offset(c)),{ts:c,o:d}}function Vn(e,n,r,i,s,o){const{setZone:l,zone:a}=r;if(e&&Object.keys(e).length!==0){const c=n||a,d=_.fromObject(e,{...r,zone:c,specificOffset:o});return l?d:d.setZone(a)}else return _.invalid(new ze("unparsable",`the input "${s}" can't be parsed as ${i}`))}function ar(e,n,r=!0){return e.isValid?Ne.create(se.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,n):null}function Eo(e,n){const r=e.c.year>9999||e.c.year<0;let i="";return r&&e.c.year>=0&&(i+="+"),i+=fe(e.c.year,r?6:4),n?(i+="-",i+=fe(e.c.month),i+="-",i+=fe(e.c.day)):(i+=fe(e.c.month),i+=fe(e.c.day)),i}function ec(e,n,r,i,s){let o=fe(e.c.hour);return n?(o+=":",o+=fe(e.c.minute),(e.c.second!==0||!r)&&(o+=":")):o+=fe(e.c.minute),(e.c.second!==0||!r)&&(o+=fe(e.c.second),(e.c.millisecond!==0||!i)&&(o+=".",o+=fe(e.c.millisecond,3))),s&&(e.isOffsetFixed&&e.offset===0?o+="Z":e.o<0?(o+="-",o+=fe(Math.trunc(-e.o/60)),o+=":",o+=fe(Math.trunc(-e.o%60))):(o+="+",o+=fe(Math.trunc(e.o/60)),o+=":",o+=fe(Math.trunc(e.o%60)))),o}const tc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Pg={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Rg={ordinal:1,hour:0,minute:0,second:0,millisecond:0},nc=["year","month","day","hour","minute","second","millisecond"],Ug=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],jg=["year","ordinal","hour","minute","second","millisecond"];function rc(e){const n={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!n)throw new jl(e);return n}function oc(e,n){const r=ut(n.zone,ge.defaultZone),i=se.fromObject(n),s=ge.now();let o,l;if(H(e.year))o=s;else{for(const d of nc)H(e[d])&&(e[d]=tc[d]);const a=Ka(e)||Za(e);if(a)return _.invalid(a);const c=r.offset(s);[o,l]=lr(e,c,r)}return new _({ts:o,zone:r,loc:i,o:l})}function ic(e,n,r){const i=H(r.round)?!0:r.round,s=(l,a)=>(l=io(l,i||r.calendary?0:2,!0),n.loc.clone(r).relFormatter(r).format(l,a)),o=l=>r.calendary?n.hasSame(e,l)?0:n.startOf(l).diff(e.startOf(l),l).get(l):n.diff(e,l).get(l);if(r.unit)return s(o(r.unit),r.unit);for(cons