@tachybase/plugin-block-calendar 0.23.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/.turbo/turbo-build.log +14 -0
  2. package/LICENSE +201 -0
  3. package/README.md +6 -0
  4. package/README.zh-CN.md +5 -0
  5. package/client.d.ts +2 -0
  6. package/client.js +1 -0
  7. package/dist/client/calendar/Calendar.Designer.d.ts +2 -0
  8. package/dist/client/calendar/Calendar.d.ts +5 -0
  9. package/dist/client/calendar/Calender.Settings.d.ts +4 -0
  10. package/dist/client/calendar/DeleteEvent.d.ts +3 -0
  11. package/dist/client/calendar/Event.d.ts +2 -0
  12. package/dist/client/calendar/Nav.d.ts +2 -0
  13. package/dist/client/calendar/Title.d.ts +2 -0
  14. package/dist/client/calendar/Today.d.ts +2 -0
  15. package/dist/client/calendar/ViewSelect.d.ts +2 -0
  16. package/dist/client/calendar/components/Header.d.ts +11 -0
  17. package/dist/client/calendar/context.d.ts +5 -0
  18. package/dist/client/calendar/global.style.d.ts +2 -0
  19. package/dist/client/calendar/index.d.ts +2 -0
  20. package/dist/client/calendar/style.d.ts +2 -0
  21. package/dist/client/calendar/utils.d.ts +9 -0
  22. package/dist/client/collection-templates/calendar.d.ts +39 -0
  23. package/dist/client/hooks/useCalendarBlockDecoratorProps.d.ts +4 -0
  24. package/dist/client/hooks/useCalendarBlockParams.d.ts +1 -0
  25. package/dist/client/index.d.ts +5 -0
  26. package/dist/client/index.js +93 -0
  27. package/dist/client/schema-initializer/CalendarBlockProvider.d.ts +9 -0
  28. package/dist/client/schema-initializer/createCalendarBlockUISchema.d.ts +7 -0
  29. package/dist/client/schema-initializer/initializers/CalendarActionInitializers.d.ts +2 -0
  30. package/dist/client/schema-initializer/initializers/CalendarFormActionInitializers.d.ts +7 -0
  31. package/dist/client/schema-initializer/initializers/index.d.ts +2 -0
  32. package/dist/client/schema-initializer/items/CalendarBlockInitializer.d.ts +17 -0
  33. package/dist/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +7 -0
  34. package/dist/client/schema-initializer/items/index.d.ts +2 -0
  35. package/dist/externalVersion.js +14 -0
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.js +33 -0
  38. package/dist/locale/en_US.d.ts +46 -0
  39. package/dist/locale/en_US.js +67 -0
  40. package/dist/locale/es_ES.d.ts +46 -0
  41. package/dist/locale/es_ES.js +67 -0
  42. package/dist/locale/fr_FR.d.ts +46 -0
  43. package/dist/locale/fr_FR.js +67 -0
  44. package/dist/locale/index.d.ts +4 -0
  45. package/dist/locale/index.js +44 -0
  46. package/dist/locale/ja_JP.d.ts +33 -0
  47. package/dist/locale/ja_JP.js +54 -0
  48. package/dist/locale/ko_KR.d.ts +47 -0
  49. package/dist/locale/ko_KR.js +68 -0
  50. package/dist/locale/pt_BR.d.ts +43 -0
  51. package/dist/locale/pt_BR.js +64 -0
  52. package/dist/locale/ru_RU.d.ts +32 -0
  53. package/dist/locale/ru_RU.js +53 -0
  54. package/dist/locale/tr_TR.d.ts +32 -0
  55. package/dist/locale/tr_TR.js +53 -0
  56. package/dist/locale/uk_UA.d.ts +46 -0
  57. package/dist/locale/uk_UA.js +67 -0
  58. package/dist/locale/zh-CN.d.ts +47 -0
  59. package/dist/locale/zh-CN.js +68 -0
  60. package/dist/server/index.d.ts +1 -0
  61. package/dist/server/index.js +33 -0
  62. package/dist/server/server.d.ts +3 -0
  63. package/dist/server/server.js +25 -0
  64. package/package.json +38 -0
  65. package/server.d.ts +3 -0
  66. package/server.js +1 -0
@@ -0,0 +1,93 @@
1
+ (function(Z,$){typeof exports=="object"&&typeof module!="undefined"?$(exports,require("@tachybase/client"),require("react-i18next"),require("react/jsx-runtime"),require("react"),require("@tachybase/schema"),require("@ant-design/icons"),require("dayjs"),require("react-dom"),require("lodash"),require("antd"),require("@tachybase/components")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react-i18next","react/jsx-runtime","react","@tachybase/schema","@ant-design/icons","dayjs","react-dom","lodash","antd","@tachybase/components"],$):(Z=typeof globalThis!="undefined"?globalThis:Z||self,$(Z["@tachybase/plugin-block-calendar"]={},Z["@tachybase/client"],Z["react-i18next"],Z.jsxRuntime,Z.react,Z["@tachybase/schema"],Z["@ant-design/icons"],Z.dayjs,Z["react-dom"],Z.lodash,Z.antd,Z["@tachybase/components"]))})(this,function(Z,$,le,A,g,ee,ht,ke,Ye,Cr,Ae,ka){"use strict";var V_=Object.defineProperty,R_=Object.defineProperties;var B_=Object.getOwnPropertyDescriptors;var Ma=Object.getOwnPropertySymbols;var Hf=Object.prototype.hasOwnProperty,Uf=Object.prototype.propertyIsEnumerable;var jf=Math.pow,To=(Z,$,le)=>$ in Z?V_(Z,$,{enumerable:!0,configurable:!0,writable:!0,value:le}):Z[$]=le,z=(Z,$)=>{for(var le in $||($={}))Hf.call($,le)&&To(Z,le,$[le]);if(Ma)for(var le of Ma($))Uf.call($,le)&&To(Z,le,$[le]);return Z},ve=(Z,$)=>R_(Z,B_($));var wn=(Z,$)=>{var le={};for(var A in Z)Hf.call(Z,A)&&$.indexOf(A)<0&&(le[A]=Z[A]);if(Z!=null&&Ma)for(var A of Ma(Z))$.indexOf(A)<0&&Uf.call(Z,A)&&(le[A]=Z[A]);return le};var $t=(Z,$,le)=>To(Z,typeof $!="symbol"?$+"":$,le);var Zt=(Z,$,le)=>new Promise((A,g)=>{var ee=Ye=>{try{ke(le.next(Ye))}catch(Cr){g(Cr)}},ht=Ye=>{try{ke(le.throw(Ye))}catch(Cr){g(Cr)}},ke=Ye=>Ye.done?A(Ye.value):Promise.resolve(Ye.value).then(ee,ht);ke((le=le.apply(Z,$)).next())});const Aa="calendar";function qe(e,t={}){return $.i18n.t(e,z({ns:Aa},t))}function q(e){return`{{t('${e}', { ns: '${Aa}' })}}`}function et(){return le.useTranslation(Aa)}var Ge=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});class Ct extends Error{}class Yf extends Ct{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class qf extends Ct{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Gf extends Ct{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Kt extends Ct{}class Eo extends Ct{constructor(t){super(`Invalid unit ${t}`)}}class De extends Ct{}class pt extends Ct{constructor(){super("Zone is an abstract class")}}const I="numeric",Ze="short",Le="long",Sn={year:I,month:I,day:I},$o={year:I,month:Ze,day:I},Zf={year:I,month:Ze,day:I,weekday:Ze},Co={year:I,month:Le,day:I},_o={year:I,month:Le,day:I,weekday:Le},Mo={hour:I,minute:I},ko={hour:I,minute:I,second:I},Ao={hour:I,minute:I,second:I,timeZoneName:Ze},No={hour:I,minute:I,second:I,timeZoneName:Le},Io={hour:I,minute:I,hourCycle:"h23"},Po={hour:I,minute:I,second:I,hourCycle:"h23"},Fo={hour:I,minute:I,second:I,hourCycle:"h23",timeZoneName:Ze},Lo={hour:I,minute:I,second:I,hourCycle:"h23",timeZoneName:Le},Wo={year:I,month:I,day:I,hour:I,minute:I},zo={year:I,month:I,day:I,hour:I,minute:I,second:I},Vo={year:I,month:Ze,day:I,hour:I,minute:I},Ro={year:I,month:Ze,day:I,hour:I,minute:I,second:I},Kf={year:I,month:Ze,day:I,weekday:Ze,hour:I,minute:I},Bo={year:I,month:Le,day:I,hour:I,minute:I,timeZoneName:Ze},Ho={year:I,month:Le,day:I,hour:I,minute:I,second:I,timeZoneName:Ze},Uo={year:I,month:Le,day:I,weekday:Le,hour:I,minute:I,timeZoneName:Le},jo={year:I,month:Le,day:I,weekday:Le,hour:I,minute:I,second:I,timeZoneName:Le};class Xt{get type(){throw new pt}get name(){throw new pt}get ianaName(){return this.name}get isUniversal(){throw new pt}offsetName(t,r){throw new pt}formatOffset(t,r){throw new pt}offset(t){throw new pt}equals(t){throw new pt}get isValid(){throw new pt}}let Na=null;class _r extends Xt{static get instance(){return Na===null&&(Na=new _r),Na}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return gs(t,r,n)}formatOffset(t,r){return Nr(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let On={};function Xf(e){return On[e]||(On[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),On[e]}const Jf={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Qf(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,i,o,s,l,c,u]=n;return[o,a,i,s,l,c,u]}function ed(e,t){const r=e.formatToParts(t),n=[];for(let a=0;a<r.length;a++){const{type:i,value:o}=r[a],s=Jf[i];i==="era"?n[s]=o:H(s)||(n[s]=parseInt(o,10))}return n}let Dn={};class tt extends Xt{static create(t){return Dn[t]||(Dn[t]=new tt(t)),Dn[t]}static resetCache(){Dn={},On={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(r){return!1}}constructor(t){super(),this.zoneName=t,this.valid=tt.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return gs(t,r,n,this.name)}formatOffset(t,r){return Nr(this.offset(t),r)}offset(t){const r=new Date(t);if(isNaN(r))return NaN;const n=Xf(this.name);let[a,i,o,s,l,c,u]=n.formatToParts?ed(n,r):Qf(n,r);s==="BC"&&(a=-Math.abs(a)+1);const d=Cn({year:a,month:i,day:o,hour:l===24?0:l,minute:c,second:u,millisecond:0});let h=+r;const m=h%1e3;return h-=m>=0?m:1e3+m,(d-h)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Yo={};function td(e,t={}){const r=JSON.stringify([e,t]);let n=Yo[r];return n||(n=new Intl.ListFormat(e,t),Yo[r]=n),n}let Ia={};function Pa(e,t={}){const r=JSON.stringify([e,t]);let n=Ia[r];return n||(n=new Intl.DateTimeFormat(e,t),Ia[r]=n),n}let Fa={};function rd(e,t={}){const r=JSON.stringify([e,t]);let n=Fa[r];return n||(n=new Intl.NumberFormat(e,t),Fa[r]=n),n}let La={};function nd(e,t={}){const o=t,{base:r}=o,n=wn(o,["base"]),a=JSON.stringify([e,n]);let i=La[a];return i||(i=new Intl.RelativeTimeFormat(e,t),La[a]=i),i}let Mr=null;function ad(){return Mr||(Mr=new Intl.DateTimeFormat().resolvedOptions().locale,Mr)}let qo={};function id(e){let t=qo[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,qo[e]=t}return t}function od(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const r=e.indexOf("-u-");if(r===-1)return[e];{let n,a;try{n=Pa(e).resolvedOptions(),a=e}catch(s){const l=e.substring(0,r);n=Pa(l).resolvedOptions(),a=l}const{numberingSystem:i,calendar:o}=n;return[a,i,o]}}function sd(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function ld(e){const t=[];for(let r=1;r<=12;r++){const n=U.utc(2009,r,1);t.push(e(n))}return t}function cd(e){const t=[];for(let r=1;r<=7;r++){const n=U.utc(2016,11,13+r);t.push(e(n))}return t}function Tn(e,t,r,n){const a=e.listingMode();return a==="error"?null:a==="en"?r(t):n(t)}function ud(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class fd{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const s=n,{padTo:a,floor:i}=s,o=wn(s,["padTo","floor"]);if(!r||Object.keys(o).length>0){const l=z({useGrouping:!1},n);n.padTo>0&&(l.minimumIntegerDigits=n.padTo),this.inf=rd(t,l)}}format(t){if(this.inf){const r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{const r=this.floor?Math.floor(t):ja(t,3);return be(r,this.padTo)}}}class dd{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let a;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const o=-1*(t.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&tt.create(s).valid?(a=s,this.dt=t):(a="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,a=t.zone.name):(a="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const i=z({},this.opts);i.timeZone=i.timeZone||a,this.dtf=Pa(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return ve(z({},r),{value:n})}else return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class hd{constructor(t,r,n){this.opts=z({style:"long"},n),!r&&hs()&&(this.rtf=nd(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):Pd(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}}const pd={firstDay:1,minimalDays:4,weekend:[6,7]};class re{static fromOpts(t){return re.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,a,i=!1){const o=t||ce.defaultLocale,s=o||(i?"en-US":ad()),l=r||ce.defaultNumberingSystem,c=n||ce.defaultOutputCalendar,u=Ha(a)||ce.defaultWeekSettings;return new re(s,l,c,u,o)}static resetCache(){Mr=null,Ia={},Fa={},La={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:a}={}){return re.create(t,r,n,a)}constructor(t,r,n,a,i){const[o,s,l]=od(t);this.locale=o,this.numberingSystem=r||s||null,this.outputCalendar=n||l||null,this.weekSettings=a,this.intl=sd(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=ud(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:re.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,Ha(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(ve(z({},t),{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(ve(z({},t),{defaultToEN:!1}))}months(t,r=!1){return Tn(this,t,ws,()=>{const n=r?{month:t,day:"numeric"}:{month:t},a=r?"format":"standalone";return this.monthsCache[a][t]||(this.monthsCache[a][t]=ld(i=>this.extract(i,n,"month"))),this.monthsCache[a][t]})}weekdays(t,r=!1){return Tn(this,t,Ds,()=>{const n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},a=r?"format":"standalone";return this.weekdaysCache[a][t]||(this.weekdaysCache[a][t]=cd(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[a][t]})}meridiems(){return Tn(this,void 0,()=>Ts,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[U.utc(2016,11,13,9),U.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Tn(this,t,xs,()=>{const r={era:t};return this.eraCache[t]||(this.eraCache[t]=[U.utc(-40,1,1),U.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){const a=this.dtFormatter(t,r),i=a.formatToParts(),o=i.find(s=>s.type.toLowerCase()===n);return o?o.value:null}numberFormatter(t={}){return new fd(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new dd(t,this.intl,r)}relFormatter(t={}){return new hd(this.intl,this.isEnglish(),t)}listFormatter(t={}){return td(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ps()?id(this.locale):pd}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Wa=null;class Te extends Xt{static get utcInstance(){return Wa===null&&(Wa=new Te(0)),Wa}static instance(t){return t===0?Te.utcInstance:new Te(t)}static parseSpecifier(t){if(t){const r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new Te(_n(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Nr(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Nr(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return Nr(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Go extends Xt{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function mt(e,t){if(H(e)||e===null)return t;if(e instanceof Xt)return e;if(wd(e)){const r=e.toLowerCase();return r==="default"?t:r==="local"||r==="system"?_r.instance:r==="utc"||r==="gmt"?Te.utcInstance:Te.parseSpecifier(r)||tt.create(e)}else return vt(e)?Te.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Go(e)}const za={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Zo={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]},md=za.hanidec.replace(/[\[|\]]/g,"").split("");function vd(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(e[r].search(za.hanidec)!==-1)t+=md.indexOf(e[r]);else for(const a in Zo){const[i,o]=Zo[a];n>=i&&n<=o&&(t+=n-i)}}return parseInt(t,10)}else return t}let Jt={};function gd(){Jt={}}function Ke({numberingSystem:e},t=""){const r=e||"latn";return Jt[r]||(Jt[r]={}),Jt[r][t]||(Jt[r][t]=new RegExp(`${za[r]}${t}`)),Jt[r][t]}let Ko=()=>Date.now(),Xo="system",Jo=null,Qo=null,es=null,ts=60,rs,ns=null;class ce{static get now(){return Ko}static set now(t){Ko=t}static set defaultZone(t){Xo=t}static get defaultZone(){return mt(Xo,_r.instance)}static get defaultLocale(){return Jo}static set defaultLocale(t){Jo=t}static get defaultNumberingSystem(){return Qo}static set defaultNumberingSystem(t){Qo=t}static get defaultOutputCalendar(){return es}static set defaultOutputCalendar(t){es=t}static get defaultWeekSettings(){return ns}static set defaultWeekSettings(t){ns=Ha(t)}static get twoDigitCutoffYear(){return ts}static set twoDigitCutoffYear(t){ts=t%100}static get throwOnInvalid(){return rs}static set throwOnInvalid(t){rs=t}static resetCaches(){re.resetCache(),tt.resetCache(),U.resetCache(),gd()}}class Xe{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const as=[0,31,59,90,120,151,181,212,243,273,304,334],is=[0,31,60,91,121,152,182,213,244,274,305,335];function ze(e,t){return new Xe("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Va(e,t,r){const n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const a=n.getUTCDay();return a===0?7:a}function os(e,t,r){return r+(kr(e)?is:as)[t-1]}function ss(e,t){const r=kr(e)?is:as,n=r.findIndex(i=>i<t),a=t-r[n];return{month:n+1,day:a}}function Ra(e,t){return(e-t+7)%7+1}function xn(e,t=4,r=1){const{year:n,month:a,day:i}=e,o=os(n,a,i),s=Ra(Va(n,a,i),r);let l=Math.floor((o-s+14-t)/7),c;return l<1?(c=n-1,l=Ar(c,t,r)):l>Ar(n,t,r)?(c=n+1,l=1):c=n,z({weekYear:c,weekNumber:l,weekday:s},kn(e))}function ls(e,t=4,r=1){const{weekYear:n,weekNumber:a,weekday:i}=e,o=Ra(Va(n,1,t),r),s=er(n);let l=a*7+i-o-7+t,c;l<1?(c=n-1,l+=er(c)):l>s?(c=n+1,l-=er(n)):c=n;const{month:u,day:f}=ss(c,l);return z({year:c,month:u,day:f},kn(e))}function Ba(e){const{year:t,month:r,day:n}=e,a=os(t,r,n);return z({year:t,ordinal:a},kn(e))}function cs(e){const{year:t,ordinal:r}=e,{month:n,day:a}=ss(t,r);return z({year:t,month:n,day:a},kn(e))}function us(e,t){if(!H(e.localWeekday)||!H(e.localWeekNumber)||!H(e.localWeekYear)){if(!H(e.weekday)||!H(e.weekNumber)||!H(e.weekYear))throw new Kt("Cannot mix locale-based week fields with ISO-based week fields");return H(e.localWeekday)||(e.weekday=e.localWeekday),H(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),H(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function bd(e,t=4,r=1){const n=En(e.weekYear),a=Ve(e.weekNumber,1,Ar(e.weekYear,t,r)),i=Ve(e.weekday,1,7);return n?a?i?!1:ze("weekday",e.weekday):ze("week",e.weekNumber):ze("weekYear",e.weekYear)}function yd(e){const t=En(e.year),r=Ve(e.ordinal,1,er(e.year));return t?r?!1:ze("ordinal",e.ordinal):ze("year",e.year)}function fs(e){const t=En(e.year),r=Ve(e.month,1,12),n=Ve(e.day,1,$n(e.year,e.month));return t?r?n?!1:ze("day",e.day):ze("month",e.month):ze("year",e.year)}function ds(e){const{hour:t,minute:r,second:n,millisecond:a}=e,i=Ve(t,0,23)||t===24&&r===0&&n===0&&a===0,o=Ve(r,0,59),s=Ve(n,0,59),l=Ve(a,0,999);return i?o?s?l?!1:ze("millisecond",a):ze("second",n):ze("minute",r):ze("hour",t)}function H(e){return typeof e=="undefined"}function vt(e){return typeof e=="number"}function En(e){return typeof e=="number"&&e%1===0}function wd(e){return typeof e=="string"}function Sd(e){return Object.prototype.toString.call(e)==="[object Date]"}function hs(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function ps(){try{return typeof Intl!="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function Od(e){return Array.isArray(e)?e:[e]}function ms(e,t,r){if(e.length!==0)return e.reduce((n,a)=>{const i=[t(a),a];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function Dd(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Qt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ha(e){if(e==null)return null;if(typeof e!="object")throw new De("Week settings must be an object");if(!Ve(e.firstDay,1,7)||!Ve(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Ve(t,1,7)))throw new De("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ve(e,t,r){return En(e)&&e>=t&&e<=r}function Td(e,t){return e-t*Math.floor(e/t)}function be(e,t=2){const r=e<0;let n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function gt(e){if(!(H(e)||e===null||e===""))return parseInt(e,10)}function _t(e){if(!(H(e)||e===null||e===""))return parseFloat(e)}function Ua(e){if(!(H(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function ja(e,t,r=!1){const n=jf(10,t);return(r?Math.trunc:Math.round)(e*n)/n}function kr(e){return e%4===0&&(e%100!==0||e%400===0)}function er(e){return kr(e)?366:365}function $n(e,t){const r=Td(t-1,12)+1,n=e+(t-r)/12;return r===2?kr(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Cn(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function vs(e,t,r){return-Ra(Va(e,1,t),r)+t-1}function Ar(e,t=4,r=1){const n=vs(e,t,r),a=vs(e+1,t,r);return(er(e)-n+a)/7}function Ya(e){return e>99?e:e>ce.twoDigitCutoffYear?1900+e:2e3+e}function gs(e,t,r,n=null){const a=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const o=z({timeZoneName:t},i),s=new Intl.DateTimeFormat(r,o).formatToParts(a).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function _n(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0,a=r<0||Object.is(r,-0)?-n:n;return r*60+a}function bs(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new De(`Invalid unit value ${e}`);return t}function Mn(e,t){const r={};for(const n in e)if(Qt(e,n)){const a=e[n];if(a==null)continue;r[t(n)]=bs(a)}return r}function Nr(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),a=e>=0?"+":"-";switch(t){case"short":return`${a}${be(r,2)}:${be(n,2)}`;case"narrow":return`${a}${r}${n>0?`:${n}`:""}`;case"techie":return`${a}${be(r,2)}${be(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function kn(e){return Dd(e,["hour","minute","second","millisecond"])}const xd=["January","February","March","April","May","June","July","August","September","October","November","December"],ys=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ed=["J","F","M","A","M","J","J","A","S","O","N","D"];function ws(e){switch(e){case"narrow":return[...Ed];case"short":return[...ys];case"long":return[...xd];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 Ss=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Os=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],$d=["M","T","W","T","F","S","S"];function Ds(e){switch(e){case"narrow":return[...$d];case"short":return[...Os];case"long":return[...Ss];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ts=["AM","PM"],Cd=["Before Christ","Anno Domini"],_d=["BC","AD"],Md=["B","A"];function xs(e){switch(e){case"narrow":return[...Md];case"short":return[..._d];case"long":return[...Cd];default:return null}}function kd(e){return Ts[e.hour<12?0:1]}function Ad(e,t){return Ds(t)[e.weekday-1]}function Nd(e,t){return ws(t)[e.month-1]}function Id(e,t){return xs(t)[e.year<0?0:1]}function Pd(e,t,r="always",n=!1){const a={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(e)===-1;if(r==="auto"&&i){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${a[e][0]}`;case-1:return f?"yesterday":`last ${a[e][0]}`;case 0:return f?"today":`this ${a[e][0]}`}}const o=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,c=a[e],u=n?l?c[1]:c[2]||c[1]:l?a[e][0]:e;return o?`${s} ${u} ago`:`in ${s} ${u}`}function Es(e,t){let r="";for(const n of e)n.literal?r+=n.val:r+=t(n.val);return r}const Fd={D:Sn,DD:$o,DDD:Co,DDDD:_o,t:Mo,tt:ko,ttt:Ao,tttt:No,T:Io,TT:Po,TTT:Fo,TTTT:Lo,f:Wo,ff:Vo,fff:Bo,ffff:Uo,F:zo,FF:Ro,FFF:Ho,FFFF:jo};class xe{static create(t,r={}){return new xe(t,r)}static parseFormat(t){let r=null,n="",a=!1;const i=[];for(let o=0;o<t.length;o++){const s=t.charAt(o);s==="'"?(n.length>0&&i.push({literal:a||/^\s+$/.test(n),val:n}),r=null,n="",a=!a):a||s===r?n+=s:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=s,r=s)}return n.length>0&&i.push({literal:a||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(t){return Fd[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,z(z({},this.opts),r)).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,z(z({},this.opts),r))}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return be(t,r);const n=z({},this.opts);return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){const n=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(h,m)=>this.loc.extract(t,h,m),o=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",s=()=>n?kd(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,m)=>n?Nd(t,h):i(m?{month:h}:{month:h,day:"numeric"},"month"),c=(h,m)=>n?Ad(t,h):i(m?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),u=h=>{const m=xe.macroTokenToFormatOpts(h);return m?this.formatWithSystemDefault(t,m):h},f=h=>n?Id(t,h):i({era:h},"era"),d=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return 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 t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return a?i({day:"numeric"},"day"):this.num(t.day);case"dd":return a?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return a?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return a?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return a?i({month:"numeric"},"month"):this.num(t.month);case"MM":return a?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return a?i({year:"numeric"},"year"):this.num(t.year);case"yy":return a?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return a?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return a?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(h)}};return Es(xe.parseFormat(r),d)}formatDurationFromString(t,r){const n=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=l=>c=>{const u=n(c);return u?this.num(l.get(u),c.length):c},i=xe.parseFormat(r),o=i.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),s=t.shiftTo(...o.map(n).filter(l=>l));return Es(i,a(s))}}const $s=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function tr(...e){const t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function rr(...e){return t=>e.reduce(([r,n,a],i)=>{const[o,s,l]=i(t,a);return[z(z({},r),o),s||n,l]},[{},null,1]).slice(0,2)}function nr(e,...t){if(e==null)return[null,null];for(const[r,n]of t){const a=r.exec(e);if(a)return n(a)}return[null,null]}function Cs(...e){return(t,r)=>{const n={};let a;for(a=0;a<e.length;a++)n[e[a]]=gt(t[r+a]);return[n,null,r+a]}}const _s=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Ld=`(?:${_s.source}?(?:\\[(${$s.source})\\])?)?`,qa=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ms=RegExp(`${qa.source}${Ld}`),Ga=RegExp(`(?:T${Ms.source})?`),Wd=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,zd=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Vd=/(\d{4})-?(\d{3})/,Rd=Cs("weekYear","weekNumber","weekDay"),Bd=Cs("year","ordinal"),Hd=/(\d{4})-(\d\d)-(\d\d)/,ks=RegExp(`${qa.source} ?(?:${_s.source}|(${$s.source}))?`),Ud=RegExp(`(?: ${ks.source})?`);function ar(e,t,r){const n=e[t];return H(n)?r:gt(n)}function jd(e,t){return[{year:ar(e,t),month:ar(e,t+1,1),day:ar(e,t+2,1)},null,t+3]}function ir(e,t){return[{hours:ar(e,t,0),minutes:ar(e,t+1,0),seconds:ar(e,t+2,0),milliseconds:Ua(e[t+3])},null,t+4]}function Ir(e,t){const r=!e[t]&&!e[t+1],n=_n(e[t+1],e[t+2]),a=r?null:Te.instance(n);return[{},a,t+3]}function Pr(e,t){const r=e[t]?tt.create(e[t]):null;return[{},r,t+1]}const Yd=RegExp(`^T?${qa.source}$`),qd=/^-?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 Gd(e){const[t,r,n,a,i,o,s,l,c]=e,u=t[0]==="-",f=l&&l[0]==="-",d=(h,m=!1)=>h!==void 0&&(m||h&&u)?-h:h;return[{years:d(_t(r)),months:d(_t(n)),weeks:d(_t(a)),days:d(_t(i)),hours:d(_t(o)),minutes:d(_t(s)),seconds:d(_t(l),l==="-0"),milliseconds:d(Ua(c),f)}]}const Zd={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 Za(e,t,r,n,a,i,o){const s={year:t.length===2?Ya(gt(t)):gt(t),month:ys.indexOf(r)+1,day:gt(n),hour:gt(a),minute:gt(i)};return o&&(s.second=gt(o)),e&&(s.weekday=e.length>3?Ss.indexOf(e)+1:Os.indexOf(e)+1),s}const Kd=/^(?:(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 Xd(e){const[,t,r,n,a,i,o,s,l,c,u,f]=e,d=Za(t,a,n,r,i,o,s);let h;return l?h=Zd[l]:c?h=0:h=_n(u,f),[d,new Te(h)]}function Jd(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Qd=/^(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$/,eh=/^(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$/,th=/^(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 As(e){const[,t,r,n,a,i,o,s]=e;return[Za(t,a,n,r,i,o,s),Te.utcInstance]}function rh(e){const[,t,r,n,a,i,o,s]=e;return[Za(t,s,r,n,a,i,o),Te.utcInstance]}const nh=tr(Wd,Ga),ah=tr(zd,Ga),ih=tr(Vd,Ga),oh=tr(Ms),Ns=rr(jd,ir,Ir,Pr),sh=rr(Rd,ir,Ir,Pr),lh=rr(Bd,ir,Ir,Pr),ch=rr(ir,Ir,Pr);function uh(e){return nr(e,[nh,Ns],[ah,sh],[ih,lh],[oh,ch])}function fh(e){return nr(Jd(e),[Kd,Xd])}function dh(e){return nr(e,[Qd,As],[eh,As],[th,rh])}function hh(e){return nr(e,[qd,Gd])}const ph=rr(ir);function mh(e){return nr(e,[Yd,ph])}const vh=tr(Hd,Ud),gh=tr(ks),bh=rr(ir,Ir,Pr);function yh(e){return nr(e,[vh,Ns],[gh,bh])}const Is="Invalid Duration",Ps={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}},wh=z({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}},Ps),Re=146097/400,or=146097/4800,Sh=z({years:{quarters:4,months:12,weeks:Re/7,days:Re,hours:Re*24,minutes:Re*24*60,seconds:Re*24*60*60,milliseconds:Re*24*60*60*1e3},quarters:{months:3,weeks:Re/28,days:Re/4,hours:Re*24/4,minutes:Re*24*60/4,seconds:Re*24*60*60/4,milliseconds:Re*24*60*60*1e3/4},months:{weeks:or/7,days:or,hours:or*24,minutes:or*24*60,seconds:or*24*60*60,milliseconds:or*24*60*60*1e3}},Ps),Mt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Oh=Mt.slice(0).reverse();function bt(e,t,r=!1){const n={values:r?t.values:z(z({},e.values),t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new X(n)}function Fs(e,t){var r;let n=(r=t.milliseconds)!=null?r:0;for(const a of Oh.slice(1))t[a]&&(n+=t[a]*e[a].milliseconds);return n}function Ls(e,t){const r=Fs(e,t)<0?-1:1;Mt.reduceRight((n,a)=>{if(H(t[a]))return n;if(n){const i=t[n]*r,o=e[a][n],s=Math.floor(i/o);t[a]+=s*r,t[n]-=s*o*r}return a},null),Mt.reduce((n,a)=>{if(H(t[a]))return n;if(n){const i=t[n]%1;t[n]-=i,t[a]+=i*e[n][a]}return a},null)}function Dh(e){const t={};for(const[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}class X{constructor(t){const r=t.conversionAccuracy==="longterm"||!1;let n=r?Sh:wh;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||re.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return X.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new De(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new X({values:Mn(t,X.normalizeUnit),loc:re.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(vt(t))return X.fromMillis(t);if(X.isDuration(t))return t;if(typeof t=="object")return X.fromObject(t);throw new De(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){const[n]=hh(t);return n?X.fromObject(n,r):X.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){const[n]=mh(t);return n?X.fromObject(n,r):X.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new De("need to specify a reason the Duration is invalid");const n=t instanceof Xe?t:new Xe(t,r);if(ce.throwOnInvalid)throw new Gf(n);return new X({invalid:n})}static normalizeUnit(t){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new Eo(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){const n=ve(z({},r),{floor:r.round!==!1&&r.floor!==!1});return this.isValid?xe.create(this.loc,n).formatDurationFromString(this,t):Is}toHuman(t={}){if(!this.isValid)return Is;const r=Mt.map(n=>{const a=this.values[n];return H(a)?null:this.loc.numberFormatter(ve(z({style:"unit",unitDisplay:"long"},t),{unit:n.slice(0,-1)})).format(a)}).filter(n=>n);return this.loc.listFormatter(z({type:"conjunction",style:t.listStyle||"narrow"},t)).format(r)}toObject(){return this.isValid?z({},this.values):{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=ja(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(t=ve(z({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t),{includeOffset:!1}),U.fromMillis(r,{zone:"UTC"}).toISOTime(t))}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?Fs(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const r=X.fromDurationLike(t),n={};for(const a of Mt)(Qt(r.values,a)||Qt(this.values,a))&&(n[a]=r.get(a)+this.get(a));return bt(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const r=X.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=bs(t(this.values[n],n));return bt(this,{values:r},!0)}get(t){return this[X.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const r=z(z({},this.values),Mn(t,X.normalizeUnit));return bt(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:a}={}){const o={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:a,conversionAccuracy:n};return bt(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Ls(this.matrix,t),bt(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=Dh(this.normalize().shiftToAll().toObject());return bt(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>X.normalizeUnit(o));const r={},n={},a=this.toObject();let i;for(const o of Mt)if(t.indexOf(o)>=0){i=o;let s=0;for(const c in n)s+=this.matrix[c][o]*n[c],n[c]=0;vt(a[o])&&(s+=a[o]);const l=Math.trunc(s);r[o]=l,n[o]=(s*1e3-l*1e3)/1e3}else vt(a[o])&&(n[o]=a[o]);for(const o in n)n[o]!==0&&(r[i]+=o===i?n[o]:n[o]/this.matrix[i][o]);return Ls(this.matrix,r),bt(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return bt(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,a){return n===void 0||n===0?a===void 0||a===0:n===a}for(const n of Mt)if(!r(this.values[n],t.values[n]))return!1;return!0}}const sr="Invalid Interval";function Th(e,t){return!e||!e.isValid?ue.invalid("missing or invalid start"):!t||!t.isValid?ue.invalid("missing or invalid end"):t<e?ue.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class ue{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new De("need to specify a reason the Interval is invalid");const n=t instanceof Xe?t:new Xe(t,r);if(ce.throwOnInvalid)throw new qf(n);return new ue({invalid:n})}static fromDateTimes(t,r){const n=Wr(t),a=Wr(r),i=Th(n,a);return i==null?new ue({start:n,end:a}):i}static after(t,r){const n=X.fromDurationLike(r),a=Wr(t);return ue.fromDateTimes(a,a.plus(n))}static before(t,r){const n=X.fromDurationLike(r),a=Wr(t);return ue.fromDateTimes(a.minus(n),a)}static fromISO(t,r){const[n,a]=(t||"").split("/",2);if(n&&a){let i,o;try{i=U.fromISO(n,r),o=i.isValid}catch(c){o=!1}let s,l;try{s=U.fromISO(a,r),l=s.isValid}catch(c){l=!1}if(o&&l)return ue.fromDateTimes(i,s);if(o){const c=X.fromISO(a,r);if(c.isValid)return ue.after(i,c)}else if(l){const c=X.fromISO(n,r);if(c.isValid)return ue.before(s,c)}}return ue.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",r){if(!this.isValid)return NaN;const n=this.start.startOf(t,r);let a;return r!=null&&r.useLocaleWeeks?a=this.end.reconfigure({locale:n.locale}):a=this.end,a=a.startOf(t,r),Math.floor(a.diff(n,t).get(t))+(a.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?ue.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];const r=t.map(Wr).filter(o=>this.contains(o)).sort((o,s)=>o.toMillis()-s.toMillis()),n=[];let{s:a}=this,i=0;for(;a<this.e;){const o=r[i]||this.e,s=+o>+this.e?this.e:o;n.push(ue.fromDateTimes(a,s)),a=s,i+=1}return n}splitBy(t){const r=X.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,a=1,i;const o=[];for(;n<this.e;){const s=this.start.plus(r.mapUnits(l=>l*a));i=+s>+this.e?this.e:s,o.push(ue.fromDateTimes(n,i)),n=i,a+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:ue.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;const r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return ue.fromDateTimes(r,n)}static merge(t){const[r,n]=t.sort((a,i)=>a.s-i.s).reduce(([a,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[a,i.union(o)]:[a.concat([i]),o]:[a,o],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0;const a=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...i),s=o.sort((l,c)=>l.time-c.time);for(const l of s)n+=l.type==="s"?1:-1,n===1?r=l.time:(r&&+r!=+l.time&&a.push(ue.fromDateTimes(r,l.time)),r=null);return ue.merge(a)}difference(...t){return ue.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:sr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=Sn,r={}){return this.isValid?xe.create(this.s.loc.clone(r),t).formatInterval(this):sr}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:sr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:sr}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:sr}toFormat(t,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:sr}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):X.invalid(this.invalidReason)}mapEndpoints(t){return ue.fromDateTimes(t(this.s),t(this.e))}}class Fr{static hasDST(t=ce.defaultZone){const r=U.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return tt.isValidZone(t)}static normalizeZone(t){return mt(t,ce.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||re.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||re.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||re.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||re.create(r,n,i)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||re.create(r,n,i)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:a=null}={}){return(a||re.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:a=null}={}){return(a||re.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return re.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return re.create(r,null,"gregory").eras(t)}static features(){return{relative:hs(),localeWeek:ps()}}}function Ws(e,t){const r=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(X.fromMillis(n).as("days"))}function xh(e,t,r){const n=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=Ws(l,c);return(u-u%7)/7}],["days",Ws]],a={},i=e;let o,s;for(const[l,c]of n)r.indexOf(l)>=0&&(o=l,a[l]=c(e,t),s=i.plus(a),s>t?(a[l]--,e=i.plus(a),e>t&&(s=e,a[l]--,e=i.plus(a))):e=s);return[e,a,s,o]}function Eh(e,t,r,n){let[a,i,o,s]=xh(e,t,r);const l=t-a,c=r.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(o<t&&(o=a.plus({[s]:1})),o!==a&&(i[s]=(i[s]||0)+l/(o-a)));const u=X.fromObject(i,n);return c.length>0?X.fromMillis(l,n).shiftTo(...c).plus(u):u}const $h="missing Intl.DateTimeFormat.formatToParts support";function te(e,t=r=>r){return{regex:e,deser:([r])=>t(vd(r))}}const zs="[  ]",Vs=new RegExp(zs,"g");function Ch(e){return e.replace(/\./g,"\\.?").replace(Vs,zs)}function Rs(e){return e.replace(/\./g,"").replace(Vs," ").toLowerCase()}function Je(e,t){return e===null?null:{regex:RegExp(e.map(Ch).join("|")),deser:([r])=>e.findIndex(n=>Rs(r)===Rs(n))+t}}function Bs(e,t){return{regex:e,deser:([,r,n])=>_n(r,n),groups:t}}function An(e){return{regex:e,deser:([t])=>t}}function _h(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Mh(e,t){const r=Ke(t),n=Ke(t,"{2}"),a=Ke(t,"{3}"),i=Ke(t,"{4}"),o=Ke(t,"{6}"),s=Ke(t,"{1,2}"),l=Ke(t,"{1,3}"),c=Ke(t,"{1,6}"),u=Ke(t,"{1,9}"),f=Ke(t,"{2,4}"),d=Ke(t,"{4,6}"),h=v=>({regex:RegExp(_h(v.val)),deser:([b])=>b,literal:!0}),p=(v=>{if(e.literal)return h(v);switch(v.val){case"G":return Je(t.eras("short"),0);case"GG":return Je(t.eras("long"),0);case"y":return te(c);case"yy":return te(f,Ya);case"yyyy":return te(i);case"yyyyy":return te(d);case"yyyyyy":return te(o);case"M":return te(s);case"MM":return te(n);case"MMM":return Je(t.months("short",!0),1);case"MMMM":return Je(t.months("long",!0),1);case"L":return te(s);case"LL":return te(n);case"LLL":return Je(t.months("short",!1),1);case"LLLL":return Je(t.months("long",!1),1);case"d":return te(s);case"dd":return te(n);case"o":return te(l);case"ooo":return te(a);case"HH":return te(n);case"H":return te(s);case"hh":return te(n);case"h":return te(s);case"mm":return te(n);case"m":return te(s);case"q":return te(s);case"qq":return te(n);case"s":return te(s);case"ss":return te(n);case"S":return te(l);case"SSS":return te(a);case"u":return An(u);case"uu":return An(s);case"uuu":return te(r);case"a":return Je(t.meridiems(),0);case"kkkk":return te(i);case"kk":return te(f,Ya);case"W":return te(s);case"WW":return te(n);case"E":case"c":return te(r);case"EEE":return Je(t.weekdays("short",!1),1);case"EEEE":return Je(t.weekdays("long",!1),1);case"ccc":return Je(t.weekdays("short",!0),1);case"cccc":return Je(t.weekdays("long",!0),1);case"Z":case"ZZ":return Bs(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return Bs(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return An(/[a-z_+-/]{1,256}?/i);case" ":return An(/[^\S\n\r]/);default:return h(v)}})(e)||{invalidReason:$h};return p.token=e,p}const kh={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 Ah(e,t,r){const{type:n,value:a}=e;if(n==="literal"){const l=/^\s+$/.test(a);return{literal:!l,val:l?" ":a}}const i=t[n];let o=n;n==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=r.hour12?"hour12":"hour24");let s=kh[o];if(typeof s=="object"&&(s=s[i]),s)return{literal:!1,val:s}}function Nh(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function Ih(e,t,r){const n=e.match(t);if(n){const a={};let i=1;for(const o in r)if(Qt(r,o)){const s=r[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(a[s.token.val[0]]=s.deser(n.slice(i,i+l))),i+=l}return[n,a]}else return[n,{}]}function Ph(e){const t=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 r=null,n;return H(e.z)||(r=tt.create(e.z)),H(e.Z)||(r||(r=new Te(e.Z)),n=e.Z),H(e.q)||(e.M=(e.q-1)*3+1),H(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),H(e.u)||(e.S=Ua(e.u)),[Object.keys(e).reduce((i,o)=>{const s=t(o);return s&&(i[s]=e[o]),i},{}),r,n]}let Ka=null;function Fh(){return Ka||(Ka=U.fromMillis(1555555555555)),Ka}function Lh(e,t){if(e.literal)return e;const r=xe.macroTokenToFormatOpts(e.val),n=Ys(r,t);return n==null||n.includes(void 0)?e:n}function Hs(e,t){return Array.prototype.concat(...e.map(r=>Lh(r,t)))}class Us{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=Hs(xe.parseFormat(r),t),this.units=this.tokens.map(n=>Mh(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,a]=Nh(this.units);this.regex=RegExp(n,"i"),this.handlers=a}}explainFromTokens(t){if(this.isValid){const[r,n]=Ih(t,this.regex,this.handlers),[a,i,o]=n?Ph(n):[null,null,void 0];if(Qt(n,"a")&&Qt(n,"H"))throw new Kt("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:a,zone:i,specificOffset:o}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function js(e,t,r){return new Us(e,r).explainFromTokens(t)}function Wh(e,t,r){const{result:n,zone:a,specificOffset:i,invalidReason:o}=js(e,t,r);return[n,a,i,o]}function Ys(e,t){if(!e)return null;const n=xe.create(t,e).dtFormatter(Fh()),a=n.formatToParts(),i=n.resolvedOptions();return a.map(o=>Ah(o,e,i))}const Xa="Invalid DateTime",qs=864e13;function Lr(e){return new Xe("unsupported zone",`the zone "${e.name}" is not supported`)}function Ja(e){return e.weekData===null&&(e.weekData=xn(e.c)),e.weekData}function Qa(e){return e.localWeekData===null&&(e.localWeekData=xn(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function kt(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new U(ve(z(z({},r),t),{old:r}))}function Gs(e,t,r){let n=e-t*60*1e3;const a=r.offset(n);if(t===a)return[n,t];n-=(a-t)*60*1e3;const i=r.offset(n);return a===i?[n,a]:[e-Math.min(a,i)*60*1e3,Math.max(a,i)]}function Nn(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function In(e,t,r){return Gs(Cn(e),t,r)}function Zs(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),a=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i=ve(z({},e.c),{year:n,month:a,day:Math.min(e.c.day,$n(n,a))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),o=X.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Cn(i);let[l,c]=Gs(s,r,e.zone);return o!==0&&(l+=o,c=e.zone.offset(l)),{ts:l,o:c}}function lr(e,t,r,n,a,i){const{setZone:o,zone:s}=r;if(e&&Object.keys(e).length!==0||t){const l=t||s,c=U.fromObject(e,ve(z({},r),{zone:l,specificOffset:i}));return o?c:c.setZone(s)}else return U.invalid(new Xe("unparsable",`the input "${a}" can't be parsed as ${n}`))}function Pn(e,t,r=!0){return e.isValid?xe.create(re.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function ei(e,t){const r=e.c.year>9999||e.c.year<0;let n="";return r&&e.c.year>=0&&(n+="+"),n+=be(e.c.year,r?6:4),t?(n+="-",n+=be(e.c.month),n+="-",n+=be(e.c.day)):(n+=be(e.c.month),n+=be(e.c.day)),n}function Ks(e,t,r,n,a,i){let o=be(e.c.hour);return t?(o+=":",o+=be(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(o+=":")):o+=be(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(o+=be(e.c.second),(e.c.millisecond!==0||!n)&&(o+=".",o+=be(e.c.millisecond,3))),a&&(e.isOffsetFixed&&e.offset===0&&!i?o+="Z":e.o<0?(o+="-",o+=be(Math.trunc(-e.o/60)),o+=":",o+=be(Math.trunc(-e.o%60))):(o+="+",o+=be(Math.trunc(e.o/60)),o+=":",o+=be(Math.trunc(e.o%60)))),i&&(o+="["+e.zone.ianaName+"]"),o}const Xs={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},zh={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Vh={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Js=["year","month","day","hour","minute","second","millisecond"],Rh=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Bh=["year","ordinal","hour","minute","second","millisecond"];function Hh(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Eo(e);return t}function Qs(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Hh(e)}}function Uh(e){return Ln[e]||(Fn===void 0&&(Fn=ce.now()),Ln[e]=e.offset(Fn)),Ln[e]}function el(e,t){const r=mt(t.zone,ce.defaultZone);if(!r.isValid)return U.invalid(Lr(r));const n=re.fromObject(t);let a,i;if(H(e.year))a=ce.now();else{for(const l of Js)H(e[l])&&(e[l]=Xs[l]);const o=fs(e)||ds(e);if(o)return U.invalid(o);const s=Uh(r);[a,i]=In(e,s,r)}return new U({ts:a,zone:r,loc:n,o:i})}function tl(e,t,r){const n=H(r.round)?!0:r.round,a=(o,s)=>(o=ja(o,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(o,s)),i=o=>r.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(r.unit)return a(i(r.unit),r.unit);for(const o of r.units){const s=i(o);if(Math.abs(s)>=1)return a(s,o)}return a(e>t?-0:0,r.units[r.units.length-1])}function rl(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}let Fn,Ln={};class U{constructor(t){const r=t.zone||ce.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Xe("invalid input"):null)||(r.isValid?null:Lr(r));this.ts=H(t.ts)?ce.now():t.ts;let a=null,i=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[a,i]=[t.old.c,t.old.o];else{const s=vt(t.o)&&!t.old?t.o:r.offset(this.ts);a=Nn(this.ts,s),n=Number.isNaN(a.year)?new Xe("invalid input"):null,a=n?null:a,i=n?null:s}this._zone=r,this.loc=t.loc||re.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}static now(){return new U({})}static local(){const[t,r]=rl(arguments),[n,a,i,o,s,l,c]=r;return el({year:n,month:a,day:i,hour:o,minute:s,second:l,millisecond:c},t)}static utc(){const[t,r]=rl(arguments),[n,a,i,o,s,l,c]=r;return t.zone=Te.utcInstance,el({year:n,month:a,day:i,hour:o,minute:s,second:l,millisecond:c},t)}static fromJSDate(t,r={}){const n=Sd(t)?t.valueOf():NaN;if(Number.isNaN(n))return U.invalid("invalid input");const a=mt(r.zone,ce.defaultZone);return a.isValid?new U({ts:n,zone:a,loc:re.fromObject(r)}):U.invalid(Lr(a))}static fromMillis(t,r={}){if(vt(t))return t<-qs||t>qs?U.invalid("Timestamp out of range"):new U({ts:t,zone:mt(r.zone,ce.defaultZone),loc:re.fromObject(r)});throw new De(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(vt(t))return new U({ts:t*1e3,zone:mt(r.zone,ce.defaultZone),loc:re.fromObject(r)});throw new De("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};const n=mt(r.zone,ce.defaultZone);if(!n.isValid)return U.invalid(Lr(n));const a=re.fromObject(r),i=Mn(t,Qs),{minDaysInFirstWeek:o,startOfWeek:s}=us(i,a),l=ce.now(),c=H(r.specificOffset)?n.offset(l):r.specificOffset,u=!H(i.ordinal),f=!H(i.year),d=!H(i.month)||!H(i.day),h=f||d,m=i.weekYear||i.weekNumber;if((h||u)&&m)throw new Kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&u)throw new Kt("Can't mix ordinal dates with month/day");const p=m||i.weekday&&!h;let v,b,y=Nn(l,c);p?(v=Rh,b=zh,y=xn(y,o,s)):u?(v=Bh,b=Vh,y=Ba(y)):(v=Js,b=Xs);let O=!1;for(const M of v){const N=i[M];H(N)?O?i[M]=b[M]:i[M]=y[M]:O=!0}const S=p?bd(i,o,s):u?yd(i):fs(i),w=S||ds(i);if(w)return U.invalid(w);const D=p?ls(i,o,s):u?cs(i):i,[T,x]=In(D,c,n),E=new U({ts:T,zone:n,o:x,loc:a});return i.weekday&&h&&t.weekday!==E.weekday?U.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${E.toISO()}`):E.isValid?E:U.invalid(E.invalid)}static fromISO(t,r={}){const[n,a]=uh(t);return lr(n,a,r,"ISO 8601",t)}static fromRFC2822(t,r={}){const[n,a]=fh(t);return lr(n,a,r,"RFC 2822",t)}static fromHTTP(t,r={}){const[n,a]=dh(t);return lr(n,a,r,"HTTP",r)}static fromFormat(t,r,n={}){if(H(t)||H(r))throw new De("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:i=null}=n,o=re.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0}),[s,l,c,u]=Wh(o,t,r);return u?U.invalid(u):lr(s,l,n,`format ${r}`,t,c)}static fromString(t,r,n={}){return U.fromFormat(t,r,n)}static fromSQL(t,r={}){const[n,a]=yh(t);return lr(n,a,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new De("need to specify a reason the DateTime is invalid");const n=t instanceof Xe?t:new Xe(t,r);if(ce.throwOnInvalid)throw new Yf(n);return new U({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){const n=Ys(t,re.fromObject(r));return n?n.map(a=>a?a.val:null).join(""):null}static expandFormat(t,r={}){return Hs(xe.parseFormat(t),re.fromObject(r)).map(a=>a.val).join("")}static resetCache(){Fn=void 0,Ln={}}get(t){return this[t]}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?Ja(this).weekYear:NaN}get weekNumber(){return this.isValid?Ja(this).weekNumber:NaN}get weekday(){return this.isValid?Ja(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Qa(this).weekday:NaN}get localWeekNumber(){return this.isValid?Qa(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Qa(this).weekYear:NaN}get ordinal(){return this.isValid?Ba(this.c).ordinal:NaN}get monthShort(){return this.isValid?Fr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Fr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Fr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Fr.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 t=864e5,r=6e4,n=Cn(this.c),a=this.zone.offset(n-t),i=this.zone.offset(n+t),o=this.zone.offset(n-a*r),s=this.zone.offset(n-i*r);if(o===s)return[this];const l=n-o*r,c=n-s*r,u=Nn(l,o),f=Nn(c,s);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[kt(this,{ts:l}),kt(this,{ts:c})]:[this]}get isInLeapYear(){return kr(this.year)}get daysInMonth(){return $n(this.year,this.month)}get daysInYear(){return this.isValid?er(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ar(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ar(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:r,numberingSystem:n,calendar:a}=xe.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:a}}toUTC(t=0,r={}){return this.setZone(Te.instance(t),r)}toLocal(){return this.setZone(ce.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=mt(t,ce.defaultZone),t.equals(this.zone))return this;if(t.isValid){let a=this.ts;if(r||n){const i=t.offset(this.ts),o=this.toObject();[a]=In(o,i,t)}return kt(this,{ts:a,zone:t})}else return U.invalid(Lr(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){const a=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return kt(this,{loc:a})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const r=Mn(t,Qs),{minDaysInFirstWeek:n,startOfWeek:a}=us(r,this.loc),i=!H(r.weekYear)||!H(r.weekNumber)||!H(r.weekday),o=!H(r.ordinal),s=!H(r.year),l=!H(r.month)||!H(r.day),c=s||l,u=r.weekYear||r.weekNumber;if((c||o)&&u)throw new Kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new Kt("Can't mix ordinal dates with month/day");let f;i?f=ls(z(z({},xn(this.c,n,a)),r),n,a):H(r.ordinal)?(f=z(z({},this.toObject()),r),H(r.day)&&(f.day=Math.min($n(f.year,f.month),f.day))):f=cs(z(z({},Ba(this.c)),r));const[d,h]=In(f,this.o,this.zone);return kt(this,{ts:d,o:h})}plus(t){if(!this.isValid)return this;const r=X.fromDurationLike(t);return kt(this,Zs(this,r))}minus(t){if(!this.isValid)return this;const r=X.fromDurationLike(t).negate();return kt(this,Zs(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},a=X.normalizeUnit(t);switch(a){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(a==="weeks")if(r){const i=this.loc.getStartOfWeek(),{weekday:o}=this;o<i&&(n.weekNumber=this.weekNumber-1),n.weekday=i}else n.weekday=1;if(a==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?xe.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):Xa}toLocaleString(t=Sn,r={}){return this.isValid?xe.create(this.loc.clone(r),t).formatDateTime(this):Xa}toLocaleParts(t={}){return this.isValid?xe.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:a=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=t==="extended";let s=ei(this,o);return s+="T",s+=Ks(this,o,r,n,a,i),s}toISODate({format:t="extended"}={}){return this.isValid?ei(this,t==="extended"):null}toISOWeekDate(){return Pn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:a=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(a?"T":"")+Ks(this,o==="extended",r,t,n,i):null}toRFC2822(){return Pn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Pn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ei(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let a="HH:mm:ss.SSS";return(r||t)&&(n&&(a+=" "),r?a+="z":t&&(a+="ZZ")),Pn(this,a,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Xa}[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(t={}){if(!this.isValid)return{};const r=z({},this.c);return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return X.invalid("created by diffing an invalid DateTime");const a=z({locale:this.locale,numberingSystem:this.numberingSystem},n),i=Od(r).map(X.normalizeUnit),o=t.valueOf()>this.valueOf(),s=o?this:t,l=o?t:this,c=Eh(s,l,i,a);return o?c.negate():c}diffNow(t="milliseconds",r={}){return this.diff(U.now(),t,r)}until(t){return this.isValid?ue.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;const a=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(r,n)<=a&&a<=i.endOf(r,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const r=t.base||U.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0;let a=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(a=t.unit,i=void 0),tl(r,this.plus(n),ve(z({},t),{numeric:"always",units:a,unit:i}))}toRelativeCalendar(t={}){return this.isValid?tl(t.base||U.fromObject({},{zone:this.zone}),this,ve(z({},t),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...t){if(!t.every(U.isDateTime))throw new De("min requires all arguments be DateTimes");return ms(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(U.isDateTime))throw new De("max requires all arguments be DateTimes");return ms(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){const{locale:a=null,numberingSystem:i=null}=n,o=re.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return js(o,t,r)}static fromStringExplain(t,r,n={}){return U.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){const{locale:n=null,numberingSystem:a=null}=r,i=re.fromOpts({locale:n,numberingSystem:a,defaultToEN:!0});return new Us(i,t)}static fromFormatParser(t,r,n={}){if(H(t)||H(r))throw new De("fromFormatParser requires an input string and a format parser");const{locale:a=null,numberingSystem:i=null}=n,o=re.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});if(!o.equals(r.locale))throw new De(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${r.locale}`);const{result:s,zone:l,specificOffset:c,invalidReason:u}=r.explainFromTokens(t);return u?U.invalid(u):lr(s,l,n,`format ${r.format}`,t,c)}static get DATE_SHORT(){return Sn}static get DATE_MED(){return $o}static get DATE_MED_WITH_WEEKDAY(){return Zf}static get DATE_FULL(){return Co}static get DATE_HUGE(){return _o}static get TIME_SIMPLE(){return Mo}static get TIME_WITH_SECONDS(){return ko}static get TIME_WITH_SHORT_OFFSET(){return Ao}static get TIME_WITH_LONG_OFFSET(){return No}static get TIME_24_SIMPLE(){return Io}static get TIME_24_WITH_SECONDS(){return Po}static get TIME_24_WITH_SHORT_OFFSET(){return Fo}static get TIME_24_WITH_LONG_OFFSET(){return Lo}static get DATETIME_SHORT(){return Wo}static get DATETIME_SHORT_WITH_SECONDS(){return zo}static get DATETIME_MED(){return Vo}static get DATETIME_MED_WITH_SECONDS(){return Ro}static get DATETIME_MED_WITH_WEEKDAY(){return Kf}static get DATETIME_FULL(){return Bo}static get DATETIME_FULL_WITH_SECONDS(){return Ho}static get DATETIME_HUGE(){return Uo}static get DATETIME_HUGE_WITH_SECONDS(){return jo}}function Wr(e){if(U.isDateTime(e))return e;if(e&&e.valueOf&&vt(e.valueOf()))return U.fromJSDate(e);if(e&&typeof e=="object")return U.fromObject(e);throw new De(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const jh="3.5.0";Fe.DateTime=U,Fe.Duration=X,Fe.FixedOffsetZone=Te,Fe.IANAZone=tt,Fe.Info=Fr,Fe.Interval=ue,Fe.InvalidZone=Go,Fe.Settings=ce,Fe.SystemZone=_r,Fe.VERSION=jh,Fe.Zone=Xt;var At=Fe;Y.prototype.addYear=function(){this._date=this._date.plus({years:1})},Y.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")},Y.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")},Y.prototype.addHour=function(){var e=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=e&&(this._date=this._date.plus({hours:1}))},Y.prototype.addMinute=function(){var e=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date<e&&(this._date=this._date.plus({hours:1}))},Y.prototype.addSecond=function(){var e=this._date;this._date=this._date.plus({seconds:1}).startOf("second"),this._date<e&&(this._date=this._date.plus({hours:1}))},Y.prototype.subtractYear=function(){this._date=this._date.minus({years:1})},Y.prototype.subtractMonth=function(){this._date=this._date.minus({months:1}).endOf("month").startOf("second")},Y.prototype.subtractDay=function(){this._date=this._date.minus({days:1}).endOf("day").startOf("second")},Y.prototype.subtractHour=function(){var e=this._date;this._date=this._date.minus({hours:1}).endOf("hour").startOf("second"),this._date>=e&&(this._date=this._date.minus({hours:1}))},Y.prototype.subtractMinute=function(){var e=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>e&&(this._date=this._date.minus({hours:1}))},Y.prototype.subtractSecond=function(){var e=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>e&&(this._date=this._date.minus({hours:1}))},Y.prototype.getDate=function(){return this._date.day},Y.prototype.getFullYear=function(){return this._date.year},Y.prototype.getDay=function(){var e=this._date.weekday;return e==7?0:e},Y.prototype.getMonth=function(){return this._date.month-1},Y.prototype.getHours=function(){return this._date.hour},Y.prototype.getMinutes=function(){return this._date.minute},Y.prototype.getSeconds=function(){return this._date.second},Y.prototype.getMilliseconds=function(){return this._date.millisecond},Y.prototype.getTime=function(){return this._date.valueOf()},Y.prototype.getUTCDate=function(){return this._getUTC().day},Y.prototype.getUTCFullYear=function(){return this._getUTC().year},Y.prototype.getUTCDay=function(){var e=this._getUTC().weekday;return e==7?0:e},Y.prototype.getUTCMonth=function(){return this._getUTC().month-1},Y.prototype.getUTCHours=function(){return this._getUTC().hour},Y.prototype.getUTCMinutes=function(){return this._getUTC().minute},Y.prototype.getUTCSeconds=function(){return this._getUTC().second},Y.prototype.toISOString=function(){return this._date.toUTC().toISO()},Y.prototype.toJSON=function(){return this._date.toJSON()},Y.prototype.setDate=function(e){this._date=this._date.set({day:e})},Y.prototype.setFullYear=function(e){this._date=this._date.set({year:e})},Y.prototype.setDay=function(e){this._date=this._date.set({weekday:e})},Y.prototype.setMonth=function(e){this._date=this._date.set({month:e+1})},Y.prototype.setHours=function(e){this._date=this._date.set({hour:e})},Y.prototype.setMinutes=function(e){this._date=this._date.set({minute:e})},Y.prototype.setSeconds=function(e){this._date=this._date.set({second:e})},Y.prototype.setMilliseconds=function(e){this._date=this._date.set({millisecond:e})},Y.prototype._getUTC=function(){return this._date.toUTC()},Y.prototype.toString=function(){return this.toDate().toString()},Y.prototype.toDate=function(){return this._date.toJSDate()},Y.prototype.isLastDayOfMonth=function(){var e=this._date.plus({days:1}).startOf("day");return this._date.month!==e.month},Y.prototype.isLastWeekdayOfMonth=function(){var e=this._date.plus({days:7}).startOf("day");return this._date.month!==e.month};function Y(e,t){var r={zone:t};if(e?e instanceof Y?this._date=e._date:e instanceof Date?this._date=At.DateTime.fromJSDate(e,r):typeof e=="number"?this._date=At.DateTime.fromMillis(e,r):typeof e=="string"&&(this._date=At.DateTime.fromISO(e,r),this._date.isValid||(this._date=At.DateTime.fromRFC2822(e,r)),this._date.isValid||(this._date=At.DateTime.fromSQL(e,r)),this._date.isValid||(this._date=At.DateTime.fromFormat(e,"EEE, d MMM yyyy HH:mm:ss",r))):this._date=At.DateTime.local(),!this._date||!this._date.isValid)throw new Error("CronDate: unhandled timestamp: "+JSON.stringify(e));t&&t!==this._date.zoneName&&(this._date=this._date.setZone(t))}var Yh=Y;function Nt(e){return{start:e,count:1}}function nl(e,t){e.end=t,e.step=t-e.start,e.count=2}function ti(e,t,r){t&&(t.count===2?(e.push(Nt(t.start)),e.push(Nt(t.end))):e.push(t)),r&&e.push(r)}function qh(e){for(var t=[],r=void 0,n=0;n<e.length;n++){var a=e[n];typeof a!="number"?(ti(t,r,Nt(a)),r=void 0):r?r.count===1?nl(r,a):r.step===a-r.end?(r.count++,r.end=a):r.count===2?(t.push(Nt(r.start)),r=Nt(r.end),nl(r,a)):(ti(t,r),r=Nt(a)):r=Nt(a)}return ti(t,r),t}var Gh=qh,Zh=Gh;function Kh(e,t,r){var n=Zh(e);if(n.length===1){var a=n[0],i=a.step;if(i===1&&a.start===t&&a.end===r)return"*";if(i!==1&&a.start===t&&a.end===r-i+1)return"*/"+i}for(var o=[],s=0,l=n.length;s<l;++s){var c=n[s];if(c.count===1){o.push(c.start);continue}var i=c.step;if(c.step===1){o.push(c.start+"-"+c.end);continue}var u=c.start==0?c.count-1:c.count;c.step*u>c.end?o=o.concat(Array.from({length:c.end-c.start+1}).map(function(d,h){var m=c.start+h;return(m-c.start)%c.step===0?m:null}).filter(function(d){return d!=null})):c.end===r-c.step+1?o.push(c.start+"/"+c.step):o.push(c.start+"-"+c.end+"/"+c.step)}return o.join(",")}var Xh=Kh,It=Yh,Jh=Xh,al=1e4;function L(e,t){this._options=t,this._utc=t.utc||!1,this._tz=this._utc?"UTC":t.tz,this._currentDate=new It(t.currentDate,this._tz),this._startDate=t.startDate?new It(t.startDate,this._tz):null,this._endDate=t.endDate?new It(t.endDate,this._tz):null,this._isIterator=t.iterator||!1,this._hasIterated=!1,this._nthDayOfWeek=t.nthDayOfWeek||0,this.fields=L._freezeFields(e)}L.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"],L.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"},L.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}],L.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31],L.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}},L.parseDefaults=["0","*","*","*","*","*"],L.standardValidCharacters=/^[,*\d/-]+$/,L.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/,L.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/,L.validCharacters={second:L.standardValidCharacters,minute:L.standardValidCharacters,hour:L.standardValidCharacters,dayOfMonth:L.dayOfMonthValidCharacters,month:L.standardValidCharacters,dayOfWeek:L.dayOfWeekValidCharacters},L._isValidConstraintChar=function(t,r){return typeof r!="string"?!1:t.chars.some(function(n){return r.indexOf(n)>-1})},L._parseField=function(t,r,n){switch(t){case"month":case"dayOfWeek":var a=L.aliases[t];r=r.replace(/[a-z]{3}/gi,function(l){if(l=l.toLowerCase(),typeof a[l]!="undefined")return a[l];throw new Error('Validation error, cannot resolve alias "'+l+'"')});break}if(!L.validCharacters[t].test(r))throw new Error("Invalid characters, got value: "+r);r.indexOf("*")!==-1?r=r.replace(/\*/g,n.min+"-"+n.max):r.indexOf("?")!==-1&&(r=r.replace(/\?/g,n.min+"-"+n.max));function i(l){var c=[];function u(m){if(m instanceof Array)for(var p=0,v=m.length;p<v;p++){var b=m[p];if(L._isValidConstraintChar(n,b)){c.push(b);continue}if(typeof b!="number"||Number.isNaN(b)||b<n.min||b>n.max)throw new Error("Constraint error, got value "+b+" expected range "+n.min+"-"+n.max);c.push(b)}else{if(L._isValidConstraintChar(n,m)){c.push(m);return}var y=+m;if(Number.isNaN(y)||y<n.min||y>n.max)throw new Error("Constraint error, got value "+m+" expected range "+n.min+"-"+n.max);t==="dayOfWeek"&&(y=y%7),c.push(y)}}var f=l.split(",");if(!f.every(function(m){return m.length>0}))throw new Error("Invalid list value format");if(f.length>1)for(var d=0,h=f.length;d<h;d++)u(o(f[d]));else u(o(l));return c.sort(L._sortCompareFn),c}function o(l){var c=1,u=l.split("/");if(u.length>2)throw new Error("Invalid repeat: "+l);return u.length>1?(u[0]==+u[0]&&(u=[u[0]+"-"+n.max,u[1]]),s(u[0],u[u.length-1])):s(l,c)}function s(l,c){var u=[],f=l.split("-");if(f.length>1){if(f.length<2)return+l;if(!f[0].length){if(!f[1].length)throw new Error("Invalid range: "+l);return+l}var d=+f[0],h=+f[1];if(Number.isNaN(d)||Number.isNaN(h)||d<n.min||h>n.max)throw new Error("Constraint error, got range "+d+"-"+h+" expected range "+n.min+"-"+n.max);if(d>h)throw new Error("Invalid range: "+l);var m=+c;if(Number.isNaN(m)||m<=0)throw new Error("Constraint error, cannot repeat at every "+m+" time.");t==="dayOfWeek"&&h%7===0&&u.push(0);for(var p=d,v=h;p<=v;p++){var b=u.indexOf(p)!==-1;!b&&m>0&&m%c===0?(m=1,u.push(p)):m++}return u}return Number.isNaN(+l)?l:+l}return i(r)},L._sortCompareFn=function(e,t){var r=typeof e=="number",n=typeof t=="number";return r&&n?e-t:!r&&n?1:r&&!n?-1:e.localeCompare(t)},L._handleMaxDaysInMonth=function(e){if(e.month.length===1){var t=L.daysInMonth[e.month[0]-1];if(e.dayOfMonth[0]>t)throw new Error("Invalid explicit day of month definition");return e.dayOfMonth.filter(function(r){return r==="L"?!0:r<=t}).sort(L._sortCompareFn)}},L._freezeFields=function(e){for(var t=0,r=L.map.length;t<r;++t){var n=L.map[t],a=e[n];e[n]=Object.freeze(a)}return Object.freeze(e)},L.prototype._applyTimezoneShift=function(e,t,r){if(r==="Month"||r==="Day"){var n=e.getTime();e[t+r]();var a=e.getTime();n===a&&(e.getMinutes()===0&&e.getSeconds()===0?e.addHour():e.getMinutes()===59&&e.getSeconds()===59&&e.subtractHour())}else{var i=e.getHours();e[t+r]();var o=e.getHours(),s=o-i;s===2?this.fields.hour.length!==24&&(this._dstStart=o):s===0&&e.getMinutes()===0&&e.getSeconds()===0&&this.fields.hour.length!==24&&(this._dstEnd=o)}},L.prototype._findSchedule=function(t){function r(b,y){for(var O=0,S=y.length;O<S;O++)if(y[O]>=b)return y[O]===b;return y[0]===b}function n(b,y){if(y<6){if(b.getDate()<8&&y===1)return!0;var O=b.getDate()%7?1:0,S=b.getDate()-b.getDate()%7,w=Math.floor(S/7)+O;return w===y}return!1}function a(b){return b.length>0&&b.some(function(y){return typeof y=="string"&&y.indexOf("L")>=0})}t=t||!1;var i=t?"subtract":"add",o=new It(this._currentDate,this._tz),s=this._startDate,l=this._endDate,c=o.getTime(),u=0;function f(b){return b.some(function(y){if(!a([y]))return!1;var O=Number.parseInt(y[0])%7;if(Number.isNaN(O))throw new Error("Invalid last weekday of the month expression: "+y);return o.getDay()===O&&o.isLastWeekdayOfMonth()})}for(;u<al;){if(u++,t){if(s&&o.getTime()-s.getTime()<0)throw new Error("Out of the timespan range")}else if(l&&l.getTime()-o.getTime()<0)throw new Error("Out of the timespan range");var d=r(o.getDate(),this.fields.dayOfMonth);a(this.fields.dayOfMonth)&&(d=d||o.isLastDayOfMonth());var h=r(o.getDay(),this.fields.dayOfWeek);a(this.fields.dayOfWeek)&&(h=h||f(this.fields.dayOfWeek));var m=this.fields.dayOfMonth.length>=L.daysInMonth[o.getMonth()],p=this.fields.dayOfWeek.length===L.constraints[5].max-L.constraints[5].min+1,v=o.getHours();if(!d&&(!h||p)){this._applyTimezoneShift(o,i,"Day");continue}if(!m&&p&&!d){this._applyTimezoneShift(o,i,"Day");continue}if(m&&!p&&!h){this._applyTimezoneShift(o,i,"Day");continue}if(this._nthDayOfWeek>0&&!n(o,this._nthDayOfWeek)){this._applyTimezoneShift(o,i,"Day");continue}if(!r(o.getMonth()+1,this.fields.month)){this._applyTimezoneShift(o,i,"Month");continue}if(r(v,this.fields.hour)){if(this._dstEnd===v&&!t){this._dstEnd=null,this._applyTimezoneShift(o,"add","Hour");continue}}else if(this._dstStart!==v){this._dstStart=null,this._applyTimezoneShift(o,i,"Hour");continue}else if(!r(v-1,this.fields.hour)){o[i+"Hour"]();continue}if(!r(o.getMinutes(),this.fields.minute)){this._applyTimezoneShift(o,i,"Minute");continue}if(!r(o.getSeconds(),this.fields.second)){this._applyTimezoneShift(o,i,"Second");continue}if(c===o.getTime()){i==="add"||o.getMilliseconds()===0?this._applyTimezoneShift(o,i,"Second"):o.setMilliseconds(0);continue}break}if(u>=al)throw new Error("Invalid expression, loop limit exceeded");return this._currentDate=new It(o,this._tz),this._hasIterated=!0,o},L.prototype.next=function(){var t=this._findSchedule();return this._isIterator?{value:t,done:!this.hasNext()}:t},L.prototype.prev=function(){var t=this._findSchedule(!0);return this._isIterator?{value:t,done:!this.hasPrev()}:t},L.prototype.hasNext=function(){var e=this._currentDate,t=this._hasIterated;try{return this._findSchedule(),!0}catch(r){return!1}finally{this._currentDate=e,this._hasIterated=t}},L.prototype.hasPrev=function(){var e=this._currentDate,t=this._hasIterated;try{return this._findSchedule(!0),!0}catch(r){return!1}finally{this._currentDate=e,this._hasIterated=t}},L.prototype.iterate=function(t,r){var n=[];if(t>=0)for(var a=0,i=t;a<i;a++)try{var o=this.next();n.push(o),r&&r(o,a)}catch(s){break}else for(var a=0,i=t;a>i;a--)try{var o=this.prev();n.push(o),r&&r(o,a)}catch(c){break}return n},L.prototype.reset=function(t){this._currentDate=new It(t||this._options.currentDate)},L.prototype.stringify=function(t){for(var r=[],n=t?0:1,a=L.map.length;n<a;++n){var i=L.map[n],o=this.fields[i],s=L.constraints[n];i==="dayOfMonth"&&this.fields.month.length===1?s={min:1,max:L.daysInMonth[this.fields.month[0]-1]}:i==="dayOfWeek"&&(s={min:0,max:6},o=o[o.length-1]===7?o.slice(0,-1):o),r.push(Jh(o,s.min,s.max))}return r.join(" ")},L.parse=function(t,r){var n=this;typeof r=="function"&&(r={});function a(i,o){o||(o={}),typeof o.currentDate=="undefined"&&(o.currentDate=new It(void 0,n._tz)),L.predefined[i]&&(i=L.predefined[i]);var s=[],l=(i+"").trim().split(/\s+/);if(l.length>6)throw new Error("Invalid cron expression");for(var c=L.map.length-l.length,u=0,f=L.map.length;u<f;++u){var d=L.map[u],h=l[l.length>f?u:u-c];if(u<c||!h)s.push(L._parseField(d,L.parseDefaults[u],L.constraints[u]));else{var m=d==="dayOfWeek"?y(h):h;s.push(L._parseField(d,m,L.constraints[u]))}}for(var p={},u=0,f=L.map.length;u<f;u++){var v=L.map[u];p[v]=s[u]}var b=L._handleMaxDaysInMonth(p);return p.dayOfMonth=b||p.dayOfMonth,new L(p,o);function y(O){var S=O.split("#");if(S.length>1){var w=+S[S.length-1];if(/,/.test(O))throw new Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(O))throw new Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(O))throw new Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(S.length>2||Number.isNaN(w)||w<1||w>5)throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return o.nthDayOfWeek=w,S[0]}return O}}return a(t,r)},L.fieldsToExpression=function(t,r){function n(d,h,m){if(!h)throw new Error("Validation error, Field "+d+" is missing");if(h.length===0)throw new Error("Validation error, Field "+d+" contains no values");for(var p=0,v=h.length;p<v;p++){var b=h[p];if(!L._isValidConstraintChar(m,b)&&(typeof b!="number"||Number.isNaN(b)||b<m.min||b>m.max))throw new Error("Constraint error, got value "+b+" expected range "+m.min+"-"+m.max)}}for(var a={},i=0,o=L.map.length;i<o;++i){var s=L.map[i],l=t[s];n(s,l,L.constraints[i]);for(var c=[],u=-1;++u<l.length;)c[u]=l[u];if(l=c.sort(L._sortCompareFn).filter(function(d,h,m){return!h||d!==m[h-1]}),l.length!==c.length)throw new Error("Validation error, Field "+s+" contains duplicate values");a[s]=l}var f=L._handleMaxDaysInMonth(a);return a.dayOfMonth=f||a.dayOfMonth,new L(a,r||{})};var Qh=L;const ep=xo(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Wn=Qh;function yt(){}yt._parseEntry=function(t){var r=t.split(" ");if(r.length===6)return{interval:Wn.parse(t)};if(r.length>6)return{interval:Wn.parse(r.slice(0,6).join(" ")),command:r.slice(6,r.length)};throw new Error("Invalid entry: "+t)},yt.parseExpression=function(t,r){return Wn.parse(t,r)},yt.fieldsToExpression=function(t,r){return Wn.fieldsToExpression(t,r)},yt.parseString=function(t){for(var r=t.split(`
2
+ `),n={variables:{},expressions:[],errors:{}},a=0,i=r.length;a<i;a++){var o=r[a],s=null,l=o.trim();if(l.length>0){if(l.match(/^#/))continue;if(s=l.match(/^(.*)=(.*)$/))n.variables[s[1]]=s[2];else{var c=null;try{c=yt._parseEntry("0 "+l),n.expressions.push(c.interval)}catch(u){n.errors[l]=u}}}}return n},yt.parseFile=function(t,r){ep.readFile(t,function(n,a){if(n){r(n);return}return r(null,yt.parseString(a.toString()))})};var tp=yt,rp=Array.isArray,Be=rp,np=typeof Ge=="object"&&Ge&&Ge.Object===Object&&Ge,il=np,ap=il,ip=typeof self=="object"&&self&&self.Object===Object&&self,op=ap||ip||Function("return this")(),rt=op,sp=rt,lp=sp.Symbol,cr=lp,ol=cr,sl=Object.prototype,cp=sl.hasOwnProperty,up=sl.toString,zr=ol?ol.toStringTag:void 0;function fp(e){var t=cp.call(e,zr),r=e[zr];try{e[zr]=void 0;var n=!0}catch(i){}var a=up.call(e);return n&&(t?e[zr]=r:delete e[zr]),a}var dp=fp,hp=Object.prototype,pp=hp.toString;function mp(e){return pp.call(e)}var vp=mp,ll=cr,gp=dp,bp=vp,yp="[object Null]",wp="[object Undefined]",cl=ll?ll.toStringTag:void 0;function Sp(e){return e==null?e===void 0?wp:yp:cl&&cl in Object(e)?gp(e):bp(e)}var ur=Sp;function Op(e){return e!=null&&typeof e=="object"}var wt=Op,Dp=ur,Tp=wt,xp="[object Symbol]";function Ep(e){return typeof e=="symbol"||Tp(e)&&Dp(e)==xp}var Vr=Ep,$p=Be,Cp=Vr,_p=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mp=/^\w*$/;function kp(e,t){if($p(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Cp(e)?!0:Mp.test(e)||!_p.test(e)||t!=null&&e in Object(t)}var ri=kp;function Ap(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var st=Ap,Np=ur,Ip=st,Pp="[object AsyncFunction]",Fp="[object Function]",Lp="[object GeneratorFunction]",Wp="[object Proxy]";function zp(e){if(!Ip(e))return!1;var t=Np(e);return t==Fp||t==Lp||t==Pp||t==Wp}var ni=zp,Vp=rt,Rp=Vp["__core-js_shared__"],Bp=Rp,ai=Bp,ul=function(){var e=/[^.]+$/.exec(ai&&ai.keys&&ai.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Hp(e){return!!ul&&ul in e}var Up=Hp,jp=Function.prototype,Yp=jp.toString;function qp(e){if(e!=null){try{return Yp.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var fl=qp,Gp=ni,Zp=Up,Kp=st,Xp=fl,Jp=/[\\^$.*+?()[\]{}|]/g,Qp=/^\[object .+?Constructor\]$/,em=Function.prototype,tm=Object.prototype,rm=em.toString,nm=tm.hasOwnProperty,am=RegExp("^"+rm.call(nm).replace(Jp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function im(e){if(!Kp(e)||Zp(e))return!1;var t=Gp(e)?am:Qp;return t.test(Xp(e))}var om=im;function sm(e,t){return e==null?void 0:e[t]}var lm=sm,cm=om,um=lm;function fm(e,t){var r=um(e,t);return cm(r)?r:void 0}var Pt=fm,dm=Pt,hm=dm(Object,"create"),zn=hm,dl=zn;function pm(){this.__data__=dl?dl(null):{},this.size=0}var mm=pm;function vm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gm=vm,bm=zn,ym="__lodash_hash_undefined__",wm=Object.prototype,Sm=wm.hasOwnProperty;function Om(e){var t=this.__data__;if(bm){var r=t[e];return r===ym?void 0:r}return Sm.call(t,e)?t[e]:void 0}var Dm=Om,Tm=zn,xm=Object.prototype,Em=xm.hasOwnProperty;function $m(e){var t=this.__data__;return Tm?t[e]!==void 0:Em.call(t,e)}var Cm=$m,_m=zn,Mm="__lodash_hash_undefined__";function km(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=_m&&t===void 0?Mm:t,this}var Am=km,Nm=mm,Im=gm,Pm=Dm,Fm=Cm,Lm=Am;function fr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fr.prototype.clear=Nm,fr.prototype.delete=Im,fr.prototype.get=Pm,fr.prototype.has=Fm,fr.prototype.set=Lm;var Wm=fr;function zm(){this.__data__=[],this.size=0}var Vm=zm;function Rm(e,t){return e===t||e!==e&&t!==t}var Rr=Rm,Bm=Rr;function Hm(e,t){for(var r=e.length;r--;)if(Bm(e[r][0],t))return r;return-1}var Vn=Hm,Um=Vn,jm=Array.prototype,Ym=jm.splice;function qm(e){var t=this.__data__,r=Um(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ym.call(t,r,1),--this.size,!0}var Gm=qm,Zm=Vn;function Km(e){var t=this.__data__,r=Zm(t,e);return r<0?void 0:t[r][1]}var Xm=Km,Jm=Vn;function Qm(e){return Jm(this.__data__,e)>-1}var ev=Qm,tv=Vn;function rv(e,t){var r=this.__data__,n=tv(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var nv=rv,av=Vm,iv=Gm,ov=Xm,sv=ev,lv=nv;function dr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}dr.prototype.clear=av,dr.prototype.delete=iv,dr.prototype.get=ov,dr.prototype.has=sv,dr.prototype.set=lv;var Rn=dr,cv=Pt,uv=rt,fv=cv(uv,"Map"),ii=fv,hl=Wm,dv=Rn,hv=ii;function pv(){this.size=0,this.__data__={hash:new hl,map:new(hv||dv),string:new hl}}var mv=pv;function vv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var gv=vv,bv=gv;function yv(e,t){var r=e.__data__;return bv(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Bn=yv,wv=Bn;function Sv(e){var t=wv(this,e).delete(e);return this.size-=t?1:0,t}var Ov=Sv,Dv=Bn;function Tv(e){return Dv(this,e).get(e)}var xv=Tv,Ev=Bn;function $v(e){return Ev(this,e).has(e)}var Cv=$v,_v=Bn;function Mv(e,t){var r=_v(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var kv=Mv,Av=mv,Nv=Ov,Iv=xv,Pv=Cv,Fv=kv;function hr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}hr.prototype.clear=Av,hr.prototype.delete=Nv,hr.prototype.get=Iv,hr.prototype.has=Pv,hr.prototype.set=Fv;var oi=hr,pl=oi,Lv="Expected a function";function si(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Lv);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(si.Cache||pl),r}si.Cache=pl;var Wv=si,zv=Wv,Vv=500;function Rv(e){var t=zv(e,function(n){return r.size===Vv&&r.clear(),n}),r=t.cache;return t}var Bv=Rv,Hv=Bv,Uv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jv=/\\(\\)?/g,Yv=Hv(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Uv,function(r,n,a,i){t.push(a?i.replace(jv,"$1"):n||r)}),t}),qv=Yv;function Gv(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var li=Gv,ml=cr,Zv=li,Kv=Be,Xv=Vr,Jv=1/0,vl=ml?ml.prototype:void 0,gl=vl?vl.toString:void 0;function bl(e){if(typeof e=="string")return e;if(Kv(e))return Zv(e,bl)+"";if(Xv(e))return gl?gl.call(e):"";var t=e+"";return t=="0"&&1/e==-Jv?"-0":t}var Qv=bl,eg=Qv;function tg(e){return e==null?"":eg(e)}var rg=tg,ng=Be,ag=ri,ig=qv,og=rg;function sg(e,t){return ng(e)?e:ag(e,t)?[e]:ig(og(e))}var Hn=sg,lg=Vr,cg=1/0;function ug(e){if(typeof e=="string"||lg(e))return e;var t=e+"";return t=="0"&&1/e==-cg?"-0":t}var Br=ug,fg=Hn,dg=Br;function hg(e,t){t=fg(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[dg(t[r++])];return r&&r==n?e:void 0}var Un=hg,pg=Un;function mg(e,t,r){var n=e==null?void 0:pg(e,t);return n===void 0?r:n}var yl=mg;const jn=ge(yl);function lt(e){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(e)}function vg(e,t){if(lt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wl(e){var t=vg(e,"string");return lt(t)=="symbol"?t:t+""}function Ft(e,t,r){return(t=wl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sl(Object(r),!0).forEach(function(n){Ft(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yn(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function nt(e,t){if(e==null)return{};var r,n,a=Yn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ol(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wl(n.key),n)}}function we(e,t,r){return t&&Ol(e.prototype,t),r&&Ol(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qn(e){return qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qn(e)}function Dl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Dl=function(){return!!e})()}function gg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bg(e,t){if(t&&(lt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gg(e)}function Ee(e,t,r){return t=qn(t),bg(e,Dl()?Reflect.construct(t,r||[],qn(e).constructor):t.apply(e,r))}function Gn(e,t){return Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Gn(e,t)}function $e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gn(e,t)}function Tl(e){if(Array.isArray(e))return e}function yg(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function ci(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ui(e,t){if(e){if(typeof e=="string")return ci(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ci(e,t):void 0}}function xl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function He(e,t){return Tl(e)||yg(e,t)||ui(e,t)||xl()}function El(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=El(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function he(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=El(e))&&(n&&(n+=" "),n+=t);return n}function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pe.apply(null,arguments)}var wg=function(e,t,r,n,a,i,o,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,a,i,o,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},Sg=wg;const Hr=ge(Sg);var Og=function(){};function Dg(e,t){var r={};return Object.keys(e).forEach(function(n){r[Zn(n)]=Og}),r}function $l(e,t){return e[t]!==void 0}function Zn(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Tg(e){return!!e&&(typeof e!="function"||e.prototype&&e.prototype.isReactComponent)}function xg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gn(e,t)}function Cl(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function _l(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n!=null?n:null}this.setState(t.bind(this))}function Ml(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}Cl.__suppressDeprecationWarning=!0,_l.__suppressDeprecationWarning=!0,Ml.__suppressDeprecationWarning=!0;function Eg(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var r=null,n=null,a=null;if(typeof t.componentWillMount=="function"?r="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?a="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(a="UNSAFE_componentWillUpdate"),r!==null||n!==null||a!==null){var i=e.displayName||e.name,o=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
4
+
5
+ `+i+" uses "+o+" but also contains the following legacy lifecycles:"+(r!==null?`
6
+ `+r:"")+(n!==null?`
7
+ `+n:"")+(a!==null?`
8
+ `+a:"")+`
9
+
10
+ The above lifecycles should be removed. Learn more about this warning here:
11
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Cl,t.componentWillReceiveProps=_l),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Ml;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,u,f){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;s.call(this,c,u,d)}}return e}var $g="/Users/jquense/src/uncontrollable/src/uncontrollable.js";function kl(e,t,r){r===void 0&&(r=[]);var n=e.displayName||e.name||"Component",a=Tg(e),i=Object.keys(t),o=i.map(Zn);a||!r.length||Hr(!1);var s=function(c){xg(u,c);function u(){for(var d,h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];d=c.call.apply(c,[this].concat(m))||this,d.handlers=Object.create(null),i.forEach(function(b){var y=t[b],O=function(w){if(d.props[y]){var D;d._notifying=!0;for(var T=arguments.length,x=new Array(T>1?T-1:0),E=1;E<T;E++)x[E-1]=arguments[E];(D=d.props)[y].apply(D,[w].concat(x)),d._notifying=!1}d.unmounted||d.setState(function(M){var N,V=M.values;return{values:pe(Object.create(null),V,(N={},N[b]=w,N))}})};d.handlers[y]=O}),r.length&&(d.attachRef=function(b){d.inner=b});var v=Object.create(null);return i.forEach(function(b){v[b]=d.props[Zn(b)]}),d.state={values:v,prevProps:{}},d}var f=u.prototype;return f.shouldComponentUpdate=function(){return!this._notifying},u.getDerivedStateFromProps=function(h,m){var p=m.values,v=m.prevProps,b={values:pe(Object.create(null),p),prevProps:{}};return i.forEach(function(y){b.prevProps[y]=h[y],!$l(h,y)&&$l(v,y)&&(b.values[y]=h[Zn(y)])}),b},f.componentWillUnmount=function(){this.unmounted=!0},f.render=function(){var h=this,m=this.props,p=m.innerRef,v=Yn(m,["innerRef"]);o.forEach(function(y){delete v[y]});var b={};return i.forEach(function(y){var O=h.props[y];b[y]=O!==void 0?O:h.state.values[y]}),g.createElement(e,pe({},v,b,this.handlers,{ref:p||this.attachRef}))},u}(g.Component);Eg(s),s.displayName="Uncontrolled("+n+")",s.propTypes=pe({innerRef:function(){}},Dg(t)),r.forEach(function(c){s.prototype[c]=function(){var f;return(f=this.inner)[c].apply(f,arguments)}});var l=s;return g.forwardRef&&(l=g.forwardRef(function(c,u){return g.createElement(s,pe({},c,{innerRef:u,__source:{fileName:$g,lineNumber:128},__self:this}))}),l.propTypes=s.propTypes),l.ControlledComponent=e,l.deferControlTo=function(c,u,f){return u===void 0&&(u={}),kl(c,pe({},t,u),f)},l}var Al={exports:{}},Cg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_g=Cg,Mg=_g;function Nl(){}function Il(){}Il.resetWarningCache=Nl;var kg=function(){function e(n,a,i,o,s,l){if(l!==Mg){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Il,resetWarningCache:Nl};return r.PropTypes=r,r};Al.exports=kg();var Ag=Al.exports;const k=ge(Ag);var Kn="milliseconds",Ur="seconds",jr="minutes",Yr="hours",Lt="day",pr="week",qr="month",Wt="year",zt="decade",Vt="century",Pl={milliseconds:1,seconds:1e3,minutes:60*1e3,hours:60*60*1e3,day:24*60*60*1e3,week:7*24*60*60*1e3},Ng={month:1,year:12,decade:10*12,century:100*12};function Ig(e){return[31,Pg(e),31,30,31,30,31,31,30,31,30,31]}function Pg(e){return e%4===0&&e%100!==0||e%400===0?29:28}function Qe(e,t,r){switch(e=new Date(e),r){case Kn:case Ur:case jr:case Yr:case Lt:case pr:return Fg(e,t*Pl[r]);case qr:case Wt:case zt:case Vt:return Lg(e,t*Ng[r])}throw new TypeError('Invalid units: "'+r+'"')}function Fg(e,t){var r=new Date(+e+t);return Wg(e,r)}function Lg(e,t){var r=e.getFullYear(),n=e.getMonth(),a=e.getDate(),i=r*12+n+t,o=Math.trunc(i/12),s=i%12,l=Math.min(a,Ig(o)[s]),c=new Date(e);return c.setFullYear(o),c.setDate(1),c.setMonth(s),c.setDate(l),c}function Wg(e,t){var r=e.getTimezoneOffset(),n=t.getTimezoneOffset(),a=n-r;return new Date(+t+a*Pl.minutes)}function Gr(e,t,r){return Qe(e,-t,r)}function Se(e,t,r){switch(e=new Date(e),t){case Vt:case zt:case Wt:e=Qn(e,0);case qr:e=Vl(e,1);case pr:case Lt:e=Qr(e,0);case Yr:e=vr(e,0);case jr:e=Jr(e,0);case Ur:e=Xr(e,0)}return t===zt&&(e=Gr(e,Rt(e)%10,"year")),t===Vt&&(e=Gr(e,Rt(e)%100,"year")),t===pr&&(e=Rl(e,0,r)),e}function Xn(e,t,r){switch(e=new Date(e),e=Se(e,t,r),t){case Vt:case zt:case Wt:case qr:case pr:e=Qe(e,1,t),e=Gr(e,1,Lt),e.setHours(23,59,59,999);break;case Lt:e.setHours(23,59,59,999);break;case Yr:case jr:case Ur:e=Qe(e,1,t),e=Gr(e,1,Kn)}return e}var Zr=gr(function(e,t){return e===t}),fi=gr(function(e,t){return e!==t}),Jn=gr(function(e,t){return e>t}),Kr=gr(function(e,t){return e>=t}),di=gr(function(e,t){return e<t}),mr=gr(function(e,t){return e<=t});function Fl(){return new Date(Math.min.apply(Math,arguments))}function Ll(){return new Date(Math.max.apply(Math,arguments))}function Wl(e,t,r,n){return n=n||"day",(!t||Kr(e,t,n))&&(!r||mr(e,r,n))}var Xr=St("Milliseconds"),Jr=St("Seconds"),vr=St("Minutes"),Qr=St("Hours"),zl=St("Day"),Vl=St("Date"),Qn=St("Month"),Rt=St("FullYear");function zg(e,t){return t===void 0?Rt(Se(e,zt)):Qe(e,t+10,Wt)}function Vg(e,t){return t===void 0?Rt(Se(e,Vt)):Qe(e,t+100,Wt)}function Rl(e,t,r){var n=(zl(e)+7-(r||0))%7;return t===void 0?n:Qe(e,t-n,Lt)}function Rg(e,t,r,n){var a,i,o;switch(r){case Kn:case Ur:case jr:case Yr:case Lt:case pr:a=t.getTime()-e.getTime();break;case qr:case Wt:case zt:case Vt:a=(Rt(t)-Rt(e))*12+Qn(t)-Qn(e);break;default:throw new TypeError('Invalid units: "'+r+'"')}switch(r){case Kn:i=1;break;case Ur:i=1e3;break;case jr:i=1e3*60;break;case Yr:i=1e3*60*60;break;case Lt:i=1e3*60*60*24;break;case pr:i=1e3*60*60*24*7;break;case qr:i=1;break;case Wt:i=12;break;case zt:i=120;break;case Vt:i=1200;break;default:throw new TypeError('Invalid units: "'+r+'"')}return o=a/i,n?o:Math.round(o)}function St(e){var t=function(r){switch(r){case"Milliseconds":return 36e5;case"Seconds":return 3600;case"Minutes":return 60;case"Hours":return 1;default:return null}}(e);return function(r,n){if(n===void 0)return r["get"+e]();var a=new Date(r);return a["set"+e](n),t&&a["get"+e]()!=n&&(e==="Hours"||n>=t&&a.getHours()-r.getHours()<Math.floor(n/t))&&a["set"+e](n+t),a}}function gr(e){return function(t,r,n){return e(+Se(t,n),+Se(r,n))}}const hi=Object.freeze(Object.defineProperty({__proto__:null,add:Qe,century:Vg,date:Vl,day:zl,decade:zg,diff:Rg,endOf:Xn,eq:Zr,gt:Jn,gte:Kr,hours:Qr,inRange:Wl,lt:di,lte:mr,max:Ll,milliseconds:Xr,min:Fl,minutes:vr,month:Qn,neq:fi,seconds:Jr,startOf:Se,subtract:Gr,weekday:Rl,year:Rt},Symbol.toStringTag,{value:"Module"}));function Bg(e){if(Array.isArray(e))return ci(e)}function Bl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ea(e){return Bg(e)||Bl(e)||ui(e)||Hg()}function Ug(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n<a;)i[n]=e[n+t];return i}var Hl=Ug,jg=9007199254740991;function Yg(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=jg}var pi=Yg,qg=ni,Gg=pi;function Zg(e){return e!=null&&Gg(e.length)&&!qg(e)}var en=Zg,Kg=9007199254740991,Xg=/^(?:0|[1-9]\d*)$/;function Jg(e,t){var r=typeof e;return t=t==null?Kg:t,!!t&&(r=="number"||r!="symbol"&&Xg.test(e))&&e>-1&&e%1==0&&e<t}var mi=Jg,Qg=Rr,eb=en,tb=mi,rb=st;function nb(e,t,r){if(!rb(r))return!1;var n=typeof t;return(n=="number"?eb(r)&&tb(t,r.length):n=="string"&&t in r)?Qg(r[t],e):!1}var ta=nb,ab=/\s/;function ib(e){for(var t=e.length;t--&&ab.test(e.charAt(t)););return t}var ob=ib,sb=ob,lb=/^\s+/;function cb(e){return e&&e.slice(0,sb(e)+1).replace(lb,"")}var ub=cb,fb=ub,Ul=st,db=Vr,jl=NaN,hb=/^[-+]0x[0-9a-f]+$/i,pb=/^0b[01]+$/i,mb=/^0o[0-7]+$/i,vb=parseInt;function gb(e){if(typeof e=="number")return e;if(db(e))return jl;if(Ul(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ul(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fb(e);var r=pb.test(e);return r||mb.test(e)?vb(e.slice(2),r?2:8):hb.test(e)?jl:+e}var bb=gb,yb=bb,Yl=1/0,wb=17976931348623157e292;function Sb(e){if(!e)return e===0?e:0;if(e=yb(e),e===Yl||e===-Yl){var t=e<0?-1:1;return t*wb}return e===e?e:0}var ql=Sb,Ob=ql;function Db(e){var t=Ob(e),r=t%1;return t===t?r?t-r:t:0}var Gl=Db,Tb=Hl,xb=ta,Eb=Gl,$b=Math.ceil,Cb=Math.max;function _b(e,t,r){(r?xb(e,t,r):t===void 0)?t=1:t=Cb(Eb(t),0);var n=e==null?0:e.length;if(!n||t<1)return[];for(var a=0,i=0,o=Array($b(n/t));a<n;)o[i++]=Tb(e,a,a+=t);return o}var Mb=_b;const kb=ge(Mb);function tn(e){return e&&e.ownerDocument||document}function Ab(e){var t=tn(e);return t&&t.defaultView||window}function Nb(e,t){return Ab(e).getComputedStyle(e,t)}var Ib=/([A-Z])/g;function Pb(e){return e.replace(Ib,"-$1").toLowerCase()}var Fb=/^ms-/;function ra(e){return Pb(e).replace(Fb,"-ms-")}var Lb=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Wb(e){return!!(e&&Lb.test(e))}function br(e,t){var r="",n="";if(typeof t=="string")return e.style.getPropertyValue(ra(t))||Nb(e).getPropertyValue(ra(t));Object.keys(t).forEach(function(a){var i=t[a];!i&&i!==0?e.style.removeProperty(ra(a)):Wb(a)?n+=a+"("+i+") ":r+=ra(a)+": "+i+";"}),n&&(r+="transform: "+n+";"),e.style.cssText+=";"+r}function rn(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}function zb(e){return"nodeType"in e&&e.nodeType===document.DOCUMENT_NODE}function vi(e){return"window"in e&&e.window===e?e:zb(e)&&e.defaultView||!1}function Zl(e){var t=e==="pageXOffset"?"scrollLeft":"scrollTop";function r(n,a){var i=vi(n);if(a===void 0)return i?i[e]:n[t];i?i.scrollTo(i[e],a):n[t]=a}return r}const Kl=Zl("pageXOffset"),Xl=Zl("pageYOffset");function Bt(e){var t=tn(e),r={top:0,left:0,height:0,width:0},n=t&&t.documentElement;return!n||!rn(n,e)||(e.getBoundingClientRect!==void 0&&(r=e.getBoundingClientRect()),r={top:r.top+Xl(n)-(n.clientTop||0),left:r.left+Kl(n)-(n.clientLeft||0),width:r.width,height:r.height}),r}var Vb=function(t){return!!t&&"offsetParent"in t};function Rb(e){for(var t=tn(e),r=e&&e.offsetParent;Vb(r)&&r.nodeName!=="HTML"&&br(r,"position")==="static";)r=r.offsetParent;return r||t.documentElement}var Bb=function(t){return t.nodeName&&t.nodeName.toLowerCase()};function Jl(e,t){var r={top:0,left:0},n;if(br(e,"position")==="fixed")n=e.getBoundingClientRect();else{var a=t||Rb(e);n=Bt(e),Bb(a)!=="html"&&(r=Bt(a));var i=String(br(a,"borderTopWidth")||0);r.top+=parseInt(i,10)-Xl(a)||0;var o=String(br(a,"borderLeftWidth")||0);r.left+=parseInt(o,10)-Kl(a)||0}var s=String(br(e,"marginTop")||0),l=String(br(e,"marginLeft")||0);return pe({},n,{top:n.top-r.top-(parseInt(s,10)||0),left:n.left-r.left-(parseInt(l,10)||0)})}const gi=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Ql=new Date().getTime();function Hb(e){var t=new Date().getTime(),r=Math.max(0,16-(t-Ql)),n=setTimeout(e,r);return Ql=t,n}var Ub=["","webkit","moz","o","ms"],bi="clearTimeout",yi=Hb,ec=function(t,r){return t+(t?r[0].toUpperCase()+r.substr(1):r)+"AnimationFrame"};gi&&Ub.some(function(e){var t=ec(e,"request");return t in window&&(bi=ec(e,"cancel"),yi=function(n){return window[t](n)}),!!yi});var tc=function(t){typeof window[bi]=="function"&&window[bi](t)},rc=yi,wi;function jb(e,t){if(!wi){var r=document.body,n=r.matches||r.matchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector;wi=function(i,o){return n.call(i,o)}}return wi(e,t)}var Yb=Function.prototype.bind.call(Function.prototype.call,[].slice);function qb(e,t){return Yb(e.querySelectorAll(t))}var Si=!1,Oi=!1;try{var Di={get passive(){return Si=!0},get once(){return Oi=Si=!0}};gi&&(window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,!0))}catch(e){}function Gb(e,t,r,n){if(n&&typeof n!="boolean"&&!Oi){var a=n.once,i=n.capture,o=r;!Oi&&a&&(o=r.__once||function s(l){this.removeEventListener(t,s,i),r.call(this,l)},r.__once=o),e.addEventListener(t,o,Si?n:i)}e.addEventListener(t,r,n)}function Zb(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e},[e]),t}function nc(e){const t=Zb(e);return g.useCallback(function(...r){return t.current&&t.current(...r)},[t])}function ac(){return g.useState(null)}function Kb(){const e=g.useRef(!0),t=g.useRef(()=>e.current);return g.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Xb(e){const t=Kb();return[e[0],g.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var Ne="top",Ue="bottom",je="right",Ie="left",Ti="auto",nn=[Ne,Ue,je,Ie],yr="start",an="end",Jb="clippingParents",ic="viewport",on="popper",Qb="reference",oc=nn.reduce(function(e,t){return e.concat([t+"-"+yr,t+"-"+an])},[]),xi=[].concat(nn,[Ti]).reduce(function(e,t){return e.concat([t,t+"-"+yr,t+"-"+an])},[]),ey="beforeRead",ty="read",ry="afterRead",ny="beforeMain",ay="main",iy="afterMain",oy="beforeWrite",sy="write",ly="afterWrite",cy=[ey,ty,ry,ny,ay,iy,oy,sy,ly];function at(e){return e.split("-")[0]}function We(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ht(e){var t=We(e).Element;return e instanceof t||e instanceof Element}function it(e){var t=We(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ei(e){if(typeof ShadowRoot=="undefined")return!1;var t=We(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ut=Math.max,na=Math.min,wr=Math.round;function $i(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function sc(){return!/^((?!chrome|android).)*safari/i.test($i())}function Sr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,i=1;t&&it(e)&&(a=e.offsetWidth>0&&wr(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&wr(n.height)/e.offsetHeight||1);var o=Ht(e)?We(e):window,s=o.visualViewport,l=!sc()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/a,u=(n.top+(l&&s?s.offsetTop:0))/i,f=n.width/a,d=n.height/i;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function Ci(e){var t=Sr(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function lc(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ei(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ot(e){return e?(e.nodeName||"").toLowerCase():null}function ct(e){return We(e).getComputedStyle(e)}function uy(e){return["table","td","th"].indexOf(Ot(e))>=0}function Dt(e){return((Ht(e)?e.ownerDocument:e.document)||window.document).documentElement}function aa(e){return Ot(e)==="html"?e:e.assignedSlot||e.parentNode||(Ei(e)?e.host:null)||Dt(e)}function cc(e){return!it(e)||ct(e).position==="fixed"?null:e.offsetParent}function fy(e){var t=/firefox/i.test($i()),r=/Trident/i.test($i());if(r&&it(e)){var n=ct(e);if(n.position==="fixed")return null}var a=aa(e);for(Ei(a)&&(a=a.host);it(a)&&["html","body"].indexOf(Ot(a))<0;){var i=ct(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function sn(e){for(var t=We(e),r=cc(e);r&&uy(r)&&ct(r).position==="static";)r=cc(r);return r&&(Ot(r)==="html"||Ot(r)==="body"&&ct(r).position==="static")?t:r||fy(e)||t}function _i(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ln(e,t,r){return Ut(e,na(t,r))}function dy(e,t,r){var n=ln(e,t,r);return n>r?r:n}function uc(){return{top:0,right:0,bottom:0,left:0}}function fc(e){return Object.assign({},uc(),e)}function dc(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var hy=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,fc(typeof t!="number"?t:dc(t,nn))};function py(e){var t,r=e.state,n=e.name,a=e.options,i=r.elements.arrow,o=r.modifiersData.popperOffsets,s=at(r.placement),l=_i(s),c=[Ie,je].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!o)){var f=hy(a.padding,r),d=Ci(i),h=l==="y"?Ne:Ie,m=l==="y"?Ue:je,p=r.rects.reference[u]+r.rects.reference[l]-o[l]-r.rects.popper[u],v=o[l]-r.rects.reference[l],b=sn(i),y=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,O=p/2-v/2,S=f[h],w=y-d[u]-f[m],D=y/2-d[u]/2+O,T=ln(S,D,w),x=l;r.modifiersData[n]=(t={},t[x]=T,t.centerOffset=T-D,t)}}function my(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||lc(t.elements.popper,a)&&(t.elements.arrow=a))}const vy={name:"arrow",enabled:!0,phase:"main",fn:py,effect:my,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Or(e){return e.split("-")[1]}var gy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function by(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:wr(r*a)/a||0,y:wr(n*a)/a||0}}function hc(e){var t,r=e.popper,n=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,m=o.y,p=m===void 0?0:m,v=typeof u=="function"?u({x:h,y:p}):{x:h,y:p};h=v.x,p=v.y;var b=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),O=Ie,S=Ne,w=window;if(c){var D=sn(r),T="clientHeight",x="clientWidth";if(D===We(r)&&(D=Dt(r),ct(D).position!=="static"&&s==="absolute"&&(T="scrollHeight",x="scrollWidth")),D=D,a===Ne||(a===Ie||a===je)&&i===an){S=Ue;var E=f&&D===w&&w.visualViewport?w.visualViewport.height:D[T];p-=E-n.height,p*=l?1:-1}if(a===Ie||(a===Ne||a===Ue)&&i===an){O=je;var M=f&&D===w&&w.visualViewport?w.visualViewport.width:D[x];h-=M-n.width,h*=l?1:-1}}var N=Object.assign({position:s},c&&gy),V=u===!0?by({x:h,y:p},We(r)):{x:h,y:p};if(h=V.x,p=V.y,l){var P;return Object.assign({},N,(P={},P[S]=y?"0":"",P[O]=b?"0":"",P.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",P))}return Object.assign({},N,(t={},t[S]=y?p+"px":"",t[O]=b?h+"px":"",t.transform="",t))}function yy(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,i=r.adaptive,o=i===void 0?!0:i,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:at(t.placement),variation:Or(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,hc(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,hc(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const wy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yy,data:{}};var ia={passive:!0};function Sy(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,i=a===void 0?!0:a,o=n.resize,s=o===void 0?!0:o,l=We(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",r.update,ia)}),s&&l.addEventListener("resize",r.update,ia),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",r.update,ia)}),s&&l.removeEventListener("resize",r.update,ia)}}const Oy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Sy,data:{}};var Dy={left:"right",right:"left",bottom:"top",top:"bottom"};function oa(e){return e.replace(/left|right|bottom|top/g,function(t){return Dy[t]})}var Ty={start:"end",end:"start"};function pc(e){return e.replace(/start|end/g,function(t){return Ty[t]})}function Mi(e){var t=We(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ki(e){return Sr(Dt(e)).left+Mi(e).scrollLeft}function xy(e,t){var r=We(e),n=Dt(e),a=r.visualViewport,i=n.clientWidth,o=n.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;var c=sc();(c||!c&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s+ki(e),y:l}}function Ey(e){var t,r=Dt(e),n=Mi(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Ut(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Ut(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+ki(e),l=-n.scrollTop;return ct(a||r).direction==="rtl"&&(s+=Ut(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function Ai(e){var t=ct(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function mc(e){return["html","body","#document"].indexOf(Ot(e))>=0?e.ownerDocument.body:it(e)&&Ai(e)?e:mc(aa(e))}function cn(e,t){var r;t===void 0&&(t=[]);var n=mc(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),i=We(n),o=a?[i].concat(i.visualViewport||[],Ai(n)?n:[]):n,s=t.concat(o);return a?s:s.concat(cn(aa(o)))}function Ni(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $y(e,t){var r=Sr(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function vc(e,t,r){return t===ic?Ni(xy(e,r)):Ht(t)?$y(t,r):Ni(Ey(Dt(e)))}function Cy(e){var t=cn(aa(e)),r=["absolute","fixed"].indexOf(ct(e).position)>=0,n=r&&it(e)?sn(e):e;return Ht(n)?t.filter(function(a){return Ht(a)&&lc(a,n)&&Ot(a)!=="body"}):[]}function _y(e,t,r,n){var a=t==="clippingParents"?Cy(e):[].concat(t),i=[].concat(a,[r]),o=i[0],s=i.reduce(function(l,c){var u=vc(e,c,n);return l.top=Ut(u.top,l.top),l.right=na(u.right,l.right),l.bottom=na(u.bottom,l.bottom),l.left=Ut(u.left,l.left),l},vc(e,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function gc(e){var t=e.reference,r=e.element,n=e.placement,a=n?at(n):null,i=n?Or(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(a){case Ne:l={x:o,y:t.y-r.height};break;case Ue:l={x:o,y:t.y+t.height};break;case je:l={x:t.x+t.width,y:s};break;case Ie:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=a?_i(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case yr:l[c]=l[c]-(t[u]/2-r[u]/2);break;case an:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function un(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,i=r.strategy,o=i===void 0?e.strategy:i,s=r.boundary,l=s===void 0?Jb:s,c=r.rootBoundary,u=c===void 0?ic:c,f=r.elementContext,d=f===void 0?on:f,h=r.altBoundary,m=h===void 0?!1:h,p=r.padding,v=p===void 0?0:p,b=fc(typeof v!="number"?v:dc(v,nn)),y=d===on?Qb:on,O=e.rects.popper,S=e.elements[m?y:d],w=_y(Ht(S)?S:S.contextElement||Dt(e.elements.popper),l,u,o),D=Sr(e.elements.reference),T=gc({reference:D,element:O,strategy:"absolute",placement:a}),x=Ni(Object.assign({},O,T)),E=d===on?x:D,M={top:w.top-E.top+b.top,bottom:E.bottom-w.bottom+b.bottom,left:w.left-E.left+b.left,right:E.right-w.right+b.right},N=e.modifiersData.offset;if(d===on&&N){var V=N[a];Object.keys(M).forEach(function(P){var B=[je,Ue].indexOf(P)>=0?1:-1,J=[Ne,Ue].indexOf(P)>=0?"y":"x";M[P]+=V[J]*B})}return M}function My(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?xi:l,u=Or(n),f=u?s?oc:oc.filter(function(m){return Or(m)===u}):nn,d=f.filter(function(m){return c.indexOf(m)>=0});d.length===0&&(d=f);var h=d.reduce(function(m,p){return m[p]=un(e,{placement:p,boundary:a,rootBoundary:i,padding:o})[at(p)],m},{});return Object.keys(h).sort(function(m,p){return h[m]-h[p]})}function ky(e){if(at(e)===Ti)return[];var t=oa(e);return[pc(e),t,pc(t)]}function Ay(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,m=h===void 0?!0:h,p=r.allowedAutoPlacements,v=t.options.placement,b=at(v),y=b===v,O=l||(y||!m?[oa(v)]:ky(v)),S=[v].concat(O).reduce(function(F,W){return F.concat(at(W)===Ti?My(t,{placement:W,boundary:u,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:p}):W)},[]),w=t.rects.reference,D=t.rects.popper,T=new Map,x=!0,E=S[0],M=0;M<S.length;M++){var N=S[M],V=at(N),P=Or(N)===yr,B=[Ne,Ue].indexOf(V)>=0,J=B?"width":"height",G=un(t,{placement:N,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),K=B?P?je:Ie:P?Ue:Ne;w[J]>D[J]&&(K=oa(K));var fe=oa(K),me=[];if(i&&me.push(G[V]<=0),s&&me.push(G[K]<=0,G[fe]<=0),me.every(function(F){return F})){E=N,x=!1;break}T.set(N,me)}if(x)for(var _e=m?3:1,Pe=function(W){var R=S.find(function(Q){var ae=T.get(Q);if(ae)return ae.slice(0,W).every(function(de){return de})});if(R)return E=R,"break"},C=_e;C>0;C--){var _=Pe(C);if(_==="break")break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}}const Ny={name:"flip",enabled:!0,phase:"main",fn:Ay,requiresIfExists:["offset"],data:{_skip:!1}};function bc(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function yc(e){return[Ne,je,Ue,Ie].some(function(t){return e[t]>=0})}function Iy(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=un(t,{elementContext:"reference"}),s=un(t,{altBoundary:!0}),l=bc(o,n),c=bc(s,a,i),u=yc(l),f=yc(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Py={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Iy};function Fy(e,t,r){var n=at(e),a=[Ie,Ne].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[Ie,je].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function Ly(e){var t=e.state,r=e.options,n=e.name,a=r.offset,i=a===void 0?[0,0]:a,o=xi.reduce(function(u,f){return u[f]=Fy(f,t.rects,i),u},{}),s=o[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}const Wy={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ly};function zy(e){var t=e.state,r=e.name;t.modifiersData[r]=gc({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Vy={name:"popperOffsets",enabled:!0,phase:"read",fn:zy,data:{}};function Ry(e){return e==="x"?"y":"x"}function By(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,m=r.tetherOffset,p=m===void 0?0:m,v=un(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),b=at(t.placement),y=Or(t.placement),O=!y,S=_i(b),w=Ry(S),D=t.modifiersData.popperOffsets,T=t.rects.reference,x=t.rects.popper,E=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,M=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(D){if(i){var P,B=S==="y"?Ne:Ie,J=S==="y"?Ue:je,G=S==="y"?"height":"width",K=D[S],fe=K+v[B],me=K-v[J],_e=h?-x[G]/2:0,Pe=y===yr?T[G]:x[G],C=y===yr?-x[G]:-T[G],_=t.elements.arrow,F=h&&_?Ci(_):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:uc(),R=W[B],Q=W[J],ae=ln(0,T[G],F[G]),de=O?T[G]/2-_e-ae-R-M.mainAxis:Pe-ae-R-M.mainAxis,qt=O?-T[G]/2+_e+ae+Q+M.mainAxis:C+ae+Q+M.mainAxis,Et=t.elements.arrow&&sn(t.elements.arrow),yn=Et?S==="y"?Et.clientTop||0:Et.clientLeft||0:0,$r=(P=N==null?void 0:N[S])!=null?P:0,So=K+de-$r-yn,Oo=K+qt-$r,Pf=ln(h?na(fe,So):fe,K,h?Ut(me,Oo):me);D[S]=Pf,V[S]=Pf-K}if(s){var Ff,W_=S==="x"?Ne:Ie,z_=S==="x"?Ue:je,Gt=D[w],_a=w==="y"?"height":"width",Lf=Gt+v[W_],Wf=Gt-v[z_],Do=[Ne,Ie].indexOf(b)!==-1,zf=(Ff=N==null?void 0:N[w])!=null?Ff:0,Vf=Do?Lf:Gt-T[_a]-x[_a]-zf+M.altAxis,Rf=Do?Gt+T[_a]+x[_a]-zf-M.altAxis:Wf,Bf=h&&Do?dy(Vf,Gt,Rf):ln(h?Vf:Lf,Gt,h?Rf:Wf);D[w]=Bf,V[w]=Bf-Gt}t.modifiersData[n]=V}}const Hy={name:"preventOverflow",enabled:!0,phase:"main",fn:By,requiresIfExists:["offset"]};function Uy(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jy(e){return e===We(e)||!it(e)?Mi(e):Uy(e)}function Yy(e){var t=e.getBoundingClientRect(),r=wr(t.width)/e.offsetWidth||1,n=wr(t.height)/e.offsetHeight||1;return r!==1||n!==1}function qy(e,t,r){r===void 0&&(r=!1);var n=it(t),a=it(t)&&Yy(t),i=Dt(t),o=Sr(e,a,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Ot(t)!=="body"||Ai(i))&&(s=jy(t)),it(t)?(l=Sr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=ki(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function Gy(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function a(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&a(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||a(i)}),n}function Zy(e){var t=Gy(e);return cy.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Ky(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Xy(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var wc={placement:"bottom",modifiers:[],strategy:"absolute"};function Sc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Jy(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,i=a===void 0?wc:a;return function(s,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},wc,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:u,setOptions:function(b){var y=typeof b=="function"?b(u.options):b;p(),u.options=Object.assign({},i,u.options,y),u.scrollParents={reference:Ht(s)?cn(s):s.contextElement?cn(s.contextElement):[],popper:cn(l)};var O=Zy(Xy([].concat(n,u.options.modifiers)));return u.orderedModifiers=O.filter(function(S){return S.enabled}),m(),h.update()},forceUpdate:function(){if(!d){var b=u.elements,y=b.reference,O=b.popper;if(Sc(y,O)){u.rects={reference:qy(y,sn(O),u.options.strategy==="fixed"),popper:Ci(O)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(M){return u.modifiersData[M.name]=Object.assign({},M.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var w=u.orderedModifiers[S],D=w.fn,T=w.options,x=T===void 0?{}:T,E=w.name;typeof D=="function"&&(u=D({state:u,options:x,name:E,instance:h})||u)}}}},update:Ky(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){p(),d=!0}};if(!Sc(s,l))return h;h.setOptions(c).then(function(v){!d&&c.onFirstUpdate&&c.onFirstUpdate(v)});function m(){u.orderedModifiers.forEach(function(v){var b=v.name,y=v.options,O=y===void 0?{}:y,S=v.effect;if(typeof S=="function"){var w=S({state:u,name:b,instance:h,options:O}),D=function(){};f.push(w||D)}})}function p(){f.forEach(function(v){return v()}),f=[]}return h}}var Qy=Jy({defaultModifiers:[Py,Vy,wy,Oy,Wy,Ny,Hy,vy]}),Oc=function(t){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}},e0={name:"applyStyles",enabled:!1},t0={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:function(t){var r=t.state;return function(){var n=r.elements,a=n.reference,i=n.popper;if("removeAttribute"in a){var o=(a.getAttribute("aria-describedby")||"").split(",").filter(function(s){return s.trim()!==i.id});o.length?a.setAttribute("aria-describedby",o.join(",")):a.removeAttribute("aria-describedby")}}},fn:function(t){var r,n=t.state,a=n.elements,i=a.popper,o=a.reference,s=(r=i.getAttribute("role"))==null?void 0:r.toLowerCase();if(i.id&&s==="tooltip"&&"setAttribute"in o){var l=o.getAttribute("aria-describedby");if(l&&l.split(",").indexOf(i.id)!==-1)return;o.setAttribute("aria-describedby",l?l+","+i.id:i.id)}}},r0=[];function n0(e,t,r){var n=r===void 0?{}:r,a=n.enabled,i=a===void 0?!0:a,o=n.placement,s=o===void 0?"bottom":o,l=n.strategy,c=l===void 0?"absolute":l,u=n.modifiers,f=u===void 0?r0:u,d=Yn(n,["enabled","placement","strategy","modifiers"]),h=g.useRef(),m=g.useCallback(function(){var S;(S=h.current)==null||S.update()},[]),p=g.useCallback(function(){var S;(S=h.current)==null||S.forceUpdate()},[]),v=Xb(g.useState({placement:s,update:m,forceUpdate:p,attributes:{},styles:{popper:Oc(c),arrow:{}}})),b=v[0],y=v[1],O=g.useMemo(function(){return{name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(w){var D=w.state,T={},x={};Object.keys(D.elements).forEach(function(E){T[E]=D.styles[E],x[E]=D.attributes[E]}),y({state:D,styles:T,attributes:x,update:m,forceUpdate:p,placement:D.placement})}}},[m,p,y]);return g.useEffect(function(){!h.current||!i||h.current.setOptions({placement:s,strategy:c,modifiers:[].concat(f,[O,e0])})},[c,s,O,i]),g.useEffect(function(){if(!(!i||e==null||t==null))return h.current=Qy(e,t,pe({},d,{placement:s,strategy:c,modifiers:[].concat(f,[t0,O])})),function(){h.current!=null&&(h.current.destroy(),h.current=void 0,y(function(S){return pe({},S,{attributes:{},styles:{popper:Oc(c)}})}))}},[i,e,t]),b}function a0(e,t,r,n){var a=n&&typeof n!="boolean"?n.capture:n;e.removeEventListener(t,r,a),r.__once&&e.removeEventListener(t,r.__once,a)}function fn(e,t,r,n){return Gb(e,t,r,n),function(){a0(e,t,r,n)}}var i0=function(){},o0=i0;const s0=ge(o0);function l0(e){return e&&"setState"in e?Ye.findDOMNode(e):e!=null?e:null}const c0=function(e){return tn(l0(e))};var u0=27,Dc=function(){};function f0(e){return e.button===0}function d0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Tc=function(t){return t&&("current"in t?t.current:t)};function h0(e,t,r){var n=r===void 0?{}:r,a=n.disabled,i=n.clickTrigger,o=i===void 0?"click":i,s=g.useRef(!1),l=t||Dc,c=g.useCallback(function(d){var h,m=Tc(e);s0(!!m,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),s.current=!m||d0(d)||!f0(d)||!!rn(m,(h=d.composedPath==null?void 0:d.composedPath()[0])!=null?h:d.target)},[e]),u=nc(function(d){s.current||l(d)}),f=nc(function(d){d.keyCode===u0&&l(d)});g.useEffect(function(){if(!(a||e==null)){var d=window.event,h=c0(Tc(e)),m=fn(h,o,c,!0),p=fn(h,o,function(y){if(y===d){d=void 0;return}u(y)}),v=fn(h,"keyup",function(y){if(y===d){d=void 0;return}f(y)}),b=[];return"ontouchstart"in h.documentElement&&(b=[].slice.call(h.body.children).map(function(y){return fn(y,"mousemove",Dc)})),function(){m(),p(),v(),b.forEach(function(y){return y()})}}},[e,a,o,c,u,f])}function p0(e){var t={};return Array.isArray(e)?(e==null||e.forEach(function(r){t[r.name]=r}),t):e||t}function m0(e){return e===void 0&&(e={}),Array.isArray(e)?e:Object.keys(e).map(function(t){return e[t].name=t,e[t]})}function v0(e){var t,r,n,a,i=e.enabled,o=e.enableEvents,s=e.placement,l=e.flip,c=e.offset,u=e.fixed,f=e.containerPadding,d=e.arrowElement,h=e.popperConfig,m=h===void 0?{}:h,p=p0(m.modifiers);return pe({},m,{placement:s,enabled:i,strategy:u?"fixed":m.strategy,modifiers:m0(pe({},p,{eventListeners:{enabled:o},preventOverflow:pe({},p.preventOverflow,{options:f?pe({padding:f},(t=p.preventOverflow)==null?void 0:t.options):(r=p.preventOverflow)==null?void 0:r.options}),offset:{options:pe({offset:c},(n=p.offset)==null?void 0:n.options)},arrow:pe({},p.arrow,{enabled:!!d,options:pe({},(a=p.arrow)==null?void 0:a.options,{element:d})}),flip:pe({enabled:!!l},p.flip)}))})}function g0(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function b0(e,t){e.classList?e.classList.add(t):g0(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function xc(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function y0(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=xc(e.className,t):e.setAttribute("class",xc(e.className&&e.className.baseVal||"",t))}var sa;function Ii(e){if((!sa&&sa!==0||e)&&gi){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),sa=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return sa}var Pi=function(t){var r;return typeof document=="undefined"?null:t==null?tn().body:(typeof t=="function"&&(t=t()),t&&"current"in t&&(t=t.current),(r=t)!=null&&r.nodeType&&t||null)};function Ec(e,t){var r=g.useState(function(){return Pi(e)}),n=r[0],a=r[1];if(!n){var i=Pi(e);i&&a(i)}return g.useEffect(function(){},[t,n]),g.useEffect(function(){var o=Pi(e);o!==n&&a(o)},[e,n]),n}const $c=e=>!e||typeof e=="function"?e:t=>{e.current=t};function w0(e,t){const r=$c(e),n=$c(t);return a=>{r&&r(a),n&&n(a)}}function S0(e,t){return g.useMemo(()=>w0(e,t),[e,t])}var Fi=g.forwardRef(function(e,t){var r=e.flip,n=e.offset,a=e.placement,i=e.containerPadding,o=i===void 0?5:i,s=e.popperConfig,l=s===void 0?{}:s,c=e.transition,u=ac(),f=u[0],d=u[1],h=ac(),m=h[0],p=h[1],v=S0(d,t),b=Ec(e.container),y=Ec(e.target),O=g.useState(!e.show),S=O[0],w=O[1],D=n0(y,f,v0({placement:a,enableEvents:!!e.show,containerPadding:o||5,flip:r,offset:n,arrowElement:m,popperConfig:l})),T=D.styles,x=D.attributes,E=Yn(D,["styles","attributes"]);e.show?S&&w(!1):!e.transition&&!S&&w(!0);var M=function(){w(!0),e.onExited&&e.onExited.apply(e,arguments)},N=e.show||c&&!S;if(h0(f,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!N)return null;var V=e.children(pe({},E,{show:!!e.show,props:pe({},x.popper,{style:T.popper,ref:v}),arrowProps:pe({},x.arrow,{style:T.arrow,ref:p})}));if(c){var P=e.onExit,B=e.onExiting,J=e.onEnter,G=e.onEntering,K=e.onEntered;V=g.createElement(c,{in:e.show,appear:!0,onExit:P,onExiting:B,onExited:M,onEnter:J,onEntering:G,onEntered:K},V)}return b?Ye.createPortal(V,b):null});Fi.displayName="Overlay",Fi.propTypes={show:k.bool,placement:k.oneOf(xi),target:k.any,container:k.any,flip:k.bool,children:k.func.isRequired,containerPadding:k.number,popperConfig:k.object,rootClose:k.bool,rootCloseEvent:k.oneOf(["click","mousedown"]),rootCloseDisabled:k.bool,onHide:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];if(t.rootClose){var i;return(i=k.func).isRequired.apply(i,[t].concat(n))}return k.func.apply(k,[t].concat(n))},transition:k.elementType,onEnter:k.func,onEntering:k.func,onEntered:k.func,onExit:k.func,onExiting:k.func,onExited:k.func};var O0=Rn;function D0(){this.__data__=new O0,this.size=0}var T0=D0;function x0(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var E0=x0;function $0(e){return this.__data__.get(e)}var C0=$0;function _0(e){return this.__data__.has(e)}var M0=_0,k0=Rn,A0=ii,N0=oi,I0=200;function P0(e,t){var r=this.__data__;if(r instanceof k0){var n=r.__data__;if(!A0||n.length<I0-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new N0(n)}return r.set(e,t),this.size=r.size,this}var F0=P0,L0=Rn,W0=T0,z0=E0,V0=C0,R0=M0,B0=F0;function Dr(e){var t=this.__data__=new L0(e);this.size=t.size}Dr.prototype.clear=W0,Dr.prototype.delete=z0,Dr.prototype.get=V0,Dr.prototype.has=R0,Dr.prototype.set=B0;var Li=Dr,H0="__lodash_hash_undefined__";function U0(e){return this.__data__.set(e,H0),this}var j0=U0;function Y0(e){return this.__data__.has(e)}var q0=Y0,G0=oi,Z0=j0,K0=q0;function la(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new G0;++t<r;)this.add(e[t])}la.prototype.add=la.prototype.push=Z0,la.prototype.has=K0;var X0=la;function J0(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Q0=J0;function e1(e,t){return e.has(t)}var t1=e1,r1=X0,n1=Q0,a1=t1,i1=1,o1=2;function s1(e,t,r,n,a,i){var o=r&i1,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=r&o1?new r1:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var m=e[f],p=t[f];if(n)var v=o?n(p,m,f,t,e,i):n(m,p,f,e,t,i);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!n1(t,function(b,y){if(!a1(h,y)&&(m===b||a(m,b,r,n,i)))return h.push(y)})){d=!1;break}}else if(!(m===p||a(m,p,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}var Cc=s1,l1=rt,c1=l1.Uint8Array,_c=c1;function u1(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var f1=u1;function d1(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var h1=d1,Mc=cr,kc=_c,p1=Rr,m1=Cc,v1=f1,g1=h1,b1=1,y1=2,w1="[object Boolean]",S1="[object Date]",O1="[object Error]",D1="[object Map]",T1="[object Number]",x1="[object RegExp]",E1="[object Set]",$1="[object String]",C1="[object Symbol]",_1="[object ArrayBuffer]",M1="[object DataView]",Ac=Mc?Mc.prototype:void 0,Wi=Ac?Ac.valueOf:void 0;function k1(e,t,r,n,a,i,o){switch(r){case M1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _1:return!(e.byteLength!=t.byteLength||!i(new kc(e),new kc(t)));case w1:case S1:case T1:return p1(+e,+t);case O1:return e.name==t.name&&e.message==t.message;case x1:case $1:return e==t+"";case D1:var s=v1;case E1:var l=n&b1;if(s||(s=g1),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=y1,o.set(e,t);var u=m1(s(e),s(t),n,a,i,o);return o.delete(e),u;case C1:if(Wi)return Wi.call(e)==Wi.call(t)}return!1}var A1=k1;function N1(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var zi=N1,I1=zi,P1=Be;function F1(e,t,r){var n=t(e);return P1(e)?n:I1(n,r(e))}var Nc=F1;function L1(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}var W1=L1;function z1(){return[]}var Ic=z1,V1=W1,R1=Ic,B1=Object.prototype,H1=B1.propertyIsEnumerable,Pc=Object.getOwnPropertySymbols,U1=Pc?function(e){return e==null?[]:(e=Object(e),V1(Pc(e),function(t){return H1.call(e,t)}))}:R1,Vi=U1;function j1(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Y1=j1,q1=ur,G1=wt,Z1="[object Arguments]";function K1(e){return G1(e)&&q1(e)==Z1}var X1=K1,Fc=X1,J1=wt,Lc=Object.prototype,Q1=Lc.hasOwnProperty,ew=Lc.propertyIsEnumerable,tw=Fc(function(){return arguments}())?Fc:function(e){return J1(e)&&Q1.call(e,"callee")&&!ew.call(e,"callee")},Ri=tw,ca={exports:{}};function rw(){return!1}var nw=rw;ca.exports,function(e,t){var r=rt,n=nw,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;e.exports=c}(ca,ca.exports);var ua=ca.exports,aw=ur,iw=pi,ow=wt,sw="[object Arguments]",lw="[object Array]",cw="[object Boolean]",uw="[object Date]",fw="[object Error]",dw="[object Function]",hw="[object Map]",pw="[object Number]",mw="[object Object]",vw="[object RegExp]",gw="[object Set]",bw="[object String]",yw="[object WeakMap]",ww="[object ArrayBuffer]",Sw="[object DataView]",Ow="[object Float32Array]",Dw="[object Float64Array]",Tw="[object Int8Array]",xw="[object Int16Array]",Ew="[object Int32Array]",$w="[object Uint8Array]",Cw="[object Uint8ClampedArray]",_w="[object Uint16Array]",Mw="[object Uint32Array]",oe={};oe[Ow]=oe[Dw]=oe[Tw]=oe[xw]=oe[Ew]=oe[$w]=oe[Cw]=oe[_w]=oe[Mw]=!0,oe[sw]=oe[lw]=oe[ww]=oe[cw]=oe[Sw]=oe[uw]=oe[fw]=oe[dw]=oe[hw]=oe[pw]=oe[mw]=oe[vw]=oe[gw]=oe[bw]=oe[yw]=!1;function kw(e){return ow(e)&&iw(e.length)&&!!oe[aw(e)]}var Aw=kw;function Nw(e){return function(t){return e(t)}}var fa=Nw,da={exports:{}};da.exports,function(e,t){var r=il,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch(c){}}();e.exports=s}(da,da.exports);var Bi=da.exports,Iw=Aw,Pw=fa,Wc=Bi,zc=Wc&&Wc.isTypedArray,Fw=zc?Pw(zc):Iw,Hi=Fw,Lw=Y1,Ww=Ri,zw=Be,Vw=ua,Rw=mi,Bw=Hi,Hw=Object.prototype,Uw=Hw.hasOwnProperty;function jw(e,t){var r=zw(e),n=!r&&Ww(e),a=!r&&!n&&Vw(e),i=!r&&!n&&!a&&Bw(e),o=r||n||a||i,s=o?Lw(e.length,String):[],l=s.length;for(var c in e)(t||Uw.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Rw(c,l)))&&s.push(c);return s}var Vc=jw,Yw=Object.prototype;function qw(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Yw;return e===r}var Ui=qw;function Gw(e,t){return function(r){return e(t(r))}}var Rc=Gw,Zw=Rc,Kw=Zw(Object.keys,Object),Xw=Kw,Jw=Ui,Qw=Xw,eS=Object.prototype,tS=eS.hasOwnProperty;function rS(e){if(!Jw(e))return Qw(e);var t=[];for(var r in Object(e))tS.call(e,r)&&r!="constructor"&&t.push(r);return t}var nS=rS,aS=Vc,iS=nS,oS=en;function sS(e){return oS(e)?aS(e):iS(e)}var dn=sS,lS=Nc,cS=Vi,uS=dn;function fS(e){return lS(e,uS,cS)}var Bc=fS,Hc=Bc,dS=1,hS=Object.prototype,pS=hS.hasOwnProperty;function mS(e,t,r,n,a,i){var o=r&dS,s=Hc(e),l=s.length,c=Hc(t),u=c.length;if(l!=u&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:pS.call(t,d)))return!1}var h=i.get(e),m=i.get(t);if(h&&m)return h==t&&m==e;var p=!0;i.set(e,t),i.set(t,e);for(var v=o;++f<l;){d=s[f];var b=e[d],y=t[d];if(n)var O=o?n(y,b,d,t,e,i):n(b,y,d,e,t,i);if(!(O===void 0?b===y||a(b,y,r,n,i):O)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(p=!1)}return i.delete(e),i.delete(t),p}var vS=mS,gS=Pt,bS=rt,yS=gS(bS,"DataView"),wS=yS,SS=Pt,OS=rt,DS=SS(OS,"Promise"),TS=DS,xS=Pt,ES=rt,$S=xS(ES,"Set"),CS=$S,_S=Pt,MS=rt,kS=_S(MS,"WeakMap"),AS=kS,ji=wS,Yi=ii,qi=TS,Gi=CS,Zi=AS,Uc=ur,Tr=fl,jc="[object Map]",NS="[object Object]",Yc="[object Promise]",qc="[object Set]",Gc="[object WeakMap]",Zc="[object DataView]",IS=Tr(ji),PS=Tr(Yi),FS=Tr(qi),LS=Tr(Gi),WS=Tr(Zi),jt=Uc;(ji&&jt(new ji(new ArrayBuffer(1)))!=Zc||Yi&&jt(new Yi)!=jc||qi&&jt(qi.resolve())!=Yc||Gi&&jt(new Gi)!=qc||Zi&&jt(new Zi)!=Gc)&&(jt=function(e){var t=Uc(e),r=t==NS?e.constructor:void 0,n=r?Tr(r):"";if(n)switch(n){case IS:return Zc;case PS:return jc;case FS:return Yc;case LS:return qc;case WS:return Gc}return t});var ha=jt,Ki=Li,zS=Cc,VS=A1,RS=vS,Kc=ha,Xc=Be,Jc=ua,BS=Hi,HS=1,Qc="[object Arguments]",eu="[object Array]",pa="[object Object]",US=Object.prototype,tu=US.hasOwnProperty;function jS(e,t,r,n,a,i){var o=Xc(e),s=Xc(t),l=o?eu:Kc(e),c=s?eu:Kc(t);l=l==Qc?pa:l,c=c==Qc?pa:c;var u=l==pa,f=c==pa,d=l==c;if(d&&Jc(e)){if(!Jc(t))return!1;o=!0,u=!1}if(d&&!u)return i||(i=new Ki),o||BS(e)?zS(e,t,r,n,a,i):VS(e,t,l,r,n,a,i);if(!(r&HS)){var h=u&&tu.call(e,"__wrapped__"),m=f&&tu.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,v=m?t.value():t;return i||(i=new Ki),a(p,v,r,n,i)}}return d?(i||(i=new Ki),RS(e,t,r,n,a,i)):!1}var YS=jS,qS=YS,ru=wt;function nu(e,t,r,n,a){return e===t?!0:e==null||t==null||!ru(e)&&!ru(t)?e!==e&&t!==t:qS(e,t,r,n,nu,a)}var Xi=nu,GS=Xi;function ZS(e,t){return GS(e,t)}var KS=ZS;const XS=ge(KS);function Ji(e,t){var r=vi(e);return r?r.innerHeight:Bt(e).height}function au(e,t,r){e.closest&&!r&&e.closest(t);var n=e;do{if(jb(n,t))return n;n=n.parentElement}while(n&&n!==r&&n.nodeType===document.ELEMENT_NODE);return null}function JS(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var QS=JS,e2=Li,t2=Xi,r2=1,n2=2;function a2(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=r[a];var l=s[0],c=e[l],u=s[1];if(o&&s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new e2;if(n)var d=n(c,u,l,e,t,f);if(!(d===void 0?t2(u,c,r2|n2,n,f):d))return!1}}return!0}var i2=a2,o2=st;function s2(e){return e===e&&!o2(e)}var iu=s2,l2=iu,c2=dn;function u2(e){for(var t=c2(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,l2(a)]}return t}var f2=u2;function d2(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var ou=d2,h2=i2,p2=f2,m2=ou;function v2(e){var t=p2(e);return t.length==1&&t[0][2]?m2(t[0][0],t[0][1]):function(r){return r===e||h2(r,e,t)}}var g2=v2;function b2(e,t){return e!=null&&t in Object(e)}var y2=b2,w2=Hn,S2=Ri,O2=Be,D2=mi,T2=pi,x2=Br;function E2(e,t,r){t=w2(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=x2(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&T2(a)&&D2(o,a)&&(O2(e)||S2(e)))}var $2=E2,C2=y2,_2=$2;function M2(e,t){return e!=null&&_2(e,t,C2)}var k2=M2,A2=Xi,N2=yl,I2=k2,P2=ri,F2=iu,L2=ou,W2=Br,z2=1,V2=2;function R2(e,t){return P2(e)&&F2(t)?L2(W2(e),t):function(r){var n=N2(r,e);return n===void 0&&n===t?I2(r,e):A2(t,n,z2|V2)}}var B2=R2;function H2(e){return e}var ma=H2;function U2(e){return function(t){return t==null?void 0:t[e]}}var j2=U2,Y2=Un;function q2(e){return function(t){return Y2(t,e)}}var G2=q2,Z2=j2,K2=G2,X2=ri,J2=Br;function Q2(e){return X2(e)?Z2(J2(e)):K2(e)}var eO=Q2,tO=g2,rO=B2,nO=ma,aO=Be,iO=eO;function oO(e){return typeof e=="function"?e:e==null?nO:typeof e=="object"?aO(e)?rO(e[0],e[1]):tO(e):iO(e)}var va=oO,sO=QS,lO=va,cO=Gl,uO=Math.max;function fO(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:cO(r);return a<0&&(a=uO(n+a,0)),sO(e,lO(t),a)}var dO=fO;const hO=ge(dO);var pO=Math.ceil,mO=Math.max;function vO(e,t,r,n){for(var a=-1,i=mO(pO((t-e)/(r||1)),0),o=Array(i);i--;)o[n?i:++a]=e,e+=r;return o}var gO=vO,bO=gO,yO=ta,Qi=ql;function wO(e){return function(t,r,n){return n&&typeof n!="number"&&yO(t,r,n)&&(r=n=void 0),t=Qi(t),r===void 0?(r=t,t=0):r=Qi(r),n=n===void 0?t<r?1:-1:Qi(n),bO(t,r,n,e)}}var SO=wO,OO=SO,DO=OO(),TO=DO;const xO=ge(TO);var su=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function EO(e,t){return!!(e===t||su(e)&&su(t))}function $O(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!EO(e[r],t[r]))return!1;return!0}function lu(e,t){t===void 0&&(t=$O);var r=null;function n(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(r&&r.lastThis===this&&t(a,r.lastArgs))return r.lastResult;var o=e.apply(this,a);return r={lastResult:o,lastArgs:a,lastThis:this},o}return n.clear=function(){r=null},n}function eo(e,t){var r=vi(e);return r?r.innerWidth:Bt(e).width}var cu=cr,CO=Ri,_O=Be,uu=cu?cu.isConcatSpreadable:void 0;function MO(e){return _O(e)||CO(e)||!!(uu&&e&&e[uu])}var kO=MO,AO=zi,NO=kO;function fu(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=NO),a||(a=[]);++i<o;){var s=e[i];t>0&&r(s)?t>1?fu(s,t-1,r,n,a):AO(a,s):n||(a[a.length]=s)}return a}var du=fu;function IO(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++a];if(r(i[l],l,i)===!1)break}return t}}var PO=IO,FO=PO,LO=FO(),WO=LO,zO=WO,VO=dn;function RO(e,t){return e&&zO(e,t,VO)}var to=RO,BO=en;function HO(e,t){return function(r,n){if(r==null)return r;if(!BO(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var UO=HO,jO=to,YO=UO,qO=YO(jO),GO=qO,ZO=GO,KO=en;function XO(e,t){var r=-1,n=KO(e)?Array(e.length):[];return ZO(e,function(a,i,o){n[++r]=t(a,i,o)}),n}var JO=XO;function QO(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var eD=QO,hu=Vr;function tD(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=hu(e),o=t!==void 0,s=t===null,l=t===t,c=hu(t);if(!s&&!c&&!i&&e>t||i&&o&&l&&!s&&!c||n&&o&&l||!r&&l||!a)return 1;if(!n&&!i&&!c&&e<t||c&&r&&a&&!n&&!i||s&&r&&a||!o&&a||!l)return-1}return 0}var rD=tD,nD=rD;function aD(e,t,r){for(var n=-1,a=e.criteria,i=t.criteria,o=a.length,s=r.length;++n<o;){var l=nD(a[n],i[n]);if(l){if(n>=s)return l;var c=r[n];return l*(c=="desc"?-1:1)}}return e.index-t.index}var iD=aD,ro=li,oD=Un,sD=va,lD=JO,cD=eD,uD=fa,fD=iD,dD=ma,hD=Be;function pD(e,t,r){t.length?t=ro(t,function(i){return hD(i)?function(o){return oD(o,i.length===1?i[0]:i)}:i}):t=[dD];var n=-1;t=ro(t,uD(sD));var a=lD(e,function(i,o,s){var l=ro(t,function(c){return c(i)});return{criteria:l,index:++n,value:i}});return cD(a,function(i,o){return fD(i,o,r)})}var mD=pD;function vD(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var gD=vD,bD=gD,pu=Math.max;function yD(e,t,r){return t=pu(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=pu(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),bD(e,this,s)}}var mu=yD;function wD(e){return function(){return e}}var SD=wD,OD=Pt,DD=function(){try{var e=OD(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),vu=DD,TD=SD,gu=vu,xD=ma,ED=gu?function(e,t){return gu(e,"toString",{configurable:!0,enumerable:!1,value:TD(t),writable:!0})}:xD,$D=ED,CD=800,_D=16,MD=Date.now;function kD(e){var t=0,r=0;return function(){var n=MD(),a=_D-(n-r);if(r=n,a>0){if(++t>=CD)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var AD=kD,ND=$D,ID=AD,PD=ID(ND),bu=PD,FD=ma,LD=mu,WD=bu;function zD(e,t){return WD(LD(e,t,FD),e+"")}var yu=zD,VD=du,RD=mD,BD=yu,wu=ta,HD=BD(function(e,t){if(e==null)return[];var r=t.length;return r>1&&wu(e,t[0],t[1])?t=[]:r>2&&wu(t[0],t[1],t[2])&&(t=[t[0]]),RD(e,VD(t,1),[])}),UD=HD;const jD=ge(UD);function Su(e){return Tl(e)||Bl(e)||ui(e)||xl()}function YD(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var qD=YD,GD=st,ZD=Ui,KD=qD,XD=Object.prototype,JD=XD.hasOwnProperty;function QD(e){if(!GD(e))return KD(e);var t=ZD(e),r=[];for(var n in e)n=="constructor"&&(t||!JD.call(e,n))||r.push(n);return r}var eT=QD,tT=Vc,rT=eT,nT=en;function aT(e){return nT(e)?tT(e,!0):rT(e)}var ga=aT,iT=yu,oT=Rr,sT=ta,lT=ga,Ou=Object.prototype,cT=Ou.hasOwnProperty,uT=iT(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&sT(t[0],t[1],a)&&(n=1);++r<n;)for(var i=t[r],o=lT(i),s=-1,l=o.length;++s<l;){var c=o[s],u=e[c];(u===void 0||oT(u,Ou[c])&&!cT.call(e,c))&&(e[c]=i[c])}return e}),fT=uT;const dT=ge(fT);var Du=vu;function hT(e,t,r){t=="__proto__"&&Du?Du(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var no=hT,pT=no,mT=to,vT=va;function gT(e,t){var r={};return t=vT(t),mT(e,function(n,a,i){pT(r,a,t(n,a,i))}),r}var bT=gT;const yT=ge(bT);function wT(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Tu=wT,ST=no,OT=Rr,DT=Object.prototype,TT=DT.hasOwnProperty;function xT(e,t,r){var n=e[t];(!(TT.call(e,t)&&OT(n,r))||r===void 0&&!(t in e))&&ST(e,t,r)}var xu=xT,ET=xu,$T=no;function CT(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),a?$T(r,s,l):ET(r,s,l)}return r}var hn=CT,_T=hn,MT=dn;function kT(e,t){return e&&_T(t,MT(t),e)}var AT=kT,NT=hn,IT=ga;function PT(e,t){return e&&NT(t,IT(t),e)}var FT=PT,ba={exports:{}};ba.exports,function(e,t){var r=rt,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var f=c.length,d=s?s(f):new c.constructor(f);return c.copy(d),d}e.exports=l}(ba,ba.exports);var LT=ba.exports;function WT(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var zT=WT,VT=hn,RT=Vi;function BT(e,t){return VT(e,RT(e),t)}var HT=BT,UT=Rc,jT=UT(Object.getPrototypeOf,Object),ya=jT,YT=zi,qT=ya,GT=Vi,ZT=Ic,KT=Object.getOwnPropertySymbols,XT=KT?function(e){for(var t=[];e;)YT(t,GT(e)),e=qT(e);return t}:ZT,Eu=XT,JT=hn,QT=Eu;function ex(e,t){return JT(e,QT(e),t)}var tx=ex,rx=Nc,nx=Eu,ax=ga;function ix(e){return rx(e,ax,nx)}var $u=ix,ox=Object.prototype,sx=ox.hasOwnProperty;function lx(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&sx.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var cx=lx,Cu=_c;function ux(e){var t=new e.constructor(e.byteLength);return new Cu(t).set(new Cu(e)),t}var ao=ux,fx=ao;function dx(e,t){var r=t?fx(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var hx=dx,px=/\w*$/;function mx(e){var t=new e.constructor(e.source,px.exec(e));return t.lastIndex=e.lastIndex,t}var vx=mx,_u=cr,Mu=_u?_u.prototype:void 0,ku=Mu?Mu.valueOf:void 0;function gx(e){return ku?Object(ku.call(e)):{}}var bx=gx,yx=ao;function wx(e,t){var r=t?yx(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Sx=wx,Ox=ao,Dx=hx,Tx=vx,xx=bx,Ex=Sx,$x="[object Boolean]",Cx="[object Date]",_x="[object Map]",Mx="[object Number]",kx="[object RegExp]",Ax="[object Set]",Nx="[object String]",Ix="[object Symbol]",Px="[object ArrayBuffer]",Fx="[object DataView]",Lx="[object Float32Array]",Wx="[object Float64Array]",zx="[object Int8Array]",Vx="[object Int16Array]",Rx="[object Int32Array]",Bx="[object Uint8Array]",Hx="[object Uint8ClampedArray]",Ux="[object Uint16Array]",jx="[object Uint32Array]";function Yx(e,t,r){var n=e.constructor;switch(t){case Px:return Ox(e);case $x:case Cx:return new n(+e);case Fx:return Dx(e,r);case Lx:case Wx:case zx:case Vx:case Rx:case Bx:case Hx:case Ux:case jx:return Ex(e,r);case _x:return new n;case Mx:case Nx:return new n(e);case kx:return Tx(e);case Ax:return new n;case Ix:return xx(e)}}var qx=Yx,Gx=st,Au=Object.create,Zx=function(){function e(){}return function(t){if(!Gx(t))return{};if(Au)return Au(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Nu=Zx,Kx=Nu,Xx=ya,Jx=Ui;function Qx(e){return typeof e.constructor=="function"&&!Jx(e)?Kx(Xx(e)):{}}var eE=Qx,tE=ha,rE=wt,nE="[object Map]";function aE(e){return rE(e)&&tE(e)==nE}var iE=aE,oE=iE,sE=fa,Iu=Bi,Pu=Iu&&Iu.isMap,lE=Pu?sE(Pu):oE,cE=lE,uE=ha,fE=wt,dE="[object Set]";function hE(e){return fE(e)&&uE(e)==dE}var pE=hE,mE=pE,vE=fa,Fu=Bi,Lu=Fu&&Fu.isSet,gE=Lu?vE(Lu):mE,bE=gE,yE=Li,wE=Tu,SE=xu,OE=AT,DE=FT,TE=LT,xE=zT,EE=HT,$E=tx,CE=Bc,_E=$u,ME=ha,kE=cx,AE=qx,NE=eE,IE=Be,PE=ua,FE=cE,LE=st,WE=bE,zE=dn,VE=ga,RE=1,BE=2,HE=4,Wu="[object Arguments]",UE="[object Array]",jE="[object Boolean]",YE="[object Date]",qE="[object Error]",zu="[object Function]",GE="[object GeneratorFunction]",ZE="[object Map]",KE="[object Number]",Vu="[object Object]",XE="[object RegExp]",JE="[object Set]",QE="[object String]",e7="[object Symbol]",t7="[object WeakMap]",r7="[object ArrayBuffer]",n7="[object DataView]",a7="[object Float32Array]",i7="[object Float64Array]",o7="[object Int8Array]",s7="[object Int16Array]",l7="[object Int32Array]",c7="[object Uint8Array]",u7="[object Uint8ClampedArray]",f7="[object Uint16Array]",d7="[object Uint32Array]",ie={};ie[Wu]=ie[UE]=ie[r7]=ie[n7]=ie[jE]=ie[YE]=ie[a7]=ie[i7]=ie[o7]=ie[s7]=ie[l7]=ie[ZE]=ie[KE]=ie[Vu]=ie[XE]=ie[JE]=ie[QE]=ie[e7]=ie[c7]=ie[u7]=ie[f7]=ie[d7]=!0,ie[qE]=ie[zu]=ie[t7]=!1;function wa(e,t,r,n,a,i){var o,s=t&RE,l=t&BE,c=t&HE;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!LE(e))return e;var u=IE(e);if(u){if(o=kE(e),!s)return xE(e,o)}else{var f=ME(e),d=f==zu||f==GE;if(PE(e))return TE(e,s);if(f==Vu||f==Wu||d&&!a){if(o=l||d?{}:NE(e),!s)return l?$E(e,DE(o,e)):EE(e,OE(o,e))}else{if(!ie[f])return a?e:{};o=AE(e,f,s)}}i||(i=new yE);var h=i.get(e);if(h)return h;i.set(e,o),WE(e)?e.forEach(function(v){o.add(wa(v,t,r,v,e,i))}):FE(e)&&e.forEach(function(v,b){o.set(b,wa(v,t,r,b,e,i))});var m=c?l?_E:CE:l?VE:zE,p=u?void 0:m(e);return wE(p||e,function(v,b){p&&(b=v,v=e[b]),SE(o,b,wa(v,t,r,b,e,i))}),o}var h7=wa;function p7(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var m7=p7,v7=Un,g7=Hl;function b7(e,t){return t.length<2?e:v7(e,g7(t,0,-1))}var y7=b7,w7=Hn,S7=m7,O7=y7,D7=Br;function T7(e,t){return t=w7(t,e),e=O7(e,t),e==null||delete e[D7(S7(t))]}var x7=T7,E7=ur,$7=ya,C7=wt,_7="[object Object]",M7=Function.prototype,k7=Object.prototype,Ru=M7.toString,A7=k7.hasOwnProperty,N7=Ru.call(Object);function I7(e){if(!C7(e)||E7(e)!=_7)return!1;var t=$7(e);if(t===null)return!0;var r=A7.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ru.call(r)==N7}var P7=I7,F7=P7;function L7(e){return F7(e)?void 0:e}var W7=L7,z7=du;function V7(e){var t=e==null?0:e.length;return t?z7(e,1):[]}var R7=V7,B7=R7,H7=mu,U7=bu;function j7(e){return U7(H7(e,void 0,B7),e+"")}var Y7=j7,q7=li,G7=h7,Z7=x7,K7=Hn,X7=hn,J7=W7,Q7=Y7,e$=$u,t$=1,r$=2,n$=4,a$=Q7(function(e,t){var r={};if(e==null)return r;var n=!1;t=q7(t,function(i){return i=K7(i,e),n||(n=i.length>1),i}),X7(e,e$(e),r),n&&(r=G7(r,t$|r$|n$,J7));for(var a=t.length;a--;)Z7(r,t[a]);return r}),i$=a$;const o$=ge(i$);var s$=Tu,l$=Nu,c$=to,u$=va,f$=ya,d$=Be,h$=ua,p$=ni,m$=st,v$=Hi;function g$(e,t,r){var n=d$(e),a=n||h$(e)||v$(e);if(t=u$(t),r==null){var i=e&&e.constructor;a?r=n?new i:[]:m$(e)?r=p$(i)?l$(f$(e)):{}:r={}}return(a?s$:c$)(e,function(o,s,l){return t(r,o,s,l)}),r}var b$=g$;const y$=ge(b$);var Bu={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ge,function(){return function(r,n,a){n.prototype.isBetween=function(i,o,s,l){var c=a(i),u=a(o),f=(l=l||"()")[0]==="(",d=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(d?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(d?this.isAfter(u,s):!this.isBefore(u,s))}}})})(Bu);var w$=Bu.exports;const S$=ge(w$);var Hu={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ge,function(){return function(r,n){n.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})(Hu);var O$=Hu.exports;const D$=ge(O$);var Uu={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ge,function(){return function(r,n){n.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(Uu);var T$=Uu.exports;const x$=ge(T$);var ju={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ge,function(){return function(r,n,a){var i=n.prototype,o=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,d,h,m,p){var v=f.name?f:f.$locale(),b=o(v[d]),y=o(v[h]),O=b||y.map(function(w){return w.slice(0,m)});if(!p)return O;var S=v.weekStart;return O.map(function(w,D){return O[(D+(S||0))%7]})},l=function(){return a.Ls[a.locale()]},c=function(f,d){return f.formats[d]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,p,v){return p||v.slice(1)})}(f.formats[d.toUpperCase()])},u=function(){var f=this;return{months:function(d){return d?d.format("MMMM"):s(f,"months")},monthsShort:function(d){return d?d.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):s(f,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return c(f.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return u.bind(this)()},a.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(d){return c(f,d)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(l(),"months")},a.monthsShort=function(){return s(l(),"monthsShort","months",3)},a.weekdays=function(f){return s(l(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}})})(ju);var E$=ju.exports;const $$=ge(E$);var Yu={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ge,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(n,a,i){var o=a.prototype,s=o.format;i.en.formats=r,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,d){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,p){var v=p&&p.toUpperCase();return m||d[p]||r[p]||d[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,O){return y||O.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(Yu);var C$=Yu.exports;const _$=ge(C$);var qu={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ge,function(){return function(r,n,a){var i=function(o,s){if(!s||!s.length||s.length===1&&!s[0]||s.length===1&&Array.isArray(s[0])&&!s[0].length)return null;var l;s.length===1&&s[0].length>0&&(s=s[0]),l=(s=s.filter(function(u){return u}))[0];for(var c=1;c<s.length;c+=1)s[c].isValid()&&!s[c][o](l)||(l=s[c]);return l};a.max=function(){var o=[].slice.call(arguments,0);return i("isAfter",o)},a.min=function(){var o=[].slice.call(arguments,0);return i("isBefore",o)}}})})(qu);var M$=qu.exports;const k$=ge(M$);var Gu={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ge,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(i,o,s){var l=o.prototype;s.utc=function(p){var v={date:p,utc:!0,args:arguments};return new o(v)},l.utc=function(p){var v=s(this.toDate(),{locale:this.$L,utc:!0});return p?v.add(this.utcOffset(),r):v},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),c.call(this,p)};var u=l.init;l.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(p,v){var b=this.$utils().u;if(b(p))return this.$u?0:b(this.$offset)?f.call(this):this.$offset;if(typeof p=="string"&&(p=function(w){w===void 0&&(w="");var D=w.match(n);if(!D)return null;var T=(""+D[0]).match(a)||["-",0,0],x=T[0],E=60*+T[1]+ +T[2];return E===0?0:x==="+"?E:-E}(p),p===null))return this;var y=Math.abs(p)<=16?60*p:p,O=this;if(v)return O.$offset=y,O.$u=p===0,O;if(p!==0){var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(O=this.local().add(y+S,r)).$offset=y,O.$x.$localOffset=S}else O=this.utc();return O};var d=l.format;l.format=function(p){var v=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,v)},l.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var h=l.toDate;l.toDate=function(p){return p==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var m=l.diff;l.diff=function(p,v,b){if(p&&this.$u===p.$u)return m.call(this,p,v,b);var y=this.local(),O=s(p).local();return m.call(y,O,v,b)}}})})(Gu);var A$=Gu.exports;const N$=ge(A$);function ut(e){return e.children}var Oe={PREVIOUS:"PREV",NEXT:"NEXT",TODAY:"TODAY",DATE:"DATE"},Me={MONTH:"month",WEEK:"week",WORK_WEEK:"work_week",DAY:"day",AGENDA:"agenda"},Zu=Object.keys(Me).map(function(e){return Me[e]});k.oneOfType([k.string,k.func]),k.any,k.func,k.oneOfType([k.arrayOf(k.oneOf(Zu)),k.objectOf(function(e,t){var r=Zu.indexOf(t)!==-1&&typeof e[t]=="boolean";if(r)return null;for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];return k.elementType.apply(k,[e,t].concat(a))})]),k.oneOfType([k.oneOf(["overlap","no-overlap"]),k.func]);var Ku={seconds:1e3,minutes:1e3*60,hours:1e3*60*60,day:1e3*60*60*24};function Xu(e,t){var r=Se(e,"month");return Se(r,"week",t.startOfWeek())}function Ju(e,t){var r=Xn(e,"month");return Xn(r,"week",t.startOfWeek())}function I$(e,t){for(var r=Xu(e,t),n=Ju(e,t),a=[];mr(r,n,"day");)a.push(r),r=Qe(r,1,"day");return a}function P$(e,t){var r=Se(e,t);return Zr(r,e)?r:Qe(r,1,t)}function F$(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"day",n=e,a=[];mr(n,t,r);)a.push(n),n=Qe(n,1,r);return a}function L$(e,t){return t==null&&e==null?null:(t==null&&(t=new Date),e==null&&(e=new Date),e=Se(e,"day"),e=Qr(e,Qr(t)),e=vr(e,vr(t)),e=Jr(e,Jr(t)),Xr(e,Xr(t)))}function Qu(e){return Qr(e)===0&&vr(e)===0&&Jr(e)===0&&Xr(e)===0}function W$(e,t,r,n){return r==="day"&&(r="date"),Math.abs(hi[r](e,void 0,n)-hi[r](t,void 0,n))}function io(e,t,r){return!r||r==="milliseconds"?Math.abs(+e-+t):Math.round(Math.abs(+Se(e,r)/Ku[r]-+Se(t,r)/Ku[r]))}var z$=k.oneOfType([k.string,k.func]);function V$(e,t,r,n,a){var i=typeof n=="function"?n(r,a,e):t.call(e,r,n,a);return Hr(i==null||typeof i=="string","`localizer format(..)` must return a string, null, or undefined"),i}function R$(e,t,r){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,t+r,0,0)}function oo(e,t){return e.getTimezoneOffset()-t.getTimezoneOffset()}function B$(e,t){return io(e,t,"minutes")+oo(e,t)}function H$(e){var t=Se(e,"day");return io(t,e,"minutes")+oo(t,e)}function U$(e,t){return di(e,t,"day")}function j$(e,t,r){var n=Zr(e,t,"minutes");return n?Kr(t,r,"minutes"):Jn(t,r,"minutes")}function so(e,t){return W$(e,t,"day")}function Y$(e){var t=e.evtA,r=t.start,n=t.end,a=t.allDay,i=e.evtB,o=i.start,s=i.end,l=i.allDay,c=+Se(r,"day")-+Se(o,"day"),u=so(r,n),f=so(o,s);return c||f-u||!!l-!!a||+r-+o||+n-+s}function q$(e){var t=e.event,r=t.start,n=t.end,a=e.range,i=a.start,o=a.end,s=Se(r,"day"),l=mr(s,o,"day"),c=fi(s,n,"minutes"),u=c?Jn(n,i,"minutes"):Kr(n,i,"minutes");return l&&u}function G$(e,t){return Zr(e,t,"day")}function Z$(e,t){return Qu(e)&&Qu(t)}var K$=we(function e(t){var r=this;ye(this,e),Hr(typeof t.format=="function","date localizer `format(..)` must be a function"),Hr(typeof t.firstOfWeek=="function","date localizer `firstOfWeek(..)` must be a function"),this.propType=t.propType||z$,this.formats=t.formats,this.format=function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return V$.apply(void 0,[r,t.format].concat(a))},this.startOfWeek=t.firstOfWeek,this.merge=t.merge||L$,this.inRange=t.inRange||Wl,this.lt=t.lt||di,this.lte=t.lte||mr,this.gt=t.gt||Jn,this.gte=t.gte||Kr,this.eq=t.eq||Zr,this.neq=t.neq||fi,this.startOf=t.startOf||Se,this.endOf=t.endOf||Xn,this.add=t.add||Qe,this.range=t.range||F$,this.diff=t.diff||io,this.ceil=t.ceil||P$,this.min=t.min||Fl,this.max=t.max||Ll,this.minutes=t.minutes||vr,this.daySpan=t.daySpan||so,this.firstVisibleDay=t.firstVisibleDay||Xu,this.lastVisibleDay=t.lastVisibleDay||Ju,this.visibleDays=t.visibleDays||I$,this.getSlotDate=t.getSlotDate||R$,this.getTimezoneOffset=t.getTimezoneOffset||function(n){return n.getTimezoneOffset()},this.getDstOffset=t.getDstOffset||oo,this.getTotalMin=t.getTotalMin||B$,this.getMinutesFromMidnight=t.getMinutesFromMidnight||H$,this.continuesPrior=t.continuesPrior||U$,this.continuesAfter=t.continuesAfter||j$,this.sortEvents=t.sortEvents||Y$,this.inEventRange=t.inEventRange||q$,this.isSameDate=t.isSameDate||G$,this.startAndEndAreDateOnly=t.startAndEndAreDateOnly||Z$,this.segmentOffset=t.browserTZOffset?t.browserTZOffset():0});function X$(e,t,r,n){var a=ne(ne({},e.formats),r);return ne(ne({},e),{},{messages:n,startOfWeek:function(){return e.startOfWeek(t)},format:function(o,s){return e.format(o,a[s]||s,t)}})}var J$=function(e){function t(){var r;ye(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Ee(this,t,[].concat(a)),r.navigate=function(o){r.props.onNavigate(o)},r.view=function(o){r.props.onView(o)},r}return $e(t,e),we(t,[{key:"render",value:function(){var n=this.props,a=n.localizer.messages,i=n.label;return g.createElement("div",{className:"rbc-toolbar"},g.createElement("span",{className:"rbc-btn-group"},g.createElement("button",{type:"button",onClick:this.navigate.bind(null,Oe.TODAY)},a.today),g.createElement("button",{type:"button",onClick:this.navigate.bind(null,Oe.PREVIOUS)},a.previous),g.createElement("button",{type:"button",onClick:this.navigate.bind(null,Oe.NEXT)},a.next)),g.createElement("span",{className:"rbc-toolbar-label"},i),g.createElement("span",{className:"rbc-btn-group"},this.viewNamesGroup(a)))}},{key:"viewNamesGroup",value:function(n){var a=this,i=this.props.views,o=this.props.view;if(i.length>1)return i.map(function(s){return g.createElement("button",{type:"button",key:s,className:he({"rbc-active":o===s}),onClick:a.view.bind(null,s)},n[s])})}}])}(g.Component);function se(e,t){e&&e.apply(null,[].concat(t))}var Q$={date:"Date",time:"Time",event:"Event",allDay:"All Day",week:"Week",work_week:"Work Week",day:"Day",month:"Month",previous:"Back",next:"Next",yesterday:"Yesterday",tomorrow:"Tomorrow",today:"Today",agenda:"Agenda",noEventsInRange:"There are no events in this range.",showMore:function(t){return"+".concat(t," more")}};function eC(e){return ne(ne({},Q$),e)}function tC(e){var t=e.ref,r=e.callback;g.useEffect(function(){var n=function(i){t.current&&!t.current.contains(i.target)&&r()};return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}},[t,r])}var rC=["style","className","event","selected","isAllDay","onSelect","onDoubleClick","onKeyPress","localizer","continuesPrior","continuesAfter","accessors","getters","children","components","slotStart","slotEnd"],ef=function(e){function t(){return ye(this,t),Ee(this,t,arguments)}return $e(t,e),we(t,[{key:"render",value:function(){var n=this.props,a=n.style,i=n.className,o=n.event,s=n.selected,l=n.isAllDay,c=n.onSelect,u=n.onDoubleClick,f=n.onKeyPress,d=n.localizer,h=n.continuesPrior,m=n.continuesAfter,p=n.accessors,v=n.getters,b=n.children,y=n.components,O=y.event,S=y.eventWrapper,w=n.slotStart,D=n.slotEnd,T=nt(n,rC);delete T.resizable;var x=p.title(o),E=p.tooltip(o),M=p.end(o),N=p.start(o),V=p.allDay(o),P=l||V||d.diff(N,d.ceil(M,"day"),"day")>1,B=v.eventProp(o,N,M,s),J=g.createElement("div",{className:"rbc-event-content",title:E||void 0},O?g.createElement(O,{event:o,continuesPrior:h,continuesAfter:m,title:x,isAllDay:V,localizer:d,slotStart:w,slotEnd:D}):x);return g.createElement(S,Object.assign({},this.props,{type:"date"}),g.createElement("div",Object.assign({},T,{style:ne(ne({},B.style),a),className:he("rbc-event",i,B.className,{"rbc-selected":s,"rbc-event-allday":P,"rbc-event-continues-prior":h,"rbc-event-continues-after":m}),onClick:function(K){return c&&c(o,K)},onDoubleClick:function(K){return u&&u(o,K)},onKeyDown:function(K){return f&&f(o,K)}}),typeof b=="function"?b(J):J))}}])}(g.Component);function Sa(e,t){return!e||t==null?!1:XS(e,t)}function tf(e,t){var r=e.right-e.left,n=r/t;return n}function rf(e,t,r,n){var a=tf(e,n);return r?n-1-Math.floor((t-e.left)/a):Math.floor((t-e.left)/a)}function nC(e,t){var r=t.x,n=t.y;return n>=e.top&&n<=e.bottom&&r>=e.left&&r<=e.right}function aC(e,t,r,n,a){var i=-1,o=-1,s=n-1,l=tf(t,n),c=rf(t,r.x,a,n),u=t.top<r.y&&t.bottom>r.y,f=t.top<e.y&&t.bottom>e.y,d=e.y>t.bottom,h=t.top>e.y,m=r.top<t.top&&r.bottom>t.bottom;return m&&(i=0,o=s),u&&(h?(i=0,o=c):d&&(i=c,o=s)),f&&(i=o=a?s-Math.floor((e.x-t.left)/l):Math.floor((e.x-t.left)/l),u?c<i?i=c:o=c:e.y<r.y?o=s:i=0),{startIdx:i,endIdx:o}}function iC(e){var t=e.target,r=e.offset,n=e.container,a=e.box,i=Bt(t),o=i.top,s=i.left,l=i.width,c=i.height,u=Bt(n),f=u.top,d=u.left,h=u.width,m=u.height,p=Bt(a),v=p.width,b=p.height,y=f+m,O=d+h,S=o+b,w=s+v,D=r.x,T=r.y,x=S>y?o-b-T:o+T+c,E=w>O?s+D-v+l:s+D;return{topOffset:x,leftOffset:E}}function oC(e){var t=e.containerRef,r=e.accessors,n=e.getters,a=e.selected,i=e.components,o=e.localizer,s=e.position,l=e.show,c=e.events,u=e.slotStart,f=e.slotEnd,d=e.onSelect,h=e.onDoubleClick,m=e.onKeyPress,p=e.handleDragStart,v=e.popperRef,b=e.target,y=e.offset;tC({ref:v,callback:l}),g.useLayoutEffect(function(){var w=iC({target:b,offset:y,container:t.current,box:v.current}),D=w.topOffset,T=w.leftOffset;v.current.style.top="".concat(D,"px"),v.current.style.left="".concat(T,"px")},[y.x,y.y,b]);var O=s.width,S={minWidth:O+O/2};return g.createElement("div",{style:S,className:"rbc-overlay",ref:v},g.createElement("div",{className:"rbc-overlay-header"},o.format(u,"dayHeaderFormat")),c.map(function(w,D){return g.createElement(ef,{key:D,type:"popup",localizer:o,event:w,getters:n,onSelect:d,accessors:r,components:i,onDoubleClick:h,onKeyPress:m,continuesPrior:o.lt(r.end(w),u,"day"),continuesAfter:o.gte(r.start(w),f,"day"),slotStart:u,slotEnd:f,selected:Sa(w,a),draggable:!0,onDragStart:function(){return p(w)},onDragEnd:function(){return l()}})}))}var nf=g.forwardRef(function(e,t){return g.createElement(oC,Object.assign({},e,{popperRef:t}))});nf.propTypes={accessors:k.object.isRequired,getters:k.object.isRequired,selected:k.object,components:k.object.isRequired,localizer:k.object.isRequired,position:k.object.isRequired,show:k.func.isRequired,events:k.array.isRequired,slotStart:k.instanceOf(Date).isRequired,slotEnd:k.instanceOf(Date),onSelect:k.func,onDoubleClick:k.func,onKeyPress:k.func,handleDragStart:k.func,style:k.object,offset:k.shape({x:k.number,y:k.number})};function sC(e){var t=e.containerRef,r=e.popupOffset,n=r===void 0?5:r,a=e.overlay,i=e.accessors,o=e.localizer,s=e.components,l=e.getters,c=e.selected,u=e.handleSelectEvent,f=e.handleDoubleClickEvent,d=e.handleKeyPressEvent,h=e.handleDragStart,m=e.onHide,p=e.overlayDisplay,v=g.useRef(null);if(!a.position)return null;var b=n;isNaN(n)||(b={x:n,y:n});var y=a.position,O=a.events,S=a.date,w=a.end;return g.createElement(Fi,{rootClose:!0,flip:!0,show:!0,placement:"bottom",onHide:m,target:a.target},function(D){var T=D.props;return g.createElement(nf,Object.assign({},T,{containerRef:t,ref:v,target:a.target,offset:b,accessors:i,getters:l,selected:c,components:s,localizer:o,position:y,show:p,events:O,slotStart:S,slotEnd:w,onSelect:u,onDoubleClick:f,onKeyPress:d,handleDragStart:h}))})}var lo=g.forwardRef(function(e,t){return g.createElement(sC,Object.assign({},e,{containerRef:t}))});lo.propTypes={popupOffset:k.oneOfType([k.number,k.shape({x:k.number,y:k.number})]),overlay:k.shape({position:k.object,events:k.array,date:k.instanceOf(Date),end:k.instanceOf(Date)}),accessors:k.object.isRequired,localizer:k.object.isRequired,components:k.object.isRequired,getters:k.object.isRequired,selected:k.object,handleSelectEvent:k.func,handleDoubleClickEvent:k.func,handleKeyPressEvent:k.func,handleDragStart:k.func,onHide:k.func,overlayDisplay:k.func};function Ce(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:document;return fn(r,e,t,{passive:!1})}function lC(e,t,r){return!e||rn(e,document.elementFromPoint(t,r))}function cC(e,t){var r=t.clientX,n=t.clientY,a=document.elementFromPoint(r,n);return au(a,".rbc-event",e)}function uC(e,t){var r=t.clientX,n=t.clientY,a=document.elementFromPoint(r,n);return au(a,".rbc-show-more",e)}function Oa(e,t){return!!cC(e,t)}function fC(e,t){return!!uC(e,t)}function pn(e){var t=e;return e.touches&&e.touches.length&&(t=e.touches[0]),{clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY}}var af=5,dC=250,of=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.global,a=n===void 0?!1:n,i=r.longPressThreshold,o=i===void 0?250:i,s=r.validContainers,l=s===void 0?[]:s;ye(this,e),this._initialEvent=null,this.selecting=!1,this.isDetached=!1,this.container=t,this.globalMouse=!t||a,this.longPressThreshold=o,this.validContainers=l,this._listeners=Object.create(null),this._handleInitialEvent=this._handleInitialEvent.bind(this),this._handleMoveEvent=this._handleMoveEvent.bind(this),this._handleTerminatingEvent=this._handleTerminatingEvent.bind(this),this._keyListener=this._keyListener.bind(this),this._dropFromOutsideListener=this._dropFromOutsideListener.bind(this),this._dragOverFromOutsideListener=this._dragOverFromOutsideListener.bind(this),this._removeTouchMoveWindowListener=Ce("touchmove",function(){},window),this._removeKeyDownListener=Ce("keydown",this._keyListener),this._removeKeyUpListener=Ce("keyup",this._keyListener),this._removeDropFromOutsideListener=Ce("drop",this._dropFromOutsideListener),this._removeDragOverFromOutsideListener=Ce("dragover",this._dragOverFromOutsideListener),this._addInitialEventListener()}return we(e,[{key:"on",value:function(r,n){var a=this._listeners[r]||(this._listeners[r]=[]);return a.push(n),{remove:function(){var o=a.indexOf(n);o!==-1&&a.splice(o,1)}}}},{key:"emit",value:function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];var o,s=this._listeners[r]||[];return s.forEach(function(l){o===void 0&&(o=l.apply(void 0,a))}),o}},{key:"teardown",value:function(){this._initialEvent=null,this._initialEventData=null,this._selectRect=null,this.selecting=!1,this._lastClickData=null,this.isDetached=!0,this._listeners=Object.create(null),this._removeTouchMoveWindowListener&&this._removeTouchMoveWindowListener(),this._removeInitialEventListener&&this._removeInitialEventListener(),this._removeEndListener&&this._removeEndListener(),this._onEscListener&&this._onEscListener(),this._removeMoveListener&&this._removeMoveListener(),this._removeKeyUpListener&&this._removeKeyUpListener(),this._removeKeyDownListener&&this._removeKeyDownListener(),this._removeDropFromOutsideListener&&this._removeDropFromOutsideListener(),this._removeDragOverFromOutsideListener&&this._removeDragOverFromOutsideListener()}},{key:"isSelected",value:function(r){var n=this._selectRect;return!n||!this.selecting?!1:sf(n,Yt(r))}},{key:"filter",value:function(r){var n=this._selectRect;return!n||!this.selecting?[]:r.filter(this.isSelected,this)}},{key:"_addLongPressListener",value:function(r,n){var a=this,i=null,o=null,s=null,l=function(d){i=setTimeout(function(){u(),r(d)},a.longPressThreshold),o=Ce("touchmove",function(){return u()}),s=Ce("touchend",function(){return u()})},c=Ce("touchstart",l),u=function(){i&&clearTimeout(i),o&&o(),s&&s(),i=null,o=null,s=null};return n&&l(n),function(){u(),c()}}},{key:"_addInitialEventListener",value:function(){var r=this,n=Ce("mousedown",function(i){r._removeInitialEventListener(),r._handleInitialEvent(i),r._removeInitialEventListener=Ce("mousedown",r._handleInitialEvent)}),a=Ce("touchstart",function(i){r._removeInitialEventListener(),r._removeInitialEventListener=r._addLongPressListener(r._handleInitialEvent,i)});this._removeInitialEventListener=function(){n(),a()}}},{key:"_dropFromOutsideListener",value:function(r){var n=pn(r),a=n.pageX,i=n.pageY,o=n.clientX,s=n.clientY;this.emit("dropFromOutside",{x:a,y:i,clientX:o,clientY:s}),r.preventDefault()}},{key:"_dragOverFromOutsideListener",value:function(r){var n=pn(r),a=n.pageX,i=n.pageY,o=n.clientX,s=n.clientY;this.emit("dragOverFromOutside",{x:a,y:i,clientX:o,clientY:s}),r.preventDefault()}},{key:"_handleInitialEvent",value:function(r){if(this._initialEvent=r,!this.isDetached){var n=pn(r),a=n.clientX,i=n.clientY,o=n.pageX,s=n.pageY,l=this.container(),c,u;if(!(r.which===3||r.button===2||!lC(l,a,i))){if(!this.globalMouse&&l&&!rn(l,r.target)){var f=hC(0),d=f.top,h=f.left,m=f.bottom,p=f.right;if(u=Yt(l),c=sf({top:u.top-d,left:u.left-h,bottom:u.bottom+m,right:u.right+p},{top:s,left:o}),!c)return}var v=this.emit("beforeSelect",this._initialEventData={isTouch:/^touch/.test(r.type),x:o,y:s,clientX:a,clientY:i});if(v!==!1)switch(r.type){case"mousedown":this._removeEndListener=Ce("mouseup",this._handleTerminatingEvent),this._onEscListener=Ce("keydown",this._handleTerminatingEvent),this._removeMoveListener=Ce("mousemove",this._handleMoveEvent);break;case"touchstart":this._handleMoveEvent(r),this._removeEndListener=Ce("touchend",this._handleTerminatingEvent),this._removeMoveListener=Ce("touchmove",this._handleMoveEvent);break}}}}},{key:"_isWithinValidContainer",value:function(r){var n=r.target,a=this.validContainers;return!a||!a.length||!n?!0:a.some(function(i){return!!n.closest(i)})}},{key:"_handleTerminatingEvent",value:function(r){var n=this.selecting,a=this._selectRect;if(!n&&r.type.includes("key")&&(r=this._initialEvent),this.selecting=!1,this._removeEndListener&&this._removeEndListener(),this._removeMoveListener&&this._removeMoveListener(),this._selectRect=null,this._initialEvent=null,this._initialEventData=null,!!r){var i=!this.container||rn(this.container(),r.target),o=this._isWithinValidContainer(r);return r.key==="Escape"||!o?this.emit("reset"):!n&&i?this._handleClickEvent(r):n?this.emit("select",a):this.emit("reset")}}},{key:"_handleClickEvent",value:function(r){var n=pn(r),a=n.pageX,i=n.pageY,o=n.clientX,s=n.clientY,l=new Date().getTime();return this._lastClickData&&l-this._lastClickData.timestamp<dC?(this._lastClickData=null,this.emit("doubleClick",{x:a,y:i,clientX:o,clientY:s})):(this._lastClickData={timestamp:l},this.emit("click",{x:a,y:i,clientX:o,clientY:s}))}},{key:"_handleMoveEvent",value:function(r){if(!(this._initialEventData===null||this.isDetached)){var n=this._initialEventData,a=n.x,i=n.y,o=pn(r),s=o.pageX,l=o.pageY,c=Math.abs(a-s),u=Math.abs(i-l),f=Math.min(s,a),d=Math.min(l,i),h=this.selecting,m=this.isClick(s,l);m&&!h&&!(c||u)||(!h&&!m&&this.emit("selectStart",this._initialEventData),m||(this.selecting=!0,this._selectRect={top:d,left:f,x:s,y:l,right:f+c,bottom:d+u},this.emit("selecting",this._selectRect)),r.preventDefault())}}},{key:"_keyListener",value:function(r){this.ctrl=r.metaKey||r.ctrlKey}},{key:"isClick",value:function(r,n){var a=this._initialEventData,i=a.x,o=a.y,s=a.isTouch;return!s&&Math.abs(r-i)<=af&&Math.abs(n-o)<=af}}])}();function hC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return lt(e)!=="object"&&(e={top:e,left:e,right:e,bottom:e}),e}function sf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Yt(e),a=n.top,i=n.left,o=n.right,s=o===void 0?i:o,l=n.bottom,c=l===void 0?a:l,u=Yt(t),f=u.top,d=u.left,h=u.right,m=h===void 0?d:h,p=u.bottom,v=p===void 0?f:p;return!(c-r<f||a+r>v||s-r<d||i+r>m)}function Yt(e){if(!e.getBoundingClientRect)return e;var t=e.getBoundingClientRect(),r=t.left+lf("left"),n=t.top+lf("top");return{top:n,left:r,right:(e.offsetWidth||0)+r,bottom:(e.offsetHeight||0)+n}}function lf(e){if(e==="left")return window.pageXOffset||document.body.scrollLeft||0;if(e==="top")return window.pageYOffset||document.body.scrollTop||0}var pC=function(e){function t(r,n){var a;return ye(this,t),a=Ee(this,t,[r,n]),a.state={selecting:!1},a.containerRef=g.createRef(),a}return $e(t,e),we(t,[{key:"componentDidMount",value:function(){this.props.selectable&&this._selectable()}},{key:"componentWillUnmount",value:function(){this._teardownSelectable()}},{key:"componentDidUpdate",value:function(n){!n.selectable&&this.props.selectable&&this._selectable(),n.selectable&&!this.props.selectable&&this._teardownSelectable()}},{key:"render",value:function(){var n=this.props,a=n.range,i=n.getNow,o=n.getters,s=n.date,l=n.components.dateCellWrapper,c=n.localizer,u=this.state,f=u.selecting,d=u.startIdx,h=u.endIdx,m=i();return g.createElement("div",{className:"rbc-row-bg",ref:this.containerRef},a.map(function(p,v){var b=f&&v>=d&&v<=h,y=o.dayProp(p),O=y.className,S=y.style;return g.createElement(l,{key:v,value:p,range:a},g.createElement("div",{style:S,className:he("rbc-day-bg",O,b&&"rbc-selected-cell",c.isSameDate(p,m)&&"rbc-today",s&&c.neq(s,p,"month")&&"rbc-off-range-bg")}))}))}},{key:"_selectable",value:function(){var n=this,a=this.containerRef.current,i=this._selector=new of(this.props.container,{longPressThreshold:this.props.longPressThreshold}),o=function(l,c){if(!Oa(a,l)&&!fC(a,l)){var u=Yt(a),f=n.props,d=f.range,h=f.rtl;if(nC(u,l)){var m=rf(u,l.x,h,d.length);n._selectSlot({startIdx:m,endIdx:m,action:c,box:l})}}n._initial={},n.setState({selecting:!1})};i.on("selecting",function(s){var l=n.props,c=l.range,u=l.rtl,f=-1,d=-1;if(n.state.selecting||(se(n.props.onSelectStart,[s]),n._initial={x:s.x,y:s.y}),i.isSelected(a)){var h=Yt(a),m=aC(n._initial,h,s,c.length,u);f=m.startIdx,d=m.endIdx}n.setState({selecting:!0,startIdx:f,endIdx:d})}),i.on("beforeSelect",function(s){if(n.props.selectable==="ignoreEvents")return!Oa(n.containerRef.current,s)}),i.on("click",function(s){return o(s,"click")}),i.on("doubleClick",function(s){return o(s,"doubleClick")}),i.on("select",function(s){n._selectSlot(ne(ne({},n.state),{},{action:"select",bounds:s})),n._initial={},n.setState({selecting:!1}),se(n.props.onSelectEnd,[n.state])})}},{key:"_teardownSelectable",value:function(){this._selector&&(this._selector.teardown(),this._selector=null)}},{key:"_selectSlot",value:function(n){var a=n.endIdx,i=n.startIdx,o=n.action,s=n.bounds,l=n.box;a!==-1&&i!==-1&&this.props.onSelectSlot&&this.props.onSelectSlot({start:i,end:a,action:o,bounds:s,box:l,resourceId:this.props.resourceId})}}])}(g.Component),ot={propTypes:{slotMetrics:k.object.isRequired,selected:k.object,isAllDay:k.bool,accessors:k.object.isRequired,localizer:k.object.isRequired,components:k.object.isRequired,getters:k.object.isRequired,onSelect:k.func,onDoubleClick:k.func,onKeyPress:k.func},defaultProps:{segments:[],selected:{}},renderEvent:function(t,r){var n=t.selected;t.isAllDay;var a=t.accessors,i=t.getters,o=t.onSelect,s=t.onDoubleClick,l=t.onKeyPress,c=t.localizer,u=t.slotMetrics,f=t.components,d=t.resizable,h=u.continuesPrior(r),m=u.continuesAfter(r);return g.createElement(ef,{event:r,getters:i,localizer:c,accessors:a,components:f,onSelect:o,onDoubleClick:s,onKeyPress:l,continuesPrior:h,continuesAfter:m,slotStart:u.first,slotEnd:u.last,selected:Sa(r,n),resizable:d})},renderSpan:function(t,r,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",i=Math.abs(r)/t*100+"%";return g.createElement("div",{key:n,className:"rbc-row-segment",style:{WebkitFlexBasis:i,flexBasis:i,maxWidth:i}},a)}},cf=function(e){function t(){return ye(this,t),Ee(this,t,arguments)}return $e(t,e),we(t,[{key:"render",value:function(){var n=this,a=this.props,i=a.segments,o=a.slotMetrics.slots,s=a.className,l=1;return g.createElement("div",{className:he(s,"rbc-row")},i.reduce(function(c,u,f){var d=u.event,h=u.left,m=u.right,p=u.span,v="_lvl_"+f,b=h-l,y=ot.renderEvent(n.props,d);return b&&c.push(ot.renderSpan(o,b,"".concat(v,"_gap"))),c.push(ot.renderSpan(o,p,v,y)),l=m+1,c},[]))}}])}(g.Component);cf.defaultProps=ne({},ot.defaultProps);function uf(e){var t=e.dateRange,r=e.unit,n=r===void 0?"day":r,a=e.localizer;return{first:t[0],last:a.add(t[t.length-1],1,n)}}function mC(e,t,r,n){var a=uf({dateRange:t,localizer:n}),i=a.first,o=a.last,s=n.diff(i,o,"day"),l=n.max(n.startOf(r.start(e),"day"),i),c=n.min(n.ceil(r.end(e),"day"),o),u=hO(t,function(d){return n.isSameDate(d,l)}),f=n.diff(l,c,"day");return f=Math.min(f,s),f=Math.max(f-n.segmentOffset,1),{event:e,span:f,left:u+1,right:Math.max(u+f,1)}}function ff(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0,r,n,a,i=[],o=[];for(r=0;r<e.length;r++){for(a=e[r],n=0;n<i.length&&vC(a,i[n]);n++);n>=t?o.push(a):(i[n]||(i[n]=[])).push(a)}for(r=0;r<i.length;r++)i[r].sort(function(s,l){return s.left-l.left});return{levels:i,extra:o}}function mn(e,t,r,n,a){var i={start:n.start(e),end:n.end(e)},o={start:t,end:r};return a.inEventRange({event:i,range:o})}function vC(e,t){return t.some(function(r){return r.left<=e.right&&r.right>=e.left})}function gC(e,t,r){var n=ea(e),a=[],i=[];n.forEach(function(l){var c=t.start(l),u=t.end(l);r.daySpan(c,u)>1?a.push(l):i.push(l)});var o=a.sort(function(l,c){return co(l,c,t,r)}),s=i.sort(function(l,c){return co(l,c,t,r)});return[].concat(ea(o),ea(s))}function co(e,t,r,n){var a={start:r.start(e),end:r.end(e),allDay:r.allDay(e)},i={start:r.start(t),end:r.end(t),allDay:r.allDay(t)};return n.sortEvents({evtA:a,evtB:i})}var df=function(t,r){return t.left<=r&&t.right>=r},hf=function(t,r){return t.filter(function(n){return df(n,r)}).map(function(n){return n.event})},pf=function(e){function t(){return ye(this,t),Ee(this,t,arguments)}return $e(t,e),we(t,[{key:"render",value:function(){for(var n=this.props,a=n.segments,i=n.slotMetrics.slots,o=ff(a).levels[0],s=1,l=1,c=[];s<=i;){var u="_lvl_"+s,f=o.filter(function(y){return df(y,s)})[0]||{},d=f.event,h=f.left,m=f.right,p=f.span;if(!d){s++;continue}var v=Math.max(0,h-l);if(this.canRenderSlotEvent(h,p)){var b=ot.renderEvent(this.props,d);v&&c.push(ot.renderSpan(i,v,u+"_gap")),c.push(ot.renderSpan(i,p,u,b)),l=s=m+1}else v&&c.push(ot.renderSpan(i,v,u+"_gap")),c.push(ot.renderSpan(i,1,u,this.renderShowMore(a,s))),l=s=s+1}return g.createElement("div",{className:"rbc-row"},c)}},{key:"canRenderSlotEvent",value:function(n,a){var i=this.props.segments;return xO(n,n+a).every(function(o){var s=hf(i,o).length;return s===1})}},{key:"renderShowMore",value:function(n,a){var i=this,o=this.props,s=o.localizer,l=o.slotMetrics,c=o.components,u=l.getEventsForSlot(a),f=hf(n,a),d=f.length;if(c!=null&&c.showMore){var h=c.showMore,m=l.getDateForSlot(a-1);return d?g.createElement(h,{localizer:s,slotDate:m,slot:a,count:d,events:u,remainingEvents:f}):!1}return d?g.createElement("button",{type:"button",key:"sm_"+a,className:he("rbc-button-link","rbc-show-more"),onClick:function(v){return i.showMore(a,v)}},s.messages.showMore(d,f,u)):!1}},{key:"showMore",value:function(n,a){a.preventDefault(),a.stopPropagation(),this.props.onShowMore(n,a.target)}}])}(g.Component);pf.defaultProps=ne({},ot.defaultProps);var bC=function(t){var r=t.children;return g.createElement("div",{className:"rbc-row-content-scroll-container"},r)},yC=function(t,r){return t.left<=r&&t.right>=r},wC=function(t,r){return t[0].range===r[0].range&&t[0].events===r[0].events};function mf(){return lu(function(e){for(var t=e.range,r=e.events,n=e.maxRows,a=e.minRows,i=e.accessors,o=e.localizer,s=uf({dateRange:t,localizer:o}),l=s.first,c=s.last,u=r.map(function(p){return mC(p,t,i,o)}),f=ff(u,Math.max(n-1,1)),d=f.levels,h=f.extra,m=h.length>0?a-1:a;d.length<m;)d.push([]);return{first:l,last:c,levels:d,extra:h,range:t,slots:t.length,clone:function(v){var b=mf();return b(ne(ne({},e),v))},getDateForSlot:function(v){return t[v]},getSlotForDate:function(v){return t.find(function(b){return o.isSameDate(b,v)})},getEventsForSlot:function(v){return u.filter(function(b){return yC(b,v)}).map(function(b){return b.event})},continuesPrior:function(v){return o.continuesPrior(i.start(v),l)},continuesAfter:function(v){var b=i.start(v),y=i.end(v);return o.continuesAfter(b,y,c)}}},wC)}var vn=function(e){function t(){var r;ye(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Ee(this,t,[].concat(a)),r.handleSelectSlot=function(o){var s=r.props,l=s.range,c=s.onSelectSlot;c(l.slice(o.start,o.end+1),o)},r.handleShowMore=function(o,s){var l=r.props,c=l.range,u=l.onShowMore,f=r.slotMetrics(r.props),d=qb(r.containerRef.current,".rbc-row-bg")[0],h;d&&(h=d.children[o-1]);var m=f.getEventsForSlot(o);u(m,c[o-1],h,o,s)},r.getContainer=function(){var o=r.props.container;return o?o():r.containerRef.current},r.renderHeadingCell=function(o,s){var l=r.props,c=l.renderHeader,u=l.getNow,f=l.localizer;return c({date:o,key:"header_".concat(s),className:he("rbc-date-cell",f.isSameDate(o,u())&&"rbc-now")})},r.renderDummy=function(){var o=r.props,s=o.className,l=o.range,c=o.renderHeader,u=o.showAllEvents;return g.createElement("div",{className:s,ref:r.containerRef},g.createElement("div",{className:he("rbc-row-content",u&&"rbc-row-content-scrollable")},c&&g.createElement("div",{className:"rbc-row",ref:r.headingRowRef},l.map(r.renderHeadingCell)),g.createElement("div",{className:"rbc-row",ref:r.eventRowRef},g.createElement("div",{className:"rbc-row-segment"},g.createElement("div",{className:"rbc-event"},g.createElement("div",{className:"rbc-event-content"}," "))))))},r.containerRef=g.createRef(),r.headingRowRef=g.createRef(),r.eventRowRef=g.createRef(),r.slotMetrics=mf(),r}return $e(t,e),we(t,[{key:"getRowLimit",value:function(){var n,a=Ji(this.eventRowRef.current),i=(n=this.headingRowRef)!==null&&n!==void 0&&n.current?Ji(this.headingRowRef.current):0,o=Ji(this.containerRef.current)-i;return Math.max(Math.floor(o/a),1)}},{key:"render",value:function(){var n=this.props,a=n.date,i=n.rtl,o=n.range,s=n.className,l=n.selected,c=n.selectable,u=n.renderForMeasure,f=n.accessors,d=n.getters,h=n.components,m=n.getNow,p=n.renderHeader,v=n.onSelect,b=n.localizer,y=n.onSelectStart,O=n.onSelectEnd,S=n.onDoubleClick,w=n.onKeyPress,D=n.resourceId,T=n.longPressThreshold,x=n.isAllDay,E=n.resizable,M=n.showAllEvents;if(u)return this.renderDummy();var N=this.slotMetrics(this.props),V=N.levels,P=N.extra,B=M?bC:ut,J=h.weekWrapper,G={selected:l,accessors:f,getters:d,localizer:b,components:h,onSelect:v,onDoubleClick:S,onKeyPress:w,resourceId:D,slotMetrics:N,resizable:E};return g.createElement("div",{className:s,role:"rowgroup",ref:this.containerRef},g.createElement(pC,{localizer:b,date:a,getNow:m,rtl:i,range:o,selectable:c,container:this.getContainer,getters:d,onSelectStart:y,onSelectEnd:O,onSelectSlot:this.handleSelectSlot,components:h,longPressThreshold:T,resourceId:D}),g.createElement("div",{className:he("rbc-row-content",M&&"rbc-row-content-scrollable"),role:"row"},p&&g.createElement("div",{className:"rbc-row ",ref:this.headingRowRef},o.map(this.renderHeadingCell)),g.createElement(B,null,g.createElement(J,Object.assign({isAllDay:x},G,{rtl:this.props.rtl}),V.map(function(K,fe){return g.createElement(cf,Object.assign({key:fe,segments:K},G))}),!!P.length&&g.createElement(pf,Object.assign({segments:P,onShowMore:this.handleShowMore},G))))))}}])}(g.Component);vn.defaultProps={minRows:0,maxRows:1/0};var uo=function(t){var r=t.label;return g.createElement("span",{role:"columnheader","aria-sort":"none"},r)},SC=function(t){var r=t.label,n=t.drilldownView,a=t.onDrillDown;return n?g.createElement("button",{type:"button",className:"rbc-button-link",onClick:a},r):g.createElement("span",null,r)},OC=["date","className"],DC=function(t,r,n,a,i){return t.filter(function(o){return mn(o,r,n,a,i)})},Da=function(e){function t(){var r;ye(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Ee(this,t,[].concat(a)),r.getContainer=function(){return r.containerRef.current},r.renderWeek=function(o,s){var l=r.props,c=l.events,u=l.components,f=l.selectable,d=l.getNow,h=l.selected,m=l.date,p=l.localizer,v=l.longPressThreshold,b=l.accessors,y=l.getters,O=l.showAllEvents,S=r.state,w=S.needLimitMeasure,D=S.rowLimit,T=DC(ea(c),o[0],o[o.length-1],b,p),x=gC(T,b,p);return g.createElement(vn,{key:s,ref:s===0?r.slotRowRef:void 0,container:r.getContainer,className:"rbc-month-row",getNow:d,date:m,range:o,events:x,maxRows:O?1/0:D,selected:h,selectable:f,components:u,accessors:b,getters:y,localizer:p,renderHeader:r.readerDateHeading,renderForMeasure:w,onShowMore:r.handleShowMore,onSelect:r.handleSelectEvent,onDoubleClick:r.handleDoubleClickEvent,onKeyPress:r.handleKeyPressEvent,onSelectSlot:r.handleSelectSlot,longPressThreshold:v,rtl:r.props.rtl,resizable:r.props.resizable,showAllEvents:O})},r.readerDateHeading=function(o){var s=o.date,l=o.className,c=nt(o,OC),u=r.props,f=u.date,d=u.getDrilldownView,h=u.localizer,m=h.neq(s,f,"month"),p=h.isSameDate(s,f),v=d(s),b=h.format(s,"dateFormat"),y=r.props.components.dateHeader||SC;return g.createElement("div",Object.assign({},c,{className:he(l,m&&"rbc-off-range",p&&"rbc-current"),role:"cell"}),g.createElement(y,{label:b,date:s,drilldownView:v,isOffRange:m,onDrillDown:function(S){return r.handleHeadingClick(s,v,S)}}))},r.handleSelectSlot=function(o,s){r._pendingSelection=r._pendingSelection.concat(o),clearTimeout(r._selectTimer),r._selectTimer=setTimeout(function(){return r.selectDates(s)})},r.handleHeadingClick=function(o,s,l){l.preventDefault(),r.clearSelection(),se(r.props.onDrillDown,[o,s])},r.handleSelectEvent=function(){r.clearSelection();for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];se(r.props.onSelectEvent,s)},r.handleDoubleClickEvent=function(){r.clearSelection();for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];se(r.props.onDoubleClickEvent,s)},r.handleKeyPressEvent=function(){r.clearSelection();for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];se(r.props.onKeyPressEvent,s)},r.handleShowMore=function(o,s,l,c,u){var f=r.props,d=f.popup,h=f.onDrillDown,m=f.onShowMore,p=f.getDrilldownView,v=f.doShowMoreDrillDown;if(r.clearSelection(),d){var b=Jl(l,r.containerRef.current);r.setState({overlay:{date:s,events:o,position:b,target:u}})}else v&&se(h,[s,p(s)||Me.DAY]);se(m,[o,s,c])},r.overlayDisplay=function(){r.setState({overlay:null})},r.state={rowLimit:5,needLimitMeasure:!0,date:null},r.containerRef=g.createRef(),r.slotRowRef=g.createRef(),r._bgRows=[],r._pendingSelection=[],r}return $e(t,e),we(t,[{key:"componentDidMount",value:function(){var n=this,a;this.state.needLimitMeasure&&this.measureRowLimit(this.props),window.addEventListener("resize",this._resizeListener=function(){a||rc(function(){a=!1,n.setState({needLimitMeasure:!0})})},!1)}},{key:"componentDidUpdate",value:function(){this.state.needLimitMeasure&&this.measureRowLimit(this.props)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._resizeListener,!1)}},{key:"render",value:function(){var n=this.props,a=n.date,i=n.localizer,o=n.className,s=i.visibleDays(a,i),l=kb(s,7);return this._weekCount=l.length,g.createElement("div",{className:he("rbc-month-view",o),role:"table","aria-label":"Month View",ref:this.containerRef},g.createElement("div",{className:"rbc-row rbc-month-header",role:"row"},this.renderHeaders(l[0])),l.map(this.renderWeek),this.props.popup&&this.renderOverlay())}},{key:"renderHeaders",value:function(n){var a=this.props,i=a.localizer,o=a.components,s=n[0],l=n[n.length-1],c=o.header||uo;return i.range(s,l,"day").map(function(u,f){return g.createElement("div",{key:"header_"+f,className:"rbc-header"},g.createElement(c,{date:u,localizer:i,label:i.format(u,"weekdayFormat")}))})}},{key:"renderOverlay",value:function(){var n,a,i=this,o=(n=(a=this.state)===null||a===void 0?void 0:a.overlay)!==null&&n!==void 0?n:{},s=this.props,l=s.accessors,c=s.localizer,u=s.components,f=s.getters,d=s.selected,h=s.popupOffset,m=s.handleDragStart,p=function(){return i.setState({overlay:null})};return g.createElement(lo,{overlay:o,accessors:l,localizer:c,components:u,getters:f,selected:d,popupOffset:h,ref:this.containerRef,handleKeyPressEvent:this.handleKeyPressEvent,handleSelectEvent:this.handleSelectEvent,handleDoubleClickEvent:this.handleDoubleClickEvent,handleDragStart:m,show:!!o.position,overlayDisplay:this.overlayDisplay,onHide:p})}},{key:"measureRowLimit",value:function(){this.setState({needLimitMeasure:!1,rowLimit:this.slotRowRef.current.getRowLimit()})}},{key:"selectDates",value:function(n){var a=this._pendingSelection.slice();this._pendingSelection=[],a.sort(function(s,l){return+s-+l});var i=new Date(a[0]),o=new Date(a[a.length-1]);o.setDate(a[a.length-1].getDate()+1),se(this.props.onSelectSlot,{slots:a,start:i,end:o,action:n.action,bounds:n.bounds,box:n.box})}},{key:"clearSelection",value:function(){clearTimeout(this._selectTimer),this._pendingSelection=[]}}],[{key:"getDerivedStateFromProps",value:function(n,a){var i=n.date,o=n.localizer;return{date:i,needLimitMeasure:o.neq(i,a.date,"month")}}}])}(g.Component);Da.range=function(e,t){var r=t.localizer,n=r.firstVisibleDay(e,r),a=r.lastVisibleDay(e,r);return{start:n,end:a}},Da.navigate=function(e,t,r){var n=r.localizer;switch(t){case Oe.PREVIOUS:return n.add(e,-1,"month");case Oe.NEXT:return n.add(e,1,"month");default:return e}},Da.title=function(e,t){var r=t.localizer;return r.format(e,"monthHeaderFormat")};var vf=function(t){var r=t.min,n=t.max,a=t.step,i=t.slots,o=t.localizer;return"".concat(+o.startOf(r,"minutes"))+"".concat(+o.startOf(n,"minutes"))+"".concat(a,"-").concat(i)};function fo(e){for(var t=e.min,r=e.max,n=e.step,a=e.timeslots,i=e.localizer,o=vf({start:t,end:r,step:n,timeslots:a,localizer:i}),s=1+i.getTotalMin(t,r),l=i.getMinutesFromMidnight(t),c=Math.ceil((s-1)/(n*a)),u=c*a,f=new Array(c),d=new Array(u),h=0;h<c;h++){f[h]=new Array(a);for(var m=0;m<a;m++){var p=h*a+m,v=p*n;d[p]=f[h][m]=i.getSlotDate(t,l,v)}}var b=d.length*n;d.push(i.getSlotDate(t,l,b));function y(O){var S=i.diff(t,O,"minutes")+i.getDstOffset(t,O);return Math.min(S,s)}return{groups:f,update:function(S){return vf(S)!==o?fo(S):this},dateIsInGroup:function(S,w){var D=f[w+1];return i.inRange(S,f[w][0],D?D[0]:r,"minutes")},nextSlot:function(S){var w=d[Math.min(d.findIndex(function(D){return D===S||i.eq(D,S)})+1,d.length-1)];return i.eq(w,S)&&(w=i.add(S,n,"minutes")),w},closestSlotToPosition:function(S){var w=Math.min(d.length-1,Math.max(0,Math.floor(S*u)));return d[w]},closestSlotFromPoint:function(S,w){var D=Math.abs(w.top-w.bottom);return this.closestSlotToPosition((S.y-w.top)/D)},closestSlotFromDate:function(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(i.lt(S,t,"minutes"))return d[0];if(i.gt(S,r,"minutes"))return d[d.length-1];var D=i.diff(t,S,"minutes");return d[(D-D%n)/n+w]},startsBeforeDay:function(S){return i.lt(S,t,"day")},startsAfterDay:function(S){return i.gt(S,r,"day")},startsBefore:function(S){return i.lt(i.merge(t,S),t,"minutes")},startsAfter:function(S){return i.gt(i.merge(r,S),r,"minutes")},getRange:function(S,w,D,T){D||(S=i.min(r,i.max(t,S))),T||(w=i.min(r,i.max(t,w)));var x=y(S),E=y(w),M=E>n*u&&!i.eq(r,w)?(x-n)/(n*u)*100:x/(n*u)*100;return{top:M,height:E/(n*u)*100-M,start:y(S),startDate:S,end:y(w),endDate:w}},getCurrentTimePosition:function(S){var w=y(S),D=w/(n*u)*100;return D}}}var TC=function(){function e(t,r){var n=r.accessors,a=r.slotMetrics;ye(this,e);var i=a.getRange(n.start(t),n.end(t)),o=i.start,s=i.startDate,l=i.end,c=i.endDate,u=i.top,f=i.height;this.start=o,this.end=l,this.startMs=+s,this.endMs=+c,this.top=u,this.height=f,this.data=t}return we(e,[{key:"_width",get:function(){if(this.rows){var r=this.rows.reduce(function(a,i){return Math.max(a,i.leaves.length+1)},0)+1;return 100/r}if(this.leaves){var n=100-this.container._width;return n/(this.leaves.length+1)}return this.row._width}},{key:"width",get:function(){var r=this._width,n=Math.min(100,this._width*1.7);if(this.rows)return n;if(this.leaves)return this.leaves.length>0?n:r;var a=this.row.leaves,i=a.indexOf(this);return i===a.length-1?r:n}},{key:"xOffset",get:function(){if(this.rows)return 0;if(this.leaves)return this.container._width;var r=this.row,n=r.leaves,a=r.xOffset,i=r._width,o=n.indexOf(this)+1;return a+o*i}}])}();function xC(e,t,r){return Math.abs(t.start-e.start)<r||t.start>e.start&&t.start<e.end}function EC(e){for(var t=jD(e,["startMs",function(s){return-s.endMs}]),r=[];t.length>0;){var n=t.shift();r.push(n);for(var a=0;a<t.length;a++){var i=t[a];if(!(n.endMs>i.startMs)){if(a>0){var o=t.splice(a,1)[0];r.push(o)}break}}}return r}function gf(e){for(var t=e.events,r=e.minimumStartDifference,n=e.slotMetrics,a=e.accessors,i=t.map(function(u){return new TC(u,{slotMetrics:n,accessors:a})}),o=EC(i),s=[],l=function(){var f=o[c],d=s.find(function(p){return p.end>f.start||Math.abs(f.start-p.start)<r});if(!d)return f.rows=[],s.push(f),1;f.container=d;for(var h=null,m=d.rows.length-1;!h&&m>=0;m--)xC(d.rows[m],f,r)&&(h=d.rows[m]);h?(h.leaves.push(f),f.row=h):(f.leaves=[],d.rows.push(f))},c=0;c<o.length;c++)l();return o.map(function(u){return{event:u.data,style:{top:u.top,height:u.height,width:u.width,xOffset:Math.max(0,u.xOffset)}}})}function bf(e,t,r){for(var n=0;n<e.friends.length;++n)if(!(r.indexOf(e.friends[n])>-1)){t=t>e.friends[n].idx?t:e.friends[n].idx,r.push(e.friends[n]);var a=bf(e.friends[n],t,r);t=t>a?t:a}return t}function $C(e){var t=e.events,r=e.minimumStartDifference,n=e.slotMetrics,a=e.accessors,i=gf({events:t,minimumStartDifference:r,slotMetrics:n,accessors:a});i.sort(function(J,G){return J=J.style,G=G.style,J.top!==G.top?J.top>G.top?1:-1:J.height!==G.height?J.top+J.height<G.top+G.height?1:-1:0});for(var o=0;o<i.length;++o)i[o].friends=[],delete i[o].style.left,delete i[o].style.left,delete i[o].idx,delete i[o].size;for(var s=0;s<i.length-1;++s)for(var l=i[s],c=l.style.top,u=l.style.top+l.style.height,f=s+1;f<i.length;++f){var d=i[f],h=d.style.top,m=d.style.top+d.style.height;(h>=c&&m<=u||m>c&&m<=u||h>=c&&h<u)&&(l.friends.push(d),d.friends.push(l))}for(var p=0;p<i.length;++p){for(var v=i[p],b=[],y=0;y<100;++y)b.push(1);for(var O=0;O<v.friends.length;++O)v.friends[O].idx!==void 0&&(b[v.friends[O].idx]=0);v.idx=b.indexOf(1)}for(var S=0;S<i.length;++S){var w=0;if(!i[S].size){var D=[],T=bf(i[S],0,D);w=100/(T+1),i[S].size=w;for(var x=0;x<D.length;++x)D[x].size=w}}for(var E=0;E<i.length;++E){var M=i[E];M.style.left=M.idx*M.size;for(var N=0,V=0;V<M.friends.length;++V){var P=M.friends[V].idx;N=N>P?N:P}N<=M.idx&&(M.size=100-M.idx*M.size);var B=M.idx===0?0:3;M.style.width="calc(".concat(M.size,"% - ").concat(B,"px)"),M.style.height="calc(".concat(M.style.height,"% - 2px)"),M.style.xOffset="calc(".concat(M.style.left,"% + ").concat(B,"px)")}return i}var yf={overlap:gf,"no-overlap":$C};function CC(e){return!!(e&&e.constructor&&e.call&&e.apply)}function _C(e){e.events,e.minimumStartDifference,e.slotMetrics,e.accessors;var t=e.dayLayoutAlgorithm,r=t;return t in yf&&(r=yf[t]),CC(r)?r.apply(this,arguments):[]}var wf=function(e){function t(){return ye(this,t),Ee(this,t,arguments)}return $e(t,e),we(t,[{key:"render",value:function(){var n=this.props,a=n.renderSlot,i=n.resource,o=n.group,s=n.getters,l=n.components,c=l===void 0?{}:l,u=c.timeSlotWrapper,f=u===void 0?ut:u,d=s?s.slotGroupProp(o):{};return g.createElement("div",Object.assign({className:"rbc-timeslot-group"},d),o.map(function(h,m){var p=s?s.slotProp(h,i):{};return g.createElement(f,{key:m,value:h,resource:i},g.createElement("div",Object.assign({},p,{className:he("rbc-time-slot",p.className)}),a&&a(h,m)))}))}}])}(g.Component);function Ta(e){return typeof e=="string"?e:e+"%"}function MC(e){var t=e.style,r=e.className,n=e.event,a=e.accessors,i=e.rtl,o=e.selected,s=e.label,l=e.continuesPrior,c=e.continuesAfter,u=e.getters,f=e.onClick,d=e.onDoubleClick,h=e.isBackgroundEvent,m=e.onKeyPress,p=e.components,v=p.event,b=p.eventWrapper,y=a.title(n),O=a.tooltip(n),S=a.end(n),w=a.start(n),D=u.eventProp(n,w,S,o),T=[g.createElement("div",{key:"1",className:"rbc-event-label"},s),g.createElement("div",{key:"2",className:"rbc-event-content"},v?g.createElement(v,{event:n,title:y}):y)],x=t.height,E=t.top,M=t.width,N=t.xOffset,V=ne(ne({},D.style),{},Ft({top:Ta(E),height:Ta(x),width:Ta(M)},i?"right":"left",Ta(N)));return g.createElement(b,Object.assign({type:"time"},e),g.createElement("div",{role:"button",tabIndex:0,onClick:f,onDoubleClick:d,style:V,onKeyDown:m,title:O?(typeof s=="string"?s+": ":"")+O:void 0,className:he(h?"rbc-background-event":"rbc-event",r,D.className,{"rbc-selected":o,"rbc-event-continues-earlier":l,"rbc-event-continues-later":c})},T))}var kC=function(t){var r=t.children,n=t.className,a=t.style,i=t.innerRef;return g.createElement("div",{className:n,style:a,ref:i},r)},AC=g.forwardRef(function(e,t){return g.createElement(kC,Object.assign({},e,{innerRef:t}))}),NC=["dayProp"],IC=["eventContainerWrapper"],Sf=function(e){function t(){var r;ye(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Ee(this,t,[].concat(a)),r.state={selecting:!1,timeIndicatorPosition:null},r.intervalTriggered=!1,r.renderEvents=function(o){var s=o.events,l=o.isBackgroundEvent,c=r.props,u=c.rtl,f=c.selected,d=c.accessors,h=c.localizer,m=c.getters,p=c.components,v=c.step,b=c.timeslots,y=c.dayLayoutAlgorithm,O=c.resizable,S=r,w=S.slotMetrics,D=h.messages,T=_C({events:s,accessors:d,slotMetrics:w,minimumStartDifference:Math.ceil(v*b/2),dayLayoutAlgorithm:y});return T.map(function(x,E){var M,N=x.event,V=x.style,P=d.end(N),B=d.start(N),J=(M=d.eventId(N))!==null&&M!==void 0?M:"evt_"+E,G="eventTimeRangeFormat",K,fe=w.startsBeforeDay(B),me=w.startsAfterDay(P);fe?G="eventTimeRangeEndFormat":me&&(G="eventTimeRangeStartFormat"),fe&&me?K=D.allDay:K=h.format({start:B,end:P},G);var _e=fe||w.startsBefore(B),Pe=me||w.startsAfter(P);return g.createElement(MC,{style:V,event:N,label:K,key:J,getters:m,rtl:u,components:p,continuesPrior:_e,continuesAfter:Pe,accessors:d,resource:r.props.resource,selected:Sa(N,f),onClick:function(_){return r._select(ne(ne(ne({},N),r.props.resource&&{sourceResource:r.props.resource}),l&&{isBackgroundEvent:!0}),_)},onDoubleClick:function(_){return r._doubleClick(N,_)},isBackgroundEvent:l,onKeyPress:function(_){return r._keyPress(N,_)},resizable:O})})},r._selectable=function(){var o=r.containerRef.current,s=r.props,l=s.longPressThreshold,c=s.localizer,u=r._selector=new of(function(){return o},{longPressThreshold:l}),f=function(p){var v=r.props.onSelecting,b=r.state||{},y=d(p),O=y.startDate,S=y.endDate;v&&(c.eq(b.startDate,O,"minutes")&&c.eq(b.endDate,S,"minutes")||v({start:O,end:S,resourceId:r.props.resource})===!1)||(r.state.start!==y.start||r.state.end!==y.end||r.state.selecting!==y.selecting)&&r.setState(y)},d=function(p){var v=r.slotMetrics.closestSlotFromPoint(p,Yt(o));r.state.selecting||(r._initialSlot=v);var b=r._initialSlot;c.lte(b,v)?v=r.slotMetrics.nextSlot(v):c.gt(b,v)&&(b=r.slotMetrics.nextSlot(b));var y=r.slotMetrics.getRange(c.min(b,v),c.max(b,v));return ne(ne({},y),{},{selecting:!0,top:"".concat(y.top,"%"),height:"".concat(y.height,"%")})},h=function(p,v){if(!Oa(r.containerRef.current,p)){var b=d(p),y=b.startDate,O=b.endDate;r._selectSlot({startDate:y,endDate:O,action:v,box:p})}r.setState({selecting:!1})};u.on("selecting",f),u.on("selectStart",f),u.on("beforeSelect",function(m){if(r.props.selectable==="ignoreEvents")return!Oa(r.containerRef.current,m)}),u.on("click",function(m){return h(m,"click")}),u.on("doubleClick",function(m){return h(m,"doubleClick")}),u.on("select",function(m){r.state.selecting&&(r._selectSlot(ne(ne({},r.state),{},{action:"select",bounds:m})),r.setState({selecting:!1}))}),u.on("reset",function(){r.state.selecting&&r.setState({selecting:!1})})},r._teardownSelectable=function(){r._selector&&(r._selector.teardown(),r._selector=null)},r._selectSlot=function(o){for(var s=o.startDate,l=o.endDate,c=o.action,u=o.bounds,f=o.box,d=s,h=[];r.props.localizer.lte(d,l);)h.push(d),d=new Date(+d+r.props.step*60*1e3);se(r.props.onSelectSlot,{slots:h,start:s,end:l,resourceId:r.props.resource,action:c,bounds:u,box:f})},r._select=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];se(r.props.onSelectEvent,s)},r._doubleClick=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];se(r.props.onDoubleClickEvent,s)},r._keyPress=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];se(r.props.onKeyPressEvent,s)},r.slotMetrics=fo(r.props),r.containerRef=g.createRef(),r}return $e(t,e),we(t,[{key:"componentDidMount",value:function(){this.props.selectable&&this._selectable(),this.props.isNow&&this.setTimeIndicatorPositionUpdateInterval()}},{key:"componentWillUnmount",value:function(){this._teardownSelectable(),this.clearTimeIndicatorInterval()}},{key:"componentDidUpdate",value:function(n,a){this.props.selectable&&!n.selectable&&this._selectable(),!this.props.selectable&&n.selectable&&this._teardownSelectable();var i=this.props,o=i.getNow,s=i.isNow,l=i.localizer,c=i.date,u=i.min,f=i.max,d=l.neq(n.getNow(),o(),"minutes");if(n.isNow!==s||d){if(this.clearTimeIndicatorInterval(),s){var h=!d&&l.eq(n.date,c,"minutes")&&a.timeIndicatorPosition===this.state.timeIndicatorPosition;this.setTimeIndicatorPositionUpdateInterval(h)}}else s&&(l.neq(n.min,u,"minutes")||l.neq(n.max,f,"minutes"))&&this.positionTimeIndicator()}},{key:"setTimeIndicatorPositionUpdateInterval",value:function(){var n=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;!this.intervalTriggered&&!a&&this.positionTimeIndicator(),this._timeIndicatorTimeout=window.setTimeout(function(){n.intervalTriggered=!0,n.positionTimeIndicator(),n.setTimeIndicatorPositionUpdateInterval()},6e4)}},{key:"clearTimeIndicatorInterval",value:function(){this.intervalTriggered=!1,window.clearTimeout(this._timeIndicatorTimeout)}},{key:"positionTimeIndicator",value:function(){var n=this.props,a=n.min,i=n.max,o=n.getNow,s=o();if(s>=a&&s<=i){var l=this.slotMetrics.getCurrentTimePosition(s);this.intervalTriggered=!0,this.setState({timeIndicatorPosition:l})}else this.clearTimeIndicatorInterval()}},{key:"render",value:function(){var n=this.props,a=n.date,i=n.max,o=n.rtl,s=n.isNow,l=n.resource,c=n.accessors,u=n.localizer,f=n.getters,d=f.dayProp,h=nt(f,NC),m=n.components,p=m.eventContainerWrapper,v=nt(m,IC);this.slotMetrics=this.slotMetrics.update(this.props);var b=this.slotMetrics,y=this.state,O=y.selecting,S=y.top,w=y.height,D=y.startDate,T=y.endDate,x={start:D,end:T},E=d(i,l),M=E.className,N=E.style,V=v.dayColumnWrapper||AC;return g.createElement(V,{ref:this.containerRef,date:a,style:N,className:he(M,"rbc-day-slot","rbc-time-column",s&&"rbc-now",s&&"rbc-today",O&&"rbc-slot-selecting"),slotMetrics:b,resource:l},b.groups.map(function(P,B){return g.createElement(wf,{key:B,group:P,resource:l,getters:h,components:v})}),g.createElement(p,{localizer:u,resource:l,accessors:c,getters:h,components:v,slotMetrics:b},g.createElement("div",{className:he("rbc-events-container",o&&"rtl")},this.renderEvents({events:this.props.backgroundEvents,isBackgroundEvent:!0}),this.renderEvents({events:this.props.events}))),O&&g.createElement("div",{className:"rbc-slot-selection",style:{top:S,height:w}},g.createElement("span",null,u.format(x,"selectRangeFormat"))),s&&this.intervalTriggered&&g.createElement("div",{className:"rbc-current-time-indicator",style:{top:"".concat(this.state.timeIndicatorPosition,"%")}}))}}])}(g.Component);Sf.defaultProps={dragThroughEvents:!0,timeslots:2};var Of=function(t){var r=t.label;return g.createElement(g.Fragment,null,r)},PC=function(e){function t(){var r;ye(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Ee(this,t,[].concat(a)),r.handleHeaderClick=function(o,s,l){l.preventDefault(),se(r.props.onDrillDown,[o,s])},r.renderRow=function(o){var s=r.props,l=s.events,c=s.rtl,u=s.selectable,f=s.getNow,d=s.range,h=s.getters,m=s.localizer,p=s.accessors,v=s.components,b=s.resizable,y=p.resourceId(o),O=o?l.filter(function(S){return p.resource(S)===y}):l;return g.createElement(vn,{isAllDay:!0,rtl:c,getNow:f,minRows:2,maxRows:r.props.allDayMaxRows+1,range:d,events:O,resourceId:y,className:"rbc-allday-cell",selectable:u,selected:r.props.selected,components:v,accessors:p,getters:h,localizer:m,onSelect:r.props.onSelectEvent,onShowMore:r.props.onShowMore,onDoubleClick:r.props.onDoubleClickEvent,onKeyPress:r.props.onKeyPressEvent,onSelectSlot:r.props.onSelectSlot,longPressThreshold:r.props.longPressThreshold,resizable:b})},r}return $e(t,e),we(t,[{key:"renderHeaderCells",value:function(n){var a=this,i=this.props,o=i.localizer,s=i.getDrilldownView,l=i.getNow,c=i.getters.dayProp,u=i.components.header,f=u===void 0?uo:u,d=l();return n.map(function(h,m){var p=s(h),v=o.format(h,"dayFormat"),b=c(h),y=b.className,O=b.style,S=g.createElement(f,{date:h,label:v,localizer:o});return g.createElement("div",{key:m,style:O,className:he("rbc-header",y,o.isSameDate(h,d)&&"rbc-today")},p?g.createElement("button",{type:"button",className:"rbc-button-link",onClick:function(D){return a.handleHeaderClick(h,p,D)}},S):g.createElement("span",null,S))})}},{key:"render",value:function(){var n=this,a=this.props,i=a.width,o=a.rtl,s=a.resources,l=a.range,c=a.events,u=a.getNow,f=a.accessors,d=a.selectable,h=a.components,m=a.getters,p=a.scrollRef,v=a.localizer,b=a.isOverflowing,y=a.components,O=y.timeGutterHeader,S=y.resourceHeader,w=S===void 0?Of:S,D=a.resizable,T={};b&&(T[o?"marginLeft":"marginRight"]="".concat(Ii()-1,"px"));var x=s.groupEvents(c);return g.createElement("div",{style:T,ref:p,className:he("rbc-time-header",b&&"rbc-overflowing")},g.createElement("div",{className:"rbc-label rbc-time-header-gutter",style:{width:i,minWidth:i,maxWidth:i}},O&&g.createElement(O,null)),s.map(function(E,M){var N=He(E,2),V=N[0],P=N[1];return g.createElement("div",{className:"rbc-time-header-content",key:V||M},P&&g.createElement("div",{className:"rbc-row rbc-row-resource",key:"resource_".concat(M)},g.createElement("div",{className:"rbc-header"},g.createElement(w,{index:M,label:f.resourceTitle(P),resource:P}))),g.createElement("div",{className:"rbc-row rbc-time-header-cell".concat(l.length<=1?" rbc-time-header-cell-single-day":"")},n.renderHeaderCells(l)),g.createElement(vn,{isAllDay:!0,rtl:o,getNow:u,minRows:2,maxRows:n.props.allDayMaxRows+1,range:l,events:x.get(V)||[],resourceId:P&&V,className:"rbc-allday-cell",selectable:d,selected:n.props.selected,components:h,accessors:f,getters:m,localizer:v,onSelect:n.props.onSelectEvent,onShowMore:n.props.onShowMore,onDoubleClick:n.props.onDoubleClickEvent,onKeyDown:n.props.onKeyPressEvent,onSelectSlot:n.props.onSelectSlot,longPressThreshold:n.props.longPressThreshold,resizable:D}))}))}}])}(g.Component),FC=function(e){function t(){var r;ye(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Ee(this,t,[].concat(a)),r.handleHeaderClick=function(o,s,l){l.preventDefault(),se(r.props.onDrillDown,[o,s])},r}return $e(t,e),we(t,[{key:"renderHeaderCells",value:function(n){var a=this,i=this.props,o=i.localizer,s=i.getDrilldownView,l=i.getNow,c=i.getters.dayProp,u=i.components,f=u.header,d=f===void 0?uo:f,h=u.resourceHeader,m=h===void 0?Of:h,p=i.resources,v=i.accessors,b=i.events,y=i.rtl,O=i.selectable,S=i.components,w=i.getters,D=i.resizable,T=l(),x=p.groupEvents(b);return n.map(function(E,M){var N=s(E),V=o.format(E,"dayFormat"),P=c(E),B=P.className,J=P.style,G=g.createElement(d,{date:E,label:V,localizer:o});return g.createElement("div",{key:M,className:"rbc-time-header-content rbc-resource-grouping"},g.createElement("div",{className:"rbc-row rbc-time-header-cell".concat(n.length<=1?" rbc-time-header-cell-single-day":"")},g.createElement("div",{style:J,className:he("rbc-header",B,o.isSameDate(E,T)&&"rbc-today")},N?g.createElement("button",{type:"button",className:"rbc-button-link",onClick:function(fe){return a.handleHeaderClick(E,N,fe)}},G):g.createElement("span",null,G))),g.createElement("div",{className:"rbc-row"},p.map(function(K,fe){var me=He(K,2),_e=me[0],Pe=me[1];return g.createElement("div",{key:"resource_".concat(_e,"_").concat(fe),className:he("rbc-header",B,o.isSameDate(E,T)&&"rbc-today")},g.createElement(m,{index:fe,label:v.resourceTitle(Pe),resource:Pe}))})),g.createElement("div",{className:"rbc-row rbc-m-b-negative-3 rbc-h-full"},p.map(function(K,fe){var me=He(K,2),_e=me[0],Pe=me[1],C=(x.get(_e)||[]).filter(function(_){return o.isSameDate(_.start,E)||o.isSameDate(_.end,E)});return g.createElement(vn,{key:"resource_".concat(_e,"_").concat(fe),isAllDay:!0,rtl:y,getNow:l,minRows:2,maxRows:a.props.allDayMaxRows+1,range:[E],events:C,resourceId:Pe&&_e,className:"rbc-allday-cell",selectable:O,selected:a.props.selected,components:S,accessors:v,getters:w,localizer:o,onSelect:a.props.onSelectEvent,onShowMore:a.props.onShowMore,onDoubleClick:a.props.onDoubleClickEvent,onKeyDown:a.props.onKeyPressEvent,onSelectSlot:a.props.onSelectSlot,longPressThreshold:a.props.longPressThreshold,resizable:D})})))})}},{key:"render",value:function(){var n=this.props,a=n.width,i=n.rtl,o=n.range,s=n.scrollRef,l=n.isOverflowing,c=n.components.timeGutterHeader,u={};return l&&(u[i?"marginLeft":"marginRight"]="".concat(Ii()-1,"px")),g.createElement("div",{style:u,ref:s,className:he("rbc-time-header",l&&"rbc-overflowing")},g.createElement("div",{className:"rbc-label rbc-time-header-gutter",style:{width:a,minWidth:a,maxWidth:a}},c&&g.createElement(c,null)),this.renderHeaderCells(o))}}])}(g.Component);function LC(e){var t=e.min,r=e.max,n=e.localizer;return n.getTimezoneOffset(t)!==n.getTimezoneOffset(r)?{start:n.add(t,-1,"day"),end:n.add(r,-1,"day")}:{start:t,end:r}}var WC=function(t){var r=t.min,n=t.max,a=t.timeslots,i=t.step,o=t.localizer,s=t.getNow,l=t.resource,c=t.components,u=t.getters,f=t.gutterRef,d=c.timeGutterWrapper,h=g.useMemo(function(){return LC({min:r,max:n,localizer:o})},[r==null?void 0:r.toISOString(),n==null?void 0:n.toISOString(),o]),m=h.start,p=h.end,v=g.useState(fo({min:m,max:p,timeslots:a,step:i,localizer:o})),b=He(v,2),y=b[0],O=b[1];g.useEffect(function(){y&&O(y.update({min:m,max:p,timeslots:a,step:i,localizer:o}))},[m==null?void 0:m.toISOString(),p==null?void 0:p.toISOString(),a,i]);var S=g.useCallback(function(w,D){if(D)return null;var T=y.dateIsInGroup(s(),D);return g.createElement("span",{className:he("rbc-label",T&&"rbc-now")},o.format(w,"timeGutterFormat"))},[y,o,s]);return g.createElement(d,{slotMetrics:y},g.createElement("div",{className:"rbc-time-gutter rbc-time-column",ref:f},y.groups.map(function(w,D){return g.createElement(wf,{key:D,group:w,resource:l,components:c,renderSlot:S,getters:u})})))},zC=g.forwardRef(function(e,t){return g.createElement(WC,Object.assign({gutterRef:t},e))}),ho={};function VC(e,t){return{map:function(n){return e?e.map(function(a,i){return n([t.resourceId(a),a],i)}):[n([ho,null],0)]},groupEvents:function(n){var a=new Map;return e?(n.forEach(function(i){var o=t.resource(i)||ho;if(Array.isArray(o))o.forEach(function(l){var c=a.get(l)||[];c.push(i),a.set(l,c)});else{var s=a.get(o)||[];s.push(i),a.set(o,s)}}),a):(a.set(ho,n),a)}}}var xr=function(e){function t(r){var n;return ye(this,t),n=Ee(this,t,[r]),n.handleScroll=function(a){n.scrollRef.current&&(n.scrollRef.current.scrollLeft=a.target.scrollLeft)},n.handleResize=function(){tc(n.rafHandle),n.rafHandle=rc(n.checkOverflow)},n.handleKeyPressEvent=function(){n.clearSelection();for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];se(n.props.onKeyPressEvent,i)},n.handleSelectEvent=function(){n.clearSelection();for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];se(n.props.onSelectEvent,i)},n.handleDoubleClickEvent=function(){n.clearSelection();for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];se(n.props.onDoubleClickEvent,i)},n.handleShowMore=function(a,i,o,s,l){var c=n.props,u=c.popup,f=c.onDrillDown,d=c.onShowMore,h=c.getDrilldownView,m=c.doShowMoreDrillDown;if(n.clearSelection(),u){var p=Jl(o,n.containerRef.current);n.setState({overlay:{date:i,events:a,position:ne(ne({},p),{},{width:"200px"}),target:l}})}else m&&se(f,[i,h(i)||Me.DAY]);se(d,[a,i,s])},n.handleSelectAllDaySlot=function(a,i){var o=n.props.onSelectSlot,s=new Date(a[0]),l=new Date(a[a.length-1]);l.setDate(a[a.length-1].getDate()+1),se(o,{slots:a,start:s,end:l,action:i.action,resourceId:i.resourceId})},n.overlayDisplay=function(){n.setState({overlay:null})},n.checkOverflow=function(){if(!n._updatingOverflow){var a=n.contentRef.current;if(a!=null&&a.scrollHeight){var i=a.scrollHeight>a.clientHeight;n.state.isOverflowing!==i&&(n._updatingOverflow=!0,n.setState({isOverflowing:i},function(){n._updatingOverflow=!1}))}}},n.memoizedResources=lu(function(a,i){return VC(a,i)}),n.state={gutterWidth:void 0,isOverflowing:null},n.scrollRef=g.createRef(),n.contentRef=g.createRef(),n.containerRef=g.createRef(),n._scrollRatio=null,n.gutterRef=g.createRef(),n}return $e(t,e),we(t,[{key:"getSnapshotBeforeUpdate",value:function(){return this.checkOverflow(),null}},{key:"componentDidMount",value:function(){this.props.width==null&&this.measureGutter(),this.calculateScroll(),this.applyScroll(),window.addEventListener("resize",this.handleResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),tc(this.rafHandle),this.measureGutterAnimationFrameRequest&&window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest)}},{key:"componentDidUpdate",value:function(){this.applyScroll()}},{key:"renderDayColumn",value:function(n,a,i,o,s,l,c,u,f,d){var h=this.props,m=h.min,p=h.max,v=(o.get(a)||[]).filter(function(y){return l.inRange(n,c.start(y),c.end(y),"day")}),b=(s.get(a)||[]).filter(function(y){return l.inRange(n,c.start(y),c.end(y),"day")});return g.createElement(Sf,Object.assign({},this.props,{localizer:l,min:l.merge(n,m),max:l.merge(n,p),resource:i&&a,components:u,isNow:l.isSameDate(n,d),key:"".concat(a,"-").concat(n),date:n,events:v,backgroundEvents:b,dayLayoutAlgorithm:f}))}},{key:"renderResourcesFirst",value:function(n,a,i,o,s,l,c,u,f){var d=this;return a.map(function(h){var m=He(h,2),p=m[0],v=m[1];return n.map(function(b){return d.renderDayColumn(b,p,v,i,o,s,l,u,f,c)})})}},{key:"renderRangeFirst",value:function(n,a,i,o,s,l,c,u,f){var d=this;return n.map(function(h){return g.createElement("div",{style:{display:"flex",minHeight:"100%",flex:1},key:h},a.map(function(m){var p=He(m,2),v=p[0],b=p[1];return g.createElement("div",{style:{flex:1},key:l.resourceId(b)},d.renderDayColumn(h,v,b,i,o,s,l,u,f,c))}))})}},{key:"renderEvents",value:function(n,a,i,o){var s=this.props,l=s.accessors,c=s.localizer,u=s.resourceGroupingLayout,f=s.components,d=s.dayLayoutAlgorithm,h=this.memoizedResources(this.props.resources,l),m=h.groupEvents(a),p=h.groupEvents(i);return u?this.renderRangeFirst(n,h,m,p,c,l,o,f,d):this.renderResourcesFirst(n,h,m,p,c,l,o,f,d)}},{key:"render",value:function(){var n,a=this.props,i=a.events,o=a.backgroundEvents,s=a.range,l=a.width,c=a.rtl,u=a.selected,f=a.getNow,d=a.resources,h=a.components,m=a.accessors,p=a.getters,v=a.localizer,b=a.min,y=a.max,O=a.showMultiDayTimes,S=a.longPressThreshold,w=a.resizable,D=a.resourceGroupingLayout;l=l||this.state.gutterWidth;var T=s[0],x=s[s.length-1];this.slots=s.length;var E=[],M=[],N=[];i.forEach(function(P){if(mn(P,T,x,m,v)){var B=m.start(P),J=m.end(P);m.allDay(P)||v.startAndEndAreDateOnly(B,J)||!O&&!v.isSameDate(B,J)?E.push(P):M.push(P)}}),o.forEach(function(P){mn(P,T,x,m,v)&&N.push(P)}),E.sort(function(P,B){return co(P,B,m,v)});var V={range:s,events:E,width:l,rtl:c,getNow:f,localizer:v,selected:u,allDayMaxRows:this.props.showAllEvents?1/0:(n=this.props.allDayMaxRows)!==null&&n!==void 0?n:1/0,resources:this.memoizedResources(d,m),selectable:this.props.selectable,accessors:m,getters:p,components:h,scrollRef:this.scrollRef,isOverflowing:this.state.isOverflowing,longPressThreshold:S,onSelectSlot:this.handleSelectAllDaySlot,onSelectEvent:this.handleSelectEvent,onShowMore:this.handleShowMore,onDoubleClickEvent:this.props.onDoubleClickEvent,onKeyPressEvent:this.props.onKeyPressEvent,onDrillDown:this.props.onDrillDown,getDrilldownView:this.props.getDrilldownView,resizable:w};return g.createElement("div",{className:he("rbc-time-view",d&&"rbc-time-view-resources"),ref:this.containerRef},d&&d.length>1&&D?g.createElement(FC,V):g.createElement(PC,V),this.props.popup&&this.renderOverlay(),g.createElement("div",{ref:this.contentRef,className:"rbc-time-content",onScroll:this.handleScroll},g.createElement(zC,{date:T,ref:this.gutterRef,localizer:v,min:v.merge(T,b),max:v.merge(T,y),step:this.props.step,getNow:this.props.getNow,timeslots:this.props.timeslots,components:h,className:"rbc-time-gutter",getters:p}),this.renderEvents(s,M,N,f())))}},{key:"renderOverlay",value:function(){var n,a,i=this,o=(n=(a=this.state)===null||a===void 0?void 0:a.overlay)!==null&&n!==void 0?n:{},s=this.props,l=s.accessors,c=s.localizer,u=s.components,f=s.getters,d=s.selected,h=s.popupOffset,m=s.handleDragStart,p=function(){return i.setState({overlay:null})};return g.createElement(lo,{overlay:o,accessors:l,localizer:c,components:u,getters:f,selected:d,popupOffset:h,ref:this.containerRef,handleKeyPressEvent:this.handleKeyPressEvent,handleSelectEvent:this.handleSelectEvent,handleDoubleClickEvent:this.handleDoubleClickEvent,handleDragStart:m,show:!!o.position,overlayDisplay:this.overlayDisplay,onHide:p})}},{key:"clearSelection",value:function(){clearTimeout(this._selectTimer),this._pendingSelection=[]}},{key:"measureGutter",value:function(){var n=this;this.measureGutterAnimationFrameRequest&&window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest),this.measureGutterAnimationFrameRequest=window.requestAnimationFrame(function(){var a,i=(a=n.gutterRef)!==null&&a!==void 0&&a.current?eo(n.gutterRef.current):void 0;i&&n.state.gutterWidth!==i&&n.setState({gutterWidth:i})})}},{key:"applyScroll",value:function(){if(this._scrollRatio!=null&&this.props.enableAutoScroll===!0){var n=this.contentRef.current;n.scrollTop=n.scrollHeight*this._scrollRatio,this._scrollRatio=null}}},{key:"calculateScroll",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,a=n.min,i=n.max,o=n.scrollToTime,s=n.localizer,l=s.diff(s.merge(o,a),o,"milliseconds"),c=s.diff(a,i,"milliseconds");this._scrollRatio=l/c}}])}(g.Component);xr.defaultProps={step:30,timeslots:2,resourceGroupingLayout:!1};var RC=["date","localizer","min","max","scrollToTime","enableAutoScroll"],xa=function(e){function t(){return ye(this,t),Ee(this,t,arguments)}return $e(t,e),we(t,[{key:"render",value:function(){var n=this.props,a=n.date,i=n.localizer,o=n.min,s=o===void 0?i.startOf(new Date,"day"):o,l=n.max,c=l===void 0?i.endOf(new Date,"day"):l,u=n.scrollToTime,f=u===void 0?i.startOf(new Date,"day"):u,d=n.enableAutoScroll,h=d===void 0?!0:d,m=nt(n,RC),p=t.range(a,{localizer:i});return g.createElement(xr,Object.assign({},m,{range:p,eventOffset:10,localizer:i,min:s,max:c,scrollToTime:f,enableAutoScroll:h}))}}])}(g.Component);xa.range=function(e,t){var r=t.localizer;return[r.startOf(e,"day")]},xa.navigate=function(e,t,r){var n=r.localizer;switch(t){case Oe.PREVIOUS:return n.add(e,-1,"day");case Oe.NEXT:return n.add(e,1,"day");default:return e}},xa.title=function(e,t){var r=t.localizer;return r.format(e,"dayHeaderFormat")};var BC=["date","localizer","min","max","scrollToTime","enableAutoScroll"],Tt=function(e){function t(){return ye(this,t),Ee(this,t,arguments)}return $e(t,e),we(t,[{key:"render",value:function(){var n=this.props,a=n.date,i=n.localizer,o=n.min,s=o===void 0?i.startOf(new Date,"day"):o,l=n.max,c=l===void 0?i.endOf(new Date,"day"):l,u=n.scrollToTime,f=u===void 0?i.startOf(new Date,"day"):u,d=n.enableAutoScroll,h=d===void 0?!0:d,m=nt(n,BC),p=t.range(a,this.props);return g.createElement(xr,Object.assign({},m,{range:p,eventOffset:15,localizer:i,min:s,max:c,scrollToTime:f,enableAutoScroll:h}))}}])}(g.Component);Tt.defaultProps=xr.defaultProps,Tt.navigate=function(e,t,r){var n=r.localizer;switch(t){case Oe.PREVIOUS:return n.add(e,-1,"week");case Oe.NEXT:return n.add(e,1,"week");default:return e}},Tt.range=function(e,t){var r=t.localizer,n=r.startOfWeek(),a=r.startOf(e,"week",n),i=r.endOf(e,"week",n);return r.range(a,i)},Tt.title=function(e,t){var r=t.localizer,n=Tt.range(e,{localizer:r}),a=Su(n),i=a[0],o=a.slice(1);return r.format({start:i,end:o.pop()},"dayRangeHeaderFormat")};var HC=["date","localizer","min","max","scrollToTime","enableAutoScroll"];function po(e,t){return Tt.range(e,t).filter(function(r){return[6,0].indexOf(r.getDay())===-1})}var gn=function(e){function t(){return ye(this,t),Ee(this,t,arguments)}return $e(t,e),we(t,[{key:"render",value:function(){var n=this.props,a=n.date,i=n.localizer,o=n.min,s=o===void 0?i.startOf(new Date,"day"):o,l=n.max,c=l===void 0?i.endOf(new Date,"day"):l,u=n.scrollToTime,f=u===void 0?i.startOf(new Date,"day"):u,d=n.enableAutoScroll,h=d===void 0?!0:d,m=nt(n,HC),p=po(a,this.props);return g.createElement(xr,Object.assign({},m,{range:p,eventOffset:15,localizer:i,min:s,max:c,scrollToTime:f,enableAutoScroll:h}))}}])}(g.Component);gn.defaultProps=xr.defaultProps,gn.range=po,gn.navigate=Tt.navigate,gn.title=function(e,t){var r=t.localizer,n=po(e,{localizer:r}),a=Su(n),i=a[0],o=a.slice(1);return r.format({start:i,end:o.pop()},"dayRangeHeaderFormat")};var Ea=30;function $a(e){var t=e.accessors,r=e.components,n=e.date,a=e.events,i=e.getters,o=e.length,s=o===void 0?Ea:o,l=e.localizer,c=e.onDoubleClickEvent,u=e.onSelectEvent,f=e.selected,d=g.useRef(null),h=g.useRef(null),m=g.useRef(null),p=g.useRef(null),v=g.useRef(null);g.useEffect(function(){O()});var b=function(x,E,M){var N=r.event,V=r.date;return E=E.filter(function(P){return mn(P,l.startOf(x,"day"),l.endOf(x,"day"),t,l)}),E.map(function(P,B){var J=t.title(P),G=t.end(P),K=t.start(P),fe=i.eventProp(P,K,G,Sa(P,f)),me=B===0&&l.format(x,"agendaDateFormat"),_e=B===0?g.createElement("td",{rowSpan:E.length,className:"rbc-agenda-date-cell"},V?g.createElement(V,{day:x,label:me}):me):!1;return g.createElement("tr",{key:M+"_"+B,className:fe.className,style:fe.style},_e,g.createElement("td",{className:"rbc-agenda-time-cell"},y(x,P)),g.createElement("td",{className:"rbc-agenda-event-cell",onClick:function(C){return u&&u(P,C)},onDoubleClick:function(C){return c&&c(P,C)}},N?g.createElement(N,{event:P,title:J}):J))},[])},y=function(x,E){var M="",N=r.time,V=l.messages.allDay,P=t.end(E),B=t.start(E);return t.allDay(E)||(l.eq(B,P)?V=l.format(B,"agendaTimeFormat"):l.isSameDate(B,P)?V=l.format({start:B,end:P},"agendaTimeRangeFormat"):l.isSameDate(x,B)?V=l.format(B,"agendaTimeFormat"):l.isSameDate(x,P)&&(V=l.format(P,"agendaTimeFormat"))),l.gt(x,B,"day")&&(M="rbc-continues-prior"),l.lt(x,P,"day")&&(M+=" rbc-continues-after"),g.createElement("span",{className:M.trim()},N?g.createElement(N,{event:E,day:x,label:V}):V)},O=function(){if(v.current){var x=d.current,E=v.current.firstChild;if(E){var M=p.current.scrollHeight>p.current.clientHeight,N=[],V=N;N=[eo(E.children[0]),eo(E.children[1])],(V[0]!==N[0]||V[1]!==N[1])&&(h.current.style.width=N[0]+"px",m.current.style.width=N[1]+"px"),M?(b0(x,"rbc-header-overflowing"),x.style.marginRight=Ii()+"px"):y0(x,"rbc-header-overflowing")}}},S=l.messages,w=l.add(n,s,"day"),D=l.range(n,w,"day");return a=a.filter(function(T){return mn(T,l.startOf(n,"day"),l.endOf(w,"day"),t,l)}),a.sort(function(T,x){return+t.start(T)-+t.start(x)}),g.createElement("div",{className:"rbc-agenda-view"},a.length!==0?g.createElement(g.Fragment,null,g.createElement("table",{ref:d,className:"rbc-agenda-table"},g.createElement("thead",null,g.createElement("tr",null,g.createElement("th",{className:"rbc-header",ref:h},S.date),g.createElement("th",{className:"rbc-header",ref:m},S.time),g.createElement("th",{className:"rbc-header"},S.event)))),g.createElement("div",{className:"rbc-agenda-content",ref:p},g.createElement("table",{className:"rbc-agenda-table"},g.createElement("tbody",{ref:v},D.map(function(T,x){return b(T,a,x)}))))):g.createElement("span",{className:"rbc-agenda-empty"},S.noEventsInRange))}$a.range=function(e,t){var r=t.length,n=r===void 0?Ea:r,a=t.localizer,i=a.add(e,n,"day");return{start:e,end:i}},$a.navigate=function(e,t,r){var n=r.length,a=n===void 0?Ea:n,i=r.localizer;switch(t){case Oe.PREVIOUS:return i.add(e,-a,"day");case Oe.NEXT:return i.add(e,a,"day");default:return e}},$a.title=function(e,t){var r=t.length,n=r===void 0?Ea:r,a=t.localizer,i=a.add(e,n,"day");return a.format({start:e,end:i},"agendaHeaderFormat")};var Ca=Ft(Ft(Ft(Ft(Ft({},Me.MONTH,Da),Me.WEEK,Tt),Me.WORK_WEEK,gn),Me.DAY,xa),Me.AGENDA,$a),UC=["action","date","today"];function jC(e,t){var r=t.action,n=t.date,a=t.today,i=nt(t,UC);switch(e=typeof e=="string"?Ca[e]:e,r){case Oe.TODAY:n=a||new Date;break;case Oe.DATE:break;default:Hr(e&&typeof e.navigate=="function","Calendar View components must implement a static `.navigate(date, action)` method.s"),n=e.navigate(n,r,i)}return n}function YC(e,t){var r=null;return typeof t=="function"?r=t(e):typeof t=="string"&&lt(e)==="object"&&e!=null&&t in e&&(r=e[t]),r}var ft=function(t){return function(r){return YC(r,t)}},qC=["view","date","getNow","onNavigate"],GC=["view","toolbar","events","backgroundEvents","resourceGroupingLayout","style","className","elementProps","date","getNow","length","showMultiDayTimes","onShowMore","doShowMoreDrillDown","components","formats","messages","culture"];function Df(e){if(Array.isArray(e))return e;for(var t=[],r=0,n=Object.entries(e);r<n.length;r++){var a=He(n[r],2),i=a[0],o=a[1];o&&t.push(i)}return t}function ZC(e,t){var r=t.views,n=Df(r);return n.indexOf(e)!==-1}var Tf=function(e){function t(){var r;ye(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Ee(this,t,[].concat(a)),r.getViews=function(){var o=r.props.views;return Array.isArray(o)?y$(o,function(s,l){return s[l]=Ca[l]},{}):lt(o)==="object"?yT(o,function(s,l){return s===!0?Ca[l]:s}):Ca},r.getView=function(){var o=r.getViews();return o[r.props.view]},r.getDrilldownView=function(o){var s=r.props,l=s.view,c=s.drilldownView,u=s.getDrilldownView;return u?u(o,l,Object.keys(r.getViews())):c},r.handleRangeChange=function(o,s,l){var c=r.props,u=c.onRangeChange,f=c.localizer;u&&s.range&&u(s.range(o,{localizer:f}),l)},r.handleNavigate=function(o,s){var l=r.props,c=l.view,u=l.date,f=l.getNow,d=l.onNavigate,h=nt(l,qC),m=r.getView(),p=f();u=jC(m,ne(ne({},h),{},{action:o,date:s||u||p,today:p})),d(u,c,o),r.handleRangeChange(u,m)},r.handleViewChange=function(o){o!==r.props.view&&ZC(o,r.props)&&r.props.onView(o);var s=r.getViews();r.handleRangeChange(r.props.date||r.props.getNow(),s[o],o)},r.handleSelectEvent=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];se(r.props.onSelectEvent,s)},r.handleDoubleClickEvent=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];se(r.props.onDoubleClickEvent,s)},r.handleKeyPressEvent=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];se(r.props.onKeyPressEvent,s)},r.handleSelectSlot=function(o){se(r.props.onSelectSlot,o)},r.handleDrillDown=function(o,s){var l=r.props.onDrillDown;if(l){l(o,s,r.drilldownView);return}s&&r.handleViewChange(s),r.handleNavigate(Oe.DATE,o)},r.state={context:t.getContext(r.props)},r}return $e(t,e),we(t,[{key:"render",value:function(){var n=this.props,a=n.view,i=n.toolbar,o=n.events,s=n.backgroundEvents,l=n.resourceGroupingLayout,c=n.style,u=n.className,f=n.elementProps,d=n.date,h=n.getNow,m=n.length,p=n.showMultiDayTimes,v=n.onShowMore,b=n.doShowMoreDrillDown;n.components,n.formats,n.messages,n.culture;var y=nt(n,GC);d=d||h();var O=this.getView(),S=this.state.context,w=S.accessors,D=S.components,T=S.getters,x=S.localizer,E=S.viewNames,M=D.toolbar||J$,N=O.title(d,{localizer:x,length:m});return g.createElement("div",Object.assign({},f,{className:he(u,"rbc-calendar",y.rtl&&"rbc-rtl"),style:c}),i&&g.createElement(M,{date:d,view:a,views:E,label:N,onView:this.handleViewChange,onNavigate:this.handleNavigate,localizer:x}),g.createElement(O,Object.assign({},y,{events:o,backgroundEvents:s,date:d,getNow:h,length:m,localizer:x,getters:T,components:D,accessors:w,showMultiDayTimes:p,getDrilldownView:this.getDrilldownView,onNavigate:this.handleNavigate,onDrillDown:this.handleDrillDown,onSelectEvent:this.handleSelectEvent,onDoubleClickEvent:this.handleDoubleClickEvent,onKeyPressEvent:this.handleKeyPressEvent,onSelectSlot:this.handleSelectSlot,onShowMore:v,doShowMoreDrillDown:b,resourceGroupingLayout:l})))}}],[{key:"getDerivedStateFromProps",value:function(n){return{context:t.getContext(n)}}},{key:"getContext",value:function(n){var a=n.startAccessor,i=n.endAccessor,o=n.allDayAccessor,s=n.tooltipAccessor,l=n.titleAccessor,c=n.resourceAccessor,u=n.resourceIdAccessor,f=n.resourceTitleAccessor,d=n.eventIdAccessor,h=n.eventPropGetter,m=n.backgroundEventPropGetter,p=n.slotPropGetter,v=n.slotGroupPropGetter,b=n.dayPropGetter,y=n.view,O=n.views,S=n.localizer,w=n.culture,D=n.messages,T=D===void 0?{}:D,x=n.components,E=x===void 0?{}:x,M=n.formats,N=M===void 0?{}:M,V=Df(O),P=eC(T);return{viewNames:V,localizer:X$(S,w,N,P),getters:{eventProp:function(){return h&&h.apply(void 0,arguments)||{}},backgroundEventProp:function(){return m&&m.apply(void 0,arguments)||{}},slotProp:function(){return p&&p.apply(void 0,arguments)||{}},slotGroupProp:function(){return v&&v.apply(void 0,arguments)||{}},dayProp:function(){return b&&b.apply(void 0,arguments)||{}}},components:dT(E[y]||{},o$(E,V),{eventWrapper:ut,backgroundEventWrapper:ut,eventContainerWrapper:ut,dateCellWrapper:ut,weekWrapper:ut,timeSlotWrapper:ut,timeGutterWrapper:ut}),accessors:{start:ft(a),end:ft(i),allDay:ft(o),tooltip:ft(s),title:ft(l),resource:ft(c),resourceId:ft(u),resourceTitle:ft(f),eventId:ft(d)}}}}])}(g.Component);Tf.defaultProps={events:[],backgroundEvents:[],elementProps:{},popup:!1,toolbar:!0,view:Me.MONTH,views:[Me.MONTH,Me.WEEK,Me.DAY,Me.AGENDA],step:30,length:30,allDayMaxRows:1/0,doShowMoreDrillDown:!0,drilldownView:Me.DAY,titleAccessor:"title",tooltipAccessor:"title",allDayAccessor:"allDay",startAccessor:"start",endAccessor:"end",resourceAccessor:"resourceId",resourceIdAccessor:"id",resourceTitleAccessor:"title",eventIdAccessor:"id",longPressThreshold:250,getNow:function(){return new Date},dayLayoutAlgorithm:"overlap"};var KC=kl(Tf,{view:"onView",date:"onNavigate",selected:"onSelectEvent"}),XC=function(t,r,n){var a=t.start,i=t.end;return n.format(a,"MMMM DD",r)+" – "+n.format(i,n.eq(a,i,"month")?"DD":"MMMM DD",r)},JC=function(t,r,n){var a=t.start,i=t.end;return n.format(a,"L",r)+" – "+n.format(i,"L",r)},mo=function(t,r,n){var a=t.start,i=t.end;return n.format(a,"LT",r)+" – "+n.format(i,"LT",r)},QC=function(t,r,n){var a=t.start;return n.format(a,"LT",r)+" – "},e_=function(t,r,n){var a=t.end;return" – "+n.format(a,"LT",r)},t_={dateFormat:"DD",dayFormat:"DD ddd",weekdayFormat:"ddd",selectRangeFormat:mo,eventTimeRangeFormat:mo,eventTimeRangeStartFormat:QC,eventTimeRangeEndFormat:e_,timeGutterFormat:"LT",monthHeaderFormat:"MMMM YYYY",dayHeaderFormat:"dddd MMM DD",dayRangeHeaderFormat:XC,agendaHeaderFormat:JC,agendaDateFormat:"ddd MMM DD",agendaTimeFormat:"LT",agendaTimeRangeFormat:mo};function xt(e){var t=e&&e.toLowerCase();return t==="FullYear"?t="year":t||(t=void 0),t}function r_(e){e.extend(S$),e.extend(D$),e.extend(x$),e.extend($$),e.extend(_$),e.extend(k$),e.extend(N$);var t=function(_,F){return F?_.locale(F):_},r=e.tz?e.tz:e;function n(C){return r(C).toDate().getTimezoneOffset()}function a(C,_){var F,W=r(C),R=r(_);if(!r.tz)return W.toDate().getTimezoneOffset()-R.toDate().getTimezoneOffset();var Q=(F=W.tz().$x.$timezone)!==null&&F!==void 0?F:e.tz.guess(),ae=-r.tz(+W,Q).utcOffset(),de=-r.tz(+R,Q).utcOffset();return ae-de}function i(C){var _=r(C).startOf("day");return a(_,C)}function o(C,_,F){var W=xt(F),R=W?r(C).startOf(W):r(C),Q=W?r(_).startOf(W):r(_);return[R,Q,W]}function s(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,_=arguments.length>1?arguments[1]:void 0,F=xt(_);return F?r(C).startOf(F).toDate():r(C).toDate()}function l(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,_=arguments.length>1?arguments[1]:void 0,F=xt(_);return F?r(C).endOf(F).toDate():r(C).toDate()}function c(C,_,F){var W=o(C,_,F),R=He(W,3),Q=R[0],ae=R[1],de=R[2];return Q.isSame(ae,de)}function u(C,_,F){return!c(C,_,F)}function f(C,_,F){var W=o(C,_,F),R=He(W,3),Q=R[0],ae=R[1],de=R[2];return Q.isAfter(ae,de)}function d(C,_,F){var W=o(C,_,F),R=He(W,3),Q=R[0],ae=R[1],de=R[2];return Q.isBefore(ae,de)}function h(C,_,F){var W=o(C,_,F),R=He(W,3),Q=R[0],ae=R[1],de=R[2];return Q.isSameOrBefore(ae,de)}function m(C,_,F){var W=o(C,_,F),R=He(W,3),Q=R[0],ae=R[1],de=R[2];return Q.isSameOrBefore(ae,de)}function p(C,_,F){var W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"day",R=xt(W),Q=r(C),ae=r(_),de=r(F);return Q.isBetween(ae,de,R,"[]")}function v(C,_){var F=r(C),W=r(_),R=e.min(F,W);return R.toDate()}function b(C,_){var F=r(C),W=r(_),R=e.max(F,W);return R.toDate()}function y(C,_){if(!C&&!_)return null;var F=r(_).format("HH:mm:ss"),W=r(C).startOf("day").format("MM/DD/YYYY");return e("".concat(W," ").concat(F),"MM/DD/YYYY HH:mm:ss").toDate()}function O(C,_,F){var W=xt(F);return r(C).add(_,W).toDate()}function S(C,_){for(var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"day",W=xt(F),R=r(C).toDate(),Q=[];m(R,_);)Q.push(R),R=O(R,1,W);return Q}function w(C,_){var F=xt(_),W=s(C,F);return c(W,C)?W:O(W,1,F)}function D(C,_){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"day",W=xt(F),R=r(C),Q=r(_);return Q.diff(R,W)}function T(C){var _=r(C);return _.minutes()}function x(C){var _=C?e.localeData(C):e.localeData();return _?_.firstDayOfWeek():0}function E(C){return r(C).startOf("month").startOf("week").toDate()}function M(C){return r(C).endOf("month").endOf("week").toDate()}function N(C){for(var _=E(C),F=M(C),W=[];m(_,F);)W.push(_),_=O(_,1,"d");return W}function V(C,_,F){return r(C).startOf("day").minute(_+F).toDate()}function P(C,_){return D(C,_,"minutes")}function B(C){var _=r(C).startOf("day"),F=r(C);return F.diff(_,"minutes")+i(C)}function J(C,_){var F=r(C),W=r(_);return F.isBefore(W,"day")}function G(C,_,F){var W=r(_),R=r(F);return W.isSameOrAfter(R,"minutes")}function K(C,_){var F=r(C),W=r(_);return W.diff(F,"day")}function fe(C){var _=C.evtA,F=_.start,W=_.end,R=_.allDay,Q=C.evtB,ae=Q.start,de=Q.end,qt=Q.allDay,Et=+s(F,"day")-+s(ae,"day"),yn=K(F,W),$r=K(ae,de);return Et||$r-yn||!!qt-!!R||+F-+ae||+W-+de}function me(C){var _=C.event,F=_.start,W=_.end,R=C.range,Q=R.start,ae=R.end,de=r(F).startOf("day"),qt=r(W),Et=r(Q),yn=r(ae),$r=de.isSameOrBefore(yn,"day"),So=!de.isSame(qt,"minutes"),Oo=So?qt.isAfter(Et,"minutes"):qt.isSameOrAfter(Et,"minutes");return $r&&Oo}function _e(C,_){var F=r(C),W=r(_);return F.isSame(W,"day")}function Pe(){var C=new Date,_=/-/.test(C.toString())?"-":"",F=C.getTimezoneOffset(),W=Number("".concat(_).concat(Math.abs(F))),R=r().utcOffset();return R>W?1:0}return new K$({formats:t_,firstOfWeek:x,firstVisibleDay:E,lastVisibleDay:M,visibleDays:N,format:function(_,F,W){return t(r(_),W).format(F)},lt:d,lte:m,gt:f,gte:h,eq:c,neq:u,merge:y,inRange:p,startOf:s,endOf:l,range:S,add:O,diff:D,ceil:w,min:v,max:b,minutes:T,getSlotDate:V,getTimezoneOffset:n,getDstOffset:a,getTotalMin:P,getMinutesFromMidnight:B,continuesPrior:J,continuesAfter:G,sortEvents:fe,inEventRange:me,isSameDate:_e,browserTZOffset:Pe})}var xf={},Ef={exports:{}},$f={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})($f);var n_=$f.exports;(function(e){var t=n_.default;function r(a){if(typeof WeakMap!="function")return null;var i=new WeakMap,o=new WeakMap;return(r=function(l){return l?o:i})(a)}function n(a,i){if(!i&&a&&a.__esModule)return a;if(a===null||t(a)!="object"&&typeof a!="function")return{default:a};var o=r(i);if(o&&o.has(a))return o.get(a);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in a)if(c!=="default"&&{}.hasOwnProperty.call(a,c)){var u=l?Object.getOwnPropertyDescriptor(a,c):null;u&&(u.get||u.set)?Object.defineProperty(s,c,u):s[c]=a[c]}return s.default=a,o&&o.set(a,s),s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Ef);var a_=Ef.exports;const i_=xo(hi);(function(e){var t=a_.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"add",{enumerable:!0,get:function(){return r.add}}),e.ceil=c,e.diff=p,e.duration=m,Object.defineProperty(e,"endOf",{enumerable:!0,get:function(){return r.endOf}}),Object.defineProperty(e,"eq",{enumerable:!0,get:function(){return r.eq}}),e.eqTime=d,e.firstVisibleDay=o,Object.defineProperty(e,"gt",{enumerable:!0,get:function(){return r.gt}}),Object.defineProperty(e,"gte",{enumerable:!0,get:function(){return r.gte}}),Object.defineProperty(e,"hours",{enumerable:!0,get:function(){return r.hours}}),Object.defineProperty(e,"inRange",{enumerable:!0,get:function(){return r.inRange}}),e.isJustDate=h,e.lastVisibleDay=s,Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return r.lt}}),Object.defineProperty(e,"lte",{enumerable:!0,get:function(){return r.lte}}),Object.defineProperty(e,"max",{enumerable:!0,get:function(){return r.max}}),e.merge=f,Object.defineProperty(e,"milliseconds",{enumerable:!0,get:function(){return r.milliseconds}}),Object.defineProperty(e,"min",{enumerable:!0,get:function(){return r.min}}),Object.defineProperty(e,"minutes",{enumerable:!0,get:function(){return r.minutes}}),Object.defineProperty(e,"month",{enumerable:!0,get:function(){return r.month}}),e.monthsInYear=i,Object.defineProperty(e,"neq",{enumerable:!0,get:function(){return r.neq}}),e.range=u,Object.defineProperty(e,"seconds",{enumerable:!0,get:function(){return r.seconds}}),Object.defineProperty(e,"startOf",{enumerable:!0,get:function(){return r.startOf}}),e.today=y,e.tomorrow=S,e.total=v,e.visibleDays=l,e.week=b,e.yesterday=O;var r=t(i_),n={seconds:1e3,minutes:1e3*60,hours:1e3*60*60,day:1e3*60*60*24},a=[0,1,2,3,4,5,6,7,8,9,10,11];function i(w){var D=new Date(w,0,1);return a.map(function(T){return r.month(D,T)})}function o(w,D){var T=r.startOf(w,"month");return r.startOf(T,"week",D.startOfWeek())}function s(w,D){var T=r.endOf(w,"month");return r.endOf(T,"week",D.startOfWeek())}function l(w,D){for(var T=o(w,D),x=s(w,D),E=[];r.lte(T,x,"day");)E.push(T),T=r.add(T,1,"day");return E}function c(w,D){var T=r.startOf(w,D);return r.eq(T,w)?T:r.add(T,1,D)}function u(w,D){for(var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"day",x=w,E=[];r.lte(x,D,T);)E.push(x),x=r.add(x,1,T);return E}function f(w,D){return D==null&&w==null?null:(D==null&&(D=new Date),w==null&&(w=new Date),w=r.startOf(w,"day"),w=r.hours(w,r.hours(D)),w=r.minutes(w,r.minutes(D)),w=r.seconds(w,r.seconds(D)),r.milliseconds(w,r.milliseconds(D)))}function d(w,D){return r.hours(w)===r.hours(D)&&r.minutes(w)===r.minutes(D)&&r.seconds(w)===r.seconds(D)}function h(w){return r.hours(w)===0&&r.minutes(w)===0&&r.seconds(w)===0&&r.milliseconds(w)===0}function m(w,D,T,x){return T==="day"&&(T="date"),Math.abs(r[T](w,void 0,x)-r[T](D,void 0,x))}function p(w,D,T){return!T||T==="milliseconds"?Math.abs(+w-+D):Math.round(Math.abs(+r.startOf(w,T)/n[T]-+r.startOf(D,T)/n[T]))}function v(w,D){var T=w.getTime(),x=1;switch(D){case"week":x*=7;case"day":x*=24;case"hours":x*=60;case"minutes":x*=60;case"seconds":x*=1e3}return T/x}function b(w){var D=new Date(w);return D.setHours(0,0,0),D.setDate(D.getDate()+4-(D.getDay()||7)),Math.ceil(((D-new Date(D.getFullYear(),0,1))/864e5+1)/7)}function y(){return r.startOf(new Date,"day")}function O(){return r.add(r.startOf(new Date,"day"),-1,"day")}function S(){return r.add(r.startOf(new Date,"day"),1,"day")}})(xf);var vo={1:{1:"春节",15:"元宵"},2:{2:"龙抬头"},5:{5:"端午"},7:{7:"七夕",15:"中元"},8:{15:"中秋"},9:{9:"重阳"},12:{29:"除夕",30:"除夕"}},go={1:{1:"元旦"},2:{14:"情人节"},3:{8:"妇女节"},4:{1:"愚人节",4:"清明节"},5:{1:"劳动节",4:"青年节"},6:{1:"儿童节"},7:{1:"建党节"},8:{1:"建军节"},9:{10:"教师节"},10:{1:"国庆节"}};const j={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,37600,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,42192,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],lunarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],lTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],nStr4:["零","一","二","三","四","五","六","七","八","九","十"],lYearDays:function(e){var t,r=348;for(t=32768;t>8;t>>=1)r+=j.lunarInfo[e-1900]&t?1:0;return r+j.leapDays(e)},leapMonth:function(e){return 15&j.lunarInfo[e-1900]},leapDays:function(e){return j.leapMonth(e)?65536&j.lunarInfo[e-1900]?30:29:0},monthDays:function(e,t){return t>12||t<1?-1:j.lunarInfo[e-1900]&65536>>t?30:29},solarDays:function(e,t){if(t>12||t<1)return-1;var r=t-1;return r==1?e%4==0&&e%100!=0||e%400==0?29:28:j.solarMonth[r]},toGanZhi:function(e){return j.gan[e%10]+j.zhi[e%12]},getTerm:function(e,t){if(e<1900||e>2100||t<1||t>24)return-1;var r=j.lTermInfo[e-1900],n=[parseInt("0x"+r.substr(0,5)).toString(),parseInt("0x"+r.substr(5,5)).toString(),parseInt("0x"+r.substr(10,5)).toString(),parseInt("0x"+r.substr(15,5)).toString(),parseInt("0x"+r.substr(20,5)).toString(),parseInt("0x"+r.substr(25,5)).toString()],a=[n[0].substr(0,1),n[0].substr(1,2),n[0].substr(3,1),n[0].substr(4,2),n[1].substr(0,1),n[1].substr(1,2),n[1].substr(3,1),n[1].substr(4,2),n[2].substr(0,1),n[2].substr(1,2),n[2].substr(3,1),n[2].substr(4,2),n[3].substr(0,1),n[3].substr(1,2),n[3].substr(3,1),n[3].substr(4,2),n[4].substr(0,1),n[4].substr(1,2),n[4].substr(3,1),n[4].substr(4,2),n[5].substr(0,1),n[5].substr(1,2),n[5].substr(3,1),n[5].substr(4,2)];return parseInt(a[t-1])},toChinaYear:function(e){var t=parseInt((e/1e3).toString()),r=parseInt((e%1e3/100).toString()),n=parseInt((e%100/10).toString()),a=e%10;return j.nStr4[t]+j.nStr4[r]+j.nStr4[n]+j.nStr4[a]+"年"},toChinaMonth:function(e){if(e>12||e<1)return-1;var t=j.nStr3[e-1];return t+="月"},toChinaDay:function(e){var t;switch(e){case 10:t="初十";break;case 20:t="二十";break;case 30:t="三十";break;default:t=j.nStr2[Math.floor(e/10)],t+=j.nStr1[e%10]}return t},getAnimal:function(e){return j.animals[(e-4)%12]},solar2lunar:function(e,t,r){if(e<1900||e>2100||e==1900&&t==1&&r<31)return-1;if(e)n=new Date(e,parseInt(t.toString())-1,r);else var n=new Date;var a,i=0,o=(e=n.getFullYear(),t=n.getMonth()+1,r=n.getDate(),(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(1900,0,31))/864e5);for(a=1900;a<2101&&o>0;a++)o-=i=j.lYearDays(a);o<0&&(o+=i,a--);var s=new Date,l=!1;s.getFullYear()==e&&s.getMonth()+1==t&&s.getDate()==r&&(l=!0);var c=n.getDay(),u=j.nStr1[c];c==0&&(c=7);var f=a,d=j.leapMonth(a),h=!1;for(a=1;a<13&&o>0;a++)d>0&&a==d+1&&h==0?(--a,h=!0,i=j.leapDays(f)):i=j.monthDays(f,a),h==1&&a==d+1&&(h=!1),o-=i;o==0&&d>0&&a==d+1&&(h?h=!1:(h=!0,--a)),o<0&&(o+=i,--a);var m=a,p=o+1,v=t-1,b=j.getTerm(e,3),y=j.toGanZhi(e-4),O=new Date(e,1,b).getTime();new Date(e,v,r).getTime()<O&&(y=j.toGanZhi(e-5));var S=j.getTerm(e,2*t-1),w=j.getTerm(e,2*t),D=j.toGanZhi(12*(e-1900)+t+11);r>=S&&(D=j.toGanZhi(12*(e-1900)+t+12));var T=!1,x="";S==r&&(T=!0,x=j.lunarTerm[2*t-2]),w==r&&(T=!0,x=j.lunarTerm[2*t-1]);var E=Date.UTC(e,v,1,0,0,0,0)/864e5+25567+10,M=j.toGanZhi(E+r-1),N=vo[m]&&vo[m][p]?vo[m][p]:"";[2022,2025,2026,2027,2028,2029,2031,2032].includes(e)&&m===12&&p===29&&(N="除夕");var V=go[t]&&go[t][r]?go[t][r]:"";return{lYear:f,lMonth:m,lDay:p,animal:j.getAnimal(f),yearCn:j.toChinaYear(f),monthCn:(h&&d===m?"闰":"")+j.toChinaMonth(m),dayCn:j.toChinaDay(p),cYear:e,cMonth:t,cDay:r,gzYear:y,gzMonth:D,gzDay:M,isToday:l,isLeap:h,nWeek:c,ncWeek:"星期"+u,isTerm:T,term:x,lunarFestival:N,festival:V}},lunar2solar:function(e,t,r,n){var a=j.leapMonth(e);if(j.leapDays(e),n&&a!=t||e==2100&&t==12&&r>1||e==1900&&t==1&&r<31)return-1;var i=j.monthDays(e,t);if(e<1900||e>2100||r>i)return-1;for(var o=0,s=1900;s<e;s++)o+=j.lYearDays(s);var l=0,c=!1;for(s=1;s<t;s++)l=j.leapMonth(e),c||l<=s&&l>0&&(o+=j.leapDays(e),c=!0),o+=j.monthDays(e,s);n&&(o+=i);var u=Date.UTC(1900,1,30,0,0,0),f=new Date(864e5*(o+r-31)+u),d=f.getUTCFullYear(),h=f.getUTCMonth()+1,m=f.getUTCDate();return j.solar2lunar(d,h,m)}};var o_=j;const Cf=e=>{const t=ke(e),r=o_.solar2lunar(t.year(),t.month()+1,t.date());return typeof r!="number"?r.lunarFestival||r.term||r.dayCn:r},bo=e=>e.format("YYYY-MM-DDTHH:mm:ss.SSSZ"),s_=({date:e,label:t,drilldownView:r,onDrillDown:n,showLunar:a=!1,type:i,localizer:o})=>{const s=g.useMemo(()=>{if(a)return A.jsx("span",{className:"rbc-date-lunar",children:Cf(e)})},[e,a]),l=g.useMemo(()=>i==="week"?A.jsxs("div",{children:[A.jsx("span",{children:o.format(e,"ddd")}),A.jsxs("div",{className:"rbc-date-wrap",children:[A.jsx("span",{className:"rbc-date-solar",children:o.format(e,"DD")}),s]})]}):A.jsxs(A.Fragment,{children:[A.jsx("span",{className:"rbc-date-solar",children:t}),s]}),[i]),c=r?"a":g.Fragment;return A.jsx(c,{onClick:n,role:"cell",children:l})},Er=g.createContext(null);Er.displayName="CalendarToolbarContext";const l_=g.createContext(null);l_.displayName="CalendarContext";const c_=g.createContext(null);c_.displayName="DeleteEventContext";const _f=$.createGlobalStyle`
13
+ .rbc-overlay {
14
+ position: absolute;
15
+ z-index: 50;
16
+ margin-top: 5px;
17
+ border-radius: ${({theme:e})=>`${e.borderRadius}px`};
18
+ background-color: ${({theme:e})=>e.colorBgElevated};
19
+ box-shadow: ${({theme:e})=>e.boxShadow};
20
+ padding: ${({theme:e})=>`${e.paddingContentVertical}px ${e.paddingContentHorizontalSM}px`};
21
+ }
22
+ .rbc-overlay > * + * {
23
+ margin-top: 1px;
24
+ }
25
+
26
+ .rbc-overlay-header {
27
+ font-weight: 500;
28
+ font-size: ${({theme:e})=>`${e.fontSize}px`};
29
+ color: ${({theme:e})=>e.colorTextSecondary};
30
+ min-height: ${({theme:e})=>`${e.sizeXL}px`};
31
+ border-bottom: ${({theme:e})=>`1px solid ${e.colorBorderSecondary}`};
32
+ margin: ${({theme:e})=>`-${e.paddingContentVertical}px -${e.paddingContentHorizontalSM}px ${e.paddingContentVertical}px -${e.paddingContentHorizontalSM}px`};
33
+ padding: ${({theme:e})=>`${e.paddingXXS}px ${e.paddingContentHorizontalSM}px`};
34
+ }
35
+
36
+ .rbc-event {
37
+ border: none;
38
+ box-sizing: border-box;
39
+ box-shadow: none;
40
+ margin: 0;
41
+ padding: 2px 5px;
42
+ background-color: ${({theme:e})=>e.colorBorderSecondary};
43
+ border-radius: ${({theme:e})=>`${e.borderRadiusXS}px`};
44
+ color: ${({theme:e})=>e.colorTextSecondary};
45
+ cursor: pointer;
46
+ font-size: ${({theme:e})=>`${e.fontSizeSM}px`};
47
+ width: 100%;
48
+ text-align: left;
49
+ &:hover {
50
+ background-color: ${({theme:e})=>e.colorPrimaryBg};
51
+ color: ${({theme:e})=>e.colorPrimaryText};
52
+ }
53
+ }
54
+ .rbc-slot-selecting .rbc-event {
55
+ cursor: inherit;
56
+ pointer-events: none;
57
+ }
58
+ .rbc-event.rbc-selected {
59
+ background-color: ${({theme:e})=>e.colorPrimaryBg};
60
+ color: ${({theme:e})=>e.colorPrimaryText};
61
+ }
62
+ .rbc-event:focus {
63
+ // outline: 5px auto #3b99fc;
64
+ }
65
+
66
+ .rbc-event-label {
67
+ font-size: 80%;
68
+ }
69
+
70
+ .rbc-event-overlaps {
71
+ box-shadow: ${({theme:e})=>e.boxShadow};
72
+ }
73
+
74
+ .rbc-event-continues-prior {
75
+ border-top-left-radius: 0;
76
+ border-bottom-left-radius: 0;
77
+ }
78
+
79
+ .rbc-event-continues-after {
80
+ border-top-right-radius: 0;
81
+ border-bottom-right-radius: 0;
82
+ }
83
+
84
+ .rbc-event-continues-earlier {
85
+ border-top-left-radius: 0;
86
+ border-top-right-radius: 0;
87
+ }
88
+
89
+ .rbc-event-continues-later {
90
+ border-bottom-left-radius: 0;
91
+ border-bottom-right-radius: 0;
92
+ }
93
+ `;_f.displayName="GlobalStyle";const u_=$.genStyleHook("tb-calendar",e=>{const{componentCls:t}=e;return{[t]:{".rbc-btn":{color:"inherit",font:"inherit",margin:"0"},"button.rbc-btn":{overflow:"visible",textTransform:"none",WebkitAppearance:"button",cursor:"pointer"},"button[disabled].rbc-btn":{cursor:"not-allowed"},"button.rbc-input::-moz-focus-inner":{border:"0",padding:"0"},".rbc-button-link":{border:"none",backgroundColor:"transparent"},".rbc-calendar":{boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"stretch",height:"100%"},".rbc-calendar *,\n.rbc-calendar *:before,\n.rbc-calendar *:after":{boxSizing:"inherit"},".rbc-abs-full,\n.rbc-row-bg":{overflow:"hidden",position:"absolute",top:"0",left:"0",right:"0",bottom:"0"},".rbc-ellipsis,\n.rbc-event-label,\n.rbc-row-segment .rbc-event-content,\n.rbc-show-more":{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},".rbc-rtl":{direction:"rtl"},".rbc-off-range":{color:e.colorTextDisabled},".rbc-header":{overflow:"hidden",flex:"1 0 0%",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:`${e.paddingXXS}px ${e.paddingSM}px`,verticalAlign:"middle",minHeight:e.sizeXL,color:e.colorText,margin:`0 ${e.marginXXS}px`,borderBottom:`2px solid ${e.colorBorderSecondary}`},".rbc-rtl .rbc-header + .rbc-header":{borderLeftWidth:"0",borderRight:`1px solid ${e.colorBorderSecondary}`},".rbc-header > a,\n.rbc-header > a:active,\n.rbc-header > a:visited":{color:"inherit",textDecoration:"none"},".rbc-row-content":{position:"relative",userSelect:"none",WebkitUserSelect:"none",zIndex:4},".rbc-row-content-scrollable":{display:"flex",flexDirection:"column",height:"100%"},".rbc-row-content-scrollable .rbc-row-content-scroll-container":{height:"100%",overflowY:"scroll",msOverflowStyle:"none",scrollbarWidth:"none"},".rbc-row-content-scrollable .rbc-row-content-scroll-container::-webkit-scrollbar":{display:"none"},".rbc-toolbar":{display:"flex",flexWrap:"wrap",justifyContent:"center",alignItems:"center",marginBottom:e.marginXS,fontSize:e.fontSize},".rbc-toolbar .rbc-toolbar-label":{flexGrow:1,padding:`0 ${e.paddingXS}px`,textAlign:"center"},".rbc-toolbar button":{outline:"none",fontSize:e.fontSize,lineHeight:[e.lineHeight,"normal"],height:e.controlHeight,color:e.colorTextLabel,display:"inline-block",margin:"0",position:"relative",zIndex:1,textAlign:"center",verticalAlign:"middle",background:"none",backgroundImage:"none",border:`1px solid ${e.colorBorder}`,padding:`${e.paddingXXS}px ${e.paddingSM+e.paddingXXS}px`,borderRadius:e.borderRadiusXS,whiteSpace:"nowrap"},".rbc-toolbar button:active,\n.rbc-toolbar button.rbc-active":{zIndex:2,color:"#1890ff",borderColor:"#1890ff"},".rbc-toolbar button:active:hover,\n.rbc-toolbar button:active:focus,\n.rbc-toolbar button.rbc-active:hover,\n.rbc-toolbar button.rbc-active:focus":{zIndex:2,color:"#40a9ff",borderColor:"#40a9ff"},".rbc-toolbar button:hover":{zIndex:2,color:"#40a9ff",borderColor:"#40a9ff"},".rbc-btn-group":{display:"inline-block",whiteSpace:"nowrap"},".rbc-btn-group > button:first-child:not(:last-child)":{borderTopRightRadius:"0",borderBottomRightRadius:"0"},".rbc-btn-group > button:last-child:not(:first-child)":{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},".rbc-rtl .rbc-btn-group > button:first-child:not(:last-child)":{borderRadius:"4px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},".rbc-rtl .rbc-btn-group > button:last-child:not(:first-child)":{borderRadius:"4px",borderTopRightRadius:"0",borderBottomRightRadius:"0"},".rbc-btn-group > button:not(:first-child):not(:last-child)":{borderRadius:"0"},".rbc-btn-group button + button":{marginLeft:"-1px"},".rbc-rtl .rbc-btn-group button + button":{marginLeft:"0",marginRight:"-1px"},".rbc-btn-group + .rbc-btn-group,\n.rbc-btn-group + button":{marginLeft:"10px"},".rbc-event":{border:"none",boxSizing:"border-box",boxShadow:"none",margin:"0",padding:"2px 5px",backgroundColor:e.colorBorderSecondary,borderRadius:e.borderRadiusXS,cursor:"pointer",fontSize:e.fontSizeSM,width:"100%",textAlign:"left","&:hover":{backgroundColor:e.colorPrimaryBg,color:e.colorPrimaryText}},".rbc-slot-selecting .rbc-event":{cursor:"inherit",pointerEvents:"none"},".rbc-event.rbc-selected":{backgroundColor:e.colorPrimaryBg,color:e.colorPrimaryText},".rbc-event-label":{fontSize:"80%"},".rbc-event-overlaps":{boxShadow:"-1px 1px 5px 0px rgba(51, 51, 51, 0.5)"},".rbc-event-continues-prior":{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},".rbc-event-continues-after":{borderTopRightRadius:"0",borderBottomRightRadius:"0"},".rbc-event-continues-earlier":{borderTopLeftRadius:"0",borderTopRightRadius:"0"},".rbc-event-continues-later":{borderBottomLeftRadius:"0",borderBottomRightRadius:"0"},".rbc-row":{display:"flex",flexDirection:"row"},".rbc-row-segment":{padding:"0 4px 1px 4px"},".rbc-selected-cell":{backgroundColor:"rgba(0, 0, 0, 0.1)"},".rbc-show-more":{zIndex:4,fontWeight:"bold",fontSize:"85%",height:"auto",lineHeight:"normal",color:"inherit",padding:"2px 5px"},".rbc-month-view":{position:"relative",display:"flex",flexDirection:"column",flex:"1 0 0",width:"100%",userSelect:"none",WebkitUserSelect:"none",height:"68vh",".rbc-day-bg":{borderTop:`2px solid ${e.colorBorderSecondary}`},".rbc-today":{borderColor:`${e.colorPrimaryBorder} !important`,backgroundColor:`${e.colorPrimaryBg} !important`},".rbc-header":{borderBottom:"0 !important"}},".rbc-month-header":{display:"flex",flexDirection:"row"},".rbc-month-row":{display:"flex",position:"relative",flexDirection:"column",flex:"1 0 0",flexBasis:"0px",overflow:"hidden",height:"100%"},".rbc-date-cell":{flex:"1 1 0",minWidth:"0",paddingLeft:"12px",paddingTop:"4px"},".rbc-date-cell.rbc-now span":{color:"#1890ff"},".rbc-date-cell a,\n.rbc-date-cell a:active,\n.rbc-date-cell a:visited":{color:"inherit",textDecoration:"none"},".rbc-date-cell a:hover":{color:"#1890ff"},".rbc-date-cell .rbc-date-solar":{fontWeight:500},".rbc-date-cell .rbc-date-lunar":{paddingLeft:"12px"},".rbc-date-cell:not(.rbc-off-range) .rbc-date-lunar":{color:"#aaa"},".rbc-date-cell .rbc-date-lunar:hover":{color:"inherit"},".rbc-row-bg":{display:"flex",flexDirection:"row",flex:"1 0 0",overflow:"hidden"},".rbc-day-bg":{flex:"1 0 0%",margin:"0 4px","&:hover":{background:e.colorFillQuaternary}},".rbc-agenda-view":{display:"flex",flexDirection:"column",flex:"1 0 0",overflow:"auto"},".rbc-agenda-view table.rbc-agenda-table":{width:"100%",border:"1px solid #f0f0f0",borderSpacing:"0",borderCollapse:"collapse"},".rbc-agenda-view table.rbc-agenda-table tbody > tr > td":{padding:"5px 10px",verticalAlign:"top"},".rbc-agenda-view table.rbc-agenda-table .rbc-agenda-time-cell":{paddingLeft:"15px",paddingRight:"15px",textTransform:"lowercase"},".rbc-agenda-view table.rbc-agenda-table tbody > tr > td + td":{borderLeft:"1px solid #f0f0f0"},".rbc-rtl .rbc-agenda-view table.rbc-agenda-table tbody > tr > td + td":{borderLeftWidth:"0",borderRight:"1px solid #f0f0f0"},".rbc-agenda-view table.rbc-agenda-table tbody > tr + tr":{borderTop:"1px solid #f0f0f0"},".rbc-agenda-view table.rbc-agenda-table thead > tr > th":{padding:"3px 5px",textAlign:"left",borderBottom:"1px solid #f0f0f0"},".rbc-rtl .rbc-agenda-view table.rbc-agenda-table thead > tr > th":{textAlign:"right"},".rbc-agenda-time-cell":{textTransform:"lowercase"},".rbc-agenda-time-cell .rbc-continues-after:after":{content:"' »'"},".rbc-agenda-time-cell .rbc-continues-prior:before":{content:"'« '"},".rbc-agenda-date-cell,\n.rbc-agenda-time-cell":{whiteSpace:"nowrap"},".rbc-agenda-event-cell":{width:"100%"},".rbc-time-column":{display:"flex",flexDirection:"column",minHeight:"100%"},".rbc-time-column .rbc-timeslot-group":{flex:1},".rbc-timeslot-group":{borderBottom:"1px solid #f0f0f0",minHeight:"40px",lineHeight:"39px",display:"flex",flexFlow:"column nowrap","&:hover":{background:"#f0f0f0"}},".rbc-time-gutter,\n.rbc-header-gutter":{flex:"none"},".rbc-label":{padding:"0 5px"},".rbc-day-slot":{position:"relative"},".rbc-day-slot .rbc-events-container":{bottom:"0",left:"0",position:"absolute",right:"0",marginRight:"10px",top:"0"},".rbc-day-slot .rbc-events-container.rbc-rtl":{left:"10px",right:"0"},".rbc-day-slot .rbc-event":{border:"1px solid #265985",display:"flex",maxHeight:"100%",minHeight:"20px",flexFlow:"column wrap",alignItems:"flex-start",overflow:"hidden",position:"absolute"},".rbc-day-slot .rbc-event-label":{flex:"none",paddingRight:"5px",width:"auto"},".rbc-day-slot .rbc-event-content":{width:"100%",flex:"1 1 0",wordWrap:"break-word",lineHeight:1,height:"100%",minHeight:"1em"},".rbc-time-header-gutter":{lineHeight:"40px"},".rbc-time-header-cell":{minHeight:"32px !important"},".rbc-time-header-cell .rbc-header":{display:"flex"},".rbc-time-header-cell .rbc-header.rbc-today":{borderColor:e.colorPrimaryBorder,backgroundColor:e.colorPrimaryBg,color:e.colorPrimaryText},".rbc-time-header-cell .rbc-header a":{display:"flex",flexDirection:"column"},".rbc-time-header-cell .rbc-date-wrap":{display:"flex",alignItems:"center"},".rbc-time-header-cell .rbc-date-solar":{fontSize:"18px"},".rbc-time-header-cell .rbc-date-lunar":{marginLeft:"4px"},".rbc-time-header-cell .rbc-header:not(.rbc-today) .rbc-date-lunar":{color:"#aaa"},".rbc-calendar.view-week":{".rbc-time-header-cell":{marginTop:"-32px",marginBottom:"4px"},".rbc-time-view":{paddingTop:"32px",borderTop:"0"},".rbc-header":{padding:"4px 8px"},".rbc-time-header-content":{padding:"4px 0"},".rbc-time-header-gutter":{padding:"0",paddingTop:"2px","> div":{borderTop:"2px solid #f0f0f0",padding:"0 5px"}}},".rbc-time-view-resources .rbc-time-gutter,\n.rbc-time-view-resources .rbc-time-header-gutter":{position:"sticky",left:"0",backgroundColor:"white",borderRight:"1px solid #f0f0f0",zIndex:10,marginRight:"-1px"},".rbc-time-view-resources .rbc-time-header":{overflow:"hidden"},".rbc-time-view-resources .rbc-time-header-content":{minWidth:"auto",flex:"1 0 0",flexBasis:"0px"},".rbc-time-view-resources .rbc-time-header-cell-single-day":{display:"none"},".rbc-time-view-resources .rbc-day-slot":{minWidth:"140px"},".rbc-time-view-resources .rbc-header,\n.rbc-time-view-resources .rbc-day-bg":{width:"140px",flex:"1 1 0",flexBasis:"0 px"},".rbc-time-header-content + .rbc-time-header-content":{marginLeft:"-1px"},".rbc-time-slot":{flex:"1 0 0"},".rbc-time-slot.rbc-now":{fontWeight:"bold"},".rbc-day-header":{textAlign:"center"},".rbc-slot-selection":{zIndex:10,position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.5)",color:"white",fontSize:"75%",width:"100%",padding:"3px"},".rbc-slot-selecting":{cursor:"move"},".rbc-time-view":{display:"flex",flexDirection:"column",flex:1,width:"100%",borderTop:"1px solid #f0f0f0",minHeight:"0"},".rbc-time-view .rbc-time-gutter":{whiteSpace:"nowrap"},".rbc-time-view .rbc-allday-cell":{boxSizing:"content-box",width:"100%",height:"100%",position:"relative"},".rbc-time-view .rbc-allday-cell + .rbc-allday-cell":{borderLeft:"1px solid #f0f0f0"},".rbc-time-view .rbc-allday-events":{position:"relative",zIndex:4},".rbc-time-view .rbc-row":{boxSizing:"border-box",minHeight:"20px"},".rbc-time-header":{display:"flex",flex:"0 0 auto",flexDirection:"row"},".rbc-time-header.rbc-overflowing":{borderRight:"1px solid #f0f0f0"},".rbc-rtl .rbc-time-header.rbc-overflowing":{borderRightWidth:"0",borderLeft:"1px solid #f0f0f0"},".rbc-time-header > .rbc-row:first-child":{borderBottom:"1px solid #f0f0f0"},".rbc-time-header > .rbc-row.rbc-row-resource":{borderBottom:"1px solid #f0f0f0"},".rbc-time-header-cell-single-day":{display:"none"},".rbc-time-header-content":{flex:1,minWidth:"0",flexDirection:"column"},".rbc-rtl .rbc-time-header-content":{borderLeftWidth:"0",borderRight:"1px solid #f0f0f0"},".rbc-time-header-content > .rbc-row.rbc-row-resource":{borderBottom:"1px solid #f0f0f0",flexShrink:0},".rbc-time-content":{display:"flex",flex:"1 0 0%",alignItems:"flex-start",width:"100%",borderTop:"1px solid #f0f0f0",overflowY:"auto",position:"relative"},".rbc-time-content > .rbc-time-gutter":{flex:"none"},".rbc-rtl .rbc-time-content > * + * > *":{borderLeftWidth:"0",borderRight:"1px solid #f0f0f0"},".rbc-time-content > .rbc-day-slot":{width:"100%",userSelect:"none",WebkitUserSelect:"none"},".rbc-current-time-indicator":{position:"absolute",zIndex:3,left:"0",right:"0",height:"1px",backgroundColor:"#74ad31",pointerEvents:"none"},"@media only screen and (max-width: 800px)":{".view-type-calendar .action-buttons":{position:"relative !important",left:"0 !important",".filter-action-button":{left:"0 !important"}},".rbc-toolbar .rbc-toolbar-label":{position:"absolute",top:"28px",left:"50%",transform:"translateX(-50%)"},".rbc-toolbar":{justifyContent:"space-between !important"},".rbc-header":{padding:"4px !important"}}}}}),f_=["month","week","day"],d_=r_(ke),Mf=g.createContext({close:()=>{}});function h_(e){const t=ee.useFieldSchema(),r=g.useMemo(()=>t.reduceProperties((n,a)=>a["x-component"].endsWith(".ActionBar")?a:n,null),[]);return A.jsx(Er.Provider,{value:e,children:A.jsx(ee.RecursionField,{name:r.name,schema:r})})}const p_=(e,t,r,n)=>{const{t:a}=et();return g.useMemo(()=>{if(!Array.isArray(e))return[];const i=[];return e.forEach(o=>{const{cron:s,exclude:l=[]}=o,c=ke(jn(o,t.start)||ke()),f=ke(jn(o,t.end)||c).diff(c,"millisecond",!0),d=ke(r);let h=d.clone().startOf("month"),m=h.clone().endOf("month");n==="month"&&(h=h.startOf("week"),m=m.endOf("week"));const p=(v=c.clone())=>{if(v.isBefore(c)||!v.isBetween(h,m))return;let b=!1;if(l==null?void 0:l.some(S=>S.endsWith("_after")?(S=S.replace(/_after$/,""),b=!0,v.isSameOrAfter(S)):v.isSame(S)))return b;const O={id:jn(o,t.id||"id"),title:jn(o,t.title)||a("Untitle"),start:v.toDate(),end:v.add(f,"millisecond").toDate()};i.push(O)};if(s==="every_week"){const v=c.clone().year(h.year()).month(h.month()).date(h.date()).day(c.day());for(;v.isBefore(m)&&!p(v.clone());)v.add(1,"week")}else if(s==="every_month")p(c.clone().year(d.year()).month(d.month()));else if(s==="every_year")p(c.clone().year(d.year()));else{if(p(),!s)return;try{const v=tp.parseExpression(s,{startDate:h.toDate(),endDate:m.toDate(),iterator:!0,currentDate:c.toDate(),utc:!0});for(;v.hasNext();){const{value:b}=v.next();if(p(ke(b.toDate())))break}}catch(v){console.error(v)}}}),i},[e,t,r,n])},m_=e=>{const{visible:t,setVisible:r,record:n}=e,a=$.useCollectionParentRecordData(),i=ee.useFieldSchema(),o=g.useMemo(()=>i.reduceProperties((l,c)=>c["x-component"].endsWith(".Event")?c:l,null),[]),s=g.useCallback(()=>{r(!1)},[]);return o&&A.jsx(Mf.Provider,{value:{close:s},children:A.jsx($.ActionContextProvider,{value:{visible:t,setVisible:r},children:A.jsx($.RecordProvider,{record:n,parent:a,children:A.jsx(ee.RecursionField,{schema:o,name:o.name})})})})},dt=$.withDynamicSchemaProps(ee.observer(e=>{const{dataSource:t,fieldNames:r,showLunar:n,fixedBlock:a}=$.useProps(e),[i,o]=g.useState(new Date),[s,l]=g.useState("month"),c=p_(t,r,i,s),[u,f]=g.useState(!1),[d,h]=g.useState({}),{wrapSSR:m,hashId:p,componentCls:v}=u_(),b=g.useMemo(()=>({toolbar:O=>A.jsx(h_,ve(z({},O),{showLunar:n})),month:{dateHeader:O=>A.jsx(s_,ve(z({},O),{showLunar:n}))}}),[n]),y={allDay:"",previous:A.jsx("div",{children:A.jsx(ht.LeftOutlined,{})}),next:A.jsx("div",{children:A.jsx(ht.RightOutlined,{})}),today:qe("Today"),month:qe("Month"),week:qe("Week"),work_week:qe("Work week"),day:qe("Day"),agenda:qe("Agenda"),date:qe("Date"),time:qe("Time"),event:qe("Event"),noEventsInRange:qe("None"),showMore:O=>qe("{{count}} more items",{count:O})};return m(A.jsxs("div",{className:`${p} ${v}`,style:{height:a?"100%":700},children:[A.jsx(_f,{}),A.jsx(m_,{visible:u,setVisible:f,record:d}),A.jsx(KC,{popup:!0,selectable:!0,events:c,view:s,views:f_,date:i,step:60,showMultiDayTimes:!0,messages:y,onNavigate:o,onView:l,onSelectSlot:O=>{console.log("onSelectSlot",O)},onDoubleClickEvent:()=>{console.log("onDoubleClickEvent")},onSelectEvent:O=>{const S=t==null?void 0:t.find(w=>w[r.id]===O.id);S&&(S.__event=ve(z({},O),{start:bo(ke(O.start)),end:bo(ke(O.end))}),h(S),f(!0))},formats:{monthHeaderFormat:"YYYY-M",agendaDateFormat:"M-DD",dayHeaderFormat:"YYYY-M-DD",dayRangeHeaderFormat:({start:O,end:S},w,D)=>xf.eq(O,S,"month")?D.format(O,"YYYY-M",w):`${D.format(O,"YYYY-M",w)} - ${D.format(S,"YYYY-M",w)}`},components:b,localizer:d_})]}))},{displayName:"Calendar"})),v_=()=>{const{name:e,title:t}=$.useCollection(),r=$.useSchemaTemplate();return A.jsx($.GeneralSchemaDesigner,{schemaSettings:"blockSettings:calendar",template:r,title:t||e})},{Text:g_}=Ae.Typography,b_=ee.observer(()=>{var y;const{visible:e,setVisible:t}=$.useActionContext(),b=$.useRecord(),{exclude:r=[],cron:n}=b,a=wn(b,["exclude","cron"]),{close:i}=g.useContext(Mf),o=bo(ke((y=a.__parent)==null?void 0:y.__event.start)),s=$.useFilterByTk(),{resource:l,service:c,__parent:u}=$.useBlockRequestContext(),[f,d]=g.useState(o),[h,m]=g.useState(!1),p=()=>Zt(this,null,function*(){var O,S,w;m(!0),f==="all"||!n?yield l.destroy({filterByTk:s}):yield l.update({filterByTk:s,values:{exclude:(r||[]).concat(f)}}),m(!1),(S=(O=u==null?void 0:u.service)==null?void 0:O.refresh)==null||S.call(O),(w=c==null?void 0:c.refresh)==null||w.call(c),t==null||t(!1,!0),i()}),{t:v}=et();return Ye.createPortal(A.jsx(Ae.Modal,{title:n?v("Delete events"):null,open:e,onCancel:()=>t(!1),onOk:()=>p(),confirmLoading:h,children:n?A.jsx(Ae.Radio.Group,{value:f,onChange:O=>d(O.target.value),children:A.jsxs(Ae.Space,{direction:"vertical",children:[A.jsx(Ae.Radio,{value:o,children:v("This event")}),A.jsx(Ae.Radio,{value:`${o}_after`,children:v("This and following events")}),A.jsx(Ae.Radio,{value:"all",children:v("All events")})]})}):A.jsx(g_,{strong:!0,style:{fontSize:"18px"},children:v("Delete this event?")})}),document.body)},{displayName:"DeleteEvent"}),y_=ee.observer(e=>A.jsx(A.Fragment,{children:e.children}),{displayName:"Event"}),w_=ee.observer(()=>{const{DesignableBar:e}=$.useDesignable(),{onNavigate:t}=g.useContext(Er);return A.jsxs(Ae.Button.Group,{children:[A.jsx(Ae.Button,{icon:A.jsx(ht.LeftOutlined,{}),onClick:()=>t(Oe.PREVIOUS)}),A.jsx(Ae.Button,{icon:A.jsx(ht.RightOutlined,{}),onClick:()=>t(Oe.NEXT)}),A.jsx(e,{})]})},{displayName:"Nav"}),S_=ee.observer(()=>{const{DesignableBar:e}=$.useDesignable(),{date:t,view:r,label:n,showLunar:a}=g.useContext(Er),i=g.useMemo(()=>{if(!(!a||r!=="day"))return A.jsx("span",{children:Cf(t)})},[r,t,a]);return A.jsxs(Ae.Button.Group,{style:{fontSize:"1.75em",fontWeight:300},children:[A.jsx("span",{children:n}),A.jsx("span",{style:{marginLeft:"4px"},children:i}),A.jsx(e,{})]})},{displayName:"Title"}),O_=ee.observer(e=>{const{DesignableBar:t}=$.useDesignable(),{onNavigate:r}=g.useContext(Er),{t:n}=et();return A.jsxs(Ae.Button,{onClick:()=>{r(Oe.TODAY)},children:[n("Today"),A.jsx(t,{})]})},{displayName:"Today"}),D_=ee.observer(e=>{const{DesignableBar:t}=$.useDesignable(),{views:r,view:n,onView:a,localizer:{messages:i}}=g.useContext(Er);return A.jsxs("div",{className:"ant-btn-group",children:[A.jsx(Ae.Select,{popupMatchSelectWidth:!1,value:n,onChange:a,children:r.map(o=>A.jsx(Ae.Select.Option,{value:o,children:i[o]},o))}),A.jsx(t,{})]})},{displayName:"ViewSelect"});dt.ActionBar=$.ActionBar,dt.Event=y_,dt.DeleteEvent=b_,dt.Title=S_,dt.Today=O_,dt.Nav=w_,dt.ViewSelect=D_,dt.Designer=v_;const T_=dt;function kf(e){const t=g.useMemo(()=>{var i,o;const r=[],n=(i=e.fieldNames)==null?void 0:i.start,a=(o=e.fieldNames)==null?void 0:o.end;return Array.isArray(n)&&n.length>=2&&r.push(n[0]),Array.isArray(a)&&a.length>=2&&r.push(a[0]),r},[e.fieldNames]);return g.useMemo(()=>ve(z({},e.params),{appends:[...t,...e.params.appends||[]],paginate:!1}),[t,e.params])}const yo=g.createContext({});yo.displayName="CalendarBlockContext";const x_=e=>{var s,l,c;const{fieldNames:t,showLunar:r}=e,n=ee.useField(),{resource:a,service:i}=$.useBlockRequestContext(),{filter:o}=$.useParsedFilter({filterOption:(l=(s=i==null?void 0:i.params)==null?void 0:s[0])==null?void 0:l.filter});return g.useEffect(()=>{var u;Cr.isEmpty(o)||i==null||i.run(ve(z({},(u=i==null?void 0:i.params)==null?void 0:u[0]),{filter:o}))},[JSON.stringify(o)]),A.jsx($.FixedBlockWrapper,{children:A.jsx(yo.Provider,{value:{field:n,service:i,resource:a,fieldNames:t,showLunar:r,fixedBlock:(c=n==null?void 0:n.decoratorProps)==null?void 0:c.fixedBlock},children:e.children})})},E_=e=>ee.useFieldSchema()["x-use-decorator-props"]?e.params:kf(e),$_=$.withDynamicSchemaProps(e=>{const t=E_(e);return A.jsx($.BlockProvider,ve(z({name:"calendar"},e),{params:t,children:A.jsx(x_,z({},e))}))}),bn=()=>g.useContext(yo),C_=()=>{var r;const e=bn(),t=ee.useField();return g.useEffect(()=>{var n,a,i;(n=e==null?void 0:e.service)!=null&&n.loading||(t.componentProps.dataSource=(i=(a=e==null?void 0:e.service)==null?void 0:a.data)==null?void 0:i.data)},[(r=e==null?void 0:e.service)==null?void 0:r.loading]),{fieldNames:e.fieldNames,showLunar:e.showLunar,fixedBlock:e.fixedBlock}},__=()=>{const e=ee.useField(),{t}=et(),r=ee.useFieldSchema(),{dn:n}=$.useDesignable();return A.jsx($.SchemaSettingsSwitchItem,{title:t("Show lunar"),checked:e.decoratorProps.showLunar,onChange:a=>{e.decoratorProps.showLunar=a,r["x-decorator-props"].showLunar=a,n.emit("patch",{schema:{"x-uid":r["x-uid"],"x-decorator-props":e.decoratorProps}}),n.refresh()}})},M_=new $.SchemaSettings({name:"blockSettings:calendar",items:[{name:"title",Component:$.SchemaSettingsBlockTitleItem},{name:"titleField",Component:$.SchemaSettingsSelectItem,useComponentProps(){var c;const{t:e}=et(),t=ee.useFieldSchema(),r=((c=t==null?void 0:t["x-decorator-props"])==null?void 0:c.fieldNames)||{},{service:n}=bn(),{getCollectionFieldsOptions:a}=$.useCollectionManager_deprecated(),{name:i,title:o}=$.useCollection(),s=ee.useField(),{dn:l}=$.useDesignable();return{title:e("Title field"),value:r.title,options:a(i,"string"),onChange:u=>{const f=s.decoratorProps.fieldNames||{};f.title=u,s.decoratorProps.params=f,t["x-decorator-props"].params=f,t["x-decorator-props"].fieldNames=f,n.refresh(),l.emit("patch",{schema:{"x-uid":t["x-uid"],"x-decorator-props":s.decoratorProps}}),l.refresh()}}}},{name:"showLunar",Component:__},{name:"fixBlock",Component:$.FixedBlockDesignerItem},{name:"startDateField",Component:$.SchemaSettingsCascaderItem,useComponentProps(){var l;const{getCollectionFieldsOptions:e}=$.useCollectionManager_deprecated(),{t}=et(),r=ee.useFieldSchema(),n=((l=r==null?void 0:r["x-decorator-props"])==null?void 0:l.fieldNames)||{},a=ee.useField(),{dn:i}=$.useDesignable(),{service:o}=bn(),{name:s}=$.useCollection();return{title:t("Start date field"),value:n.start,options:e(s,"date",{association:["o2o","obo","oho","m2o"]}),onChange:c=>{const u=a.decoratorProps.fieldNames||{};u.start=c,a.decoratorProps.fieldNames=u,r["x-decorator-props"].fieldNames=u,o.refresh(),i.emit("patch",{schema:{"x-uid":r["x-uid"],"x-decorator-props":a.decoratorProps}}),i.refresh()}}}},{name:"endDateField",Component:$.SchemaSettingsCascaderItem,useComponentProps(){var l;const{t:e}=et(),t=ee.useFieldSchema(),r=ee.useField(),{service:n}=bn(),{getCollectionFieldsOptions:a}=$.useCollectionManager_deprecated(),{dn:i}=$.useDesignable(),{name:o}=$.useCollection(),s=((l=t==null?void 0:t["x-decorator-props"])==null?void 0:l.fieldNames)||{};return{title:e("End date field"),value:s.end,options:a(o,"date",{association:["o2o","obo","oho","m2o"]}),onChange:c=>{const u=r.decoratorProps.fieldNames||{};u.end=c,r.decoratorProps.fieldNames=u,t["x-decorator-props"].fieldNames=u,n.refresh(),i.emit("patch",{schema:{"x-uid":t["x-uid"],"x-decorator-props":r.decoratorProps}}),i.refresh()}}}},{name:"dataScope",Component:$.SchemaSettingsDataScope,useComponentProps(){var o,s;const{name:e}=$.useCollection(),t=ee.useFieldSchema(),{form:r}=$.useFormBlockContext(),n=ee.useField(),{service:a}=bn(),{dn:i}=$.useDesignable();return{collectionName:e,defaultFilter:((s=(o=t==null?void 0:t["x-decorator-props"])==null?void 0:o.params)==null?void 0:s.filter)||{},form:r,onSubmit:({filter:l})=>{var u;l=$.removeNullCondition(l);const c=n.decoratorProps.params||{};c.filter=l,n.decoratorProps.params=c,t["x-decorator-props"].params=c,a.run(ve(z({},(u=a==null?void 0:a.params)==null?void 0:u[0]),{filter:l})),i.emit("patch",{schema:{"x-uid":t["x-uid"],"x-decorator-props":n.decoratorProps}})}}}},{name:"divider",type:"divider"},{name:"template",Component:$.SchemaSettingsTemplate,useComponentProps(){var n,a;const{name:e}=$.useCollection(),t=ee.useFieldSchema(),r=((n=t==null?void 0:t["x-decorator-props"])==null?void 0:n.resource)||((a=t==null?void 0:t["x-decorator-props"])==null?void 0:a.association);return{componentName:"Calendar",collectionName:e,resourceName:r}}},{name:"divider2",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]});q("Calendar collection"),q("Repeats"),q("Daily"),q("Weekly"),q("Monthly"),q("Yearly"),$.getConfigurableProperties("title","name","inherits","category","description","presetFields");class k_ extends $.CollectionTemplate{constructor(){super(...arguments);$t(this,"name","calendar");$t(this,"title",q("Calendar collection"));$t(this,"order",2);$t(this,"color","orange");$t(this,"default",{createdBy:!0,updatedBy:!0,createdAt:!0,updatedAt:!0,sortable:!0,fields:[{name:"cron",type:"string",uiSchema:{type:"string",title:q("Repeats"),"x-component":"CronSet","x-component-props":"allowClear",enum:[{label:q("Daily"),value:"0 0 0 * * ?"},{label:q("Weekly"),value:"every_week"},{label:q("Monthly"),value:"every_month"},{label:q("Yearly"),value:"every_year"}]},interface:"select"},{name:"exclude",type:"json"}]});$t(this,"availableFieldInterfaces",{include:[]});$t(this,"configurableProperties",$.getConfigurableProperties("title","name","inherits","category","description","presetFields"))}}function A_(e){const t=kf(e);let r;return e.association&&(r=$.useParentRecordCommon(e.association)),{params:t,parentRecord:r}}const N_=new $.SchemaInitializer({title:q("Configure actions"),icon:"SettingOutlined",name:"calendar:configureActions",style:{marginLeft:8},items:[{type:"itemGroup",name:"enableActions",title:q("Enable actions"),children:[{name:"today",title:q("Today"),Component:"ActionInitializer",schema:{title:q("Today"),"x-component":"CalendarV2.Today","x-action":"calendar:today","x-align":"left"}},{name:"turnPages",title:q("Turn pages"),Component:"ActionInitializer",schema:{title:q("Turn pages"),"x-component":"CalendarV2.Nav","x-action":"calendar:nav","x-align":"left"}},{name:"title",title:q("Title"),Component:"ActionInitializer",schema:{title:q("Title"),"x-component":"CalendarV2.Title","x-action":"calendar:title","x-align":"left"}},{name:"selectView",title:q("Select view"),Component:"ActionInitializer",schema:{title:q("Select view"),"x-component":"CalendarV2.ViewSelect","x-action":"calendar:viewSelect","x-align":"right","x-designer":"Action.Designer"}},{name:"filter",title:q("Filter"),Component:"FilterActionInitializer",schema:{"x-align":"right"}},{name:"addNew",title:q("Add new"),Component:"CreateActionInitializer",schema:{"x-align":"right","x-decorator":"ACLActionProvider","x-acl-action-props":{skipScopeCheck:!0}},useVisible(){const e=$.useCollection();return(e.template!=="view"||(e==null?void 0:e.writableView))&&e.template!=="sql"}}]}]}),Af={name:"deleteEvent",title:q("Delete Event"),Component:"DeleteEventActionInitializer",schema:{"x-component":"Action","x-decorator":"ACLActionProvider"},useVisible(){return $.useCollection_deprecated().template==="calendar"}},I_=new $.SchemaInitializer({title:q("Configure actions"),name:"CalendarFormActionInitializers",icon:"SettingOutlined",style:{marginLeft:8},items:[{type:"itemGroup",name:"enableActions",title:q("Enable actions"),children:[{name:"edit",title:q("Edit"),Component:"UpdateActionInitializer",schema:{"x-component":"Action","x-decorator":"ACLActionProvider","x-component-props":{type:"primary"}},useVisible(){const e=$.useCollection_deprecated();return(e.template!=="view"||(e==null?void 0:e.writableView))&&e.template!=="sql"}},{name:"delete",title:q("Delete"),Component:"DestroyActionInitializer",schema:{"x-component":"Action","x-decorator":"ACLActionProvider"},visible:function(){const t=$.useCollection_deprecated();return(t.template!=="view"||(t==null?void 0:t.writableView))&&t.template!=="sql"}},Af]},{name:"divider",type:"divider"},{type:"subMenu",name:"customize",title:q("Customize"),children:[{name:"popup",title:q("Popup"),Component:"CustomizeActionInitializer",schema:{type:"void",title:q("Popup"),"x-action":"customize:popup","x-toolbar":"ActionSchemaToolbar","x-settings":"actionSettings:popup","x-component":"Action","x-component-props":{openMode:"drawer"},properties:{drawer:{type:"void",title:q("Popup"),"x-component":"Action.Container","x-component-props":{className:"tb-action-popup"},properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"TabPaneInitializers",properties:{tab1:{type:"void",title:q("Details"),"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"popup:common:addBlock",properties:{}}}}}}}}}}},{name:"updateRecord",title:q("Update record"),Component:"CustomizeActionInitializer",schema:{title:q("Update record"),"x-component":"Action","x-use-component-props":"useCustomizeUpdateActionProps","x-toolbar":"ActionSchemaToolbar","x-settings":"actionSettings:updateRecord","x-acl-action":"update","x-action":"customize:update","x-action-settings":{assignedValues:{},onSuccess:{manualClose:!0,redirecting:!1,successMessage:q("Updated successfully")},triggerWorkflows:[]}},useVisible(){const e=$.useCollection_deprecated();return(e.template!=="view"||(e==null?void 0:e.writableView))&&e.template!=="sql"}},{name:"customRequest",title:q("Custom request"),Component:"CustomRequestInitializer",useVisible(){const e=$.useCollection_deprecated();return(e.template!=="view"||(e==null?void 0:e.writableView))&&e.template!=="sql"}}]}]}),wo=e=>{const{collectionName:t,dataSource:r,fieldNames:n,association:a}=e;return{type:"void","x-acl-action":`${a||t}:list`,"x-decorator":"CalendarBlockProvider","x-use-decorator-props":"useCalendarBlockDecoratorProps","x-decorator-props":{collection:t,dataSource:r,association:a,action:"list",fieldNames:z({id:"id"},n),params:{paginate:!1}},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:calendar","x-component":"CardItem",properties:{[ee.uid()]:{type:"void","x-component":"CalendarV2","x-use-component-props":"useCalendarBlockProps",properties:{toolBar:{type:"void","x-component":"CalendarV2.ActionBar","x-component-props":{style:{marginBottom:24}},"x-initializer":"calendar:configureActions"},event:{type:"void","x-component":"CalendarV2.Event",properties:{drawer:{type:"void","x-component":"Action.Drawer","x-component-props":{className:"tb-action-popup"},title:q("View record"),properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"TabPaneInitializers","x-initializer-props":{gridInitializer:"popup:common:addBlock"},properties:{tab1:{type:"void",title:q("Details"),"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer-props":{actionInitializers:"details:configureActions"},"x-initializer":"popup:common:addBlock"}}}}}}}}}}}}}},P_=({filterCollections:e,onlyCurrentDataSource:t,hideSearch:r,createBlockSchema:n,showAssociationFields:a})=>{const i=$.useSchemaInitializerItem(),{createCalendarBlock:o}=Nf();return A.jsx($.DataBlockInitializer,ve(z({},i),{componentType:"Calendar",icon:A.jsx(ht.CalendarOutlined,{}),onCreateBlockSchema:s=>Zt(this,null,function*(){if(n)return n(s);o(s)}),onlyCurrentDataSource:t,hideSearch:r,filter:e,showAssociationFields:a}))},Nf=()=>{const{insert:e}=$.useSchemaInitializer(),{t}=et(),{getCollectionField:r,getCollectionFieldsOptions:n}=$.useCollectionManager_deprecated(),a=g.useContext(ee.SchemaOptionsContext),{theme:i}=$.useGlobalTheme();return{createCalendarBlock:l=>Zt(this,[l],function*({item:s}){const c=n(s.name,"string",{dataSource:s.dataSource}),u=n(s.name,"date",{association:["o2o","obo","oho","m2o"],dataSource:s.dataSource}),f=yield $.FormDialog(t("Create calendar block"),()=>A.jsx($.SchemaComponentOptions,{scope:a.scope,components:z({},a.components),children:A.jsx(ka.FormLayout,{layout:"vertical",children:A.jsx($.SchemaComponent,{schema:{properties:{title:{title:t("Title field"),enum:c,required:!0,"x-component":"Select","x-decorator":"FormItem"},start:{title:t("Start date field"),enum:u,required:!0,default:r(`${s.name}.createdAt`)?"createdAt":null,"x-component":"Cascader","x-decorator":"FormItem"},end:{title:t("End date field"),enum:u,"x-component":"Cascader","x-decorator":"FormItem"}}}})})}),i).open({initialValues:{}});e(wo({collectionName:s.name,dataSource:s.dataSource,fieldNames:z({},f)}))})}},F_=()=>{const e=$.useSchemaInitializerItem(),m=e,{onCreateBlockSchema:t,componentType:r,createBlockSchema:n}=m,a=wn(m,["onCreateBlockSchema","componentType","createBlockSchema"]),{insert:i}=$.useSchemaInitializer(),{getTemplateSchemaByMode:o}=$.useSchemaTemplateManager(),{t:s}=et(),l=g.useContext(ee.SchemaOptionsContext),{getCollection:c}=$.useCollectionManager_deprecated(),u=e.field,f=c(u.target),d=`${u.collectionName}.${u.name}`,{theme:h}=$.useGlobalTheme();return A.jsx($.SchemaInitializerItem,ve(z({icon:A.jsx(ht.TableOutlined,{})},a),{onClick:v=>Zt(this,[v],function*({item:p}){var b,y,O,S;if(p.template){const w=yield o(p);i(w)}else{const w=(y=(b=f==null?void 0:f.fields)==null?void 0:b.filter(x=>x.type==="string"))==null?void 0:y.map(x=>{var E;return{label:(E=x==null?void 0:x.uiSchema)==null?void 0:E.title,value:x.name}}),D=(S=(O=f==null?void 0:f.fields)==null?void 0:O.filter(x=>x.type==="date"))==null?void 0:S.map(x=>{var E;return{label:(E=x==null?void 0:x.uiSchema)==null?void 0:E.title,value:x.name}}),T=yield $.FormDialog(s("Create calendar block"),()=>A.jsx($.SchemaComponentOptions,{scope:l.scope,components:z({},l.components),children:A.jsx(ka.FormLayout,{layout:"vertical",children:A.jsx($.SchemaComponent,{schema:{properties:{title:{title:s("Title field"),enum:w,required:!0,"x-component":"Select","x-decorator":"FormItem"},start:{title:s("Start date field"),enum:D,required:!0,default:"createdAt","x-component":"Select","x-decorator":"FormItem"},end:{title:s("End date field"),enum:D,"x-component":"Select","x-decorator":"FormItem"}}}})})}),h).open({initialValues:{}});i(wo({association:d,dataSource:p.dataSource,fieldNames:z({},T)}))}}),items:$.useRecordCollectionDataSourceItems("Calendar",e,u.target,d)}))};function L_(){const{insert:e}=$.useSchemaInitializer(),{getCollection:t}=$.useCollectionManager_deprecated(),{t:r}=et(),n=g.useContext(ee.SchemaOptionsContext),{theme:a}=$.useGlobalTheme();return{createAssociationCalendarBlock:s=>Zt(this,[s],function*({item:o}){var h,m,p,v;const l=o.associationField,c=t(l.target),u=(m=(h=c==null?void 0:c.fields)==null?void 0:h.filter(b=>b.type==="string"))==null?void 0:m.map(b=>{var y;return{label:(y=b==null?void 0:b.uiSchema)==null?void 0:y.title,value:b.name}}),f=(v=(p=c==null?void 0:c.fields)==null?void 0:p.filter(b=>b.type==="date"))==null?void 0:v.map(b=>{var y;return{label:(y=b==null?void 0:b.uiSchema)==null?void 0:y.title,value:b.name}}),d=yield $.FormDialog(r("Create calendar block"),()=>A.jsx($.SchemaComponentOptions,{scope:n.scope,components:z({},n.components),children:A.jsx(ka.FormLayout,{layout:"vertical",children:A.jsx($.SchemaComponent,{schema:{properties:{title:{title:r("Title field"),enum:u,required:!0,"x-component":"Select","x-decorator":"FormItem"},start:{title:r("Start date field"),enum:f,required:!0,default:"createdAt","x-component":"Select","x-decorator":"FormItem"},end:{title:r("End date field"),enum:f,"x-component":"Select","x-decorator":"FormItem"}}}})})}),a).open({initialValues:{}});e(wo({association:`${l.collectionName}.${l.name}`,dataSource:o.dataSource,fieldNames:z({},d)}))})}}class If extends $.Plugin{load(){return Zt(this,null,function*(){this.app.dataSourceManager.addCollectionTemplates([k_]),this.app.schemaInitializerManager.addItem("page:addBlock","dataBlocks.calendar",{title:q("Calendar"),Component:"CalendarBlockInitializer"}),this.app.schemaInitializerManager.addItem("popup:common:addBlock","dataBlocks.calendar",{title:q("Calendar"),Component:"CalendarBlockInitializer",useComponentProps(){const{createAssociationCalendarBlock:t}=L_(),{createCalendarBlock:r}=Nf();return{onlyCurrentDataSource:!0,filterCollections({associationField:n}){return n?["hasMany","belongsToMany"].includes(n.type):!1},createBlockSchema:({item:n,fromOthersInPopup:a})=>{if(a)return r({item:n});t({item:n})},showAssociationFields:!0,hideSearch:!0}}}),this.app.addComponents({CalendarBlockProvider:$_,CalendarBlockInitializer:P_,RecordAssociationCalendarBlockInitializer:F_,CalendarV2:T_}),this.app.addScopes({useCalendarBlockProps:C_,useCalendarBlockDecoratorProps:A_}),this.schemaSettingsManager.add(M_),this.app.schemaInitializerManager.add(N_),this.app.schemaInitializerManager.add(I_),this.app.schemaInitializerManager.get("details:configureActions").add("enableActions.deleteEvent",Af)})}}Z.PluginCalendarClient=If,Z.default=If,Object.defineProperties(Z,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});