@nodeblocks/frontend-list-organization-block 0.2.2 → 0.3.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/dist/index.esm.js CHANGED
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import{Stack as r,Typography as s,TextField as i,InputAdornment as a,SvgIcon as o,Button as l,CircularProgress as u,Tabs as c,Tab as h,Box as d,TableContainer as m,Paper as f,Table as y,TableHead as g,TableRow as w,TableCell as p,TableBody as k,Pagination as b}from"@mui/material";import{createContext as v,useContext as S,createElement as T,Fragment as O}from"react";class N extends Error{}class M extends N{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class D extends N{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class x extends N{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class I extends N{}class V extends N{constructor(e){super(`Invalid unit ${e}`)}}class C extends N{}class E extends N{constructor(){super("Zone is an abstract class")}}const F="numeric",L="short",W="long",$={year:F,month:F,day:F},Z={year:F,month:L,day:F},z={year:F,month:L,day:F,weekday:L},A={year:F,month:W,day:F},j={year:F,month:W,day:F,weekday:W},q={hour:F,minute:F},U={hour:F,minute:F,second:F},_={hour:F,minute:F,second:F,timeZoneName:L},R={hour:F,minute:F,second:F,timeZoneName:W},H={hour:F,minute:F,hourCycle:"h23"},Y={hour:F,minute:F,second:F,hourCycle:"h23"},P={hour:F,minute:F,second:F,hourCycle:"h23",timeZoneName:L},J={hour:F,minute:F,second:F,hourCycle:"h23",timeZoneName:W},G={year:F,month:F,day:F,hour:F,minute:F},B={year:F,month:F,day:F,hour:F,minute:F,second:F},Q={year:F,month:L,day:F,hour:F,minute:F},K={year:F,month:L,day:F,hour:F,minute:F,second:F},X={year:F,month:L,day:F,weekday:L,hour:F,minute:F},ee={year:F,month:W,day:F,hour:F,minute:F,timeZoneName:L},te={year:F,month:W,day:F,hour:F,minute:F,second:F,timeZoneName:L},ne={year:F,month:W,day:F,weekday:W,hour:F,minute:F,timeZoneName:W},re={year:F,month:W,day:F,weekday:W,hour:F,minute:F,second:F,timeZoneName:W};class se{get type(){throw new E}get name(){throw new E}get ianaName(){return this.name}get isUniversal(){throw new E}offsetName(e,t){throw new E}formatOffset(e,t){throw new E}offset(e){throw new E}equals(e){throw new E}get isValid(){throw new E}}let ie=null;class ae extends se{static get instance(){return null===ie&&(ie=new ae),ie}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Mt(e,t,n)}formatOffset(e,t){return Vt(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}const oe=new Map,le={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},ue=new Map;class ce extends se{static create(e){let t=ue.get(e);return void 0===t&&ue.set(e,t=new ce(e)),t}static resetCache(){ue.clear(),oe.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=ce.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Mt(e,t,n,this.name)}formatOffset(e,t){return Vt(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const n=function(e){let t=oe.get(e);return void 0===t&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),oe.set(e,t)),t}(this.name);let[r,s,i,a,o,l,u]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const{type:t,value:s}=n[e],i=le[t];"era"===t?r[i]=s:it(i)||(r[i]=parseInt(s,10))}return r}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,a,o,l,u,c]=r;return[a,s,i,o,l,u,c]}(n,t);"BC"===a&&(r=1-Math.abs(r));let c=+t;const h=c%1e3;return c-=h>=0?h:1e3+h,(St({year:r,month:s,day:i,hour:24===o?0:o,minute:l,second:u,millisecond:0})-c)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let he={};const de=new Map;function me(e,t={}){const n=JSON.stringify([e,t]);let r=de.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(e,t),de.set(n,r)),r}const fe=new Map,ye=new Map;let ge=null;const we=new Map;function pe(e){let t=we.get(e);return void 0===t&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),we.set(e,t)),t}const ke=new Map;function be(e,t,n,r){const s=e.listingMode();return"error"===s?null:"en"===s?n(t):r(t)}class ve{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...i}=n;if(!t||Object.keys(i).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=fe.get(n);return void 0===r&&(r=new Intl.NumberFormat(e,t),fe.set(n,r)),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return ft(this.floor?Math.floor(e):pt(e,3),this.padTo)}}class Se{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&ce.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=me(t,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Te{constructor(e,t,n){this.opts={style:"long",...n},!t&&lt()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,s=JSON.stringify([e,r]);let i=ye.get(s);return void 0===i&&(i=new Intl.RelativeTimeFormat(e,t),ye.set(s,i)),i}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&i){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${s[e][0]}`;case-1:return n?"yesterday":`last ${s[e][0]}`;case 0:return n?"today":`this ${s[e][0]}`}}const a=Object.is(t,-0)||t<0,o=Math.abs(t),l=1===o,u=s[e],c=r?l?u[1]:u[2]||u[1]:l?s[e][0]:e;return a?`${o} ${c} ago`:`in ${o} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const Oe={firstDay:1,minimalDays:4,weekend:[6,7]};class Ne{static fromOpts(e){return Ne.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,r,s=!1){const i=e||_e.defaultLocale,a=i||(s?"en-US":ge||(ge=(new Intl.DateTimeFormat).resolvedOptions().locale,ge)),o=t||_e.defaultNumberingSystem,l=n||_e.defaultOutputCalendar,u=dt(r)||_e.defaultWeekSettings;return new Ne(a,o,l,u,i)}static resetCache(){ge=null,de.clear(),fe.clear(),ye.clear(),we.clear(),ke.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:r}={}){return Ne.create(e,t,n,r)}constructor(e,t,n,r,s){const[i,a,o]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=me(e).resolvedOptions(),r=e}catch(s){const i=e.substring(0,n);t=me(i).resolvedOptions(),r=i}const{numberingSystem:s,calendar:i}=t;return[r,s,i]}}(e);this.locale=i,this.numberingSystem=t||a||null,this.outputCalendar=n||o||null,this.weekSettings=r,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===pe(e.locale).numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Ne.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,dt(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return be(this,e,Wt,()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),r=(t&=!n)?{month:e,day:"numeric"}:{month:e},s=t?"format":"standalone";if(!this.monthsCache[s][e]){const t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,"month");this.monthsCache[s][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=zr.utc(2009,n,1);t.push(e(r))}return t}(t)}return this.monthsCache[s][e]})}weekdays(e,t=!1){return be(this,e,At,()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=zr.utc(2016,11,13+n);t.push(e(r))}return t}(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return be(this,void 0,()=>jt,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[zr.utc(2016,11,13,9),zr.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return be(this,e,Rt,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[zr.utc(-40,1,1),zr.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new ve(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Se(e,this.intl,t)}relFormatter(e={}){return new Te(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=he[n];return r||(r=new Intl.ListFormat(e,t),he[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||pe(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ut()?function(e){let t=ke.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...Oe,...t}),ke.set(e,t)}return t}(this.locale):Oe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Me=null;class De extends se{static get utcInstance(){return null===Me&&(Me=new De(0)),Me}static instance(e){return 0===e?De.utcInstance:new De(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new De(Dt(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Vt(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Vt(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Vt(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class xe extends se{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ie(e,t){if(it(e)||null===e)return t;if(e instanceof se)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?ae.instance:"utc"===n||"gmt"===n?De.utcInstance:De.parseSpecifier(n)||ce.create(e)}return at(e)?De.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new xe(e)}const Ve={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Ce={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]},Ee=Ve.hanidec.replace(/[\[|\]]/g,"").split(""),Fe=new Map;function Le({numberingSystem:e},t=""){const n=e||"latn";let r=Fe.get(n);void 0===r&&(r=new Map,Fe.set(n,r));let s=r.get(t);return void 0===s&&(s=new RegExp(`${Ve[n]}${t}`),r.set(t,s)),s}let We,$e=()=>Date.now(),Ze="system",ze=null,Ae=null,je=null,qe=60,Ue=null;class _e{static get now(){return $e}static set now(e){$e=e}static set defaultZone(e){Ze=e}static get defaultZone(){return Ie(Ze,ae.instance)}static get defaultLocale(){return ze}static set defaultLocale(e){ze=e}static get defaultNumberingSystem(){return Ae}static set defaultNumberingSystem(e){Ae=e}static get defaultOutputCalendar(){return je}static set defaultOutputCalendar(e){je=e}static get defaultWeekSettings(){return Ue}static set defaultWeekSettings(e){Ue=dt(e)}static get twoDigitCutoffYear(){return qe}static set twoDigitCutoffYear(e){qe=e%100}static get throwOnInvalid(){return We}static set throwOnInvalid(e){We=e}static resetCaches(){Ne.resetCache(),ce.resetCache(),zr.resetCache(),Fe.clear()}}class Re{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const He=[0,31,59,90,120,151,181,212,243,273,304,334],Ye=[0,31,60,91,121,152,182,213,244,274,305,335];function Pe(e,t){return new Re("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Je(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function Ge(e,t,n){return n+(kt(e)?Ye:He)[t-1]}function Be(e,t){const n=kt(e)?Ye:He,r=n.findIndex(e=>e<t);return{month:r+1,day:t-n[r]}}function Qe(e,t){return(e-t+7)%7+1}function Ke(e,t=4,n=1){const{year:r,month:s,day:i}=e,a=Ge(r,s,i),o=Qe(Je(r,s,i),n);let l,u=Math.floor((a-o+14-t)/7);return u<1?(l=r-1,u=Ot(l,t,n)):u>Ot(r,t,n)?(l=r+1,u=1):l=r,{weekYear:l,weekNumber:u,weekday:o,...Ct(e)}}function Xe(e,t=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=e,a=Qe(Je(r,1,t),n),o=bt(r);let l,u=7*s+i-a-7+t;u<1?(l=r-1,u+=bt(l)):u>o?(l=r+1,u-=bt(r)):l=r;const{month:c,day:h}=Be(l,u);return{year:l,month:c,day:h,...Ct(e)}}function et(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:Ge(t,n,r),...Ct(e)}}function tt(e){const{year:t,ordinal:n}=e,{month:r,day:s}=Be(t,n);return{year:t,month:r,day:s,...Ct(e)}}function nt(e,t){if(!it(e.localWeekday)||!it(e.localWeekNumber)||!it(e.localWeekYear)){if(!it(e.weekday)||!it(e.weekNumber)||!it(e.weekYear))throw new I("Cannot mix locale-based week fields with ISO-based week fields");return it(e.localWeekday)||(e.weekday=e.localWeekday),it(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),it(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function rt(e){const t=ot(e.year),n=mt(e.month,1,12),r=mt(e.day,1,vt(e.year,e.month));return t?n?!r&&Pe("day",e.day):Pe("month",e.month):Pe("year",e.year)}function st(e){const{hour:t,minute:n,second:r,millisecond:s}=e,i=mt(t,0,23)||24===t&&0===n&&0===r&&0===s,a=mt(n,0,59),o=mt(r,0,59),l=mt(s,0,999);return i?a?o?!l&&Pe("millisecond",s):Pe("second",r):Pe("minute",n):Pe("hour",t)}function it(e){return void 0===e}function at(e){return"number"==typeof e}function ot(e){return"number"==typeof e&&e%1==0}function lt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function ut(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function ct(e,t,n){if(0!==e.length)return e.reduce((e,r)=>{const s=[t(r),r];return e&&n(e[0],s[0])===e[0]?e:s},null)[1]}function ht(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function dt(e){if(null==e)return null;if("object"!=typeof e)throw new C("Week settings must be an object");if(!mt(e.firstDay,1,7)||!mt(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!mt(e,1,7)))throw new C("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function mt(e,t,n){return ot(e)&&e>=t&&e<=n}function ft(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function yt(e){return it(e)||null===e||""===e?void 0:parseInt(e,10)}function gt(e){return it(e)||null===e||""===e?void 0:parseFloat(e)}function wt(e){if(!it(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function pt(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function kt(e){return e%4==0&&(e%100!=0||e%400==0)}function bt(e){return kt(e)?366:365}function vt(e,t){const n=(r=t-1)-12*Math.floor(r/12)+1;var r;return 2===n?kt(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function St(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Tt(e,t,n){return-Qe(Je(e,1,t),n)+t-1}function Ot(e,t=4,n=1){const r=Tt(e,t,n),s=Tt(e+1,t,n);return(bt(e)-r+s)/7}function Nt(e){return e>99?e:e>_e.twoDigitCutoffYear?1900+e:2e3+e}function Mt(e,t,n,r=null){const s=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:t,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(s).find(e=>"timezonename"===e.type.toLowerCase());return o?o.value:null}function Dt(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function xt(e){const t=Number(e);if("boolean"==typeof e||""===e||!Number.isFinite(t))throw new C(`Invalid unit value ${e}`);return t}function It(e,t){const n={};for(const r in e)if(ht(e,r)){const s=e[r];if(null==s)continue;n[t(r)]=xt(s)}return n}function Vt(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${ft(n,2)}:${ft(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${ft(n,2)}${ft(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Ct(e){return function(e){return["hour","minute","second","millisecond"].reduce((t,n)=>(t[n]=e[n],t),{})}(e)}const Et=["January","February","March","April","May","June","July","August","September","October","November","December"],Ft=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Lt=["J","F","M","A","M","J","J","A","S","O","N","D"];function Wt(e){switch(e){case"narrow":return[...Lt];case"short":return[...Ft];case"long":return[...Et];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 $t=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Zt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],zt=["M","T","W","T","F","S","S"];function At(e){switch(e){case"narrow":return[...zt];case"short":return[...Zt];case"long":return[...$t];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const jt=["AM","PM"],qt=["Before Christ","Anno Domini"],Ut=["BC","AD"],_t=["B","A"];function Rt(e){switch(e){case"narrow":return[..._t];case"short":return[...Ut];case"long":return[...qt];default:return null}}function Ht(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Yt={D:$,DD:Z,DDD:A,DDDD:j,t:q,tt:U,ttt:_,tttt:R,T:H,TT:Y,TTT:P,TTTT:J,f:G,ff:Q,fff:ee,ffff:ne,F:B,FF:K,FFF:te,FFFF:re};class Pt{static create(e,t={}){return new Pt(e,t)}static parseFormat(e){let t=null,n="",r=!1;const s=[];for(let i=0;i<e.length;i++){const a=e.charAt(i);"'"===a?((n.length>0||r)&&s.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(e){return Yt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return ft(e,t);const r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(t,n)=>this.loc.extract(e,t,n),i=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=(t,r)=>n?function(e,t){return Wt(t)[e.month-1]}(e,t):s(r?{month:t}:{month:t,day:"numeric"},"month"),o=(t,r)=>n?function(e,t){return At(t)[e.weekday-1]}(e,t):s(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=Pt.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},u=t=>n?function(e,t){return Rt(t)[e.year<0?0:1]}(e,t):s({era:t},"era");return Ht(Pt.parseFormat(t),t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return n?function(e){return jt[e.hour<12?0:1]}(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?s({day:"numeric"},"day"):this.num(e.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(e.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(e.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}})}formatDurationFromString(e,t){const n="negativeLargestOnly"===this.opts.signMode?-1:1,r=e=>{switch(e[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},s=Pt.parseFormat(t),i=s.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),a=e.shiftTo(...i.map(r).filter(e=>e));return Ht(s,((e,t)=>s=>{const i=r(s);if(i){const r=t.isNegativeDuration&&i!==t.largestUnit?n:1;let a;return a="negativeLargestOnly"===this.opts.signMode&&i!==t.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(e.get(i)*r,s.length,a)}return s})(a,{isNegativeDuration:a<0,largestUnit:Object.keys(a.values)[0]}))}}const Jt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Gt(...e){const t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function Bt(...e){return t=>e.reduce(([e,n,r],s)=>{const[i,a,o]=s(t,r);return[{...e,...i},a||n,o]},[{},null,1]).slice(0,2)}function Qt(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function Kt(...e){return(t,n)=>{const r={};let s;for(s=0;s<e.length;s++)r[e[s]]=yt(t[n+s]);return[r,null,n+s]}}const Xt=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,en=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,tn=RegExp(`${en.source}(?:${Xt.source}?(?:\\[(${Jt.source})\\])?)?`),nn=RegExp(`(?:[Tt]${tn.source})?`),rn=Kt("weekYear","weekNumber","weekDay"),sn=Kt("year","ordinal"),an=RegExp(`${en.source} ?(?:${Xt.source}|(${Jt.source}))?`),on=RegExp(`(?: ${an.source})?`);function ln(e,t,n){const r=e[t];return it(r)?n:yt(r)}function un(e,t){return[{hours:ln(e,t,0),minutes:ln(e,t+1,0),seconds:ln(e,t+2,0),milliseconds:wt(e[t+3])},null,t+4]}function cn(e,t){const n=!e[t]&&!e[t+1],r=Dt(e[t+1],e[t+2]);return[{},n?null:De.instance(r),t+3]}function hn(e,t){return[{},e[t]?ce.create(e[t]):null,t+1]}const dn=RegExp(`^T?${en.source}$`),mn=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function fn(e){const[t,n,r,s,i,a,o,l,u]=e,c="-"===t[0],h=l&&"-"===l[0],d=(e,t=!1)=>void 0!==e&&(t||e&&c)?-e:e;return[{years:d(gt(n)),months:d(gt(r)),weeks:d(gt(s)),days:d(gt(i)),hours:d(gt(a)),minutes:d(gt(o)),seconds:d(gt(l),"-0"===l),milliseconds:d(wt(u),h)}]}const yn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function gn(e,t,n,r,s,i,a){const o={year:2===t.length?Nt(yt(t)):yt(t),month:Ft.indexOf(n)+1,day:yt(r),hour:yt(s),minute:yt(i)};return a&&(o.second=yt(a)),e&&(o.weekday=e.length>3?$t.indexOf(e)+1:Zt.indexOf(e)+1),o}const wn=/^(?:(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 pn(e){const[,t,n,r,s,i,a,o,l,u,c,h]=e,d=gn(t,s,r,n,i,a,o);let m;return m=l?yn[l]:u?0:Dt(c,h),[d,new De(m)]}const kn=/^(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$/,bn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,vn=/^(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 Sn(e){const[,t,n,r,s,i,a,o]=e;return[gn(t,s,r,n,i,a,o),De.utcInstance]}function Tn(e){const[,t,n,r,s,i,a,o]=e;return[gn(t,o,n,r,s,i,a),De.utcInstance]}const On=Gt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,nn),Nn=Gt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,nn),Mn=Gt(/(\d{4})-?(\d{3})/,nn),Dn=Gt(tn),xn=Bt(function(e,t){return[{year:ln(e,t),month:ln(e,t+1,1),day:ln(e,t+2,1)},null,t+3]},un,cn,hn),In=Bt(rn,un,cn,hn),Vn=Bt(sn,un,cn,hn),Cn=Bt(un,cn,hn),En=Bt(un),Fn=Gt(/(\d{4})-(\d\d)-(\d\d)/,on),Ln=Gt(an),Wn=Bt(un,cn,hn),$n="Invalid Duration",Zn={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}},zn={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},...Zn},An={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:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Zn},jn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],qn=jn.slice(0).reverse();function Un(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Yn(r)}function _n(e,t){let n=t.milliseconds??0;for(const r of qn.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function Rn(e,t){const n=_n(e,t)<0?-1:1;jn.reduceRight((r,s)=>{if(it(t[s]))return r;if(r){const i=t[r]*n,a=e[s][r],o=Math.floor(i/a);t[s]+=o*n,t[r]-=o*a*n}return s},null),jn.reduce((n,r)=>{if(it(t[r]))return n;if(n){const s=t[n]%1;t[n]-=s,t[r]+=s*e[n][r]}return r},null)}function Hn(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}class Yn{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?An:zn;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Ne.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Yn.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new C("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Yn({values:It(e,Yn.normalizeUnit),loc:Ne.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(at(e))return Yn.fromMillis(e);if(Yn.isDuration(e))return e;if("object"==typeof e)return Yn.fromObject(e);throw new C(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return Qt(e,[mn,fn])}(e);return n?Yn.fromObject(n,t):Yn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return Qt(e,[dn,En])}(e);return n?Yn.fromObject(n,t):Yn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new C("need to specify a reason the Duration is invalid");const n=e instanceof Re?e:new Re(e,t);if(_e.throwOnInvalid)throw new x(n);return new Yn({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new V(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Pt.create(this.loc,n).formatDurationFromString(this,e):$n}toHuman(e={}){if(!this.isValid)return $n;const t=!1!==e.showZeros,n=jn.map(n=>{const r=this.values[n];return it(r)||0===r&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=pt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},zr.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?_n(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Yn.fromDurationLike(e),n={};for(const e of jn)(ht(t.values,e)||ht(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Un(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=Yn.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=xt(e(this.values[n],n));return Un(this,{values:t},!0)}get(e){return this[Yn.normalizeUnit(e)]}set(e){return this.isValid?Un(this,{values:{...this.values,...It(e,Yn.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return Un(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Rn(this.matrix,e),Un(this,{values:e},!0)}rescale(){return this.isValid?Un(this,{values:Hn(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map(e=>Yn.normalizeUnit(e));const t={},n={},r=this.toObject();let s;for(const i of jn)if(e.indexOf(i)>=0){s=i;let e=0;for(const t in n)e+=this.matrix[t][i]*n[t],n[t]=0;at(r[i])&&(e+=r[i]);const a=Math.trunc(e);t[i]=a,n[i]=(1e3*e-1e3*a)/1e3}else at(r[i])&&(n[i]=r[i]);for(const e in n)0!==n[e]&&(t[s]+=e===s?n[e]:n[e]/this.matrix[s][e]);return Rn(this.matrix,t),Un(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Un(this,{values:e},!0)}removeZeros(){return this.isValid?Un(this,{values:Hn(this.values)},!0):this}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(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;function t(e,t){return void 0===e||0===e?void 0===t||0===t:e===t}for(const n of jn)if(!t(this.values[n],e.values[n]))return!1;return!0}}const Pn="Invalid Interval";class Jn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new C("need to specify a reason the Interval is invalid");const n=e instanceof Re?e:new Re(e,t);if(_e.throwOnInvalid)throw new D(n);return new Jn({invalid:n})}static fromDateTimes(e,t){const n=Ar(e),r=Ar(t),s=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?Jn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Jn.invalid("missing or invalid end"):Jn.invalid("missing or invalid start")}(n,r);return null==s?new Jn({start:n,end:r}):s}static after(e,t){const n=Yn.fromDurationLike(t),r=Ar(e);return Jn.fromDateTimes(r,r.plus(n))}static before(e,t){const n=Yn.fromDurationLike(t),r=Ar(e);return Jn.fromDateTimes(r.minus(n),r)}static fromISO(e,t){const[n,r]=(e||"").split("/",2);if(n&&r){let e,s,i,a;try{e=zr.fromISO(n,t),s=e.isValid}catch(r){s=!1}try{i=zr.fromISO(r,t),a=i.isValid}catch(r){a=!1}if(s&&a)return Jn.fromDateTimes(e,i);if(s){const n=Yn.fromISO(r,t);if(n.isValid)return Jn.after(e,n)}else if(a){const e=Yn.fromISO(n,t);if(e.isValid)return Jn.before(i,e)}}return Jn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let r;return r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?Jn.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Ar).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),n=[];let{s:r}=this,s=0;for(;r<this.e;){const e=t[s]||this.e,i=+e>+this.e?this.e:e;n.push(Jn.fromDateTimes(r,i)),r=i,s+=1}return n}splitBy(e){const t=Yn.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,s=1;const i=[];for(;r<this.e;){const e=this.start.plus(t.mapUnits(e=>e*s));n=+e>+this.e?this.e:e,i.push(Jn.fromDateTimes(r,n)),r=n,s+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e===+e.s}abutsEnd(e){return!!this.isValid&&+e.e===+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:Jn.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Jn.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],s=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]),i=Array.prototype.concat(...s).sort((e,t)=>e.time-t.time);for(const e of i)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!==+e.time&&r.push(Jn.fromDateTimes(t,e.time)),t=null);return Jn.merge(r)}difference(...e){return Jn.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Pn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=$,t={}){return this.isValid?Pt.create(this.s.loc.clone(t),e).formatInterval(this):Pn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Pn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Pn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Pn}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Pn}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Yn.invalid(this.invalidReason)}mapEndpoints(e){return Jn.fromDateTimes(e(this.s),e(this.e))}}class Gn{static hasDST(e=_e.defaultZone){const t=zr.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return ce.isValidZone(e)}static normalizeZone(e){return Ie(e,_e.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Ne.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Ne.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Ne.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||Ne.create(t,n,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||Ne.create(t,n,s)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Ne.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Ne.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Ne.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Ne.create(t,null,"gregory").eras(e)}static features(){return{relative:lt(),localeWeek:ut()}}}function Bn(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Yn.fromMillis(r).as("days"))}function Qn(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(-1!==e[n].search(Ve.hanidec))t+=Ee.indexOf(e[n]);else for(const e in Ce){const[n,s]=Ce[e];r>=n&&r<=s&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const Kn=`[ ${String.fromCharCode(160)}]`,Xn=new RegExp(Kn,"g");function er(e){return e.replace(/\./g,"\\.?").replace(Xn,Kn)}function tr(e){return e.replace(/\./g,"").replace(Xn," ").toLowerCase()}function nr(e,t){return null===e?null:{regex:RegExp(e.map(er).join("|")),deser:([n])=>e.findIndex(e=>tr(n)===tr(e))+t}}function rr(e,t){return{regex:e,deser:([,e,t])=>Dt(e,t),groups:t}}function sr(e){return{regex:e,deser:([e])=>e}}const ir={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let ar=null;function or(e,t){return Array.prototype.concat(...e.map(e=>function(e,t){if(e.literal)return e;const n=cr(Pt.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t)))}class lr{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=or(Pt.parseFormat(t),e),this.units=this.tokens.map(t=>function(e,t){const n=Le(t),r=Le(t,"{2}"),s=Le(t,"{3}"),i=Le(t,"{4}"),a=Le(t,"{6}"),o=Le(t,"{1,2}"),l=Le(t,"{1,3}"),u=Le(t,"{1,6}"),c=Le(t,"{1,9}"),h=Le(t,"{2,4}"),d=Le(t,"{4,6}"),m=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},f=(f=>{if(e.literal)return m(f);switch(f.val){case"G":return nr(t.eras("short"),0);case"GG":return nr(t.eras("long"),0);case"y":return Qn(u);case"yy":case"kk":return Qn(h,Nt);case"yyyy":case"kkkk":return Qn(i);case"yyyyy":return Qn(d);case"yyyyyy":return Qn(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Qn(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Qn(r);case"MMM":return nr(t.months("short",!0),1);case"MMMM":return nr(t.months("long",!0),1);case"LLL":return nr(t.months("short",!1),1);case"LLLL":return nr(t.months("long",!1),1);case"o":case"S":return Qn(l);case"ooo":case"SSS":return Qn(s);case"u":return sr(c);case"uu":return sr(o);case"uuu":case"E":case"c":return Qn(n);case"a":return nr(t.meridiems(),0);case"EEE":return nr(t.weekdays("short",!1),1);case"EEEE":return nr(t.weekdays("long",!1),1);case"ccc":return nr(t.weekdays("short",!0),1);case"cccc":return nr(t.weekdays("long",!0),1);case"Z":case"ZZ":return rr(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return rr(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return sr(/[a-z_+-/]{1,256}?/i);case" ":return sr(/[^\S\n\r]/);default:return m(f)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=e,f}(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){const[e,t]=[`^${(n=this.units).map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"")}$`,n];this.regex=RegExp(e,"i"),this.handlers=t}var n}explainFromTokens(e){if(this.isValid){const[t,n]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const s in n)if(ht(n,s)){const i=n[s],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(e[i.token.val[0]]=i.deser(r.slice(t,t+a))),t+=a}return[r,e]}return[r,{}]}(e,this.regex,this.handlers),[r,s,i]=n?function(e){let t,n=null;return it(e.z)||(n=ce.create(e.z)),it(e.Z)||(n||(n=new De(e.Z)),t=e.Z),it(e.q)||(e.M=3*(e.q-1)+1),it(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),it(e.u)||(e.S=wt(e.u)),[Object.keys(e).reduce((t,n)=>{const r=(e=>{switch(e){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}})(n);return r&&(t[r]=e[n]),t},{}),n,t]}(n):[null,null,void 0];if(ht(n,"a")&&ht(n,"H"))throw new I("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:s,specificOffset:i}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function ur(e,t,n){return new lr(e,n).explainFromTokens(t)}function cr(e,t){if(!e)return null;const n=Pt.create(t,e).dtFormatter((ar||(ar=zr.fromMillis(1555555555555)),ar)),r=n.formatToParts(),s=n.resolvedOptions();return r.map(t=>function(e,t,n){const{type:r,value:s}=e;if("literal"===r){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const i=t[r];let a=r;"hour"===r&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let o=ir[a];if("object"==typeof o&&(o=o[i]),o)return{literal:!1,val:o}}(t,e,s))}const hr="Invalid DateTime",dr=864e13;function mr(e){return new Re("unsupported zone",`the zone "${e.name}" is not supported`)}function fr(e){return null===e.weekData&&(e.weekData=Ke(e.c)),e.weekData}function yr(e){return null===e.localWeekData&&(e.localWeekData=Ke(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function gr(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new zr({...n,...t,old:n})}function wr(e,t,n){let r=e-60*t*1e3;const s=n.offset(r);if(t===s)return[r,t];r-=60*(s-t)*1e3;const i=n.offset(r);return s===i?[r,s]:[e-60*Math.min(s,i)*1e3,Math.max(s,i)]}function pr(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function kr(e,t,n){return wr(St(e),t,n)}function br(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),i={...e.c,year:r,month:s,day:Math.min(e.c.day,vt(r,s))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=Yn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=St(i);let[l,u]=wr(o,n,e.zone);return 0!==a&&(l+=a,u=e.zone.offset(l)),{ts:l,o:u}}function vr(e,t,n,r,s,i){const{setZone:a,zone:o}=n;if(e&&0!==Object.keys(e).length||t){const r=t||o,s=zr.fromObject(e,{...n,zone:r,specificOffset:i});return a?s:s.setZone(o)}return zr.invalid(new Re("unparsable",`the input "${s}" can't be parsed as ${r}`))}function Sr(e,t,n=!0){return e.isValid?Pt.create(Ne.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Tr(e,t,n){const r=e.c.year>9999||e.c.year<0;let s="";if(r&&e.c.year>=0&&(s+="+"),s+=ft(e.c.year,r?6:4),"year"===n)return s;if(t){if(s+="-",s+=ft(e.c.month),"month"===n)return s;s+="-"}else if(s+=ft(e.c.month),"month"===n)return s;return s+=ft(e.c.day),s}function Or(e,t,n,r,s,i,a){let o=!n||0!==e.c.millisecond||0!==e.c.second,l="";switch(a){case"day":case"month":case"year":break;default:if(l+=ft(e.c.hour),"hour"===a)break;if(t){if(l+=":",l+=ft(e.c.minute),"minute"===a)break;o&&(l+=":",l+=ft(e.c.second))}else{if(l+=ft(e.c.minute),"minute"===a)break;o&&(l+=ft(e.c.second))}if("second"===a)break;!o||r&&0===e.c.millisecond||(l+=".",l+=ft(e.c.millisecond,3))}return s&&(e.isOffsetFixed&&0===e.offset&&!i?l+="Z":e.o<0?(l+="-",l+=ft(Math.trunc(-e.o/60)),l+=":",l+=ft(Math.trunc(-e.o%60))):(l+="+",l+=ft(Math.trunc(e.o/60)),l+=":",l+=ft(Math.trunc(e.o%60)))),i&&(l+="["+e.zone.ianaName+"]"),l}const Nr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Mr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Dr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},xr=["year","month","day","hour","minute","second","millisecond"],Ir=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Vr=["year","ordinal","hour","minute","second","millisecond"];function Cr(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new V(e);return t}function Er(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Cr(e)}}function Fr(e,t){const n=Ie(t.zone,_e.defaultZone);if(!n.isValid)return zr.invalid(mr(n));const r=Ne.fromObject(t);let s,i;if(it(e.year))s=_e.now();else{for(const t of xr)it(e[t])&&(e[t]=Nr[t]);const t=rt(e)||st(e);if(t)return zr.invalid(t);const r=function(e){if(void 0===$r&&($r=_e.now()),"iana"!==e.type)return e.offset($r);const t=e.name;let n=Zr.get(t);return void 0===n&&(n=e.offset($r),Zr.set(t,n)),n}(n);[s,i]=kr(e,r,n)}return new zr({ts:s,zone:n,loc:r,o:i})}function Lr(e,t,n){const r=!!it(n.round)||n.round,s=it(n.rounding)?"trunc":n.rounding,i=(e,i)=>(e=pt(e,r||n.calendary?0:2,n.calendary?"round":s),t.loc.clone(n).relFormatter(n).format(e,i)),a=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return i(a(n.unit),n.unit);for(const e of n.units){const t=a(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,n.units[n.units.length-1])}function Wr(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}let $r;const Zr=new Map;class zr{constructor(e){const t=e.zone||_e.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Re("invalid input"):null)||(t.isValid?null:mr(t));this.ts=it(e.ts)?_e.now():e.ts;let r=null,s=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,s]=[e.old.c,e.old.o];else{const i=at(e.o)&&!e.old?e.o:t.offset(this.ts);r=pr(this.ts,i),n=Number.isNaN(r.year)?new Re("invalid input"):null,r=n?null:r,s=n?null:i}this._zone=t,this.loc=e.loc||Ne.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new zr({})}static local(){const[e,t]=Wr(arguments),[n,r,s,i,a,o,l]=t;return Fr({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:l},e)}static utc(){const[e,t]=Wr(arguments),[n,r,s,i,a,o,l]=t;return e.zone=De.utcInstance,Fr({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:l},e)}static fromJSDate(e,t={}){const n=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);var r;if(Number.isNaN(n))return zr.invalid("invalid input");const s=Ie(t.zone,_e.defaultZone);return s.isValid?new zr({ts:n,zone:s,loc:Ne.fromObject(t)}):zr.invalid(mr(s))}static fromMillis(e,t={}){if(at(e))return e<-dr||e>dr?zr.invalid("Timestamp out of range"):new zr({ts:e,zone:Ie(t.zone,_e.defaultZone),loc:Ne.fromObject(t)});throw new C(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(at(e))return new zr({ts:1e3*e,zone:Ie(t.zone,_e.defaultZone),loc:Ne.fromObject(t)});throw new C("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=Ie(t.zone,_e.defaultZone);if(!n.isValid)return zr.invalid(mr(n));const r=Ne.fromObject(t),s=It(e,Er),{minDaysInFirstWeek:i,startOfWeek:a}=nt(s,r),o=_e.now(),l=it(t.specificOffset)?n.offset(o):t.specificOffset,u=!it(s.ordinal),c=!it(s.year),h=!it(s.month)||!it(s.day),d=c||h,m=s.weekYear||s.weekNumber;if((d||u)&&m)throw new I("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&u)throw new I("Can't mix ordinal dates with month/day");const f=m||s.weekday&&!d;let y,g,w=pr(o,l);f?(y=Ir,g=Mr,w=Ke(w,i,a)):u?(y=Vr,g=Dr,w=et(w)):(y=xr,g=Nr);let p=!1;for(const e of y)it(s[e])?s[e]=p?g[e]:w[e]:p=!0;const k=f?function(e,t=4,n=1){const r=ot(e.weekYear),s=mt(e.weekNumber,1,Ot(e.weekYear,t,n)),i=mt(e.weekday,1,7);return r?s?!i&&Pe("weekday",e.weekday):Pe("week",e.weekNumber):Pe("weekYear",e.weekYear)}(s,i,a):u?function(e){const t=ot(e.year),n=mt(e.ordinal,1,bt(e.year));return t?!n&&Pe("ordinal",e.ordinal):Pe("year",e.year)}(s):rt(s),b=k||st(s);if(b)return zr.invalid(b);const v=f?Xe(s,i,a):u?tt(s):s,[S,T]=kr(v,l,n),O=new zr({ts:S,zone:n,o:T,loc:r});return s.weekday&&d&&e.weekday!==O.weekday?zr.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${O.toISO()}`):O.isValid?O:zr.invalid(O.invalid)}static fromISO(e,t={}){const[n,r]=function(e){return Qt(e,[On,xn],[Nn,In],[Mn,Vn],[Dn,Cn])}(e);return vr(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return Qt(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[wn,pn])}(e);return vr(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return Qt(e,[kn,Sn],[bn,Sn],[vn,Tn])}(e);return vr(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(it(e)||it(t))throw new C("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,i=Ne.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[a,o,l,u]=function(e,t,n){const{result:r,zone:s,specificOffset:i,invalidReason:a}=ur(e,t,n);return[r,s,i,a]}(i,e,t);return u?zr.invalid(u):vr(a,o,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return zr.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function(e){return Qt(e,[Fn,xn],[Ln,Wn])}(e);return vr(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new C("need to specify a reason the DateTime is invalid");const n=e instanceof Re?e:new Re(e,t);if(_e.throwOnInvalid)throw new M(n);return new zr({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=cr(e,Ne.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return or(Pt.parseFormat(e),Ne.fromObject(t)).map(e=>e.val).join("")}static resetCache(){$r=void 0,Zr.clear()}get(e){return this[e]}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?fr(this).weekYear:NaN}get weekNumber(){return this.isValid?fr(this).weekNumber:NaN}get weekday(){return this.isValid?fr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?yr(this).weekday:NaN}get localWeekNumber(){return this.isValid?yr(this).weekNumber:NaN}get localWeekYear(){return this.isValid?yr(this).weekYear:NaN}get ordinal(){return this.isValid?et(this.c).ordinal:NaN}get monthShort(){return this.isValid?Gn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Gn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Gn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Gn.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)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=St(this.c),r=this.zone.offset(n-e),s=this.zone.offset(n+e),i=this.zone.offset(n-r*t),a=this.zone.offset(n-s*t);if(i===a)return[this];const o=n-i*t,l=n-a*t,u=pr(o,i),c=pr(l,a);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[gr(this,{ts:o}),gr(this,{ts:l})]:[this]}get isInLeapYear(){return kt(this.year)}get daysInMonth(){return vt(this.year,this.month)}get daysInYear(){return this.isValid?bt(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ot(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ot(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=Pt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(De.instance(e),t)}toLocal(){return this.setZone(_e.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=Ie(e,_e.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=kr(n,t,e)}return gr(this,{ts:r,zone:e})}return zr.invalid(mr(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return gr(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=It(e,Er),{minDaysInFirstWeek:n,startOfWeek:r}=nt(t,this.loc),s=!it(t.weekYear)||!it(t.weekNumber)||!it(t.weekday),i=!it(t.ordinal),a=!it(t.year),o=!it(t.month)||!it(t.day),l=a||o,u=t.weekYear||t.weekNumber;if((l||i)&&u)throw new I("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new I("Can't mix ordinal dates with month/day");let c;s?c=Xe({...Ke(this.c,n,r),...t},n,r):it(t.ordinal)?(c={...this.toObject(),...t},it(t.day)&&(c.day=Math.min(vt(c.year,c.month),c.day))):c=tt({...et(this.c),...t});const[h,d]=kr(c,this.o,this.zone);return gr(this,{ts:h,o:d})}plus(e){return this.isValid?gr(this,br(this,Yn.fromDurationLike(e))):this}minus(e){return this.isValid?gr(this,br(this,Yn.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},r=Yn.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===r){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?Pt.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):hr}toLocaleString(e=$,t={}){return this.isValid?Pt.create(this.loc.clone(t),e).formatDateTime(this):hr}toLocaleParts(e={}){return this.isValid?Pt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1,precision:i="milliseconds"}={}){if(!this.isValid)return null;const a="extended"===e;let o=Tr(this,a,i=Cr(i));return xr.indexOf(i)>=3&&(o+="T"),o+=Or(this,a,t,n,r,s,i),o}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?Tr(this,"extended"===e,Cr(t)):null}toISOWeekDate(){return Sr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:i="extended",precision:a="milliseconds"}={}){return this.isValid?(a=Cr(a),(r&&xr.indexOf(a)>=3?"T":"")+Or(this,"extended"===i,t,e,n,s,a)):null}toRFC2822(){return Sr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Sr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Tr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),Sr(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():hr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Yn.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(o=t,Array.isArray(o)?o:[o]).map(Yn.normalizeUnit),i=e.valueOf()>this.valueOf(),a=function(e,t,n,r){let[s,i,a,o]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=Bn(e,t);return(n-n%7)/7}],["days",Bn]],s={},i=e;let a,o;for(const[l,u]of r)n.indexOf(l)>=0&&(a=l,s[l]=u(e,t),o=i.plus(s),o>t?(s[l]--,(e=i.plus(s))>t&&(o=e,s[l]--,e=i.plus(s))):e=o);return[e,s,o,a]}(e,t,n);const l=t-s,u=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===u.length&&(a<t&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+l/(a-s)));const c=Yn.fromObject(i,r);return u.length>0?Yn.fromMillis(l,r).shiftTo(...u).plus(c):c}(i?this:e,i?e:this,s,r);var o;return i?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(zr.now(),e,t)}until(e){return this.isValid?Jn.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const r=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(t,n)<=r&&r<=s.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||zr.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],s=e.unit;return Array.isArray(e.unit)&&(r=e.unit,s=void 0),Lr(t,this.plus(n),{...e,numeric:"always",units:r,unit:s})}toRelativeCalendar(e={}){return this.isValid?Lr(e.base||zr.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(zr.isDateTime))throw new C("min requires all arguments be DateTimes");return ct(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(zr.isDateTime))throw new C("max requires all arguments be DateTimes");return ct(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:s=null}=n;return ur(Ne.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return zr.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:r=null}=t,s=Ne.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new lr(s,e)}static fromFormatParser(e,t,n={}){if(it(e)||it(t))throw new C("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:s=null}=n,i=Ne.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});if(!i.equals(t.locale))throw new C(`fromFormatParser called with a locale of ${i}, but the format parser was created for ${t.locale}`);const{result:a,zone:o,specificOffset:l,invalidReason:u}=t.explainFromTokens(e);return u?zr.invalid(u):vr(a,o,n,`format ${t.format}`,e,l)}static get DATE_SHORT(){return $}static get DATE_MED(){return Z}static get DATE_MED_WITH_WEEKDAY(){return z}static get DATE_FULL(){return A}static get DATE_HUGE(){return j}static get TIME_SIMPLE(){return q}static get TIME_WITH_SECONDS(){return U}static get TIME_WITH_SHORT_OFFSET(){return _}static get TIME_WITH_LONG_OFFSET(){return R}static get TIME_24_SIMPLE(){return H}static get TIME_24_WITH_SECONDS(){return Y}static get TIME_24_WITH_SHORT_OFFSET(){return P}static get TIME_24_WITH_LONG_OFFSET(){return J}static get DATETIME_SHORT(){return G}static get DATETIME_SHORT_WITH_SECONDS(){return B}static get DATETIME_MED(){return Q}static get DATETIME_MED_WITH_SECONDS(){return K}static get DATETIME_MED_WITH_WEEKDAY(){return X}static get DATETIME_FULL(){return ee}static get DATETIME_FULL_WITH_SECONDS(){return te}static get DATETIME_HUGE(){return ne}static get DATETIME_HUGE_WITH_SECONDS(){return re}}function Ar(e){if(zr.isDateTime(e))return e;if(e&&e.valueOf&&at(e.valueOf()))return zr.fromJSDate(e);if(e&&"object"==typeof e)return zr.fromObject(e);throw new C(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const jr=["isLoading","labels","onSearchFieldChange","onNavigate","onActionClick","onRowActionClick","pagination","data","rowHref","tabs","currentTab","onTabChange","listOrganizationsTitle"],qr=v(void 0),Ur=({children:t,...n})=>e(qr.Provider,{value:n,children:t}),_r=()=>{const e=S(qr);if(!e)throw new Error("useListOrganizationsContext must be used within a ListOrganizationsProvider");return e};function Rr({blocksOverride:e,defaultBlocks:t,defaultBlockOrder:n,children:r}){if(void 0===e)return r({blocks:t,blockOrder:n});if("function"==typeof e){const{blocks:s,blockOrder:i}=e({defaultBlocks:t,defaultBlockOrder:n});return r({blocks:s,blockOrder:i})}return e}function Hr(e,t){const n={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}function Yr(...e){return e.flat().filter(Boolean).join(" ")}function Pr(e,...t){const n={...e};for(const e of t)delete n[e];return n}function Jr(e,...t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const Gr=({sx:t,spacing:n=3,className:s,children:i,...a})=>e(r,{className:Yr("nbb-list-organizations-container",s),spacing:n,sx:[{p:3},...Array.isArray(t)?t:[t]],...Pr(a,...jr),children:e(Ur,{...Jr(a,...jr),children:e(Rr,{defaultBlocks:Br,defaultBlockOrder:Object.keys(Br),blocksOverride:i,children:({blocks:{title:t,action:n,tabs:r,table:s,...i},blockOrder:a})=>a.filter(e=>e in i).map(t=>e(O,{children:i[t]},String(t)))})})});Gr.Title=t=>{const n=_r(),{children:r,className:i,listOrganizationsTitle:a}=Hr(n,t),{component:o="h1",variant:l="h4",...u}=t;return e(s,{component:o,variant:l,className:Yr("nbb-list-organizations-title",i),...Pr(u,...jr),children:r||a})},Gr.Action=s=>{const u=_r(),{children:c,className:h,onActionClick:d,onSearchFieldChange:m,labels:f}=Hr(u,s),{spacing:y=2,direction:g="row",...w}=s;return e(r,{direction:g,spacing:y,className:Yr("nbb-list-organizations-action",h),...Pr(w,...jr),children:c||t(n,{children:[e(i,{placeholder:f.searchFieldPlaceholder??"",type:"search",variant:"outlined",onChange:e=>m(e.target.value),sx:e=>({width:e.spacing(44.75),"& .MuiOutlinedInput-root":{height:e.spacing(5.5),pr:1.5,"& .MuiOutlinedInput-input":{pl:1.5,pt:1.25,pb:1.25,fontSize:e.typography.body2.fontSize}}}),slotProps:{input:{endAdornment:e(a,{position:"end",children:e(o,{children:e("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})})})}}}),e(l,{size:"medium",variant:"outlined",onClick:d,sx:e=>({height:e.spacing(5.5),px:2}),children:f.actions.headerAction})]})})},Gr.Header=s=>{const{children:i,className:a}=Hr(_r(),s),{direction:o,sx:l=[],className:u,children:c,...h}=s;return e(r,{direction:o||"row",sx:[{justifyContent:"space-between"},...Array.isArray(l)?l:[l]],className:Yr("nbb-list-organizations-header",a),...h,children:i||t(n,{children:[e(Gr.Title,{}),e(Gr.Action,{})]})})},Gr.Loader=t=>{const{children:n,className:s}=Hr(_r(),t),{sx:i=[],...a}=t;return e(r,{className:Yr("nbb-list-organizations-loader",s),sx:[{alignItems:"center",justifyContent:"center"},...Array.isArray(i)?i:[i]],...a,children:n||e(u,{})})};const Br=(Qr={title:Gr.Title,action:Gr.Action,header:Gr.Header,content:Gr.Content=s=>{const i=_r(),{children:a,className:o,isLoading:l}=Hr(i,s);return e(r,{className:Yr("nbb-list-organizations-content",o),spacing:3,...Pr(s,...jr),children:a?e(n,{children:a}):l?e(Gr.Loader,{}):t(n,{children:[e(Gr.Tabs,{}),e(Gr.Table,{})]})})},tabs:Gr.Tabs=({className:r,...i})=>{const a=_r(),{tabs:o,currentTab:l,onTabChange:u}=Hr(a,i);if(!o||0===o.length)return null;const d=Math.max(0,o.findIndex(e=>e.label===l)),m=u&&((e,t)=>{const n=o[t];u(n.label)});return e(c,{value:d,...m&&{onChange:m},variant:"fullWidth",className:Yr("nbb-list-organizations-tabs",r),...Pr(i,...jr),children:o.map((r,i)=>e(h,{label:t(n,{children:[r.label,r.subtitle&&t(s,{component:"span",variant:"body2",color:"text.secondary",children:[" ",r.subtitle]})]}),disabled:Boolean(r.isDisabled)},r.key??i))})},table:Gr.Table=n=>{const i=_r(),{className:a,labels:u,data:c,rowHref:h,onNavigate:v,onRowActionClick:S,pagination:T}=Hr(i,n),{spacing:O=3,...N}=n,M=e=>{if(!e)return null;const t=zr.fromISO(e);return t.isValid?t:null};return c?0===c.length?e(r,{className:Yr("nbb-list-organizations-table",a),spacing:O,...Pr(N,...jr),children:t(d,{className:"nbb-table-empty-state",children:[e(o,{className:"nbb-table-empty-state-icon",children:e("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})}),e(s,{variant:"body1",className:"nbb-table-empty-state-message",children:u.emptyStateMessage})]})}):t(r,{className:Yr("nbb-list-organizations-table",a),spacing:O,...Pr(N,...jr),children:[e(m,{component:f,elevation:0,children:t(y,{children:[e(g,{children:t(w,{children:[e(p,{children:e(s,{variant:"body2",color:"text.secondary",sx:{fontWeight:"bold"},children:u.headerRow.name})}),e(p,{children:e(s,{variant:"body2",color:"text.secondary",sx:{fontWeight:"bold"},children:u.headerRow.joinDate})}),e(p,{children:e(s,{variant:"body2",color:"text.secondary",sx:{fontWeight:"bold"},children:u.headerRow.createdAt})}),e(p,{children:e(s,{variant:"body2",color:"text.secondary",sx:{fontWeight:"bold"},children:u.headerRow.auditStatus})}),e(p,{sx:{width:e=>e.spacing(20),textAlign:"center"}})]})}),e(k,{children:c.map(n=>{const r=h?.(n);return t(w,{hover:!!r,onClick:()=>{r&&v&&v(r)},sx:e=>({cursor:r?"pointer":"default",...!r&&{"&.MuiTableRow-root.MuiTableRow-root:hover":{bgcolor:e.palette.background.paper}}}),children:[e(p,{children:e(s,{variant:"body2",children:n.name})}),e(p,{children:e(s,{variant:"body2",title:M(n.joinDate)?.toLocaleString(zr.DATETIME_FULL)??"N/A",children:M(n.joinDate)?.toFormat("yyyy/M/d")??"N/A"})}),e(p,{children:e(s,{variant:"body2",title:M(n.createdAt)?.toLocaleString(zr.DATETIME_FULL)??"N/A",children:M(n.createdAt)?.toFormat("yyyy/M/d")??"N/A"})}),e(p,{children:e(s,{variant:"body2",children:(()=>{const e=n.auditStatus;switch(e){case"approved":return u.cellData.statusApproved;case"rejected":return u.cellData.statusRejected;case"waiting_for_review":return u.cellData.statusWaitingForReview;default:return e}})()})}),e(p,{sx:{width:e=>e.spacing(20),textAlign:"center"},children:"waiting_for_review"===n.auditStatus&&e(d,{onClick:e=>e.stopPropagation(),children:e(l,{size:"medium",variant:"outlined",onClick:()=>S(n),sx:{overflowWrap:"break-word",lineHeight:1.2,px:2},children:u.actions.rowAction})})})]},n.id)})})]})}),T&&e(r,{sx:{alignItems:"center"},children:e(b,{count:T.totalPages,page:T.currentPage,onChange:(e,t)=>T.onPageChange(t),...T.className&&{className:T.className},variant:"outlined",shape:"rounded"})})]}):null}},Object.fromEntries(Object.entries(Qr).map(([e,t])=>[e,T(t,{key:e})])));var Qr;export{Gr as ListOrganizations};
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import{CloseOutlined as r,PersonOutlined as i,MoreVertOutlined as s,Loop as a,BlockOutlined as o,Search as l}from"@mui/icons-material";import{Stack as u,Pagination as c,Box as d,Typography as h,Chip as m,Tabs as f,Tab as y,Button as g,CircularProgress as p,Menu as w,MenuItem as b,ListItemIcon as v,TableBody as k,TableHead as S,TableContainer as O,Paper as T,Table as M,TableRow as C,TableCell as N,IconButton as x,TextField as D,InputAdornment as I,Tooltip as A}from"@mui/material";import{createContext as V,createElement as E,useState as L,useEffect as F,Fragment as z,useContext as $,isValidElement as W,cloneElement as R,useCallback as Z,useMemo as j,useRef as P}from"react";import B from"@mui/material/useMediaQuery";import{useTheme as q}from"@mui/material/styles";class H extends Error{}class U extends H{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class _ extends H{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Y extends H{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class J extends H{}class G extends H{constructor(e){super(`Invalid unit ${e}`)}}class Q extends H{}class K extends H{constructor(){super("Zone is an abstract class")}}const X="numeric",ee="short",te="long",ne={year:X,month:X,day:X},re={year:X,month:ee,day:X},ie={year:X,month:ee,day:X,weekday:ee},se={year:X,month:te,day:X},ae={year:X,month:te,day:X,weekday:te},oe={hour:X,minute:X},le={hour:X,minute:X,second:X},ue={hour:X,minute:X,second:X,timeZoneName:ee},ce={hour:X,minute:X,second:X,timeZoneName:te},de={hour:X,minute:X,hourCycle:"h23"},he={hour:X,minute:X,second:X,hourCycle:"h23"},me={hour:X,minute:X,second:X,hourCycle:"h23",timeZoneName:ee},fe={hour:X,minute:X,second:X,hourCycle:"h23",timeZoneName:te},ye={year:X,month:X,day:X,hour:X,minute:X},ge={year:X,month:X,day:X,hour:X,minute:X,second:X},pe={year:X,month:ee,day:X,hour:X,minute:X},we={year:X,month:ee,day:X,hour:X,minute:X,second:X},be={year:X,month:ee,day:X,weekday:ee,hour:X,minute:X},ve={year:X,month:te,day:X,hour:X,minute:X,timeZoneName:ee},ke={year:X,month:te,day:X,hour:X,minute:X,second:X,timeZoneName:ee},Se={year:X,month:te,day:X,weekday:te,hour:X,minute:X,timeZoneName:te},Oe={year:X,month:te,day:X,weekday:te,hour:X,minute:X,second:X,timeZoneName:te};class Te{get type(){throw new K}get name(){throw new K}get ianaName(){return this.name}get isUniversal(){throw new K}offsetName(e,t){throw new K}formatOffset(e,t){throw new K}offset(e){throw new K}equals(e){throw new K}get isValid(){throw new K}}let Me=null;class Ce extends Te{static get instance(){return null===Me&&(Me=new Ce),Me}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ut(e,t,n)}formatOffset(e,t){return Gt(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}const Ne=new Map,xe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},De=new Map;class Ie extends Te{static create(e){let t=De.get(e);return void 0===t&&De.set(e,t=new Ie(e)),t}static resetCache(){De.clear(),Ne.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Ie.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ut(e,t,n,this.name)}formatOffset(e,t){return Gt(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const n=function(e){let t=Ne.get(e);return void 0===t&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Ne.set(e,t)),t}(this.name);let[r,i,s,a,o,l,u]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const{type:t,value:i}=n[e],s=xe[t];"era"===t?r[s]=i:Mt(s)||(r[s]=parseInt(i,10))}return r}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,s,a,o,l,u,c]=r;return[a,i,s,o,l,u,c]}(n,t);"BC"===a&&(r=1-Math.abs(r));let c=+t;const d=c%1e3;return c-=d>=0?d:1e3+d,(Pt({year:r,month:i,day:s,hour:24===o?0:o,minute:l,second:u,millisecond:0})-c)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let Ae={};const Ve=new Map;function Ee(e,t={}){const n=JSON.stringify([e,t]);let r=Ve.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(e,t),Ve.set(n,r)),r}const Le=new Map,Fe=new Map;let ze=null;const $e=new Map;function We(e){let t=$e.get(e);return void 0===t&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),$e.set(e,t)),t}const Re=new Map;function Ze(e,t,n,r){const i=e.listingMode();return"error"===i?null:"en"===i?n(t):r(t)}class je{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:i,...s}=n;if(!t||Object.keys(s).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=Le.get(n);return void 0===r&&(r=new Intl.NumberFormat(e,t),Le.set(n,r)),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Lt(this.floor?Math.floor(e):Wt(e,3),this.padTo)}}class Pe{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Ie.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=Ee(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Be{constructor(e,t,n){this.opts={style:"long",...n},!t&&xt()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let s=Fe.get(i);return void 0===s&&(s=new Intl.RelativeTimeFormat(e,t),Fe.set(i,s)),s}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",r=!1){const i={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."]},s=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&s){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${i[e][0]}`;case-1:return n?"yesterday":`last ${i[e][0]}`;case 0:return n?"today":`this ${i[e][0]}`}}const a=Object.is(t,-0)||t<0,o=Math.abs(t),l=1===o,u=i[e],c=r?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return a?`${o} ${c} ago`:`in ${o} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const qe={firstDay:1,minimalDays:4,weekend:[6,7]};class He{static fromOpts(e){return He.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,r,i=!1){const s=e||ut.defaultLocale,a=s||(i?"en-US":ze||(ze=(new Intl.DateTimeFormat).resolvedOptions().locale,ze)),o=t||ut.defaultNumberingSystem,l=n||ut.defaultOutputCalendar,u=Vt(r)||ut.defaultWeekSettings;return new He(a,o,l,u,s)}static resetCache(){ze=null,Ve.clear(),Le.clear(),Fe.clear(),$e.clear(),Re.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:r}={}){return He.create(e,t,n,r)}constructor(e,t,n,r,i){const[s,a,o]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=Ee(e).resolvedOptions(),r=e}catch(i){const s=e.substring(0,n);t=Ee(s).resolvedOptions(),r=s}const{numberingSystem:i,calendar:s}=t;return[r,i,s]}}(e);this.locale=s,this.numberingSystem=t||a||null,this.outputCalendar=n||o||null,this.weekSettings=r,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===We(e.locale).numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?He.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Vt(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Ze(this,e,tn,()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),r=(t&=!n)?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";if(!this.monthsCache[i][e]){const t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,"month");this.monthsCache[i][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=ii.utc(2009,n,1);t.push(e(r))}return t}(t)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return Ze(this,e,an,()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=ii.utc(2016,11,13+n);t.push(e(r))}return t}(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return Ze(this,void 0,()=>on,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ii.utc(2016,11,13,9),ii.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Ze(this,e,dn,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[ii.utc(-40,1,1),ii.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new je(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Pe(e,this.intl,t)}relFormatter(e={}){return new Be(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=Ae[n];return r||(r=new Intl.ListFormat(e,t),Ae[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||We(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Dt()?function(e){let t=Re.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...qe,...t}),Re.set(e,t)}return t}(this.locale):qe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Ue=null;class _e extends Te{static get utcInstance(){return null===Ue&&(Ue=new _e(0)),Ue}static instance(e){return 0===e?_e.utcInstance:new _e(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new _e(_t(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Gt(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Gt(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Gt(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class Ye extends Te{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Je(e,t){if(Mt(e)||null===e)return t;if(e instanceof Te)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?Ce.instance:"utc"===n||"gmt"===n?_e.utcInstance:_e.parseSpecifier(n)||Ie.create(e)}return Ct(e)?_e.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new Ye(e)}const Ge={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Qe={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]},Ke=Ge.hanidec.replace(/[\[|\]]/g,"").split(""),Xe=new Map;function et({numberingSystem:e},t=""){const n=e||"latn";let r=Xe.get(n);void 0===r&&(r=new Map,Xe.set(n,r));let i=r.get(t);return void 0===i&&(i=new RegExp(`${Ge[n]}${t}`),r.set(t,i)),i}let tt,nt=()=>Date.now(),rt="system",it=null,st=null,at=null,ot=60,lt=null;class ut{static get now(){return nt}static set now(e){nt=e}static set defaultZone(e){rt=e}static get defaultZone(){return Je(rt,Ce.instance)}static get defaultLocale(){return it}static set defaultLocale(e){it=e}static get defaultNumberingSystem(){return st}static set defaultNumberingSystem(e){st=e}static get defaultOutputCalendar(){return at}static set defaultOutputCalendar(e){at=e}static get defaultWeekSettings(){return lt}static set defaultWeekSettings(e){lt=Vt(e)}static get twoDigitCutoffYear(){return ot}static set twoDigitCutoffYear(e){ot=e%100}static get throwOnInvalid(){return tt}static set throwOnInvalid(e){tt=e}static resetCaches(){He.resetCache(),Ie.resetCache(),ii.resetCache(),Xe.clear()}}class ct{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const dt=[0,31,59,90,120,151,181,212,243,273,304,334],ht=[0,31,60,91,121,152,182,213,244,274,305,335];function mt(e,t){return new ct("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ft(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return 0===i?7:i}function yt(e,t,n){return n+(Rt(e)?ht:dt)[t-1]}function gt(e,t){const n=Rt(e)?ht:dt,r=n.findIndex(e=>e<t);return{month:r+1,day:t-n[r]}}function pt(e,t){return(e-t+7)%7+1}function wt(e,t=4,n=1){const{year:r,month:i,day:s}=e,a=yt(r,i,s),o=pt(ft(r,i,s),n);let l,u=Math.floor((a-o+14-t)/7);return u<1?(l=r-1,u=qt(l,t,n)):u>qt(r,t,n)?(l=r+1,u=1):l=r,{weekYear:l,weekNumber:u,weekday:o,...Qt(e)}}function bt(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:s}=e,a=pt(ft(r,1,t),n),o=Zt(r);let l,u=7*i+s-a-7+t;u<1?(l=r-1,u+=Zt(l)):u>o?(l=r+1,u-=Zt(r)):l=r;const{month:c,day:d}=gt(l,u);return{year:l,month:c,day:d,...Qt(e)}}function vt(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:yt(t,n,r),...Qt(e)}}function kt(e){const{year:t,ordinal:n}=e,{month:r,day:i}=gt(t,n);return{year:t,month:r,day:i,...Qt(e)}}function St(e,t){if(!Mt(e.localWeekday)||!Mt(e.localWeekNumber)||!Mt(e.localWeekYear)){if(!Mt(e.weekday)||!Mt(e.weekNumber)||!Mt(e.weekYear))throw new J("Cannot mix locale-based week fields with ISO-based week fields");return Mt(e.localWeekday)||(e.weekday=e.localWeekday),Mt(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Mt(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Ot(e){const t=Nt(e.year),n=Et(e.month,1,12),r=Et(e.day,1,jt(e.year,e.month));return t?n?!r&&mt("day",e.day):mt("month",e.month):mt("year",e.year)}function Tt(e){const{hour:t,minute:n,second:r,millisecond:i}=e,s=Et(t,0,23)||24===t&&0===n&&0===r&&0===i,a=Et(n,0,59),o=Et(r,0,59),l=Et(i,0,999);return s?a?o?!l&&mt("millisecond",i):mt("second",r):mt("minute",n):mt("hour",t)}function Mt(e){return void 0===e}function Ct(e){return"number"==typeof e}function Nt(e){return"number"==typeof e&&e%1==0}function xt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Dt(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function It(e,t,n){if(0!==e.length)return e.reduce((e,r)=>{const i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function At(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Vt(e){if(null==e)return null;if("object"!=typeof e)throw new Q("Week settings must be an object");if(!Et(e.firstDay,1,7)||!Et(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!Et(e,1,7)))throw new Q("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Et(e,t,n){return Nt(e)&&e>=t&&e<=n}function Lt(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function Ft(e){return Mt(e)||null===e||""===e?void 0:parseInt(e,10)}function zt(e){return Mt(e)||null===e||""===e?void 0:parseFloat(e)}function $t(e){if(!Mt(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function Wt(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Rt(e){return e%4==0&&(e%100!=0||e%400==0)}function Zt(e){return Rt(e)?366:365}function jt(e,t){const n=(r=t-1)-12*Math.floor(r/12)+1;var r;return 2===n?Rt(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Pt(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Bt(e,t,n){return-pt(ft(e,1,t),n)+t-1}function qt(e,t=4,n=1){const r=Bt(e,t,n),i=Bt(e+1,t,n);return(Zt(e)-r+i)/7}function Ht(e){return e>99?e:e>ut.twoDigitCutoffYear?1900+e:2e3+e}function Ut(e,t,n,r=null){const i=new Date(e),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(s.timeZone=r);const a={timeZoneName:t,...s},o=new Intl.DateTimeFormat(n,a).formatToParts(i).find(e=>"timezonename"===e.type.toLowerCase());return o?o.value:null}function _t(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function Yt(e){const t=Number(e);if("boolean"==typeof e||""===e||!Number.isFinite(t))throw new Q(`Invalid unit value ${e}`);return t}function Jt(e,t){const n={};for(const r in e)if(At(e,r)){const i=e[r];if(null==i)continue;n[t(r)]=Yt(i)}return n}function Gt(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${Lt(n,2)}:${Lt(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${Lt(n,2)}${Lt(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Qt(e){return function(e){return["hour","minute","second","millisecond"].reduce((t,n)=>(t[n]=e[n],t),{})}(e)}const Kt=["January","February","March","April","May","June","July","August","September","October","November","December"],Xt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],en=["J","F","M","A","M","J","J","A","S","O","N","D"];function tn(e){switch(e){case"narrow":return[...en];case"short":return[...Xt];case"long":return[...Kt];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 nn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],rn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],sn=["M","T","W","T","F","S","S"];function an(e){switch(e){case"narrow":return[...sn];case"short":return[...rn];case"long":return[...nn];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const on=["AM","PM"],ln=["Before Christ","Anno Domini"],un=["BC","AD"],cn=["B","A"];function dn(e){switch(e){case"narrow":return[...cn];case"short":return[...un];case"long":return[...ln];default:return null}}function hn(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const mn={D:ne,DD:re,DDD:se,DDDD:ae,t:oe,tt:le,ttt:ue,tttt:ce,T:de,TT:he,TTT:me,TTTT:fe,f:ye,ff:pe,fff:ve,ffff:Se,F:ge,FF:we,FFF:ke,FFFF:Oe};class fn{static create(e,t={}){return new fn(e,t)}static parseFormat(e){let t=null,n="",r=!1;const i=[];for(let s=0;s<e.length;s++){const a=e.charAt(s);"'"===a?((n.length>0||r)&&i.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return mn[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return Lt(e,t);const r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(t,n)=>this.loc.extract(e,t,n),s=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=(t,r)=>n?function(e,t){return tn(t)[e.month-1]}(e,t):i(r?{month:t}:{month:t,day:"numeric"},"month"),o=(t,r)=>n?function(e,t){return an(t)[e.weekday-1]}(e,t):i(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=fn.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},u=t=>n?function(e,t){return dn(t)[e.year<0?0:1]}(e,t):i({era:t},"era");return hn(fn.parseFormat(t),t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return n?function(e){return on[e.hour<12?0:1]}(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}})}formatDurationFromString(e,t){const n="negativeLargestOnly"===this.opts.signMode?-1:1,r=e=>{switch(e[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=fn.parseFormat(t),s=i.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),a=e.shiftTo(...s.map(r).filter(e=>e));return hn(i,((e,t)=>i=>{const s=r(i);if(s){const r=t.isNegativeDuration&&s!==t.largestUnit?n:1;let a;return a="negativeLargestOnly"===this.opts.signMode&&s!==t.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(e.get(s)*r,i.length,a)}return i})(a,{isNegativeDuration:a<0,largestUnit:Object.keys(a.values)[0]}))}}const yn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function gn(...e){const t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function pn(...e){return t=>e.reduce(([e,n,r],i)=>{const[s,a,o]=i(t,r);return[{...e,...s},a||n,o]},[{},null,1]).slice(0,2)}function wn(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function bn(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=Ft(t[n+i]);return[r,null,n+i]}}const vn=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,kn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Sn=RegExp(`${kn.source}(?:${vn.source}?(?:\\[(${yn.source})\\])?)?`),On=RegExp(`(?:[Tt]${Sn.source})?`),Tn=bn("weekYear","weekNumber","weekDay"),Mn=bn("year","ordinal"),Cn=RegExp(`${kn.source} ?(?:${vn.source}|(${yn.source}))?`),Nn=RegExp(`(?: ${Cn.source})?`);function xn(e,t,n){const r=e[t];return Mt(r)?n:Ft(r)}function Dn(e,t){return[{hours:xn(e,t,0),minutes:xn(e,t+1,0),seconds:xn(e,t+2,0),milliseconds:$t(e[t+3])},null,t+4]}function In(e,t){const n=!e[t]&&!e[t+1],r=_t(e[t+1],e[t+2]);return[{},n?null:_e.instance(r),t+3]}function An(e,t){return[{},e[t]?Ie.create(e[t]):null,t+1]}const Vn=RegExp(`^T?${kn.source}$`),En=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ln(e){const[t,n,r,i,s,a,o,l,u]=e,c="-"===t[0],d=l&&"-"===l[0],h=(e,t=!1)=>void 0!==e&&(t||e&&c)?-e:e;return[{years:h(zt(n)),months:h(zt(r)),weeks:h(zt(i)),days:h(zt(s)),hours:h(zt(a)),minutes:h(zt(o)),seconds:h(zt(l),"-0"===l),milliseconds:h($t(u),d)}]}const Fn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function zn(e,t,n,r,i,s,a){const o={year:2===t.length?Ht(Ft(t)):Ft(t),month:Xt.indexOf(n)+1,day:Ft(r),hour:Ft(i),minute:Ft(s)};return a&&(o.second=Ft(a)),e&&(o.weekday=e.length>3?nn.indexOf(e)+1:rn.indexOf(e)+1),o}const $n=/^(?:(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 Wn(e){const[,t,n,r,i,s,a,o,l,u,c,d]=e,h=zn(t,i,r,n,s,a,o);let m;return m=l?Fn[l]:u?0:_t(c,d),[h,new _e(m)]}const Rn=/^(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$/,Zn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,jn=/^(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 Pn(e){const[,t,n,r,i,s,a,o]=e;return[zn(t,i,r,n,s,a,o),_e.utcInstance]}function Bn(e){const[,t,n,r,i,s,a,o]=e;return[zn(t,o,n,r,i,s,a),_e.utcInstance]}const qn=gn(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,On),Hn=gn(/(\d{4})-?W(\d\d)(?:-?(\d))?/,On),Un=gn(/(\d{4})-?(\d{3})/,On),_n=gn(Sn),Yn=pn(function(e,t){return[{year:xn(e,t),month:xn(e,t+1,1),day:xn(e,t+2,1)},null,t+3]},Dn,In,An),Jn=pn(Tn,Dn,In,An),Gn=pn(Mn,Dn,In,An),Qn=pn(Dn,In,An),Kn=pn(Dn),Xn=gn(/(\d{4})-(\d\d)-(\d\d)/,Nn),er=gn(Cn),tr=pn(Dn,In,An),nr="Invalid Duration",rr={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}},ir={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},...rr},sr={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:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...rr},ar=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],or=ar.slice(0).reverse();function lr(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new hr(r)}function ur(e,t){let n=t.milliseconds??0;for(const r of or.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function cr(e,t){const n=ur(e,t)<0?-1:1;ar.reduceRight((r,i)=>{if(Mt(t[i]))return r;if(r){const s=t[r]*n,a=e[i][r],o=Math.floor(s/a);t[i]+=o*n,t[r]-=o*a*n}return i},null),ar.reduce((n,r)=>{if(Mt(t[r]))return n;if(n){const i=t[n]%1;t[n]-=i,t[r]+=i*e[n][r]}return r},null)}function dr(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}class hr{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?sr:ir;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||He.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return hr.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new Q("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new hr({values:Jt(e,hr.normalizeUnit),loc:He.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Ct(e))return hr.fromMillis(e);if(hr.isDuration(e))return e;if("object"==typeof e)return hr.fromObject(e);throw new Q(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return wn(e,[En,Ln])}(e);return n?hr.fromObject(n,t):hr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return wn(e,[Vn,Kn])}(e);return n?hr.fromObject(n,t):hr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new Q("need to specify a reason the Duration is invalid");const n=e instanceof ct?e:new ct(e,t);if(ut.throwOnInvalid)throw new Y(n);return new hr({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new G(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?fn.create(this.loc,n).formatDurationFromString(this,e):nr}toHuman(e={}){if(!this.isValid)return nr;const t=!1!==e.showZeros,n=ar.map(n=>{const r=this.values[n];return Mt(r)||0===r&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=Wt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ii.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?ur(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=hr.fromDurationLike(e),n={};for(const e of ar)(At(t.values,e)||At(this.values,e))&&(n[e]=t.get(e)+this.get(e));return lr(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=hr.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Yt(e(this.values[n],n));return lr(this,{values:t},!0)}get(e){return this[hr.normalizeUnit(e)]}set(e){return this.isValid?lr(this,{values:{...this.values,...Jt(e,hr.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return lr(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return cr(this.matrix,e),lr(this,{values:e},!0)}rescale(){return this.isValid?lr(this,{values:dr(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map(e=>hr.normalizeUnit(e));const t={},n={},r=this.toObject();let i;for(const s of ar)if(e.indexOf(s)>=0){i=s;let e=0;for(const t in n)e+=this.matrix[t][s]*n[t],n[t]=0;Ct(r[s])&&(e+=r[s]);const a=Math.trunc(e);t[s]=a,n[s]=(1e3*e-1e3*a)/1e3}else Ct(r[s])&&(n[s]=r[s]);for(const e in n)0!==n[e]&&(t[i]+=e===i?n[e]:n[e]/this.matrix[i][e]);return cr(this.matrix,t),lr(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return lr(this,{values:e},!0)}removeZeros(){return this.isValid?lr(this,{values:dr(this.values)},!0):this}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(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;function t(e,t){return void 0===e||0===e?void 0===t||0===t:e===t}for(const n of ar)if(!t(this.values[n],e.values[n]))return!1;return!0}}const mr="Invalid Interval";class fr{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new Q("need to specify a reason the Interval is invalid");const n=e instanceof ct?e:new ct(e,t);if(ut.throwOnInvalid)throw new _(n);return new fr({invalid:n})}static fromDateTimes(e,t){const n=si(e),r=si(t),i=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?fr.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:fr.invalid("missing or invalid end"):fr.invalid("missing or invalid start")}(n,r);return null==i?new fr({start:n,end:r}):i}static after(e,t){const n=hr.fromDurationLike(t),r=si(e);return fr.fromDateTimes(r,r.plus(n))}static before(e,t){const n=hr.fromDurationLike(t),r=si(e);return fr.fromDateTimes(r.minus(n),r)}static fromISO(e,t){const[n,r]=(e||"").split("/",2);if(n&&r){let e,i,s,a;try{e=ii.fromISO(n,t),i=e.isValid}catch(r){i=!1}try{s=ii.fromISO(r,t),a=s.isValid}catch(r){a=!1}if(i&&a)return fr.fromDateTimes(e,s);if(i){const n=hr.fromISO(r,t);if(n.isValid)return fr.after(e,n)}else if(a){const e=hr.fromISO(n,t);if(e.isValid)return fr.before(s,e)}}return fr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let r;return r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?fr.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(si).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),n=[];let{s:r}=this,i=0;for(;r<this.e;){const e=t[i]||this.e,s=+e>+this.e?this.e:e;n.push(fr.fromDateTimes(r,s)),r=s,i+=1}return n}splitBy(e){const t=hr.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,i=1;const s=[];for(;r<this.e;){const e=this.start.plus(t.mapUnits(e=>e*i));n=+e>+this.e?this.e:e,s.push(fr.fromDateTimes(r,n)),r=n,i+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e===+e.s}abutsEnd(e){return!!this.isValid&&+e.e===+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:fr.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return fr.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],i=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]),s=Array.prototype.concat(...i).sort((e,t)=>e.time-t.time);for(const e of s)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!==+e.time&&r.push(fr.fromDateTimes(t,e.time)),t=null);return fr.merge(r)}difference(...e){return fr.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:mr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=ne,t={}){return this.isValid?fn.create(this.s.loc.clone(t),e).formatInterval(this):mr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:mr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:mr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:mr}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:mr}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):hr.invalid(this.invalidReason)}mapEndpoints(e){return fr.fromDateTimes(e(this.s),e(this.e))}}class yr{static hasDST(e=ut.defaultZone){const t=ii.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Ie.isValidZone(e)}static normalizeZone(e){return Je(e,ut.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||He.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||He.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||He.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||He.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||He.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||He.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||He.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return He.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return He.create(t,null,"gregory").eras(e)}static features(){return{relative:xt(),localeWeek:Dt()}}}function gr(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(hr.fromMillis(r).as("days"))}function pr(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(-1!==e[n].search(Ge.hanidec))t+=Ke.indexOf(e[n]);else for(const e in Qe){const[n,i]=Qe[e];r>=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const wr=`[ ${String.fromCharCode(160)}]`,br=new RegExp(wr,"g");function vr(e){return e.replace(/\./g,"\\.?").replace(br,wr)}function kr(e){return e.replace(/\./g,"").replace(br," ").toLowerCase()}function Sr(e,t){return null===e?null:{regex:RegExp(e.map(vr).join("|")),deser:([n])=>e.findIndex(e=>kr(n)===kr(e))+t}}function Or(e,t){return{regex:e,deser:([,e,t])=>_t(e,t),groups:t}}function Tr(e){return{regex:e,deser:([e])=>e}}const Mr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Cr=null;function Nr(e,t){return Array.prototype.concat(...e.map(e=>function(e,t){if(e.literal)return e;const n=Ir(fn.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t)))}class xr{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=Nr(fn.parseFormat(t),e),this.units=this.tokens.map(t=>function(e,t){const n=et(t),r=et(t,"{2}"),i=et(t,"{3}"),s=et(t,"{4}"),a=et(t,"{6}"),o=et(t,"{1,2}"),l=et(t,"{1,3}"),u=et(t,"{1,6}"),c=et(t,"{1,9}"),d=et(t,"{2,4}"),h=et(t,"{4,6}"),m=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},f=(f=>{if(e.literal)return m(f);switch(f.val){case"G":return Sr(t.eras("short"),0);case"GG":return Sr(t.eras("long"),0);case"y":return pr(u);case"yy":case"kk":return pr(d,Ht);case"yyyy":case"kkkk":return pr(s);case"yyyyy":return pr(h);case"yyyyyy":return pr(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return pr(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return pr(r);case"MMM":return Sr(t.months("short",!0),1);case"MMMM":return Sr(t.months("long",!0),1);case"LLL":return Sr(t.months("short",!1),1);case"LLLL":return Sr(t.months("long",!1),1);case"o":case"S":return pr(l);case"ooo":case"SSS":return pr(i);case"u":return Tr(c);case"uu":return Tr(o);case"uuu":case"E":case"c":return pr(n);case"a":return Sr(t.meridiems(),0);case"EEE":return Sr(t.weekdays("short",!1),1);case"EEEE":return Sr(t.weekdays("long",!1),1);case"ccc":return Sr(t.weekdays("short",!0),1);case"cccc":return Sr(t.weekdays("long",!0),1);case"Z":case"ZZ":return Or(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return Or(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return Tr(/[a-z_+-/]{1,256}?/i);case" ":return Tr(/[^\S\n\r]/);default:return m(f)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=e,f}(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){const[e,t]=[`^${(n=this.units).map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"")}$`,n];this.regex=RegExp(e,"i"),this.handlers=t}var n}explainFromTokens(e){if(this.isValid){const[t,n]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const i in n)if(At(n,i)){const s=n[i],a=s.groups?s.groups+1:1;!s.literal&&s.token&&(e[s.token.val[0]]=s.deser(r.slice(t,t+a))),t+=a}return[r,e]}return[r,{}]}(e,this.regex,this.handlers),[r,i,s]=n?function(e){let t,n=null;return Mt(e.z)||(n=Ie.create(e.z)),Mt(e.Z)||(n||(n=new _e(e.Z)),t=e.Z),Mt(e.q)||(e.M=3*(e.q-1)+1),Mt(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Mt(e.u)||(e.S=$t(e.u)),[Object.keys(e).reduce((t,n)=>{const r=(e=>{switch(e){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}})(n);return r&&(t[r]=e[n]),t},{}),n,t]}(n):[null,null,void 0];if(At(n,"a")&&At(n,"H"))throw new J("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:i,specificOffset:s}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Dr(e,t,n){return new xr(e,n).explainFromTokens(t)}function Ir(e,t){if(!e)return null;const n=fn.create(t,e).dtFormatter((Cr||(Cr=ii.fromMillis(1555555555555)),Cr)),r=n.formatToParts(),i=n.resolvedOptions();return r.map(t=>function(e,t,n){const{type:r,value:i}=e;if("literal"===r){const e=/^\s+$/.test(i);return{literal:!e,val:e?" ":i}}const s=t[r];let a=r;"hour"===r&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let o=Mr[a];if("object"==typeof o&&(o=o[s]),o)return{literal:!1,val:o}}(t,e,i))}const Ar="Invalid DateTime",Vr=864e13;function Er(e){return new ct("unsupported zone",`the zone "${e.name}" is not supported`)}function Lr(e){return null===e.weekData&&(e.weekData=wt(e.c)),e.weekData}function Fr(e){return null===e.localWeekData&&(e.localWeekData=wt(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function zr(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ii({...n,...t,old:n})}function $r(e,t,n){let r=e-60*t*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;const s=n.offset(r);return i===s?[r,i]:[e-60*Math.min(i,s)*1e3,Math.max(i,s)]}function Wr(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Rr(e,t,n){return $r(Pt(e),t,n)}function Zr(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),s={...e.c,year:r,month:i,day:Math.min(e.c.day,jt(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=hr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=Pt(s);let[l,u]=$r(o,n,e.zone);return 0!==a&&(l+=a,u=e.zone.offset(l)),{ts:l,o:u}}function jr(e,t,n,r,i,s){const{setZone:a,zone:o}=n;if(e&&0!==Object.keys(e).length||t){const r=t||o,i=ii.fromObject(e,{...n,zone:r,specificOffset:s});return a?i:i.setZone(o)}return ii.invalid(new ct("unparsable",`the input "${i}" can't be parsed as ${r}`))}function Pr(e,t,n=!0){return e.isValid?fn.create(He.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Br(e,t,n){const r=e.c.year>9999||e.c.year<0;let i="";if(r&&e.c.year>=0&&(i+="+"),i+=Lt(e.c.year,r?6:4),"year"===n)return i;if(t){if(i+="-",i+=Lt(e.c.month),"month"===n)return i;i+="-"}else if(i+=Lt(e.c.month),"month"===n)return i;return i+=Lt(e.c.day),i}function qr(e,t,n,r,i,s,a){let o=!n||0!==e.c.millisecond||0!==e.c.second,l="";switch(a){case"day":case"month":case"year":break;default:if(l+=Lt(e.c.hour),"hour"===a)break;if(t){if(l+=":",l+=Lt(e.c.minute),"minute"===a)break;o&&(l+=":",l+=Lt(e.c.second))}else{if(l+=Lt(e.c.minute),"minute"===a)break;o&&(l+=Lt(e.c.second))}if("second"===a)break;!o||r&&0===e.c.millisecond||(l+=".",l+=Lt(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&0===e.offset&&!s?l+="Z":e.o<0?(l+="-",l+=Lt(Math.trunc(-e.o/60)),l+=":",l+=Lt(Math.trunc(-e.o%60))):(l+="+",l+=Lt(Math.trunc(e.o/60)),l+=":",l+=Lt(Math.trunc(e.o%60)))),s&&(l+="["+e.zone.ianaName+"]"),l}const Hr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ur={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},_r={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Yr=["year","month","day","hour","minute","second","millisecond"],Jr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Gr=["year","ordinal","hour","minute","second","millisecond"];function Qr(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new G(e);return t}function Kr(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Qr(e)}}function Xr(e,t){const n=Je(t.zone,ut.defaultZone);if(!n.isValid)return ii.invalid(Er(n));const r=He.fromObject(t);let i,s;if(Mt(e.year))i=ut.now();else{for(const t of Yr)Mt(e[t])&&(e[t]=Hr[t]);const t=Ot(e)||Tt(e);if(t)return ii.invalid(t);const r=function(e){if(void 0===ni&&(ni=ut.now()),"iana"!==e.type)return e.offset(ni);const t=e.name;let n=ri.get(t);return void 0===n&&(n=e.offset(ni),ri.set(t,n)),n}(n);[i,s]=Rr(e,r,n)}return new ii({ts:i,zone:n,loc:r,o:s})}function ei(e,t,n){const r=!!Mt(n.round)||n.round,i=Mt(n.rounding)?"trunc":n.rounding,s=(e,s)=>(e=Wt(e,r||n.calendary?0:2,n.calendary?"round":i),t.loc.clone(n).relFormatter(n).format(e,s)),a=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return s(a(n.unit),n.unit);for(const e of n.units){const t=a(e);if(Math.abs(t)>=1)return s(t,e)}return s(e>t?-0:0,n.units[n.units.length-1])}function ti(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}let ni;const ri=new Map;class ii{constructor(e){const t=e.zone||ut.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new ct("invalid input"):null)||(t.isValid?null:Er(t));this.ts=Mt(e.ts)?ut.now():e.ts;let r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,i]=[e.old.c,e.old.o];else{const s=Ct(e.o)&&!e.old?e.o:t.offset(this.ts);r=Wr(this.ts,s),n=Number.isNaN(r.year)?new ct("invalid input"):null,r=n?null:r,i=n?null:s}this._zone=t,this.loc=e.loc||He.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new ii({})}static local(){const[e,t]=ti(arguments),[n,r,i,s,a,o,l]=t;return Xr({year:n,month:r,day:i,hour:s,minute:a,second:o,millisecond:l},e)}static utc(){const[e,t]=ti(arguments),[n,r,i,s,a,o,l]=t;return e.zone=_e.utcInstance,Xr({year:n,month:r,day:i,hour:s,minute:a,second:o,millisecond:l},e)}static fromJSDate(e,t={}){const n=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);var r;if(Number.isNaN(n))return ii.invalid("invalid input");const i=Je(t.zone,ut.defaultZone);return i.isValid?new ii({ts:n,zone:i,loc:He.fromObject(t)}):ii.invalid(Er(i))}static fromMillis(e,t={}){if(Ct(e))return e<-Vr||e>Vr?ii.invalid("Timestamp out of range"):new ii({ts:e,zone:Je(t.zone,ut.defaultZone),loc:He.fromObject(t)});throw new Q(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Ct(e))return new ii({ts:1e3*e,zone:Je(t.zone,ut.defaultZone),loc:He.fromObject(t)});throw new Q("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=Je(t.zone,ut.defaultZone);if(!n.isValid)return ii.invalid(Er(n));const r=He.fromObject(t),i=Jt(e,Kr),{minDaysInFirstWeek:s,startOfWeek:a}=St(i,r),o=ut.now(),l=Mt(t.specificOffset)?n.offset(o):t.specificOffset,u=!Mt(i.ordinal),c=!Mt(i.year),d=!Mt(i.month)||!Mt(i.day),h=c||d,m=i.weekYear||i.weekNumber;if((h||u)&&m)throw new J("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&u)throw new J("Can't mix ordinal dates with month/day");const f=m||i.weekday&&!h;let y,g,p=Wr(o,l);f?(y=Jr,g=Ur,p=wt(p,s,a)):u?(y=Gr,g=_r,p=vt(p)):(y=Yr,g=Hr);let w=!1;for(const e of y)Mt(i[e])?i[e]=w?g[e]:p[e]:w=!0;const b=f?function(e,t=4,n=1){const r=Nt(e.weekYear),i=Et(e.weekNumber,1,qt(e.weekYear,t,n)),s=Et(e.weekday,1,7);return r?i?!s&&mt("weekday",e.weekday):mt("week",e.weekNumber):mt("weekYear",e.weekYear)}(i,s,a):u?function(e){const t=Nt(e.year),n=Et(e.ordinal,1,Zt(e.year));return t?!n&&mt("ordinal",e.ordinal):mt("year",e.year)}(i):Ot(i),v=b||Tt(i);if(v)return ii.invalid(v);const k=f?bt(i,s,a):u?kt(i):i,[S,O]=Rr(k,l,n),T=new ii({ts:S,zone:n,o:O,loc:r});return i.weekday&&h&&e.weekday!==T.weekday?ii.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${T.toISO()}`):T.isValid?T:ii.invalid(T.invalid)}static fromISO(e,t={}){const[n,r]=function(e){return wn(e,[qn,Yn],[Hn,Jn],[Un,Gn],[_n,Qn])}(e);return jr(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return wn(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[$n,Wn])}(e);return jr(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return wn(e,[Rn,Pn],[Zn,Pn],[jn,Bn])}(e);return jr(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(Mt(e)||Mt(t))throw new Q("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:i=null}=n,s=He.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[a,o,l,u]=function(e,t,n){const{result:r,zone:i,specificOffset:s,invalidReason:a}=Dr(e,t,n);return[r,i,s,a]}(s,e,t);return u?ii.invalid(u):jr(a,o,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return ii.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function(e){return wn(e,[Xn,Yn],[er,tr])}(e);return jr(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new Q("need to specify a reason the DateTime is invalid");const n=e instanceof ct?e:new ct(e,t);if(ut.throwOnInvalid)throw new U(n);return new ii({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=Ir(e,He.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return Nr(fn.parseFormat(e),He.fromObject(t)).map(e=>e.val).join("")}static resetCache(){ni=void 0,ri.clear()}get(e){return this[e]}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?Lr(this).weekYear:NaN}get weekNumber(){return this.isValid?Lr(this).weekNumber:NaN}get weekday(){return this.isValid?Lr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Fr(this).weekday:NaN}get localWeekNumber(){return this.isValid?Fr(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Fr(this).weekYear:NaN}get ordinal(){return this.isValid?vt(this.c).ordinal:NaN}get monthShort(){return this.isValid?yr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?yr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?yr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?yr.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)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=Pt(this.c),r=this.zone.offset(n-e),i=this.zone.offset(n+e),s=this.zone.offset(n-r*t),a=this.zone.offset(n-i*t);if(s===a)return[this];const o=n-s*t,l=n-a*t,u=Wr(o,s),c=Wr(l,a);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[zr(this,{ts:o}),zr(this,{ts:l})]:[this]}get isInLeapYear(){return Rt(this.year)}get daysInMonth(){return jt(this.year,this.month)}get daysInYear(){return this.isValid?Zt(this.year):NaN}get weeksInWeekYear(){return this.isValid?qt(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?qt(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=fn.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(_e.instance(e),t)}toLocal(){return this.setZone(ut.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=Je(e,ut.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=Rr(n,t,e)}return zr(this,{ts:r,zone:e})}return ii.invalid(Er(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return zr(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Jt(e,Kr),{minDaysInFirstWeek:n,startOfWeek:r}=St(t,this.loc),i=!Mt(t.weekYear)||!Mt(t.weekNumber)||!Mt(t.weekday),s=!Mt(t.ordinal),a=!Mt(t.year),o=!Mt(t.month)||!Mt(t.day),l=a||o,u=t.weekYear||t.weekNumber;if((l||s)&&u)throw new J("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&s)throw new J("Can't mix ordinal dates with month/day");let c;i?c=bt({...wt(this.c,n,r),...t},n,r):Mt(t.ordinal)?(c={...this.toObject(),...t},Mt(t.day)&&(c.day=Math.min(jt(c.year,c.month),c.day))):c=kt({...vt(this.c),...t});const[d,h]=Rr(c,this.o,this.zone);return zr(this,{ts:d,o:h})}plus(e){return this.isValid?zr(this,Zr(this,hr.fromDurationLike(e))):this}minus(e){return this.isValid?zr(this,Zr(this,hr.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},r=hr.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===r){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?fn.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Ar}toLocaleString(e=ne,t={}){return this.isValid?fn.create(this.loc.clone(t),e).formatDateTime(this):Ar}toLocaleParts(e={}){return this.isValid?fn.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;const a="extended"===e;let o=Br(this,a,s=Qr(s));return Yr.indexOf(s)>=3&&(o+="T"),o+=qr(this,a,t,n,r,i,s),o}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?Br(this,"extended"===e,Qr(t)):null}toISOWeekDate(){return Pr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:s="extended",precision:a="milliseconds"}={}){return this.isValid?(a=Qr(a),(r&&Yr.indexOf(a)>=3?"T":"")+qr(this,"extended"===s,t,e,n,i,a)):null}toRFC2822(){return Pr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Pr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Br(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),Pr(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Ar}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return hr.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=(o=t,Array.isArray(o)?o:[o]).map(hr.normalizeUnit),s=e.valueOf()>this.valueOf(),a=function(e,t,n,r){let[i,s,a,o]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=gr(e,t);return(n-n%7)/7}],["days",gr]],i={},s=e;let a,o;for(const[l,u]of r)n.indexOf(l)>=0&&(a=l,i[l]=u(e,t),o=s.plus(i),o>t?(i[l]--,(e=s.plus(i))>t&&(o=e,i[l]--,e=s.plus(i))):e=o);return[e,i,o,a]}(e,t,n);const l=t-i,u=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===u.length&&(a<t&&(a=i.plus({[o]:1})),a!==i&&(s[o]=(s[o]||0)+l/(a-i)));const c=hr.fromObject(s,r);return u.length>0?hr.fromMillis(l,r).shiftTo(...u).plus(c):c}(s?this:e,s?e:this,i,r);var o;return s?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(ii.now(),e,t)}until(e){return this.isValid?fr.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=r&&r<=i.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||ii.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),ei(t,this.plus(n),{...e,numeric:"always",units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?ei(e.base||ii.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(ii.isDateTime))throw new Q("min requires all arguments be DateTimes");return It(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(ii.isDateTime))throw new Q("max requires all arguments be DateTimes");return It(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:i=null}=n;return Dr(He.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return ii.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:r=null}=t,i=He.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new xr(i,e)}static fromFormatParser(e,t,n={}){if(Mt(e)||Mt(t))throw new Q("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:i=null}=n,s=He.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!s.equals(t.locale))throw new Q(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${t.locale}`);const{result:a,zone:o,specificOffset:l,invalidReason:u}=t.explainFromTokens(e);return u?ii.invalid(u):jr(a,o,n,`format ${t.format}`,e,l)}static get DATE_SHORT(){return ne}static get DATE_MED(){return re}static get DATE_MED_WITH_WEEKDAY(){return ie}static get DATE_FULL(){return se}static get DATE_HUGE(){return ae}static get TIME_SIMPLE(){return oe}static get TIME_WITH_SECONDS(){return le}static get TIME_WITH_SHORT_OFFSET(){return ue}static get TIME_WITH_LONG_OFFSET(){return ce}static get TIME_24_SIMPLE(){return de}static get TIME_24_WITH_SECONDS(){return he}static get TIME_24_WITH_SHORT_OFFSET(){return me}static get TIME_24_WITH_LONG_OFFSET(){return fe}static get DATETIME_SHORT(){return ye}static get DATETIME_SHORT_WITH_SECONDS(){return ge}static get DATETIME_MED(){return pe}static get DATETIME_MED_WITH_SECONDS(){return we}static get DATETIME_MED_WITH_WEEKDAY(){return be}static get DATETIME_FULL(){return ve}static get DATETIME_FULL_WITH_SECONDS(){return ke}static get DATETIME_HUGE(){return Se}static get DATETIME_HUGE_WITH_SECONDS(){return Oe}}function si(e){if(ii.isDateTime(e))return e;if(e&&e.valueOf&&Ct(e.valueOf()))return ii.fromJSDate(e);if(e&&"object"==typeof e)return ii.fromObject(e);throw new Q(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const ai=V(void 0),oi=({children:t,...n})=>e(ai.Provider,{value:n,children:t}),li=()=>{const e=$(ai);if(!e)throw new Error("useBaseTableContext must be used within a BaseTableProvider");return e};function ui(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,E(t,{key:e})]))}function ci({blocksOverride:e,defaultBlocks:t,defaultBlockOrder:n,children:r}){if(void 0===e)return r({blocks:t,blockOrder:n});if("function"==typeof e){const{blocks:i,blockOrder:s}=e({defaultBlocks:t,defaultBlockOrder:n});return r({blocks:i,blockOrder:s})}return e}function di(e,t){const n={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}function hi(...e){return e.flat().filter(Boolean).join(" ")}function mi(e,...t){const n={...e};for(const e of t)delete n[e];return n}const fi=["isLoading","headerTitle","headerActions","searchChipsTitle","searchChips","onSearchChipDelete","tabs","activeTab","onTabChange","columns","rows","actionColumn","rowActions","pagination","noRowsOverlay","onRowClick","getRowId"];function yi(t,n,r){const i=n[t.field],s={row:n,rowIndex:r,column:t};if(t.renderCell)return t.renderCell(i,s);const a=t.valueFormatter?t.valueFormatter(i,s):i;return e(h,{variant:"body2",children:(o=a,null==o?"":"string"==typeof o||"number"==typeof o||"boolean"==typeof o?String(o):W(o)?o:"")});var o}function gi(e){return e.width??180}function pi(e,t){return e?.pin?{position:"sticky",..."left"===e.pin?{left:e.left??0}:{right:e.right??0},zIndex:t?12:4,isolation:"isolate",...t?{backgroundColor:"common.white",backgroundImage:"none",backgroundClip:"padding-box",opacity:1,"&::before":{content:'""',position:"absolute",inset:0,zIndex:-1,backgroundColor:e=>e.palette.common.white}}:{},...t?{}:{backgroundColor:"inherit"},...e.isLeftBoundary?{borderRight:e=>`1px solid ${e.palette.divider}`}:{},...e.isRightBoundary?{borderLeft:e=>`1px solid ${e.palette.divider}`}:{}}:{}}function wi(e,t,n){const r="left"===e;return{position:"absolute",top:0,bottom:0,...r?{left:t}:{right:t},width:0,pointerEvents:"none",zIndex:7,"&::after":{content:'""',position:"absolute",top:0,bottom:0,...r?{left:0}:{right:0},width:8,background:r?"linear-gradient(to right, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0))":"linear-gradient(to left, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0))",opacity:n?1:0,transition:e=>e.transitions.create("opacity",{duration:160})}}}function bi(e,t,n){return W(e)?R(e,void 0===n?t:{key:n,...t}):e}function vi(t,n){return n.map(e=>({key:String(e),block:t[String(e)]})).filter(({block:e})=>void 0!==e).map(({key:t,block:n})=>e(z,{children:n},t))}const ki=t=>{const n=li(),{headerTitle:r}=n,{children:i,className:s,component:a="h1",variant:o="h4",...l}=t;return i||r?e(h,{component:a,variant:o,className:hi("nbb-base-table-header-title",s),...l,children:i||r}):null},Si=t=>{const{headerActions:n}=li(),{children:r,className:i,sx:s=[],...a}=t;return r||n?e(u,{direction:"row",className:hi("nbb-base-table-header-actions",i),sx:[{alignItems:"center"},...Array.isArray(s)?s:[s]],...a,children:r||n}):null},Oi=ui({title:ki,actions:Si}),Ti=t=>{const{headerTitle:n,headerActions:r}=li(),{children:i,className:s,sx:a=[],...o}=t;return i||n||r?e(u,{direction:"row",className:hi("nbb-base-table-header",s),sx:[{justifyContent:"space-between",alignItems:"center"},...Array.isArray(a)?a:[a]],...o,children:e(ci,{defaultBlocks:Oi,defaultBlockOrder:Object.keys(Oi),blocksOverride:i,children:({blocks:e,blockOrder:t})=>vi(e,t)})}):null},Mi=t=>{const{children:n,className:r,sx:i=[],...s}=t;return e(u,{className:hi("nbb-base-table-content-loader",r),sx:[{alignItems:"center",justifyContent:"center",width:"100%",height:e=>e.spacing(18.25)},...Array.isArray(i)?i:[i]],...s,children:n||e(p,{})})},Ci=t=>{const{tabs:n,activeTab:r,onTabChange:i}=li(),{children:s,className:a,value:o,onChange:l,variant:u,sx:c,tabProps:d,centered:h=!1,...m}=t,{sx:g,...p}=d??{},w=void 0===c?[]:Array.isArray(c)?c:[c],b=void 0===g?[]:Array.isArray(g)?g:[g],v=o??r,k=u??"scrollable",S=l??((e,t)=>{i?.(t)});return n&&0!==n.length&&void 0!==v?e(f,{value:v,onChange:S,variant:k,scrollButtons:"auto",allowScrollButtonsMobile:!0,centered:h,className:hi("nbb-base-table-tabs",a),sx:[{minHeight:44,position:"relative",width:"100%",overflow:"hidden","& .MuiTabs-scroller":{overflowX:"auto"},"& .MuiTabs-list, & .MuiTabs-flexContainer":{minWidth:"max-content",justifyContent:"flex-start",margin:0},"& .MuiTabs-scrollButtons":{position:"absolute",top:0,bottom:0,zIndex:2,width:32,backgroundColor:"background.paper",opacity:1,visibility:"visible",transition:"opacity 160ms ease, visibility 160ms ease"},"& .MuiTabs-scrollButtons:first-of-type":{left:0,borderRight:e=>`1px solid ${e.palette.divider}`},"& .MuiTabs-scrollButtons:last-of-type":{right:0,borderLeft:e=>`1px solid ${e.palette.divider}`},"& .MuiTabs-scrollButtons.Mui-disabled":{opacity:0,visibility:"hidden",pointerEvents:"none"}},...w],...m,children:s||n.map(t=>e(y,{value:t.value,...void 0!==t.disabled?{disabled:t.disabled}:{},sx:[{minHeight:44,minWidth:{xs:130,sm:182},flex:"0 0 auto",textTransform:"none"},...b],label:t.label,...p},String(t.value)))}):null},Ni=i=>{const s=li(),{searchChipsTitle:a,searchChips:o,onSearchChipDelete:l}=di(s,i),{children:c,className:d,sx:f=[],...y}=i,g=o??[];return c||0!==g.length?e(u,{className:hi("nbb-base-table-search-chips",d),sx:[{width:"100%",minWidth:0,gap:{xs:1,sm:3}},...Array.isArray(f)?f:[f]],...mi(y,...fi),children:c||t(n,{children:[a&&e(h,{sx:e=>({fontSize:{xs:e.typography.body1.fontSize,sm:e.typography.h6.fontSize},fontWeight:600}),children:a}),e(u,{direction:"row",spacing:{xs:1,sm:2},useFlexGap:!0,flexWrap:"wrap",children:g.map((t,n)=>e(m,{label:t.label,deleteIcon:e(r,{fontSize:"inherit"}),...l&&{onDelete:e=>l(t,n,e)},sx:e=>({height:"auto",borderRadius:1.5,bgcolor:e.palette.grey[50],py:e.spacing(1.25),px:{xs:e.spacing(1.5),sm:e.spacing(2)},"& .MuiChip-label":{px:0,fontSize:{xs:e.typography.body2.fontSize,sm:e.typography.body1.fontSize},lineHeight:1.75},"& .MuiChip-deleteIcon":{m:0,ml:e.spacing(1),fontSize:e.typography.body1.fontSize,color:e.palette.text.secondary}})},t.key))})]})}):null},xi=t=>{const{className:n,column:r,pinMeta:i,labelProps:s,children:a,sx:o,...l}=t,{className:u,sx:c,...d}=s??{},m=void 0===o?[]:Array.isArray(o)?o:[o],f=void 0===c?[]:Array.isArray(c)?c:[c],y=r.width??(i?.pin?gi(r):void 0);return e(N,{className:hi("nbb-base-table-content-grid-head-cell",n),...i?.pin?{"data-pinned":i.pin}:{},...i?.isLeftBoundary?{"data-pinned-boundary":"left"}:{},...i?.isRightBoundary?{"data-pinned-boundary":"right"}:{},...r.align?{align:r.align}:{},sx:[{py:1,verticalAlign:"middle",position:"relative",zIndex:10,backgroundColor:"common.white",backgroundImage:"none",opacity:1,...y?{width:y,minWidth:y}:{},...pi(i,!0)},...m],...l,children:a||e(h,{variant:"body2",color:"text.secondary",...void 0!==u?{className:u}:{},sx:[{fontWeight:"bold"},...f],...d,children:r.headLabel})})},Di=t=>{const{className:n,column:r,pinMeta:i,row:s,rowIndex:a,children:o,sx:l,...u}=t,c=void 0===l?[]:Array.isArray(l)?l:[l],d=r.width??(i?.pin?gi(r):void 0);return e(N,{className:hi("nbb-base-table-content-grid-body-cell",n),...i?.pin?{"data-pinned":i.pin}:{},...i?.isLeftBoundary?{"data-pinned-boundary":"left"}:{},...i?.isRightBoundary?{"data-pinned-boundary":"right"}:{},...r.align?{align:r.align}:{},sx:[{py:1,height:72,verticalAlign:"middle",wordBreak:"break-word",...d?{width:d,minWidth:d}:{},...pi(i,!1)},...c],...u,children:o||yi(r,s,a)})},Ii=t=>{const{className:n,children:r,pinMeta:i,sx:s,...a}=t,o=void 0===s?[]:Array.isArray(s)?s:[s];return e(N,{className:hi("nbb-base-table-content-grid-head-action-cell",n),...i?.pin?{"data-pinned":i.pin}:{},...i?.isLeftBoundary?{"data-pinned-boundary":"left"}:{},...i?.isRightBoundary?{"data-pinned-boundary":"right"}:{},sx:[{width:56,py:1,verticalAlign:"middle",position:"relative",zIndex:10,backgroundColor:"common.white",backgroundImage:"none",opacity:1},pi(i,!0),...o],...a,children:r})},Ai=t=>{const{className:n,row:r,showActionMenu:i,pinMeta:a,onOpenRowMenu:o,iconButtonProps:l,icon:u,children:c,sx:d,...h}=t,{sx:m,...f}=l??{},y=void 0===d?[]:Array.isArray(d)?d:[d],g=void 0===m?[]:Array.isArray(m)?m:[m],p=i&&Boolean(o);return e(N,{className:hi("nbb-base-table-content-grid-body-action-cell",n),...a?.pin?{"data-pinned":a.pin}:{},...a?.isLeftBoundary?{"data-pinned-boundary":"left"}:{},...a?.isRightBoundary?{"data-pinned-boundary":"right"}:{},sx:[{width:56,py:1,height:72,verticalAlign:"middle",textAlign:"right",...pi(a,!1)},...y],...h,children:c||e(x,{"aria-label":"row action",size:"small",sx:[{color:"text.secondary",visibility:p?"visible":"hidden"},...g],onClick:e=>{o&&i&&o(e,r)},disabled:!p,tabIndex:p?0:-1,...f,children:u||e(s,{})})})},Vi=ui({cell:xi,actionCell:Ii}),Ei=r=>{const{className:i,children:s,columns:a,rowActions:o,headCell:l,actionHeadCell:u,columnPinMeta:c,actionColumnPinMeta:d,sx:h,...m}=r,f=void 0===h?[]:Array.isArray(h)?h:[h];return e(C,{className:hi("nbb-base-table-content-grid-head-row",i),sx:[{backgroundColor:"background.paper"},...f],...m,children:e(ci,{defaultBlocks:Vi,defaultBlockOrder:Object.keys(Vi),blocksOverride:s,children:({blocks:r})=>{const i=r.cell,s=r.actionCell;return t(n,{children:[a.map((t,n)=>{const r=c?.[n],s="function"==typeof l?l({column:t,columnIndex:n,...void 0!==r?{pinMeta:r}:{}}):l;return e(z,{children:s??bi(i,{column:t,...void 0!==r?{pinMeta:r}:{}},`cell-${String(t.field)}-${n}`)},`${String(t.field)}-${n}`)}),o&&(("function"==typeof u?u({rowActions:o,...void 0!==d?{actionColumnPinMeta:d}:{}}):u)??bi(s,{...void 0!==d?{pinMeta:d}:{}},"action-cell"))]})}})})},Li=ui({cell:Di,actionCell:Ai}),Fi=r=>{const{className:i,children:s,row:a,rowIndex:o,columns:l,rowActions:u,onRowClick:c,onOpenRowMenu:d,bodyCell:h,actionBodyCell:m,columnPinMeta:f,actionColumnPinMeta:y,sx:g,onClick:p,hover:w,...b}=r,v=void 0===g?[]:Array.isArray(g)?g:[g],k=(u?.(a)??[]).length>0,S=w??Boolean(c),O=c?e=>{p?.(e),e.defaultPrevented||c(a)}:p;return e(C,{className:hi("nbb-base-table-content-grid-body-row",i),hover:!1,sx:[{backgroundColor:"common.white","& > .MuiTableCell-root":{backgroundColor:"inherit",transition:e=>e.transitions.create("background-color",{duration:120})}},...S?[{...c?{cursor:"pointer"}:{},"&:hover":{backgroundColor:e=>e.palette.grey[100]||e.palette.action.hover},"&:hover > .MuiTableCell-root":{backgroundColor:"inherit"},"&:hover > .MuiTableCell-root[data-pinned]":{backgroundColor:"inherit"},"&.MuiTableRow-hover:hover":{backgroundColor:e=>e.palette.grey[100]||e.palette.action.hover},"&.MuiTableRow-hover:hover > .MuiTableCell-root":{backgroundColor:"inherit"},"&.MuiTableRow-hover:hover > .MuiTableCell-root[data-pinned]":{backgroundColor:"inherit"}}]:[],...v],onClick:O,...b,children:e(ci,{defaultBlocks:Li,defaultBlockOrder:Object.keys(Li),blocksOverride:s,children:({blocks:r})=>{const i=r.cell,s=r.actionCell;return t(n,{children:[l.map((t,n)=>e(z,{children:(()=>{const e=f?.[n];return"function"==typeof h?h({column:t,columnIndex:n,...void 0!==e?{pinMeta:e}:{},row:a,rowIndex:o}):h})()??bi(i,{column:t,...void 0!==f?.[n]?{pinMeta:f[n]}:{},row:a,rowIndex:o},`cell-${String(t.field)}-${n}`)},`${String(t.field)}-${n}`)),u&&(("function"==typeof m?m({row:a,rowIndex:o,showActionMenu:k,...void 0!==y?{actionColumnPinMeta:y}:{},onOpenRowMenu:d}):m)??bi(s,{row:a,showActionMenu:k,...void 0!==y?{pinMeta:y}:{},onOpenRowMenu:d},"action-cell"))]})}})})},zi=ui({row:Ei}),$i=t=>{const{className:n,children:r,columns:i,rowActions:s,headRow:a,headCell:o,actionHeadCell:l,columnPinMeta:u,actionColumnPinMeta:c,sx:d,...h}=t,m=void 0===d?[]:Array.isArray(d)?d:[d],f="function"==typeof a?a({columns:i,rowActions:s,...void 0!==u?{columnPinMeta:u}:{},...void 0!==c?{actionColumnPinMeta:c}:{}}):a;return e(S,{className:hi("nbb-base-table-content-grid-head",n),sx:[{width:"100%",minWidth:0,backgroundColor:"common.white",backgroundImage:"none","& .MuiTableCell-root":{backgroundColor:"common.white",backgroundImage:"none",backgroundClip:"padding-box",opacity:1},position:"relative",zIndex:6},...m],...h,children:e(ci,{defaultBlocks:zi,defaultBlockOrder:Object.keys(zi),blocksOverride:r,children:({blocks:e})=>f??bi(e.row,{columns:i,rowActions:s,headCell:o,actionHeadCell:l,...void 0!==u?{columnPinMeta:u}:{},...void 0!==c?{actionColumnPinMeta:c}:{}})})})},Wi=ui({row:Fi}),Ri=t=>{const{className:n,children:r,columns:i,rows:s,rowActions:a,onRowClick:o,getRowId:l,onOpenRowMenu:u,bodyRow:c,bodyCell:d,actionBodyCell:h,columnPinMeta:m,actionColumnPinMeta:f,sx:y,...g}=t,p=void 0===y?[]:Array.isArray(y)?y:[y];return e(k,{className:hi("nbb-base-table-content-grid-body",n),sx:p,...g,children:e(ci,{defaultBlocks:Wi,defaultBlockOrder:Object.keys(Wi),blocksOverride:r,children:({blocks:t})=>{const n=t.row;return s.map((t,r)=>{const s=l?.(t,r)??t.id??r,y="function"==typeof c?c({row:t,rowIndex:r,columns:i,rowActions:a,onRowClick:o,onOpenRowMenu:u,...void 0!==m?{columnPinMeta:m}:{},...void 0!==f?{actionColumnPinMeta:f}:{}}):c;return e(z,{children:y??bi(n,{row:t,rowIndex:r,columns:i,rowActions:a,onRowClick:o,onOpenRowMenu:u,bodyCell:d,actionBodyCell:h,...void 0!==m?{columnPinMeta:m}:{},...void 0!==f?{actionColumnPinMeta:f}:{}},`row-${String(s)}`)},String(s))})}})})},Zi=n=>{const{className:r,children:i,menuAnchorEl:s,menuRow:a,menuActions:o,onClose:l,anchorOrigin:u={vertical:"bottom",horizontal:"right"},transformOrigin:c={vertical:"top",horizontal:"right"},...d}=n;return e(w,{className:hi("nbb-base-table-content-grid-row-menu",r),anchorEl:s,open:Boolean(s&&a),onClose:l,anchorOrigin:u,transformOrigin:c,...d,children:i||o.map((n,r)=>t(b,{...void 0!==n.disabled?{disabled:n.disabled}:{},onClick:e=>{e.stopPropagation(),a&&n.onClick(a),l()},children:[n.icon&&e(v,{children:n.icon}),n.label]},`${String(n.label)}-${r}`))})},ji=r=>{const{noRowsOverlay:s}=di(li(),r),{children:a,className:o,sx:l,...u}=r,c=void 0===l?[]:Array.isArray(l)?l:[l],m={icon:e(i,{}),title:"No Item",...s};return e(d,{className:hi("nbb-base-table-content-empty-state",o),sx:[e=>({alignItems:"center",backgroundColor:e.palette.grey[50]||e.palette.background.default,borderRadius:e.spacing(1),boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",padding:`${e.spacing(4.375)} 0`,width:"100%",minHeight:e.spacing(18.25),gap:e.spacing(1)}),...c],...mi(u,...fi),children:a||t(n,{children:[e(d,{sx:{"& .MuiSvgIcon-root":{fontSize:e=>e.spacing(5),color:"text.disabled"}},children:m.icon}),e(h,{variant:"body1",sx:{fontWeight:e=>e.typography.h6.fontWeight,color:"text.disabled"},children:m.title}),m.description&&e(h,{variant:"body2",color:"text.secondary",children:m.description}),m.action&&e(g,{variant:"outlined",size:"small",onClick:m.action.onClick,startIcon:m.action.icon,...void 0!==m.action.disabled?{disabled:m.action.disabled}:{},children:m.action.label})]})})},Pi=n=>{const{className:r,children:i,tableProps:s,onPinnedShadowChange:a,onHorizontalOverflowChange:o,showLeftPinnedShadow:l=!1,showRightPinnedShadow:u=!1,sx:c,...h}=n,{sx:m,...f}=s??{},y=P(null),g=P(null),[p,w]=L({left:null,right:null}),b=void 0===c?[]:Array.isArray(c)?c:[c],v=Z(()=>{const e=y.current,t=g.current;if(!e||!t)return;const n=Math.max(0,t.scrollWidth-t.clientWidth),r=n>1;o?.(r);const i=r&&t.scrollLeft>1,s=r&&t.scrollLeft<n-1;a?.({left:i,right:s});const l=e.getBoundingClientRect(),u=t.querySelector('[data-pinned-boundary="left"]'),c=t.querySelector('[data-pinned-boundary="right"]'),d=u?Math.max(0,Math.round(u.getBoundingClientRect().right-l.left)):null,h=c?Math.max(0,Math.round(l.right-c.getBoundingClientRect().left)):null;w(e=>e.left===d&&e.right===h?e:{left:d,right:h})},[o,a]);return F(()=>{const e=g.current;if(!e)return;v(),e.addEventListener("scroll",v,{passive:!0});const t=new ResizeObserver(v);return t.observe(e),()=>{e.removeEventListener("scroll",v),t.disconnect()}},[v]),F(()=>{v()},[i,v]),t(d,{ref:y,sx:{position:"relative",width:"100%",minWidth:0},children:[null!==p.left&&e(d,{sx:wi("left",Math.max(0,p.left),l)}),null!==p.right&&e(d,{sx:wi("right",Math.max(0,p.right),u)}),e(O,{ref:g,component:T,elevation:0,className:hi("nbb-base-table-content-grid-table",r),sx:[{width:"100%",overflowX:"auto",overflowY:"hidden",backgroundColor:"background.paper"},...b],...h,children:e(M,{sx:[{backgroundColor:"common.white"},...void 0===m?[]:Array.isArray(m)?m:[m]],...f,children:i})})]})},Bi=ui({table:Pi,head:$i,body:Ri,rowMenu:Zi,emptyState:ji}),qi=r=>{const i=li(),{columns:s,rows:a,actionColumn:o,rowActions:l,noRowsOverlay:c,onRowClick:d,getRowId:h}=di(i,r),{className:m,children:f,emptyState:y,head:g,body:p,rowMenu:w,headRow:b,headCell:v,actionHeadCell:k,bodyRow:S,bodyCell:O,actionBodyCell:T,sx:M,...C}=r,N=void 0===M?[]:Array.isArray(M)?M:[M],[x,D]=L(null),[I,A]=L(null),[V,E]=L(!1),[F,z]=L({left:!1,right:!1}),$=Z(e=>{E(t=>t===e?t:e)},[]),W=Z(e=>{z(t=>t.left===e.left&&t.right===e.right?t:e)},[]),R=j(()=>V?s:s.map(e=>{const{pin:t,...n}=e;return n}),[s,V]),P=V&&"right"===o?.pin?"right":void 0,B=j(()=>{const e=function(e){const t=e.map(()=>({})),n=[],r=[];let i=0;e.forEach((e,r)=>{"left"===e.pin&&(t[r]={pin:"left",left:i},i+=gi(e),n.push(r))});let s=0;for(let n=e.length-1;n>=0;n-=1){const i=e[n];"right"===i?.pin&&(t[n]={pin:"right",right:s},s+=gi(i),r.push(n))}const a=n[n.length-1];void 0!==a&&(t[a]={...t[a],isLeftBoundary:!0});const o=r[r.length-1];return void 0!==o&&(t[o]={...t[o],isRightBoundary:!0}),t}(R),t=Boolean(l)&&"right"===P?56:0;return e.map(e=>{const n="left"===e.pin?e:"right"===e.pin?{...e,right:(e.right??0)+t}:e;return"left"===n.pin&&n.isLeftBoundary?{...n,showBoundaryShadow:F.left}:"right"===n.pin&&n.isRightBoundary?{...n,showBoundaryShadow:F.right}:n})},[F.left,F.right,P,R,l]),q=j(()=>{if(l&&"right"===P){const e=!R.some(e=>"right"===e.pin);return{pin:"right",right:0,isRightBoundary:e,showBoundaryShadow:e&&F.right}}},[F.right,P,R,l]),H=j(()=>I&&l?l(I):[],[I,l]),U=(e,t)=>{e.stopPropagation(),D(e.currentTarget),A(t)},_=()=>{D(null),A(null)},Y="function"==typeof g?g({columns:R,rowActions:l,columnPinMeta:B,...void 0!==q?{actionColumnPinMeta:q}:{},headRow:b,headCell:v,actionHeadCell:k}):g,J="function"==typeof p?p({columns:R,rows:a,rowActions:l,onRowClick:d,getRowId:h,onOpenRowMenu:U,columnPinMeta:B,...void 0!==q?{actionColumnPinMeta:q}:{},bodyRow:S,bodyCell:O,actionBodyCell:T}):p,G="function"==typeof w?w({menuAnchorEl:x,menuRow:I,menuActions:H,onClose:_}):w;return e(u,{className:hi("nbb-base-table-content-grid",m),sx:[{width:"100%",minWidth:0},...N],...mi(C,...fi),children:e(ci,{defaultBlocks:Bi,defaultBlockOrder:Object.keys(Bi),blocksOverride:f,children:({blocks:e})=>{const r=e;if(0===a.length)return y??bi(r.emptyState,{...void 0!==c?{noRowsOverlay:c}:{}},"empty-state");const i=Y??bi(r.head,{columns:R,rowActions:l,...void 0!==B?{columnPinMeta:B}:{},...void 0!==q?{actionColumnPinMeta:q}:{},headRow:b,headCell:v,actionHeadCell:k},"grid-head"),s=J??bi(r.body,{columns:R,rows:a,rowActions:l,onRowClick:d,getRowId:h,onOpenRowMenu:U,...void 0!==B?{columnPinMeta:B}:{},...void 0!==q?{actionColumnPinMeta:q}:{},bodyRow:S,bodyCell:O,actionBodyCell:T},"grid-body"),o=bi(r.table,{onHorizontalOverflowChange:$,onPinnedShadowChange:W,showLeftPinnedShadow:F.left,showRightPinnedShadow:F.right,children:t(n,{children:[i,s]})},"grid-table"),u=G??bi(r.rowMenu,{menuAnchorEl:x,menuRow:I,menuActions:H,onClose:_},"grid-row-menu");return t(n,{children:[o,u]})}})})},Hi=ui({loader:Mi,emptyState:ji,grid:qi}),Ui=t=>{const{isLoading:n,rows:r}=di(li(),t),{children:i,className:s,...a}=t;return e(d,{className:hi("nbb-base-table-content",s),...mi(a,...fi),children:e(ci,{defaultBlocks:Hi,defaultBlockOrder:Object.keys(Hi),blocksOverride:i,children:({blocks:e})=>{const t=e;return n?bi(t.loader,{},"content-loader"):r&&0!==r.length?bi(t.grid,{},"content-grid"):bi(t.emptyState,{},"content-empty-state")}})})},_i=t=>{const{pagination:n,rows:r,isLoading:i}=di(li(),t),{children:s,className:a,sx:o=[],...l}=t,d=q(),h=B(d.breakpoints.down("sm")),m=B(d.breakpoints.down("md"));if(!n||i||!r||0===r.length)return null;const f=h?0:1,y=h||m?0:1;return e(u,{className:hi("nbb-base-table-pagination",a),sx:[{alignItems:"center",width:"100%"},...Array.isArray(o)?o:[o]],...mi(l,...fi),children:s||e(c,{count:Math.max(1,Math.ceil(n.total/n.pageSize)),page:n.page,onChange:(e,t)=>n.onPageChange(t),variant:"outlined",color:"primary",shape:"rounded",boundaryCount:f,siblingCount:y,sx:{maxWidth:"100%","& .MuiPagination-ul":{flexWrap:"nowrap",justifyContent:"center"}}})})},Yi=ui({header:Ti,tabs:Ci,searchChips:Ni,content:Ui,pagination:_i}),Ji=({sx:t,spacing:n=3,className:r,children:i,...s})=>{const a=function(e,...t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}(s,...fi),o=mi(s,...fi),{tabs:l,activeTab:c,onTabChange:d}=a,[h,m]=L(l?.[0]?.value);F(()=>{l?.length&&m(e=>void 0!==e&&l.some(t=>t.value===e)?e:l[0]?.value)},[l]);const f=void 0!==c?c:h,y={...a,...void 0!==f?{activeTab:f}:{},onTabChange:e=>{void 0===c&&m(e),d?.(e)}};return e(u,{className:hi("nbb-base-table",r),spacing:n,sx:[{p:2,width:"100%",maxWidth:"100%",boxSizing:"border-box"},...Array.isArray(t)?t:[t]],...o,children:e(oi,{...y,children:e(ci,{defaultBlocks:Yi,defaultBlockOrder:Object.keys(Yi),blocksOverride:i,children:({blocks:e,blockOrder:t})=>vi(e,t)})})})},Gi=Ti;Gi.Title=ki,Gi.Actions=Si;const Qi=Ni,Ki=$i;Ki.Row=Ei,Ki.Cell=xi,Ki.ActionCell=Ii;const Xi=Ri;Xi.Row=Fi,Xi.Cell=Di,Xi.ActionCell=Ai;const es=qi;es.Table=Pi,es.Head=Ki,es.Body=Xi,es.RowMenu=Zi;const ts=Ui;function ns(...e){return e.flat().filter(Boolean).join(" ")}function rs({labels:t,searchValue:n,onSearchFieldChange:r,onSearchSubmit:i}){return e(D,{type:"search",variant:"outlined",placeholder:t.searchFieldPlaceholder,onChange:e=>r?.(e.target.value),onKeyDown:e=>{i&&"Enter"===e.key&&!e.nativeEvent.isComposing&&e.target instanceof HTMLInputElement&&(e.preventDefault(),i())},...void 0!==n?{value:n}:{},sx:e=>({width:{xs:"100%",md:e.spacing(44.75)},"& .MuiOutlinedInput-root":{pr:1.5,"& .MuiOutlinedInput-input":{pl:1.5,pt:1.625,pb:1.625,fontSize:e.typography.body2.fontSize}}}),slotProps:{input:{endAdornment:e(I,{position:"end",children:e(x,{"aria-label":"Search",edge:"end",size:"small",...i?{onClick:i}:{},children:e(l,{})})})}}})}function is(t,n,r,i,s){if(!s||!t.rowActions)return;const l=t.rowActions;return t=>{if(i&&!i(t))return[];const u=s(t);return u&&0!==u.length?u.flatMap(i=>"activate"===i?n?[{label:l.activate,icon:e(a,{sx:e=>({fontSize:e.typography.h5.fontSize})}),onClick:()=>n(t.id)}]:[]:"deactivate"===i&&r?[{label:l.deactivate,icon:e(o,{sx:e=>({fontSize:e.typography.h5.fontSize})}),onClick:()=>r(t.id)}]:[]):[]}}function ss(t){const n=function(e){if(!e)return null;const t=ii.fromISO(e);return t.isValid?t:null}("string"==typeof t?t:void 0),r=n?.toFormat("yyyy/MM/dd")??"N/A",i=n?.toLocaleString(ii.DATETIME_FULL)??"N/A";return e(A,{title:i,children:e("span",{children:r})})}function as(e,t){return[{field:"name",headLabel:e.headerRow.name,pin:"left",width:180},{field:"joinDate",headLabel:e.headerRow.joinDate,width:180,valueFormatter:ss},{field:"createdAt",headLabel:e.headerRow.createdAt,width:180,valueFormatter:ss},{field:"status",headLabel:e.headerRow.status,width:180,valueFormatter:(n,{row:r})=>r.status===t.active?e.cellData.statusActive:r.status===t.inactive?e.cellData.statusInactive:r.status}]}function os(e){return{page:e.currentPage,pageSize:1,total:e.totalPages,onPageChange:e.onPageChange}}function ls(t){return{icon:e(i,{}),title:t.emptyStateMessage}}function us(t,n){return n.filter(e=>e in t).map(n=>e(z,{children:t[n]},String(n)))}ts.Loader=Mi,ts.EmptyState=ji,ts.Grid=es,Ji.Header=Gi,Ji.Tabs=Ci,Ji.SearchChips=Qi,Ji.Content=ts,Ji.Pagination=_i,"undefined"!=typeof navigator&&navigator.language&&(ut.defaultLocale=navigator.language);const cs=({className:r,children:i,labels:s,searchValue:a,onSearchFieldChange:o,onSearchSubmit:l,onNavigate:u,onItemActivate:c,onItemDeactivate:d,shouldShowDropdownMenu:m,resolveRowAction:f,statusMatch:y={active:"active",inactive:"inactive"},pagination:g,data:p,rowHref:w,tabs:b,currentTab:v,onTabChange:k,listOrganizationsTitle:S,isLoading:O,...T})=>{const M=as(s,y),C=b&&function(r){return r.map(r=>({value:r.key,disabled:Boolean(r.isDisabled),label:t(n,{children:[r.label,r.subtitle&&e(h,{component:"span",variant:"body2",color:"text.secondary",children:r.subtitle})]})}))}(b),N=g&&os(g),x=is(s,c,d,m,f),D=rs({labels:s,searchValue:a,onSearchFieldChange:o,onSearchSubmit:l}),I=e(cs.Title,{}),A=e(cs.Action,{}),V=t(cs.Header,{children:[I,A]}),E=e(cs.Loader,{}),L=e(cs.Tabs,{}),F=e(cs.SearchChips,{}),z=e(cs.Table,{}),$={title:I,action:A,header:V,loader:E,content:e(cs.Content,{}),tabs:L,searchChips:F,table:z,pagination:e(cs.Pagination,{...g?{pagination:g}:{},data:p,...void 0!==O?{isLoading:O}:{}})},W=["header","searchChips","content","pagination"],R=void 0===i?us($,W):"function"==typeof i?(()=>{const{blocks:e,blockOrder:t}=i({defaultBlocks:$,defaultBlockOrder:W});return us(e,t)})():i;return e(Ji,{className:ns("nbb-list-organizations-container",r),headerTitle:S,headerActions:D,columns:M,rows:p,...x?{rowActions:x,actionColumn:{pin:"right"}}:{},noRowsOverlay:ls(s),...C?{tabs:C}:{},...void 0!==v?{activeTab:v}:{},...k?{onTabChange:k}:{},...N?{pagination:N}:{},...void 0!==O?{isLoading:O}:{},...w&&u?{onRowClick:e=>{const t=w(e);t&&u(t)}}:{},...T,children:R})};cs.Title=({listOrganizationsTitle:t,children:n,className:r,...i})=>e(Ji.Header.Title,{className:ns("nbb-list-organizations-title",r),...i,children:n||t}),cs.Action=({children:t,className:n,labels:r,searchValue:i,onSearchFieldChange:s,onSearchSubmit:a,sx:o=[],...l})=>{const u=t||(r?rs({labels:r,searchValue:i,onSearchFieldChange:s,onSearchSubmit:a}):void 0);return e(Ji.Header.Actions,{className:ns("nbb-list-organizations-actions",n),sx:[{width:{xs:"100%",md:"auto"},justifyContent:{xs:"flex-start",md:"flex-end"}},...Array.isArray(o)?o:[o]],...l,children:u})},cs.Header=({children:t,className:n,sx:r=[],...i})=>e(Ji.Header,{className:ns("nbb-list-organizations-header",n),sx:[{flexWrap:{xs:"wrap",md:"nowrap"},alignItems:{xs:"flex-start",md:"center"},columnGap:2,rowGap:{xs:3.75,md:2}},...Array.isArray(r)?r:[r]],...i,children:t}),cs.Loader=({children:t,className:n,...r})=>e(Ji.Content.Loader,{className:ns("nbb-list-organizations-loader",n),...r,children:t}),cs.Content=({children:t,className:n,...r})=>e(Ji.Content,{className:ns("nbb-list-organizations-content",n),...r,children:t}),cs.Tabs=({children:t,className:n,...r})=>e(Ji.Tabs,{className:ns("nbb-list-organizations-tabs",n),...r,children:t}),cs.SearchChips=({className:t,...n})=>e(Ji.SearchChips,{className:ns("nbb-list-organizations-search-chips",t),...n}),cs.Pagination=({className:t,pagination:n,data:r,isLoading:i,...s})=>{const a=n&&os(n),o=ns("nbb-list-organizations-pagination",n?.className,t);return e(Ji.Pagination,{className:o,...a?{pagination:a}:{},...r?{rows:r}:{},...void 0!==i?{isLoading:i}:{},...s})},cs.Table=({className:t,labels:n,data:r,onItemActivate:i,onItemDeactivate:s,shouldShowDropdownMenu:a,resolveRowAction:o,statusMatch:l={active:"active",inactive:"inactive"},rowHref:u,onNavigate:c,...d})=>{const h=n&&as(n,l),m=n&&ls(n),f=n?is(n,i,s,a,o):void 0,y=u&&c?e=>{const t=u(e);t&&c(t)}:void 0;return e(Ji.Content.Grid,{className:ns("nbb-list-organizations-table",t),...h?{columns:h}:{},...r?{rows:r}:{},...m?{noRowsOverlay:m}:{},...f?{rowActions:f,actionColumn:{pin:"right"}}:{},...y?{onRowClick:y}:{},...d})};export{cs as ListOrganizations};
package/dist/lib.d.ts CHANGED
@@ -1,83 +1,3 @@
1
- import { ComponentProps, FunctionComponent, ReactElement, ReactNode } from 'react';
2
- /**
3
- * The function to be passed into a block component as `children` to selectively override default blocks, or just a `ReactNode`.
4
- *
5
- * @example
6
- * <Block>
7
- * {({ defaultBlocks: { header, ...defaultBlocks }, defaultBlockOrder }) => ({
8
- * blocks: {
9
- * ...defaultBlocks,
10
- * header: {
11
- * ...header,
12
- * props: {
13
- * ...header.props,
14
- * label: "Custom Label"
15
- * }
16
- * },
17
- * subheader: <CustomComponent />
18
- * },
19
- * blockOrder: ["header", "subheader", "body", "footer"]
20
- * })}
21
- * </Block>
22
- */
23
- export type BlocksOverride<DefaultBlocks, CustomBlocks> = (({ defaultBlocks, defaultBlockOrder, }: {
24
- defaultBlocks: DefaultBlocks;
25
- defaultBlockOrder: readonly (keyof DefaultBlocks)[];
26
- }) => {
27
- blocks: Partial<DefaultBlocks> & CustomBlocks;
28
- blockOrder: readonly (keyof DefaultBlocks)[] | readonly (keyof CustomBlocks)[];
29
- }) | ReactNode;
30
- /**
31
- * Creates a strongly typed `defaultBlocks` object, allowing for types to propagate into block override objects.
32
- *
33
- * @param components - A map of default block keys to component functions.
34
- *
35
- * @example
36
- * const defaultBlocks = createDefaultBlocks({
37
- * title: Title,
38
- * description: Description,
39
- * form: Form,
40
- * });
41
- */
42
- export declare function createDefaultBlocks<T extends Record<string, FunctionComponent<any>>>(components: T): {
43
- [K in keyof T]: ReactElement<ComponentProps<T[K]>, T[K]>;
44
- };
45
- /**
46
- * A component for rendering {@link BlocksOverride|`BlocksOverride`} results.
47
- * Exposes the evaluated `blocks` and `blockOrder` as arguments to the `children` function.
48
- *
49
- * @param props
50
- * @param props.blocksOverride - The {@link BlocksOverride|`BlocksOverride`} (i.e. `children` of outer component).
51
- * @param props.defaultBlocks - The default blocks of outer component.
52
- * @param props.children - A function returning the JSX to render.
53
- *
54
- * @example
55
- * <BlocksOverrideComponent
56
- * defaultBlocks={defaultFormBlocks}
57
- * blocksOverride={children}
58
- * >
59
- * {({ blocks, blockOrder }) =>
60
- * blockOrder.map((key) => (
61
- * <Fragment key={String(key)}>{blocks[key]}</Fragment>
62
- * ))
63
- * }
64
- * </BlocksOverrideComponent>
65
- */
66
- export declare function BlocksOverrideComponent<DefaultBlocks extends Record<string, ReactNode>, CustomBlocks extends Record<string, ReactNode>>({ blocksOverride, defaultBlocks, defaultBlockOrder, children, }: {
67
- blocksOverride: BlocksOverride<DefaultBlocks, CustomBlocks>;
68
- defaultBlocks: DefaultBlocks;
69
- defaultBlockOrder: (keyof DefaultBlocks)[];
70
- children: ({ blocks, blockOrder, }: {
71
- blocks: Partial<DefaultBlocks> & Partial<CustomBlocks>;
72
- blockOrder: readonly (keyof DefaultBlocks | keyof CustomBlocks)[];
73
- }) => ReactNode;
74
- }): ReactNode;
75
- type MergeKeepingRequired<A, B> = Omit<A, keyof B> & {
76
- [K in keyof A & keyof B]-?: undefined extends B[K] ? A[K] : B[K];
77
- } & {
78
- [K in Exclude<keyof B, keyof A>]: B[K];
79
- };
80
- export declare function merge<A extends Record<PropertyKey, any>, B extends Record<PropertyKey, any>>(a: A, b: B): MergeKeepingRequired<A, B>;
81
1
  type ClassName = string | ClassName[] | undefined | null;
82
2
  /**
83
3
  * Utility function to join class names together, ignoring undefined or nil values.
@@ -85,19 +5,5 @@ type ClassName = string | ClassName[] | undefined | null;
85
5
  * @returns The joined class names.
86
6
  */
87
7
  export declare function classNames(...classes: ClassName[]): string;
88
- /**
89
- * Omits the given string keys from `source`.
90
- *
91
- * Usage:
92
- * omit(obj, "a", "b")
93
- */
94
- export declare function omit<T extends object, const Keys extends readonly string[]>(source: T, ...keys: Keys): Omit<T, Extract<Keys[number], keyof T>>;
95
- /**
96
- * Picks the given keys out of `source` into a new object.
97
- *
98
- * Usage:
99
- * pick(obj, "a", "b")
100
- */
101
- export declare function pick<T extends object, K extends PropertyKey>(source: T, ...keys: K[]): Pick<T, Extract<K, keyof T>>;
102
8
  export {};
103
9
  //# sourceMappingURL=lib.d.ts.map
package/dist/lib.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiB,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElG;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,cAAc,CAAC,aAAa,EAAE,YAAY,IAClD,CAAC,CAAC,EACA,aAAa,EACb,iBAAiB,GAClB,EAAE;IACD,aAAa,EAAE,aAAa,CAAC;IAC7B,iBAAiB,EAAE,SAAS,CAAC,MAAM,aAAa,CAAC,EAAE,CAAC;CACrD,KAAK;IACJ,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,YAAY,CAAC;IAE9C,UAAU,EAAE,SAAS,CAAC,MAAM,aAAa,CAAC,EAAE,GAAG,SAAS,CAAC,MAAM,YAAY,CAAC,EAAE,CAAC;CAChF,CAAC,GACF,SAAS,CAAC;AAEd;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GAAG,CAAC,CAAC,EAClF,UAAU,EAAE,CAAC,GACZ;KACA,CAAC,IAAI,MAAM,CAAC,GAAG,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CACzD,CAMA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,uBAAuB,CACrC,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAC/C,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAC9C,EACA,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,QAAQ,GACT,EAAE;IACD,cAAc,EAAE,cAAc,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;IAC5D,aAAa,EAAE,aAAa,CAAC;IAC7B,iBAAiB,EAAE,CAAC,MAAM,aAAa,CAAC,EAAE,CAAC;IAC3C,QAAQ,EAAE,CAAC,EACT,MAAM,EACN,UAAU,GACX,EAAE;QAED,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;QACvD,UAAU,EAAE,SAAS,CAAC,MAAM,aAAa,GAAG,MAAM,YAAY,CAAC,EAAE,CAAC;KACnE,KAAK,SAAS,CAAC;CACjB,aAmBA;AAED,KAAK,oBAAoB,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG;KAClD,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,SAAS,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACjE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAE/C,wBAAgB,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,EAC1F,CAAC,EAAE,CAAC,EACJ,CAAC,EAAE,CAAC,GACH,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,CAQ5B;AAED,KAAK,SAAS,GAAG,MAAM,GAAG,SAAS,EAAE,GAAG,SAAS,GAAG,IAAI,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,CAE1D;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,CAAC,IAAI,SAAS,SAAS,MAAM,EAAE,EACzE,MAAM,EAAE,CAAC,EACT,GAAG,IAAI,EAAE,IAAI,GACZ,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAQzC;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,WAAW,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAWnH"}
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA,KAAK,SAAS,GAAG,MAAM,GAAG,SAAS,EAAE,GAAG,SAAS,GAAG,IAAI,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,CAE1D"}