@nyaruka/temba-components 0.28.3 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [v0.29.0](https://github.com/nyaruka/temba-components/compare/v0.28.3...v0.29.0)
8
+
9
+ > 13 July 2022
10
+
11
+ - Expose postUrl on temba-store for use in pages [`#182`](https://github.com/nyaruka/temba-components/pull/182)
12
+ - Add postUrl test [`4402616`](https://github.com/nyaruka/temba-components/commit/44026160722d053b69284aeefb7aaf9eefe63bcb)
13
+
7
14
  #### [v0.28.3](https://github.com/nyaruka/temba-components/compare/v0.28.2...v0.28.3)
8
15
 
9
16
  > 11 July 2022
@@ -286,7 +286,7 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
286
286
  <slot></slot>
287
287
  </div>
288
288
  </temba-field>
289
- `}}t([it({type:Boolean})],Ht.prototype,"textarea",void 0),t([it({type:Boolean})],Ht.prototype,"datepicker",void 0),t([it({type:Boolean})],Ht.prototype,"datetimepicker",void 0),t([it({type:String})],Ht.prototype,"placeholder",void 0),t([it({type:String})],Ht.prototype,"value",void 0),t([it({type:String})],Ht.prototype,"name",void 0),t([it({type:Boolean})],Ht.prototype,"password",void 0),t([it({type:Number})],Ht.prototype,"maxlength",void 0),t([it({type:Object})],Ht.prototype,"inputElement",void 0),t([it({type:Object})],Ht.prototype,"dateElement",void 0),t([it({type:Boolean})],Ht.prototype,"clearable",void 0),t([it({type:Boolean})],Ht.prototype,"gsm",void 0),t([it({type:String})],Ht.prototype,"counter",void 0),t([it({type:Boolean})],Ht.prototype,"loading",void 0),t([it({type:Boolean})],Ht.prototype,"submitOnEnter",void 0),t([it()],Ht.prototype,"onBlur",void 0),t([it({type:Boolean})],Ht.prototype,"disabled",void 0),t([it({type:Boolean})],Ht.prototype,"autogrow",void 0);const Ut=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,Vt=(t={})=>{const e=(t=>{for(const e of document.cookie.split(";")){const i=e.indexOf("=");let n=e.substr(0,i),o=e.substr(i+1);if(n=n.trim(),o=o.trim(),n===t)return o}return null})("csrftoken"),i=e?{"X-CSRFToken":e}:{};return i["X-Requested-With"]="XMLHttpRequest",Object.keys(t).forEach((e=>{i[e]=t[e]})),i},Wt=(t,e=null,i={})=>new Promise(((n,o)=>{const r={method:"GET",headers:Vt(i)};e&&(r.signal=e.signal),fetch(t,r).then((t=>{t.text().then((i=>{let o={};try{o=JSON.parse(i)}catch(t){}n({controller:e,body:i,json:o,headers:t.headers,status:t.status})}))})).catch((t=>{o(t)}))})),Gt=t=>{const e=[];Object.keys(t).forEach((i=>{t[i]&&e.push(i)}));let i=e.join(" ");return i.trim().length>0&&(i=" "+i),i},Yt=(t,e=null)=>new Promise(((i,n)=>{Wt(t,e).then((t=>{i({results:t.json.results,next:t.json.next})})).catch((t=>n(t)))})),Kt=async t=>{if(!t)return new Promise((t=>t([])));let e=[],i=t;for(;i;){const t=await Yt(i);t.results&&(e=e.concat(t.results)),i=t.next}return e},Jt=t=>new Promise(((e,i)=>{Wt(t).then((t=>{e({assets:t.json.results,next:t.json.next})})).catch((t=>i(t)))})),Xt=async t=>{if(!t)return new Promise((t=>t([])));let e=[],i=t;for(;i;){const t=await Jt(i);e=e.concat(t.assets),i=t.next}return e},Qt=(t,e,i={},n=null)=>{const o=Vt(i);n&&(o["Content-Type"]=n);const r={method:"POST",headers:o,body:e};return new Promise(((e,i)=>{fetch(t,r).then((async t=>{t.text().then((i=>{let n={};try{n=JSON.parse(i)}catch(t){}e({body:i,json:n,headers:t.headers,status:t.status})}))})).catch((t=>{i(t)}))}))},te=(t,e)=>Qt(t,JSON.stringify(e),!1,"application/json"),ee=t=>{const e=t.parentNode||t.host;if(e){const t=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY,i=t&&!(t.includes("hidden")||t.includes("visible"));return e?i&&e.scrollHeight>=e.clientHeight?e:ee(e):null}return null};const ie=new class{getCurrentDate(){return new Date}},ne=(t,e={suffix:""})=>{const{compareDate:i,hideRecentText:n,suffix:o}=e,r=i||ie.getCurrentDate(),s=Math.floor((r.getTime()-t.getTime())/1e3);if(s<60)return i?s+"s"+o:!n&&o?o:"just now";if(s<3600)return Math.round(s/60)+"m"+o;if(s<=86400)return Math.round(s/3600)+"h"+o;if(s<=2592e3)return Math.round(s/86400)+"d"+o;if(s<15552e3)return Math.round(s/2592e3)+"mth"+o;return t.getDate()+" "+t.toDateString().match(/ [a-zA-Z]*/)[0].replace(" ","")+(t.getFullYear()==r.getFullYear()?"":" "+t.getFullYear())},oe=(t,e)=>{let i=!0;return function(...n){i&&(i=!1,t.apply(this,n),setTimeout((()=>{i=!0}),e))}},re=(t,e="and")=>1===t.length?t[0]:2===t.length?"html"===t[0].type?O`${t[0]} ${e} ${t[1]}`:t.join(" "+e+" "):"html"===t[0].type?t.map(((i,n)=>n<t.length-1?O`${i}, `:O`${e} ${i}`)):t.join(", ")+e+t[t.length-1],se=(t,e,i="and")=>re(t.map(e),i),ae=t=>"true"===((t=>{let e=null;if(document.cookie&&""!=document.cookie){const i=document.cookie.split(";");for(let n=0;n<i.length;n++){const o=i[n].trim();if(o.substring(0,t.length+1)==t+"="){e=decodeURIComponent(o.substring(t.length+1));break}}}return e})(t)||"");var le,ce,he,ue,de;!function(t){t.MENU_COLLAPSED="menu-collapsed",t.TICKET_SHOW_DETAILS="tickets.show-details"}(le||(le={})),function(t){t.DayFirst="day_first",t.MonthFirst="month_first",t.YearFirst="year_first"}(ce||(ce={})),function(t){t.CampaignEvent="campaign_event",t.ScheduledBroadcast="scheduled_broadcast",t.ScheduledTrigger="scheduled_trigger"}(he||(he={})),function(t){t.Open="open",t.Closed="closed"}(ue||(ue={})),function(t){t.Loaded="temba-loaded",t.Canceled="temba-canceled",t.CursorChanged="temba-cursor-changed",t.Refreshed="temba-refreshed",t.Selection="temba-selection",t.ButtonClicked="temba-button-clicked",t.DialogHidden="temba-dialog-hidden",t.ScrollThreshold="temba-scroll-threshold",t.ContentChanged="temba-content-changed",t.ContextChanged="temba-context-changed",t.FetchComplete="temba-fetch-complete",t.Submitted="temba-submitted",t.Redirected="temba-redirected",t.NoPath="temba-no-path",t.StoreUpdated="temba-store-updated",t.Ready="temba-ready"}(de||(de={}));class pe{constructor(t=0,e=0){this.first=null,this.items=Object.create(null),this.last=null,this.max=t,this.size=0,this.ttl=e}has(t){return t in this.items}clear(){return this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this}delete(t){if(this.has(t)){const e=this.items[t];delete this.items[t],this.size--,null!==e.prev&&(e.prev.next=e.next),null!==e.next&&(e.next.prev=e.prev),this.first===e&&(this.first=e.next),this.last===e&&(this.last=e.prev)}return this}evict(t=!1){if(t||this.size>0){const t=this.first;delete this.items[t.key],this.size--,0===this.size?(this.first=null,this.last=null):(this.first=t.next,this.first.prev=null)}return this}get(t){let e;if(this.has(t)){const i=this.items[t];this.ttl>0&&i.expiry<=(new Date).getTime()?this.delete(t):(e=i.value,this.set(t,e,!0))}return e}keys(){return Object.keys(this.items)}set(t,e,i=!1){let n;if(i||this.has(t)){if(n=this.items[t],n.value=e,this.last!==n){const t=this.last,e=n.next,i=n.prev;this.first===n&&(this.first=n.next),n.next=null,n.prev=this.last,t.next=n,null!==i&&(i.next=e),null!==e&&(e.prev=i)}}else this.max>0&&this.size===this.max&&this.evict(!0),n=this.items[t]={expiry:this.ttl>0?(new Date).getTime()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:e},1==++this.size?this.first=n:this.last.next=n;return this.last=n,this}}function me(t=1e3,e=0){if(isNaN(t)||t<0)throw new TypeError("Invalid max value");if(isNaN(e)||e<0)throw new TypeError("Invalid ttl value");return new pe(t,e)}var fe=function(){function t(){var t=this;this.languages={ar:{y:function(t){return 1===t?"سنة":"سنوات"},mo:function(t){return 1===t?"شهر":"أشهر"},w:function(t){return 1===t?"أسبوع":"أسابيع"},d:function(t){return 1===t?"يوم":"أيام"},h:function(t){return 1===t?"ساعة":"ساعات"},m:function(e){return["دقيقة","دقائق"][t.getArabicForm(e)]},s:function(t){return 1===t?"ثانية":"ثواني"},ms:function(t){return 1===t?"جزء من الثانية":"أجزاء من الثانية"},decimal:","},bg:{y:function(e){return["години","година","години"][t.getSlavicForm(e)]},mo:function(e){return["месеца","месец","месеца"][t.getSlavicForm(e)]},w:function(e){return["седмици","седмица","седмици"][t.getSlavicForm(e)]},d:function(e){return["дни","ден","дни"][t.getSlavicForm(e)]},h:function(e){return["часа","час","часа"][t.getSlavicForm(e)]},m:function(e){return["минути","минута","минути"][t.getSlavicForm(e)]},s:function(e){return["секунди","секунда","секунди"][t.getSlavicForm(e)]},ms:function(e){return["милисекунди","милисекунда","милисекунди"][t.getSlavicForm(e)]},decimal:","},ca:{y:function(t){return"any"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"os")},w:function(t){return"setman"+(1===t?"a":"es")},d:function(t){return"di"+(1===t?"a":"es")},h:function(t){return"hor"+(1===t?"a":"es")},m:function(t){return"minut"+(1===t?"":"s")},s:function(t){return"segon"+(1===t?"":"s")},ms:function(t){return"milisegon"+(1===t?"":"s")},decimal:","},cs:{y:function(e){return["rok","roku","roky","let"][t.getCzechOrSlovakForm(e)]},mo:function(e){return["měsíc","měsíce","měsíce","měsíců"][t.getCzechOrSlovakForm(e)]},w:function(e){return["týden","týdne","týdny","týdnů"][t.getCzechOrSlovakForm(e)]},d:function(e){return["den","dne","dny","dní"][t.getCzechOrSlovakForm(e)]},h:function(e){return["hodina","hodiny","hodiny","hodin"][t.getCzechOrSlovakForm(e)]},m:function(e){return["minuta","minuty","minuty","minut"][t.getCzechOrSlovakForm(e)]},s:function(e){return["sekunda","sekundy","sekundy","sekund"][t.getCzechOrSlovakForm(e)]},ms:function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][t.getCzechOrSlovakForm(e)]},decimal:","},da:{y:function(){return"år"},mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uge"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"e")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minut"+(1===t?"":"ter")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},de:{y:function(t){return"Jahr"+(1===t?"":"e")},mo:function(t){return"Monat"+(1===t?"":"e")},w:function(t){return"Woche"+(1===t?"":"n")},d:function(t){return"Tag"+(1===t?"":"e")},h:function(t){return"Stunde"+(1===t?"":"n")},m:function(t){return"Minute"+(1===t?"":"n")},s:function(t){return"Sekunde"+(1===t?"":"n")},ms:function(t){return"Millisekunde"+(1===t?"":"n")},decimal:","},el:{y:function(t){return 1===t?"χρόνος":"χρόνια"},mo:function(t){return 1===t?"μήνας":"μήνες"},w:function(t){return 1===t?"εβδομάδα":"εβδομάδες"},d:function(t){return 1===t?"μέρα":"μέρες"},h:function(t){return 1===t?"ώρα":"ώρες"},m:function(t){return 1===t?"λεπτό":"λεπτά"},s:function(t){return 1===t?"δευτερόλεπτο":"δευτερόλεπτα"},ms:function(t){return 1===t?"χιλιοστό του δευτερολέπτου":"χιλιοστά του δευτερολέπτου"},decimal:","},en:{y:function(t){return"year"+(1===t?"":"s")},mo:function(t){return"month"+(1===t?"":"s")},w:function(t){return"week"+(1===t?"":"s")},d:function(t){return"day"+(1===t?"":"s")},h:function(t){return"hour"+(1===t?"":"s")},m:function(t){return"minute"+(1===t?"":"s")},s:function(t){return"second"+(1===t?"":"s")},ms:function(t){return"millisecond"+(1===t?"":"s")},decimal:"."},es:{y:function(t){return"año"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"es")},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"día"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milisegundo"+(1===t?"":"s")},decimal:","},et:{y:function(t){return"aasta"+(1===t?"":"t")},mo:function(t){return"kuu"+(1===t?"":"d")},w:function(t){return"nädal"+(1===t?"":"at")},d:function(t){return"päev"+(1===t?"":"a")},h:function(t){return"tund"+(1===t?"":"i")},m:function(t){return"minut"+(1===t?"":"it")},s:function(t){return"sekund"+(1===t?"":"it")},ms:function(t){return"millisekund"+(1===t?"":"it")},decimal:","},fa:{y:function(){return"سال"},mo:function(){return"ماه"},w:function(){return"هفته"},d:function(){return"روز"},h:function(){return"ساعت"},m:function(){return"دقیقه"},s:function(){return"ثانیه"},ms:function(){return"میلی ثانیه"},decimal:"."},fi:{y:function(t){return 1===t?"vuosi":"vuotta"},mo:function(t){return 1===t?"kuukausi":"kuukautta"},w:function(t){return"viikko"+(1===t?"":"a")},d:function(t){return"päivä"+(1===t?"":"ä")},h:function(t){return"tunti"+(1===t?"":"a")},m:function(t){return"minuutti"+(1===t?"":"a")},s:function(t){return"sekunti"+(1===t?"":"a")},ms:function(t){return"millisekunti"+(1===t?"":"a")},decimal:","},fo:{y:function(){return"ár"},mo:function(t){return 1===t?"mánaður":"mánaðir"},w:function(t){return 1===t?"vika":"vikur"},d:function(t){return 1===t?"dagur":"dagar"},h:function(t){return 1===t?"tími":"tímar"},m:function(t){return 1===t?"minuttur":"minuttir"},s:function(){return"sekund"},ms:function(){return"millisekund"},decimal:","},fr:{y:function(t){return"an"+(t>=2?"s":"")},mo:function(){return"mois"},w:function(t){return"semaine"+(t>=2?"s":"")},d:function(t){return"jour"+(t>=2?"s":"")},h:function(t){return"heure"+(t>=2?"s":"")},m:function(t){return"minute"+(t>=2?"s":"")},s:function(t){return"seconde"+(t>=2?"s":"")},ms:function(t){return"milliseconde"+(t>=2?"s":"")},decimal:","},hr:{y:function(t){return t%10==2||t%10==3||t%10==4?"godine":"godina"},mo:function(t){return 1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci"},w:function(t){return t%10==1&&11!==t?"tjedan":"tjedna"},d:function(t){return 1===t?"dan":"dana"},h:function(t){return 1===t?"sat":2===t||3===t||4===t?"sata":"sati"},m:function(t){var e=t%10;return 2!==e&&3!==e&&4!==e||!(t<10||t>14)?"minuta":"minute"},s:function(t){return 10===t||11===t||12===t||13===t||14===t||16===t||17===t||18===t||19===t||t%10==5?"sekundi":t%10==1?"sekunda":t%10==2||t%10==3||t%10==4?"sekunde":"sekundi"},ms:function(t){return 1===t?"milisekunda":t%10==2||t%10==3||t%10==4?"milisekunde":"milisekundi"},decimal:","},hu:{y:function(){return"év"},mo:function(){return"hónap"},w:function(){return"hét"},d:function(){return"nap"},h:function(){return"óra"},m:function(){return"perc"},s:function(){return"másodperc"},ms:function(){return"ezredmásodperc"},decimal:","},id:{y:function(){return"tahun"},mo:function(){return"bulan"},w:function(){return"minggu"},d:function(){return"hari"},h:function(){return"jam"},m:function(){return"menit"},s:function(){return"detik"},ms:function(){return"milidetik"},decimal:"."},is:{y:function(){return"ár"},mo:function(t){return"mánuð"+(1===t?"ur":"ir")},w:function(t){return"vik"+(1===t?"a":"ur")},d:function(t){return"dag"+(1===t?"ur":"ar")},h:function(t){return"klukkutím"+(1===t?"i":"ar")},m:function(t){return"mínút"+(1===t?"a":"ur")},s:function(t){return"sekúnd"+(1===t?"a":"ur")},ms:function(t){return"millisekúnd"+(1===t?"a":"ur")},decimal:"."},it:{y:function(t){return"ann"+(1===t?"o":"i")},mo:function(t){return"mes"+(1===t?"e":"i")},w:function(t){return"settiman"+(1===t?"a":"e")},d:function(t){return"giorn"+(1===t?"o":"i")},h:function(t){return"or"+(1===t?"a":"e")},m:function(t){return"minut"+(1===t?"o":"i")},s:function(t){return"second"+(1===t?"o":"i")},ms:function(t){return"millisecond"+(1===t?"o":"i")},decimal:","},ja:{y:function(){return"年"},mo:function(){return"月"},w:function(){return"週"},d:function(){return"日"},h:function(){return"時間"},m:function(){return"分"},s:function(){return"秒"},ms:function(){return"ミリ秒"},decimal:"."},ko:{y:function(){return"년"},mo:function(){return"개월"},w:function(){return"주일"},d:function(){return"일"},h:function(){return"시간"},m:function(){return"분"},s:function(){return"초"},ms:function(){return"밀리 초"},decimal:"."},lo:{y:function(){return"ປີ"},mo:function(){return"ເດືອນ"},w:function(){return"ອາທິດ"},d:function(){return"ມື້"},h:function(){return"ຊົ່ວໂມງ"},m:function(){return"ນາທີ"},s:function(){return"ວິນາທີ"},ms:function(){return"ມິນລິວິນາທີ"},decimal:","},lt:{y:function(t){return t%10==0||t%100>=10&&t%100<=20?"metų":"metai"},mo:function(e){return["mėnuo","mėnesiai","mėnesių"][t.getLithuanianForm(e)]},w:function(e){return["savaitė","savaitės","savaičių"][t.getLithuanianForm(e)]},d:function(e){return["diena","dienos","dienų"][t.getLithuanianForm(e)]},h:function(e){return["valanda","valandos","valandų"][t.getLithuanianForm(e)]},m:function(e){return["minutė","minutės","minučių"][t.getLithuanianForm(e)]},s:function(e){return["sekundė","sekundės","sekundžių"][t.getLithuanianForm(e)]},ms:function(e){return["milisekundė","milisekundės","milisekundžių"][t.getLithuanianForm(e)]},decimal:","},lv:{y:function(e){return["gads","gadi"][t.getLatvianForm(e)]},mo:function(e){return["mēnesis","mēneši"][t.getLatvianForm(e)]},w:function(e){return["nedēļa","nedēļas"][t.getLatvianForm(e)]},d:function(e){return["diena","dienas"][t.getLatvianForm(e)]},h:function(e){return["stunda","stundas"][t.getLatvianForm(e)]},m:function(e){return["minūte","minūtes"][t.getLatvianForm(e)]},s:function(e){return["sekunde","sekundes"][t.getLatvianForm(e)]},ms:function(e){return["milisekunde","milisekundes"][t.getLatvianForm(e)]},decimal:","},ms:{y:function(){return"tahun"},mo:function(){return"bulan"},w:function(){return"minggu"},d:function(){return"hari"},h:function(){return"jam"},m:function(){return"minit"},s:function(){return"saat"},ms:function(){return"milisaat"},decimal:"."},nl:{y:function(){return"jaar"},mo:function(t){return 1===t?"maand":"maanden"},w:function(t){return 1===t?"week":"weken"},d:function(t){return 1===t?"dag":"dagen"},h:function(){return"uur"},m:function(t){return 1===t?"minuut":"minuten"},s:function(t){return 1===t?"seconde":"seconden"},ms:function(t){return 1===t?"milliseconde":"milliseconden"},decimal:","},no:{y:function(){return"år"},mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uke"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"er")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minutt"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},pl:{y:function(e){return["rok","roku","lata","lat"][t.getPolishForm(e)]},mo:function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][t.getPolishForm(e)]},w:function(e){return["tydzień","tygodnia","tygodnie","tygodni"][t.getPolishForm(e)]},d:function(e){return["dzień","dnia","dni","dni"][t.getPolishForm(e)]},h:function(e){return["godzina","godziny","godziny","godzin"][t.getPolishForm(e)]},m:function(e){return["minuta","minuty","minuty","minut"][t.getPolishForm(e)]},s:function(e){return["sekunda","sekundy","sekundy","sekund"][t.getPolishForm(e)]},ms:function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][t.getPolishForm(e)]},decimal:","},pt:{y:function(t){return"ano"+(1===t?"":"s")},mo:function(t){return 1===t?"mês":"meses"},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"dia"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milissegundo"+(1===t?"":"s")},decimal:","},ro:{y:function(t){return 1===t?"an":"ani"},mo:function(t){return 1===t?"lună":"luni"},w:function(t){return 1===t?"săptămână":"săptămâni"},d:function(t){return 1===t?"zi":"zile"},h:function(t){return 1===t?"oră":"ore"},m:function(t){return 1===t?"minut":"minute"},s:function(t){return 1===t?"secundă":"secunde"},ms:function(t){return 1===t?"milisecundă":"milisecunde"},decimal:","},ru:{y:function(e){return["лет","год","года"][t.getSlavicForm(e)]},mo:function(e){return["месяцев","месяц","месяца"][t.getSlavicForm(e)]},w:function(e){return["недель","неделя","недели"][t.getSlavicForm(e)]},d:function(e){return["дней","день","дня"][t.getSlavicForm(e)]},h:function(e){return["часов","час","часа"][t.getSlavicForm(e)]},m:function(e){return["минут","минута","минуты"][t.getSlavicForm(e)]},s:function(e){return["секунд","секунда","секунды"][t.getSlavicForm(e)]},ms:function(e){return["миллисекунд","миллисекунда","миллисекунды"][t.getSlavicForm(e)]},decimal:","},uk:{y:function(e){return["років","рік","роки"][t.getSlavicForm(e)]},mo:function(e){return["місяців","місяць","місяці"][t.getSlavicForm(e)]},w:function(e){return["тижнів","тиждень","тижні"][t.getSlavicForm(e)]},d:function(e){return["днів","день","дні"][t.getSlavicForm(e)]},h:function(e){return["годин","година","години"][t.getSlavicForm(e)]},m:function(e){return["хвилин","хвилина","хвилини"][t.getSlavicForm(e)]},s:function(e){return["секунд","секунда","секунди"][t.getSlavicForm(e)]},ms:function(e){return["мілісекунд","мілісекунда","мілісекунди"][t.getSlavicForm(e)]},decimal:","},ur:{y:function(){return"سال"},mo:function(t){return 1===t?"مہینہ":"مہینے"},w:function(t){return 1===t?"ہفتہ":"ہفتے"},d:function(){return"دن"},h:function(t){return 1===t?"گھنٹہ":"گھنٹے"},m:function(){return"منٹ"},s:function(){return"سیکنڈ"},ms:function(){return"ملی سیکنڈ"},decimal:"."},sk:{y:function(e){return["rok","roky","roky","rokov"][t.getCzechOrSlovakForm(e)]},mo:function(e){return["mesiac","mesiace","mesiace","mesiacov"][t.getCzechOrSlovakForm(e)]},w:function(e){return["týždeň","týždne","týždne","týždňov"][t.getCzechOrSlovakForm(e)]},d:function(e){return["deň","dni","dni","dní"][t.getCzechOrSlovakForm(e)]},h:function(e){return["hodina","hodiny","hodiny","hodín"][t.getCzechOrSlovakForm(e)]},m:function(e){return["minúta","minúty","minúty","minút"][t.getCzechOrSlovakForm(e)]},s:function(e){return["sekunda","sekundy","sekundy","sekúnd"][t.getCzechOrSlovakForm(e)]},ms:function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][t.getCzechOrSlovakForm(e)]},decimal:","},sv:{y:function(){return"år"},mo:function(t){return"månad"+(1===t?"":"er")},w:function(t){return"veck"+(1===t?"a":"or")},d:function(t){return"dag"+(1===t?"":"ar")},h:function(t){return"timm"+(1===t?"e":"ar")},m:function(t){return"minut"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},tr:{y:function(){return"yıl"},mo:function(){return"ay"},w:function(){return"hafta"},d:function(){return"gün"},h:function(){return"saat"},m:function(){return"dakika"},s:function(){return"saniye"},ms:function(){return"milisaniye"},decimal:","},th:{y:function(){return"ปี"},mo:function(){return"เดือน"},w:function(){return"อาทิตย์"},d:function(){return"วัน"},h:function(){return"ชั่วโมง"},m:function(){return"นาที"},s:function(){return"วินาที"},ms:function(){return"มิลลิวินาที"},decimal:"."},vi:{y:function(){return"năm"},mo:function(){return"tháng"},w:function(){return"tuần"},d:function(){return"ngày"},h:function(){return"giờ"},m:function(){return"phút"},s:function(){return"giây"},ms:function(){return"mili giây"},decimal:","},zh_CN:{y:function(){return"年"},mo:function(){return"个月"},w:function(){return"周"},d:function(){return"天"},h:function(){return"小时"},m:function(){return"分钟"},s:function(){return"秒"},ms:function(){return"毫秒"},decimal:"."},zh_TW:{y:function(){return"年"},mo:function(){return"個月"},w:function(){return"周"},d:function(){return"天"},h:function(){return"小時"},m:function(){return"分鐘"},s:function(){return"秒"},ms:function(){return"毫秒"},decimal:"."}}}return t.prototype.addLanguage=function(t,e){this.languages[t]=e},t.prototype.getCzechForm=function(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&t%100<10?2:3},t.prototype.getPolishForm=function(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&!(t%100>10&&t%100<20)?2:3},t.prototype.getSlavicForm=function(t){return Math.floor(t)!==t?2:t>=5&&t<=20||t%10>=5&&t%10<=9||t%10==0?0:t%10==1?1:t>1?2:0},t.prototype.getLithuanianForm=function(t){return 1===t||t%10==1&&t%100>20?0:Math.floor(t)!==t||t%10>=2&&t%100>20||t%10>=2&&t%100<10?1:2},t.prototype.getArabicForm=function(t){return t<=2?0:t>2&&t<11?1:0},t.prototype.getCzechOrSlovakForm=function(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&t%100<10?2:3},t.prototype.getLatvianForm=function(t){return 1===t||t%10==1&&t%100!=11?0:1},t}(),ge=function(){function t(t){this.languageUtil=t,this.defaultOptions={language:"en",delimiter:", ",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},largest:10,decimal:".",round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},this.options=void 0,this.options=this.defaultOptions}return t.prototype.humanize=function(t,e){var i=void 0!==e?this.extend(this.options,e):this.defaultOptions;return this.doHumanization(t,i)},t.prototype.setOptions=function(t){this.options=void 0!==t?this.extend(this.defaultOptions,t):this.defaultOptions},t.prototype.getSupportedLanguages=function(){var t=[];for(var e in this.languageUtil.languages)this.languageUtil.languages.hasOwnProperty(e)&&t.push(e);return t},t.prototype.addLanguage=function(t,e){this.languageUtil.addLanguage(t,e)},t.prototype.doHumanization=function(t,e){var i,n,o;t=Math.abs(t);var r=e.languages[e.language]||this.languageUtil.languages[e.language];if(!r)throw new Error("No language "+r+".");var s,a,l,c=[];for(i=0,n=e.units.length;i<n;i++)s=e.units[i],a=e.unitMeasures[s],l=i+1===n?t/a:Math.floor(t/a),c.push({unitCount:l,unitName:s}),t-=l*a;var h=0;for(i=0;i<c.length;i++)if(c[i].unitCount){h=i;break}if(e.round){var u=void 0,d=void 0;for(i=c.length-1;i>=0&&((o=c[i]).unitCount=Math.round(o.unitCount),0!==i);i--)d=c[i-1],u=e.unitMeasures[d.unitName]/e.unitMeasures[o.unitName],(o.unitCount%u==0||e.largest&&e.largest-1<i-h)&&(d.unitCount+=o.unitCount/u,o.unitCount=0)}var p=[];for(i=0,c.length;i<n&&((o=c[i]).unitCount&&p.push(this.render(o.unitCount,o.unitName,r,e)),p.length!==e.largest);i++);return p.length?e.conjunction&&1!==p.length?2===p.length?p.join(e.conjunction):p.length>2?p.slice(0,-1).join(e.delimiter)+(e.serialComma?",":"")+e.conjunction+p.slice(-1):void 0:p.join(e.delimiter):this.render(0,e.units[e.units.length-1],r,e)},t.prototype.render=function(t,e,i,n){var o;o=void 0===n.decimal?i.decimal:n.decimal;var r=t.toString().replace(".",o.toString()),s=i[e](t);return r+n.spacer+s},t.prototype.extend=function(t,e){for(var i in e)t.hasOwnProperty(i)&&(t[i]=e[i]);return t},t}();class ve extends Error{}class ye extends ve{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class be extends ve{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class _e extends ve{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class xe extends ve{}class we extends ve{constructor(t){super(`Invalid unit ${t}`)}}class ke extends ve{}class Ce extends ve{constructor(){super("Zone is an abstract class")}}const Se="numeric",Ee="short",Te="long",Me={year:Se,month:Se,day:Se},De={year:Se,month:Ee,day:Se},$e={year:Se,month:Ee,day:Se,weekday:Ee},Ae={year:Se,month:Te,day:Se},Le={year:Se,month:Te,day:Se,weekday:Te},Oe={hour:Se,minute:Se},Pe={hour:Se,minute:Se,second:Se},Ie={hour:Se,minute:Se,second:Se,timeZoneName:Ee},Ne={hour:Se,minute:Se,second:Se,timeZoneName:Te},ze={hour:Se,minute:Se,hourCycle:"h23"},Re={hour:Se,minute:Se,second:Se,hourCycle:"h23"},Be={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:Ee},Fe={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:Te},qe={year:Se,month:Se,day:Se,hour:Se,minute:Se},je={year:Se,month:Se,day:Se,hour:Se,minute:Se,second:Se},Ze={year:Se,month:Ee,day:Se,hour:Se,minute:Se},He={year:Se,month:Ee,day:Se,hour:Se,minute:Se,second:Se},Ue={year:Se,month:Ee,day:Se,weekday:Ee,hour:Se,minute:Se},Ve={year:Se,month:Te,day:Se,hour:Se,minute:Se,timeZoneName:Ee},We={year:Se,month:Te,day:Se,hour:Se,minute:Se,second:Se,timeZoneName:Ee},Ge={year:Se,month:Te,day:Se,weekday:Te,hour:Se,minute:Se,timeZoneName:Te},Ye={year:Se,month:Te,day:Se,weekday:Te,hour:Se,minute:Se,second:Se,timeZoneName:Te};function Ke(t){return void 0===t}function Je(t){return"number"==typeof t}function Xe(t){return"number"==typeof t&&t%1==0}function Qe(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function ti(t,e,i){if(0!==t.length)return t.reduce(((t,n)=>{const o=[e(n),n];return t&&i(t[0],o[0])===t[0]?t:o}),null)[1]}function ei(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ii(t,e,i){return Xe(t)&&t>=e&&t<=i}function ni(t,e=2){let i;return i=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),i}function oi(t){return Ke(t)||null===t||""===t?void 0:parseInt(t,10)}function ri(t){return Ke(t)||null===t||""===t?void 0:parseFloat(t)}function si(t){if(!Ke(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function ai(t,e,i=!1){const n=10**e;return(i?Math.trunc:Math.round)(t*n)/n}function li(t){return t%4==0&&(t%100!=0||t%400==0)}function ci(t){return li(t)?366:365}function hi(t,e){const i=function(t,e){return t-e*Math.floor(t/e)}(e-1,12)+1;return 2===i?li(t+(e-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function ui(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function di(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,i=t-1,n=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return 4===e||3===n?53:52}function pi(t){return t>99?t:t>60?1900+t:2e3+t}function mi(t,e,i,n=null){const o=new Date(t),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(r.timeZone=n);const s={timeZoneName:e,...r},a=new Intl.DateTimeFormat(i,s).formatToParts(o).find((t=>"timezonename"===t.type.toLowerCase()));return a?a.value:null}function fi(t,e){let i=parseInt(t,10);Number.isNaN(i)&&(i=0);const n=parseInt(e,10)||0;return 60*i+(i<0||Object.is(i,-0)?-n:n)}function gi(t){const e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new ke(`Invalid unit value ${t}`);return e}function vi(t,e){const i={};for(const n in t)if(ei(t,n)){const o=t[n];if(null==o)continue;i[e(n)]=gi(o)}return i}function yi(t,e){const i=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${ni(i,2)}:${ni(n,2)}`;case"narrow":return`${o}${i}${n>0?`:${n}`:""}`;case"techie":return`${o}${ni(i,2)}${ni(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function bi(t){return function(t,e){return e.reduce(((e,i)=>(e[i]=t[i],e)),{})}(t,["hour","minute","second","millisecond"])}const _i=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,xi=["January","February","March","April","May","June","July","August","September","October","November","December"],wi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ki=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ci(t){switch(t){case"narrow":return[...ki];case"short":return[...wi];case"long":return[...xi];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 Si=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ei=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ti=["M","T","W","T","F","S","S"];function Mi(t){switch(t){case"narrow":return[...Ti];case"short":return[...Ei];case"long":return[...Si];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Di=["AM","PM"],$i=["Before Christ","Anno Domini"],Ai=["BC","AD"],Li=["B","A"];function Oi(t){switch(t){case"narrow":return[...Li];case"short":return[...Ai];case"long":return[...$i];default:return null}}function Pi(t,e){let i="";for(const n of t)n.literal?i+=n.val:i+=e(n.val);return i}const Ii={D:Me,DD:De,DDD:Ae,DDDD:Le,t:Oe,tt:Pe,ttt:Ie,tttt:Ne,T:ze,TT:Re,TTT:Be,TTTT:Fe,f:qe,ff:Ze,fff:Ve,ffff:Ge,F:je,FF:He,FFF:We,FFFF:Ye};class Ni{static create(t,e={}){return new Ni(t,e)}static parseFormat(t){let e=null,i="",n=!1;const o=[];for(let r=0;r<t.length;r++){const s=t.charAt(r);"'"===s?(i.length>0&&o.push({literal:n,val:i}),e=null,i="",n=!n):n||s===e?i+=s:(i.length>0&&o.push({literal:!1,val:i}),i=s,e=s)}return i.length>0&&o.push({literal:n,val:i}),o}static macroTokenToFormatOpts(t){return Ii[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTime(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTimeParts(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).formatToParts()}resolvedOptions(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return ni(t,e);const i={...this.opts};return e>0&&(i.padTo=e),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,e){const i="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(e,i)=>this.loc.extract(t,e,i),r=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",s=()=>i?function(t){return Di[t.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(e,n)=>i?function(t,e){return Ci(e)[t.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month"),l=(e,n)=>i?function(t,e){return Mi(e)[t.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),c=e=>{const i=Ni.macroTokenToFormatOpts(e);return i?this.formatWithSystemDefault(t,i):e},h=e=>i?function(t,e){return Oi(e)[t.year<0?0:1]}(t,e):o({era:e},"era");return Pi(Ni.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return n?o({day:"numeric"},"day"):this.num(t.day);case"dd":return n?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return n?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return n?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return n?o({month:"numeric"},"month"):this.num(t.month);case"MM":return n?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return n?o({year:"numeric"},"year"):this.num(t.year);case"yy":return n?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return n?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return n?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return h("short");case"GG":return h("long");case"GGGGG":return h("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(e)}}))}formatDurationFromString(t,e){const i=t=>{switch(t[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}},n=Ni.parseFormat(e),o=n.reduce(((t,{literal:e,val:i})=>e?t:t.concat(i)),[]),r=t.shiftTo(...o.map(i).filter((t=>t)));return Pi(n,(t=>e=>{const n=i(e);return n?this.num(t.get(n),e.length):e})(r))}}class zi{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Ri{get type(){throw new Ce}get name(){throw new Ce}get ianaName(){return this.name}get isUniversal(){throw new Ce}offsetName(t,e){throw new Ce}formatOffset(t,e){throw new Ce}offset(t){throw new Ce}equals(t){throw new Ce}get isValid(){throw new Ce}}let Bi=null;class Fi extends Ri{static get instance(){return null===Bi&&(Bi=new Fi),Bi}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return mi(t,e,i)}formatOffset(t,e){return yi(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let qi={};const ji={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Zi={};class Hi extends Ri{static create(t){return Zi[t]||(Zi[t]=new Hi(t)),Zi[t]}static resetCache(){Zi={},qi={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=Hi.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return mi(t,e,i,this.name)}formatOffset(t,e){return yi(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const i=(n=this.name,qi[n]||(qi[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),qi[n]);var n;let[o,r,s,a,l,c,h]=i.formatToParts?function(t,e){const i=t.formatToParts(e),n=[];for(let t=0;t<i.length;t++){const{type:e,value:o}=i[t],r=ji[e];"era"===e?n[r]=o:Ke(r)||(n[r]=parseInt(o,10))}return n}(i,e):function(t,e){const i=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,o,r,s,a,l,c,h]=n;return[s,o,r,a,l,c,h]}(i,e);"BC"===a&&(o=1-Math.abs(o));let u=+e;const d=u%1e3;return u-=d>=0?d:1e3+d,(ui({year:o,month:r,day:s,hour:24===l?0:l,minute:c,second:h,millisecond:0})-u)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let Ui=null;class Vi extends Ri{static get utcInstance(){return null===Ui&&(Ui=new Vi(0)),Ui}static instance(t){return 0===t?Vi.utcInstance:new Vi(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new Vi(fi(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${yi(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${yi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return yi(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class Wi extends Ri{constructor(t){super(),this.zoneName=t}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 Gi(t,e){if(Ke(t)||null===t)return e;if(t instanceof Ri)return t;if(function(t){return"string"==typeof t}(t)){const i=t.toLowerCase();return"local"===i||"system"===i?e:"utc"===i||"gmt"===i?Vi.utcInstance:Vi.parseSpecifier(i)||Hi.create(t)}return Je(t)?Vi.instance(t):"object"==typeof t&&t.offset&&"number"==typeof t.offset?t:new Wi(t)}let Yi,Ki=()=>Date.now(),Ji="system",Xi=null,Qi=null,tn=null;class en{static get now(){return Ki}static set now(t){Ki=t}static set defaultZone(t){Ji=t}static get defaultZone(){return Gi(Ji,Fi.instance)}static get defaultLocale(){return Xi}static set defaultLocale(t){Xi=t}static get defaultNumberingSystem(){return Qi}static set defaultNumberingSystem(t){Qi=t}static get defaultOutputCalendar(){return tn}static set defaultOutputCalendar(t){tn=t}static get throwOnInvalid(){return Yi}static set throwOnInvalid(t){Yi=t}static resetCaches(){pn.resetCache(),Hi.resetCache()}}let nn={};let on={};function rn(t,e={}){const i=JSON.stringify([t,e]);let n=on[i];return n||(n=new Intl.DateTimeFormat(t,e),on[i]=n),n}let sn={};let an={};let ln=null;function cn(t,e,i,n,o){const r=t.listingMode(i);return"error"===r?null:"en"===r?n(e):o(e)}class hn{constructor(t,e,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:n,floor:o,...r}=i;if(!e||Object.keys(r).length>0){const e={useGrouping:!1,...i};i.padTo>0&&(e.minimumIntegerDigits=i.padTo),this.inf=function(t,e={}){const i=JSON.stringify([t,e]);let n=sn[i];return n||(n=new Intl.NumberFormat(t,e),sn[i]=n),n}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return ni(this.floor?Math.floor(t):ai(t,3),this.padTo)}}class un{constructor(t,e,i){let n;if(this.opts=i,t.zone.isUniversal){const e=t.offset/60*-1,o=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&Hi.create(o).valid?(n=o,this.dt=t):(n="UTC",i.timeZoneName?this.dt=t:this.dt=0===t.offset?t:hr.fromMillis(t.ts+60*t.offset*1e3))}else"system"===t.zone.type?this.dt=t:(this.dt=t,n=t.zone.name);const o={...this.opts};n&&(o.timeZone=n),this.dtf=rn(e,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class dn{constructor(t,e,i){this.opts={style:"long",...i},!e&&Qe()&&(this.rtf=function(t,e={}){const{base:i,...n}=e,o=JSON.stringify([t,n]);let r=an[o];return r||(r=new Intl.RelativeTimeFormat(t,e),an[o]=r),r}(t,i))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,i="always",n=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===i&&r){const i="days"===t;switch(e){case 1:return i?"tomorrow":`next ${o[t][0]}`;case-1:return i?"yesterday":`last ${o[t][0]}`;case 0:return i?"today":`this ${o[t][0]}`}}const s=Object.is(e,-0)||e<0,a=Math.abs(e),l=1===a,c=o[t],h=n?l?c[1]:c[2]||c[1]:l?o[t][0]:t;return s?`${a} ${h} ago`:`in ${a} ${h}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}class pn{static fromOpts(t){return pn.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,e,i,n=!1){const o=t||en.defaultLocale,r=o||(n?"en-US":ln||(ln=(new Intl.DateTimeFormat).resolvedOptions().locale,ln)),s=e||en.defaultNumberingSystem,a=i||en.defaultOutputCalendar;return new pn(r,s,a,o)}static resetCache(){ln=null,on={},sn={},an={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:i}={}){return pn.create(t,e,i)}constructor(t,e,i,n){const[o,r,s]=function(t){const e=t.indexOf("-u-");if(-1===e)return[t];{let i;const n=t.substring(0,e);try{i=rn(t).resolvedOptions()}catch(t){i=rn(n).resolvedOptions()}const{numberingSystem:o,calendar:r}=i;return[n,o,r]}}(t);this.locale=o,this.numberingSystem=e||r||null,this.outputCalendar=i||s||null,this.intl=function(t,e,i){return i||e?(t+="-u",i&&(t+=`-ca-${i}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),e=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?pn.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1,i=!0){return cn(this,t,i,Ci,(()=>{const i=e?{month:t,day:"numeric"}:{month:t},n=e?"format":"standalone";return this.monthsCache[n][t]||(this.monthsCache[n][t]=function(t){const e=[];for(let i=1;i<=12;i++){const n=hr.utc(2016,i,1);e.push(t(n))}return e}((t=>this.extract(t,i,"month")))),this.monthsCache[n][t]}))}weekdays(t,e=!1,i=!0){return cn(this,t,i,Mi,(()=>{const i=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},n=e?"format":"standalone";return this.weekdaysCache[n][t]||(this.weekdaysCache[n][t]=function(t){const e=[];for(let i=1;i<=7;i++){const n=hr.utc(2016,11,13+i);e.push(t(n))}return e}((t=>this.extract(t,i,"weekday")))),this.weekdaysCache[n][t]}))}meridiems(t=!0){return cn(this,void 0,t,(()=>Di),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[hr.utc(2016,11,13,9),hr.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t,e=!0){return cn(this,t,e,Oi,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[hr.utc(-40,1,1),hr.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,i){const n=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===i));return n?n.value:null}numberFormatter(t={}){return new hn(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new un(t,this.intl,e)}relFormatter(t={}){return new dn(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const i=JSON.stringify([t,e]);let n=nn[i];return n||(n=new Intl.ListFormat(t,e),nn[i]=n),n}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}function mn(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function fn(...t){return e=>t.reduce((([t,i,n],o)=>{const[r,s,a]=o(e,n);return[{...t,...r},s||i,a]}),[{},null,1]).slice(0,2)}function gn(t,...e){if(null==t)return[null,null];for(const[i,n]of e){const e=i.exec(t);if(e)return n(e)}return[null,null]}function vn(...t){return(e,i)=>{const n={};let o;for(o=0;o<t.length;o++)n[t[o]]=oi(e[i+o]);return[n,null,i+o]}}const yn=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,bn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,_n=RegExp(`${bn.source}${`(?:${yn.source}?(?:\\[(${_i.source})\\])?)?`}`),xn=RegExp(`(?:T${_n.source})?`),wn=vn("weekYear","weekNumber","weekDay"),kn=vn("year","ordinal"),Cn=RegExp(`${bn.source} ?(?:${yn.source}|(${_i.source}))?`),Sn=RegExp(`(?: ${Cn.source})?`);function En(t,e,i){const n=t[e];return Ke(n)?i:oi(n)}function Tn(t,e){return[{hours:En(t,e,0),minutes:En(t,e+1,0),seconds:En(t,e+2,0),milliseconds:si(t[e+3])},null,e+4]}function Mn(t,e){const i=!t[e]&&!t[e+1],n=fi(t[e+1],t[e+2]);return[{},i?null:Vi.instance(n),e+3]}function Dn(t,e){return[{},t[e]?Hi.create(t[e]):null,e+1]}const $n=RegExp(`^T?${bn.source}$`),An=/^-?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 Ln(t){const[e,i,n,o,r,s,a,l,c]=t,h="-"===e[0],u=l&&"-"===l[0],d=(t,e=!1)=>void 0!==t&&(e||t&&h)?-t:t;return[{years:d(ri(i)),months:d(ri(n)),weeks:d(ri(o)),days:d(ri(r)),hours:d(ri(s)),minutes:d(ri(a)),seconds:d(ri(l),"-0"===l),milliseconds:d(si(c),u)}]}const On={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pn(t,e,i,n,o,r,s){const a={year:2===e.length?pi(oi(e)):oi(e),month:wi.indexOf(i)+1,day:oi(n),hour:oi(o),minute:oi(r)};return s&&(a.second=oi(s)),t&&(a.weekday=t.length>3?Si.indexOf(t)+1:Ei.indexOf(t)+1),a}const In=/^(?:(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 Nn(t){const[,e,i,n,o,r,s,a,l,c,h,u]=t,d=Pn(e,o,n,i,r,s,a);let p;return p=l?On[l]:c?0:fi(h,u),[d,new Vi(p)]}const zn=/^(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$/,Rn=/^(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$/,Bn=/^(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 Fn(t){const[,e,i,n,o,r,s,a]=t;return[Pn(e,o,n,i,r,s,a),Vi.utcInstance]}function qn(t){const[,e,i,n,o,r,s,a]=t;return[Pn(e,a,i,n,o,r,s),Vi.utcInstance]}const jn=mn(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,xn),Zn=mn(/(\d{4})-?W(\d\d)(?:-?(\d))?/,xn),Hn=mn(/(\d{4})-?(\d{3})/,xn),Un=mn(_n),Vn=fn((function(t,e){return[{year:En(t,e),month:En(t,e+1,1),day:En(t,e+2,1)},null,e+3]}),Tn,Mn,Dn),Wn=fn(wn,Tn,Mn,Dn),Gn=fn(kn,Tn,Mn,Dn),Yn=fn(Tn,Mn,Dn);const Kn=fn(Tn);const Jn=mn(/(\d{4})-(\d\d)-(\d\d)/,Sn),Xn=mn(Cn),Qn=fn(Tn,Mn,Dn);const to={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},eo={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...to},io={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...to},no=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],oo=no.slice(0).reverse();function ro(t,e,i=!1){const n={values:i?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new ao(n)}function so(t,e,i,n,o){const r=t[o][i],s=e[i]/r,a=!(Math.sign(s)===Math.sign(n[o]))&&0!==n[o]&&Math.abs(s)<=1?function(t){return t<0?Math.floor(t):Math.ceil(t)}(s):Math.trunc(s);n[o]+=a,e[i]-=a*r}class ao{constructor(t){const e="longterm"===t.conversionAccuracy||!1;this.values=t.values,this.loc=t.loc||pn.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e?io:eo,this.isLuxonDuration=!0}static fromMillis(t,e){return ao.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new ke("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new ao({values:vi(t,ao.normalizeUnit),loc:pn.fromObject(e),conversionAccuracy:e.conversionAccuracy})}static fromDurationLike(t){if(Je(t))return ao.fromMillis(t);if(ao.isDuration(t))return t;if("object"==typeof t)return ao.fromObject(t);throw new ke(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[i]=function(t){return gn(t,[An,Ln])}(t);return i?ao.fromObject(i,e):ao.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[i]=function(t){return gn(t,[$n,Kn])}(t);return i?ao.fromObject(i,e):ao.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new ke("need to specify a reason the Duration is invalid");const i=t instanceof zi?t:new zi(t,e);if(en.throwOnInvalid)throw new _e(i);return new ao({invalid:i})}static normalizeUnit(t){const e={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"}[t?t.toLowerCase():t];if(!e)throw new we(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const i={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Ni.create(this.loc,i).formatDurationFromString(this,t):"Invalid Duration"}toHuman(t={}){const e=no.map((e=>{const i=this.values[e];return Ke(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(i)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=ai(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();if(e<0||e>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t};const i=this.shiftTo("hours","minutes","seconds","milliseconds");let n="basic"===t.format?"hhmm":"hh:mm";t.suppressSeconds&&0===i.seconds&&0===i.milliseconds||(n+="basic"===t.format?"ss":":ss",t.suppressMilliseconds&&0===i.milliseconds||(n+=".SSS"));let o=i.toFormat(n);return t.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=ao.fromDurationLike(t),i={};for(const t of no)(ei(e.values,t)||ei(this.values,t))&&(i[t]=e.get(t)+this.get(t));return ro(this,{values:i},!0)}minus(t){if(!this.isValid)return this;const e=ao.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=gi(t(this.values[i],i));return ro(this,{values:e},!0)}get(t){return this[ao.normalizeUnit(t)]}set(t){if(!this.isValid)return this;return ro(this,{values:{...this.values,...vi(t,ao.normalizeUnit)}})}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:i}={}){const n={loc:this.loc.clone({locale:t,numberingSystem:e})};return i&&(n.conversionAccuracy=i),ro(this,n)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return function(t,e){oo.reduce(((i,n)=>Ke(e[n])?i:(i&&so(t,e,i,e,n),n)),null)}(this.matrix,t),ro(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>ao.normalizeUnit(t)));const e={},i={},n=this.toObject();let o;for(const r of no)if(t.indexOf(r)>=0){o=r;let t=0;for(const e in i)t+=this.matrix[e][r]*i[e],i[e]=0;Je(n[r])&&(t+=n[r]);const s=Math.trunc(t);e[r]=s,i[r]=(1e3*t-1e3*s)/1e3;for(const t in n)no.indexOf(t)>no.indexOf(r)&&so(this.matrix,n,t,e,r)}else Je(n[r])&&(i[r]=n[r]);for(const t in i)0!==i[t]&&(e[o]+=t===o?i[t]:i[t]/this.matrix[o][t]);return ro(this,{values:e},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return ro(this,{values:t},!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 null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const n of no)if(e=this.values[n],i=t.values[n],!(void 0===e||0===e?void 0===i||0===i:e===i))return!1;var e,i;return!0}}const lo="Invalid Interval";class co{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new ke("need to specify a reason the Interval is invalid");const i=t instanceof zi?t:new zi(t,e);if(en.throwOnInvalid)throw new be(i);return new co({invalid:i})}static fromDateTimes(t,e){const i=ur(t),n=ur(e),o=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?co.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:co.invalid("missing or invalid end"):co.invalid("missing or invalid start")}(i,n);return null==o?new co({start:i,end:n}):o}static after(t,e){const i=ao.fromDurationLike(e),n=ur(t);return co.fromDateTimes(n,n.plus(i))}static before(t,e){const i=ao.fromDurationLike(e),n=ur(t);return co.fromDateTimes(n.minus(i),n)}static fromISO(t,e){const[i,n]=(t||"").split("/",2);if(i&&n){let t,o,r,s;try{t=hr.fromISO(i,e),o=t.isValid}catch(n){o=!1}try{r=hr.fromISO(n,e),s=r.isValid}catch(n){s=!1}if(o&&s)return co.fromDateTimes(t,r);if(o){const i=ao.fromISO(n,e);if(i.isValid)return co.after(t,i)}else if(s){const t=ao.fromISO(i,e);if(t.isValid)return co.before(r,t)}}return co.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const e=this.start.startOf(t),i=this.end.startOf(t);return Math.floor(i.diff(e,t).get(t))+1}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&(this.s<=t&&this.e>t)}set({start:t,end:e}={}){return this.isValid?co.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(ur).filter((t=>this.contains(t))).sort(),i=[];let{s:n}=this,o=0;for(;n<this.e;){const t=e[o]||this.e,r=+t>+this.e?this.e:t;i.push(co.fromDateTimes(n,r)),n=r,o+=1}return i}splitBy(t){const e=ao.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let i,{s:n}=this,o=1;const r=[];for(;n<this.e;){const t=this.start.plus(e.mapUnits((t=>t*o)));i=+t>+this.e?this.e:t,r.push(co.fromDateTimes(n,i)),n=i,o+=1}return r}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&(this.s<=t.s&&this.e>=t.e)}equals(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return e>=i?null:co.fromDateTimes(e,i)}union(t){if(!this.isValid)return this;const e=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return co.fromDateTimes(e,i)}static merge(t){const[e,i]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],i)=>e?e.overlaps(i)||e.abutsStart(i)?[t,e.union(i)]:[t.concat([e]),i]:[t,i]),[[],null]);return i&&e.push(i),e}static xor(t){let e=null,i=0;const n=[],o=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),r=Array.prototype.concat(...o).sort(((t,e)=>t.time-e.time));for(const t of r)i+="s"===t.type?1:-1,1===i?e=t.time:(e&&+e!=+t.time&&n.push(co.fromDateTimes(e,t.time)),e=null);return co.merge(n)}difference(...t){return co.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:lo}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:lo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:lo}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:lo}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:lo}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):ao.invalid(this.invalidReason)}mapEndpoints(t){return co.fromDateTimes(t(this.s),t(this.e))}}class ho{static hasDST(t=en.defaultZone){const e=hr.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return Hi.isValidZone(t)}static normalizeZone(t){return Gi(t,en.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||pn.create(e,i,o)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||pn.create(e,i,o)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null}={}){return(n||pn.create(e,i,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null}={}){return(n||pn.create(e,i,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return pn.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return pn.create(e,null,"gregory").eras(t)}static features(){return{relative:Qe()}}}function uo(t,e){const i=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=i(e)-i(t);return Math.floor(ao.fromMillis(n).as("days"))}function po(t,e,i,n){let[o,r,s,a]=function(t,e,i){const n=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const i=uo(t,e);return(i-i%7)/7}],["days",uo]],o={};let r,s;for(const[a,l]of n)if(i.indexOf(a)>=0){r=a;let i=l(t,e);s=t.plus({[a]:i}),s>e?(t=t.plus({[a]:i-1}),i-=1):t=s,o[a]=i}return[t,o,s,r]}(t,e,i);const l=e-o,c=i.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===c.length&&(s<e&&(s=o.plus({[a]:1})),s!==o&&(r[a]=(r[a]||0)+l/(s-o)));const h=ao.fromObject(r,n);return c.length>0?ao.fromMillis(l,n).shiftTo(...c).plus(h):h}const mo={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},fo={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]},go=mo.hanidec.replace(/[\[|\]]/g,"").split("");function vo({numberingSystem:t},e=""){return new RegExp(`${mo[t||"latn"]}${e}`)}function yo(t,e=(t=>t)){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let i=0;i<t.length;i++){const n=t.charCodeAt(i);if(-1!==t[i].search(mo.hanidec))e+=go.indexOf(t[i]);else for(const t in fo){const[i,o]=fo[t];n>=i&&n<=o&&(e+=n-i)}}return parseInt(e,10)}return e}(t))}}const bo=`[ ${String.fromCharCode(160)}]`,_o=new RegExp(bo,"g");function xo(t){return t.replace(/\./g,"\\.?").replace(_o,bo)}function wo(t){return t.replace(/\./g,"").replace(_o," ").toLowerCase()}function ko(t,e){return null===t?null:{regex:RegExp(t.map(xo).join("|")),deser:([i])=>t.findIndex((t=>wo(i)===wo(t)))+e}}function Co(t,e){return{regex:t,deser:([,t,e])=>fi(t,e),groups:e}}function So(t){return{regex:t,deser:([t])=>t}}const Eo={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"}};let To=null;function Mo(t,e){if(t.literal)return t;const i=Ni.macroTokenToFormatOpts(t.val);if(!i)return t;const n=Ni.create(e,i).formatDateTimeParts((To||(To=hr.fromMillis(1555555555555)),To)).map((t=>function(t,e,i){const{type:n,value:o}=t;if("literal"===n)return{literal:!0,val:o};const r=i[n];let s=Eo[n];return"object"==typeof s&&(s=s[r]),s?{literal:!1,val:s}:void 0}(t,0,i)));return n.includes(void 0)?t:n}function Do(t,e,i){const n=function(t,e){return Array.prototype.concat(...t.map((t=>Mo(t,e))))}(Ni.parseFormat(i),t),o=n.map((e=>function(t,e){const i=vo(e),n=vo(e,"{2}"),o=vo(e,"{3}"),r=vo(e,"{4}"),s=vo(e,"{6}"),a=vo(e,"{1,2}"),l=vo(e,"{1,3}"),c=vo(e,"{1,6}"),h=vo(e,"{1,9}"),u=vo(e,"{2,4}"),d=vo(e,"{4,6}"),p=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},m=(m=>{if(t.literal)return p(m);switch(m.val){case"G":return ko(e.eras("short",!1),0);case"GG":return ko(e.eras("long",!1),0);case"y":return yo(c);case"yy":case"kk":return yo(u,pi);case"yyyy":case"kkkk":return yo(r);case"yyyyy":return yo(d);case"yyyyyy":return yo(s);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return yo(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return yo(n);case"MMM":return ko(e.months("short",!0,!1),1);case"MMMM":return ko(e.months("long",!0,!1),1);case"LLL":return ko(e.months("short",!1,!1),1);case"LLLL":return ko(e.months("long",!1,!1),1);case"o":case"S":return yo(l);case"ooo":case"SSS":return yo(o);case"u":return So(h);case"uu":return So(a);case"uuu":case"E":case"c":return yo(i);case"a":return ko(e.meridiems(),0);case"EEE":return ko(e.weekdays("short",!1,!1),1);case"EEEE":return ko(e.weekdays("long",!1,!1),1);case"ccc":return ko(e.weekdays("short",!0,!1),1);case"cccc":return ko(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Co(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return Co(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return So(/[a-z_+-/]{1,256}?/i);default:return p(m)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return m.token=t,m}(e,t))),r=o.find((t=>t.invalidReason));if(r)return{input:e,tokens:n,invalidReason:r.invalidReason};{const[t,i]=function(t){const e=t.map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"");return[`^${e}$`,t]}(o),r=RegExp(t,"i"),[s,a]=function(t,e,i){const n=t.match(e);if(n){const t={};let e=1;for(const o in i)if(ei(i,o)){const r=i[o],s=r.groups?r.groups+1:1;!r.literal&&r.token&&(t[r.token.val[0]]=r.deser(n.slice(e,e+s))),e+=s}return[n,t]}return[n,{}]}(e,r,i),[l,c,h]=a?function(t){let e,i=null;Ke(t.z)||(i=Hi.create(t.z)),Ke(t.Z)||(i||(i=new Vi(t.Z)),e=t.Z),Ke(t.q)||(t.M=3*(t.q-1)+1),Ke(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Ke(t.u)||(t.S=si(t.u));const n=Object.keys(t).reduce(((e,i)=>{const n=(t=>{switch(t){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}})(i);return n&&(e[n]=t[i]),e}),{});return[n,i,e]}(a):[null,null,void 0];if(ei(a,"a")&&ei(a,"H"))throw new xe("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:r,rawMatches:s,matches:a,result:l,zone:c,specificOffset:h}}}const $o=[0,31,59,90,120,151,181,212,243,273,304,334],Ao=[0,31,60,91,121,152,182,213,244,274,305,335];function Lo(t,e){return new zi("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Oo(t,e,i){const n=new Date(Date.UTC(t,e-1,i));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const o=n.getUTCDay();return 0===o?7:o}function Po(t,e,i){return i+(li(t)?Ao:$o)[e-1]}function Io(t,e){const i=li(t)?Ao:$o,n=i.findIndex((t=>t<e));return{month:n+1,day:e-i[n]}}function No(t){const{year:e,month:i,day:n}=t,o=Po(e,i,n),r=Oo(e,i,n);let s,a=Math.floor((o-r+10)/7);return a<1?(s=e-1,a=di(s)):a>di(e)?(s=e+1,a=1):s=e,{weekYear:s,weekNumber:a,weekday:r,...bi(t)}}function zo(t){const{weekYear:e,weekNumber:i,weekday:n}=t,o=Oo(e,1,4),r=ci(e);let s,a=7*i+n-o-3;a<1?(s=e-1,a+=ci(s)):a>r?(s=e+1,a-=ci(e)):s=e;const{month:l,day:c}=Io(s,a);return{year:s,month:l,day:c,...bi(t)}}function Ro(t){const{year:e,month:i,day:n}=t;return{year:e,ordinal:Po(e,i,n),...bi(t)}}function Bo(t){const{year:e,ordinal:i}=t,{month:n,day:o}=Io(e,i);return{year:e,month:n,day:o,...bi(t)}}function Fo(t){const e=Xe(t.year),i=ii(t.month,1,12),n=ii(t.day,1,hi(t.year,t.month));return e?i?!n&&Lo("day",t.day):Lo("month",t.month):Lo("year",t.year)}function qo(t){const{hour:e,minute:i,second:n,millisecond:o}=t,r=ii(e,0,23)||24===e&&0===i&&0===n&&0===o,s=ii(i,0,59),a=ii(n,0,59),l=ii(o,0,999);return r?s?a?!l&&Lo("millisecond",o):Lo("second",n):Lo("minute",i):Lo("hour",e)}const jo="Invalid DateTime";function Zo(t){return new zi("unsupported zone",`the zone "${t.name}" is not supported`)}function Ho(t){return null===t.weekData&&(t.weekData=No(t.c)),t.weekData}function Uo(t,e){const i={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new hr({...i,...e,old:i})}function Vo(t,e,i){let n=t-60*e*1e3;const o=i.offset(n);if(e===o)return[n,e];n-=60*(o-e)*1e3;const r=i.offset(n);return o===r?[n,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}function Wo(t,e){const i=new Date(t+=60*e*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Go(t,e,i){return Vo(ui(t),e,i)}function Yo(t,e){const i=t.o,n=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),r={...t.c,year:n,month:o,day:Math.min(t.c.day,hi(n,o))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},s=ao.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"),a=ui(r);let[l,c]=Vo(a,i,t.zone);return 0!==s&&(l+=s,c=t.zone.offset(l)),{ts:l,o:c}}function Ko(t,e,i,n,o,r){const{setZone:s,zone:a}=i;if(t&&0!==Object.keys(t).length){const n=e||a,o=hr.fromObject(t,{...i,zone:n,specificOffset:r});return s?o:o.setZone(a)}return hr.invalid(new zi("unparsable",`the input "${o}" can't be parsed as ${n}`))}function Jo(t,e,i=!0){return t.isValid?Ni.create(pn.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Xo(t,e){const i=t.c.year>9999||t.c.year<0;let n="";return i&&t.c.year>=0&&(n+="+"),n+=ni(t.c.year,i?6:4),e?(n+="-",n+=ni(t.c.month),n+="-",n+=ni(t.c.day)):(n+=ni(t.c.month),n+=ni(t.c.day)),n}function Qo(t,e,i,n,o,r){let s=ni(t.c.hour);return e?(s+=":",s+=ni(t.c.minute),0===t.c.second&&i||(s+=":")):s+=ni(t.c.minute),0===t.c.second&&i||(s+=ni(t.c.second),0===t.c.millisecond&&n||(s+=".",s+=ni(t.c.millisecond,3))),o&&(t.isOffsetFixed&&0===t.offset&&!r?s+="Z":t.o<0?(s+="-",s+=ni(Math.trunc(-t.o/60)),s+=":",s+=ni(Math.trunc(-t.o%60))):(s+="+",s+=ni(Math.trunc(t.o/60)),s+=":",s+=ni(Math.trunc(t.o%60)))),r&&(s+="["+t.zone.ianaName+"]"),s}const tr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},er={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ir={ordinal:1,hour:0,minute:0,second:0,millisecond:0},nr=["year","month","day","hour","minute","second","millisecond"],or=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rr=["year","ordinal","hour","minute","second","millisecond"];function sr(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new we(t);return e}function ar(t,e){const i=Gi(e.zone,en.defaultZone),n=pn.fromObject(e),o=en.now();let r,s;if(Ke(t.year))r=o;else{for(const e of nr)Ke(t[e])&&(t[e]=tr[e]);const e=Fo(t)||qo(t);if(e)return hr.invalid(e);const n=i.offset(o);[r,s]=Go(t,n,i)}return new hr({ts:r,zone:i,loc:n,o:s})}function lr(t,e,i){const n=!!Ke(i.round)||i.round,o=(t,o)=>{t=ai(t,n||i.calendary?0:2,!0);return e.loc.clone(i).relFormatter(i).format(t,o)},r=n=>i.calendary?e.hasSame(t,n)?0:e.startOf(n).diff(t.startOf(n),n).get(n):e.diff(t,n).get(n);if(i.unit)return o(r(i.unit),i.unit);for(const t of i.units){const e=r(t);if(Math.abs(e)>=1)return o(e,t)}return o(t>e?-0:0,i.units[i.units.length-1])}function cr(t){let e,i={};return t.length>0&&"object"==typeof t[t.length-1]?(i=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[i,e]}class hr{constructor(t){const e=t.zone||en.defaultZone;let i=t.invalid||(Number.isNaN(t.ts)?new zi("invalid input"):null)||(e.isValid?null:Zo(e));this.ts=Ke(t.ts)?en.now():t.ts;let n=null,o=null;if(!i){if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[n,o]=[t.old.c,t.old.o];else{const t=e.offset(this.ts);n=Wo(this.ts,t),i=Number.isNaN(n.year)?new zi("invalid input"):null,n=i?null:n,o=i?null:t}}this._zone=e,this.loc=t.loc||pn.create(),this.invalid=i,this.weekData=null,this.c=n,this.o=o,this.isLuxonDateTime=!0}static now(){return new hr({})}static local(){const[t,e]=cr(arguments),[i,n,o,r,s,a,l]=e;return ar({year:i,month:n,day:o,hour:r,minute:s,second:a,millisecond:l},t)}static utc(){const[t,e]=cr(arguments),[i,n,o,r,s,a,l]=e;return t.zone=Vi.utcInstance,ar({year:i,month:n,day:o,hour:r,minute:s,second:a,millisecond:l},t)}static fromJSDate(t,e={}){const i=function(t){return"[object Date]"===Object.prototype.toString.call(t)}(t)?t.valueOf():NaN;if(Number.isNaN(i))return hr.invalid("invalid input");const n=Gi(e.zone,en.defaultZone);return n.isValid?new hr({ts:i,zone:n,loc:pn.fromObject(e)}):hr.invalid(Zo(n))}static fromMillis(t,e={}){if(Je(t))return t<-864e13||t>864e13?hr.invalid("Timestamp out of range"):new hr({ts:t,zone:Gi(e.zone,en.defaultZone),loc:pn.fromObject(e)});throw new ke(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(Je(t))return new hr({ts:1e3*t,zone:Gi(e.zone,en.defaultZone),loc:pn.fromObject(e)});throw new ke("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const i=Gi(e.zone,en.defaultZone);if(!i.isValid)return hr.invalid(Zo(i));const n=en.now(),o=Ke(e.specificOffset)?i.offset(n):e.specificOffset,r=vi(t,sr),s=!Ke(r.ordinal),a=!Ke(r.year),l=!Ke(r.month)||!Ke(r.day),c=a||l,h=r.weekYear||r.weekNumber,u=pn.fromObject(e);if((c||s)&&h)throw new xe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new xe("Can't mix ordinal dates with month/day");const d=h||r.weekday&&!c;let p,m,f=Wo(n,o);d?(p=or,m=er,f=No(f)):s?(p=rr,m=ir,f=Ro(f)):(p=nr,m=tr);let g=!1;for(const t of p){Ke(r[t])?r[t]=g?m[t]:f[t]:g=!0}const v=d?function(t){const e=Xe(t.weekYear),i=ii(t.weekNumber,1,di(t.weekYear)),n=ii(t.weekday,1,7);return e?i?!n&&Lo("weekday",t.weekday):Lo("week",t.week):Lo("weekYear",t.weekYear)}(r):s?function(t){const e=Xe(t.year),i=ii(t.ordinal,1,ci(t.year));return e?!i&&Lo("ordinal",t.ordinal):Lo("year",t.year)}(r):Fo(r),y=v||qo(r);if(y)return hr.invalid(y);const b=d?zo(r):s?Bo(r):r,[_,x]=Go(b,o,i),w=new hr({ts:_,zone:i,o:x,loc:u});return r.weekday&&c&&t.weekday!==w.weekday?hr.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${w.toISO()}`):w}static fromISO(t,e={}){const[i,n]=function(t){return gn(t,[jn,Vn],[Zn,Wn],[Hn,Gn],[Un,Yn])}(t);return Ko(i,n,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[i,n]=function(t){return gn(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[In,Nn])}(t);return Ko(i,n,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[i,n]=function(t){return gn(t,[zn,Fn],[Rn,Fn],[Bn,qn])}(t);return Ko(i,n,e,"HTTP",e)}static fromFormat(t,e,i={}){if(Ke(t)||Ke(e))throw new ke("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:o=null}=i,r=pn.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),[s,a,l,c]=function(t,e,i){const{result:n,zone:o,specificOffset:r,invalidReason:s}=Do(t,e,i);return[n,o,r,s]}(r,t,e);return c?hr.invalid(c):Ko(s,a,i,`format ${e}`,t,l)}static fromString(t,e,i={}){return hr.fromFormat(t,e,i)}static fromSQL(t,e={}){const[i,n]=function(t){return gn(t,[Jn,Vn],[Xn,Qn])}(t);return Ko(i,n,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new ke("need to specify a reason the DateTime is invalid");const i=t instanceof zi?t:new zi(t,e);if(en.throwOnInvalid)throw new ye(i);return new hr({invalid:i})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ho(this).weekYear:NaN}get weekNumber(){return this.isValid?Ho(this).weekNumber:NaN}get weekday(){return this.isValid?Ho(this).weekday:NaN}get ordinal(){return this.isValid?Ro(this.c).ordinal:NaN}get monthShort(){return this.isValid?ho.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ho.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ho.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ho.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return li(this.year)}get daysInMonth(){return hi(this.year,this.month)}get daysInYear(){return this.isValid?ci(this.year):NaN}get weeksInWeekYear(){return this.isValid?di(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:i,calendar:n}=Ni.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:i,outputCalendar:n}}toUTC(t=0,e={}){return this.setZone(Vi.instance(t),e)}toLocal(){return this.setZone(en.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:i=!1}={}){if((t=Gi(t,en.defaultZone)).equals(this.zone))return this;if(t.isValid){let n=this.ts;if(e||i){const e=t.offset(this.ts),i=this.toObject();[n]=Go(i,e,t)}return Uo(this,{ts:n,zone:t})}return hr.invalid(Zo(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:i}={}){return Uo(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:i})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=vi(t,sr),i=!Ke(e.weekYear)||!Ke(e.weekNumber)||!Ke(e.weekday),n=!Ke(e.ordinal),o=!Ke(e.year),r=!Ke(e.month)||!Ke(e.day),s=o||r,a=e.weekYear||e.weekNumber;if((s||n)&&a)throw new xe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(r&&n)throw new xe("Can't mix ordinal dates with month/day");let l;i?l=zo({...No(this.c),...e}):Ke(e.ordinal)?(l={...this.toObject(),...e},Ke(e.day)&&(l.day=Math.min(hi(l.year,l.month),l.day))):l=Bo({...Ro(this.c),...e});const[c,h]=Go(l,this.o,this.zone);return Uo(this,{ts:c,o:h})}plus(t){if(!this.isValid)return this;return Uo(this,Yo(this,ao.fromDurationLike(t)))}minus(t){if(!this.isValid)return this;return Uo(this,Yo(this,ao.fromDurationLike(t).negate()))}startOf(t){if(!this.isValid)return this;const e={},i=ao.normalizeUnit(t);switch(i){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===i&&(e.weekday=1),"quarters"===i){const t=Math.ceil(this.month/3);e.month=3*(t-1)+1}return this.set(e)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,e={}){return this.isValid?Ni.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):jo}toLocaleString(t=Me,e={}){return this.isValid?Ni.create(this.loc.clone(e),t).formatDateTime(this):jo}toLocaleParts(t={}){return this.isValid?Ni.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:i=!1,includeOffset:n=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const r="extended"===t;let s=Xo(this,r);return s+="T",s+=Qo(this,r,e,i,n,o),s}toISODate({format:t="extended"}={}){return this.isValid?Xo(this,"extended"===t):null}toISOWeekDate(){return Jo(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:i=!0,includePrefix:n=!1,extendedZone:o=!1,format:r="extended"}={}){if(!this.isValid)return null;return(n?"T":"")+Qo(this,"extended"===r,e,t,i,o)}toRFC2822(){return Jo(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Jo(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Xo(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:i=!0}={}){let n="HH:mm:ss.SSS";return(e||t)&&(i&&(n+=" "),e?n+="z":t&&(n+="ZZ")),Jo(this,n,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():jo}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",i={}){if(!this.isValid||!t.isValid)return ao.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...i},o=(a=e,Array.isArray(a)?a:[a]).map(ao.normalizeUnit),r=t.valueOf()>this.valueOf(),s=po(r?this:t,r?t:this,o,n);var a;return r?s.negate():s}diffNow(t="milliseconds",e={}){return this.diff(hr.now(),t,e)}until(t){return this.isValid?co.fromDateTimes(this,t):this}hasSame(t,e){if(!this.isValid)return!1;const i=t.valueOf(),n=this.setZone(t.zone,{keepLocalTime:!0});return n.startOf(e)<=i&&i<=n.endOf(e)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||hr.fromObject({},{zone:this.zone}),i=t.padding?this<e?-t.padding:t.padding:0;let n=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(n=t.unit,o=void 0),lr(e,this.plus(i),{...t,numeric:"always",units:n,unit:o})}toRelativeCalendar(t={}){return this.isValid?lr(t.base||hr.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(hr.isDateTime))throw new ke("min requires all arguments be DateTimes");return ti(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(hr.isDateTime))throw new ke("max requires all arguments be DateTimes");return ti(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,i={}){const{locale:n=null,numberingSystem:o=null}=i;return Do(pn.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,i={}){return hr.fromFormatExplain(t,e,i)}static get DATE_SHORT(){return Me}static get DATE_MED(){return De}static get DATE_MED_WITH_WEEKDAY(){return $e}static get DATE_FULL(){return Ae}static get DATE_HUGE(){return Le}static get TIME_SIMPLE(){return Oe}static get TIME_WITH_SECONDS(){return Pe}static get TIME_WITH_SHORT_OFFSET(){return Ie}static get TIME_WITH_LONG_OFFSET(){return Ne}static get TIME_24_SIMPLE(){return ze}static get TIME_24_WITH_SECONDS(){return Re}static get TIME_24_WITH_SHORT_OFFSET(){return Be}static get TIME_24_WITH_LONG_OFFSET(){return Fe}static get DATETIME_SHORT(){return qe}static get DATETIME_SHORT_WITH_SECONDS(){return je}static get DATETIME_MED(){return Ze}static get DATETIME_MED_WITH_SECONDS(){return He}static get DATETIME_MED_WITH_WEEKDAY(){return Ue}static get DATETIME_FULL(){return Ve}static get DATETIME_FULL_WITH_SECONDS(){return We}static get DATETIME_HUGE(){return Ge}static get DATETIME_HUGE_WITH_SECONDS(){return Ye}}function ur(t){if(hr.isDateTime(t))return t;if(t&&t.valueOf&&Je(t.valueOf()))return hr.fromJSDate(t);if(t&&"object"==typeof t)return hr.fromObject(t);throw new ke(`Unknown datetime argument: ${t}, of type ${typeof t}`)}class dr extends tt{constructor(){super(...arguments),this.ttl=6e4,this.max=20,this.keyedAssets={},this.locale=[...navigator.languages],this.fields={},this.groups={},this.languages={},this.pinnedFields=[],this.langService=new fe,this.humanizer=new ge(this.langService),this.pendingResolves={},this.fetching={}}firstUpdated(){this.cache=me(this.max,this.ttl);const t=[];this.completionEndpoint&&t.push(Wt(this.completionEndpoint).then((t=>{this.schema=t.json.context,this.fnOptions=t.json.functions}))),this.fieldsEndpoint&&t.push(Xt(this.fieldsEndpoint).then((t=>{this.keyedAssets.fields=[],this.pinnedFields=[],t.forEach((t=>{this.keyedAssets.fields.push(t.key),this.fields[t.key]=t,t.pinned&&this.pinnedFields.push(t)})),this.pinnedFields.sort(((t,e)=>e.priority-t.priority))}))),this.globalsEndpoint&&t.push(Xt(this.globalsEndpoint).then((t=>{this.keyedAssets.globals=t.map((t=>t.key))}))),this.languagesEndpoint&&t.push(Xt(this.languagesEndpoint).then((t=>{this.languages=t.reduce((function(t,e){return t[e.value]=e.name,t}),{})}))),this.groupsEndpoint&&t.push(Xt(this.groupsEndpoint).then((t=>{t.forEach((t=>{this.groups[t.uuid]=t}))}))),this.workspaceEndpoint&&t.push(Wt(this.workspaceEndpoint).then((t=>{this.workspace=t.json;const e=t.headers.get("content-language");e&&(this.locale=[e,...this.locale])}))),this.httpComplete=Promise.all(t)}getLanguageCode(){return this.locale.length>0?this.locale[0].split("-")[0]:"en"}getShortDuration(t){const e=hr.fromISO(t),i=hr.now(),n=e.diff(i).valueOf();return this.humanizer.humanize(n,{language:this.getLanguageCode(),largest:1,round:!1})}setKeyedAssets(t,e){this.keyedAssets[t]=e}updated(t){super.updated(t)}getCompletionSchema(){return this.schema}getFunctions(){return this.fnOptions}getKeyedAssets(){return this.keyedAssets}getContactField(t){return this.fields[t]}getPinnedFields(){return this.pinnedFields}getLanguageName(t){return this.languages[t]}isDynamicGroup(t){const e=this.groups[t];return!(!e||!e.query)}getWorkspace(){return this.workspace}formatDate(t){return new Date(t).toLocaleString(this.locale,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"})}getUrl(t,e){return!(e=e||{}).force&&this.cache.has(t)?new Promise((e=>{e(this.cache.get(t))})):Wt(t,e.controller,e.headers||{}).then((e=>new Promise(((i,n)=>{e.status>=200&&e.status<=300?(this.cache.set(t,e),i(e)):n("Status: "+e.status)}))))}getResults(t,e){e=e||{};const i="results_"+t,n=this.cache.get(i);return!e.force&&n?new Promise((t=>{t(n)})):new Promise((e=>{const n=this.pendingResolves[t]||[];n.push(e),this.pendingResolves[t]=n,n.length<=1&&Kt(t).then((e=>{this.cache.set(i,e);const n=this.pendingResolves[t]||[];for(;n.length>0;){n.pop()(e)}}))}))}updateCache(t,e){this.cache.set(t,e),this.fireCustomEvent(de.StoreUpdated,{url:t,data:e})}makeRequest(t,e){const i=this.fetching[t],n=(new Date).getTime();if(i&&n-i<500)return;this.fetching[t]=n,e=e||{};const o=this.cache.get(t);o&&!e.force?this.fireCustomEvent(de.StoreUpdated,{url:t,data:o}):Kt(t).then((i=>{i=e.prepareData?e.prepareData(i):i,this.cache.set(t,i),this.fireCustomEvent(de.StoreUpdated,{url:t,data:i}),delete this.fetching[t]}))}}t([it({type:Number})],dr.prototype,"ttl",void 0),t([it({type:Number})],dr.prototype,"max",void 0),t([it({type:String,attribute:"completion"})],dr.prototype,"completionEndpoint",void 0),t([it({type:String,attribute:"fields"})],dr.prototype,"fieldsEndpoint",void 0),t([it({type:String,attribute:"groups"})],dr.prototype,"groupsEndpoint",void 0),t([it({type:String,attribute:"globals"})],dr.prototype,"globalsEndpoint",void 0),t([it({type:String,attribute:"languages"})],dr.prototype,"languagesEndpoint",void 0),t([it({type:String,attribute:"workspace"})],dr.prototype,"workspaceEndpoint",void 0),t([it({type:Object,attribute:!1})],dr.prototype,"schema",void 0),t([it({type:Object,attribute:!1})],dr.prototype,"fnOptions",void 0),t([it({type:Object,attribute:!1})],dr.prototype,"keyedAssets",void 0);class pr extends tt{constructor(){super(...arguments),this.marginHorizontal=0,this.marginVertical=7,this.scrollPct=75,this.cursorIndex=-1,this.nameKey="name",this.loading=!1,this.getName=function(t){return t[this.nameKey||"name"]},this.renderInputOption=function(){return null},this.scrollHeight=0,this.triggerScroll=!1,this.scrollParent=null,this.setCursor=oe((function(t){t!==this.cursorIndex&&(this.cursorIndex=t)}),50)}static get styles(){return r`
289
+ `}}t([it({type:Boolean})],Ht.prototype,"textarea",void 0),t([it({type:Boolean})],Ht.prototype,"datepicker",void 0),t([it({type:Boolean})],Ht.prototype,"datetimepicker",void 0),t([it({type:String})],Ht.prototype,"placeholder",void 0),t([it({type:String})],Ht.prototype,"value",void 0),t([it({type:String})],Ht.prototype,"name",void 0),t([it({type:Boolean})],Ht.prototype,"password",void 0),t([it({type:Number})],Ht.prototype,"maxlength",void 0),t([it({type:Object})],Ht.prototype,"inputElement",void 0),t([it({type:Object})],Ht.prototype,"dateElement",void 0),t([it({type:Boolean})],Ht.prototype,"clearable",void 0),t([it({type:Boolean})],Ht.prototype,"gsm",void 0),t([it({type:String})],Ht.prototype,"counter",void 0),t([it({type:Boolean})],Ht.prototype,"loading",void 0),t([it({type:Boolean})],Ht.prototype,"submitOnEnter",void 0),t([it()],Ht.prototype,"onBlur",void 0),t([it({type:Boolean})],Ht.prototype,"disabled",void 0),t([it({type:Boolean})],Ht.prototype,"autogrow",void 0);const Ut=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,Vt=(t={})=>{const e=(t=>{for(const e of document.cookie.split(";")){const i=e.indexOf("=");let n=e.substr(0,i),o=e.substr(i+1);if(n=n.trim(),o=o.trim(),n===t)return o}return null})("csrftoken"),i=e?{"X-CSRFToken":e}:{};return i["X-Requested-With"]="XMLHttpRequest",Object.keys(t).forEach((e=>{i[e]=t[e]})),i},Wt=(t,e=null,i={})=>new Promise(((n,o)=>{const r={method:"GET",headers:Vt(i)};e&&(r.signal=e.signal),fetch(t,r).then((t=>{t.text().then((i=>{let o={};try{o=JSON.parse(i)}catch(t){}n({controller:e,body:i,json:o,headers:t.headers,status:t.status})}))})).catch((t=>{o(t)}))})),Gt=t=>{const e=[];Object.keys(t).forEach((i=>{t[i]&&e.push(i)}));let i=e.join(" ");return i.trim().length>0&&(i=" "+i),i},Yt=(t,e=null)=>new Promise(((i,n)=>{Wt(t,e).then((t=>{i({results:t.json.results,next:t.json.next})})).catch((t=>n(t)))})),Kt=async t=>{if(!t)return new Promise((t=>t([])));let e=[],i=t;for(;i;){const t=await Yt(i);t.results&&(e=e.concat(t.results)),i=t.next}return e},Jt=t=>new Promise(((e,i)=>{Wt(t).then((t=>{e({assets:t.json.results,next:t.json.next})})).catch((t=>i(t)))})),Xt=async t=>{if(!t)return new Promise((t=>t([])));let e=[],i=t;for(;i;){const t=await Jt(i);e=e.concat(t.assets),i=t.next}return e},Qt=(t,e,i={},n=null)=>{const o=Vt(i);n&&(o["Content-Type"]=n);const r={method:"POST",headers:o,body:e};return new Promise(((e,i)=>{fetch(t,r).then((async t=>{t.text().then((i=>{let n={};try{n=JSON.parse(i)}catch(t){}e({body:i,json:n,headers:t.headers,status:t.status})}))})).catch((t=>{i(t)}))}))},te=(t,e)=>Qt(t,JSON.stringify(e),!1,"application/json"),ee=t=>{const e=t.parentNode||t.host;if(e){const t=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY,i=t&&!(t.includes("hidden")||t.includes("visible"));return e?i&&e.scrollHeight>=e.clientHeight?e:ee(e):null}return null};const ie=new class{getCurrentDate(){return new Date}},ne=(t,e={suffix:""})=>{const{compareDate:i,hideRecentText:n,suffix:o}=e,r=i||ie.getCurrentDate(),s=Math.floor((r.getTime()-t.getTime())/1e3);if(s<60)return i?s+"s"+o:!n&&o?o:"just now";if(s<3600)return Math.round(s/60)+"m"+o;if(s<=86400)return Math.round(s/3600)+"h"+o;if(s<=2592e3)return Math.round(s/86400)+"d"+o;if(s<15552e3)return Math.round(s/2592e3)+"mth"+o;return t.getDate()+" "+t.toDateString().match(/ [a-zA-Z]*/)[0].replace(" ","")+(t.getFullYear()==r.getFullYear()?"":" "+t.getFullYear())},oe=(t,e)=>{let i=!0;return function(...n){i&&(i=!1,t.apply(this,n),setTimeout((()=>{i=!0}),e))}},re=(t,e="and")=>1===t.length?t[0]:2===t.length?"html"===t[0].type?O`${t[0]} ${e} ${t[1]}`:t.join(" "+e+" "):"html"===t[0].type?t.map(((i,n)=>n<t.length-1?O`${i}, `:O`${e} ${i}`)):t.join(", ")+e+t[t.length-1],se=(t,e,i="and")=>re(t.map(e),i),ae=t=>"true"===((t=>{let e=null;if(document.cookie&&""!=document.cookie){const i=document.cookie.split(";");for(let n=0;n<i.length;n++){const o=i[n].trim();if(o.substring(0,t.length+1)==t+"="){e=decodeURIComponent(o.substring(t.length+1));break}}}return e})(t)||"");var le,ce,he,ue,de;!function(t){t.MENU_COLLAPSED="menu-collapsed",t.TICKET_SHOW_DETAILS="tickets.show-details"}(le||(le={})),function(t){t.DayFirst="day_first",t.MonthFirst="month_first",t.YearFirst="year_first"}(ce||(ce={})),function(t){t.CampaignEvent="campaign_event",t.ScheduledBroadcast="scheduled_broadcast",t.ScheduledTrigger="scheduled_trigger"}(he||(he={})),function(t){t.Open="open",t.Closed="closed"}(ue||(ue={})),function(t){t.Loaded="temba-loaded",t.Canceled="temba-canceled",t.CursorChanged="temba-cursor-changed",t.Refreshed="temba-refreshed",t.Selection="temba-selection",t.ButtonClicked="temba-button-clicked",t.DialogHidden="temba-dialog-hidden",t.ScrollThreshold="temba-scroll-threshold",t.ContentChanged="temba-content-changed",t.ContextChanged="temba-context-changed",t.FetchComplete="temba-fetch-complete",t.Submitted="temba-submitted",t.Redirected="temba-redirected",t.NoPath="temba-no-path",t.StoreUpdated="temba-store-updated",t.Ready="temba-ready"}(de||(de={}));class pe{constructor(t=0,e=0){this.first=null,this.items=Object.create(null),this.last=null,this.max=t,this.size=0,this.ttl=e}has(t){return t in this.items}clear(){return this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this}delete(t){if(this.has(t)){const e=this.items[t];delete this.items[t],this.size--,null!==e.prev&&(e.prev.next=e.next),null!==e.next&&(e.next.prev=e.prev),this.first===e&&(this.first=e.next),this.last===e&&(this.last=e.prev)}return this}evict(t=!1){if(t||this.size>0){const t=this.first;delete this.items[t.key],this.size--,0===this.size?(this.first=null,this.last=null):(this.first=t.next,this.first.prev=null)}return this}get(t){let e;if(this.has(t)){const i=this.items[t];this.ttl>0&&i.expiry<=(new Date).getTime()?this.delete(t):(e=i.value,this.set(t,e,!0))}return e}keys(){return Object.keys(this.items)}set(t,e,i=!1){let n;if(i||this.has(t)){if(n=this.items[t],n.value=e,this.last!==n){const t=this.last,e=n.next,i=n.prev;this.first===n&&(this.first=n.next),n.next=null,n.prev=this.last,t.next=n,null!==i&&(i.next=e),null!==e&&(e.prev=i)}}else this.max>0&&this.size===this.max&&this.evict(!0),n=this.items[t]={expiry:this.ttl>0?(new Date).getTime()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:e},1==++this.size?this.first=n:this.last.next=n;return this.last=n,this}}function me(t=1e3,e=0){if(isNaN(t)||t<0)throw new TypeError("Invalid max value");if(isNaN(e)||e<0)throw new TypeError("Invalid ttl value");return new pe(t,e)}var fe=function(){function t(){var t=this;this.languages={ar:{y:function(t){return 1===t?"سنة":"سنوات"},mo:function(t){return 1===t?"شهر":"أشهر"},w:function(t){return 1===t?"أسبوع":"أسابيع"},d:function(t){return 1===t?"يوم":"أيام"},h:function(t){return 1===t?"ساعة":"ساعات"},m:function(e){return["دقيقة","دقائق"][t.getArabicForm(e)]},s:function(t){return 1===t?"ثانية":"ثواني"},ms:function(t){return 1===t?"جزء من الثانية":"أجزاء من الثانية"},decimal:","},bg:{y:function(e){return["години","година","години"][t.getSlavicForm(e)]},mo:function(e){return["месеца","месец","месеца"][t.getSlavicForm(e)]},w:function(e){return["седмици","седмица","седмици"][t.getSlavicForm(e)]},d:function(e){return["дни","ден","дни"][t.getSlavicForm(e)]},h:function(e){return["часа","час","часа"][t.getSlavicForm(e)]},m:function(e){return["минути","минута","минути"][t.getSlavicForm(e)]},s:function(e){return["секунди","секунда","секунди"][t.getSlavicForm(e)]},ms:function(e){return["милисекунди","милисекунда","милисекунди"][t.getSlavicForm(e)]},decimal:","},ca:{y:function(t){return"any"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"os")},w:function(t){return"setman"+(1===t?"a":"es")},d:function(t){return"di"+(1===t?"a":"es")},h:function(t){return"hor"+(1===t?"a":"es")},m:function(t){return"minut"+(1===t?"":"s")},s:function(t){return"segon"+(1===t?"":"s")},ms:function(t){return"milisegon"+(1===t?"":"s")},decimal:","},cs:{y:function(e){return["rok","roku","roky","let"][t.getCzechOrSlovakForm(e)]},mo:function(e){return["měsíc","měsíce","měsíce","měsíců"][t.getCzechOrSlovakForm(e)]},w:function(e){return["týden","týdne","týdny","týdnů"][t.getCzechOrSlovakForm(e)]},d:function(e){return["den","dne","dny","dní"][t.getCzechOrSlovakForm(e)]},h:function(e){return["hodina","hodiny","hodiny","hodin"][t.getCzechOrSlovakForm(e)]},m:function(e){return["minuta","minuty","minuty","minut"][t.getCzechOrSlovakForm(e)]},s:function(e){return["sekunda","sekundy","sekundy","sekund"][t.getCzechOrSlovakForm(e)]},ms:function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][t.getCzechOrSlovakForm(e)]},decimal:","},da:{y:function(){return"år"},mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uge"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"e")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minut"+(1===t?"":"ter")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},de:{y:function(t){return"Jahr"+(1===t?"":"e")},mo:function(t){return"Monat"+(1===t?"":"e")},w:function(t){return"Woche"+(1===t?"":"n")},d:function(t){return"Tag"+(1===t?"":"e")},h:function(t){return"Stunde"+(1===t?"":"n")},m:function(t){return"Minute"+(1===t?"":"n")},s:function(t){return"Sekunde"+(1===t?"":"n")},ms:function(t){return"Millisekunde"+(1===t?"":"n")},decimal:","},el:{y:function(t){return 1===t?"χρόνος":"χρόνια"},mo:function(t){return 1===t?"μήνας":"μήνες"},w:function(t){return 1===t?"εβδομάδα":"εβδομάδες"},d:function(t){return 1===t?"μέρα":"μέρες"},h:function(t){return 1===t?"ώρα":"ώρες"},m:function(t){return 1===t?"λεπτό":"λεπτά"},s:function(t){return 1===t?"δευτερόλεπτο":"δευτερόλεπτα"},ms:function(t){return 1===t?"χιλιοστό του δευτερολέπτου":"χιλιοστά του δευτερολέπτου"},decimal:","},en:{y:function(t){return"year"+(1===t?"":"s")},mo:function(t){return"month"+(1===t?"":"s")},w:function(t){return"week"+(1===t?"":"s")},d:function(t){return"day"+(1===t?"":"s")},h:function(t){return"hour"+(1===t?"":"s")},m:function(t){return"minute"+(1===t?"":"s")},s:function(t){return"second"+(1===t?"":"s")},ms:function(t){return"millisecond"+(1===t?"":"s")},decimal:"."},es:{y:function(t){return"año"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"es")},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"día"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milisegundo"+(1===t?"":"s")},decimal:","},et:{y:function(t){return"aasta"+(1===t?"":"t")},mo:function(t){return"kuu"+(1===t?"":"d")},w:function(t){return"nädal"+(1===t?"":"at")},d:function(t){return"päev"+(1===t?"":"a")},h:function(t){return"tund"+(1===t?"":"i")},m:function(t){return"minut"+(1===t?"":"it")},s:function(t){return"sekund"+(1===t?"":"it")},ms:function(t){return"millisekund"+(1===t?"":"it")},decimal:","},fa:{y:function(){return"سال"},mo:function(){return"ماه"},w:function(){return"هفته"},d:function(){return"روز"},h:function(){return"ساعت"},m:function(){return"دقیقه"},s:function(){return"ثانیه"},ms:function(){return"میلی ثانیه"},decimal:"."},fi:{y:function(t){return 1===t?"vuosi":"vuotta"},mo:function(t){return 1===t?"kuukausi":"kuukautta"},w:function(t){return"viikko"+(1===t?"":"a")},d:function(t){return"päivä"+(1===t?"":"ä")},h:function(t){return"tunti"+(1===t?"":"a")},m:function(t){return"minuutti"+(1===t?"":"a")},s:function(t){return"sekunti"+(1===t?"":"a")},ms:function(t){return"millisekunti"+(1===t?"":"a")},decimal:","},fo:{y:function(){return"ár"},mo:function(t){return 1===t?"mánaður":"mánaðir"},w:function(t){return 1===t?"vika":"vikur"},d:function(t){return 1===t?"dagur":"dagar"},h:function(t){return 1===t?"tími":"tímar"},m:function(t){return 1===t?"minuttur":"minuttir"},s:function(){return"sekund"},ms:function(){return"millisekund"},decimal:","},fr:{y:function(t){return"an"+(t>=2?"s":"")},mo:function(){return"mois"},w:function(t){return"semaine"+(t>=2?"s":"")},d:function(t){return"jour"+(t>=2?"s":"")},h:function(t){return"heure"+(t>=2?"s":"")},m:function(t){return"minute"+(t>=2?"s":"")},s:function(t){return"seconde"+(t>=2?"s":"")},ms:function(t){return"milliseconde"+(t>=2?"s":"")},decimal:","},hr:{y:function(t){return t%10==2||t%10==3||t%10==4?"godine":"godina"},mo:function(t){return 1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci"},w:function(t){return t%10==1&&11!==t?"tjedan":"tjedna"},d:function(t){return 1===t?"dan":"dana"},h:function(t){return 1===t?"sat":2===t||3===t||4===t?"sata":"sati"},m:function(t){var e=t%10;return 2!==e&&3!==e&&4!==e||!(t<10||t>14)?"minuta":"minute"},s:function(t){return 10===t||11===t||12===t||13===t||14===t||16===t||17===t||18===t||19===t||t%10==5?"sekundi":t%10==1?"sekunda":t%10==2||t%10==3||t%10==4?"sekunde":"sekundi"},ms:function(t){return 1===t?"milisekunda":t%10==2||t%10==3||t%10==4?"milisekunde":"milisekundi"},decimal:","},hu:{y:function(){return"év"},mo:function(){return"hónap"},w:function(){return"hét"},d:function(){return"nap"},h:function(){return"óra"},m:function(){return"perc"},s:function(){return"másodperc"},ms:function(){return"ezredmásodperc"},decimal:","},id:{y:function(){return"tahun"},mo:function(){return"bulan"},w:function(){return"minggu"},d:function(){return"hari"},h:function(){return"jam"},m:function(){return"menit"},s:function(){return"detik"},ms:function(){return"milidetik"},decimal:"."},is:{y:function(){return"ár"},mo:function(t){return"mánuð"+(1===t?"ur":"ir")},w:function(t){return"vik"+(1===t?"a":"ur")},d:function(t){return"dag"+(1===t?"ur":"ar")},h:function(t){return"klukkutím"+(1===t?"i":"ar")},m:function(t){return"mínút"+(1===t?"a":"ur")},s:function(t){return"sekúnd"+(1===t?"a":"ur")},ms:function(t){return"millisekúnd"+(1===t?"a":"ur")},decimal:"."},it:{y:function(t){return"ann"+(1===t?"o":"i")},mo:function(t){return"mes"+(1===t?"e":"i")},w:function(t){return"settiman"+(1===t?"a":"e")},d:function(t){return"giorn"+(1===t?"o":"i")},h:function(t){return"or"+(1===t?"a":"e")},m:function(t){return"minut"+(1===t?"o":"i")},s:function(t){return"second"+(1===t?"o":"i")},ms:function(t){return"millisecond"+(1===t?"o":"i")},decimal:","},ja:{y:function(){return"年"},mo:function(){return"月"},w:function(){return"週"},d:function(){return"日"},h:function(){return"時間"},m:function(){return"分"},s:function(){return"秒"},ms:function(){return"ミリ秒"},decimal:"."},ko:{y:function(){return"년"},mo:function(){return"개월"},w:function(){return"주일"},d:function(){return"일"},h:function(){return"시간"},m:function(){return"분"},s:function(){return"초"},ms:function(){return"밀리 초"},decimal:"."},lo:{y:function(){return"ປີ"},mo:function(){return"ເດືອນ"},w:function(){return"ອາທິດ"},d:function(){return"ມື້"},h:function(){return"ຊົ່ວໂມງ"},m:function(){return"ນາທີ"},s:function(){return"ວິນາທີ"},ms:function(){return"ມິນລິວິນາທີ"},decimal:","},lt:{y:function(t){return t%10==0||t%100>=10&&t%100<=20?"metų":"metai"},mo:function(e){return["mėnuo","mėnesiai","mėnesių"][t.getLithuanianForm(e)]},w:function(e){return["savaitė","savaitės","savaičių"][t.getLithuanianForm(e)]},d:function(e){return["diena","dienos","dienų"][t.getLithuanianForm(e)]},h:function(e){return["valanda","valandos","valandų"][t.getLithuanianForm(e)]},m:function(e){return["minutė","minutės","minučių"][t.getLithuanianForm(e)]},s:function(e){return["sekundė","sekundės","sekundžių"][t.getLithuanianForm(e)]},ms:function(e){return["milisekundė","milisekundės","milisekundžių"][t.getLithuanianForm(e)]},decimal:","},lv:{y:function(e){return["gads","gadi"][t.getLatvianForm(e)]},mo:function(e){return["mēnesis","mēneši"][t.getLatvianForm(e)]},w:function(e){return["nedēļa","nedēļas"][t.getLatvianForm(e)]},d:function(e){return["diena","dienas"][t.getLatvianForm(e)]},h:function(e){return["stunda","stundas"][t.getLatvianForm(e)]},m:function(e){return["minūte","minūtes"][t.getLatvianForm(e)]},s:function(e){return["sekunde","sekundes"][t.getLatvianForm(e)]},ms:function(e){return["milisekunde","milisekundes"][t.getLatvianForm(e)]},decimal:","},ms:{y:function(){return"tahun"},mo:function(){return"bulan"},w:function(){return"minggu"},d:function(){return"hari"},h:function(){return"jam"},m:function(){return"minit"},s:function(){return"saat"},ms:function(){return"milisaat"},decimal:"."},nl:{y:function(){return"jaar"},mo:function(t){return 1===t?"maand":"maanden"},w:function(t){return 1===t?"week":"weken"},d:function(t){return 1===t?"dag":"dagen"},h:function(){return"uur"},m:function(t){return 1===t?"minuut":"minuten"},s:function(t){return 1===t?"seconde":"seconden"},ms:function(t){return 1===t?"milliseconde":"milliseconden"},decimal:","},no:{y:function(){return"år"},mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uke"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"er")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minutt"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},pl:{y:function(e){return["rok","roku","lata","lat"][t.getPolishForm(e)]},mo:function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][t.getPolishForm(e)]},w:function(e){return["tydzień","tygodnia","tygodnie","tygodni"][t.getPolishForm(e)]},d:function(e){return["dzień","dnia","dni","dni"][t.getPolishForm(e)]},h:function(e){return["godzina","godziny","godziny","godzin"][t.getPolishForm(e)]},m:function(e){return["minuta","minuty","minuty","minut"][t.getPolishForm(e)]},s:function(e){return["sekunda","sekundy","sekundy","sekund"][t.getPolishForm(e)]},ms:function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][t.getPolishForm(e)]},decimal:","},pt:{y:function(t){return"ano"+(1===t?"":"s")},mo:function(t){return 1===t?"mês":"meses"},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"dia"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milissegundo"+(1===t?"":"s")},decimal:","},ro:{y:function(t){return 1===t?"an":"ani"},mo:function(t){return 1===t?"lună":"luni"},w:function(t){return 1===t?"săptămână":"săptămâni"},d:function(t){return 1===t?"zi":"zile"},h:function(t){return 1===t?"oră":"ore"},m:function(t){return 1===t?"minut":"minute"},s:function(t){return 1===t?"secundă":"secunde"},ms:function(t){return 1===t?"milisecundă":"milisecunde"},decimal:","},ru:{y:function(e){return["лет","год","года"][t.getSlavicForm(e)]},mo:function(e){return["месяцев","месяц","месяца"][t.getSlavicForm(e)]},w:function(e){return["недель","неделя","недели"][t.getSlavicForm(e)]},d:function(e){return["дней","день","дня"][t.getSlavicForm(e)]},h:function(e){return["часов","час","часа"][t.getSlavicForm(e)]},m:function(e){return["минут","минута","минуты"][t.getSlavicForm(e)]},s:function(e){return["секунд","секунда","секунды"][t.getSlavicForm(e)]},ms:function(e){return["миллисекунд","миллисекунда","миллисекунды"][t.getSlavicForm(e)]},decimal:","},uk:{y:function(e){return["років","рік","роки"][t.getSlavicForm(e)]},mo:function(e){return["місяців","місяць","місяці"][t.getSlavicForm(e)]},w:function(e){return["тижнів","тиждень","тижні"][t.getSlavicForm(e)]},d:function(e){return["днів","день","дні"][t.getSlavicForm(e)]},h:function(e){return["годин","година","години"][t.getSlavicForm(e)]},m:function(e){return["хвилин","хвилина","хвилини"][t.getSlavicForm(e)]},s:function(e){return["секунд","секунда","секунди"][t.getSlavicForm(e)]},ms:function(e){return["мілісекунд","мілісекунда","мілісекунди"][t.getSlavicForm(e)]},decimal:","},ur:{y:function(){return"سال"},mo:function(t){return 1===t?"مہینہ":"مہینے"},w:function(t){return 1===t?"ہفتہ":"ہفتے"},d:function(){return"دن"},h:function(t){return 1===t?"گھنٹہ":"گھنٹے"},m:function(){return"منٹ"},s:function(){return"سیکنڈ"},ms:function(){return"ملی سیکنڈ"},decimal:"."},sk:{y:function(e){return["rok","roky","roky","rokov"][t.getCzechOrSlovakForm(e)]},mo:function(e){return["mesiac","mesiace","mesiace","mesiacov"][t.getCzechOrSlovakForm(e)]},w:function(e){return["týždeň","týždne","týždne","týždňov"][t.getCzechOrSlovakForm(e)]},d:function(e){return["deň","dni","dni","dní"][t.getCzechOrSlovakForm(e)]},h:function(e){return["hodina","hodiny","hodiny","hodín"][t.getCzechOrSlovakForm(e)]},m:function(e){return["minúta","minúty","minúty","minút"][t.getCzechOrSlovakForm(e)]},s:function(e){return["sekunda","sekundy","sekundy","sekúnd"][t.getCzechOrSlovakForm(e)]},ms:function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][t.getCzechOrSlovakForm(e)]},decimal:","},sv:{y:function(){return"år"},mo:function(t){return"månad"+(1===t?"":"er")},w:function(t){return"veck"+(1===t?"a":"or")},d:function(t){return"dag"+(1===t?"":"ar")},h:function(t){return"timm"+(1===t?"e":"ar")},m:function(t){return"minut"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},tr:{y:function(){return"yıl"},mo:function(){return"ay"},w:function(){return"hafta"},d:function(){return"gün"},h:function(){return"saat"},m:function(){return"dakika"},s:function(){return"saniye"},ms:function(){return"milisaniye"},decimal:","},th:{y:function(){return"ปี"},mo:function(){return"เดือน"},w:function(){return"อาทิตย์"},d:function(){return"วัน"},h:function(){return"ชั่วโมง"},m:function(){return"นาที"},s:function(){return"วินาที"},ms:function(){return"มิลลิวินาที"},decimal:"."},vi:{y:function(){return"năm"},mo:function(){return"tháng"},w:function(){return"tuần"},d:function(){return"ngày"},h:function(){return"giờ"},m:function(){return"phút"},s:function(){return"giây"},ms:function(){return"mili giây"},decimal:","},zh_CN:{y:function(){return"年"},mo:function(){return"个月"},w:function(){return"周"},d:function(){return"天"},h:function(){return"小时"},m:function(){return"分钟"},s:function(){return"秒"},ms:function(){return"毫秒"},decimal:"."},zh_TW:{y:function(){return"年"},mo:function(){return"個月"},w:function(){return"周"},d:function(){return"天"},h:function(){return"小時"},m:function(){return"分鐘"},s:function(){return"秒"},ms:function(){return"毫秒"},decimal:"."}}}return t.prototype.addLanguage=function(t,e){this.languages[t]=e},t.prototype.getCzechForm=function(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&t%100<10?2:3},t.prototype.getPolishForm=function(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&!(t%100>10&&t%100<20)?2:3},t.prototype.getSlavicForm=function(t){return Math.floor(t)!==t?2:t>=5&&t<=20||t%10>=5&&t%10<=9||t%10==0?0:t%10==1?1:t>1?2:0},t.prototype.getLithuanianForm=function(t){return 1===t||t%10==1&&t%100>20?0:Math.floor(t)!==t||t%10>=2&&t%100>20||t%10>=2&&t%100<10?1:2},t.prototype.getArabicForm=function(t){return t<=2?0:t>2&&t<11?1:0},t.prototype.getCzechOrSlovakForm=function(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&t%100<10?2:3},t.prototype.getLatvianForm=function(t){return 1===t||t%10==1&&t%100!=11?0:1},t}(),ge=function(){function t(t){this.languageUtil=t,this.defaultOptions={language:"en",delimiter:", ",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},largest:10,decimal:".",round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},this.options=void 0,this.options=this.defaultOptions}return t.prototype.humanize=function(t,e){var i=void 0!==e?this.extend(this.options,e):this.defaultOptions;return this.doHumanization(t,i)},t.prototype.setOptions=function(t){this.options=void 0!==t?this.extend(this.defaultOptions,t):this.defaultOptions},t.prototype.getSupportedLanguages=function(){var t=[];for(var e in this.languageUtil.languages)this.languageUtil.languages.hasOwnProperty(e)&&t.push(e);return t},t.prototype.addLanguage=function(t,e){this.languageUtil.addLanguage(t,e)},t.prototype.doHumanization=function(t,e){var i,n,o;t=Math.abs(t);var r=e.languages[e.language]||this.languageUtil.languages[e.language];if(!r)throw new Error("No language "+r+".");var s,a,l,c=[];for(i=0,n=e.units.length;i<n;i++)s=e.units[i],a=e.unitMeasures[s],l=i+1===n?t/a:Math.floor(t/a),c.push({unitCount:l,unitName:s}),t-=l*a;var h=0;for(i=0;i<c.length;i++)if(c[i].unitCount){h=i;break}if(e.round){var u=void 0,d=void 0;for(i=c.length-1;i>=0&&((o=c[i]).unitCount=Math.round(o.unitCount),0!==i);i--)d=c[i-1],u=e.unitMeasures[d.unitName]/e.unitMeasures[o.unitName],(o.unitCount%u==0||e.largest&&e.largest-1<i-h)&&(d.unitCount+=o.unitCount/u,o.unitCount=0)}var p=[];for(i=0,c.length;i<n&&((o=c[i]).unitCount&&p.push(this.render(o.unitCount,o.unitName,r,e)),p.length!==e.largest);i++);return p.length?e.conjunction&&1!==p.length?2===p.length?p.join(e.conjunction):p.length>2?p.slice(0,-1).join(e.delimiter)+(e.serialComma?",":"")+e.conjunction+p.slice(-1):void 0:p.join(e.delimiter):this.render(0,e.units[e.units.length-1],r,e)},t.prototype.render=function(t,e,i,n){var o;o=void 0===n.decimal?i.decimal:n.decimal;var r=t.toString().replace(".",o.toString()),s=i[e](t);return r+n.spacer+s},t.prototype.extend=function(t,e){for(var i in e)t.hasOwnProperty(i)&&(t[i]=e[i]);return t},t}();class ve extends Error{}class ye extends ve{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class be extends ve{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class _e extends ve{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class xe extends ve{}class we extends ve{constructor(t){super(`Invalid unit ${t}`)}}class ke extends ve{}class Ce extends ve{constructor(){super("Zone is an abstract class")}}const Se="numeric",Ee="short",Te="long",Me={year:Se,month:Se,day:Se},De={year:Se,month:Ee,day:Se},$e={year:Se,month:Ee,day:Se,weekday:Ee},Ae={year:Se,month:Te,day:Se},Le={year:Se,month:Te,day:Se,weekday:Te},Oe={hour:Se,minute:Se},Pe={hour:Se,minute:Se,second:Se},Ie={hour:Se,minute:Se,second:Se,timeZoneName:Ee},Ne={hour:Se,minute:Se,second:Se,timeZoneName:Te},ze={hour:Se,minute:Se,hourCycle:"h23"},Re={hour:Se,minute:Se,second:Se,hourCycle:"h23"},Be={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:Ee},Fe={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:Te},qe={year:Se,month:Se,day:Se,hour:Se,minute:Se},je={year:Se,month:Se,day:Se,hour:Se,minute:Se,second:Se},Ze={year:Se,month:Ee,day:Se,hour:Se,minute:Se},He={year:Se,month:Ee,day:Se,hour:Se,minute:Se,second:Se},Ue={year:Se,month:Ee,day:Se,weekday:Ee,hour:Se,minute:Se},Ve={year:Se,month:Te,day:Se,hour:Se,minute:Se,timeZoneName:Ee},We={year:Se,month:Te,day:Se,hour:Se,minute:Se,second:Se,timeZoneName:Ee},Ge={year:Se,month:Te,day:Se,weekday:Te,hour:Se,minute:Se,timeZoneName:Te},Ye={year:Se,month:Te,day:Se,weekday:Te,hour:Se,minute:Se,second:Se,timeZoneName:Te};function Ke(t){return void 0===t}function Je(t){return"number"==typeof t}function Xe(t){return"number"==typeof t&&t%1==0}function Qe(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function ti(t,e,i){if(0!==t.length)return t.reduce(((t,n)=>{const o=[e(n),n];return t&&i(t[0],o[0])===t[0]?t:o}),null)[1]}function ei(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ii(t,e,i){return Xe(t)&&t>=e&&t<=i}function ni(t,e=2){let i;return i=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),i}function oi(t){return Ke(t)||null===t||""===t?void 0:parseInt(t,10)}function ri(t){return Ke(t)||null===t||""===t?void 0:parseFloat(t)}function si(t){if(!Ke(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function ai(t,e,i=!1){const n=10**e;return(i?Math.trunc:Math.round)(t*n)/n}function li(t){return t%4==0&&(t%100!=0||t%400==0)}function ci(t){return li(t)?366:365}function hi(t,e){const i=function(t,e){return t-e*Math.floor(t/e)}(e-1,12)+1;return 2===i?li(t+(e-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function ui(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function di(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,i=t-1,n=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return 4===e||3===n?53:52}function pi(t){return t>99?t:t>60?1900+t:2e3+t}function mi(t,e,i,n=null){const o=new Date(t),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(r.timeZone=n);const s={timeZoneName:e,...r},a=new Intl.DateTimeFormat(i,s).formatToParts(o).find((t=>"timezonename"===t.type.toLowerCase()));return a?a.value:null}function fi(t,e){let i=parseInt(t,10);Number.isNaN(i)&&(i=0);const n=parseInt(e,10)||0;return 60*i+(i<0||Object.is(i,-0)?-n:n)}function gi(t){const e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new ke(`Invalid unit value ${t}`);return e}function vi(t,e){const i={};for(const n in t)if(ei(t,n)){const o=t[n];if(null==o)continue;i[e(n)]=gi(o)}return i}function yi(t,e){const i=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${ni(i,2)}:${ni(n,2)}`;case"narrow":return`${o}${i}${n>0?`:${n}`:""}`;case"techie":return`${o}${ni(i,2)}${ni(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function bi(t){return function(t,e){return e.reduce(((e,i)=>(e[i]=t[i],e)),{})}(t,["hour","minute","second","millisecond"])}const _i=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,xi=["January","February","March","April","May","June","July","August","September","October","November","December"],wi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ki=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ci(t){switch(t){case"narrow":return[...ki];case"short":return[...wi];case"long":return[...xi];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 Si=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ei=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ti=["M","T","W","T","F","S","S"];function Mi(t){switch(t){case"narrow":return[...Ti];case"short":return[...Ei];case"long":return[...Si];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Di=["AM","PM"],$i=["Before Christ","Anno Domini"],Ai=["BC","AD"],Li=["B","A"];function Oi(t){switch(t){case"narrow":return[...Li];case"short":return[...Ai];case"long":return[...$i];default:return null}}function Pi(t,e){let i="";for(const n of t)n.literal?i+=n.val:i+=e(n.val);return i}const Ii={D:Me,DD:De,DDD:Ae,DDDD:Le,t:Oe,tt:Pe,ttt:Ie,tttt:Ne,T:ze,TT:Re,TTT:Be,TTTT:Fe,f:qe,ff:Ze,fff:Ve,ffff:Ge,F:je,FF:He,FFF:We,FFFF:Ye};class Ni{static create(t,e={}){return new Ni(t,e)}static parseFormat(t){let e=null,i="",n=!1;const o=[];for(let r=0;r<t.length;r++){const s=t.charAt(r);"'"===s?(i.length>0&&o.push({literal:n,val:i}),e=null,i="",n=!n):n||s===e?i+=s:(i.length>0&&o.push({literal:!1,val:i}),i=s,e=s)}return i.length>0&&o.push({literal:n,val:i}),o}static macroTokenToFormatOpts(t){return Ii[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTime(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTimeParts(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).formatToParts()}resolvedOptions(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return ni(t,e);const i={...this.opts};return e>0&&(i.padTo=e),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,e){const i="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(e,i)=>this.loc.extract(t,e,i),r=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",s=()=>i?function(t){return Di[t.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(e,n)=>i?function(t,e){return Ci(e)[t.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month"),l=(e,n)=>i?function(t,e){return Mi(e)[t.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),c=e=>{const i=Ni.macroTokenToFormatOpts(e);return i?this.formatWithSystemDefault(t,i):e},h=e=>i?function(t,e){return Oi(e)[t.year<0?0:1]}(t,e):o({era:e},"era");return Pi(Ni.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return n?o({day:"numeric"},"day"):this.num(t.day);case"dd":return n?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return n?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return n?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return n?o({month:"numeric"},"month"):this.num(t.month);case"MM":return n?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return n?o({year:"numeric"},"year"):this.num(t.year);case"yy":return n?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return n?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return n?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return h("short");case"GG":return h("long");case"GGGGG":return h("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(e)}}))}formatDurationFromString(t,e){const i=t=>{switch(t[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}},n=Ni.parseFormat(e),o=n.reduce(((t,{literal:e,val:i})=>e?t:t.concat(i)),[]),r=t.shiftTo(...o.map(i).filter((t=>t)));return Pi(n,(t=>e=>{const n=i(e);return n?this.num(t.get(n),e.length):e})(r))}}class zi{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Ri{get type(){throw new Ce}get name(){throw new Ce}get ianaName(){return this.name}get isUniversal(){throw new Ce}offsetName(t,e){throw new Ce}formatOffset(t,e){throw new Ce}offset(t){throw new Ce}equals(t){throw new Ce}get isValid(){throw new Ce}}let Bi=null;class Fi extends Ri{static get instance(){return null===Bi&&(Bi=new Fi),Bi}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return mi(t,e,i)}formatOffset(t,e){return yi(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let qi={};const ji={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Zi={};class Hi extends Ri{static create(t){return Zi[t]||(Zi[t]=new Hi(t)),Zi[t]}static resetCache(){Zi={},qi={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=Hi.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return mi(t,e,i,this.name)}formatOffset(t,e){return yi(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const i=(n=this.name,qi[n]||(qi[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),qi[n]);var n;let[o,r,s,a,l,c,h]=i.formatToParts?function(t,e){const i=t.formatToParts(e),n=[];for(let t=0;t<i.length;t++){const{type:e,value:o}=i[t],r=ji[e];"era"===e?n[r]=o:Ke(r)||(n[r]=parseInt(o,10))}return n}(i,e):function(t,e){const i=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,o,r,s,a,l,c,h]=n;return[s,o,r,a,l,c,h]}(i,e);"BC"===a&&(o=1-Math.abs(o));let u=+e;const d=u%1e3;return u-=d>=0?d:1e3+d,(ui({year:o,month:r,day:s,hour:24===l?0:l,minute:c,second:h,millisecond:0})-u)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let Ui=null;class Vi extends Ri{static get utcInstance(){return null===Ui&&(Ui=new Vi(0)),Ui}static instance(t){return 0===t?Vi.utcInstance:new Vi(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new Vi(fi(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${yi(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${yi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return yi(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class Wi extends Ri{constructor(t){super(),this.zoneName=t}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 Gi(t,e){if(Ke(t)||null===t)return e;if(t instanceof Ri)return t;if(function(t){return"string"==typeof t}(t)){const i=t.toLowerCase();return"local"===i||"system"===i?e:"utc"===i||"gmt"===i?Vi.utcInstance:Vi.parseSpecifier(i)||Hi.create(t)}return Je(t)?Vi.instance(t):"object"==typeof t&&t.offset&&"number"==typeof t.offset?t:new Wi(t)}let Yi,Ki=()=>Date.now(),Ji="system",Xi=null,Qi=null,tn=null;class en{static get now(){return Ki}static set now(t){Ki=t}static set defaultZone(t){Ji=t}static get defaultZone(){return Gi(Ji,Fi.instance)}static get defaultLocale(){return Xi}static set defaultLocale(t){Xi=t}static get defaultNumberingSystem(){return Qi}static set defaultNumberingSystem(t){Qi=t}static get defaultOutputCalendar(){return tn}static set defaultOutputCalendar(t){tn=t}static get throwOnInvalid(){return Yi}static set throwOnInvalid(t){Yi=t}static resetCaches(){pn.resetCache(),Hi.resetCache()}}let nn={};let on={};function rn(t,e={}){const i=JSON.stringify([t,e]);let n=on[i];return n||(n=new Intl.DateTimeFormat(t,e),on[i]=n),n}let sn={};let an={};let ln=null;function cn(t,e,i,n,o){const r=t.listingMode(i);return"error"===r?null:"en"===r?n(e):o(e)}class hn{constructor(t,e,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:n,floor:o,...r}=i;if(!e||Object.keys(r).length>0){const e={useGrouping:!1,...i};i.padTo>0&&(e.minimumIntegerDigits=i.padTo),this.inf=function(t,e={}){const i=JSON.stringify([t,e]);let n=sn[i];return n||(n=new Intl.NumberFormat(t,e),sn[i]=n),n}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return ni(this.floor?Math.floor(t):ai(t,3),this.padTo)}}class un{constructor(t,e,i){let n;if(this.opts=i,t.zone.isUniversal){const e=t.offset/60*-1,o=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&Hi.create(o).valid?(n=o,this.dt=t):(n="UTC",i.timeZoneName?this.dt=t:this.dt=0===t.offset?t:hr.fromMillis(t.ts+60*t.offset*1e3))}else"system"===t.zone.type?this.dt=t:(this.dt=t,n=t.zone.name);const o={...this.opts};n&&(o.timeZone=n),this.dtf=rn(e,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class dn{constructor(t,e,i){this.opts={style:"long",...i},!e&&Qe()&&(this.rtf=function(t,e={}){const{base:i,...n}=e,o=JSON.stringify([t,n]);let r=an[o];return r||(r=new Intl.RelativeTimeFormat(t,e),an[o]=r),r}(t,i))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,i="always",n=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===i&&r){const i="days"===t;switch(e){case 1:return i?"tomorrow":`next ${o[t][0]}`;case-1:return i?"yesterday":`last ${o[t][0]}`;case 0:return i?"today":`this ${o[t][0]}`}}const s=Object.is(e,-0)||e<0,a=Math.abs(e),l=1===a,c=o[t],h=n?l?c[1]:c[2]||c[1]:l?o[t][0]:t;return s?`${a} ${h} ago`:`in ${a} ${h}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}class pn{static fromOpts(t){return pn.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,e,i,n=!1){const o=t||en.defaultLocale,r=o||(n?"en-US":ln||(ln=(new Intl.DateTimeFormat).resolvedOptions().locale,ln)),s=e||en.defaultNumberingSystem,a=i||en.defaultOutputCalendar;return new pn(r,s,a,o)}static resetCache(){ln=null,on={},sn={},an={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:i}={}){return pn.create(t,e,i)}constructor(t,e,i,n){const[o,r,s]=function(t){const e=t.indexOf("-u-");if(-1===e)return[t];{let i;const n=t.substring(0,e);try{i=rn(t).resolvedOptions()}catch(t){i=rn(n).resolvedOptions()}const{numberingSystem:o,calendar:r}=i;return[n,o,r]}}(t);this.locale=o,this.numberingSystem=e||r||null,this.outputCalendar=i||s||null,this.intl=function(t,e,i){return i||e?(t+="-u",i&&(t+=`-ca-${i}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),e=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?pn.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1,i=!0){return cn(this,t,i,Ci,(()=>{const i=e?{month:t,day:"numeric"}:{month:t},n=e?"format":"standalone";return this.monthsCache[n][t]||(this.monthsCache[n][t]=function(t){const e=[];for(let i=1;i<=12;i++){const n=hr.utc(2016,i,1);e.push(t(n))}return e}((t=>this.extract(t,i,"month")))),this.monthsCache[n][t]}))}weekdays(t,e=!1,i=!0){return cn(this,t,i,Mi,(()=>{const i=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},n=e?"format":"standalone";return this.weekdaysCache[n][t]||(this.weekdaysCache[n][t]=function(t){const e=[];for(let i=1;i<=7;i++){const n=hr.utc(2016,11,13+i);e.push(t(n))}return e}((t=>this.extract(t,i,"weekday")))),this.weekdaysCache[n][t]}))}meridiems(t=!0){return cn(this,void 0,t,(()=>Di),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[hr.utc(2016,11,13,9),hr.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t,e=!0){return cn(this,t,e,Oi,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[hr.utc(-40,1,1),hr.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,i){const n=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===i));return n?n.value:null}numberFormatter(t={}){return new hn(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new un(t,this.intl,e)}relFormatter(t={}){return new dn(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const i=JSON.stringify([t,e]);let n=nn[i];return n||(n=new Intl.ListFormat(t,e),nn[i]=n),n}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}function mn(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function fn(...t){return e=>t.reduce((([t,i,n],o)=>{const[r,s,a]=o(e,n);return[{...t,...r},s||i,a]}),[{},null,1]).slice(0,2)}function gn(t,...e){if(null==t)return[null,null];for(const[i,n]of e){const e=i.exec(t);if(e)return n(e)}return[null,null]}function vn(...t){return(e,i)=>{const n={};let o;for(o=0;o<t.length;o++)n[t[o]]=oi(e[i+o]);return[n,null,i+o]}}const yn=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,bn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,_n=RegExp(`${bn.source}${`(?:${yn.source}?(?:\\[(${_i.source})\\])?)?`}`),xn=RegExp(`(?:T${_n.source})?`),wn=vn("weekYear","weekNumber","weekDay"),kn=vn("year","ordinal"),Cn=RegExp(`${bn.source} ?(?:${yn.source}|(${_i.source}))?`),Sn=RegExp(`(?: ${Cn.source})?`);function En(t,e,i){const n=t[e];return Ke(n)?i:oi(n)}function Tn(t,e){return[{hours:En(t,e,0),minutes:En(t,e+1,0),seconds:En(t,e+2,0),milliseconds:si(t[e+3])},null,e+4]}function Mn(t,e){const i=!t[e]&&!t[e+1],n=fi(t[e+1],t[e+2]);return[{},i?null:Vi.instance(n),e+3]}function Dn(t,e){return[{},t[e]?Hi.create(t[e]):null,e+1]}const $n=RegExp(`^T?${bn.source}$`),An=/^-?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 Ln(t){const[e,i,n,o,r,s,a,l,c]=t,h="-"===e[0],u=l&&"-"===l[0],d=(t,e=!1)=>void 0!==t&&(e||t&&h)?-t:t;return[{years:d(ri(i)),months:d(ri(n)),weeks:d(ri(o)),days:d(ri(r)),hours:d(ri(s)),minutes:d(ri(a)),seconds:d(ri(l),"-0"===l),milliseconds:d(si(c),u)}]}const On={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pn(t,e,i,n,o,r,s){const a={year:2===e.length?pi(oi(e)):oi(e),month:wi.indexOf(i)+1,day:oi(n),hour:oi(o),minute:oi(r)};return s&&(a.second=oi(s)),t&&(a.weekday=t.length>3?Si.indexOf(t)+1:Ei.indexOf(t)+1),a}const In=/^(?:(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 Nn(t){const[,e,i,n,o,r,s,a,l,c,h,u]=t,d=Pn(e,o,n,i,r,s,a);let p;return p=l?On[l]:c?0:fi(h,u),[d,new Vi(p)]}const zn=/^(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$/,Rn=/^(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$/,Bn=/^(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 Fn(t){const[,e,i,n,o,r,s,a]=t;return[Pn(e,o,n,i,r,s,a),Vi.utcInstance]}function qn(t){const[,e,i,n,o,r,s,a]=t;return[Pn(e,a,i,n,o,r,s),Vi.utcInstance]}const jn=mn(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,xn),Zn=mn(/(\d{4})-?W(\d\d)(?:-?(\d))?/,xn),Hn=mn(/(\d{4})-?(\d{3})/,xn),Un=mn(_n),Vn=fn((function(t,e){return[{year:En(t,e),month:En(t,e+1,1),day:En(t,e+2,1)},null,e+3]}),Tn,Mn,Dn),Wn=fn(wn,Tn,Mn,Dn),Gn=fn(kn,Tn,Mn,Dn),Yn=fn(Tn,Mn,Dn);const Kn=fn(Tn);const Jn=mn(/(\d{4})-(\d\d)-(\d\d)/,Sn),Xn=mn(Cn),Qn=fn(Tn,Mn,Dn);const to={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},eo={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...to},io={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...to},no=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],oo=no.slice(0).reverse();function ro(t,e,i=!1){const n={values:i?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new ao(n)}function so(t,e,i,n,o){const r=t[o][i],s=e[i]/r,a=!(Math.sign(s)===Math.sign(n[o]))&&0!==n[o]&&Math.abs(s)<=1?function(t){return t<0?Math.floor(t):Math.ceil(t)}(s):Math.trunc(s);n[o]+=a,e[i]-=a*r}class ao{constructor(t){const e="longterm"===t.conversionAccuracy||!1;this.values=t.values,this.loc=t.loc||pn.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e?io:eo,this.isLuxonDuration=!0}static fromMillis(t,e){return ao.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new ke("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new ao({values:vi(t,ao.normalizeUnit),loc:pn.fromObject(e),conversionAccuracy:e.conversionAccuracy})}static fromDurationLike(t){if(Je(t))return ao.fromMillis(t);if(ao.isDuration(t))return t;if("object"==typeof t)return ao.fromObject(t);throw new ke(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[i]=function(t){return gn(t,[An,Ln])}(t);return i?ao.fromObject(i,e):ao.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[i]=function(t){return gn(t,[$n,Kn])}(t);return i?ao.fromObject(i,e):ao.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new ke("need to specify a reason the Duration is invalid");const i=t instanceof zi?t:new zi(t,e);if(en.throwOnInvalid)throw new _e(i);return new ao({invalid:i})}static normalizeUnit(t){const e={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"}[t?t.toLowerCase():t];if(!e)throw new we(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const i={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Ni.create(this.loc,i).formatDurationFromString(this,t):"Invalid Duration"}toHuman(t={}){const e=no.map((e=>{const i=this.values[e];return Ke(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(i)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=ai(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();if(e<0||e>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t};const i=this.shiftTo("hours","minutes","seconds","milliseconds");let n="basic"===t.format?"hhmm":"hh:mm";t.suppressSeconds&&0===i.seconds&&0===i.milliseconds||(n+="basic"===t.format?"ss":":ss",t.suppressMilliseconds&&0===i.milliseconds||(n+=".SSS"));let o=i.toFormat(n);return t.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=ao.fromDurationLike(t),i={};for(const t of no)(ei(e.values,t)||ei(this.values,t))&&(i[t]=e.get(t)+this.get(t));return ro(this,{values:i},!0)}minus(t){if(!this.isValid)return this;const e=ao.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=gi(t(this.values[i],i));return ro(this,{values:e},!0)}get(t){return this[ao.normalizeUnit(t)]}set(t){if(!this.isValid)return this;return ro(this,{values:{...this.values,...vi(t,ao.normalizeUnit)}})}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:i}={}){const n={loc:this.loc.clone({locale:t,numberingSystem:e})};return i&&(n.conversionAccuracy=i),ro(this,n)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return function(t,e){oo.reduce(((i,n)=>Ke(e[n])?i:(i&&so(t,e,i,e,n),n)),null)}(this.matrix,t),ro(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>ao.normalizeUnit(t)));const e={},i={},n=this.toObject();let o;for(const r of no)if(t.indexOf(r)>=0){o=r;let t=0;for(const e in i)t+=this.matrix[e][r]*i[e],i[e]=0;Je(n[r])&&(t+=n[r]);const s=Math.trunc(t);e[r]=s,i[r]=(1e3*t-1e3*s)/1e3;for(const t in n)no.indexOf(t)>no.indexOf(r)&&so(this.matrix,n,t,e,r)}else Je(n[r])&&(i[r]=n[r]);for(const t in i)0!==i[t]&&(e[o]+=t===o?i[t]:i[t]/this.matrix[o][t]);return ro(this,{values:e},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return ro(this,{values:t},!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 null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const n of no)if(e=this.values[n],i=t.values[n],!(void 0===e||0===e?void 0===i||0===i:e===i))return!1;var e,i;return!0}}const lo="Invalid Interval";class co{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new ke("need to specify a reason the Interval is invalid");const i=t instanceof zi?t:new zi(t,e);if(en.throwOnInvalid)throw new be(i);return new co({invalid:i})}static fromDateTimes(t,e){const i=ur(t),n=ur(e),o=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?co.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:co.invalid("missing or invalid end"):co.invalid("missing or invalid start")}(i,n);return null==o?new co({start:i,end:n}):o}static after(t,e){const i=ao.fromDurationLike(e),n=ur(t);return co.fromDateTimes(n,n.plus(i))}static before(t,e){const i=ao.fromDurationLike(e),n=ur(t);return co.fromDateTimes(n.minus(i),n)}static fromISO(t,e){const[i,n]=(t||"").split("/",2);if(i&&n){let t,o,r,s;try{t=hr.fromISO(i,e),o=t.isValid}catch(n){o=!1}try{r=hr.fromISO(n,e),s=r.isValid}catch(n){s=!1}if(o&&s)return co.fromDateTimes(t,r);if(o){const i=ao.fromISO(n,e);if(i.isValid)return co.after(t,i)}else if(s){const t=ao.fromISO(i,e);if(t.isValid)return co.before(r,t)}}return co.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const e=this.start.startOf(t),i=this.end.startOf(t);return Math.floor(i.diff(e,t).get(t))+1}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&(this.s<=t&&this.e>t)}set({start:t,end:e}={}){return this.isValid?co.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(ur).filter((t=>this.contains(t))).sort(),i=[];let{s:n}=this,o=0;for(;n<this.e;){const t=e[o]||this.e,r=+t>+this.e?this.e:t;i.push(co.fromDateTimes(n,r)),n=r,o+=1}return i}splitBy(t){const e=ao.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let i,{s:n}=this,o=1;const r=[];for(;n<this.e;){const t=this.start.plus(e.mapUnits((t=>t*o)));i=+t>+this.e?this.e:t,r.push(co.fromDateTimes(n,i)),n=i,o+=1}return r}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&(this.s<=t.s&&this.e>=t.e)}equals(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return e>=i?null:co.fromDateTimes(e,i)}union(t){if(!this.isValid)return this;const e=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return co.fromDateTimes(e,i)}static merge(t){const[e,i]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],i)=>e?e.overlaps(i)||e.abutsStart(i)?[t,e.union(i)]:[t.concat([e]),i]:[t,i]),[[],null]);return i&&e.push(i),e}static xor(t){let e=null,i=0;const n=[],o=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),r=Array.prototype.concat(...o).sort(((t,e)=>t.time-e.time));for(const t of r)i+="s"===t.type?1:-1,1===i?e=t.time:(e&&+e!=+t.time&&n.push(co.fromDateTimes(e,t.time)),e=null);return co.merge(n)}difference(...t){return co.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:lo}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:lo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:lo}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:lo}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:lo}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):ao.invalid(this.invalidReason)}mapEndpoints(t){return co.fromDateTimes(t(this.s),t(this.e))}}class ho{static hasDST(t=en.defaultZone){const e=hr.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return Hi.isValidZone(t)}static normalizeZone(t){return Gi(t,en.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||pn.create(e,i,o)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||pn.create(e,i,o)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null}={}){return(n||pn.create(e,i,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null}={}){return(n||pn.create(e,i,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return pn.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return pn.create(e,null,"gregory").eras(t)}static features(){return{relative:Qe()}}}function uo(t,e){const i=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=i(e)-i(t);return Math.floor(ao.fromMillis(n).as("days"))}function po(t,e,i,n){let[o,r,s,a]=function(t,e,i){const n=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const i=uo(t,e);return(i-i%7)/7}],["days",uo]],o={};let r,s;for(const[a,l]of n)if(i.indexOf(a)>=0){r=a;let i=l(t,e);s=t.plus({[a]:i}),s>e?(t=t.plus({[a]:i-1}),i-=1):t=s,o[a]=i}return[t,o,s,r]}(t,e,i);const l=e-o,c=i.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===c.length&&(s<e&&(s=o.plus({[a]:1})),s!==o&&(r[a]=(r[a]||0)+l/(s-o)));const h=ao.fromObject(r,n);return c.length>0?ao.fromMillis(l,n).shiftTo(...c).plus(h):h}const mo={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},fo={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]},go=mo.hanidec.replace(/[\[|\]]/g,"").split("");function vo({numberingSystem:t},e=""){return new RegExp(`${mo[t||"latn"]}${e}`)}function yo(t,e=(t=>t)){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let i=0;i<t.length;i++){const n=t.charCodeAt(i);if(-1!==t[i].search(mo.hanidec))e+=go.indexOf(t[i]);else for(const t in fo){const[i,o]=fo[t];n>=i&&n<=o&&(e+=n-i)}}return parseInt(e,10)}return e}(t))}}const bo=`[ ${String.fromCharCode(160)}]`,_o=new RegExp(bo,"g");function xo(t){return t.replace(/\./g,"\\.?").replace(_o,bo)}function wo(t){return t.replace(/\./g,"").replace(_o," ").toLowerCase()}function ko(t,e){return null===t?null:{regex:RegExp(t.map(xo).join("|")),deser:([i])=>t.findIndex((t=>wo(i)===wo(t)))+e}}function Co(t,e){return{regex:t,deser:([,t,e])=>fi(t,e),groups:e}}function So(t){return{regex:t,deser:([t])=>t}}const Eo={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"}};let To=null;function Mo(t,e){if(t.literal)return t;const i=Ni.macroTokenToFormatOpts(t.val);if(!i)return t;const n=Ni.create(e,i).formatDateTimeParts((To||(To=hr.fromMillis(1555555555555)),To)).map((t=>function(t,e,i){const{type:n,value:o}=t;if("literal"===n)return{literal:!0,val:o};const r=i[n];let s=Eo[n];return"object"==typeof s&&(s=s[r]),s?{literal:!1,val:s}:void 0}(t,0,i)));return n.includes(void 0)?t:n}function Do(t,e,i){const n=function(t,e){return Array.prototype.concat(...t.map((t=>Mo(t,e))))}(Ni.parseFormat(i),t),o=n.map((e=>function(t,e){const i=vo(e),n=vo(e,"{2}"),o=vo(e,"{3}"),r=vo(e,"{4}"),s=vo(e,"{6}"),a=vo(e,"{1,2}"),l=vo(e,"{1,3}"),c=vo(e,"{1,6}"),h=vo(e,"{1,9}"),u=vo(e,"{2,4}"),d=vo(e,"{4,6}"),p=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},m=(m=>{if(t.literal)return p(m);switch(m.val){case"G":return ko(e.eras("short",!1),0);case"GG":return ko(e.eras("long",!1),0);case"y":return yo(c);case"yy":case"kk":return yo(u,pi);case"yyyy":case"kkkk":return yo(r);case"yyyyy":return yo(d);case"yyyyyy":return yo(s);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return yo(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return yo(n);case"MMM":return ko(e.months("short",!0,!1),1);case"MMMM":return ko(e.months("long",!0,!1),1);case"LLL":return ko(e.months("short",!1,!1),1);case"LLLL":return ko(e.months("long",!1,!1),1);case"o":case"S":return yo(l);case"ooo":case"SSS":return yo(o);case"u":return So(h);case"uu":return So(a);case"uuu":case"E":case"c":return yo(i);case"a":return ko(e.meridiems(),0);case"EEE":return ko(e.weekdays("short",!1,!1),1);case"EEEE":return ko(e.weekdays("long",!1,!1),1);case"ccc":return ko(e.weekdays("short",!0,!1),1);case"cccc":return ko(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Co(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return Co(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return So(/[a-z_+-/]{1,256}?/i);default:return p(m)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return m.token=t,m}(e,t))),r=o.find((t=>t.invalidReason));if(r)return{input:e,tokens:n,invalidReason:r.invalidReason};{const[t,i]=function(t){const e=t.map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"");return[`^${e}$`,t]}(o),r=RegExp(t,"i"),[s,a]=function(t,e,i){const n=t.match(e);if(n){const t={};let e=1;for(const o in i)if(ei(i,o)){const r=i[o],s=r.groups?r.groups+1:1;!r.literal&&r.token&&(t[r.token.val[0]]=r.deser(n.slice(e,e+s))),e+=s}return[n,t]}return[n,{}]}(e,r,i),[l,c,h]=a?function(t){let e,i=null;Ke(t.z)||(i=Hi.create(t.z)),Ke(t.Z)||(i||(i=new Vi(t.Z)),e=t.Z),Ke(t.q)||(t.M=3*(t.q-1)+1),Ke(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Ke(t.u)||(t.S=si(t.u));const n=Object.keys(t).reduce(((e,i)=>{const n=(t=>{switch(t){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}})(i);return n&&(e[n]=t[i]),e}),{});return[n,i,e]}(a):[null,null,void 0];if(ei(a,"a")&&ei(a,"H"))throw new xe("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:r,rawMatches:s,matches:a,result:l,zone:c,specificOffset:h}}}const $o=[0,31,59,90,120,151,181,212,243,273,304,334],Ao=[0,31,60,91,121,152,182,213,244,274,305,335];function Lo(t,e){return new zi("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Oo(t,e,i){const n=new Date(Date.UTC(t,e-1,i));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const o=n.getUTCDay();return 0===o?7:o}function Po(t,e,i){return i+(li(t)?Ao:$o)[e-1]}function Io(t,e){const i=li(t)?Ao:$o,n=i.findIndex((t=>t<e));return{month:n+1,day:e-i[n]}}function No(t){const{year:e,month:i,day:n}=t,o=Po(e,i,n),r=Oo(e,i,n);let s,a=Math.floor((o-r+10)/7);return a<1?(s=e-1,a=di(s)):a>di(e)?(s=e+1,a=1):s=e,{weekYear:s,weekNumber:a,weekday:r,...bi(t)}}function zo(t){const{weekYear:e,weekNumber:i,weekday:n}=t,o=Oo(e,1,4),r=ci(e);let s,a=7*i+n-o-3;a<1?(s=e-1,a+=ci(s)):a>r?(s=e+1,a-=ci(e)):s=e;const{month:l,day:c}=Io(s,a);return{year:s,month:l,day:c,...bi(t)}}function Ro(t){const{year:e,month:i,day:n}=t;return{year:e,ordinal:Po(e,i,n),...bi(t)}}function Bo(t){const{year:e,ordinal:i}=t,{month:n,day:o}=Io(e,i);return{year:e,month:n,day:o,...bi(t)}}function Fo(t){const e=Xe(t.year),i=ii(t.month,1,12),n=ii(t.day,1,hi(t.year,t.month));return e?i?!n&&Lo("day",t.day):Lo("month",t.month):Lo("year",t.year)}function qo(t){const{hour:e,minute:i,second:n,millisecond:o}=t,r=ii(e,0,23)||24===e&&0===i&&0===n&&0===o,s=ii(i,0,59),a=ii(n,0,59),l=ii(o,0,999);return r?s?a?!l&&Lo("millisecond",o):Lo("second",n):Lo("minute",i):Lo("hour",e)}const jo="Invalid DateTime";function Zo(t){return new zi("unsupported zone",`the zone "${t.name}" is not supported`)}function Ho(t){return null===t.weekData&&(t.weekData=No(t.c)),t.weekData}function Uo(t,e){const i={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new hr({...i,...e,old:i})}function Vo(t,e,i){let n=t-60*e*1e3;const o=i.offset(n);if(e===o)return[n,e];n-=60*(o-e)*1e3;const r=i.offset(n);return o===r?[n,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}function Wo(t,e){const i=new Date(t+=60*e*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Go(t,e,i){return Vo(ui(t),e,i)}function Yo(t,e){const i=t.o,n=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),r={...t.c,year:n,month:o,day:Math.min(t.c.day,hi(n,o))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},s=ao.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"),a=ui(r);let[l,c]=Vo(a,i,t.zone);return 0!==s&&(l+=s,c=t.zone.offset(l)),{ts:l,o:c}}function Ko(t,e,i,n,o,r){const{setZone:s,zone:a}=i;if(t&&0!==Object.keys(t).length){const n=e||a,o=hr.fromObject(t,{...i,zone:n,specificOffset:r});return s?o:o.setZone(a)}return hr.invalid(new zi("unparsable",`the input "${o}" can't be parsed as ${n}`))}function Jo(t,e,i=!0){return t.isValid?Ni.create(pn.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Xo(t,e){const i=t.c.year>9999||t.c.year<0;let n="";return i&&t.c.year>=0&&(n+="+"),n+=ni(t.c.year,i?6:4),e?(n+="-",n+=ni(t.c.month),n+="-",n+=ni(t.c.day)):(n+=ni(t.c.month),n+=ni(t.c.day)),n}function Qo(t,e,i,n,o,r){let s=ni(t.c.hour);return e?(s+=":",s+=ni(t.c.minute),0===t.c.second&&i||(s+=":")):s+=ni(t.c.minute),0===t.c.second&&i||(s+=ni(t.c.second),0===t.c.millisecond&&n||(s+=".",s+=ni(t.c.millisecond,3))),o&&(t.isOffsetFixed&&0===t.offset&&!r?s+="Z":t.o<0?(s+="-",s+=ni(Math.trunc(-t.o/60)),s+=":",s+=ni(Math.trunc(-t.o%60))):(s+="+",s+=ni(Math.trunc(t.o/60)),s+=":",s+=ni(Math.trunc(t.o%60)))),r&&(s+="["+t.zone.ianaName+"]"),s}const tr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},er={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ir={ordinal:1,hour:0,minute:0,second:0,millisecond:0},nr=["year","month","day","hour","minute","second","millisecond"],or=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rr=["year","ordinal","hour","minute","second","millisecond"];function sr(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new we(t);return e}function ar(t,e){const i=Gi(e.zone,en.defaultZone),n=pn.fromObject(e),o=en.now();let r,s;if(Ke(t.year))r=o;else{for(const e of nr)Ke(t[e])&&(t[e]=tr[e]);const e=Fo(t)||qo(t);if(e)return hr.invalid(e);const n=i.offset(o);[r,s]=Go(t,n,i)}return new hr({ts:r,zone:i,loc:n,o:s})}function lr(t,e,i){const n=!!Ke(i.round)||i.round,o=(t,o)=>{t=ai(t,n||i.calendary?0:2,!0);return e.loc.clone(i).relFormatter(i).format(t,o)},r=n=>i.calendary?e.hasSame(t,n)?0:e.startOf(n).diff(t.startOf(n),n).get(n):e.diff(t,n).get(n);if(i.unit)return o(r(i.unit),i.unit);for(const t of i.units){const e=r(t);if(Math.abs(e)>=1)return o(e,t)}return o(t>e?-0:0,i.units[i.units.length-1])}function cr(t){let e,i={};return t.length>0&&"object"==typeof t[t.length-1]?(i=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[i,e]}class hr{constructor(t){const e=t.zone||en.defaultZone;let i=t.invalid||(Number.isNaN(t.ts)?new zi("invalid input"):null)||(e.isValid?null:Zo(e));this.ts=Ke(t.ts)?en.now():t.ts;let n=null,o=null;if(!i){if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[n,o]=[t.old.c,t.old.o];else{const t=e.offset(this.ts);n=Wo(this.ts,t),i=Number.isNaN(n.year)?new zi("invalid input"):null,n=i?null:n,o=i?null:t}}this._zone=e,this.loc=t.loc||pn.create(),this.invalid=i,this.weekData=null,this.c=n,this.o=o,this.isLuxonDateTime=!0}static now(){return new hr({})}static local(){const[t,e]=cr(arguments),[i,n,o,r,s,a,l]=e;return ar({year:i,month:n,day:o,hour:r,minute:s,second:a,millisecond:l},t)}static utc(){const[t,e]=cr(arguments),[i,n,o,r,s,a,l]=e;return t.zone=Vi.utcInstance,ar({year:i,month:n,day:o,hour:r,minute:s,second:a,millisecond:l},t)}static fromJSDate(t,e={}){const i=function(t){return"[object Date]"===Object.prototype.toString.call(t)}(t)?t.valueOf():NaN;if(Number.isNaN(i))return hr.invalid("invalid input");const n=Gi(e.zone,en.defaultZone);return n.isValid?new hr({ts:i,zone:n,loc:pn.fromObject(e)}):hr.invalid(Zo(n))}static fromMillis(t,e={}){if(Je(t))return t<-864e13||t>864e13?hr.invalid("Timestamp out of range"):new hr({ts:t,zone:Gi(e.zone,en.defaultZone),loc:pn.fromObject(e)});throw new ke(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(Je(t))return new hr({ts:1e3*t,zone:Gi(e.zone,en.defaultZone),loc:pn.fromObject(e)});throw new ke("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const i=Gi(e.zone,en.defaultZone);if(!i.isValid)return hr.invalid(Zo(i));const n=en.now(),o=Ke(e.specificOffset)?i.offset(n):e.specificOffset,r=vi(t,sr),s=!Ke(r.ordinal),a=!Ke(r.year),l=!Ke(r.month)||!Ke(r.day),c=a||l,h=r.weekYear||r.weekNumber,u=pn.fromObject(e);if((c||s)&&h)throw new xe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new xe("Can't mix ordinal dates with month/day");const d=h||r.weekday&&!c;let p,m,f=Wo(n,o);d?(p=or,m=er,f=No(f)):s?(p=rr,m=ir,f=Ro(f)):(p=nr,m=tr);let g=!1;for(const t of p){Ke(r[t])?r[t]=g?m[t]:f[t]:g=!0}const v=d?function(t){const e=Xe(t.weekYear),i=ii(t.weekNumber,1,di(t.weekYear)),n=ii(t.weekday,1,7);return e?i?!n&&Lo("weekday",t.weekday):Lo("week",t.week):Lo("weekYear",t.weekYear)}(r):s?function(t){const e=Xe(t.year),i=ii(t.ordinal,1,ci(t.year));return e?!i&&Lo("ordinal",t.ordinal):Lo("year",t.year)}(r):Fo(r),y=v||qo(r);if(y)return hr.invalid(y);const b=d?zo(r):s?Bo(r):r,[_,x]=Go(b,o,i),w=new hr({ts:_,zone:i,o:x,loc:u});return r.weekday&&c&&t.weekday!==w.weekday?hr.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${w.toISO()}`):w}static fromISO(t,e={}){const[i,n]=function(t){return gn(t,[jn,Vn],[Zn,Wn],[Hn,Gn],[Un,Yn])}(t);return Ko(i,n,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[i,n]=function(t){return gn(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[In,Nn])}(t);return Ko(i,n,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[i,n]=function(t){return gn(t,[zn,Fn],[Rn,Fn],[Bn,qn])}(t);return Ko(i,n,e,"HTTP",e)}static fromFormat(t,e,i={}){if(Ke(t)||Ke(e))throw new ke("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:o=null}=i,r=pn.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),[s,a,l,c]=function(t,e,i){const{result:n,zone:o,specificOffset:r,invalidReason:s}=Do(t,e,i);return[n,o,r,s]}(r,t,e);return c?hr.invalid(c):Ko(s,a,i,`format ${e}`,t,l)}static fromString(t,e,i={}){return hr.fromFormat(t,e,i)}static fromSQL(t,e={}){const[i,n]=function(t){return gn(t,[Jn,Vn],[Xn,Qn])}(t);return Ko(i,n,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new ke("need to specify a reason the DateTime is invalid");const i=t instanceof zi?t:new zi(t,e);if(en.throwOnInvalid)throw new ye(i);return new hr({invalid:i})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ho(this).weekYear:NaN}get weekNumber(){return this.isValid?Ho(this).weekNumber:NaN}get weekday(){return this.isValid?Ho(this).weekday:NaN}get ordinal(){return this.isValid?Ro(this.c).ordinal:NaN}get monthShort(){return this.isValid?ho.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ho.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ho.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ho.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return li(this.year)}get daysInMonth(){return hi(this.year,this.month)}get daysInYear(){return this.isValid?ci(this.year):NaN}get weeksInWeekYear(){return this.isValid?di(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:i,calendar:n}=Ni.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:i,outputCalendar:n}}toUTC(t=0,e={}){return this.setZone(Vi.instance(t),e)}toLocal(){return this.setZone(en.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:i=!1}={}){if((t=Gi(t,en.defaultZone)).equals(this.zone))return this;if(t.isValid){let n=this.ts;if(e||i){const e=t.offset(this.ts),i=this.toObject();[n]=Go(i,e,t)}return Uo(this,{ts:n,zone:t})}return hr.invalid(Zo(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:i}={}){return Uo(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:i})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=vi(t,sr),i=!Ke(e.weekYear)||!Ke(e.weekNumber)||!Ke(e.weekday),n=!Ke(e.ordinal),o=!Ke(e.year),r=!Ke(e.month)||!Ke(e.day),s=o||r,a=e.weekYear||e.weekNumber;if((s||n)&&a)throw new xe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(r&&n)throw new xe("Can't mix ordinal dates with month/day");let l;i?l=zo({...No(this.c),...e}):Ke(e.ordinal)?(l={...this.toObject(),...e},Ke(e.day)&&(l.day=Math.min(hi(l.year,l.month),l.day))):l=Bo({...Ro(this.c),...e});const[c,h]=Go(l,this.o,this.zone);return Uo(this,{ts:c,o:h})}plus(t){if(!this.isValid)return this;return Uo(this,Yo(this,ao.fromDurationLike(t)))}minus(t){if(!this.isValid)return this;return Uo(this,Yo(this,ao.fromDurationLike(t).negate()))}startOf(t){if(!this.isValid)return this;const e={},i=ao.normalizeUnit(t);switch(i){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===i&&(e.weekday=1),"quarters"===i){const t=Math.ceil(this.month/3);e.month=3*(t-1)+1}return this.set(e)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,e={}){return this.isValid?Ni.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):jo}toLocaleString(t=Me,e={}){return this.isValid?Ni.create(this.loc.clone(e),t).formatDateTime(this):jo}toLocaleParts(t={}){return this.isValid?Ni.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:i=!1,includeOffset:n=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const r="extended"===t;let s=Xo(this,r);return s+="T",s+=Qo(this,r,e,i,n,o),s}toISODate({format:t="extended"}={}){return this.isValid?Xo(this,"extended"===t):null}toISOWeekDate(){return Jo(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:i=!0,includePrefix:n=!1,extendedZone:o=!1,format:r="extended"}={}){if(!this.isValid)return null;return(n?"T":"")+Qo(this,"extended"===r,e,t,i,o)}toRFC2822(){return Jo(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Jo(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Xo(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:i=!0}={}){let n="HH:mm:ss.SSS";return(e||t)&&(i&&(n+=" "),e?n+="z":t&&(n+="ZZ")),Jo(this,n,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():jo}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",i={}){if(!this.isValid||!t.isValid)return ao.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...i},o=(a=e,Array.isArray(a)?a:[a]).map(ao.normalizeUnit),r=t.valueOf()>this.valueOf(),s=po(r?this:t,r?t:this,o,n);var a;return r?s.negate():s}diffNow(t="milliseconds",e={}){return this.diff(hr.now(),t,e)}until(t){return this.isValid?co.fromDateTimes(this,t):this}hasSame(t,e){if(!this.isValid)return!1;const i=t.valueOf(),n=this.setZone(t.zone,{keepLocalTime:!0});return n.startOf(e)<=i&&i<=n.endOf(e)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||hr.fromObject({},{zone:this.zone}),i=t.padding?this<e?-t.padding:t.padding:0;let n=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(n=t.unit,o=void 0),lr(e,this.plus(i),{...t,numeric:"always",units:n,unit:o})}toRelativeCalendar(t={}){return this.isValid?lr(t.base||hr.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(hr.isDateTime))throw new ke("min requires all arguments be DateTimes");return ti(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(hr.isDateTime))throw new ke("max requires all arguments be DateTimes");return ti(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,i={}){const{locale:n=null,numberingSystem:o=null}=i;return Do(pn.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,i={}){return hr.fromFormatExplain(t,e,i)}static get DATE_SHORT(){return Me}static get DATE_MED(){return De}static get DATE_MED_WITH_WEEKDAY(){return $e}static get DATE_FULL(){return Ae}static get DATE_HUGE(){return Le}static get TIME_SIMPLE(){return Oe}static get TIME_WITH_SECONDS(){return Pe}static get TIME_WITH_SHORT_OFFSET(){return Ie}static get TIME_WITH_LONG_OFFSET(){return Ne}static get TIME_24_SIMPLE(){return ze}static get TIME_24_WITH_SECONDS(){return Re}static get TIME_24_WITH_SHORT_OFFSET(){return Be}static get TIME_24_WITH_LONG_OFFSET(){return Fe}static get DATETIME_SHORT(){return qe}static get DATETIME_SHORT_WITH_SECONDS(){return je}static get DATETIME_MED(){return Ze}static get DATETIME_MED_WITH_SECONDS(){return He}static get DATETIME_MED_WITH_WEEKDAY(){return Ue}static get DATETIME_FULL(){return Ve}static get DATETIME_FULL_WITH_SECONDS(){return We}static get DATETIME_HUGE(){return Ge}static get DATETIME_HUGE_WITH_SECONDS(){return Ye}}function ur(t){if(hr.isDateTime(t))return t;if(t&&t.valueOf&&Je(t.valueOf()))return hr.fromJSDate(t);if(t&&"object"==typeof t)return hr.fromObject(t);throw new ke(`Unknown datetime argument: ${t}, of type ${typeof t}`)}class dr extends tt{constructor(){super(...arguments),this.ttl=6e4,this.max=20,this.keyedAssets={},this.locale=[...navigator.languages],this.fields={},this.groups={},this.languages={},this.pinnedFields=[],this.langService=new fe,this.humanizer=new ge(this.langService),this.pendingResolves={},this.fetching={}}firstUpdated(){this.cache=me(this.max,this.ttl);const t=[];this.completionEndpoint&&t.push(Wt(this.completionEndpoint).then((t=>{this.schema=t.json.context,this.fnOptions=t.json.functions}))),this.fieldsEndpoint&&t.push(Xt(this.fieldsEndpoint).then((t=>{this.keyedAssets.fields=[],this.pinnedFields=[],t.forEach((t=>{this.keyedAssets.fields.push(t.key),this.fields[t.key]=t,t.pinned&&this.pinnedFields.push(t)})),this.pinnedFields.sort(((t,e)=>e.priority-t.priority))}))),this.globalsEndpoint&&t.push(Xt(this.globalsEndpoint).then((t=>{this.keyedAssets.globals=t.map((t=>t.key))}))),this.languagesEndpoint&&t.push(Xt(this.languagesEndpoint).then((t=>{this.languages=t.reduce((function(t,e){return t[e.value]=e.name,t}),{})}))),this.groupsEndpoint&&t.push(Xt(this.groupsEndpoint).then((t=>{t.forEach((t=>{this.groups[t.uuid]=t}))}))),this.workspaceEndpoint&&t.push(Wt(this.workspaceEndpoint).then((t=>{this.workspace=t.json;const e=t.headers.get("content-language");e&&(this.locale=[e,...this.locale])}))),this.httpComplete=Promise.all(t)}getLanguageCode(){return this.locale.length>0?this.locale[0].split("-")[0]:"en"}getShortDuration(t){const e=hr.fromISO(t),i=hr.now(),n=e.diff(i).valueOf();return this.humanizer.humanize(n,{language:this.getLanguageCode(),largest:1,round:!1})}setKeyedAssets(t,e){this.keyedAssets[t]=e}updated(t){super.updated(t)}getCompletionSchema(){return this.schema}getFunctions(){return this.fnOptions}getKeyedAssets(){return this.keyedAssets}getContactField(t){return this.fields[t]}getPinnedFields(){return this.pinnedFields}getLanguageName(t){return this.languages[t]}isDynamicGroup(t){const e=this.groups[t];return!(!e||!e.query)}getWorkspace(){return this.workspace}formatDate(t){return new Date(t).toLocaleString(this.locale,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"})}postUrl(t,e="",i={},n=null){return Qt(t,e,i,n)}getUrl(t,e){return!(e=e||{}).force&&this.cache.has(t)?new Promise((e=>{e(this.cache.get(t))})):Wt(t,e.controller,e.headers||{}).then((e=>new Promise(((i,n)=>{e.status>=200&&e.status<=300?(this.cache.set(t,e),i(e)):n("Status: "+e.status)}))))}getResults(t,e){e=e||{};const i="results_"+t,n=this.cache.get(i);return!e.force&&n?new Promise((t=>{t(n)})):new Promise((e=>{const n=this.pendingResolves[t]||[];n.push(e),this.pendingResolves[t]=n,n.length<=1&&Kt(t).then((e=>{this.cache.set(i,e);const n=this.pendingResolves[t]||[];for(;n.length>0;){n.pop()(e)}}))}))}updateCache(t,e){this.cache.set(t,e),this.fireCustomEvent(de.StoreUpdated,{url:t,data:e})}makeRequest(t,e){const i=this.fetching[t],n=(new Date).getTime();if(i&&n-i<500)return;this.fetching[t]=n,e=e||{};const o=this.cache.get(t);o&&!e.force?this.fireCustomEvent(de.StoreUpdated,{url:t,data:o}):Kt(t).then((i=>{i=e.prepareData?e.prepareData(i):i,this.cache.set(t,i),this.fireCustomEvent(de.StoreUpdated,{url:t,data:i}),delete this.fetching[t]}))}}t([it({type:Number})],dr.prototype,"ttl",void 0),t([it({type:Number})],dr.prototype,"max",void 0),t([it({type:String,attribute:"completion"})],dr.prototype,"completionEndpoint",void 0),t([it({type:String,attribute:"fields"})],dr.prototype,"fieldsEndpoint",void 0),t([it({type:String,attribute:"groups"})],dr.prototype,"groupsEndpoint",void 0),t([it({type:String,attribute:"globals"})],dr.prototype,"globalsEndpoint",void 0),t([it({type:String,attribute:"languages"})],dr.prototype,"languagesEndpoint",void 0),t([it({type:String,attribute:"workspace"})],dr.prototype,"workspaceEndpoint",void 0),t([it({type:Object,attribute:!1})],dr.prototype,"schema",void 0),t([it({type:Object,attribute:!1})],dr.prototype,"fnOptions",void 0),t([it({type:Object,attribute:!1})],dr.prototype,"keyedAssets",void 0);class pr extends tt{constructor(){super(...arguments),this.marginHorizontal=0,this.marginVertical=7,this.scrollPct=75,this.cursorIndex=-1,this.nameKey="name",this.loading=!1,this.getName=function(t){return t[this.nameKey||"name"]},this.renderInputOption=function(){return null},this.scrollHeight=0,this.triggerScroll=!1,this.scrollParent=null,this.setCursor=oe((function(t){t!==this.cursorIndex&&(this.cursorIndex=t)}),50)}static get styles(){return r`
290
290
  .options-container {
291
291
  background: var(--color-widget-bg-focused);
292
292
  user-select: none;