vendor: 42,927 bytes, line 1
1import{r as W,a as vs}from"./routing-BWf71gZX.js";import"./crypto-BhrlFu3K.js";class Ee extends Error{}class Ss extends Ee{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class ks extends Ee{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class xs extends Ee{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Ce extends Ee{}class ur extends Ee{constructor(e){super(`Invalid unit ${e}`)}}class P extends Ee{}class me extends Ee{constructor(){super("Zone is an abstract class")}}const y="numeric",ee="short",G="long",gt={year:y,month:y,day:y},cr={year:y,month:ee,day:y},Ms={year:y,month:ee,day:y,weekday:ee},fr={year:y,month:G,day:y},dr={year:y,month:G,day:y,weekday:G},hr={hour:y,minute:y},mr={hour:y,minute:y,second:y},yr={hour:y,minute:y,second:y,timeZoneName:ee},gr={hour:y,minute:y,second:y,timeZoneName:G},wr={hour:y,minute:y,hourCycle:"h23"},pr={hour:y,minute:y,second:y,hourCycle:"h23"},Or={hour:y,minute:y,second:y,hourCycle:"h23",timeZoneName:ee},Tr={hour:y,minute:y,second:y,hourCycle:"h23",timeZoneName:G},vr={year:y,month:y,day:y,hour:y,minute:y},Sr={year:y,month:y,day:y,hour:y,minute:y,second:y},kr={year:y,month:ee,day:y,hour:y,minute:y},xr={year:y,month:ee,day:y,hour:y,minute:y,second:y},bs={year:y,month:ee,day:y,weekday:ee,hour:y,minute:y},Mr={year:y,month:G,day:y,hour:y,minute:y,timeZoneName:ee},br={year:y,month:G,day:y,hour:y,minute:y,second:y,timeZoneName:ee},Er={year:y,month:G,day:y,weekday:G,hour:y,minute:y,timeZoneName:G},Dr={year:y,month:G,day:y,weekday:G,hour:y,minute:y,second:y,timeZoneName:G};class et{get type(){throw new me}get name(){throw new me}get ianaName(){return this.name}get isUniversal(){throw new me}offsetName(e,n){throw new me}formatOffset(e,n){throw new me}offset(e){throw new me}equals(e){throw new me}get isValid(){throw new me}}let Rt=null;class xt extends et{static get instance(){return Rt===null&&(Rt=new xt),Rt}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Zr(e,n,r)}formatOffset(e,n){return je(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const _t=new Map;function Es(t){let e=_t.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),_t.set(t,e)),e}const Ds={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Ns(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,o,a,l,u,f]=r;return[o,s,i,a,l,u,f]}function Is(t,e){const n=t.formatToParts(e),r=[];for(let s=0;s<n.length;s++){const{type:i,value:o}=n[s],a=Ds[i];i==="era"?r[a]=o:O(a)||(r[a]=parseInt(o,10))}return r}const Vt=new Map;class ue extends et{static create(e){let n=Vt.get(e);return n===void 0&&Vt.set(e,n=new ue(e)),n}static resetCache(){Vt.clear(),_t.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{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ue.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Zr(e,n,r,this.name)}formatOffset(e,n){return je(this.offset(e),n)}offset(e){if(!this.valid)return NaN;const n=new Date(e);if(isNaN(n))return NaN;const r=Es(this.name);let[s,i,o,a,l,u,f]=r.formatToParts?Is(r,n):Ns(r,n);a==="BC"&&(s=-Math.abs(s)+1);const h=bt({year:s,month:i,day:o,hour:l===24?0:l,minute:u,second:f,millisecond:0});let c=+n;const m=c%1e3;return c-=m>=0?m:1e3+m,(h-c)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let vn={};function Cs(t,e={}){const n=JSON.stringify([t,e]);let r=vn[n];return r||(r=new Intl.ListFormat(t,e),vn[n]=r),r}const Gt=new Map;function Bt(t,e={}){const n=JSON.stringify([t,e]);let r=Gt.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(t,e),Gt.set(n,r)),r}const Jt=new Map;function Fs(t,e={}){const n=JSON.stringify([t,e]);let r=Jt.get(n);return r===void 0&&(r=new Intl.NumberFormat(t,e),Jt.set(n,r)),r}const jt=new Map;function As(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=jt.get(s);return i===void 0&&(i=new Intl.RelativeTimeFormat(t,e),jt.set(s,i)),i}let Ye=null;function Rs(){return Ye||(Ye=new Intl.DateTimeFormat().resolvedOptions().locale,Ye)}const Xt=new Map;function Nr(t){let e=Xt.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Xt.set(t,e)),e}const Kt=new Map;function Vs(t){let e=Kt.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...Ir,...e}),Kt.set(t,e)}return e}function Ws(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,s;try{r=Bt(t).resolvedOptions(),s=t}catch{const l=t.substring(0,n);r=Bt(l).resolvedOptions(),s=l}const{numberingSystem:i,calendar:o}=r;return[s,i,o]}}function Ls(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function $s(t){const e=[];for(let n=1;n<=12;n++){const r=T.utc(2009,n,1);e.push(t(r))}return e}function Zs(t){const e=[];for(let n=1;n<=7;n++){const r=T.utc(2016,11,13+n);e.push(t(r))}return e}function st(t,e,n,r){const s=t.listingMode();return s==="error"?null:s==="en"?n(e):r(e)}function zs(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Nr(t.locale).numberingSystem==="latn"}class Ps{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:s,floor:i,...o}=r;if(!n||Object.keys(o).length>0){const a={useGrouping:!1,...r};r.padTo>0&&(a.minimumIntegerDigits=r.padTo),this.inf=Fs(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):fn(e,3);return L(n,this.padTo)}}}class Us{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&ue.create(a).valid?(s=a,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=Bt(n,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(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Hs{constructor(e,n,r){this.opts={style:"long",...r},!n&&Lr()&&(this.rtf=As(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):fi(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const Ir={firstDay:1,minimalDays:4,weekend:[6,7]};class N{static fromOpts(e){return N.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,s,i=!1){const o=e||V.defaultLocale,a=o||(i?"en-US":Rs()),l=n||V.defaultNumberingSystem,u=r||V.defaultOutputCalendar,f=en(s)||V.defaultWeekSettings;return new N(a,l,u,f,o)}static resetCache(){Ye=null,Gt.clear(),Jt.clear(),jt.clear(),Xt.clear(),Kt.clear()}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:s}={}){return N.create(e,n,r,s)}constructor(e,n,r,s,i){const[o,a,l]=Ws(e);this.locale=o,this.numberingSystem=n||a||null,this.outputCalendar=r||l||null,this.weekSettings=s,this.intl=Ls(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(){return this.fastNumbersCached==null&&(this.fastNumbersCached=zs(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:N.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,en(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return st(this,e,Ur,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const s=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";if(!this.monthsCache[i][e]){const o=r?a=>this.dtFormatter(a,s).format():a=>this.extract(a,s,"month");this.monthsCache[i][e]=$s(o)}return this.monthsCache[i][e]})}weekdays(e,n=!1){return st(this,e,Yr,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=n?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=Zs(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return st(this,void 0,()=>_r,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[T.utc(2016,11,13,9),T.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return st(this,e,Gr,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[T.utc(-40,1,1),T.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){const s=this.dtFormatter(e,n),i=s.formatToParts(),o=i.find(a=>a.type.toLowerCase()===r);return o?o.value:null}numberFormatter(e={}){return new Ps(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new Us(e,this.intl,n)}relFormatter(e={}){return new Hs(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Cs(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Nr(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:$r()?Vs(this.locale):Ir}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 Wt=null;class q extends et{static get utcInstance(){return Wt===null&&(Wt=new q(0)),Wt}static instance(e){return e===0?q.utcInstance:new q(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new q(Et(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${je(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${je(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return je(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class qs extends et{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 ge(t,e){if(O(t)||t===null)return e;if(t instanceof et)return t;if(js(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?xt.instance:n==="utc"||n==="gmt"?q.utcInstance:q.parseSpecifier(n)||ue.create(t)}else return we(t)?q.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new qs(t)}const an={arab:"[Ù -Ù©]",arabext:"[Û°-Û¹]",bali:"[á-á]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[ï¼-ï¼]",gujr:"[૦-૯]",hanidec:"[ã|ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹]",khmr:"[á -á©]",knda:"[೦-೯]",laoo:"[à»-à»]",limb:"[á¥-á¥]",mlym:"[൦-൯]",mong:"[á -á ]",mymr:"[á-á]",orya:"[à¦-à¯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[à¹-à¹]",tibt:"[༠-༩]",latn:"\\d"},Sn={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]},Ys=an.hanidec.replace(/[\[|\]]/g,"").split("");function _s(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(an.hanidec)!==-1)e+=Ys.indexOf(t[n]);else for(const s in Sn){const[i,o]=Sn[s];r>=i&&r<=o&&(e+=r-i)}}return parseInt(e,10)}else return e}const Qt=new Map;function Gs(){Qt.clear()}function X({numberingSystem:t},e=""){const n=t||"latn";let r=Qt.get(n);r===void 0&&(r=new Map,Qt.set(n,r));let s=r.get(e);return s===void 0&&(s=new RegExp(`${an[n]}${e}`),r.set(e,s)),s}let kn=()=>Date.now(),xn="system",Mn=null,bn=null,En=null,Dn=60,Nn,In=null;class V{static get now(){return kn}static set now(e){kn=e}static set defaultZone(e){xn=e}static get defaultZone(){return ge(xn,xt.instance)}static get defaultLocale(){return Mn}static set defaultLocale(e){Mn=e}static get defaultNumberingSystem(){return bn}static set defaultNumberingSystem(e){bn=e}static get defaultOutputCalendar(){return En}static set defaultOutputCalendar(e){En=e}static get defaultWeekSettings(){return In}static set defaultWeekSettings(e){In=en(e)}static get twoDigitCutoffYear(){return Dn}static set twoDigitCutoffYear(e){Dn=e%100}static get throwOnInvalid(){return Nn}static set throwOnInvalid(e){Nn=e}static resetCaches(){N.resetCache(),ue.resetCache(),T.resetCache(),Gs()}}class Q{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Cr=[0,31,59,90,120,151,181,212,243,273,304,334],Fr=[0,31,60,91,121,152,182,213,244,274,305,335];function J(t,e){return new Q("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function ln(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return s===0?7:s}function Ar(t,e,n){return n+(tt(t)?Fr:Cr)[e-1]}function Rr(t,e){const n=tt(t)?Fr:Cr,r=n.findIndex(i=>i<e),s=e-n[r];return{month:r+1,day:s}}function un(t,e){return(t-e+7)%7+1}function wt(t,e=4,n=1){const{year:r,month:s,day:i}=t,o=Ar(r,s,i),a=un(ln(r,s,i),n);let l=Math.floor((o-a+14-e)/7),u;return l<1?(u=r-1,l=Xe(u,e,n)):l>Xe(r,e,n)?(u=r+1,l=1):u=r,{weekYear:u,weekNumber:l,weekday:a,...Dt(t)}}function Cn(t,e=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=t,o=un(ln(r,1,e),n),a=Fe(r);let l=s*7+i-o-7+e,u;l<1?(u=r-1,l+=Fe(u)):l>a?(u=r+1,l-=Fe(r)):u=r;const{month:f,day:d}=Rr(u,l);return{year:u,month:f,day:d,...Dt(t)}}function Lt(t){const{year:e,month:n,day:r}=t,s=Ar(e,n,r);return{year:e,ordinal:s,...Dt(t)}}function Fn(t){const{year:e,ordinal:n}=t,{month:r,day:s}=Rr(e,n);return{year:e,month:r,day:s,...Dt(t)}}function An(t,e){if(!O(t.localWeekday)||!O(t.localWeekNumber)||!O(t.localWeekYear)){if(!O(t.weekday)||!O(t.weekNumber)||!O(t.weekYear))throw new Ce("Cannot mix locale-based week fields with ISO-based week fields");return O(t.localWeekday)||(t.weekday=t.localWeekday),O(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),O(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Bs(t,e=4,n=1){const r=Mt(t.weekYear),s=j(t.weekNumber,1,Xe(t.weekYear,e,n)),i=j(t.weekday,1,7);return r?s?i?!1:J("weekday",t.weekday):J("week",t.weekNumber):J("weekYear",t.weekYear)}function Js(t){const e=Mt(t.year),n=j(t.ordinal,1,Fe(t.year));return e?n?!1:J("ordinal",t.ordinal):J("year",t.year)}function Vr(t){const e=Mt(t.year),n=j(t.month,1,12),r=j(t.day,1,pt(t.year,t.month));return e?n?r?!1:J("day",t.day):J("month",t.month):J("year",t.year)}function Wr(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=j(e,0,23)||e===24&&n===0&&r===0&&s===0,o=j(n,0,59),a=j(r,0,59),l=j(s,0,999);return i?o?a?l?!1:J("millisecond",s):J("second",r):J("minute",n):J("hour",e)}function O(t){return typeof t>"u"}function we(t){return typeof t=="number"}function Mt(t){return typeof t=="number"&&t%1===0}function js(t){return typeof t=="string"}function Xs(t){return Object.prototype.toString.call(t)==="[object Date]"}function Lr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function $r(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Ks(t){return Array.isArray(t)?t:[t]}function Rn(t,e,n){if(t.length!==0)return t.reduce((r,s)=>{const i=[e(s),s];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function Qs(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function We(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function en(t){if(t==null)return null;if(typeof t!="object")throw new P("Week settings must be an object");if(!j(t.firstDay,1,7)||!j(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!j(e,1,7)))throw new P("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function j(t,e,n){return Mt(t)&&t>=e&&t<=n}function ei(t,e){return t-e*Math.floor(t/e)}function L(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function ye(t){if(!(O(t)||t===null||t===""))return parseInt(t,10)}function ve(t){if(!(O(t)||t===null||t===""))return parseFloat(t)}function cn(t){if(!(O(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function fn(t,e,n="round"){const r=10**e;switch(n){case"expand":return t>0?Math.ceil(t*r)/r:Math.floor(t*r)/r;case"trunc":return Math.trunc(t*r)/r;case"round":return Math.round(t*r)/r;case"floor":return Math.floor(t*r)/r;case"ceil":return Math.ceil(t*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function tt(t){return t%4===0&&(t%100!==0||t%400===0)}function Fe(t){return tt(t)?366:365}function pt(t,e){const n=ei(e-1,12)+1,r=t+(e-n)/12;return n===2?tt(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function bt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Vn(t,e,n){return-un(ln(t,1,e),n)+e-1}function Xe(t,e=4,n=1){const r=Vn(t,e,n),s=Vn(t+1,e,n);return(Fe(t)-r+s)/7}function tn(t){return t>99?t:t>V.twoDigitCutoffYear?1900+t:2e3+t}function Zr(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const o={timeZoneName:e,...i},a=new Intl.DateTimeFormat(n,o).formatToParts(s).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function Et(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-r:r;return n*60+s}function zr(t){const e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new P(`Invalid unit value ${t}`);return e}function Ot(t,e){const n={};for(const r in t)if(We(t,r)){const s=t[r];if(s==null)continue;n[e(r)]=zr(s)}return n}function je(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${L(n,2)}:${L(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${L(n,2)}${L(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Dt(t){return Qs(t,["hour","minute","second","millisecond"])}const ti=["January","February","March","April","May","June","July","August","September","October","November","December"],Pr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ni=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ur(t){switch(t){case"narrow":return[...ni];case"short":return[...Pr];case"long":return[...ti];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 Hr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],qr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ri=["M","T","W","T","F","S","S"];function Yr(t){switch(t){case"narrow":return[...ri];case"short":return[...qr];case"long":return[...Hr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const _r=["AM","PM"],si=["Before Christ","Anno Domini"],ii=["BC","AD"],oi=["B","A"];function Gr(t){switch(t){case"narrow":return[...oi];case"short":return[...ii];case"long":return[...si];default:return null}}function ai(t){return _r[t.hour<12?0:1]}function li(t,e){return Yr(e)[t.weekday-1]}function ui(t,e){return Ur(e)[t.month-1]}function ci(t,e){return Gr(e)[t.year<0?0:1]}function fi(t,e,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=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const d=t==="days";switch(e){case 1:return d?"tomorrow":`next ${s[t][0]}`;case-1:return d?"yesterday":`last ${s[t][0]}`;case 0:return d?"today":`this ${s[t][0]}`}}const o=Object.is(e,-0)||e<0,a=Math.abs(e),l=a===1,u=s[t],f=r?l?u[1]:u[2]||u[1]:l?s[t][0]:t;return o?`${a} ${f} ago`:`in ${a} ${f}`}function Wn(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const di={D:gt,DD:cr,DDD:fr,DDDD:dr,t:hr,tt:mr,ttt:yr,tttt:gr,T:wr,TT:pr,TTT:Or,TTTT:Tr,f:vr,ff:kr,fff:Mr,ffff:Er,F:Sr,FF:xr,FFF:br,FFFF:Dr};class U{static create(e,n={}){return new U(e,n)}static parseFormat(e){let n=null,r="",s=!1;const i=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);a==="'"?((r.length>0||s)&&i.push({literal:s||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",s=!s):s||a===n?r+=a:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=a,n=a)}return r.length>0&&i.push({literal:s||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return di[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0,r=void 0){if(this.opts.forceSimple)return L(e,n);const s={...this.opts};return n>0&&(s.padTo=n),r&&(s.signDisplay=r),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(c,m)=>this.loc.extract(e,c,m),o=c=>e.isOffsetFixed&&e.offset===0&&c.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,c.format):"",a=()=>r?ai(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(c,m)=>r?ui(e,c):i(m?{month:c}:{month:c,day:"numeric"},"month"),u=(c,m)=>r?li(e,c):i(m?{weekday:c}:{weekday:c,month:"long",day:"numeric"},"weekday"),f=c=>{const m=U.macroTokenToFormatOpts(c);return m?this.formatWithSystemDefault(e,m):c},d=c=>r?ci(e,c):i({era:c},"era"),h=c=>{switch(c){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 o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({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 a();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("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 f(c)}};return Wn(U.parseFormat(n),h)}formatDurationFromString(e,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,s=f=>{switch(f[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=(f,d)=>h=>{const c=s(h);if(c){const m=d.isNegativeDuration&&c!==d.largestUnit?r:1;let g;return this.opts.signMode==="negativeLargestOnly"&&c!==d.largestUnit?g="never":this.opts.signMode==="all"?g="always":g="auto",this.num(f.get(c)*m,h.length,g)}else return h},o=U.parseFormat(n),a=o.reduce((f,{literal:d,val:h})=>d?f:f.concat(h),[]),l=e.shiftTo(...a.map(s).filter(f=>f)),u={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return Wn(o,i(l,u))}}const Br=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Le(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function $e(...t){return e=>t.reduce(([n,r,s],i)=>{const[o,a,l]=i(e,s);return[{...n,...o},a||r,l]},[{},null,1]).slice(0,2)}function Ze(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const s=n.exec(t);if(s)return r(s)}return[null,null]}function Jr(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=ye(e[n+s]);return[r,null,n+s]}}const jr=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,hi=`(?:${jr.source}?(?:\\[(${Br.source})\\])?)?`,dn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Xr=RegExp(`${dn.source}${hi}`),hn=RegExp(`(?:[Tt]${Xr.source})?`),mi=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,yi=/(\d{4})-?W(\d\d)(?:-?(\d))?/,gi=/(\d{4})-?(\d{3})/,wi=Jr("weekYear","weekNumber","weekDay"),pi=Jr("year","ordinal"),Oi=/(\d{4})-(\d\d)-(\d\d)/,Kr=RegExp(`${dn.source} ?(?:${jr.source}|(${Br.source}))?`),Ti=RegExp(`(?: ${Kr.source})?`);function Ae(t,e,n){const r=t[e];return O(r)?n:ye(r)}function vi(t,e){return[{year:Ae(t,e),month:Ae(t,e+1,1),day:Ae(t,e+2,1)},null,e+3]}function ze(t,e){return[{hours:Ae(t,e,0),minutes:Ae(t,e+1,0),seconds:Ae(t,e+2,0),milliseconds:cn(t[e+3])},null,e+4]}function nt(t,e){const n=!t[e]&&!t[e+1],r=Et(t[e+1],t[e+2]),s=n?null:q.instance(r);return[{},s,e+3]}function rt(t,e){const n=t[e]?ue.create(t[e]):null;return[{},n,e+1]}const Si=RegExp(`^T?${dn.source}$`),ki=/^-?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 xi(t){const[e,n,r,s,i,o,a,l,u]=t,f=e[0]==="-",d=l&&l[0]==="-",h=(c,m=!1)=>c!==void 0&&(m||c&&f)?-c:c;return[{years:h(ve(n)),months:h(ve(r)),weeks:h(ve(s)),days:h(ve(i)),hours:h(ve(o)),minutes:h(ve(a)),seconds:h(ve(l),l==="-0"),milliseconds:h(cn(u),d)}]}const Mi={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function mn(t,e,n,r,s,i,o){const a={year:e.length===2?tn(ye(e)):ye(e),month:Pr.indexOf(n)+1,day:ye(r),hour:ye(s),minute:ye(i)};return o&&(a.second=ye(o)),t&&(a.weekday=t.length>3?Hr.indexOf(t)+1:qr.indexOf(t)+1),a}const bi=/^(?:(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 Ei(t){const[,e,n,r,s,i,o,a,l,u,f,d]=t,h=mn(e,s,r,n,i,o,a);let c;return l?c=Mi[l]:u?c=0:c=Et(f,d),[h,new q(c)]}function Di(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Ni=/^(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$/,Ii=/^(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$/,Ci=/^(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 Ln(t){const[,e,n,r,s,i,o,a]=t;return[mn(e,s,r,n,i,o,a),q.utcInstance]}function Fi(t){const[,e,n,r,s,i,o,a]=t;return[mn(e,a,n,r,s,i,o),q.utcInstance]}const Ai=Le(mi,hn),Ri=Le(yi,hn),Vi=Le(gi,hn),Wi=Le(Xr),Qr=$e(vi,ze,nt,rt),Li=$e(wi,ze,nt,rt),$i=$e(pi,ze,nt,rt),Zi=$e(ze,nt,rt);function zi(t){return Ze(t,[Ai,Qr],[Ri,Li],[Vi,$i],[Wi,Zi])}function Pi(t){return Ze(Di(t),[bi,Ei])}function Ui(t){return Ze(t,[Ni,Ln],[Ii,Ln],[Ci,Fi])}function Hi(t){return Ze(t,[ki,xi])}const qi=$e(ze);function Yi(t){return Ze(t,[Si,qi])}const _i=Le(Oi,Ti),Gi=Le(Kr),Bi=$e(ze,nt,rt);function Ji(t){return Ze(t,[_i,Qr],[Gi,Bi])}const $n="Invalid Duration",es={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},ji={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...es},B=146097/400,De=146097/4800,Xi={years:{quarters:4,months:12,weeks:B/7,days:B,hours:B*24,minutes:B*24*60,seconds:B*24*60*60,milliseconds:B*24*60*60*1e3},quarters:{months:3,weeks:B/28,days:B/4,hours:B*24/4,minutes:B*24*60/4,seconds:B*24*60*60/4,milliseconds:B*24*60*60*1e3/4},months:{weeks:De/7,days:De,hours:De*24,minutes:De*24*60,seconds:De*24*60*60,milliseconds:De*24*60*60*1e3},...es},xe=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ki=xe.slice(0).reverse();function oe(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new E(r)}function ts(t,e){let n=e.milliseconds??0;for(const r of Ki.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function Zn(t,e){const n=ts(t,e)<0?-1:1;xe.reduceRight((r,s)=>{if(O(e[s]))return r;if(r){const i=e[r]*n,o=t[s][r],a=Math.floor(i/o);e[s]+=a*n,e[r]-=a*o*n}return s},null),xe.reduce((r,s)=>{if(O(e[s]))return r;if(r){const i=e[r]%1;e[r]-=i,e[s]+=i*t[r][s]}return s},null)}function zn(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class E{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?Xi:ji;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||N.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return E.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new P(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new E({values:Ot(e,E.normalizeUnit),loc:N.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(we(e))return E.fromMillis(e);if(E.isDuration(e))return e;if(typeof e=="object")return E.fromObject(e);throw new P(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=Hi(e);return r?E.fromObject(r,n):E.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=Yi(e);return r?E.fromObject(r,n):E.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new P("need to specify a reason the Duration is invalid");const r=e instanceof Q?e:new Q(e,n);if(V.throwOnInvalid)throw new xs(r);return new E({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new ur(e);return n}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,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?U.create(this.loc,r).formatDurationFromString(this,e):$n}toHuman(e={}){if(!this.isValid)return $n;const n=e.showZeros!==!1,r=xe.map(s=>{const i=this.values[s];return O(i)||i===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:s.slice(0,-1)}).format(i)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=fn(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},T.fromMillis(n,{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?ts(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=E.fromDurationLike(e),r={};for(const s of xe)(We(n.values,s)||We(this.values,s))&&(r[s]=n.get(s)+this.get(s));return oe(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=E.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=zr(e(this.values[r],r));return oe(this,{values:n},!0)}get(e){return this[E.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Ot(e,E.normalizeUnit)};return oe(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:s}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:r};return oe(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Zn(this.matrix,e),oe(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=zn(this.normalize().shiftToAll().toObject());return oe(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>E.normalizeUnit(o));const n={},r={},s=this.toObject();let i;for(const o of xe)if(e.indexOf(o)>=0){i=o;let a=0;for(const u in r)a+=this.matrix[u][o]*r[u],r[u]=0;we(s[o])&&(a+=s[o]);const l=Math.trunc(a);n[o]=l,r[o]=(a*1e3-l*1e3)/1e3}else we(s[o])&&(r[o]=s[o]);for(const o in r)r[o]!==0&&(n[i]+=o===i?r[o]:r[o]/this.matrix[i][o]);return Zn(this.matrix,n),oe(this,{values:n},!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 n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return oe(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=zn(this.values);return oe(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,s){return r===void 0||r===0?s===void 0||s===0:r===s}for(const r of xe)if(!n(this.values[r],e.values[r]))return!1;return!0}}const Ne="Invalid Interval";function Qi(t,e){return!t||!t.isValid?R.invalid("missing or invalid start"):!e||!e.isValid?R.invalid("missing or invalid end"):e<t?R.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class R{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new P("need to specify a reason the Interval is invalid");const r=e instanceof Q?e:new Q(e,n);if(V.throwOnInvalid)throw new ks(r);return new R({invalid:r})}static fromDateTimes(e,n){const r=He(e),s=He(n),i=Qi(r,s);return i??new R({start:r,end:s})}static after(e,n){const r=E.fromDurationLike(n),s=He(e);return R.fromDateTimes(s,s.plus(r))}static before(e,n){const r=E.fromDurationLike(n),s=He(e);return R.fromDateTimes(s.minus(r),s)}static fromISO(e,n){const[r,s]=(e||"").split("/",2);if(r&&s){let i,o;try{i=T.fromISO(r,n),o=i.isValid}catch{o=!1}let a,l;try{a=T.fromISO(s,n),l=a.isValid}catch{l=!1}if(o&&l)return R.fromDateTimes(i,a);if(o){const u=E.fromISO(s,n);if(u.isValid)return R.after(i,u)}else if(l){const u=E.fromISO(r,n);if(u.isValid)return R.before(a,u)}}return R.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 this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(e,n);let s;return n!=null&&n.useLocaleWeeks?s=this.end.reconfigure({locale:r.locale}):s=this.end,s=s.startOf(e,n),Math.floor(s.diff(r,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?R.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(He).filter(o=>this.contains(o)).sort((o,a)=>o.toMillis()-a.toMillis()),r=[];let{s}=this,i=0;for(;s<this.e;){const o=n[i]||this.e,a=+o>+this.e?this.e:o;r.push(R.fromDateTimes(s,a)),s=a,i+=1}return r}splitBy(e){const n=E.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,s=1,i;const o=[];for(;r<this.e;){const a=this.start.plus(n.mapUnits(l=>l*s));i=+a>+this.e?this.e:a,o.push(R.fromDateTimes(r,i)),r=i,s+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}
vendor: 4,358 bytes, line 1
1intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:R.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return R.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[s,i.union(o)]:[s.concat([i]),o]:[s,o],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const s=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...i),a=o.sort((l,u)=>l.time-u.time);for(const l of a)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&s.push(R.fromDateTimes(n,l.time)),n=null);return R.merge(s)}difference(...e){return R.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} â ${this.e.toISO()})`:Ne}[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=gt,n={}){return this.isValid?U.create(this.s.loc.clone(n),e).formatInterval(this):Ne}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ne}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ne}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ne}toFormat(e,{separator:n=" â "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Ne}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):E.invalid(this.invalidReason)}mapEndpoints(e){return R.fromDateTimes(e(this.s),e(this.e))}}class it{static hasDST(e=V.defaultZone){const n=T.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return ue.isValidZone(e)}static normalizeZone(e){return ge(e,V.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||N.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||N.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||N.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||N.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||N.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||N.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||N.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return N.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return N.create(n,null,"gregory").eras(e)}static features(){return{relative:Lr(),localeWeek:$r()}}}function Pn(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(E.fromMillis(r).as("days"))}function eo(t,e,n){const r=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{const f=Pn(l,u);return(f-f%7)/7}],["days",Pn]],s={},i=t;let o,a;for(const[l,u]of r)n.indexOf(l)>=0&&(o=l,s[l]=u(t,e),a=i.plus(s),a>e?(s[l]--,t=i.plus(s),t>e&&(a=t,s[l]--,t=i.plus(s))):t=a);return[t,s,a,o]}function to(t,e,n,r){let[s,i,o,a]=eo(t,e,n);const l=e-s,u=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);u.length===0&&(o<e&&(o=s.plus({[a]:1})),o!==s&&(i[a]=(i[a]||0)+l/(o-s)));const f=E.fromObject(i,r);return u.length>0?E.fromMillis(l,r).shiftTo(...u).plus(f):f}const no="missing Intl.DateTimeFormat.formatToParts support";function D(t,e=n=>n){return{regex:t,deser:([n])=>e(_s(n))}}const ro="Â ",ns=`[ ${ro}]`,rs=new RegExp(ns,"g");function so(t){return t.replace(/\./g,"\\.?").replace(rs,ns)}function Un(t){return t.replace(/\./g,"").replace(rs," ").toLowerCase()}function K(t,e){return t===null?null:{regex:RegExp(t.map(so).join("|")),deser:([n])=>t.findIndex(r=>Un(n)===Un(r))+e}}function Hn(t,e){return{regex:t,deser:([,n,r])=>Et(n,r),groups:e}}function ot(t){return{regex:t,deser:([e])=>e}}
vendor: 23,104 bytes, line 1
1function io(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function oo(t,e){const n=X(e),r=X(e,"{2}"),s=X(e,"{3}"),i=X(e,"{4}"),o=X(e,"{6}"),a=X(e,"{1,2}"),l=X(e,"{1,3}"),u=X(e,"{1,6}"),f=X(e,"{1,9}"),d=X(e,"{2,4}"),h=X(e,"{4,6}"),c=w=>({regex:RegExp(io(w.val)),deser:([p])=>p,literal:!0}),g=(w=>{if(t.literal)return c(w);switch(w.val){case"G":return K(e.eras("short"),0);case"GG":return K(e.eras("long"),0);case"y":return D(u);case"yy":return D(d,tn);case"yyyy":return D(i);case"yyyyy":return D(h);case"yyyyyy":return D(o);case"M":return D(a);case"MM":return D(r);case"MMM":return K(e.months("short",!0),1);case"MMMM":return K(e.months("long",!0),1);case"L":return D(a);case"LL":return D(r);case"LLL":return K(e.months("short",!1),1);case"LLLL":return K(e.months("long",!1),1);case"d":return D(a);case"dd":return D(r);case"o":return D(l);case"ooo":return D(s);case"HH":return D(r);case"H":return D(a);case"hh":return D(r);case"h":return D(a);case"mm":return D(r);case"m":return D(a);case"q":return D(a);case"qq":return D(r);case"s":return D(a);case"ss":return D(r);case"S":return D(l);case"SSS":return D(s);case"u":return ot(f);case"uu":return ot(a);case"uuu":return D(n);case"a":return K(e.meridiems(),0);case"kkkk":return D(i);case"kk":return D(d,tn);case"W":return D(a);case"WW":return D(r);case"E":case"c":return D(n);case"EEE":return K(e.weekdays("short",!1),1);case"EEEE":return K(e.weekdays("long",!1),1);case"ccc":return K(e.weekdays("short",!0),1);case"cccc":return K(e.weekdays("long",!0),1);case"Z":case"ZZ":return Hn(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return Hn(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return ot(/[a-z_+-/]{1,256}?/i);case" ":return ot(/[^\S\n\r]/);default:return c(w)}})(t)||{invalidReason:no};return g.token=t,g}const ao={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"}};function lo(t,e,n){const{type:r,value:s}=t;if(r==="literal"){const l=/^\s+$/.test(s);return{literal:!l,val:l?" ":s}}const i=e[r];let o=r;r==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let a=ao[o];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function uo(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function co(t,e,n){const r=t.match(e);if(r){const s={};let i=1;for(const o in n)if(We(n,o)){const a=n[o],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(s[a.token.val[0]]=a.deser(r.slice(i,i+l))),i+=l}return[r,s]}else return[r,{}]}function fo(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return O(t.z)||(n=ue.create(t.z)),O(t.Z)||(n||(n=new q(t.Z)),r=t.Z),O(t.q)||(t.M=(t.q-1)*3+1),O(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),O(t.u)||(t.S=cn(t.u)),[Object.keys(t).reduce((i,o)=>{const a=e(o);return a&&(i[a]=t[o]),i},{}),n,r]}let $t=null;function ho(){return $t||($t=T.fromMillis(1555555555555)),$t}function mo(t,e){if(t.literal)return t;const n=U.macroTokenToFormatOpts(t.val),r=as(n,e);return r==null||r.includes(void 0)?t:r}function ss(t,e){return Array.prototype.concat(...t.map(n=>mo(n,e)))}class is{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=ss(U.parseFormat(n),e),this.units=this.tokens.map(r=>oo(r,e)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,s]=uo(this.units);this.regex=RegExp(r,"i"),this.handlers=s}}explainFromTokens(e){if(this.isValid){const[n,r]=co(e,this.regex,this.handlers),[s,i,o]=r?fo(r):[null,null,void 0];if(We(r,"a")&&We(r,"H"))throw new Ce("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:s,zone:i,specificOffset:o}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function os(t,e,n){return new is(t,n).explainFromTokens(e)}function yo(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:o}=os(t,e,n);return[r,s,i,o]}function as(t,e){if(!t)return null;const r=U.create(e,t).dtFormatter(ho()),s=r.formatToParts(),i=r.resolvedOptions();return s.map(o=>lo(o,t,i))}const Zt="Invalid DateTime",qn=864e13;function _e(t){return new Q("unsupported zone",`the zone "${t.name}" is not supported`)}function zt(t){return t.weekData===null&&(t.weekData=wt(t.c)),t.weekData}function Pt(t){return t.localWeekData===null&&(t.localWeekData=wt(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Se(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new T({...n,...e,old:n})}function ls(t,e,n){let r=t-e*60*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=(s-e)*60*1e3;const i=n.offset(r);return s===i?[r,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function at(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function dt(t,e,n){return ls(bt(t),e,n)}function Yn(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:s,day:Math.min(t.c.day,pt(r,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=E.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=bt(i);let[l,u]=ls(a,n,t.zone);return o!==0&&(l+=o,u=t.zone.offset(l)),{ts:l,o:u}}function Ie(t,e,n,r,s,i){const{setZone:o,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const l=e||a,u=T.fromObject(t,{...n,zone:l,specificOffset:i});return o?u:u.setZone(a)}else return T.invalid(new Q("unparsable",`the input "${s}" can't be parsed as ${r}`))}function lt(t,e,n=!0){return t.isValid?U.create(N.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Ut(t,e,n){const r=t.c.year>9999||t.c.year<0;let s="";if(r&&t.c.year>=0&&(s+="+"),s+=L(t.c.year,r?6:4),n==="year")return s;if(e){if(s+="-",s+=L(t.c.month),n==="month")return s;s+="-"}else if(s+=L(t.c.month),n==="month")return s;return s+=L(t.c.day),s}function _n(t,e,n,r,s,i,o){let a=!n||t.c.millisecond!==0||t.c.second!==0,l="";switch(o){case"day":case"month":case"year":break;default:if(l+=L(t.c.hour),o==="hour")break;if(e){if(l+=":",l+=L(t.c.minute),o==="minute")break;a&&(l+=":",l+=L(t.c.second))}else{if(l+=L(t.c.minute),o==="minute")break;a&&(l+=L(t.c.second))}if(o==="second")break;a&&(!r||t.c.millisecond!==0)&&(l+=".",l+=L(t.c.millisecond,3))}return s&&(t.isOffsetFixed&&t.offset===0&&!i?l+="Z":t.o<0?(l+="-",l+=L(Math.trunc(-t.o/60)),l+=":",l+=L(Math.trunc(-t.o%60))):(l+="+",l+=L(Math.trunc(t.o/60)),l+=":",l+=L(Math.trunc(t.o%60)))),i&&(l+="["+t.zone.ianaName+"]"),l}const us={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},go={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},wo={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ht=["year","month","day","hour","minute","second","millisecond"],po=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Oo=["year","ordinal","hour","minute","second","millisecond"];function mt(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new ur(t);return e}function Gn(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return mt(t)}}function To(t){if(Ge===void 0&&(Ge=V.now()),t.type!=="iana")return t.offset(Ge);const e=t.name;let n=nn.get(e);return n===void 0&&(n=t.offset(Ge),nn.set(e,n)),n}function Bn(t,e){const n=ge(e.zone,V.defaultZone);if(!n.isValid)return T.invalid(_e(n));const r=N.fromObject(e);let s,i;if(O(t.year))s=V.now();else{for(const l of ht)O(t[l])&&(t[l]=us[l]);const o=Vr(t)||Wr(t);if(o)return T.invalid(o);const a=To(n);[s,i]=dt(t,a,n)}return new T({ts:s,zone:n,loc:r,o:i})}function Jn(t,e,n){const r=O(n.round)?!0:n.round,s=O(n.rounding)?"trunc":n.rounding,i=(a,l)=>(a=fn(a,r||n.calendary?0:2,n.calendary?"round":s),e.loc.clone(n).relFormatter(n).format(a,l)),o=a=>n.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(n.unit)return i(o(n.unit),n.unit);for(const a of n.units){const l=o(a);if(Math.abs(l)>=1)return i(l,a)}return i(t>e?-0:0,n.units[n.units.length-1])}function jn(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let Ge;const nn=new Map;class T{constructor(e){const n=e.zone||V.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Q("invalid input"):null)||(n.isValid?null:_e(n));this.ts=O(e.ts)?V.now():e.ts;let s=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,i]=[e.old.c,e.old.o];else{const a=we(e.o)&&!e.old?e.o:n.offset(this.ts);s=at(this.ts,a),r=Number.isNaN(s.year)?new Q("invalid input"):null,s=r?null:s,i=r?null:a}this._zone=n,this.loc=e.loc||N.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new T({})}static local(){const[e,n]=jn(arguments),[r,s,i,o,a,l,u]=n;return Bn({year:r,month:s,day:i,hour:o,minute:a,second:l,millisecond:u},e)}static utc(){const[e,n]=jn(arguments),[r,s,i,o,a,l,u]=n;return e.zone=q.utcInstance,Bn({year:r,month:s,day:i,hour:o,minute:a,second:l,millisecond:u},e)}static fromJSDate(e,n={}){const r=Xs(e)?e.valueOf():NaN;if(Number.isNaN(r))return T.invalid("invalid input");const s=ge(n.zone,V.defaultZone);return s.isValid?new T({ts:r,zone:s,loc:N.fromObject(n)}):T.invalid(_e(s))}static fromMillis(e,n={}){if(we(e))return e<-qn||e>qn?T.invalid("Timestamp out of range"):new T({ts:e,zone:ge(n.zone,V.defaultZone),loc:N.fromObject(n)});throw new P(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(we(e))return new T({ts:e*1e3,zone:ge(n.zone,V.defaultZone),loc:N.fromObject(n)});throw new P("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=ge(n.zone,V.defaultZone);if(!r.isValid)return T.invalid(_e(r));const s=N.fromObject(n),i=Ot(e,Gn),{minDaysInFirstWeek:o,startOfWeek:a}=An(i,s),l=V.now(),u=O(n.specificOffset)?r.offset(l):n.specificOffset,f=!O(i.ordinal),d=!O(i.year),h=!O(i.month)||!O(i.day),c=d||h,m=i.weekYear||i.weekNumber;if((c||f)&&m)throw new Ce("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&f)throw new Ce("Can't mix ordinal dates with month/day");const g=m||i.weekday&&!c;let w,p,v=at(l,u);g?(w=po,p=go,v=wt(v,o,a)):f?(w=Oo,p=wo,v=Lt(v)):(w=ht,p=us);let x=!1;for(const I of w){const Z=i[I];O(Z)?x?i[I]=p[I]:i[I]=v[I]:x=!0}const k=g?Bs(i,o,a):f?Js(i):Vr(i),M=k||Wr(i);if(M)return T.invalid(M);const S=g?Cn(i,o,a):f?Fn(i):i,[b,C]=dt(S,u,r),A=new T({ts:b,zone:r,o:C,loc:s});return i.weekday&&c&&e.weekday!==A.weekday?T.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${A.toISO()}`):A.isValid?A:T.invalid(A.invalid)}static fromISO(e,n={}){const[r,s]=zi(e);return Ie(r,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,s]=Pi(e);return Ie(r,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,s]=Ui(e);return Ie(r,s,n,"HTTP",n)}static fromFormat(e,n,r={}){if(O(e)||O(n))throw new P("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=r,o=N.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[a,l,u,f]=yo(o,e,n);return f?T.invalid(f):Ie(a,l,r,`format ${n}`,e,u)}static fromString(e,n,r={}){return T.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,s]=Ji(e);return Ie(r,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new P("need to specify a reason the DateTime is invalid");const r=e instanceof Q?e:new Q(e,n);if(V.throwOnInvalid)throw new Ss(r);return new T({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=as(e,N.fromObject(n));return r?r.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return ss(U.parseFormat(e),N.fromObject(n)).map(s=>s.val).join("")}static resetCache(){Ge=void 0,nn.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}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?zt(this).weekYear:NaN}get weekNumber(){return this.isValid?zt(this).weekNumber:NaN}get weekday(){return this.isValid?zt(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Pt(this).weekday:NaN}get localWeekNumber(){return this.isValid?Pt(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Pt(this).weekYear:NaN}get ordinal(){return this.isValid?Lt(this.c).ordinal:NaN}get monthShort(){return this.isValid?it.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?it.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?it.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?it.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?!1: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,n=6e4,r=bt(this.c),s=this.zone.offset(r-e),i=this.zone.offset(r+e),o=this.zone.offset(r-s*n),a=this.zone.offset(r-i*n);if(o===a)return[this];const l=r-o*n,u=r-a*n,f=at(l,o),d=at(u,a);return f.hour===d.hour&&f.minute===d.minute&&f.second===d.second&&f.millisecond===d.millisecond?[Se(this,{ts:l}),Se(this,{ts:u})]:[this]}get isInLeapYear(){return tt(this.year)}get daysInMonth(){return pt(this.year,this.month)}get daysInYear(){return this.isValid?Fe(this.year):NaN}get weeksInWeekYear(){return this.isValid?Xe(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Xe(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:s}=U.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(q.instance(e),n)}toLocal(){return this.setZone(V.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=ge(e,V.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||r){const i=e.offset(this.ts),o=this.toObject();[s]=dt(o,i,e)}return Se(this,{ts:s,zone:e})}else return T.invalid(_e(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return Se(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Ot(e,Gn),{minDaysInFirstWeek:r,startOfWeek:s}=An(n,this.loc),i=!O(n.weekYear)||!O(n.weekNumber)||!O(n.weekday),o=!O(n.ordinal),a=!O(n.year),l=!O(n.month)||!O(n.day),u=a||l,f=n.weekYear||n.weekNumber;if((u||o)&&f)throw new Ce("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new Ce("Can't mix ordinal dates with month/day");let d;i?d=Cn({...wt(this.c,r,s),...n},r,s):O(n.ordinal)?(d={...this.toObject(),...n},O(n.day)&&(d.day=Math.min(pt(d.year,d.month),d.day))):d=Fn({...Lt(this.c),...n});const[h,c]=dt(d,this.o,this.zone);return Se(this,{ts:h,o:c})}plus(e){if(!this.isValid)return this;const n=E.fromDurationLike(e);return Se(this,Yn(this,n))}minus(e){if(!this.isValid)return this;const n=E.fromDurationLike(e).negate();return Se(this,Yn(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},s=E.normalizeUnit(e);switch(s){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(s==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:o}=this;o<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(s==="quarters"){const i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?U.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):Zt}toLocaleString(e=gt,n={}){return this.isValid?U.create(this.loc.clone(n),e).formatDateTime(this):Zt}toLocaleParts(e={}){return this.isValid?U.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:s=!0,extendedZone:i=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;o=mt(o);const a=e==="extended";let l=Ut(this,a,o);return ht.indexOf(o)>=3&&(l+="T"),l+=_n(this,a,n,r,s,i,o),l}toISODate({format:e="extended",precision:n="day"}={}){return this.isValid?Ut(this,e==="extended",mt(n)):null}toISOWeekDate(){return lt(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:s=!1,extendedZone:i=!1,format:o="extended",precision:a="milliseconds"}={}){return this.isValid?(a=mt(a),(s&&ht.indexOf(a)>=3?"T":"")+_n(this,o==="extended",n,e,r,i,a)):null}toRFC2822(){return lt(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return lt(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ut(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(r&&(s+=" "),n?s+="z":e&&(s+="ZZ")),lt(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Zt}[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 n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return E.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=Ks(n).map(E.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,l=o?e:this,u=to(a,l,i,s);return o?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(T.now(),e,n)}until(e){return this.isValid?R.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,r)<=s&&s<=i.endOf(n,r)}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 n=e.base||T.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),Jn(n,this.plus(r),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?Jn(e.base||T.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(T.isDateTime))throw new P("min requires all arguments be DateTimes");return Rn(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(T.isDateTime))throw new P("max requires all arguments be DateTimes");return Rn(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:s=null,numberingSystem:i=null}=r,o=N.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return os(o,e,n)}static fromStringExplain(e,n,r={}){return T.fromFormatExplain(e,n,r)}static buildFormatParser(e,n={}){const{locale:r=null,numberingSystem:s=null}=n,i=N.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});return new is(i,e)}static fromFormatParser(e,n,r={}){if(O(e)||O(n))throw new P("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:i=null}=r,o=N.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});if(!o.equals(n.locale))throw new P(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);const{result:a,zone:l,specificOffset:u,invalidReason:f}=n.explainFromTokens(e);
1return f?T.invalid(f):Ie(a,l,r,`format ${n.format}`,e,u)}static get DATE_SHORT(){return gt}static get DATE_MED(){return cr}static get DATE_MED_WITH_WEEKDAY(){return Ms}static get DATE_FULL(){return fr}static get DATE_HUGE(){return dr}static get TIME_SIMPLE(){return hr}static get TIME_WITH_SECONDS(){return mr}static get TIME_WITH_SHORT_OFFSET(){return yr}static get TIME_WITH_LONG_OFFSET(){return gr}static get TIME_24_SIMPLE(){return wr}static get TIME_24_WITH_SECONDS(){return pr}static get TIME_24_WITH_SHORT_OFFSET(){return Or}static get TIME_24_WITH_LONG_OFFSET(){return Tr}static get DATETIME_SHORT(){return vr}static get DATETIME_SHORT_WITH_SECONDS(){return Sr}static get DATETIME_MED(){return kr}static get DATETIME_MED_WITH_SECONDS(){return xr}static get DATETIME_MED_WITH_WEEKDAY(){return bs}static get DATETIME_FULL(){return Mr}static get DATETIME_FULL_WITH_SECONDS(){return br}static get DATETIME_HUGE(){return Er}static get DATETIME_HUGE_WITH_SECONDS(){return Dr}}function He(t){if(T.isDateTime(t))return t;if(t&&t.valueOf&&we(t.valueOf()))return T.fromJSDate(t);if(t&&typeof t=="object")return T.fromObject(t);throw new P(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function ut(t){const e=new Date(t);if(!Number.isNaN(e.valueOf()))return e;const n=String(t).match(/\d+/g);if(n==null||n.length<=2)return e;{const[r,s,...i]=n.map(l=>parseInt(l)),o=[r,s-1,...i];return new Date(Date.UTC(...o))}}const qe=(t,e,n)=>{const r=t!==1?e+"s":e;return t+" "+r+" "+n};function rn(){return rn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rn.apply(null,arguments)}const Be=60,Je=Be*60,Re=Je*24,ct=Re*7,Xn=Re*30,Kn=Re*365,vo=()=>Date.now();function Ta({date:t,formatter:e,component:n="time",live:r=!0,minPeriod:s=0,maxPeriod:i=ct,title:o,now:a=vo,...l}){const[u,f]=W.useState(a());W.useEffect(()=>{if(!r)return;const b=(()=>{const C=ut(t).valueOf();if(!C)return console.warn("[react-timeago] Invalid Date provided"),0;const A=Math.round(Math.abs(u-C)/1e3),I=A<Be?1e3:A<Je?1e3*Be:A<Re?1e3*Je:1e3*ct,Z=Math.min(Math.max(I,s*1e3),i*1e3);return Z?setTimeout(()=>{f(a())},Z):0})();return()=>{b&&clearTimeout(b)}},[t,r,i,s,a,u]),W.useEffect(()=>{f(a())},[t]);const d=n,h=ut(t).valueOf();if(!h)return null;const c=Math.round(Math.abs(u-h)/1e3),m=h<u?"ago":"from now",[g,w]=c<Be?[Math.round(c),"second"]:c<Je?[Math.round(c/Be),"minute"]:c<Re?[Math.round(c/Je),"hour"]:c<ct?[Math.round(c/Re),"day"]:c<Xn?[Math.round(c/ct),"week"]:c<Kn?[Math.round(c/Xn),"month"]:[Math.round(c/Kn),"year"],p=typeof o>"u"?typeof t=="string"?t:ut(t).toISOString().substring(0,16).replace("T"," "):o,v=d==="time"?{...l,dateTime:ut(t).toISOString()}:l,x=(S=S,b=b,C=C,A=h,I=qe,Z=Z)=>qe(S,b,C),k=e||qe;let M;try{M=k(g,w,m,h,x,a),M||(M=qe(g,w,m,h,x,a))}catch(S){console.error("[react-timeago] Formatter threw an error:",S),M=qe(g,w,m)}return W.createElement(d,rn({},v,{title:p}),M)}const So=["top","right","bottom","left"],pe=Math.min,ae=Math.max,Tt=Math.round,ft=Math.floor,le=t=>({x:t,y:t}),ko={left:"right",right:"left",bottom:"top",top:"bottom"};function cs(t,e,n){return ae(t,pe(e,n))}function ce(t,e){return typeof t=="function"?t(e):t}function Oe(t){return t.split("-")[0]}function Pe(t){return t.split("-")[1]}function yn(t){return t==="x"?"y":"x"}function gn(t){return t==="y"?"height":"width"}function re(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function wn(t){return yn(re(t))}function xo(t,e,n){n===void 0&&(n=!1);const r=Pe(t),s=wn(t),i=gn(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=vt(o)),[o,vt(o)]}function Mo(t){const e=vt(t);return[sn(t),e,sn(e)]}function sn(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Qn=["left","right"],er=["right","left"],bo=["top","bottom"],Eo=["bottom","top"];function Do(t,e,n){switch(t){case"top":case"bottom":return n?e?er:Qn:e?Qn:er;case"left":case"right":return e?bo:Eo;default:return[]}}function No(t,e,n,r){const s=Pe(t);let i=Do(Oe(t),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(sn)))),i}function vt(t){const e=Oe(t);return ko[e]+t.slice(e.length)}function Io(t){var e,n,r,s;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(r=t.bottom)!=null?r:0,left:(s=t.left)!=null?s:0}}function fs(t){return typeof t!="number"?Io(t):{top:t,right:t,bottom:t,left:t}}function St(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function tr(t,e,n){let{reference:r,floating:s}=t;const i=re(e),o=wn(e),a=gn(o),l=Oe(e),u=i==="y",f=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let c;switch(l){case"top":c={x:f,y:r.y-s.height};break;case"bottom":c={x:f,y:r.y+r.height};break;case"right":c={x:r.x+r.width,y:d};break;case"left":c={x:r.x-s.width,y:d};break;default:c={x:r.x,y:r.y}}const m=Pe(e);return m&&(c[o]+=h*(m==="end"?1:-1)*(n&&u?-1:1)),c}async function Co(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:c=0}=ce(e,t),m=fs(c),w=a[h?d==="floating"?"reference":"floating":d],p=St(await i.getClippingRect
vendor: 4,816 bytes, line 1
1({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),v=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),k=await(i.isElement==null?void 0:i.isElement(x))&&await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1},M=St(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:x,strategy:l}):v);return{top:(p.top-M.top+m.top)/k.y,bottom:(M.bottom-p.bottom+m.bottom)/k.y,left:(p.left-M.left+m.left)/k.x,right:(M.right-p.right+m.right)/k.x}}const Fo=50,Ao=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:Co},l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:f,y:d}=tr(u,r,l),h=r,c=0;const m={};for(let g=0;g<i.length;g++){const w=i[g];if(!w)continue;const{name:p,fn:v}=w,{x,y:k,data:M,reset:S}=await v({x:f,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:m,rects:u,platform:a,elements:{reference:t,floating:e}});f=x??f,d=k??d,m[p]={...m[p],...M},S&&c<Fo&&(c++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(u=S.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):S.rects),{x:f,y:d}=tr(u,h,l)),g=-1)}return{x:f,y:d,placement:h,strategy:s,middlewareData:m}},Ro=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=e,{element:u,padding:f=0}=ce(t,e)||{};if(u==null)return{};const d=fs(f),h={x:n,y:r},c=wn(s),m=gn(c),g=await o.getDimensions(u),w=c==="y",p=w?"top":"left",v=w?"bottom":"right",x=w?"clientHeight":"clientWidth",k=i.reference[m]+i.reference[c]-h[c]-i.floating[m],M=h[c]-i.reference[c],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let b=S?S[x]:0;(!b||!await(o.isElement==null?void 0:o.isElement(S)))&&(b=a.floating[x]||i.floating[m]);const C=k/2-M/2,A=b/2-g[m]/2-1,I=pe(d[p],A),Z=pe(d[v],A),de=b-g[m]-Z,z=b/2-g[m]/2+C,H=cs(I,z,de),te=!l.arrow&&Pe(s)!=null&&z!==H&&i.reference[m]/2-(z<I?I:Z)-g[m]/2<0,$=te?z<I?z-I:z-de:0;return{[c]:h[c]+$,data:{[c]:H,centerOffset:z-H-$,...te&&{alignmentOffset:$}},reset:te}}}),Vo=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=e,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...w}=ce(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const p=Oe(s),v=re(a),x=Oe(a)===a,k=await(l.isRTL==null?void 0:l.isRTL(u.floating)),M=h||(x||!g?[vt(a)]:Mo(a)),S=m!=="none";!h&&S&&M.push(...No(a,g,m,k));const b=[a,...M],C=await l.detectOverflow(e,w),A=[];let I=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&A.push(C[p]),d){const H=xo(s,o,k);A.push(C[H[0]],C[H[1]])}if(I=[...I,{placement:s,overflows:A}],!A.every(H=>H<=0)){var Z,de;const H=(((Z=i.flip)==null?void 0:Z.index)||0)+1,te=b[H];if(te&&(!(d==="alignment"?v!==re(te):!1)||I.every(F=>re(F.placement)===v?F.overflows[0]>0:!0)))return{data:{index:H,overflows:I},reset:{placement:te}};let $=(de=I.filter(ne=>ne.overflows[0]<=0).sort((ne,F)=>ne.overflows[1]-F.overflows[1])[0])==null?void 0:de.placement;if(!$)switch(c){case"bestFit":{var z;const ne=(z=I.filter(F=>{if(S){const _=re(F.placement);return _===v||_==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(_=>_>0).reduce((_,he)=>_+he,0)]).sort((F,_)=>F[1]-_[1])[0])==null?void 0:z[0];ne&&($=ne);break}case"initialPlacement":$=a;break}if(s!==$)return{reset:{placement:$}}}return{}}}};function nr(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function rr(t){return So.some(e=>t[e]>=0)}const Wo=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:s="referenceHidden",...i}=ce(t,e);switch(s){case"referenceHidden":{const o=await r.detectOverflow(e,{...i,elementContext:"reference"}),a=nr(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:rr(a)}}}case"escaped":{const o=await r.detectOverflow(e,{...i,altBoundary:!0}),a=nr(o,n.floating);return{data:{escapedOffsets:a,escaped:rr(a)}}}default:return{}}}}},ds=new Set(["left","top"]);async function Lo(t,e){const{placement:n,platform:r,elements:s}=t,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Oe(n),a=Pe(n),l=re(n)==="y",u=ds.has(o)?-1:1,f=i&&l?-1:1,d=ce(e,t);let{mainAxis:h,crossAxis:c,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(c=a==="end"?m*-1:m),l?{x:c*f,y:h*u}:{x:h*u,y:c*f}}const $o=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=e,l=await Lo(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},Zo=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s,platform:i}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x,y:k}=v;return{x,y:k}}},...u}=ce(t,e),f={x:n,y:r},d=await i.detectOverflow(e,u),h=re(s),c=yn(h);let m=f[c],g=f[h];const w=(v,x)=>cs(x+d[v==="y"?"top":"left"],x,x-d[v==="y"?"bottom":"right"]);o&&(m=w(c,m)),a&&(g=w(h,g));const p=l.fn({...e,[c]:m,[h]:g});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[c]:o,[h]:a}}}}}},zo=function(t){return t===void 0&&(t={}),{options:t,fn(e){var n,r;const{x:s,y:i,placement:o,rects:a,middlewareData:l}=e,{offset:u=0,mainAxis:f=!0,crossAxis:d=!0}=ce(t,e),h={x:s,y:i},c=re(o),m=yn(c);let g=h[m],w=h[c];const p=ce(u,e),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:(n=p.mainAxis)!=null?n:0,crossAxis:(r=p.crossAxis)!=null?r:0};if(f){const M=m==="y"?"height":"width",S=a.reference[m]-a.floating[M]+v.mainAxis,b=a.reference[m]+a.reference[M]-v.mainAxis;g<S?g=S:g>b&&(g=b)}if(d){var x,k;const M=m==="y"?"width":"height",S=ds.has(Oe(o)),b=a.reference[c]-a.floating[M]+(S&&((x=l.offset)==null?void 0:x[c])||0)+(S?0:v.crossAxis),C=a.reference[c]+a.reference[M]+(S?0:((k=l.offset)==null?void 0:k[c])||0)-(S?v.crossAxis:0);w<b?w=b:w>C&&(w=C)}return{[m]:g,[c]:w}}}},Po=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:r,platform:s,elements:i}=e,{apply:o=()=>{},...a}=ce(t,e),l=await s.detectOverflow(e,a),u=Oe(n),f=Pe(n),d=re(n)==="y",{width:h,height:c}=r.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=f===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,m=f==="end"?"top":"bottom");const w=c-l.top-l.bottom,p=h-l.left-l.right,v=pe(c-l[m],w),x=pe(h-l[g],p),k=e.middlewareData.shift,M=!k;let S=v,b=x;k!=null&&k.enabled.x&&(b=p),k!=null&&k.enabled.y&&(S=w),M&&!f&&(d?b=h-2*ae(l.left,l.right):S=c-2*ae(l.top,l.bottom)),await o({...e,availableWidth:b,availableHeight:S});const C=await s.getDimensions(i.floating);return h!==C.width||c!==C.height?{reset:{rects:!0}}:{}}}};function Nt(){return typeof window<"u"}function Ue(t){return hs(t)?(t.nodeName||"").toLowerCase():"#document"}function Y(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function fe(t){var e;return(e=(hs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function hs(t){return Nt()?t instanceof Node||t instanceof Y(t).Node:!1}function se(t){return Nt()?t instanceof Element||t instanceof Y(t).Element:!1}function Te(t){return Nt()?t instanceof HTMLElement||t instanceof Y(t).HTMLElement:!1}function sr(t){return!Nt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Y(t).ShadowRoot}function It(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=ie(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&s!=="inline"&&s!=="contents"}function Uo(t){return/^(table|td|th)$/.test(Ue(t))}function Ct(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Ho=/transform|translate|scale|rotate|perspective|filter/,qo=/paint|layout|strict|content/,ke=t=>!!t&&t!=="none";let Ht;function pn(t){const e=se(t)?ie(t):t;return ke(e.transform)||ke(e.translate)||ke(e.scale)||ke(e.rotate)||ke(e.perspective)||!On()&&(ke(e.backdropFilter)||ke(e.filter))||Ho.test(e.willChange||"")||qo.test(e.contain||"")}function Yo(t){let e=Me(t);for(;Te(e)&&!Ke(e);){if(pn(e))return e;if(Ct(e))return null;e=Me(e)}return null}function On(){return Ht==null&&(Ht=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ht}function Ke(t){return/^(html|body|#document)$/.test(Ue(t))}function ie(t){return Y(t).getComputedStyle(t)}function Ft(t){return se(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Me(t){if(Ue(t)==="html")return t;const e=t.assignedSlot||t.parentNode||sr(t)&&t.host||fe(t);return sr(e)?e.host:e}function ms(t){const e=Me(t);return Ke(e)?(t.ownerDocument||t).body:Te(e)&&It(e)?e:ms(e)}function Qe(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=ms(t),i=s===((r=t.ownerDocument)==null?void 0:r.body),o=Y(s);if(i){const a=on(o);
1return e.concat(o,o.visualViewport||[],It(s)?s:[],a&&n?Qe(a):[])}else return e.concat(s,Qe(s,[],n))}function on(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ys(t){const e=ie(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=Te(t),i=s?t.offsetWidth:n,o=s?t.offsetHeight:r,a=Tt(n)!==i||Tt(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function Tn(t){return se(t)?t:t.contextElement}function Ve(t){const e=Tn(t);if(!Te(e))return le(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:i}=ys(e);let o=(i?Tt(n.width):n.width)/r,a=(i?Tt(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const _o=le(0);function gs(t){const e=Y(t);return!On()||!e.visualViewport?_o:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Go(t,e,n){return e===void 0&&(e=!1),!!n&&e&&n===Y(t)}function be(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),i=Tn(t);let o=le(1);e&&(r?se(r)&&(o=Ve(r)):o=Ve(t));const a=Go(i,n,r)?gs(i):le(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,f=s.width/o.x,d=s.height/o.y;if(i&&r){const h=Y(i),c=se(r)?Y(r):r;
1let m=h,g=on(m);for(;g&&c!==m;){const w=Ve(g),p=g.getBoundingClientRect(),v=ie(g),x=p.left+(g.clientLeft+parseFloat(v.paddingLeft))*w.x,k=p.top+(g.clientTop+parseFloat(v.paddingTop))*w.y;l*=w.x,u*=w.y,f*=w.x,d*=w.y,l+=x,u+=k,m=Y(g),g=on(m)}}return St({width:f,height:d,x:l,y:u})}function At(t,e){const n=Ft(t).scrollLeft;return e?e.left+n:be(fe(t)).left+n}function ws(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-At(t,n),s=n.top+e.scrollTop;return{x:r,y:s}}function Bo(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const i=s==="fixed",o=fe(r),a=e?Ct(e.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=le(1);const f=le(0),d=Te(r);if((d||!i)&&((Ue(r)!=="body"||It(o))&&(l=Ft(r)),d)){const c=be(r);u=Ve(r),f.x=c.x+r.clientLeft,f.y=c.y+r.clientTop}const h=o&&!d&&!i?ws(o,l):le(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-l.scrollTop*u.y+f.y+h.y}}function Jo(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function jo(t){const e=Ft(t),n=t.ownerDocument.body,r=ae(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=ae(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-e.scrollLeft+At(t);const o=-e.scrollTop;return ie(n).direction==="rtl"&&(i+=ae(t.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:o}}const Xo=25;function Ko(t,e,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",s=Y(t),i=fe(t),o=s.visualViewport;let a=i.clientWidth,l=i.clientHeight,u=0,f=0;if(o){const h=!On()||e==="fixed";r?h||(u=-o.offsetLeft,f=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,f=o.offsetTop))}if(At(i)<=0){const h=i.ownerDocument,c=h.body,m=getComputedStyle(c),g=h.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,w=Math.abs(i.clientWidth-c.clientWidth-g),p=getComputedStyle(i).scrollbarGutter==="stable both-edges"?w/2:w;p<=Xo&&(a-=p)}return{width:a,height:l,x:u,y:f}}function Qo(t,e){const n=be(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,i=Ve(t),o=t.clientWidth*i.x,a=t.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function ir(t,e,n){let r;if(e==="viewport"||e==="layoutViewport")r=Ko(t,n,e);else if(e==="document")r=jo(fe(t));else if(se(e))r=Qo(e,n);else{const s=gs(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return St(r)}function ea(t,e){const n=e.get(t);if(n)return n;let r=Qe(t,[],!1).filter(a=>se(a)&&Ue(a)!=="body"),s=null;const i=ie(t).position==="fixed";let o=i?Me(t):t;for(;se(o)&&!Ke(o);){const a=ie(o),l=pn(o),u=s?s.position:i?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?r=r.filter(d=>d!==o):s=a,o=Me(o)}return e.set(t,r),r}function ta(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?Ct(e)?[]:ea(e,this._c):[].concat(n),r],a=ir(e,o[0],s);let l=a.top,u=a.right,f=a.bottom,d=a.left;for(let h=1;h<o.length;h++){const c=ir(e,o[h],s);l=ae(c.top,l),u=pe(c.right,u),f=pe(c.bottom,f),d=ae(c.left,d)}return{width:u-d,height:f-l,x:d,y:l}}function na(t){const{width:e,height:n}=ys(t);return{width:e,height:n}}function ra(t,e,n){const r=Te(e),s=fe(e),i=n==="fixed",o=be(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=le(0);if((r||!i)&&((Ue(e)!=="body"||It(s))&&(a=Ft(e)),r)){const h=be(e,!0,i,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!r&&s&&(l.x=At(s));const u=s&&!r&&!i?ws(s,a):le(0),f=o.left+a.scrollLeft-l.x-u.x,d=o.top+a.scrollTop-l.y-u.y;return{x:f,y:d,width:o.width,height:o.height}}function qt(t){return ie(t).position==="static"}function or(t,e){if(!Te(t)||ie(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return fe(t)===n&&(n=n.ownerDocument.body),n}function ps(t,e){const n=Y(t);if(Ct(t))return n;if(!Te(t)){let s=Me(t);for(;s&&!Ke(s);){if(se(s)&&!qt(s))return s;s=Me(s)}return n}let r=or(t,e);for(;r&&Uo(r)&&qt(r);)r=or(r,e);return r&&Ke(r)&&qt(r)&&!pn(r)?n:r||Yo(t)||n}const sa=async function(t){const e=this.getOffsetParent||ps,n=this.getDimensions,r=await n(t.floating);return{reference:ra(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ia(t){return ie(t).direction==="rtl"}const oa={convertOffsetParentRelativeRectToViewportRelativeRect:Bo,getDocumentElement:fe,getClippingRect:ta,getOffsetParent:ps,getElementRects:sa,getClientRects:Jo,getDimensions:na,getScale:Ve,isElement:se,isRTL:ia};function Os(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function aa(t,e,n){let r=null,s;const i=fe(t);function o(){var f;clearTimeout(s),(f=r)==null||f.disconnect(),r=null}function a(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),o();const h=t.getBoundingClientRect(),{left:c,top:m,width:g,height:w}=h;if(f||e(),!g||!w)return;const p=ft(m),v=ft(i.clientWidth-(c+g)),x=ft(i.clientHeight-(m+w)),k=ft(c),S={rootMargin:-p+"px "+-v+"px "+-x+"px "+-k+"px",threshold:ae(0,pe(1,d))||1};let b=!0;function C(A){const I=A[0].intersectionRatio;if(!Os(h,t.getBoundingClientRect()))return a();if(I!==d){if(!b)return a();I?a(!1,I):s=setTimeout(()=>{a(!1,1e-7)},1e3)}b=!1}try{r=new IntersectionObserver(C,{...S,root:i.ownerDocument})}catch{r=new IntersectionObserver(C,S)}r.observe(t)}const l=Y(t),u=()=>a(n);return l.addEventListener("resize",u),a(!0),()=>{l.removeEventListener("resize",u),o()}}function va(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Tn(t),f=s||i?[...u?Qe(u):[],...e?Qe(e):[]]:[];f.forEach(p=>{s&&p.addEventListener("scroll",n),i&&p.addEventListener("resize",n)});const d=u&&a?aa(u,n,i):null;let h=-1,c=null;o&&(c=new ResizeObserver(p=>{let[v]=p;v&&v.target===u&&c&&e&&(c.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=c)==null||x.observe(e)})),n()}),u&&!l&&c.observe(u),e&&c.observe(e));let m,g=l?be(t):null;l&&w();function w(){const p=be(t);g&&!Os(g,p)&&n(),g=p,m=requestAnimationFrame(w)}return n(),()=>{var p;f.forEach(v=>{s&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),d==null||d(),(p=c)==null||p.disconnect(),c=null,l&&cancelAnimationFrame(m)}}const la=$o,ua=Zo,ca=Vo,fa=Po,da=Wo,ar=Ro,ha=zo,ma=(t,e,n)=>{const r=new Map,s=n??{},i={...oa,...s.platform,_c:r};return Ao(t,e,{...s,platform:i})};var ya=typeof document<"u",ga=function(){},yt=ya?W.useLayoutEffect:ga;function kt(t,e){if(t===e)return!0;
vendor: 3,197 bytes, line 1
1if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!kt(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&t.$$typeof)&&!kt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Ts(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function lr(t,e){const n=Ts(t);return Math.round(e*n)/n}function Yt(t){const e=W.useRef(t);return yt(()=>{e.current=t}),e}function Sa(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=t,[f,d]=W.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,c]=W.useState(r);kt(h,r)||c(r);const[m,g]=W.useState(null),[w,p]=W.useState(null),v=W.useCallback(F=>{F!==S.current&&(S.current=F,g(F))},[]),x=W.useCallback(F=>{F!==b.current&&(b.current=F,p(F))},[]),k=i||m,M=o||w,S=W.useRef(null),b=W.useRef(null),C=W.useRef(f),A=l!=null,I=Yt(l),Z=Yt(s),de=Yt(u),z=W.useCallback(()=>{if(!S.current||!b.current)return;const F={placement:e,strategy:n,middleware:h};Z.current&&(F.platform=Z.current),ma(S.current,b.current,F).then(_=>{const he={..._,isPositioned:de.current!==!1};H.current&&!kt(C.current,he)&&(C.current=he,vs.flushSync(()=>{d(he)}))})},[h,e,n,Z,de]);yt(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[u]);const H=W.useRef(!1);yt(()=>(H.current=!0,()=>{H.current=!1}),[]),yt(()=>{if(k&&(S.current=k),M&&(b.current=M),k&&M){if(I.current)return I.current(k,M,z);z()}},[k,M,z,I,A]);const te=W.useMemo(()=>({reference:S,floating:b,setReference:v,setFloating:x}),[v,x]),$=W.useMemo(()=>({reference:k,floating:M}),[k,M]),ne=W.useMemo(()=>{const F={position:n,left:0,top:0};if(!$.floating)return F;const _=lr($.floating,f.x),he=lr($.floating,f.y);return a?{...F,transform:"translate("+_+"px, "+he+"px)",...Ts($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:he}},[n,a,$.floating,f.x,f.y]);return W.useMemo(()=>({...f,update:z,refs:te,elements:$,floatingStyles:ne}),[f,z,te,$,ne])}const wa=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?ar({element:r.current,padding:s}).fn(n):{}:r?ar({element:r,padding:s}).fn(n):{}}}},ka=(t,e)=>{const n=la(t);return{name:n.name,fn:n.fn,options:[t,e]}},xa=(t,e)=>{const n=ua(t);return{name:n.name,fn:n.fn,options:[t,e]}},Ma=(t,e)=>({fn:ha(t).fn,options:[t,e]}),ba=(t,e)=>{const n=ca(t);return{name:n.name,fn:n.fn,options:[t,e]}},Ea=(t,e)=>{const n=fa(t);return{name:n.name,fn:n.fn,options:[t,e]}},Da=(t,e)=>{const n=da(t);return{name:n.name,fn:n.fn,options:[t,e]}},Na=(t,e)=>{const n=wa(t);return{name:n.name,fn:n.fn,options:[t,e]}};export{T as D,Ta as T,Ea as a,Na as b,va as c,ba as f,Da as h,Ma as l,ka as o,xa as s,Sa as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.