@timum/booking 1.3.7 → 1.3.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.
@@ -310,7 +310,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
310
310
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
311
311
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
312
312
  PERFORMANCE OF THIS SOFTWARE.
313
- ***************************************************************************** */var pn=function(){return pn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pn.apply(this,arguments)};function yI(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}var bI=le.lazy(function(){return Promise.resolve().then(()=>xQ)}),wI=le.lazy(function(){return Promise.resolve().then(()=>Zfe)});le.lazy(function(){return Promise.resolve().then(()=>AK)});var Zl=le.lazy(function(){return Promise.resolve().then(()=>RZ)}),zbe=le.lazy(function(){return Promise.resolve().then(()=>nhe)}),Bbe=le.lazy(function(){return Promise.resolve().then(()=>lhe)}),xI=le.lazy(function(){return Promise.resolve().then(()=>fhe)}),Hbe=le.lazy(function(){return Promise.resolve().then(()=>$he)}),Ube=le.lazy(function(){return Promise.resolve().then(()=>_he)}),jbe=le.lazy(function(){return Promise.resolve().then(()=>Ihe)}),Wbe=le.lazy(function(){return Promise.resolve().then(function(){return Ybe})}),Vbe=le.lazy(function(){return Promise.resolve().then(function(){return Qbe})}),Gbe=le.lazy(function(){return Promise.resolve().then(function(){return Xbe})}),SI=function(e){var t=e.disableTableContainer,n=t!==void 0&&t,r=e.blockquoteBorderColor,i=e.inlineCodeBgColor,o=i===void 0?"rgba(126, 126, 126, 0.1)":i,a=e.inlineCodeColor,s=a===void 0?"currentcolor":a,l=e.codeBlockTheme;return{a:{component:wI},blockquote:{component:Wbe,props:{borderColor:r}},button:{component:bI},Button:{component:bI},code:{component:"code",props:{style:{backgroundColor:o,borderRadius:"4px",color:s,margin:"0 0.2rem",padding:"0.5rem 0.5rem"}}},h1:{component:Zl,props:{variant:"h1",gutterBottom:!0}},h2:{component:Zl,props:{variant:"h2",gutterBottom:!0}},h3:{component:Zl,props:{variant:"h3",gutterBottom:!0}},h4:{component:Zl,props:{variant:"h4",gutterBottom:!0}},h5:{component:Zl,props:{variant:"h5",gutterBottom:!0}},h6:{component:Zl,props:{variant:"h6",gutterBottom:!0}},li:{component:"li"},Link:{component:wI},ol:{component:"ol"},p:{component:Zl,props:{variant:"body1",gutterBottom:!0}},pre:{component:Vbe,props:{theme:l}},table:{component:n?zbe:Gbe},tbody:{component:Bbe},td:{component:xI},tfoot:{component:Hbe},thead:{component:Ube},th:{component:xI},tr:{component:jbe},ul:{component:"ul"}}},Wc=function(e){return _(R.Suspense,pn({fallback:_("div",{children:"..."},void 0)},{children:function(t){var n=t.children,r=t.key,i=t.options,o=t.overrides,a=t.disableTableContainer,s=t.blockquoteBorderColor,l=t.inlineCodeBgColor,c=t.inlineCodeColor,d=t.codeBlockTheme,h=SI({disableTableContainer:a,blockquoteBorderColor:s,inlineCodeBgColor:l,inlineCodeColor:c,codeBlockTheme:d}),g=n||"";if(i){var p=i.overrides,m=yI(i,["overrides"]);return _(hI,p?pn({options:pn({overrides:pn(pn({},h),p)},m)},{children:g}):pn({options:pn({overrides:pn({},h)},m)},{children:g}),r&&r)}return _(hI,pn(o?{options:{overrides:pn(pn({},h),o)}}:{options:{overrides:pn({},h)}},{children:g}),r&&r)}(e)}),void 0)};SI({});var Ybe=Object.freeze({__proto__:null,default:function(e){var t=e.children,n=e.borderColor,r=ds().palette,i=r.background,o=r.info,a=function(l){var c=l;(c=c.replaceAll("#","")).length===3&&(c=c.split("").map(function(h){return h+h}).join(""));var d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(c);return d?{r:parseInt(d[1],16),g:parseInt(d[2],16),b:parseInt(d[3],16)}:null}(i.paper),s=a?"rgba(".concat(a.r,", ").concat(a.g,", ").concat(a.b,", 0.5)"):i.paper;return _(Ll,pn({sx:{padding:"1rem",backgroundColor:s,borderLeft:"4px solid ".concat(n||o.main)}},{children:t}),void 0)}}),qbe=fe(ki,{name:"PreContainer"})(function(e){return{borderRadius:e.theme.shape.borderRadius,padding:"1rem"}}),Zbe=fe("pre")({overflowX:"auto"}),Kbe=function(e){var t=e.code,n=t===void 0?"const sayHello = (name:string) => console.log(`Hello${name}`);":t,r=e.language,i=r===void 0?"tsx":r,o=e.theme;return _(Fbe,pn({},Ibe,{theme:o===void 0?Dbe:o,code:n,language:i},{children:function(a){var s=a.className,l=a.style,c=a.tokens,d=a.getLineProps,h=a.getTokenProps;return _(qbe,pn({className:s,style:l},{children:_(Zbe,{children:c.map(function(g,p){return _("div",pn({},d({line:g,key:p}),{children:g.map(function(m,v){return _("span",pn({},h({token:m,key:v})),v)})}),p)})},void 0)}),void 0)}}),void 0)},Qbe=Object.freeze({__proto__:null,default:function(e){var t=e.children,n=e.theme;if(t&&t.type&&t.type==="code"){var r=t.props.className?t.props.className.replace("lang-",""):"tsx";return _(Kbe,{code:t.props.children,language:r,theme:n&&n},void 0)}return _(ki,pn({component:"pre",sx:{whiteSpace:"pre-wrap"}},{children:t}),void 0)}}),Xbe=Object.freeze({__proto__:null,default:function(e){var t=e.children,n=yI(e,["children"]);return _(vhe,pn({component:Ll},{children:_(wx,pn({},n,{children:t}),void 0)}),void 0)}});function Jbe({name:e,children:t,namespace:n,rhfProps:r,disableEmptyErrorText:i}){const o=c=>n?`${n}.${c}`:c;if(le.Children.toArray(t).length>1)throw"RHFTextfield may only have a single child component";const s=c=>c?c.message:i?void 0:" ",l={name:o(e),render:({field:c,fieldState:d})=>{const h=d==null?void 0:d.error;return c.value=c.value??"",t(!!h,s(h),c)}};return r!=null&&r.control&&(l.control=r.control),_(UQ,{...l})}const IS=e=>{const t={};for(const[n,r]of Object.entries(e))r.type==="phoneNumber"?t[n]=Ts().test({name:`${n}-required-test`,test:i=>!(r.isRequired&&!i),message:"Notwendig"}).test({name:`${n}-number-test`,test:i=>i?$ye(i,"DE"):!0,message:"Nummer is nicht valide"}):t[n]=r.validation;return t},MS=e=>{const t={};for(const[n,r]of Object.entries(e))t[n]=r.prefilled;return t};function v1({fields:e,containerProps:t={},textFieldProps:n={},telFieldProps:r={},selectFieldProps:i={},textAreaProps:o={},disableEmptyErrorText:a,rhfProps:s}){const{t:l}=xr();return _(tt,{container:!0,item:!0,sx:{maxHeight:"250px",overflowY:"auto",overflowX:"hidden",width:"100%"},...t,children:Object.entries(e).map(([c,d])=>_(tt,{item:!0,xs:12,my:1,sx:{display:d.preventRendering?"none":"flex"},children:_(Jbe,{name:c,rhfProps:s,disableEmptyErrorText:a,children:(h,g,p)=>{if(!d.type||d.type==="text")return _(hp,{fullWidth:!0,size:"small",label:Ln.isString(d.title)?_(Wc,{children:l(d.title)}):d.title,type:d.format,error:h,helperText:l(g),...p,...n});if(d.type==="phoneNumber")return _(Tye,{fullWidth:!0,size:"small",label:Ln.isString(d.title)?_(Wc,{children:l(d.title)}):d.title,error:h,forceCallingCode:!0,defaultCountry:"DE",preferredCountries:["DE","CH","AT"],helperText:l(g)||g,...p,...r});if(d.type==="checkbox")return be(o_,{component:"fieldset",variant:"standard",error:h,children:[_(pfe,{children:_(lfe,{control:_(dde,{...p}),label:Ln.isString(d.title)?_(Wc,{children:l(d.title)}):d.title})}),_(l_,{children:l(g)||g})]});if(d.type==="textarea"){const m=()=>{var x;let v="";return g&&(v=l(g)||g),d.limit&&(v+=` ${((x=p==null?void 0:p.value)==null?void 0:x.length)??0}/${d.limit}`),v};return _(hp,{fullWidth:!0,multiline:!0,size:"small",label:Ln.isString(d.title)?_(Wc,{children:l(d.title)}):d.title,type:d.format,error:h,helperText:m(),inputProps:{maxLength:d.limit??99999},...p,...o})}if(d.type==="select"&&d.options)return _(hp,{fullWidth:!0,select:!0,size:"small",label:Ln.isString(d.title)?_(Wc,{children:l(d.title)}):d.title,type:d.format,error:h,helperText:l(g)||g,...p,...i,children:d.options.map(m=>_(E_,{value:m.key,children:l(m.title)},m.key))})}})},c))})}v1.propTypes={fields:Re.object.isRequired,textFieldProps:Re.object,telFieldProps:Re.object,selectFieldProps:Re.object,textAreaProps:Re.object};function $I({timeslot:e,productName:t,productMinDuration:n,resourceName:r,placeholderId:i,onBookingSuccessfull:o,onBookingFailed:a,bookingProcess:s}){const{t:l}=xr(),c=Ge(T=>et(T,"ref")),d=Ge(T=>et(T,"sendCustomValuesInMessage")),h=Ge(T=>et(T,"channelKey")),g=Ge(X3),p=Ge(T=>et(T,"fields")),m=Ge(T=>et(T,"callbacks.createBookingStarted")),v=Ge(T=>et(T,"callbacks.createBookingSuccessful")),x=Ge(T=>et(T,"callbacks.createBookingFailed")),w=Ge(T=>et(T,"auth2")),b=xw({defaultValues:MS(p),resolver:ox(ap().shape(IS(p)))});console.debug(b.formState.errors);const[S,{isLoading:$}]=Ok(),E=async T=>{console.table(T),m&&m({timeslot:e,data:{...T}});let k=T.message;if(d){k="";for(const D of Object.keys(p))D!=="firstName"&&D!=="lastName"&&D!=="email"&&D!=="mobile"&&D!=="agbs"&&T[D]&&(k+=T[D]+", ");k=k.slice(0,-3)}const A={start:e.start.toISO({suppressMilliseconds:!0}),end:e.end.toISO({suppressMilliseconds:!0}),product_uuid:g.uuid,timeslot_uuid:e.uuid,placeholder_id:i,email:T.email,firstname:T.firstName,lastname:T.lastName,locale:T.locale,mobile:T.mobile,channelId:h};k&&(A.message=k);const I=await S({channelOrResourceId:c,body:A,headers:w?{auth2:w}:void 0});I.error?(console.log("Caught error while creating booking:"+I.error),x&&x({timeslot:e,response:I,data:{...T}}),a&&a({timeslot:e,response:I,data:{...T}})):(v&&v({timeslot:e,response:I,data:{...T}}),o&&o({timeslot:e,response:I,data:{...T}}))};return _("form",{onSubmit:b.handleSubmit(E),children:be(tt,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",spacing:{xs:0,md:1},pt:1,children:[_(tt,{item:!0,children:_(o1,{start:e==null?void 0:e.start,end:e==null?void 0:e.end,productName:t,productMinDuration:n,resourceName:r})}),_(v1,{fields:p,containerProps:{spacing:0,sx:{width:"100%"}},disableEmptyErrorText:!0,rhfProps:{control:b.control}}),_(tt,{item:!0,children:_(am,{variant:"contained",color:"primary",type:"submit",loading:$,children:(s==null?void 0:s.toLowerCase())==="immediate"?l("submit_button_book"):l("submit_button_request")})})]})})}$I.propTypes={onProductSelected:Re.func};function CI({timeslot:e,productName:t,productMinDuration:n,resourceName:r,placeholderId:i,onBookingSuccessfull:o,onBookingFailed:a,bookingProcess:s,customerData:l}){const{t:c}=xr(),d=Ge(A=>et(A,"ref")),h=Ge(A=>et(A,"channelKey")),g=Ge(X3),p=Ge(A=>et(A,"pData")),m=Ge(A=>et(A,"sendCustomValuesInMessage")),v=()=>{var A,I,D,L,B;return!!((A=l==null?void 0:l.missingFields)!=null&&A.firstName||(I=l==null?void 0:l.missingFields)!=null&&I.lastName||(D=l==null?void 0:l.missingFields)!=null&&D.email||(L=l==null?void 0:l.missingFields)!=null&&L.mobile||(B=l==null?void 0:l.missingFields)!=null&&B.agbs)},x=Ge(A=>{var L,B,U,j,G;const I=et(A,"fields"),D={};for(const K of Object.keys(I))(K!=="firstName"||(L=l==null?void 0:l.missingFields)!=null&&L.firstName)&&(K!=="lastName"||(B=l==null?void 0:l.missingFields)!=null&&B.lastName)&&(K!=="email"||(U=l==null?void 0:l.missingFields)!=null&&U.email)&&(K!=="mobile"||(j=l==null?void 0:l.missingFields)!=null&&j.mobile)&&(K!=="agbs"||(G=l==null?void 0:l.missingFields)!=null&&G.agbs)&&(D[K]=I[K]);return D}),w=Ge(A=>et(A,"createBookingStarted")),b=Ge(A=>et(A,"createBookingSuccessful")),S=Ge(A=>et(A,"createBookingFailed")),$=xw({defaultValues:MS(x),resolver:ox(ap().shape(IS(x)))}),[E,{isLoading:T}]=Ok(),k=async A=>{w&&w({timeslot:e,...p});let I=A.message;if(m){I="";for(const B of Object.keys(x))B!=="firstName"&&B!=="lastName"&&B!=="email"&&B!=="mobile"&&B!=="agbs"&&A[B]&&(I+=A[B]+", ");I=I.slice(0,-3)}const D={channelOrResourceId:d,shouldInvalidateCustomerIdentification:v(),body:{start:e.start.toISO({suppressMilliseconds:!0}),end:e.end.toISO({suppressMilliseconds:!0}),product_uuid:g.uuid,timeslot_uuid:e.uuid,customer_id:p?p.personId+"@"+p.platform:void 0,placeholder_id:i,channelId:h,...A}};I&&(D.params={message:I});const L=await E(D);L.error?(S&&S({timeslot:e,resonse:L,data:{...A},pData:{...p}}),a&&a({timeslot:e,resonse:L,data:{...A},pData:{...p}})):(b&&b({timeslot:e,response:L,data:{...A},pData:{...p}}),o&&o({timeslot:e,response:L,data:{...A},pData:{...p}}))};return _("form",{onSubmit:$.handleSubmit(k),children:be(tt,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",mt:2,mx:"auto",children:[_(o1,{start:e==null?void 0:e.start,end:e==null?void 0:e.end,productMinDuration:n,productName:t,resourceName:r}),_(tt,{item:!0,borderBottom:"1px solid #ddd",width:"95%",alignSelf:"center",mt:2,mb:2}),((l==null?void 0:l.name)||(l==null?void 0:l.email))&&_(tt,{item:!0,xs:12,sm:8,children:_(wx,{size:"small",children:be(H_,{children:[be(Sx,{sx:{border:"none"},children:[_(pp,{sx:{border:"none",pl:0},children:c("fields.name")}),_(pp,{sx:{border:"none"},children:`*** ${l.name}***`})]}),be(Sx,{children:[_(pp,{sx:{border:"none",pl:0},children:c("fields.email")}),_(pp,{sx:{border:"none"},children:l.email})]})]})})}),_(tt,{mt:2,children:_(Ye,{paragraph:!0,variant:"body1",children:c("identified_customer_hint")})}),_(tt,{item:!0,xs:12,sm:9,children:_(v1,{fields:x,containerProps:{spacing:0,sx:{maxHeight:"calc(100vh - 180px)",overflowY:"auto",overflowX:"hidden",width:"100%"}},disableEmptyErrorText:!0,rhfProps:{control:$.control}})}),_(tt,{item:!0,children:_(am,{variant:"contained",color:"primary",type:"submit",loading:T,children:(s==null?void 0:s.toLowerCase())==="immediate"?c("submit_button_book"):c("submit_button_request")})})]})})}CI.propTypes={timeslot:Re.object,productName:Re.string,resourceName:Re.string,placeholderId:Re.string,onBookingSuccessfull:Re.func,onBookingFailed:Re.func,bookingProcess:Re.string,confirmationComponent:Re.func};function EI({visible:e,backdropSx:t,circleSx:n,size:r,children:i}){return be(ki,{sx:{position:"relative"},children:[_(ux,{sx:{height:"100%",width:"100%",position:"absolute",pointerEvents:e?"all":"none",backgroundColor:"#ffffffc5",zIndex:o=>o.zIndex.drawer+1,...t},open:e,children:_(D6,{color:"secondary",size:r,sx:{zIndex:o=>o.zIndex.drawer+2,...n}})}),i]})}EI.propTypes={visible:Re.bool.isRequired,color:Re.string,area:Re.string};function TI(){return _(ki,{sx:{mt:"8px",height:"20px",width:"100%",zIndex:e=>e.zIndex.drawer+1},children:_(tt,{container:!0,justifyContent:"flex-end",sx:{height:"inherit"},children:_(tt,{item:!0,children:be(gx,{color:"text.secondary",variant:"caption",underline:"none",target:"_blank",href:`http://timum.de?utm_medium=link&utm_source=${window.location.hostname.replace(/\./g,"-")}&utm_campaign=bookingjs2&utm_content=powered-by`,sx:{pr:1,fontSize:"10px",lineHeight:"20px",position:"static!important",display:"block!important",visibility:"visible!important",opacity:"1.0!important"},children:["powered by"," ",_(ki,{fontWeight:900,display:"inline",children:"timum"})]})})})})}TI.propTypes={};var NS={},e2e=zn;Object.defineProperty(NS,"__esModule",{value:!0});var kI=NS.default=void 0,t2e=e2e(dr()),n2e=fr,r2e=(0,t2e.default)((0,n2e.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Event");kI=NS.default=r2e;var PS={},i2e=zn;Object.defineProperty(PS,"__esModule",{value:!0});var AI=PS.default=void 0,o2e=i2e(dr()),a2e=fr,s2e=(0,o2e.default)((0,a2e.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"}),"Phonelink");AI=PS.default=s2e;var LS={},l2e=zn;Object.defineProperty(LS,"__esModule",{value:!0});var _I=LS.default=void 0,u2e=l2e(dr()),c2e=fr,d2e=(0,u2e.default)((0,c2e.jsx)("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"}),"Forum");_I=LS.default=d2e;var FS={},f2e=zn;Object.defineProperty(FS,"__esModule",{value:!0});var RI=FS.default=void 0,p2e=f2e(dr()),h2e=fr,g2e=(0,p2e.default)((0,h2e.jsx)("path",{d:"M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"}),"PhoneAndroid");RI=FS.default=g2e;var zS={},m2e=zn;Object.defineProperty(zS,"__esModule",{value:!0});var OI=zS.default=void 0,v2e=m2e(dr()),y2e=fr,b2e=(0,v2e.default)((0,y2e.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z"}),"Adjust");OI=zS.default=b2e;var BS={},w2e=zn;Object.defineProperty(BS,"__esModule",{value:!0});var DI=BS.default=void 0,x2e=w2e(dr()),S2e=fr,$2e=(0,x2e.default)((0,S2e.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),"Place");DI=BS.default=$2e;var HS={},C2e=zn;Object.defineProperty(HS,"__esModule",{value:!0});var II=HS.default=void 0,E2e=C2e(dr()),T2e=fr,k2e=(0,E2e.default)((0,T2e.jsx)("path",{d:"M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"}),"HeadsetMic");II=HS.default=k2e;var US={},A2e=zn;Object.defineProperty(US,"__esModule",{value:!0});var MI=US.default=void 0,_2e=A2e(dr()),R2e=fr,O2e=(0,_2e.default)((0,R2e.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");MI=US.default=O2e;var D2e=["color","size","title"];function jS(){return jS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jS.apply(this,arguments)}function I2e(e,t){if(e==null)return{};var n=M2e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function M2e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var WS=R.forwardRef(function(e,t){var n=e.color,r=e.size,i=e.title,o=I2e(e,D2e);return le.createElement("svg",jS({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n},o),i?le.createElement("title",null,i):null,le.createElement("path",{d:"M8 7a.5.5 0 0 1 .5.5V9H10a.5.5 0 0 1 0 1H8.5v1.5a.5.5 0 0 1-1 0V10H6a.5.5 0 0 1 0-1h1.5V7.5A.5.5 0 0 1 8 7z"}),le.createElement("path",{d:"M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"}))});WS.propTypes={color:Re.string,size:Re.oneOfType([Re.string,Re.number]),title:Re.string},WS.defaultProps={color:"currentColor",size:"1em",title:null};const N2e=WS;/*!
313
+ ***************************************************************************** */var pn=function(){return pn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pn.apply(this,arguments)};function yI(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}var bI=le.lazy(function(){return Promise.resolve().then(()=>xQ)}),wI=le.lazy(function(){return Promise.resolve().then(()=>Zfe)});le.lazy(function(){return Promise.resolve().then(()=>AK)});var Zl=le.lazy(function(){return Promise.resolve().then(()=>RZ)}),zbe=le.lazy(function(){return Promise.resolve().then(()=>nhe)}),Bbe=le.lazy(function(){return Promise.resolve().then(()=>lhe)}),xI=le.lazy(function(){return Promise.resolve().then(()=>fhe)}),Hbe=le.lazy(function(){return Promise.resolve().then(()=>$he)}),Ube=le.lazy(function(){return Promise.resolve().then(()=>_he)}),jbe=le.lazy(function(){return Promise.resolve().then(()=>Ihe)}),Wbe=le.lazy(function(){return Promise.resolve().then(function(){return Ybe})}),Vbe=le.lazy(function(){return Promise.resolve().then(function(){return Qbe})}),Gbe=le.lazy(function(){return Promise.resolve().then(function(){return Xbe})}),SI=function(e){var t=e.disableTableContainer,n=t!==void 0&&t,r=e.blockquoteBorderColor,i=e.inlineCodeBgColor,o=i===void 0?"rgba(126, 126, 126, 0.1)":i,a=e.inlineCodeColor,s=a===void 0?"currentcolor":a,l=e.codeBlockTheme;return{a:{component:wI},blockquote:{component:Wbe,props:{borderColor:r}},button:{component:bI},Button:{component:bI},code:{component:"code",props:{style:{backgroundColor:o,borderRadius:"4px",color:s,margin:"0 0.2rem",padding:"0.5rem 0.5rem"}}},h1:{component:Zl,props:{variant:"h1",gutterBottom:!0}},h2:{component:Zl,props:{variant:"h2",gutterBottom:!0}},h3:{component:Zl,props:{variant:"h3",gutterBottom:!0}},h4:{component:Zl,props:{variant:"h4",gutterBottom:!0}},h5:{component:Zl,props:{variant:"h5",gutterBottom:!0}},h6:{component:Zl,props:{variant:"h6",gutterBottom:!0}},li:{component:"li"},Link:{component:wI},ol:{component:"ol"},p:{component:Zl,props:{variant:"body1",gutterBottom:!0}},pre:{component:Vbe,props:{theme:l}},table:{component:n?zbe:Gbe},tbody:{component:Bbe},td:{component:xI},tfoot:{component:Hbe},thead:{component:Ube},th:{component:xI},tr:{component:jbe},ul:{component:"ul"}}},Wc=function(e){return _(R.Suspense,pn({fallback:_("div",{children:"..."},void 0)},{children:function(t){var n=t.children,r=t.key,i=t.options,o=t.overrides,a=t.disableTableContainer,s=t.blockquoteBorderColor,l=t.inlineCodeBgColor,c=t.inlineCodeColor,d=t.codeBlockTheme,h=SI({disableTableContainer:a,blockquoteBorderColor:s,inlineCodeBgColor:l,inlineCodeColor:c,codeBlockTheme:d}),g=n||"";if(i){var p=i.overrides,m=yI(i,["overrides"]);return _(hI,p?pn({options:pn({overrides:pn(pn({},h),p)},m)},{children:g}):pn({options:pn({overrides:pn({},h)},m)},{children:g}),r&&r)}return _(hI,pn(o?{options:{overrides:pn(pn({},h),o)}}:{options:{overrides:pn({},h)}},{children:g}),r&&r)}(e)}),void 0)};SI({});var Ybe=Object.freeze({__proto__:null,default:function(e){var t=e.children,n=e.borderColor,r=ds().palette,i=r.background,o=r.info,a=function(l){var c=l;(c=c.replaceAll("#","")).length===3&&(c=c.split("").map(function(h){return h+h}).join(""));var d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(c);return d?{r:parseInt(d[1],16),g:parseInt(d[2],16),b:parseInt(d[3],16)}:null}(i.paper),s=a?"rgba(".concat(a.r,", ").concat(a.g,", ").concat(a.b,", 0.5)"):i.paper;return _(Ll,pn({sx:{padding:"1rem",backgroundColor:s,borderLeft:"4px solid ".concat(n||o.main)}},{children:t}),void 0)}}),qbe=fe(ki,{name:"PreContainer"})(function(e){return{borderRadius:e.theme.shape.borderRadius,padding:"1rem"}}),Zbe=fe("pre")({overflowX:"auto"}),Kbe=function(e){var t=e.code,n=t===void 0?"const sayHello = (name:string) => console.log(`Hello${name}`);":t,r=e.language,i=r===void 0?"tsx":r,o=e.theme;return _(Fbe,pn({},Ibe,{theme:o===void 0?Dbe:o,code:n,language:i},{children:function(a){var s=a.className,l=a.style,c=a.tokens,d=a.getLineProps,h=a.getTokenProps;return _(qbe,pn({className:s,style:l},{children:_(Zbe,{children:c.map(function(g,p){return _("div",pn({},d({line:g,key:p}),{children:g.map(function(m,v){return _("span",pn({},h({token:m,key:v})),v)})}),p)})},void 0)}),void 0)}}),void 0)},Qbe=Object.freeze({__proto__:null,default:function(e){var t=e.children,n=e.theme;if(t&&t.type&&t.type==="code"){var r=t.props.className?t.props.className.replace("lang-",""):"tsx";return _(Kbe,{code:t.props.children,language:r,theme:n&&n},void 0)}return _(ki,pn({component:"pre",sx:{whiteSpace:"pre-wrap"}},{children:t}),void 0)}}),Xbe=Object.freeze({__proto__:null,default:function(e){var t=e.children,n=yI(e,["children"]);return _(vhe,pn({component:Ll},{children:_(wx,pn({},n,{children:t}),void 0)}),void 0)}});function Jbe({name:e,children:t,namespace:n,rhfProps:r,disableEmptyErrorText:i}){const o=c=>n?`${n}.${c}`:c;if(le.Children.toArray(t).length>1)throw"RHFTextfield may only have a single child component";const s=c=>c?c.message:i?void 0:" ",l={name:o(e),render:({field:c,fieldState:d})=>{const h=d==null?void 0:d.error;return c.value=c.value??"",t(!!h,s(h),c)}};return r!=null&&r.control&&(l.control=r.control),_(UQ,{...l})}const IS=e=>{const t={};for(const[n,r]of Object.entries(e))r.type==="phoneNumber"?t[n]=Ts().test({name:`${n}-required-test`,test:i=>!(r.isRequired&&!i),message:"Notwendig"}).test({name:`${n}-number-test`,test:i=>i?$ye(i,"DE"):!0,message:"Nummer is nicht valide"}):t[n]=r.validation;return t},MS=e=>{const t={};for(const[n,r]of Object.entries(e))t[n]=r.prefilled;return t};function v1({fields:e,containerProps:t={},textFieldProps:n={},telFieldProps:r={},selectFieldProps:i={},textAreaProps:o={},disableEmptyErrorText:a,rhfProps:s}){const{t:l}=xr();return _(tt,{container:!0,item:!0,sx:{maxHeight:"250px",overflowY:"auto",overflowX:"hidden",width:"100%"},...t,children:Object.entries(e).map(([c,d])=>_(tt,{item:!0,xs:12,my:1,sx:{display:d.preventRendering?"none":"flex"},children:_(Jbe,{name:c,rhfProps:s,disableEmptyErrorText:a,children:(h,g,p)=>{if(!d.type||d.type==="text")return _(hp,{fullWidth:!0,size:"small",label:Ln.isString(d.title)?_(Wc,{children:l(d.title)}):d.title,type:d.format,error:h,helperText:l(g),...p,...n});if(d.type==="phoneNumber")return _(Tye,{fullWidth:!0,size:"small",label:Ln.isString(d.title)?_(Wc,{children:l(d.title)}):d.title,error:h,forceCallingCode:!0,defaultCountry:"DE",preferredCountries:["DE","CH","AT"],helperText:l(g)||g,...p,...r});if(d.type==="checkbox")return be(o_,{component:"fieldset",variant:"standard",error:h,children:[_(pfe,{children:_(lfe,{control:_(dde,{...p}),label:Ln.isString(d.title)?_(Wc,{children:l(d.title)}):d.title})}),_(l_,{children:l(g)||g})]});if(d.type==="textarea"){const m=()=>{var x;let v="";return g&&(v=l(g)||g),d.limit&&(v+=` ${((x=p==null?void 0:p.value)==null?void 0:x.length)??0}/${d.limit}`),v};return _(hp,{fullWidth:!0,multiline:!0,size:"small",label:Ln.isString(d.title)?_(Wc,{children:l(d.title)}):d.title,type:d.format,error:h,helperText:m(),inputProps:{maxLength:d.limit??99999},...p,...o})}if(d.type==="select"&&d.options)return _(hp,{fullWidth:!0,select:!0,size:"small",label:Ln.isString(d.title)?_(Wc,{children:l(d.title)}):d.title,type:d.format,error:h,helperText:l(g)||g,...p,...i,children:d.options.map(m=>_(E_,{value:m.key,children:l(m.title)},m.key))})}})},c))})}v1.propTypes={fields:Re.object.isRequired,textFieldProps:Re.object,telFieldProps:Re.object,selectFieldProps:Re.object,textAreaProps:Re.object};function $I({timeslot:e,productName:t,productMinDuration:n,resourceName:r,placeholderId:i,onBookingSuccessfull:o,onBookingFailed:a,bookingProcess:s}){const{t:l}=xr(),c=Ge(T=>et(T,"ref")),d=Ge(T=>et(T,"sendCustomValuesInMessage")),h=Ge(T=>et(T,"channelKey")),g=Ge(X3),p=Ge(T=>et(T,"fields")),m=Ge(T=>et(T,"callbacks.createBookingStarted")),v=Ge(T=>et(T,"callbacks.createBookingSuccessful")),x=Ge(T=>et(T,"callbacks.createBookingFailed")),w=Ge(T=>et(T,"auth2")),b=xw({defaultValues:MS(p),resolver:ox(ap().shape(IS(p)))});console.debug(b.formState.errors);const[S,{isLoading:$}]=Ok(),E=async T=>{console.table(T),m&&m({timeslot:e,data:{...T}});let k=T.message;if(d){k="";for(const D of Object.keys(p))D!=="firstName"&&D!=="lastName"&&D!=="email"&&D!=="mobile"&&D!=="agbs"&&T[D]&&(k+=T[D]+", ");k=k.slice(0,-3)}const A={start:e.start.toISO({suppressMilliseconds:!0}),end:e.end.toISO({suppressMilliseconds:!0}),product_uuid:g.uuid,timeslot_uuid:e.uuid,placeholder_id:i,email:T.email,firstname:T.firstName,lastname:T.lastName,locale:T.locale,mobile:T.mobile,channelId:h};k&&(A.message=k);const I=await S({channelOrResourceId:c,body:A,headers:w?{auth2:w}:void 0});I.error?(console.log("Caught error while creating booking:"+I.error),x&&x({timeslot:e,response:I,data:{...T}}),a&&a({timeslot:e,response:I,data:{...T}})):(v&&v({timeslot:e,response:I,data:{...T}}),o&&o({timeslot:e,response:I,data:{...T}}))};return _("form",{onSubmit:b.handleSubmit(E),children:be(tt,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",spacing:{xs:0,md:1},pt:1,children:[_(tt,{item:!0,children:_(o1,{start:e==null?void 0:e.start,end:e==null?void 0:e.end,productName:t,productMinDuration:n,resourceName:r})}),_(v1,{fields:p,containerProps:{spacing:0,sx:{width:"100%"}},disableEmptyErrorText:!0,rhfProps:{control:b.control}}),_(tt,{item:!0,children:_(am,{variant:"contained",color:"primary",type:"submit",loading:$,children:(s==null?void 0:s.toLowerCase())==="immediate"?l("submit_button_book"):l("submit_button_request")})})]})})}$I.propTypes={onProductSelected:Re.func};function CI({timeslot:e,productName:t,productMinDuration:n,resourceName:r,placeholderId:i,onBookingSuccessfull:o,onBookingFailed:a,bookingProcess:s,customerData:l}){const{t:c}=xr(),d=Ge(A=>et(A,"ref")),h=Ge(A=>et(A,"channelKey")),g=Ge(X3),p=Ge(A=>et(A,"pData")),m=Ge(A=>et(A,"sendCustomValuesInMessage")),v=()=>{var A,I,D,L,B;return!!((A=l==null?void 0:l.missingFields)!=null&&A.firstName||(I=l==null?void 0:l.missingFields)!=null&&I.lastName||(D=l==null?void 0:l.missingFields)!=null&&D.email||(L=l==null?void 0:l.missingFields)!=null&&L.mobile||(B=l==null?void 0:l.missingFields)!=null&&B.agbs)},x=Ge(A=>{var L,B,U,j,G;const I=et(A,"fields"),D={};for(const K of Object.keys(I))(K!=="firstName"||(L=l==null?void 0:l.missingFields)!=null&&L.firstName)&&(K!=="lastName"||(B=l==null?void 0:l.missingFields)!=null&&B.lastName)&&(K!=="email"||(U=l==null?void 0:l.missingFields)!=null&&U.email)&&(K!=="mobile"||(j=l==null?void 0:l.missingFields)!=null&&j.mobile)&&(K!=="agbs"||(G=l==null?void 0:l.missingFields)!=null&&G.agbs)&&(D[K]=I[K]);return D}),w=Ge(A=>et(A,"createBookingStarted")),b=Ge(A=>et(A,"createBookingSuccessful")),S=Ge(A=>et(A,"createBookingFailed")),$=xw({defaultValues:MS(x),resolver:ox(ap().shape(IS(x)))}),[E,{isLoading:T}]=Ok(),k=async A=>{w&&w({timeslot:e,...p});let I=A.message;if(m){I="";for(const B of Object.keys(x))B!=="firstName"&&B!=="lastName"&&B!=="email"&&B!=="mobile"&&B!=="agbs"&&A[B]&&(I+=A[B]+", ");I=I.slice(0,-3)}const D={channelOrResourceId:d,shouldInvalidateCustomerIdentification:v(),body:{start:e.start.toISO({suppressMilliseconds:!0}),end:e.end.toISO({suppressMilliseconds:!0}),product_uuid:g.uuid,timeslot_uuid:e.uuid,customer_id:p?p.personId+"@"+p.platform:void 0,placeholder_id:i,channelId:h,...A}};I&&(D.params={message:I});const L=await E(D);L.error?(S&&S({timeslot:e,resonse:L,data:{...A},pData:{...p}}),a&&a({timeslot:e,resonse:L,data:{...A},pData:{...p}})):(b&&b({timeslot:e,response:L,data:{...A},pData:{...p}}),o&&o({timeslot:e,response:L,data:{...A},pData:{...p}}))};return _("form",{onSubmit:$.handleSubmit(k),children:be(tt,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",mt:2,mx:"auto",children:[_(o1,{start:e==null?void 0:e.start,end:e==null?void 0:e.end,productMinDuration:n,productName:t,resourceName:r}),_(tt,{item:!0,borderBottom:"1px solid #ddd",width:"95%",alignSelf:"center",mt:2,mb:2}),((l==null?void 0:l.name)||(l==null?void 0:l.email))&&_(tt,{item:!0,xs:12,sm:8,children:_(wx,{size:"small",children:be(H_,{children:[be(Sx,{sx:{border:"none"},children:[_(pp,{sx:{border:"none",pl:0},children:c("fields.name")}),_(pp,{sx:{border:"none"},children:`*** ${l.name}***`})]}),be(Sx,{children:[_(pp,{sx:{border:"none",pl:0},children:c("fields.email")}),_(pp,{sx:{border:"none"},children:l.email})]})]})})}),_(tt,{mt:2,children:_(Ye,{paragraph:!0,variant:"body1",children:c("identified_customer_hint")})}),_(tt,{item:!0,xs:12,sm:9,children:_(v1,{fields:x,containerProps:{spacing:0,sx:{maxHeight:"calc(100vh - 180px)",overflowY:"auto",overflowX:"hidden",width:"100%"}},disableEmptyErrorText:!0,rhfProps:{control:$.control}})}),_(tt,{item:!0,children:_(am,{variant:"contained",color:"primary",type:"submit",loading:T,children:(s==null?void 0:s.toLowerCase())==="immediate"?c("submit_button_book"):c("submit_button_request")})})]})})}CI.propTypes={timeslot:Re.object,productName:Re.string,resourceName:Re.string,placeholderId:Re.string,onBookingSuccessfull:Re.func,onBookingFailed:Re.func,bookingProcess:Re.string,confirmationComponent:Re.func};function EI({visible:e,backdropSx:t,circleSx:n,size:r,children:i}){return be(ki,{sx:{position:"relative"},children:[_(ux,{sx:{height:"100%",width:"100%",position:"absolute",pointerEvents:e?"all":"none",backgroundColor:"#ffffffc5",zIndex:o=>o.zIndex.drawer+1,...t},open:e,children:_(D6,{color:"secondary",size:r,sx:{zIndex:o=>o.zIndex.drawer+2,...n}})}),i]})}EI.propTypes={visible:Re.bool.isRequired,color:Re.string,area:Re.string};function TI(){return _(ki,{sx:{height:"28px !important",width:"100% !important",position:"sticky !important",bottom:"0 !important",display:"flex",backgroundColor:"#fff",zIndex:e=>e.zIndex.drawer+1},children:_(tt,{container:!0,justifyContent:"flex-end",alignContent:"center",sx:{height:"inherit",pr:2},children:_(tt,{item:!0,children:be(gx,{color:"text.secondary",variant:"caption",underline:"none",target:"_blank",href:`http://timum.de?utm_medium=link&utm_source=${window.location.hostname.replace(/\./g,"-")}&utm_campaign=bookingjs2&utm_content=powered-by`,sx:{pr:1,fontSize:"10px !important",lineHeight:"20px !important",position:"static!important",display:"block!important",visibility:"visible!important",opacity:"1.0!important"},children:["powered by"," ",_(ki,{fontWeight:900,display:"inline",children:"timum"})]})})})})}TI.propTypes={};var NS={},e2e=zn;Object.defineProperty(NS,"__esModule",{value:!0});var kI=NS.default=void 0,t2e=e2e(dr()),n2e=fr,r2e=(0,t2e.default)((0,n2e.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Event");kI=NS.default=r2e;var PS={},i2e=zn;Object.defineProperty(PS,"__esModule",{value:!0});var AI=PS.default=void 0,o2e=i2e(dr()),a2e=fr,s2e=(0,o2e.default)((0,a2e.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"}),"Phonelink");AI=PS.default=s2e;var LS={},l2e=zn;Object.defineProperty(LS,"__esModule",{value:!0});var _I=LS.default=void 0,u2e=l2e(dr()),c2e=fr,d2e=(0,u2e.default)((0,c2e.jsx)("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"}),"Forum");_I=LS.default=d2e;var FS={},f2e=zn;Object.defineProperty(FS,"__esModule",{value:!0});var RI=FS.default=void 0,p2e=f2e(dr()),h2e=fr,g2e=(0,p2e.default)((0,h2e.jsx)("path",{d:"M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"}),"PhoneAndroid");RI=FS.default=g2e;var zS={},m2e=zn;Object.defineProperty(zS,"__esModule",{value:!0});var OI=zS.default=void 0,v2e=m2e(dr()),y2e=fr,b2e=(0,v2e.default)((0,y2e.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z"}),"Adjust");OI=zS.default=b2e;var BS={},w2e=zn;Object.defineProperty(BS,"__esModule",{value:!0});var DI=BS.default=void 0,x2e=w2e(dr()),S2e=fr,$2e=(0,x2e.default)((0,S2e.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),"Place");DI=BS.default=$2e;var HS={},C2e=zn;Object.defineProperty(HS,"__esModule",{value:!0});var II=HS.default=void 0,E2e=C2e(dr()),T2e=fr,k2e=(0,E2e.default)((0,T2e.jsx)("path",{d:"M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"}),"HeadsetMic");II=HS.default=k2e;var US={},A2e=zn;Object.defineProperty(US,"__esModule",{value:!0});var MI=US.default=void 0,_2e=A2e(dr()),R2e=fr,O2e=(0,_2e.default)((0,R2e.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");MI=US.default=O2e;var D2e=["color","size","title"];function jS(){return jS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jS.apply(this,arguments)}function I2e(e,t){if(e==null)return{};var n=M2e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function M2e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var WS=R.forwardRef(function(e,t){var n=e.color,r=e.size,i=e.title,o=I2e(e,D2e);return le.createElement("svg",jS({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n},o),i?le.createElement("title",null,i):null,le.createElement("path",{d:"M8 7a.5.5 0 0 1 .5.5V9H10a.5.5 0 0 1 0 1H8.5v1.5a.5.5 0 0 1-1 0V10H6a.5.5 0 0 1 0-1h1.5V7.5A.5.5 0 0 1 8 7z"}),le.createElement("path",{d:"M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"}))});WS.propTypes={color:Re.string,size:Re.oneOfType([Re.string,Re.number]),title:Re.string},WS.defaultProps={color:"currentColor",size:"1em",title:null};const N2e=WS;/*!
314
314
  * @preserve
315
315
  *
316
316
  * ++++++++++++++++++++++++++++++++++++++
@@ -368,7 +368,7 @@ LAST-MODIFIED:`+n[1].replace(/[^\w_\-:,;=+/<br>]/g,"").replace(/<br>/g,`\r
368
368
  0%, 100% {
369
369
  transform: translateX(0);
370
370
  }
371
- `;function pM({userName:e,doOnSuccess:t}){const{t:n}=xr(),{enqueueSnackbar:r}=cM(),i=xw({defaultValues:MS(o5),resolver:ox(ap().shape(IS(o5)))}),o=Vf(),a=Ge(p=>et(p,"host")),[s,l]=le.useState(),[c,{isLoading:d,isError:h}]=Bq(),g=async p=>{const m=await c({body:{userName:e,password:p.password}});m.error?(l(!0),setTimeout(()=>{l(!1)},1e3)):(t&&t(),o(Hk({pathToProp:"auth2",newValue:m.data.auth2})),r(n("login.success"),{variant:"success"}))};return be(ki,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[_($ce,{sx:{m:1,bgcolor:"secondary.main"},children:_(fM,{})}),_(Ye,{variant:"h2",children:n("login.sign_in")}),_(Ye,{variant:"subtitle2",textAlign:"center",mt:1,children:be(oQ,{t:n,i18nKey:"login.explanation",children:["Ein Benutzer mit dieser E-Mail existiert bereits. ",_("br",{})," Sie müssen sich authentifizieren, bevor Sie buchen können."]})}),_(ki,{borderBottom:"1px solid #ddd",width:"80%",mt:2,mb:2}),be(ki,{component:"form",onSubmit:i.handleSubmit(g),noValidate:!0,sx:{mt:1},children:[_(Ye,{variant:"body1",textAlign:"center",children:e}),_(v1,{fields:o5,disableEmptyErrorText:!0,rhfProps:{control:i.control},containerProps:{spacing:0},textFieldProps:{sx:{animation:s?`${gwe} 500ms linear 1`:""}}}),h&&_(Ye,{color:"error.main",variant:"body1",textAlign:"center",children:n("login.failed")}),_(am,{type:"submit",loading:d,fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:n("login.sign_in")}),_(gx,{href:`${a}/auth/reset`,display:"block",variant:"body2",textAlign:"center",target:"_blank",children:n("login.forgot_password")})]})]})}pM.propTypes={};function a5({calendarComponent:e,customerData:t,isIdentifyingCustomer:n,identificationFailed:r}){var th,yv,bv,wv,sd,xv,ld,Sv,$v,Cv,Ev,Tv,kv;const i=Vf(),o=Ge(X3),a=Ge($e=>et($e,"ref")),{height:s}=$Z(),l=Ge($e=>et($e,"channelKey")),c=Ge($e=>et($e,"cancelableAppointment.appointmentUuid")),d=Ge($e=>et($e,"height")),h=Ge($e=>et($e,"allowCloseOnBooking")),g=Ge($e=>et($e,"hideTimumFooter")),p=s&&s<d?s:d,m=Ge($e=>et($e,"cancelableAppointment.authToken")),v=Ge($e=>et($e,"callbacks.fetchingProductsFailed")),x=Ge($e=>et($e,"callbacks.fetchingBookablesFailed")),w=Ge($e=>et($e,"callbacks.fetchingPublicDataFailed")),b=Ge($e=>et($e,"callbacks.fetchingProductsSucceeded")),S=Ge($e=>et($e,"callbacks.fetchingBookablesSucceeded")),$=Ge($e=>et($e,"callbacks.fetchingPublicDataSucceeded")),[E,T]=le.useState(!1),[k,A]=le.useState(!1),[I,D]=le.useState(!1),[L,B]=le.useState(!1),[U,j]=le.useState(!1),[G,K]=le.useState(!1),[X,H]=le.useState(!1),[Y,Q]=le.useState(),[J,ge]=le.useState(),[Ce,ve]=le.useState(),[we,oe]=le.useState(),[Se,ke]=le.useState(),[Pe,Ke]=le.useState(),Ie=Ge($e=>et($e,"interfaces.UnkownBookingPage")),We=Ge($e=>et($e,"interfaces.IdentifiedBookingPage")),$t=Ge($e=>et($e,"interfaces.ConfirmationPage")),ht=Ge($e=>et($e,"interfaces.LoginPage")),W=Ge($e=>et($e,"interfaces.CancelPage")),ee=Ge($e=>et($e,"interfaces.ProductPage")),ne=Ge($e=>et($e,"interfaces.ErrorDialog")),me=$e=>{if(!$e)return;const it=JSON.parse(JSON.stringify($e));delete it.public_visible;for(const[Xn,Ia]of Object.entries(it)){it[Xn]=[];for(const ud of Ia)it[Xn].push(Ee(ud))}return it},Ee=$e=>{var Xn,Ia;const it=JSON.parse(JSON.stringify($e));return it.isCancelable=c&&it.appointment_uuid===c,it.appointmentUuid=it.appointment_uuid,it.uuid=it.timeslot_uuid,it.start=Fe.fromISO(it.start),(Xn=it.kind)!=null&&Xn.toLowerCase().includes("bookable")&&(o!=null&&o.minDuration)?it.end=Fe.fromISO(it.start).plus({minutes:o.minDuration}):(Ia=it.kind)!=null&&Ia.toLowerCase().includes("bookable")&&(o!=null&&o.maxDuration)?it.end=Fe.fromISO(it.start).plus({minutes:o.maxDuration}):it.end=Fe.fromISO(it.end),it},[de,{data:ce,error:at,reset:Qe}]=Lq(),[Lt]=Fq(),{data:Ve,error:Hn}=Dk({channelOrResourceId:a,params:{channelKey:l}}),{data:Ht,error:st,isLoading:pe}=Nq({channelOrResourceId:a,params:{channelKey:l},headers:m?{"X-SIGNED-APP-CUSTOMER":m}:void 0}),{data:nt,error:Ut,isLoading:Tn}=Rk({channelOrResourceId:a,params:{channelKey:l}});R.useEffect(()=>{Y&&de({channelOrResourceId:a,body:{timeslotUuid:Y==null?void 0:Y.timeslot_uuid,appointmentUuid:Y==null?void 0:Y.appointment_uuid,productUuid:o.uuid,from:Y.start.set({milliseconds:0}).toUTC(0,{keepLocalTime:!0}).toISO({suppressMilliseconds:!0}),to:Y.end.set({milliseconds:0}).toUTC(0,{keepLocalTime:!0}).toISO({suppressMilliseconds:!0})},params:{channelKey:l}})},[Y]),R.useEffect(()=>{at&&(C$(),_r())},[at]),R.useEffect(()=>{if(!I&&!L&&Ht&&c&&m){let $e;for(const it of Object.values(Ht))!Ln.isBoolean(it)&&!$e&&($e=it.find(Xn=>Xn.appointment_uuid===c));$e&&(ge(Ee($e)),D(!0),B(!0))}},[I,L,Ht,c,m]),R.useEffect(()=>{Ut&&v&&v(Ut)},[Ut,v]),R.useEffect(()=>{Hn&&w&&w(Hn)},[Hn,w]),R.useEffect(()=>{st&&x&&x(st)},[st,x]),R.useEffect(()=>{nt&&b&&b({...nt})},[nt,b]),R.useEffect(()=>{Ht&&S&&S({...Ht})},[Ht,S]),R.useEffect(()=>{Ve&&$&&b({...Ve})},[Ve,$]);const di=()=>{T(!0)},Da=()=>{T(!1)},qs=$e=>{ve($e),K(!0)},Ar=()=>{ve(void 0),K(!1)},lu=$e=>{A(!0),Q($e)},_r=()=>{var $e,it;A(!1),Ln.isNil(at)&&ce&&Lt({channelOrResourceId:a,body:{placeholder_id:($e=ce==null?void 0:ce.participation)==null?void 0:$e.customer_uuid,appointment_id:(it=ce==null?void 0:ce.participation)==null?void 0:it.appointment_uuid}}),setTimeout(()=>{Q(void 0)},150)},Zs=()=>{H(!0)},ad=()=>{H(!1),oe(void 0),ke(void 0),Ke(void 0)},mv=$e=>{D(!0),ge($e)},eh=()=>{D(!1),setTimeout(()=>{ge(void 0)},150)},vv=()=>{i(Hk({pathToProp:"cancelableAppointment",newValue:void 0})),eh()},C$=()=>{j(!0)},E$=()=>{j(!1)};return!o&&((th=nt==null?void 0:nt.products)==null?void 0:th.length)===1?i(Q3(nt==null?void 0:nt.products[0])):!o&&!E&&((yv=nt==null?void 0:nt.products)==null?void 0:yv.length)>1&&di(),be("div",{children:[_(tt,{container:!0,children:_(tt,{item:!0,xs:!0,children:be(EI,{visible:(()=>Tn||pe||k&&n)(),children:[e({bookables:me(Ht),product:o,products:nt==null?void 0:nt.products,publicData:Ve,height:p-20,openProductPage:di,openBookingPage:$e=>{$e.isCancelable?mv($e):lu($e)}}),!g&&_(TI,{})]})})}),E&&!I&&_(ee,{open:E&&!I,onClose:Da,children:_(C6,{onProductSelected:Da})}),k&&r&&!n&&_(Ie,{open:k&&r&&!n,onClose:_r,children:_($I,{timeslot:(()=>{var $e,it;return Y&&Y.uuid!==(($e=ce==null?void 0:ce.participation)==null?void 0:$e.timeslot_uuid)&&(Y.uuid=(it=ce==null?void 0:ce.participation)==null?void 0:it.timeslot_uuid),Y})(),productName:Y!=null&&Y.product_name?Y.product_name:o==null?void 0:o.name,productMinDuration:o==null?void 0:o.minDuration,resourceName:(bv=Ve==null?void 0:Ve.resource)==null?void 0:bv.name,placeholderId:(wv=ce==null?void 0:ce.participation)==null?void 0:wv.customer_uuid,bookingProcess:(sd=Ve==null?void 0:Ve.channel)==null?void 0:sd.bookingProcess,onBookingSuccessfull:({timeslot:$e,response:it,data:Xn})=>{Qe(),_r(),Zs(),ke(it),oe($e),Ke(Xn)},onBookingFailed:({response:$e,data:it})=>{var Xn,Ia,ud;((ud=(Ia=(Xn=$e==null?void 0:$e.error)==null?void 0:Xn.data)==null?void 0:Ia.errors[0])==null?void 0:ud.errorCode)==="300"&&qs(it.email)}})}),k&&!r&&!n&&_(We,{open:k&&!r&&!n,onClose:_r,children:_(CI,{timeslot:(()=>{var $e,it;return Y&&Y.uuid!==(($e=ce==null?void 0:ce.participation)==null?void 0:$e.timeslot_uuid)&&(Y.uuid=(it=ce==null?void 0:ce.participation)==null?void 0:it.timeslot_uuid),Y})(),productName:Y!=null&&Y.product_name?Y.product_name:o==null?void 0:o.name,productMinDuration:o==null?void 0:o.minDuration,resourceName:(xv=Ve==null?void 0:Ve.resource)==null?void 0:xv.name,placeholderId:(ld=ce==null?void 0:ce.participation)==null?void 0:ld.customer_uuid,onBookingSuccessfull:({timeslot:$e,response:it,data:Xn})=>{Qe(),_r(),Zs(),ke(it),oe($e),Ke(Xn)},bookingProcess:(Sv=Ve==null?void 0:Ve.channel)==null?void 0:Sv.bookingProcess,customerData:t})}),I&&_(W,{open:I,onClose:eh,timeslot:J,productName:J!=null&&J.product_name?J.product_name:o==null?void 0:o.name,resourceName:($v=Ve==null?void 0:Ve.resource)==null?void 0:$v.name,onCancelSuccess:vv,children:_(dM,{timeslot:J,productName:J!=null&&J.product_name?J.product_name:o==null?void 0:o.name,resourceName:(Cv=Ve==null?void 0:Ve.resource)==null?void 0:Cv.name,onCancelSuccess:vv})}),X&&_($t,{open:X,onClose:ad,allowCloseOnBooking:h,timeslot:we,productName:we!=null&&we.product_name?we.product_name:o==null?void 0:o.name,productDescription:o==null?void 0:o.description,resourceName:(Ev=Ve==null?void 0:Ve.resource)==null?void 0:Ev.name,providerName:Ve!=null&&Ve.provider.isThemingAllowed?(Tv=Ve==null?void 0:Ve.provider)==null?void 0:Tv.name:void 0,customerMail:t?t.email:Pe==null?void 0:Pe.email,contactChannel:Se==null?void 0:Se.contact_channel,bookingProcess:(kv=Ve==null?void 0:Ve.channel)==null?void 0:kv.bookingProcess,children:$e=>_(nM,{...$e})}),G&&_(ht,{open:G,onClose:Ar,children:_(pM,{userName:Ce,doOnSuccess:Ar})}),U&&_(ne,{open:U,onClose:E$})]})}function mwe({children:e}){const t=Ge(l=>et(l,"pData")),n=Ge(l=>et(l,"ref")),r=Ge(l=>et(l,"cookie")),i=()=>(!t||!t.personId)&&!r,{data:o,isLoading:a,isError:s}=Pq({channelOrResourceId:n,crmSlug:t==null?void 0:t.platform,personId:t==null?void 0:t.personId},{skip:i()});return e({customerData:o,isIdentifyingCustomer:a,identificationFailed:s||i()})}var s5={},vwe=zn;Object.defineProperty(s5,"__esModule",{value:!0});var hM=s5.default=void 0,ywe=vwe(dr()),bwe=fr,wwe=(0,ywe.default)((0,bwe.jsx)("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"}),"Phone");hM=s5.default=wwe;var l5={},xwe=zn;Object.defineProperty(l5,"__esModule",{value:!0});var gM=l5.default=void 0,Swe=xwe(dr()),$we=fr,Cwe=(0,Swe.default)((0,$we.jsx)("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"}),"PhoneIphone");gM=l5.default=Cwe;var u5={},Ewe=zn;Object.defineProperty(u5,"__esModule",{value:!0});var mM=u5.default=void 0,Twe=Ewe(dr()),kwe=fr,Awe=(0,Twe.default)((0,kwe.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"}),"Email");mM=u5.default=Awe;var c5={},_we=zn;Object.defineProperty(c5,"__esModule",{value:!0});var T1=c5.default=void 0,Rwe=_we(dr()),Owe=fr,Dwe=(0,Rwe.default)((0,Owe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");T1=c5.default=Dwe;function Iwe(){const{t:e}=xr();return _(Br,{sx:{pointerEvents:"none",marginBottom:"8px"},children:_(cr,{sx:{width:"100%",textAlign:"center",py:{xs:0,sm:0,md:0}},children:_(Ye,{variant:"body2",color:"text.disabled",children:`${e("appoinment_at_capacity")}`})})})}function Mwe({timeslot:e,productName:t,openBookingPage:n}){var r;return be(Br,{disablePadding:!0,sx:{borderWidth:"1px",borderStyle:"solid",borderColor:"grey.300",marginBottom:"8px"},children:[_(cr,{sx:{py:{xs:2,sm:2,md:3}}}),_(rw,{sx:{position:"absolute",width:"100%",height:"100%",zIndex:0},onClick:()=>{n(e)},children:_(Ye,{variant:"body2",color:"text.secondary",px:{xs:0,sm:0,md:0},children:`${(r=e==null?void 0:e.start)==null?void 0:r.toLocaleString(Fe.TIME_SIMPLE)} - ${t}`})})]})}function Nwe({timeslot:e,openBookingPage:t}){var r;const{t:n}=xr();return be(Br,{disablePadding:!0,sx:{borderWidth:"1px",borderStyle:"solid",borderColor:"secondary.main",marginBottom:"8px"},children:[_(cr,{sx:{py:{xs:2,sm:2,md:3}}}),_(rw,{sx:{position:"absolute",width:"100%",height:"100%",zIndex:0},onClick:()=>{t(e)},children:_(Ye,{variant:"body2",color:"secondary.main",px:{xs:2,sm:2,md:3},children:`${(r=e==null?void 0:e.start)==null?void 0:r.toLocaleString(Fe.TIME_SIMPLE)} - ${n("cancellation.cancellable_appointment_highlight")}`})})]})}function k1({bookables:e,product:t,products:n,openProductPage:r,openBookingPage:i,height:o}){const{t:a}=xr(),[s,l]=im(void 0,"outer"),c=h=>{let g;return n&&(g=n.find(p=>p.name===h.product_name)),!!g};let d;if(e){d=Object.entries(e),d=d.filter(h=>(h[1].forEach(g=>{g.hasSelectedProduct=c(g)}),h[1]=h[1].filter(g=>{var p,m;return(p=g==null?void 0:g.kind)!=null&&p.toLowerCase().includes("bookable")?!0:!!((m=g==null?void 0:g.kind)!=null&&m.toLowerCase().includes("lotappointment")&&(g.isCancelable||!g.hasSelectedProduct||g.product_name===(t==null?void 0:t.name)))}),!!h[1].length));for(const[,h]of d)h.sort((g,p)=>g.start<p.start?-1:g.start===p.start?0:1);d=d.sort((h,g)=>{const p=Fe.fromFormat(h[0],"yyyy-MM-dd"),m=Fe.fromFormat(g[0],"yyyy-MM-dd");return p<m?-1:p===m?0:1})}return be(ki,{sx:{width:"100%",height:o||"500px",overflowY:"auto",overflowX:"hidden"},children:[r&&_(mc,{ref:s,variant:"outlined",fullWidth:!0,onClick:r,startIcon:_(Dc,{fontSize:"small"}),endIcon:_(T1,{fontSize:"10px"}),children:(t==null?void 0:t.name)||a("product_selection_headline")}),be(Gf,{sx:{height:r?`calc(100% - ${Math.ceil(l.height)}px)`:"100%","& ul":{padding:0},position:"relative"},subheader:_("li",{}),children:[!(d!=null&&d.length)&&_(ki,{height:r?`calc(100% - ${Math.ceil(l.height)}px)`:"100%",width:"100%",children:_(Ye,{variant:"body2",color:"text.secondary",sx:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"},children:a("noEventsMessage")})}),(d==null?void 0:d.length)>0&&d.map(([h,g])=>_("li",{children:be("ul",{children:[_(oce,{children:be(tt,{container:!0,justifyContent:"space-between",alignItems:"center",sx:{height:"48px"},children:[_(tt,{item:!0,children:_(Ye,{variant:"body2",color:"primary",children:Fe.fromISO(h).toLocaleString(Fe.DATE_FULL)})}),_(tt,{item:!0,children:_(Ye,{variant:"body2",color:"text.secondary",children:Fe.fromISO(h).weekdayLong})})]})}),g.map(p=>{if(p.isCancelable)return _(Nwe,{timeslot:p,openBookingPage:i},`${p.start.toISO()}-${p.uuid}`);if(p.capacity_left>0||p.kind==="models.Bookable"){let m=t==null?void 0:t.name;return!p.hasSelectedProduct&&p.kind!=="models.Bookable"&&(m=p.product_name),_(Mwe,{timeslot:p,productName:m,openBookingPage:i},`${p.start.toISO()}-${p.uuid}`)}else return _(Iwe,{},`${p.start.toISO()}-${p.uuid}`)})]})},h))]})]})}k1.propTypes={bookables:Re.array.isRequired,product:Re.object,products:Re.array.isRequired,openProductPage:Re.func.isRequired,openBookingPage:Re.func.isRequired,height:Re.number};const Pwe=fe(e=>{const{...t}=e;return _(Nm,{...t})})(({theme:e,expand:t})=>({transform:t?"rotate(180deg)":"rotate(0deg)",margin:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})}));function Lwe({bookables:e,product:t,products:n,publicData:r,openProductPage:i,openBookingPage:o,height:a}){const{t:s}=xr(),[l,c]=im(),d=Oc(b=>b.breakpoints.down("sm")),[h,g]=le.useState(!d),p=()=>{g(!h)},m=()=>{var b,S,$,E;return((b=r==null?void 0:r.contact)==null?void 0:b.name)||((S=r==null?void 0:r.contact)==null?void 0:S.email)||(($=r==null?void 0:r.contact)==null?void 0:$.mobile)||((E=r==null?void 0:r.contact)==null?void 0:E.phone)},v=()=>{var b,S,$,E,T,k,A,I,D,L,B,U,j;return be(ol,{children:[_(tt,{item:!0,xs:"auto",children:_(Ye,{variant:"h4",component:"h2",children:(b=r==null?void 0:r.resource)==null?void 0:b.name})}),be(tt,{item:!0,xs:"auto",children:[(n==null?void 0:n.length)>1&&_(mc,{variant:"outlined",onClick:i,startIcon:_(Dc,{fontSize:"small"}),endIcon:_(T1,{fontSize:"10px"}),children:(t==null?void 0:t.name)||s("product_selection_headline")}),(n==null?void 0:n.length)===1&&be(Br,{disableGutters:!0,disablePadding:!0,children:[_(Mo,{sx:{minWidth:"30px"},children:_(Dc,{fontSize:"small"})}),_(cr,{children:_(Ye,{variant:"body1",color:"text.secondary",children:(t==null?void 0:t.name)||((S=n[0])==null?void 0:S.name)})})]})]}),m()&&_(tt,{item:!0,sx:{mb:{xs:($=r==null?void 0:r.resource)!=null&&$.description?0:1}},children:_(QA,{elevation:0,children:_(XA,{sx:{pt:"0!important",pb:"0!important"},children:be(Gf,{dense:!0,sx:{p:0},children:[((E=r==null?void 0:r.contact)==null?void 0:E.name)&&_(Br,{sx:{py:0},disableGutters:!0,children:_(cr,{primary:(T=r==null?void 0:r.contact)==null?void 0:T.name})}),((k=r==null?void 0:r.contact)==null?void 0:k.email)&&be(Br,{sx:{py:0},disableGutters:!0,children:[_(Mo,{sx:{minWidth:"30px"},children:_(mM,{fontSize:"small"})}),_(cr,{primary:(A=r==null?void 0:r.contact)==null?void 0:A.email})]}),((I=r==null?void 0:r.contact)==null?void 0:I.phone)&&be(Br,{sx:{py:0},disableGutters:!0,children:[_(Mo,{sx:{minWidth:"30px"},children:_(hM,{fontSize:"small"})}),_(cr,{primary:(D=r==null?void 0:r.contact)==null?void 0:D.phone})]}),((L=r==null?void 0:r.contact)==null?void 0:L.mobile)&&be(Br,{sx:{py:0},disableGutters:!0,children:[_(Mo,{sx:{minWidth:"30px"},children:_(gM,{fontSize:"small"})}),_(cr,{primary:(B=r==null?void 0:r.contact)==null?void 0:B.mobile})]})]})})})}),((U=r==null?void 0:r.resource)==null?void 0:U.description)&&_(tt,{item:!0,xs:!0,flexShrink:3,sx:{mb:{xs:1}},children:be(QA,{elevation:0,children:[_(zce,{disableRipple:(c==null?void 0:c.height)<=74,onClick:()=>{(c==null?void 0:c.height)>74&&p()},children:_(YA,{in:h,collapsedSize:"72px",children:_(XA,{sx:{pb:"0!important"},children:_(ki,{ref:l,children:_(Wc,{overrides:{h1:{component:Ye,props:{variant:"h3",gutterBottom:!0}},h2:{component:Ye,props:{variant:"h4",gutterBottom:!0}},h3:{component:Ye,props:{variant:"h5",gutterBottom:!0}},h4:{component:Ye,props:{variant:"h6",gutterBottom:!0}},h5:{component:Ye,props:{variant:"body1",gutterBottom:!0,color:"text.secondary"}},h6:{component:Ye,props:{variant:"body1",gutterBottom:!0,color:"text.secondary"}},p:{component:Ye,props:{variant:"body2",gutterBottom:!0}},span:{component:Ye,props:{variant:"body2",gutterBottom:!0}}},children:(j=r==null?void 0:r.resource)==null?void 0:j.description})})})})}),(c==null?void 0:c.height)>74&&_(Wce,{sx:{py:0},children:_(Pwe,{expand:h,onClick:p,children:_(T1,{})})})]})})]})},x=()=>be(tt,{container:!0,columnSpacing:4,rowSpacing:0,columns:12,children:[_(tt,{xs:6,container:!0,item:!0,direction:"column",wrap:"nowrap",spacing:3,sx:{overflowY:"auto",maxHeight:`${a}px`},children:v()}),be(tt,{item:!0,xs:6,children:[_(Ye,{variant:"h4",component:"h2",children:s("detailsListView.chose_date_and_time")}),_(k1,{product:t,products:n,bookables:e,openBookingPage:o,height:a})]})]}),w=()=>be(tt,{container:!0,direction:"column",columnSpacing:1,rowSpacing:1,children:[_(tt,{container:!0,item:!0,direction:"column",wrap:"nowrap",spacing:1,xs:"auto",children:v()}),be(tt,{item:!0,xs:!0,children:[_(Ye,{variant:"h4",component:"h2",children:s("detailsListView.chose_date_and_time")}),_(k1,{product:t,products:n,bookables:e,openBookingPage:o,height:a})]})]});return d?w():x()}function qc(e){const t=parseFloat(getComputedStyle(document.documentElement).fontSize);return e/t}var d5={},Fwe=zn;Object.defineProperty(d5,"__esModule",{value:!0});var vM=d5.default=void 0,zwe=Fwe(dr()),Bwe=fr,Hwe=(0,zwe.default)((0,Bwe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");vM=d5.default=Hwe;function Pp(e){const{children:t,onClose:n,...r}=e;return be(t_,{sx:{m:0,p:2},...r,children:[t,n?_(Nm,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:_(vM,{})}):null]})}Pp.propTypes={children:Re.node,onClose:Re.func.isRequired};const Ls=14,eu='"Helvetica Neue", Helvetica, Arial, sans-serif',Zc=Math.floor(Ls*1.428571429),Uwe=qc(Math.floor(Ls*2.6)),jwe=qc(Math.floor(Ls*2.3)),Wwe=qc(Math.floor(Ls*1.9)),Vwe=qc(Math.floor(Ls*1.5)),Gwe=qc(Math.floor(Ls*1.15)),Ywe=qc(Math.floor(Ls)),tu={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,height:500,localization:{de:{product_selection_headline:"Terminart wählen",booked_successfully_header:"Termin gebucht",booked_successfully_message:"Sie erhalten eine E-Mail mit den Termindetails an {{mail}}",requested_successfully_header:"Termin angefragt",requested_successfully_message:"Sie erhalten eine E-Mail mit den Termindetails an {{mail}}. Sie werden unter der gleichen Adresse benachrichtigt, sobald Ihre Anfrage bearbeitet wurde.",submit_button_book:"Buchen",submit_button_request:"Verbindlich Anfragen",noEventsMessage:"Zur Zeit sind leider keine buchbaren Termine verfügbar.",appoinment_at_capacity:"vollständig ausgebucht",add_to_calendar_btn:"Zu Kalender hinzufügen",until_reservation_expiration:"{{expiration}} bis zum Ablauf der Reservierung",reservation_expired:"Reservierung abgelaufen.",identified_customer_hint:"Sie wurden mit persönlichem Link eingeladen und können direkt Ihren Termin buchen.",detailsListView:{chose_date_and_time:"Datum und Zeit wählen"},reservation_failed:{title:"Hohe Nachfrage",message:"Dieser Termin wurde gerade durch jemanden reserviert. Bitte wählenSie einen anderen Termin. Oder schauen Sie später noch einmal, obein Termin frei wird."},cancellation:{cancelation_successfull_message:"Termin erfolgreich abgesagt",cancellable_appointment_highlight:"Mein Termin",submit_button_cancel:"Absagen",cancel_appointment_header:"Ihr Termin",message_label:"Nachricht zur Terminabsage"},login:{forgot_password:"Neues Passwort vergeben",sign_in:"Sign In",success:"Sign In erfolgreich",failed:"Sign In fehlgeschlagen",explanation:"Ein Benutzer mit dieser email existiert bereits. <1></1> Sie müssen sich mit Ihrem timum Passwort anmelden oder ein neues Passwort erstellen."},validation:{field_required:"Notwendig",privacy_field_required:"Sie müssen die Datenschutzbestimmungen akzeptieren bevor Sie buchen können.",email_field_must_be_valid:"Geben Sie eine valide E-Mail Adresse ein"},fields:{userName:"Nutzername",password:"Passwort",firstName:"Vorname",lastName:"Nachname",name:"Name",email:"E-Mail",mobile:"Mobil",message:"Ihre Nachricht",accept_timum_privacy:'<a href="https://info.timum.de/datenschutz" target="_blank">Datenschutzbestimmungen</a> gelesen und akzeptiert'}},en:{product_selection_headline:"Choose Product",booked_successfully_header:"Appoinment Booked",booked_successfully_message:"You will receive an email with appointment details to {{mail}}",requested_successfully_header:"Appointment Requested",requested_successfully_message:"You will receive an email with appointment details to {{mail}}. You will be notified at the same address once your request has been processed.",submit_button_book:"Book",submit_button_request:"Request",noEventsMessage:"Unfortunately, there are no bookable dates available at the moment.",appoinment_at_capacity:"fully booked",add_to_calendar_btn:"Add to Calendar",until_reservation_expiration:"{{expiration}} until reservation expiration.",reservation_expired:"Reservation expired.",identified_customer_hint:"You have been invited with a personal link and can book your appointment directly.",detailsListView:{chose_date_and_time:"Choose date and time"},reservation_failed:{title:"High Demand",message:"This appointment has just been reserved by someone. Please choose another appointment. Or check back later to see if an appointment becomes available."},cancellation:{cancelation_successfull_message:"Appointment canceled sucessfully.",cancellable_appointment_highlight:"My Appointment",submit_button_cancel:"Cancel",cancel_appointment_header:"Your Appointment",message_label:"You may enter a reason here."},login:{forgot_password:"Reset your password",sign_in:"Sign In",success:"Sign In successful.",failed:"Sign In failed",explanation:"A user with this email already exists. <1></1> You need to login with your timum password or create a new password."},validation:{field_required:"Required",privacy_field_required:"You must accept the privacy policy prior to booking.",email_field_must_be_valid:"Enter a valid email address"},fields:{userName:"User name",password:"Password",firstName:"First name",lastName:"Last name",name:"name",email:"E-mail",mobile:"Mobile",message:"Your Message",accept_timum_privacy:'<a href="https://info.timum.de/datenschutz" target="_blank">Privacy policy</a> read and accepted.'}}},fields:{firstName:{index:0,title:"fields.firstName",validation:Ts().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:Ts().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:Ts().email("validation.email_field_must_be_valid").required("validation.field_required")},mobile:{index:3,title:"fields.mobile",type:"phoneNumber",isRequired:!1},message:{index:4,title:"fields.message",type:"textarea",validation:Ts().max(1024),limit:1024},agbs:{index:5,title:"fields.accept_timum_privacy",type:"checkbox",validation:Om().required("validation.field_required").test("privacyAccepted","validation.privacy_field_required",e=>e===!0)}},interfaces:{UnkownBookingPage:({open:e,onClose:t,children:n})=>{const r=la(),i=Oc(r.breakpoints.down("sm"));return be(zl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[_(Pp,{onClose:t}),_(Bl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:_(lp,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=la(),i=Oc(r.breakpoints.down("sm"));return be(zl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[_(Pp,{onClose:t}),_(Bl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:_(lp,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=la(),a=Oc(o.breakpoints.down("sm"));return be(zl,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:a,children:[r&&_(Pp,{onClose:n}),_(Bl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:_(lp,{maxWidth:"sm",sx:{p:0},children:i({...e})})})]})},LoginPage:({open:e,onClose:t,children:n})=>_(zl,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:_(Bl,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=la(),i=Oc(r.breakpoints.down("sm"));return be(zl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[_(Pp,{onClose:t}),_(Bl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:_(lp,{maxWidth:"sm",sx:{p:0},children:n})})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=la(),i=Oc(r.breakpoints.down("sm"));return _(zl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:_(Bl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:_(lp,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=xr();return be(zl,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[_(t_,{id:"alert-dialog-title",children:n("reservation_failed.title")}),_(Bl,{children:_(Ude,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),_(Ode,{children:_(mc,{onClick:t,autoFocus:!0,children:"Ok"})})]})}},callbacks:{}},muiTheme:{palette:{primary:{main:"#337ab7"},secondary:{main:"#777"},success:{main:"#5cb85c"},warning:{main:"#f0ad4e"},error:{main:"#d9534f"},info:{main:"#5bc0de"}},typography:{fontFamily:eu,fontSize:Ls,h1:{fontFamily:eu,fontWeight:500,lineHeight:1,fontSize:`${Uwe}rem`},h2:{fontFamily:eu,fontWeight:500,lineHeight:1,fontSize:`${jwe}rem`},h3:{fontFamily:eu,fontWeight:500,lineHeight:1,fontSize:`${Wwe}rem`},h4:{fontFamily:eu,fontWeight:500,lineHeight:1,fontSize:`${Vwe}rem`},h5:{fontFamily:eu,fontWeight:500,lineHeight:1,fontSize:`${Gwe}rem`},h6:{fontFamily:eu,fontWeight:500,lineHeight:1,fontSize:`${Ywe}rem`}},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarColor:"#bfbfbf #ffffff","&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:"#ffffff"},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:"#bfbfbf",minHeight:16,width:8,border:"3px solid #ffffff"},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:"#ffffff"}}}},MuiTextField:{defaultProps:{variant:"outlined"}},MuiListItem:{styleOverrides:{root:{borderRadius:"4px"}}},MuiListItemButton:{styleOverrides:{root:{borderRadius:"4px"}}}},MuiListItemText:{styleOverrides:{borderRadius:"4px"}},MuiTypography:{styleOverrides:{h1:{marginBottom:Zc/2},h2:{marginBottom:Zc/2},h3:{marginBottom:Zc/2},h4:{marginBottom:Zc/2},h5:{marginBottom:Zc/2},h6:{marginBottom:Zc/2}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}};function A1(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&&Qg(e,t)}function Lp(e,t){if(t&&(sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return da(e)}function No(e){return No=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},No(e)}function qwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zwe(e){return b6(e)||qwe(e)||x6(e)||S6()}function yM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Kwe={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},Qwe=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_i(this,e),this.init(t,n)}return Ri(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||Kwe,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,bM(bM({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),Po=new Qwe,Fs=function(){function e(){_i(this,e),this.observers={}}return Ri(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function Fp(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function wM(e){return e==null?"":""+e}function Xwe(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function f5(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function xM(e,t,n){var r=f5(e,t,Object),i=r.obj,o=r.k;i[o]=n}function Jwe(e,t,n,r){var i=f5(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function _1(e,t){var n=f5(e,t),r=n.obj,i=n.k;if(r)return r[i]}function SM(e,t,n){var r=_1(e,n);return r!==void 0?r:_1(t,n)}function $M(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):$M(e[r],t[r],n):e[r]=t[r]);return e}function Kc(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var exe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function txe(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return exe[t]}):e}var R1=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,nxe=[" ",",","?","!",";"];function rxe(e,t,n){t=t||"",n=n||"";var r=nxe.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function CM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function O1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ixe(e){var t=oxe();return function(){var r=No(e),i;if(t){var o=No(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lp(this,i)}}function oxe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function EM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,s=r.slice(o,o+a).join(n),l=i[s];l===void 0&&r.length>o+a;)a++,s=r.slice(o,o+a).join(n),l=i[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var c=r.slice(o+a).join(n);return c?EM(l,c,n):void 0}i=i[r[o]]}return i}}var axe=function(e){A1(n,e);var t=ixe(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return _i(this,n),i=t.call(this),R1&&Fs.call(da(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Ri(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,d=[i,o];a&&typeof a!="string"&&(d=d.concat(a)),a&&typeof a=="string"&&(d=d.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(d=i.split("."));var h=_1(this.data,d);return h||!c||typeof a!="string"?h:EM(this.data&&this.data[i]&&this.data[i][o],a,l)}},{key:"addResource",value:function(i,o,a,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var d=[i,o];a&&(d=d.concat(c?a.split(c):a)),i.indexOf(".")>-1&&(d=i.split("."),s=o,o=d[1]),this.addNamespaces(o),xM(this.data,d,s),l.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in a)(typeof a[l]=="string"||Object.prototype.toString.apply(a[l])==="[object Array]")&&this.addResource(i,o,l,a[l],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},d=[i,o];i.indexOf(".")>-1&&(d=i.split("."),s=a,a=o,o=d[1]),this.addNamespaces(o);var h=_1(this.data,d)||{};s?$M(h,a,l):h=O1(O1({},h),a),xM(this.data,d,h),c.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?O1(O1({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Fs),TM={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(n=a.processors[s].process(n,r,i,o))}),n}};function kM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sxe(e){var t=lxe();return function(){var r=No(e),i;if(t){var o=No(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lp(this,i)}}function lxe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var AM={},_M=function(e){A1(n,e);var t=sxe(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _i(this,n),i=t.call(this),R1&&Fs.call(da(i)),Xwe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,da(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Po.create("translator"),i}return Ri(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],c=a&&i.indexOf(a)>-1,d=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!rxe(i,a,s);if(c&&!d){var h=i.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:i,namespaces:l};var g=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(g[0])>-1)&&(l=g.shift()),i=g.join(s)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,o,a){var s=this;if(sr(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,d=this.extractFromKey(i[i.length-1],o),h=d.key,g=d.namespaces,p=g[g.length-1],m=o.lng||this.language,v=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(v){var x=o.nsSeparator||this.options.nsSeparator;return l?(w.res="".concat(p).concat(x).concat(h),w):"".concat(p).concat(x).concat(h)}return l?(w.res=h,w):h}var w=this.resolve(i,o),b=w&&w.res,S=w&&w.usedKey||h,$=w&&w.exactUsedKey||h,E=Object.prototype.toString.apply(b),T=["[object Number]","[object Function]","[object RegExp]"],k=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,I=typeof b!="string"&&typeof b!="boolean"&&typeof b!="number";if(A&&b&&I&&T.indexOf(E)<0&&!(typeof k=="string"&&E==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var D=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,b,kr(kr({},o),{},{ns:g})):"key '".concat(h," (").concat(this.language,")' returned an object instead of string.");return l?(w.res=D,w):D}if(c){var L=E==="[object Array]",B=L?[]:{},U=L?$:S;for(var j in b)if(Object.prototype.hasOwnProperty.call(b,j)){var G="".concat(U).concat(c).concat(j);B[j]=this.translate(G,kr(kr({},o),{joinArrays:!1,ns:g})),B[j]===G&&(B[j]=b[j])}b=B}}else if(A&&typeof k=="string"&&E==="[object Array]")b=b.join(k),b&&(b=this.extendTranslation(b,i,o,a));else{var K=!1,X=!1,H=o.count!==void 0&&typeof o.count!="string",Y=n.hasDefaultValue(o),Q=H?this.pluralResolver.getSuffix(m,o.count,o):"",J=o["defaultValue".concat(Q)]||o.defaultValue;!this.isValidLookup(b)&&Y&&(K=!0,b=J),this.isValidLookup(b)||(X=!0,b=h);var ge=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ce=ge&&X?void 0:b,ve=Y&&J!==b&&this.options.updateMissing;if(X||K||ve){if(this.logger.log(ve?"updateKey":"missingKey",m,p,h,ve?J:b),c){var we=this.resolve(h,kr(kr({},o),{},{keySeparator:!1}));we&&we.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var oe=[],Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(var ke=0;ke<Se.length;ke++)oe.push(Se[ke]);else this.options.saveMissingTo==="all"?oe=this.languageUtils.toResolveHierarchy(o.lng||this.language):oe.push(o.lng||this.language);var Pe=function(Ie,We,$t){var ht=Y&&$t!==b?$t:Ce;s.options.missingKeyHandler?s.options.missingKeyHandler(Ie,p,We,ht,ve,o):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(Ie,p,We,ht,ve,o),s.emit("missingKey",Ie,p,We,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?oe.forEach(function(Ke){s.pluralResolver.getSuffixes(Ke,o).forEach(function(Ie){Pe([Ke],h+Ie,o["defaultValue".concat(Ie)]||J)})}):Pe(oe,h,J))}b=this.extendTranslation(b,i,o,w,a),X&&b===h&&this.options.appendNamespaceToMissingKey&&(b="".concat(p,":").concat(h)),(X||K)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(p,":").concat(h):h,K?b:void 0):b=this.options.parseMissingKeyHandler(b))}return l?(w.res=b,w):b}},{key:"extendTranslation",value:function(i,o,a,s,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,kr(kr({},this.options.interpolation.defaultVariables),a),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(kr(kr({},a),{interpolation:kr(kr({},this.options.interpolation),a.interpolation)}));var d=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),h;if(d){var g=i.match(this.interpolator.nestingRegexp);h=g&&g.length}var p=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(p=kr(kr({},this.options.interpolation.defaultVariables),p)),i=this.interpolator.interpolate(i,p,a.lng||this.language,a),d){var m=i.match(this.interpolator.nestingRegexp),v=m&&m.length;h<v&&(a.nest=!1)}a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var b=arguments.length,S=new Array(b),$=0;$<b;$++)S[$]=arguments[$];return l&&l[0]===S[0]&&!a.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(S[0]," in key: ").concat(o[0])),null):c.translate.apply(c,S.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var x=a.postProcess||this.options.postProcess,w=typeof x=="string"?[x]:x;return i!=null&&w&&w.length&&a.applyPostProcessor!==!1&&(i=TM.handle(w,i,o,this.options&&this.options.postProcessPassResolved?kr({i18nResolved:s},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,d,h;return typeof i=="string"&&(i=[i]),i.forEach(function(g){if(!o.isValidLookup(s)){var p=o.extractFromKey(g,a),m=p.key;l=m;var v=p.namespaces;o.options.fallbackNS&&(v=v.concat(o.options.fallbackNS));var x=a.count!==void 0&&typeof a.count!="string",w=x&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),b=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",S=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);v.forEach(function($){o.isValidLookup(s)||(h=$,!AM["".concat(S[0],"-").concat($)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(h)&&(AM["".concat(S[0],"-").concat($)]=!0,o.logger.warn('key "'.concat(l,'" for languages "').concat(S.join(", "),`" won't get resolved as namespace "`).concat(h,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),S.forEach(function(E){if(!o.isValidLookup(s)){d=E;var T=[m];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(T,m,E,$,a);else{var k;x&&(k=o.pluralResolver.getSuffix(E,a.count,a));var A="".concat(o.options.pluralSeparator,"zero");if(x&&(T.push(m+k),w&&T.push(m+A)),b){var I="".concat(m).concat(o.options.contextSeparator).concat(a.context);T.push(I),x&&(T.push(I+k),w&&T.push(I+A))}}for(var D;D=T.pop();)o.isValidLookup(s)||(c=D,s=o.getResource(E,$,D,a))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:d,usedNS:h}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(Fs);function p5(e){return e.charAt(0).toUpperCase()+e.slice(1)}var uxe=function(){function e(t){_i(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Po.create("languageUtils")}return Ri(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=p5(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=p5(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=p5(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(s){if(s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],s=function(c){c&&(i.isSupportedCode(c)?a.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),o.forEach(function(l){a.indexOf(l)<0&&s(i.formatLanguageCode(l))}),a}}]),e}(),cxe=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],dxe={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},fxe=["v1","v2","v3"],RM={zero:0,one:1,two:2,few:3,many:4,other:5};function pxe(){var e={};return cxe.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:dxe[t.fc]}})}),e}var hxe=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_i(this,e),this.languageUtils=t,this.options=n,this.logger=Po.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=pxe()}return Ri(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return RM[a]-RM[s]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!fxe.includes(this.options.compatibilityJSON)}}]),e}();function OM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var gxe=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_i(this,e),this.logger=Po.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Ri(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:txe,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Kc(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Kc(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Kc(r.nestingPrefix):r.nestingPrefixEscaped||Kc("$t("),this.nestingSuffix=r.nestingSuffix?Kc(r.nestingSuffix):r.nestingSuffixEscaped||Kc(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,s,l,c,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function h(x){return x.replace(/\$/g,"$$$$")}var g=function(w){if(w.indexOf(a.formatSeparator)<0){var b=SM(r,d,w);return a.alwaysFormat?a.format(b,void 0,i,uo(uo(uo({},o),r),{},{interpolationkey:w})):b}var S=w.split(a.formatSeparator),$=S.shift().trim(),E=S.join(a.formatSeparator).trim();return a.format(SM(r,d,$),E,i,uo(uo(uo({},o),r),{},{interpolationkey:$}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,m=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(w){return h(w)}},{regex:this.regexp,safeValue:function(w){return a.escapeValue?h(a.escape(w)):h(w)}}];return v.forEach(function(x){for(c=0;s=x.regex.exec(n);){var w=s[1].trim();if(l=g(w),l===void 0)if(typeof p=="function"){var b=p(n,s,o);l=typeof b=="string"?b:""}else if(o&&o.hasOwnProperty(w))l="";else if(m){l=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(w," for interpolating ").concat(n)),l="";else typeof l!="string"&&!a.useRawValueToEscape&&(l=wM(l));var S=x.safeValue(l);if(n=n.replace(s[0],S),m?(x.regex.lastIndex+=l.length,x.regex.lastIndex-=s[0].length):x.regex.lastIndex=0,c++,c>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,l=uo({},o);l.applyPostProcessor=!1,delete l.defaultValue;function c(p,m){var v=this.nestingOptionsSeparator;if(p.indexOf(v)<0)return p;var x=p.split(new RegExp("".concat(v,"[ ]*{"))),w="{".concat(x[1]);p=x[0],w=this.interpolate(w,l);var b=w.match(/'/g),S=w.match(/"/g);(b&&b.length%2===0&&!S||S.length%2!==0)&&(w=w.replace(/'/g,'"'));try{l=JSON.parse(w),m&&(l=uo(uo({},m),l))}catch($){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),$),"".concat(p).concat(v).concat(w)}return delete l.defaultValue,p}for(;a=this.nestingRegexp.exec(n);){var d=[],h=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var g=a[1].split(this.formatSeparator).map(function(p){return p.trim()});a[1]=g.shift(),d=g,h=!0}if(s=r(c.call(this,a[1].trim(),l),l),s&&a[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=wM(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),s=""),h&&(s=d.reduce(function(p,m){return i.format(p,m,o.lng,uo(uo({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),n=n.replace(a[0],s),this.regexp.lastIndex=0}return n}}]),e}();function DM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mxe(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),l=Zwe(s),c=l[0],d=l.slice(1),h=d.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=h),h==="false"&&(n[c.trim()]=!1),h==="true"&&(n[c.trim()]=!0),isNaN(h)||(n[c.trim()]=parseInt(h,10))}})}}return{formatName:t,formatOptions:n}}function Qc(e){var t={};return function(r,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(r)}}var vxe=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_i(this,e),this.logger=Po.create("formatter"),this.options=t,this.formats={number:Qc(function(n,r){var i=new Intl.NumberFormat(n,r);return function(o){return i.format(o)}}),currency:Qc(function(n,r){var i=new Intl.NumberFormat(n,zs(zs({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Qc(function(n,r){var i=new Intl.DateTimeFormat(n,zs({},r));return function(o){return i.format(o)}}),relativetime:Qc(function(n,r){var i=new Intl.RelativeTimeFormat(n,zs({},r));return function(o){return i.format(o,r.range||"day")}}),list:Qc(function(n,r){var i=new Intl.ListFormat(n,zs({},r));return function(o){return i.format(o)}})},this.init(t)}return Ri(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Qc(r)}},{key:"format",value:function(n,r,i,o){var a=this,s=r.split(this.formatSeparator),l=s.reduce(function(c,d){var h=mxe(d),g=h.formatName,p=h.formatOptions;if(a.formats[g]){var m=c;try{var v=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},x=v.locale||v.lng||o.locale||o.lng||i;m=a.formats[g](c,x,zs(zs(zs({},p),o),v))}catch(w){a.logger.warn(w)}return m}else a.logger.warn("there was no format function for ".concat(g));return c},n);return l}}]),e}();function IM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function MM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yxe(e){var t=bxe();return function(){var r=No(e),i;if(t){var o=No(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lp(this,i)}}function bxe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wxe(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var xxe=function(e){A1(n,e);var t=yxe(n);function n(r,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return _i(this,n),a=t.call(this),R1&&Fs.call(da(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=Po.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return Ri(n,[{key:"queueLoad",value:function(i,o,a,s){var l=this,c={},d={},h={},g={};return i.forEach(function(p){var m=!0;o.forEach(function(v){var x="".concat(p,"|").concat(v);!a.reload&&l.store.hasResourceBundle(p,v)?l.state[x]=2:l.state[x]<0||(l.state[x]===1?d[x]===void 0&&(d[x]=!0):(l.state[x]=1,m=!1,d[x]===void 0&&(d[x]=!0),c[x]===void 0&&(c[x]=!0),g[v]===void 0&&(g[v]=!0)))}),m||(h[p]=!0)}),(Object.keys(c).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(d),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(g)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),l=s[0],c=s[1];o&&this.emit("failedLoading",l,c,o),a&&this.store.addResourceBundle(l,c,a),this.state[i]=o?-1:2;var d={};this.queue.forEach(function(h){Jwe(h.loaded,[l],c),wxe(h,i),o&&h.errors.push(o),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(function(g){d[g]||(d[g]={});var p=h.loaded[g];p.length&&p.forEach(function(m){d[g][m]===void 0&&(d[g][m]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(function(h){return!h.done})}},{key:"read",value:function(i,o,a){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,d=arguments.length>5?arguments[5]:void 0;if(!i.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:l,wait:c,callback:d});return}return this.readingCalls++,this.backend[a](i,o,function(h,g){if(s.readingCalls--,s.waitingReads.length>0){var p=s.waitingReads.shift();s.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(h&&g&&l<s.maxRetries){setTimeout(function(){s.read.call(s,i,o,a,l+1,c*2,d)},c);return}d(h,g)})}},{key:"prepareLoading",value:function(i,o){var a=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var c=this.queueLoad(i,o,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(d){a.loadOne(d)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(d,h){d&&o.logger.warn("".concat(a,"loading namespace ").concat(c," for language ").concat(l," failed"),d),!d&&h&&o.logger.log("".concat(a,"loaded namespace ").concat(c," for language ").concat(l),h),o.loaded(i,d,h)})}},{key:"saveMissing",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}a==null||a===""||(this.backend&&this.backend.create&&this.backend.create(i,o,a,s,null,MM(MM({},c),{},{isUpdate:l})),!(!i||!i[0])&&this.store.addResource(i[0],o,a,s))}}]),n}(Fs);function Sxe(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(sr(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),sr(t[2])==="object"||sr(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function NM(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function PM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $xe(e){var t=Cxe();return function(){var r=No(e),i;if(t){var o=No(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lp(this,i)}}function Cxe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function D1(){}function Exe(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var I1=function(e){A1(n,e);var t=$xe(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(_i(this,n),r=t.call(this),R1&&Fs.call(da(r)),r.options=NM(i),r.services={},r.logger=Po,r.modules={external:[]},Exe(da(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Lp(r,da(r));setTimeout(function(){r.init(i,o)},0)}return r}return Ri(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=Sxe();this.options=Lo(Lo(Lo({},s),this.options),NM(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Lo(Lo({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(w){return w?typeof w=="function"?new w:w:null}if(!this.options.isClone){this.modules.logger?Po.init(l(this.modules.logger),this.options):Po.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=vxe);var d=new uxe(this.options);this.store=new axe(this.options.resources,this.options);var h=this.services;h.logger=Po,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new hxe(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(h.formatter=l(c),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new gxe(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new xxe(l(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(w){for(var b=arguments.length,S=new Array(b>1?b-1:0),$=1;$<b;$++)S[$-1]=arguments[$];i.emit.apply(i,[w].concat(S))}),this.modules.languageDetector&&(h.languageDetector=l(this.modules.languageDetector),h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=l(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new _M(this.services,this.options),this.translator.on("*",function(w){for(var b=arguments.length,S=new Array(b>1?b-1:0),$=1;$<b;$++)S[$-1]=arguments[$];i.emit.apply(i,[w].concat(S))}),this.modules.external.forEach(function(w){w.init&&w.init(i)})}if(this.format=this.options.interpolation.format,a||(a=D1),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var p=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];p.forEach(function(w){i[w]=function(){var b;return(b=i.store)[w].apply(b,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(w){i[w]=function(){var b;return(b=i.store)[w].apply(b,arguments),i}});var v=Fp(),x=function(){var b=function($,E){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),v.resolve(E),a($,E)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return b(null,i.t.bind(i));i.changeLanguage(i.options.lng,b)};return this.options.resources||!this.options.initImmediate?x():setTimeout(x,0),v}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D1,s=a,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],d=function(p){if(p){var m=o.services.languageUtils.toResolveHierarchy(p);m.forEach(function(v){c.indexOf(v)<0&&c.push(v)})}};if(l)d(l);else{var h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.forEach(function(g){return d(g)})}this.options.preload&&this.options.preload.forEach(function(g){return d(g)}),this.services.backendConnector.load(c,this.options.ns,function(g){!g&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(g)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=Fp();return i||(i=this.languages),o||(o=this.options.ns),a||(a=D1),this.services.backendConnector.reload(i,o,function(l){s.resolve(),a(l)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&TM.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=Fp();this.emit("languageChanging",i);var l=function(g){a.language=g,a.languages=a.services.languageUtils.toResolveHierarchy(g),a.resolvedLanguage=void 0,a.setResolvedLanguage(g)},c=function(g,p){p?(l(p),a.translator.changeLanguage(p),a.isLanguageChangingTo=void 0,a.emit("languageChanged",p),a.logger.log("languageChanged",p)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(g,function(){return a.t.apply(a,arguments)})},d=function(g){!i&&!g&&a.services.languageDetector&&(g=[]);var p=typeof g=="string"?g:a.services.languageUtils.getBestMatchFromCodes(g);p&&(a.language||l(p),a.translator.language||a.translator.changeLanguage(p),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage(p)),a.loadResources(p,function(m){c(m,p)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(d):d(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,l=function c(d,h){var g;if(sr(h)!=="object"){for(var p=arguments.length,m=new Array(p>2?p-2:0),v=2;v<p;v++)m[v-2]=arguments[v];g=s.options.overloadTranslationOptionHandler([d,h].concat(m))}else g=Lo({},h);g.lng=g.lng||c.lng,g.lngs=g.lngs||c.lngs,g.ns=g.ns||c.ns,g.keyPrefix=g.keyPrefix||a||c.keyPrefix;var x=s.options.keySeparator||".",w=g.keyPrefix?"".concat(g.keyPrefix).concat(x).concat(d):d;return s.t(w,g)};return typeof i=="string"?l.lng=i:l.lngs=i,l.ns=o,l.keyPrefix=a,l}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var d=function(p,m){var v=o.services.backendConnector.state["".concat(p,"|").concat(m)];return v===-1||v===2};if(a.precheck){var h=a.precheck(this,d);if(h!==void 0)return h}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(s,i)&&(!l||d(c,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=Fp();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){a.options.ns.indexOf(l)<0&&a.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),o&&o(l)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Fp();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],l=i.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){a.resolve(),o&&o(c)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return o.indexOf(this.services.languageUtils.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D1,s=Lo(Lo(Lo({},this.options),o),{isClone:!0}),l=new n(s);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var c=["store","services","language"];return c.forEach(function(d){l[d]=i[d]}),l.services=Lo({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new _M(l.services,l.options),l.translator.on("*",function(d){for(var h=arguments.length,g=new Array(h>1?h-1:0),p=1;p<h;p++)g[p-1]=arguments[p];l.emit.apply(l,[d].concat(g))}),l.init(s,a),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(Fs);ai(I1,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new I1(e,t)});var Bn=I1.createInstance();Bn.createInstance=I1.createInstance;var Txe=Bn.createInstance,kxe=Bn.init,Axe=Bn.loadResources,_xe=Bn.reloadResources,Rxe=Bn.use,Oxe=Bn.changeLanguage,Dxe=Bn.getFixedT,Ixe=Bn.t,Mxe=Bn.exists,Nxe=Bn.setDefaultNamespace,Pxe=Bn.hasLoadedNamespace,Lxe=Bn.loadNamespaces,Fxe=Bn.loadLanguages;const zxe=Object.freeze(Object.defineProperty({__proto__:null,changeLanguage:Oxe,createInstance:Txe,default:Bn,exists:Mxe,getFixedT:Dxe,hasLoadedNamespace:Pxe,init:kxe,loadLanguages:Fxe,loadNamespaces:Lxe,loadResources:Axe,reloadResources:_xe,setDefaultNamespace:Nxe,t:Ixe,use:Rxe},Symbol.toStringTag,{value:"Module"}));var LM=[],Bxe=LM.forEach,Hxe=LM.slice;function Uxe(e){return Bxe.call(Hxe.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var FM=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,jxe=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),a="".concat(t,"=").concat(o);if(i.maxAge>0){var s=i.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(s))}if(i.domain){if(!FM.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!FM.test(i.path))throw new TypeError("option path is invalid");a+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var l=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(l){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},zM={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=jxe(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(t){this.create(t,"",-1)}},Wxe={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=zM.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&zM.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},Vxe={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),a=0;a<o.length;a++){var s=o[a].indexOf("=");if(s>0){var l=o[a].substring(0,s);l===t.lookupQuerystring&&(n=o[a].substring(s+1))}}}return n}},zp=null,BM=function(){if(zp!==null)return zp;try{zp=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{zp=!1}return zp},Gxe={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&BM()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&BM()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Bp=null,HM=function(){if(Bp!==null)return Bp;try{Bp=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Bp=!1}return Bp},Yxe={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&HM()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&HM()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},qxe={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},Zxe={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Kxe={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},Qxe={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function Xxe(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var UM=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_i(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Ri(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=Uxe(r,this.options||{},Xxe()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Wxe),this.addDetector(Vxe),this.addDetector(Gxe),this.addDetector(Yxe),this.addDetector(qxe),this.addDetector(Zxe),this.addDetector(Kxe),this.addDetector(Qxe)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var a=r.detectors[o].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}]),e}();UM.type="languageDetector";function Jxe(e,t){return e&&Object.hasOwn(e,"message")&&typeof e.message>"u"&&delete t.message,e&&Object.hasOwn(e,"mobile")&&typeof e.mobile>"u"&&delete t.mobile,e&&Object.hasOwn(e,"email")&&typeof e.email>"u"&&delete t.email,e&&Object.hasOwn(e,"firstName")&&typeof e.firstName>"u"&&delete t.firstName,e&&Object.hasOwn(e,"lastName")&&typeof e.lastName>"u"&&delete t.lastName,t}function eSe({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r}){var p,m,v,x,w;const i=Vf(),o=Object.keys(e).length>0,a=Object.keys(n).length>0,s=n.ref,l=n.channelKey,c=(p=n==null?void 0:n.callbacks)==null?void 0:p.fetchingPublicDataFailed,{data:d,isLoading:h,error:g}=Dk({channelOrResourceId:s,params:{channelKey:l}});if(!h)if(g)c&&c(g);else{let b=Ln.merge({},tu.fcConfig,t),S=Ln.merge({},tu.appConfig,n),$=Ln.merge({},tu.muiTheme,e);S.fields=Jxe(n.fields,S.fields),S.fields=jM(S.fields),a&&!((m=d==null?void 0:d.provider)!=null&&m.isLocalisationAllowed)&&(S.localization=tu.appConfig.localization,console.warn("timum detected you configured custom localization/wording.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),a&&!((v=d==null?void 0:d.provider)!=null&&v.areCustomFieldsAllowed)&&(S.fields=tu.appConfig.fields,console.warn("timum detected you configured custom fields.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),a&&!((x=d==null?void 0:d.provider)!=null&&x.isThemingAllowed)&&(S.hideTimumFooter=tu.appConfig.hideTimumFooter,console.warn(`timum detected you want to suppress the "powered by timum" footerSince the Account the referenced resource belongs to isn't in an appropriate plan, this feature is disabled.`)),o&&!((w=d==null?void 0:d.provider)!=null&&w.isThemingAllowed)&&($=tu.muiTheme,console.warn("timum detected you configured custom theming.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),tSe(S),i(yZ(b)),i(vZ(S));let E=d3($??{});return E=NZ(E,{factor:2.5}),_(sV,{theme:E,children:r})}}function tSe(e){const t={};for(const[n,r]of Object.entries(e.localization))t[n]={translation:{...r}};Bn.use(UM).use(tQ).init({detection:{caches:["cookie"],order:["querystring","cookie","localStorage","navigator"],lookupQuerystring:"culture"},interpolation:{prefix:"{{",suffix:"}}"},fallbackLng:"en",resources:t,lng:e.culture}).then(()=>{En.defaultLocale=Bn.resolvedLanguage})}function jM(e,t,n){if(n||(n={}),typeof t>"u"&&(t=0),t>=Object.entries(e).length)return n;for(const[r,i]of Object.entries(e))i.index===t&&(n[r]=i);return t++,jM(e,t,n)}const nSe=rZ({reducer:{[Zg.reducerPath]:Zg.reducer,appState:SZ},middleware:e=>e().concat(Zg.middleware),devTools:{trace:!0}});var M1,qe,WM,Hp,VM,GM,N1={},YM=[],rSe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Bs(e,t){for(var n in t)e[n]=t[n];return e}function qM(e){var t=e.parentNode;t&&t.removeChild(e)}function P(e,t,n){var r,i,o,a={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?M1.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return P1(e,a,r,i,null)}function P1(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++WM};return i==null&&qe.vnode!=null&&qe.vnode(o),o}function On(){return{current:null}}function dt(e){return e.children}function ui(e,t){this.props=e,this.context=t}function Up(e,t){if(t==null)return e.__?Up(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Up(e):null}function ZM(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ZM(e)}}function h5(e){(!e.__d&&(e.__d=!0)&&Hp.push(e)&&!L1.__r++||VM!==qe.debounceRendering)&&((VM=qe.debounceRendering)||setTimeout)(L1)}function L1(){for(var e;L1.__r=Hp.length;)e=Hp.sort(function(t,n){return t.__v.__b-n.__v.__b}),Hp=[],e.some(function(t){var n,r,i,o,a,s;t.__d&&(a=(o=(n=t).__v).__e,(s=n.__P)&&(r=[],(i=Bs({},o)).__v=o.__v+1,g5(s,o,i,n.__n,s.ownerSVGElement!==void 0,o.__h!=null?[a]:null,r,a??Up(o),o.__h),nN(r,o),o.__e!=a&&ZM(o)))})}function KM(e,t,n,r,i,o,a,s,l,c){var d,h,g,p,m,v,x,w=r&&r.__k||YM,b=w.length;for(n.__k=[],d=0;d<t.length;d++)if((p=n.__k[d]=(p=t[d])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?P1(null,p,null,null,p):Array.isArray(p)?P1(dt,{children:p},null,null,null):p.__b>0?P1(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(g=w[d])===null||g&&p.key==g.key&&p.type===g.type)w[d]=void 0;else for(h=0;h<b;h++){if((g=w[h])&&p.key==g.key&&p.type===g.type){w[h]=void 0;break}g=null}g5(e,p,g=g||N1,i,o,a,s,l,c),m=p.__e,(h=p.ref)&&g.ref!=h&&(x||(x=[]),g.ref&&x.push(g.ref,null,p),x.push(h,p.__c||m,p)),m!=null?(v==null&&(v=m),typeof p.type=="function"&&p.__k===g.__k?p.__d=l=QM(p,l,e):l=XM(e,p,g,w,m,l),typeof n.type=="function"&&(n.__d=l)):l&&g.__e==l&&l.parentNode!=e&&(l=Up(g))}for(n.__e=v,d=b;d--;)w[d]!=null&&iN(w[d],w[d]);if(x)for(d=0;d<x.length;d++)rN(x[d],x[++d],x[++d])}function QM(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t=typeof r.type=="function"?QM(r,t,n):XM(n,r,r,i,r.__e,t));return t}function F1(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){F1(n,t)}):t.push(e)),t}function XM(e,t,n,r,i,o){var a,s,l;if(t.__d!==void 0)a=t.__d,t.__d=void 0;else if(n==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),a=null;else{for(s=o,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==i)break e;e.insertBefore(i,o),a=o}return a!==void 0?a:i.nextSibling}function iSe(e,t,n,r,i){var o;for(o in n)o==="children"||o==="key"||o in t||z1(e,o,null,n[o],r);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||z1(e,o,t[o],n[o],r)}function JM(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||rSe.test(t)?n:n+"px"}function z1(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||JM(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||JM(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?tN:eN,o):e.removeEventListener(t,o?tN:eN,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t.indexOf("-")==-1?e.removeAttribute(t):e.setAttribute(t,n))}}function eN(e){this.l[e.type+!1](qe.event?qe.event(e):e)}function tN(e){this.l[e.type+!0](qe.event?qe.event(e):e)}function g5(e,t,n,r,i,o,a,s,l){var c,d,h,g,p,m,v,x,w,b,S,$,E,T,k,A=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,s=t.__e=n.__e,t.__h=null,o=[s]),(c=qe.__b)&&c(t);try{e:if(typeof A=="function"){if(x=t.props,w=(c=A.contextType)&&r[c.__c],b=c?w?w.props.value:c.__:r,n.__c?v=(d=t.__c=n.__c).__=d.__E:("prototype"in A&&A.prototype.render?t.__c=d=new A(x,b):(t.__c=d=new ui(x,b),d.constructor=A,d.render=aSe),w&&w.sub(d),d.props=x,d.state||(d.state={}),d.context=b,d.__n=r,h=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),A.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Bs({},d.__s)),Bs(d.__s,A.getDerivedStateFromProps(x,d.__s))),g=d.props,p=d.state,h)A.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(A.getDerivedStateFromProps==null&&x!==g&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(x,b),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(x,d.__s,b)===!1||t.__v===n.__v){for(d.props=x,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(I){I&&(I.__=t)}),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&a.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(x,d.__s,b),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(g,p,m)})}if(d.context=b,d.props=x,d.__v=t,d.__P=e,$=qe.__r,E=0,"prototype"in A&&A.prototype.render){for(d.state=d.__s,d.__d=!1,$&&$(t),c=d.render(d.props,d.state,d.context),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[]}else do d.__d=!1,$&&$(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++E<25);d.state=d.__s,d.getChildContext!=null&&(r=Bs(Bs({},r),d.getChildContext())),h||d.getSnapshotBeforeUpdate==null||(m=d.getSnapshotBeforeUpdate(g,p)),k=c!=null&&c.type===dt&&c.key==null?c.props.children:c,KM(e,Array.isArray(k)?k:[k],t,n,r,i,o,a,s,l),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),v&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=oSe(n.__e,t,n,r,i,o,a,l);(c=qe.diffed)&&c(t)}catch(I){t.__v=null,(l||o!=null)&&(t.__e=s,t.__h=!!l,o[o.indexOf(s)]=null),qe.__e(I,t,n)}}function nN(e,t){qe.__c&&qe.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){qe.__e(r,n.__v)}})}function oSe(e,t,n,r,i,o,a,s){var l,c,d,h=n.props,g=t.props,p=t.type,m=0;if(p==="svg"&&(i=!0),o!=null){for(;m<o.length;m++)if((l=o[m])&&"setAttribute"in l==!!p&&(p?l.localName===p:l.nodeType===3)){e=l,o[m]=null;break}}if(e==null){if(p===null)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,g.is&&g),o=null,s=!1}if(p===null)h===g||s&&e.data===g||(e.data=g);else{if(o=o&&M1.call(e.childNodes),c=(h=n.props||N1).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(o!=null)for(h={},m=0;m<e.attributes.length;m++)h[e.attributes[m].name]=e.attributes[m].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(iSe(e,g,h,i,s),d)t.__k=[];else if(m=t.props.children,KM(e,Array.isArray(m)?m:[m],t,n,r,i&&p!=="foreignObject",o,a,o?o[0]:n.__k&&Up(n,0),s),o!=null)for(m=o.length;m--;)o[m]!=null&&qM(o[m]);s||("value"in g&&(m=g.value)!==void 0&&(m!==e.value||p==="progress"&&!m||p==="option"&&m!==h.value)&&z1(e,"value",m,h.value,!1),"checked"in g&&(m=g.checked)!==void 0&&m!==e.checked&&z1(e,"checked",m,h.checked,!1))}return e}function rN(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){qe.__e(r,n)}}function iN(e,t,n){var r,i;if(qe.unmount&&qe.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||rN(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){qe.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&iN(r[i],t,n||typeof e.type!="function");n||e.__e==null||qM(e.__e),e.__=e.__e=e.__d=void 0}function aSe(e,t,n){return this.constructor(e,n)}function jp(e,t,n){var r,i,o;qe.__&&qe.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],g5(t,e=(!r&&n||t).__k=P(dt,null,[e]),i||N1,N1,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?M1.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r),nN(o,e)}function sSe(e,t){var n={__c:t="__cC"+GM++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&i.some(h5)},this.sub=function(a){i.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){i.splice(i.indexOf(a),1),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}M1=YM.slice,qe={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},WM=0,ui.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Bs({},this.state),typeof e=="function"&&(e=e(Bs({},n),this.props)),e&&Bs(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),h5(this))},ui.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),h5(this))},ui.prototype.render=dt,Hp=[],L1.__r=0,GM=0;var Fo,m5,oN,aN=[],v5=[],sN=qe.__b,lN=qe.__r,uN=qe.diffed,cN=qe.__c,dN=qe.unmount;function lSe(){for(var e;e=aN.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(B1),e.__H.__h.forEach(y5),e.__H.__h=[]}catch(t){e.__H.__h=[],qe.__e(t,e.__v)}}qe.__b=function(e){Fo=null,sN&&sN(e)},qe.__r=function(e){lN&&lN(e);var t=(Fo=e.__c).__H;t&&(m5===Fo?(t.__h=[],Fo.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=v5,n.__N=n.i=void 0})):(t.__h.forEach(B1),t.__h.forEach(y5),t.__h=[])),m5=Fo},qe.diffed=function(e){uN&&uN(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(aN.push(t)!==1&&oN===qe.requestAnimationFrame||((oN=qe.requestAnimationFrame)||uSe)(lSe)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==v5&&(n.__=n.__V),n.i=void 0,n.__V=v5})),m5=Fo=null},qe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(B1),n.__h=n.__h.filter(function(r){return!r.__||y5(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],qe.__e(r,n.__v)}}),cN&&cN(e,t)},qe.unmount=function(e){dN&&dN(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{B1(r)}catch(i){t=i}}),n.__H=void 0,t&&qe.__e(t,n.__v))};var fN=typeof requestAnimationFrame=="function";function uSe(e){var t,n=function(){clearTimeout(r),fN&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);fN&&(t=requestAnimationFrame(n))}function B1(e){var t=Fo,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Fo=t}function y5(e){var t=Fo;e.__c=e.__(),Fo=t}function cSe(e,t){for(var n in t)e[n]=t[n];return e}function pN(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function hN(e){this.props=e}(hN.prototype=new ui).isPureReactComponent=!0,hN.prototype.shouldComponentUpdate=function(e,t){return pN(this.props,e)||pN(this.state,t)};var gN=qe.__b;qe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),gN&&gN(e)};var dSe=qe.__e;qe.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}dSe(e,t,n,r)};var mN=qe.unmount;function vN(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=cSe({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return vN(r,t,n)})),e}function yN(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return yN(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function b5(){this.__u=0,this.t=null,this.__b=null}function bN(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function H1(){this.u=null,this.o=null}qe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),mN&&mN(e)},(b5.prototype=new ui).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=bN(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=yN(c,c.__c.__P,c.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.t.pop();)d.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},b5.prototype.componentWillUnmount=function(){this.t=[]},b5.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=vN(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&P(dt,null,e.fallback);return i&&(i.__h=null),[P(dt,null,t.__a?null:e.children),i]};var wN=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function fSe(e){return this.getChildContext=function(){return e.context},e.children}function pSe(e){var t=this,n=e.i;t.componentWillUnmount=function(){jp(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),jp(P(fSe,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function hSe(e,t){var n=P(pSe,{__v:e,i:t});return n.containerInfo=t,n}(H1.prototype=new ui).__a=function(e){var t=this,n=bN(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),wN(t,e,r)):i()};n?n(o):o()}},H1.prototype.render=function(e){this.u=null,this.o=new Map;var t=F1(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},H1.prototype.componentDidUpdate=H1.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){wN(e,n,t)})};var gSe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,mSe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,vSe=typeof document<"u",ySe=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};ui.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ui.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var xN=qe.event;function bSe(){}function wSe(){return this.cancelBubble}function xSe(){return this.defaultPrevented}qe.event=function(e){return xN&&(e=xN(e)),e.persist=bSe,e.isPropagationStopped=wSe,e.isDefaultPrevented=xSe,e.nativeEvent=e};var SN={configurable:!0,get:function(){return this.class}},$N=qe.vnode;qe.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var o in r={},n){var a=n[o];vSe&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in n&&a==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!ySe(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&mSe.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():a===null&&(a=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o="oninputCapture")),r[o]=a)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=F1(n.children).forEach(function(s){s.props.selected=r.value.indexOf(s.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=F1(n.children).forEach(function(s){s.props.selected=r.multiple?r.defaultValue.indexOf(s.props.value)!=-1:r.defaultValue==s.props.value})),e.props=r,n.class!=n.className&&(SN.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",SN))}e.$$typeof=gSe,$N&&$N(e)};var CN=qe.__r;qe.__r=function(e){CN&&CN(e),e.__c};const EN=[],w5=new WeakMap;typeof document<"u"&&w5.set(document,!0);function Wp(e){e&&typeof document<"u"&&EN.push(TN(document.head,e))}function SSe(e){const t=e.getRootNode();if(!w5.get(t)){w5.set(t,!0);for(const n of EN)TN(t,n.innerText)}}function TN(e,t){const n=document.createElement("style"),r=$Se();return r&&(n.nonce=r),n.innerText=t,e.appendChild(n),n}let x5;function $Se(){return x5===void 0&&(x5=CSe()),x5}function CSe(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");return t&&t.nonce||""}class S5{constructor(t){this.drainedOption=t,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(t){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),t==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),t))}pause(t=""){let{pauseDepths:n}=this;n[t]=(n[t]||0)+1,this.clearTimeout()}resume(t="",n){let{pauseDepths:r}=this;t in r&&(n?delete r[t]:(r[t]-=1,r[t]<=0&&delete r[t]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function ESe(e){e.parentNode&&e.parentNode.removeChild(e)}function Aa(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(TSe(e,t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function TSe(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function kSe(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let i=0;i<n.length;i+=1){let o=n[i].querySelectorAll(t);for(let a=0;a<o.length;a+=1)r.push(o[a])}return r}const ASe=/(top|left|right|bottom|width|height)$/i;function _Se(e,t){for(let n in t)kN(e,n,t[n])}function kN(e,t,n){n==null?e.style[t]="":typeof n=="number"&&ASe.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function RSe(e){var t,n;return(n=(t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])!==null&&n!==void 0?n:e.target}let AN=0;function zo(){return AN+=1,"fc-dom-"+AN}function OSe(e,t){return n=>{let r=Aa(n.target,e);r&&t.call(r,n,r)}}function _N(e,t,n,r){let i=OSe(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function DSe(e,t,n,r){let i;return _N(e,"mouseover",t,(o,a)=>{if(a!==i){i=a,n(o,a);let s=l=>{i=null,r(l,a),a.removeEventListener("mouseleave",s)};a.addEventListener("mouseleave",s)}})}function RN(e){return Object.assign({onClick:e},ON(e))}function ON(e){return{tabIndex:0,onKeyDown(t){(t.key==="Enter"||t.key===" ")&&(e(t),t.preventDefault())}}}let DN=0;function nu(){return DN+=1,String(DN)}function ISe(e){let t=[],n=[],r,i;for(typeof e=="string"?n=e.split(/\s*,\s*/):typeof e=="function"?n=[e]:Array.isArray(e)&&(n=e),r=0;r<n.length;r+=1)i=n[r],typeof i=="string"?t.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&t.push({func:i});return t}function MSe(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=NSe(e,t,n[r]),i)return i;return 0}function NSe(e,t,n){return n.func?n.func(e,t):PSe(e[n.field],t[n.field])*(n.order||1)}function PSe(e,t){return!e&&!t?0:t==null?-1:e==null?1:typeof e=="string"||typeof t=="string"?String(e).localeCompare(String(t)):e-t}function Xc(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function Vp(e,t,n){return typeof e=="function"?e(...t):typeof e=="string"?t.reduce((r,i,o)=>r.replace("$"+o,i||""),e):n}function U1(e){return e%1===0}function LSe(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const IN=["years","months","days","milliseconds"],FSe=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function bt(e,t){return typeof e=="string"?zSe(e):typeof e=="object"&&e?MN(e):typeof e=="number"?MN({[t||"milliseconds"]:e}):null}function zSe(e){let t=FSe.exec(e);if(t){let n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*((t[3]?parseInt(t[3],10):0)*60*60*1e3+(t[4]?parseInt(t[4],10):0)*60*1e3+(t[5]?parseInt(t[5],10):0)*1e3+(t[6]?parseInt(t[6],10):0))}}return null}function MN(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:(e.hours||e.hour||0)*60*60*1e3+(e.minutes||e.minute||0)*60*1e3+(e.seconds||e.second||0)*1e3+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=n*7,t.specifiedWeeks=!0),t}function BSe(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function $5(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function HSe(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function USe(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function jSe(e){return Jc(e)/365}function WSe(e){return Jc(e)/30}function Jc(e){return co(e)/864e5}function co(e){return e.years*(365*864e5)+e.months*(30*864e5)+e.days*864e5+e.milliseconds}function C5(e,t){let n=null;for(let r=0;r<IN.length;r+=1){let i=IN[r];if(t[i]){let o=e[i]/t[i];if(!U1(o)||n!==null&&n!==o)return null;n=o}else if(e[i])return null}return n}function E5(e){let t=e.milliseconds;if(t){if(t%1e3!==0)return{unit:"millisecond",value:t};if(t%(1e3*60)!==0)return{unit:"second",value:t/1e3};if(t%(1e3*60*60)!==0)return{unit:"minute",value:t/(1e3*60)};if(t)return{unit:"hour",value:t/(1e3*60*60)}}return e.days?e.specifiedWeeks&&e.days%7===0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Hs(e,t,n){if(e===t)return!0;let r=e.length,i;if(r!==t.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(e[i],t[i]):e[i]===t[i]))return!1;return!0}const VSe=["sun","mon","tue","wed","thu","fri","sat"];function j1(e,t){let n=Ws(e);return n[2]+=t*7,Hr(n)}function vn(e,t){let n=Ws(e);return n[2]+=t,Hr(n)}function Us(e,t){let n=Ws(e);return n[6]+=t,Hr(n)}function NN(e,t){return js(e,t)/7}function js(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60*24)}function GSe(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60)}function YSe(e,t){return(t.valueOf()-e.valueOf())/(1e3*60)}function qSe(e,t){return(t.valueOf()-e.valueOf())/1e3}function ZSe(e,t){let n=Bt(e),r=Bt(t);return{years:0,months:0,days:Math.round(js(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function KSe(e,t){let n=W1(e,t);return n!==null&&n%7===0?n/7:null}function W1(e,t){return Vs(e)===Vs(t)?Math.round(js(e,t)):null}function Bt(e){return Hr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function QSe(e){return Hr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function XSe(e){return Hr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function JSe(e){return Hr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function e5e(e,t,n){let r=e.getUTCFullYear(),i=T5(e,r,t,n);if(i<1)return T5(e,r-1,t,n);let o=T5(e,r+1,t,n);return o>=1?Math.min(i,o):i}function T5(e,t,n,r){let i=Hr([t,0,1+t5e(t,n,r)]),o=Bt(e),a=Math.round(js(i,o));return Math.floor(a/7)+1}function t5e(e,t,n){let r=7+t-n;return-((7+Hr([e,0,r]).getUTCDay()-t)%7)+r-1}function PN(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function LN(e){return new Date(e[0],e[1]||0,e[2]==null?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Ws(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Hr(e){return e.length===1&&(e=e.concat([0])),new Date(Date.UTC(...e))}function FN(e){return!isNaN(e.valueOf())}function Vs(e){return e.getUTCHours()*1e3*60*60+e.getUTCMinutes()*1e3*60+e.getUTCSeconds()*1e3+e.getUTCMilliseconds()}function zN(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(t==null?r=r.replace("Z",""):t!==0&&(r=r.replace("Z",A5(t,!0)))),r}function Gp(e){return e.toISOString().replace(/T.*$/,"")}function k5(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function n5e(e){return Xc(e.getUTCHours(),2)+":"+Xc(e.getUTCMinutes(),2)+":"+Xc(e.getUTCSeconds(),2)}function A5(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?`${n+Xc(i,2)}:${Xc(o,2)}`:`GMT${n}${i}${o?`:${Xc(o,2)}`:""}`}function Le(e,t,n){let r,i;return function(...o){if(!r)i=e.apply(this,o);else if(!Hs(r,o)){n&&n(i);let a=e.apply(this,o);(!t||!t(a,i))&&(i=a)}return r=o,i}}function V1(e,t,n){let r,i;return o=>{if(!r)i=e.call(this,o);else if(!ci(r,o)){n&&n(i);let a=e.call(this,o);(!t||!t(a,i))&&(i=a)}return r=o,i}}const BN={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},G1={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Y1=/\s*([ap])\.?m\.?/i,r5e=/,/g,i5e=/\s+/g,o5e=/\u200e/g,a5e=/UTC|GMT/;class s5e{constructor(t){let n={},r={},i=0;for(let o in t)o in BN?(r[o]=t[o],i=Math.max(BN[o],i)):(n[o]=t[o],o in G1&&(i=Math.max(G1[o],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=Le(HN)}format(t,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(t)}formatRange(t,n,r,i){let{standardDateProps:o,extendedSettings:a}=this,s=p5e(t.marker,n.marker,r.calendarSystem);if(!s)return this.format(t,r);let l=s;l>1&&(o.year==="numeric"||o.year==="2-digit")&&(o.month==="numeric"||o.month==="2-digit")&&(o.day==="numeric"||o.day==="2-digit")&&(l=1);let c=this.format(t,r),d=this.format(n,r);if(c===d)return c;let h=h5e(o,l),g=HN(h,a,r),p=g(t),m=g(n),v=g5e(c,p,d,m),x=a.separator||i||r.defaultSeparator||"";return v?v.before+p+x+m+v.after:c+x+d}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function HN(e,t,n){let r=Object.keys(e).length;return r===1&&e.timeZoneName==="short"?i=>A5(i.timeZoneOffset):r===0&&t.week?i=>f5e(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,t.week):l5e(e,t,n)}function l5e(e,t,n){e=Object.assign({},e),t=Object.assign({},t),u5e(e,t),e.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,e),i;if(t.omitZeroMinute){let o=Object.assign({},e);delete o.minute,i=new Intl.DateTimeFormat(n.locale.codes,o)}return o=>{let{marker:a}=o,s;i&&!a.getUTCMinutes()?s=i:s=r;let l=s.format(a);return c5e(l,o,e,t,n)}}function u5e(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),e.timeZoneName==="long"&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function c5e(e,t,n,r,i){return e=e.replace(o5e,""),n.timeZoneName==="short"&&(e=d5e(e,i.timeZone==="UTC"||t.timeZoneOffset==null?"UTC":A5(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(r5e,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),r.meridiem===!1?e=e.replace(Y1,"").trim():r.meridiem==="narrow"?e=e.replace(Y1,(o,a)=>a.toLocaleLowerCase()):r.meridiem==="short"?e=e.replace(Y1,(o,a)=>`${a.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(e=e.replace(Y1,o=>o.toLocaleLowerCase())),e=e.replace(i5e," "),e=e.trim(),e}function d5e(e,t){let n=!1;return e=e.replace(a5e,()=>(n=!0,t)),n||(e+=` ${t}`),e}function f5e(e,t,n,r,i){let o=[];return i==="long"?o.push(n):(i==="short"||i==="narrow")&&o.push(t),(i==="long"||i==="short")&&o.push(" "),o.push(r.simpleNumberFormat.format(e)),r.options.direction==="rtl"&&o.reverse(),o.join("")}function p5e(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:Vs(e)!==Vs(t)?1:0}function h5e(e,t){let n={};for(let r in e)(!(r in G1)||G1[r]<=t)&&(n[r]=e[r]);return n}function g5e(e,t,n,r){let i=0;for(;i<e.length;){let o=e.indexOf(t,i);if(o===-1)break;let a=e.substr(0,o);i=o+t.length;let s=e.substr(i),l=0;for(;l<n.length;){let c=n.indexOf(r,l);if(c===-1)break;let d=n.substr(0,c);l=c+r.length;let h=n.substr(l);if(a===d&&s===h)return{before:a,after:s}}}return null}function UN(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function q1(e,t,n,r){let i=UN(e,n.calendarSystem),o=t?UN(t,n.calendarSystem):null;return{date:i,start:i,end:o,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class m5e{constructor(t){this.cmdStr=t}format(t,n,r){return n.cmdFormatter(this.cmdStr,q1(t,null,n,r))}formatRange(t,n,r,i){return r.cmdFormatter(this.cmdStr,q1(t,n,r,i))}}class v5e{constructor(t){this.func=t}format(t,n,r){return this.func(q1(t,null,n,r))}formatRange(t,n,r,i){return this.func(q1(t,n,r,i))}}function Rt(e){return typeof e=="object"&&e?new s5e(e):typeof e=="string"?new m5e(e):typeof e=="function"?new v5e(e):null}const jN={navLinkDayClick:re,navLinkWeekClick:re,duration:bt,bootstrapFontAwesome:re,buttonIcons:re,customButtons:re,defaultAllDayEventDuration:bt,defaultTimedEventDuration:bt,nextDayThreshold:bt,scrollTime:bt,scrollTimeReset:Boolean,slotMinTime:bt,slotMaxTime:bt,dayPopoverFormat:Rt,slotDuration:bt,snapDuration:bt,headerToolbar:re,footerToolbar:re,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Rt,dayHeaderClassNames:re,dayHeaderContent:re,dayHeaderDidMount:re,dayHeaderWillUnmount:re,dayCellClassNames:re,dayCellContent:re,dayCellDidMount:re,dayCellWillUnmount:re,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:re,weekNumbers:Boolean,weekNumberClassNames:re,weekNumberContent:re,weekNumberDidMount:re,weekNumberWillUnmount:re,editable:Boolean,viewClassNames:re,viewDidMount:re,viewWillUnmount:re,nowIndicator:Boolean,nowIndicatorClassNames:re,nowIndicatorContent:re,nowIndicatorDidMount:re,nowIndicatorWillUnmount:re,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:re,locale:re,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:re,eventOrder:ISe,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:re,contentHeight:re,direction:String,weekNumberFormat:Rt,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:re,initialDate:re,now:re,eventDataTransform:re,stickyHeaderDates:re,stickyFooterScrollbar:re,viewHeight:re,defaultAllDay:Boolean,eventSourceFailure:re,eventSourceSuccess:re,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:re,eventConstraint:re,eventAllow:re,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:re,eventContent:re,eventDidMount:re,eventWillUnmount:re,selectConstraint:re,selectOverlap:re,selectAllow:re,droppable:Boolean,unselectCancel:String,slotLabelFormat:re,slotLaneClassNames:re,slotLaneContent:re,slotLaneDidMount:re,slotLaneWillUnmount:re,slotLabelClassNames:re,slotLabelContent:re,slotLabelDidMount:re,slotLabelWillUnmount:re,dayMaxEvents:re,dayMaxEventRows:re,dayMinWidth:Number,slotLabelInterval:bt,allDayText:String,allDayClassNames:re,allDayContent:re,allDayDidMount:re,allDayWillUnmount:re,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Rt,rerenderDelay:Number,moreLinkText:re,moreLinkHint:re,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:re,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:bt,hiddenDays:re,fixedWeekCount:Boolean,validRange:re,visibleRange:re,titleFormat:re,eventInteractive:Boolean,noEventsText:String,viewHint:re,navLinkHint:re,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:re,moreLinkClassNames:re,moreLinkContent:re,moreLinkDidMount:re,moreLinkWillUnmount:re,monthStartFormat:Rt,handleCustomRendering:re,customRenderingMetaMap:re,customRenderingReplacesEl:Boolean},Yp={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},WN={datesSet:re,eventsSet:re,eventAdd:re,eventChange:re,eventRemove:re,windowResize:re,eventClick:re,eventMouseEnter:re,eventMouseLeave:re,select:re,unselect:re,loading:re,_unmount:re,_beforeprint:re,_afterprint:re,_noEventDrop:re,_noEventResize:re,_resize:re,_scrollRequest:re},VN={buttonText:re,buttonHints:re,views:re,plugins:re,initialEvents:re,events:re,eventSources:re},ru={headerToolbar:iu,footerToolbar:iu,buttonText:iu,buttonHints:iu,buttonIcons:iu,dateIncrement:iu,plugins:Z1,events:Z1,eventSources:Z1,resources:Z1};function iu(e,t){return typeof e=="object"&&typeof t=="object"&&e&&t?ci(e,t):e===t}function Z1(e,t){return Array.isArray(e)&&Array.isArray(t)?Hs(e,t):e===t}const y5e={type:String,component:re,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:re,usesMinMaxTime:Boolean,classNames:re,content:re,didMount:re,willUnmount:re};function _5(e){return O5(e,ru)}function R5(e,t){let n={},r={};for(let i in t)i in e&&(n[i]=t[i](e[i]));for(let i in e)i in t||(r[i]=e[i]);return{refined:n,extra:r}}function re(e){return e}const{hasOwnProperty:K1}=Object.prototype;function O5(e,t){let n={};if(t){for(let r in t)if(t[r]===iu){let i=[];for(let o=e.length-1;o>=0;o-=1){let a=e[o][r];if(typeof a=="object"&&a)i.unshift(a);else if(a!==void 0){n[r]=a;break}}i.length&&(n[r]=O5(i))}}for(let r=e.length-1;r>=0;r-=1){let i=e[r];for(let o in i)o in n||(n[o]=i[o])}return n}function ed(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ou(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function GN(e){let t={};for(let n of e)t[n]=!0;return t}function D5(e){let t=[];for(let n in e)t.push(e[n]);return t}function ci(e,t){if(e===t)return!0;for(let n in e)if(K1.call(e,n)&&!(n in t))return!1;for(let n in t)if(K1.call(t,n)&&e[n]!==t[n])return!1;return!0}const b5e=/^on[A-Z]/;function w5e(e,t){const n=I5(e,t);for(let r of n)if(!b5e.test(r))return!1;return!0}function I5(e,t){let n=[];for(let r in e)K1.call(e,r)&&(r in t||n.push(r));for(let r in t)K1.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function M5(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e&&x5e(e[r],t[r],n[r])))return!1;for(let r in e)if(!(r in t))return!1;return!0}function x5e(e,t,n){return e===t||n===!0?!0:n?n(e,t):!1}function S5e(e,t=0,n,r=1){let i=[];n==null&&(n=Object.keys(e).length);for(let o=t;o<n;o+=r){let a=e[o];a!==void 0&&i.push(a)}return i}let YN={};function $5e(e,t){YN[e]=t}function C5e(e){return new YN[e]}class E5e{getMarkerYear(t){return t.getUTCFullYear()}getMarkerMonth(t){return t.getUTCMonth()}getMarkerDay(t){return t.getUTCDate()}arrayToMarker(t){return Hr(t)}markerToArray(t){return Ws(t)}}$5e("gregory",E5e);const T5e=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function k5e(e){let t=T5e.exec(e);if(t){let n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?Number(`0.${t[12]}`)*1e3:0));if(FN(n)){let r=null;return t[13]&&(r=(t[15]==="-"?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}class A5e{constructor(t){let n=this.timeZone=t.timeZone,r=n!=="local"&&n!=="UTC";t.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new t.namedTimeZoneImpl(n)),this.canComputeOffset=Boolean(!r||this.namedTimeZoneImpl),this.calendarSystem=C5e(t.calendarSystem),this.locale=t.locale,this.weekDow=t.locale.week.dow,this.weekDoy=t.locale.week.doy,t.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof t.firstDay=="number"&&(this.weekDow=t.firstDay),typeof t.weekNumberCalculation=="function"&&(this.weekNumberFunc=t.weekNumberCalculation),this.weekText=t.weekText!=null?t.weekText:t.locale.options.weekText,this.weekTextLong=(t.weekTextLong!=null?t.weekTextLong:t.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=t.cmdFormatter,this.defaultSeparator=t.defaultSeparator}createMarker(t){let n=this.createMarkerMeta(t);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Hr(PN(new Date))}createMarkerMeta(t){if(typeof t=="string")return this.parse(t);let n=null;return typeof t=="number"?n=this.timestampToMarker(t):t instanceof Date?(t=t.valueOf(),isNaN(t)||(n=this.timestampToMarker(t))):Array.isArray(t)&&(n=Hr(t)),n===null||!FN(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(t){let n=k5e(t);if(n===null)return null;let{marker:r}=n,i=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):i=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:i}}getYear(t){return this.calendarSystem.getMarkerYear(t)}getMonth(t){return this.calendarSystem.getMarkerMonth(t)}add(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(t,n){let r=this.calendarSystem.markerToArray(t);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(t,n){let{calendarSystem:r}=this;return Vs(t)===Vs(n)&&r.getMarkerDay(t)===r.getMarkerDay(n)&&r.getMarkerMonth(t)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(t):null}diffWholeMonths(t,n){let{calendarSystem:r}=this;return Vs(t)===Vs(n)&&r.getMarkerDay(t)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(t)+(r.getMarkerYear(n)-r.getMarkerYear(t))*12:null}greatestWholeUnit(t,n){let r=this.diffWholeYears(t,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(t,n),r!==null?{unit:"month",value:r}:(r=KSe(t,n),r!==null?{unit:"week",value:r}:(r=W1(t,n),r!==null?{unit:"day",value:r}:(r=GSe(t,n),U1(r)?{unit:"hour",value:r}:(r=YSe(t,n),U1(r)?{unit:"minute",value:r}:(r=qSe(t,n),U1(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-t.valueOf()}))))))}countDurationsBetween(t,n,r){let i;return r.years&&(i=this.diffWholeYears(t,n),i!==null)?i/jSe(r):r.months&&(i=this.diffWholeMonths(t,n),i!==null)?i/WSe(r):r.days&&(i=W1(t,n),i!==null)?i/Jc(r):(n.valueOf()-t.valueOf())/co(r)}startOf(t,n){return n==="year"?this.startOfYear(t):n==="month"?this.startOfMonth(t):n==="week"?this.startOfWeek(t):n==="day"?Bt(t):n==="hour"?QSe(t):n==="minute"?XSe(t):n==="second"?JSe(t):null}startOfYear(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t)])}startOfMonth(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t)])}startOfWeek(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t),t.getUTCDate()-(t.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(t){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(t)):e5e(t,this.weekDow,this.weekDoy)}format(t,n,r={}){return n.format({marker:t,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(t)},this)}formatRange(t,n,r,i={}){return i.isEndExclusive&&(n=Us(n,-1)),r.formatRange({marker:t,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(t)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(t,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(t)),zN(t,r,n.omitTime)}timestampToMarker(t){return this.timeZone==="local"?Hr(PN(new Date(t))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(t):Hr(this.namedTimeZoneImpl.timestampToArray(t))}offsetForMarker(t){return this.timeZone==="local"?-LN(Ws(t)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Ws(t)):null}toDate(t,n){return this.timeZone==="local"?LN(Ws(t)):this.timeZone==="UTC"?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-this.namedTimeZoneImpl.offsetForArray(Ws(t))*1e3*60):new Date(t.valueOf()-(n||0))}}class qp{constructor(t){this.iconOverrideOption&&this.setIconOverride(t[this.iconOverrideOption])}setIconOverride(t){let n,r;if(typeof t=="object"&&t){n=Object.assign({},this.iconClasses);for(r in t)n[r]=this.applyIconOverridePrefix(t[r]);this.iconClasses=n}else t===!1&&(this.iconClasses={})}applyIconOverridePrefix(t){let n=this.iconOverridePrefix;return n&&t.indexOf(n)!==0&&(t=n+t),t}getClass(t){return this.classes[t]||""}getIconClass(t,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[t]||this.iconClasses[t]:r=this.iconClasses[t],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(t){let n;return this.iconOverrideCustomButtonOption&&(n=t[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}qp.prototype.classes={},qp.prototype.iconClasses={},qp.prototype.baseIconClass="",qp.prototype.iconOverridePrefix="";function qN(e){e();let t=qe.debounceRendering,n=[];function r(i){n.push(i)}for(qe.debounceRendering=r,jp(P(_5e,{}),document.createElement("div"));n.length;)n.shift()();qe.debounceRendering=t}class _5e extends ui{render(){return P("div",{})}componentDidMount(){this.setState({})}}function ZN(e){let t=sSe(e),n=t.Provider;return t.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let o=[];this.shouldComponentUpdate=a=>{this.props.value!==a.value&&o.forEach(s=>{s.context=a.value,s.forceUpdate()})},this.sub=a=>{o.push(a);let s=a.componentWillUnmount;a.componentWillUnmount=()=>{o.splice(o.indexOf(a),1),s&&s.call(a)}}}return i},t}class R5e{constructor(t,n,r,i){this.execFunc=t,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=o=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},o),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(t){t&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const _a=ZN({});function O5e(e,t,n,r,i,o,a,s,l,c,d,h,g){return{dateEnv:i,options:n,pluginHooks:a,emitter:c,dispatch:s,getCurrentData:l,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:o,isRtl:n.direction==="rtl",addResizeHandler(p){c.on("_resize",p)},removeResizeHandler(p){c.off("_resize",p)},createScrollResponder(p){return new R5e(p,c,bt(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:h,unregisterInteractiveComponent:g}}class au extends ui{shouldComponentUpdate(t,n){return this.debug&&console.log(I5(t,this.props),I5(n,this.state)),!M5(this.props,t,this.propEquality)||!M5(this.state,n,this.stateEquality)}safeSetState(t){M5(this.state,Object.assign(Object.assign({},this.state),t),this.stateEquality)||this.setState(t)}}au.addPropsEquality=D5e,au.addStateEquality=I5e,au.contextType=_a,au.prototype.propEquality={},au.prototype.stateEquality={};class wt extends au{}wt.contextType=_a;function D5e(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function I5e(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function Bo(e,t){typeof e=="function"?e(t):e&&(e.current=t)}class N5 extends wt{constructor(){super(...arguments),this.id=nu(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=t=>{this.props.elRef&&Bo(this.props.elRef,t)}}render(){const{props:t,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:o,renderProps:a}=t,s=QN(t);let l=!1,c,d=[],h;if(i!=null){const g=typeof i=="function"?i(a,P):i;if(g===!0)l=!0;else if(r.handleCustomRendering)h=g;else{const p=typeof g=="object";p&&"html"in g?s.dangerouslySetInnerHTML={__html:g.html}:p&&"domNodes"in g?d=Array.prototype.slice.call(g.domNodes):c=g}}else l=!KN(t.generatorName,r);return l&&o&&(c=o(a)),this.queuedDomNodes=d,this.currentGeneratorMeta=h,P(t.elTag,s,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(t){var n;const{props:r,context:i}=this,{handleCustomRendering:o,customRenderingMetaMap:a}=i.options;if(o){const s=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:a==null?void 0:a[r.generatorName];s&&o(Object.assign({id:this.id,isActive:t,containerEl:this.base,reportNewContainerEl:this.handleEl,generatorMeta:s},r))}}applyQueueudDomNodes(){const{queuedDomNodes:t,currentDomNodes:n}=this,r=this.base;if(!Hs(t,n)){n.forEach(ESe);for(let i of t)r.appendChild(i);this.currentDomNodes=t}}}N5.addPropsEquality({elClasses:Hs,elStyle:ci,elAttrs:w5e,renderProps:ci});function KN(e,t){var n;return Boolean(t.handleCustomRendering&&e&&((n=t.customRenderingMetaMap)===null||n===void 0?void 0:n[e]))}function QN(e,t){const n=Object.assign(Object.assign({},e.elAttrs),{ref:e.elRef});return(e.elClasses||t)&&(n.className=(e.elClasses||[]).concat(t||[]).concat(n.className||[]).filter(Boolean).join(" ")),e.elStyle&&(n.style=e.elStyle),n}const XN=ZN(0);class pr extends ui{constructor(){super(...arguments),this.InnerContent=M5e.bind(void 0,this)}render(){const{props:t}=this,n=N5e(t.classNameGenerator,t.renderProps);if(t.children){const r=QN(t,n),i=t.children(this.InnerContent,t.renderProps,r);return t.elTag?P(t.elTag,r,i):i}else return P(N5,Object.assign(Object.assign({},t),{elTag:t.elTag||"div",elClasses:(t.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var t,n;(n=(t=this.props).didMount)===null||n===void 0||n.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}componentWillUnmount(){var t,n;(n=(t=this.props).willUnmount)===null||n===void 0||n.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}}pr.contextType=XN;function M5e(e,t){const n=e.props;return P(N5,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function N5e(e,t){const n=typeof e=="function"?e(t):e||[];return typeof n=="string"?[n]:n}class td extends wt{render(){let{props:t,context:n}=this,{options:r}=n,i={view:n.viewApi};return P(pr,Object.assign({},t,{elTag:t.elTag||"div",elClasses:[...JN(t.viewSpec),...t.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>t.children)}}function JN(e){return[`fc-${e.type}-view`,"fc-view"]}function P5e(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function eP(e,t){let n=[],{start:r}=t,i,o;for(e.sort(L5e),i=0;i<e.length;i+=1)o=e[i],o.start>r&&n.push({start:r,end:o.start}),o.end>r&&(r=o.end);return r<t.end&&n.push({start:r,end:t.end}),n}function L5e(e,t){return e.start.valueOf()-t.start.valueOf()}function Ho(e,t){let{start:n,end:r}=e,i=null;return t.start!==null&&(n===null?n=t.start:n=new Date(Math.max(n.valueOf(),t.start.valueOf()))),t.end!=null&&(r===null?r=t.end:r=new Date(Math.min(r.valueOf(),t.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function F5e(e,t){return(e.end===null||t.start===null||e.end>t.start)&&(e.start===null||t.end===null||e.start<t.end)}function Ra(e,t){return(e.start===null||t>=e.start)&&(e.end===null||t<e.end)}function z5e(e,t){return t.start!=null&&e<t.start?t.start:t.end!=null&&e>=t.end?new Date(t.end.valueOf()-1):e}function tP(e){let t=Math.floor(js(e.start,e.end))||1,n=Bt(e.start),r=vn(n,t);return{start:n,end:r}}function P5(e,t=bt(0)){let n=null,r=null;if(e.end){r=Bt(e.end);let i=e.end.valueOf()-r.valueOf();i&&i>=co(t)&&(r=vn(r,1))}return e.start&&(n=Bt(e.start),r&&r<=n&&(r=vn(n,1))),{start:n,end:r}}function B5e(e){let t=P5(e);return js(t.start,t.end)>1}function Q1(e,t,n,r){return r==="year"?bt(n.diffWholeYears(e,t),"year"):r==="month"?bt(n.diffWholeMonths(e,t),"month"):ZSe(e,t)}function H5e(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function U5e(e,t){let n=e.initialDate;return n!=null?t.createMarker(n):Zp(e.now,t)}function Zp(e,t){return typeof e=="function"&&(e=e()),e==null?t.createNowMarker():t.createMarker(e)}class L5{constructor(t){this.props=t,this.nowDate=Zp(t.nowInput,t.dateEnv),this.initHiddenDays()}buildPrev(t,n,r){let{dateEnv:i}=this.props,o=i.subtract(i.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(o,-1,r)}buildNext(t,n,r){let{dateEnv:i}=this.props,o=i.add(i.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(o,1,r)}build(t,n,r=!0){let{props:i}=this,o,a,s,l,c,d;return o=this.buildValidRange(),o=this.trimHiddenDays(o),r&&(t=z5e(t,o)),a=this.buildCurrentRangeInfo(t,n),s=/^(year|month|week|day)$/.test(a.unit),l=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,s),l=this.trimHiddenDays(l),c=l,i.showNonCurrentDates||(c=Ho(c,a.range)),c=this.adjustActiveRange(c),c=Ho(c,o),d=F5e(a.range,o),Ra(l,t)||(t=l.start),{currentDate:t,validRange:o,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:s,activeRange:c,renderRange:l,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:d,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let t=this.props.validRangeInput,n=typeof t=="function"?t.call(this.props.calendarApi,this.nowDate):t;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(t,n){let{props:r}=this,i=null,o=null,a=null,s;return r.duration?(i=r.duration,o=r.durationUnit,a=this.buildRangeFromDuration(t,n,i,o)):(s=this.props.dayCount)?(o="day",a=this.buildRangeFromDayCount(t,n,s)):(a=this.buildCustomVisibleRange(t))?o=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(i=this.getFallbackDuration(),o=E5(i).unit,a=this.buildRangeFromDuration(t,n,i,o)),{duration:i,unit:o,range:a}}getFallbackDuration(){return bt({day:1})}adjustActiveRange(t){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:o}=this.props,{start:a,end:s}=t;return r&&(Jc(i)<0&&(a=Bt(a),a=n.add(a,i)),Jc(o)>1&&(s=Bt(s),s=vn(s,-1),s=n.add(s,o))),{start:a,end:s}}buildRangeFromDuration(t,n,r,i){let{dateEnv:o,dateAlignment:a}=this.props,s,l,c;if(!a){let{dateIncrement:h}=this.props;h&&co(h)<co(r)?a=E5(h).unit:a=i}Jc(r)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,n),s=Bt(s));function d(){s=o.startOf(t,a),l=o.add(s,r),c={start:s,end:l}}return d(),this.trimHiddenDays(c)||(t=this.skipHiddenDays(t,n),d()),c}buildRangeFromDayCount(t,n,r){let{dateEnv:i,dateAlignment:o}=this.props,a=0,s=t,l;o&&(s=i.startOf(s,o)),s=Bt(s),s=this.skipHiddenDays(s,n),l=s;do l=vn(l,1),this.isHiddenDay(l)||(a+=1);while(a<r);return{start:s,end:l}}buildCustomVisibleRange(t){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(t)):r,o=this.refineRange(i);return o&&(o.start==null||o.end==null)?null:o}buildRenderRange(t,n,r){return t}buildDateIncrement(t){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?bt(1,r):t||bt({days:1}))}refineRange(t){if(t){let n=P5e(t,this.props.dateEnv);return n&&(n=P5(n)),n}return null}initHiddenDays(){let t=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&t.push(0,6),i=0;i<7;i+=1)(n[i]=t.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(t){let{start:n,end:r}=t;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(t){return t instanceof Date&&(t=t.getUTCDay()),this.isHiddenDayHash[t]}skipHiddenDays(t,n=1,r=!1){for(;this.isHiddenDayHash[(t.getUTCDay()+(r?n:0)+7)%7];)t=vn(t,n);return t}}function F5(e,t,n,r){return{instanceId:nu(),defId:e,range:t,forcedStartTzo:n??null,forcedEndTzo:r??null}}function j5e(e,t,n,r){for(let i=0;i<r.length;i+=1){let o=r[i].parse(e,n);if(o){let{allDay:a}=e;return a==null&&(a=t,a==null&&(a=o.allDayGuess,a==null&&(a=!1))),{allDay:a,duration:o.duration,typeData:o.typeData,typeId:i}}}return null}function Kp(e,t,n){let{dateEnv:r,pluginHooks:i,options:o}=n,{defs:a,instances:s}=e;s=ed(s,l=>!a[l.defId].recurringDef);for(let l in a){let c=a[l];if(c.recurringDef){let{duration:d}=c.recurringDef;d||(d=c.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);let h=W5e(c,d,t,r,i.recurringTypes);for(let g of h){let p=F5(l,{start:g,end:r.add(g,d)});s[p.instanceId]=p}}}return{defs:a,instances:s}}function W5e(e,t,n,r,i){let a=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(Bt)),a}const X1={id:String,groupId:String,title:String,url:String,interactive:Boolean},nP={start:re,end:re,date:re,allDay:Boolean},V5e=Object.assign(Object.assign(Object.assign({},X1),nP),{extendedProps:re});function rP(e,t,n,r,i=z5(n),o,a){let{refined:s,extra:l}=iP(e,n,i),c=Y5e(t,n),d=j5e(s,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let g=B5(s,l,t?t.sourceId:"",d.allDay,Boolean(d.duration),n,o);return g.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:g,instance:null}}let h=G5e(s,c,n,r);if(h){let g=B5(s,l,t?t.sourceId:"",h.allDay,h.hasEnd,n,o),p=F5(g.defId,h.range,h.forcedStartTzo,h.forcedEndTzo);return a&&g.publicId&&a[g.publicId]&&(p.instanceId=a[g.publicId]),{def:g,instance:p}}return null}function iP(e,t,n=z5(t)){return R5(e,n)}function z5(e){return Object.assign(Object.assign(Object.assign({},J1),V5e),e.pluginHooks.eventRefiners)}function B5(e,t,n,r,i,o,a){let s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(a&&e.id?a[e.id]:"")||nu(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:ev(e,o),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let l of o.pluginHooks.eventDefMemberAdders)Object.assign(s,l(e));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function G5e(e,t,n,r){let{allDay:i}=e,o,a=null,s=!1,l,c=null,d=e.start!=null?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(d),o)a=o.marker;else if(!r)return null;return e.end!=null&&(l=n.dateEnv.createMarkerMeta(e.end)),i==null&&(t!=null?i=t:i=(!o||o.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),i&&a&&(a=Bt(a)),l&&(c=l.marker,i&&(c=Bt(c)),a&&c<=a&&(c=null)),c?s=!0:r||(s=n.options.forceEventDuration||!1,c=n.dateEnv.add(a,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:s,range:{start:a,end:c},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function Y5e(e,t){let n=null;return e&&(n=e.defaultAllDay),n==null&&(n=t.options.defaultAllDay),n}function Qp(e,t,n,r,i,o){let a=Oa(),s=z5(n);for(let l of e){let c=rP(l,t,n,r,s,i,o);c&&H5(c,a)}return a}function H5(e,t=Oa()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function q5e(e,t){let n=e.instances[t];if(n){let r=e.defs[n.defId],i=j5(e,o=>Z5e(r,o));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return Oa()}function Z5e(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function Oa(){return{defs:{},instances:{}}}function U5(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function j5(e,t){let n=ed(e.defs,t),r=ed(e.instances,i=>n[i.defId]);return{defs:n,instances:r}}function K5e(e,t){let{defs:n,instances:r}=e,i={},o={};for(let a in n)t.defs[a]||(i[a]=n[a]);for(let a in r)!t.instances[a]&&i[r[a].defId]&&(o[a]=r[a]);return{defs:i,instances:o}}function Q5e(e,t){return Array.isArray(e)?Qp(e,null,t,!0):typeof e=="object"&&e?Qp([e],null,t,!0):e!=null?String(e):null}function oP(e){return Array.isArray(e)?e:typeof e=="string"?e.split(/\s+/):[]}const J1={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:re,overlap:re,allow:re,className:oP,classNames:oP,color:String,backgroundColor:String,borderColor:String,textColor:String},X5e={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function ev(e,t){let n=Q5e(e.constraint,t);return{display:e.display||null,startEditable:e.startEditable!=null?e.startEditable:e.editable,durationEditable:e.durationEditable!=null?e.durationEditable:e.editable,constraints:n!=null?[n]:[],overlap:e.overlap!=null?e.overlap:null,allows:e.allow!=null?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function aP(e){return e.reduce(J5e,X5e)}function J5e(e,t){return{display:t.display!=null?t.display:e.display,startEditable:t.startEditable!=null?t.startEditable:e.startEditable,durationEditable:t.durationEditable!=null?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:typeof t.overlap=="boolean"?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const e$e={id:String,defaultAllDay:Boolean,url:String,format:String,events:re,eventDataTransform:re,success:re,failure:re};function sP(e,t,n=lP(t)){let r;if(typeof e=="string"?r={url:e}:typeof e=="function"||Array.isArray(e)?r={events:e}:typeof e=="object"&&e&&(r=e),r){let{refined:i,extra:o}=R5(r,n),a=t$e(i,t);if(a)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:nu(),sourceDefId:a.sourceDefId,meta:a.meta,ui:ev(i,t),extendedProps:o}}return null}function lP(e){return Object.assign(Object.assign(Object.assign({},J1),e$e),e.pluginHooks.eventSourceRefiners)}function t$e(e,t){let n=t.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let o=n[r].parseMeta(e);if(o)return{sourceDefId:r,meta:o}}return null}function n$e(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return r$e(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return i$e(e,n[t.sourceId],t.rawEvents,i);case"ADD_EVENTS":return o$e(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return U5(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Kp(e,r.activeRange,i):e;case"REMOVE_EVENTS":return K5e(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return dP(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return j5(e,o=>!o.sourceId);case"REMOVE_ALL_EVENTS":return Oa();default:return e}}function r$e(e,t,n,r,i,o){if(t&&n===t.latestFetchId){let a=Qp(uP(i,t,o),t,o);return r&&(a=Kp(a,r,o)),U5(dP(e,t.sourceId),a)}return e}function i$e(e,t,n,r){const{defIdMap:i,instanceIdMap:o}=s$e(e);let a=Qp(uP(n,t,r),t,r,!1,i,o);return t.fetchRange&&(a=Kp(a,t.fetchRange,r)),a}function uP(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=cP(e,i)),r&&(e=cP(e,r)),e}function cP(e,t){let n;if(!t)n=e;else{n=[];for(let r of e){let i=t(r);i?n.push(i):i==null&&n.push(r)}}return n}function o$e(e,t,n,r){return n&&(t=Kp(t,n,r)),U5(e,t)}function a$e(e,t,n){let{defs:r}=e,i=ou(e.instances,o=>{let a=r[o.defId];return a.allDay||a.recurringDef?o:Object.assign(Object.assign({},o),{range:{start:n.createMarker(t.toDate(o.range.start,o.forcedStartTzo)),end:n.createMarker(t.toDate(o.range.end,o.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:o.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:o.forcedEndTzo})});return{defs:r,instances:i}}function dP(e,t){return j5(e,n=>n.sourceId!==t)}function s$e(e){const{defs:t,instances:n}=e,r={},i={};for(let o in t){const a=t[o],{publicId:s}=a;s&&(r[s]=o)}for(let o in n){const a=n[o],s=t[a.defId],{publicId:l}=s;l&&(i[l]=o)}return{defIdMap:r,instanceIdMap:i}}class l$e{constructor(){this.handlers={},this.thisContext=null}setThisContext(t){this.thisContext=t}setOptions(t){this.options=t}on(t,n){u$e(this.handlers,t,n)}off(t,n){c$e(this.handlers,t,n)}trigger(t,...n){let r=this.handlers[t]||[],i=this.options&&this.options[t],o=[].concat(i||[],r);for(let a of o)a.apply(this.thisContext,n)}hasHandlers(t){return Boolean(this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t])}}function u$e(e,t,n){(e[t]||(e[t]=[])).push(n)}function c$e(e,t,n){n?e[t]&&(e[t]=e[t].filter(r=>r!==n)):delete e[t]}const d$e={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function f$e(e,t){return Qp(p$e(e),null,t)}function p$e(e){let t;return e===!0?t=[{}]:Array.isArray(e)?t=e.filter(n=>n.daysOfWeek):typeof e=="object"&&e?t=[e]:t=[],t=t.map(n=>Object.assign(Object.assign({},d$e),n)),t}function h$e(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},m$e(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function g$e(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function m$e(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,_$e(e,t.dateEnv)),n}function fP(e,t,n){let{dateEnv:r,options:i}=n,o=t;return e?(o=Bt(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function v$e(e,t,n,r){let i=gP(e.defs,t),o=Oa();for(let a in e.defs){let s=e.defs[a];o.defs[a]=y$e(s,i[a],n,r)}for(let a in e.instances){let s=e.instances[a],l=o.defs[s.defId];o.instances[a]=b$e(s,l,i[s.defId],n,r)}return o}function y$e(e,t,n,r){let i=n.standardProps||{};i.hasEnd==null&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let o=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(o.extendedProps=Object.assign(Object.assign({},o.extendedProps),n.extendedProps));for(let a of r.pluginHooks.eventDefMutationAppliers)a(o,n,r);return!o.hasEnd&&r.options.forceEventDuration&&(o.hasEnd=!0),o}function b$e(e,t,n,r,i){let{dateEnv:o}=i,a=r.standardProps&&r.standardProps.allDay===!0,s=r.standardProps&&r.standardProps.hasEnd===!1,l=Object.assign({},e);return a&&(l.range=tP(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:o.add(l.range.start,r.datesDelta),end:o.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:o.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:o.add(l.range.end,r.endDelta)}),s&&(l.range={start:l.range.start,end:fP(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:Bt(l.range.start),end:Bt(l.range.end)}),l.range.end<l.range.start&&(l.range.end=fP(t.allDay,l.range.start,i)),l}class nd{constructor(t,n){this.context=t,this.internalEventSource=n}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class Pi{constructor(t,n,r){this._context=t,this._def=n,this._instance=r||null}setProp(t,n){if(t in nP)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(t==="id")n=X1[t](n),this.mutate({standardProps:{publicId:n}});else if(t in X1)n=X1[t](n),this.mutate({standardProps:{[t]:n}});else if(t in J1){let r=J1[t](n);t==="color"?r={backgroundColor:n,borderColor:n}:t==="editable"?r={startEditable:n,durationEditable:n}:r={[t]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${t}'. Use setExtendedProp instead.`)}setExtendedProp(t,n){this.mutate({extendedProps:{[t]:n}})}setStart(t,n={}){let{dateEnv:r}=this._context,i=r.createMarker(t);if(i&&this._instance){let o=this._instance.range,a=Q1(o.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}}setEnd(t,n={}){let{dateEnv:r}=this._context,i;if(!(t!=null&&(i=r.createMarker(t),!i))&&this._instance)if(i){let o=Q1(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(t,n,r={}){let{dateEnv:i}=this._context,o={allDay:r.allDay},a=i.createMarker(t),s;if(a&&!(n!=null&&(s=i.createMarker(n),!s))&&this._instance){let l=this._instance.range;r.allDay===!0&&(l=tP(l));let c=Q1(l.start,a,i,r.granularity);if(s){let d=Q1(l.end,s,i,r.granularity);BSe(c,d)?this.mutate({datesDelta:c,standardProps:o}):this.mutate({startDelta:c,endDelta:d,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:c,standardProps:o})}}moveStart(t){let n=bt(t);n&&this.mutate({startDelta:n})}moveEnd(t){let n=bt(t);n&&this.mutate({endDelta:n})}moveDates(t){let n=bt(t);n&&this.mutate({datesDelta:n})}setAllDay(t,n={}){let r={allDay:t},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==t&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(t){let{dateEnv:n}=this._context,r=this._instance,i=Rt(t);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(t){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:o}=i.getCurrentData(),a=q5e(o,n.instanceId);a=v$e(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,i);let l=new Pi(i,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:a}),i.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:W5(a,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:o})}})}}remove(){let t=this._context,n=pP(this);t.dispatch({type:"REMOVE_EVENTS",eventStore:n}),t.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:t}=this._def;return t?new nd(this._context,this._context.getCurrentData().eventSources[t]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let t=this._instance;return t?this._context.dateEnv.formatIso(t.range.start,{omitTime:this._def.allDay,forcedTzo:t.forcedStartTzo}):""}get endStr(){let t=this._instance;return t&&this._def.hasEnd?this._context.dateEnv.formatIso(t.range.end,{omitTime:this._def.allDay,forcedTzo:t.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(t={}){let n=this._def,{ui:r}=n,{startStr:i,endStr:o}=this,a={allDay:n.allDay};return n.title&&(a.title=n.title),i&&(a.start=i),o&&(a.end=o),n.publicId&&(a.id=n.publicId),n.groupId&&(a.groupId=n.groupId),n.url&&(a.url=n.url),r.display&&r.display!=="auto"&&(a.display=r.display),t.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?a.color=r.backgroundColor:(r.backgroundColor&&(a.backgroundColor=r.backgroundColor),r.borderColor&&(a.borderColor=r.borderColor)),r.textColor&&(a.textColor=r.textColor),r.classNames.length&&(a.classNames=r.classNames),Object.keys(n.extendedProps).length&&(t.collapseExtendedProps?Object.assign(a,n.extendedProps):a.extendedProps=n.extendedProps),a}toJSON(){return this.toPlainObject()}}function pP(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function W5(e,t,n){let{defs:r,instances:i}=e,o=[],a=n?n.instanceId:"";for(let s in i){let l=i[s],c=r[l.defId];l.instanceId!==a&&o.push(new Pi(t,c,l))}return o}function V5(e,t,n,r){let i={},o={},a={},s=[],l=[],c=gP(e.defs,t);for(let d in e.defs){let h=e.defs[d];c[h.defId].display==="inverse-background"&&(h.groupId?(i[h.groupId]=[],a[h.groupId]||(a[h.groupId]=h)):o[d]=[])}for(let d in e.instances){let h=e.instances[d],g=e.defs[h.defId],p=c[g.defId],m=h.range,v=!g.allDay&&r?P5(m,r):m,x=Ho(v,n);x&&(p.display==="inverse-background"?g.groupId?i[g.groupId].push(x):o[h.defId].push(x):p.display!=="none"&&(p.display==="background"?s:l).push({def:g,ui:p,instance:h,range:x,isStart:v.start&&v.start.valueOf()===x.start.valueOf(),isEnd:v.end&&v.end.valueOf()===x.end.valueOf()}))}for(let d in i){let h=i[d],g=eP(h,n);for(let p of g){let m=a[d],v=c[m.defId];s.push({def:m,ui:v,instance:null,range:p,isStart:!1,isEnd:!1})}}for(let d in o){let h=o[d],g=eP(h,n);for(let p of g)s.push({def:e.defs[d],ui:c[d],instance:null,range:p,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function w$e(e){return e.ui.display==="background"||e.ui.display==="inverse-background"}function hP(e,t){e.fcSeg=t}function G5(e){return e.fcSeg||e.parentNode.fcSeg||null}function gP(e,t){return ou(e,n=>mP(n,t))}function mP(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),aP(n)}function tv(e,t){let n=e.map(x$e);return n.sort((r,i)=>MSe(r,i,t)),n.map(r=>r._seg)}function x$e(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,o=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:o,duration:o-i,allDay:Number(n.allDay),_seg:e})}function S$e(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:o}=e.eventRange,a=o.startEditable;for(let s of r)a=s(a,i,o,t);return a}function $$e(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function C$e(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function rd(e,t,n,r,i,o,a){let{dateEnv:s,options:l}=n,{displayEventTime:c,displayEventEnd:d}=l,h=e.eventRange.def,g=e.eventRange.instance;c==null&&(c=r!==!1),d==null&&(d=i!==!1);let p=g.range.start,m=g.range.end,v=o||e.start||e.eventRange.range.start,x=a||e.end||e.eventRange.range.end,w=Bt(p).valueOf()===Bt(v).valueOf(),b=Bt(Us(m,-1)).valueOf()===Bt(Us(x,-1)).valueOf();return c&&!h.allDay&&(w||b)?(v=w?p:v,x=b?m:x,d&&h.hasEnd?s.formatRange(v,x,t,{forcedStartTzo:o?null:g.forcedStartTzo,forcedEndTzo:a?null:g.forcedEndTzo}):s.format(v,t,{forcedTzo:o?null:g.forcedStartTzo})):""}function Ur(e,t,n){let r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Ra(t,r.start)}}function E$e(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function Y5(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function nv(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:o,options:a}=t,{eventInteractive:s}=a;return s==null&&(s=n.interactive,s==null&&(s=Boolean(o.hasHandlers("eventClick")))),s?ON(l=>{o.trigger("eventClick",{el:l.target,event:new Pi(t,n,r),jsEvent:l,view:t.viewApi})}):{}}const T$e={start:re,end:re,allDay:Boolean};function k$e(e,t,n){let r=A$e(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=t.add(i.start,n)}return r}function A$e(e,t){let{refined:n,extra:r}=R5(e,T$e),i=n.start?t.createMarkerMeta(n.start):null,o=n.end?t.createMarkerMeta(n.end):null,{allDay:a}=n;return a==null&&(a=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:o?o.marker:null},allDay:a},r)}function _$e(e,t){return Object.assign(Object.assign({},yP(e.range,t,e.allDay)),{allDay:e.allDay})}function vP(e,t,n){return Object.assign(Object.assign({},yP(e,t,n)),{timeZone:t.timeZone})}function yP(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function R$e(e,t,n){let r=iP({editable:!1},n),i=B5(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:mP(i,t),instance:F5(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function O$e(e,t,n){let r=!1,i=function(s){r||(r=!0,t(s))},o=function(s){r||(r=!0,n(s))},a=e(i,o);a&&typeof a.then=="function"&&a.then(i,o)}class bP extends Error{constructor(t,n){super(t),this.response=n}}function D$e(e,t,n){e=e.toUpperCase();const r={method:e};return e==="GET"?t+=(t.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then(i=>{if(i.ok)return i.json().then(o=>[o,i],()=>{throw new bP("Failure parsing JSON",i)});throw new bP("Request failed",i)})}let q5;function wP(){return q5==null&&(q5=I$e()),q5}function I$e(){if(typeof document>"u")return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let n=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),n}class M$e extends wt{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:t}=this,{options:n}=t,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",o=!i&&n.height!=null?n.height:"",a=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,t.theme.getClass("root")];return wP()||a.push("fc-liquid-hack"),t.children(a,o,i,r)}componentDidMount(){let{emitter:t}=this.props;t.on("_beforeprint",this.handleBeforePrint),t.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:t}=this.props;t.off("_beforeprint",this.handleBeforePrint),t.off("_afterprint",this.handleAfterPrint)}}class xP{constructor(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}destroy(){}}function N$e(e,t){return{component:e,el:t.el,useEventCenter:t.useEventCenter!=null?t.useEventCenter:!0,isHitComboAllowed:t.isHitComboAllowed||null}}const SP={};class P$e{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(t){this.currentDataManager.dispatch(t)}get view(){return this.getCurrentData().viewApi}batchRendering(t){t()}updateSize(){this.trigger("_resize",!0)}setOption(t,n){this.dispatch({type:"SET_OPTION",optionName:t,rawOptionValue:n})}getOption(t){return this.currentDataManager.currentCalendarOptionsInput[t]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(t,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[t]?r.emitter.on(t,n):console.warn(`Unknown listener name '${t}'`)}off(t,n){this.currentDataManager.emitter.off(t,n)}trigger(t,...n){this.currentDataManager.emitter.trigger(t,...n)}changeView(t,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t})})}zoomTo(t,n){let r=this.getCurrentData(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:t}):this.dispatch({type:"CHANGE_DATE",dateMarker:t})}getUnitViewSpec(t){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),o,a;for(let s in n)i.push(s);for(o=0;o<i.length;o+=1)if(a=n[i[o]],a&&a.singleUnit===t)return a;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,-1)})}nextYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,1)})}today(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Zp(t.calendarOptions.now,t.dateEnv)})}gotoDate(t){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(t)})}incrementDate(t){let n=this.getCurrentData(),r=bt(t);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let t=this.getCurrentData();return t.dateEnv.toDate(t.currentDate)}formatDate(t,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(t),Rt(n))}formatRange(t,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(t),i.createMarker(n),Rt(r),r)}formatIso(t,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(t),{omitTime:n})}select(t,n){let r;n==null?t.start!=null?r=t:r={start:t,end:null}:r={start:t,end:n};let i=this.getCurrentData(),o=k$e(r,i.dateEnv,bt({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),h$e(o,null,i))}unselect(t){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),g$e(t,n))}addEvent(t,n){if(t instanceof Pi){let a=t._def,s=t._instance;return this.getCurrentData().eventStore.defs[a.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:H5({def:a,instance:s})}),this.triggerEventAdd(t)),t}let r=this.getCurrentData(),i;if(n instanceof nd)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=D5(r.eventSources));else if(n!=null){let a=this.getEventSourceById(n);if(!a)return console.warn(`Could not find an event source with ID "${n}"`),null;i=a.internalEventSource}let o=rP(t,i,r,!1);if(o){let a=new Pi(r,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:H5(o)}),this.triggerEventAdd(a),a}return null}triggerEventAdd(t){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:t,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:pP(t)})}})}getEventById(t){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;t=String(t);for(let o in r){let a=r[o];if(a.publicId===t){if(a.recurringDef)return new Pi(n,a,null);for(let s in i){let l=i[s];if(l.defId===a.defId)return new Pi(n,a,l)}}}return null}getEvents(){let t=this.getCurrentData();return W5(t.eventStore,t)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let t=this.getCurrentData(),n=t.eventSources,r=[];for(let i in n)r.push(new nd(t,n[i]));return r}getEventSourceById(t){let n=this.getCurrentData(),r=n.eventSources;t=String(t);for(let i in r)if(r[i].publicId===t)return new nd(n,r[i]);return null}addEventSource(t){let n=this.getCurrentData();if(t instanceof nd)return n.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;let r=sP(t,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new nd(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(t){let n=bt(t);n&&this.trigger("_scrollRequest",{time:n})}}function L$e(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}const Z5=Oa();class F$e{constructor(){this.getKeysForEventDefs=Le(this._getKeysForEventDefs),this.splitDateSelection=Le(this._splitDateSpan),this.splitEventStore=Le(this._splitEventStore),this.splitIndividualUi=Le(this._splitIndividualUi),this.splitEventDrag=Le(this._splitInteraction),this.splitEventResize=Le(this._splitInteraction),this.eventUiBuilders={}}splitProps(t){let n=this.getKeyInfo(t),r=this.getKeysForEventDefs(t.eventStore),i=this.splitDateSelection(t.dateSelection),o=this.splitIndividualUi(t.eventUiBases,r),a=this.splitEventStore(t.eventStore,r),s=this.splitEventDrag(t.eventDrag),l=this.splitEventResize(t.eventResize),c={};this.eventUiBuilders=ou(n,(d,h)=>this.eventUiBuilders[h]||Le(z$e));for(let d in n){let h=n[d],g=a[d]||Z5,p=this.eventUiBuilders[d];c[d]={businessHours:h.businessHours||t.businessHours,dateSelection:i[d]||null,eventStore:g,eventUiBases:p(t.eventUiBases[""],h.ui,o[d]),eventSelection:g.instances[t.eventSelection]?t.eventSelection:"",eventDrag:s[d]||null,eventResize:l[d]||null}}return c}_splitDateSpan(t){let n={};if(t){let r=this.getKeysForDateSpan(t);for(let i of r)n[i]=t}return n}_getKeysForEventDefs(t){return ou(t.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(t,n){let{defs:r,instances:i}=t,o={};for(let a in r)for(let s of n[a])o[s]||(o[s]=Oa()),o[s].defs[a]=r[a];for(let a in i){let s=i[a];for(let l of n[s.defId])o[l]&&(o[l].instances[a]=s)}return o}_splitIndividualUi(t,n){let r={};for(let i in t)if(i)for(let o of n[i])r[o]||(r[o]={}),r[o][i]=t[i];return r}_splitInteraction(t){let n={};if(t){let r=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),i=this._getKeysForEventDefs(t.mutatedEvents),o=this._splitEventStore(t.mutatedEvents,i),a=s=>{n[s]||(n[s]={affectedEvents:r[s]||Z5,mutatedEvents:o[s]||Z5,isEvent:t.isEvent})};for(let s in r)a(s);for(let s in o)a(s)}return n}}function z$e(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":aP(r)};return n&&Object.assign(i,n),i}function K5(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!Ra(r.activeRange,e)),isOther:Boolean(r&&!Ra(r.currentRange,e)),isToday:Boolean(t&&Ra(t,e)),isPast:Boolean(n?e<n:t?e<t.start:!1),isFuture:Boolean(n?e>n:t?e>=t.end:!1)}}function rv(e,t){let n=["fc-day",`fc-day-${VSe[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}const B$e=Rt({year:"numeric",month:"long",day:"numeric"}),H$e=Rt({week:"long"});function Gs(e,t,n="day",r=!0){const{dateEnv:i,options:o,calendarApi:a}=e;let s=i.format(t,n==="week"?H$e:B$e);if(o.navLinks){let l=i.toDate(t);const c=d=>{let h=n==="day"?o.navLinkDayClick:n==="week"?o.navLinkWeekClick:null;typeof h=="function"?h.call(a,i.toDate(t),d):(typeof h=="string"&&(n=h),a.zoomTo(t,n))};return Object.assign({title:Vp(o.navLinkHint,[s,l],s),"data-navlink":""},r?RN(c):{onClick:c})}return{"aria-label":s}}let Q5;function U$e(){return Q5||(Q5=j$e()),Q5}function j$e(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=W$e(e);return document.body.removeChild(e),t}function W$e(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function V$e(e){let t=G$e(e),n=e.getBoundingClientRect();for(let r of t){let i=L$e(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function G$e(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}class Uo{constructor(t,n,r,i){this.els=n;let o=this.originClientRect=t.getBoundingClientRect();r&&this.buildElHorizontals(o.left),i&&this.buildElVerticals(o.top)}buildElHorizontals(t){let n=[],r=[];for(let i of this.els){let o=i.getBoundingClientRect();n.push(o.left-t),r.push(o.right-t)}this.lefts=n,this.rights=r}buildElVerticals(t){let n=[],r=[];for(let i of this.els){let o=i.getBoundingClientRect();n.push(o.top-t),r.push(o.bottom-t)}this.tops=n,this.bottoms=r}leftToIndex(t){let{lefts:n,rights:r}=this,i=n.length,o;for(o=0;o<i;o+=1)if(t>=n[o]&&t<r[o])return o}topToIndex(t){let{tops:n,bottoms:r}=this,i=n.length,o;for(o=0;o<i;o+=1)if(t>=n[o]&&t<r[o])return o}getWidth(t){return this.rights[t]-this.lefts[t]}getHeight(t){return this.bottoms[t]-this.tops[t]}similarTo(t){return iv(this.tops||[],t.tops||[])&&iv(this.bottoms||[],t.bottoms||[])&&iv(this.lefts||[],t.lefts||[])&&iv(this.rights||[],t.rights||[])}}function iv(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class hr extends wt{constructor(){super(...arguments),this.uid=nu()}prepareHits(){}queryHit(t,n,r,i){return null}isValidSegDownEl(t){return!this.props.eventDrag&&!this.props.eventResize&&!Aa(t,".fc-event-mirror")}isValidDateDownEl(t){return!Aa(t,".fc-event:not(.fc-bg-event)")&&!Aa(t,".fc-more-link")&&!Aa(t,"a[data-navlink]")&&!Aa(t,".fc-popover")}}class X5{constructor(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(t){let n=[];for(let r of t)this.insertEntry(r,n);return n}insertEntry(t,n){let r=this.findInsertion(t);return this.isInsertionValid(r,t)?(this.insertEntryAt(t,r),1):this.handleInvalidInsertion(r,t,n)}isInsertionValid(t,n){return(this.maxCoord===-1||t.levelCoord+n.thickness<=this.maxCoord)&&(this.maxStackCnt===-1||t.stackCnt<this.maxStackCnt)}handleInvalidInsertion(t,n,r){return this.allowReslicing&&t.touchingEntry?this.splitEntry(n,t.touchingEntry,r):(r.push(n),0)}splitEntry(t,n,r){let i=0,o=[],a=t.span,s=n.span;return a.start<s.start&&(i+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:a.start,end:s.start}},o)),a.end>s.end&&(i+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:s.end,end:a.end}},o)),i?(r.push({index:t.index,thickness:t.thickness,span:ov(s,a)},...o),i):(r.push(t),0)}insertEntryAt(t,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(e$(i,n.level,n.levelCoord),e$(r,n.level,[t])):e$(r[n.level],n.lateral,t),this.stackCnts[jo(t)]=n.stackCnt}findInsertion(t){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:o}=this,a=n.length,s=0,l=-1,c=-1,d=null,h=0;for(let m=0;m<a;m+=1){let v=n[m];if(!i&&v>=s+t.thickness)break;let x=r[m],w,b=t$(x,t.span.start,J5),S=b[0]+b[1];for(;(w=x[S])&&w.span.start<t.span.end;){let $=v+w.thickness;$>s&&(s=$,d=w,l=m,c=S),$===s&&(h=Math.max(h,o[jo(w)]+1)),S+=1}}let g=0;if(d)for(g=l+1;g<a&&n[g]<s;)g+=1;let p=-1;return g<a&&n[g]===s&&(p=t$(r[g],t.span.end,J5)[0]),{touchingLevel:l,touchingLateral:c,touchingEntry:d,stackCnt:h,levelCoord:s,level:g,lateral:p}}toRects(){let{entriesByLevel:t,levelCoords:n}=this,r=t.length,i=[];for(let o=0;o<r;o+=1){let a=t[o],s=n[o];for(let l of a)i.push(Object.assign(Object.assign({},l),{levelCoord:s}))}return i}}function J5(e){return e.span.end}function jo(e){return e.index+":"+e.span.start}function Y$e(e){let t=[];for(let n of e){let r=[],i={span:n.span,entries:[n]};for(let o of t)ov(o.span,i.span)?i={entries:o.entries.concat(i.entries),span:q$e(o.span,i.span)}:r.push(o);r.push(i),t=r}return t}function q$e(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function ov(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function e$(e,t,n){e.splice(t,0,n)}function t$(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){let o=Math.floor(r+(i-r)/2),a=n(e[o]);if(t<a)i=o;else if(t>a)r=o+1;else return[o,1]}return[r,0]}function Z$e(e,t){return!e||t>10?Rt({weekday:"short"}):t>1?Rt({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Rt({weekday:"long"})}const $P="fc-col-header-cell";function CP(e){return e.text}class K$e extends wt{render(){let{dateEnv:t,options:n,theme:r,viewApi:i}=this.context,{props:o}=this,{date:a,dateProfile:s}=o,l=K5(a,o.todayRange,null,s),c=[$P].concat(rv(l,r)),d=t.format(a,o.dayHeaderFormat),h=!l.isDisabled&&o.colCnt>1?Gs(this.context,a):{},g=Object.assign(Object.assign(Object.assign({date:t.toDate(a),view:i},o.extraRenderProps),{text:d}),l);return P(pr,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:o.colSpan,"data-date":l.isDisabled?void 0:Gp(a)},o.extraDataAttrs),renderProps:g,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:CP,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},p=>P("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&P(p,{elTag:"a",elAttrs:h,elClasses:["fc-col-header-cell-cushion",o.isSticky&&"fc-sticky"]})))}}const Q$e=Rt({weekday:"long"});class X$e extends wt{render(){let{props:t}=this,{dateEnv:n,theme:r,viewApi:i,options:o}=this.context,a=vn(new Date(2592e5),t.dow),s={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(a,t.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:a},s),{view:i}),t.extraRenderProps),{text:l});return P(pr,{elTag:"th",elClasses:[$P,...rv(s,r),...t.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:t.colSpan},t.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:CP,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},d=>P("div",{className:"fc-scrollgrid-sync-inner"},P(d,{elTag:"a",elClasses:["fc-col-header-cell-cushion",t.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(a,Q$e)}})))}}class su extends ui{constructor(t,n){super(t,n),this.initialNowDate=Zp(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:t,state:n}=this;return t.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(t){t.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:t,context:n}=this,r=Us(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,t.unit),o=n.dateEnv.add(i,bt(1,t.unit)),a=o.valueOf()-r.valueOf();return a=Math.min(1e3*60*60*24,a),{currentState:{nowDate:i,todayRange:EP(i)},nextState:{nowDate:o,todayRange:EP(o)},waitMs:a}}setTimeout(){let{nextState:t,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(t,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}su.contextType=_a;function EP(e){let t=Bt(e),n=vn(t,1);return{start:t,end:n}}class n$ extends wt{constructor(){super(...arguments),this.createDayHeaderFormatter=Le(J$e)}render(){let{context:t}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:o}=this.props,a=this.createDayHeaderFormatter(t.options.dayHeaderFormat,i,n.length);return P(su,{unit:"day"},(s,l)=>P("tr",{role:"row"},o&&o("day"),n.map(c=>i?P(K$e,{key:c.toISOString(),date:c,dateProfile:r,todayRange:l,colCnt:n.length,dayHeaderFormat:a}):P(X$e,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:a}))))}}function J$e(e,t,n){return e||Z$e(t,n)}class r${constructor(t,n){let r=t.start,{end:i}=t,o=[],a=[],s=-1;for(;r<i;)n.isHiddenDay(r)?o.push(s+.5):(s+=1,o.push(s),a.push(r)),r=vn(r,1);this.dates=a,this.indices=o,this.cnt=a.length}sliceRange(t){let n=this.getDateDayIndex(t.start),r=this.getDateDayIndex(vn(t.end,-1)),i=Math.max(0,n),o=Math.min(this.cnt-1,r);return i=Math.ceil(i),o=Math.floor(o),i<=o?{firstIndex:i,lastIndex:o,isStart:n===i,isEnd:r===o}:null}getDateDayIndex(t){let{indices:n}=this,r=Math.floor(js(this.dates[0],t));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class i${constructor(t,n){let{dates:r}=t,i,o,a;if(n){for(o=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==o;i+=1);a=Math.ceil(r.length/i)}else a=1,i=r.length;this.rowCnt=a,this.colCnt=i,this.daySeries=t,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let t=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let i=0;i<this.colCnt;i+=1)r.push(this.buildCell(n,i));t.push(r)}return t}buildCell(t,n){let r=this.daySeries.dates[t*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let t=[];for(let n=0;n<this.colCnt;n+=1)t.push(this.cells[0][n].date);return t}sliceRange(t){let{colCnt:n}=this,r=this.daySeries.sliceRange(t),i=[];if(r){let{firstIndex:o,lastIndex:a}=r,s=o;for(;s<=a;){let l=Math.floor(s/n),c=Math.min((l+1)*n,a+1);i.push({row:l,firstCol:s%n,lastCol:(c-1)%n,isStart:r.isStart&&s===o,isEnd:r.isEnd&&c-1===a}),s=c}}return i}}class o${constructor(){this.sliceBusinessHours=Le(this._sliceBusinessHours),this.sliceDateSelection=Le(this._sliceDateSpan),this.sliceEventStore=Le(this._sliceEventStore),this.sliceEventDrag=Le(this._sliceInteraction),this.sliceEventResize=Le(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(t,n,r,i,...o){let{eventUiBases:a}=t,s=this.sliceEventStore(t.eventStore,a,n,r,...o);return{dateSelectionSegs:this.sliceDateSelection(t.dateSelection,n,r,a,i,...o),businessHourSegs:this.sliceBusinessHours(t.businessHours,n,r,i,...o),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(t.eventDrag,a,n,r,...o),eventResize:this.sliceEventResize(t.eventResize,a,n,r,...o),eventSelection:t.eventSelection}}sliceNowDate(t,n,r,i,...o){return this._sliceDateSpan({range:{start:t,end:Us(t,1)},allDay:!1},n,r,{},i,...o)}_sliceBusinessHours(t,n,r,i,...o){return t?this._sliceEventStore(Kp(t,av(n,Boolean(r)),i),{},n,r,...o).bg:[]}_sliceEventStore(t,n,r,i,...o){if(t){let a=V5(t,n,av(r,Boolean(i)),i);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}}_sliceInteraction(t,n,r,i,...o){if(!t)return null;let a=V5(t.mutatedEvents,n,av(r,Boolean(i)),i);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:t.affectedEvents.instances,isEvent:t.isEvent}}_sliceDateSpan(t,n,r,i,o,...a){if(!t)return[];let s=av(n,Boolean(r)),l=Ho(t.range,s);if(l){t=Object.assign(Object.assign({},t),{range:l});let c=R$e(t,i,o),d=this.sliceRange(t.range,...a);for(let h of d)h.eventRange=c;return d}return[]}sliceEventRanges(t,n){let r=[];for(let i of t)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(t,n){let r=t.range;this.forceDayIfListItem&&t.ui.display==="list-item"&&(r={start:r.start,end:vn(r.start,1)});let i=this.sliceRange(r,...n);for(let o of i)o.eventRange=t,o.isStart=t.isStart&&o.isStart,o.isEnd=t.isEnd&&o.isEnd;return i}}function av(e,t){let n=e.activeRange;return t?n:{start:Us(n.start,e.slotMinTime.milliseconds),end:Us(n.end,e.slotMaxTime.milliseconds-864e5)}}const sv=/^(visible|hidden)$/;class TP extends wt{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,Bo(this.props.elRef,t)}}render(){let{props:t}=this,{liquid:n,liquidIsAbsolute:r}=t,i=n&&r,o=["fc-scroller"];return n&&(r?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),P("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:t.overflowX,overflowY:t.overflowY,left:i&&-(t.overcomeLeft||0)||"",right:i&&-(t.overcomeRight||0)||"",bottom:i&&-(t.overcomeBottom||0)||"",marginLeft:!i&&-(t.overcomeLeft||0)||"",marginRight:!i&&-(t.overcomeRight||0)||"",marginBottom:!i&&-(t.overcomeBottom||0)||"",maxHeight:t.maxHeight||""}},t.children)}needsXScrolling(){if(sv.test(this.props.overflowX))return!1;let{el:t}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=t;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(sv.test(this.props.overflowY))return!1;let{el:t}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=t;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return sv.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return sv.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class jr{constructor(t){this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:o}=this,a=!1,s=!1;n!==null?(a=r in o,o[r]=n,i[r]=(i[r]||0)+1,s=!0):(i[r]-=1,i[r]||(delete o[r],delete this.callbackMap[r],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(r)),s&&this.masterCallback(n,String(r)))}}createRef(t){let n=this.callbackMap[t];return n||(n=this.callbackMap[t]=r=>{this.handleValue(r,String(t))}),n}collect(t,n,r){return S5e(this.currentMap,t,n,r)}getAll(){return D5(this.currentMap)}}function e4e(e){let t=kSe(e,".fc-scrollgrid-shrink"),n=0;for(let r of t)n=Math.max(n,LSe(r));return Math.ceil(n)}function kP(e,t){return e.liquid&&t.liquid}function t4e(e,t){return t.maxHeight!=null||kP(e,t)}function n4e(e,t,n,r){let{expandRows:i}=n;return typeof t.content=="function"?t.content(n):P("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,P(r?"thead":"tbody",{role:"presentation"},typeof t.rowContent=="function"?t.rowContent(n):t.rowContent))}function r4e(e,t){return Hs(e,t,ci)}function i4e(e,t){let n=[];for(let r of e){let i=r.span||1;for(let o=0;o<i;o+=1)n.push(P("col",{style:{width:r.width==="shrink"?o4e(t):r.width||"",minWidth:r.minWidth||""}}))}return P("colgroup",{},...n)}function o4e(e){return e??4}function a4e(e){for(let t of e)if(t.width==="shrink")return!0;return!1}function s4e(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function l4e(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&e.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function a$(e){return P("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function lv(e){let{stickyHeaderDates:t}=e;return(t==null||t==="auto")&&(t=e.height==="auto"||e.viewHeight==="auto"),t}function AP(e){let{stickyFooterScrollbar:t}=e;return(t==null||t==="auto")&&(t=e.height==="auto"||e.viewHeight==="auto"),t}class s$ extends wt{constructor(){super(...arguments),this.processCols=Le(t=>t,r4e),this.renderMicroColGroup=Le(i4e),this.scrollerRefs=new jr,this.scrollerElRefs=new jr(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:t,state:n,context:r}=this,i=t.sections||[],o=this.processCols(t.cols),a=this.renderMicroColGroup(o,n.shrinkWidth),s=s4e(t.liquid,r);t.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");let l=i.length,c=0,d,h=[],g=[],p=[];for(;c<l&&(d=i[c]).type==="header";)h.push(this.renderSection(d,a,!0)),c+=1;for(;c<l&&(d=i[c]).type==="body";)g.push(this.renderSection(d,a,!1)),c+=1;for(;c<l&&(d=i[c]).type==="footer";)p.push(this.renderSection(d,a,!0)),c+=1;let m=!wP();const v={role:"rowgroup"};return P("table",{role:"grid",className:s.join(" "),style:{height:t.height}},Boolean(!m&&h.length)&&P("thead",v,...h),Boolean(!m&&g.length)&&P("tbody",v,...g),Boolean(!m&&p.length)&&P("tfoot",v,...p),m&&P("tbody",v,...h,...g,...p))}renderSection(t,n,r){return"outerContent"in t?P(dt,{key:t.key},t.outerContent):P("tr",{key:t.key,role:"presentation",className:l4e(t,this.props.liquid).join(" ")},this.renderChunkTd(t,n,t.chunk,r))}renderChunkTd(t,n,r,i){if("outerContent"in r)return r.outerContent;let{props:o}=this,{forceYScrollbars:a,scrollerClientWidths:s,scrollerClientHeights:l}=this.state,c=t4e(o,t),d=kP(o,t),h=o.liquid?a?"scroll":c?"auto":"hidden":"visible",g=t.key,p=n4e(t,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!o.collapsibleWidth&&s[g]!==void 0?s[g]:null,clientHeight:l[g]!==void 0?l[g]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return P(i?"th":"td",{ref:r.elRef,role:"presentation"},P("div",{className:`fc-scroller-harness${d?" fc-scroller-harness-liquid":""}`},P(TP,{ref:this.scrollerRefs.createRef(g),elRef:this.scrollerElRefs.createRef(g),overflowY:h,overflowX:o.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:d,liquidIsAbsolute:!0},p)))}_handleScrollerEl(t,n){let r=u4e(this.props.sections,n);r&&Bo(r.chunk.scrollerElRef,t)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return a4e(this.props.cols)?e4e(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let t=U$e(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,o={},a={};for(let s in n.currentMap){let l=n.currentMap[s];if(l&&l.needsYScrolling()){i=!0;break}}for(let s of this.props.sections){let l=s.key,c=r.currentMap[l];if(c){let d=c.parentNode;o[l]=Math.floor(d.getBoundingClientRect().width-(i?t.y:0)),a[l]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:o,scrollerClientHeights:a}}}s$.addStateEquality({scrollerClientWidths:ci,scrollerClientHeights:ci});function u4e(e,t){for(let n of e)if(n.key===t)return n;return null}class Xp extends wt{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,t&&hP(t,this.props.seg)}}render(){const{props:t,context:n}=this,{options:r}=n,{seg:i}=t,{eventRange:o}=i,{ui:a}=o,s={event:new Pi(n,o.def,o.instance),view:n.viewApi,timeText:t.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!t.disableDragging&&S$e(i,n),isStartResizable:!t.disableResizing&&$$e(i,n),isEndResizable:!t.disableResizing&&C$e(i),isMirror:Boolean(t.isDragging||t.isResizing||t.isDateSelecting),isStart:Boolean(i.isStart),isEnd:Boolean(i.isEnd),isPast:Boolean(t.isPast),isFuture:Boolean(t.isFuture),isToday:Boolean(t.isToday),isSelected:Boolean(t.isSelected),isDragging:Boolean(t.isDragging),isResizing:Boolean(t.isResizing)};return P(pr,Object.assign({},t,{elRef:this.handleEl,elClasses:[...E$e(s),...i.eventRange.ui.classNames,...t.elClasses||[]],renderProps:s,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:t.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(t){this.el&&this.props.seg!==t.seg&&hP(this.el,this.props.seg)}}class l$ extends wt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,{ui:o}=i.eventRange,a=r.eventTimeFormat||t.defaultTimeFormat,s=rd(i,a,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return P(Xp,Object.assign({},t,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:nv(i,n),defaultGenerator:c4e,timeText:s}),(l,c)=>P(dt,null,P(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:c.textColor}}),Boolean(c.isStartResizable)&&P("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(c.isEndResizable)&&P("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function c4e(e){return P("div",{className:"fc-event-main-frame"},e.timeText&&P("div",{className:"fc-event-time"},e.timeText),P("div",{className:"fc-event-title-container"},P("div",{className:"fc-event-title fc-sticky"},e.event.title||P(dt,null," "))))}const u$=e=>P(_a.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return P(pr,Object.assign({},e,{elTag:e.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),d4e=Rt({day:"numeric"});class uv extends wt{constructor(){super(...arguments),this.refineRenderProps=V1(f4e)}render(){let{props:t,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,isMonthStart:t.isMonthStart||!1,showDayNumber:t.showDayNumber,extraRenderProps:t.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return P(pr,Object.assign({},t,{elClasses:[...rv(i,n.theme),...t.elClasses||[]],elAttrs:Object.assign(Object.assign({},t.elAttrs),i.isDisabled?{}:{"data-date":Gp(t.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:t.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function cv(e){return Boolean(e.dayCellContent||KN("dayCellContent",e))}function f4e(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,o=K5(t,e.todayRange,null,r),a=e.showDayNumber?n.format(t,i?e.monthStartFormat:d4e):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},o),{isMonthStart:i,dayNumberText:a}),e.extraRenderProps)}class c$ extends wt{render(){let{props:t}=this,{seg:n}=t;return P(Xp,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:p4e,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday,disableDragging:!0,disableResizing:!0})}}function p4e(e){let{title:t}=e.event;return t&&P("div",{className:"fc-event-title"},e.event.title)}function d$(e){return P("div",{className:`fc-${e}`})}const f$=e=>P(_a.Consumer,null,t=>{let{dateEnv:n,options:r}=t,{date:i}=e,o=r.weekNumberFormat||e.defaultFormat,a=n.computeWeekNumber(i),s=n.format(i,o);return P(pr,Object.assign({},e,{renderProps:{num:a,text:s,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:h4e,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function h4e(e){return e.text}const p$=10;class g4e extends wt{constructor(){super(...arguments),this.state={titleId:zo()},this.handleRootEl=t=>{this.rootEl=t,this.props.elRef&&Bo(this.props.elRef,t)},this.handleDocumentMouseDown=t=>{const n=RSe(t);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=t=>{t.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:t}=this.props;t&&t()}}render(){let{theme:t,options:n}=this.context,{props:r,state:i}=this,o=["fc-popover",t.getClass("popover")].concat(r.extraClassNames||[]);return hSe(P("div",Object.assign({},r.extraAttrs,{id:r.id,className:o.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),P("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},P("span",{className:"fc-popover-title",id:i.titleId},r.title),P("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),P("div",{className:"fc-popover-body "+t.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:t}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:i}=this,o=V$e(n);if(o){let a=i.getBoundingClientRect(),s=r?Aa(n,".fc-scrollgrid").getBoundingClientRect().top:o.top,l=t?o.right-a.width:o.left;s=Math.max(s,p$),l=Math.min(l,document.documentElement.clientWidth-p$-a.width),l=Math.max(l,p$);let c=i.offsetParent.getBoundingClientRect();_Se(i,{top:s-c.top,left:l-c.left})}}}class m4e extends hr{constructor(){super(...arguments),this.handleRootEl=t=>{this.rootEl=t,t?this.context.registerInteractiveComponent(this,{el:t,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:t,dateEnv:n}=this.context,{props:r}=this,{startDate:i,todayRange:o,dateProfile:a}=r,s=n.format(i,t.dayPopoverFormat);return P(uv,{elRef:this.handleRootEl,date:i,dateProfile:a,todayRange:o},(l,c,d)=>P(g4e,{elRef:d.ref,id:r.id,title:s,extraClassNames:["fc-more-popover"].concat(d.className||[]),extraAttrs:d,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},cv(t)&&P(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(t,n,r,i){let{rootEl:o,props:a}=this;return t>=0&&t<r&&n>=0&&n<i?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!0,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class h$ extends wt{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:zo()},this.handleLinkEl=t=>{this.linkEl=t,this.props.elRef&&Bo(this.props.elRef,t)},this.handleClick=t=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,o=_P(n).start;function a(s){let{def:l,instance:c,range:d}=s.eventRange;return{event:new Pi(r,l,c),start:r.dateEnv.toDate(d.start),end:r.dateEnv.toDate(d.end),isStart:s.isStart,isEnd:s.isEnd}}typeof i=="function"&&(i=i({date:o,allDay:Boolean(n.allDayDate),allSegs:n.allSegs.map(a),hiddenSegs:n.hiddenSegs.map(a),jsEvent:t,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(o,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:t,state:n}=this;return P(_a.Consumer,null,r=>{let{viewApi:i,options:o,calendarApi:a}=r,{moreLinkText:s}=o,{moreCnt:l}=t,c=_P(t),d=typeof s=="function"?s.call(a,l):`+${l} ${s}`,h=Vp(o.moreLinkHint,[l],d),g={num:l,shortText:`+${l}`,text:d,view:i};return P(dt,null,Boolean(t.moreCnt)&&P(pr,{elTag:t.elTag||"a",elRef:this.handleLinkEl,elClasses:[...t.elClasses||[],"fc-more-link"],elStyle:t.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},t.elAttrs),RN(this.handleClick)),{title:h,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:g,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:t.defaultGenerator||v4e,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},t.children),n.isPopoverOpen&&P(m4e,{id:n.popoverId,startDate:c.start,endDate:c.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:this.parentEl,alignmentEl:t.alignmentElRef?t.alignmentElRef.current:this.linkEl,alignGridTop:t.alignGridTop,onClose:this.handlePopoverClose},t.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Aa(this.linkEl,".fc-view-harness"))}}function v4e(e){return e.text}function _P(e){if(e.allDayDate)return{start:e.allDayDate,end:vn(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:RP(t),end:b4e(t)}}function RP(e){return e.reduce(y4e).eventRange.range.start}function y4e(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function b4e(e){return e.reduce(w4e).eventRange.range.end}function w4e(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class x4e{constructor(){this.handlers=[]}set(t){this.currentValue=t;for(let n of this.handlers)n(t)}subscribe(t){this.handlers.push(t),this.currentValue!==void 0&&t(this.currentValue)}}class S4e extends x4e{constructor(){super(...arguments),this.map=new Map}handle(t){const{map:n}=this;let r=!1;t.isActive?(n.set(t.id,t),r=!0):n.has(t.id)&&(n.delete(t.id),r=!0),r&&this.set(n)}}var $4e=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-unselectable{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:none;user-select:none}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button::-moz-focus-inner{border-style:none;padding:0}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';Wp($4e);const C4e=[],OP={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},DP=Object.assign(Object.assign({},OP),{buttonHints:{prev:"Previous $0",next:"Next $0",today(e,t){return t==="day"?"Today":`This ${e}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}});function E4e(e){let t=e.length>0?e[0].code:"en",n=C4e.concat(e),r={en:DP};for(let i of n)r[i.code]=i;return{map:r,defaultCode:t}}function IP(e,t){return typeof e=="object"&&!Array.isArray(e)?MP(e.code,[e.code],e):T4e(e,t)}function T4e(e,t){let n=[].concat(e||[]),r=k4e(n,t)||DP;return MP(e,n,r)}function k4e(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let o=r.slice(0,i).join("-");if(t[o])return t[o]}}return null}function MP(e,t,n){let r=O5([OP,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Wo(e){return{id:nu(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function A4e(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(o){for(let a of o){const s=a.name,l=n[s];l===void 0?(n[s]=a.id,i(a.deps),r=R4e(r,a)):l!==a.id&&console.warn(`Duplicate plugin '${s}'`)}}return e&&i(e),i(t),r}function _4e(){let e=[],t=[],n;return(r,i)=>((!n||!Hs(r,e)||!Hs(i,t))&&(n=A4e(r,i)),e=r,t=i,n)}function R4e(e,t){return{premiumReleaseDate:O4e(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function O4e(e,t){return e===void 0?t:t===void 0?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class Ys extends qp{}Ys.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Ys.prototype.baseIconClass="fc-icon",Ys.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Ys.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Ys.prototype.iconOverrideOption="buttonIcons",Ys.prototype.iconOverrideCustomButtonOption="icon",Ys.prototype.iconOverridePrefix="fc-icon-";function D4e(e,t){let n={},r;for(r in e)g$(r,n,e,t);for(r in t)g$(r,n,e,t);return n}function g$(e,t,n,r){if(t[e])return t[e];let i=I4e(e,t,n,r);return i&&(t[e]=i),i}function I4e(e,t,n,r){let i=n[e],o=r[e],a=d=>i&&i[d]!==null?i[d]:o&&o[d]!==null?o[d]:null,s=a("component"),l=a("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=g$(l,t,n,r)}return!s&&c&&(s=c.component),s?{type:e,component:s,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),o?o.rawOptions:{})}:null}function NP(e){return ou(e,M4e)}function M4e(e){let t=typeof e=="function"?{component:e}:e,{component:n}=t;return t.content&&(n=N4e(t)),{superType:t.type,component:n,rawOptions:t}}function N4e(e){return t=>P(_a.Consumer,null,n=>P(pr,{elTag:"div",elClasses:JN(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function P4e(e,t,n,r){let i=NP(e),o=NP(t.views),a=D4e(i,o);return ou(a,s=>L4e(s,o,t,n,r))}function L4e(e,t,n,r,i){let o=e.overrides.duration||e.defaults.duration||r.duration||n.duration,a=null,s="",l="",c={};if(o&&(a=F4e(o),a)){let g=E5(a);s=g.unit,g.value===1&&(l=s,c=t[s]?t[s].rawOptions:{})}let d=g=>{let p=g.buttonText||{},m=e.defaults.buttonTextKey;return m!=null&&p[m]!=null?p[m]:p[e.type]!=null?p[e.type]:p[l]!=null?p[l]:null},h=g=>{let p=g.buttonHints||{},m=e.defaults.buttonTextKey;return m!=null&&p[m]!=null?p[m]:p[e.type]!=null?p[e.type]:p[l]!=null?p[l]:null};return{type:e.type,component:e.component,duration:a,durationUnit:s,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(i)||e.defaults.buttonText||d(Yp)||e.type,buttonTitleOverride:h(r)||h(n)||e.overrides.buttonHint,buttonTitleDefault:h(i)||e.defaults.buttonHint||h(Yp)}}let PP={};function F4e(e){let t=JSON.stringify(e),n=PP[t];return n===void 0&&(n=bt(e),PP[t]=n),n}function z4e(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function B4e(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function H4e(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i;break}return e}function U4e(e,t,n){let r=t?t.activeRange:null;return FP({},Z4e(e,n),r,n)}function j4e(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return FP(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return V4e(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?zP(e,i,r):e;case"FETCH_EVENT_SOURCES":return m$(e,t.sourceIds?GN(t.sourceIds):BP(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return q4e(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function W4e(e,t,n){let r=t?t.activeRange:null;return m$(e,BP(e,n),r,!0,n)}function LP(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function FP(e,t,n,r){let i={};for(let o of t)i[o.sourceId]=o;return n&&(i=zP(i,n,r)),Object.assign(Object.assign({},e),i)}function V4e(e,t){return ed(e,n=>n.sourceId!==t)}function zP(e,t,n){return m$(e,ed(e,r=>G4e(r,t,n)),t,!1,n)}function G4e(e,t,n){return HP(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function m$(e,t,n,r,i){let o={};for(let a in e){let s=e[a];t[a]?o[a]=Y4e(s,n,r,i):o[a]=s}return o}function Y4e(e,t,n,r){let{options:i,calendarApi:o}=r,a=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=nu();return a.fetch({eventSource:e,range:t,isRefetch:n,context:r},l=>{let{rawEvents:c}=l;i.eventSourceSuccess&&(c=i.eventSourceSuccess.call(o,c,l.response)||c),e.success&&(c=e.success.call(o,c,l.response)||c),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:c})},l=>{let c=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(o,l),c=!0),e.failure&&(e.failure(l),c=!0),c||console.warn(l.message,l),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:s,fetchRange:t,error:l})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:s})}function q4e(e,t,n,r){let i=e[t];return i&&n===i.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):e}function BP(e,t){return ed(e,n=>HP(n,t))}function Z4e(e,t){let n=lP(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let o of r){let a=sP(o,t,n);a&&i.push(a)}return i}function HP(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function K4e(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Q4e(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function X4e(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function J4e(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function eCe(e,t,n,r,i){let o=e.headerToolbar?UP(e.headerToolbar,e,t,n,r,i):null,a=e.footerToolbar?UP(e.footerToolbar,e,t,n,r,i):null;return{header:o,footer:a}}function UP(e,t,n,r,i,o){let a={},s=[],l=!1;for(let c in e){let d=e[c],h=tCe(d,t,n,r,i,o);a[c]=h.widgets,s.push(...h.viewsWithButtons),l=l||h.hasTitle}return{sectionWidgets:a,viewsWithButtons:s,hasTitle:l}}function tCe(e,t,n,r,i,o){let a=t.direction==="rtl",s=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},d=n.buttonHints||{},h=t.buttonHints||{},g=e?e.split(" "):[],p=[],m=!1;return{widgets:g.map(x=>x.split(",").map(w=>{if(w==="title")return m=!0,{buttonName:w};let b,S,$,E,T,k;if(b=s[w])$=A=>{b.click&&b.click.call(A.target,A,A.target)},(E=r.getCustomButtonIconClass(b))||(E=r.getIconClass(w,a))||(T=b.text),k=b.hint||b.text;else if(S=i[w]){p.push(w),$=()=>{o.changeView(w)},(T=S.buttonTextOverride)||(E=r.getIconClass(w,a))||(T=S.buttonTextDefault);let A=S.buttonTextOverride||S.buttonTextDefault;k=Vp(S.buttonTitleOverride||S.buttonTitleDefault||t.viewHint,[A,w],A)}else if(o[w])if($=()=>{o[w]()},(T=l[w])||(E=r.getIconClass(w,a))||(T=c[w]),w==="prevYear"||w==="nextYear"){let A=w==="prevYear"?"prev":"next";k=Vp(d[A]||h[A],[c.year||"year","year"],c[w])}else k=A=>Vp(d[w]||h[w],[c[A]||A,A],c[w]);return{buttonName:w,buttonClick:$,buttonIcon:E,buttonText:T,buttonHint:k}})),viewsWithButtons:p,hasTitle:m}}class nCe{constructor(t,n,r){this.type=t,this.getCurrentData=n,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(t){return this.getCurrentData().options[t]}}const rCe=Wo({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(e){return Array.isArray(e.events)?e.events:null},fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),iCe=Wo({name:"func-event-source",eventSourceDefs:[{parseMeta(e){return typeof e.events=="function"?e.events:null},fetch(e,t,n){const{dateEnv:r}=e.context,i=e.eventSource.meta;O$e(i.bind(null,vP(e.range,r)),o=>t({rawEvents:o}),n)}}]}),oCe=Wo({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:re,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(e){return e.url&&(e.format==="json"||!e.format)?{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}:null},fetch(e,t,n){const{meta:r}=e.eventSource,i=aCe(r,e.range,e.context);D$e(r.method,r.url,i).then(([o,a])=>{t({rawEvents:o,response:a})},n)}}]});function aCe(e,t,n){let{dateEnv:r,options:i}=n,o,a,s,l,c={};return o=e.startParam,o==null&&(o=i.startParam),a=e.endParam,a==null&&(a=i.endParam),s=e.timeZoneParam,s==null&&(s=i.timeZoneParam),typeof e.extraParams=="function"?l=e.extraParams():l=e.extraParams||{},Object.assign(c,l),c[o]=r.formatIso(t.start),c[a]=r.formatIso(t.end),r.timeZone!=="local"&&(c[s]=r.timeZone),c}const sCe=Wo({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(r=HSe(e.endTime,e.startTime)),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}return null},expand(e,t,n){let r=Ho(t,{start:e.startRecur,end:e.endRecur});return r?lCe(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:re,startTime:bt,endTime:bt,duration:bt,startRecur:re,endRecur:re}});function lCe(e,t,n,r){let i=e?GN(e):null,o=Bt(n.start),a=n.end,s=[];for(;o<a;){let l;(!i||i[o.getUTCDay()])&&(t?l=r.add(o,t):l=o,s.push(l)),o=vn(o,1)}return s}const uCe=Wo({name:"change-handler",optionChangeHandlers:{events(e,t){jP([e],t)},eventSources:jP}});function jP(e,t){let n=D5(t.getCurrentData().eventSources);n.length===1&&e.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(e[0])&&t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let i of e){let o=!1;for(let a=0;a<n.length;a+=1)if(n[a]._raw===i){n.splice(a,1),o=!0;break}o||r.push(i)}for(let i of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)t.calendarApi.addEventSource(i)}function cCe(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},vP(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function dCe(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",W5(e,t))}const fCe=[rCe,iCe,oCe,sCe,uCe,Wo({name:"misc",isLoadingFuncs:[e=>LP(e.eventSources)],propSetHandlers:{dateProfile:cCe,eventStore:dCe}})];class pCe{constructor(t,n){this.runTaskOption=t,this.drainedOption=n,this.queue=[],this.delayedRunner=new S5(this.drain.bind(this))}request(t,n){this.queue.push(t),this.delayedRunner.request(n)}pause(t){this.delayedRunner.pause(t)}resume(t,n){this.delayedRunner.resume(t,n)}drain(){let{queue:t}=this;for(;t.length;){let n=[],r;for(;r=t.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(t){this.runTaskOption&&this.runTaskOption(t)}drained(t){this.drainedOption&&this.drainedOption(t)}}function hCe(e,t,n){let r;return/^(year|month)$/.test(e.currentRangeUnit)?r=e.currentRange:r=e.activeRange,n.formatRange(r.start,r.end,Rt(t.titleFormat||gCe(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function gCe(e){let{currentRangeUnit:t}=e;if(t==="year")return{year:"numeric"};if(t==="month")return{year:"numeric",month:"long"};let n=W1(e.currentRange.start,e.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class mCe{constructor(t){this.computeCurrentViewData=Le(this._computeCurrentViewData),this.organizeRawLocales=Le(E4e),this.buildLocale=Le(IP),this.buildPluginHooks=_4e(),this.buildDateEnv=Le(vCe),this.buildTheme=Le(yCe),this.parseToolbars=Le(eCe),this.buildViewSpecs=Le(P4e),this.buildDateProfileGenerator=V1(bCe),this.buildViewApi=Le(wCe),this.buildViewUiProps=V1($Ce),this.buildEventUiBySource=Le(xCe,ci),this.buildEventUiBases=Le(SCe),this.parseContextBusinessHours=V1(CCe),this.buildTitle=Le(hCe),this.emitter=new l$e,this.actionRunner=new pCe(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=g=>{this.actionRunner.request(g)},this.props=t,this.actionRunner.pause();let n={},r=this.computeOptionsData(t.optionOverrides,n,t.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,o=this.computeCurrentViewData(i,r,t.optionOverrides,n);t.calendarApi.currentDataManager=this,this.emitter.setThisContext(t.calendarApi),this.emitter.setOptions(o.options);let a=U5e(r.calendarOptions,r.dateEnv),s=o.dateProfileGenerator.build(a);Ra(s.activeRange,a)||(a=s.currentRange.start);let l={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let g of r.pluginHooks.contextInit)g(l);let c=U4e(r.calendarOptions,s,l),d={dynamicOptionOverrides:n,currentViewType:i,currentDate:a,dateProfile:s,businessHours:this.parseContextBusinessHours(l),eventSources:c,eventUiBases:{},eventStore:Oa(),renderableEventStore:Oa(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},h=Object.assign(Object.assign({},l),d);for(let g of r.pluginHooks.reducers)Object.assign(d,g(null,null,h));v$(d,l)&&this.emitter.trigger("loading",!0),this.state=d,this.updateData(),this.actionRunner.resume()}resetOptions(t,n){let{props:r}=this;n===void 0?r.optionOverrides=t:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),t),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(t){let{props:n,state:r,emitter:i}=this,o=B4e(r.dynamicOptionOverrides,t),a=this.computeOptionsData(n.optionOverrides,o,n.calendarApi),s=z4e(r.currentViewType,t),l=this.computeCurrentViewData(s,a,n.optionOverrides,o);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(l.options);let c={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:d,dateProfile:h}=r;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(h=l.dateProfileGenerator.build(d)),d=H5e(d,t),h=H4e(h,t,d,l.dateProfileGenerator),(t.type==="PREV"||t.type==="NEXT"||!Ra(h.currentRange,d))&&(d=h.currentRange.start);let g=j4e(r.eventSources,t,h,c),p=n$e(r.eventStore,t,g,h,c),v=LP(g)&&!l.options.progressiveEventRendering&&r.renderableEventStore||p,{eventUiSingleBase:x,selectionConfig:w}=this.buildViewUiProps(c),b=this.buildEventUiBySource(g),S=this.buildEventUiBases(v.defs,x,b),$={dynamicOptionOverrides:o,currentViewType:s,currentDate:d,dateProfile:h,eventSources:g,eventStore:p,renderableEventStore:v,selectionConfig:w,eventUiBases:S,businessHours:this.parseContextBusinessHours(c),dateSelection:K4e(r.dateSelection,t),eventSelection:Q4e(r.eventSelection,t),eventDrag:X4e(r.eventDrag,t),eventResize:J4e(r.eventResize,t)},E=Object.assign(Object.assign({},c),$);for(let A of a.pluginHooks.reducers)Object.assign($,A(r,t,E));let T=v$(r,c),k=v$($,c);!T&&k?i.trigger("loading",!0):T&&!k&&i.trigger("loading",!1),this.state=$,n.onAction&&n.onAction(t)}updateData(){let{props:t,state:n}=this,r=this.data,i=this.computeOptionsData(t.optionOverrides,n.dynamicOptionOverrides,t.calendarApi),o=this.computeCurrentViewData(n.currentViewType,i,t.optionOverrides,n.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,o.options,i.dateEnv),calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),o),n),s=i.pluginHooks.optionChangeHandlers,l=r&&r.calendarOptions,c=i.calendarOptions;if(l&&l!==c){l.timeZone!==c.timeZone&&(n.eventSources=a.eventSources=W4e(a.eventSources,n.dateProfile,a),n.eventStore=a.eventStore=a$e(a.eventStore,r.dateEnv,a.dateEnv));for(let d in s)(this.optionsForHandling.indexOf(d)!==-1||l[d]!==c[d])&&s[d](c[d],a)}this.optionsForHandling=[],t.onData&&t.onData(a)}computeOptionsData(t,n,r){if(!this.optionsForRefining.length&&t===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:o,localeDefaults:a,availableLocaleData:s,extra:l}=this.processRawCalendarOptions(t,n);WP(l);let c=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,o,s,i.defaultRangeSeparator),d=this.buildViewSpecs(o.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),h=this.buildTheme(i,o),g=this.parseToolbars(i,this.stableOptionOverrides,h,d,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:o,dateEnv:c,viewSpecs:d,theme:h,toolbarConfig:g,localeDefaults:a,availableRawLocales:s.map}}processRawCalendarOptions(t,n){let{locales:r,locale:i}=_5([Yp,t,n]),o=this.organizeRawLocales(r),a=o.map,s=this.buildLocale(i||o.defaultCode,a).options,l=this.buildPluginHooks(t.plugins||[],fCe),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jN),WN),VN),l.listenerRefiners),l.optionRefiners),d={},h=_5([Yp,s,t,n]),g={},p=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,v=!1;for(let x in h)this.optionsForRefining.indexOf(x)===-1&&(h[x]===p[x]||ru[x]&&x in p&&ru[x](p[x],h[x]))?g[x]=m[x]:c[x]?(g[x]=c[x](h[x]),v=!0):d[x]=p[x];return v&&(this.currentCalendarOptionsInput=h,this.currentCalendarOptionsRefined=g,this.stableOptionOverrides=t,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:o,localeDefaults:s,extra:d}}_computeCurrentViewData(t,n,r,i){let o=n.viewSpecs[t];if(!o)throw new Error(`viewType "${t}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:s}=this.processRawViewOptions(o,n.pluginHooks,n.localeDefaults,r,i);WP(s);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),c=this.buildViewApi(t,this.getCurrentData,n.dateEnv);return{viewSpec:o,options:a,dateProfileGenerator:l,viewApi:c}}processRawViewOptions(t,n,r,i,o){let a=_5([Yp,t.optionDefaults,r,i,t.optionOverrides,o]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jN),WN),VN),y5e),n.listenerRefiners),n.optionRefiners),l={},c=this.currentViewOptionsInput,d=this.currentViewOptionsRefined,h=!1,g={};for(let p in a)a[p]===c[p]||ru[p]&&ru[p](a[p],c[p])?l[p]=d[p]:(a[p]===this.currentCalendarOptionsInput[p]||ru[p]&&ru[p](a[p],this.currentCalendarOptionsInput[p])?p in this.currentCalendarOptionsRefined&&(l[p]=this.currentCalendarOptionsRefined[p]):s[p]?l[p]=s[p](a[p]):g[p]=a[p],h=!0);return h&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:g}}}function vCe(e,t,n,r,i,o,a,s){let l=IP(t||a.defaultCode,a.map);return new A5e({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:o.cmdFormatter,defaultSeparator:s})}function yCe(e,t){let n=t.themeClasses[e.themeSystem]||Ys;return new n(e)}function bCe(e){let t=e.dateProfileGeneratorClass||L5;return new t(e)}function wCe(e,t,n){return new nCe(e,t,n)}function xCe(e){return ou(e,t=>t.ui)}function SCe(e,t,n){let r={"":t};for(let i in e){let o=e[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}return r}function $Ce(e){let{options:t}=e;return{eventUiSingleBase:ev({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap=="boolean"?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:ev({constraint:t.selectConstraint,overlap:typeof t.selectOverlap=="boolean"?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function v$(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function CCe(e){return f$e(e.options.businessHours,e)}function WP(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class ECe extends wt{render(){let t=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return P("div",{className:"fc-toolbar-chunk"},...t)}renderWidgetGroup(t){let{props:n}=this,{theme:r}=this.context,i=[],o=!0;for(let a of t){let{buttonName:s,buttonClick:l,buttonText:c,buttonIcon:d,buttonHint:h}=a;if(s==="title")o=!1,i.push(P("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let g=s===n.activeButton,p=!n.isTodayEnabled&&s==="today"||!n.isPrevEnabled&&s==="prev"||!n.isNextEnabled&&s==="next",m=[`fc-${s}-button`,r.getClass("button")];g&&m.push(r.getClass("buttonActive")),i.push(P("button",{type:"button",title:typeof h=="function"?h(n.navUnit):h,disabled:p,"aria-pressed":g,className:m.join(" "),onClick:l},c||(d?P("span",{className:d}):"")))}}if(i.length>1){let a=o&&r.getClass("buttonGroup")||"";return P("div",{className:a},...i)}return i[0]}}class VP extends wt{render(){let{model:t,extraClassName:n}=this.props,r=!1,i,o,a=t.sectionWidgets,s=a.center;return a.left?(r=!0,i=a.left):i=a.start,a.right?(r=!0,o=a.right):o=a.end,P("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",s||[]),this.renderSection("end",o||[]))}renderSection(t,n){let{props:r}=this;return P(ECe,{key:t,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class TCe extends wt{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=t=>{this.el=t,Bo(this.props.elRef,t),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:t,state:n}=this,{aspectRatio:r}=t,i=["fc-view-harness",r||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",a="";return r?n.availableWidth!==null?o=n.availableWidth/r:a=`${1/r*100}%`:o=t.height||"",P("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:o,paddingBottom:a}},t.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class kCe extends xP{constructor(t){super(t),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:o}=i,a=G5(r);if(a&&i.isValidSegDownEl(n.target)){let s=Aa(n.target,".fc-event-forced-url"),l=s?s.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:r,event:new Pi(i.context,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:o.viewApi}),l&&!n.defaultPrevented&&(window.location.href=l)}},this.destroy=_N(t.el,"click",".fc-event",this.handleSegClick)}}class ACe extends xP{constructor(t){super(t),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{G5(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=DSe(t.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(t,n,r){let{component:i}=this,{context:o}=i,a=G5(r);(!n||i.isValidSegDownEl(n.target))&&o.emitter.trigger(t,{el:r,event:new Pi(o,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:o.viewApi})}}class _Ce extends au{constructor(){super(...arguments),this.buildViewContext=Le(O5e),this.buildViewPropTransformers=Le(OCe),this.buildToolbarProps=Le(RCe),this.headerRef=On(),this.footerRef=On(),this.interactionsStore={},this.state={viewLabelId:zo()},this.registerInteractiveComponent=(t,n)=>{let r=N$e(t,n),a=[kCe,ACe].concat(this.props.pluginHooks.componentInteractions).map(s=>new s(r));this.interactionsStore[t.uid]=a,SP[t.uid]=r},this.unregisterInteractiveComponent=t=>{let n=this.interactionsStore[t.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[t.uid]}delete SP[t.uid]},this.resizeRunner=new S5(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=t=>{let{options:n}=this.props;n.handleWindowResize&&t.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:t}=this,{toolbarConfig:n,options:r}=t,i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,Zp(t.options.now,t.dateEnv),t.viewTitle),o=!1,a="",s;t.isHeightAuto||t.forPrint?a="":r.height!=null?o=!0:r.contentHeight!=null?a=r.contentHeight:s=Math.max(r.aspectRatio,.5);let l=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return P(_a.Provider,{value:l},n.header&&P(VP,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},i)),P(TCe,{liquid:o,height:a,aspectRatio:s,labeledById:c},this.renderView(t),this.buildAppendContent()),n.footer&&P(VP,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:t}=this;this.calendarInteractions=t.pluginHooks.calendarInteractions.map(r=>new r(t)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=t.pluginHooks;for(let r in n)n[r](t[r],t)}componentDidUpdate(t){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==t[i]&&r[i](n[i],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let t of this.calendarInteractions)t.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:t}=this,n=t.pluginHooks.viewContainerAppends.map(r=>r(t));return P(dt,{},...n)}renderView(t){let{pluginHooks:n}=t,{viewSpec:r}=t,i={dateProfile:t.dateProfile,businessHours:t.businessHours,eventStore:t.renderableEventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isHeightAuto:t.isHeightAuto,forPrint:t.forPrint},o=this.buildViewPropTransformers(n.viewPropsTransformers);for(let s of o)Object.assign(i,s.transform(i,t));let a=r.component;return P(a,Object.assign({},i))}}function RCe(e,t,n,r,i,o){let a=n.build(i,void 0,!1),s=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:o,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:a.isValid&&!Ra(t.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function OCe(e){return e.map(t=>new t)}class DCe extends P$e{constructor(t,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;qN(()=>{jp(P(M$e,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,o,a,s)=>(this.setClassNames(i),this.setHeight(o),P(XN.Provider,{value:this.customContentRenderId},P(_Ce,Object.assign({isHeightAuto:a,forPrint:s},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,jp(null,this.el),this.setClassNames([]),this.setHeight(""))},SSe(t),this.el=t,this.renderRunner=new S5(this.handleRenderRequest),new mCe({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let t=this.isRendering;t?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),t&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){qN(()=>{super.updateSize()})}batchRendering(t){this.renderRunner.pause("batchRendering"),t(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(t,n){this.currentDataManager.resetOptions(t,n)}setClassNames(t){if(!Hs(t,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of t)n.add(r);this.currentClassNames=t}}setHeight(t){kN(this.el,"height",t)}}class dv extends R.Component{constructor(){super(...arguments),this.elRef=R.createRef(),this.needsCustomRenderingResize=!1,this.isInitialRender=!0,this.state={customRenderingMap:new Map}}render(){const t=[];for(const n of this.state.customRenderingMap.values()){const{generatorMeta:r}=n,i=typeof r=="function"?r(n.renderProps):r;t.push(vo.createPortal(i,n.containerEl,n.id))}return le.createElement("div",{ref:this.elRef},t)}componentDidMount(){const t=new S4e;this.handleCustomRendering=t.handle.bind(t),this.calendar=new DCe(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),t.subscribe(n=>{this.isInitialRender?this.doCustomRendering(n):this.requestCustomRendering(n)})}requestCustomRendering(t){this.cancelCustomRendering(),this.customRenderingRequestId=requestAnimationFrame(()=>{dv.act(()=>{this.doCustomRendering(t)})})}doCustomRendering(t){this.needsCustomRenderingResize=!0,this.setState({customRenderingMap:t})}cancelCustomRendering(){this.customRenderingRequestId&&(cancelAnimationFrame(this.customRenderingRequestId),this.customRenderingRequestId=void 0)}componentDidUpdate(){this.isInitialRender=!1,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.needsCustomRenderingResize&&(this.needsCustomRenderingResize=!1,this.calendar.updateSize())}componentWillUnmount(){this.calendar.destroy(),this.cancelCustomRendering()}getApi(){return this.calendar}}dv.act=e=>{e()};class ICe extends wt{constructor(){super(...arguments),this.state={textId:zo()}}render(){let{theme:t,dateEnv:n,options:r,viewApi:i}=this.context,{cellId:o,dayDate:a,todayRange:s}=this.props,{textId:l}=this.state,c=K5(a,s),d=r.listDayFormat?n.format(a,r.listDayFormat):"",h=r.listDaySideFormat?n.format(a,r.listDaySideFormat):"",g=Object.assign({date:n.toDate(a),view:i,textId:l,text:d,sideText:h,navLinkAttrs:Gs(this.context,a),sideNavLinkAttrs:Gs(this.context,a,"day",!1)},c);return P(pr,{elTag:"tr",elClasses:["fc-list-day",...rv(c,t)],elAttrs:{"data-date":Gp(a)},renderProps:g,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:MCe,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},p=>P("th",{scope:"colgroup",colSpan:3,id:o,"aria-labelledby":l},P(p,{elTag:"div",elClasses:["fc-list-day-cushion",t.getClass("tableCellShaded")]})))}}function MCe(e){return P(dt,null,e.text&&P("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&P("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const NCe=Rt({hour:"numeric",minute:"2-digit",meridiem:"short"});class PCe extends wt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i,timeHeaderId:o,eventHeaderId:a,dateHeaderId:s}=t,l=r.eventTimeFormat||NCe;return P(Xp,Object.assign({},t,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>LCe(i,n),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(c,d)=>P(dt,null,FCe(i,l,n,o,s),P("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},P("span",{className:"fc-list-event-dot",style:{borderColor:d.borderColor||d.backgroundColor}})),P(c,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${a} ${s}`}})))}}function LCe(e,t){let n=nv(e,t);return P("a",Object.assign({},n),e.eventRange.def.title)}function FCe(e,t,n,r,i){let{options:o}=n;if(o.displayEventTime!==!1){let a=e.eventRange.def,s=e.eventRange.instance,l=!1,c;if(a.allDay?l=!0:B5e(e.eventRange.range)?e.isStart?c=rd(e,t,n,null,null,s.range.start,e.end):e.isEnd?c=rd(e,t,n,null,null,e.start,s.range.end):l=!0:c=rd(e,t,n),l){let d={text:n.options.allDayText,view:n.viewApi};return P(pr,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:d,generatorName:"allDayContent",customGenerator:o.allDayContent,defaultGenerator:zCe,classNameGenerator:o.allDayClassNames,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount})}return P("td",{className:"fc-list-event-time"},c)}return null}function zCe(e){return e.text}class BCe extends hr{constructor(){super(...arguments),this.computeDateVars=Le(UCe),this.eventStoreToSegs=Le(this._eventStoreToSegs),this.state={timeHeaderId:zo(),eventHeaderId:zo(),dateHeaderIdRoot:zo()},this.setRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:t,context:n}=this,{dayDates:r,dayRanges:i}=this.computeDateVars(t.dateProfile),o=this.eventStoreToSegs(t.eventStore,t.eventUiBases,i);return P(td,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},P(TP,{liquid:!t.isHeightAuto,overflowX:t.isHeightAuto?"visible":"hidden",overflowY:t.isHeightAuto?"visible":"auto"},o.length>0?this.renderSegList(o,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:t,viewApi:n}=this.context,r={text:t.noEventsText,view:n};return P(pr,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:t.noEventsContent,defaultGenerator:HCe,classNameGenerator:t.noEventsClassNames,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},i=>P(i,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(t,n){let{theme:r,options:i}=this.context,{timeHeaderId:o,eventHeaderId:a,dateHeaderIdRoot:s}=this.state,l=jCe(t);return P(su,{unit:"day"},(c,d)=>{let h=[];for(let g=0;g<l.length;g+=1){let p=l[g];if(p){let m=Gp(n[g]),v=s+"-"+m;h.push(P(ICe,{key:m,cellId:v,dayDate:n[g],todayRange:d})),p=tv(p,i.eventOrder);for(let x of p)h.push(P(PCe,Object.assign({key:m+":"+x.eventRange.instance.instanceId,seg:x,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:o,eventHeaderId:a,dateHeaderId:v},Ur(x,d,c))))}}return P("table",{className:"fc-list-table "+r.getClass("table")},P("thead",null,P("tr",null,P("th",{scope:"col",id:o},i.timeHint),P("th",{scope:"col","aria-hidden":!0}),P("th",{scope:"col",id:a},i.eventHint))),P("tbody",null,h))})}_eventStoreToSegs(t,n,r){return this.eventRangesToSegs(V5(t,n,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,r)}eventRangesToSegs(t,n){let r=[];for(let i of t)r.push(...this.eventRangeToSegs(i,n));return r}eventRangeToSegs(t,n){let{dateEnv:r}=this.context,{nextDayThreshold:i}=this.context.options,o=t.range,a=t.def.allDay,s,l,c,d=[];for(s=0;s<n.length;s+=1)if(l=Ho(o,n[s]),l&&(c={component:this,eventRange:t,start:l.start,end:l.end,isStart:t.isStart&&l.start.valueOf()===o.start.valueOf(),isEnd:t.isEnd&&l.end.valueOf()===o.end.valueOf(),dayIndex:s},d.push(c),!c.isEnd&&!a&&s+1<n.length&&o.end<r.add(n[s+1].start,i))){c.end=o.end,c.isEnd=!0;break}return d}}function HCe(e){return e.text}function UCe(e){let t=Bt(e.renderRange.start),n=e.renderRange.end,r=[],i=[];for(;t<n;)r.push(t),i.push({start:t,end:vn(t,1)}),t=vn(t,1);return{dayDates:r,dayRanges:i}}function jCe(e){let t=[],n,r;for(n=0;n<e.length;n+=1)r=e[n],(t[r.dayIndex]||(t[r.dayIndex]=[])).push(r);return t}const WCe={listDayFormat:GP,listDaySideFormat:GP,noEventsClassNames:re,noEventsContent:re,noEventsDidMount:re,noEventsWillUnmount:re};function GP(e){return e===!1?null:Rt(e)}var VCe=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';Wp(VCe);var GCe=Wo({name:"@fullcalendar/list",optionRefiners:WCe,views:{list:{component:BCe,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});class YCe extends hr{constructor(){super(...arguments),this.headerElRef=On()}renderSimpleLayout(t,n){let{props:r,context:i}=this,o=[],a=lv(i.options);return t&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),P(td,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},P(s$,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:o}))}renderHScrollLayout(t,n,r,i){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{props:a,context:s}=this,l=!a.forPrint&&lv(s.options),c=!a.forPrint&&AP(s.options),d=[];return t&&d.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),d.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),c&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:a$}]}),P(td,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},P(o,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:d}))}}function fv(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.row].push(r);return n}function pv(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.firstCol].push(r);return n}function YP(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.row].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}const qP=Rt({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function ZP(e){let{display:t}=e.eventRange.ui;return t==="list-item"||t==="auto"&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}let KP=class extends wt{render(){let{props:t}=this;return P(l$,Object.assign({},t,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:qP,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))}},QP=class extends wt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,o=r.eventTimeFormat||qP,a=rd(i,o,n,!0,t.defaultDisplayEventEnd);return P(Xp,Object.assign({},t,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:nv(t.seg,n),defaultGenerator:qCe,timeText:a,isResizing:!1,isDateSelecting:!1}))}};function qCe(e){return P(dt,null,P("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&P("div",{className:"fc-event-time"},e.timeText),P("div",{className:"fc-event-title"},e.event.title||P(dt,null," ")))}let ZCe=class extends wt{constructor(){super(...arguments),this.compileSegs=Le(KCe)}render(){let{props:t}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(t.singlePlacements);return P(h$,{elClasses:["fc-daygrid-more-link"],dateProfile:t.dateProfile,todayRange:t.todayRange,allDayDate:t.allDayDate,moreCnt:t.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:t.alignmentElRef,alignGridTop:t.alignGridTop,extraDateSpan:t.extraDateSpan,popoverContent:()=>{let i=(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{};return P(dt,null,n.map(o=>{let a=o.eventRange.instance.instanceId;return P("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:i[a]?"hidden":""}},ZP(o)?P(QP,Object.assign({seg:o,isDragging:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Ur(o,t.todayRange))):P(KP,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Ur(o,t.todayRange))))}))}})}};function KCe(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const QCe=Rt({week:"narrow"});let XCe=class extends hr{constructor(){super(...arguments),this.rootElRef=On(),this.state={dayNumberId:zo()},this.handleRootEl=t=>{Bo(this.rootElRef,t),Bo(this.props.elRef,t)}}render(){let{context:t,props:n,state:r,rootElRef:i}=this,{options:o}=t,{date:a,dateProfile:s}=n,l=n.showDayNumber&&s.currentRangeUnit!=="month"&&(s.currentRange.start.valueOf()===a.valueOf()||a.getUTCDate()===1);return P(uv,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:JCe,date:a,dateProfile:s,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:l,extraRenderProps:n.extraRenderProps},(c,d)=>P("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&P(f$,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Gs(t,a,"week"),date:a,defaultFormat:QCe}),!d.isDisabled&&(n.showDayNumber||cv(o)||n.forceDayTop)?P("div",{className:"fc-daygrid-day-top"},P(c,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Gs(t,a)),{id:r.dayNumberId})})):n.showDayNumber?P("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},P("a",{className:"fc-daygrid-day-number"}," ")):void 0,P("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,P("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},P(ZCe,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),P("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}};function JCe(e){return e.dayNumberText||P(dt,null," ")}function e8e(e,t,n,r,i,o,a){let s=new r8e;s.allowReslicing=!0,s.strictOrder=r,t===!0||n===!0?(s.maxCoord=o,s.hiddenConsumes=!0):typeof t=="number"?s.maxStackCnt=t:typeof n=="number"&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let l=[],c=[];for(let w=0;w<e.length;w+=1){let b=e[w],{instanceId:S}=b.eventRange.instance,$=i[S];$!=null?l.push({index:w,thickness:$,span:{start:b.firstCol,end:b.lastCol+1}}):c.push(b)}let d=s.addSegs(l),h=s.toRects(),{singleColPlacements:g,multiColPlacements:p,leftoverMargins:m}=t8e(h,e,a),v=[],x=[];for(let w of c){p[w.firstCol].push({seg:w,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let b=w.firstCol;b<=w.lastCol;b+=1)g[b].push({seg:id(w,b,b+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let w=0;w<a.length;w+=1)v.push(0);for(let w of d){let b=e[w.index],S=w.span;p[S.start].push({seg:id(b,S.start,S.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let $=S.start;$<S.end;$+=1)v[$]+=1,g[$].push({seg:id(b,$,$+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let w=0;w<a.length;w+=1)x.push(m[w]);return{singleColPlacements:g,multiColPlacements:p,moreCnts:v,moreMarginTops:x}}function t8e(e,t,n){let r=n8e(e,n.length),i=[],o=[],a=[];for(let s=0;s<n.length;s+=1){let l=r[s],c=[],d=0,h=0;for(let p of l){let m=t[p.index];c.push({seg:id(m,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:p.levelCoord-d}),d=p.levelCoord+p.thickness}let g=[];d=0,h=0;for(let p of l){let m=t[p.index],v=p.span.end-p.span.start>1,x=p.span.start===s;h+=p.levelCoord-d,d=p.levelCoord+p.thickness,v?(h+=p.thickness,x&&g.push({seg:id(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:p.levelCoord,marginTop:0})):x&&(g.push({seg:id(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:h}),h=0)}i.push(c),o.push(g),a.push(h)}return{singleColPlacements:i,multiColPlacements:o,leftoverMargins:a}}function n8e(e,t){let n=[];for(let r=0;r<t;r+=1)n.push([]);for(let r of e)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function id(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,o=i.range,a=Ho(o,{start:r[t].date,end:vn(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:a},isStart:e.isStart&&a.start.valueOf()===o.start.valueOf(),isEnd:e.isEnd&&a.end.valueOf()===o.end.valueOf()})}let r8e=class extends X5{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(t){const n=super.addSegs(t),{entriesByLevel:r}=this,i=o=>!this.forceHidden[jo(o)];for(let o=0;o<r.length;o+=1)r[o]=r[o].filter(i);return n}handleInvalidInsertion(t,n,r){const{entriesByLevel:i,forceHidden:o}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:l}=t;if(this.hiddenConsumes&&a){const c=jo(a);if(!o[c])if(this.allowReslicing){const d=Object.assign(Object.assign({},a),{span:ov(a.span,n.span)}),h=jo(d);o[h]=!0,i[s][l]=d,this.splitEntry(a,n,r)}else o[c]=!0,r.push(a)}return super.handleInvalidInsertion(t,n,r)}},XP=class extends hr{constructor(){super(...arguments),this.cellElRefs=new jr,this.frameElRefs=new jr,this.fgElRefs=new jr,this.segHarnessRefs=new jr,this.rootElRef=On(),this.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},this.handleResize=t=>{t&&this.updateSizing(!0)}}render(){let{props:t,state:n,context:r}=this,{options:i}=r,o=t.cells.length,a=pv(t.businessHourSegs,o),s=pv(t.bgEventSegs,o),l=pv(this.getHighlightSegs(),o),c=pv(this.getMirrorSegs(),o),{singleColPlacements:d,multiColPlacements:h,moreCnts:g,moreMarginTops:p}=e8e(tv(t.fgEventSegs,i.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,i.eventOrderStrict,n.eventInstanceHeights,n.maxContentHeight,t.cells),m=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return P("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map((v,x)=>{let w=this.renderFgSegs(x,t.forPrint?d[x]:h[x],t.todayRange,m),b=this.renderFgSegs(x,i8e(c[x],h),t.todayRange,{},Boolean(t.eventDrag),Boolean(t.eventResize),!1);return P(XCe,{key:v.key,elRef:this.cellElRefs.createRef(v.key),innerElRef:this.frameElRefs.createRef(v.key),dateProfile:t.dateProfile,date:v.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&x===0,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraRenderProps:v.extraRenderProps,extraDataAttrs:v.extraDataAttrs,extraClassNames:v.extraClassNames,extraDateSpan:v.extraDateSpan,moreCnt:g[x],moreMarginTop:p[x],singlePlacements:d[x],fgContentElRef:this.fgElRefs.createRef(v.key),fgContent:P(dt,null,P(dt,null,w),P(dt,null,b)),bgContent:P(dt,null,this.renderFillSegs(l[x],"highlight"),this.renderFillSegs(a[x],"non-business"),this.renderFillSegs(s[x],"bg-event")),minHeight:t.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(t,n){let r=this.props;this.updateSizing(!ci(t,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:t}=this;return t.eventDrag&&t.eventDrag.segs.length?t.eventDrag.segs:t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:t.dateSelectionSegs}getMirrorSegs(){let{props:t}=this;return t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:[]}renderFgSegs(t,n,r,i,o,a,s){let{context:l}=this,{eventSelection:c}=this.props,{framePositions:d}=this.state,h=this.props.cells.length===1,g=o||a||s,p=[];if(d)for(let m of n){let{seg:v}=m,{instanceId:x}=v.eventRange.instance,w=x+":"+t,b=m.isVisible&&!i[x],S=m.isAbsolute,$="",E="";S&&(l.isRtl?(E=0,$=d.lefts[v.lastCol]-d.lefts[v.firstCol]):($=0,E=d.rights[v.firstCol]-d.rights[v.lastCol])),p.push(P("div",{className:"fc-daygrid-event-harness"+(S?" fc-daygrid-event-harness-abs":""),key:w,ref:g?null:this.segHarnessRefs.createRef(w),style:{visibility:b?"":"hidden",marginTop:S?"":m.marginTop,top:S?m.absoluteTop:"",left:$,right:E}},ZP(v)?P(QP,Object.assign({seg:v,isDragging:o,isSelected:x===c,defaultDisplayEventEnd:h},Ur(v,r))):P(KP,Object.assign({seg:v,isDragging:o,isResizing:a,isDateSelecting:s,isSelected:x===c,defaultDisplayEventEnd:h},Ur(v,r)))))}return p}renderFillSegs(t,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:o}=this.state,a=[];if(o)for(let s of t){let l=r?{right:0,left:o.lefts[s.lastCol]-o.lefts[s.firstCol]}:{left:0,right:o.rights[s.firstCol]-o.rights[s.lastCol]};a.push(P("div",{key:Y5(s.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?P(c$,Object.assign({seg:s},Ur(s,i))):d$(n)))}return P(dt,{},...a)}updateSizing(t){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(t){let l=n.cells.map(c=>i.currentMap[c.key]);if(l.length){let c=this.rootElRef.current,d=new Uo(c,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(d))&&this.setState({framePositions:new Uo(c,l,!0,!1)})}}const o=this.state.eventInstanceHeights,a=this.queryEventInstanceHeights(),s=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({eventInstanceHeights:Object.assign(Object.assign({},o),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}queryEventInstanceHeights(){let t=this.segHarnessRefs.currentMap,n={};for(let r in t){let i=Math.round(t[r].getBoundingClientRect().height),o=r.split(":")[0];n[o]=Math.max(n[o]||0,i)}return n}computeMaxContentHeight(){let t=this.props.cells[0].key,n=this.cellElRefs.currentMap[t],r=this.fgElRefs.currentMap[t];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let t=this.cellElRefs.currentMap;return this.props.cells.map(n=>t[n.key])}};XP.addStateEquality({eventInstanceHeights:ci});function i8e(e,t){if(!e.length)return[];let n=o8e(t);return e.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function o8e(e){let t={};for(let n of e)for(let r of n)t[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return t}let a8e=class extends hr{constructor(){super(...arguments),this.splitBusinessHourSegs=Le(fv),this.splitBgEventSegs=Le(fv),this.splitFgEventSegs=Le(fv),this.splitDateSelectionSegs=Le(fv),this.splitEventDrag=Le(YP),this.splitEventResize=Le(YP),this.rowRefs=new jr}render(){let{props:t,context:n}=this,r=t.cells.length,i=this.splitBusinessHourSegs(t.businessHourSegs,r),o=this.splitBgEventSegs(t.bgEventSegs,r),a=this.splitFgEventSegs(t.fgEventSegs,r),s=this.splitDateSelectionSegs(t.dateSelectionSegs,r),l=this.splitEventDrag(t.eventDrag,r),c=this.splitEventResize(t.eventResize,r),d=r>=7&&t.clientWidth?t.clientWidth/n.options.aspectRatio/6:null;return P(su,{unit:"day"},(h,g)=>P(dt,null,t.cells.map((p,m)=>P(XP,{ref:this.rowRefs.createRef(m),key:p.length?p[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:t.showWeekNumbers,todayRange:g,dateProfile:t.dateProfile,cells:p,renderIntro:t.renderRowIntro,businessHourSegs:i[m],eventSelection:t.eventSelection,bgEventSegs:o[m].filter(s8e),fgEventSegs:a[m],dateSelectionSegs:s[m],eventDrag:l[m],eventResize:c[m],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:d,forPrint:t.forPrint}))))}componentDidMount(){const t=this.rowRefs.currentMap[0].getCellEls()[0];this.rootEl=t?t.closest(".fc-daygrid-body"):null,this.rootEl&&this.context.registerInteractiveComponent(this,{el:this.rootEl,isHitComboAllowed:this.props.isHitComboAllowed})}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Uo(this.rootEl,this.rowRefs.collect().map(t=>t.getCellEls()[0]),!1,!0),this.colPositions=new Uo(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(t,n){let{colPositions:r,rowPositions:i}=this,o=r.leftToIndex(t),a=i.topToIndex(n);if(a!=null&&o!=null){let s=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:r.lefts[o],right:r.rights[o],top:i.tops[a],bottom:i.bottoms[a]},layer:0}}return null}getCellEl(t,n){return this.rowRefs.currentMap[t].getCellEls()[n]}getCellRange(t,n){let r=this.props.cells[t][n].date,i=vn(r,1);return{start:r,end:i}}};function s8e(e){return e.eventRange.def.allDay}class l8e extends hr{constructor(){super(...arguments),this.elRef=On(),this.needsScrollReset=!1}render(){let{props:t}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=t,o=r===!0||n===!0;o&&!i&&(o=!1,n=null,r=null);let a=["fc-daygrid-body",o?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return P("div",{ref:this.elRef,className:a.join(" "),style:{width:t.clientWidth,minWidth:t.tableMinWidth}},P("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:i?t.clientHeight:""}},t.colGroupNode,P("tbody",{role:"presentation"},P(a8e,{dateProfile:t.dateProfile,cells:t.cells,renderRowIntro:t.renderRowIntro,showWeekNumbers:t.showWeekNumbers,clientWidth:t.clientWidth,clientHeight:t.clientHeight,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:t.forPrint,isHitComboAllowed:t.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(t){t.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const t=u8e(this.elRef.current,this.props.dateProfile);if(t){const n=t.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=t.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function u8e(e,t){let n;return t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${k5(t.currentDate)}-01"]`)),n||(n=e.querySelector(`[data-date="${Gp(t.currentDate)}"]`)),n}let c8e=class extends o${constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(t,n){return n.sliceRange(t)}};class JP extends hr{constructor(){super(...arguments),this.slicer=new c8e,this.tableRef=On()}render(){let{props:t,context:n}=this;return P(l8e,Object.assign({ref:this.tableRef},this.slicer.sliceProps(t,t.dateProfile,t.nextDayThreshold,n,t.dayTableModel),{dateProfile:t.dateProfile,cells:t.dayTableModel.cells,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint}))}}class d8e extends YCe{constructor(){super(...arguments),this.buildDayTableModel=Le(f8e),this.headerRef=On(),this.tableRef=On()}render(){let{options:t,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),o=t.dayHeaders&&P(n$,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),a=s=>P(JP,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:t.nextDayThreshold,colGroupNode:s.tableColGroupNode,tableMinWidth:s.tableMinWidth,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:s.clientWidth,clientHeight:s.clientHeight,forPrint:r.forPrint});return t.dayMinWidth?this.renderHScrollLayout(o,a,i.colCnt,t.dayMinWidth):this.renderSimpleLayout(o,a)}}function f8e(e,t){let n=new r$(e.renderRange,t);return new i$(n,/year|month|week/.test(e.currentRangeUnit))}let p8e=class extends L5{buildRenderRange(t,n,r){let i=super.buildRenderRange(t,n,r),{props:o}=this;return h8e({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}};function h8e(e){let{dateEnv:t,currentRange:n}=e,{start:r,end:i}=n,o;if(e.snapToWeek&&(r=t.startOfWeek(r),o=t.startOfWeek(i),o.valueOf()!==i.valueOf()&&(i=j1(o,1))),e.fixedWeekCount){let a=t.startOfWeek(t.startOfMonth(vn(n.end,-1))),s=Math.ceil(NN(a,i));i=j1(i,6-s)}return{start:r,end:i}}class g8e extends F$e{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(t){return t.allDay?["allDay"]:["timed"]}getKeysForEventDef(t){return t.allDay?w$e(t)?["timed","allDay"]:["allDay"]:["timed"]}}const m8e=Rt({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function eL(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return P(_a.Consumer,null,n=>{if(!e.isLabeled)return P("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:i,viewApi:o}=n,a=i.slotLabelFormat==null?m8e:Array.isArray(i.slotLabelFormat)?Rt(i.slotLabelFormat[0]):Rt(i.slotLabelFormat),s={level:0,time:e.time,date:r.toDate(e.date),view:o,text:r.format(e.date,a)};return P(pr,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:s,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:v8e,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},l=>P("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},P(l,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function v8e(e){return e.text}class y8e extends wt{render(){return this.props.slatMetas.map(t=>P("tr",{key:t.key},P(eL,Object.assign({},t))))}}const b8e=Rt({week:"short"}),w8e=5;class x8e extends hr{constructor(){super(...arguments),this.allDaySplitter=new g8e,this.headerElRef=On(),this.rootElRef=On(),this.scrollerElRef=On(),this.state={slatCoords:null},this.handleScrollTopRequest=t=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=t)},this.renderHeadAxis=(t,n="")=>{let{options:r}=this.context,{dateProfile:i}=this.props,o=i.renderRange,s=js(o.start,o.end)===1?Gs(this.context,o.start,"week"):{};return r.weekNumbers&&t==="day"?P(f$,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:o.start,defaultFormat:b8e},l=>P("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},P(l,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s}))):P("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},P("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=t=>{let{options:n,viewApi:r}=this.context,i={text:n.allDayText,view:r};return P(pr,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:S8e,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},o=>P("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",t==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:t}},P(o,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=t=>{this.setState({slatCoords:t})}}renderSimpleLayout(t,n,r){let{context:i,props:o}=this,a=[],s=lv(i.options);return t&&a.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),n&&(a.push({type:"body",key:"all-day",chunk:{content:n}}),a.push({type:"body",key:"all-day-divider",outerContent:P("tr",{role:"presentation",className:"fc-scrollgrid-section"},P("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(i.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:r}}),P(td,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},P(s$,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(t,n,r,i,o,a,s){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:c,props:d}=this,h=!d.forPrint&&lv(c.options),g=!d.forPrint&&AP(c.options),p=[];t&&p.push({type:"header",key:"header",isSticky:h,syncRowHeights:!0,chunks:[{key:"axis",rowContent:v=>P("tr",{role:"presentation"},this.renderHeadAxis("day",v.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),n&&(p.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:v=>P("tr",{role:"presentation"},this.renderTableRowAxis(v.rowSyncHeights[0]))},{key:"cols",content:n}]}),p.push({key:"all-day-divider",type:"body",outerContent:P("tr",{role:"presentation",className:"fc-scrollgrid-section"},P("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));let m=c.options.nowIndicator;return p.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(c.options.expandRows),chunks:[{key:"axis",content:v=>P("div",{className:"fc-timegrid-axis-chunk"},P("table",{"aria-hidden":!0,style:{height:v.expandRows?v.clientHeight:""}},v.tableColGroupNode,P("tbody",null,P(y8e,{slatMetas:a}))),P("div",{className:"fc-timegrid-now-indicator-container"},P(su,{unit:m?"minute":"day"},x=>{let w=m&&s&&s.safeComputeTop(x);return typeof w=="number"?P(u$,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:w},isAxis:!0,date:x}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),g&&p.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:a$},{key:"cols",content:a$}]}),P(td,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:c.viewSpec},P(l,{liquid:!d.isHeightAuto&&!d.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:o}]}],sections:p}))}getAllDayMaxEventProps(){let{dayMaxEvents:t,dayMaxEventRows:n}=this.context.options;return(t===!0||n===!0)&&(t=void 0,n=w8e),{dayMaxEvents:t,dayMaxEventRows:n}}}function S8e(e){return e.text}class $8e{constructor(t,n,r){this.positions=t,this.dateProfile=n,this.slotDuration=r}safeComputeTop(t){let{dateProfile:n}=this;if(Ra(n.currentRange,t)){let r=Bt(t),i=t.valueOf()-r.valueOf();if(i>=co(n.slotMinTime)&&i<co(n.slotMaxTime))return this.computeTimeTop(bt(i))}return null}computeDateTop(t,n){return n||(n=Bt(t)),this.computeTimeTop(bt(t.valueOf()-n.valueOf()))}computeTimeTop(t){let{positions:n,dateProfile:r}=this,i=n.els.length,o=(t.milliseconds-co(r.slotMinTime))/co(this.slotDuration),a,s;return o=Math.max(0,o),o=Math.min(i,o),a=Math.floor(o),a=Math.min(a,i-1),s=o-a,n.tops[a]+n.getHeight(a)*s}}class C8e extends wt{render(){let{props:t,context:n}=this,{options:r}=n,{slatElRefs:i}=t;return P("tbody",null,t.slatMetas.map((o,a)=>{let s={time:o.time,date:n.dateEnv.toDate(o.date),view:n.viewApi};return P("tr",{key:o.key,ref:i.createRef(o.key)},t.axis&&P(eL,Object.assign({},o)),P(pr,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!o.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":o.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class E8e extends wt{constructor(){super(...arguments),this.rootElRef=On(),this.slatElRefs=new jr}render(){let{props:t,context:n}=this;return P("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},P("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,P(C8e,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:t,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new $8e(new Uo(this.rootElRef.current,T8e(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,t.options.slotDuration))}}function T8e(e,t){return t.map(n=>e[n.key])}function Jp(e,t){let n=[],r;for(r=0;r<t;r+=1)n.push([]);if(e)for(r=0;r<e.length;r+=1)n[e[r].col].push(e[r]);return n}function tL(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.col].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}class k8e extends wt{render(){let{props:t}=this;return P(h$,{elClasses:["fc-timegrid-more-link"],elStyle:{top:t.top,bottom:t.bottom},allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:()=>oL(t.hiddenSegs,t),defaultGenerator:A8e},n=>P(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function A8e(e){return e.shortText}function _8e(e,t,n){let r=new X5;t!=null&&(r.strictOrder=t),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(e),o=Y$e(i),a=R8e(r);return a=M8e(a,1),{segRects:N8e(a),hiddenGroups:o}}function R8e(e){const{entriesByLevel:t}=e,n=y$((r,i)=>r+":"+i,(r,i)=>{let o=I8e(e,r,i),a=nL(o,n),s=t[r][i];return[Object.assign(Object.assign({},s),{nextLevelNodes:a[0]}),s.thickness+a[1]]});return nL(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function nL(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=e,o=r,a=[];for(;o<i;)a.push(t(n,o)),o+=1;return a.sort(O8e),[a.map(D8e),a[0][1]]}function O8e(e,t){return t[1]-e[1]}function D8e(e){return e[0]}function I8e(e,t,n){let{levelCoords:r,entriesByLevel:i}=e,o=i[t][n],a=r[t]+o.thickness,s=r.length,l=t;for(;l<s&&r[l]<a;l+=1);for(;l<s;l+=1){let c=i[l],d,h=t$(c,o.span.start,J5),g=h[0]+h[1],p=g;for(;(d=c[p])&&d.span.start<o.span.end;)p+=1;if(g<p)return{level:l,lateralStart:g,lateralEnd:p}}return null}function M8e(e,t){const n=y$((r,i,o)=>jo(r),(r,i,o)=>{let{nextLevelNodes:a,thickness:s}=r,l=s+o,c=s/l,d,h=[];if(!a.length)d=t;else for(let p of a)if(d===void 0){let m=n(p,i,l);d=m[0],h.push(m[1])}else{let m=n(p,d,0);h.push(m[1])}let g=(d-i)*c;return[d-g,Object.assign(Object.assign({},r),{thickness:g,nextLevelNodes:h})]});return e.map(r=>n(r,0,0)[1])}function N8e(e){let t=[];const n=y$((i,o,a)=>jo(i),(i,o,a)=>{let s=Object.assign(Object.assign({},i),{levelCoord:o,stackDepth:a,stackForward:0});return t.push(s),s.stackForward=r(i.nextLevelNodes,o+i.thickness,a+1)+1});function r(i,o,a){let s=0;for(let l of i)s=Math.max(n(l,o,a),s);return s}return r(e,0,0),t}function y$(e,t){const n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}function rL(e,t,n=null,r=0){let i=[];if(n)for(let o=0;o<e.length;o+=1){let a=e[o],s=n.computeDateTop(a.start,t),l=Math.max(s+(r||0),n.computeDateTop(a.end,t));i.push({start:Math.round(s),end:Math.round(l)})}return i}function P8e(e,t,n,r){let i=[],o=[];for(let c=0;c<e.length;c+=1){let d=t[c];d?i.push({index:c,thickness:1,span:d}):o.push(e[c])}let{segRects:a,hiddenGroups:s}=_8e(i,n,r),l=[];for(let c of a)l.push({seg:e[c.index],rect:c});for(let c of o)l.push({seg:c,rect:null});return{segPlacements:l,hiddenGroups:s}}const L8e=Rt({hour:"numeric",minute:"2-digit",meridiem:!1});class iL extends wt{render(){return P(l$,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:L8e}))}}class F8e extends wt{constructor(){super(...arguments),this.sortEventSegs=Le(tv)}render(){let{props:t,context:n}=this,{options:r}=n,i=r.selectMirror,o=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||i&&t.dateSelectionSegs||[],a=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},s=this.sortEventSegs(t.fgEventSegs,r.eventOrder);return P(uv,{elTag:"td",elRef:t.elRef,elClasses:["fc-timegrid-col",...t.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},t.extraDataAttrs),date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraRenderProps:t.extraRenderProps},l=>P("div",{className:"fc-timegrid-col-frame"},P("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(t.businessHourSegs,"non-business"),this.renderFillSegs(t.bgEventSegs,"bg-event"),this.renderFillSegs(t.dateSelectionSegs,"highlight")),P("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,a,!1,!1,!1)),P("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(i))),P("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(t.nowIndicatorSegs)),cv(r)&&P(l,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(t,n,r,i,o){let{props:a}=this;return a.forPrint?oL(t,a):this.renderPositionedFgSegs(t,n,r,i,o)}renderPositionedFgSegs(t,n,r,i,o){let{eventMaxStack:a,eventShortHeight:s,eventOrderStrict:l,eventMinHeight:c}=this.context.options,{date:d,slatCoords:h,eventSelection:g,todayRange:p,nowDate:m}=this.props,v=r||i||o,x=rL(t,d,h,c),{segPlacements:w,hiddenGroups:b}=P8e(t,x,l,a);return P(dt,null,this.renderHiddenGroups(b,t),w.map(S=>{let{seg:$,rect:E}=S,T=$.eventRange.instance.instanceId,k=v||Boolean(!n[T]&&E),A=b$(E&&E.span),I=!v&&E?this.computeSegHStyle(E):{left:0,right:0},D=Boolean(E)&&E.stackForward>0,L=Boolean(E)&&E.span.end-E.span.start<s;return P("div",{className:"fc-timegrid-event-harness"+(D?" fc-timegrid-event-harness-inset":""),key:T,style:Object.assign(Object.assign({visibility:k?"":"hidden"},A),I)},P(iL,Object.assign({seg:$,isDragging:r,isResizing:i,isDateSelecting:o,isSelected:T===g,isShort:L},Ur($,p,m))))}))}renderHiddenGroups(t,n){let{extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:a,eventSelection:s,eventDrag:l,eventResize:c}=this.props;return P(dt,null,t.map(d=>{let h=b$(d.span),g=z8e(d.entries,n);return P(k8e,{key:zN(RP(g)),hiddenSegs:g,top:h.top,bottom:h.bottom,extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:a,eventSelection:s,eventDrag:l,eventResize:c})}))}renderFillSegs(t,n){let{props:r,context:i}=this,a=rL(t,r.date,r.slatCoords,i.options.eventMinHeight).map((s,l)=>{let c=t[l];return P("div",{key:Y5(c.eventRange),className:"fc-timegrid-bg-harness",style:b$(s)},n==="bg-event"?P(c$,Object.assign({seg:c},Ur(c,r.todayRange,r.nowDate))):d$(n))});return P(dt,null,a)}renderNowIndicator(t){let{slatCoords:n,date:r}=this.props;return n?t.map((i,o)=>P(u$,{key:o,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(i.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(t){let{isRtl:n,options:r}=this.context,i=r.slotEventOverlap,o=t.levelCoord,a=t.levelCoord+t.thickness,s,l;i&&(a=Math.min(1,o+(a-o)*2)),n?(s=1-a,l=o):(s=o,l=1-a);let c={zIndex:t.stackDepth+1,left:s*100+"%",right:l*100+"%"};return i&&!t.stackForward&&(c[n?"marginLeft":"marginRight"]=10*2),c}}function oL(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:i,eventResize:o}){let a=(i?i.affectedInstances:null)||(o?o.affectedInstances:null)||{};return P(dt,null,e.map(s=>{let l=s.eventRange.instance.instanceId;return P("div",{key:l,style:{visibility:a[l]?"hidden":""}},P(iL,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===r,isShort:!1},Ur(s,t,n))))}))}function b$(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}function z8e(e,t){return e.map(n=>t[n.index])}class B8e extends wt{constructor(){super(...arguments),this.splitFgEventSegs=Le(Jp),this.splitBgEventSegs=Le(Jp),this.splitBusinessHourSegs=Le(Jp),this.splitNowIndicatorSegs=Le(Jp),this.splitDateSelectionSegs=Le(Jp),this.splitEventDrag=Le(tL),this.splitEventResize=Le(tL),this.rootElRef=On(),this.cellElRefs=new jr}render(){let{props:t,context:n}=this,r=n.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),i=t.cells.length,o=this.splitFgEventSegs(t.fgEventSegs,i),a=this.splitBgEventSegs(t.bgEventSegs,i),s=this.splitBusinessHourSegs(t.businessHourSegs,i),l=this.splitNowIndicatorSegs(t.nowIndicatorSegs,i),c=this.splitDateSelectionSegs(t.dateSelectionSegs,i),d=this.splitEventDrag(t.eventDrag,i),h=this.splitEventResize(t.eventResize,i);return P("div",{className:"fc-timegrid-cols",ref:this.rootElRef},P("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,P("tbody",{role:"presentation"},P("tr",{role:"row"},t.axis&&P("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},P("div",{className:"fc-timegrid-col-frame"},P("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&P(u$,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:t.nowDate})))),t.cells.map((g,p)=>P(F8e,{key:g.key,elRef:this.cellElRefs.createRef(g.key),dateProfile:t.dateProfile,date:g.date,nowDate:t.nowDate,todayRange:t.todayRange,extraRenderProps:g.extraRenderProps,extraDataAttrs:g.extraDataAttrs,extraClassNames:g.extraClassNames,extraDateSpan:g.extraDateSpan,fgEventSegs:o[p],bgEventSegs:a[p],businessHourSegs:s[p],nowIndicatorSegs:l[p],dateSelectionSegs:c[p],eventDrag:d[p],eventResize:h[p],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:t}=this;t.onColCoords&&t.clientWidth!==null&&t.onColCoords(new Uo(this.rootElRef.current,H8e(this.cellElRefs.currentMap,t.cells),!0,!1))}}function H8e(e,t){return t.map(n=>e[n.key])}class U8e extends hr{constructor(){super(...arguments),this.processSlotOptions=Le(j8e),this.state={slatCoords:null},this.handleRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=t=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(t.time){let i=r.computeTimeTop(t.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},this.handleColCoords=t=>{this.colCoords=t},this.handleSlatCoords=t=>{this.setState({slatCoords:t}),this.props.onSlatCoords&&this.props.onSlatCoords(t)}}render(){let{props:t,state:n}=this;return P("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},P(E8e,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),P(B8e,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(t){this.scrollResponder.update(t.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(t,n){let{dateEnv:r,options:i}=this.context,{colCoords:o}=this,{dateProfile:a}=this.props,{slatCoords:s}=this.state,{snapDuration:l,snapsPerSlot:c}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),d=o.leftToIndex(t),h=s.positions.topToIndex(n);if(d!=null&&h!=null){let g=this.props.cells[d],p=s.positions.tops[h],m=s.positions.getHeight(h),v=(n-p)/m,x=Math.floor(v*c),w=h*c+x,b=this.props.cells[d].date,S=$5(a.slotMinTime,USe(l,w)),$=r.add(b,S),E=r.add($,l);return{dateProfile:a,dateSpan:Object.assign({range:{start:$,end:E},allDay:!1},g.extraDateSpan),dayEl:o.els[d],rect:{left:o.lefts[d],right:o.rights[d],top:p,bottom:p+m},layer:0}}return null}}function j8e(e,t){let n=t||e,r=C5(e,n);return r===null&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class W8e extends o${sliceRange(t,n){let r=[];for(let i=0;i<n.length;i+=1){let o=Ho(t,n[i]);o&&r.push({start:o.start,end:o.end,isStart:o.start.valueOf()===t.start.valueOf(),isEnd:o.end.valueOf()===t.end.valueOf(),col:i})}return r}}class V8e extends hr{constructor(){super(...arguments),this.buildDayRanges=Le(G8e),this.slicer=new W8e,this.timeColsRef=On()}render(){let{props:t,context:n}=this,{dateProfile:r,dayTableModel:i}=t,{nowIndicator:o,nextDayThreshold:a}=n.options,s=this.buildDayRanges(i,r,n.dateEnv);return P(su,{unit:o?"minute":"day"},(l,c)=>P(U8e,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(t,r,null,n,s),{forPrint:t.forPrint,axis:t.axis,dateProfile:r,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:i.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:l,nowIndicatorSegs:o&&this.slicer.sliceNowDate(l,r,a,n,s),todayRange:c,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords})))}}function G8e(e,t,n){let r=[];for(let i of e.headerDates)r.push({start:n.add(i,t.slotMinTime),end:n.add(i,t.slotMaxTime)});return r}const aL=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Y8e(e,t,n,r,i){let o=new Date(0),a=e,s=bt(0),l=n||q8e(r),c=[];for(;co(a)<co(t);){let d=i.add(o,a),h=C5(s,l)!==null;c.push({date:d,time:a,key:d.toISOString(),isoTimeStr:n5e(d),isLabeled:h}),a=$5(a,r),s=$5(s,r)}return c}function q8e(e){let t,n,r;for(t=aL.length-1;t>=0;t-=1)if(n=bt(aL[t]),r=C5(n,e),r!==null&&r>1)return n;return e}class Z8e extends x8e{constructor(){super(...arguments),this.buildTimeColsModel=Le(K8e),this.buildSlatMetas=Le(Y8e)}render(){let{options:t,dateEnv:n,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:o}=i,a=this.buildTimeColsModel(o,r),s=this.allDaySplitter.splitProps(i),l=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,t.slotLabelInterval,t.slotDuration,n),{dayMinWidth:c}=t,d=!c,h=c,g=t.dayHeaders&&P(n$,{dates:a.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),p=t.allDaySlot!==!1&&(v=>P(JP,Object.assign({},s.allDay,{dateProfile:o,dayTableModel:a,nextDayThreshold:t.nextDayThreshold,tableMinWidth:v.tableMinWidth,colGroupNode:v.tableColGroupNode,renderRowIntro:d?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:v.clientWidth,clientHeight:v.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),m=v=>P(V8e,Object.assign({},s.timed,{dayTableModel:a,dateProfile:o,axis:d,slotDuration:t.slotDuration,slatMetas:l,forPrint:i.forPrint,tableColGroupNode:v.tableColGroupNode,tableMinWidth:v.tableMinWidth,clientWidth:v.clientWidth,clientHeight:v.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:v.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return h?this.renderHScrollLayout(g,p,m,a.colCnt,c,l,this.state.slatCoords):this.renderSimpleLayout(g,p,m)}}function K8e(e,t){let n=new r$(e.renderRange,t);return new i$(n,!1)}const Q8e={allDaySlot:Boolean};var X8e='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';Wp(X8e);var J8e=Wo({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:Q8e,views:{timeGrid:{component:Z8e,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),eEe=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';Wp(eEe);var tEe=Wo({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:d8e,dateProfileGeneratorClass:p8e},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});function hv(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.row].push(r);return n}function gv(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.firstCol].push(r);return n}function sL(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.row].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}const lL=Rt({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function uL(e){let{display:t}=e.eventRange.ui;return t==="list-item"||t==="auto"&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class cL extends wt{render(){let{props:t}=this;return P(l$,Object.assign({},t,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:lL,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))}}class dL extends wt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,o=r.eventTimeFormat||lL,a=rd(i,o,n,!0,t.defaultDisplayEventEnd);return P(Xp,Object.assign({},t,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:nv(t.seg,n),defaultGenerator:nEe,timeText:a,isResizing:!1,isDateSelecting:!1}))}}function nEe(e){return P(dt,null,P("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&P("div",{className:"fc-event-time"},e.timeText),P("div",{className:"fc-event-title"},e.event.title||P(dt,null," ")))}class rEe extends wt{constructor(){super(...arguments),this.compileSegs=Le(iEe)}render(){let{props:t}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(t.singlePlacements);return P(h$,{elClasses:["fc-daygrid-more-link"],dateProfile:t.dateProfile,todayRange:t.todayRange,allDayDate:t.allDayDate,moreCnt:t.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:t.alignmentElRef,alignGridTop:t.alignGridTop,extraDateSpan:t.extraDateSpan,popoverContent:()=>{let i=(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{};return P(dt,null,n.map(o=>{let a=o.eventRange.instance.instanceId;return P("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:i[a]?"hidden":""}},uL(o)?P(dL,Object.assign({seg:o,isDragging:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Ur(o,t.todayRange))):P(cL,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Ur(o,t.todayRange))))}))}})}}function iEe(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const oEe=Rt({week:"narrow"});class aEe extends hr{constructor(){super(...arguments),this.rootElRef=On(),this.state={dayNumberId:zo()},this.handleRootEl=t=>{Bo(this.rootElRef,t),Bo(this.props.elRef,t)}}render(){let{context:t,props:n,state:r,rootElRef:i}=this,{options:o,dateEnv:a}=t,{date:s,dateProfile:l}=n;const c=n.showDayNumber&&lEe(s,l.currentRange,a);return P(uv,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:sEe,date:s,dateProfile:l,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(d,h)=>P("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&P(f$,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Gs(t,s,"week"),date:s,defaultFormat:oEe}),!h.isDisabled&&(n.showDayNumber||cv(o)||n.forceDayTop)?P("div",{className:"fc-daygrid-day-top"},P(d,{elTag:"a",elClasses:["fc-daygrid-day-number",c&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Gs(t,s)),{id:r.dayNumberId})})):n.showDayNumber?P("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},P("a",{className:"fc-daygrid-day-number"}," ")):void 0,P("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,P("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},P(rEe,{allDayDate:s,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),P("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function sEe(e){return e.dayNumberText||P(dt,null," ")}function lEe(e,t,n){const{start:r,end:i}=t,o=Us(i,-1),a=n.getYear(r),s=n.getMonth(r),l=n.getYear(o),c=n.getMonth(o);return!(a===l&&s===c)&&Boolean(e.valueOf()===r.valueOf()||n.getDay(e)===1&&e.valueOf()<i.valueOf())}function uEe(e,t,n,r,i,o,a){let s=new fEe;s.allowReslicing=!0,s.strictOrder=r,t===!0||n===!0?(s.maxCoord=o,s.hiddenConsumes=!0):typeof t=="number"?s.maxStackCnt=t:typeof n=="number"&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let l=[],c=[];for(let w=0;w<e.length;w+=1){let b=e[w],{instanceId:S}=b.eventRange.instance,$=i[S];$!=null?l.push({index:w,thickness:$,span:{start:b.firstCol,end:b.lastCol+1}}):c.push(b)}let d=s.addSegs(l),h=s.toRects(),{singleColPlacements:g,multiColPlacements:p,leftoverMargins:m}=cEe(h,e,a),v=[],x=[];for(let w of c){p[w.firstCol].push({seg:w,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let b=w.firstCol;b<=w.lastCol;b+=1)g[b].push({seg:od(w,b,b+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let w=0;w<a.length;w+=1)v.push(0);for(let w of d){let b=e[w.index],S=w.span;p[S.start].push({seg:od(b,S.start,S.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let $=S.start;$<S.end;$+=1)v[$]+=1,g[$].push({seg:od(b,$,$+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let w=0;w<a.length;w+=1)x.push(m[w]);return{singleColPlacements:g,multiColPlacements:p,moreCnts:v,moreMarginTops:x}}function cEe(e,t,n){let r=dEe(e,n.length),i=[],o=[],a=[];for(let s=0;s<n.length;s+=1){let l=r[s],c=[],d=0,h=0;for(let p of l){let m=t[p.index];c.push({seg:od(m,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:p.levelCoord-d}),d=p.levelCoord+p.thickness}let g=[];d=0,h=0;for(let p of l){let m=t[p.index],v=p.span.end-p.span.start>1,x=p.span.start===s;h+=p.levelCoord-d,d=p.levelCoord+p.thickness,v?(h+=p.thickness,x&&g.push({seg:od(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:p.levelCoord,marginTop:0})):x&&(g.push({seg:od(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:h}),h=0)}i.push(c),o.push(g),a.push(h)}return{singleColPlacements:i,multiColPlacements:o,leftoverMargins:a}}function dEe(e,t){let n=[];for(let r=0;r<t;r+=1)n.push([]);for(let r of e)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function od(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,o=i.range,a=Ho(o,{start:r[t].date,end:vn(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:a},isStart:e.isStart&&a.start.valueOf()===o.start.valueOf(),isEnd:e.isEnd&&a.end.valueOf()===o.end.valueOf()})}class fEe extends X5{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(t){const n=super.addSegs(t),{entriesByLevel:r}=this,i=o=>!this.forceHidden[jo(o)];for(let o=0;o<r.length;o+=1)r[o]=r[o].filter(i);return n}handleInvalidInsertion(t,n,r){const{entriesByLevel:i,forceHidden:o}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:l}=t;if(this.hiddenConsumes&&a){const c=jo(a);if(!o[c])if(this.allowReslicing){const d=Object.assign(Object.assign({},a),{span:ov(a.span,n.span)}),h=jo(d);o[h]=!0,i[s][l]=d,this.splitEntry(a,n,r)}else o[c]=!0,r.push(a)}return super.handleInvalidInsertion(t,n,r)}}class fL extends hr{constructor(){super(...arguments),this.cellElRefs=new jr,this.frameElRefs=new jr,this.fgElRefs=new jr,this.segHarnessRefs=new jr,this.rootElRef=On(),this.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},this.handleResize=t=>{t&&this.updateSizing(!0)}}render(){let{props:t,state:n,context:r}=this,{options:i}=r,o=t.cells.length,a=gv(t.businessHourSegs,o),s=gv(t.bgEventSegs,o),l=gv(this.getHighlightSegs(),o),c=gv(this.getMirrorSegs(),o),{singleColPlacements:d,multiColPlacements:h,moreCnts:g,moreMarginTops:p}=uEe(tv(t.fgEventSegs,i.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,i.eventOrderStrict,n.eventInstanceHeights,n.maxContentHeight,t.cells),m=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return P("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map((v,x)=>{let w=this.renderFgSegs(x,t.forPrint?d[x]:h[x],t.todayRange,m),b=this.renderFgSegs(x,pEe(c[x],h),t.todayRange,{},Boolean(t.eventDrag),Boolean(t.eventResize),!1);return P(aEe,{key:v.key,elRef:this.cellElRefs.createRef(v.key),innerElRef:this.frameElRefs.createRef(v.key),dateProfile:t.dateProfile,date:v.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&x===0,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraRenderProps:v.extraRenderProps,extraDataAttrs:v.extraDataAttrs,extraClassNames:v.extraClassNames,extraDateSpan:v.extraDateSpan,moreCnt:g[x],moreMarginTop:p[x],singlePlacements:d[x],fgContentElRef:this.fgElRefs.createRef(v.key),fgContent:P(dt,null,P(dt,null,w),P(dt,null,b)),bgContent:P(dt,null,this.renderFillSegs(l[x],"highlight"),this.renderFillSegs(a[x],"non-business"),this.renderFillSegs(s[x],"bg-event")),minHeight:t.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(t,n){let r=this.props;this.updateSizing(!ci(t,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:t}=this;return t.eventDrag&&t.eventDrag.segs.length?t.eventDrag.segs:t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:t.dateSelectionSegs}getMirrorSegs(){let{props:t}=this;return t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:[]}renderFgSegs(t,n,r,i,o,a,s){let{context:l}=this,{eventSelection:c}=this.props,{framePositions:d}=this.state,h=this.props.cells.length===1,g=o||a||s,p=[];if(d)for(let m of n){let{seg:v}=m,{instanceId:x}=v.eventRange.instance,w=x+":"+t,b=m.isVisible&&!i[x],S=m.isAbsolute,$="",E="";S&&(l.isRtl?(E=0,$=d.lefts[v.lastCol]-d.lefts[v.firstCol]):($=0,E=d.rights[v.firstCol]-d.rights[v.lastCol])),p.push(P("div",{className:"fc-daygrid-event-harness"+(S?" fc-daygrid-event-harness-abs":""),key:w,ref:g?null:this.segHarnessRefs.createRef(w),style:{visibility:b?"":"hidden",marginTop:S?"":m.marginTop,top:S?m.absoluteTop:"",left:$,right:E}},uL(v)?P(dL,Object.assign({seg:v,isDragging:o,isSelected:x===c,defaultDisplayEventEnd:h},Ur(v,r))):P(cL,Object.assign({seg:v,isDragging:o,isResizing:a,isDateSelecting:s,isSelected:x===c,defaultDisplayEventEnd:h},Ur(v,r)))))}return p}renderFillSegs(t,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:o}=this.state,a=[];if(o)for(let s of t){let l=r?{right:0,left:o.lefts[s.lastCol]-o.lefts[s.firstCol]}:{left:0,right:o.rights[s.firstCol]-o.rights[s.lastCol]};a.push(P("div",{key:Y5(s.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?P(c$,Object.assign({seg:s},Ur(s,i))):d$(n)))}return P(dt,{},...a)}updateSizing(t){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(t){let l=n.cells.map(c=>i.currentMap[c.key]);if(l.length){let c=this.rootElRef.current,d=new Uo(c,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(d))&&this.setState({framePositions:new Uo(c,l,!0,!1)})}}const o=this.state.eventInstanceHeights,a=this.queryEventInstanceHeights(),s=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({eventInstanceHeights:Object.assign(Object.assign({},o),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}queryEventInstanceHeights(){let t=this.segHarnessRefs.currentMap,n={};for(let r in t){let i=Math.round(t[r].getBoundingClientRect().height),o=r.split(":")[0];n[o]=Math.max(n[o]||0,i)}return n}computeMaxContentHeight(){let t=this.props.cells[0].key,n=this.cellElRefs.currentMap[t],r=this.fgElRefs.currentMap[t];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let t=this.cellElRefs.currentMap;return this.props.cells.map(n=>t[n.key])}}fL.addStateEquality({eventInstanceHeights:ci});function pEe(e,t){if(!e.length)return[];let n=hEe(t);return e.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function hEe(e){let t={};for(let n of e)for(let r of n)t[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return t}class gEe extends hr{constructor(){super(...arguments),this.splitBusinessHourSegs=Le(hv),this.splitBgEventSegs=Le(hv),this.splitFgEventSegs=Le(hv),this.splitDateSelectionSegs=Le(hv),this.splitEventDrag=Le(sL),this.splitEventResize=Le(sL),this.rowRefs=new jr}render(){let{props:t,context:n}=this,r=t.cells.length,i=this.splitBusinessHourSegs(t.businessHourSegs,r),o=this.splitBgEventSegs(t.bgEventSegs,r),a=this.splitFgEventSegs(t.fgEventSegs,r),s=this.splitDateSelectionSegs(t.dateSelectionSegs,r),l=this.splitEventDrag(t.eventDrag,r),c=this.splitEventResize(t.eventResize,r),d=r>=7&&t.clientWidth?t.clientWidth/n.options.aspectRatio/6:null;return P(su,{unit:"day"},(h,g)=>P(dt,null,t.cells.map((p,m)=>P(fL,{ref:this.rowRefs.createRef(m),key:p.length?p[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:t.showWeekNumbers,todayRange:g,dateProfile:t.dateProfile,cells:p,renderIntro:t.renderRowIntro,businessHourSegs:i[m],eventSelection:t.eventSelection,bgEventSegs:o[m].filter(mEe),fgEventSegs:a[m],dateSelectionSegs:s[m],eventDrag:l[m],eventResize:c[m],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:d,forPrint:t.forPrint}))))}componentDidMount(){const t=this.rowRefs.currentMap[0].getCellEls()[0];this.rootEl=t?t.closest(".fc-daygrid-body"):null,this.rootEl&&this.context.registerInteractiveComponent(this,{el:this.rootEl,isHitComboAllowed:this.props.isHitComboAllowed})}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Uo(this.rootEl,this.rowRefs.collect().map(t=>t.getCellEls()[0]),!1,!0),this.colPositions=new Uo(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(t,n){let{colPositions:r,rowPositions:i}=this,o=r.leftToIndex(t),a=i.topToIndex(n);if(a!=null&&o!=null){let s=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:r.lefts[o],right:r.rights[o],top:i.tops[a],bottom:i.bottoms[a]},layer:0}}return null}getCellEl(t,n){return this.rowRefs.currentMap[t].getCellEls()[n]}getCellRange(t,n){let r=this.props.cells[t][n].date,i=vn(r,1);return{start:r,end:i}}}function mEe(e){return e.eventRange.def.allDay}class vEe extends o${constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(t,n){return n.sliceRange(t)}}class yEe extends L5{buildRenderRange(t,n,r){let i=super.buildRenderRange(t,n,r),{props:o}=this;return pL({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}}function pL(e){let{dateEnv:t,currentRange:n}=e,{start:r,end:i}=n,o;if(e.snapToWeek&&(r=t.startOfWeek(r),o=t.startOfWeek(i),o.valueOf()!==i.valueOf()&&(i=j1(o,1))),e.fixedWeekCount){let a=t.startOfWeek(t.startOfMonth(vn(n.end,-1))),s=Math.ceil(NN(a,i));i=j1(i,6-s)}return{start:r,end:i}}function bEe(e,t){let n=new r$(e.renderRange,t);return new i$(n,/year|month|week/.test(e.currentRangeUnit))}class wEe extends hr{constructor(){super(...arguments),this.buildDayTableModel=Le(bEe),this.slicer=new vEe,this.state={labelId:zo()}}render(){const{props:t,state:n,context:r}=this,{dateProfile:i,forPrint:o}=t,{options:a}=r,s=this.buildDayTableModel(i,r.dateProfileGenerator),l=this.slicer.sliceProps(t,i,a.nextDayThreshold,r,s),c=t.tableWidth!=null?t.tableWidth/a.aspectRatio:null,d=s.cells.length,h=c!=null?c/d:null;return P("div",{ref:t.elRef,"data-date":t.isoDateStr,className:"fc-multimonth-month",style:{width:t.width},role:"grid","aria-labelledby":n.labelId},P("div",{className:"fc-multimonth-header",style:{marginBottom:h},role:"presentation"},P("div",{className:"fc-multimonth-title",id:n.labelId},r.dateEnv.format(t.dateProfile.currentRange.start,t.titleFormat)),P("table",{className:["fc-multimonth-header-table",r.theme.getClass("table")].join(" "),role:"presentation"},P("thead",{role:"rowgroup"},P(n$,{dateProfile:t.dateProfile,dates:s.headerDates,datesRepDistinctDays:!1})))),P("div",{className:["fc-multimonth-daygrid","fc-daygrid","fc-daygrid-body",!o&&"fc-daygrid-body-balanced",o&&"fc-daygrid-body-unbalanced",o&&"fc-daygrid-body-natural"].join(" "),style:{marginTop:-h}},P("table",{className:["fc-multimonth-daygrid-table",r.theme.getClass("table")].join(" "),style:{height:o?"":c},role:"presentation"},P("tbody",{role:"rowgroup"},P(gEe,Object.assign({},l,{dateProfile:i,cells:s.cells,eventSelection:t.eventSelection,dayMaxEvents:!o,dayMaxEventRows:!o,showWeekNumbers:a.weekNumbers,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:o}))))))}}class xEe extends hr{constructor(){super(...arguments),this.splitDateProfileByMonth=Le($Ee),this.buildMonthFormat=Le(TEe),this.scrollElRef=On(),this.firstMonthElRef=On(),this.needsScrollReset=!1,this.handleSizing=t=>{t&&this.updateSize()}}render(){const{context:t,props:n,state:r}=this,{options:i}=t,{clientWidth:o,clientHeight:a}=r,s=r.monthHPadding||0,l=Math.min(o!=null?Math.floor(o/(i.multiMonthMinWidth+s)):1,i.multiMonthMaxColumns)||1,c=100/l+"%",d=o==null?null:o/l-s,h=o!=null&&l===1,g=this.splitDateProfileByMonth(t.dateProfileGenerator,n.dateProfile,t.dateEnv,h?!1:i.fixedWeekCount,i.showNonCurrentDates),p=this.buildMonthFormat(i.multiMonthTitleFormat,g),m=["fc-multimonth",h?"fc-multimonth-singlecol":"fc-multimonth-multicol",d!=null&&d<400?"fc-multimonth-compact":""];return P(td,{elRef:this.scrollElRef,elClasses:m,viewSpec:t.viewSpec},g.map((v,x)=>{const w=k5(v.currentRange.start);return P(wEe,Object.assign({},n,{key:w,isoDateStr:w,elRef:x===0?this.firstMonthElRef:void 0,titleFormat:p,dateProfile:v,width:c,tableWidth:d,clientWidth:o,clientHeight:a}))}))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}componentDidUpdate(t){ci(t,this.props)||this.handleSizing(!1),t.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}updateSize(){const t=this.scrollElRef.current,n=this.firstMonthElRef.current;t&&this.setState({clientWidth:t.clientWidth,clientHeight:t.clientHeight}),n&&t&&this.state.monthHPadding==null&&this.setState({monthHPadding:t.clientWidth-n.firstChild.offsetWidth})}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.state.monthHPadding!=null){const{currentDate:t}=this.props.dateProfile,n=this.scrollElRef.current,r=n.querySelector(`[data-date="${k5(t)}"]`);n.scrollTop=r.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}shouldComponentUpdate(){return!0}}const SEe=bt(1,"month");function $Ee(e,t,n,r,i){const{start:o,end:a}=t.currentRange;let s=o;const l=[];for(;s.valueOf()<a.valueOf();){const c=n.add(s,SEe),d={start:e.skipHiddenDays(s),end:e.skipHiddenDays(c,-1,!0)};let h=pL({currentRange:d,snapToWeek:!0,fixedWeekCount:r,dateEnv:n});h={start:e.skipHiddenDays(h.start),end:e.skipHiddenDays(h.end,-1,!0)};const g=t.activeRange?Ho(t.activeRange,i?h:d):null;l.push({currentDate:t.currentDate,isValid:t.isValid,validRange:t.validRange,renderRange:h,activeRange:g,currentRange:d,currentRangeUnit:"month",isRangeAllDay:!0,dateIncrement:t.dateIncrement,slotMinTime:t.slotMaxTime,slotMaxTime:t.slotMinTime}),s=c}return l}const CEe=Rt({year:"numeric",month:"long"}),EEe=Rt({month:"long"});function TEe(e,t){return e||(t[0].currentRange.start.getUTCFullYear()!==t[t.length-1].currentRange.start.getUTCFullYear()?CEe:EEe)}const kEe={multiMonthTitleFormat:Rt,multiMonthMaxColumns:Number,multiMonthMinWidth:Number};var AEe=".fc .fc-multimonth{border:1px solid var(--fc-border-color);display:flex;flex-wrap:wrap;overflow-x:hidden;overflow-y:auto}.fc .fc-multimonth-title{font-size:1.2em;font-weight:700;padding:1em 0;text-align:center}.fc .fc-multimonth-daygrid{background:var(--fc-page-bg-color)}.fc .fc-multimonth-daygrid-table,.fc .fc-multimonth-header-table{table-layout:fixed;width:100%}.fc .fc-multimonth-daygrid-table{border-top-style:hidden!important}.fc .fc-multimonth-singlecol .fc-multimonth{position:relative}.fc .fc-multimonth-singlecol .fc-multimonth-header{background:var(--fc-page-bg-color);position:relative;top:0;z-index:2}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid{position:relative;z-index:1}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid-table,.fc .fc-multimonth-singlecol .fc-multimonth-header-table{border-left-style:hidden;border-right-style:hidden}.fc .fc-multimonth-singlecol .fc-multimonth-month:last-child .fc-multimonth-daygrid-table{border-bottom-style:hidden}.fc .fc-multimonth-multicol{line-height:1}.fc .fc-multimonth-multicol .fc-multimonth-month{padding:0 1.2em 1.2em}.fc .fc-multimonth-multicol .fc-daygrid-more-link{border:1px solid var(--fc-event-border-color);display:block;float:none;padding:1px}.fc .fc-multimonth-compact{line-height:1}.fc .fc-multimonth-compact .fc-multimonth-daygrid-table,.fc .fc-multimonth-compact .fc-multimonth-header-table{font-size:.9em}.fc-media-screen .fc-multimonth-singlecol .fc-multimonth-header{position:sticky}.fc-media-print .fc-multimonth{overflow:visible}";Wp(AEe);var _Ee=Wo({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:kEe,views:{multiMonth:{component:xEe,dateProfileGeneratorClass:yEe,multiMonthMinWidth:350,multiMonthMaxColumns:3},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}}),REe={code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Heeldag",moreLinkText:"Addisionele",noEventsText:"Daar is geen gebeurtenisse nie"},OEe={code:"ar-dz",week:{dow:0,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},DEe={code:"ar-kw",week:{dow:0,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},IEe={code:"ar-ly",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},MEe={code:"ar-ma",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},NEe={code:"ar-sa",week:{dow:0,doy:6},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},PEe={code:"ar-tn",week:{dow:1,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},LEe={code:"ar",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},FEe={code:"az",week:{dow:1,doy:4},buttonText:{prev:"Əvvəl",next:"Sonra",today:"Bu Gün",year:"Il",month:"Ay",week:"Həftə",day:"Gün",list:"Gündəm"},weekText:"Həftə",allDayText:"Bütün Gün",moreLinkText(e){return"+ daha çox "+e},noEventsText:"Göstərmək üçün hadisə yoxdur"},zEe={code:"bg",week:{dow:1,doy:7},buttonText:{prev:"назад",next:"напред",today:"днес",year:"година",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",moreLinkText(e){return"+още "+e},noEventsText:"Няма събития за показване"},BEe={code:"bn",week:{dow:0,doy:6},buttonText:{prev:"পেছনে",next:"সামনে",today:"আজ",year:"বছর",month:"মাস",week:"সপ্তাহ",day:"দিন",list:"তালিকা"},weekText:"সপ্তাহ",allDayText:"সারাদিন",moreLinkText(e){return"+অন্যান্য "+e},noEventsText:"কোনো ইভেন্ট নেই"},HEe={code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Prošli",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekText:"Sed",allDayText:"Cijeli dan",moreLinkText(e){return"+ još "+e},noEventsText:"Nema događaja za prikazivanje"},UEe={code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",year:"Curs",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekText:"Set",allDayText:"Tot el dia",moreLinkText:"més",noEventsText:"No hi ha esdeveniments per mostrar"},jEe={code:"cs",week:{dow:1,doy:4},buttonText:{prev:"Dříve",next:"Později",today:"Nyní",year:"Rok",month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},weekText:"Týd",allDayText:"Celý den",moreLinkText(e){return"+další: "+e},noEventsText:"Žádné akce k zobrazení"},WEe={code:"cy",week:{dow:1,doy:4},buttonText:{prev:"Blaenorol",next:"Nesaf",today:"Heddiw",year:"Blwyddyn",month:"Mis",week:"Wythnos",day:"Dydd",list:"Rhestr"},weekText:"Wythnos",allDayText:"Trwy'r dydd",moreLinkText:"Mwy",noEventsText:"Dim digwyddiadau"},VEe={code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Næste",today:"I dag",year:"År",month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},weekText:"Uge",allDayText:"Hele dagen",moreLinkText:"flere",noEventsText:"Ingen arrangementer at vise"};function w$(e){return e==="Tag"||e==="Monat"?"r":e==="Jahr"?"s":""}var GEe={code:"de-at",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev(e){return`Vorherige${w$(e)} ${e}`},next(e){return`Nächste${w$(e)} ${e}`},today(e){return e==="Tag"?"Heute":`Diese${w$(e)} ${e}`}},viewHint(e){return e+(e==="Woche"?"n":e==="Monat"?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint(e){return"Zeige "+(e===1?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"};function x$(e){return e==="Tag"||e==="Monat"?"r":e==="Jahr"?"s":""}var YEe={code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev(e){return`Vorherige${x$(e)} ${e}`},next(e){return`Nächste${x$(e)} ${e}`},today(e){return e==="Tag"?"Heute":`Diese${x$(e)} ${e}`}},viewHint(e){return e+(e==="Woche"?"n":e==="Monat"?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint(e){return"Zeige "+(e===1?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"},qEe={code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",year:"Ετος",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekText:"Εβδ",allDayText:"Ολοήμερο",moreLinkText:"περισσότερα",noEventsText:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},ZEe={code:"en-au",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},KEe={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},QEe={code:"en-nz",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},XEe={code:"eo",week:{dow:1,doy:4},buttonText:{prev:"Antaŭa",next:"Sekva",today:"Hodiaŭ",year:"Jaro",month:"Monato",week:"Semajno",day:"Tago",list:"Tagordo"},weekText:"Sm",allDayText:"Tuta tago",moreLinkText:"pli",noEventsText:"Neniuj eventoj por montri"},JEe={code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekText:"Sm",allDayText:"Todo el día",moreLinkText:"más",noEventsText:"No hay eventos para mostrar"},eTe={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today(e){return e==="Día"?"Hoy":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"de la":"del")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint(e){return`Mostrar ${e} eventos más`},noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},tTe={code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"Järgnev",today:"Täna",year:"Aasta",month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},weekText:"näd",allDayText:"Kogu päev",moreLinkText(e){return"+ veel "+e},noEventsText:"Kuvamiseks puuduvad sündmused"},nTe={code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",year:"Urtea",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekText:"As",allDayText:"Egun osoa",moreLinkText:"gehiago",noEventsText:"Ez dago ekitaldirik erakusteko"},rTe={code:"fa",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"قبلی",next:"بعدی",today:"امروز",year:"سال",month:"ماه",week:"هفته",day:"روز",list:"برنامه"},weekText:"هف",allDayText:"تمام روز",moreLinkText(e){return"بیش از "+e},noEventsText:"هیچ رویدادی به نمایش"},iTe={code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"Tänään",year:"Vuosi",month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},weekText:"Vk",allDayText:"Koko päivä",moreLinkText:"lisää",noEventsText:"Ei näytettäviä tapahtumia"},oTe={code:"fr",buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},aTe={code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Courant",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sm",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},sTe={code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},lTe={code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",year:"Ano",month:"Mes",week:"Semana",day:"Día",list:"Axenda"},buttonHints:{prev:"$0 antes",next:"$0 seguinte",today(e){return e==="Día"?"Hoxe":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"da":"do")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo o día",moreLinkText:"máis",moreLinkHint(e){return`Amosar ${e} eventos máis`},noEventsText:"Non hai eventos para amosar",navLinkHint:"Ir ao $0",closeHint:"Pechar",timeHint:"A hora",eventHint:"Evento"},uTe={code:"he",direction:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",year:"שנה",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",moreLinkText:"אחר",noEventsText:"אין אירועים להצגה",weekText:"שבוע"},cTe={code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",year:"वर्ष",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekText:"हफ्ता",allDayText:"सभी दिन",moreLinkText(e){return"+अधिक "+e},noEventsText:"कोई घटनाओं को प्रदर्शित करने के लिए"},dTe={code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prijašnji",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekText:"Tje",allDayText:"Cijeli dan",moreLinkText(e){return"+ još "+e},noEventsText:"Nema događaja za prikaz"},fTe={code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"előre",today:"ma",year:"Év",month:"Hónap",week:"Hét",day:"Nap",list:"Lista"},weekText:"Hét",allDayText:"Egész nap",moreLinkText:"további",noEventsText:"Nincs megjeleníthető esemény"},pTe={code:"hy-am",week:{dow:1,doy:4},buttonText:{prev:"Նախորդ",next:"Հաջորդ",today:"Այսօր",year:"Տարի",month:"Ամիս",week:"Շաբաթ",day:"Օր",list:"Օրվա ցուցակ"},weekText:"Շաբ",allDayText:"Ամբողջ օր",moreLinkText(e){return"+ ևս "+e},noEventsText:"Բացակայում է իրադարձությունը ցուցադրելու"},hTe={code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sehari penuh",moreLinkText:"lebih",noEventsText:"Tidak ada acara untuk ditampilkan"},gTe={code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"Næsti",today:"Í dag",year:"Ár",month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},weekText:"Vika",allDayText:"Allan daginn",moreLinkText:"meira",noEventsText:"Engir viðburðir til að sýna"},mTe={code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",year:"Anno",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText(e){return"+altri "+e},noEventsText:"Non ci sono eventi da visualizzare"},vTe={code:"ja",buttonText:{prev:"前",next:"次",today:"今日",year:"年",month:"月",week:"週",day:"日",list:"予定リスト"},weekText:"週",allDayText:"終日",moreLinkText(e){return"他 "+e+" 件"},noEventsText:"表示する予定はありません"},yTe={code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",year:"წელიწადი",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekText:"კვ",allDayText:"მთელი დღე",moreLinkText(e){return"+ კიდევ "+e},noEventsText:"ღონისძიებები არ არის"},bTe={code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",year:"Жыл",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekText:"Не",allDayText:"Күні бойы",moreLinkText(e){return"+ тағы "+e},noEventsText:"Көрсету үшін оқиғалар жоқ"},wTe={code:"km",week:{dow:1,doy:4},buttonText:{prev:"មុន",next:"បន្ទាប់",today:"ថ្ងៃនេះ",year:"ឆ្នាំ",month:"ខែ",week:"សប្តាហ៍",day:"ថ្ងៃ",list:"បញ្ជី"},weekText:"សប្តាហ៍",allDayText:"ពេញមួយថ្ងៃ",moreLinkText:"ច្រើនទៀត",noEventsText:"គ្មានព្រឹត្តិការណ៍ត្រូវបង្ហាញ"},xTe={code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",year:"년도",month:"월",week:"주",day:"일",list:"일정목록"},weekText:"주",allDayText:"종일",moreLinkText:"개",noEventsText:"일정이 없습니다"},STe={code:"ku",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"پێشتر",next:"دواتر",today:"ئەمڕو",year:"ساڵ",month:"مانگ",week:"هەفتە",day:"ڕۆژ",list:"بەرنامە"},weekText:"هەفتە",allDayText:"هەموو ڕۆژەکە",moreLinkText:"زیاتر",noEventsText:"هیچ ڕووداوێك نیە"},$Te={code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zréck",next:"Weider",today:"Haut",year:"Joer",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekText:"W",allDayText:"Ganzen Dag",moreLinkText:"méi",noEventsText:"Nee Evenementer ze affichéieren"},CTe={code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"Šiandien",year:"Metai",month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},weekText:"SAV",allDayText:"Visą dieną",moreLinkText:"daugiau",noEventsText:"Nėra įvykių rodyti"},ETe={code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"Nāk.",today:"Šodien",year:"Gads",month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},weekText:"Ned.",allDayText:"Visu dienu",moreLinkText(e){return"+vēl "+e},noEventsText:"Nav notikumu"},TTe={code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",year:"година",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekText:"Сед",allDayText:"Цел ден",moreLinkText(e){return"+повеќе "+e},noEventsText:"Нема настани за прикажување"},kTe={code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sepanjang hari",moreLinkText(e){return"masih ada "+e+" acara"},noEventsText:"Tiada peristiwa untuk dipaparkan"},ATe={code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",year:"År",month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},weekText:"Uke",weekTextLong:"Uke",allDayText:"Hele dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise",buttonHints:{prev:"Forrige $0",next:"Neste $0",today:"Nåværende $0"},viewHint:"$0 visning",navLinkHint:"Gå til $0",moreLinkHint(e){return`Vis ${e} flere hendelse${e===1?"":"r"}`}},_Te={code:"ne",week:{dow:7,doy:1},buttonText:{prev:"अघिल्लो",next:"अर्को",today:"आज",year:"वर्ष",month:"महिना",week:"हप्ता",day:"दिन",list:"सूची"},weekText:"हप्ता",allDayText:"दिनभरि",moreLinkText:"थप लिंक",noEventsText:"देखाउनको लागि कुनै घटनाहरू छैनन्"},RTe={code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",moreLinkText:"extra",noEventsText:"Geen evenementen om te laten zien"},OTe={code:"nn",week:{dow:1,doy:4},buttonText:{prev:"Førre",next:"Neste",today:"I dag",year:"År",month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},weekText:"Veke",allDayText:"Heile dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise"},DTe={code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",year:"Rok",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"},ITe={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today(e){return e==="Dia"?"Hoje":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Visualizar "+(e==="Semana"?"a":"o")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText(e){return"mais +"+e},moreLinkHint(e){return`Mostrar mais ${e} eventos`},noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"},MTe={code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",year:"Ano",month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},weekText:"Sem",allDayText:"Todo o dia",moreLinkText:"mais",noEventsText:"Não há eventos para mostrar"},NTe={code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedentă",next:"următoare",today:"Azi",year:"An",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},weekText:"Săpt",allDayText:"Toată ziua",moreLinkText(e){return"+alte "+e},noEventsText:"Nu există evenimente de afișat"},PTe={code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",year:"Год",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText(e){return"+ ещё "+e},noEventsText:"Нет событий для отображения"},LTe={code:"si-lk",week:{dow:1,doy:4},buttonText:{prev:"පෙර",next:"පසු",today:"අද",year:"අවුරුදු",month:"මාසය",week:"සතිය",day:"දවස",list:"ලැයිස්තුව"},weekText:"සති",allDayText:"සියලු",moreLinkText:"තවත්",noEventsText:"මුකුත් නැත"},FTe={code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predchádzajúci",next:"Nasledujúci",today:"Dnes",year:"Rok",month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},weekText:"Ty",allDayText:"Celý deň",moreLinkText(e){return"+ďalšie: "+e},noEventsText:"Žiadne akcie na zobrazenie"},zTe={code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prejšnji",next:"Naslednji",today:"Trenutni",year:"Leto",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekText:"Teden",allDayText:"Ves dan",moreLinkText:"več",noEventsText:"Ni dogodkov za prikaz"},BTe={code:"sm",buttonText:{prev:"Talu ai",next:"Mulimuli atu",today:"Aso nei",year:"Tausaga",month:"Masina",week:"Vaiaso",day:"Aso",list:"Faasologa"},weekText:"Vaiaso",allDayText:"Aso atoa",moreLinkText:"sili atu",noEventsText:"Leai ni mea na tutupu"},HTe={code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"Përpara",today:"Sot",year:"Viti",month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},weekText:"Ja",allDayText:"Gjithë ditën",moreLinkText(e){return"+më tepër "+e},noEventsText:"Nuk ka evente për të shfaqur"},UTe={code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",year:"Година",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekText:"Сед",allDayText:"Цео дан",moreLinkText(e){return"+ још "+e},noEventsText:"Нема догађаја за приказ"},jTe={code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledeći",today:"Danas",year:"Godina",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},weekText:"Sed",allDayText:"Cеo dan",moreLinkText(e){return"+ još "+e},noEventsText:"Nеma događaja za prikaz"},WTe={code:"sv",week:{dow:1,doy:4},buttonText:{prev:"Förra",next:"Nästa",today:"Idag",year:"År",month:"Månad",week:"Vecka",day:"Dag",list:"Program"},buttonHints:{prev(e){return`Föregående ${e.toLocaleLowerCase()}`},next(e){return`Nästa ${e.toLocaleLowerCase()}`},today(e){return(e==="Program"?"Detta":"Denna")+" "+e.toLocaleLowerCase()}},viewHint:"$0 vy",navLinkHint:"Gå till $0",moreLinkHint(e){return`Visa ytterligare ${e} händelse${e===1?"":"r"}`},weekText:"v.",weekTextLong:"Vecka",allDayText:"Heldag",moreLinkText:"till",noEventsText:"Inga händelser att visa",closeHint:"Stäng",timeHint:"Klockan",eventHint:"Händelse"},VTe={code:"ta-in",week:{dow:1,doy:4},buttonText:{prev:"முந்தைய",next:"அடுத்தது",today:"இன்று",year:"ஆண்டு",month:"மாதம்",week:"வாரம்",day:"நாள்",list:"தினசரி அட்டவணை"},weekText:"வாரம்",allDayText:"நாள் முழுவதும்",moreLinkText(e){return"+ மேலும் "+e},noEventsText:"காண்பிக்க நிகழ்வுகள் இல்லை"},GTe={code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekText:"สัปดาห์",allDayText:"ตลอดวัน",moreLinkText:"เพิ่มเติม",noEventsText:"ไม่มีกิจกรรมที่จะแสดง"},YTe={code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bugün",year:"Yıl",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},weekText:"Hf",allDayText:"Tüm gün",moreLinkText:"daha fazla",noEventsText:"Gösterilecek etkinlik yok"},qTe={code:"ug",buttonText:{prev:"ئالدىنقى",next:"كېيىنكى",today:"بۈگۈن",year:"يىل",month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},ZTe={code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",year:"рік",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekText:"Тиж",allDayText:"Увесь день",moreLinkText(e){return"+ще "+e+"..."},noEventsText:"Немає подій для відображення"},KTe={code:"uz-cy",week:{dow:1,doy:4},buttonText:{prev:"Олин",next:"Кейин",today:"Бугун",month:"Ой",week:"Ҳафта",day:"Кун",list:"Кун тартиби"},weekText:"Ҳафта",allDayText:"Кун бўйича",moreLinkText(e){return"+ яна "+e},noEventsText:"Кўрсатиш учун воқеалар йўқ"},QTe={code:"uz",week:{dow:1,doy:4},buttonText:{prev:"Oldingi",next:"Keyingi",today:"Bugun",year:"Yil",month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",moreLinkText(e){return"+ yana "+e},noEventsText:"Ko'rsatish uchun voqealar yo'q"},XTe={code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Trước",next:"Tiếp",today:"Hôm nay",year:"Năm",month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},weekText:"Tu",allDayText:"Cả ngày",moreLinkText(e){return"+ thêm "+e},noEventsText:"Không có sự kiện để hiển thị"},JTe={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(e){return"另外 "+e+" 个"},noEventsText:"没有事件显示"},e9e={code:"zh-tw",buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"週",day:"天",list:"活動列表"},weekText:"周",allDayText:"整天",moreLinkText:"顯示更多",noEventsText:"没有任何活動"},t9e=[REe,OEe,DEe,IEe,MEe,NEe,PEe,LEe,FEe,zEe,BEe,HEe,UEe,jEe,WEe,VEe,GEe,YEe,qEe,ZEe,KEe,QEe,XEe,JEe,eTe,tTe,nTe,rTe,iTe,oTe,aTe,sTe,lTe,uTe,cTe,dTe,fTe,pTe,hTe,gTe,mTe,vTe,yTe,bTe,wTe,xTe,STe,$Te,CTe,ETe,TTe,kTe,ATe,_Te,RTe,OTe,DTe,ITe,MTe,NTe,PTe,LTe,FTe,zTe,BTe,HTe,UTe,jTe,WTe,VTe,GTe,YTe,qTe,ZTe,KTe,QTe,XTe,JTe,e9e];const n9e=xl`
371
+ `;function pM({userName:e,doOnSuccess:t}){const{t:n}=xr(),{enqueueSnackbar:r}=cM(),i=xw({defaultValues:MS(o5),resolver:ox(ap().shape(IS(o5)))}),o=Vf(),a=Ge(p=>et(p,"host")),[s,l]=le.useState(),[c,{isLoading:d,isError:h}]=Bq(),g=async p=>{const m=await c({body:{userName:e,password:p.password}});m.error?(l(!0),setTimeout(()=>{l(!1)},1e3)):(t&&t(),o(Hk({pathToProp:"auth2",newValue:m.data.auth2})),r(n("login.success"),{variant:"success"}))};return be(ki,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[_($ce,{sx:{m:1,bgcolor:"secondary.main"},children:_(fM,{})}),_(Ye,{variant:"h2",children:n("login.sign_in")}),_(Ye,{variant:"subtitle2",textAlign:"center",mt:1,children:be(oQ,{t:n,i18nKey:"login.explanation",children:["Ein Benutzer mit dieser E-Mail existiert bereits. ",_("br",{})," Sie müssen sich authentifizieren, bevor Sie buchen können."]})}),_(ki,{borderBottom:"1px solid #ddd",width:"80%",mt:2,mb:2}),be(ki,{component:"form",onSubmit:i.handleSubmit(g),noValidate:!0,sx:{mt:1},children:[_(Ye,{variant:"body1",textAlign:"center",children:e}),_(v1,{fields:o5,disableEmptyErrorText:!0,rhfProps:{control:i.control},containerProps:{spacing:0},textFieldProps:{sx:{animation:s?`${gwe} 500ms linear 1`:""}}}),h&&_(Ye,{color:"error.main",variant:"body1",textAlign:"center",children:n("login.failed")}),_(am,{type:"submit",loading:d,fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:n("login.sign_in")}),_(gx,{href:`${a}/auth/reset`,display:"block",variant:"body2",textAlign:"center",target:"_blank",children:n("login.forgot_password")})]})]})}pM.propTypes={};function a5({calendarComponent:e,customerData:t,isIdentifyingCustomer:n,identificationFailed:r}){var th,yv,bv,wv,sd,xv,ld,Sv,$v,Cv,Ev,Tv,kv;const i=Vf(),o=Ge(X3),a=Ge($e=>et($e,"ref")),{height:s}=$Z(),l=Ge($e=>et($e,"channelKey")),c=Ge($e=>et($e,"cancelableAppointment.appointmentUuid")),d=Ge($e=>et($e,"height")),h=Ge($e=>et($e,"allowCloseOnBooking")),g=Ge($e=>et($e,"hideTimumFooter")),p=s&&s<d?s:d,m=Ge($e=>et($e,"cancelableAppointment.authToken")),v=Ge($e=>et($e,"callbacks.fetchingProductsFailed")),x=Ge($e=>et($e,"callbacks.fetchingBookablesFailed")),w=Ge($e=>et($e,"callbacks.fetchingPublicDataFailed")),b=Ge($e=>et($e,"callbacks.fetchingProductsSucceeded")),S=Ge($e=>et($e,"callbacks.fetchingBookablesSucceeded")),$=Ge($e=>et($e,"callbacks.fetchingPublicDataSucceeded")),[E,T]=le.useState(!1),[k,A]=le.useState(!1),[I,D]=le.useState(!1),[L,B]=le.useState(!1),[U,j]=le.useState(!1),[G,K]=le.useState(!1),[X,H]=le.useState(!1),[Y,Q]=le.useState(),[J,ge]=le.useState(),[Ce,ve]=le.useState(),[we,oe]=le.useState(),[Se,ke]=le.useState(),[Pe,Ke]=le.useState(),Ie=Ge($e=>et($e,"interfaces.UnkownBookingPage")),We=Ge($e=>et($e,"interfaces.IdentifiedBookingPage")),$t=Ge($e=>et($e,"interfaces.ConfirmationPage")),ht=Ge($e=>et($e,"interfaces.LoginPage")),W=Ge($e=>et($e,"interfaces.CancelPage")),ee=Ge($e=>et($e,"interfaces.ProductPage")),ne=Ge($e=>et($e,"interfaces.ErrorDialog")),me=$e=>{if(!$e)return;const it=JSON.parse(JSON.stringify($e));delete it.public_visible;for(const[Xn,Ia]of Object.entries(it)){it[Xn]=[];for(const ud of Ia)it[Xn].push(Ee(ud))}return it},Ee=$e=>{var Xn,Ia;const it=JSON.parse(JSON.stringify($e));return it.isCancelable=c&&it.appointment_uuid===c,it.appointmentUuid=it.appointment_uuid,it.uuid=it.timeslot_uuid,it.start=Fe.fromISO(it.start),(Xn=it.kind)!=null&&Xn.toLowerCase().includes("bookable")&&(o!=null&&o.minDuration)?it.end=Fe.fromISO(it.start).plus({minutes:o.minDuration}):(Ia=it.kind)!=null&&Ia.toLowerCase().includes("bookable")&&(o!=null&&o.maxDuration)?it.end=Fe.fromISO(it.start).plus({minutes:o.maxDuration}):it.end=Fe.fromISO(it.end),it},[de,{data:ce,error:at,reset:Qe}]=Lq(),[Lt]=Fq(),{data:Ve,error:Hn}=Dk({channelOrResourceId:a,params:{channelKey:l}}),{data:Ht,error:st,isLoading:pe}=Nq({channelOrResourceId:a,params:{channelKey:l},headers:m?{"X-SIGNED-APP-CUSTOMER":m}:void 0}),{data:nt,error:Ut,isLoading:Tn}=Rk({channelOrResourceId:a,params:{channelKey:l}});R.useEffect(()=>{Y&&de({channelOrResourceId:a,body:{timeslotUuid:Y==null?void 0:Y.timeslot_uuid,appointmentUuid:Y==null?void 0:Y.appointment_uuid,productUuid:o.uuid,from:Y.start.set({milliseconds:0}).toUTC(0,{keepLocalTime:!0}).toISO({suppressMilliseconds:!0}),to:Y.end.set({milliseconds:0}).toUTC(0,{keepLocalTime:!0}).toISO({suppressMilliseconds:!0})},params:{channelKey:l}})},[Y]),R.useEffect(()=>{at&&(C$(),_r())},[at]),R.useEffect(()=>{if(!I&&!L&&Ht&&c&&m){let $e;for(const it of Object.values(Ht))!Ln.isBoolean(it)&&!$e&&($e=it.find(Xn=>Xn.appointment_uuid===c));$e&&(ge(Ee($e)),D(!0),B(!0))}},[I,L,Ht,c,m]),R.useEffect(()=>{Ut&&v&&v(Ut)},[Ut,v]),R.useEffect(()=>{Hn&&w&&w(Hn)},[Hn,w]),R.useEffect(()=>{st&&x&&x(st)},[st,x]),R.useEffect(()=>{nt&&b&&b({...nt})},[nt,b]),R.useEffect(()=>{Ht&&S&&S({...Ht})},[Ht,S]),R.useEffect(()=>{Ve&&$&&b({...Ve})},[Ve,$]);const di=()=>{T(!0)},Da=()=>{T(!1)},qs=$e=>{ve($e),K(!0)},Ar=()=>{ve(void 0),K(!1)},lu=$e=>{A(!0),Q($e)},_r=()=>{var $e,it;A(!1),Ln.isNil(at)&&ce&&Lt({channelOrResourceId:a,body:{placeholder_id:($e=ce==null?void 0:ce.participation)==null?void 0:$e.customer_uuid,appointment_id:(it=ce==null?void 0:ce.participation)==null?void 0:it.appointment_uuid}}),setTimeout(()=>{Q(void 0)},150)},Zs=()=>{H(!0)},ad=()=>{H(!1),oe(void 0),ke(void 0),Ke(void 0)},mv=$e=>{D(!0),ge($e)},eh=()=>{D(!1),setTimeout(()=>{ge(void 0)},150)},vv=()=>{i(Hk({pathToProp:"cancelableAppointment",newValue:void 0})),eh()},C$=()=>{j(!0)},E$=()=>{j(!1)};return!o&&((th=nt==null?void 0:nt.products)==null?void 0:th.length)===1?i(Q3(nt==null?void 0:nt.products[0])):!o&&!E&&((yv=nt==null?void 0:nt.products)==null?void 0:yv.length)>1&&di(),be("div",{children:[_(tt,{container:!0,children:_(tt,{item:!0,xs:!0,children:be(EI,{visible:(()=>Tn||pe||k&&n)(),children:[e({bookables:me(Ht),product:o,products:nt==null?void 0:nt.products,publicData:Ve,height:p-20,openProductPage:di,openBookingPage:$e=>{$e.isCancelable?mv($e):lu($e)}}),!g&&_(TI,{})]})})}),E&&!I&&_(ee,{open:E&&!I,onClose:Da,children:_(C6,{onProductSelected:Da})}),k&&r&&!n&&_(Ie,{open:k&&r&&!n,onClose:_r,children:_($I,{timeslot:(()=>{var $e,it;return Y&&Y.uuid!==(($e=ce==null?void 0:ce.participation)==null?void 0:$e.timeslot_uuid)&&(Y.uuid=(it=ce==null?void 0:ce.participation)==null?void 0:it.timeslot_uuid),Y})(),productName:Y!=null&&Y.product_name?Y.product_name:o==null?void 0:o.name,productMinDuration:o==null?void 0:o.minDuration,resourceName:(bv=Ve==null?void 0:Ve.resource)==null?void 0:bv.name,placeholderId:(wv=ce==null?void 0:ce.participation)==null?void 0:wv.customer_uuid,bookingProcess:(sd=Ve==null?void 0:Ve.channel)==null?void 0:sd.bookingProcess,onBookingSuccessfull:({timeslot:$e,response:it,data:Xn})=>{Qe(),_r(),Zs(),ke(it),oe($e),Ke(Xn)},onBookingFailed:({response:$e,data:it})=>{var Xn,Ia,ud;((ud=(Ia=(Xn=$e==null?void 0:$e.error)==null?void 0:Xn.data)==null?void 0:Ia.errors[0])==null?void 0:ud.errorCode)==="300"&&qs(it.email)}})}),k&&!r&&!n&&_(We,{open:k&&!r&&!n,onClose:_r,children:_(CI,{timeslot:(()=>{var $e,it;return Y&&Y.uuid!==(($e=ce==null?void 0:ce.participation)==null?void 0:$e.timeslot_uuid)&&(Y.uuid=(it=ce==null?void 0:ce.participation)==null?void 0:it.timeslot_uuid),Y})(),productName:Y!=null&&Y.product_name?Y.product_name:o==null?void 0:o.name,productMinDuration:o==null?void 0:o.minDuration,resourceName:(xv=Ve==null?void 0:Ve.resource)==null?void 0:xv.name,placeholderId:(ld=ce==null?void 0:ce.participation)==null?void 0:ld.customer_uuid,onBookingSuccessfull:({timeslot:$e,response:it,data:Xn})=>{Qe(),_r(),Zs(),ke(it),oe($e),Ke(Xn)},bookingProcess:(Sv=Ve==null?void 0:Ve.channel)==null?void 0:Sv.bookingProcess,customerData:t})}),I&&_(W,{open:I,onClose:eh,timeslot:J,productName:J!=null&&J.product_name?J.product_name:o==null?void 0:o.name,resourceName:($v=Ve==null?void 0:Ve.resource)==null?void 0:$v.name,onCancelSuccess:vv,children:_(dM,{timeslot:J,productName:J!=null&&J.product_name?J.product_name:o==null?void 0:o.name,resourceName:(Cv=Ve==null?void 0:Ve.resource)==null?void 0:Cv.name,onCancelSuccess:vv})}),X&&_($t,{open:X,onClose:ad,allowCloseOnBooking:h,timeslot:we,productName:we!=null&&we.product_name?we.product_name:o==null?void 0:o.name,productDescription:o==null?void 0:o.description,resourceName:(Ev=Ve==null?void 0:Ve.resource)==null?void 0:Ev.name,providerName:Ve!=null&&Ve.provider.isThemingAllowed?(Tv=Ve==null?void 0:Ve.provider)==null?void 0:Tv.name:void 0,customerMail:t?t.email:Pe==null?void 0:Pe.email,contactChannel:Se==null?void 0:Se.contact_channel,bookingProcess:(kv=Ve==null?void 0:Ve.channel)==null?void 0:kv.bookingProcess,children:$e=>_(nM,{...$e})}),G&&_(ht,{open:G,onClose:Ar,children:_(pM,{userName:Ce,doOnSuccess:Ar})}),U&&_(ne,{open:U,onClose:E$})]})}function mwe({children:e}){const t=Ge(l=>et(l,"pData")),n=Ge(l=>et(l,"ref")),r=Ge(l=>et(l,"cookie")),i=()=>(!t||!t.personId)&&!r,{data:o,isLoading:a,isError:s}=Pq({channelOrResourceId:n,crmSlug:t==null?void 0:t.platform,personId:t==null?void 0:t.personId},{skip:i()});return e({customerData:o,isIdentifyingCustomer:a,identificationFailed:s||i()})}var s5={},vwe=zn;Object.defineProperty(s5,"__esModule",{value:!0});var hM=s5.default=void 0,ywe=vwe(dr()),bwe=fr,wwe=(0,ywe.default)((0,bwe.jsx)("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"}),"Phone");hM=s5.default=wwe;var l5={},xwe=zn;Object.defineProperty(l5,"__esModule",{value:!0});var gM=l5.default=void 0,Swe=xwe(dr()),$we=fr,Cwe=(0,Swe.default)((0,$we.jsx)("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"}),"PhoneIphone");gM=l5.default=Cwe;var u5={},Ewe=zn;Object.defineProperty(u5,"__esModule",{value:!0});var mM=u5.default=void 0,Twe=Ewe(dr()),kwe=fr,Awe=(0,Twe.default)((0,kwe.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"}),"Email");mM=u5.default=Awe;var c5={},_we=zn;Object.defineProperty(c5,"__esModule",{value:!0});var T1=c5.default=void 0,Rwe=_we(dr()),Owe=fr,Dwe=(0,Rwe.default)((0,Owe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");T1=c5.default=Dwe;function Iwe(){const{t:e}=xr();return _(Br,{sx:{pointerEvents:"none",marginBottom:"8px"},children:_(cr,{sx:{width:"100%",textAlign:"center",py:{xs:0,sm:0,md:0}},children:_(Ye,{variant:"body2",color:"text.disabled",children:`${e("appoinment_at_capacity")}`})})})}function Mwe({timeslot:e,productName:t,openBookingPage:n}){var r;return be(Br,{disablePadding:!0,sx:{borderWidth:"1px",borderStyle:"solid",borderColor:"grey.300",marginBottom:"8px"},children:[_(cr,{sx:{py:{xs:2,sm:2,md:3}}}),_(rw,{sx:{position:"absolute",width:"100%",height:"100%",zIndex:0},onClick:()=>{n(e)},children:_(Ye,{variant:"body2",color:"text.secondary",px:{xs:0,sm:0,md:0},children:`${(r=e==null?void 0:e.start)==null?void 0:r.toLocaleString(Fe.TIME_SIMPLE)} - ${t}`})})]})}function Nwe({timeslot:e,openBookingPage:t}){var r;const{t:n}=xr();return be(Br,{disablePadding:!0,sx:{borderWidth:"1px",borderStyle:"solid",borderColor:"secondary.main",marginBottom:"8px"},children:[_(cr,{sx:{py:{xs:2,sm:2,md:3}}}),_(rw,{sx:{position:"absolute",width:"100%",height:"100%",zIndex:0},onClick:()=>{t(e)},children:_(Ye,{variant:"body2",color:"secondary.main",px:{xs:2,sm:2,md:3},children:`${(r=e==null?void 0:e.start)==null?void 0:r.toLocaleString(Fe.TIME_SIMPLE)} - ${n("cancellation.cancellable_appointment_highlight")}`})})]})}function k1({bookables:e,product:t,products:n,openProductPage:r,openBookingPage:i,height:o}){const{t:a}=xr(),[s,l]=im(void 0,"outer"),c=h=>{let g;return n&&(g=n.find(p=>p.name===h.product_name)),!!g};let d;if(e){d=Object.entries(e),d=d.filter(h=>(h[1].forEach(g=>{g.hasSelectedProduct=c(g)}),h[1]=h[1].filter(g=>{var p,m;return(p=g==null?void 0:g.kind)!=null&&p.toLowerCase().includes("bookable")?!0:!!((m=g==null?void 0:g.kind)!=null&&m.toLowerCase().includes("lotappointment")&&(g.isCancelable||!g.hasSelectedProduct||g.product_name===(t==null?void 0:t.name)))}),!!h[1].length));for(const[,h]of d)h.sort((g,p)=>g.start<p.start?-1:g.start===p.start?0:1);d=d.sort((h,g)=>{const p=Fe.fromFormat(h[0],"yyyy-MM-dd"),m=Fe.fromFormat(g[0],"yyyy-MM-dd");return p<m?-1:p===m?0:1})}return be(ki,{sx:{width:"100%",height:o||"500px",overflowY:"auto",overflowX:"hidden"},children:[r&&_(mc,{ref:s,variant:"outlined",fullWidth:!0,onClick:r,startIcon:_(Dc,{fontSize:"small"}),endIcon:_(T1,{fontSize:"10px"}),children:(t==null?void 0:t.name)||a("product_selection_headline")}),be(Gf,{sx:{height:r?`calc(100% - ${Math.ceil(l.height)}px)`:"100%","& ul":{padding:0},position:"relative"},subheader:_("li",{}),children:[!(d!=null&&d.length)&&_(ki,{height:r?`calc(100% - ${Math.ceil(l.height)}px)`:"100%",width:"100%",children:_(Ye,{variant:"body2",color:"text.secondary",sx:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"},children:a("noEventsMessage")})}),(d==null?void 0:d.length)>0&&d.map(([h,g])=>_("li",{children:be("ul",{children:[_(oce,{children:be(tt,{container:!0,justifyContent:"space-between",alignItems:"center",sx:{height:"48px"},children:[_(tt,{item:!0,children:_(Ye,{variant:"body2",color:"primary",children:Fe.fromISO(h).toLocaleString(Fe.DATE_FULL)})}),_(tt,{item:!0,children:_(Ye,{variant:"body2",color:"text.secondary",children:Fe.fromISO(h).weekdayLong})})]})}),g.map(p=>{if(p.isCancelable)return _(Nwe,{timeslot:p,openBookingPage:i},`${p.start.toISO()}-${p.uuid}`);if(p.capacity_left>0||p.kind==="models.Bookable"){let m=t==null?void 0:t.name;return!p.hasSelectedProduct&&p.kind!=="models.Bookable"&&(m=p.product_name),_(Mwe,{timeslot:p,productName:m,openBookingPage:i},`${p.start.toISO()}-${p.uuid}`)}else return _(Iwe,{},`${p.start.toISO()}-${p.uuid}`)})]})},h))]})]})}k1.propTypes={bookables:Re.object.isRequired,product:Re.object,products:Re.array.isRequired,openProductPage:Re.func.isRequired,openBookingPage:Re.func.isRequired,height:Re.number};const Pwe=fe(e=>{const{...t}=e;return _(Nm,{...t})})(({theme:e,expand:t})=>({transform:t?"rotate(180deg)":"rotate(0deg)",margin:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})}));function Lwe({bookables:e,product:t,products:n,publicData:r,openProductPage:i,openBookingPage:o,height:a}){const{t:s}=xr(),[l,c]=im(),d=Oc(b=>b.breakpoints.down("sm")),[h,g]=le.useState(!d),p=()=>{g(!h)},m=()=>{var b,S,$,E;return((b=r==null?void 0:r.contact)==null?void 0:b.name)||((S=r==null?void 0:r.contact)==null?void 0:S.email)||(($=r==null?void 0:r.contact)==null?void 0:$.mobile)||((E=r==null?void 0:r.contact)==null?void 0:E.phone)},v=()=>{var b,S,$,E,T,k,A,I,D,L,B,U,j;return be(ol,{children:[_(tt,{item:!0,xs:"auto",children:_(Ye,{variant:"h4",component:"h2",children:(b=r==null?void 0:r.resource)==null?void 0:b.name})}),be(tt,{item:!0,xs:"auto",children:[(n==null?void 0:n.length)>1&&_(mc,{variant:"outlined",onClick:i,startIcon:_(Dc,{fontSize:"small"}),endIcon:_(T1,{fontSize:"10px"}),children:(t==null?void 0:t.name)||s("product_selection_headline")}),(n==null?void 0:n.length)===1&&be(Br,{disableGutters:!0,disablePadding:!0,children:[_(Mo,{sx:{minWidth:"30px"},children:_(Dc,{fontSize:"small"})}),_(cr,{children:_(Ye,{variant:"body1",color:"text.secondary",children:(t==null?void 0:t.name)||((S=n[0])==null?void 0:S.name)})})]})]}),m()&&_(tt,{item:!0,sx:{mb:{xs:($=r==null?void 0:r.resource)!=null&&$.description?0:1}},children:_(QA,{elevation:0,children:_(XA,{sx:{pt:"0!important",pb:"0!important"},children:be(Gf,{dense:!0,sx:{p:0},children:[((E=r==null?void 0:r.contact)==null?void 0:E.name)&&_(Br,{sx:{py:0},disableGutters:!0,children:_(cr,{primary:(T=r==null?void 0:r.contact)==null?void 0:T.name})}),((k=r==null?void 0:r.contact)==null?void 0:k.email)&&be(Br,{sx:{py:0},disableGutters:!0,children:[_(Mo,{sx:{minWidth:"30px"},children:_(mM,{fontSize:"small"})}),_(cr,{primary:(A=r==null?void 0:r.contact)==null?void 0:A.email})]}),((I=r==null?void 0:r.contact)==null?void 0:I.phone)&&be(Br,{sx:{py:0},disableGutters:!0,children:[_(Mo,{sx:{minWidth:"30px"},children:_(hM,{fontSize:"small"})}),_(cr,{primary:(D=r==null?void 0:r.contact)==null?void 0:D.phone})]}),((L=r==null?void 0:r.contact)==null?void 0:L.mobile)&&be(Br,{sx:{py:0},disableGutters:!0,children:[_(Mo,{sx:{minWidth:"30px"},children:_(gM,{fontSize:"small"})}),_(cr,{primary:(B=r==null?void 0:r.contact)==null?void 0:B.mobile})]})]})})})}),((U=r==null?void 0:r.resource)==null?void 0:U.description)&&_(tt,{item:!0,xs:!0,flexShrink:3,sx:{mb:{xs:1}},children:be(QA,{elevation:0,children:[_(zce,{disableRipple:(c==null?void 0:c.height)<=74,onClick:()=>{(c==null?void 0:c.height)>74&&p()},children:_(YA,{in:h,collapsedSize:"72px",children:_(XA,{sx:{pb:"0!important"},children:_(ki,{ref:l,children:_(Wc,{overrides:{h1:{component:Ye,props:{variant:"h3",gutterBottom:!0}},h2:{component:Ye,props:{variant:"h4",gutterBottom:!0}},h3:{component:Ye,props:{variant:"h5",gutterBottom:!0}},h4:{component:Ye,props:{variant:"h6",gutterBottom:!0}},h5:{component:Ye,props:{variant:"body1",gutterBottom:!0,color:"text.secondary"}},h6:{component:Ye,props:{variant:"body1",gutterBottom:!0,color:"text.secondary"}},p:{component:Ye,props:{variant:"body2",gutterBottom:!0}},span:{component:Ye,props:{variant:"body2",gutterBottom:!0}}},children:(j=r==null?void 0:r.resource)==null?void 0:j.description})})})})}),(c==null?void 0:c.height)>74&&_(Wce,{sx:{py:0},children:_(Pwe,{expand:h,onClick:p,children:_(T1,{})})})]})})]})},x=()=>be(tt,{container:!0,columnSpacing:4,rowSpacing:0,columns:12,children:[_(tt,{xs:6,container:!0,item:!0,direction:"column",wrap:"nowrap",spacing:3,sx:{overflowY:"auto",maxHeight:`${a}px`},children:v()}),be(tt,{item:!0,xs:6,children:[_(Ye,{variant:"h4",component:"h2",children:s("detailsListView.chose_date_and_time")}),_(k1,{product:t,products:n,bookables:e,openBookingPage:o,height:a})]})]}),w=()=>be(tt,{container:!0,direction:"column",columnSpacing:1,rowSpacing:1,children:[_(tt,{container:!0,item:!0,direction:"column",wrap:"nowrap",spacing:1,xs:"auto",children:v()}),be(tt,{item:!0,xs:!0,children:[_(Ye,{variant:"h4",component:"h2",children:s("detailsListView.chose_date_and_time")}),_(k1,{product:t,products:n,bookables:e,openBookingPage:o,height:a})]})]});return d?w():x()}function qc(e){const t=parseFloat(getComputedStyle(document.documentElement).fontSize);return e/t}var d5={},Fwe=zn;Object.defineProperty(d5,"__esModule",{value:!0});var vM=d5.default=void 0,zwe=Fwe(dr()),Bwe=fr,Hwe=(0,zwe.default)((0,Bwe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");vM=d5.default=Hwe;function Pp(e){const{children:t,onClose:n,...r}=e;return be(t_,{sx:{m:0,p:2},...r,children:[t,n?_(Nm,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:_(vM,{})}):null]})}Pp.propTypes={children:Re.node,onClose:Re.func.isRequired};const Ls=14,eu='"Helvetica Neue", Helvetica, Arial, sans-serif',Zc=Math.floor(Ls*1.428571429),Uwe=qc(Math.floor(Ls*2.6)),jwe=qc(Math.floor(Ls*2.3)),Wwe=qc(Math.floor(Ls*1.9)),Vwe=qc(Math.floor(Ls*1.5)),Gwe=qc(Math.floor(Ls*1.15)),Ywe=qc(Math.floor(Ls)),tu={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,height:500,localization:{de:{product_selection_headline:"Terminart wählen",booked_successfully_header:"Termin gebucht",booked_successfully_message:"Sie erhalten eine E-Mail mit den Termindetails an {{mail}}",requested_successfully_header:"Termin angefragt",requested_successfully_message:"Sie erhalten eine E-Mail mit den Termindetails an {{mail}}. Sie werden unter der gleichen Adresse benachrichtigt, sobald Ihre Anfrage bearbeitet wurde.",submit_button_book:"Buchen",submit_button_request:"Verbindlich Anfragen",noEventsMessage:"Zur Zeit sind leider keine buchbaren Termine verfügbar.",appoinment_at_capacity:"vollständig ausgebucht",add_to_calendar_btn:"Zu Kalender hinzufügen",until_reservation_expiration:"{{expiration}} bis zum Ablauf der Reservierung",reservation_expired:"Reservierung abgelaufen.",identified_customer_hint:"Sie wurden mit persönlichem Link eingeladen und können direkt Ihren Termin buchen.",detailsListView:{chose_date_and_time:"Datum und Zeit wählen"},reservation_failed:{title:"Hohe Nachfrage",message:"Dieser Termin wurde gerade durch jemanden reserviert. Bitte wählenSie einen anderen Termin. Oder schauen Sie später noch einmal, obein Termin frei wird."},cancellation:{cancelation_successfull_message:"Termin erfolgreich abgesagt",cancellable_appointment_highlight:"Mein Termin",submit_button_cancel:"Absagen",cancel_appointment_header:"Ihr Termin",message_label:"Nachricht zur Terminabsage"},login:{forgot_password:"Neues Passwort vergeben",sign_in:"Sign In",success:"Sign In erfolgreich",failed:"Sign In fehlgeschlagen",explanation:"Ein Benutzer mit dieser email existiert bereits. <1></1> Sie müssen sich mit Ihrem timum Passwort anmelden oder ein neues Passwort erstellen."},validation:{field_required:"Notwendig",privacy_field_required:"Sie müssen die Datenschutzbestimmungen akzeptieren bevor Sie buchen können.",email_field_must_be_valid:"Geben Sie eine valide E-Mail Adresse ein"},fields:{userName:"Nutzername",password:"Passwort",firstName:"Vorname",lastName:"Nachname",name:"Name",email:"E-Mail",mobile:"Mobil",message:"Ihre Nachricht",accept_timum_privacy:'<a href="https://info.timum.de/datenschutz" target="_blank">Datenschutzbestimmungen</a> gelesen und akzeptiert'}},en:{product_selection_headline:"Choose Product",booked_successfully_header:"Appoinment Booked",booked_successfully_message:"You will receive an email with appointment details to {{mail}}",requested_successfully_header:"Appointment Requested",requested_successfully_message:"You will receive an email with appointment details to {{mail}}. You will be notified at the same address once your request has been processed.",submit_button_book:"Book",submit_button_request:"Request",noEventsMessage:"Unfortunately, there are no bookable dates available at the moment.",appoinment_at_capacity:"fully booked",add_to_calendar_btn:"Add to Calendar",until_reservation_expiration:"{{expiration}} until reservation expiration.",reservation_expired:"Reservation expired.",identified_customer_hint:"You have been invited with a personal link and can book your appointment directly.",detailsListView:{chose_date_and_time:"Choose date and time"},reservation_failed:{title:"High Demand",message:"This appointment has just been reserved by someone. Please choose another appointment. Or check back later to see if an appointment becomes available."},cancellation:{cancelation_successfull_message:"Appointment canceled sucessfully.",cancellable_appointment_highlight:"My Appointment",submit_button_cancel:"Cancel",cancel_appointment_header:"Your Appointment",message_label:"You may enter a reason here."},login:{forgot_password:"Reset your password",sign_in:"Sign In",success:"Sign In successful.",failed:"Sign In failed",explanation:"A user with this email already exists. <1></1> You need to login with your timum password or create a new password."},validation:{field_required:"Required",privacy_field_required:"You must accept the privacy policy prior to booking.",email_field_must_be_valid:"Enter a valid email address"},fields:{userName:"User name",password:"Password",firstName:"First name",lastName:"Last name",name:"name",email:"E-mail",mobile:"Mobile",message:"Your Message",accept_timum_privacy:'<a href="https://info.timum.de/datenschutz" target="_blank">Privacy policy</a> read and accepted.'}}},fields:{firstName:{index:0,title:"fields.firstName",validation:Ts().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:Ts().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:Ts().email("validation.email_field_must_be_valid").required("validation.field_required")},mobile:{index:3,title:"fields.mobile",type:"phoneNumber",isRequired:!1},message:{index:4,title:"fields.message",type:"textarea",validation:Ts().max(1024),limit:1024},agbs:{index:5,title:"fields.accept_timum_privacy",type:"checkbox",validation:Om().required("validation.field_required").test("privacyAccepted","validation.privacy_field_required",e=>e===!0)}},interfaces:{UnkownBookingPage:({open:e,onClose:t,children:n})=>{const r=la(),i=Oc(r.breakpoints.down("sm"));return be(zl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[_(Pp,{onClose:t}),_(Bl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:_(lp,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=la(),i=Oc(r.breakpoints.down("sm"));return be(zl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[_(Pp,{onClose:t}),_(Bl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:_(lp,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=la(),a=Oc(o.breakpoints.down("sm"));return be(zl,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:a,children:[r&&_(Pp,{onClose:n}),_(Bl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:_(lp,{maxWidth:"sm",sx:{p:0},children:i({...e})})})]})},LoginPage:({open:e,onClose:t,children:n})=>_(zl,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:_(Bl,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=la(),i=Oc(r.breakpoints.down("sm"));return be(zl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[_(Pp,{onClose:t}),_(Bl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:_(lp,{maxWidth:"sm",sx:{p:0},children:n})})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=la(),i=Oc(r.breakpoints.down("sm"));return _(zl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:_(Bl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:_(lp,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=xr();return be(zl,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[_(t_,{id:"alert-dialog-title",children:n("reservation_failed.title")}),_(Bl,{children:_(Ude,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),_(Ode,{children:_(mc,{onClick:t,autoFocus:!0,children:"Ok"})})]})}},callbacks:{}},muiTheme:{palette:{primary:{main:"#337ab7"},secondary:{main:"#777"},success:{main:"#5cb85c"},warning:{main:"#f0ad4e"},error:{main:"#d9534f"},info:{main:"#5bc0de"}},typography:{fontFamily:eu,fontSize:Ls,h1:{fontFamily:eu,fontWeight:500,lineHeight:1,fontSize:`${Uwe}rem`},h2:{fontFamily:eu,fontWeight:500,lineHeight:1,fontSize:`${jwe}rem`},h3:{fontFamily:eu,fontWeight:500,lineHeight:1,fontSize:`${Wwe}rem`},h4:{fontFamily:eu,fontWeight:500,lineHeight:1,fontSize:`${Vwe}rem`},h5:{fontFamily:eu,fontWeight:500,lineHeight:1,fontSize:`${Gwe}rem`},h6:{fontFamily:eu,fontWeight:500,lineHeight:1,fontSize:`${Ywe}rem`}},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarColor:"#bfbfbf #ffffff","&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:"#ffffff"},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:"#bfbfbf",minHeight:8,width:3,border:"5px solid #ffffff"},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:"#ffffff"}}}},MuiTextField:{defaultProps:{variant:"outlined"}},MuiListItem:{styleOverrides:{root:{borderRadius:"4px"}}},MuiListItemButton:{styleOverrides:{root:{borderRadius:"4px"}}}},MuiListItemText:{styleOverrides:{borderRadius:"4px"}},MuiTypography:{styleOverrides:{h1:{marginBottom:Zc/2},h2:{marginBottom:Zc/2},h3:{marginBottom:Zc/2},h4:{marginBottom:Zc/2},h5:{marginBottom:Zc/2},h6:{marginBottom:Zc/2}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}};function A1(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&&Qg(e,t)}function Lp(e,t){if(t&&(sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return da(e)}function No(e){return No=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},No(e)}function qwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zwe(e){return b6(e)||qwe(e)||x6(e)||S6()}function yM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Kwe={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},Qwe=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_i(this,e),this.init(t,n)}return Ri(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||Kwe,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,bM(bM({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),Po=new Qwe,Fs=function(){function e(){_i(this,e),this.observers={}}return Ri(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function Fp(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function wM(e){return e==null?"":""+e}function Xwe(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function f5(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function xM(e,t,n){var r=f5(e,t,Object),i=r.obj,o=r.k;i[o]=n}function Jwe(e,t,n,r){var i=f5(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function _1(e,t){var n=f5(e,t),r=n.obj,i=n.k;if(r)return r[i]}function SM(e,t,n){var r=_1(e,n);return r!==void 0?r:_1(t,n)}function $M(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):$M(e[r],t[r],n):e[r]=t[r]);return e}function Kc(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var exe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function txe(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return exe[t]}):e}var R1=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,nxe=[" ",",","?","!",";"];function rxe(e,t,n){t=t||"",n=n||"";var r=nxe.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function CM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function O1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ixe(e){var t=oxe();return function(){var r=No(e),i;if(t){var o=No(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lp(this,i)}}function oxe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function EM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,s=r.slice(o,o+a).join(n),l=i[s];l===void 0&&r.length>o+a;)a++,s=r.slice(o,o+a).join(n),l=i[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var c=r.slice(o+a).join(n);return c?EM(l,c,n):void 0}i=i[r[o]]}return i}}var axe=function(e){A1(n,e);var t=ixe(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return _i(this,n),i=t.call(this),R1&&Fs.call(da(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Ri(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,d=[i,o];a&&typeof a!="string"&&(d=d.concat(a)),a&&typeof a=="string"&&(d=d.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(d=i.split("."));var h=_1(this.data,d);return h||!c||typeof a!="string"?h:EM(this.data&&this.data[i]&&this.data[i][o],a,l)}},{key:"addResource",value:function(i,o,a,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var d=[i,o];a&&(d=d.concat(c?a.split(c):a)),i.indexOf(".")>-1&&(d=i.split("."),s=o,o=d[1]),this.addNamespaces(o),xM(this.data,d,s),l.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in a)(typeof a[l]=="string"||Object.prototype.toString.apply(a[l])==="[object Array]")&&this.addResource(i,o,l,a[l],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},d=[i,o];i.indexOf(".")>-1&&(d=i.split("."),s=a,a=o,o=d[1]),this.addNamespaces(o);var h=_1(this.data,d)||{};s?$M(h,a,l):h=O1(O1({},h),a),xM(this.data,d,h),c.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?O1(O1({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Fs),TM={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(n=a.processors[s].process(n,r,i,o))}),n}};function kM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sxe(e){var t=lxe();return function(){var r=No(e),i;if(t){var o=No(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lp(this,i)}}function lxe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var AM={},_M=function(e){A1(n,e);var t=sxe(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _i(this,n),i=t.call(this),R1&&Fs.call(da(i)),Xwe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,da(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Po.create("translator"),i}return Ri(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],c=a&&i.indexOf(a)>-1,d=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!rxe(i,a,s);if(c&&!d){var h=i.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:i,namespaces:l};var g=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(g[0])>-1)&&(l=g.shift()),i=g.join(s)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,o,a){var s=this;if(sr(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,d=this.extractFromKey(i[i.length-1],o),h=d.key,g=d.namespaces,p=g[g.length-1],m=o.lng||this.language,v=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(v){var x=o.nsSeparator||this.options.nsSeparator;return l?(w.res="".concat(p).concat(x).concat(h),w):"".concat(p).concat(x).concat(h)}return l?(w.res=h,w):h}var w=this.resolve(i,o),b=w&&w.res,S=w&&w.usedKey||h,$=w&&w.exactUsedKey||h,E=Object.prototype.toString.apply(b),T=["[object Number]","[object Function]","[object RegExp]"],k=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,I=typeof b!="string"&&typeof b!="boolean"&&typeof b!="number";if(A&&b&&I&&T.indexOf(E)<0&&!(typeof k=="string"&&E==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var D=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,b,kr(kr({},o),{},{ns:g})):"key '".concat(h," (").concat(this.language,")' returned an object instead of string.");return l?(w.res=D,w):D}if(c){var L=E==="[object Array]",B=L?[]:{},U=L?$:S;for(var j in b)if(Object.prototype.hasOwnProperty.call(b,j)){var G="".concat(U).concat(c).concat(j);B[j]=this.translate(G,kr(kr({},o),{joinArrays:!1,ns:g})),B[j]===G&&(B[j]=b[j])}b=B}}else if(A&&typeof k=="string"&&E==="[object Array]")b=b.join(k),b&&(b=this.extendTranslation(b,i,o,a));else{var K=!1,X=!1,H=o.count!==void 0&&typeof o.count!="string",Y=n.hasDefaultValue(o),Q=H?this.pluralResolver.getSuffix(m,o.count,o):"",J=o["defaultValue".concat(Q)]||o.defaultValue;!this.isValidLookup(b)&&Y&&(K=!0,b=J),this.isValidLookup(b)||(X=!0,b=h);var ge=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ce=ge&&X?void 0:b,ve=Y&&J!==b&&this.options.updateMissing;if(X||K||ve){if(this.logger.log(ve?"updateKey":"missingKey",m,p,h,ve?J:b),c){var we=this.resolve(h,kr(kr({},o),{},{keySeparator:!1}));we&&we.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var oe=[],Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(var ke=0;ke<Se.length;ke++)oe.push(Se[ke]);else this.options.saveMissingTo==="all"?oe=this.languageUtils.toResolveHierarchy(o.lng||this.language):oe.push(o.lng||this.language);var Pe=function(Ie,We,$t){var ht=Y&&$t!==b?$t:Ce;s.options.missingKeyHandler?s.options.missingKeyHandler(Ie,p,We,ht,ve,o):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(Ie,p,We,ht,ve,o),s.emit("missingKey",Ie,p,We,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?oe.forEach(function(Ke){s.pluralResolver.getSuffixes(Ke,o).forEach(function(Ie){Pe([Ke],h+Ie,o["defaultValue".concat(Ie)]||J)})}):Pe(oe,h,J))}b=this.extendTranslation(b,i,o,w,a),X&&b===h&&this.options.appendNamespaceToMissingKey&&(b="".concat(p,":").concat(h)),(X||K)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(p,":").concat(h):h,K?b:void 0):b=this.options.parseMissingKeyHandler(b))}return l?(w.res=b,w):b}},{key:"extendTranslation",value:function(i,o,a,s,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,kr(kr({},this.options.interpolation.defaultVariables),a),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(kr(kr({},a),{interpolation:kr(kr({},this.options.interpolation),a.interpolation)}));var d=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),h;if(d){var g=i.match(this.interpolator.nestingRegexp);h=g&&g.length}var p=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(p=kr(kr({},this.options.interpolation.defaultVariables),p)),i=this.interpolator.interpolate(i,p,a.lng||this.language,a),d){var m=i.match(this.interpolator.nestingRegexp),v=m&&m.length;h<v&&(a.nest=!1)}a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var b=arguments.length,S=new Array(b),$=0;$<b;$++)S[$]=arguments[$];return l&&l[0]===S[0]&&!a.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(S[0]," in key: ").concat(o[0])),null):c.translate.apply(c,S.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var x=a.postProcess||this.options.postProcess,w=typeof x=="string"?[x]:x;return i!=null&&w&&w.length&&a.applyPostProcessor!==!1&&(i=TM.handle(w,i,o,this.options&&this.options.postProcessPassResolved?kr({i18nResolved:s},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,d,h;return typeof i=="string"&&(i=[i]),i.forEach(function(g){if(!o.isValidLookup(s)){var p=o.extractFromKey(g,a),m=p.key;l=m;var v=p.namespaces;o.options.fallbackNS&&(v=v.concat(o.options.fallbackNS));var x=a.count!==void 0&&typeof a.count!="string",w=x&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),b=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",S=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);v.forEach(function($){o.isValidLookup(s)||(h=$,!AM["".concat(S[0],"-").concat($)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(h)&&(AM["".concat(S[0],"-").concat($)]=!0,o.logger.warn('key "'.concat(l,'" for languages "').concat(S.join(", "),`" won't get resolved as namespace "`).concat(h,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),S.forEach(function(E){if(!o.isValidLookup(s)){d=E;var T=[m];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(T,m,E,$,a);else{var k;x&&(k=o.pluralResolver.getSuffix(E,a.count,a));var A="".concat(o.options.pluralSeparator,"zero");if(x&&(T.push(m+k),w&&T.push(m+A)),b){var I="".concat(m).concat(o.options.contextSeparator).concat(a.context);T.push(I),x&&(T.push(I+k),w&&T.push(I+A))}}for(var D;D=T.pop();)o.isValidLookup(s)||(c=D,s=o.getResource(E,$,D,a))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:d,usedNS:h}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(Fs);function p5(e){return e.charAt(0).toUpperCase()+e.slice(1)}var uxe=function(){function e(t){_i(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Po.create("languageUtils")}return Ri(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=p5(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=p5(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=p5(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(s){if(s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],s=function(c){c&&(i.isSupportedCode(c)?a.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),o.forEach(function(l){a.indexOf(l)<0&&s(i.formatLanguageCode(l))}),a}}]),e}(),cxe=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],dxe={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},fxe=["v1","v2","v3"],RM={zero:0,one:1,two:2,few:3,many:4,other:5};function pxe(){var e={};return cxe.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:dxe[t.fc]}})}),e}var hxe=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_i(this,e),this.languageUtils=t,this.options=n,this.logger=Po.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=pxe()}return Ri(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return RM[a]-RM[s]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!fxe.includes(this.options.compatibilityJSON)}}]),e}();function OM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var gxe=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_i(this,e),this.logger=Po.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Ri(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:txe,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Kc(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Kc(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Kc(r.nestingPrefix):r.nestingPrefixEscaped||Kc("$t("),this.nestingSuffix=r.nestingSuffix?Kc(r.nestingSuffix):r.nestingSuffixEscaped||Kc(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,s,l,c,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function h(x){return x.replace(/\$/g,"$$$$")}var g=function(w){if(w.indexOf(a.formatSeparator)<0){var b=SM(r,d,w);return a.alwaysFormat?a.format(b,void 0,i,uo(uo(uo({},o),r),{},{interpolationkey:w})):b}var S=w.split(a.formatSeparator),$=S.shift().trim(),E=S.join(a.formatSeparator).trim();return a.format(SM(r,d,$),E,i,uo(uo(uo({},o),r),{},{interpolationkey:$}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,m=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(w){return h(w)}},{regex:this.regexp,safeValue:function(w){return a.escapeValue?h(a.escape(w)):h(w)}}];return v.forEach(function(x){for(c=0;s=x.regex.exec(n);){var w=s[1].trim();if(l=g(w),l===void 0)if(typeof p=="function"){var b=p(n,s,o);l=typeof b=="string"?b:""}else if(o&&o.hasOwnProperty(w))l="";else if(m){l=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(w," for interpolating ").concat(n)),l="";else typeof l!="string"&&!a.useRawValueToEscape&&(l=wM(l));var S=x.safeValue(l);if(n=n.replace(s[0],S),m?(x.regex.lastIndex+=l.length,x.regex.lastIndex-=s[0].length):x.regex.lastIndex=0,c++,c>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,l=uo({},o);l.applyPostProcessor=!1,delete l.defaultValue;function c(p,m){var v=this.nestingOptionsSeparator;if(p.indexOf(v)<0)return p;var x=p.split(new RegExp("".concat(v,"[ ]*{"))),w="{".concat(x[1]);p=x[0],w=this.interpolate(w,l);var b=w.match(/'/g),S=w.match(/"/g);(b&&b.length%2===0&&!S||S.length%2!==0)&&(w=w.replace(/'/g,'"'));try{l=JSON.parse(w),m&&(l=uo(uo({},m),l))}catch($){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),$),"".concat(p).concat(v).concat(w)}return delete l.defaultValue,p}for(;a=this.nestingRegexp.exec(n);){var d=[],h=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var g=a[1].split(this.formatSeparator).map(function(p){return p.trim()});a[1]=g.shift(),d=g,h=!0}if(s=r(c.call(this,a[1].trim(),l),l),s&&a[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=wM(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),s=""),h&&(s=d.reduce(function(p,m){return i.format(p,m,o.lng,uo(uo({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),n=n.replace(a[0],s),this.regexp.lastIndex=0}return n}}]),e}();function DM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mxe(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),l=Zwe(s),c=l[0],d=l.slice(1),h=d.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=h),h==="false"&&(n[c.trim()]=!1),h==="true"&&(n[c.trim()]=!0),isNaN(h)||(n[c.trim()]=parseInt(h,10))}})}}return{formatName:t,formatOptions:n}}function Qc(e){var t={};return function(r,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(r)}}var vxe=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_i(this,e),this.logger=Po.create("formatter"),this.options=t,this.formats={number:Qc(function(n,r){var i=new Intl.NumberFormat(n,r);return function(o){return i.format(o)}}),currency:Qc(function(n,r){var i=new Intl.NumberFormat(n,zs(zs({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Qc(function(n,r){var i=new Intl.DateTimeFormat(n,zs({},r));return function(o){return i.format(o)}}),relativetime:Qc(function(n,r){var i=new Intl.RelativeTimeFormat(n,zs({},r));return function(o){return i.format(o,r.range||"day")}}),list:Qc(function(n,r){var i=new Intl.ListFormat(n,zs({},r));return function(o){return i.format(o)}})},this.init(t)}return Ri(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Qc(r)}},{key:"format",value:function(n,r,i,o){var a=this,s=r.split(this.formatSeparator),l=s.reduce(function(c,d){var h=mxe(d),g=h.formatName,p=h.formatOptions;if(a.formats[g]){var m=c;try{var v=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},x=v.locale||v.lng||o.locale||o.lng||i;m=a.formats[g](c,x,zs(zs(zs({},p),o),v))}catch(w){a.logger.warn(w)}return m}else a.logger.warn("there was no format function for ".concat(g));return c},n);return l}}]),e}();function IM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function MM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yxe(e){var t=bxe();return function(){var r=No(e),i;if(t){var o=No(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lp(this,i)}}function bxe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wxe(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var xxe=function(e){A1(n,e);var t=yxe(n);function n(r,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return _i(this,n),a=t.call(this),R1&&Fs.call(da(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=Po.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return Ri(n,[{key:"queueLoad",value:function(i,o,a,s){var l=this,c={},d={},h={},g={};return i.forEach(function(p){var m=!0;o.forEach(function(v){var x="".concat(p,"|").concat(v);!a.reload&&l.store.hasResourceBundle(p,v)?l.state[x]=2:l.state[x]<0||(l.state[x]===1?d[x]===void 0&&(d[x]=!0):(l.state[x]=1,m=!1,d[x]===void 0&&(d[x]=!0),c[x]===void 0&&(c[x]=!0),g[v]===void 0&&(g[v]=!0)))}),m||(h[p]=!0)}),(Object.keys(c).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(d),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(g)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),l=s[0],c=s[1];o&&this.emit("failedLoading",l,c,o),a&&this.store.addResourceBundle(l,c,a),this.state[i]=o?-1:2;var d={};this.queue.forEach(function(h){Jwe(h.loaded,[l],c),wxe(h,i),o&&h.errors.push(o),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(function(g){d[g]||(d[g]={});var p=h.loaded[g];p.length&&p.forEach(function(m){d[g][m]===void 0&&(d[g][m]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(function(h){return!h.done})}},{key:"read",value:function(i,o,a){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,d=arguments.length>5?arguments[5]:void 0;if(!i.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:l,wait:c,callback:d});return}return this.readingCalls++,this.backend[a](i,o,function(h,g){if(s.readingCalls--,s.waitingReads.length>0){var p=s.waitingReads.shift();s.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(h&&g&&l<s.maxRetries){setTimeout(function(){s.read.call(s,i,o,a,l+1,c*2,d)},c);return}d(h,g)})}},{key:"prepareLoading",value:function(i,o){var a=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var c=this.queueLoad(i,o,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(d){a.loadOne(d)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(d,h){d&&o.logger.warn("".concat(a,"loading namespace ").concat(c," for language ").concat(l," failed"),d),!d&&h&&o.logger.log("".concat(a,"loaded namespace ").concat(c," for language ").concat(l),h),o.loaded(i,d,h)})}},{key:"saveMissing",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}a==null||a===""||(this.backend&&this.backend.create&&this.backend.create(i,o,a,s,null,MM(MM({},c),{},{isUpdate:l})),!(!i||!i[0])&&this.store.addResource(i[0],o,a,s))}}]),n}(Fs);function Sxe(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(sr(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),sr(t[2])==="object"||sr(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function NM(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function PM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PM(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $xe(e){var t=Cxe();return function(){var r=No(e),i;if(t){var o=No(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lp(this,i)}}function Cxe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function D1(){}function Exe(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var I1=function(e){A1(n,e);var t=$xe(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(_i(this,n),r=t.call(this),R1&&Fs.call(da(r)),r.options=NM(i),r.services={},r.logger=Po,r.modules={external:[]},Exe(da(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Lp(r,da(r));setTimeout(function(){r.init(i,o)},0)}return r}return Ri(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=Sxe();this.options=Lo(Lo(Lo({},s),this.options),NM(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Lo(Lo({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(w){return w?typeof w=="function"?new w:w:null}if(!this.options.isClone){this.modules.logger?Po.init(l(this.modules.logger),this.options):Po.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=vxe);var d=new uxe(this.options);this.store=new axe(this.options.resources,this.options);var h=this.services;h.logger=Po,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new hxe(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(h.formatter=l(c),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new gxe(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new xxe(l(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(w){for(var b=arguments.length,S=new Array(b>1?b-1:0),$=1;$<b;$++)S[$-1]=arguments[$];i.emit.apply(i,[w].concat(S))}),this.modules.languageDetector&&(h.languageDetector=l(this.modules.languageDetector),h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=l(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new _M(this.services,this.options),this.translator.on("*",function(w){for(var b=arguments.length,S=new Array(b>1?b-1:0),$=1;$<b;$++)S[$-1]=arguments[$];i.emit.apply(i,[w].concat(S))}),this.modules.external.forEach(function(w){w.init&&w.init(i)})}if(this.format=this.options.interpolation.format,a||(a=D1),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var p=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];p.forEach(function(w){i[w]=function(){var b;return(b=i.store)[w].apply(b,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(w){i[w]=function(){var b;return(b=i.store)[w].apply(b,arguments),i}});var v=Fp(),x=function(){var b=function($,E){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),v.resolve(E),a($,E)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return b(null,i.t.bind(i));i.changeLanguage(i.options.lng,b)};return this.options.resources||!this.options.initImmediate?x():setTimeout(x,0),v}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D1,s=a,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],d=function(p){if(p){var m=o.services.languageUtils.toResolveHierarchy(p);m.forEach(function(v){c.indexOf(v)<0&&c.push(v)})}};if(l)d(l);else{var h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.forEach(function(g){return d(g)})}this.options.preload&&this.options.preload.forEach(function(g){return d(g)}),this.services.backendConnector.load(c,this.options.ns,function(g){!g&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(g)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=Fp();return i||(i=this.languages),o||(o=this.options.ns),a||(a=D1),this.services.backendConnector.reload(i,o,function(l){s.resolve(),a(l)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&TM.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=Fp();this.emit("languageChanging",i);var l=function(g){a.language=g,a.languages=a.services.languageUtils.toResolveHierarchy(g),a.resolvedLanguage=void 0,a.setResolvedLanguage(g)},c=function(g,p){p?(l(p),a.translator.changeLanguage(p),a.isLanguageChangingTo=void 0,a.emit("languageChanged",p),a.logger.log("languageChanged",p)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(g,function(){return a.t.apply(a,arguments)})},d=function(g){!i&&!g&&a.services.languageDetector&&(g=[]);var p=typeof g=="string"?g:a.services.languageUtils.getBestMatchFromCodes(g);p&&(a.language||l(p),a.translator.language||a.translator.changeLanguage(p),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage(p)),a.loadResources(p,function(m){c(m,p)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(d):d(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,l=function c(d,h){var g;if(sr(h)!=="object"){for(var p=arguments.length,m=new Array(p>2?p-2:0),v=2;v<p;v++)m[v-2]=arguments[v];g=s.options.overloadTranslationOptionHandler([d,h].concat(m))}else g=Lo({},h);g.lng=g.lng||c.lng,g.lngs=g.lngs||c.lngs,g.ns=g.ns||c.ns,g.keyPrefix=g.keyPrefix||a||c.keyPrefix;var x=s.options.keySeparator||".",w=g.keyPrefix?"".concat(g.keyPrefix).concat(x).concat(d):d;return s.t(w,g)};return typeof i=="string"?l.lng=i:l.lngs=i,l.ns=o,l.keyPrefix=a,l}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var d=function(p,m){var v=o.services.backendConnector.state["".concat(p,"|").concat(m)];return v===-1||v===2};if(a.precheck){var h=a.precheck(this,d);if(h!==void 0)return h}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(s,i)&&(!l||d(c,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=Fp();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){a.options.ns.indexOf(l)<0&&a.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),o&&o(l)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Fp();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],l=i.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){a.resolve(),o&&o(c)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return o.indexOf(this.services.languageUtils.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D1,s=Lo(Lo(Lo({},this.options),o),{isClone:!0}),l=new n(s);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var c=["store","services","language"];return c.forEach(function(d){l[d]=i[d]}),l.services=Lo({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new _M(l.services,l.options),l.translator.on("*",function(d){for(var h=arguments.length,g=new Array(h>1?h-1:0),p=1;p<h;p++)g[p-1]=arguments[p];l.emit.apply(l,[d].concat(g))}),l.init(s,a),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(Fs);ai(I1,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new I1(e,t)});var Bn=I1.createInstance();Bn.createInstance=I1.createInstance;var Txe=Bn.createInstance,kxe=Bn.init,Axe=Bn.loadResources,_xe=Bn.reloadResources,Rxe=Bn.use,Oxe=Bn.changeLanguage,Dxe=Bn.getFixedT,Ixe=Bn.t,Mxe=Bn.exists,Nxe=Bn.setDefaultNamespace,Pxe=Bn.hasLoadedNamespace,Lxe=Bn.loadNamespaces,Fxe=Bn.loadLanguages;const zxe=Object.freeze(Object.defineProperty({__proto__:null,changeLanguage:Oxe,createInstance:Txe,default:Bn,exists:Mxe,getFixedT:Dxe,hasLoadedNamespace:Pxe,init:kxe,loadLanguages:Fxe,loadNamespaces:Lxe,loadResources:Axe,reloadResources:_xe,setDefaultNamespace:Nxe,t:Ixe,use:Rxe},Symbol.toStringTag,{value:"Module"}));var LM=[],Bxe=LM.forEach,Hxe=LM.slice;function Uxe(e){return Bxe.call(Hxe.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var FM=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,jxe=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),a="".concat(t,"=").concat(o);if(i.maxAge>0){var s=i.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(s))}if(i.domain){if(!FM.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!FM.test(i.path))throw new TypeError("option path is invalid");a+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var l=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(l){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},zM={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=jxe(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(t){this.create(t,"",-1)}},Wxe={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=zM.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&zM.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},Vxe={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),a=0;a<o.length;a++){var s=o[a].indexOf("=");if(s>0){var l=o[a].substring(0,s);l===t.lookupQuerystring&&(n=o[a].substring(s+1))}}}return n}},zp=null,BM=function(){if(zp!==null)return zp;try{zp=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{zp=!1}return zp},Gxe={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&BM()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&BM()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Bp=null,HM=function(){if(Bp!==null)return Bp;try{Bp=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Bp=!1}return Bp},Yxe={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&HM()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&HM()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},qxe={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},Zxe={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Kxe={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},Qxe={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function Xxe(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var UM=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_i(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Ri(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=Uxe(r,this.options||{},Xxe()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Wxe),this.addDetector(Vxe),this.addDetector(Gxe),this.addDetector(Yxe),this.addDetector(qxe),this.addDetector(Zxe),this.addDetector(Kxe),this.addDetector(Qxe)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var a=r.detectors[o].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}]),e}();UM.type="languageDetector";function Jxe(e,t){return e&&Object.hasOwn(e,"message")&&typeof e.message>"u"&&delete t.message,e&&Object.hasOwn(e,"mobile")&&typeof e.mobile>"u"&&delete t.mobile,e&&Object.hasOwn(e,"email")&&typeof e.email>"u"&&delete t.email,e&&Object.hasOwn(e,"firstName")&&typeof e.firstName>"u"&&delete t.firstName,e&&Object.hasOwn(e,"lastName")&&typeof e.lastName>"u"&&delete t.lastName,t}function eSe({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r}){var p,m,v,x,w;const i=Vf(),o=Object.keys(e).length>0,a=Object.keys(n).length>0,s=n.ref,l=n.channelKey,c=(p=n==null?void 0:n.callbacks)==null?void 0:p.fetchingPublicDataFailed,{data:d,isLoading:h,error:g}=Dk({channelOrResourceId:s,params:{channelKey:l}});if(!h)if(g)c&&c(g);else{let b=Ln.merge({},tu.fcConfig,t),S=Ln.merge({},tu.appConfig,n),$=Ln.merge({},tu.muiTheme,e);S.fields=Jxe(n.fields,S.fields),S.fields=jM(S.fields),a&&!((m=d==null?void 0:d.provider)!=null&&m.isLocalisationAllowed)&&(S.localization=tu.appConfig.localization,console.warn("timum detected you configured custom localization/wording.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),a&&!((v=d==null?void 0:d.provider)!=null&&v.areCustomFieldsAllowed)&&(S.fields=tu.appConfig.fields,console.warn("timum detected you configured custom fields.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),a&&!((x=d==null?void 0:d.provider)!=null&&x.isThemingAllowed)&&(S.hideTimumFooter=tu.appConfig.hideTimumFooter,console.warn(`timum detected you want to suppress the "powered by timum" footerSince the Account the referenced resource belongs to isn't in an appropriate plan, this feature is disabled.`)),o&&!((w=d==null?void 0:d.provider)!=null&&w.isThemingAllowed)&&($=tu.muiTheme,console.warn("timum detected you configured custom theming.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),tSe(S),i(yZ(b)),i(vZ(S));let E=d3($??{});return E=NZ(E,{factor:2.5}),_(sV,{theme:E,children:r})}}function tSe(e){const t={};for(const[n,r]of Object.entries(e.localization))t[n]={translation:{...r}};Bn.use(UM).use(tQ).init({detection:{caches:["cookie"],order:["querystring","cookie","localStorage","navigator"],lookupQuerystring:"culture"},interpolation:{prefix:"{{",suffix:"}}"},fallbackLng:"en",resources:t,lng:e.culture}).then(()=>{En.defaultLocale=Bn.resolvedLanguage})}function jM(e,t,n){if(n||(n={}),typeof t>"u"&&(t=0),t>=Object.entries(e).length)return n;for(const[r,i]of Object.entries(e))i.index===t&&(n[r]=i);return t++,jM(e,t,n)}const nSe=rZ({reducer:{[Zg.reducerPath]:Zg.reducer,appState:SZ},middleware:e=>e().concat(Zg.middleware),devTools:{trace:!0}});var M1,qe,WM,Hp,VM,GM,N1={},YM=[],rSe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Bs(e,t){for(var n in t)e[n]=t[n];return e}function qM(e){var t=e.parentNode;t&&t.removeChild(e)}function P(e,t,n){var r,i,o,a={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?M1.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return P1(e,a,r,i,null)}function P1(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++WM};return i==null&&qe.vnode!=null&&qe.vnode(o),o}function On(){return{current:null}}function dt(e){return e.children}function ui(e,t){this.props=e,this.context=t}function Up(e,t){if(t==null)return e.__?Up(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Up(e):null}function ZM(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ZM(e)}}function h5(e){(!e.__d&&(e.__d=!0)&&Hp.push(e)&&!L1.__r++||VM!==qe.debounceRendering)&&((VM=qe.debounceRendering)||setTimeout)(L1)}function L1(){for(var e;L1.__r=Hp.length;)e=Hp.sort(function(t,n){return t.__v.__b-n.__v.__b}),Hp=[],e.some(function(t){var n,r,i,o,a,s;t.__d&&(a=(o=(n=t).__v).__e,(s=n.__P)&&(r=[],(i=Bs({},o)).__v=o.__v+1,g5(s,o,i,n.__n,s.ownerSVGElement!==void 0,o.__h!=null?[a]:null,r,a??Up(o),o.__h),nN(r,o),o.__e!=a&&ZM(o)))})}function KM(e,t,n,r,i,o,a,s,l,c){var d,h,g,p,m,v,x,w=r&&r.__k||YM,b=w.length;for(n.__k=[],d=0;d<t.length;d++)if((p=n.__k[d]=(p=t[d])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?P1(null,p,null,null,p):Array.isArray(p)?P1(dt,{children:p},null,null,null):p.__b>0?P1(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(g=w[d])===null||g&&p.key==g.key&&p.type===g.type)w[d]=void 0;else for(h=0;h<b;h++){if((g=w[h])&&p.key==g.key&&p.type===g.type){w[h]=void 0;break}g=null}g5(e,p,g=g||N1,i,o,a,s,l,c),m=p.__e,(h=p.ref)&&g.ref!=h&&(x||(x=[]),g.ref&&x.push(g.ref,null,p),x.push(h,p.__c||m,p)),m!=null?(v==null&&(v=m),typeof p.type=="function"&&p.__k===g.__k?p.__d=l=QM(p,l,e):l=XM(e,p,g,w,m,l),typeof n.type=="function"&&(n.__d=l)):l&&g.__e==l&&l.parentNode!=e&&(l=Up(g))}for(n.__e=v,d=b;d--;)w[d]!=null&&iN(w[d],w[d]);if(x)for(d=0;d<x.length;d++)rN(x[d],x[++d],x[++d])}function QM(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t=typeof r.type=="function"?QM(r,t,n):XM(n,r,r,i,r.__e,t));return t}function F1(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){F1(n,t)}):t.push(e)),t}function XM(e,t,n,r,i,o){var a,s,l;if(t.__d!==void 0)a=t.__d,t.__d=void 0;else if(n==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),a=null;else{for(s=o,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==i)break e;e.insertBefore(i,o),a=o}return a!==void 0?a:i.nextSibling}function iSe(e,t,n,r,i){var o;for(o in n)o==="children"||o==="key"||o in t||z1(e,o,null,n[o],r);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||z1(e,o,t[o],n[o],r)}function JM(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||rSe.test(t)?n:n+"px"}function z1(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||JM(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||JM(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?tN:eN,o):e.removeEventListener(t,o?tN:eN,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t.indexOf("-")==-1?e.removeAttribute(t):e.setAttribute(t,n))}}function eN(e){this.l[e.type+!1](qe.event?qe.event(e):e)}function tN(e){this.l[e.type+!0](qe.event?qe.event(e):e)}function g5(e,t,n,r,i,o,a,s,l){var c,d,h,g,p,m,v,x,w,b,S,$,E,T,k,A=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,s=t.__e=n.__e,t.__h=null,o=[s]),(c=qe.__b)&&c(t);try{e:if(typeof A=="function"){if(x=t.props,w=(c=A.contextType)&&r[c.__c],b=c?w?w.props.value:c.__:r,n.__c?v=(d=t.__c=n.__c).__=d.__E:("prototype"in A&&A.prototype.render?t.__c=d=new A(x,b):(t.__c=d=new ui(x,b),d.constructor=A,d.render=aSe),w&&w.sub(d),d.props=x,d.state||(d.state={}),d.context=b,d.__n=r,h=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),A.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Bs({},d.__s)),Bs(d.__s,A.getDerivedStateFromProps(x,d.__s))),g=d.props,p=d.state,h)A.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(A.getDerivedStateFromProps==null&&x!==g&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(x,b),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(x,d.__s,b)===!1||t.__v===n.__v){for(d.props=x,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(I){I&&(I.__=t)}),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&a.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(x,d.__s,b),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(g,p,m)})}if(d.context=b,d.props=x,d.__v=t,d.__P=e,$=qe.__r,E=0,"prototype"in A&&A.prototype.render){for(d.state=d.__s,d.__d=!1,$&&$(t),c=d.render(d.props,d.state,d.context),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[]}else do d.__d=!1,$&&$(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++E<25);d.state=d.__s,d.getChildContext!=null&&(r=Bs(Bs({},r),d.getChildContext())),h||d.getSnapshotBeforeUpdate==null||(m=d.getSnapshotBeforeUpdate(g,p)),k=c!=null&&c.type===dt&&c.key==null?c.props.children:c,KM(e,Array.isArray(k)?k:[k],t,n,r,i,o,a,s,l),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),v&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=oSe(n.__e,t,n,r,i,o,a,l);(c=qe.diffed)&&c(t)}catch(I){t.__v=null,(l||o!=null)&&(t.__e=s,t.__h=!!l,o[o.indexOf(s)]=null),qe.__e(I,t,n)}}function nN(e,t){qe.__c&&qe.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){qe.__e(r,n.__v)}})}function oSe(e,t,n,r,i,o,a,s){var l,c,d,h=n.props,g=t.props,p=t.type,m=0;if(p==="svg"&&(i=!0),o!=null){for(;m<o.length;m++)if((l=o[m])&&"setAttribute"in l==!!p&&(p?l.localName===p:l.nodeType===3)){e=l,o[m]=null;break}}if(e==null){if(p===null)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,g.is&&g),o=null,s=!1}if(p===null)h===g||s&&e.data===g||(e.data=g);else{if(o=o&&M1.call(e.childNodes),c=(h=n.props||N1).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(o!=null)for(h={},m=0;m<e.attributes.length;m++)h[e.attributes[m].name]=e.attributes[m].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(iSe(e,g,h,i,s),d)t.__k=[];else if(m=t.props.children,KM(e,Array.isArray(m)?m:[m],t,n,r,i&&p!=="foreignObject",o,a,o?o[0]:n.__k&&Up(n,0),s),o!=null)for(m=o.length;m--;)o[m]!=null&&qM(o[m]);s||("value"in g&&(m=g.value)!==void 0&&(m!==e.value||p==="progress"&&!m||p==="option"&&m!==h.value)&&z1(e,"value",m,h.value,!1),"checked"in g&&(m=g.checked)!==void 0&&m!==e.checked&&z1(e,"checked",m,h.checked,!1))}return e}function rN(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){qe.__e(r,n)}}function iN(e,t,n){var r,i;if(qe.unmount&&qe.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||rN(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){qe.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&iN(r[i],t,n||typeof e.type!="function");n||e.__e==null||qM(e.__e),e.__=e.__e=e.__d=void 0}function aSe(e,t,n){return this.constructor(e,n)}function jp(e,t,n){var r,i,o;qe.__&&qe.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],g5(t,e=(!r&&n||t).__k=P(dt,null,[e]),i||N1,N1,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?M1.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r),nN(o,e)}function sSe(e,t){var n={__c:t="__cC"+GM++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&i.some(h5)},this.sub=function(a){i.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){i.splice(i.indexOf(a),1),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}M1=YM.slice,qe={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},WM=0,ui.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Bs({},this.state),typeof e=="function"&&(e=e(Bs({},n),this.props)),e&&Bs(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),h5(this))},ui.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),h5(this))},ui.prototype.render=dt,Hp=[],L1.__r=0,GM=0;var Fo,m5,oN,aN=[],v5=[],sN=qe.__b,lN=qe.__r,uN=qe.diffed,cN=qe.__c,dN=qe.unmount;function lSe(){for(var e;e=aN.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(B1),e.__H.__h.forEach(y5),e.__H.__h=[]}catch(t){e.__H.__h=[],qe.__e(t,e.__v)}}qe.__b=function(e){Fo=null,sN&&sN(e)},qe.__r=function(e){lN&&lN(e);var t=(Fo=e.__c).__H;t&&(m5===Fo?(t.__h=[],Fo.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=v5,n.__N=n.i=void 0})):(t.__h.forEach(B1),t.__h.forEach(y5),t.__h=[])),m5=Fo},qe.diffed=function(e){uN&&uN(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(aN.push(t)!==1&&oN===qe.requestAnimationFrame||((oN=qe.requestAnimationFrame)||uSe)(lSe)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==v5&&(n.__=n.__V),n.i=void 0,n.__V=v5})),m5=Fo=null},qe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(B1),n.__h=n.__h.filter(function(r){return!r.__||y5(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],qe.__e(r,n.__v)}}),cN&&cN(e,t)},qe.unmount=function(e){dN&&dN(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{B1(r)}catch(i){t=i}}),n.__H=void 0,t&&qe.__e(t,n.__v))};var fN=typeof requestAnimationFrame=="function";function uSe(e){var t,n=function(){clearTimeout(r),fN&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);fN&&(t=requestAnimationFrame(n))}function B1(e){var t=Fo,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Fo=t}function y5(e){var t=Fo;e.__c=e.__(),Fo=t}function cSe(e,t){for(var n in t)e[n]=t[n];return e}function pN(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function hN(e){this.props=e}(hN.prototype=new ui).isPureReactComponent=!0,hN.prototype.shouldComponentUpdate=function(e,t){return pN(this.props,e)||pN(this.state,t)};var gN=qe.__b;qe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),gN&&gN(e)};var dSe=qe.__e;qe.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}dSe(e,t,n,r)};var mN=qe.unmount;function vN(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=cSe({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return vN(r,t,n)})),e}function yN(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return yN(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function b5(){this.__u=0,this.t=null,this.__b=null}function bN(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function H1(){this.u=null,this.o=null}qe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),mN&&mN(e)},(b5.prototype=new ui).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=bN(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=yN(c,c.__c.__P,c.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.t.pop();)d.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},b5.prototype.componentWillUnmount=function(){this.t=[]},b5.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=vN(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&P(dt,null,e.fallback);return i&&(i.__h=null),[P(dt,null,t.__a?null:e.children),i]};var wN=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function fSe(e){return this.getChildContext=function(){return e.context},e.children}function pSe(e){var t=this,n=e.i;t.componentWillUnmount=function(){jp(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),jp(P(fSe,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function hSe(e,t){var n=P(pSe,{__v:e,i:t});return n.containerInfo=t,n}(H1.prototype=new ui).__a=function(e){var t=this,n=bN(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),wN(t,e,r)):i()};n?n(o):o()}},H1.prototype.render=function(e){this.u=null,this.o=new Map;var t=F1(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},H1.prototype.componentDidUpdate=H1.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){wN(e,n,t)})};var gSe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,mSe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,vSe=typeof document<"u",ySe=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};ui.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ui.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var xN=qe.event;function bSe(){}function wSe(){return this.cancelBubble}function xSe(){return this.defaultPrevented}qe.event=function(e){return xN&&(e=xN(e)),e.persist=bSe,e.isPropagationStopped=wSe,e.isDefaultPrevented=xSe,e.nativeEvent=e};var SN={configurable:!0,get:function(){return this.class}},$N=qe.vnode;qe.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var o in r={},n){var a=n[o];vSe&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in n&&a==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!ySe(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&mSe.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():a===null&&(a=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o="oninputCapture")),r[o]=a)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=F1(n.children).forEach(function(s){s.props.selected=r.value.indexOf(s.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=F1(n.children).forEach(function(s){s.props.selected=r.multiple?r.defaultValue.indexOf(s.props.value)!=-1:r.defaultValue==s.props.value})),e.props=r,n.class!=n.className&&(SN.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",SN))}e.$$typeof=gSe,$N&&$N(e)};var CN=qe.__r;qe.__r=function(e){CN&&CN(e),e.__c};const EN=[],w5=new WeakMap;typeof document<"u"&&w5.set(document,!0);function Wp(e){e&&typeof document<"u"&&EN.push(TN(document.head,e))}function SSe(e){const t=e.getRootNode();if(!w5.get(t)){w5.set(t,!0);for(const n of EN)TN(t,n.innerText)}}function TN(e,t){const n=document.createElement("style"),r=$Se();return r&&(n.nonce=r),n.innerText=t,e.appendChild(n),n}let x5;function $Se(){return x5===void 0&&(x5=CSe()),x5}function CSe(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");return t&&t.nonce||""}class S5{constructor(t){this.drainedOption=t,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(t){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),t==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),t))}pause(t=""){let{pauseDepths:n}=this;n[t]=(n[t]||0)+1,this.clearTimeout()}resume(t="",n){let{pauseDepths:r}=this;t in r&&(n?delete r[t]:(r[t]-=1,r[t]<=0&&delete r[t]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function ESe(e){e.parentNode&&e.parentNode.removeChild(e)}function Aa(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(TSe(e,t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function TSe(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function kSe(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let i=0;i<n.length;i+=1){let o=n[i].querySelectorAll(t);for(let a=0;a<o.length;a+=1)r.push(o[a])}return r}const ASe=/(top|left|right|bottom|width|height)$/i;function _Se(e,t){for(let n in t)kN(e,n,t[n])}function kN(e,t,n){n==null?e.style[t]="":typeof n=="number"&&ASe.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function RSe(e){var t,n;return(n=(t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])!==null&&n!==void 0?n:e.target}let AN=0;function zo(){return AN+=1,"fc-dom-"+AN}function OSe(e,t){return n=>{let r=Aa(n.target,e);r&&t.call(r,n,r)}}function _N(e,t,n,r){let i=OSe(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function DSe(e,t,n,r){let i;return _N(e,"mouseover",t,(o,a)=>{if(a!==i){i=a,n(o,a);let s=l=>{i=null,r(l,a),a.removeEventListener("mouseleave",s)};a.addEventListener("mouseleave",s)}})}function RN(e){return Object.assign({onClick:e},ON(e))}function ON(e){return{tabIndex:0,onKeyDown(t){(t.key==="Enter"||t.key===" ")&&(e(t),t.preventDefault())}}}let DN=0;function nu(){return DN+=1,String(DN)}function ISe(e){let t=[],n=[],r,i;for(typeof e=="string"?n=e.split(/\s*,\s*/):typeof e=="function"?n=[e]:Array.isArray(e)&&(n=e),r=0;r<n.length;r+=1)i=n[r],typeof i=="string"?t.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&t.push({func:i});return t}function MSe(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=NSe(e,t,n[r]),i)return i;return 0}function NSe(e,t,n){return n.func?n.func(e,t):PSe(e[n.field],t[n.field])*(n.order||1)}function PSe(e,t){return!e&&!t?0:t==null?-1:e==null?1:typeof e=="string"||typeof t=="string"?String(e).localeCompare(String(t)):e-t}function Xc(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function Vp(e,t,n){return typeof e=="function"?e(...t):typeof e=="string"?t.reduce((r,i,o)=>r.replace("$"+o,i||""),e):n}function U1(e){return e%1===0}function LSe(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const IN=["years","months","days","milliseconds"],FSe=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function bt(e,t){return typeof e=="string"?zSe(e):typeof e=="object"&&e?MN(e):typeof e=="number"?MN({[t||"milliseconds"]:e}):null}function zSe(e){let t=FSe.exec(e);if(t){let n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*((t[3]?parseInt(t[3],10):0)*60*60*1e3+(t[4]?parseInt(t[4],10):0)*60*1e3+(t[5]?parseInt(t[5],10):0)*1e3+(t[6]?parseInt(t[6],10):0))}}return null}function MN(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:(e.hours||e.hour||0)*60*60*1e3+(e.minutes||e.minute||0)*60*1e3+(e.seconds||e.second||0)*1e3+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=n*7,t.specifiedWeeks=!0),t}function BSe(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function $5(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function HSe(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function USe(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function jSe(e){return Jc(e)/365}function WSe(e){return Jc(e)/30}function Jc(e){return co(e)/864e5}function co(e){return e.years*(365*864e5)+e.months*(30*864e5)+e.days*864e5+e.milliseconds}function C5(e,t){let n=null;for(let r=0;r<IN.length;r+=1){let i=IN[r];if(t[i]){let o=e[i]/t[i];if(!U1(o)||n!==null&&n!==o)return null;n=o}else if(e[i])return null}return n}function E5(e){let t=e.milliseconds;if(t){if(t%1e3!==0)return{unit:"millisecond",value:t};if(t%(1e3*60)!==0)return{unit:"second",value:t/1e3};if(t%(1e3*60*60)!==0)return{unit:"minute",value:t/(1e3*60)};if(t)return{unit:"hour",value:t/(1e3*60*60)}}return e.days?e.specifiedWeeks&&e.days%7===0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Hs(e,t,n){if(e===t)return!0;let r=e.length,i;if(r!==t.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(e[i],t[i]):e[i]===t[i]))return!1;return!0}const VSe=["sun","mon","tue","wed","thu","fri","sat"];function j1(e,t){let n=Ws(e);return n[2]+=t*7,Hr(n)}function vn(e,t){let n=Ws(e);return n[2]+=t,Hr(n)}function Us(e,t){let n=Ws(e);return n[6]+=t,Hr(n)}function NN(e,t){return js(e,t)/7}function js(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60*24)}function GSe(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60)}function YSe(e,t){return(t.valueOf()-e.valueOf())/(1e3*60)}function qSe(e,t){return(t.valueOf()-e.valueOf())/1e3}function ZSe(e,t){let n=Bt(e),r=Bt(t);return{years:0,months:0,days:Math.round(js(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function KSe(e,t){let n=W1(e,t);return n!==null&&n%7===0?n/7:null}function W1(e,t){return Vs(e)===Vs(t)?Math.round(js(e,t)):null}function Bt(e){return Hr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function QSe(e){return Hr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function XSe(e){return Hr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function JSe(e){return Hr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function e5e(e,t,n){let r=e.getUTCFullYear(),i=T5(e,r,t,n);if(i<1)return T5(e,r-1,t,n);let o=T5(e,r+1,t,n);return o>=1?Math.min(i,o):i}function T5(e,t,n,r){let i=Hr([t,0,1+t5e(t,n,r)]),o=Bt(e),a=Math.round(js(i,o));return Math.floor(a/7)+1}function t5e(e,t,n){let r=7+t-n;return-((7+Hr([e,0,r]).getUTCDay()-t)%7)+r-1}function PN(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function LN(e){return new Date(e[0],e[1]||0,e[2]==null?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Ws(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Hr(e){return e.length===1&&(e=e.concat([0])),new Date(Date.UTC(...e))}function FN(e){return!isNaN(e.valueOf())}function Vs(e){return e.getUTCHours()*1e3*60*60+e.getUTCMinutes()*1e3*60+e.getUTCSeconds()*1e3+e.getUTCMilliseconds()}function zN(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(t==null?r=r.replace("Z",""):t!==0&&(r=r.replace("Z",A5(t,!0)))),r}function Gp(e){return e.toISOString().replace(/T.*$/,"")}function k5(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function n5e(e){return Xc(e.getUTCHours(),2)+":"+Xc(e.getUTCMinutes(),2)+":"+Xc(e.getUTCSeconds(),2)}function A5(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?`${n+Xc(i,2)}:${Xc(o,2)}`:`GMT${n}${i}${o?`:${Xc(o,2)}`:""}`}function Le(e,t,n){let r,i;return function(...o){if(!r)i=e.apply(this,o);else if(!Hs(r,o)){n&&n(i);let a=e.apply(this,o);(!t||!t(a,i))&&(i=a)}return r=o,i}}function V1(e,t,n){let r,i;return o=>{if(!r)i=e.call(this,o);else if(!ci(r,o)){n&&n(i);let a=e.call(this,o);(!t||!t(a,i))&&(i=a)}return r=o,i}}const BN={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},G1={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Y1=/\s*([ap])\.?m\.?/i,r5e=/,/g,i5e=/\s+/g,o5e=/\u200e/g,a5e=/UTC|GMT/;class s5e{constructor(t){let n={},r={},i=0;for(let o in t)o in BN?(r[o]=t[o],i=Math.max(BN[o],i)):(n[o]=t[o],o in G1&&(i=Math.max(G1[o],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=Le(HN)}format(t,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(t)}formatRange(t,n,r,i){let{standardDateProps:o,extendedSettings:a}=this,s=p5e(t.marker,n.marker,r.calendarSystem);if(!s)return this.format(t,r);let l=s;l>1&&(o.year==="numeric"||o.year==="2-digit")&&(o.month==="numeric"||o.month==="2-digit")&&(o.day==="numeric"||o.day==="2-digit")&&(l=1);let c=this.format(t,r),d=this.format(n,r);if(c===d)return c;let h=h5e(o,l),g=HN(h,a,r),p=g(t),m=g(n),v=g5e(c,p,d,m),x=a.separator||i||r.defaultSeparator||"";return v?v.before+p+x+m+v.after:c+x+d}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function HN(e,t,n){let r=Object.keys(e).length;return r===1&&e.timeZoneName==="short"?i=>A5(i.timeZoneOffset):r===0&&t.week?i=>f5e(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,t.week):l5e(e,t,n)}function l5e(e,t,n){e=Object.assign({},e),t=Object.assign({},t),u5e(e,t),e.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,e),i;if(t.omitZeroMinute){let o=Object.assign({},e);delete o.minute,i=new Intl.DateTimeFormat(n.locale.codes,o)}return o=>{let{marker:a}=o,s;i&&!a.getUTCMinutes()?s=i:s=r;let l=s.format(a);return c5e(l,o,e,t,n)}}function u5e(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),e.timeZoneName==="long"&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function c5e(e,t,n,r,i){return e=e.replace(o5e,""),n.timeZoneName==="short"&&(e=d5e(e,i.timeZone==="UTC"||t.timeZoneOffset==null?"UTC":A5(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(r5e,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),r.meridiem===!1?e=e.replace(Y1,"").trim():r.meridiem==="narrow"?e=e.replace(Y1,(o,a)=>a.toLocaleLowerCase()):r.meridiem==="short"?e=e.replace(Y1,(o,a)=>`${a.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(e=e.replace(Y1,o=>o.toLocaleLowerCase())),e=e.replace(i5e," "),e=e.trim(),e}function d5e(e,t){let n=!1;return e=e.replace(a5e,()=>(n=!0,t)),n||(e+=` ${t}`),e}function f5e(e,t,n,r,i){let o=[];return i==="long"?o.push(n):(i==="short"||i==="narrow")&&o.push(t),(i==="long"||i==="short")&&o.push(" "),o.push(r.simpleNumberFormat.format(e)),r.options.direction==="rtl"&&o.reverse(),o.join("")}function p5e(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:Vs(e)!==Vs(t)?1:0}function h5e(e,t){let n={};for(let r in e)(!(r in G1)||G1[r]<=t)&&(n[r]=e[r]);return n}function g5e(e,t,n,r){let i=0;for(;i<e.length;){let o=e.indexOf(t,i);if(o===-1)break;let a=e.substr(0,o);i=o+t.length;let s=e.substr(i),l=0;for(;l<n.length;){let c=n.indexOf(r,l);if(c===-1)break;let d=n.substr(0,c);l=c+r.length;let h=n.substr(l);if(a===d&&s===h)return{before:a,after:s}}}return null}function UN(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function q1(e,t,n,r){let i=UN(e,n.calendarSystem),o=t?UN(t,n.calendarSystem):null;return{date:i,start:i,end:o,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class m5e{constructor(t){this.cmdStr=t}format(t,n,r){return n.cmdFormatter(this.cmdStr,q1(t,null,n,r))}formatRange(t,n,r,i){return r.cmdFormatter(this.cmdStr,q1(t,n,r,i))}}class v5e{constructor(t){this.func=t}format(t,n,r){return this.func(q1(t,null,n,r))}formatRange(t,n,r,i){return this.func(q1(t,n,r,i))}}function Rt(e){return typeof e=="object"&&e?new s5e(e):typeof e=="string"?new m5e(e):typeof e=="function"?new v5e(e):null}const jN={navLinkDayClick:re,navLinkWeekClick:re,duration:bt,bootstrapFontAwesome:re,buttonIcons:re,customButtons:re,defaultAllDayEventDuration:bt,defaultTimedEventDuration:bt,nextDayThreshold:bt,scrollTime:bt,scrollTimeReset:Boolean,slotMinTime:bt,slotMaxTime:bt,dayPopoverFormat:Rt,slotDuration:bt,snapDuration:bt,headerToolbar:re,footerToolbar:re,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Rt,dayHeaderClassNames:re,dayHeaderContent:re,dayHeaderDidMount:re,dayHeaderWillUnmount:re,dayCellClassNames:re,dayCellContent:re,dayCellDidMount:re,dayCellWillUnmount:re,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:re,weekNumbers:Boolean,weekNumberClassNames:re,weekNumberContent:re,weekNumberDidMount:re,weekNumberWillUnmount:re,editable:Boolean,viewClassNames:re,viewDidMount:re,viewWillUnmount:re,nowIndicator:Boolean,nowIndicatorClassNames:re,nowIndicatorContent:re,nowIndicatorDidMount:re,nowIndicatorWillUnmount:re,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:re,locale:re,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:re,eventOrder:ISe,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:re,contentHeight:re,direction:String,weekNumberFormat:Rt,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:re,initialDate:re,now:re,eventDataTransform:re,stickyHeaderDates:re,stickyFooterScrollbar:re,viewHeight:re,defaultAllDay:Boolean,eventSourceFailure:re,eventSourceSuccess:re,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:re,eventConstraint:re,eventAllow:re,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:re,eventContent:re,eventDidMount:re,eventWillUnmount:re,selectConstraint:re,selectOverlap:re,selectAllow:re,droppable:Boolean,unselectCancel:String,slotLabelFormat:re,slotLaneClassNames:re,slotLaneContent:re,slotLaneDidMount:re,slotLaneWillUnmount:re,slotLabelClassNames:re,slotLabelContent:re,slotLabelDidMount:re,slotLabelWillUnmount:re,dayMaxEvents:re,dayMaxEventRows:re,dayMinWidth:Number,slotLabelInterval:bt,allDayText:String,allDayClassNames:re,allDayContent:re,allDayDidMount:re,allDayWillUnmount:re,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Rt,rerenderDelay:Number,moreLinkText:re,moreLinkHint:re,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:re,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:bt,hiddenDays:re,fixedWeekCount:Boolean,validRange:re,visibleRange:re,titleFormat:re,eventInteractive:Boolean,noEventsText:String,viewHint:re,navLinkHint:re,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:re,moreLinkClassNames:re,moreLinkContent:re,moreLinkDidMount:re,moreLinkWillUnmount:re,monthStartFormat:Rt,handleCustomRendering:re,customRenderingMetaMap:re,customRenderingReplacesEl:Boolean},Yp={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},WN={datesSet:re,eventsSet:re,eventAdd:re,eventChange:re,eventRemove:re,windowResize:re,eventClick:re,eventMouseEnter:re,eventMouseLeave:re,select:re,unselect:re,loading:re,_unmount:re,_beforeprint:re,_afterprint:re,_noEventDrop:re,_noEventResize:re,_resize:re,_scrollRequest:re},VN={buttonText:re,buttonHints:re,views:re,plugins:re,initialEvents:re,events:re,eventSources:re},ru={headerToolbar:iu,footerToolbar:iu,buttonText:iu,buttonHints:iu,buttonIcons:iu,dateIncrement:iu,plugins:Z1,events:Z1,eventSources:Z1,resources:Z1};function iu(e,t){return typeof e=="object"&&typeof t=="object"&&e&&t?ci(e,t):e===t}function Z1(e,t){return Array.isArray(e)&&Array.isArray(t)?Hs(e,t):e===t}const y5e={type:String,component:re,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:re,usesMinMaxTime:Boolean,classNames:re,content:re,didMount:re,willUnmount:re};function _5(e){return O5(e,ru)}function R5(e,t){let n={},r={};for(let i in t)i in e&&(n[i]=t[i](e[i]));for(let i in e)i in t||(r[i]=e[i]);return{refined:n,extra:r}}function re(e){return e}const{hasOwnProperty:K1}=Object.prototype;function O5(e,t){let n={};if(t){for(let r in t)if(t[r]===iu){let i=[];for(let o=e.length-1;o>=0;o-=1){let a=e[o][r];if(typeof a=="object"&&a)i.unshift(a);else if(a!==void 0){n[r]=a;break}}i.length&&(n[r]=O5(i))}}for(let r=e.length-1;r>=0;r-=1){let i=e[r];for(let o in i)o in n||(n[o]=i[o])}return n}function ed(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ou(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function GN(e){let t={};for(let n of e)t[n]=!0;return t}function D5(e){let t=[];for(let n in e)t.push(e[n]);return t}function ci(e,t){if(e===t)return!0;for(let n in e)if(K1.call(e,n)&&!(n in t))return!1;for(let n in t)if(K1.call(t,n)&&e[n]!==t[n])return!1;return!0}const b5e=/^on[A-Z]/;function w5e(e,t){const n=I5(e,t);for(let r of n)if(!b5e.test(r))return!1;return!0}function I5(e,t){let n=[];for(let r in e)K1.call(e,r)&&(r in t||n.push(r));for(let r in t)K1.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function M5(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e&&x5e(e[r],t[r],n[r])))return!1;for(let r in e)if(!(r in t))return!1;return!0}function x5e(e,t,n){return e===t||n===!0?!0:n?n(e,t):!1}function S5e(e,t=0,n,r=1){let i=[];n==null&&(n=Object.keys(e).length);for(let o=t;o<n;o+=r){let a=e[o];a!==void 0&&i.push(a)}return i}let YN={};function $5e(e,t){YN[e]=t}function C5e(e){return new YN[e]}class E5e{getMarkerYear(t){return t.getUTCFullYear()}getMarkerMonth(t){return t.getUTCMonth()}getMarkerDay(t){return t.getUTCDate()}arrayToMarker(t){return Hr(t)}markerToArray(t){return Ws(t)}}$5e("gregory",E5e);const T5e=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function k5e(e){let t=T5e.exec(e);if(t){let n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?Number(`0.${t[12]}`)*1e3:0));if(FN(n)){let r=null;return t[13]&&(r=(t[15]==="-"?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}class A5e{constructor(t){let n=this.timeZone=t.timeZone,r=n!=="local"&&n!=="UTC";t.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new t.namedTimeZoneImpl(n)),this.canComputeOffset=Boolean(!r||this.namedTimeZoneImpl),this.calendarSystem=C5e(t.calendarSystem),this.locale=t.locale,this.weekDow=t.locale.week.dow,this.weekDoy=t.locale.week.doy,t.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof t.firstDay=="number"&&(this.weekDow=t.firstDay),typeof t.weekNumberCalculation=="function"&&(this.weekNumberFunc=t.weekNumberCalculation),this.weekText=t.weekText!=null?t.weekText:t.locale.options.weekText,this.weekTextLong=(t.weekTextLong!=null?t.weekTextLong:t.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=t.cmdFormatter,this.defaultSeparator=t.defaultSeparator}createMarker(t){let n=this.createMarkerMeta(t);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Hr(PN(new Date))}createMarkerMeta(t){if(typeof t=="string")return this.parse(t);let n=null;return typeof t=="number"?n=this.timestampToMarker(t):t instanceof Date?(t=t.valueOf(),isNaN(t)||(n=this.timestampToMarker(t))):Array.isArray(t)&&(n=Hr(t)),n===null||!FN(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(t){let n=k5e(t);if(n===null)return null;let{marker:r}=n,i=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):i=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:i}}getYear(t){return this.calendarSystem.getMarkerYear(t)}getMonth(t){return this.calendarSystem.getMarkerMonth(t)}add(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(t,n){let r=this.calendarSystem.markerToArray(t);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(t,n){let{calendarSystem:r}=this;return Vs(t)===Vs(n)&&r.getMarkerDay(t)===r.getMarkerDay(n)&&r.getMarkerMonth(t)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(t):null}diffWholeMonths(t,n){let{calendarSystem:r}=this;return Vs(t)===Vs(n)&&r.getMarkerDay(t)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(t)+(r.getMarkerYear(n)-r.getMarkerYear(t))*12:null}greatestWholeUnit(t,n){let r=this.diffWholeYears(t,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(t,n),r!==null?{unit:"month",value:r}:(r=KSe(t,n),r!==null?{unit:"week",value:r}:(r=W1(t,n),r!==null?{unit:"day",value:r}:(r=GSe(t,n),U1(r)?{unit:"hour",value:r}:(r=YSe(t,n),U1(r)?{unit:"minute",value:r}:(r=qSe(t,n),U1(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-t.valueOf()}))))))}countDurationsBetween(t,n,r){let i;return r.years&&(i=this.diffWholeYears(t,n),i!==null)?i/jSe(r):r.months&&(i=this.diffWholeMonths(t,n),i!==null)?i/WSe(r):r.days&&(i=W1(t,n),i!==null)?i/Jc(r):(n.valueOf()-t.valueOf())/co(r)}startOf(t,n){return n==="year"?this.startOfYear(t):n==="month"?this.startOfMonth(t):n==="week"?this.startOfWeek(t):n==="day"?Bt(t):n==="hour"?QSe(t):n==="minute"?XSe(t):n==="second"?JSe(t):null}startOfYear(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t)])}startOfMonth(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t)])}startOfWeek(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t),t.getUTCDate()-(t.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(t){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(t)):e5e(t,this.weekDow,this.weekDoy)}format(t,n,r={}){return n.format({marker:t,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(t)},this)}formatRange(t,n,r,i={}){return i.isEndExclusive&&(n=Us(n,-1)),r.formatRange({marker:t,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(t)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(t,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(t)),zN(t,r,n.omitTime)}timestampToMarker(t){return this.timeZone==="local"?Hr(PN(new Date(t))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(t):Hr(this.namedTimeZoneImpl.timestampToArray(t))}offsetForMarker(t){return this.timeZone==="local"?-LN(Ws(t)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Ws(t)):null}toDate(t,n){return this.timeZone==="local"?LN(Ws(t)):this.timeZone==="UTC"?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-this.namedTimeZoneImpl.offsetForArray(Ws(t))*1e3*60):new Date(t.valueOf()-(n||0))}}class qp{constructor(t){this.iconOverrideOption&&this.setIconOverride(t[this.iconOverrideOption])}setIconOverride(t){let n,r;if(typeof t=="object"&&t){n=Object.assign({},this.iconClasses);for(r in t)n[r]=this.applyIconOverridePrefix(t[r]);this.iconClasses=n}else t===!1&&(this.iconClasses={})}applyIconOverridePrefix(t){let n=this.iconOverridePrefix;return n&&t.indexOf(n)!==0&&(t=n+t),t}getClass(t){return this.classes[t]||""}getIconClass(t,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[t]||this.iconClasses[t]:r=this.iconClasses[t],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(t){let n;return this.iconOverrideCustomButtonOption&&(n=t[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}qp.prototype.classes={},qp.prototype.iconClasses={},qp.prototype.baseIconClass="",qp.prototype.iconOverridePrefix="";function qN(e){e();let t=qe.debounceRendering,n=[];function r(i){n.push(i)}for(qe.debounceRendering=r,jp(P(_5e,{}),document.createElement("div"));n.length;)n.shift()();qe.debounceRendering=t}class _5e extends ui{render(){return P("div",{})}componentDidMount(){this.setState({})}}function ZN(e){let t=sSe(e),n=t.Provider;return t.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let o=[];this.shouldComponentUpdate=a=>{this.props.value!==a.value&&o.forEach(s=>{s.context=a.value,s.forceUpdate()})},this.sub=a=>{o.push(a);let s=a.componentWillUnmount;a.componentWillUnmount=()=>{o.splice(o.indexOf(a),1),s&&s.call(a)}}}return i},t}class R5e{constructor(t,n,r,i){this.execFunc=t,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=o=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},o),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(t){t&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const _a=ZN({});function O5e(e,t,n,r,i,o,a,s,l,c,d,h,g){return{dateEnv:i,options:n,pluginHooks:a,emitter:c,dispatch:s,getCurrentData:l,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:o,isRtl:n.direction==="rtl",addResizeHandler(p){c.on("_resize",p)},removeResizeHandler(p){c.off("_resize",p)},createScrollResponder(p){return new R5e(p,c,bt(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:h,unregisterInteractiveComponent:g}}class au extends ui{shouldComponentUpdate(t,n){return this.debug&&console.log(I5(t,this.props),I5(n,this.state)),!M5(this.props,t,this.propEquality)||!M5(this.state,n,this.stateEquality)}safeSetState(t){M5(this.state,Object.assign(Object.assign({},this.state),t),this.stateEquality)||this.setState(t)}}au.addPropsEquality=D5e,au.addStateEquality=I5e,au.contextType=_a,au.prototype.propEquality={},au.prototype.stateEquality={};class wt extends au{}wt.contextType=_a;function D5e(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function I5e(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function Bo(e,t){typeof e=="function"?e(t):e&&(e.current=t)}class N5 extends wt{constructor(){super(...arguments),this.id=nu(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=t=>{this.props.elRef&&Bo(this.props.elRef,t)}}render(){const{props:t,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:o,renderProps:a}=t,s=QN(t);let l=!1,c,d=[],h;if(i!=null){const g=typeof i=="function"?i(a,P):i;if(g===!0)l=!0;else if(r.handleCustomRendering)h=g;else{const p=typeof g=="object";p&&"html"in g?s.dangerouslySetInnerHTML={__html:g.html}:p&&"domNodes"in g?d=Array.prototype.slice.call(g.domNodes):c=g}}else l=!KN(t.generatorName,r);return l&&o&&(c=o(a)),this.queuedDomNodes=d,this.currentGeneratorMeta=h,P(t.elTag,s,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(t){var n;const{props:r,context:i}=this,{handleCustomRendering:o,customRenderingMetaMap:a}=i.options;if(o){const s=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:a==null?void 0:a[r.generatorName];s&&o(Object.assign({id:this.id,isActive:t,containerEl:this.base,reportNewContainerEl:this.handleEl,generatorMeta:s},r))}}applyQueueudDomNodes(){const{queuedDomNodes:t,currentDomNodes:n}=this,r=this.base;if(!Hs(t,n)){n.forEach(ESe);for(let i of t)r.appendChild(i);this.currentDomNodes=t}}}N5.addPropsEquality({elClasses:Hs,elStyle:ci,elAttrs:w5e,renderProps:ci});function KN(e,t){var n;return Boolean(t.handleCustomRendering&&e&&((n=t.customRenderingMetaMap)===null||n===void 0?void 0:n[e]))}function QN(e,t){const n=Object.assign(Object.assign({},e.elAttrs),{ref:e.elRef});return(e.elClasses||t)&&(n.className=(e.elClasses||[]).concat(t||[]).concat(n.className||[]).filter(Boolean).join(" ")),e.elStyle&&(n.style=e.elStyle),n}const XN=ZN(0);class pr extends ui{constructor(){super(...arguments),this.InnerContent=M5e.bind(void 0,this)}render(){const{props:t}=this,n=N5e(t.classNameGenerator,t.renderProps);if(t.children){const r=QN(t,n),i=t.children(this.InnerContent,t.renderProps,r);return t.elTag?P(t.elTag,r,i):i}else return P(N5,Object.assign(Object.assign({},t),{elTag:t.elTag||"div",elClasses:(t.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var t,n;(n=(t=this.props).didMount)===null||n===void 0||n.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}componentWillUnmount(){var t,n;(n=(t=this.props).willUnmount)===null||n===void 0||n.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}}pr.contextType=XN;function M5e(e,t){const n=e.props;return P(N5,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function N5e(e,t){const n=typeof e=="function"?e(t):e||[];return typeof n=="string"?[n]:n}class td extends wt{render(){let{props:t,context:n}=this,{options:r}=n,i={view:n.viewApi};return P(pr,Object.assign({},t,{elTag:t.elTag||"div",elClasses:[...JN(t.viewSpec),...t.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>t.children)}}function JN(e){return[`fc-${e.type}-view`,"fc-view"]}function P5e(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function eP(e,t){let n=[],{start:r}=t,i,o;for(e.sort(L5e),i=0;i<e.length;i+=1)o=e[i],o.start>r&&n.push({start:r,end:o.start}),o.end>r&&(r=o.end);return r<t.end&&n.push({start:r,end:t.end}),n}function L5e(e,t){return e.start.valueOf()-t.start.valueOf()}function Ho(e,t){let{start:n,end:r}=e,i=null;return t.start!==null&&(n===null?n=t.start:n=new Date(Math.max(n.valueOf(),t.start.valueOf()))),t.end!=null&&(r===null?r=t.end:r=new Date(Math.min(r.valueOf(),t.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function F5e(e,t){return(e.end===null||t.start===null||e.end>t.start)&&(e.start===null||t.end===null||e.start<t.end)}function Ra(e,t){return(e.start===null||t>=e.start)&&(e.end===null||t<e.end)}function z5e(e,t){return t.start!=null&&e<t.start?t.start:t.end!=null&&e>=t.end?new Date(t.end.valueOf()-1):e}function tP(e){let t=Math.floor(js(e.start,e.end))||1,n=Bt(e.start),r=vn(n,t);return{start:n,end:r}}function P5(e,t=bt(0)){let n=null,r=null;if(e.end){r=Bt(e.end);let i=e.end.valueOf()-r.valueOf();i&&i>=co(t)&&(r=vn(r,1))}return e.start&&(n=Bt(e.start),r&&r<=n&&(r=vn(n,1))),{start:n,end:r}}function B5e(e){let t=P5(e);return js(t.start,t.end)>1}function Q1(e,t,n,r){return r==="year"?bt(n.diffWholeYears(e,t),"year"):r==="month"?bt(n.diffWholeMonths(e,t),"month"):ZSe(e,t)}function H5e(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function U5e(e,t){let n=e.initialDate;return n!=null?t.createMarker(n):Zp(e.now,t)}function Zp(e,t){return typeof e=="function"&&(e=e()),e==null?t.createNowMarker():t.createMarker(e)}class L5{constructor(t){this.props=t,this.nowDate=Zp(t.nowInput,t.dateEnv),this.initHiddenDays()}buildPrev(t,n,r){let{dateEnv:i}=this.props,o=i.subtract(i.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(o,-1,r)}buildNext(t,n,r){let{dateEnv:i}=this.props,o=i.add(i.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(o,1,r)}build(t,n,r=!0){let{props:i}=this,o,a,s,l,c,d;return o=this.buildValidRange(),o=this.trimHiddenDays(o),r&&(t=z5e(t,o)),a=this.buildCurrentRangeInfo(t,n),s=/^(year|month|week|day)$/.test(a.unit),l=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,s),l=this.trimHiddenDays(l),c=l,i.showNonCurrentDates||(c=Ho(c,a.range)),c=this.adjustActiveRange(c),c=Ho(c,o),d=F5e(a.range,o),Ra(l,t)||(t=l.start),{currentDate:t,validRange:o,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:s,activeRange:c,renderRange:l,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:d,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let t=this.props.validRangeInput,n=typeof t=="function"?t.call(this.props.calendarApi,this.nowDate):t;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(t,n){let{props:r}=this,i=null,o=null,a=null,s;return r.duration?(i=r.duration,o=r.durationUnit,a=this.buildRangeFromDuration(t,n,i,o)):(s=this.props.dayCount)?(o="day",a=this.buildRangeFromDayCount(t,n,s)):(a=this.buildCustomVisibleRange(t))?o=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(i=this.getFallbackDuration(),o=E5(i).unit,a=this.buildRangeFromDuration(t,n,i,o)),{duration:i,unit:o,range:a}}getFallbackDuration(){return bt({day:1})}adjustActiveRange(t){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:o}=this.props,{start:a,end:s}=t;return r&&(Jc(i)<0&&(a=Bt(a),a=n.add(a,i)),Jc(o)>1&&(s=Bt(s),s=vn(s,-1),s=n.add(s,o))),{start:a,end:s}}buildRangeFromDuration(t,n,r,i){let{dateEnv:o,dateAlignment:a}=this.props,s,l,c;if(!a){let{dateIncrement:h}=this.props;h&&co(h)<co(r)?a=E5(h).unit:a=i}Jc(r)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,n),s=Bt(s));function d(){s=o.startOf(t,a),l=o.add(s,r),c={start:s,end:l}}return d(),this.trimHiddenDays(c)||(t=this.skipHiddenDays(t,n),d()),c}buildRangeFromDayCount(t,n,r){let{dateEnv:i,dateAlignment:o}=this.props,a=0,s=t,l;o&&(s=i.startOf(s,o)),s=Bt(s),s=this.skipHiddenDays(s,n),l=s;do l=vn(l,1),this.isHiddenDay(l)||(a+=1);while(a<r);return{start:s,end:l}}buildCustomVisibleRange(t){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(t)):r,o=this.refineRange(i);return o&&(o.start==null||o.end==null)?null:o}buildRenderRange(t,n,r){return t}buildDateIncrement(t){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?bt(1,r):t||bt({days:1}))}refineRange(t){if(t){let n=P5e(t,this.props.dateEnv);return n&&(n=P5(n)),n}return null}initHiddenDays(){let t=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&t.push(0,6),i=0;i<7;i+=1)(n[i]=t.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(t){let{start:n,end:r}=t;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(t){return t instanceof Date&&(t=t.getUTCDay()),this.isHiddenDayHash[t]}skipHiddenDays(t,n=1,r=!1){for(;this.isHiddenDayHash[(t.getUTCDay()+(r?n:0)+7)%7];)t=vn(t,n);return t}}function F5(e,t,n,r){return{instanceId:nu(),defId:e,range:t,forcedStartTzo:n??null,forcedEndTzo:r??null}}function j5e(e,t,n,r){for(let i=0;i<r.length;i+=1){let o=r[i].parse(e,n);if(o){let{allDay:a}=e;return a==null&&(a=t,a==null&&(a=o.allDayGuess,a==null&&(a=!1))),{allDay:a,duration:o.duration,typeData:o.typeData,typeId:i}}}return null}function Kp(e,t,n){let{dateEnv:r,pluginHooks:i,options:o}=n,{defs:a,instances:s}=e;s=ed(s,l=>!a[l.defId].recurringDef);for(let l in a){let c=a[l];if(c.recurringDef){let{duration:d}=c.recurringDef;d||(d=c.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);let h=W5e(c,d,t,r,i.recurringTypes);for(let g of h){let p=F5(l,{start:g,end:r.add(g,d)});s[p.instanceId]=p}}}return{defs:a,instances:s}}function W5e(e,t,n,r,i){let a=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(Bt)),a}const X1={id:String,groupId:String,title:String,url:String,interactive:Boolean},nP={start:re,end:re,date:re,allDay:Boolean},V5e=Object.assign(Object.assign(Object.assign({},X1),nP),{extendedProps:re});function rP(e,t,n,r,i=z5(n),o,a){let{refined:s,extra:l}=iP(e,n,i),c=Y5e(t,n),d=j5e(s,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let g=B5(s,l,t?t.sourceId:"",d.allDay,Boolean(d.duration),n,o);return g.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:g,instance:null}}let h=G5e(s,c,n,r);if(h){let g=B5(s,l,t?t.sourceId:"",h.allDay,h.hasEnd,n,o),p=F5(g.defId,h.range,h.forcedStartTzo,h.forcedEndTzo);return a&&g.publicId&&a[g.publicId]&&(p.instanceId=a[g.publicId]),{def:g,instance:p}}return null}function iP(e,t,n=z5(t)){return R5(e,n)}function z5(e){return Object.assign(Object.assign(Object.assign({},J1),V5e),e.pluginHooks.eventRefiners)}function B5(e,t,n,r,i,o,a){let s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(a&&e.id?a[e.id]:"")||nu(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:ev(e,o),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let l of o.pluginHooks.eventDefMemberAdders)Object.assign(s,l(e));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function G5e(e,t,n,r){let{allDay:i}=e,o,a=null,s=!1,l,c=null,d=e.start!=null?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(d),o)a=o.marker;else if(!r)return null;return e.end!=null&&(l=n.dateEnv.createMarkerMeta(e.end)),i==null&&(t!=null?i=t:i=(!o||o.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),i&&a&&(a=Bt(a)),l&&(c=l.marker,i&&(c=Bt(c)),a&&c<=a&&(c=null)),c?s=!0:r||(s=n.options.forceEventDuration||!1,c=n.dateEnv.add(a,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:s,range:{start:a,end:c},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function Y5e(e,t){let n=null;return e&&(n=e.defaultAllDay),n==null&&(n=t.options.defaultAllDay),n}function Qp(e,t,n,r,i,o){let a=Oa(),s=z5(n);for(let l of e){let c=rP(l,t,n,r,s,i,o);c&&H5(c,a)}return a}function H5(e,t=Oa()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function q5e(e,t){let n=e.instances[t];if(n){let r=e.defs[n.defId],i=j5(e,o=>Z5e(r,o));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return Oa()}function Z5e(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function Oa(){return{defs:{},instances:{}}}function U5(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function j5(e,t){let n=ed(e.defs,t),r=ed(e.instances,i=>n[i.defId]);return{defs:n,instances:r}}function K5e(e,t){let{defs:n,instances:r}=e,i={},o={};for(let a in n)t.defs[a]||(i[a]=n[a]);for(let a in r)!t.instances[a]&&i[r[a].defId]&&(o[a]=r[a]);return{defs:i,instances:o}}function Q5e(e,t){return Array.isArray(e)?Qp(e,null,t,!0):typeof e=="object"&&e?Qp([e],null,t,!0):e!=null?String(e):null}function oP(e){return Array.isArray(e)?e:typeof e=="string"?e.split(/\s+/):[]}const J1={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:re,overlap:re,allow:re,className:oP,classNames:oP,color:String,backgroundColor:String,borderColor:String,textColor:String},X5e={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function ev(e,t){let n=Q5e(e.constraint,t);return{display:e.display||null,startEditable:e.startEditable!=null?e.startEditable:e.editable,durationEditable:e.durationEditable!=null?e.durationEditable:e.editable,constraints:n!=null?[n]:[],overlap:e.overlap!=null?e.overlap:null,allows:e.allow!=null?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function aP(e){return e.reduce(J5e,X5e)}function J5e(e,t){return{display:t.display!=null?t.display:e.display,startEditable:t.startEditable!=null?t.startEditable:e.startEditable,durationEditable:t.durationEditable!=null?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:typeof t.overlap=="boolean"?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const e$e={id:String,defaultAllDay:Boolean,url:String,format:String,events:re,eventDataTransform:re,success:re,failure:re};function sP(e,t,n=lP(t)){let r;if(typeof e=="string"?r={url:e}:typeof e=="function"||Array.isArray(e)?r={events:e}:typeof e=="object"&&e&&(r=e),r){let{refined:i,extra:o}=R5(r,n),a=t$e(i,t);if(a)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:nu(),sourceDefId:a.sourceDefId,meta:a.meta,ui:ev(i,t),extendedProps:o}}return null}function lP(e){return Object.assign(Object.assign(Object.assign({},J1),e$e),e.pluginHooks.eventSourceRefiners)}function t$e(e,t){let n=t.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let o=n[r].parseMeta(e);if(o)return{sourceDefId:r,meta:o}}return null}function n$e(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return r$e(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return i$e(e,n[t.sourceId],t.rawEvents,i);case"ADD_EVENTS":return o$e(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return U5(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Kp(e,r.activeRange,i):e;case"REMOVE_EVENTS":return K5e(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return dP(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return j5(e,o=>!o.sourceId);case"REMOVE_ALL_EVENTS":return Oa();default:return e}}function r$e(e,t,n,r,i,o){if(t&&n===t.latestFetchId){let a=Qp(uP(i,t,o),t,o);return r&&(a=Kp(a,r,o)),U5(dP(e,t.sourceId),a)}return e}function i$e(e,t,n,r){const{defIdMap:i,instanceIdMap:o}=s$e(e);let a=Qp(uP(n,t,r),t,r,!1,i,o);return t.fetchRange&&(a=Kp(a,t.fetchRange,r)),a}function uP(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=cP(e,i)),r&&(e=cP(e,r)),e}function cP(e,t){let n;if(!t)n=e;else{n=[];for(let r of e){let i=t(r);i?n.push(i):i==null&&n.push(r)}}return n}function o$e(e,t,n,r){return n&&(t=Kp(t,n,r)),U5(e,t)}function a$e(e,t,n){let{defs:r}=e,i=ou(e.instances,o=>{let a=r[o.defId];return a.allDay||a.recurringDef?o:Object.assign(Object.assign({},o),{range:{start:n.createMarker(t.toDate(o.range.start,o.forcedStartTzo)),end:n.createMarker(t.toDate(o.range.end,o.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:o.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:o.forcedEndTzo})});return{defs:r,instances:i}}function dP(e,t){return j5(e,n=>n.sourceId!==t)}function s$e(e){const{defs:t,instances:n}=e,r={},i={};for(let o in t){const a=t[o],{publicId:s}=a;s&&(r[s]=o)}for(let o in n){const a=n[o],s=t[a.defId],{publicId:l}=s;l&&(i[l]=o)}return{defIdMap:r,instanceIdMap:i}}class l$e{constructor(){this.handlers={},this.thisContext=null}setThisContext(t){this.thisContext=t}setOptions(t){this.options=t}on(t,n){u$e(this.handlers,t,n)}off(t,n){c$e(this.handlers,t,n)}trigger(t,...n){let r=this.handlers[t]||[],i=this.options&&this.options[t],o=[].concat(i||[],r);for(let a of o)a.apply(this.thisContext,n)}hasHandlers(t){return Boolean(this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t])}}function u$e(e,t,n){(e[t]||(e[t]=[])).push(n)}function c$e(e,t,n){n?e[t]&&(e[t]=e[t].filter(r=>r!==n)):delete e[t]}const d$e={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function f$e(e,t){return Qp(p$e(e),null,t)}function p$e(e){let t;return e===!0?t=[{}]:Array.isArray(e)?t=e.filter(n=>n.daysOfWeek):typeof e=="object"&&e?t=[e]:t=[],t=t.map(n=>Object.assign(Object.assign({},d$e),n)),t}function h$e(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},m$e(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function g$e(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function m$e(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,_$e(e,t.dateEnv)),n}function fP(e,t,n){let{dateEnv:r,options:i}=n,o=t;return e?(o=Bt(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function v$e(e,t,n,r){let i=gP(e.defs,t),o=Oa();for(let a in e.defs){let s=e.defs[a];o.defs[a]=y$e(s,i[a],n,r)}for(let a in e.instances){let s=e.instances[a],l=o.defs[s.defId];o.instances[a]=b$e(s,l,i[s.defId],n,r)}return o}function y$e(e,t,n,r){let i=n.standardProps||{};i.hasEnd==null&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let o=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(o.extendedProps=Object.assign(Object.assign({},o.extendedProps),n.extendedProps));for(let a of r.pluginHooks.eventDefMutationAppliers)a(o,n,r);return!o.hasEnd&&r.options.forceEventDuration&&(o.hasEnd=!0),o}function b$e(e,t,n,r,i){let{dateEnv:o}=i,a=r.standardProps&&r.standardProps.allDay===!0,s=r.standardProps&&r.standardProps.hasEnd===!1,l=Object.assign({},e);return a&&(l.range=tP(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:o.add(l.range.start,r.datesDelta),end:o.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:o.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:o.add(l.range.end,r.endDelta)}),s&&(l.range={start:l.range.start,end:fP(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:Bt(l.range.start),end:Bt(l.range.end)}),l.range.end<l.range.start&&(l.range.end=fP(t.allDay,l.range.start,i)),l}class nd{constructor(t,n){this.context=t,this.internalEventSource=n}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class Pi{constructor(t,n,r){this._context=t,this._def=n,this._instance=r||null}setProp(t,n){if(t in nP)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(t==="id")n=X1[t](n),this.mutate({standardProps:{publicId:n}});else if(t in X1)n=X1[t](n),this.mutate({standardProps:{[t]:n}});else if(t in J1){let r=J1[t](n);t==="color"?r={backgroundColor:n,borderColor:n}:t==="editable"?r={startEditable:n,durationEditable:n}:r={[t]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${t}'. Use setExtendedProp instead.`)}setExtendedProp(t,n){this.mutate({extendedProps:{[t]:n}})}setStart(t,n={}){let{dateEnv:r}=this._context,i=r.createMarker(t);if(i&&this._instance){let o=this._instance.range,a=Q1(o.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}}setEnd(t,n={}){let{dateEnv:r}=this._context,i;if(!(t!=null&&(i=r.createMarker(t),!i))&&this._instance)if(i){let o=Q1(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(t,n,r={}){let{dateEnv:i}=this._context,o={allDay:r.allDay},a=i.createMarker(t),s;if(a&&!(n!=null&&(s=i.createMarker(n),!s))&&this._instance){let l=this._instance.range;r.allDay===!0&&(l=tP(l));let c=Q1(l.start,a,i,r.granularity);if(s){let d=Q1(l.end,s,i,r.granularity);BSe(c,d)?this.mutate({datesDelta:c,standardProps:o}):this.mutate({startDelta:c,endDelta:d,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:c,standardProps:o})}}moveStart(t){let n=bt(t);n&&this.mutate({startDelta:n})}moveEnd(t){let n=bt(t);n&&this.mutate({endDelta:n})}moveDates(t){let n=bt(t);n&&this.mutate({datesDelta:n})}setAllDay(t,n={}){let r={allDay:t},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==t&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(t){let{dateEnv:n}=this._context,r=this._instance,i=Rt(t);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(t){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:o}=i.getCurrentData(),a=q5e(o,n.instanceId);a=v$e(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,i);let l=new Pi(i,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:a}),i.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:W5(a,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:o})}})}}remove(){let t=this._context,n=pP(this);t.dispatch({type:"REMOVE_EVENTS",eventStore:n}),t.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:t}=this._def;return t?new nd(this._context,this._context.getCurrentData().eventSources[t]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let t=this._instance;return t?this._context.dateEnv.formatIso(t.range.start,{omitTime:this._def.allDay,forcedTzo:t.forcedStartTzo}):""}get endStr(){let t=this._instance;return t&&this._def.hasEnd?this._context.dateEnv.formatIso(t.range.end,{omitTime:this._def.allDay,forcedTzo:t.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(t={}){let n=this._def,{ui:r}=n,{startStr:i,endStr:o}=this,a={allDay:n.allDay};return n.title&&(a.title=n.title),i&&(a.start=i),o&&(a.end=o),n.publicId&&(a.id=n.publicId),n.groupId&&(a.groupId=n.groupId),n.url&&(a.url=n.url),r.display&&r.display!=="auto"&&(a.display=r.display),t.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?a.color=r.backgroundColor:(r.backgroundColor&&(a.backgroundColor=r.backgroundColor),r.borderColor&&(a.borderColor=r.borderColor)),r.textColor&&(a.textColor=r.textColor),r.classNames.length&&(a.classNames=r.classNames),Object.keys(n.extendedProps).length&&(t.collapseExtendedProps?Object.assign(a,n.extendedProps):a.extendedProps=n.extendedProps),a}toJSON(){return this.toPlainObject()}}function pP(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function W5(e,t,n){let{defs:r,instances:i}=e,o=[],a=n?n.instanceId:"";for(let s in i){let l=i[s],c=r[l.defId];l.instanceId!==a&&o.push(new Pi(t,c,l))}return o}function V5(e,t,n,r){let i={},o={},a={},s=[],l=[],c=gP(e.defs,t);for(let d in e.defs){let h=e.defs[d];c[h.defId].display==="inverse-background"&&(h.groupId?(i[h.groupId]=[],a[h.groupId]||(a[h.groupId]=h)):o[d]=[])}for(let d in e.instances){let h=e.instances[d],g=e.defs[h.defId],p=c[g.defId],m=h.range,v=!g.allDay&&r?P5(m,r):m,x=Ho(v,n);x&&(p.display==="inverse-background"?g.groupId?i[g.groupId].push(x):o[h.defId].push(x):p.display!=="none"&&(p.display==="background"?s:l).push({def:g,ui:p,instance:h,range:x,isStart:v.start&&v.start.valueOf()===x.start.valueOf(),isEnd:v.end&&v.end.valueOf()===x.end.valueOf()}))}for(let d in i){let h=i[d],g=eP(h,n);for(let p of g){let m=a[d],v=c[m.defId];s.push({def:m,ui:v,instance:null,range:p,isStart:!1,isEnd:!1})}}for(let d in o){let h=o[d],g=eP(h,n);for(let p of g)s.push({def:e.defs[d],ui:c[d],instance:null,range:p,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function w$e(e){return e.ui.display==="background"||e.ui.display==="inverse-background"}function hP(e,t){e.fcSeg=t}function G5(e){return e.fcSeg||e.parentNode.fcSeg||null}function gP(e,t){return ou(e,n=>mP(n,t))}function mP(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),aP(n)}function tv(e,t){let n=e.map(x$e);return n.sort((r,i)=>MSe(r,i,t)),n.map(r=>r._seg)}function x$e(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,o=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:o,duration:o-i,allDay:Number(n.allDay),_seg:e})}function S$e(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:o}=e.eventRange,a=o.startEditable;for(let s of r)a=s(a,i,o,t);return a}function $$e(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function C$e(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function rd(e,t,n,r,i,o,a){let{dateEnv:s,options:l}=n,{displayEventTime:c,displayEventEnd:d}=l,h=e.eventRange.def,g=e.eventRange.instance;c==null&&(c=r!==!1),d==null&&(d=i!==!1);let p=g.range.start,m=g.range.end,v=o||e.start||e.eventRange.range.start,x=a||e.end||e.eventRange.range.end,w=Bt(p).valueOf()===Bt(v).valueOf(),b=Bt(Us(m,-1)).valueOf()===Bt(Us(x,-1)).valueOf();return c&&!h.allDay&&(w||b)?(v=w?p:v,x=b?m:x,d&&h.hasEnd?s.formatRange(v,x,t,{forcedStartTzo:o?null:g.forcedStartTzo,forcedEndTzo:a?null:g.forcedEndTzo}):s.format(v,t,{forcedTzo:o?null:g.forcedStartTzo})):""}function Ur(e,t,n){let r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Ra(t,r.start)}}function E$e(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function Y5(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function nv(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:o,options:a}=t,{eventInteractive:s}=a;return s==null&&(s=n.interactive,s==null&&(s=Boolean(o.hasHandlers("eventClick")))),s?ON(l=>{o.trigger("eventClick",{el:l.target,event:new Pi(t,n,r),jsEvent:l,view:t.viewApi})}):{}}const T$e={start:re,end:re,allDay:Boolean};function k$e(e,t,n){let r=A$e(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=t.add(i.start,n)}return r}function A$e(e,t){let{refined:n,extra:r}=R5(e,T$e),i=n.start?t.createMarkerMeta(n.start):null,o=n.end?t.createMarkerMeta(n.end):null,{allDay:a}=n;return a==null&&(a=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:o?o.marker:null},allDay:a},r)}function _$e(e,t){return Object.assign(Object.assign({},yP(e.range,t,e.allDay)),{allDay:e.allDay})}function vP(e,t,n){return Object.assign(Object.assign({},yP(e,t,n)),{timeZone:t.timeZone})}function yP(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function R$e(e,t,n){let r=iP({editable:!1},n),i=B5(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:mP(i,t),instance:F5(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function O$e(e,t,n){let r=!1,i=function(s){r||(r=!0,t(s))},o=function(s){r||(r=!0,n(s))},a=e(i,o);a&&typeof a.then=="function"&&a.then(i,o)}class bP extends Error{constructor(t,n){super(t),this.response=n}}function D$e(e,t,n){e=e.toUpperCase();const r={method:e};return e==="GET"?t+=(t.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then(i=>{if(i.ok)return i.json().then(o=>[o,i],()=>{throw new bP("Failure parsing JSON",i)});throw new bP("Request failed",i)})}let q5;function wP(){return q5==null&&(q5=I$e()),q5}function I$e(){if(typeof document>"u")return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let n=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),n}class M$e extends wt{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:t}=this,{options:n}=t,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",o=!i&&n.height!=null?n.height:"",a=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,t.theme.getClass("root")];return wP()||a.push("fc-liquid-hack"),t.children(a,o,i,r)}componentDidMount(){let{emitter:t}=this.props;t.on("_beforeprint",this.handleBeforePrint),t.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:t}=this.props;t.off("_beforeprint",this.handleBeforePrint),t.off("_afterprint",this.handleAfterPrint)}}class xP{constructor(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}destroy(){}}function N$e(e,t){return{component:e,el:t.el,useEventCenter:t.useEventCenter!=null?t.useEventCenter:!0,isHitComboAllowed:t.isHitComboAllowed||null}}const SP={};class P$e{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(t){this.currentDataManager.dispatch(t)}get view(){return this.getCurrentData().viewApi}batchRendering(t){t()}updateSize(){this.trigger("_resize",!0)}setOption(t,n){this.dispatch({type:"SET_OPTION",optionName:t,rawOptionValue:n})}getOption(t){return this.currentDataManager.currentCalendarOptionsInput[t]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(t,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[t]?r.emitter.on(t,n):console.warn(`Unknown listener name '${t}'`)}off(t,n){this.currentDataManager.emitter.off(t,n)}trigger(t,...n){this.currentDataManager.emitter.trigger(t,...n)}changeView(t,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t})})}zoomTo(t,n){let r=this.getCurrentData(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:t}):this.dispatch({type:"CHANGE_DATE",dateMarker:t})}getUnitViewSpec(t){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),o,a;for(let s in n)i.push(s);for(o=0;o<i.length;o+=1)if(a=n[i[o]],a&&a.singleUnit===t)return a;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,-1)})}nextYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,1)})}today(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Zp(t.calendarOptions.now,t.dateEnv)})}gotoDate(t){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(t)})}incrementDate(t){let n=this.getCurrentData(),r=bt(t);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let t=this.getCurrentData();return t.dateEnv.toDate(t.currentDate)}formatDate(t,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(t),Rt(n))}formatRange(t,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(t),i.createMarker(n),Rt(r),r)}formatIso(t,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(t),{omitTime:n})}select(t,n){let r;n==null?t.start!=null?r=t:r={start:t,end:null}:r={start:t,end:n};let i=this.getCurrentData(),o=k$e(r,i.dateEnv,bt({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),h$e(o,null,i))}unselect(t){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),g$e(t,n))}addEvent(t,n){if(t instanceof Pi){let a=t._def,s=t._instance;return this.getCurrentData().eventStore.defs[a.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:H5({def:a,instance:s})}),this.triggerEventAdd(t)),t}let r=this.getCurrentData(),i;if(n instanceof nd)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=D5(r.eventSources));else if(n!=null){let a=this.getEventSourceById(n);if(!a)return console.warn(`Could not find an event source with ID "${n}"`),null;i=a.internalEventSource}let o=rP(t,i,r,!1);if(o){let a=new Pi(r,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:H5(o)}),this.triggerEventAdd(a),a}return null}triggerEventAdd(t){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:t,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:pP(t)})}})}getEventById(t){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;t=String(t);for(let o in r){let a=r[o];if(a.publicId===t){if(a.recurringDef)return new Pi(n,a,null);for(let s in i){let l=i[s];if(l.defId===a.defId)return new Pi(n,a,l)}}}return null}getEvents(){let t=this.getCurrentData();return W5(t.eventStore,t)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let t=this.getCurrentData(),n=t.eventSources,r=[];for(let i in n)r.push(new nd(t,n[i]));return r}getEventSourceById(t){let n=this.getCurrentData(),r=n.eventSources;t=String(t);for(let i in r)if(r[i].publicId===t)return new nd(n,r[i]);return null}addEventSource(t){let n=this.getCurrentData();if(t instanceof nd)return n.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;let r=sP(t,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new nd(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(t){let n=bt(t);n&&this.trigger("_scrollRequest",{time:n})}}function L$e(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}const Z5=Oa();class F$e{constructor(){this.getKeysForEventDefs=Le(this._getKeysForEventDefs),this.splitDateSelection=Le(this._splitDateSpan),this.splitEventStore=Le(this._splitEventStore),this.splitIndividualUi=Le(this._splitIndividualUi),this.splitEventDrag=Le(this._splitInteraction),this.splitEventResize=Le(this._splitInteraction),this.eventUiBuilders={}}splitProps(t){let n=this.getKeyInfo(t),r=this.getKeysForEventDefs(t.eventStore),i=this.splitDateSelection(t.dateSelection),o=this.splitIndividualUi(t.eventUiBases,r),a=this.splitEventStore(t.eventStore,r),s=this.splitEventDrag(t.eventDrag),l=this.splitEventResize(t.eventResize),c={};this.eventUiBuilders=ou(n,(d,h)=>this.eventUiBuilders[h]||Le(z$e));for(let d in n){let h=n[d],g=a[d]||Z5,p=this.eventUiBuilders[d];c[d]={businessHours:h.businessHours||t.businessHours,dateSelection:i[d]||null,eventStore:g,eventUiBases:p(t.eventUiBases[""],h.ui,o[d]),eventSelection:g.instances[t.eventSelection]?t.eventSelection:"",eventDrag:s[d]||null,eventResize:l[d]||null}}return c}_splitDateSpan(t){let n={};if(t){let r=this.getKeysForDateSpan(t);for(let i of r)n[i]=t}return n}_getKeysForEventDefs(t){return ou(t.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(t,n){let{defs:r,instances:i}=t,o={};for(let a in r)for(let s of n[a])o[s]||(o[s]=Oa()),o[s].defs[a]=r[a];for(let a in i){let s=i[a];for(let l of n[s.defId])o[l]&&(o[l].instances[a]=s)}return o}_splitIndividualUi(t,n){let r={};for(let i in t)if(i)for(let o of n[i])r[o]||(r[o]={}),r[o][i]=t[i];return r}_splitInteraction(t){let n={};if(t){let r=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),i=this._getKeysForEventDefs(t.mutatedEvents),o=this._splitEventStore(t.mutatedEvents,i),a=s=>{n[s]||(n[s]={affectedEvents:r[s]||Z5,mutatedEvents:o[s]||Z5,isEvent:t.isEvent})};for(let s in r)a(s);for(let s in o)a(s)}return n}}function z$e(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":aP(r)};return n&&Object.assign(i,n),i}function K5(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!Ra(r.activeRange,e)),isOther:Boolean(r&&!Ra(r.currentRange,e)),isToday:Boolean(t&&Ra(t,e)),isPast:Boolean(n?e<n:t?e<t.start:!1),isFuture:Boolean(n?e>n:t?e>=t.end:!1)}}function rv(e,t){let n=["fc-day",`fc-day-${VSe[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}const B$e=Rt({year:"numeric",month:"long",day:"numeric"}),H$e=Rt({week:"long"});function Gs(e,t,n="day",r=!0){const{dateEnv:i,options:o,calendarApi:a}=e;let s=i.format(t,n==="week"?H$e:B$e);if(o.navLinks){let l=i.toDate(t);const c=d=>{let h=n==="day"?o.navLinkDayClick:n==="week"?o.navLinkWeekClick:null;typeof h=="function"?h.call(a,i.toDate(t),d):(typeof h=="string"&&(n=h),a.zoomTo(t,n))};return Object.assign({title:Vp(o.navLinkHint,[s,l],s),"data-navlink":""},r?RN(c):{onClick:c})}return{"aria-label":s}}let Q5;function U$e(){return Q5||(Q5=j$e()),Q5}function j$e(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=W$e(e);return document.body.removeChild(e),t}function W$e(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function V$e(e){let t=G$e(e),n=e.getBoundingClientRect();for(let r of t){let i=L$e(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function G$e(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}class Uo{constructor(t,n,r,i){this.els=n;let o=this.originClientRect=t.getBoundingClientRect();r&&this.buildElHorizontals(o.left),i&&this.buildElVerticals(o.top)}buildElHorizontals(t){let n=[],r=[];for(let i of this.els){let o=i.getBoundingClientRect();n.push(o.left-t),r.push(o.right-t)}this.lefts=n,this.rights=r}buildElVerticals(t){let n=[],r=[];for(let i of this.els){let o=i.getBoundingClientRect();n.push(o.top-t),r.push(o.bottom-t)}this.tops=n,this.bottoms=r}leftToIndex(t){let{lefts:n,rights:r}=this,i=n.length,o;for(o=0;o<i;o+=1)if(t>=n[o]&&t<r[o])return o}topToIndex(t){let{tops:n,bottoms:r}=this,i=n.length,o;for(o=0;o<i;o+=1)if(t>=n[o]&&t<r[o])return o}getWidth(t){return this.rights[t]-this.lefts[t]}getHeight(t){return this.bottoms[t]-this.tops[t]}similarTo(t){return iv(this.tops||[],t.tops||[])&&iv(this.bottoms||[],t.bottoms||[])&&iv(this.lefts||[],t.lefts||[])&&iv(this.rights||[],t.rights||[])}}function iv(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class hr extends wt{constructor(){super(...arguments),this.uid=nu()}prepareHits(){}queryHit(t,n,r,i){return null}isValidSegDownEl(t){return!this.props.eventDrag&&!this.props.eventResize&&!Aa(t,".fc-event-mirror")}isValidDateDownEl(t){return!Aa(t,".fc-event:not(.fc-bg-event)")&&!Aa(t,".fc-more-link")&&!Aa(t,"a[data-navlink]")&&!Aa(t,".fc-popover")}}class X5{constructor(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(t){let n=[];for(let r of t)this.insertEntry(r,n);return n}insertEntry(t,n){let r=this.findInsertion(t);return this.isInsertionValid(r,t)?(this.insertEntryAt(t,r),1):this.handleInvalidInsertion(r,t,n)}isInsertionValid(t,n){return(this.maxCoord===-1||t.levelCoord+n.thickness<=this.maxCoord)&&(this.maxStackCnt===-1||t.stackCnt<this.maxStackCnt)}handleInvalidInsertion(t,n,r){return this.allowReslicing&&t.touchingEntry?this.splitEntry(n,t.touchingEntry,r):(r.push(n),0)}splitEntry(t,n,r){let i=0,o=[],a=t.span,s=n.span;return a.start<s.start&&(i+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:a.start,end:s.start}},o)),a.end>s.end&&(i+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:s.end,end:a.end}},o)),i?(r.push({index:t.index,thickness:t.thickness,span:ov(s,a)},...o),i):(r.push(t),0)}insertEntryAt(t,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(e$(i,n.level,n.levelCoord),e$(r,n.level,[t])):e$(r[n.level],n.lateral,t),this.stackCnts[jo(t)]=n.stackCnt}findInsertion(t){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:o}=this,a=n.length,s=0,l=-1,c=-1,d=null,h=0;for(let m=0;m<a;m+=1){let v=n[m];if(!i&&v>=s+t.thickness)break;let x=r[m],w,b=t$(x,t.span.start,J5),S=b[0]+b[1];for(;(w=x[S])&&w.span.start<t.span.end;){let $=v+w.thickness;$>s&&(s=$,d=w,l=m,c=S),$===s&&(h=Math.max(h,o[jo(w)]+1)),S+=1}}let g=0;if(d)for(g=l+1;g<a&&n[g]<s;)g+=1;let p=-1;return g<a&&n[g]===s&&(p=t$(r[g],t.span.end,J5)[0]),{touchingLevel:l,touchingLateral:c,touchingEntry:d,stackCnt:h,levelCoord:s,level:g,lateral:p}}toRects(){let{entriesByLevel:t,levelCoords:n}=this,r=t.length,i=[];for(let o=0;o<r;o+=1){let a=t[o],s=n[o];for(let l of a)i.push(Object.assign(Object.assign({},l),{levelCoord:s}))}return i}}function J5(e){return e.span.end}function jo(e){return e.index+":"+e.span.start}function Y$e(e){let t=[];for(let n of e){let r=[],i={span:n.span,entries:[n]};for(let o of t)ov(o.span,i.span)?i={entries:o.entries.concat(i.entries),span:q$e(o.span,i.span)}:r.push(o);r.push(i),t=r}return t}function q$e(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function ov(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function e$(e,t,n){e.splice(t,0,n)}function t$(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){let o=Math.floor(r+(i-r)/2),a=n(e[o]);if(t<a)i=o;else if(t>a)r=o+1;else return[o,1]}return[r,0]}function Z$e(e,t){return!e||t>10?Rt({weekday:"short"}):t>1?Rt({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Rt({weekday:"long"})}const $P="fc-col-header-cell";function CP(e){return e.text}class K$e extends wt{render(){let{dateEnv:t,options:n,theme:r,viewApi:i}=this.context,{props:o}=this,{date:a,dateProfile:s}=o,l=K5(a,o.todayRange,null,s),c=[$P].concat(rv(l,r)),d=t.format(a,o.dayHeaderFormat),h=!l.isDisabled&&o.colCnt>1?Gs(this.context,a):{},g=Object.assign(Object.assign(Object.assign({date:t.toDate(a),view:i},o.extraRenderProps),{text:d}),l);return P(pr,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:o.colSpan,"data-date":l.isDisabled?void 0:Gp(a)},o.extraDataAttrs),renderProps:g,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:CP,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},p=>P("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&P(p,{elTag:"a",elAttrs:h,elClasses:["fc-col-header-cell-cushion",o.isSticky&&"fc-sticky"]})))}}const Q$e=Rt({weekday:"long"});class X$e extends wt{render(){let{props:t}=this,{dateEnv:n,theme:r,viewApi:i,options:o}=this.context,a=vn(new Date(2592e5),t.dow),s={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(a,t.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:a},s),{view:i}),t.extraRenderProps),{text:l});return P(pr,{elTag:"th",elClasses:[$P,...rv(s,r),...t.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:t.colSpan},t.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:CP,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},d=>P("div",{className:"fc-scrollgrid-sync-inner"},P(d,{elTag:"a",elClasses:["fc-col-header-cell-cushion",t.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(a,Q$e)}})))}}class su extends ui{constructor(t,n){super(t,n),this.initialNowDate=Zp(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:t,state:n}=this;return t.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(t){t.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:t,context:n}=this,r=Us(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,t.unit),o=n.dateEnv.add(i,bt(1,t.unit)),a=o.valueOf()-r.valueOf();return a=Math.min(1e3*60*60*24,a),{currentState:{nowDate:i,todayRange:EP(i)},nextState:{nowDate:o,todayRange:EP(o)},waitMs:a}}setTimeout(){let{nextState:t,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(t,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}su.contextType=_a;function EP(e){let t=Bt(e),n=vn(t,1);return{start:t,end:n}}class n$ extends wt{constructor(){super(...arguments),this.createDayHeaderFormatter=Le(J$e)}render(){let{context:t}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:o}=this.props,a=this.createDayHeaderFormatter(t.options.dayHeaderFormat,i,n.length);return P(su,{unit:"day"},(s,l)=>P("tr",{role:"row"},o&&o("day"),n.map(c=>i?P(K$e,{key:c.toISOString(),date:c,dateProfile:r,todayRange:l,colCnt:n.length,dayHeaderFormat:a}):P(X$e,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:a}))))}}function J$e(e,t,n){return e||Z$e(t,n)}class r${constructor(t,n){let r=t.start,{end:i}=t,o=[],a=[],s=-1;for(;r<i;)n.isHiddenDay(r)?o.push(s+.5):(s+=1,o.push(s),a.push(r)),r=vn(r,1);this.dates=a,this.indices=o,this.cnt=a.length}sliceRange(t){let n=this.getDateDayIndex(t.start),r=this.getDateDayIndex(vn(t.end,-1)),i=Math.max(0,n),o=Math.min(this.cnt-1,r);return i=Math.ceil(i),o=Math.floor(o),i<=o?{firstIndex:i,lastIndex:o,isStart:n===i,isEnd:r===o}:null}getDateDayIndex(t){let{indices:n}=this,r=Math.floor(js(this.dates[0],t));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class i${constructor(t,n){let{dates:r}=t,i,o,a;if(n){for(o=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==o;i+=1);a=Math.ceil(r.length/i)}else a=1,i=r.length;this.rowCnt=a,this.colCnt=i,this.daySeries=t,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let t=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let i=0;i<this.colCnt;i+=1)r.push(this.buildCell(n,i));t.push(r)}return t}buildCell(t,n){let r=this.daySeries.dates[t*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let t=[];for(let n=0;n<this.colCnt;n+=1)t.push(this.cells[0][n].date);return t}sliceRange(t){let{colCnt:n}=this,r=this.daySeries.sliceRange(t),i=[];if(r){let{firstIndex:o,lastIndex:a}=r,s=o;for(;s<=a;){let l=Math.floor(s/n),c=Math.min((l+1)*n,a+1);i.push({row:l,firstCol:s%n,lastCol:(c-1)%n,isStart:r.isStart&&s===o,isEnd:r.isEnd&&c-1===a}),s=c}}return i}}class o${constructor(){this.sliceBusinessHours=Le(this._sliceBusinessHours),this.sliceDateSelection=Le(this._sliceDateSpan),this.sliceEventStore=Le(this._sliceEventStore),this.sliceEventDrag=Le(this._sliceInteraction),this.sliceEventResize=Le(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(t,n,r,i,...o){let{eventUiBases:a}=t,s=this.sliceEventStore(t.eventStore,a,n,r,...o);return{dateSelectionSegs:this.sliceDateSelection(t.dateSelection,n,r,a,i,...o),businessHourSegs:this.sliceBusinessHours(t.businessHours,n,r,i,...o),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(t.eventDrag,a,n,r,...o),eventResize:this.sliceEventResize(t.eventResize,a,n,r,...o),eventSelection:t.eventSelection}}sliceNowDate(t,n,r,i,...o){return this._sliceDateSpan({range:{start:t,end:Us(t,1)},allDay:!1},n,r,{},i,...o)}_sliceBusinessHours(t,n,r,i,...o){return t?this._sliceEventStore(Kp(t,av(n,Boolean(r)),i),{},n,r,...o).bg:[]}_sliceEventStore(t,n,r,i,...o){if(t){let a=V5(t,n,av(r,Boolean(i)),i);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}}_sliceInteraction(t,n,r,i,...o){if(!t)return null;let a=V5(t.mutatedEvents,n,av(r,Boolean(i)),i);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:t.affectedEvents.instances,isEvent:t.isEvent}}_sliceDateSpan(t,n,r,i,o,...a){if(!t)return[];let s=av(n,Boolean(r)),l=Ho(t.range,s);if(l){t=Object.assign(Object.assign({},t),{range:l});let c=R$e(t,i,o),d=this.sliceRange(t.range,...a);for(let h of d)h.eventRange=c;return d}return[]}sliceEventRanges(t,n){let r=[];for(let i of t)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(t,n){let r=t.range;this.forceDayIfListItem&&t.ui.display==="list-item"&&(r={start:r.start,end:vn(r.start,1)});let i=this.sliceRange(r,...n);for(let o of i)o.eventRange=t,o.isStart=t.isStart&&o.isStart,o.isEnd=t.isEnd&&o.isEnd;return i}}function av(e,t){let n=e.activeRange;return t?n:{start:Us(n.start,e.slotMinTime.milliseconds),end:Us(n.end,e.slotMaxTime.milliseconds-864e5)}}const sv=/^(visible|hidden)$/;class TP extends wt{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,Bo(this.props.elRef,t)}}render(){let{props:t}=this,{liquid:n,liquidIsAbsolute:r}=t,i=n&&r,o=["fc-scroller"];return n&&(r?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),P("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:t.overflowX,overflowY:t.overflowY,left:i&&-(t.overcomeLeft||0)||"",right:i&&-(t.overcomeRight||0)||"",bottom:i&&-(t.overcomeBottom||0)||"",marginLeft:!i&&-(t.overcomeLeft||0)||"",marginRight:!i&&-(t.overcomeRight||0)||"",marginBottom:!i&&-(t.overcomeBottom||0)||"",maxHeight:t.maxHeight||""}},t.children)}needsXScrolling(){if(sv.test(this.props.overflowX))return!1;let{el:t}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=t;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(sv.test(this.props.overflowY))return!1;let{el:t}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=t;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return sv.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return sv.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class jr{constructor(t){this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:o}=this,a=!1,s=!1;n!==null?(a=r in o,o[r]=n,i[r]=(i[r]||0)+1,s=!0):(i[r]-=1,i[r]||(delete o[r],delete this.callbackMap[r],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(r)),s&&this.masterCallback(n,String(r)))}}createRef(t){let n=this.callbackMap[t];return n||(n=this.callbackMap[t]=r=>{this.handleValue(r,String(t))}),n}collect(t,n,r){return S5e(this.currentMap,t,n,r)}getAll(){return D5(this.currentMap)}}function e4e(e){let t=kSe(e,".fc-scrollgrid-shrink"),n=0;for(let r of t)n=Math.max(n,LSe(r));return Math.ceil(n)}function kP(e,t){return e.liquid&&t.liquid}function t4e(e,t){return t.maxHeight!=null||kP(e,t)}function n4e(e,t,n,r){let{expandRows:i}=n;return typeof t.content=="function"?t.content(n):P("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,P(r?"thead":"tbody",{role:"presentation"},typeof t.rowContent=="function"?t.rowContent(n):t.rowContent))}function r4e(e,t){return Hs(e,t,ci)}function i4e(e,t){let n=[];for(let r of e){let i=r.span||1;for(let o=0;o<i;o+=1)n.push(P("col",{style:{width:r.width==="shrink"?o4e(t):r.width||"",minWidth:r.minWidth||""}}))}return P("colgroup",{},...n)}function o4e(e){return e??4}function a4e(e){for(let t of e)if(t.width==="shrink")return!0;return!1}function s4e(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function l4e(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&e.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function a$(e){return P("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function lv(e){let{stickyHeaderDates:t}=e;return(t==null||t==="auto")&&(t=e.height==="auto"||e.viewHeight==="auto"),t}function AP(e){let{stickyFooterScrollbar:t}=e;return(t==null||t==="auto")&&(t=e.height==="auto"||e.viewHeight==="auto"),t}class s$ extends wt{constructor(){super(...arguments),this.processCols=Le(t=>t,r4e),this.renderMicroColGroup=Le(i4e),this.scrollerRefs=new jr,this.scrollerElRefs=new jr(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:t,state:n,context:r}=this,i=t.sections||[],o=this.processCols(t.cols),a=this.renderMicroColGroup(o,n.shrinkWidth),s=s4e(t.liquid,r);t.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");let l=i.length,c=0,d,h=[],g=[],p=[];for(;c<l&&(d=i[c]).type==="header";)h.push(this.renderSection(d,a,!0)),c+=1;for(;c<l&&(d=i[c]).type==="body";)g.push(this.renderSection(d,a,!1)),c+=1;for(;c<l&&(d=i[c]).type==="footer";)p.push(this.renderSection(d,a,!0)),c+=1;let m=!wP();const v={role:"rowgroup"};return P("table",{role:"grid",className:s.join(" "),style:{height:t.height}},Boolean(!m&&h.length)&&P("thead",v,...h),Boolean(!m&&g.length)&&P("tbody",v,...g),Boolean(!m&&p.length)&&P("tfoot",v,...p),m&&P("tbody",v,...h,...g,...p))}renderSection(t,n,r){return"outerContent"in t?P(dt,{key:t.key},t.outerContent):P("tr",{key:t.key,role:"presentation",className:l4e(t,this.props.liquid).join(" ")},this.renderChunkTd(t,n,t.chunk,r))}renderChunkTd(t,n,r,i){if("outerContent"in r)return r.outerContent;let{props:o}=this,{forceYScrollbars:a,scrollerClientWidths:s,scrollerClientHeights:l}=this.state,c=t4e(o,t),d=kP(o,t),h=o.liquid?a?"scroll":c?"auto":"hidden":"visible",g=t.key,p=n4e(t,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!o.collapsibleWidth&&s[g]!==void 0?s[g]:null,clientHeight:l[g]!==void 0?l[g]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return P(i?"th":"td",{ref:r.elRef,role:"presentation"},P("div",{className:`fc-scroller-harness${d?" fc-scroller-harness-liquid":""}`},P(TP,{ref:this.scrollerRefs.createRef(g),elRef:this.scrollerElRefs.createRef(g),overflowY:h,overflowX:o.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:d,liquidIsAbsolute:!0},p)))}_handleScrollerEl(t,n){let r=u4e(this.props.sections,n);r&&Bo(r.chunk.scrollerElRef,t)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return a4e(this.props.cols)?e4e(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let t=U$e(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,o={},a={};for(let s in n.currentMap){let l=n.currentMap[s];if(l&&l.needsYScrolling()){i=!0;break}}for(let s of this.props.sections){let l=s.key,c=r.currentMap[l];if(c){let d=c.parentNode;o[l]=Math.floor(d.getBoundingClientRect().width-(i?t.y:0)),a[l]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:o,scrollerClientHeights:a}}}s$.addStateEquality({scrollerClientWidths:ci,scrollerClientHeights:ci});function u4e(e,t){for(let n of e)if(n.key===t)return n;return null}class Xp extends wt{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,t&&hP(t,this.props.seg)}}render(){const{props:t,context:n}=this,{options:r}=n,{seg:i}=t,{eventRange:o}=i,{ui:a}=o,s={event:new Pi(n,o.def,o.instance),view:n.viewApi,timeText:t.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!t.disableDragging&&S$e(i,n),isStartResizable:!t.disableResizing&&$$e(i,n),isEndResizable:!t.disableResizing&&C$e(i),isMirror:Boolean(t.isDragging||t.isResizing||t.isDateSelecting),isStart:Boolean(i.isStart),isEnd:Boolean(i.isEnd),isPast:Boolean(t.isPast),isFuture:Boolean(t.isFuture),isToday:Boolean(t.isToday),isSelected:Boolean(t.isSelected),isDragging:Boolean(t.isDragging),isResizing:Boolean(t.isResizing)};return P(pr,Object.assign({},t,{elRef:this.handleEl,elClasses:[...E$e(s),...i.eventRange.ui.classNames,...t.elClasses||[]],renderProps:s,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:t.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(t){this.el&&this.props.seg!==t.seg&&hP(this.el,this.props.seg)}}class l$ extends wt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,{ui:o}=i.eventRange,a=r.eventTimeFormat||t.defaultTimeFormat,s=rd(i,a,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return P(Xp,Object.assign({},t,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:nv(i,n),defaultGenerator:c4e,timeText:s}),(l,c)=>P(dt,null,P(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:c.textColor}}),Boolean(c.isStartResizable)&&P("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(c.isEndResizable)&&P("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function c4e(e){return P("div",{className:"fc-event-main-frame"},e.timeText&&P("div",{className:"fc-event-time"},e.timeText),P("div",{className:"fc-event-title-container"},P("div",{className:"fc-event-title fc-sticky"},e.event.title||P(dt,null," "))))}const u$=e=>P(_a.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return P(pr,Object.assign({},e,{elTag:e.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),d4e=Rt({day:"numeric"});class uv extends wt{constructor(){super(...arguments),this.refineRenderProps=V1(f4e)}render(){let{props:t,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,isMonthStart:t.isMonthStart||!1,showDayNumber:t.showDayNumber,extraRenderProps:t.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return P(pr,Object.assign({},t,{elClasses:[...rv(i,n.theme),...t.elClasses||[]],elAttrs:Object.assign(Object.assign({},t.elAttrs),i.isDisabled?{}:{"data-date":Gp(t.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:t.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function cv(e){return Boolean(e.dayCellContent||KN("dayCellContent",e))}function f4e(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,o=K5(t,e.todayRange,null,r),a=e.showDayNumber?n.format(t,i?e.monthStartFormat:d4e):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},o),{isMonthStart:i,dayNumberText:a}),e.extraRenderProps)}class c$ extends wt{render(){let{props:t}=this,{seg:n}=t;return P(Xp,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:p4e,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday,disableDragging:!0,disableResizing:!0})}}function p4e(e){let{title:t}=e.event;return t&&P("div",{className:"fc-event-title"},e.event.title)}function d$(e){return P("div",{className:`fc-${e}`})}const f$=e=>P(_a.Consumer,null,t=>{let{dateEnv:n,options:r}=t,{date:i}=e,o=r.weekNumberFormat||e.defaultFormat,a=n.computeWeekNumber(i),s=n.format(i,o);return P(pr,Object.assign({},e,{renderProps:{num:a,text:s,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:h4e,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function h4e(e){return e.text}const p$=10;class g4e extends wt{constructor(){super(...arguments),this.state={titleId:zo()},this.handleRootEl=t=>{this.rootEl=t,this.props.elRef&&Bo(this.props.elRef,t)},this.handleDocumentMouseDown=t=>{const n=RSe(t);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=t=>{t.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:t}=this.props;t&&t()}}render(){let{theme:t,options:n}=this.context,{props:r,state:i}=this,o=["fc-popover",t.getClass("popover")].concat(r.extraClassNames||[]);return hSe(P("div",Object.assign({},r.extraAttrs,{id:r.id,className:o.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),P("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},P("span",{className:"fc-popover-title",id:i.titleId},r.title),P("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),P("div",{className:"fc-popover-body "+t.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:t}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:i}=this,o=V$e(n);if(o){let a=i.getBoundingClientRect(),s=r?Aa(n,".fc-scrollgrid").getBoundingClientRect().top:o.top,l=t?o.right-a.width:o.left;s=Math.max(s,p$),l=Math.min(l,document.documentElement.clientWidth-p$-a.width),l=Math.max(l,p$);let c=i.offsetParent.getBoundingClientRect();_Se(i,{top:s-c.top,left:l-c.left})}}}class m4e extends hr{constructor(){super(...arguments),this.handleRootEl=t=>{this.rootEl=t,t?this.context.registerInteractiveComponent(this,{el:t,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:t,dateEnv:n}=this.context,{props:r}=this,{startDate:i,todayRange:o,dateProfile:a}=r,s=n.format(i,t.dayPopoverFormat);return P(uv,{elRef:this.handleRootEl,date:i,dateProfile:a,todayRange:o},(l,c,d)=>P(g4e,{elRef:d.ref,id:r.id,title:s,extraClassNames:["fc-more-popover"].concat(d.className||[]),extraAttrs:d,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},cv(t)&&P(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(t,n,r,i){let{rootEl:o,props:a}=this;return t>=0&&t<r&&n>=0&&n<i?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!0,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class h$ extends wt{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:zo()},this.handleLinkEl=t=>{this.linkEl=t,this.props.elRef&&Bo(this.props.elRef,t)},this.handleClick=t=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,o=_P(n).start;function a(s){let{def:l,instance:c,range:d}=s.eventRange;return{event:new Pi(r,l,c),start:r.dateEnv.toDate(d.start),end:r.dateEnv.toDate(d.end),isStart:s.isStart,isEnd:s.isEnd}}typeof i=="function"&&(i=i({date:o,allDay:Boolean(n.allDayDate),allSegs:n.allSegs.map(a),hiddenSegs:n.hiddenSegs.map(a),jsEvent:t,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(o,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:t,state:n}=this;return P(_a.Consumer,null,r=>{let{viewApi:i,options:o,calendarApi:a}=r,{moreLinkText:s}=o,{moreCnt:l}=t,c=_P(t),d=typeof s=="function"?s.call(a,l):`+${l} ${s}`,h=Vp(o.moreLinkHint,[l],d),g={num:l,shortText:`+${l}`,text:d,view:i};return P(dt,null,Boolean(t.moreCnt)&&P(pr,{elTag:t.elTag||"a",elRef:this.handleLinkEl,elClasses:[...t.elClasses||[],"fc-more-link"],elStyle:t.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},t.elAttrs),RN(this.handleClick)),{title:h,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:g,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:t.defaultGenerator||v4e,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},t.children),n.isPopoverOpen&&P(m4e,{id:n.popoverId,startDate:c.start,endDate:c.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:this.parentEl,alignmentEl:t.alignmentElRef?t.alignmentElRef.current:this.linkEl,alignGridTop:t.alignGridTop,onClose:this.handlePopoverClose},t.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Aa(this.linkEl,".fc-view-harness"))}}function v4e(e){return e.text}function _P(e){if(e.allDayDate)return{start:e.allDayDate,end:vn(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:RP(t),end:b4e(t)}}function RP(e){return e.reduce(y4e).eventRange.range.start}function y4e(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function b4e(e){return e.reduce(w4e).eventRange.range.end}function w4e(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class x4e{constructor(){this.handlers=[]}set(t){this.currentValue=t;for(let n of this.handlers)n(t)}subscribe(t){this.handlers.push(t),this.currentValue!==void 0&&t(this.currentValue)}}class S4e extends x4e{constructor(){super(...arguments),this.map=new Map}handle(t){const{map:n}=this;let r=!1;t.isActive?(n.set(t.id,t),r=!0):n.has(t.id)&&(n.delete(t.id),r=!0),r&&this.set(n)}}var $4e=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-unselectable{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:none;user-select:none}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button::-moz-focus-inner{border-style:none;padding:0}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';Wp($4e);const C4e=[],OP={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},DP=Object.assign(Object.assign({},OP),{buttonHints:{prev:"Previous $0",next:"Next $0",today(e,t){return t==="day"?"Today":`This ${e}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}});function E4e(e){let t=e.length>0?e[0].code:"en",n=C4e.concat(e),r={en:DP};for(let i of n)r[i.code]=i;return{map:r,defaultCode:t}}function IP(e,t){return typeof e=="object"&&!Array.isArray(e)?MP(e.code,[e.code],e):T4e(e,t)}function T4e(e,t){let n=[].concat(e||[]),r=k4e(n,t)||DP;return MP(e,n,r)}function k4e(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let o=r.slice(0,i).join("-");if(t[o])return t[o]}}return null}function MP(e,t,n){let r=O5([OP,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Wo(e){return{id:nu(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function A4e(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(o){for(let a of o){const s=a.name,l=n[s];l===void 0?(n[s]=a.id,i(a.deps),r=R4e(r,a)):l!==a.id&&console.warn(`Duplicate plugin '${s}'`)}}return e&&i(e),i(t),r}function _4e(){let e=[],t=[],n;return(r,i)=>((!n||!Hs(r,e)||!Hs(i,t))&&(n=A4e(r,i)),e=r,t=i,n)}function R4e(e,t){return{premiumReleaseDate:O4e(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function O4e(e,t){return e===void 0?t:t===void 0?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class Ys extends qp{}Ys.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Ys.prototype.baseIconClass="fc-icon",Ys.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Ys.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Ys.prototype.iconOverrideOption="buttonIcons",Ys.prototype.iconOverrideCustomButtonOption="icon",Ys.prototype.iconOverridePrefix="fc-icon-";function D4e(e,t){let n={},r;for(r in e)g$(r,n,e,t);for(r in t)g$(r,n,e,t);return n}function g$(e,t,n,r){if(t[e])return t[e];let i=I4e(e,t,n,r);return i&&(t[e]=i),i}function I4e(e,t,n,r){let i=n[e],o=r[e],a=d=>i&&i[d]!==null?i[d]:o&&o[d]!==null?o[d]:null,s=a("component"),l=a("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=g$(l,t,n,r)}return!s&&c&&(s=c.component),s?{type:e,component:s,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),o?o.rawOptions:{})}:null}function NP(e){return ou(e,M4e)}function M4e(e){let t=typeof e=="function"?{component:e}:e,{component:n}=t;return t.content&&(n=N4e(t)),{superType:t.type,component:n,rawOptions:t}}function N4e(e){return t=>P(_a.Consumer,null,n=>P(pr,{elTag:"div",elClasses:JN(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function P4e(e,t,n,r){let i=NP(e),o=NP(t.views),a=D4e(i,o);return ou(a,s=>L4e(s,o,t,n,r))}function L4e(e,t,n,r,i){let o=e.overrides.duration||e.defaults.duration||r.duration||n.duration,a=null,s="",l="",c={};if(o&&(a=F4e(o),a)){let g=E5(a);s=g.unit,g.value===1&&(l=s,c=t[s]?t[s].rawOptions:{})}let d=g=>{let p=g.buttonText||{},m=e.defaults.buttonTextKey;return m!=null&&p[m]!=null?p[m]:p[e.type]!=null?p[e.type]:p[l]!=null?p[l]:null},h=g=>{let p=g.buttonHints||{},m=e.defaults.buttonTextKey;return m!=null&&p[m]!=null?p[m]:p[e.type]!=null?p[e.type]:p[l]!=null?p[l]:null};return{type:e.type,component:e.component,duration:a,durationUnit:s,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(i)||e.defaults.buttonText||d(Yp)||e.type,buttonTitleOverride:h(r)||h(n)||e.overrides.buttonHint,buttonTitleDefault:h(i)||e.defaults.buttonHint||h(Yp)}}let PP={};function F4e(e){let t=JSON.stringify(e),n=PP[t];return n===void 0&&(n=bt(e),PP[t]=n),n}function z4e(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function B4e(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function H4e(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i;break}return e}function U4e(e,t,n){let r=t?t.activeRange:null;return FP({},Z4e(e,n),r,n)}function j4e(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return FP(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return V4e(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?zP(e,i,r):e;case"FETCH_EVENT_SOURCES":return m$(e,t.sourceIds?GN(t.sourceIds):BP(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return q4e(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function W4e(e,t,n){let r=t?t.activeRange:null;return m$(e,BP(e,n),r,!0,n)}function LP(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function FP(e,t,n,r){let i={};for(let o of t)i[o.sourceId]=o;return n&&(i=zP(i,n,r)),Object.assign(Object.assign({},e),i)}function V4e(e,t){return ed(e,n=>n.sourceId!==t)}function zP(e,t,n){return m$(e,ed(e,r=>G4e(r,t,n)),t,!1,n)}function G4e(e,t,n){return HP(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function m$(e,t,n,r,i){let o={};for(let a in e){let s=e[a];t[a]?o[a]=Y4e(s,n,r,i):o[a]=s}return o}function Y4e(e,t,n,r){let{options:i,calendarApi:o}=r,a=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=nu();return a.fetch({eventSource:e,range:t,isRefetch:n,context:r},l=>{let{rawEvents:c}=l;i.eventSourceSuccess&&(c=i.eventSourceSuccess.call(o,c,l.response)||c),e.success&&(c=e.success.call(o,c,l.response)||c),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:c})},l=>{let c=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(o,l),c=!0),e.failure&&(e.failure(l),c=!0),c||console.warn(l.message,l),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:s,fetchRange:t,error:l})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:s})}function q4e(e,t,n,r){let i=e[t];return i&&n===i.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):e}function BP(e,t){return ed(e,n=>HP(n,t))}function Z4e(e,t){let n=lP(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let o of r){let a=sP(o,t,n);a&&i.push(a)}return i}function HP(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function K4e(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Q4e(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function X4e(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function J4e(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function eCe(e,t,n,r,i){let o=e.headerToolbar?UP(e.headerToolbar,e,t,n,r,i):null,a=e.footerToolbar?UP(e.footerToolbar,e,t,n,r,i):null;return{header:o,footer:a}}function UP(e,t,n,r,i,o){let a={},s=[],l=!1;for(let c in e){let d=e[c],h=tCe(d,t,n,r,i,o);a[c]=h.widgets,s.push(...h.viewsWithButtons),l=l||h.hasTitle}return{sectionWidgets:a,viewsWithButtons:s,hasTitle:l}}function tCe(e,t,n,r,i,o){let a=t.direction==="rtl",s=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},d=n.buttonHints||{},h=t.buttonHints||{},g=e?e.split(" "):[],p=[],m=!1;return{widgets:g.map(x=>x.split(",").map(w=>{if(w==="title")return m=!0,{buttonName:w};let b,S,$,E,T,k;if(b=s[w])$=A=>{b.click&&b.click.call(A.target,A,A.target)},(E=r.getCustomButtonIconClass(b))||(E=r.getIconClass(w,a))||(T=b.text),k=b.hint||b.text;else if(S=i[w]){p.push(w),$=()=>{o.changeView(w)},(T=S.buttonTextOverride)||(E=r.getIconClass(w,a))||(T=S.buttonTextDefault);let A=S.buttonTextOverride||S.buttonTextDefault;k=Vp(S.buttonTitleOverride||S.buttonTitleDefault||t.viewHint,[A,w],A)}else if(o[w])if($=()=>{o[w]()},(T=l[w])||(E=r.getIconClass(w,a))||(T=c[w]),w==="prevYear"||w==="nextYear"){let A=w==="prevYear"?"prev":"next";k=Vp(d[A]||h[A],[c.year||"year","year"],c[w])}else k=A=>Vp(d[w]||h[w],[c[A]||A,A],c[w]);return{buttonName:w,buttonClick:$,buttonIcon:E,buttonText:T,buttonHint:k}})),viewsWithButtons:p,hasTitle:m}}class nCe{constructor(t,n,r){this.type=t,this.getCurrentData=n,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(t){return this.getCurrentData().options[t]}}const rCe=Wo({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(e){return Array.isArray(e.events)?e.events:null},fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),iCe=Wo({name:"func-event-source",eventSourceDefs:[{parseMeta(e){return typeof e.events=="function"?e.events:null},fetch(e,t,n){const{dateEnv:r}=e.context,i=e.eventSource.meta;O$e(i.bind(null,vP(e.range,r)),o=>t({rawEvents:o}),n)}}]}),oCe=Wo({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:re,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(e){return e.url&&(e.format==="json"||!e.format)?{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}:null},fetch(e,t,n){const{meta:r}=e.eventSource,i=aCe(r,e.range,e.context);D$e(r.method,r.url,i).then(([o,a])=>{t({rawEvents:o,response:a})},n)}}]});function aCe(e,t,n){let{dateEnv:r,options:i}=n,o,a,s,l,c={};return o=e.startParam,o==null&&(o=i.startParam),a=e.endParam,a==null&&(a=i.endParam),s=e.timeZoneParam,s==null&&(s=i.timeZoneParam),typeof e.extraParams=="function"?l=e.extraParams():l=e.extraParams||{},Object.assign(c,l),c[o]=r.formatIso(t.start),c[a]=r.formatIso(t.end),r.timeZone!=="local"&&(c[s]=r.timeZone),c}const sCe=Wo({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(r=HSe(e.endTime,e.startTime)),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}return null},expand(e,t,n){let r=Ho(t,{start:e.startRecur,end:e.endRecur});return r?lCe(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:re,startTime:bt,endTime:bt,duration:bt,startRecur:re,endRecur:re}});function lCe(e,t,n,r){let i=e?GN(e):null,o=Bt(n.start),a=n.end,s=[];for(;o<a;){let l;(!i||i[o.getUTCDay()])&&(t?l=r.add(o,t):l=o,s.push(l)),o=vn(o,1)}return s}const uCe=Wo({name:"change-handler",optionChangeHandlers:{events(e,t){jP([e],t)},eventSources:jP}});function jP(e,t){let n=D5(t.getCurrentData().eventSources);n.length===1&&e.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(e[0])&&t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let i of e){let o=!1;for(let a=0;a<n.length;a+=1)if(n[a]._raw===i){n.splice(a,1),o=!0;break}o||r.push(i)}for(let i of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)t.calendarApi.addEventSource(i)}function cCe(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},vP(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function dCe(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",W5(e,t))}const fCe=[rCe,iCe,oCe,sCe,uCe,Wo({name:"misc",isLoadingFuncs:[e=>LP(e.eventSources)],propSetHandlers:{dateProfile:cCe,eventStore:dCe}})];class pCe{constructor(t,n){this.runTaskOption=t,this.drainedOption=n,this.queue=[],this.delayedRunner=new S5(this.drain.bind(this))}request(t,n){this.queue.push(t),this.delayedRunner.request(n)}pause(t){this.delayedRunner.pause(t)}resume(t,n){this.delayedRunner.resume(t,n)}drain(){let{queue:t}=this;for(;t.length;){let n=[],r;for(;r=t.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(t){this.runTaskOption&&this.runTaskOption(t)}drained(t){this.drainedOption&&this.drainedOption(t)}}function hCe(e,t,n){let r;return/^(year|month)$/.test(e.currentRangeUnit)?r=e.currentRange:r=e.activeRange,n.formatRange(r.start,r.end,Rt(t.titleFormat||gCe(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function gCe(e){let{currentRangeUnit:t}=e;if(t==="year")return{year:"numeric"};if(t==="month")return{year:"numeric",month:"long"};let n=W1(e.currentRange.start,e.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class mCe{constructor(t){this.computeCurrentViewData=Le(this._computeCurrentViewData),this.organizeRawLocales=Le(E4e),this.buildLocale=Le(IP),this.buildPluginHooks=_4e(),this.buildDateEnv=Le(vCe),this.buildTheme=Le(yCe),this.parseToolbars=Le(eCe),this.buildViewSpecs=Le(P4e),this.buildDateProfileGenerator=V1(bCe),this.buildViewApi=Le(wCe),this.buildViewUiProps=V1($Ce),this.buildEventUiBySource=Le(xCe,ci),this.buildEventUiBases=Le(SCe),this.parseContextBusinessHours=V1(CCe),this.buildTitle=Le(hCe),this.emitter=new l$e,this.actionRunner=new pCe(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=g=>{this.actionRunner.request(g)},this.props=t,this.actionRunner.pause();let n={},r=this.computeOptionsData(t.optionOverrides,n,t.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,o=this.computeCurrentViewData(i,r,t.optionOverrides,n);t.calendarApi.currentDataManager=this,this.emitter.setThisContext(t.calendarApi),this.emitter.setOptions(o.options);let a=U5e(r.calendarOptions,r.dateEnv),s=o.dateProfileGenerator.build(a);Ra(s.activeRange,a)||(a=s.currentRange.start);let l={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let g of r.pluginHooks.contextInit)g(l);let c=U4e(r.calendarOptions,s,l),d={dynamicOptionOverrides:n,currentViewType:i,currentDate:a,dateProfile:s,businessHours:this.parseContextBusinessHours(l),eventSources:c,eventUiBases:{},eventStore:Oa(),renderableEventStore:Oa(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},h=Object.assign(Object.assign({},l),d);for(let g of r.pluginHooks.reducers)Object.assign(d,g(null,null,h));v$(d,l)&&this.emitter.trigger("loading",!0),this.state=d,this.updateData(),this.actionRunner.resume()}resetOptions(t,n){let{props:r}=this;n===void 0?r.optionOverrides=t:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),t),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(t){let{props:n,state:r,emitter:i}=this,o=B4e(r.dynamicOptionOverrides,t),a=this.computeOptionsData(n.optionOverrides,o,n.calendarApi),s=z4e(r.currentViewType,t),l=this.computeCurrentViewData(s,a,n.optionOverrides,o);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(l.options);let c={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:d,dateProfile:h}=r;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(h=l.dateProfileGenerator.build(d)),d=H5e(d,t),h=H4e(h,t,d,l.dateProfileGenerator),(t.type==="PREV"||t.type==="NEXT"||!Ra(h.currentRange,d))&&(d=h.currentRange.start);let g=j4e(r.eventSources,t,h,c),p=n$e(r.eventStore,t,g,h,c),v=LP(g)&&!l.options.progressiveEventRendering&&r.renderableEventStore||p,{eventUiSingleBase:x,selectionConfig:w}=this.buildViewUiProps(c),b=this.buildEventUiBySource(g),S=this.buildEventUiBases(v.defs,x,b),$={dynamicOptionOverrides:o,currentViewType:s,currentDate:d,dateProfile:h,eventSources:g,eventStore:p,renderableEventStore:v,selectionConfig:w,eventUiBases:S,businessHours:this.parseContextBusinessHours(c),dateSelection:K4e(r.dateSelection,t),eventSelection:Q4e(r.eventSelection,t),eventDrag:X4e(r.eventDrag,t),eventResize:J4e(r.eventResize,t)},E=Object.assign(Object.assign({},c),$);for(let A of a.pluginHooks.reducers)Object.assign($,A(r,t,E));let T=v$(r,c),k=v$($,c);!T&&k?i.trigger("loading",!0):T&&!k&&i.trigger("loading",!1),this.state=$,n.onAction&&n.onAction(t)}updateData(){let{props:t,state:n}=this,r=this.data,i=this.computeOptionsData(t.optionOverrides,n.dynamicOptionOverrides,t.calendarApi),o=this.computeCurrentViewData(n.currentViewType,i,t.optionOverrides,n.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,o.options,i.dateEnv),calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),o),n),s=i.pluginHooks.optionChangeHandlers,l=r&&r.calendarOptions,c=i.calendarOptions;if(l&&l!==c){l.timeZone!==c.timeZone&&(n.eventSources=a.eventSources=W4e(a.eventSources,n.dateProfile,a),n.eventStore=a.eventStore=a$e(a.eventStore,r.dateEnv,a.dateEnv));for(let d in s)(this.optionsForHandling.indexOf(d)!==-1||l[d]!==c[d])&&s[d](c[d],a)}this.optionsForHandling=[],t.onData&&t.onData(a)}computeOptionsData(t,n,r){if(!this.optionsForRefining.length&&t===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:o,localeDefaults:a,availableLocaleData:s,extra:l}=this.processRawCalendarOptions(t,n);WP(l);let c=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,o,s,i.defaultRangeSeparator),d=this.buildViewSpecs(o.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),h=this.buildTheme(i,o),g=this.parseToolbars(i,this.stableOptionOverrides,h,d,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:o,dateEnv:c,viewSpecs:d,theme:h,toolbarConfig:g,localeDefaults:a,availableRawLocales:s.map}}processRawCalendarOptions(t,n){let{locales:r,locale:i}=_5([Yp,t,n]),o=this.organizeRawLocales(r),a=o.map,s=this.buildLocale(i||o.defaultCode,a).options,l=this.buildPluginHooks(t.plugins||[],fCe),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jN),WN),VN),l.listenerRefiners),l.optionRefiners),d={},h=_5([Yp,s,t,n]),g={},p=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,v=!1;for(let x in h)this.optionsForRefining.indexOf(x)===-1&&(h[x]===p[x]||ru[x]&&x in p&&ru[x](p[x],h[x]))?g[x]=m[x]:c[x]?(g[x]=c[x](h[x]),v=!0):d[x]=p[x];return v&&(this.currentCalendarOptionsInput=h,this.currentCalendarOptionsRefined=g,this.stableOptionOverrides=t,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:o,localeDefaults:s,extra:d}}_computeCurrentViewData(t,n,r,i){let o=n.viewSpecs[t];if(!o)throw new Error(`viewType "${t}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:s}=this.processRawViewOptions(o,n.pluginHooks,n.localeDefaults,r,i);WP(s);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),c=this.buildViewApi(t,this.getCurrentData,n.dateEnv);return{viewSpec:o,options:a,dateProfileGenerator:l,viewApi:c}}processRawViewOptions(t,n,r,i,o){let a=_5([Yp,t.optionDefaults,r,i,t.optionOverrides,o]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jN),WN),VN),y5e),n.listenerRefiners),n.optionRefiners),l={},c=this.currentViewOptionsInput,d=this.currentViewOptionsRefined,h=!1,g={};for(let p in a)a[p]===c[p]||ru[p]&&ru[p](a[p],c[p])?l[p]=d[p]:(a[p]===this.currentCalendarOptionsInput[p]||ru[p]&&ru[p](a[p],this.currentCalendarOptionsInput[p])?p in this.currentCalendarOptionsRefined&&(l[p]=this.currentCalendarOptionsRefined[p]):s[p]?l[p]=s[p](a[p]):g[p]=a[p],h=!0);return h&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:g}}}function vCe(e,t,n,r,i,o,a,s){let l=IP(t||a.defaultCode,a.map);return new A5e({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:o.cmdFormatter,defaultSeparator:s})}function yCe(e,t){let n=t.themeClasses[e.themeSystem]||Ys;return new n(e)}function bCe(e){let t=e.dateProfileGeneratorClass||L5;return new t(e)}function wCe(e,t,n){return new nCe(e,t,n)}function xCe(e){return ou(e,t=>t.ui)}function SCe(e,t,n){let r={"":t};for(let i in e){let o=e[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}return r}function $Ce(e){let{options:t}=e;return{eventUiSingleBase:ev({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap=="boolean"?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:ev({constraint:t.selectConstraint,overlap:typeof t.selectOverlap=="boolean"?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function v$(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function CCe(e){return f$e(e.options.businessHours,e)}function WP(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class ECe extends wt{render(){let t=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return P("div",{className:"fc-toolbar-chunk"},...t)}renderWidgetGroup(t){let{props:n}=this,{theme:r}=this.context,i=[],o=!0;for(let a of t){let{buttonName:s,buttonClick:l,buttonText:c,buttonIcon:d,buttonHint:h}=a;if(s==="title")o=!1,i.push(P("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let g=s===n.activeButton,p=!n.isTodayEnabled&&s==="today"||!n.isPrevEnabled&&s==="prev"||!n.isNextEnabled&&s==="next",m=[`fc-${s}-button`,r.getClass("button")];g&&m.push(r.getClass("buttonActive")),i.push(P("button",{type:"button",title:typeof h=="function"?h(n.navUnit):h,disabled:p,"aria-pressed":g,className:m.join(" "),onClick:l},c||(d?P("span",{className:d}):"")))}}if(i.length>1){let a=o&&r.getClass("buttonGroup")||"";return P("div",{className:a},...i)}return i[0]}}class VP extends wt{render(){let{model:t,extraClassName:n}=this.props,r=!1,i,o,a=t.sectionWidgets,s=a.center;return a.left?(r=!0,i=a.left):i=a.start,a.right?(r=!0,o=a.right):o=a.end,P("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",s||[]),this.renderSection("end",o||[]))}renderSection(t,n){let{props:r}=this;return P(ECe,{key:t,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class TCe extends wt{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=t=>{this.el=t,Bo(this.props.elRef,t),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:t,state:n}=this,{aspectRatio:r}=t,i=["fc-view-harness",r||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",a="";return r?n.availableWidth!==null?o=n.availableWidth/r:a=`${1/r*100}%`:o=t.height||"",P("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:o,paddingBottom:a}},t.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class kCe extends xP{constructor(t){super(t),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:o}=i,a=G5(r);if(a&&i.isValidSegDownEl(n.target)){let s=Aa(n.target,".fc-event-forced-url"),l=s?s.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:r,event:new Pi(i.context,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:o.viewApi}),l&&!n.defaultPrevented&&(window.location.href=l)}},this.destroy=_N(t.el,"click",".fc-event",this.handleSegClick)}}class ACe extends xP{constructor(t){super(t),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{G5(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=DSe(t.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(t,n,r){let{component:i}=this,{context:o}=i,a=G5(r);(!n||i.isValidSegDownEl(n.target))&&o.emitter.trigger(t,{el:r,event:new Pi(o,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:o.viewApi})}}class _Ce extends au{constructor(){super(...arguments),this.buildViewContext=Le(O5e),this.buildViewPropTransformers=Le(OCe),this.buildToolbarProps=Le(RCe),this.headerRef=On(),this.footerRef=On(),this.interactionsStore={},this.state={viewLabelId:zo()},this.registerInteractiveComponent=(t,n)=>{let r=N$e(t,n),a=[kCe,ACe].concat(this.props.pluginHooks.componentInteractions).map(s=>new s(r));this.interactionsStore[t.uid]=a,SP[t.uid]=r},this.unregisterInteractiveComponent=t=>{let n=this.interactionsStore[t.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[t.uid]}delete SP[t.uid]},this.resizeRunner=new S5(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=t=>{let{options:n}=this.props;n.handleWindowResize&&t.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:t}=this,{toolbarConfig:n,options:r}=t,i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,Zp(t.options.now,t.dateEnv),t.viewTitle),o=!1,a="",s;t.isHeightAuto||t.forPrint?a="":r.height!=null?o=!0:r.contentHeight!=null?a=r.contentHeight:s=Math.max(r.aspectRatio,.5);let l=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return P(_a.Provider,{value:l},n.header&&P(VP,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},i)),P(TCe,{liquid:o,height:a,aspectRatio:s,labeledById:c},this.renderView(t),this.buildAppendContent()),n.footer&&P(VP,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:t}=this;this.calendarInteractions=t.pluginHooks.calendarInteractions.map(r=>new r(t)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=t.pluginHooks;for(let r in n)n[r](t[r],t)}componentDidUpdate(t){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==t[i]&&r[i](n[i],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let t of this.calendarInteractions)t.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:t}=this,n=t.pluginHooks.viewContainerAppends.map(r=>r(t));return P(dt,{},...n)}renderView(t){let{pluginHooks:n}=t,{viewSpec:r}=t,i={dateProfile:t.dateProfile,businessHours:t.businessHours,eventStore:t.renderableEventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isHeightAuto:t.isHeightAuto,forPrint:t.forPrint},o=this.buildViewPropTransformers(n.viewPropsTransformers);for(let s of o)Object.assign(i,s.transform(i,t));let a=r.component;return P(a,Object.assign({},i))}}function RCe(e,t,n,r,i,o){let a=n.build(i,void 0,!1),s=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:o,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:a.isValid&&!Ra(t.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function OCe(e){return e.map(t=>new t)}class DCe extends P$e{constructor(t,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;qN(()=>{jp(P(M$e,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,o,a,s)=>(this.setClassNames(i),this.setHeight(o),P(XN.Provider,{value:this.customContentRenderId},P(_Ce,Object.assign({isHeightAuto:a,forPrint:s},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,jp(null,this.el),this.setClassNames([]),this.setHeight(""))},SSe(t),this.el=t,this.renderRunner=new S5(this.handleRenderRequest),new mCe({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let t=this.isRendering;t?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),t&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){qN(()=>{super.updateSize()})}batchRendering(t){this.renderRunner.pause("batchRendering"),t(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(t,n){this.currentDataManager.resetOptions(t,n)}setClassNames(t){if(!Hs(t,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of t)n.add(r);this.currentClassNames=t}}setHeight(t){kN(this.el,"height",t)}}class dv extends R.Component{constructor(){super(...arguments),this.elRef=R.createRef(),this.needsCustomRenderingResize=!1,this.isInitialRender=!0,this.state={customRenderingMap:new Map}}render(){const t=[];for(const n of this.state.customRenderingMap.values()){const{generatorMeta:r}=n,i=typeof r=="function"?r(n.renderProps):r;t.push(vo.createPortal(i,n.containerEl,n.id))}return le.createElement("div",{ref:this.elRef},t)}componentDidMount(){const t=new S4e;this.handleCustomRendering=t.handle.bind(t),this.calendar=new DCe(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),t.subscribe(n=>{this.isInitialRender?this.doCustomRendering(n):this.requestCustomRendering(n)})}requestCustomRendering(t){this.cancelCustomRendering(),this.customRenderingRequestId=requestAnimationFrame(()=>{dv.act(()=>{this.doCustomRendering(t)})})}doCustomRendering(t){this.needsCustomRenderingResize=!0,this.setState({customRenderingMap:t})}cancelCustomRendering(){this.customRenderingRequestId&&(cancelAnimationFrame(this.customRenderingRequestId),this.customRenderingRequestId=void 0)}componentDidUpdate(){this.isInitialRender=!1,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.needsCustomRenderingResize&&(this.needsCustomRenderingResize=!1,this.calendar.updateSize())}componentWillUnmount(){this.calendar.destroy(),this.cancelCustomRendering()}getApi(){return this.calendar}}dv.act=e=>{e()};class ICe extends wt{constructor(){super(...arguments),this.state={textId:zo()}}render(){let{theme:t,dateEnv:n,options:r,viewApi:i}=this.context,{cellId:o,dayDate:a,todayRange:s}=this.props,{textId:l}=this.state,c=K5(a,s),d=r.listDayFormat?n.format(a,r.listDayFormat):"",h=r.listDaySideFormat?n.format(a,r.listDaySideFormat):"",g=Object.assign({date:n.toDate(a),view:i,textId:l,text:d,sideText:h,navLinkAttrs:Gs(this.context,a),sideNavLinkAttrs:Gs(this.context,a,"day",!1)},c);return P(pr,{elTag:"tr",elClasses:["fc-list-day",...rv(c,t)],elAttrs:{"data-date":Gp(a)},renderProps:g,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:MCe,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},p=>P("th",{scope:"colgroup",colSpan:3,id:o,"aria-labelledby":l},P(p,{elTag:"div",elClasses:["fc-list-day-cushion",t.getClass("tableCellShaded")]})))}}function MCe(e){return P(dt,null,e.text&&P("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&P("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const NCe=Rt({hour:"numeric",minute:"2-digit",meridiem:"short"});class PCe extends wt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i,timeHeaderId:o,eventHeaderId:a,dateHeaderId:s}=t,l=r.eventTimeFormat||NCe;return P(Xp,Object.assign({},t,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>LCe(i,n),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(c,d)=>P(dt,null,FCe(i,l,n,o,s),P("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},P("span",{className:"fc-list-event-dot",style:{borderColor:d.borderColor||d.backgroundColor}})),P(c,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${a} ${s}`}})))}}function LCe(e,t){let n=nv(e,t);return P("a",Object.assign({},n),e.eventRange.def.title)}function FCe(e,t,n,r,i){let{options:o}=n;if(o.displayEventTime!==!1){let a=e.eventRange.def,s=e.eventRange.instance,l=!1,c;if(a.allDay?l=!0:B5e(e.eventRange.range)?e.isStart?c=rd(e,t,n,null,null,s.range.start,e.end):e.isEnd?c=rd(e,t,n,null,null,e.start,s.range.end):l=!0:c=rd(e,t,n),l){let d={text:n.options.allDayText,view:n.viewApi};return P(pr,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:d,generatorName:"allDayContent",customGenerator:o.allDayContent,defaultGenerator:zCe,classNameGenerator:o.allDayClassNames,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount})}return P("td",{className:"fc-list-event-time"},c)}return null}function zCe(e){return e.text}class BCe extends hr{constructor(){super(...arguments),this.computeDateVars=Le(UCe),this.eventStoreToSegs=Le(this._eventStoreToSegs),this.state={timeHeaderId:zo(),eventHeaderId:zo(),dateHeaderIdRoot:zo()},this.setRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:t,context:n}=this,{dayDates:r,dayRanges:i}=this.computeDateVars(t.dateProfile),o=this.eventStoreToSegs(t.eventStore,t.eventUiBases,i);return P(td,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},P(TP,{liquid:!t.isHeightAuto,overflowX:t.isHeightAuto?"visible":"hidden",overflowY:t.isHeightAuto?"visible":"auto"},o.length>0?this.renderSegList(o,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:t,viewApi:n}=this.context,r={text:t.noEventsText,view:n};return P(pr,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:t.noEventsContent,defaultGenerator:HCe,classNameGenerator:t.noEventsClassNames,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},i=>P(i,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(t,n){let{theme:r,options:i}=this.context,{timeHeaderId:o,eventHeaderId:a,dateHeaderIdRoot:s}=this.state,l=jCe(t);return P(su,{unit:"day"},(c,d)=>{let h=[];for(let g=0;g<l.length;g+=1){let p=l[g];if(p){let m=Gp(n[g]),v=s+"-"+m;h.push(P(ICe,{key:m,cellId:v,dayDate:n[g],todayRange:d})),p=tv(p,i.eventOrder);for(let x of p)h.push(P(PCe,Object.assign({key:m+":"+x.eventRange.instance.instanceId,seg:x,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:o,eventHeaderId:a,dateHeaderId:v},Ur(x,d,c))))}}return P("table",{className:"fc-list-table "+r.getClass("table")},P("thead",null,P("tr",null,P("th",{scope:"col",id:o},i.timeHint),P("th",{scope:"col","aria-hidden":!0}),P("th",{scope:"col",id:a},i.eventHint))),P("tbody",null,h))})}_eventStoreToSegs(t,n,r){return this.eventRangesToSegs(V5(t,n,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,r)}eventRangesToSegs(t,n){let r=[];for(let i of t)r.push(...this.eventRangeToSegs(i,n));return r}eventRangeToSegs(t,n){let{dateEnv:r}=this.context,{nextDayThreshold:i}=this.context.options,o=t.range,a=t.def.allDay,s,l,c,d=[];for(s=0;s<n.length;s+=1)if(l=Ho(o,n[s]),l&&(c={component:this,eventRange:t,start:l.start,end:l.end,isStart:t.isStart&&l.start.valueOf()===o.start.valueOf(),isEnd:t.isEnd&&l.end.valueOf()===o.end.valueOf(),dayIndex:s},d.push(c),!c.isEnd&&!a&&s+1<n.length&&o.end<r.add(n[s+1].start,i))){c.end=o.end,c.isEnd=!0;break}return d}}function HCe(e){return e.text}function UCe(e){let t=Bt(e.renderRange.start),n=e.renderRange.end,r=[],i=[];for(;t<n;)r.push(t),i.push({start:t,end:vn(t,1)}),t=vn(t,1);return{dayDates:r,dayRanges:i}}function jCe(e){let t=[],n,r;for(n=0;n<e.length;n+=1)r=e[n],(t[r.dayIndex]||(t[r.dayIndex]=[])).push(r);return t}const WCe={listDayFormat:GP,listDaySideFormat:GP,noEventsClassNames:re,noEventsContent:re,noEventsDidMount:re,noEventsWillUnmount:re};function GP(e){return e===!1?null:Rt(e)}var VCe=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';Wp(VCe);var GCe=Wo({name:"@fullcalendar/list",optionRefiners:WCe,views:{list:{component:BCe,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});class YCe extends hr{constructor(){super(...arguments),this.headerElRef=On()}renderSimpleLayout(t,n){let{props:r,context:i}=this,o=[],a=lv(i.options);return t&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),P(td,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},P(s$,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:o}))}renderHScrollLayout(t,n,r,i){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{props:a,context:s}=this,l=!a.forPrint&&lv(s.options),c=!a.forPrint&&AP(s.options),d=[];return t&&d.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),d.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),c&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:a$}]}),P(td,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},P(o,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:d}))}}function fv(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.row].push(r);return n}function pv(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.firstCol].push(r);return n}function YP(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.row].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}const qP=Rt({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function ZP(e){let{display:t}=e.eventRange.ui;return t==="list-item"||t==="auto"&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}let KP=class extends wt{render(){let{props:t}=this;return P(l$,Object.assign({},t,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:qP,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))}},QP=class extends wt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,o=r.eventTimeFormat||qP,a=rd(i,o,n,!0,t.defaultDisplayEventEnd);return P(Xp,Object.assign({},t,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:nv(t.seg,n),defaultGenerator:qCe,timeText:a,isResizing:!1,isDateSelecting:!1}))}};function qCe(e){return P(dt,null,P("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&P("div",{className:"fc-event-time"},e.timeText),P("div",{className:"fc-event-title"},e.event.title||P(dt,null," ")))}let ZCe=class extends wt{constructor(){super(...arguments),this.compileSegs=Le(KCe)}render(){let{props:t}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(t.singlePlacements);return P(h$,{elClasses:["fc-daygrid-more-link"],dateProfile:t.dateProfile,todayRange:t.todayRange,allDayDate:t.allDayDate,moreCnt:t.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:t.alignmentElRef,alignGridTop:t.alignGridTop,extraDateSpan:t.extraDateSpan,popoverContent:()=>{let i=(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{};return P(dt,null,n.map(o=>{let a=o.eventRange.instance.instanceId;return P("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:i[a]?"hidden":""}},ZP(o)?P(QP,Object.assign({seg:o,isDragging:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Ur(o,t.todayRange))):P(KP,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Ur(o,t.todayRange))))}))}})}};function KCe(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const QCe=Rt({week:"narrow"});let XCe=class extends hr{constructor(){super(...arguments),this.rootElRef=On(),this.state={dayNumberId:zo()},this.handleRootEl=t=>{Bo(this.rootElRef,t),Bo(this.props.elRef,t)}}render(){let{context:t,props:n,state:r,rootElRef:i}=this,{options:o}=t,{date:a,dateProfile:s}=n,l=n.showDayNumber&&s.currentRangeUnit!=="month"&&(s.currentRange.start.valueOf()===a.valueOf()||a.getUTCDate()===1);return P(uv,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:JCe,date:a,dateProfile:s,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:l,extraRenderProps:n.extraRenderProps},(c,d)=>P("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&P(f$,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Gs(t,a,"week"),date:a,defaultFormat:QCe}),!d.isDisabled&&(n.showDayNumber||cv(o)||n.forceDayTop)?P("div",{className:"fc-daygrid-day-top"},P(c,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Gs(t,a)),{id:r.dayNumberId})})):n.showDayNumber?P("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},P("a",{className:"fc-daygrid-day-number"}," ")):void 0,P("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,P("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},P(ZCe,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),P("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}};function JCe(e){return e.dayNumberText||P(dt,null," ")}function e8e(e,t,n,r,i,o,a){let s=new r8e;s.allowReslicing=!0,s.strictOrder=r,t===!0||n===!0?(s.maxCoord=o,s.hiddenConsumes=!0):typeof t=="number"?s.maxStackCnt=t:typeof n=="number"&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let l=[],c=[];for(let w=0;w<e.length;w+=1){let b=e[w],{instanceId:S}=b.eventRange.instance,$=i[S];$!=null?l.push({index:w,thickness:$,span:{start:b.firstCol,end:b.lastCol+1}}):c.push(b)}let d=s.addSegs(l),h=s.toRects(),{singleColPlacements:g,multiColPlacements:p,leftoverMargins:m}=t8e(h,e,a),v=[],x=[];for(let w of c){p[w.firstCol].push({seg:w,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let b=w.firstCol;b<=w.lastCol;b+=1)g[b].push({seg:id(w,b,b+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let w=0;w<a.length;w+=1)v.push(0);for(let w of d){let b=e[w.index],S=w.span;p[S.start].push({seg:id(b,S.start,S.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let $=S.start;$<S.end;$+=1)v[$]+=1,g[$].push({seg:id(b,$,$+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let w=0;w<a.length;w+=1)x.push(m[w]);return{singleColPlacements:g,multiColPlacements:p,moreCnts:v,moreMarginTops:x}}function t8e(e,t,n){let r=n8e(e,n.length),i=[],o=[],a=[];for(let s=0;s<n.length;s+=1){let l=r[s],c=[],d=0,h=0;for(let p of l){let m=t[p.index];c.push({seg:id(m,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:p.levelCoord-d}),d=p.levelCoord+p.thickness}let g=[];d=0,h=0;for(let p of l){let m=t[p.index],v=p.span.end-p.span.start>1,x=p.span.start===s;h+=p.levelCoord-d,d=p.levelCoord+p.thickness,v?(h+=p.thickness,x&&g.push({seg:id(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:p.levelCoord,marginTop:0})):x&&(g.push({seg:id(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:h}),h=0)}i.push(c),o.push(g),a.push(h)}return{singleColPlacements:i,multiColPlacements:o,leftoverMargins:a}}function n8e(e,t){let n=[];for(let r=0;r<t;r+=1)n.push([]);for(let r of e)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function id(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,o=i.range,a=Ho(o,{start:r[t].date,end:vn(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:a},isStart:e.isStart&&a.start.valueOf()===o.start.valueOf(),isEnd:e.isEnd&&a.end.valueOf()===o.end.valueOf()})}let r8e=class extends X5{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(t){const n=super.addSegs(t),{entriesByLevel:r}=this,i=o=>!this.forceHidden[jo(o)];for(let o=0;o<r.length;o+=1)r[o]=r[o].filter(i);return n}handleInvalidInsertion(t,n,r){const{entriesByLevel:i,forceHidden:o}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:l}=t;if(this.hiddenConsumes&&a){const c=jo(a);if(!o[c])if(this.allowReslicing){const d=Object.assign(Object.assign({},a),{span:ov(a.span,n.span)}),h=jo(d);o[h]=!0,i[s][l]=d,this.splitEntry(a,n,r)}else o[c]=!0,r.push(a)}return super.handleInvalidInsertion(t,n,r)}},XP=class extends hr{constructor(){super(...arguments),this.cellElRefs=new jr,this.frameElRefs=new jr,this.fgElRefs=new jr,this.segHarnessRefs=new jr,this.rootElRef=On(),this.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},this.handleResize=t=>{t&&this.updateSizing(!0)}}render(){let{props:t,state:n,context:r}=this,{options:i}=r,o=t.cells.length,a=pv(t.businessHourSegs,o),s=pv(t.bgEventSegs,o),l=pv(this.getHighlightSegs(),o),c=pv(this.getMirrorSegs(),o),{singleColPlacements:d,multiColPlacements:h,moreCnts:g,moreMarginTops:p}=e8e(tv(t.fgEventSegs,i.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,i.eventOrderStrict,n.eventInstanceHeights,n.maxContentHeight,t.cells),m=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return P("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map((v,x)=>{let w=this.renderFgSegs(x,t.forPrint?d[x]:h[x],t.todayRange,m),b=this.renderFgSegs(x,i8e(c[x],h),t.todayRange,{},Boolean(t.eventDrag),Boolean(t.eventResize),!1);return P(XCe,{key:v.key,elRef:this.cellElRefs.createRef(v.key),innerElRef:this.frameElRefs.createRef(v.key),dateProfile:t.dateProfile,date:v.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&x===0,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraRenderProps:v.extraRenderProps,extraDataAttrs:v.extraDataAttrs,extraClassNames:v.extraClassNames,extraDateSpan:v.extraDateSpan,moreCnt:g[x],moreMarginTop:p[x],singlePlacements:d[x],fgContentElRef:this.fgElRefs.createRef(v.key),fgContent:P(dt,null,P(dt,null,w),P(dt,null,b)),bgContent:P(dt,null,this.renderFillSegs(l[x],"highlight"),this.renderFillSegs(a[x],"non-business"),this.renderFillSegs(s[x],"bg-event")),minHeight:t.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(t,n){let r=this.props;this.updateSizing(!ci(t,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:t}=this;return t.eventDrag&&t.eventDrag.segs.length?t.eventDrag.segs:t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:t.dateSelectionSegs}getMirrorSegs(){let{props:t}=this;return t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:[]}renderFgSegs(t,n,r,i,o,a,s){let{context:l}=this,{eventSelection:c}=this.props,{framePositions:d}=this.state,h=this.props.cells.length===1,g=o||a||s,p=[];if(d)for(let m of n){let{seg:v}=m,{instanceId:x}=v.eventRange.instance,w=x+":"+t,b=m.isVisible&&!i[x],S=m.isAbsolute,$="",E="";S&&(l.isRtl?(E=0,$=d.lefts[v.lastCol]-d.lefts[v.firstCol]):($=0,E=d.rights[v.firstCol]-d.rights[v.lastCol])),p.push(P("div",{className:"fc-daygrid-event-harness"+(S?" fc-daygrid-event-harness-abs":""),key:w,ref:g?null:this.segHarnessRefs.createRef(w),style:{visibility:b?"":"hidden",marginTop:S?"":m.marginTop,top:S?m.absoluteTop:"",left:$,right:E}},ZP(v)?P(QP,Object.assign({seg:v,isDragging:o,isSelected:x===c,defaultDisplayEventEnd:h},Ur(v,r))):P(KP,Object.assign({seg:v,isDragging:o,isResizing:a,isDateSelecting:s,isSelected:x===c,defaultDisplayEventEnd:h},Ur(v,r)))))}return p}renderFillSegs(t,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:o}=this.state,a=[];if(o)for(let s of t){let l=r?{right:0,left:o.lefts[s.lastCol]-o.lefts[s.firstCol]}:{left:0,right:o.rights[s.firstCol]-o.rights[s.lastCol]};a.push(P("div",{key:Y5(s.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?P(c$,Object.assign({seg:s},Ur(s,i))):d$(n)))}return P(dt,{},...a)}updateSizing(t){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(t){let l=n.cells.map(c=>i.currentMap[c.key]);if(l.length){let c=this.rootElRef.current,d=new Uo(c,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(d))&&this.setState({framePositions:new Uo(c,l,!0,!1)})}}const o=this.state.eventInstanceHeights,a=this.queryEventInstanceHeights(),s=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({eventInstanceHeights:Object.assign(Object.assign({},o),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}queryEventInstanceHeights(){let t=this.segHarnessRefs.currentMap,n={};for(let r in t){let i=Math.round(t[r].getBoundingClientRect().height),o=r.split(":")[0];n[o]=Math.max(n[o]||0,i)}return n}computeMaxContentHeight(){let t=this.props.cells[0].key,n=this.cellElRefs.currentMap[t],r=this.fgElRefs.currentMap[t];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let t=this.cellElRefs.currentMap;return this.props.cells.map(n=>t[n.key])}};XP.addStateEquality({eventInstanceHeights:ci});function i8e(e,t){if(!e.length)return[];let n=o8e(t);return e.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function o8e(e){let t={};for(let n of e)for(let r of n)t[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return t}let a8e=class extends hr{constructor(){super(...arguments),this.splitBusinessHourSegs=Le(fv),this.splitBgEventSegs=Le(fv),this.splitFgEventSegs=Le(fv),this.splitDateSelectionSegs=Le(fv),this.splitEventDrag=Le(YP),this.splitEventResize=Le(YP),this.rowRefs=new jr}render(){let{props:t,context:n}=this,r=t.cells.length,i=this.splitBusinessHourSegs(t.businessHourSegs,r),o=this.splitBgEventSegs(t.bgEventSegs,r),a=this.splitFgEventSegs(t.fgEventSegs,r),s=this.splitDateSelectionSegs(t.dateSelectionSegs,r),l=this.splitEventDrag(t.eventDrag,r),c=this.splitEventResize(t.eventResize,r),d=r>=7&&t.clientWidth?t.clientWidth/n.options.aspectRatio/6:null;return P(su,{unit:"day"},(h,g)=>P(dt,null,t.cells.map((p,m)=>P(XP,{ref:this.rowRefs.createRef(m),key:p.length?p[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:t.showWeekNumbers,todayRange:g,dateProfile:t.dateProfile,cells:p,renderIntro:t.renderRowIntro,businessHourSegs:i[m],eventSelection:t.eventSelection,bgEventSegs:o[m].filter(s8e),fgEventSegs:a[m],dateSelectionSegs:s[m],eventDrag:l[m],eventResize:c[m],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:d,forPrint:t.forPrint}))))}componentDidMount(){const t=this.rowRefs.currentMap[0].getCellEls()[0];this.rootEl=t?t.closest(".fc-daygrid-body"):null,this.rootEl&&this.context.registerInteractiveComponent(this,{el:this.rootEl,isHitComboAllowed:this.props.isHitComboAllowed})}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Uo(this.rootEl,this.rowRefs.collect().map(t=>t.getCellEls()[0]),!1,!0),this.colPositions=new Uo(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(t,n){let{colPositions:r,rowPositions:i}=this,o=r.leftToIndex(t),a=i.topToIndex(n);if(a!=null&&o!=null){let s=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:r.lefts[o],right:r.rights[o],top:i.tops[a],bottom:i.bottoms[a]},layer:0}}return null}getCellEl(t,n){return this.rowRefs.currentMap[t].getCellEls()[n]}getCellRange(t,n){let r=this.props.cells[t][n].date,i=vn(r,1);return{start:r,end:i}}};function s8e(e){return e.eventRange.def.allDay}class l8e extends hr{constructor(){super(...arguments),this.elRef=On(),this.needsScrollReset=!1}render(){let{props:t}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=t,o=r===!0||n===!0;o&&!i&&(o=!1,n=null,r=null);let a=["fc-daygrid-body",o?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return P("div",{ref:this.elRef,className:a.join(" "),style:{width:t.clientWidth,minWidth:t.tableMinWidth}},P("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:i?t.clientHeight:""}},t.colGroupNode,P("tbody",{role:"presentation"},P(a8e,{dateProfile:t.dateProfile,cells:t.cells,renderRowIntro:t.renderRowIntro,showWeekNumbers:t.showWeekNumbers,clientWidth:t.clientWidth,clientHeight:t.clientHeight,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:t.forPrint,isHitComboAllowed:t.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(t){t.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const t=u8e(this.elRef.current,this.props.dateProfile);if(t){const n=t.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=t.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function u8e(e,t){let n;return t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${k5(t.currentDate)}-01"]`)),n||(n=e.querySelector(`[data-date="${Gp(t.currentDate)}"]`)),n}let c8e=class extends o${constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(t,n){return n.sliceRange(t)}};class JP extends hr{constructor(){super(...arguments),this.slicer=new c8e,this.tableRef=On()}render(){let{props:t,context:n}=this;return P(l8e,Object.assign({ref:this.tableRef},this.slicer.sliceProps(t,t.dateProfile,t.nextDayThreshold,n,t.dayTableModel),{dateProfile:t.dateProfile,cells:t.dayTableModel.cells,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint}))}}class d8e extends YCe{constructor(){super(...arguments),this.buildDayTableModel=Le(f8e),this.headerRef=On(),this.tableRef=On()}render(){let{options:t,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),o=t.dayHeaders&&P(n$,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),a=s=>P(JP,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:t.nextDayThreshold,colGroupNode:s.tableColGroupNode,tableMinWidth:s.tableMinWidth,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:s.clientWidth,clientHeight:s.clientHeight,forPrint:r.forPrint});return t.dayMinWidth?this.renderHScrollLayout(o,a,i.colCnt,t.dayMinWidth):this.renderSimpleLayout(o,a)}}function f8e(e,t){let n=new r$(e.renderRange,t);return new i$(n,/year|month|week/.test(e.currentRangeUnit))}let p8e=class extends L5{buildRenderRange(t,n,r){let i=super.buildRenderRange(t,n,r),{props:o}=this;return h8e({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}};function h8e(e){let{dateEnv:t,currentRange:n}=e,{start:r,end:i}=n,o;if(e.snapToWeek&&(r=t.startOfWeek(r),o=t.startOfWeek(i),o.valueOf()!==i.valueOf()&&(i=j1(o,1))),e.fixedWeekCount){let a=t.startOfWeek(t.startOfMonth(vn(n.end,-1))),s=Math.ceil(NN(a,i));i=j1(i,6-s)}return{start:r,end:i}}class g8e extends F$e{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(t){return t.allDay?["allDay"]:["timed"]}getKeysForEventDef(t){return t.allDay?w$e(t)?["timed","allDay"]:["allDay"]:["timed"]}}const m8e=Rt({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function eL(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return P(_a.Consumer,null,n=>{if(!e.isLabeled)return P("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:i,viewApi:o}=n,a=i.slotLabelFormat==null?m8e:Array.isArray(i.slotLabelFormat)?Rt(i.slotLabelFormat[0]):Rt(i.slotLabelFormat),s={level:0,time:e.time,date:r.toDate(e.date),view:o,text:r.format(e.date,a)};return P(pr,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:s,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:v8e,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},l=>P("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},P(l,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function v8e(e){return e.text}class y8e extends wt{render(){return this.props.slatMetas.map(t=>P("tr",{key:t.key},P(eL,Object.assign({},t))))}}const b8e=Rt({week:"short"}),w8e=5;class x8e extends hr{constructor(){super(...arguments),this.allDaySplitter=new g8e,this.headerElRef=On(),this.rootElRef=On(),this.scrollerElRef=On(),this.state={slatCoords:null},this.handleScrollTopRequest=t=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=t)},this.renderHeadAxis=(t,n="")=>{let{options:r}=this.context,{dateProfile:i}=this.props,o=i.renderRange,s=js(o.start,o.end)===1?Gs(this.context,o.start,"week"):{};return r.weekNumbers&&t==="day"?P(f$,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:o.start,defaultFormat:b8e},l=>P("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},P(l,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s}))):P("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},P("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=t=>{let{options:n,viewApi:r}=this.context,i={text:n.allDayText,view:r};return P(pr,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:S8e,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},o=>P("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",t==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:t}},P(o,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=t=>{this.setState({slatCoords:t})}}renderSimpleLayout(t,n,r){let{context:i,props:o}=this,a=[],s=lv(i.options);return t&&a.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),n&&(a.push({type:"body",key:"all-day",chunk:{content:n}}),a.push({type:"body",key:"all-day-divider",outerContent:P("tr",{role:"presentation",className:"fc-scrollgrid-section"},P("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(i.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:r}}),P(td,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},P(s$,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(t,n,r,i,o,a,s){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:c,props:d}=this,h=!d.forPrint&&lv(c.options),g=!d.forPrint&&AP(c.options),p=[];t&&p.push({type:"header",key:"header",isSticky:h,syncRowHeights:!0,chunks:[{key:"axis",rowContent:v=>P("tr",{role:"presentation"},this.renderHeadAxis("day",v.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),n&&(p.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:v=>P("tr",{role:"presentation"},this.renderTableRowAxis(v.rowSyncHeights[0]))},{key:"cols",content:n}]}),p.push({key:"all-day-divider",type:"body",outerContent:P("tr",{role:"presentation",className:"fc-scrollgrid-section"},P("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));let m=c.options.nowIndicator;return p.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(c.options.expandRows),chunks:[{key:"axis",content:v=>P("div",{className:"fc-timegrid-axis-chunk"},P("table",{"aria-hidden":!0,style:{height:v.expandRows?v.clientHeight:""}},v.tableColGroupNode,P("tbody",null,P(y8e,{slatMetas:a}))),P("div",{className:"fc-timegrid-now-indicator-container"},P(su,{unit:m?"minute":"day"},x=>{let w=m&&s&&s.safeComputeTop(x);return typeof w=="number"?P(u$,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:w},isAxis:!0,date:x}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),g&&p.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:a$},{key:"cols",content:a$}]}),P(td,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:c.viewSpec},P(l,{liquid:!d.isHeightAuto&&!d.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:o}]}],sections:p}))}getAllDayMaxEventProps(){let{dayMaxEvents:t,dayMaxEventRows:n}=this.context.options;return(t===!0||n===!0)&&(t=void 0,n=w8e),{dayMaxEvents:t,dayMaxEventRows:n}}}function S8e(e){return e.text}class $8e{constructor(t,n,r){this.positions=t,this.dateProfile=n,this.slotDuration=r}safeComputeTop(t){let{dateProfile:n}=this;if(Ra(n.currentRange,t)){let r=Bt(t),i=t.valueOf()-r.valueOf();if(i>=co(n.slotMinTime)&&i<co(n.slotMaxTime))return this.computeTimeTop(bt(i))}return null}computeDateTop(t,n){return n||(n=Bt(t)),this.computeTimeTop(bt(t.valueOf()-n.valueOf()))}computeTimeTop(t){let{positions:n,dateProfile:r}=this,i=n.els.length,o=(t.milliseconds-co(r.slotMinTime))/co(this.slotDuration),a,s;return o=Math.max(0,o),o=Math.min(i,o),a=Math.floor(o),a=Math.min(a,i-1),s=o-a,n.tops[a]+n.getHeight(a)*s}}class C8e extends wt{render(){let{props:t,context:n}=this,{options:r}=n,{slatElRefs:i}=t;return P("tbody",null,t.slatMetas.map((o,a)=>{let s={time:o.time,date:n.dateEnv.toDate(o.date),view:n.viewApi};return P("tr",{key:o.key,ref:i.createRef(o.key)},t.axis&&P(eL,Object.assign({},o)),P(pr,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!o.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":o.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class E8e extends wt{constructor(){super(...arguments),this.rootElRef=On(),this.slatElRefs=new jr}render(){let{props:t,context:n}=this;return P("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},P("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,P(C8e,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:t,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new $8e(new Uo(this.rootElRef.current,T8e(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,t.options.slotDuration))}}function T8e(e,t){return t.map(n=>e[n.key])}function Jp(e,t){let n=[],r;for(r=0;r<t;r+=1)n.push([]);if(e)for(r=0;r<e.length;r+=1)n[e[r].col].push(e[r]);return n}function tL(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.col].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}class k8e extends wt{render(){let{props:t}=this;return P(h$,{elClasses:["fc-timegrid-more-link"],elStyle:{top:t.top,bottom:t.bottom},allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:()=>oL(t.hiddenSegs,t),defaultGenerator:A8e},n=>P(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function A8e(e){return e.shortText}function _8e(e,t,n){let r=new X5;t!=null&&(r.strictOrder=t),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(e),o=Y$e(i),a=R8e(r);return a=M8e(a,1),{segRects:N8e(a),hiddenGroups:o}}function R8e(e){const{entriesByLevel:t}=e,n=y$((r,i)=>r+":"+i,(r,i)=>{let o=I8e(e,r,i),a=nL(o,n),s=t[r][i];return[Object.assign(Object.assign({},s),{nextLevelNodes:a[0]}),s.thickness+a[1]]});return nL(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function nL(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=e,o=r,a=[];for(;o<i;)a.push(t(n,o)),o+=1;return a.sort(O8e),[a.map(D8e),a[0][1]]}function O8e(e,t){return t[1]-e[1]}function D8e(e){return e[0]}function I8e(e,t,n){let{levelCoords:r,entriesByLevel:i}=e,o=i[t][n],a=r[t]+o.thickness,s=r.length,l=t;for(;l<s&&r[l]<a;l+=1);for(;l<s;l+=1){let c=i[l],d,h=t$(c,o.span.start,J5),g=h[0]+h[1],p=g;for(;(d=c[p])&&d.span.start<o.span.end;)p+=1;if(g<p)return{level:l,lateralStart:g,lateralEnd:p}}return null}function M8e(e,t){const n=y$((r,i,o)=>jo(r),(r,i,o)=>{let{nextLevelNodes:a,thickness:s}=r,l=s+o,c=s/l,d,h=[];if(!a.length)d=t;else for(let p of a)if(d===void 0){let m=n(p,i,l);d=m[0],h.push(m[1])}else{let m=n(p,d,0);h.push(m[1])}let g=(d-i)*c;return[d-g,Object.assign(Object.assign({},r),{thickness:g,nextLevelNodes:h})]});return e.map(r=>n(r,0,0)[1])}function N8e(e){let t=[];const n=y$((i,o,a)=>jo(i),(i,o,a)=>{let s=Object.assign(Object.assign({},i),{levelCoord:o,stackDepth:a,stackForward:0});return t.push(s),s.stackForward=r(i.nextLevelNodes,o+i.thickness,a+1)+1});function r(i,o,a){let s=0;for(let l of i)s=Math.max(n(l,o,a),s);return s}return r(e,0,0),t}function y$(e,t){const n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}function rL(e,t,n=null,r=0){let i=[];if(n)for(let o=0;o<e.length;o+=1){let a=e[o],s=n.computeDateTop(a.start,t),l=Math.max(s+(r||0),n.computeDateTop(a.end,t));i.push({start:Math.round(s),end:Math.round(l)})}return i}function P8e(e,t,n,r){let i=[],o=[];for(let c=0;c<e.length;c+=1){let d=t[c];d?i.push({index:c,thickness:1,span:d}):o.push(e[c])}let{segRects:a,hiddenGroups:s}=_8e(i,n,r),l=[];for(let c of a)l.push({seg:e[c.index],rect:c});for(let c of o)l.push({seg:c,rect:null});return{segPlacements:l,hiddenGroups:s}}const L8e=Rt({hour:"numeric",minute:"2-digit",meridiem:!1});class iL extends wt{render(){return P(l$,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:L8e}))}}class F8e extends wt{constructor(){super(...arguments),this.sortEventSegs=Le(tv)}render(){let{props:t,context:n}=this,{options:r}=n,i=r.selectMirror,o=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||i&&t.dateSelectionSegs||[],a=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},s=this.sortEventSegs(t.fgEventSegs,r.eventOrder);return P(uv,{elTag:"td",elRef:t.elRef,elClasses:["fc-timegrid-col",...t.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},t.extraDataAttrs),date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraRenderProps:t.extraRenderProps},l=>P("div",{className:"fc-timegrid-col-frame"},P("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(t.businessHourSegs,"non-business"),this.renderFillSegs(t.bgEventSegs,"bg-event"),this.renderFillSegs(t.dateSelectionSegs,"highlight")),P("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,a,!1,!1,!1)),P("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(i))),P("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(t.nowIndicatorSegs)),cv(r)&&P(l,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(t,n,r,i,o){let{props:a}=this;return a.forPrint?oL(t,a):this.renderPositionedFgSegs(t,n,r,i,o)}renderPositionedFgSegs(t,n,r,i,o){let{eventMaxStack:a,eventShortHeight:s,eventOrderStrict:l,eventMinHeight:c}=this.context.options,{date:d,slatCoords:h,eventSelection:g,todayRange:p,nowDate:m}=this.props,v=r||i||o,x=rL(t,d,h,c),{segPlacements:w,hiddenGroups:b}=P8e(t,x,l,a);return P(dt,null,this.renderHiddenGroups(b,t),w.map(S=>{let{seg:$,rect:E}=S,T=$.eventRange.instance.instanceId,k=v||Boolean(!n[T]&&E),A=b$(E&&E.span),I=!v&&E?this.computeSegHStyle(E):{left:0,right:0},D=Boolean(E)&&E.stackForward>0,L=Boolean(E)&&E.span.end-E.span.start<s;return P("div",{className:"fc-timegrid-event-harness"+(D?" fc-timegrid-event-harness-inset":""),key:T,style:Object.assign(Object.assign({visibility:k?"":"hidden"},A),I)},P(iL,Object.assign({seg:$,isDragging:r,isResizing:i,isDateSelecting:o,isSelected:T===g,isShort:L},Ur($,p,m))))}))}renderHiddenGroups(t,n){let{extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:a,eventSelection:s,eventDrag:l,eventResize:c}=this.props;return P(dt,null,t.map(d=>{let h=b$(d.span),g=z8e(d.entries,n);return P(k8e,{key:zN(RP(g)),hiddenSegs:g,top:h.top,bottom:h.bottom,extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:a,eventSelection:s,eventDrag:l,eventResize:c})}))}renderFillSegs(t,n){let{props:r,context:i}=this,a=rL(t,r.date,r.slatCoords,i.options.eventMinHeight).map((s,l)=>{let c=t[l];return P("div",{key:Y5(c.eventRange),className:"fc-timegrid-bg-harness",style:b$(s)},n==="bg-event"?P(c$,Object.assign({seg:c},Ur(c,r.todayRange,r.nowDate))):d$(n))});return P(dt,null,a)}renderNowIndicator(t){let{slatCoords:n,date:r}=this.props;return n?t.map((i,o)=>P(u$,{key:o,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(i.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(t){let{isRtl:n,options:r}=this.context,i=r.slotEventOverlap,o=t.levelCoord,a=t.levelCoord+t.thickness,s,l;i&&(a=Math.min(1,o+(a-o)*2)),n?(s=1-a,l=o):(s=o,l=1-a);let c={zIndex:t.stackDepth+1,left:s*100+"%",right:l*100+"%"};return i&&!t.stackForward&&(c[n?"marginLeft":"marginRight"]=10*2),c}}function oL(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:i,eventResize:o}){let a=(i?i.affectedInstances:null)||(o?o.affectedInstances:null)||{};return P(dt,null,e.map(s=>{let l=s.eventRange.instance.instanceId;return P("div",{key:l,style:{visibility:a[l]?"hidden":""}},P(iL,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===r,isShort:!1},Ur(s,t,n))))}))}function b$(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}function z8e(e,t){return e.map(n=>t[n.index])}class B8e extends wt{constructor(){super(...arguments),this.splitFgEventSegs=Le(Jp),this.splitBgEventSegs=Le(Jp),this.splitBusinessHourSegs=Le(Jp),this.splitNowIndicatorSegs=Le(Jp),this.splitDateSelectionSegs=Le(Jp),this.splitEventDrag=Le(tL),this.splitEventResize=Le(tL),this.rootElRef=On(),this.cellElRefs=new jr}render(){let{props:t,context:n}=this,r=n.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),i=t.cells.length,o=this.splitFgEventSegs(t.fgEventSegs,i),a=this.splitBgEventSegs(t.bgEventSegs,i),s=this.splitBusinessHourSegs(t.businessHourSegs,i),l=this.splitNowIndicatorSegs(t.nowIndicatorSegs,i),c=this.splitDateSelectionSegs(t.dateSelectionSegs,i),d=this.splitEventDrag(t.eventDrag,i),h=this.splitEventResize(t.eventResize,i);return P("div",{className:"fc-timegrid-cols",ref:this.rootElRef},P("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,P("tbody",{role:"presentation"},P("tr",{role:"row"},t.axis&&P("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},P("div",{className:"fc-timegrid-col-frame"},P("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&P(u$,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:t.nowDate})))),t.cells.map((g,p)=>P(F8e,{key:g.key,elRef:this.cellElRefs.createRef(g.key),dateProfile:t.dateProfile,date:g.date,nowDate:t.nowDate,todayRange:t.todayRange,extraRenderProps:g.extraRenderProps,extraDataAttrs:g.extraDataAttrs,extraClassNames:g.extraClassNames,extraDateSpan:g.extraDateSpan,fgEventSegs:o[p],bgEventSegs:a[p],businessHourSegs:s[p],nowIndicatorSegs:l[p],dateSelectionSegs:c[p],eventDrag:d[p],eventResize:h[p],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:t}=this;t.onColCoords&&t.clientWidth!==null&&t.onColCoords(new Uo(this.rootElRef.current,H8e(this.cellElRefs.currentMap,t.cells),!0,!1))}}function H8e(e,t){return t.map(n=>e[n.key])}class U8e extends hr{constructor(){super(...arguments),this.processSlotOptions=Le(j8e),this.state={slatCoords:null},this.handleRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=t=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(t.time){let i=r.computeTimeTop(t.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},this.handleColCoords=t=>{this.colCoords=t},this.handleSlatCoords=t=>{this.setState({slatCoords:t}),this.props.onSlatCoords&&this.props.onSlatCoords(t)}}render(){let{props:t,state:n}=this;return P("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},P(E8e,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),P(B8e,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(t){this.scrollResponder.update(t.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(t,n){let{dateEnv:r,options:i}=this.context,{colCoords:o}=this,{dateProfile:a}=this.props,{slatCoords:s}=this.state,{snapDuration:l,snapsPerSlot:c}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),d=o.leftToIndex(t),h=s.positions.topToIndex(n);if(d!=null&&h!=null){let g=this.props.cells[d],p=s.positions.tops[h],m=s.positions.getHeight(h),v=(n-p)/m,x=Math.floor(v*c),w=h*c+x,b=this.props.cells[d].date,S=$5(a.slotMinTime,USe(l,w)),$=r.add(b,S),E=r.add($,l);return{dateProfile:a,dateSpan:Object.assign({range:{start:$,end:E},allDay:!1},g.extraDateSpan),dayEl:o.els[d],rect:{left:o.lefts[d],right:o.rights[d],top:p,bottom:p+m},layer:0}}return null}}function j8e(e,t){let n=t||e,r=C5(e,n);return r===null&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class W8e extends o${sliceRange(t,n){let r=[];for(let i=0;i<n.length;i+=1){let o=Ho(t,n[i]);o&&r.push({start:o.start,end:o.end,isStart:o.start.valueOf()===t.start.valueOf(),isEnd:o.end.valueOf()===t.end.valueOf(),col:i})}return r}}class V8e extends hr{constructor(){super(...arguments),this.buildDayRanges=Le(G8e),this.slicer=new W8e,this.timeColsRef=On()}render(){let{props:t,context:n}=this,{dateProfile:r,dayTableModel:i}=t,{nowIndicator:o,nextDayThreshold:a}=n.options,s=this.buildDayRanges(i,r,n.dateEnv);return P(su,{unit:o?"minute":"day"},(l,c)=>P(U8e,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(t,r,null,n,s),{forPrint:t.forPrint,axis:t.axis,dateProfile:r,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:i.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:l,nowIndicatorSegs:o&&this.slicer.sliceNowDate(l,r,a,n,s),todayRange:c,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords})))}}function G8e(e,t,n){let r=[];for(let i of e.headerDates)r.push({start:n.add(i,t.slotMinTime),end:n.add(i,t.slotMaxTime)});return r}const aL=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Y8e(e,t,n,r,i){let o=new Date(0),a=e,s=bt(0),l=n||q8e(r),c=[];for(;co(a)<co(t);){let d=i.add(o,a),h=C5(s,l)!==null;c.push({date:d,time:a,key:d.toISOString(),isoTimeStr:n5e(d),isLabeled:h}),a=$5(a,r),s=$5(s,r)}return c}function q8e(e){let t,n,r;for(t=aL.length-1;t>=0;t-=1)if(n=bt(aL[t]),r=C5(n,e),r!==null&&r>1)return n;return e}class Z8e extends x8e{constructor(){super(...arguments),this.buildTimeColsModel=Le(K8e),this.buildSlatMetas=Le(Y8e)}render(){let{options:t,dateEnv:n,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:o}=i,a=this.buildTimeColsModel(o,r),s=this.allDaySplitter.splitProps(i),l=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,t.slotLabelInterval,t.slotDuration,n),{dayMinWidth:c}=t,d=!c,h=c,g=t.dayHeaders&&P(n$,{dates:a.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),p=t.allDaySlot!==!1&&(v=>P(JP,Object.assign({},s.allDay,{dateProfile:o,dayTableModel:a,nextDayThreshold:t.nextDayThreshold,tableMinWidth:v.tableMinWidth,colGroupNode:v.tableColGroupNode,renderRowIntro:d?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:v.clientWidth,clientHeight:v.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),m=v=>P(V8e,Object.assign({},s.timed,{dayTableModel:a,dateProfile:o,axis:d,slotDuration:t.slotDuration,slatMetas:l,forPrint:i.forPrint,tableColGroupNode:v.tableColGroupNode,tableMinWidth:v.tableMinWidth,clientWidth:v.clientWidth,clientHeight:v.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:v.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return h?this.renderHScrollLayout(g,p,m,a.colCnt,c,l,this.state.slatCoords):this.renderSimpleLayout(g,p,m)}}function K8e(e,t){let n=new r$(e.renderRange,t);return new i$(n,!1)}const Q8e={allDaySlot:Boolean};var X8e='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';Wp(X8e);var J8e=Wo({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:Q8e,views:{timeGrid:{component:Z8e,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),eEe=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';Wp(eEe);var tEe=Wo({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:d8e,dateProfileGeneratorClass:p8e},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});function hv(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.row].push(r);return n}function gv(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.firstCol].push(r);return n}function sL(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.row].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}const lL=Rt({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function uL(e){let{display:t}=e.eventRange.ui;return t==="list-item"||t==="auto"&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class cL extends wt{render(){let{props:t}=this;return P(l$,Object.assign({},t,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:lL,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))}}class dL extends wt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,o=r.eventTimeFormat||lL,a=rd(i,o,n,!0,t.defaultDisplayEventEnd);return P(Xp,Object.assign({},t,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:nv(t.seg,n),defaultGenerator:nEe,timeText:a,isResizing:!1,isDateSelecting:!1}))}}function nEe(e){return P(dt,null,P("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&P("div",{className:"fc-event-time"},e.timeText),P("div",{className:"fc-event-title"},e.event.title||P(dt,null," ")))}class rEe extends wt{constructor(){super(...arguments),this.compileSegs=Le(iEe)}render(){let{props:t}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(t.singlePlacements);return P(h$,{elClasses:["fc-daygrid-more-link"],dateProfile:t.dateProfile,todayRange:t.todayRange,allDayDate:t.allDayDate,moreCnt:t.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:t.alignmentElRef,alignGridTop:t.alignGridTop,extraDateSpan:t.extraDateSpan,popoverContent:()=>{let i=(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{};return P(dt,null,n.map(o=>{let a=o.eventRange.instance.instanceId;return P("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:i[a]?"hidden":""}},uL(o)?P(dL,Object.assign({seg:o,isDragging:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Ur(o,t.todayRange))):P(cL,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Ur(o,t.todayRange))))}))}})}}function iEe(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const oEe=Rt({week:"narrow"});class aEe extends hr{constructor(){super(...arguments),this.rootElRef=On(),this.state={dayNumberId:zo()},this.handleRootEl=t=>{Bo(this.rootElRef,t),Bo(this.props.elRef,t)}}render(){let{context:t,props:n,state:r,rootElRef:i}=this,{options:o,dateEnv:a}=t,{date:s,dateProfile:l}=n;const c=n.showDayNumber&&lEe(s,l.currentRange,a);return P(uv,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:sEe,date:s,dateProfile:l,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(d,h)=>P("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&P(f$,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Gs(t,s,"week"),date:s,defaultFormat:oEe}),!h.isDisabled&&(n.showDayNumber||cv(o)||n.forceDayTop)?P("div",{className:"fc-daygrid-day-top"},P(d,{elTag:"a",elClasses:["fc-daygrid-day-number",c&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Gs(t,s)),{id:r.dayNumberId})})):n.showDayNumber?P("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},P("a",{className:"fc-daygrid-day-number"}," ")):void 0,P("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,P("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},P(rEe,{allDayDate:s,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),P("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function sEe(e){return e.dayNumberText||P(dt,null," ")}function lEe(e,t,n){const{start:r,end:i}=t,o=Us(i,-1),a=n.getYear(r),s=n.getMonth(r),l=n.getYear(o),c=n.getMonth(o);return!(a===l&&s===c)&&Boolean(e.valueOf()===r.valueOf()||n.getDay(e)===1&&e.valueOf()<i.valueOf())}function uEe(e,t,n,r,i,o,a){let s=new fEe;s.allowReslicing=!0,s.strictOrder=r,t===!0||n===!0?(s.maxCoord=o,s.hiddenConsumes=!0):typeof t=="number"?s.maxStackCnt=t:typeof n=="number"&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let l=[],c=[];for(let w=0;w<e.length;w+=1){let b=e[w],{instanceId:S}=b.eventRange.instance,$=i[S];$!=null?l.push({index:w,thickness:$,span:{start:b.firstCol,end:b.lastCol+1}}):c.push(b)}let d=s.addSegs(l),h=s.toRects(),{singleColPlacements:g,multiColPlacements:p,leftoverMargins:m}=cEe(h,e,a),v=[],x=[];for(let w of c){p[w.firstCol].push({seg:w,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let b=w.firstCol;b<=w.lastCol;b+=1)g[b].push({seg:od(w,b,b+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let w=0;w<a.length;w+=1)v.push(0);for(let w of d){let b=e[w.index],S=w.span;p[S.start].push({seg:od(b,S.start,S.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let $=S.start;$<S.end;$+=1)v[$]+=1,g[$].push({seg:od(b,$,$+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let w=0;w<a.length;w+=1)x.push(m[w]);return{singleColPlacements:g,multiColPlacements:p,moreCnts:v,moreMarginTops:x}}function cEe(e,t,n){let r=dEe(e,n.length),i=[],o=[],a=[];for(let s=0;s<n.length;s+=1){let l=r[s],c=[],d=0,h=0;for(let p of l){let m=t[p.index];c.push({seg:od(m,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:p.levelCoord-d}),d=p.levelCoord+p.thickness}let g=[];d=0,h=0;for(let p of l){let m=t[p.index],v=p.span.end-p.span.start>1,x=p.span.start===s;h+=p.levelCoord-d,d=p.levelCoord+p.thickness,v?(h+=p.thickness,x&&g.push({seg:od(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:p.levelCoord,marginTop:0})):x&&(g.push({seg:od(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:h}),h=0)}i.push(c),o.push(g),a.push(h)}return{singleColPlacements:i,multiColPlacements:o,leftoverMargins:a}}function dEe(e,t){let n=[];for(let r=0;r<t;r+=1)n.push([]);for(let r of e)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function od(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,o=i.range,a=Ho(o,{start:r[t].date,end:vn(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:a},isStart:e.isStart&&a.start.valueOf()===o.start.valueOf(),isEnd:e.isEnd&&a.end.valueOf()===o.end.valueOf()})}class fEe extends X5{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(t){const n=super.addSegs(t),{entriesByLevel:r}=this,i=o=>!this.forceHidden[jo(o)];for(let o=0;o<r.length;o+=1)r[o]=r[o].filter(i);return n}handleInvalidInsertion(t,n,r){const{entriesByLevel:i,forceHidden:o}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:l}=t;if(this.hiddenConsumes&&a){const c=jo(a);if(!o[c])if(this.allowReslicing){const d=Object.assign(Object.assign({},a),{span:ov(a.span,n.span)}),h=jo(d);o[h]=!0,i[s][l]=d,this.splitEntry(a,n,r)}else o[c]=!0,r.push(a)}return super.handleInvalidInsertion(t,n,r)}}class fL extends hr{constructor(){super(...arguments),this.cellElRefs=new jr,this.frameElRefs=new jr,this.fgElRefs=new jr,this.segHarnessRefs=new jr,this.rootElRef=On(),this.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},this.handleResize=t=>{t&&this.updateSizing(!0)}}render(){let{props:t,state:n,context:r}=this,{options:i}=r,o=t.cells.length,a=gv(t.businessHourSegs,o),s=gv(t.bgEventSegs,o),l=gv(this.getHighlightSegs(),o),c=gv(this.getMirrorSegs(),o),{singleColPlacements:d,multiColPlacements:h,moreCnts:g,moreMarginTops:p}=uEe(tv(t.fgEventSegs,i.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,i.eventOrderStrict,n.eventInstanceHeights,n.maxContentHeight,t.cells),m=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return P("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map((v,x)=>{let w=this.renderFgSegs(x,t.forPrint?d[x]:h[x],t.todayRange,m),b=this.renderFgSegs(x,pEe(c[x],h),t.todayRange,{},Boolean(t.eventDrag),Boolean(t.eventResize),!1);return P(aEe,{key:v.key,elRef:this.cellElRefs.createRef(v.key),innerElRef:this.frameElRefs.createRef(v.key),dateProfile:t.dateProfile,date:v.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&x===0,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraRenderProps:v.extraRenderProps,extraDataAttrs:v.extraDataAttrs,extraClassNames:v.extraClassNames,extraDateSpan:v.extraDateSpan,moreCnt:g[x],moreMarginTop:p[x],singlePlacements:d[x],fgContentElRef:this.fgElRefs.createRef(v.key),fgContent:P(dt,null,P(dt,null,w),P(dt,null,b)),bgContent:P(dt,null,this.renderFillSegs(l[x],"highlight"),this.renderFillSegs(a[x],"non-business"),this.renderFillSegs(s[x],"bg-event")),minHeight:t.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(t,n){let r=this.props;this.updateSizing(!ci(t,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:t}=this;return t.eventDrag&&t.eventDrag.segs.length?t.eventDrag.segs:t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:t.dateSelectionSegs}getMirrorSegs(){let{props:t}=this;return t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:[]}renderFgSegs(t,n,r,i,o,a,s){let{context:l}=this,{eventSelection:c}=this.props,{framePositions:d}=this.state,h=this.props.cells.length===1,g=o||a||s,p=[];if(d)for(let m of n){let{seg:v}=m,{instanceId:x}=v.eventRange.instance,w=x+":"+t,b=m.isVisible&&!i[x],S=m.isAbsolute,$="",E="";S&&(l.isRtl?(E=0,$=d.lefts[v.lastCol]-d.lefts[v.firstCol]):($=0,E=d.rights[v.firstCol]-d.rights[v.lastCol])),p.push(P("div",{className:"fc-daygrid-event-harness"+(S?" fc-daygrid-event-harness-abs":""),key:w,ref:g?null:this.segHarnessRefs.createRef(w),style:{visibility:b?"":"hidden",marginTop:S?"":m.marginTop,top:S?m.absoluteTop:"",left:$,right:E}},uL(v)?P(dL,Object.assign({seg:v,isDragging:o,isSelected:x===c,defaultDisplayEventEnd:h},Ur(v,r))):P(cL,Object.assign({seg:v,isDragging:o,isResizing:a,isDateSelecting:s,isSelected:x===c,defaultDisplayEventEnd:h},Ur(v,r)))))}return p}renderFillSegs(t,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:o}=this.state,a=[];if(o)for(let s of t){let l=r?{right:0,left:o.lefts[s.lastCol]-o.lefts[s.firstCol]}:{left:0,right:o.rights[s.firstCol]-o.rights[s.lastCol]};a.push(P("div",{key:Y5(s.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?P(c$,Object.assign({seg:s},Ur(s,i))):d$(n)))}return P(dt,{},...a)}updateSizing(t){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(t){let l=n.cells.map(c=>i.currentMap[c.key]);if(l.length){let c=this.rootElRef.current,d=new Uo(c,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(d))&&this.setState({framePositions:new Uo(c,l,!0,!1)})}}const o=this.state.eventInstanceHeights,a=this.queryEventInstanceHeights(),s=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({eventInstanceHeights:Object.assign(Object.assign({},o),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}queryEventInstanceHeights(){let t=this.segHarnessRefs.currentMap,n={};for(let r in t){let i=Math.round(t[r].getBoundingClientRect().height),o=r.split(":")[0];n[o]=Math.max(n[o]||0,i)}return n}computeMaxContentHeight(){let t=this.props.cells[0].key,n=this.cellElRefs.currentMap[t],r=this.fgElRefs.currentMap[t];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let t=this.cellElRefs.currentMap;return this.props.cells.map(n=>t[n.key])}}fL.addStateEquality({eventInstanceHeights:ci});function pEe(e,t){if(!e.length)return[];let n=hEe(t);return e.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function hEe(e){let t={};for(let n of e)for(let r of n)t[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return t}class gEe extends hr{constructor(){super(...arguments),this.splitBusinessHourSegs=Le(hv),this.splitBgEventSegs=Le(hv),this.splitFgEventSegs=Le(hv),this.splitDateSelectionSegs=Le(hv),this.splitEventDrag=Le(sL),this.splitEventResize=Le(sL),this.rowRefs=new jr}render(){let{props:t,context:n}=this,r=t.cells.length,i=this.splitBusinessHourSegs(t.businessHourSegs,r),o=this.splitBgEventSegs(t.bgEventSegs,r),a=this.splitFgEventSegs(t.fgEventSegs,r),s=this.splitDateSelectionSegs(t.dateSelectionSegs,r),l=this.splitEventDrag(t.eventDrag,r),c=this.splitEventResize(t.eventResize,r),d=r>=7&&t.clientWidth?t.clientWidth/n.options.aspectRatio/6:null;return P(su,{unit:"day"},(h,g)=>P(dt,null,t.cells.map((p,m)=>P(fL,{ref:this.rowRefs.createRef(m),key:p.length?p[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:t.showWeekNumbers,todayRange:g,dateProfile:t.dateProfile,cells:p,renderIntro:t.renderRowIntro,businessHourSegs:i[m],eventSelection:t.eventSelection,bgEventSegs:o[m].filter(mEe),fgEventSegs:a[m],dateSelectionSegs:s[m],eventDrag:l[m],eventResize:c[m],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:d,forPrint:t.forPrint}))))}componentDidMount(){const t=this.rowRefs.currentMap[0].getCellEls()[0];this.rootEl=t?t.closest(".fc-daygrid-body"):null,this.rootEl&&this.context.registerInteractiveComponent(this,{el:this.rootEl,isHitComboAllowed:this.props.isHitComboAllowed})}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Uo(this.rootEl,this.rowRefs.collect().map(t=>t.getCellEls()[0]),!1,!0),this.colPositions=new Uo(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(t,n){let{colPositions:r,rowPositions:i}=this,o=r.leftToIndex(t),a=i.topToIndex(n);if(a!=null&&o!=null){let s=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:r.lefts[o],right:r.rights[o],top:i.tops[a],bottom:i.bottoms[a]},layer:0}}return null}getCellEl(t,n){return this.rowRefs.currentMap[t].getCellEls()[n]}getCellRange(t,n){let r=this.props.cells[t][n].date,i=vn(r,1);return{start:r,end:i}}}function mEe(e){return e.eventRange.def.allDay}class vEe extends o${constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(t,n){return n.sliceRange(t)}}class yEe extends L5{buildRenderRange(t,n,r){let i=super.buildRenderRange(t,n,r),{props:o}=this;return pL({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}}function pL(e){let{dateEnv:t,currentRange:n}=e,{start:r,end:i}=n,o;if(e.snapToWeek&&(r=t.startOfWeek(r),o=t.startOfWeek(i),o.valueOf()!==i.valueOf()&&(i=j1(o,1))),e.fixedWeekCount){let a=t.startOfWeek(t.startOfMonth(vn(n.end,-1))),s=Math.ceil(NN(a,i));i=j1(i,6-s)}return{start:r,end:i}}function bEe(e,t){let n=new r$(e.renderRange,t);return new i$(n,/year|month|week/.test(e.currentRangeUnit))}class wEe extends hr{constructor(){super(...arguments),this.buildDayTableModel=Le(bEe),this.slicer=new vEe,this.state={labelId:zo()}}render(){const{props:t,state:n,context:r}=this,{dateProfile:i,forPrint:o}=t,{options:a}=r,s=this.buildDayTableModel(i,r.dateProfileGenerator),l=this.slicer.sliceProps(t,i,a.nextDayThreshold,r,s),c=t.tableWidth!=null?t.tableWidth/a.aspectRatio:null,d=s.cells.length,h=c!=null?c/d:null;return P("div",{ref:t.elRef,"data-date":t.isoDateStr,className:"fc-multimonth-month",style:{width:t.width},role:"grid","aria-labelledby":n.labelId},P("div",{className:"fc-multimonth-header",style:{marginBottom:h},role:"presentation"},P("div",{className:"fc-multimonth-title",id:n.labelId},r.dateEnv.format(t.dateProfile.currentRange.start,t.titleFormat)),P("table",{className:["fc-multimonth-header-table",r.theme.getClass("table")].join(" "),role:"presentation"},P("thead",{role:"rowgroup"},P(n$,{dateProfile:t.dateProfile,dates:s.headerDates,datesRepDistinctDays:!1})))),P("div",{className:["fc-multimonth-daygrid","fc-daygrid","fc-daygrid-body",!o&&"fc-daygrid-body-balanced",o&&"fc-daygrid-body-unbalanced",o&&"fc-daygrid-body-natural"].join(" "),style:{marginTop:-h}},P("table",{className:["fc-multimonth-daygrid-table",r.theme.getClass("table")].join(" "),style:{height:o?"":c},role:"presentation"},P("tbody",{role:"rowgroup"},P(gEe,Object.assign({},l,{dateProfile:i,cells:s.cells,eventSelection:t.eventSelection,dayMaxEvents:!o,dayMaxEventRows:!o,showWeekNumbers:a.weekNumbers,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:o}))))))}}class xEe extends hr{constructor(){super(...arguments),this.splitDateProfileByMonth=Le($Ee),this.buildMonthFormat=Le(TEe),this.scrollElRef=On(),this.firstMonthElRef=On(),this.needsScrollReset=!1,this.handleSizing=t=>{t&&this.updateSize()}}render(){const{context:t,props:n,state:r}=this,{options:i}=t,{clientWidth:o,clientHeight:a}=r,s=r.monthHPadding||0,l=Math.min(o!=null?Math.floor(o/(i.multiMonthMinWidth+s)):1,i.multiMonthMaxColumns)||1,c=100/l+"%",d=o==null?null:o/l-s,h=o!=null&&l===1,g=this.splitDateProfileByMonth(t.dateProfileGenerator,n.dateProfile,t.dateEnv,h?!1:i.fixedWeekCount,i.showNonCurrentDates),p=this.buildMonthFormat(i.multiMonthTitleFormat,g),m=["fc-multimonth",h?"fc-multimonth-singlecol":"fc-multimonth-multicol",d!=null&&d<400?"fc-multimonth-compact":""];return P(td,{elRef:this.scrollElRef,elClasses:m,viewSpec:t.viewSpec},g.map((v,x)=>{const w=k5(v.currentRange.start);return P(wEe,Object.assign({},n,{key:w,isoDateStr:w,elRef:x===0?this.firstMonthElRef:void 0,titleFormat:p,dateProfile:v,width:c,tableWidth:d,clientWidth:o,clientHeight:a}))}))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}componentDidUpdate(t){ci(t,this.props)||this.handleSizing(!1),t.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}updateSize(){const t=this.scrollElRef.current,n=this.firstMonthElRef.current;t&&this.setState({clientWidth:t.clientWidth,clientHeight:t.clientHeight}),n&&t&&this.state.monthHPadding==null&&this.setState({monthHPadding:t.clientWidth-n.firstChild.offsetWidth})}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.state.monthHPadding!=null){const{currentDate:t}=this.props.dateProfile,n=this.scrollElRef.current,r=n.querySelector(`[data-date="${k5(t)}"]`);n.scrollTop=r.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}shouldComponentUpdate(){return!0}}const SEe=bt(1,"month");function $Ee(e,t,n,r,i){const{start:o,end:a}=t.currentRange;let s=o;const l=[];for(;s.valueOf()<a.valueOf();){const c=n.add(s,SEe),d={start:e.skipHiddenDays(s),end:e.skipHiddenDays(c,-1,!0)};let h=pL({currentRange:d,snapToWeek:!0,fixedWeekCount:r,dateEnv:n});h={start:e.skipHiddenDays(h.start),end:e.skipHiddenDays(h.end,-1,!0)};const g=t.activeRange?Ho(t.activeRange,i?h:d):null;l.push({currentDate:t.currentDate,isValid:t.isValid,validRange:t.validRange,renderRange:h,activeRange:g,currentRange:d,currentRangeUnit:"month",isRangeAllDay:!0,dateIncrement:t.dateIncrement,slotMinTime:t.slotMaxTime,slotMaxTime:t.slotMinTime}),s=c}return l}const CEe=Rt({year:"numeric",month:"long"}),EEe=Rt({month:"long"});function TEe(e,t){return e||(t[0].currentRange.start.getUTCFullYear()!==t[t.length-1].currentRange.start.getUTCFullYear()?CEe:EEe)}const kEe={multiMonthTitleFormat:Rt,multiMonthMaxColumns:Number,multiMonthMinWidth:Number};var AEe=".fc .fc-multimonth{border:1px solid var(--fc-border-color);display:flex;flex-wrap:wrap;overflow-x:hidden;overflow-y:auto}.fc .fc-multimonth-title{font-size:1.2em;font-weight:700;padding:1em 0;text-align:center}.fc .fc-multimonth-daygrid{background:var(--fc-page-bg-color)}.fc .fc-multimonth-daygrid-table,.fc .fc-multimonth-header-table{table-layout:fixed;width:100%}.fc .fc-multimonth-daygrid-table{border-top-style:hidden!important}.fc .fc-multimonth-singlecol .fc-multimonth{position:relative}.fc .fc-multimonth-singlecol .fc-multimonth-header{background:var(--fc-page-bg-color);position:relative;top:0;z-index:2}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid{position:relative;z-index:1}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid-table,.fc .fc-multimonth-singlecol .fc-multimonth-header-table{border-left-style:hidden;border-right-style:hidden}.fc .fc-multimonth-singlecol .fc-multimonth-month:last-child .fc-multimonth-daygrid-table{border-bottom-style:hidden}.fc .fc-multimonth-multicol{line-height:1}.fc .fc-multimonth-multicol .fc-multimonth-month{padding:0 1.2em 1.2em}.fc .fc-multimonth-multicol .fc-daygrid-more-link{border:1px solid var(--fc-event-border-color);display:block;float:none;padding:1px}.fc .fc-multimonth-compact{line-height:1}.fc .fc-multimonth-compact .fc-multimonth-daygrid-table,.fc .fc-multimonth-compact .fc-multimonth-header-table{font-size:.9em}.fc-media-screen .fc-multimonth-singlecol .fc-multimonth-header{position:sticky}.fc-media-print .fc-multimonth{overflow:visible}";Wp(AEe);var _Ee=Wo({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:kEe,views:{multiMonth:{component:xEe,dateProfileGeneratorClass:yEe,multiMonthMinWidth:350,multiMonthMaxColumns:3},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}}),REe={code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Heeldag",moreLinkText:"Addisionele",noEventsText:"Daar is geen gebeurtenisse nie"},OEe={code:"ar-dz",week:{dow:0,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},DEe={code:"ar-kw",week:{dow:0,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},IEe={code:"ar-ly",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},MEe={code:"ar-ma",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},NEe={code:"ar-sa",week:{dow:0,doy:6},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},PEe={code:"ar-tn",week:{dow:1,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},LEe={code:"ar",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},FEe={code:"az",week:{dow:1,doy:4},buttonText:{prev:"Əvvəl",next:"Sonra",today:"Bu Gün",year:"Il",month:"Ay",week:"Həftə",day:"Gün",list:"Gündəm"},weekText:"Həftə",allDayText:"Bütün Gün",moreLinkText(e){return"+ daha çox "+e},noEventsText:"Göstərmək üçün hadisə yoxdur"},zEe={code:"bg",week:{dow:1,doy:7},buttonText:{prev:"назад",next:"напред",today:"днес",year:"година",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",moreLinkText(e){return"+още "+e},noEventsText:"Няма събития за показване"},BEe={code:"bn",week:{dow:0,doy:6},buttonText:{prev:"পেছনে",next:"সামনে",today:"আজ",year:"বছর",month:"মাস",week:"সপ্তাহ",day:"দিন",list:"তালিকা"},weekText:"সপ্তাহ",allDayText:"সারাদিন",moreLinkText(e){return"+অন্যান্য "+e},noEventsText:"কোনো ইভেন্ট নেই"},HEe={code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Prošli",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekText:"Sed",allDayText:"Cijeli dan",moreLinkText(e){return"+ još "+e},noEventsText:"Nema događaja za prikazivanje"},UEe={code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",year:"Curs",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekText:"Set",allDayText:"Tot el dia",moreLinkText:"més",noEventsText:"No hi ha esdeveniments per mostrar"},jEe={code:"cs",week:{dow:1,doy:4},buttonText:{prev:"Dříve",next:"Později",today:"Nyní",year:"Rok",month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},weekText:"Týd",allDayText:"Celý den",moreLinkText(e){return"+další: "+e},noEventsText:"Žádné akce k zobrazení"},WEe={code:"cy",week:{dow:1,doy:4},buttonText:{prev:"Blaenorol",next:"Nesaf",today:"Heddiw",year:"Blwyddyn",month:"Mis",week:"Wythnos",day:"Dydd",list:"Rhestr"},weekText:"Wythnos",allDayText:"Trwy'r dydd",moreLinkText:"Mwy",noEventsText:"Dim digwyddiadau"},VEe={code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Næste",today:"I dag",year:"År",month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},weekText:"Uge",allDayText:"Hele dagen",moreLinkText:"flere",noEventsText:"Ingen arrangementer at vise"};function w$(e){return e==="Tag"||e==="Monat"?"r":e==="Jahr"?"s":""}var GEe={code:"de-at",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev(e){return`Vorherige${w$(e)} ${e}`},next(e){return`Nächste${w$(e)} ${e}`},today(e){return e==="Tag"?"Heute":`Diese${w$(e)} ${e}`}},viewHint(e){return e+(e==="Woche"?"n":e==="Monat"?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint(e){return"Zeige "+(e===1?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"};function x$(e){return e==="Tag"||e==="Monat"?"r":e==="Jahr"?"s":""}var YEe={code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev(e){return`Vorherige${x$(e)} ${e}`},next(e){return`Nächste${x$(e)} ${e}`},today(e){return e==="Tag"?"Heute":`Diese${x$(e)} ${e}`}},viewHint(e){return e+(e==="Woche"?"n":e==="Monat"?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint(e){return"Zeige "+(e===1?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"},qEe={code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",year:"Ετος",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekText:"Εβδ",allDayText:"Ολοήμερο",moreLinkText:"περισσότερα",noEventsText:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},ZEe={code:"en-au",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},KEe={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},QEe={code:"en-nz",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},XEe={code:"eo",week:{dow:1,doy:4},buttonText:{prev:"Antaŭa",next:"Sekva",today:"Hodiaŭ",year:"Jaro",month:"Monato",week:"Semajno",day:"Tago",list:"Tagordo"},weekText:"Sm",allDayText:"Tuta tago",moreLinkText:"pli",noEventsText:"Neniuj eventoj por montri"},JEe={code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekText:"Sm",allDayText:"Todo el día",moreLinkText:"más",noEventsText:"No hay eventos para mostrar"},eTe={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today(e){return e==="Día"?"Hoy":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"de la":"del")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint(e){return`Mostrar ${e} eventos más`},noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},tTe={code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"Järgnev",today:"Täna",year:"Aasta",month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},weekText:"näd",allDayText:"Kogu päev",moreLinkText(e){return"+ veel "+e},noEventsText:"Kuvamiseks puuduvad sündmused"},nTe={code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",year:"Urtea",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekText:"As",allDayText:"Egun osoa",moreLinkText:"gehiago",noEventsText:"Ez dago ekitaldirik erakusteko"},rTe={code:"fa",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"قبلی",next:"بعدی",today:"امروز",year:"سال",month:"ماه",week:"هفته",day:"روز",list:"برنامه"},weekText:"هف",allDayText:"تمام روز",moreLinkText(e){return"بیش از "+e},noEventsText:"هیچ رویدادی به نمایش"},iTe={code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"Tänään",year:"Vuosi",month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},weekText:"Vk",allDayText:"Koko päivä",moreLinkText:"lisää",noEventsText:"Ei näytettäviä tapahtumia"},oTe={code:"fr",buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},aTe={code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Courant",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sm",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},sTe={code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},lTe={code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",year:"Ano",month:"Mes",week:"Semana",day:"Día",list:"Axenda"},buttonHints:{prev:"$0 antes",next:"$0 seguinte",today(e){return e==="Día"?"Hoxe":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"da":"do")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo o día",moreLinkText:"máis",moreLinkHint(e){return`Amosar ${e} eventos máis`},noEventsText:"Non hai eventos para amosar",navLinkHint:"Ir ao $0",closeHint:"Pechar",timeHint:"A hora",eventHint:"Evento"},uTe={code:"he",direction:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",year:"שנה",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",moreLinkText:"אחר",noEventsText:"אין אירועים להצגה",weekText:"שבוע"},cTe={code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",year:"वर्ष",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekText:"हफ्ता",allDayText:"सभी दिन",moreLinkText(e){return"+अधिक "+e},noEventsText:"कोई घटनाओं को प्रदर्शित करने के लिए"},dTe={code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prijašnji",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekText:"Tje",allDayText:"Cijeli dan",moreLinkText(e){return"+ još "+e},noEventsText:"Nema događaja za prikaz"},fTe={code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"előre",today:"ma",year:"Év",month:"Hónap",week:"Hét",day:"Nap",list:"Lista"},weekText:"Hét",allDayText:"Egész nap",moreLinkText:"további",noEventsText:"Nincs megjeleníthető esemény"},pTe={code:"hy-am",week:{dow:1,doy:4},buttonText:{prev:"Նախորդ",next:"Հաջորդ",today:"Այսօր",year:"Տարի",month:"Ամիս",week:"Շաբաթ",day:"Օր",list:"Օրվա ցուցակ"},weekText:"Շաբ",allDayText:"Ամբողջ օր",moreLinkText(e){return"+ ևս "+e},noEventsText:"Բացակայում է իրադարձությունը ցուցադրելու"},hTe={code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sehari penuh",moreLinkText:"lebih",noEventsText:"Tidak ada acara untuk ditampilkan"},gTe={code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"Næsti",today:"Í dag",year:"Ár",month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},weekText:"Vika",allDayText:"Allan daginn",moreLinkText:"meira",noEventsText:"Engir viðburðir til að sýna"},mTe={code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",year:"Anno",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText(e){return"+altri "+e},noEventsText:"Non ci sono eventi da visualizzare"},vTe={code:"ja",buttonText:{prev:"前",next:"次",today:"今日",year:"年",month:"月",week:"週",day:"日",list:"予定リスト"},weekText:"週",allDayText:"終日",moreLinkText(e){return"他 "+e+" 件"},noEventsText:"表示する予定はありません"},yTe={code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",year:"წელიწადი",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekText:"კვ",allDayText:"მთელი დღე",moreLinkText(e){return"+ კიდევ "+e},noEventsText:"ღონისძიებები არ არის"},bTe={code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",year:"Жыл",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekText:"Не",allDayText:"Күні бойы",moreLinkText(e){return"+ тағы "+e},noEventsText:"Көрсету үшін оқиғалар жоқ"},wTe={code:"km",week:{dow:1,doy:4},buttonText:{prev:"មុន",next:"បន្ទាប់",today:"ថ្ងៃនេះ",year:"ឆ្នាំ",month:"ខែ",week:"សប្តាហ៍",day:"ថ្ងៃ",list:"បញ្ជី"},weekText:"សប្តាហ៍",allDayText:"ពេញមួយថ្ងៃ",moreLinkText:"ច្រើនទៀត",noEventsText:"គ្មានព្រឹត្តិការណ៍ត្រូវបង្ហាញ"},xTe={code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",year:"년도",month:"월",week:"주",day:"일",list:"일정목록"},weekText:"주",allDayText:"종일",moreLinkText:"개",noEventsText:"일정이 없습니다"},STe={code:"ku",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"پێشتر",next:"دواتر",today:"ئەمڕو",year:"ساڵ",month:"مانگ",week:"هەفتە",day:"ڕۆژ",list:"بەرنامە"},weekText:"هەفتە",allDayText:"هەموو ڕۆژەکە",moreLinkText:"زیاتر",noEventsText:"هیچ ڕووداوێك نیە"},$Te={code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zréck",next:"Weider",today:"Haut",year:"Joer",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekText:"W",allDayText:"Ganzen Dag",moreLinkText:"méi",noEventsText:"Nee Evenementer ze affichéieren"},CTe={code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"Šiandien",year:"Metai",month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},weekText:"SAV",allDayText:"Visą dieną",moreLinkText:"daugiau",noEventsText:"Nėra įvykių rodyti"},ETe={code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"Nāk.",today:"Šodien",year:"Gads",month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},weekText:"Ned.",allDayText:"Visu dienu",moreLinkText(e){return"+vēl "+e},noEventsText:"Nav notikumu"},TTe={code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",year:"година",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekText:"Сед",allDayText:"Цел ден",moreLinkText(e){return"+повеќе "+e},noEventsText:"Нема настани за прикажување"},kTe={code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sepanjang hari",moreLinkText(e){return"masih ada "+e+" acara"},noEventsText:"Tiada peristiwa untuk dipaparkan"},ATe={code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",year:"År",month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},weekText:"Uke",weekTextLong:"Uke",allDayText:"Hele dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise",buttonHints:{prev:"Forrige $0",next:"Neste $0",today:"Nåværende $0"},viewHint:"$0 visning",navLinkHint:"Gå til $0",moreLinkHint(e){return`Vis ${e} flere hendelse${e===1?"":"r"}`}},_Te={code:"ne",week:{dow:7,doy:1},buttonText:{prev:"अघिल्लो",next:"अर्को",today:"आज",year:"वर्ष",month:"महिना",week:"हप्ता",day:"दिन",list:"सूची"},weekText:"हप्ता",allDayText:"दिनभरि",moreLinkText:"थप लिंक",noEventsText:"देखाउनको लागि कुनै घटनाहरू छैनन्"},RTe={code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",moreLinkText:"extra",noEventsText:"Geen evenementen om te laten zien"},OTe={code:"nn",week:{dow:1,doy:4},buttonText:{prev:"Førre",next:"Neste",today:"I dag",year:"År",month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},weekText:"Veke",allDayText:"Heile dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise"},DTe={code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",year:"Rok",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"},ITe={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today(e){return e==="Dia"?"Hoje":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Visualizar "+(e==="Semana"?"a":"o")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText(e){return"mais +"+e},moreLinkHint(e){return`Mostrar mais ${e} eventos`},noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"},MTe={code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",year:"Ano",month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},weekText:"Sem",allDayText:"Todo o dia",moreLinkText:"mais",noEventsText:"Não há eventos para mostrar"},NTe={code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedentă",next:"următoare",today:"Azi",year:"An",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},weekText:"Săpt",allDayText:"Toată ziua",moreLinkText(e){return"+alte "+e},noEventsText:"Nu există evenimente de afișat"},PTe={code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",year:"Год",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText(e){return"+ ещё "+e},noEventsText:"Нет событий для отображения"},LTe={code:"si-lk",week:{dow:1,doy:4},buttonText:{prev:"පෙර",next:"පසු",today:"අද",year:"අවුරුදු",month:"මාසය",week:"සතිය",day:"දවස",list:"ලැයිස්තුව"},weekText:"සති",allDayText:"සියලු",moreLinkText:"තවත්",noEventsText:"මුකුත් නැත"},FTe={code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predchádzajúci",next:"Nasledujúci",today:"Dnes",year:"Rok",month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},weekText:"Ty",allDayText:"Celý deň",moreLinkText(e){return"+ďalšie: "+e},noEventsText:"Žiadne akcie na zobrazenie"},zTe={code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prejšnji",next:"Naslednji",today:"Trenutni",year:"Leto",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekText:"Teden",allDayText:"Ves dan",moreLinkText:"več",noEventsText:"Ni dogodkov za prikaz"},BTe={code:"sm",buttonText:{prev:"Talu ai",next:"Mulimuli atu",today:"Aso nei",year:"Tausaga",month:"Masina",week:"Vaiaso",day:"Aso",list:"Faasologa"},weekText:"Vaiaso",allDayText:"Aso atoa",moreLinkText:"sili atu",noEventsText:"Leai ni mea na tutupu"},HTe={code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"Përpara",today:"Sot",year:"Viti",month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},weekText:"Ja",allDayText:"Gjithë ditën",moreLinkText(e){return"+më tepër "+e},noEventsText:"Nuk ka evente për të shfaqur"},UTe={code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",year:"Година",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekText:"Сед",allDayText:"Цео дан",moreLinkText(e){return"+ још "+e},noEventsText:"Нема догађаја за приказ"},jTe={code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledeći",today:"Danas",year:"Godina",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},weekText:"Sed",allDayText:"Cеo dan",moreLinkText(e){return"+ još "+e},noEventsText:"Nеma događaja za prikaz"},WTe={code:"sv",week:{dow:1,doy:4},buttonText:{prev:"Förra",next:"Nästa",today:"Idag",year:"År",month:"Månad",week:"Vecka",day:"Dag",list:"Program"},buttonHints:{prev(e){return`Föregående ${e.toLocaleLowerCase()}`},next(e){return`Nästa ${e.toLocaleLowerCase()}`},today(e){return(e==="Program"?"Detta":"Denna")+" "+e.toLocaleLowerCase()}},viewHint:"$0 vy",navLinkHint:"Gå till $0",moreLinkHint(e){return`Visa ytterligare ${e} händelse${e===1?"":"r"}`},weekText:"v.",weekTextLong:"Vecka",allDayText:"Heldag",moreLinkText:"till",noEventsText:"Inga händelser att visa",closeHint:"Stäng",timeHint:"Klockan",eventHint:"Händelse"},VTe={code:"ta-in",week:{dow:1,doy:4},buttonText:{prev:"முந்தைய",next:"அடுத்தது",today:"இன்று",year:"ஆண்டு",month:"மாதம்",week:"வாரம்",day:"நாள்",list:"தினசரி அட்டவணை"},weekText:"வாரம்",allDayText:"நாள் முழுவதும்",moreLinkText(e){return"+ மேலும் "+e},noEventsText:"காண்பிக்க நிகழ்வுகள் இல்லை"},GTe={code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekText:"สัปดาห์",allDayText:"ตลอดวัน",moreLinkText:"เพิ่มเติม",noEventsText:"ไม่มีกิจกรรมที่จะแสดง"},YTe={code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bugün",year:"Yıl",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},weekText:"Hf",allDayText:"Tüm gün",moreLinkText:"daha fazla",noEventsText:"Gösterilecek etkinlik yok"},qTe={code:"ug",buttonText:{prev:"ئالدىنقى",next:"كېيىنكى",today:"بۈگۈن",year:"يىل",month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},ZTe={code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",year:"рік",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekText:"Тиж",allDayText:"Увесь день",moreLinkText(e){return"+ще "+e+"..."},noEventsText:"Немає подій для відображення"},KTe={code:"uz-cy",week:{dow:1,doy:4},buttonText:{prev:"Олин",next:"Кейин",today:"Бугун",month:"Ой",week:"Ҳафта",day:"Кун",list:"Кун тартиби"},weekText:"Ҳафта",allDayText:"Кун бўйича",moreLinkText(e){return"+ яна "+e},noEventsText:"Кўрсатиш учун воқеалар йўқ"},QTe={code:"uz",week:{dow:1,doy:4},buttonText:{prev:"Oldingi",next:"Keyingi",today:"Bugun",year:"Yil",month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",moreLinkText(e){return"+ yana "+e},noEventsText:"Ko'rsatish uchun voqealar yo'q"},XTe={code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Trước",next:"Tiếp",today:"Hôm nay",year:"Năm",month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},weekText:"Tu",allDayText:"Cả ngày",moreLinkText(e){return"+ thêm "+e},noEventsText:"Không có sự kiện để hiển thị"},JTe={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(e){return"另外 "+e+" 个"},noEventsText:"没有事件显示"},e9e={code:"zh-tw",buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"週",day:"天",list:"活動列表"},weekText:"周",allDayText:"整天",moreLinkText:"顯示更多",noEventsText:"没有任何活動"},t9e=[REe,OEe,DEe,IEe,MEe,NEe,PEe,LEe,FEe,zEe,BEe,HEe,UEe,jEe,WEe,VEe,GEe,YEe,qEe,ZEe,KEe,QEe,XEe,JEe,eTe,tTe,nTe,rTe,iTe,oTe,aTe,sTe,lTe,uTe,cTe,dTe,fTe,pTe,hTe,gTe,mTe,vTe,yTe,bTe,wTe,xTe,STe,$Te,CTe,ETe,TTe,kTe,ATe,_Te,RTe,OTe,DTe,ITe,MTe,NTe,PTe,LTe,FTe,zTe,BTe,HTe,UTe,jTe,WTe,VTe,GTe,YTe,qTe,ZTe,KTe,QTe,XTe,JTe,e9e];const n9e=xl`
372
372
  /*!
373
373
  * @preserve
374
374
  *
@@ -1234,21 +1234,71 @@ LAST-MODIFIED:`+n[1].replace(/[^\w_\-:,;=+/<br>]/g,"").replace(/<br>/g,`\r
1234
1234
  filter: var(--icon-filter);
1235
1235
  }
1236
1236
  `,r9e=xl`
1237
- .fc-toolbar.fc-header-toolbar {
1238
- font-size: 0.85em;
1237
+ :root {
1238
+ --fc-border-color: #efefef;
1239
+ --fc-button-text-color: #2c2f34;
1240
+ --fc-button-bg-color: transparent;
1241
+ --fc-button-border-color: #8d8f91;
1242
+ --fc-button-hover-bg-color: #e2f0fc;
1243
+ --fc-button-active-bg-color: #94adc3;
1244
+ --fc-event-bg-color: #fff;
1245
+ --fc-event-text-color: #555;
1246
+ --fc-event-border-color: #fff;
1247
+ --fc-today-bg-color: transparent;
1248
+ --fc-event-shadow-color: #d0d0d0;
1249
+ }
1250
+ .fc .fc-today-button {
1251
+ border: 0px;
1252
+ }
1253
+ .fc .fc-prev-button {
1254
+ border: 0px;
1255
+ }
1256
+ .fc .fc-next-button {
1257
+ border: 0px;
1258
+ }
1259
+ .fc .fc-button-primary:focus {
1260
+ box-shadow: 0 0 0 0rem #4c5b6a80 !important;
1261
+ }
1262
+ .fc .fc-toolbar.fc-header-toolbar {
1263
+ flex-direction: row !important; /* for alle view port sizes */
1264
+ margin-bottom: 0.3em !important;
1265
+ }
1266
+ .fc .fc-toolbar-title {
1267
+ font-size: 1.2em !important;
1268
+ }
1269
+ .fc .fc-col-header-cell-cushion {
1270
+ /*column label*/
1271
+ display: inline-block;
1272
+ padding: 2px 4px;
1273
+ font-size: 0.8em !important;
1274
+ color: #888;
1275
+ font-weight: normal;
1239
1276
  }
1240
- .fc-toolbar-title {
1241
- font-size: 1.5em !important;
1277
+ .fc .fc-timegrid-slot-label-cushion {
1278
+ /*row label*/
1279
+ font-size: 0.8em;
1280
+ color: #888;
1242
1281
  }
1243
- @media screen and (max-width: 601px) {
1244
- .fc-toolbar.fc-header-toolbar {
1245
- font-size: 0.8em;
1246
- flex-direction: column;
1247
- }
1248
- .fc-toolbar-chunk {
1249
- display: table-row;
1250
- text-align: center;
1251
- padding: 5px 0;
1252
- }
1253
- } ;
1254
- `;function i9e(){const e=Ge(t=>wZ(t,"useCustomTimumCss"));return be(ol,{children:[e&&_(Z2,{styles:r9e}),_(Z2,{styles:n9e})]})}const o9e=e=>{var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""},a9e=window.location.search,Vo=new URLSearchParams(a9e),hL=Vo.get("pData")??Vo.get("pdata"),S$=Vo.get("pDataPlatform")?{platform:Vo.get("pDataPlatform"),id:Vo.get("pDataId"),idPropName:Vo.get("pDataIdPropName")}:void 0,gL=o9e("PLAY_SESSION"),mL=Vo.get("channelKey")??Vo.get("channelkey"),vL=Vo.get("X-SIGNED-APP-CUSTOMER"),yL=Vo.get("ref"),$$=window.location.href.split("#")[1],[,,s9e]=($$==null?void 0:$$.split("/"))??[];function bL({appConfig:e={},muiTheme:t={},fcConfig:n={}}){var a;if((hL||S$)&&(e.pData=hL??S$),mL&&(e.channelKey=mL),yL&&(e.ref=yL),(a=e==null?void 0:e.ref)!=null&&a.includes("@")||(e.platform?e.ref=`${e.ref}${e.prvUuid?"@"+e.prvUuid:""}@${e.platform}`:console.warn("Your ref parameter isn't fully qualified AND you have not provided a `platform` prop which allows timum to do it for you. Most likely timum won't find anything. Please either add a platform prop to your configuration or use a full reference in either the ref prop or a ref url parameter.")),gL&&(e.cookie=gL),vL&&(e.cancelableAppointment={authToken:vL,appointmentUuid:s9e,customerUuid:S$.id}),e.host&&Iq(e.host),!e.ref){console.log("timum hides itself. No reference in either url or options detected.");return}const r=({bookables:s,product:l,openProductPage:c,openBookingPage:d,height:h})=>{const{t:g}=xr(),p=Ge(b=>bZ(b)),m=le.useRef(null),[v,{width:x}]=im(),w=function(b){if(!b)return[];const S=[];for(const[,$]of Object.entries(s))for(const E of $)E.start=E.start.toISO({suppressMilliseconds:!0}),E.end=E.end.toISO({suppressMilliseconds:!0}),S.push(E);return S};return _(WW,{ref:v,children:_(dv,{ref:m,locales:t9e,locale:Bn.resolvedLanguage,height:h,timeZone:"utc",plugins:[GCe,J8e,tEe,_Ee],customButtons:{productSelection:{text:(l==null?void 0:l.name)??"Produkt wählen",click:()=>{c()}}},headerToolbar:{left:"productSelection",center:"title",right:"today prev,next"},noEventsText:g("noEventsMessage"),events:w(s),eventClick:b=>{const S={...b.event.extendedProps};S.start=Fe.fromISO(b.event.startStr),S.end=Fe.fromISO(b.event.endStr),d(S)},windowResize:()=>{var b,S,$,E;p.smallView&&p.largeView&&(x<601?(S=(b=m==null?void 0:m.current)==null?void 0:b.getApi())==null||S.changeView(p.smallView):(E=($=m==null?void 0:m.current)==null?void 0:$.getApi())==null||E.changeView(p.largeView))},...p})})},i=s=>_(Lwe,{...s}),o=s=>_(k1,{...s});return _(ol,{children:_(Bj,{injectFirst:!0,children:_(cwe,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{horizontal:"right",vertical:"bottom"},children:_(hq,{store:nSe,children:be(eSe,{muiTheme:t,fcConfig:n,appConfig:e,children:[_(gde,{}),_(i9e,{}),_(mwe,{children:s=>{const l=Ge(c=>et(c,"calendarFrontend"));return l==="fullCalendar"?_(a5,{calendarComponent:r,...s}):l==="detailsListView"?_(a5,{calendarComponent:i,...s}):l==="pureListView"?_(a5,{calendarComponent:o,...s}):be(ol,{children:["You must set calendarFrontend either to"," ",_("code",{children:"fullCalendar"})," or to ",_("code",{children:"listView"})," in your config."]})}})]})})})})})}function l9e(e,t,n){eT(document.getElementById((e==null?void 0:e.rootElId)??"bookingjs")).render(_(le.StrictMode,{children:_(bL,{appConfig:e,muiTheme:t,fcConfig:n})}))}mo.React=le,mo.TimumBooking=bL,mo.i18next=zxe,mo.init=l9e,mo.yup=Fue,Object.defineProperty(mo,Symbol.toStringTag,{value:"Module"})});
1282
+ .fc .fc-timegrid-slot-minor {
1283
+ border-top-width: 0px;
1284
+ }
1285
+ .fc .fc-timegrid-slot-lane {
1286
+ border-top-width: 1px;
1287
+ border-top-color: #f1f1f1;
1288
+ border-top-style: dotted;
1289
+ }
1290
+ .fc .fc-v-event {
1291
+ cursor: pointer;
1292
+ box-shadow: 0px 0px 3px 1px var(--fc-event-shadow-color);
1293
+ }
1294
+ .fc .fc-v-event:hover {
1295
+ cursor: pointer;
1296
+ background-color: var(--fc-button-hover-bg-color);
1297
+ border: 1px solid var(--fc-button-hover-bg-color);
1298
+ box-shadow: 0px 0px 3px 1px (--fc-event-shadow-color);
1299
+ }
1300
+ .fc .fc-v-event .fc-event-time {
1301
+ font-size: 1em;
1302
+ text-align: center;
1303
+ }
1304
+ `;function i9e(){const e=Ge(t=>wZ(t,"useCustomTimumCss"));return be(ol,{children:[e&&_(Z2,{styles:r9e}),_(Z2,{styles:n9e})]})}const o9e=e=>{var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""},a9e=window.location.search,Vo=new URLSearchParams(a9e),hL=Vo.get("pData")??Vo.get("pdata"),S$=Vo.get("pDataPlatform")?{platform:Vo.get("pDataPlatform"),id:Vo.get("pDataId"),idPropName:Vo.get("pDataIdPropName")}:void 0,gL=o9e("PLAY_SESSION"),mL=Vo.get("channelKey")??Vo.get("channelkey"),vL=Vo.get("X-SIGNED-APP-CUSTOMER"),yL=Vo.get("ref"),$$=window.location.href.split("#")[1],[,,s9e]=($$==null?void 0:$$.split("/"))??[];function bL({appConfig:e={},muiTheme:t={},fcConfig:n={}}){var a;if((hL||S$)&&(e.pData=hL??S$),mL&&(e.channelKey=mL),yL&&(e.ref=yL),(a=e==null?void 0:e.ref)!=null&&a.includes("@")||(e.platform?e.ref=`${e.ref}${e.prvUuid?"@"+e.prvUuid:""}@${e.platform}`:console.warn("Your ref parameter isn't fully qualified AND you have not provided a `platform` prop which allows timum to do it for you. Most likely timum won't find anything. Please either add a platform prop to your configuration or use a full reference in either the ref prop or a ref url parameter.")),gL&&(e.cookie=gL),vL&&(e.cancelableAppointment={authToken:vL,appointmentUuid:s9e,customerUuid:S$.id}),e.host&&Iq(e.host),!e.ref){console.log("timum hides itself. No reference in either url or options detected.");return}const r=({bookables:s,product:l,openProductPage:c,openBookingPage:d,height:h})=>{const{t:g}=xr(),p=Ge(b=>bZ(b)),m=le.useRef(null),[v,{width:x}]=im(),w=function(b){if(!b)return[];const S=[];for(const[,$]of Object.entries(s))for(const E of $)E.start=E.start.toISO({suppressMilliseconds:!0}),E.end=E.end.toISO({suppressMilliseconds:!0}),S.push(E);return S};return _(WW,{ref:v,children:_(dv,{ref:m,locales:t9e,locale:Bn.resolvedLanguage,height:h,timeZone:"utc",plugins:[GCe,J8e,tEe,_Ee],customButtons:{productSelection:{text:(l==null?void 0:l.name)??"Produkt wählen",click:()=>{c()}}},headerToolbar:{left:"productSelection",center:"",right:"today prev,next"},noEventsText:g("noEventsMessage"),events:w(s),eventClick:b=>{const S={...b.event.extendedProps};S.start=Fe.fromISO(b.event.startStr),S.end=Fe.fromISO(b.event.endStr),d(S)},windowResize:()=>{var b,S,$,E;p.smallView&&p.largeView&&(x<601?(S=(b=m==null?void 0:m.current)==null?void 0:b.getApi())==null||S.changeView(p.smallView):(E=($=m==null?void 0:m.current)==null?void 0:$.getApi())==null||E.changeView(p.largeView))},...p})})},i=s=>_(Lwe,{...s}),o=s=>_(k1,{...s});return _(ol,{children:_(Bj,{injectFirst:!0,children:_(cwe,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{horizontal:"right",vertical:"bottom"},children:_(hq,{store:nSe,children:be(eSe,{muiTheme:t,fcConfig:n,appConfig:e,children:[_(gde,{}),_(i9e,{}),_(mwe,{children:s=>{const l=Ge(c=>et(c,"calendarFrontend"));return l==="fullCalendar"?_(a5,{calendarComponent:r,...s}):l==="detailsListView"?_(a5,{calendarComponent:i,...s}):l==="pureListView"?_(a5,{calendarComponent:o,...s}):be(ol,{children:["You must set calendarFrontend either to"," ",_("code",{children:"fullCalendar"})," or to ",_("code",{children:"listView"})," in your config."]})}})]})})})})})}function l9e(e,t,n){eT(document.getElementById((e==null?void 0:e.rootElId)??"bookingjs")).render(_(le.StrictMode,{children:_(bL,{appConfig:e,muiTheme:t,fcConfig:n})}))}mo.React=le,mo.TimumBooking=bL,mo.i18next=zxe,mo.init=l9e,mo.yup=Fue,Object.defineProperty(mo,Symbol.toStringTag,{value:"Module"})});