1import{_ as Jo,a as el}from"./Bh2DTJ1J.js";import{_ as $s}from"./C7JJsubu.js";import{a as Us,u as tl,_ as nl}from"./Dl_MEEFS.js";import{g as De,e as C,h as R,i as ie,aj as Wn,V as _e,w as Ne,u as Je,aW as tn,a9 as Ft,o as nn,I as Zt,f as y,R as yt,bR as bt,j as h,k as q,b4 as Ws,F as Ee,Q as Xt,m as Ie,t as M,ay as Qe,l as J,b as he,J as lt,c as Q,r as z,K as qe,n as Lr,ao as jt,dB as zs,a as Lt,a4 as Ti,a5 as ki,p as je,dC as rl,a7 as il,an as $r,aO as Ur,bT as Er,dD as Dr,dE as Vs,a8 as Gs,C as wr,a$ as Dt,d as $e,aM as sl,dF as al,aJ as ol,bM as qs,dG as Tt,ap as Gt,dH as ll,A as Wr,cD as rt,Z as cl,cv as dl,dA as ul,dI as fl,dJ as hl,dK as gl,dL as pl,cX as Ii,dM as ml,a0 as zr,cS as vl,dN as ir,D as Vr,aT as Gr,aZ as Ys,dO as bn,dP as yl,aw as bl,dQ as Sn,at as Sl,bc as El,cC as Dl,aY as wl,E as Cl,$ as Al,O as _l,b2 as Mi,b3 as xl,b5 as Rl,dR as Tl,aK as Oi}from"./D0gRUkPV.js";import{_ as rn}from"./Joitf08W.js";import{u as qr}from"./hYMZRALQ.js";import{u as Qs}from"./DJWLGxAo.js";import{u as Zs}from"./dde6LL7a.js";import{_ as kl}from"./CzIF_HII.js";import{b as Yr,_ as Il}from"./ko53nCVX.js";import{_ as Xs}from"./D5ctu0Fm.js";import{_ as Ks}from"./CGW-ztwC.js";import{c as Ml,d as Ol}from"./BDV5Xh-M.js";import{_ as Nl}from"./DnBj-re4.js";import{_ as Pl}from"./BAjehvo2.js";import{c as Bl}from"./DnNO-2px.js";import{i as Ni}from"./DUAcKPeS.js";import{u as Js}from"./bjeUXIpf.js";import{f as Hl}from"./D78jXxM_.js";import{_ as Fl}from"./D0wySPbW.js";import{_ as jl}from"./DO8UA8Fz.js";import{u as Ll}from"./7_-1NXy-.js";import{_ as $l}from"./B7euVGB4.js";import{_ as Ul}from"./CNvm-ToU.js";import{getAuth as Wl}from"./CIUYfWgC.js";import"./h1h9rJKv.js";import{u as zl}from"./CzXm6EWe.js";import"./DxNMSF00.js";import"./Bwcb8a5S.js";import"./DTfrbu_s.js";import"./DkH5XtmC.js";import"./CoOvn6Yn.js";import"./C-rh2r4V.js";import"./N99F5R46.js";import"./BUsyV0FJ.js";import"./1SF2Ur2n.js";import"./Dwhh0oAk.js";const Vl=["fill"],Gl=["fill"],ql={key:2,d:"M13.3061 8.29245L16 12.3333M16 12.3333L13.3061 16.3742M16 12.3333L8.00005 12.3333",stroke:"white","stroke-width":"0.666667","stroke-linecap":"round","stroke-linejoin":"round"},Yl={key:3,d:"M10.6939 15.7076L8 11.6667M8 11.6667L10.6939 7.62576M8 11.6667H15.9999",stroke:"white","stroke-width":"0.666667","stroke-linecap":"round","stroke-linejoin":"round"},ea=De({__name:"DateSelectorArrow",props:{isNext:{type:Boolean},isDisabled:{type:Boolean}},setup(t){return(e,n)=>(C(),R("svg",{width:"24",height:"28",class:ie({"float-right":t.isNext}),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.isNext?(C(),R("rect",{key:0,x:"24",y:"24",width:"24",height:"24",rx:"24",transform:"rotate(-180 24 24)",fill:t.isDisabled?"#5C6766":"#242424"},null,8,Vl)):(C(),R("rect",{key:1,width:"24",height:"24",rx:"24",fill:t.isDisabled?"#5C6766":"#242424"},null,8,Gl)),t.isNext?(C(),R("path",ql)):(C(),R("path",Yl))],2))}}),Ql=2e4,Zl=(t,e)=>({isRoundTrip:(t?.routes?.length??0)>1,isSecondRouteVisible:!!e}),ta=()=>{const{logError:t}=Wn(),e=_e("select-fare-quotes-prefetch-in-flight",()=>0),n=_e("select-fare-quotes-prefetch-version",()=>0),r=_e("select-service-bundles-restored-prefetch-version",()=>0),i=_e("select-service-bundles-pending",()=>0),s=_e("select-bundles-in-flight-by-route",()=>({})),a=_e("select-bundles-settled-by-route",()=>({})),o=(N,I)=>{s.value={...s.value,[N]:I}},l=(N,I)=>{a.value={...a.value,[N]:I}},d=N=>s.value[N]===!0,c=N=>a.value[N]===!0,f=(N,I=Ql)=>new Promise(E=>{if(N())return E();let _=null;const B=setTimeout(()=>{_?.(),t(new Error("waitUntil timed out"),"useSelectRequestCoordinator"),E()},I);_=Ne(N,ge=>{ge&&(_?.(),clearTimeout(B),E())})}),g=N=>c(1)?N.isRoundTrip?N.isSecondRouteVisible&&c(2):!0:!1,u=N=>i.value===0&&!d(1)&&(!N.isRoundTrip||!d(2)),v=async N=>{await f(()=>g(N)),await f(()=>u(N))};return{markServiceBundlesSessionRestored:()=>{r.value=n.value},resetInitialBundlesState:N=>{l(N,!1)},shouldRestoreServiceBundlesSession:()=>r.value<n.value,waitForFareQuotesPrefetch:async()=>{await f(()=>e.value===0)},withFareQuotesPrefetch:async(N,I)=>{await v(N),e.value+=1;try{const E=await I();return n.value+=1,E}finally{e.value=Math.max(0,e.value-1)}},withServiceBundlesRequest:async(N,I)=>{i.value+=1,o(N,!0),l(N,!1);try{return await I()}finally{i.value=Math.max(0,i.value-1),o(N,!1),l(N,!0)}}}},Xl={class:"dateSelectorDetails"},Kl={class:"flex items-center relative"},Jl={class:"absolute top-0 left-0 w-full h-full bg-[rgb(255_255_255_/_74%)] grid place-items-center z-[1000]"}
1,ec=["disabled"],tc={class:"min-w-0 w-full"},nc=["data-date","data-active","disabled","onClick"],rc={class:"text-[14px] capitalize text-greyText"},ic={key:1,class:"text-black/60 whitespace-nowrap font-bold mb-1"},sc={key:2,class:"text-black/60 whitespace-nowrap font-bold mb-1"},ac={key:3,class:"text-customBlack whitespace-nowrap font-bold"},oc=["disabled"],lc={key:1,class:"flex items-center gap-2 min-w-0 overflow-hidden"},cc=De({__name:"DateSelector",props:lt({route:{},flight:{},dates:{},showSecondRoute:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:lt(["date-click","error"],["update:modelValue"]),setup(t,{expose:e,emit:n}){const{locale:r}=Je(),{width:i}=tn(),s=jt(),a=qr(),{userUidCookie:o}=Ft(),{logError:l}=Wn(),{resetInitialBundlesState:d,withFareQuotesPrefetch:c}=ta(),f=n,g=_e(`allowedDates-${t.route.id}-${t.route.date}`,()=>[]),u=Q(()=>Zl(t.flight,t.showSecondRoute)),v=Q(()=>g.value.filter(A=>!le(A))),m=z({available:!1}),b=z(null),w=`prev_${t.route.id}`,x=`next_${t.route.id}`,P=z(),L=z(),N=Qs(b,{slidesPerView:i.value>1024?7:2,slidesPerGroup:i.value>1024?7:2,allowTouchMove:i.value<1024,breakpoints:{0:{slidesPerView:2,slidesPerGroup:2},768:{slidesPerView:5,slidesPerGroup:5},1024:{slidesPerView:7,slidesPerGroup:7}}}),I=z(!1),E=(A=[])=>A.filter(H=>H.type===(t.route.id==1?"O":"R")),_=A=>{const H=[...A].sort((Ce,Ae)=>a(Ce.departureDate).utc().diff(a(Ae.departureDate).utc()));if(!H.length)return[];const K=a(H[0].departureDate).utc().startOf("month"),ne=a(H[H.length-1].departureDate).utc(),re=[],U=Array.from({length:ne.diff(K,"day")+1},(Ce,Ae)=>K.add(Ae,"day"));for(const Ce of U){const Ae=H.find(Ue=>a(Ue.departureDate).utc().isSame(a(Ce).utc(),"day"));re.push({id:Ae?.id??Math.random(),available:!!Ae,departureDate:Ae?.departureDate||Ce.format("YYYY-MM-DDTHH:mm:ss.SSS"),lfid:Ae?.lfid,lowestFarePriceWithTax:Ae?.lowestFarePriceWithTax??0,lowestBasePriceWithTax:Ae?.lowestBasePriceWithTax??0,flightNumber:Ae?.flightNumber??"",isDisabled:!Ae,hover:!1,date:Ae?.departureDate||Ce.format("YYYY-MM-DDTHH:mm:ss.SSS")})}return re};nn(async()=>{d(t.route.id);const A=E(t.dates);A.length&&(g.value=_(A),t.route.date&&te(g.value.find(H=>!H.isDisabled&&H.departureDate.slice(0,10)===t.route.date.slice(0,10))))}),Ne(N.instance,()=>{if(m.value&&N.instance.value){const A=g.value.findIndex(H=>H.departureDate.slice(0,10)===m.value?.departureDate?.slice(0,10));N.instance.value.slideTo(A)}});const B=(A,H)=>{const K=t.flight.routes.length>1,ne=[...g.value].sort((Ut,Wt)=>a(Ut.departureDate).utc().diff(a(Wt.departureDate).utc())),re=ne[A?ne.length-1:0].departureDate,U=a(re).add(A?1:-1,"month").startOf("month"),Ce=a(re).add(A?1:-1,"month").endOf("month"),Ae=U.format("YYYY-MM-DD"),Ue=Ce.format("YYYY-MM-DD");return{currencyCode:t.flight.currencyCode,promotionalCode:t.flight.code,originCode:t.flight.routes[0].origin?.airportCode,destinationCode:t.flight.routes[0].destination?.destinationAirportCode,departureDate:Ae,arrivalDate:Ue,languageCode:r.value,adults:t.flight.passengers?.adults,children:t.flight.passengers?.children,infants:t.flight.passengers?.infants,flightType:K?"RT":"OW",uid:o.value}},ge=async(A,H)=>{const K=B(A),ne=await c(u.value,()=>$fetch(`${s.public.apiUrl}/api/fare-quotes`,{params:K}));return{routeDates:E(ne?.data??[]),params:K}},we=async A=>{await Lr();const H=N.instance.value;H&&(H.update(),H.slideTo(A))},xe=async A=>{const{routeDates:H}=await ge(A);H.length&&(g.value=_(H),await we(0))},ye=async()=>{const A=N.instance.value;if(A)if(A.isEnd&&!I.value){I.value=!0;try{if(!await qe())throw f("error","expiredSession"),new Error("Expired session");await xe(!0)}catch(H){l(H,"DateSelector:next")}finally{I.value=!1}}else A.slideNext()},F=async()=>{const A=N.instance.value;if(A)if(A.isBeginning&&!I.value){I.value=!0;try{if(!await qe())throw f("error","expiredSession"),new Error("Expired session");await xe(!1)}catch(H){l(H,"DateSelector:prev")}finally{I.value=!1}}else A.slidePrev()},j=Zt(t,"modelValue"),Z=Q(()=>t.flight.routes.length>0&&t.route.id==2&&t.flight.routes[0].date?t.flight.routes[0].date.slice(0,10):""),X=()=>{const A=b.value?.swiper;if(!A)return;const H=v.value.findIndex(K=>
1!le(K));H!==-1&&t.route.id==2&&A.slideTo(H)},be=Zs(),te=A=>{if(!A||!A.lowestFarePriceWithTax)return;const H=A.departureDate.slice(0,10);if(be.value.length>0&&(t.route.id===1?Object.assign(be.value[0],{departure:H}):t.route.id===2&&(be.value[0].arrival=H)),t.flight.routes.length>1)if(t.route.id==2){const K=t.flight.routes[0].date,ne=a(A.departureDate),re=a(K);if(ne.isBefore(re))return}else X();m.value=A,f("date-click",m.value)},ee=A=>(typeof A=="string"?A=a(A).utc().toDate():a.isDayjs(A)&&(A=A.utc().toDate()),new Intl.DateTimeFormat(r.value,{timeZone:"UTC",weekday:"short",month:"short",year:"numeric"}).format(A)),oe=A=>{const H=a.utc(A),K=ee(H),ne=parseInt(A.slice(8,10)),re=K.split(" ")[2],U=K.split(" ")[0];return`${re} ${ne} ${U}`},le=A=>{const H=A.departureDate;if(!A.lowestFarePriceWithTax)return!0;if(Z.value){const K=a(Z.value).utc().add(1,"day");if(a(H).utc().isBefore(K))return!0}return!1},fe=A=>{if(!A.lowestBasePriceWithTax||!A.lowestFarePriceWithTax)return{hasDiscount:!1,discountPercentage:0,discount:0};const H=A.lowestFarePriceWithTax<A.lowestBasePriceWithTax,K=(A.lowestBasePriceWithTax-A.lowestFarePriceWithTax)/A.lowestBasePriceWithTax*100,ne=A.lowestBasePriceWithTax-A.lowestFarePriceWithTax;return{hasDiscount:H,discountPercentage:K,discount:ne}};Ne(()=>m.value,A=>{j.value={...j.value,...A}}),Ne(()=>t.route.date,A=>{A&&(m.value=g.value.find(H=>!H.isDisabled&&H.departureDate.slice(0,10)===A.slice(0,10))||{available:!1})});const O=Q(()=>{const A=g.value.sort((H,K)=>a(H.departureDate).utc().diff(a(K.departureDate).utc()));return g.value.length>0&&a(A[0].departureDate).isBefore(a(),"day")}),$=Q(()=>zs(v.value));return e({lowestPrice:$}),(A,H)=>{const K=Ws,ne=ea,re=rn;return C(),R("section",Xl,[y("div",Kl,[yt(y("div",Jl,[q(K)],512),[[bt,h(I)]]),h(g).length>0&&(Number(t.route.id)===1||t.showSecondRoute)?(C(),R(Ee,{key:0},[y("button",{id:w,ref_key:"prevEl",ref:L,"data-testid":w,class:ie(["navigationBtn h-full px-4 text-[color:var(--verdeAqua)] text-2xl",{"opacity-20 pointer-events-none":h(O)}]),disabled:h(O),onClick:H[0]||(H[0]=Xt(U=>F(),["prevent"]))},[q(ne,{"is-disabled":h(O)},null,8,["is-disabled"])],10,ec),y("section",tc,[y("swiper-container",{ref_key:"swcontainer",ref:b,init:!1,role:"region"},[(C(!0),R(Ee,null,Ie(h(v),U=>(C(),R("swiper-slide",{key:U.id,role:"listitem"},[y("button",{class:ie(["relative group",{"pointer-events-none":le(U)}]),"data-date":U.departureDate,"data-active":h(m)?.departureDate?.slice(0,10)===U.departureDate?.slice(0,10),disabled:le(U),onClick:Ce=>te(U)},[y("div",{class:ie(["focus-visible:outline-none group-hover:bg-lightGreen group-hover:border-b-2 group-hover:border-lightGray whitespace-nowrap w-full px-[16px] h-[72px]",[h(m)?.departureDate?.slice(0,10)===U.departureDate?.slice(0,10)?"border-b-2 bg-lightGreen border-[#279989]":"",fe(U).hasDiscount?"py-1":"py-2"]])},[y("p",rc,M(oe(U.departureDate)),1),U.lowestFarePriceWithTax?(C(),R("p",{key:0,class:ie(["whitespace-nowrap font-bold text-[18px] mb-1",[fe(U).hasDiscount?"!text-[16px] !line-through !font-normal max-h-[20px] -mt-1 !mb-0":"",h(m)?.departureDate?.slice(0,10)!==U.departureDate?.slice(0,10)?"text-greyText":"text-customBlack"]])},M(("getPrice"in A?A.getPrice:h(Qe))(U.lowestBasePriceWithTax,h(r),t.flight.currencyCode)),3)):U.isDisabled?(C(),R("p",ic," - ")):(C(),R("p",sc,M(A.$t("sold_out")),1)),fe(U).hasDiscount?(C(),R("p",ac,M(("getPrice"in A?A.getPrice:h(Qe))(U.lowestFarePriceWithTax,h(r),t.flight.currencyCode)),1)):J("",!0)],2)],10,nc)]))),128))],512)]),y("button",{id:x,ref_key:"nextEl",ref:P,"data-testid":x,class:ie(["navigationBtn px-4 text-[color:var(--verdeAqua)] text-2xl nextId",{"opacity-20 pointer-events-none":h(I)}]),disabled:h(I),onClick:H[1]||(H[1]=Xt(U=>ye(),["prevent"]))},[q(ne,{"is-next":"","is-disabled":h(I)},null,8,["is-disabled"])],10,oc)],64)):(C(),R("div",lc,[q(re,{height:"2.5rem",width:"2.5rem",style:{borderRadius:"1000px",minWidth:"2.5rem"}}),(C(!0),R(Ee,null,Ie(Array(6),U=>(C(),he(re,{key:U,height:"6rem",width:"9rem"}))),128)),q(re,{height:"2.5rem",width:"2.5rem",style:{borderRadius:"1000px",minWidth:"2.5rem"}})]))])])}}}),dc=Lt(cc,[["__scopeId","data-v-f891cff6"]]),uc={key:0,class:"md:w-[60%] m-auto px-4 mt-6 md:py-0 md:max-h-[70px]"},fc={class:"flex flex-col"},hc={class:"relative flex justify-between items-center -mb-1"},gc={class:"relative z-10 pr-2 bg-white text-[24px] font-bold"},pc={class:"lineText relative z-10 bg-white px-[3px]"},mc={class:"relative z-10 pl-2 bg-white !text-[24px] font-bold text-customBlack"},vc={class:"flex justify-between -mb-1"},yc={class:"cityText"}
1,bc={class:"!text-[16px] font-bold"},Sc={class:"cityText"},Ec={class:"!text-[16px] font-bold"},Dc={class:"flex justify-between dateText text-[14px]"},wc={class:"infoHours text-center relative md:-top-10 md:mt-0 mb-2"},Cc={class:"pr-1 font-light"},Ac={class:"font-light"},_c={class:"font-light -mt-2"},xc={class:"font-semibold"},Rc=De({__name:"FlightSummary",props:{fareDetails:{},route:{},locale:{},flightNumber:{}},setup(t){const e=t,n=Q(()=>e.fareDetails.flightTime?rl(e.fareDetails.flightTime):il(e.fareDetails.departureDate,e.fareDetails.arrivalDate));return(r,i)=>{const s=kl;return t.fareDetails?.departureDate&&t.fareDetails?.arrivalDate?(C(),R("div",uc,[y("div",fc,[y("div",hc,[i[0]||(i[0]=y("div",{class:"absolute left-0 right-0 top-1/2 -translate-y-1/2 h-[1px] bg-[#AAB6B5]"},null,-1)),y("p",gc,M(("getTime"in r?r.getTime:h(Ti))(t.fareDetails.departureDate)),1),y("div",pc,[q(s)]),y("p",mc,M(("getTime"in r?r.getTime:h(Ti))(t.fareDetails.arrivalDate)),1)]),y("div",vc,[y("div",yc,[y("p",bc,M(t.route?.origin?.airportCode),1)]),y("div",Sc,[y("p",Ec,M(t.route?.destination?.destinationAirportCode),1)])])]),y("div",Dc,[y("span",null,M(("getDate"in r?r.getDate:h(ki))(t.fareDetails.departureDate,t.locale,!0,!0)),1),y("span",null,M(("getDate"in r?r.getDate:h(ki))(t.fareDetails.arrivalDate,t.locale,!0,!0)),1)]),y("div",wc,[y("span",Cc,M(h(n)),1),y("span",Ac,M(r.$t("direct")),1),y("p",_c,[je(M(r.$t("bundle.operatedBy"))+": ",1),y("span",xc," Iberojet "+M(t.flightNumber),1)])])])):J("",!0)}}}),Tc={class:"flex bundle-text my-2"},kc={key:0,class:"iberojet-small-text text-greyText description !mb-0"},Ic={class:"flex bundle-text my-2"},Mc={key:0,class:"iberojet-small-text text-greyText description !mb-0"},Oc={class:"flex bundle-text my-2"},Nc={key:0,class:"iberojet-small-text text-greyText description !mb-0"},Pc=De({__name:"BundleDetail",props:{codeType:{},fareType:{},isChecked:{type:Boolean}},setup(t){const{loggedIn:e}=$r(),n=t,r=Ur(),i=Q(()=>n.fareType===Er.TTOO),s=Q(()=>n.fareType===Er.PRO),{getFareChangeKey:a,getFareChangePrice:o,getCancellationPrice:l}=Yr(),d=Q(()=>n.fareType??"ECONOMIC"),c=Q(()=>a(d.value)),f=Q(()=>o(d.value,r.currency)),g=Q(()=>l(d.value,r.currency));return(u,v)=>{const m=Ks;return C(),R("div",null,[y("div",Tc,[y("div",null,[q(m)]),y("div",null,[y("span",null,[h(s)?(C(),R(Ee,{key:0},[je(M(u.$t("bundle.checkedBaggagePro")),1)],64)):(C(),R(Ee,{key:1},[je(M(u.$t("bundle.checkedBaggage")),1)],64))]),!h(i)&&!h(s)&&!h(e)?(C(),R("p",kc,M(u.$t("fares.checked_luggage_description")),1)):J("",!0)])]),y("div",Ic,[y("div",null,[q(m)]),y("div",null,[y("span",null,M(u.$t("bundle.available-changes")),1),!h(e)&&h(c)?(C(),R("p",Mc,M(u.$t(h(c),{price:h(f)}))+" "+M(u.$t("bundle.extras_by_availability")),1)):J("",!0)])]),y("div",Oc,[y("div",null,[q(m)]),y("div",null,[y("span",null,M(u.$t("fares.cancellation_refund")),1),h(e)?J("",!0):(C(),R("p",Nc,M(u.$t("bundle.cancellationWithPenalty.economic"))+" "+M(h(g))+" "+M(u.$t("bundle.cancellationWithPenalty.economic__2"))+" "+M(u.$t("bundle.extras_excluded")),1))])])])}}}),Bc={class:"hover:bg-[#f6f6f6]"},Hc=["aria-disabled"],Fc={class:"relative flex items-center gap-2"},jc={key:0,class:"absolute -top-7 left-1/2 -translate-x-1/2 px-3 py-1 text-white text-[10px] rounded-full bg-orangeTerciary w-max"},Lc={class:"flex justify-between w-full align-center"},$c={class:"flex align-center gap-2"},Uc={key:0,class:"font-bold text-orangeTerciary text-[15px]"},Wc={key:1,class:"font-bold text-orangeTerciary text-[15px]"},zc=["disabled"],Vc=De({__name:"SeatFareOption",props:{option:{},seatCode:{},isCurrentSeat:{type:Boolean},isChecked:{type:Boolean},checkedFareType:{},currencyCode:{},locale:{},fareDetails:{},isFetching:{type:Boolean},isFirst:{type:Boolean}},emits:["change","fare-change"],setup(t,{emit:e}){const{loggedIn:n}=$r(),r=t,i=e,s=Q(()=>Qe(r.option.diff,r.locale,r.currencyCode)),a=Q(()=>r.option.type==="PRO"||r.option.type==="TTOO"),o=()=>{i("change",!0,r.seatCode,r.option.type);const c=r.option.type||Dr(!0,r.seatCode),f=Vs(r.fareDetails?.fareTypes,c);f&&i("fare-change",f,r.seatCode)},l=()=>{if(r.isFetching)return;i("change",!1,r.seatCode);const c=r.fareDetails?.fareTypes.find(f=>f.fareTypeName===Er.BASIC);c&&i("fare-change",c,r.seatCode)},d=()=>{r.isFetching||(r.isChecked?l():o())};return(c,f)=>{const g=Xs,u=Pc;return C(),R("div",Bc,[y("div",{class:ie(["border-b border-[#D9E2E1] mx-4 py-4 transition-colors duration-200",{"border-t":t.isFirst}
1,t.isFetching?"cursor-not-allowed opacity-50 pointer-events-none":"cursor-pointer"]),"aria-disabled":t.isFetching,onClick:d},[y("div",Fc,[t.option.isMostChosen&&!h(n)?(C(),R("span",jc,M(c.$t("bundle.mostChosen")),1)):J("",!0),y("div",Lc,[y("label",{class:ie(["font-bold text-[16px] text-customBlack inline-flex items-center gap-1",t.isCurrentSeat?"cursor-pointer":"cursor-not-allowed"])},M(h(a)?c.$t("flights.info.fare")+" "+t.option.type:c.$t("bundle.upgrade_to")+r.option.type),3),y("div",$c,[t.isChecked?(C(),R("span",Uc,M(c.$t("baggage.free")),1)):(C(),R("span",Wc," + "+M(h(s)),1)),t.isChecked?(C(),he(g,{key:2})):(C(),R("input",{key:3,type:"checkbox",checked:!1,disabled:t.isFetching},null,8,zc))])])]),q(u,{"code-type":t.seatCode,"fare-type":t.option.type,"is-checked":t.isChecked},null,8,["code-type","fare-type","is-checked"])],10,Hc)])}}}),Gc={role:"img","aria-label":"Check",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qc=["stroke"],Yc=["stroke"],Qc=De({__name:"CircleCheck",props:{color:{default:"#001871"}},setup(t){return(e,n)=>(C(),R("svg",Gc,[y("path",{d:"M7.41667 14.0833C11.0833 14.0833 14.0833 11.0833 14.0833 7.41667C14.0833 3.75 11.0833 0.75 7.41667 0.75C3.75 0.75 0.75 3.75 0.75 7.41667C0.75 11.0833 3.75 14.0833 7.41667 14.0833Z",stroke:t.color,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,qc),y("path",{d:"M4.57812 7.41682L6.46479 9.30348L10.2448 5.53015",stroke:t.color,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Yc)]))}}),Zc=["aria-disabled"],Xc={class:"flex flex-col items-center justify-center"},Kc={class:"flex items-end justify-center align-center gap-2"},Jc={key:1,class:"flex justify-center font-normal text-[14px] line-through pr-2"},ed={class:"flex items-end justify-center"},td={class:"font-normal text-[14px]"},nd={key:0,class:"font-semibold text-[12px] -mt-1"},rd=De({__name:"BundleSelector",props:{seat:{},isSelected:{type:Boolean},showIncludedMessage:{type:Boolean},hasDiscount:{type:Boolean},totalPrice:{},originalPrice:{},currencyCode:{},locale:{},fareLabel:{},isFetching:{type:Boolean}},emits:["select"],setup(t,{emit:e}){const n=t,r=e,i=Q(()=>Qe(n.totalPrice,n.locale,n.currencyCode)),s=Q(()=>Qe(n.originalPrice,n.locale,n.currencyCode)),a=()=>{n.isFetching||r("select",n.seat)};return(o,l)=>{const d=Qc;return C(),R("div",{class:ie(["flex flex-col items-center justify-center bg-verdeAqua text-white rounded-[32px] font-bold fs18 min-h-[58px] text-center py-2 transition-colors duration-100 m-4 hover:duration-200 hover:bg-[#1F766A]",[{"!text-azulOscuro !bg-white border-azulOscuro border-1":t.isSelected},{"bg-yellowPremium !text-azulOscuro border-azulOscuro hover:bg-white border-azulOscuro border-1":h(Gs)(t.seat.codeType)},t.isFetching?"cursor-not-allowed opacity-50 pointer-events-none":"cursor-pointer"]]),"aria-disabled":t.isFetching,onClick:a},[wr(o.$slots,"content",{isSelected:t.isSelected},()=>[y("div",Xc,[y("div",Kc,[t.isSelected?(C(),he(d,{key:0,class:"mx-auto"})):J("",!0),t.hasDiscount?(C(),R("div",Jc,M(h(s)),1)):J("",!0),y("div",ed,[je(M(h(i))+" / ",1),y("span",td,M(o.$t("insurance.perPerson")),1)])])])]),wr(o.$slots,"message",{show:t.showIncludedMessage},()=>[q(Dt,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"opacity-0 -translate-y-1","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition-all duration-150 ease-in","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 -translate-y-1"},{default:$e(()=>[t.showIncludedMessage?(C(),R("p",nd,M(n.fareLabel)+" "+M(o.$t("fares.included")),1)):J("",!0)]),_:1})])],10,Zc)}}}),id=["aria-labelledby"],sd={class:"flex pb-8 border-lightGray gap-[24px] justify-start"},ad=["id"],na=De({__name:"SidebarWrapper",props:{modelValue:{type:Boolean},show:{type:Boolean},title:{},triggerText:{},triggerClass:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,i=sl(),s=z(null),a=al(document.body);return Ne(()=>n.modelValue,o=>{a.value=o,o||Lr(()=>s.value?.focus())}),(o,l)=>{const d=ol;return C(),R(Ee,null,[y("div",null,[t.show?(C(),R("button",{key:0,ref_key:"triggerRef",ref:s,type:"button",class:ie(["underline cursor-pointer py-3 md:pb-0 iberojet-small-text text-verdeAqua text-left",t.triggerClass]),onClick:l[0]||(l[0]=c=>r("update:modelValue",!0))},M(t.triggerText),3)):J("",!0)]),(C(),he(qs,{to:"body"},[y("div",{class:ie(["fixed inset-0 z-[250] transition",n.modelValue?"visible":"invisible"])},[y("div",{class:ie(["fixed inset-0 bg-black/40 z-40 transition-all duration-300",n.modelValue?"opacity-100 visible":"opacity-0 invisible"]),onClick:l[1]||(l[1]=c=>r("update:modelValue",!1))},null,2),y("div",{role:"dialog","aria-modal":"true","aria-labelledby":h(i),class:ie(["fixed top-0 right-0 h-full w-full md:w-[660px] bg-white shadow-lg z-50 transform transition-all duration-300 ease-in-out overflow-auto p-8",n.modelValue?"translate-x-0":"translate-x-full"])},[y("div",sd,[y("button",{type:"button",class:"cursor-pointer",onClick:l[2]||(l[2]=c=>r("update:modelValue",!1))},[q(d)]),y("h3",{id:h(i),class:"iberojet-text font-bold text-[16px]"},M(t.title),9,ad)]),wr(o.$slots,"default")],10,id)],2)]))],64)}}}),od={class:"flex flex-col"},ld=["onClick"],cd={class:"iberojet-text font-bold text-verdeAqua"},dd={key:0,class:"pb-4 flex flex-col gap-3"},ud={class:"flex gap-3 items-start"},fd={class:"iberojet-text font-semibold"},hd={key:0,class:"iberojet-text mt-1"},gd={class:"iberojet-text"},pd={class:"iberojet-text"},md={class:"flex gap-3 items-start"},vd={class:"mt-[2px] shrink-0"},yd={class:"iberojet-text font-semibold text-[13px]"},bd={key:0,class:"iberojet-text mt-1"},Sd={class:"iberojet-text mt-1"},Ed={class:"iberojet-text"},Dd={class:"iberojet-text"},wd=De({__name:"FarePolicySidebar",props:{fareDetails:{},currencyCode:{},show:{type:Boolean}},setup(t){const e=t,{t:n}
1=Je(),r=z(!1),{fareRows:i,getFareChangePrice:s,getCancellationPrice:a}=Yr(Q(()=>e.fareDetails)),o=z(null),l=d=>{o.value=o.value===d?null:d};return(d,c)=>{const f=Ml,g=Ks,u=Nl,v=na;return C(),he(v,{modelValue:h(r),"onUpdate:modelValue":c[0]||(c[0]=m=>Gt(r)?r.value=m:null),show:t.show,title:h(n)("bundle.farePolicy"),"trigger-text":h(n)("bundle.farePolicy")},{default:$e(()=>[y("div",od,[(C(!0),R(Ee,null,Ie(h(i),m=>(C(),R("div",{key:m.id,class:"border-b border-lightGray"},[y("button",{type:"button",class:"w-full flex items-center justify-between py-6 cursor-pointer",onClick:b=>l(m.id)},[y("h4",cd,M(d.$t("flights.info.fare"))+" "+M(m.label),1),q(f,{"is-open":h(o)===m.id},null,8,["is-open"])],8,ld),q(Dt,{name:"collapse"},{default:$e(()=>[h(o)===m.id?(C(),R("div",dd,[y("div",ud,[y("div",null,[q(g)]),y("div",null,[y("p",fd,M(d.$t("bundle.available-changes")),1),("fareMeta"in d?d.fareMeta:h(Tt))(m.id).priorChangeDays?(C(),R("p",hd,[y("b",null,M(d.$t(`bundle.${("fareMeta"in d?d.fareMeta:h(Tt))(m.id).priorChangeDays}`)),1),je(" "+M(d.$t("bundle.fare_diff")),1)])):J("",!0),y("p",gd,[y("b",null,M(d.$t(`bundle.${("fareMeta"in d?d.fareMeta:h(Tt))(m.id).changeWindow}`)),1),je(" "+M(d.$t("bundle.fare_diff"))+" + "+M(h(s)(m.id,e.currencyCode)),1),c[1]||(c[1]=y("br",null,null,-1))]),y("p",pd,M(d.$t("bundle.extras_by_availability")),1)])]),y("div",md,[y("div",vd,[m.cancelKey?(C(),he(g,{key:1})):(C(),he(u,{key:0}))]),y("div",null,[y("p",yd,M(m.cancelKey?d.$t("bundle.cancellationRefundable"):d.$t("bundle.cancellationNotAllowed")),1),m.cancelKey?(C(),R(Ee,{key:0},[("fareMeta"in d?d.fareMeta:h(Tt))(m.id).cancellationFreeKey?(C(),R("p",bd,[y("b",null,M(d.$t(("fareMeta"in d?d.fareMeta:h(Tt))(m.id).cancellationFreeKey)),1)])):J("",!0),y("p",Sd,[y("b",null,M(d.$t(m.cancelKey)),1),je(" "+M(h(a)(m.id,e.currencyCode)),1),c[2]||(c[2]=y("br",null,null,-1))]),y("p",Ed,M(d.$t(`${m.cancelKey}__2`)),1),y("p",Dd,M(d.$t(("fareMeta"in d?d.fareMeta:h(Tt))(m.id).extrasKey)),1)],64)):J("",!0)])])])):J("",!0)]),_:2},1024)]))),128))])]),_:1},8,["modelValue","show","title","trigger-text"])}}}),Cd=Lt(wd,[["__scopeId","data-v-594dd84f"]]),Ad={class:"overflow-x-auto"},_d={class:"w-max md:w-full"},xd={class:"iberojet-text text-center text-customBlack font-bold leading-tight max-w-[60px] m-auto"},Rd={class:"iberojet-text text-center text-customBlack font-bold leading-tight max-w-[60px] m-auto"},Td={class:"iberojet-text text-center text-customBlack font-bold leading-tight max-w-[60px] m-auto"},kd={class:"flex flex-col"},Id={class:"sticky left-0 bg-white"},Md={class:"iberojet-text font-bold"},Od={key:0},Nd={key:0,class:"iberojet-small-text text-greyText"},Pd={class:"flex justify-center"},Bd={class:"flex justify-center"},Hd={class:"flex justify-center"},Fd={class:"mt-2 flex flex-col"},jd={class:"iberojet-small-text text-greyText"},Ld={class:"iberojet-small-text text-greyText"},$d={class:"iberojet-small-text text-greyText"},Pi="grid-cols-[200px_100px_100px_100px] grid md:grid-cols-[1fr_100px_100px_100px]",Ud=De({__name:"AmenitiesSidebar",props:{show:{type:Boolean},hasPremium:{type:Boolean}},setup(t){const e=t,{t:n}=Je(),r=Q(()=>ll.filter(o=>o.key!=="seat_confort"||e.hasPremium)),i=Q(()=>e.hasPremium?n("bundle.amenities.columns.premium"):n("bundle.amenities.columns.plus")),s=o=>e.hasPremium?o.plus||o.premiumOnly:o.plus,a=z(!1);return(o,l)=>{const d=Pl,c=na;return C(),he(c,{modelValue:h(a),"onUpdate:modelValue":l[0]||(l[0]=f=>Gt(a)?a.value=f:null),show:t.show,title:h(n)("bundle.amenities.title_services_onboard"),"trigger-text":h(n)("bundle.amenities.title"),"trigger-class":"pb-0"},{default:$e(()=>[y("div",Ad,[y("div",_d,[y("div",{class:ie([Pi,"pb-3 border-b border-lightGray"])},[l[1]||(l[1]=y("div",{class:"sticky left-0 bg-white"},null,-1)),y("p",xd,M(o.$t("bundle.amenities.columns.free")),1),y("p",Rd,M(o.$t("bundle.amenities.columns.comfort")),1),y("p",Td,M(h(i)),1)],2),y("div",kd,[(C(!0),R(Ee,null,Ie(h(r),f=>(C(),R("div",{key:f.key,class:ie([Pi,"items-center py-3 border-b border-lightGray"])},[y("div",Id,[y("p",Md,[je(M(o.$t(`bundle.amenities.${f.key}`)),1),f.footnote?(C(),R("sup",Od,M(f.footnote),1)):J("",!0)]),f.subtitleKey?(C(),R("p",Nd,M(o.$t(`bundle.amenities.${f.subtitleKey}`)),1)):J("",!0)]),y("div",Pd,[f.free?(C(),he(d,{key:0})):J("",!0)]),y("div",Bd,[f.comfort?(C(),he(d,{key:0})):J("",!0)]),y("div",Hd,[s(f)?(C(),he(d,{key:0})):J("",!0)])],2))),128))])])]),y("div",Fd,[y("p",jd,M(o.$t("bundle.amenities.footnote1")),1),y("p",Ld,M(o.$t("bundle.amenities.footnote2")),1),y("p",$d,M(o.$t("bundle.amenities.footnote3")),1)])]),_:1},8,["modelValue","show","title","trigger-text"])}}}),Wd={key:1,class:"mr-[1rem]"},zd=["data-bundle"],Vd={key:0,class:"flex items-center gap-2 bg-verdeAqua/15 px-4 py-2 text-sm font-medium leading-tight text-customBlack",role:"status","aria-live":"polite"},Gd={key:3,class:"flex !items-center !justify-center vuelosSelectAsiento !gap-3 md:!gap-2 w-full"},qd=De({__name:"Info",props:lt({fareDetails:{},flightLocale:{},currencyCode:{},passengers:{},route:{},flightExists:{type:Boolean},isFetchingFareDetails:{type:Boolean},routeDate:{}},{fare:{},fareModifiers:{},seat:{},seatModifiers:{}}),emits:lt(["isFetchingServices","error","startBundlesFetch"],["update:fare","update:seat"]),setup(t,{emit:e}){const{loggedIn:n}=$r(),r=t,i=e,s=jt(),{width:a}=tn(),{t:o,te:l,locale:d}=Je(),{userUidCookie:c}=Ft(),{logError:f}=Wn(),{checkTuristaPlusAvailability:g}=Ol(),{markServiceBundlesSessionRestored:u,shouldRestoreServiceBundlesSession:v,waitForFareQuotesPrefetch:m,withServiceBundlesRequest:b}=ta(),w=Wr("flight"),x=Zt(t,"fare"),P=Zt(t,"seat"),L=z(!1),N=z(!1),I=z(!1),E=z(null),_=z([]),B=z("idle");let ge=0;const we=Q(()=>_.value.filter(k=>!rt(k.codeType)||B.value!=="unavailable")),xe=k=>B.value==="loading"?rt(k):L.value,ye=Q(()=>_.value.some(k=>
1vl(k.codeType))),F=z(new Set),j=z(new Map),Z=k=>{if(typeof k=="string")return k.slice(0,10)},X=k=>{const S=k.routes?.[0],T=Z(S?.date);if(!S||!T)return null;const W=zr(d.value);if(!W)return null;const Y=k.routes.length>1,se=k.routes[1],Re=Y?Z(se?.date):void 0;return{currencyCode:k.currencyCode,promotionalCode:k.code,originCode:S.origin?.airportCode,date:T,destinationCode:S.destination?.destinationAirportCode,departureDate:T,arrivalDate:T,destinationArrivalDate:Re,destinationDepartureDate:Re,languageCode:W,adults:k.passengers.adults,children:k.passengers.children,infants:k.passengers.infants,uid:c.value,flightType:Y?"RT":"OW"}},be=(k,S)=>{k.routes.forEach((T,W)=>{T.fareDetails=S[W]})},te=async()=>{if(!v())return;const k=h(w);if(!k)return;const S=X(k);if(!S)return;const{data:T}=await $fetch(`${s.public.apiUrl}/api/fare-quotes/detail`,{params:S});be(k,T),u()},ee=k=>k?F.value.has(k):!1,oe=()=>r.fareDetails?.LFID??r.route?.fareDetails?.LFID,le=()=>{const k=r.route?.routeInfo?.currentSeat;if(N.value||!k?.codeType)return;P.value=k;const S=x.value?.fareTypeName;!S||S==="BASIC"||(F.value.add(k.codeType),j.value.set(k.codeType,S))},fe=()=>{if(!P.value?.codeType||!rt(P.value.codeType))return;F.value.delete(P.value.codeType),j.value.delete(P.value.codeType),P.value=_.value.find(S=>!rt(S.codeType));const k=r.fareDetails?.fareTypes.find(S=>S.fareTypeName==="BASIC");k&&(I.value=!0,x.value=k)},O=k=>{L.value=k,i("isFetchingServices",k)},$=(k,S)=>({languageCode:r.flightLocale,date:r.route?.date,logicalFlightID:S,originCode:r.route?.origin?.airportCode,destinationCode:r.route?.destination?.destinationAirportCode,currencyCode:r.currencyCode,fareBasisCode:k.fareBasisCode,fareClassCode:k.fareClassCode,adults:r.passengers.adults,children:r.passengers.children,infants:r.passengers.infants,uid:c.value}),A=async k=>{E.value&&E.value.abort();const S=new AbortController;E.value=S;const T=()=>S.signal.aborted;if(!await qe())return i("error","expiredSession"),null;if(T())return null;const Y=k||x.value;if(!Y?.fareTypeID||!r.fareDetails||!r.route?.fareDetails)return null;const se=r.route?.id;if(!se)return null;const Re=oe();return Re?await b(se,async()=>{O(!0);try{if(await m(),T()||(await te(),T()))return null;i("startBundlesFetch");const{data:nt}=await $fetch(`${s.public.apiUrl}/api/service-bundles`,{params:$(Y,Re),retry:!1,signal:S.signal});return T()?null:nt}catch(nt){if(T()||Ii(nt))return null;throw nt}finally{E.value===S&&(E.value=null,O(!1))}}):null},H=async k=>{const S=++ge;le();const T=await A(k);if(T==null)return!1;_.value=ul({bundles:T,fareDetails:r.fareDetails,currencyCode:r.currencyCode,freeEconomyTitle:o("seats.free_economy"),freeBlanketTitle:o("seats.free_blanket")});const W=_.value.find(Y=>rt(Y.codeType));if(!W)return!0;B.value="loading";try{const Y=h(w);if(!Y||!r.route)throw new Error("Missing flight for Turista Plus availability");const se=await g({flight:Y,route:r.route,bundle:W,fare:k||x.value,passengerCount:r.passengers.adults+r.passengers.children});S===ge&&(B.value=se?"available":"unavailable",se||fe())}catch(Y){S===ge&&(B.value="unavailable",fe(),f(Y,"turista-plus availability"))}finally{S===ge&&O(!1)}return!0},K=async k=>{if(xe(k.codeType)||!k.codeType)return!1;const S=k.codeType;if(P.value=k,F.value.has(S)){const T=j.value.get(S)||Dr(!0),W=Vs(r.fareDetails?.fareTypes,T);if(W)return await re(W,S)}else{const T=x.value?.fareTypeName;if(T&&T!=="BASIC"){const W=r.fareDetails?.fareTypes.find(Y=>Y.fareTypeName==="BASIC");if(W)return await re(W)}}return!0};Ne(x,async()=>{if(I.value){I.value=!1;return}x.value?.fareTypeID&&(r.fareDetails||r.route?.fareDetails)&&await H()}),Ne(()=>r.routeDate,()=>{x.value=void 0,_.value=[],F.value.clear(),j.value.clear()}),nn(async()=>{x.value?.fareTypeID&&(r.fareDetails||r.route?.fareDetails)&&await H(),!r.fareDetails&&!r.route?.fareDetails&&(_.value=[])});const ne=Q(()=>{const k=r.routeDate;if(!k?.lowestBasePriceWithTax||!k?.lowestFarePriceWithTax)return{hasDiscount:!1,discountPercentage:0,discount:0};const S=k.lowestFarePriceWithTax<k.lowestBasePriceWithTax,T=(k.lowestBasePriceWithTax-k.lowestFarePriceWithTax)/k.lowestBasePriceWithTax*100,W=k.lowestBasePriceWithTax-k.lowestFarePriceWithTax;return{hasDiscount:S,discountPercentage:T,discount:W}}),re=async(k,S)=>{const T=x.value,W=P.value;N.value=!0;try{if(I.value=!0,x.value=k,S){const se=_.value.find(Re=>Re.codeType===S);se&&(P.value=se)}if(!await H(k)||S&&rt(S)&&B.value==="unavailable")return!1;if(S){const se=_.value.find(Re=>Re.codeType===S);if(!se)return x.value=T,P.value=W,!1;P.value=se}return!0}catch(Y){return Ii(Y)||(x.value=T,P.value=W),!1}finally{N.value=!1}},U=(k,S,T)=>{if(!xe(S)&&S)if(k){F.value.add(S);const W=T||Dr(k);j.value.set(S,W)}else F.value.delete(S),j.value.delete(S)},Ce=k=>ml({seatCode:k,isChecked:ee(k),currentSeatCode:P.value?.codeType,currentFare:x.value,fareTypes:r.fareDetails?.fareTypes}),Ae=Q(()=>ir(r.fareDetails?.fareTypes,"ECONOMIC")),Ue=Q(()=>ir(r.fareDetails?.fareTypes,"PRO")),Ut=Q(()=>ir(r.fareDetails?.fareTypes,"TTOO")),{hasProFare:Wt,hasTtooFare:dn}=Yr(Q(()=>r.fareDetails)),ft=k=>fl({seatCode:k.codeType,isChecked:ee(k.codeType),fareName:j.value.get(k.codeType)});Ne(()=>r.fareDetails,k=>{if(!k?.fareTypes?.length||x.value?.fareTypeID)return;const S=r.route?.routeInfo?.extras?.fare?.fareTypeID,T=k.fareTypes.find(W=>W.fareTypeID===S);re(T||k.fareTypes[0])},{immediate:!0});const Kn=k=>{const S=Ce(k.codeType),T=ne.value.hasDiscount?ne.value.discount:0;return hl(S,k.amount,T)}
1,Jn=k=>{const S=Ce(k.codeType);return gl(S,k.amount)},er=k=>pl({seatCode:k,changesAndBaggageLabel:o("bundle.changesAndBaggage"),economicBasicDiff:Ae.value,proBasicDiff:Ue.value,ttooBasicDiff:Ut.value,hasProFare:Wt.value,hasTtooFare:dn.value}),tr=k=>{const S=k?.fareTypeName;if(!S)return"";const T=`fares.${S.toLowerCase()}`;return l(T)?o(T):S},ht=async(k,S)=>{await re(k,S)&&Ni.success(o("extras.fare_updated"),tr(k))},gt=async k=>{await K(k)&&Ni.success(o("extras.bundle_selected"),k?.description??"")};return(k,S)=>{const T=Rc,W=rn,Y=Il,se=Vc,Re=rd,nt=Cd,nr=Ud;return C(),R("section",null,[r.fareDetails&&r.fareDetails.departureDate&&r.fareDetails.arrivalDate?(C(),he(T,{key:0,"fare-details":r.fareDetails,route:r.route,locale:h(d),"flight-number":r.routeDate?.flightNumber},null,8,["fare-details","route","locale","flight-number"])):h(_).length?J("",!0):(C(),R("div",Wd,[q(W,{height:"8rem",style:{"flex-shrink":"0",width:"100%"}})])),h(we).length>0?(C(),R("div",{key:2,class:ie(["vuelosSelectAsiento",{"d-none":!x.value}]),"aria-label":"Selecciona el asiento"},[(C(!0),R(Ee,null,Ie(h(we),ce=>(C(),R("div",{key:ce.codeType,"data-bundle":ce.codeType,class:ie(["asiento flex flex-col bg-lightGreen group transition-colors duration-300",[{active:P.value?.codeType===ce.codeType},{"!bg-[#E8EFEE]":P.value?.codeType===ce.codeType},h(we).length===2?"!w-1/2":""]])},[y("div",{class:ie(["header transition-colors duration-300",[{"!bg-azulOscuro text-white":P.value?.codeType===ce.codeType},{"!bg-yellowPremium !text-azulOscuro":h(Gs)(ce.codeType)}]])},[y("span",null,M(ce.description)+" / ",1),q(Dt,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"opacity-0 -translate-y-1","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition-all duration-150 ease-in","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 translate-y-1",mode:"out-in"},{default:$e(()=>[!h(rt)(ce.codeType)||h(B)!=="loading"?(C(),R("span",{key:ft(ce),class:"inline-block"},M(ft(ce)),1)):J("",!0)]),_:2},1024)],2),q(Dt,cl({"enter-active-class":"overflow-hidden transition-all duration-300 ease-in-out motion-reduce:duration-0","leave-active-class":"overflow-hidden transition-all duration-300 ease-in-out motion-reduce:duration-0","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},dl(h(Bl))),{default:$e(()=>[h(rt)(ce.codeType)&&h(B)==="loading"?(C(),R("div",Vd,[S[0]||(S[0]=y("span",{class:"h-4 w-4 shrink-0 animate-spin rounded-full border-2 border-verdeAquaHover border-t-transparent motion-reduce:animate-none","aria-hidden":"true"},null,-1)),je(" "+M(k.$t("bundle.turistaPlusAvailability.checking")),1)])):J("",!0)]),_:2},1040),q(Y,{services:ce.services,"code-type":ft(ce),"fare-type":ce.codeType},null,8,["services","code-type","fare-type"]),(C(!0),R(Ee,null,Ie(er(ce.codeType),(zt,rr)=>(C(),he(se,{key:zt.type,"is-first":rr===0,option:zt,"seat-code":ce.codeType,"is-current-seat":P.value?.codeType===ce.codeType,"is-checked":ee(ce.codeType)&&h(j).get(ce.codeType)===zt.type,"checked-fare-type":h(j).get(ce.codeType),"currency-code":r.currencyCode,locale:h(d),"fare-details":r.fareDetails,"is-fetching":xe(ce.codeType),onChange:U,onFareChange:ht},null,8,["is-first","option","seat-code","is-current-seat","is-checked","checked-fare-type","currency-code","locale","fare-details","is-fetching"]))),128)),q(Re,{seat:ce,"fare-label":ft(ce),"is-selected":P.value?.codeType===ce.codeType,"show-included-message":ee(ce.codeType),"has-discount":h(ne).hasDiscount,"total-price":Kn(ce),"original-price":Jn(ce),"currency-code":r.currencyCode,locale:h(d),"is-fetching":xe(ce.codeType),onSelect:gt},null,8,["seat","fare-label","is-selected","show-included-message","has-discount","total-price","original-price","currency-code","locale","is-fetching"])],10,zd))),128))],2)):(C(),R("div",Gd,[(C(!0),R(Ee,null,Ie(Array(3),ce=>(C(),he(W,{key:ce,height:h(a)<768?"16rem":"700px",style:{width:"100%"}},null,8,["height"]))),128))])),q(nt,{show:!!(h(we).length>0&&h(n)),"fare-details":r.fareDetails,"currency-code":r.currencyCode},null,8,["show","fare-details","currency-code"]),q(nr,{show:!!h(we).length,"has-premium":h(ye)},null,8,["show","has-premium"])])}}}),Yd=Lt(qd,[["__scopeId","data-v-9cd73745"]]),Qd={key:0},Zd={key:1},Xd={class:"p-[20px] flex gap-2 border border-inactiveGrey mt-2"},Kd={class:"flex gap-2 items-center flex-1 min-w-0"},Jd={class:"p-[20px] flex gap-2 border border-inactiveGrey border-t-0"},eu={class:"vuelosInfo mx-auto pdd-15"},tu=De({__name:"Select",props:lt({route:{},dates:{},userDates:{},fareDetails:{},flightExists:{type:Boolean},isFetchingFareDetails:{type:Boolean},showSecondRoute:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:lt(["error","updateDates","dateChanged","isFetchingServices","fetchDates","routeDate","startBundlesFetch"],["update:modelValue"]),async setup(t,{expose:e,emit:n}){let r,i;const{locale:s}=Je(),a=Zt(t,"modelValue"),o=Vr(),{userUidCookie:l}=Ft(),d=jt(),c=o.query.hash,f=F=>c?`${F}-${c}-${t.route.id}`:`${F}-${t.route.id}`,g=_e(c?`extras-state-${c}`:"extras-state","$hzPLLP-i6a"),u=_e("extras-state"),v=z(t.dates?.length&&t.dates||[]),m=_e(f("routeDate"),()=>v.value.find(F=>F.departureDate.slice(0,10)===t.route.date?.slice(0,10)&&F.type===(t.route.id==1?"O":"R"))),b=_e(f("routeFare"),()=>t.fareDetails?.fareTypes?.find(F=>F.fareTypeID===t.route.routeInfo?.extras?.fare?.fareTypeID&&F.fareBasisCode===t.route.routeInfo?.extras?.fare?.fareBasisCode)||t.route.fareDetails?.fareTypes?.find(F=>F.fareTypeID===t.route.routeInfo?.extras?.fare?.fareTypeID&&F.fareBasisCode===t.route.routeInfo?.extras?.fare?.fareBasisCode)),w=_e(f("routeSeat"),()=>t.route.routeInfo?.currentSeat),x=_e(f("newInfo"),()=>{}),P=_e(`isFetching-${t.route.id}`,()=>!1),L=z(null),N=Q(()=>L.value?.lowestPrice??0),I=n,E=Wr("flight"),_=h(E),B=()=>{_&&(yl(_),g.value=void 0,u.value=void 0)},ge=F=>{const j=F.date,Z=bn(F.id,o);return j||Z||new Date().toISOString()},we=()=>{if(!_)return;const F=_.routes.length>1,j=ge(t.route),[Z,X]=j.toString().slice(0,7).split("-").map(Number)||[],be=new Date(Z,X-1,1),te=new Date(Z,X,0),ee=`${be.getFullYear()}
1-${String(be.getMonth()+1).padStart(2,"0")}-${String(be.getDate()).padStart(2,"0")}`,oe=`${te.getFullYear()}-${String(te.getMonth()+1).padStart(2,"0")}-${String(te.getDate()).padStart(2,"0")}`;return{currencyCode:_.currencyCode,promotionalCode:_.code,originCode:_.routes[0]?.origin?.airportCode,destinationCode:_.routes[0]?.destination?.destinationAirportCode,departureDate:ee,arrivalDate:oe,languageCode:s.value,adults:_.passengers?.adults,children:_.passengers?.children,infants:_.passengers?.infants,flightType:F?"RT":"OW",uid:l.value}},xe=async()=>{if(!v.value||!v.value.length)try{if(!await qe())throw I("error","expiredSession"),new Error("Expired session");const j=await $fetch(`${d.public.apiUrl}/api/fare-quotes`,{params:we()});if(j.data&&j.data.length){v.value=j.data,I("fetchDates",{routeId:t.route.id,dates:j.data});const Z=bn(t.route.id,o);!t.route.date&&Z&&v.value.some(X=>X.departureDate.slice(0,10)===Z.slice(0,10)&&X.type===(t.route.id==1?"O":"R"))&&(t.route.date=v.value.find(X=>X.departureDate.slice(0,10)===Z.slice(0,10)&&X.type===(t.route.id==1?"O":"R"))?.departureDate)}}catch{I("error")}};Ne(()=>t.route.date,F=>{F?m.value?.departureDate?.slice(0,10)!==F?.slice(0,10)&&(m.value=v.value.find(j=>j.departureDate.slice(0,10)===F?.slice(0,10)&&j.type===(t.route.id==1?"O":"R")),b.value=void 0):(m.value=void 0,b.value=void 0)},{immediate:!0}),Ne(m,async F=>{if(F){if(!P.value){const j=F.departureDate.slice(0,10);t.route.date=j,_.routes.length>1&&(t.route.id==1?(t.userDates.departure=j,I("updateDates",{departure:j,arrival:t.userDates.arrival})):I("updateDates",{departure:t.userDates.departure,arrival:j})),_.routes.find(Z=>Z.id==t.route.id).date=j,I("dateChanged",{routeId:t.route.id,date:j}),b.value=void 0}I("routeDate",m)}}),Ne(b,(F,j)=>{!F||!j||!(F.fareTypeID!==j.fareTypeID||F.fareBasisCode!==j.fareBasisCode)||B()}),Gr(()=>{const F=w.value,j=b.value;if(F&&F.logicalFlightID&&j&&j.fareTypeID){const Z=F.services?F.services.map(X=>X.standaloneServiceCode):[];x.value={id:0,currentSeat:{logicalFlightID:F.logicalFlightID,codeType:F.codeType,description:F.description,serviceId:F.serviceId,categoryId:F.categoryId,physicalFlightID:F.physicalFlightID,amount:F.amount,ptcid:F.ptcid,currencyCode:_.currencyCode,includedServices:Z},extras:{fare:{fareTypeID:j.fareTypeID,fareTypeName:j.fareTypeName,lowestFarePriceWithTax:j.lowestFarePriceWithTax,fareID:j.fareTypeID,FBCode:j.fareBasisCode,FCCode:j.fareClassCode,bundleCode:j.fareInfos?.[0]?.bundleCode??""}}}}}),Ne(()=>x.value,F=>{a.value={...a.value,...F}}),e({lowestPrice:N}),[r,i]=Ys(()=>xe()),await r,i();const ye=bn(t.route.id,o);if(!m.value&&ye){const F=v.value.find(j=>j.departureDate.slice(0,10)===ye.slice(0,10)&&j.type===(t.route.id==1?"O":"R"));F&&(m.value=F,t.route.date=F.departureDate)}return(F,j)=>{const Z=dc,X=Yd,be=rn;return C(),R("div",{class:ie(["vuelos vueloIda mt-2",{"md:!mt-16 mt-8":t.route.id===2}])},[q(Z,{ref_key:"dateSelectorRef",ref:L,modelValue:h(m),"onUpdate:modelValue":j[0]||(j[0]=te=>Gt(m)?m.value=te:null),"show-second-route":t.showSecondRoute,route:t.route,flight:h(_),dates:h(v),onError:j[1]||(j[1]=te=>I("error",te))},null,8,["modelValue","show-second-route","route","flight","dates"]),h(m)?.available&&(Number(t.route.id)===1||t.showSecondRoute)?(C(),R("div",Qd,[q(X,{seat:h(w),"onUpdate:seat":j[2]||(j[2]=te=>Gt(w)?w.value=te:null),fare:h(b),"onUpdate:fare":j[3]||(j[3]=te=>Gt(b)?b.value=te:null),"flight-locale":h(_).locale,passengers:h(_).passengers,"fare-details":t.fareDetails,origin:t.route.origin,destination:t.route.destination,"currency-code":h(_).currencyCode,route:t.route,"flight-exists":t.flightExists,"is-fetching-fare-details":t.isFetchingFareDetails,"route-date":h(m),onError:j[4]||(j[4]=te=>I("error",te)),onIsFetchingServices:j[5]||(j[5]=te=>I("isFetchingServices",te)),onStartBundlesFetch:j[6]||(j[6]=te=>I("startBundlesFetch"))},null,8,["seat","fare","flight-locale","passengers","fare-details","origin","destination","currency-code","route","flight-exists","is-fetching-fare-details","route-date"])])):h(m)?(C(),R("div",Zd,[y("div",Xd,[q(be,{height:"8rem",style:{"flex-shrink":"0",width:"100%"}}),y("div",Kd,[(C(!0),R(Ee,null,Ie(Array(3),te=>(C(),he(be,{key:te,height:"8rem",style:{flex:"1"}}))),128))])]),y("div",Jd,[(C(!0),R(Ee,null,Ie(Array(3),te=>(C(),he(be,{key:te,height:"10rem",style:{flex:"1"}}))),128))])])):J("",!0),yt(y("div",null,[y("p",eu,M(F.$t("flights.no_flight_selected")),1)],512),[[bt,!h(v)]])],2)}}}),nu=Lt(tu,[["__scopeId","data-v-d438731a"]]),ru={class:"dateSelector relative mb-2"},iu=["disabled"],su=["onClick"],au={class:"capitalize-first"},ou=["disabled"],lu={class:"flex items-center gap-2"},cu=De({__name:"DateSelector",props:{calendarMonth:{},route:{},month:{},flight:{}},emits:["date-click"],setup(t,{emit:e}){const{userUidCookie:n}=Ft(),r=Ur(),i=t,s=e,{locale:a}=Je(),{width:o}=tn(),l=jt(),d=`prev_${i.route.id}`,c=`next_${i.route.id}`,f=z(null),g=z(),u=z(),v=Qs(f,{loop:!1,slidesPerView:3,slidesPerGroup:1,watchSlidesProgress:!0,allowTouchMove:!1,breakpoints:{0:{slidesPerView:3},1024:{slidesPerView:7}}}),m=z(!1),b=z(!0),w=z(),x=z([]),P=z(0),L=async()=>new Promise(ee=>{const oe=()=>{v.instance.value?ee():setTimeout(oe,10)};oe()});nn(async()=>{const ee=i.calendarMonth?.slice(0,7)??i.month?.slice(0,7);ye(ee),await xe(),await L(),b.value=!1,P.value=v.instance.value?.activeIndex||0,v.
1instance.value?.on("slideChange",()=>{P.value=v.instance.value?.activeIndex||0,v.instance.value?.isEnd&&ye()}),i.calendarMonth?Z(i.calendarMonth.slice(0,7)):i.month?Z(i.month.slice(0,7)):Z(B.value[0])});const N=()=>o.value>1024?7:3,I=ee=>{if(!v.instance.value)return;const oe=v.instance.value.activeIndex,le=N(),fe=Math.max(0,X.value.length-le),O=Math.min(Math.max(oe+ee*le,0),fe);v.instance.value.slideTo(O)},E=()=>I(1),_=()=>I(-1),B=z([]),ge=()=>i.flight?.routes?.length?i.flight.routes.length>1?"RT":"OW":"",we=()=>({currencyCode:r.currency,originCode:i.route?.origin?.airportCode,destinationCode:i.route?.destination?.destinationAirportCode,departureDate:new Date().toISOString().slice(0,10),languageCode:a.value,promotionalCode:i.flight?.code,flightType:ge(),uid:n.value}),xe=async()=>{if(!m.value)try{m.value=!0,await $fetch(l.public.apiUrl+"/api/fare-quotes/public",{body:we(),method:"POST"}).then(function(ee){x.value=ee.data,m.value=!1})}catch{m.value=!1}},ye=ee=>{const oe=new Date,le=`${oe.getFullYear()}-${String(oe.getMonth()+1).padStart(2,"0")}`;let fe=B.value.length?B.value[B.value.length-1]:le;const O=i.calendarMonth?.slice(0,7)??i.month?.slice(0,7)??null;O&&O<le&&(fe=le);let $=14;if(ee&&ee>fe){const[ne,re]=fe.split("-").map(Number),[U,Ce]=ee.split("-").map(Number),Ae=(U-ne)*12+(Ce-re);$=Math.max(Ae+7,14)}const A=[],[H,K]=fe.split("-").map(Number);for(let ne=0;ne<$;ne++){const re=new Date(H,K-1+ne,1);A.push(`${re.getFullYear()}-${String(re.getMonth()+1).padStart(2,"0")}`)}B.value.push(...A)},F=ee=>{const[oe,le]=ee.split("-"),fe=new Date(parseInt(oe),parseInt(le)-1,1);return new Intl.DateTimeFormat(a.value,{month:"short"}).format(fe)},j=(ee,oe,le)=>{const fe=Math.floor(le/2);if(ee<fe)return 0;const O=oe-le;return ee>O+fe?Math.max(0,O):ee-fe},Z=async ee=>{if(w.value=ee,s("date-click",w.value),await Lr(),v.instance.value){const oe=X.value.findIndex(le=>le===w.value);if(oe!==-1){const le=j(oe,X.value.length,N());v.instance.value.slideTo(le)}}},X=Q(()=>x.value.length?B.value.filter(ee=>x.value.some(oe=>oe.date.slice(0,7)==ee)):B.value),be=Q(()=>P.value===0),te=Q(()=>{if(!v.instance.value)return!1;const ee=N(),oe=Math.max(0,X.value.length-ee);return P.value>=oe});return(ee,oe)=>{const le=ea,fe=bl,O=rn;return C(),R("section",null,[y("div",ru,[q(fe,null,{default:$e(()=>[yt(y("button",{id:d,ref_key:"prevEl",ref:u,class:ie(["navigationBtn absolute h-full px-4 top-[50%] translate-y-[-50%] left-0 text-[color:var(--verdeAqua)] text-2xl",{"opacity-20 pointer-events-none":h(be)}]),disabled:h(be),onClick:oe[0]||(oe[0]=Xt($=>_(),["prevent"]))},[q(le,{"is-disabled":h(be)},null,8,["is-disabled"])],10,iu),[[bt,!h(b)]]),yt(y("swiper-container",{ref_key:"swcontainer",ref:f,init:!1},[(C(!0),R(Ee,null,Ie(h(X),$=>(C(),R("swiper-slide",{key:$},[y("button",{class:ie(["flex flex-col items-center justify-center w-full btn-calendartop",[h(w)===$?"border-verdeAqua currentBtn":"border-transparent"]]),onClick:A=>Z($)},[y("span",au,M(F($)),1),y("span",null,M($.slice(0,4)),1)],10,su)]))),128))],512),[[bt,h(X).length]]),yt(y("button",{id:c,ref_key:"nextEl",ref:g,class:ie(["navigationBtn absolute h-full px-4 top-[50%] translate-y-[-50%] right-0 text-[color:var(--verdeAqua)] text-2xl",{"opacity-20 pointer-events-none":h(te)}]),disabled:h(te),onClick:oe[1]||(oe[1]=Xt($=>E(),["prevent"]))},[q(le,{"is-next":"","is-disabled":h(te)},null,8,["is-disabled"])],10,ou),[[bt,!h(b)]])]),_:1})]),yt(y("div",lu,[q(O,{height:"2.5rem",width:"2.5rem",style:{borderRadius:"1000px",minWidth:"2.5rem"}}),(C(!0),R(Ee,null,Ie(Array(6),$=>(C(),he(O,{key:$,height:"4.5rem",width:"9rem"}))),128)),q(O,{height:"2.5rem",width:"2.5rem",style:{borderRadius:"1000px",minWidth:"2.5rem"}})],512),[[bt,!h(X).length]])])}}}),du={class:"grid grid-cols-7 gap-1 md:gap-3 mb-4"},uu=De({__name:"Skeleton",setup(t){const{width:e}=tn(),n=Q(()=>e.value>1100?"6rem":e.value>1e3?"5rem":e.value>900?"4rem":"3rem");return(r,i)=>{const s=rn;return C(),R("section",du,[i[0]||(i[0]=y("div",{class:"col-span-3"},null,-1)),(C(),R(Ee,null,Ie(31,a=>q(s,{key:a,height:h(n),width:"100%",style:{borderRadius:"10px"}},null,8,["height"])),64))])}}});var zn,V,ra,ia,Pt,vt,Bi,sa,aa,xn={},oa=[],fu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function it(t,e){for(var n in e)t[n]=e[n];return t}function la(t){var e=t.parentNode;e&&e.removeChild(t)}function p(t,e,n){var r,i,s,a={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:a[s]=e[s];if(arguments.length>2&&(a.children=arguments.length>3?zn.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)a[s]===void 0&&(a[s]=t.defaultProps[s]);return En(t,a,r,i,null)}function En(t,e,n,r,i){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++ra};return i==null&&V.vnode!=null&&V.vnode(s),s}function Me(){return{current:null}}function me(t){return t.children}function hu(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||Rn(t,s,null,n[s],r);for(s in e)i&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===e[s]||Rn(t,s,e[s],n[s],r)}function Hi(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||fu.test(e)?n:n+"px"}function Rn(t,e,n,r,i){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Hi(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Hi(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r||t.addEventListener(e,s?ji:Fi,s):t.removeEventListener(e,s?ji:Fi,s);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function Fi(t){Pt=!0;try{return this.l[t.type+!1](V.event?V.event(t):t)}finally{Pt=!1}}function ji(t){Pt=!0;try{return this.l[t.type+!0](V.event?V.event(t):t)}finally{Pt=!1}}function Pe(t,e){this.props=t,this.context=e}function Kt(t,e){if(e==null)return t.__?Kt(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?Kt(t):null}function ca(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return ca(t)}}function gu(t){Pt?setTimeout(t):sa(t)}function Cr(t){(!t.__d&&(t.__d=!0)&&vt.push(t)&&!Tn.__r++||Bi!==V.debounceRendering)&&((Bi=V.debounceRendering)||gu)(Tn)}function Tn(){var t,e,n,r,i,s,a,o;for(vt.sort(function(l,d){return l.__v.__b-d.__v.__b});t=vt.shift();)t.__d&&(e=vt.length,r=void 0,i=void 0,a=(s=(n=t).__v).__e,(o=n.__P)&&(r=[],(i=it({},s)).__v=s.__v+1,Qr(o,s,i,n.__n,o.ownerSVGElement!==void 0,s.__h!=null?[a]:null,r,a??Kt(s),s.__h),ga(r,s),s.__e!=a&&ca(s)),vt.length>e&&vt.sort(function(l,d){return l.__v.__b-d.__v.__b}));Tn.__r=0}function da(t,e,n,r,i,s,a,o,l,d){var c,f,g,u,v,m,b,w=r&&r.__k||oa,x=w.length;
vendor: 12,723 bytes, line 1
1for(n.__k=[],c=0;c<e.length;c++)if((u=n.__k[c]=(u=e[c])==null||typeof u=="boolean"?null:typeof u=="string"||typeof u=="number"||typeof u=="bigint"?En(null,u,null,null,u):Array.isArray(u)?En(me,{children:u},null,null,null):u.__b>0?En(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):u)!=null){if(u.__=n,u.__b=n.__b+1,(g=w[c])===null||g&&u.key==g.key&&u.type===g.type)w[c]=void 0;else for(f=0;f<x;f++){if((g=w[f])&&u.key==g.key&&u.type===g.type){w[f]=void 0;break}g=null}Qr(t,u,g=g||xn,i,s,a,o,l,d),v=u.__e,(f=u.ref)&&g.ref!=f&&(b||(b=[]),g.ref&&b.push(g.ref,null,u),b.push(f,u.__c||v,u)),v!=null?(m==null&&(m=v),typeof u.type=="function"&&u.__k===g.__k?u.__d=l=ua(u,l,t):l=fa(t,u,g,w,v,l),typeof n.type=="function"&&(n.__d=l)):l&&g.__e==l&&l.parentNode!=t&&(l=Kt(g))}for(n.__e=m,c=x;c--;)w[c]!=null&&(typeof n.type=="function"&&w[c].__e!=null&&w[c].__e==n.__d&&(n.__d=ha(r).nextSibling),ma(w[c],w[c]));if(b)for(c=0;c<b.length;c++)pa(b[c],b[++c],b[++c])}function ua(t,e,n){for(var r,i=t.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=t,e=typeof r.type=="function"?ua(r,e,n):fa(n,r,r,i,r.__e,e));return e}function kn(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){kn(n,e)}):e.push(t)),e}function fa(t,e,n,r,i,s){var a,o,l;if(e.__d!==void 0)a=e.__d,e.__d=void 0;else if(n==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==t)t.appendChild(i),a=null;else{for(o=s,l=0;(o=o.nextSibling)&&l<r.length;l+=1)if(o==i)break e;t.insertBefore(i,s),a=s}return a!==void 0?a:i.nextSibling}function ha(t){var e,n,r;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(r=ha(n)))return r}return null}function Qr(t,e,n,r,i,s,a,o,l){var d,c,f,g,u,v,m,b,w,x,P,L,N,I,E,_=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,o=e.__e=n.__e,e.__h=null,s=[o]),(d=V.__b)&&d(e);try{e:if(typeof _=="function"){if(b=e.props,w=(d=_.contextType)&&r[d.__c],x=d?w?w.props.value:d.__:r,n.__c?m=(c=e.__c=n.__c).__=c.__E:("prototype"in _&&_.prototype.render?e.__c=c=new _(b,x):(e.__c=c=new Pe(b,x),c.constructor=_,c.render=mu),w&&w.sub(c),c.props=b,c.state||(c.state={}),c.context=x,c.__n=r,f=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),_.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=it({},c.__s)),it(c.__s,_.getDerivedStateFromProps(b,c.__s))),g=c.props,u=c.state,c.__v=e,f)_.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(_.getDerivedStateFromProps==null&&b!==g&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(b,x),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(b,c.__s,x)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(c.props=b,c.state=c.__s,c.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(B){B&&(B.__=e)}),P=0;P<c._sb.length;P++)c.__h.push(c._sb[P]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(b,c.__s,x),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(g,u,v)})}if(c.context=x,c.props=b,c.__P=t,L=V.__r,N=0,"prototype"in _&&_.prototype.render){for(c.state=c.__s,c.__d=!1,L&&L(e),d=c.render(c.props,c.state,c.context),I=0;I<c._sb.length;I++)c.__h.push(c._sb[I]);c._sb=[]}else do c.__d=!1,L&&L(e),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++N<25);c.state=c.__s,c.getChildContext!=null&&(r=it(it({},r),c.getChildContext())),f||c.getSnapshotBeforeUpdate==null||(v=c.getSnapshotBeforeUpdate(g,u)),E=d!=null&&d.type===me&&d.key==null?d.props.children:d,da(t,Array.isArray(E)?E:[E],e,n,r,i,s,a,o,l),c.base=e.__e,e.__h=null,c.__h.length&&a.push(c),m&&(c.__E=c.__=null),c.__e=!1}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=pu(n.__e,e,n,r,i,s,a,l);(d=V.diffed)&&d(e)}catch(B){e.__v=null,(l||s!=null)&&(e.__e=o,e.__h=!!l,s[s.indexOf(o)]=null),V.__e(B,e,n)}}function ga(t,e){V.__c&&V.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){V.__e(r,n.__v)}})}function pu(t,e,n,r,i,s,a,o){var l,d,c,f=n.props,g=e.props,u=e.type,v=0;if(u==="svg"&&(i=!0),s!=null){for(;v<s.length;v++)if((l=s[v])&&"setAttribute"in l==!!u&&(u?l.localName===u:l.nodeType===3)){t=l,s[v]=null;break}}if(t==null){if(u===null)return document.createTextNode(g);t=i?document.createElementNS("http://www.w3.org/2000/svg",u):document.createElement(u,g.is&&g),s=null,o=!1}if(u===null)f===g||o&&t.data===g||(t.data=g);else{if(s=s&&zn.call(t.childNodes),d=(f=n.props||xn).dangerouslySetInnerHTML,c=g.dangerouslySetInnerHTML,!o){if(s!=null)for(f={},v=0;v<t.attributes.length;v++)f[t.attributes[v].name]=t.attributes[v].value;(c||d)&&(c&&(d&&c.__html==d.__html||c.__html===t.innerHTML)||(t.innerHTML=c&&c.__html||""))}if(hu(t,g,f,i,o),c)e.__k=[];else if(v=e.props.children,da(t,Array.isArray(v)?v:[v],e,n,r,i&&u!=="foreignObject",s,a,s?s[0]:n.__k&&Kt(n,0),o),s!=null)for(v=s.length;v--;)s[v]!=null&&la(s[v]);o||("value"in g&&(v=g.value)!==void 0&&(v!==t.value||u==="progress"&&!v||u==="option"&&v!==f.value)&&Rn(t,"value",v,f.value,!1),"checked"in g&&(v=g.checked)!==void 0&&v!==t.checked&&Rn(t,"checked",v,f.checked,!1))}return t}function pa(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){V.__e(r,n)}}function ma(t,e,n){var r,i;if(V.unmount&&V.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||pa(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){V.__e(s,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&ma(r[i],e,n||typeof t.type!="function");n||t.__e==null||la(t.__e),t.__=t.__e=t.__d=void 0}function mu(t,e,n){return this.constructor(t,n)}function Jt(t,e,n){var r,i,s;V.__&&V.__(t,e),i=(r=!1)?null:e.__k,s=[],Qr(e,t=e.__k=p(me,null,[t]),i||xn,xn,e.ownerSVGElement!==void 0,i?null:e.firstChild?zn.call(e.childNodes):null,s,i?i.__e:e.firstChild,r),ga(s,t)}function vu(t,e){var n={__c:e="__cC"+aa++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&i.some(function(o){o.__e=!0,Cr(o)})},this.sub=function(a){i.push(a);var o=a.componentWillUnmount;a.componentWillUnmount=function(){i.splice(i.indexOf(a),1),o&&o.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}zn=oa.slice,V={__e:function(t,e,n,r){for(var i,s,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),a=i.__d),a)return i.__E=i}catch(o){t=o}throw t}},ra=0,ia=function(t){return t!=null&&t.constructor===void 0},Pt=!1,Pe.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=it({},this.state),typeof t=="function"&&(t=t(it({},n),this.props)),t&&it(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Cr(this))},Pe.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Cr(this))},Pe.prototype.render=me,vt=[],sa=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Tn.__r=0,aa=0;var ze,sr,Li,va=[],ar=[],$i=V.__b,Ui=V.__r,Wi=V.diffed,zi=V.__c,Vi=V.unmount;function yu(){for(var t;t=va.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Dn),t.__H.__h.forEach(Ar),t.__H.__h=[]}catch(e){t.__H.__h=[],V.__e(e,t.__v)}}V.__b=function(t){ze=null,$i&&$i(t)},V.__r=function(t){Ui&&Ui(t);var e=(ze=t.__c).__H;e&&(sr===ze?(e.__h=[],ze.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ar,n.__N=n.i=void 0})):(e.__h.forEach(Dn),e.__h.forEach(Ar),e.__h=[])),sr=ze},V.diffed=function(t){Wi&&Wi(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(va.push(e)!==1&&Li===V.requestAnimationFrame||((Li=V.requestAnimationFrame)||bu)(yu)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ar&&(n.__=n.__V),n.i=void 0,n.__V=ar})),sr=ze=null},V.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Dn),n.__h=n.__h.filter(function(r){return!r.__||Ar(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],V.__e(r,n.__v)}}),zi&&zi(t,e)},V.unmount=function(t){Vi&&Vi(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Dn(r)}catch(i){e=i}}),n.__H=void 0,e&&V.__e(e,n.__v))};var Gi=typeof requestAnimationFrame=="function";function bu(t){var e,n=function(){clearTimeout(r),Gi&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Gi&&(e=requestAnimationFrame(n))}function Dn(t){var e=ze,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),ze=e}function Ar(t){var e=ze;t.__c=t.__(),ze=e}function Su(t,e){for(var n in e)t[n]=e[n];return t}function qi(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function Yi(t){this.props=t}(Yi.prototype=new Pe).isPureReactComponent=!0,Yi.prototype.shouldComponentUpdate=function(t,e){return qi(this.props,t)||qi(this.state,e)};var Qi=V.__b;V.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Qi&&Qi(t)};var Eu=V.__e;V.__e=function(t,e,n,r){if(t.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}Eu(t,e,n,r)};var Zi=V.unmount;function ya(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=Su({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return ya(r,e,n)})),t}function ba(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return ba(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function or(){this.__u=0,this.t=null,this.__b=null}function Sa(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function un(){this.u=null,this.o=null}V.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Zi&&Zi(t)},(or.prototype=new Pe).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=Sa(r.__v),s=!1,a=function(){s||(s=!0,n.__R=null,i?i(o):o())};n.__R=a;var o=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=ba(d,d.__c.__P,d.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}},l=e.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(a,a)},or.prototype.componentWillUnmount=function(){this.t=[]},or.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ya(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&p(me,null,t.fallback);return i&&(i.__h=null),[p(me,null,e.__a?null:t.children),i]};var Xi=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Du(t){return this.getChildContext=function(){return t.context},t.children}function wu(t){var e=this,n=t.i;e.componentWillUnmount=function(){Jt(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),Jt(p(Du,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Cu(t,e){var n=p(wu,{__v:t,i:e});return n.containerInfo=e,n}(un.prototype=new Pe).__a=function(t){var e=this,n=Sa(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),Xi(e,t,r)):i()};n?n(s):s()}},un.prototype.render=function(t){this.u=null,this.o=new Map;var e=kn(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},un.prototype.componentDidUpdate=un.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Xi(t,n,e)})};var Au=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,_u=/^(?: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]/,xu=typeof document<"u",Ru=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Pe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Pe.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]}
1,set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Ki=V.event;function Tu(){}function ku(){return this.cancelBubble}function Iu(){return this.defaultPrevented}V.event=function(t){return Ki&&(t=Ki(t)),t.persist=Tu,t.isPropagationStopped=ku,t.isDefaultPrevented=Iu,t.nativeEvent=t};var Ji={configurable:!0,get:function(){return this.class}},es=V.vnode;V.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var s in r={},n){var a=n[s];xu&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in n&&a==null||(s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!Ru(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&_u.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():a===null&&(a=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=a)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=kn(n.children).forEach(function(o){o.props.selected=r.value.indexOf(o.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=kn(n.children).forEach(function(o){o.props.selected=r.multiple?r.defaultValue.indexOf(o.props.value)!=-1:r.defaultValue==o.props.value})),t.props=r,n.class!=n.className&&(Ji.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Ji))}t.$$typeof=Au,es&&es(t)};var ts=V.__r;V.__r=function(t){ts&&ts(t),t.__c};const Ea=[],_r=new Map;function Zr(t){Ea.push(t),_r.forEach(e=>{wa(e,t)})}function Mu(t){t.isConnected&&t.getRootNode&&Da(t.getRootNode())}function Da(t){let e=_r.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=Nu();n&&(e.nonce=n);const r=t===document?document.head:t,i=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,i)}_r.set(t,e),Ou(e)}}function Ou(t){for(const e of Ea)wa(t,e)}function wa(t,e){const{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((i,s)=>{i=i.trim(),i&&n.insertRule(i+"}",r+s)})}let lr;function Nu(){return lr===void 0&&(lr=Pu()),lr}function Pu(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&Da(document);var Bu=':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{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/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyY
1iDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/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;-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{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
vendor: 8,348 bytes, line 1
1;-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)}';
1Zr(Bu);class Xr{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),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 Kr(t){t.parentNode&&t.parentNode.removeChild(t)}function Te(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Hu(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function Hu(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function Fu(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let i=0;i<n.length;i+=1){let s=n[i].querySelectorAll(e);for(let a=0;a<s.length;a+=1)r.push(s[a])}return r}const ju=/(top|left|right|bottom|width|height)$/i;function qt(t,e){for(let n in e)Ca(t,n,e[n])}function Ca(t,e,n){n==null?t.style[e]="":typeof n=="number"&&ju.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function Aa(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}let ns=0;function Vn(){return ns+=1,"fc-dom-"+ns}function Gn(t){t.preventDefault()}function Lu(t,e){return n=>{let r=Te(n.target,t);r&&e.call(r,n,r)}}function _a(t,e,n,r){let i=Lu(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function $u(t,e,n,r){let i;return _a(t,"mouseover",e,(s,a)=>{if(a!==i){i=a,n(s,a);let o=l=>{i=null,r(l,a),a.removeEventListener("mouseleave",o)};a.addEventListener("mouseleave",o)}})}const rs=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Uu(t,e){let n=r=>
vendor: 25,184 bytes, line 1
1{e(r),rs.forEach(i=>{t.removeEventListener(i,n)})};rs.forEach(r=>{t.addEventListener(r,n)})}function xa(t){return Object.assign({onClick:t},Ra(t))}function Ra(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let is=0;function _t(){return is+=1,String(is)}function Jr(){document.body.classList.add("fc-not-allowed")}function ei(){document.body.classList.remove("fc-not-allowed")}function Wu(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",Gn)}function zu(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",Gn)}function Vu(t){t.addEventListener("contextmenu",Gn)}function Gu(t){t.removeEventListener("contextmenu",Gn)}function qu(t){let e=[],n=[],r,i;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;r<n.length;r+=1)i=n[r],typeof i=="string"?e.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&e.push({func:i});return e}function Yu(t,e,n){let r,i;for(r=0;r<n.length;r+=1)if(i=Qu(t,e,n[r]),i)return i;return 0}function Qu(t,e,n){return n.func?n.func(t,e):Zu(t[n.field],e[n.field])*(n.order||1)}function Zu(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function Mt(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function Yt(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function Xu(t,e){return t-e}function wn(t){return t%1===0}function Ku(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const ss=["years","months","days","milliseconds"],Ju=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ae(t,e){return typeof t=="string"?ef(t):typeof t=="object"&&t?as(t):typeof t=="number"?as({[e||"milliseconds"]:t}):null}function ef(t){let e=Ju.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function as(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function tf(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function xr(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function nf(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function rf(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function sf(t){return Ot(t)/365}function af(t){return Ot(t)/30}function Ot(t){return Le(t)/864e5}function Le(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function ti(t,e){let n=null;for(let r=0;r<ss.length;r+=1){let i=ss[r];if(e[i]){let s=t[i]/e[i];if(!wn(s)||n!==null&&n!==s)return null;n=s}else if(t[i])return null}return n}function Rr(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function ct(t,e,n){if(t===e)return!0;let r=t.length,i;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(t[i],e[i]):t[i]===e[i]))return!1;return!0}const of=["sun","mon","tue","wed","thu","fri","sat"];function os(t,e){let n=st(t);return n[2]+=e*7,Oe(n)}function ke(t,e){let n=st(t);return n[2]+=e,Oe(n)}function dt(t,e){let n=st(t);return n[6]+=e,Oe(n)}function lf(t,e){return xt(t,e)/7}function xt(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function cf(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function df(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function uf(t,e){return(e.valueOf()-t.valueOf())/1e3}function ff(t,e){let n=pe(t),r=pe(e);return{years:0,months:0,days:Math.round(xt(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function hf(t,e){let n=In(t,e);return n!==null&&n%7===0?n/7:null}function In(t,e){return at(t)===at(e)?Math.round(xt(t,e)):null}function pe(t){return Oe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function gf(t){return Oe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function pf(t){return Oe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function mf(t){return Oe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function vf(t,e,n){let r=t.getUTCFullYear(),i=cr(t,r,e,n);if(i<1)return cr(t,r-1,e,n);let s=cr(t,r+1,e,n);return s>=1?Math.min(i,s):i}function cr(t,e,n,r){let i=Oe([e,0,1+yf(e,n,r)]),s=pe(t),a=Math.round(xt(i,s));return Math.floor(a/7)+1}function yf(t,e,n){let r=7+e-n;return-((7+Oe([t,0,r]).getUTCDay()-e)%7)+r-1}function ls(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function cs(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function st(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Oe(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function Ta(t){return!isNaN(t.valueOf())}function at(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function ka(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",ri(e,!0)))),r}function ni(t){return t.toISOString().replace(/T.*$/,"")}function bf(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function Sf(t){return Mt(t.getUTCHours(),2)+":"+Mt(t.getUTCMinutes(),2)+":"+Mt(t.getUTCSeconds(),2)}function ri(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+Mt(i,2)}:${Mt(s,2)}`:`GMT${n}${i}${s?`:${Mt(s,2)}`:""}`}function G(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!ct(r,s)){let a=t.apply(this,s);(!e||!e(a,i))&&(i=a)}return r=s,i}}function Cn(t,e,n){let r,i;return s=>(r?Ve(r,s)||(i=t.call(this,s)):i=t.call(this,s),r=s,i)}const ds={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Mn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},fn=/\s*([ap])\.?m\.?/i,Ef=/,/g,Df=/\s+/g,wf=/\u200e/g,Cf=/UTC|GMT/;class Af{constructor(e){let n={},r={},i=0;for(let s in e)s in ds?(r[s]=e[s],i=Math.max(ds[s],i)):(n[s]=e[s],s in Mn&&(i=Math.max(Mn[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=G(us)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:a}=this,o=If(e.marker,n.marker,r.calendarSystem);if(!o)return this.format(e,r);let l=o;l>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(l=1);let d=this.format(e,r),c=this.format(n,r);if(d===c)return d;let f=Mf(s,l),g=us(f,a,r),u=g(e),v=g(n),m=Of(d,u,c,v),b=a.separator||i||r.defaultSeparator||"";return m?m.before+u+b+v+m.after:d+b+c}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 us(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>ri(i.timeZoneOffset):r===0&&e.week?i=>kf(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):_f(t,e,n)}function _f(t,e,n){t=Object.assign({},t),e=Object.assign({},e),xf(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),i;if(e.omitZeroMinute){let s=Object.assign({},t);delete s.minute,i=new Intl.DateTimeFormat(n.locale.codes,s)}return s=>{let{marker:a}=s,o;i&&!a.getUTCMinutes()?o=i:o=r;let l=o.format(a);return Rf(l,s,t,e,n)}}function xf(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function Rf(t,e,n,r,i){return t=t.replace(wf,""),n.timeZoneName==="short"&&(t=Tf(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":ri(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(Ef,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(fn,"").trim():r.meridiem==="narrow"?t=t.replace(fn,(s,a)=>a.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(fn,(s,a)=>`${a.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(fn,s=>s.toLocaleLowerCase())),t=t.replace(Df," "),t=t.trim(),t}function Tf(t,e){let n=!1;return t=t.replace(Cf,()=>(n=!0,e)),n||(t+=` ${e}`),t}function kf(t,e,n,r,i){let s=[];return i==="long"?s.push(n):(i==="short"||i==="narrow")&&s.push(e),(i==="long"||i==="short")&&s.push(" "),s.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&s.reverse(),s.join("")}function If(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:at(t)!==at(e)?1:0}function Mf(t,e){let n={};for(let r in t)(!(r in Mn)||Mn[r]<=e)&&(n[r]=t[r]);return n}function Of(t,e,n,r){let i=0;for(;i<t.length;){let s=t.indexOf(e,i);if(s===-1)break;let a=t.substr(0,s);i=s+e.length;let o=t.substr(i),l=0;for(;l<n.length;){let d=n.indexOf(r,l);if(d===-1)break;let c=n.substr(0,d);l=d+r.length;let f=n.substr(l);if(a===c&&o===f)return{before:a,after:o}}}return null}function fs(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.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 On(t,e,n,r){let i=fs(t,n.calendarSystem),s=e?fs(e,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Nf{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,On(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,On(e,n,r,i))}}class Pf{constructor(e){this.func=e}format(e,n,r){return this.func(On(e,null,n,r))}formatRange(e,n,r,i){return this.func(On(e,n,r,i))}}function Se(t){return typeof t=="object"&&t?new Af(t):typeof t=="string"?new Nf(t):typeof t=="function"?new Pf(t):null}const hs={navLinkDayClick:D,navLinkWeekClick:D,duration:ae,bootstrapFontAwesome:D,buttonIcons:D,customButtons:D,defaultAllDayEventDuration:ae,defaultTimedEventDuration:ae,nextDayThreshold:ae,scrollTime:ae,scrollTimeReset:Boolean,slotMinTime:ae,slotMaxTime:ae,dayPopoverFormat:Se,slotDuration:ae,snapDuration:ae,headerToolbar:D,footerToolbar:D,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Se,dayHeaderClassNames:D,dayHeaderContent:D,dayHeaderDidMount:D,dayHeaderWillUnmount:D,dayCellClassNames:D,dayCellContent:D,dayCellDidMount:D,dayCellWillUnmount:D,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:D,weekNumbers:Boolean,weekNumberClassNames:D,weekNumberContent:D,weekNumberDidMount:D,weekNumberWillUnmount:D,editable:Boolean,viewClassNames:D,viewDidMount:D,viewWillUnmount:D,nowIndicator:Boolean,nowIndicatorClassNames:D,nowIndicatorContent:D,nowIndicatorDidMount:D,nowIndicatorWillUnmount:D,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:D,locale:D,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:D,eventOrder:qu,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:D,contentHeight:D,direction:String,weekNumberFormat:Se,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:D,initialDate:D,now:D,eventDataTransform:D,stickyHeaderDates:D,stickyFooterScrollbar:D,viewHeight:D,defaultAllDay:Boolean,eventSourceFailure:D,eventSourceSuccess:D,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:D,eventConstraint:D,eventAllow:D,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:D,eventContent:D,eventDidMount:D,eventWillUnmount:D,selectConstraint:D,selectOverlap:D,selectAllow:D,droppable:Boolean,unselectCancel:String,slotLabelFormat:D,slotLaneClassNames:D,slotLaneContent:D,slotLaneDidMount:D,slotLaneWillUnmount:D,slotLabelClassNames:D,slotLabelContent:D,slotLabelDidMount:D,slotLabelWillUnmount:D,dayMaxEvents:D,dayMaxEventRows:D,dayMinWidth:Number,slotLabelInterval:ae,allDayText:String,allDayClassNames:D,allDayContent:D,allDayDidMount:D,allDayWillUnmount:D,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Se,rerenderDelay:Number,moreLinkText:D,moreLinkHint:D,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:D,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:ae,hiddenDays:D,fixedWeekCount:Boolean,validRange:D,visibleRange:D,titleFormat:D,eventInteractive:Boolean,noEventsText:String,viewHint:D,navLinkHint:D,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:D,moreLinkClassNames:D,moreLinkContent:D,moreLinkDidMount:D,moreLinkWillUnmount:D,monthStartFormat:Se,handleCustomRendering:D,customRenderingMetaMap:D,customRenderingReplaces:Boolean},Qt={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"}},gs={datesSet:D,eventsSet:D,eventAdd:D,eventChange:D,eventRemove:D,windowResize:D,eventClick:D,eventMouseEnter:D,eventMouseLeave:D,select:D,unselect:D,loading:D,_unmount:D,_beforeprint:D,_afterprint:D,_noEventDrop:D,_noEventResize:D,_resize:D,_scrollRequest:D},ps={buttonText:D,buttonHints:D,views:D,plugins:D,initialEvents:D,events:D,eventSources:D},pt={headerToolbar:mt,footerToolbar:mt,buttonText:mt,buttonHints:mt,buttonIcons:mt,dateIncrement:mt,plugins:hn,events:hn,eventSources:hn,resources:hn};function mt(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?Ve(t,e):t===e}function hn(t,e){return Array.isArray(t)&&Array.isArray(e)?ct(t,e):t===e}const Bf={type:String,component:D,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:D,usesMinMaxTime:Boolean,classNames:D,content:D,didMount:D,willUnmount:D};function dr(t){return si(t,pt)}function ii(t,e){let n={},r={};for(let i in e)i in t&&(n[i]=e[i](t[i]));for(let i in t)i in e||(r[i]=t[i]);return{refined:n,extra:r}}function D(t){return t}const{hasOwnProperty:Nn}=Object.prototype;function si(t,e){let n={};if(e){for(let r in e)if(e[r]===mt){let i=[];for(let s=t.length-1;s>=0;s-=1){let a=t[s][r];if(typeof a=="object"&&a)i.unshift(a);else if(a!==void 0){n[r]=a;break}}i.length&&(n[r]=si(i))}}for(let r=t.length-1;r>=0;r-=1){let i=t[r];for(let s in i)s in n||(n[s]=i[s])}return n}function wt(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function Xe(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function Ia(t){let e={};for(let n of t)e[n]=!0;return e}function ai(t){let e=[];for(let n in t)e.push(t[n]);return e}function Ve(t,e){if(t===e)return!0;for(let n in t)if(Nn.call(t,n)&&!(n in e))return!1;for(let n in e)if(Nn.call(e,n)&&t[n]!==e[n])return!1;return!0}const Hf=/^on[A-Z]/;function Ff(t,e){const n=Tr(t,e);for(let r of n)if(!Hf.test(r))return!1;return!0}function Tr(t,e){let n=[];for(let r in t)Nn.call(t,r)&&(r in e||n.push(r));for(let r in e)Nn.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function ur(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&jf(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function jf(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function Lf(t,e=0,n,r=1){let i=[];n==null&&(n=Object.keys(t).length);for(let s=e;s<n;s+=r){let a=t[s];a!==void 0&&i.push(a)}return i}let Ma={};function $f(t,e){Ma[t]=e}function Uf(t){return new Ma[t]}class Wf{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Oe(e)}markerToArray(e){return st(e)}}$f("gregory",Wf);const zf=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Vf(t){let e=zf.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(Ta(n)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}class Gf{constructor(e){let n=this.timeZone=e.timeZone,r=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=Uf(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Oe(ls(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=Oe(e)),n===null||!Ta(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=Vf(e);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(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(e,n){let r=this.calendarSystem.markerToArray(e);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,n){let{calendarSystem:r}=this;return at(e)===at(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)&&r.getMarkerMonth(e)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:r}=this;return at(e)===at(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(e)+(r.getMarkerYear(n)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let r=this.diffWholeYears(e,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,n),r!==null?{unit:"month",value:r}:(r=hf(e,n),r!==null?{unit:"week",value:r}:(r=In(e,n),r!==null?{unit:"day",value:r}:(r=cf(e,n),wn(r)?{unit:"hour",value:r}:(r=df(e,n),wn(r)?{unit:"minute",value:r}:(r=uf(e,n),wn(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let i;return r.years&&(i=this.diffWholeYears(e,n),i!==null)?i/sf(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/af(r):r.days&&(i=In(e,n),i!==null)?i/Ot(r):(n.valueOf()-e.valueOf())/Le(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?pe(e):n==="hour"?gf(e):n==="minute"?pf(e):n==="second"?mf(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):vf(e,this.weekDow,this.weekDoy)}format(e,n,r={}){return n.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,r,i={}){return i.isEndExclusive&&(n=dt(n,-1)),r.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),ka(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?Oe(ls(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):Oe(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-cs(st(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(st(e)):null}toDate(e,n){return this.timeZone==="local"?cs(st(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(st(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class sn{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,r;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(r in e)n[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}sn.prototype.classes={};sn.prototype.iconClasses={};sn.prototype.baseIconClass="";sn.prototype.iconOverridePrefix="";function Pn(t){t();let e=V.debounceRendering,n=[];function r(i){n.push(i)}for(V.debounceRendering=r,Jt(p(qf,{}),document.createElement("div"));n.length;)n.shift()();V.debounceRendering=e}class qf extends Pe{render(){return p("div",{})}componentDidMount(){this.setState({})}}function Oa(t){let e=vu(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let s=[];this.shouldComponentUpdate=a=>
1{this.props.value!==a.value&&s.forEach(o=>{o.context=a.value,o.forceUpdate()})},this.sub=a=>{s.push(a);let o=a.componentWillUnmount;a.componentWillUnmount=()=>{s.splice(s.indexOf(a),1),o&&o.call(a)}}}return i},e}class Yf{constructor(e,n,r,i){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const et=Oa({});function Qf(t,e,n,r,i,s,a,o,l,d,c,f,g){return{dateEnv:i,options:n,pluginHooks:a,emitter:d,dispatch:o,getCurrentData:l,calendarApi:c,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(u){d.on("_resize",u)},removeResizeHandler(u){d.off("_resize",u)},createScrollResponder(u){return new Yf(u,d,ae(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:f,unregisterInteractiveComponent:g}}class Rt extends Pe{shouldComponentUpdate(e,n){return this.debug&&console.log(Tr(e,this.props),Tr(n,this.state)),!ur(this.props,e,this.propEquality)||!ur(this.state,n,this.stateEquality)}safeSetState(e){ur(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Rt.addPropsEquality=Zf;Rt.addStateEquality=Xf;Rt.contextType=et;Rt.prototype.propEquality={};Rt.prototype.stateEquality={};class ue extends Rt{}ue.contextType=et;function Zf(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function Xf(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function Ke(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class oi extends ue{constructor(){super(...arguments),this.id=_t(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!kr(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&Ke(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:s,renderProps:a}=e,o=Na(e,[],this.handleEl);let l=!1,d,c=[],f;if(i!=null){const g=typeof i=="function"?i(a,p):i;if(g===!0)l=!0;else{const u=g&&typeof g=="object";u&&"html"in g?o.dangerouslySetInnerHTML={__html:g.html}:u&&"domNodes"in g?c=Array.prototype.slice.call(g.domNodes):(u?ia(g):typeof g!="function")?d=g:f=g}}else l=!kr(e.generatorName,r);return l&&s&&(d=s(a)),this.queuedDomNodes=c,this.currentGeneratorMeta=f,p(e.elTag,o,d)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:r,context:i}
1=this,{handleCustomRendering:s,customRenderingMetaMap:a}=i.options;if(s){const o=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:a?.[r.generatorName];o&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:o},r),{elClasses:(r.elClasses||[]).filter(Kf)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!ct(e,n)){n.forEach(Kr);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}oi.addPropsEquality({elClasses:ct,elStyle:Ve,elAttrs:Ff,renderProps:Ve});function kr(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Na(t,e,n){const r=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(r.className=(t.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),t.elStyle&&(r.style=t.elStyle),r}function Kf(t){return!!t}const Pa=Oa(0);class He extends Pe{constructor(){super(...arguments),this.InnerContent=Jf.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(Ke(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=eh(e.classNameGenerator,e.renderProps);if(e.children){const r=Na(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?p(e.elTag,r,i):i}else return p(oi,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}He.contextType=Pa;function Jf(t,e){const n=t.props;return p(oi,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function eh(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class Bn extends ue{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return p(He,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Ba(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function Ba(t){return[`fc-${t.type}-view`,"fc-view"]}function th(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function ms(t,e){let n=[],{start:r}=e,i,s;for(t.sort(nh),i=0;i<t.length;i+=1)s=t[i],s.start>r&&n.push({start:r,end:s.start}),s.end>r&&(r=s.end);return r<e.end&&n.push({start:r,end:e.end}),n}function nh(t,e){return t.start.valueOf()-e.start.valueOf()}function Ct(t,e){let{start:n,end:r}=t,i=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function rh(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function li(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function qn(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function Ze(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function ih(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function Ha(t){let e=Math.floor(xt(t.start,t.end))||1,n=pe(t.start),r=ke(n,e);return{start:n,end:r}}function Fa(t,e=ae(0)){let n=null,r=null;if(t.end){r=pe(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=Le(e)&&(r=ke(r,1))}return t.start&&(n=pe(t.start),r&&r<=n&&(r=ke(n,1))),{start:n,end:r}}function It(t,e,n,r){return r==="year"?ae(n.diffWholeYears(t,e),"year"):r==="month"?ae(n.diffWholeMonths(t,e),"month"):ff(t,e)}function sh(t,e){return e.type==="CHANGE_DATE"?e.dateMarker:t}function ah(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):an(t.now,e)}function an(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class ja{constructor(e){this.props=e,this.nowDate=an(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:i}=this.props,s=i.subtract(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,r)}buildNext(e,n,r){let{dateEnv:i}=this.props,s=i.add(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,r)}build(e,n,r=!0){let{props:i}=this,s,a,o,l,d,c;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=ih(e,s)),a=this.buildCurrentRangeInfo(e,n),o=/^(year|month|week|day)$/.test(a.unit),l=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,o),l=this.trimHiddenDays(l),d=l,i.showNonCurrentDates||(d=Ct(d,a.range)),d=this.adjustActiveRange(d),d=Ct(d,s),c=li(a.range,s),Ze(l,e)||(e=l.start),{currentDate:e,validRange:s,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:o,activeRange:d,renderRange:l,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,i=null,s=null,a=null,o;return r.duration?(i=r.duration,s=r.durationUnit,a=this.buildRangeFromDuration(e,n,i,s)):(o=this.props.dayCount)?(s="day",a=this.buildRangeFromDayCount(e,n,o)):(a=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(i=this.getFallbackDuration(),s=Rr(i).unit,a=this.buildRangeFromDuration(e,n,i,s)),{duration:i,unit:s,range:a}}getFallbackDuration(){return ae({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:a,end:o}=e;return r&&(Ot(i)<0&&(a=pe(a),a=n.add(a,i)),Ot(s)>1&&(o=pe(o),o=ke(o,-1),o=n.add(o,s))),{start:a,end:o}}buildRangeFromDuration(e,n,r,i){let{dateEnv:s,dateAlignment:a}=this.props,o,l,d;if(!a){let{dateIncrement:f}=this.props;f&&Le(f)<Le(r)?a=Rr(f).unit:a=i}
vendor: 22,924 bytes, line 1
1Ot(r)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,n),o=pe(o));function c(){o=s.startOf(e,a),l=s.add(o,r),d={start:o,end:l}}return c(),this.trimHiddenDays(d)||(e=this.skipHiddenDays(e,n),c()),d}buildRangeFromDayCount(e,n,r){let{dateEnv:i,dateAlignment:s}=this.props,a=0,o=e,l;s&&(o=i.startOf(o,s)),o=pe(o),o=this.skipHiddenDays(o,n),l=o;do l=ke(l,1),this.isHiddenDay(l)||(a+=1);while(a<r);return{start:o,end:l}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,s=this.refineRange(i);return s&&(s.start==null||s.end==null)?null:s}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?ae(1,r):e||ae({days:1}))}refineRange(e){if(e){let n=th(e,this.props.dateEnv);return n&&(n=Fa(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(n[i]=e.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:r}=e;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(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=ke(e,n);return e}}function ci(t,e,n,r){return{instanceId:_t(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function oh(t,e,n,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(t,n);if(s){let{allDay:a}=t;return a==null&&(a=e,a==null&&(a=s.allDayGuess,a==null&&(a=!1))),{allDay:a,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function At(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:a,instances:o}=t;o=wt(o,l=>!a[l.defId].recurringDef);for(let l in a){let d=a[l];if(d.recurringDef){let{duration:c}=d.recurringDef;c||(c=d.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let f=lh(d,c,e,r,i.recurringTypes);for(let g of f){let u=ci(l,{start:g,end:r.add(g,c)});o[u.instanceId]=u}}}return{defs:a,instances:o}}function lh(t,e,n,r,i){let a=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(a=a.map(pe)),a}const An={id:String,groupId:String,title:String,url:String,interactive:Boolean},La={start:D,end:D,date:D,allDay:Boolean},ch=Object.assign(Object.assign(Object.assign({},An),La),{extendedProps:D});function $a(t,e,n,r,i=di(n),s,a){let{refined:o,extra:l}=Ua(t,n,i),d=uh(e,n),c=oh(o,d,n.dateEnv,n.pluginHooks.recurringTypes);if(c){let g=Ir(o,l,e?e.sourceId:"",c.allDay,!!c.duration,n,s);return g.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:g,instance:null}}let f=dh(o,d,n,r);if(f){let g=Ir(o,l,e?e.sourceId:"",f.allDay,f.hasEnd,n,s),u=ci(g.defId,f.range,f.forcedStartTzo,f.forcedEndTzo);return a&&g.publicId&&a[g.publicId]&&(u.instanceId=a[g.publicId]),{def:g,instance:u}}return null}function Ua(t,e,n=di(e)){return ii(t,n)}function di(t){return Object.assign(Object.assign(Object.assign({},Hn),ch),t.pluginHooks.eventRefiners)}function Ir(t,e,n,r,i,s,a){let o={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(a&&t.id?a[t.id]:"")||_t(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:Fn(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let l of s.pluginHooks.eventDefMemberAdders)Object.assign(o,l(t));return Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),o}function dh(t,e,n,r){let{allDay:i}=t,s,a=null,o=!1,l,d=null,c=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(c),s)a=s.marker;else if(!r)return null;return t.end!=null&&(l=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),i&&a&&(a=pe(a)),l&&(d=l.marker,i&&(d=pe(d)),a&&d<=a&&(d=null)),d?o=!0:r||(o=n.options.forceEventDuration||!1,d=n.dateEnv.add(a,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:o,range:{start:a,end:d},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function uh(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function en(t,e,n,r,i,s){let a=Be(),o=di(n);for(let l of t){let d=$a(l,e,n,r,o,i,s);d&&Mr(d,a)}return a}function Mr(t,e=Be()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function ui(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=Yn(t,s=>fh(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return Be()}function fh(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function Be(){return{defs:{},instances:{}}}function fi(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Yn(t,e){let n=wt(t.defs,e),r=wt(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function hh(t,e){let{defs:n,instances:r}=t,i={},s={};for(let a in n)e.defs[a]||(i[a]=n[a]);for(let a in r)!e.instances[a]&&i[r[a].defId]&&(s[a]=r[a]);return{defs:i,instances:s}}function gh(t,e){return Array.isArray(t)?en(t,null,e,!0):typeof t=="object"&&t?en([t],null,e,!0):t!=null?String(t):null}function vs(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const Hn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:D,overlap:D,allow:D,className:vs,classNames:vs,color:String,backgroundColor:String,borderColor:String,textColor:String},ph={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Fn(t,e){let n=gh(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Wa(t){return t.reduce(mh,ph)}function mh(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const vh={id:String,defaultAllDay:Boolean,url:String,format:String,events:D,eventDataTransform:D,success:D,failure:D};function za(t,e,n=Va(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:i,extra:s}=ii(r,n),a=yh(i,e);if(a)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:_t(),sourceDefId:a.sourceDefId,meta:a.meta,ui:Fn(i,e),extendedProps:s}}return null}function Va(t){return Object.assign(Object.assign(Object.assign({},Hn),vh),t.pluginHooks.eventSourceRefiners)}function yh(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let s=n[r].parseMeta(t);if(s)return{sourceDefId:r,meta:s}}return null}function bh(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return Sh(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return Eh(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return Dh(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return fi(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?At(t,r.activeRange,i):t;case"REMOVE_EVENTS":return hh(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return qa(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Yn(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return Be();default:return t}}function Sh(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let a=en(Ga(i,e,s),e,s);return r&&(a=At(a,r,s)),fi(qa(t,e.sourceId),a)}return t}function Eh(t,e,n,r,i){const{defIdMap:s,instanceIdMap:a}=Ch(t);let o=en(Ga(n,e,i),e,i,!1,s,a);return At(o,r,i)}function Ga(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=ys(t,i)),r&&(t=ys(t,r)),t}function ys(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let i=e(r);i?n.push(i):i==null&&n.push(r)}}return n}function Dh(t,e,n,r){return n&&(e=At(e,n,r)),fi(t,e)}function bs(t,e,n){let{defs:r}=t,i=Xe(t.instances,s=>r[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:n.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:n.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:s.forcedEndTzo}));return{defs:r,instances:i}}function qa(t,e){return Yn(t,n=>n.sourceId!==e)}function wh(t,e){return{defs:t.defs,instances:wt(t.instances,n=>!e[n.instanceId])}}function Ch(t){const{defs:e,instances:n}=t,r={},i={};for(let s in e){const a=e[s],{publicId:o}=a;o&&(r[o]=s)}for(let s in n){const a=n[s],o=e[a.defId],{publicId:l}=o;l&&(i[l]=s)}return{defIdMap:r,instanceIdMap:i}}class Qn{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){Ah(this.handlers,e,n)}off(e,n){_h(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],i=this.options&&this.options[e],s=[].concat(i||[],r);for(let a of s)a.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function Ah(t,e,n){(t[e]||(t[e]=[])).push(n)}function _h(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const xh={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Rh(t,e){return en(Th(t),null,e)}function Th(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},xh),n)),e}function Ya(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},hi(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function kh(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function hi(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,zh(t,e.dateEnv)),n}function Ss(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=pe(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function gi(t,e,n,r){let i=jn(t.defs,e),s=Be();for(let a in t.defs){let o=t.defs[a];s.defs[a]=Ih(o,i[a],n,r)}for(let a in t.instances){let o=t.instances[a],l=s.defs[o.defId];s.instances[a]=Mh(o,l,i[o.defId],n,r)}return s}function Ih(t,e,n,r){let i=n.standardProps||{};i.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),i),{ui:Object.assign(Object.assign({},t.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let a of r.pluginHooks.eventDefMutationAppliers)a(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function Mh(t,e,n,r,i){let{dateEnv:s}=i,a=r.standardProps&&r.standardProps.allDay===!0,o=r.standardProps&&r.standardProps.hasEnd===!1,l=Object.assign({},t);return a&&(l.range=Ha(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:s.add(l.range.start,r.datesDelta),end:s.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:s.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:s.add(l.range.end,r.endDelta)}),o&&(l.range={start:l.range.start,end:Ss(e.allDay,l.range.start,i)}),e.allDay&&(l.range={start:pe(l.range.start),end:pe(l.range.end)}),l.range.end<l.range.start&&(l.range.end=Ss(e.allDay,l.range.start,i)),l}class kt{constructor(e,n){this.context=e,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 ve{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in La)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=An[e](n),this.mutate({standardProps:{publicId:n}});else if(e in An)n=An[e](n),this.mutate({standardProps:{[e]:n}});else if(e in Hn){let r=Hn[e](n);e==="color"?r={backgroundColor:n,borderColor:n}:e==="editable"?r={startEditable:n,durationEditable:n}:r={[e]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:r}=this._context,i=r.createMarker(e);if(i&&this._instance){let s=this._instance.range,a=It(s.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}}setEnd(e,n={}){let{dateEnv:r}=this._context,i;if(!(e!=null&&(i=r.createMarker(e),!i))&&this._instance)if(i){let s=It(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:s})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:i}=this._context,s={allDay:r.allDay},a=i.createMarker(e),o;if(a&&!(n!=null&&(o=i.createMarker(n),!o))&&this._instance){let l=this._instance.range;r.allDay===!0&&(l=Ha(l));let d=It(l.start,a,i,r.granularity);if(o){let c=It(l.end,o,i,r.granularity);tf(d,c)?this.mutate({datesDelta:d,standardProps:s}):this.mutate({startDelta:d,endDelta:c,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:d,standardProps:s})}}moveStart(e){let n=ae(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=ae(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=ae(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,i=Se(e);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(e){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:s}=i.getCurrentData(),a=ui(s,n.instanceId);a=gi(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let l=new ve(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:St(a,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=Qa(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new kt(this._context,this._context.getCurrentData().eventSources[e]):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 e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.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(e={}){let n=this._def,{ui:r}=n,{startStr:i,endStr:s}=this,a={allDay:n.allDay};return n.title&&(a.title=n.title),i&&(a.start=i),s&&(a.end=s),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),e.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&&(e.collapseExtendedProps?Object.assign(a,n.extendedProps):a.extendedProps=n.extendedProps),a}toJSON(){return this.toPlainObject()}}function Qa(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function St(t,e,n){let{defs:r,instances:i}=t,s=[],a=n?n.instanceId:"";for(let o in i){let l=i[o],d=r[l.defId];l.instanceId!==a&&s.push(new ve(e,d,l))}return s}function Es(t,e,n,r){let i={},s={},a={},o=[],l=[],d=jn(t.defs,e);for(let c in t.defs){let f=t.defs[c];d[f.defId].display==="inverse-background"&&(f.groupId?(i[f.groupId]=[],a[f.groupId]||(a[f.groupId]=f)):s[c]=[])}for(let c in t.instances){let f=t.instances[c],g=t.defs[f.defId],u=d[g.defId],v=f.range,m=!g.allDay&&r?Fa(v,r):v,b=Ct(m,n);b&&(u.display==="inverse-background"?g.groupId?i[g.groupId].push(b):s[f.defId].push(b):u.display!=="none"&&(u.display==="background"?o:l).push({def:g,ui:u,instance:f,range:b,isStart:m.start&&m.start.valueOf()===b.start.valueOf(),isEnd:m.end&&m.end.valueOf()===b.end.valueOf()}))}for(let c in i){let f=i[c],g=ms(f,n);for(let u of g){let v=a[c],m=d[v.defId];o.push({def:v,ui:m,instance:null,range:u,isStart:!1,isEnd:!1})}}for(let c in s){let f=s[c],g=ms(f,n);for(let u of g)o.push({def:t.defs[c],ui:d[c],instance:null,range:u,isStart:!1,isEnd:!1})}return{bg:o,fg:l}}function Oh(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function Ds(t,e){t.fcSeg=e}function Bt(t){return t.fcSeg||t.parentNode.fcSeg||null}function jn(t,e){return Xe(t,n=>Za(n,e))}function Za(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Wa(n)}function Xa(t,e){let n=t.map(Nh);return n.sort((r,i)=>Yu(r,i,e)),n.map(r=>r._seg)}function Nh(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:t})}function Ph(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:i,ui:s}=t.eventRange,a=s.startEditable;for(let o of r)a=o(a,i,s,e);return a}function Bh(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function Hh(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function Ka(t,e,n,r,i,s,a){let{dateEnv:o,options:l}=n,{displayEventTime:d,displayEventEnd:c}=l,f=t.eventRange.def,g=t.eventRange.instance;d==null&&(d=r!==!1),c==null&&(c=i!==!1);let u=g.range.start,v=g.range.end,m=t.start||t.eventRange.range.start,b=t.end||t.eventRange.range.end,w=pe(u).valueOf()===pe(m).valueOf(),x=pe(dt(v,-1)).valueOf()===pe(dt(b,-1)).valueOf();return d&&!f.allDay&&(w||x)?(m=w?u:m,b=x?v:b,c&&f.hasEnd?o.formatRange(m,b,e,{forcedStartTzo:g.forcedStartTzo,forcedEndTzo:g.forcedEndTzo}):o.format(m,e,{forcedTzo:g.forcedStartTzo})):""}function ot(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&Ze(e,r.start)}}function Fh(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function Ja(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function eo(t,e){let{def:n,instance:r}=t.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:a}=e,{eventInteractive:o}=a;return o==null&&(o=n.interactive,o==null&&(o=!!s.hasHandlers("eventClick"))),o?Ra(l=>{s.trigger("eventClick",{el:l.target,event:new ve(e,n,r),jsEvent:l,view:e.viewApi})}):{}}const jh={start:D,end:D,allDay:Boolean};function Lh(t,e,n){let r=$h(t,e),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=e.add(i.start,n)}return r}function $h(t,e){let{refined:n,extra:r}=ii(t,jh),i=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:a}=n;return a==null&&(a=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:a},r)}function Uh(t,e){return rh(t.range,e.range)&&t.allDay===e.allDay&&Wh(t,e)}function Wh(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function zh(t,e){return Object.assign(Object.assign({},no(t.range,e,t.allDay)),{allDay:t.allDay})}function to(t,e,n){return Object.assign(Object.assign({},no(t,e,n)),{timeZone:e.timeZone})}function no(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function Vh(t,e,n){let r=Ua({editable:!1},n),i=Ir(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:Za(i,e),instance:ci(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function Gh(t,e,n){let r=!1,i=function(o){r||(r=!0,e(o))}
1,s=function(o){r||(r=!0,n(o))},a=t(i,s);a&&typeof a.then=="function"&&a.then(i,s)}class ws extends Error{constructor(e,n){super(e),this.response=n}}function qh(t,e,n){t=t.toUpperCase();const r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(i=>{if(i.ok)return i.json().then(s=>[s,i],()=>{throw new ws("Failure parsing JSON",i)});throw new ws("Request failed",i)})}let fr;function ro(){return fr==null&&(fr=Yh()),fr}function Yh(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class Qh extends ue{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{Pn(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{Pn(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",s=!i&&n.height!=null?n.height:"",a=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return ro()||a.push("fc-liquid-hack"),e.children(a,s,i,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class $t{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Zh(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function pi(t){return{[t.component.uid]:t}}const Or={};class Xh{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,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:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),s,a;for(let o in n)i.push(o);for(s=0;s<i.length;s+=1)if(a=n[i[s]],a&&a.singleUnit===e)return a;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:an(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),r=ae(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}
vendor: 14,333 bytes, line 1
1))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),Se(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),Se(r),r)}formatIso(e,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:n})}select(e,n){let r;n==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:n};let i=this.getCurrentData(),s=Lh(r,i.dateEnv,ae({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),Ya(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),kh(e,n))}addEvent(e,n){if(e instanceof ve){let a=e._def,o=e._instance;return this.getCurrentData().eventStore.defs[a.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Mr({def:a,instance:o})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof kt)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=ai(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 s=$a(e,i,r,!1);if(s){let a=new ve(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Mr(s)}),this.triggerEventAdd(a),a}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Qa(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;e=String(e);for(let s in r){let a=r[s];if(a.publicId===e){if(a.recurringDef)return new ve(n,a,null);for(let o in i){let l=i[o];if(l.defId===a.defId)return new ve(n,a,l)}}}return null}getEvents(){let e=this.getCurrentData();return St(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let i in n)r.push(new kt(e,n[i]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let i in r)if(r[i].publicId===e)return new kt(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof kt)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=za(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new kt(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=ae(e);n&&this.trigger("_scrollRequest",{time:n})}}function Kh(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function io(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function Jh(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function eg(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function tg(t,e){return{left:t.left-e.left,top:t.top-e.top}}const hr=Be();class ng{constructor(){this.getKeysForEventDefs=G(this._getKeysForEventDefs),this.splitDateSelection=G(this._splitDateSpan),this.splitEventStore=G(this._splitEventStore),this.splitIndividualUi=G(this._splitIndividualUi),this.splitEventDrag=G(this._splitInteraction),this.splitEventResize=G(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),s=this.splitIndividualUi(e.eventUiBases,r),a=this.splitEventStore(e.eventStore,r),o=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),d={};this.eventUiBuilders=Xe(n,(c,f)=>this.eventUiBuilders[f]||G(rg));for(let c in n){let f=n[c],g=a[c]||hr,u=this.eventUiBuilders[c];d[c]={businessHours:f.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:g,eventUiBases:u(e.eventUiBases[""],f.ui,s[c]),eventSelection:g.instances[e.eventSelection]?e.eventSelection:"",eventDrag:o[c]||null,eventResize:l[c]||null}}return d}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let i of r)n[i]=e}return n}_getKeysForEventDefs(e){return Xe(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:r,instances:i}=e,s={};for(let a in r)for(let o of n[a])s[o]||(s[o]=Be()),s[o].defs[a]=r[a];for(let a in i){let o=i[a];for(let l of n[o.defId])s[l]&&(s[l].instances[a]=o)}return s}_splitIndividualUi(e,n){let r={};for(let i in e)if(i)for(let s of n[i])r[s]||(r[s]={}),r[s][i]=e[i];return r}_splitInteraction(e){let n={};if(e){let r=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),i=this._getKeysForEventDefs(e.mutatedEvents),s=this._splitEventStore(e.mutatedEvents,i),a=o=>{n[o]||(n[o]={affectedEvents:r[o]||hr,mutatedEvents:s[o]||hr,isEvent:e.isEvent})};for(let o in r)a(o);for(let o in s)a(o)}return n}}function rg(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let i={"":Wa(r)};return n&&Object.assign(i,n),i}function so(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&!Ze(r.activeRange,t)),isOther:!!(r&&!Ze(r.currentRange,t)),isToday:!!(e&&Ze(e,t)),isPast:!!(e&&t<e.start),isFuture:!!(e&&t>=e.end)}}function mi(t,e){let n=["fc-day",`fc-day-${of[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const ig=Se({year:"numeric",month:"long",day:"numeric"}),sg=Se({week:"long"});function Ln(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:a}=t;let o=i.format(e,n==="week"?sg:ig);if(s.navLinks){let l=i.toDate(e);const d=c=>{let f=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof f=="function"?f.call(a,i.toDate(e),c):(typeof f=="string"&&(n=f),a.zoomTo(e,n))};return Object.assign({title:Yt(s.navLinkHint,[o,l],o),"data-navlink":""},r?xa(d):{onClick:d})}return{"aria-label":o}}let gr=null;function ag(){return gr===null&&(gr=og()),gr}function og(){let t=document.createElement("div");qt(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return Kr(t),n}let pr;function lg(){return pr||(pr=cg()),pr}function cg(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=ao(t);return document.body.removeChild(t),e}function ao(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function dg(t,e=!1){let n=window.getComputedStyle(t),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,o=ao(t),l=o.y-r-i,d=o.x-s-a,c={borderLeft:r,borderRight:i,borderTop:s,borderBottom:a,scrollbarBottom:d,scrollbarLeft:0,scrollbarRight:0};return ag()&&n.direction==="rtl"?c.scrollbarLeft=l:c.scrollbarRight=l,e&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function ug(t,e=!1,n){let r=vi(t),i=dg(t,e),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return e&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function vi(t){let e=t.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function fg(t){let e=oo(t),n=t.getBoundingClientRect();for(let r of e){let i=io(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function oo(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class Ht{constructor(e,n,r,i){this.els=n;let s=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(s.left),i&&this.buildElVerticals(s.top)}buildElHorizontals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.left-e),r.push(s.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.top-e),r.push(s.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}topToIndex(e){let{tops:n,bottoms:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return gn(this.tops||[],e.tops||[])&&gn(this.bottoms||[],e.bottoms||[])&&gn(this.lefts||[],e.lefts||[])&&gn(this.rights||[],e.rights||[])}}function gn(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(Math.round(t[r])!==Math.round(e[r]))return!1;return!0}class yi{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class hg extends yi{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class gg extends yi{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Ge extends ue{constructor(){super(...arguments),this.uid=_t()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Te(e,".fc-event-mirror")}isValidDateDownEl(e){return!Te(e,".fc-event:not(.fc-bg-event)")&&!Te(e,".fc-more-link")&&!Te(e,"a[data-navlink]")&&!Te(e,".fc-popover")}}class lo{constructor(e=n=>n.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);this.isInsertionValid(r,e)?this.insertEntryAt(e,r):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,r){if(this.allowReslicing&&e.touchingEntry){const i=Object.assign(Object.assign({},n),{span:bi(n.span,e.touchingEntry.span)});r.push(i),this.splitEntry(n,e.touchingEntry,r)}else r.push(n)}splitEntry(e,n,r){let i=e.span,s=n.span;i.start<s.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:s.start}},r),i.end>s.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:i.end}},r)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(mr(i,n.level,n.levelCoord),mr(r,n.level,[e])):mr(r[n.level],n.lateral,e),this.stackCnts[Et(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,a=n.length,o=0,l=-1,d=-1,c=null,f=0;for(let v=0;v<a;v+=1){const m=n[v];if(!i&&m>=o+this.getEntryThickness(e))break;let b=r[v],w,x=Pr(b,e.span.start,Nr),P=x[0]+x[1];for(;(w=b[P])&&w.span.start<e.span.end;){let L=m+this.getEntryThickness(w);L>o&&(o=L,c=w,l=v,d=P),L===o&&(f=Math.max(f,s[Et(w)]+1)),P+=1}}let g=0;if(c)for(g=l+1;g<a&&n[g]<o;)g+=1;let u=-1;return g<a&&n[g]===o&&(u=Pr(r[g],e.span.end,Nr)[0]),{touchingLevel:l,touchingLateral:d,touchingEntry:c,stackCnt:f,levelCoord:o,level:g,lateral:u}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,r=e.length,i=[];for(let s=0;s<r;s+=1){let a=e[s],o=n[s];for(let l of a)i.push(Object.assign(Object.assign({},l),{thickness:this.getEntryThickness(l),levelCoord:o}))}return i}}function Nr(t){return t.span.end}function Et(t){return t.index+":"+t.span.start}function pg(t){let e=[];for(let n of t){let r=[],i={span:n.span,entries:[n]};for(let s of e)bi(s.span,i.span)?i={entries:s.entries.concat(i.entries),span:mg(s.span,i.span)}:r.push(s);r.push(i),e=r}return e}function mg(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function bi(t,e){let n=Math.max(t.start,e.start),r=Math.min(t.end,e.end);return n<r?{start:n,end:r}:null}function mr(t,e,n){t.splice(e,0,n)}function Pr(t,e,n){let r=0,i=t.length;if(!i||e<n(t[r]))return[0,0];if(e>n(t[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),a=n(t[s]);if(e<a)i=s;else if(e>a)r=s+1;else return[s,1]}return[r,0]}class vg{constructor(e,n){this.emitter=new Qn}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Si={};function yg(t,e){return!t||e>10?Se({weekday:"short"}):e>1?Se({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Se({weekday:"long"})}const co="fc-col-header-cell";function uo(t){return t.text}class bg extends ue{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:a,dateProfile:o}=s,l=so(a,s.todayRange,null,o),d=[co].concat(mi(l,r)),c=e.format(a,s.dayHeaderFormat),f=!l.isDisabled&&s.c
1olCnt>1?Ln(this.context,a):{},g=Object.assign(Object.assign(Object.assign({date:e.toDate(a),view:i},s.extraRenderProps),{text:c}),l);return p(He,{elTag:"th",elClasses:d,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":l.isDisabled?void 0:ni(a)},s.extraDataAttrs),renderProps:g,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:uo,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},u=>p("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&p(u,{elTag:"a",elAttrs:f,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const Sg=Se({weekday:"long"});class Eg extends ue{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,a=ke(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(a,e.dayHeaderFormat),d=Object.assign(Object.assign(Object.assign(Object.assign({date:a},o),{view:i}),e.extraRenderProps),{text:l});return p(He,{elTag:"th",elClasses:[co,...mi(o,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:d,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:uo,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},c=>p("div",{className:"fc-scrollgrid-sync-inner"},p(c,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(a,Sg)}})))}}class on extends Pe{constructor(e,n){super(e,n),this.initialNowDate=an(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,r=dt(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,e.unit),s=n.dateEnv.add(i,ae(1,e.unit)),a=s.valueOf()-r.valueOf();return a=Math.min(1e3*60*60*24,a),{currentState:{nowDate:i,todayRange:Cs(i)},nextState:{nowDate:s,todayRange:Cs(s)},waitMs:a}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}on.contextType=et;function Cs(t){let e=pe(t),n=ke(e,1);return{start:e,end:n}}class fo extends ue{constructor(){super(...arguments),this.createDayHeaderFormatter=G(Dg)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:s}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return p(on,{unit:"day"},(o,l)=>p("tr",{role:"row"},s&&s("day"),n.map(d=>i?p(bg,{key:d.toISOString(),date:d,dateProfile:r,todayRange:l,colCnt:n.length,dayHeaderFormat:a}):p(Eg,{key:d.getUTCDay(),dow:d.getUTCDay(),dayHeaderFormat:a}))))}}function Dg(t,e,n){return t||yg(e,n)}class ho{constructor(e,n){let r=e.start,{end:i}=e,s=[],a=[],o=-1;for(;r<i;)n.isHiddenDay(r)?s.push(o+.5):(o+=1,s.push(o),a.push(r)),r=ke(r,1);this.dates=a,this.indices=s,this.cnt=a.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(ke(e.end,-1)),i=Math.max(0,n),s=Math.min(this.cnt-1,r);return i=Math.ceil(i),s=Math.floor(s),i<=s?{firstIndex:i,lastIndex:s,isStart:n===i,isEnd:r===s}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(xt(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class go{constructor(e,n){let{dates:r}=e,i,s,a;if(n){for(s=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==s;i+=1);a=Math.ceil(r.length/i)}else a=1,i=r.length;this.rowCnt=a,this.colCnt=i,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];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));e.push(r)}return e}buildCell(e,n){let r=this.daySeries.dates[e*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;
vendor: 9,260 bytes, line 1
1n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,r=this.daySeries.sliceRange(e),i=[];if(r){let{firstIndex:s,lastIndex:a}=r,o=s;for(;o<=a;){let l=Math.floor(o/n),d=Math.min((l+1)*n,a+1);i.push({row:l,firstCol:o%n,lastCol:(d-1)%n,isStart:r.isStart&&o===s,isEnd:r.isEnd&&d-1===a}),o=d}}return i}}class po{constructor(){this.sliceBusinessHours=G(this._sliceBusinessHours),this.sliceDateSelection=G(this._sliceDateSpan),this.sliceEventStore=G(this._sliceEventStore),this.sliceEventDrag=G(this._sliceInteraction),this.sliceEventResize=G(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,i,...s){let{eventUiBases:a}=e,o=this.sliceEventStore(e.eventStore,a,n,r,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,a,i,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,i,...s),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(e.eventDrag,a,n,r,...s),eventResize:this.sliceEventResize(e.eventResize,a,n,r,...s),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,i,...s){return this._sliceDateSpan({range:{start:e,end:dt(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore(At(e,pn(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let a=Es(e,n,pn(r,!!i),i);return{bg:this.sliceEventRanges(a.bg,s),fg:this.sliceEventRanges(a.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,i,...s){if(!e)return null;let a=Es(e.mutatedEvents,n,pn(r,!!i),i);return{segs:this.sliceEventRanges(a.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,i,s,...a){if(!e)return[];let o=pn(n,!!r),l=Ct(e.range,o);if(l){e=Object.assign(Object.assign({},e),{range:l});let d=Vh(e,i,s),c=this.sliceRange(e.range,...a);for(let f of c)f.eventRange=d;return c}return[]}sliceEventRanges(e,n){let r=[];for(let i of e)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:ke(r.start,1)});let i=this.sliceRange(r,...n);for(let s of i)s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd;return i}}function pn(t,e){let n=t.activeRange;return e?n:{start:dt(n.start,t.slotMinTime.milliseconds),end:dt(n.end,t.slotMaxTime.milliseconds-864e5)}}function mo(t,e,n){let{instances:r}=t.mutatedEvents;for(let i in r)if(!qn(e.validRange,r[i].range))return!1;return vo({eventDrag:t},n)}function wg(t,e,n){return qn(e.validRange,t.range)?vo({dateSelection:t},n):!1}function vo(t,e){let n=e.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||Cg)(r,e)}function Cg(t,e,n={},r){return!(t.eventDrag&&!Ag(t,e,n,r)||t.dateSelection&&!_g(t,e,n,r))}function Ag(t,e,n,r){let i=e.getCurrentData(),s=t.eventDrag,a=s.mutatedEvents,o=a.defs,l=a.instances,d=jn(o,s.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(d=Xe(d,r));let c=wh(t.eventStore,s.affectedEvents.instances),f=c.defs,g=c.instances,u=jn(f,t.eventUiBases);for(let v in l){let m=l[v],b=m.range,w=d[m.defId],x=o[m.defId];if(!yo(w.constraints,b,c,t.businessHours,e))return!1;let{eventOverlap:P}=e.options,L=typeof P=="function"?P:null;for(let I in g){let E=g[I];if(li(b,E.range)&&(u[E.defId].overlap===!1&&s.isEvent||w.overlap===!1||L&&!L(new ve(e,f[E.defId],E),new ve(e,x,m))))return!1}let N=i.eventStore;for(let I of w.allows){let E=Object.assign(Object.assign({},n),{range:m.range,allDay:x.allDay}),_=N.defs[x.defId],B=N.instances[v],ge;if(_?ge=new ve(e,_,B):ge=new ve(e,x),!I(hi(E,e),ge))return!1}}return!0}function _g(t,e,n,r){let i=t.eventStore,s=i.defs,a=i.instances,o=t.dateSelection,l=o.range,{selectionConfig:d}=e.getCurrentData();if(r&&(d=r(d)),!yo(d.constraints,l,i,t.businessHours,e))return!1;let{selectOverlap:c}=e.options,f=typeof c=="function"?c:null;for(let g in a){let u=a[g];if(li(l,u.range)&&(d.overlap===!1||f&&!f(new ve(e,s[u.defId],u),null)))return!1}for(let g of d.allows){let u=Object.assign(Object.assign({},n),o);if(!g(hi(u,e),null))return!1}return!0}function yo(t,e,n,r,i){for(let s of t)if(!Rg(xg(s,e,n,r,i),e))return!1;return!0}function xg(t,e,n,r,i){return t==="businessHours"?vr(At(r,e,i)):typeof t=="string"?vr(Yn(n,s=>s.groupId===t)):typeof t=="object"&&t?vr(At(t,e,i)):[]}function vr(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function Rg(t,e){for(let n of t)if(qn(n,e))return!0;return!1}const mn=/^(visible|hidden)$/;class Tg extends ue{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,Ke(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,i=n&&r,s=["fc-scroller"];return n&&(r?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),p("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(mn.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(mn.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return mn.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return mn.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Ye{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:s}=this,a=!1,o=!1;n!==null?(a=r in s,s[r]=n,i[r]=(i[r]||0)+1,o=!0):(i[r]-=1,i[r]||(delete s[r],delete this.callbackMap[r],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(r)),o&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return Lf(this.currentMap,e,n,r)}getAll(){return ai(this.currentMap)}}function kg(t){let e=Fu(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,Ku(r));return Math.ceil(n)}function bo(t,e){return t.liquid&&e.liquid}function Ig(t,e){return e.maxHeight!=null||bo(t,e)}function Mg(t,e,n,r){let{expandRows:i}=n;return typeof e.content=="function"?e.content(n):p("table",{role:"presentation",className:[e.tableClassName,t.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 e.rowContent=="function"?e.rowContent(n):e.rowContent))}function Og(t,e){return ct(t,e,Ve)}function Ng(t,e){let n=[];for(let r of t){let i=r.span||1;for(let s=0;s<i;s+=1)n.push(p("col",{style:{width:r.width==="shrink"?Pg(e):r.width||"",minWidth:r.minWidth||""}}))}return p("colgroup",{},...n)}function Pg(t){return t??4}function Bg(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function Hg(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Fg(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Br(t){return p("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function $n(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function So(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class Ei extends ue{constructor(){super(...arguments),this.processCols=G(e=>e,Og),this.renderMicroColGroup=G(Ng),this.scrollerRefs=new Ye,this.scrollerElRefs=new Ye(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:e,state:n,context:r}=this,i=e.sections||[],s=this.processCols(e.cols),a=this.renderMicroColGroup(s,n.shrinkWidth),o=Hg(e.liquid,r);e.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");let l=i.length,d=0,c,f=[],g=[],u=[];for(;d<l&&(c=i[d]).type==="header";)f.push(this.renderSection(c,a,!0)),d+=1;for(;d<l&&(c=i[d]).type==="body";)g.push(this.renderSection(c,a,!1)),d+=1;for(;d<l&&(c=i[d]).type==="footer";)u.push(this.renderSection(c,a,!0)),d+=1;let v=!ro();const m={role:"rowgroup"};return p("table",{role:"grid",className:o.join(" "),style:{height:e.height}},!!(!v&&f.length)&&p("thead",m,...f),!!(!v&&g.length)&&p("tbody",m,...g),!!(!v&&u.length)&&p("tfoot",m,...u),v&&p("tbody",m,...f,...g,...u))}
1renderSection(e,n,r){return"outerContent"in e?p(me,{key:e.key},e.outerContent):p("tr",{key:e.key,role:"presentation",className:Fg(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,i){if("outerContent"in r)return r.outerContent;let{props:s}=this,{forceYScrollbars:a,scrollerClientWidths:o,scrollerClientHeights:l}=this.state,d=Ig(s,e),c=bo(s,e),f=s.liquid?a?"scroll":d?"auto":"hidden":"visible",g=e.key,u=Mg(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&o[g]!==void 0?o[g]:null,clientHeight:l[g]!==void 0?l[g]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return p(i?"th":"td",{ref:r.elRef,role:"presentation"},p("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},p(Tg,{ref:this.scrollerRefs.createRef(g),elRef:this.scrollerElRefs.createRef(g),overflowY:f,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},u)))}_handleScrollerEl(e,n){let r=jg(this.props.sections,n);r&&Ke(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Bg(this.props.cols)?kg(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=lg(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,s={},a={};for(let o in n.currentMap){let l=n.currentMap[o];if(l&&l.needsYScrolling()){i=!0;break}}for(let o of this.props.sections){let l=o.key,d=r.currentMap[l];if(d){let c=d.parentNode;s[l]=Math.floor(c.getBoundingClientRect().width-(i?e.y:0)),a[l]=Math.floor(c.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:a}}}Ei.addStateEquality({scrollerClientWidths:Ve,scrollerClientHeights:Ve});function jg(t,e){for(let n of t)if(n.key===e)return n;return null}class Di extends ue{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Ds(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{eventRange:s}=i,{ui:a}=s,o={event:new ve(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&Ph(i,n),isStartResizable:!e.disableResizing&&Bh(i,n),isEndResizable:!e.disableResizing&&Hh(i),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return p(He,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Fh(o),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:o,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Ds(this.el,this.props.seg)}}class Eo extends ue{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:s}=i.eventRange,a=r.eventTimeFormat||e.defaultTimeFormat,o=Ka(i,a,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return p(Di,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:eo(i,n),defaultGenerator:Lg,timeText:o}),(l,d)=>p(me,null,p(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:d.textColor}}),!!d.isStartResizable&&p("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!d.isEndResizable&&p("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function Lg(t){return p("div",{className:"fc-event-main-frame"},t.timeText&&p("div",{className:"fc-event-time"},t.timeText),p("div",{className:"fc-event-title-container"},p("div",{className:"fc-event-title fc-sticky"},t.event.title||p(me,null," "))))}const wi=t=>p(et.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return p(He,Object.assign({},t,{elTag:t.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),$g=Se({day:"numeric"});class Ci extends ue{constructor(){super(...arguments),this.refineRenderProps=Cn(Ug)}render(){let{props:e,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return p(He,Object.assign({},e,{elClasses:[...mi(i,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":ni(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function Ai(t){return!!(t.dayCellContent||kr("dayCellContent",t))}function Ug(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=so(e,t.todayRange,null,r),a=t.showDayNumber?n.format(e,i?t.monthStartFormat:$g):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:a}),t.extraRenderProps)}class Do extends ue{render(){let{props:e}=this,{seg:n}
vendor: 5,838 bytes, line 1
1=e;return p(Di,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Wg,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function Wg(t){let{title:e}=t.event;return e&&p("div",{className:"fc-event-title"},t.event.title)}function wo(t){return p("div",{className:`fc-${t}`})}const Co=t=>p(et.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:i}=t,s=r.weekNumberFormat||t.defaultFormat,a=n.computeWeekNumber(i),o=n.format(i,s);return p(He,Object.assign({},t,{renderProps:{num:a,text:o,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:zg,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function zg(t){return t.text}const yr=10;class Vg extends ue{constructor(){super(...arguments),this.state={titleId:Vn()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&Ke(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=Aa(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:i}=this,s=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return Cu(p("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),p("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},p("span",{className:"fc-popover-title",id:i.titleId},r.title),p("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),p("div",{className:"fc-popover-body "+e.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:e}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:i}=this,s=fg(n);if(s){let a=i.getBoundingClientRect(),o=r?Te(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,l=e?s.right-a.width:s.left;o=Math.max(o,yr),l=Math.min(l,document.documentElement.clientWidth-yr-a.width),l=Math.max(l,yr);let d=i.offsetParent.getBoundingClientRect();qt(i,{top:o-d.top,left:l-d.left})}}}class Gg extends Ge{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:r}=this,{startDate:i,todayRange:s,dateProfile:a}=r,o=n.format(i,e.dayPopoverFormat);return p(Ci,{elRef:this.handleRootEl,date:i,dateProfile:a,todayRange:s},(l,d,c)=>p(Vg,{elRef:c.ref,id:r.id,title:o,extraClassNames:["fc-more-popover"].concat(c.className||[]),extraAttrs:c,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},Ai(e)&&p(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,i){let{rootEl:s,props:a}=this;return e>=0&&e<r&&n>=0&&n<i?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:s,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class Ao extends ue{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Vn()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&Ke(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,s=As(n).start;function a(o){let{def:l,instance:d,range:c}=o.eventRange;return{event:new ve(r,l,d),start:r.dateEnv.toDate(c.start),end:r.dateEnv.toDate(c.end),isStart:o.isStart,isEnd:o.isEnd}}typeof i=="function"&&(i=i({date:s,allDay:!!n.allDayDate,allSegs:n.allSegs.map(a),hiddenSegs:n.hiddenSegs.map(a),jsEvent:e,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(s,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return p(et.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:a}=r,{moreLinkText:o}=s,{moreCnt:l}=e,d=As(e),c=typeof o=="function"?o.call(a,l):`+${l} ${o}`,f=Yt(s.moreLinkHint,[l],c),g={num:l,shortText:`+${l}`,text:c,view:i};return p(me,null,!!e.moreCnt&&p(He,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),xa(this.handleClick)),{title:f,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:g,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||qg,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&p(Gg,{id:n.popoverId,startDate:d.start,endDate:d.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Te(this.linkEl,".fc-view-harness"))}}function qg(t){return t.text}function As(t){if(t.allDayDate)return{start:t.allDayDate,end:ke(t.allDayDate,1)};let{hiddenSegs:e}=t;
1return{start:_o(e),end:Qg(e)}}function _o(t){return t.reduce(Yg).eventRange.range.start}function Yg(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Qg(t){return t.reduce(Zg).eventRange.range.end}function Zg(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class Xg{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class Kg extends Xg{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}}const Jg=[],xo={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"},Ro=Object.assign(Object.assign({},xo),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function ep(t){let e=t.length>0?t[0].code:"en",n=Jg.concat(t),r={en:Ro};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function To(t,e){return typeof t=="object"&&!Array.isArray(t)?ko(t.code,[t.code],t):tp(t,e)}function tp(t,e){let n=[].concat(t||[]),r=np(n,e)||Ro;return ko(t,n,r)}function np(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let s=r.slice(0,i).join("-");if(e[s])return e[s]}}return null}function ko(t,e,n){let r=si([xo,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function tt(t){return{id:_t(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function rp(t,e){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(s){for(let a of s){const o=a.name,l=n[o];l===void 0?(n[o]=a.id,i(a.deps),r=sp(r,a)):l!==a.id&&console.warn(`Duplicate plugin '${o}'`)}}return t&&i(t),i(e),r}function ip(){let t=[],e=[],n;return(r,i)=>((!n||!ct(r,t)||!ct(i,e))&&(n=rp(r,i)),t=r,e=i,n)}function sp(t,e){return{premiumReleaseDate:ap(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.
vendor: 9,821 bytes, line 1
1isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function ap(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class ut extends sn{}ut.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};ut.prototype.baseIconClass="fc-icon";ut.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"};ut.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};ut.prototype.iconOverrideOption="buttonIcons";ut.prototype.iconOverrideCustomButtonOption="icon";ut.prototype.iconOverridePrefix="fc-icon-";function op(t,e){let n={},r;for(r in t)Hr(r,n,t,e);for(r in e)Hr(r,n,t,e);return n}function Hr(t,e,n,r){if(e[t])return e[t];let i=lp(t,e,n,r);return i&&(e[t]=i),i}function lp(t,e,n,r){let i=n[t],s=r[t],a=c=>i&&i[c]!==null?i[c]:s&&s[c]!==null?s[c]:null,o=a("component"),l=a("superType"),d=null;if(l){if(l===t)throw new Error("Can't have a custom view type that references itself");d=Hr(l,e,n,r)}return!o&&d&&(o=d.component),o?{type:t,component:o,defaults:Object.assign(Object.assign({},d?d.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},d?d.overrides:{}),s?s.rawOptions:{})}:null}function _s(t){return Xe(t,cp)}function cp(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=xs(e):n&&!(n.prototype instanceof ue)&&(n=xs(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function xs(t){return e=>p(et.Consumer,null,n=>p(He,{elTag:"div",elClasses:Ba(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function dp(t,e,n,r){let i=_s(t),s=_s(e.views),a=op(i,s);return Xe(a,o=>up(o,s,e,n,r))}function up(t,e,n,r,i){let s=t.overrides.duration||t.defaults.duration||r.duration||n.duration,a=null,o="",l="",d={};if(s&&(a=fp(s),a)){let g=Rr(a);o=g.unit,g.value===1&&(l=o,d=e[o]?e[o].rawOptions:{})}let c=g=>{let u=g.buttonText||{},v=t.defaults.buttonTextKey;return v!=null&&u[v]!=null?u[v]:u[t.type]!=null?u[t.type]:u[l]!=null?u[l]:null},f=g=>{let u=g.buttonHints||{},v=t.defaults.buttonTextKey;return v!=null&&u[v]!=null?u[v]:u[t.type]!=null?u[t.type]:u[l]!=null?u[l]:null};return{type:t.type,component:t.component,duration:a,durationUnit:o,singleUnit:l,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},d),t.overrides),buttonTextOverride:c(r)||c(n)||t.overrides.buttonText,buttonTextDefault:c(i)||t.defaults.buttonText||c(Qt)||t.type,buttonTitleOverride:f(r)||f(n)||t.overrides.buttonHint,buttonTitleDefault:f(i)||t.defaults.buttonHint||f(Qt)}}let Rs={};function fp(t){let e=JSON.stringify(t),n=Rs[e];return n===void 0&&(n=ae(t),Rs[e]=n),n}function hp(t,e){return e.type==="CHANGE_VIEW_TYPE"&&(t=e.viewType),t}function gp(t,e){return e.type==="SET_OPTION"?Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue}):t}function pp(t,e,n,r){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(i=r.buildPrev(t,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(t,n),i.isValid)return i;break}return t}function mp(t,e,n){let r=e?e.activeRange:null;return Mo({},wp(t,n),r,n)}function vp(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Mo(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return bp(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Oo(t,i,r):t;case"FETCH_EVENT_SOURCES":return _i(t,e.sourceIds?Ia(e.sourceIds):No(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Dp(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function yp(t,e,n){let r=e?e.activeRange:null;return _i(t,No(t,n),r,!0,n)}function Io(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Mo(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=Oo(i,n,r)),Object.assign(Object.assign({},t),i)}function bp(t,e){return wt(t,n=>n.sourceId!==e)}function Oo(t,e,n){return _i(t,wt(t,r=>Sp(r,e,n)),e,!1,n)}function Sp(t,e,n){return Po(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function _i(t,e,n,r,i){let s={};for(let a in t){let o=t[a];e[a]?s[a]=Ep(o,n,r,i):s[a]=o}return s}function Ep(t,e,n,r){let{options:i,calendarApi:s}=r,a=r.pluginHooks.eventSourceDefs[t.sourceDefId],o=_t();return a.fetch({eventSource:t,range:e,isRefetch:n,context:r},l=>{let{rawEvents:d}=l;i.eventSourceSuccess&&(d=i.eventSourceSuccess.call(s,d,l.response)||d),t.success&&(d=t.success.call(s,d,l.response)||d),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:o,fetchRange:e,rawEvents:d})},l=>{let d=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,l),d=!0),t.failure&&(t.failure(l),d=!0),d||console.warn(l.message,l),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:o,fetchRange:e,error:l})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:o})}function Dp(t,e,n,r){let i=t[e];return i&&n===i.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):t}function No(t,e){return wt(t,n=>Po(n,e))}function wp(t,e){let n=Va(e),r=[].concat(t.eventSources||[]),i=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let s of r){let a=za(s,e,n);a&&i.push(a)}return i}function Po(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Cp(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function Ap(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function _p(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function xp(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Rp(t,e,n,r,i){let s=t.headerToolbar?Ts(t.headerToolbar,t,e,n,r,i):null,a=t.footerToolbar?Ts(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:a}}function Ts(t,e,n,r,i,s){let a={},o=[],l=!1;for(let d in t){let c=t[d],f=Tp(c,e,n,r,i,s);a[d]=f.widgets,o.push(...f.viewsWithButtons),l=l||f.hasTitle}return{sectionWidgets:a,viewsWithButtons:o,hasTitle:l}}function Tp(t,e,n,r,i,s){let a=e.direction==="rtl",o=e.customButtons||{},l=n.buttonText||{},d=e.buttonText||{},c=n.buttonHints||{},f=e.buttonHints||{},g=t?t.split(" "):[],u=[],v=!1;return{widgets:g.map(b=>b.split(",").map(w=>{if(w==="title")return v=!0,{buttonName:w};let x,P,L,N,I,E;if(x=o[w])L=_=>{x.click&&x.click.call(_.target,_,_.target)},(N=r.getCustomButtonIconClass(x))||(N=r.getIconClass(w,a))||(I=x.text),E=x.hint||x.text;else if(P=i[w]){u.push(w),L=()=>{s.changeView(w)},(I=P.buttonTextOverride)||(N=r.getIconClass(w,a))||(I=P.buttonTextDefault);let _=P.buttonTextOverride||P.buttonTextDefault;E=Yt(P.buttonTitleOverride||P.buttonTitleDefault||e.viewHint,[_,w],_)}else if(s[w])if(L=()=>{s[w]()},(I=l[w])||(N=r.getIconClass(w,a))||(I=d[w]),w==="prevYear"||w==="nextYear"){let _=w==="prevYear"?"prev":"next";E=Yt(c[_]||f[_],[d.year||"year","year"],d[w])}else E=_=>Yt(c[w]||f[w],[d[_]||_,_],d[w]);return{buttonName:w,buttonClick:L,buttonIcon:N,buttonText:I,buttonHint:E}})),viewsWithButtons:u,hasTitle:v}}class kp{constructor(e,n,r){this.type=e,this.getCurrentData=n,this.dateEnv=r}
1get 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(e){return this.getCurrentData().options[e]}}let Ip={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const Mp=tt({name:"array-event-source",eventSourceDefs:[Ip]});let Op={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,i=t.eventSource.meta;Gh(i.bind(null,to(t.range,r)),s=>e({rawEvents:s}),n)}};const Np=tt({name:"func-event-source",eventSourceDefs:[Op]}),Pp={method:String,extraParams:D,startParam:String,endParam:String,timeZoneParam:String};let Bp={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:r}=t.eventSource,i=Fp(r,t.range,t.context);qh(r.method,r.url,i).then(([s,a])=>{e({rawEvents:s,response:a})},n)}};const Hp=tt({name:"json-event-source",eventSourceRefiners:Pp,eventSourceDefs:[Bp]});function Fp(t,e,n){let{dateEnv:r,options:i}=n,s,a,o,l,d={};return s=t.startParam,s==null&&(s=i.startParam),a=t.endParam,a==null&&(a=i.endParam),o=t.timeZoneParam,o==null&&(o=i.timeZoneParam),typeof t.extraParams=="function"?l=t.extraParams():l=t.extraParams||{},Object.assign(d,l),d[s]=r.formatIso(e.start),d[a]=r.formatIso(e.end),r.timeZone!=="local"&&(d[o]=r.timeZone),d}const jp={daysOfWeek:D,startTime:ae,endTime:ae,duration:ae,startRecur:D,endRecur:D};let Lp={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=nf(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=Ct(e,{start:t.startRecur,end:t.endRecur});return r?Up(t.daysOfWeek,t.startTime,r,n):[]}};const $p=tt({name:"simple-recurring-event",recurringTypes:[Lp],eventRefiners:jp});function Up(t,e,n,r){let i=t?Ia(t):null,s=pe(n.start),a=n.end,o=[];for(;s<a;){let l;(!i||i[s.getUTCDay()])&&(e?l=r.add(s,e):l=s,o.push(l)),s=ke(s,1)}return o}const Wp=tt({name:"change-handler",optionChangeHandlers:{events(t,e){ks([t],e)},eventSources:ks}});function ks(t,e){let n=ai(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let r=[];for(let i of t){let s=!1;for(let a=0;a<n.length;a+=1)if(n[a]._raw===i){n.splice(a,1),s=!0;break}s||r.push(i)}for(let i of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)e.calendarApi.addEventSource(i)}function zp(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},to(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function Vp(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",St(t,e))}const Gp=[Mp,Np,Hp,$p,Wp,tt({name:"misc",isLoadingFuncs:[t=>Io(t.eventSources)],propSetHandlers:{dateProfile:zp,eventStore:Vp}})];class qp{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new Xr(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function Yp(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,Se(e.titleFormat||Qp(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Qp(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};
vendor: 18,304 bytes, line 1
1if(e==="month")return{year:"numeric",month:"long"};let n=In(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Zp{constructor(e){this.computeCurrentViewData=G(this._computeCurrentViewData),this.organizeRawLocales=G(ep),this.buildLocale=G(To),this.buildPluginHooks=ip(),this.buildDateEnv=G(Xp),this.buildTheme=G(Kp),this.parseToolbars=G(Rp),this.buildViewSpecs=G(dp),this.buildDateProfileGenerator=Cn(Jp),this.buildViewApi=G(em),this.buildViewUiProps=Cn(rm),this.buildEventUiBySource=G(tm,Ve),this.buildEventUiBases=G(nm),this.parseContextBusinessHours=Cn(im),this.buildTitle=G(Yp),this.emitter=new Qn,this.actionRunner=new qp(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=e,this.actionRunner.pause();let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,s=this.computeCurrentViewData(i,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let a=ah(r.calendarOptions,r.dateEnv),o=s.dateProfileGenerator.build(a);Ze(o.activeRange,a)||(a=o.currentRange.start);let l={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let g of r.pluginHooks.contextInit)g(l);let d=mp(r.calendarOptions,o,l),c={dynamicOptionOverrides:n,currentViewType:i,currentDate:a,dateProfile:o,businessHours:this.parseContextBusinessHours(l),eventSources:d,eventUiBases:{},eventStore:Be(),renderableEventStore:Be(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},f=Object.assign(Object.assign({},l),c);for(let g of r.pluginHooks.reducers)Object.assign(c,g(null,null,f));br(c,l)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:i}=this,s=gp(r.dynamicOptionOverrides,e),a=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),o=hp(r.currentViewType,e),l=this.computeCurrentViewData(o,a,n.optionOverrides,s);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(l.options);let d={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:f}=r;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(f=l.dateProfileGenerator.build(c)),c=sh(c,e),f=pp(f,e,c,l.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!Ze(f.currentRange,c))&&(c=f.currentRange.start);let g=vp(r.eventSources,e,f,d),u=bh(r.eventStore,e,g,f,d),m=Io(g)&&!l.options.progressiveEventRendering&&r.renderableEventStore||u,{eventUiSingleBase:b,selectionConfig:w}=this.buildViewUiProps(d),x=this.buildEventUiBySource(g),P=this.buildEventUiBases(m.defs,b,x),L={dynamicOptionOverrides:s,currentViewType:o,currentDate:c,dateProfile:f,eventSources:g,eventStore:u,renderableEventStore:m,selectionConfig:w,eventUiBases:P,businessHours:this.parseContextBusinessHours(d),dateSelection:Cp(r.dateSelection,e),eventSelection:Ap(r.eventSelection,e),eventDrag:_p(r.eventDrag,e),eventResize:xp(r.eventResize,e)},N=Object.assign(Object.assign({},d),L);for(let _ of a.pluginHooks.reducers)Object.assign(L,_(r,e,N));let I=br(r,d),E=br(L,d);!I&&E?i.trigger("loading",!0):I&&!E&&i.trigger("loading",!1),this.state=L,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,i=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(n.currentViewType,i,e.optionOverrides,n.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,s.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),s),n),o=i.pluginHooks.optionChangeHandlers,l=r&&r.calendarOptions,d=i.calendarOptions;if(l&&l!==d){l.timeZone!==d.timeZone&&(n.eventSources=a.eventSources=yp(a.eventSources,n.dateProfile,a),n.eventStore=a.eventStore=bs(a.eventStore,r.dateEnv,a.dateEnv),n.renderableEventStore=a.renderableEventStore=bs(a.renderableEventStore,r.dateEnv,a.dateEnv));for(let c in o)(this.optionsForHandling.indexOf(c)!==-1||l[c]!==d[c])&&o[c](d[c],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:s,localeDefaults:a,availableLocaleData:o,extra:l}=this.processRawCalendarOptions(e,n);Is(l);let d=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,o,i.defaultRangeSeparator),c=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),f=this.buildTheme(i,s),g=this.parseToolbars(i,this.stableOptionOverrides,f,c,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:d,viewSpecs:c,theme:f,toolbarConfig:g,localeDefaults:a,availableRawLocales:o.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=dr([Qt,e,n]),s=this.organizeRawLocales(r),a=s.map,o=this.buildLocale(i||s.defaultCode,a).options,l=this.buildPluginHooks(e.plugins||[],Gp),d=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hs),gs),ps),l.listenerRefiners),l.optionRefiners),c={},f=dr([Qt,o,e,n]),g={},u=this.currentCalendarOptionsInput,v=this.currentCalendarOptionsRefined,m=!1;for(let b in f)this.optionsForRefining.indexOf(b)===-1&&(f[b]===u[b]||pt[b]&&b in u&&pt[b](u[b],f[b]))?g[b]=v[b]:d[b]?(g[b]=d[b](f[b]),m=!0):c[b]=u[b];return m&&(this.currentCalendarOptionsInput=f,this.currentCalendarOptionsRefined=g,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:s,localeDefaults:o,extra:c}}_computeCurrentViewData(e,n,r,i){let s=n.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:o}=this.processRawViewOptions(s,n.pluginHooks,n.localeDefaults,r,i);Is(o);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.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}),d=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:a,dateProfileGenerator:l,viewApi:d}}processRawViewOptions(e,n,r,i,s){let a=dr([Qt,e.optionDefaults,r,i,e.optionOverrides,s]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hs),gs),ps),Bf),n.listenerRefiners),n.optionRefiners),l={},d=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,f=!1,g={};for(let u in a)a[u]===d[u]||pt[u]&&pt[u](a[u],d[u])?l[u]=c[u]:(a[u]===this.currentCalendarOptionsInput[u]||pt[u]&&pt[u](a[u],this.currentCalendarOptionsInput[u])?u in this.currentCalendarOptionsRefined&&(l[u]=this.currentCalendarOptionsRefined[u]):o[u]?l[u]=o[u](a[u]):g[u]=a[u],f=!0);return f&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:g}}}function Xp(t,e,n,r,i,s,a,o){let l=To(e||a.defaultCode,a.map);return new Gf({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:o})}function Kp(t,e){let n=e.themeClasses[t.themeSystem]||ut;return new n(t)}function Jp(t){let e=t.dateProfileGeneratorClass||ja;return new e(t)}function em(t,e,n){return new kp(t,e,n)}function tm(t){return Xe(t,e=>e.ui)}function nm(t,e,n){let r={"":e};for(let i in t){let s=t[i];s.sourceId&&n[s.sourceId]&&(r[i]=n[s.sourceId])}return r}function rm(t){let{options:e}=t;return{eventUiSingleBase:Fn({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:Fn({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function br(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function im(t){return Rh(t.options.businessHours,t)}function Is(t,e){for(let n in t)console.warn(`Unknown option '${n}'`)}class sm extends ue{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return p("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,i=[],s=!0;for(let a of e){let{buttonName:o,buttonClick:l,buttonText:d,buttonIcon:c,buttonHint:f}=a;if(o==="title")s=!1,i.push(p("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let g=o===n.activeButton,u=!n.isTodayEnabled&&o==="today"||!n.isPrevEnabled&&o==="prev"||!n.isNextEnabled&&o==="next",v=[`fc-${o}-button`,r.getClass("button")];g&&v.push(r.getClass("buttonActive")),i.push(p("button",{type:"button",title:typeof f=="function"?f(n.navUnit):f,disabled:u,"aria-pressed":g,className:v.join(" "),onClick:l},d||(c?p("span",{className:c,role:"img"}):"")))}}if(i.length>1){let a=s&&r.getClass("buttonGroup")||"";return p("div",{className:a},...i)}return i[0]}}class Ms extends ue{render(){let{model:e,extraClassName:n}=this.props,r=!1,i,s,a=e.sectionWidgets,o=a.center;return a.left?(r=!0,i=a.left):i=a.start,a.right?(r=!0,s=a.right):s=a.end,p("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",o||[]),this.renderSection("end",s||[]))}renderSection(e,n){let{props:r}=this;return p(sm,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class am extends ue{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,Ke(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,i=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",a="";return r?n.availableWidth!==null?s=n.availableWidth/r:a=`${1/r*100}%`:s=e.height||"",p("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:s,paddingBottom:a}},e.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 om extends $t{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,a=Bt(r);if(a&&i.isValidSegDownEl(n.target)){let o=Te(n.target,".fc-event-forced-url"),l=o?o.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new ve(i.context,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:s.viewApi}),l&&!n.defaultPrevented&&(window.location.href=l)}},this.destroy=_a(e.el,"click",".fc-event",this.handleSegClick)}}class lm extends $t{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{Bt(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=$u(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,a=Bt(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new ve(s,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:s.viewApi})}}class cm extends Rt{constructor(){super(...arguments),this.buildViewContext=G(Qf),this.buildViewPropTransformers=G(um),this.buildToolbarProps=G(dm),this.headerRef=Me(),this.footerRef=Me(),this.interactionsStore={},this.state={viewLabelId:Vn()},this.registerInteractiveComponent=(e,n)=>{let r=Zh(e,n),a=[om,lm].concat(this.props.pluginHooks.componentInteractions).map(o=>new o(r));this.interactionsStore[e.uid]=a,Or[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete Or[e.uid]},this.resizeRunner=new Xr(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,an(e.options.now,e.dateEnv),e.viewTitle),s=!1,a="",o;e.isHeightAuto||e.forPrint?a="":r.height!=null?s=!0:r.contentHeight!=null?a=r.contentHeight:o=Math.max(r.aspectRatio,.5);let l=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),d=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return p(et.Provider,{value:l},n.header&&p(Ms,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:d},i)),p(am,{liquid:s,height:a,aspectRatio:o,labeledById:d},this.renderView(e),this.buildAppendContent()),n.footer&&p(Ms,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==e[i]&&r[i](n[i],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return p(me,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,i={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},s=this.buildViewPropTransformers(n.viewPropsTransformers);for(let o of s)Object.assign(i,o.transform(i,e));let a=r.component;return p(a,Object.assign({},i))}}function dm(t,e,n,r,i,s){let a=n.build(i,void 0,!1),o=n.buildPrev(e,r,!1),l=n.buildNext(e,r,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:a.isValid&&!Ze(e.currentRange,i),isPrevEnabled:o.isValid,isNextEnabled:l.isValid}}function um(t){return t.map(e=>new e)}class fm extends Xh{constructor(e,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;Pn(()=>{Jt(p(Qh,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,a,o)=>(this.setClassNames(i),this.setHeight(s),p(Pa.Provider,{value:this.customContentRenderId},p(cm,Object.assign({isHeightAuto:a,forPrint:o},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Jt(null,this.el),this.setClassNames([]),this.setHeight(""))},Mu(e),this.el=e,this.renderRunner=new Xr(this.handleRenderRequest),new Zp({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){Pn(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!ct(e,this.currentClassNames)){let{classList:n}=this.el;
1for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){Ca(this.el,"height",e)}}const hm={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},gm=De({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:vm(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(Sn(pm,{key:e.id,customRendering:e}));return Sn("div",{attrs:{"data-fc-render-id":this.renderId}},Sn(Ee,t))},mounted(){const t=new Kg;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new fm(this.$el,e);this.calendar=n,n.render(),t.subscribe(r=>{this.customRenderingMap=r,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:mm()}),pm=De({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return Sn(qs,{to:t.containerEl},e)}});function mm(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let r=this.buildOptions(e);n.resetOptions(r),this.renderId++}}};for(let e in hm)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let r=this.getApi();r.pauseRendering(),r.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function vm(t){const e={};for(const n in t)e[ym(n)]=t[n];return e}function ym(t){return t.split("-").map((e,n)=>n?bm(e):e).join("")}function bm(t){return t.charAt(0).toUpperCase()+t.slice(1)}class Sm extends Ge{constructor(){super(...arguments),this.headerElRef=Me()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],a=$n(i.options);return e&&s.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}
vendor: 3,912 bytes, line 1
1),p(Bn,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},p(Ei,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,n,r,i){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:a,context:o}=this,l=!a.forPrint&&$n(o.options),d=!a.forPrint&&So(o.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),d&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Br}]}),p(Bn,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},p(s,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:c}))}}function vn(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.row].push(r);return n}function yn(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.firstCol].push(r);return n}function Os(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}const Bo=Se({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Ho(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class Fo extends ue{render(){let{props:e}=this;return p(Eo,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Bo,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class jo extends ue{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,s=r.eventTimeFormat||Bo,a=Ka(i,s,n,!0,e.defaultDisplayEventEnd);return p(Di,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:eo(e.seg,n),defaultGenerator:Em,timeText:a,isResizing:!1,isDateSelecting:!1}))}}function Em(t){return p(me,null,p("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&p("div",{className:"fc-event-time"},t.timeText),p("div",{className:"fc-event-title"},t.event.title||p(me,null," ")))}class Dm extends ue{constructor(){super(...arguments),this.compileSegs=G(wm)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return p(Ao,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let i=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return p(me,null,n.map(s=>{let a=s.eventRange.instance.instanceId;return p("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:i[a]?"hidden":""}},Ho(s)?p(jo,Object.assign({seg:s,isDragging:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},ot(s,e.todayRange))):p(Fo,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},ot(s,e.todayRange))))}))}})}}function wm(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}const Cm=Se({week:"narrow"});class Am extends Ge{constructor(){super(...arguments),this.rootElRef=Me(),this.state={dayNumberId:Vn()},this.handleRootEl=e=>{Ke(this.rootElRef,e),Ke(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:i}=this,{options:s,dateEnv:a}=e,{date:o,dateProfile:l}=n;const d=n.showDayNumber&&xm(o,l.currentRange,a);return p(Ci,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygri
1d-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:_m,date:o,dateProfile:l,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:d,extraRenderProps:n.extraRenderProps},(c,f)=>p("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&p(Co,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Ln(e,o,"week"),date:o,defaultFormat:Cm}),!f.isDisabled&&(n.showDayNumber||Ai(s)||n.forceDayTop)?p("div",{className:"fc-daygrid-day-top"},p(c,{elTag:"a",elClasses:["fc-daygrid-day-number",d&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Ln(e,o)),{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(Dm,{allDayDate:o,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 _m(t){return t.dayNumberText||p(me,null," ")}function xm(t,e,n){const{start:r,end:i}=e,s=dt(i,-1),a=n.getYear(r),o=n.getMonth(r),l=n.getYear(s),d=n.getMonth(s);return!(a===l&&o===d)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<i.valueOf())}function Lo(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function $o(t){return Lo(t)+":"+t.lastCol}function Rm(t,e,n,r,i,s,a){let o=new Im(w=>{let x=t[w.index].eventRange.instance.instanceId+":"+w.span.start+":"+(w.span.end-1);return i[x]||1});o.allowReslicing=!0,o.strictOrder=r,e===!0||n===!0?(o.maxCoord=s,o.hiddenConsumes=!0):typeof e=="number"?o.maxStackCnt=e:typeof n=="number"&&(o.maxStackCnt=n,o.hiddenConsumes=!0);let l=[],d=[];for(let w=0;w<t.length;w+=1){let x=t[w],P=$o(x);i[P]!=null?l.push({index:w,span:{start:x.firstCol,end:x.lastCol+1}}):d.push(x)}let c=o.addSegs(l),f=o.toRects(),{singleColPlacements:g,multiColPlacements:u,leftoverMargins:v}=Tm(f,t,a),m=[],b=[];for(let w of d){u[w.firstCol].push({seg:w,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let x=w.firstCol;x<=w.lastCol;x+=1)g[x].push({seg:Nt(w,x,x+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let w=0;w<a.length;w+=1)m.push(0);for(let w of c){let x=t[w.index],P=w.span;u[P.start].push({seg:Nt(x,P.start,P.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let L=P.start;L<P.end;L+=1)m[L]+=1,g[L].push({seg:Nt(x,L,L+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let w=0;w<a.length;w+=1)b.push(v[w]);return{singleColPlacements:g,multiColPlacements:u,moreCnts:m,moreMarginTops:b}}function Tm(t,e,n){let r=km(t,n.length),i=[],s=[],a=[];for(let o=0;o<n.length;o+=1){let l=r[o],d=[],c=0,f=0;for(let u of l){let v=e[u.index];d.push({seg:Nt(v,o,o+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:u.levelCoord,marginTop:u.levelCoord-c}),c=u.levelCoord+u.thickness}let g=[];c=0,f=0;for(let u of l){let v=e[u.index],m=u.span.end-u.span.start>1,b=u.span.start===o;f+=u.levelCoord-c,c=u.levelCoord+u.thickness,m?(f+=u.thickness,b&&g.push({seg:Nt(v,u.span.start,u.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:u.levelCoord,marginTop:0})):b&&(g.push({seg:Nt(v,u.span.start,u.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:u.levelCoord,marginTop:f}),f=0)}i.push(d),s.push(g),a.push(f)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:a}}function km(t,e){let n=[];for(let r=0;r<e;r+=1)n.push([]);for(let r of t)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function Nt(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,s=i.range,a=Ct(s,{start:r[e].date,end:ke(r[n-1].date,1)});return Object.assign(Object.assign({}
vendor: 8,446 bytes, line 1
1,t),{firstCol:e,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:a},isStart:t.isStart&&a.start.valueOf()===s.start.valueOf(),isEnd:t.isEnd&&a.end.valueOf()===s.end.valueOf()})}class Im extends lo{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[Et(s)];for(let s=0;s<r.length;s+=1)r[s]=r[s].filter(i);return n}handleInvalidInsertion(e,n,r){const{entriesByLevel:i,forceHidden:s}=this,{touchingEntry:a,touchingLevel:o,touchingLateral:l}=e;if(this.hiddenConsumes&&a){const d=Et(a);if(!s[d])if(this.allowReslicing){const c=Object.assign(Object.assign({},a),{span:bi(a.span,n.span)}),f=Et(c);s[f]=!0,i[o][l]=c,r.push(c),this.splitEntry(a,n,r)}else s[d]=!0,r.push(a)}super.handleInvalidInsertion(e,n,r)}}class Uo extends Ge{constructor(){super(...arguments),this.cellElRefs=new Ye,this.frameElRefs=new Ye,this.fgElRefs=new Ye,this.segHarnessRefs=new Ye,this.rootElRef=Me(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:i}=r,s=e.cells.length,a=yn(e.businessHourSegs,s),o=yn(e.bgEventSegs,s),l=yn(this.getHighlightSegs(),s),d=yn(this.getMirrorSegs(),s),{singleColPlacements:c,multiColPlacements:f,moreCnts:g,moreMarginTops:u}=Rm(Xa(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),v=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return p("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((m,b)=>{let w=this.renderFgSegs(b,e.forPrint?c[b]:f[b],e.todayRange,v),x=this.renderFgSegs(b,Mm(d[b],f),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return p(Am,{key:m.key,elRef:this.cellElRefs.createRef(m.key),innerElRef:this.frameElRefs.createRef(m.key),dateProfile:e.dateProfile,date:m.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&b===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:m.extraRenderProps,extraDataAttrs:m.extraDataAttrs,extraClassNames:m.extraClassNames,extraDateSpan:m.extraDateSpan,moreCnt:g[b],moreMarginTop:u[b],singlePlacements:c[b],fgContentElRef:this.fgElRefs.createRef(m.key),fgContent:p(me,null,p(me,null,w),p(me,null,x)),bgContent:p(me,null,this.renderFillSegs(l[b],"highlight"),this.renderFillSegs(a[b],"non-business"),this.renderFillSegs(o[b],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!Ve(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,r,i,s,a,o){let{context:l}=this,{eventSelection:d}=this.props,{framePositions:c}=this.state,f=this.props.cells.length===1,g=s||a||o,u=[];if(c)for(let v of n){let{seg:m}=v,{instanceId:b}=m.eventRange.instance,w=v.isVisible&&!i[b],x=v.isAbsolute,P="",L="";x&&(l.isRtl?(L=0,P=c.lefts[m.lastCol]-c.lefts[m.firstCol]):(P=0,L=c.rights[m.firstCol]-c.rights[m.lastCol])),u.push(p("div",{className:"fc-daygrid-event-harness"+(x?" fc-daygrid-event-harness-abs":""),key:Lo(m),ref:g?null:this.segHarnessRefs.createRef($o(m)),style:{visibility:w?"":"hidden",marginTop:x?"":v.marginTop,top:x?v.absoluteTop:"",left:P,right:L}},Ho(m)?p(jo,Object.assign({seg:m,isDragging:s,isSelected:b===d,defaultDisplayEventEnd:f},ot(m,r))):p(Fo,Object.assign({seg:m,isDragging:s,isResizing:a,isDateSelecting:o,isSelected:b===d,defaultDisplayEventEnd:f},ot(m,r)))))}return u}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:s}=this.state,a=[];if(s)for(let o of e){let l=r?{right:0,left:s.lefts[o.lastCol]-s.lefts[o.firstCol]}:{left:0,right:s.rights[o.firstCol]-s.rights[o.lastCol]};a.push(p("div",{key:Ja(o.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?p(Do,Object.assign({seg:o},ot(o,i))):wo(n)))}return p(me,{},...a)}updateSizing(e){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let l=n.cells.map(d=>i.currentMap[d.key]);if(l.length){let d=this.rootElRef.current,c=new Ht(d,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(c))&&this.setState({framePositions:new Ht(d,l,!0,!1)})}}const s=this.state.segHeights,a=this.querySegHeights(),o=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),a),maxContentHeight:o?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let i=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,i)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}Uo.addStateEquality({segHeights:Ve});function Mm(t,e){if(!t.length)return[];let n=Om(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function Om(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class Nm extends Ge{constructor(){super(...arguments),this.splitBusinessHourSegs=G(vn),this.splitBgEventSegs=G(vn),this.splitFgEventSegs=G(vn),this.splitDateSelectionSegs=G(vn),this.splitEventDrag=G(Os),this.splitEventResize=G(Os),this.rowRefs=new Ye}render(){let{props:e,context:n}=this,r=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),a=this.splitFgEventSegs(e.fgEventSegs,r),o=this.splitDateSelectionSegs(e.dateSelectionSegs,r),l=this.splitEventDrag(e.eventDrag,r),d=this.splitEventResize(e.eventResize,r),c=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return p(on,{unit:"day"},(f,g)=>p(me,null,e.cells.map((u,v)=>p(Uo,{ref:this.rowRefs.createRef(v),key:u.length?u[0].date.toISOString():v,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:g,dateProfile:e.dateProfile,cells:u,renderIntro:e.renderRowIntro,businessHourSegs:i[v],eventSelection:e.eventSelection,bgEventSegs:s[v].filter(Pm),fgEventSegs:a[v],dateSelectionSegs:o[v],eventDrag:l[v],eventResize:d[v],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Ht(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Ht(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:i}=this,s=r.leftToIndex(e),a=i.topToIndex(n);if(a!=null&&s!=null){let o=this.props.cells[a][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,s),allDay:!0},o.extraDateSpan),dayEl:this.getCellEl(a,s),rect:{left:r.lefts[s],right:r.rights[s],top:i.tops[a],bottom:i.bottoms[a]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,i=ke(r,1);return{start:r,end:i}}}function Pm(t){return t.eventRange.def.allDay}class Bm extends Ge{constructor(){super(...arguments),this.elRef=Me(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=e,s=r===!0||n===!0;s&&!i&&(s=!1,n=null,r=null);
1let a=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return p("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},p("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,p("tbody",{role:"presentation"},p(Nm,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=Hm(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function Hm(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${bf(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${ni(e.currentDate)}"]`)),n}class Fm extends po{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class Wo extends Ge{constructor(){super(...arguments),this.slicer=new Fm,this.tableRef=Me()}render(){let{props:e,context:n}=this;return p(Bm,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class jm extends Sm{constructor(){super(...arguments),this.buildDayTableModel=G(Lm),this.headerRef=Me(),this.tableRef=Me()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&p(fo,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),a=o=>p(Wo,{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:e.nextDayThreshold,colGroupNode:o.tableColGroupNode,tableMinWidth:o.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:o.clientWidth,clientHeight:o.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,a,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,a)}}function Lm(t,e){let n=new ho(t.renderRange,e);return new go(n,/year|month|week/.test(t.currentRangeUnit))}class $m extends ja{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return Um({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function Um(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:i}=n,s;if(t.snapToWeek&&(r=e.startOfWeek(r),s=e.startOfWeek(i),s.valueOf()!==i.valueOf()&&(i=os(s,1))),t.fixedWeekCount){let a=e.startOfWeek(e.startOfMonth(ke(n.end,-1))),o=Math.ceil(lf(a,i));i=os(i,6-o)}return{start:r,end:i}}var Wm
vendor: 3,524 bytes, line 1
1=':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}';
vendor: 24,716 bytes, line 1
1Zr(Wm);var zm=tt({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:jm,dateProfileGeneratorClass:$m},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}}}});class Vm extends ng{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?Oh(e)?["timed","allDay"]:["allDay"]:["timed"]}}const Gm=Se({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function zo(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return p(et.Consumer,null,n=>{if(!t.isLabeled)return p("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=n,a=i.slotLabelFormat==null?Gm:Array.isArray(i.slotLabelFormat)?Se(i.slotLabelFormat[0]):Se(i.slotLabelFormat),o={level:0,time:t.time,date:r.toDate(t.date),view:s,text:r.format(t.date,a)};return p(He,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:o,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:qm,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 qm(t){return t.text}class Ym extends ue{render(){return this.props.slatMetas.map(e=>p("tr",{key:e.key},p(zo,Object.assign({},e))))}}const Qm=Se({week:"short"}),Zm=5;class Xm extends Ge{constructor(){super(...arguments),this.allDaySplitter=new Vm,this.headerElRef=Me(),this.rootElRef=Me(),this.scrollerElRef=Me(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:r}=this.context,{dateProfile:i}=this.props,s=i.renderRange,o=xt(s.start,s.end)===1?Ln(this.context,s.start,"week"):{};return r.weekNumbers&&e==="day"?p(Co,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:Qm},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:o}))):p("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},p("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:r}=this.context,i={text:n.allDayText,view:r};return p(He,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:Km,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},s=>p("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},p(s,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,r){let{context:i,props:s}=this,a=[],o=$n(i.options);return e&&a.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),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:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),p(Bn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},p(Ei,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(e,n,r,i,s,a,o){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:d,props:c}=this,f=!c.forPrint&&$n(d.options),g=!c.forPrint&&So(d.options),u=[];e&&u.push({type:"header",key:"header",isSticky:f,syncRowHeights:!0,chunks:[{key:"axis",rowContent:m=>p("tr",{role:"presentation"},this.renderHeadAxis("day",m.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(u.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:m=>p("tr",{role:"presentation"},this.renderTableRowAxis(m.rowSyncHeights[0]))},{key:"cols",content:n}]}),u.push({key:"all-day-divider",type:"body",outerContent:p("tr",{role:"presentation",className:"fc-scrollgrid-section"},p("td",{colSpan:2,className:"fc-timegrid-divider "+d.theme.getClass("tableCellShaded")}))}));let v=d.options.nowIndicator;return u.push({type:"body",key:"body",liquid:!0,expandRows:!!d.options.expandRows,chunks:[{key:"axis",content:m=>p("div",{className:"fc-timegrid-axis-chunk"},p("table",{"aria-hidden":!0,style:{height:m.expandRows?m.clientHeight:""}},m.tableColGroupNode,p("tbody",null,p(Ym,{slatMetas:a}))),p("div",{className:"fc-timegrid-now-indicator-container"},p(on,{unit:v?"minute":"day"},b=>{let w=v&&o&&o.safeComputeTop(b);return typeof w=="number"?p(wi,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:w},isAxis:!0,date:b}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),g&&u.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Br},{key:"cols",content:Br}]}),p(Bn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:d.viewSpec},p(l,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:s}]}],sections:u}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=Zm),{dayMaxEvents:e,dayMaxEventRows:n}}}function Km(t){return t.text}class Jm{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(Ze(n.currentRange,e)){let r=pe(e),i=e.valueOf()-r.valueOf();if(i>=Le(n.slotMinTime)&&i<Le(n.slotMaxTime))return this.computeTimeTop(ae(i))}return null}computeDateTop(e,n){return n||(n=pe(e)),this.computeTimeTop(ae(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,i=n.els.length,s=(e.milliseconds-Le(r.slotMinTime))/Le(this.slotDuration),a,o;return s=Math.max(0,s),s=Math.min(i,s),a=Math.floor(s),a=Math.min(a,i-1),o=s-a,n.tops[a]+n.getHeight(a)*o}}class ev extends ue{render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:i}=e;return p("tbody",null,e.slatMetas.map((s,a)=>{let o={time:s.time,date:n.dateEnv.toDate(s.date),view:n.viewApi};return p("tr",{key:s.key,ref:i.createRef(s.key)},e.axis&&p(zo,Object.assign({},s)),p(He,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!s.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":s.isoTimeStr},renderProps:o,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class tv extends ue{constructor(){super(...arguments),this.rootElRef=Me(),this.slatElRefs=new Ye}render(){let{props:e,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:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,p(ev,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new Jm(new Ht(this.rootElRef.current,nv(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function nv(t,e){return e.map(n=>t[n.key])}function Vt(t,e){let n=[],r;for(r=0;r<e;r+=1)n.push([]);if(t)for(r=0;r<t.length;r+=1)n[t[r].col].push(t[r]);return n}function Ns(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.col].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}class rv extends ue{render(){let{props:e}=this;return p(Ao,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>Go(e.hiddenSegs,e),defaultGenerator:iv,forceTimed:!0},n=>p(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function iv(t){return t.shortText}function sv(t,e,n){let r=new lo;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(t),s=pg(i),a=av(r);return a=dv(a,1),{segRects:uv(a),hiddenGroups:s}}function av(t){const{entriesByLevel:e}=t,n=xi((r,i)=>r+":"+i,(r,i)=>{let s=cv(t,r,i),a=Ps(s,n),o=e[r][i];return[Object.assign(Object.assign({},o),{nextLevelNodes:a[0]}),o.thickness+a[1]]});return Ps(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function Ps(t,e){if(!t)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=t,s=r,a=[];for(;s<i;)a.push(e(n,s)),s+=1;return a.sort(ov),[a.map(lv),a[0][1]]}function ov(t,e){return e[1]-t[1]}function lv(t){return t[0]}function cv(t,e,n){let{levelCoords:r,entriesByLevel:i}=t,s=i[e][n],a=r[e]+s.thickness,o=r.length,l=e;for(;l<o&&r[l]<a;l+=1);for(;l<o;l+=1){let d=i[l],c,f=Pr(d,s.span.start,Nr),g=f[0]+f[1],u=g;for(;(c=d[u])&&c.span.start<s.span.end;)u+=1;if(g<u)return{level:l,lateralStart:g,lateralEnd:u}}return null}function dv(t,e){const n=xi((r,i,s)=>Et(r),(r,i,s)=>{let{nextLevelNodes:a,thickness:o}=r,l=o+s,d=o/l,c,f=[];if(!a.length)c=e;else for(let u of a)if(c===void 0){let v=n(u,i,l);c=v[0],f.push(v[1])}else{let v=n(u,c,0);f.push(v[1])}let g=(c-i)*d;return[c-g,Object.assign(Object.assign({},r),{thickness:g,nextLevelNodes:f})]});return t.map(r=>n(r,0,0)[1])}function uv(t){let e=[];const n=xi((i,s,a)=>Et(i),(i,s,a)=>{let o=Object.assign(Object.assign({},i),{levelCoord:s,stackDepth:a,stackForward:0});return e.push(o),o.stackForward=r(i.nextLevelNodes,s+i.thickness,a+1)+1});function r(i,s,a){let o=0;for(let l of i)o=Math.max(n(l,s,a),o);return o}return r(t,0,0),e}function xi(t,e){const n={};return(...r)=>{let i=t(...r);return i in n?n[i]:n[i]=e(...r)}}function Bs(t,e,n=null,r=0){let i=[];if(n)for(let s=0;s<t.length;s+=1){let a=t[s],o=n.computeDateTop(a.start,e),l=Math.max(o+(r||0),n.computeDateTop(a.end,e));i.push({start:Math.round(o),end:Math.round(l)})}return i}function fv(t,e,n,r){let i=[],s=[];for(let d=0;d<t.length;d+=1){let c=e[d];c?i.push({index:d,thickness:1,span:c}):s.push(t[d])}let{segRects:a,hiddenGroups:o}=sv(i,n,r),l=[];for(let d of a)l.push({seg:t[d.index],rect:d});for(let d of s)l.push({seg:d,rect:null});return{segPlacements:l,hiddenGroups:o}}const hv=Se({hour:"numeric",minute:"2-digit",meridiem:!1});class Vo extends ue{render(){return p(Eo,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:hv}))}}class gv extends ue{constructor(){super(...arguments),this.sortEventSegs=G(Xa)}render(){let{props:e,context:n}=this,{options:r}=n,i=r.selectMirror,s=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||i&&e.dateSelectionSegs||[],a=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},o=this.sortEventSegs(e.fgEventSegs,r.eventOrder);return p(Ci,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},l=>p("div",{className:"fc-timegrid-col-frame"},p("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),p("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,a,!1,!1,!1)),p("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,{},!!e.eventDrag,!!e.eventResize,!!i,"mirror")),p("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),Ai(r)&&p(l,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,i,s,a){let{props:o}=this;return o.forPrint?Go(e,o):this.renderPositionedFgSegs(e,n,r,i,s,a)}renderPositionedFgSegs(e,n,r,i,s,a){let{eventMaxStack:o,eventShortHeight:l,eventOrderStrict:d,eventMinHeight:c}=this.context.options,{date:f,slatCoords:g,eventSelection:u,todayRange:v,nowDate:m}=this.props,b=r||i||s,w=Bs(e,f,g,c),{segPlacements:x,hiddenGroups:P}=fv(e,w,d,o);return p(me,null,this.renderHiddenGroups(P,e),x.map(L=>{let{seg:N,rect:I}=L,E=N.eventRange.instance.instanceId,_=b||!!(!n[E]&&I),B=Sr(I&&I.span),ge=!b&&I?this.computeSegHStyle(I):{left:0,right:0},we=!!I&&I.stackForward>0,xe=!!I&&I.span.end-I.span.start<l;return p("div",{className:"fc-timegrid-event-harness"+(we?" fc-timegrid-event-harness-inset":""),key:a||E,style:Object.assign(Object.assign({visibility:_?"":"hidden"},B),ge)},p(Vo,Object.assign({seg:N,isDragging:r,isResizing:i,isDateSelecting:s,isSelected:E===u,isShort:xe},ot(N,v,m))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:a,eventSelection:o,eventDrag:l,eventResize:d}=this.props;return p(me,null,e.map(c=>{let f=Sr(c.span),g=pv(c.entries,n);return p(rv,{key:ka(_o(g)),hiddenSegs:g,top:f.top,bottom:f.bottom,extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:a,eventSelection:o,eventDrag:l,eventResize:d})}))}renderFillSegs(e,n){let{props:r,context:i}=this,a=Bs(e,r.date,r.slatCoords,i.options.eventMinHeight).map((o,l)=>{let d=e[l];return p("div",{key:Ja(d.eventRange),className:"fc-timegrid-bg-harness",style:Sr(o)},n==="bg-event"?p(Do,Object.assign({seg:d},ot(d,r.todayRange,r.nowDate))):wo(n))});return p(me,null,a)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((i,s)=>p(wi,{key:s,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(i.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(e){let{isRtl:n,options:r}=this.context,i=r.slotEventOverlap,s=e.levelCoord,a=e.levelCoord+e.thickness,o,l;i&&(a=Math.min(1,s+(a-s)*2)),n?(o=1-a,l=s):(o=s,l=1-a);let d={zIndex:e.stackDepth+1,left:o*100+"%",right:l*100+"%"};return i&&!e.stackForward&&(d[n?"marginLeft":"marginRight"]=20),d}}function Go(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let a=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return p(me,null,t.map(o=>{let l=o.eventRange.instance.instanceId;return p("div",{key:l,style:{visibility:a[l]?"hidden":""}},p(Vo,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===r,isShort:!1},ot(o,e,n))))}))}function Sr(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function pv(t,e){return t.map(n=>e[n.index])}class mv extends ue{constructor(){super(...arguments),this.splitFgEventSegs=G(Vt),this.splitBgEventSegs=G(Vt),this.splitBusinessHourSegs=G(Vt),this.splitNowIndicatorSegs=G(Vt),this.splitDateSelectionSegs=G(Vt),this.splitEventDrag=G(Ns),this.splitEventResize=G(Ns),this.rootElRef=Me(),this.cellElRefs=new Ye}render(){let{props:e,context:n}=this,r=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),i=e.cells.length,s=this.splitFgEventSegs(e.fgEventSegs,i),a=this.splitBgEventSegs(e.bgEventSegs,i),o=this.splitBusinessHourSegs(e.businessHourSegs,i),l=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i),d=this.splitDateSelectionSegs(e.dateSelectionSegs,i),c=this.splitEventDrag(e.eventDrag,i),f=this.splitEventResize(e.eventResize,i);return p("div",{className:"fc-timegrid-cols",ref:this.rootElRef},p("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,p("tbody",{role:"presentation"},p("tr",{role:"row"},e.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(wi,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((g,u)=>p(gv,{key:g.key,elRef:this.cellElRefs.createRef(g.key),dateProfile:e.dateProfile,date:g.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:g.extraRenderProps,extraDataAttrs:g.extraDataAttrs,extraClassNames:g.extraClassNames,extraDateSpan:g.extraDateSpan,fgEventSegs:s[u],bgEventSegs:a[u],businessHourSegs:o[u],nowIndicatorSegs:l[u],dateSelectionSegs:d[u],eventDrag:c[u],eventResize:f[u],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new Ht(this.rootElRef.current,vv(this.cellElRefs.currentMap,e.cells),!0,!1))}}function vv(t,e){return e.map(n=>t[n.key])}class yv extends Ge{constructor(){super(...arguments),this.processSlotOptions=G(bv),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(e.time){let i=r.computeTimeTop(e.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return p("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},p(tv,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),p(mv,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:r,options:i}=this.context,{colCoords:s}=this,{dateProfile:a}=this.props,{slatCoords:o}=this.state,{snapDuration:l,snapsPerSlot:d}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),c=s.leftToIndex(e),f=o.positions.topToIndex(n);if(c!=null&&f!=null){let g=this.props.cells[c],u=o.positions.tops[f],v=o.positions.getHeight(f),m=(n-u)/v,b=Math.floor(m*d),w=f*d+b,x=this.props.cells[c].date,P=xr(a.slotMinTime,rf(l,w)),L=r.add(x,P),N=r.add(L,l);return{dateProfile:a,dateSpan:Object.assign({range:{start:L,end:N},allDay:!1},g.extraDateSpan),dayEl:s.els[c],rect:{left:s.lefts[c],right:s.rights[c],top:u,bottom:u+v},layer:0}}return null}}function bv(t,e){let n=e||t,r=ti(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class Sv extends po{sliceRange(e,n){let r=[];for(let i=0;i<n.length;i+=1){let s=Ct(e,n[i]);s&&r.push({start:s.start,end:s.end,isStart:s.start.valueOf()===e.start.valueOf(),isEnd:s.end.valueOf()===e.end.valueOf(),col:i})}return r}}class Ev extends Ge{constructor(){super(...arguments),this.buildDayRanges=G(Dv),this.slicer=new Sv,this.timeColsRef=Me()}render(){let{props:e,context:n}=this,{dateProfile:r,dayTableModel:i}=e,{nowIndicator:s,nextDayThreshold:a}=n.options,o=this.buildDayRanges(i,r,n.dateEnv);return p(on,{unit:s?"minute":"day"},(l,d)=>p(yv,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,r,null,n,o),{forPrint:e.forPrint,axis:e.axis,dateProfile:r,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:i.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:l,nowIndicatorSegs:s&&this.slicer.sliceNowDate(l,r,a,n,o),todayRange:d,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function Dv(t,e,n){let r=[];for(let i of t.headerDates)r.push({start:n.add(i,e.slotMinTime),end:n.add(i,e.slotMaxTime)});return r}const Hs=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function wv(t,e,n,r,i){let s=new Date(0),a=t,o=ae(0),l=n||Cv(r),d=[];for(;Le(a)<Le(e);){let c=i.add(s,a),f=ti(o,l)!==null;d.push({date:c,time:a,key:c.toISOString(),isoTimeStr:Sf(c),isLabeled:f}),a=xr(a,r),o=xr(o,r)}return d}function Cv(t){let e,n,r;for(e=Hs.length-1;e>=0;e-=1)if(n=ae(Hs[e]),r=ti(n,t),r!==null&&r>1)return n;return t}class Av extends Xm{constructor(){super(...arguments),this.buildTimeColsModel=G(_v),this.buildSlatMetas=G(wv)}render(){let{options:e,dateEnv:n,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:s}=i,a=this.buildTimeColsModel(s,r),o=this.allDaySplitter.splitProps(i),l=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:d}=e,c=!d,f=d,g=e.dayHeaders&&p(fo,{dates:a.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),u=e.allDaySlot!==!1&&(m=>p(Wo,Object.assign({},o.allDay,{dateProfile:s,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:m.tableMinWidth,colGroupNode:m.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:m.clientWidth,clientHeight:m.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),v=m=>p(Ev,Object.assign({},o.timed,{dayTableModel:a,dateProfile:s,axis:c,slotDuration:e.slotDuration,slatMetas:l,forPrint:i.forPrint,tableColGroupNode:m.tableColGroupNode,tableMinWidth:m.tableMinWidth,clientWidth:m.clientWidth,clientHeight:m.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:m.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return f?this.renderHScrollLayout(g,u,v,a.colCnt,d,l,this.state.slatCoords):this.renderSimpleLayout(g,u,v)}}function _v(t,e){let n=new ho(t.renderRange,e);return new go(n,!1)}var xv='.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)}
1.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-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.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}';Zr(xv);const Rv={allDaySlot:Boolean};var Tv=tt({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:Rv,views:{timeGrid:{component:Av,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});Si.touchMouseIgnoreWait=500;let Fr=0,Un=0,jr=!1;class qo{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&kv(n)&&this.tryStart(n)){let r=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let r=this.createEventFromMouse(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let r=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let i=n.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let r=this.createEventFromTouch(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=n=>{if(this.isDragging){let r=n.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,Iv()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.pageXOffset-this.prevScrollX+this.prevPageX,i=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:r-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=e,this.emitter=new Qn,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),Mv()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Ov()}
vendor: 22,865 bytes, line 1
1tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||Te(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){jr=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?Te(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Fr||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(jr=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let r=0,i=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:i}}createEventFromTouch(e,n){let r=e.touches,i,s,a=0,o=0;return r&&r.length?(i=r[0].pageX,s=r[0].pageY):(i=e.pageX,s=e.pageY),n?(this.origPageX=i,this.origPageY=s):(a=i-this.origPageX,o=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:s,deltaX:a,deltaY:o}}}function kv(t){return t.button===0&&!t.ctrlKey}function Iv(){Fr+=1,setTimeout(()=>{Fr-=1},Si.touchMouseIgnoreWait)}function Mv(){Un+=1,Un===1&&window.addEventListener("touchmove",Yo,{passive:!1})}function Ov(){Un-=1,Un||window.removeEventListener("touchmove",Yo,{passive:!1})}function Yo(t){jr&&t.preventDefault()}class Nv{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.pageXOffset,this.origScreenY=r-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=n-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let r=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,n){let r=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();r.style.transition="top "+n+"ms,left "+n+"ms",qt(r,{left:i.left,top:i.top}),Uu(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(Kr(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&qt(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.classList.add("fc-event-dragging"),qt(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class Qo extends yi{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Zo extends Qo{constructor(e,n){super(new hg(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return ug(this.scrollController.el)}}class Pv extends Qo{constructor(e){super(new gg,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const Fs=typeof performance=="function"?performance.now:Date.now;class Bv{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let n=Fs();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let r=e-window.pageXOffset,i=n-window.pageYOffset,s=this.pointerScreenY===null?0:i-this.pointerScreenY,a=this.pointerScreenX===null?0:r-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),a<0?this.everMovedLeft=!0:a>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Fs()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:r}=e,{edgeThreshold:i}=this,s=i-e.distance,a=s*s/(i*i)*this.maxVelocity*n,o=1;switch(e.name){case"left":o=-1;case"right":r.setScrollLeft(r.getScrollLeft()+a*o);break;case"top":o=-1;case"bottom":r.setScrollTop(r.getScrollTop()+a*o);break}}computeBestEdge(e,n){let{edgeThreshold:r}=this,i=null,s=this.scrollCaches||[];for(let a of s){let o=a.clientRect,l=e-o.left,d=o.right-e,c=n-o.top,f=o.bottom-n;l>=0&&d>=0&&c>=0&&f>=0&&(c<=r&&this.everMovedUp&&a.canScrollUp()&&(!i||i.distance>c)&&(i={scrollCache:a,name:"top",distance:c}),f<=r&&this.everMovedDown&&a.canScrollDown()&&(!i||i.distance>f)&&(i={scrollCache:a,name:"bottom",distance:f}),l<=r&&this.everMovedLeft&&a.canScrollLeft()&&(!i||i.distance>l)&&(i={scrollCache:a,name:"left",distance:l}),d<=r&&this.everMovedRight&&a.canScrollRight()&&(!i||i.distance>d)&&(i={scrollCache:a,name:"right",distance:d}))}return i}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new Pv(!1):new Zo(n,!1))}queryScrollEls(e){let n=[];for(let r of this.scrollQuery)typeof r=="object"?n.push(r):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return n}}class ln extends vg{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Wu(document.body),Vu(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let s=this.minDistance,a,{deltaX:o,deltaY:l}=i;a=o*o+l*l,a>=s*s&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,zu(document.body),Gu(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new qo(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),n&&(r.selector=n),this.mirror=new Nv,this.autoScroller=new Bv}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Hv{constructor(e){this.origRect=vi(e),this.scrollCaches=oo(e).map(n=>new Zo(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let r={left:e,top:n};for(let i of this.scrollCaches)if(!Fv(i.getEventTarget())&&!Kh(r,i.clientRect))return!1;return!0}}function Fv(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class Zn{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):i.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new Qn}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,s;i instanceof HTMLElement&&(s=vi(i),r=Jh(r,s));let a=this.initialHit=this.queryHitForOffset(r.left,r.top);if(a){if(this.useSubjectCenter&&s){let o=io(s,a.rect);o&&(r=eg(o))}this.coordAdjust=tg(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!Xn(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=Xe(this.droppableStore,e=>(e.component.prepareHits(),new Hv(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:r,offsetTrackers:i}=this,s=null;for(let a in r){let o=r[a].component,l=i[a];if(l&&l.isWithinClipping(e,n)){let d=l.computeLeft(),c=l.computeTop(),f=e-d,g=n-c,{origRect:u}=l,v=u.right-u.left,m=u.bottom-u.top;if(f>=0&&f<v&&g>=0&&g<m){let b=o.queryHit(f,g,v,m);b&&qn(b.dateProfile.activeRange,b.dateSpan.range)&&(!s||b.layer>s.layer)&&(b.componentId=a,b.context=o.context,b.rect.left+=d,b.rect.right+=d,b.rect.top+=c,b.rect.bottom+=c,s=b)}}}return s}}function Xn(t,e){return!t&&!e?!0:!!t!=!!e?!1:Uh(t.dateSpan,e.dateSpan)}function Xo(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,jv(t,e.dateEnv)),n}function jv(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class Lv extends $t{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:i}=this,s=r.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=r=>{let{component:i}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:a,finalHit:o}=this.hitDragging;if(a&&o&&Xn(a,o)){let{context:l}=i,d=Object.assign(Object.assign({},Xo(a.dateSpan,l)),{dayEl:a.dayEl,jsEvent:r.origEvent,view:l.viewApi||l.calendarApi.view});l.emitter.trigger("dateClick",d)}}},this.dragging=new ln(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new Zn(this.dragging,pi(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class $v extends $t{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=a=>{let{component:o,dragging:l}=this,{options:d}=o.context,c=d.selectable&&o.isValidDateDownEl(a.origEvent.target);l.setIgnoreMove(!c),l.delay=a.isTouch?Uv(o):null},this.handleDragStart=a=>{this.component.context.calendarApi.unselect(a)},this.handleHitUpdate=(a,o)=>{let{context:l}=this.component,d=null,c=!1;if(a){let f=this.hitDragging.initialHit;a.componentId===f.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(f,a)||(d=Wv(f,a,l.pluginHooks.dateSelectionTransformers)),(!d||!wg(d,a.dateProfile,l))&&(c=!0,d=null)}d?l.dispatch({type:"SELECT_DATES",selection:d}):o||l.dispatch({type:"UNSELECT_DATES"}),c?Jr():ei(),o||(this.dragSelection=d)},this.handlePointerUp=a=>{this.dragSelection&&(Ya(this.dragSelection,a,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new ln(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Zn(this.dragging,pi(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function Uv(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function Wv(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(Xu);let a={};for(let o of n){let l=o(t,e);if(l===!1)return null;l&&Object.assign(a,l)}return a.range={start:s[0],end:s[3]},a.allDay=r.allDay,a}class cn extends $t{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=a=>{let o=a.origEvent.target,{component:l,dragging:d}=this,{mirror:c}=d,{options:f}=l.context,g=l.context;this.subjectEl=a.subjectEl;let u=this.subjectSeg=Bt(a.subjectEl),m=(this.eventRange=u.eventRange).instance.instanceId;this.relevantEvents=ui(g.getCurrentData().eventStore,m),d.minDistance=a.isTouch?0:f.eventDragMinDistance,d.delay=a.isTouch&&m!==l.props.eventSelection?Vv(l):null,f.fixedMirrorParent?c.parentNode=f.fixedMirrorParent:c.parentNode=Te(o,".fc"),c.revertDuration=f.dragRevertDuration;let b=l.isValidSegDownEl(o)&&!Te(o,".fc-event-resizer");d.setIgnoreMove(!b),this.isDragging=b&&a.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=a=>{let o=this.component.context,l=this.eventRange,d=l.instance.instanceId;a.isTouch?d!==this.component.props.eventSelection&&o.dispatch({type:"SELECT_EVENT",eventInstanceId:d}):o.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(o.calendarApi.unselect(a),o.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new ve(o,l.def,l.instance),jsEvent:a.origEvent,view:o.viewApi}))},this.handleHitUpdate=(a,o)=>{if(!this.isDragging)return;let l=this.relevantEvents,d=this.hitDragging.initialHit,c=this.component.context,f=null,g=null,u=null,v=!1,m={affectedEvents:l,mutatedEvents:Be(),isEvent:!0};if(a){f=a.context;let b=f.options;c===f||b.editable&&b.droppable?(g=zv(d,a,f.getCurrentData().pluginHooks.eventDragMutationMassagers),g&&(u=gi(l,f.getCurrentData().eventUiBases,g,f),m.mutatedEvents=u,mo(m,a.dateProfile,f)||(v=!0,g=null,u=null,m.mutatedEvents=Be()))):f=null}this.displayDrag(f,m),v?Jr():ei(),o||(c===f&&Xn(d,a)&&(g=null),this.dragging.setMirrorNeedsRevert(!g),this.dragging.setMirrorIsVisible(!a||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=f,this.validMutation=g,this.mutatedRelevantEvents=u)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=a=>{if(this.isDragging){let o=this.component.context,l=o.viewApi,{receivingContext:d,validMutation:c}=this,f=this.eventRange.def,g=this.eventRange.instance,u=new ve(o,f,g),v=this.relevantEvents,m=this.mutatedRelevantEvents,{finalHit:b}=this.hitDragging;if(this.clearDrag(),o.emitter.trigger("eventDragStop",{el:this.subjectEl,event:u,jsEvent:a.origEvent,view:l}),c){if(d===o){let w=new ve(o,m.defs[f.defId],g?m.instances[g.instanceId]:null);o.dispatch({type:"MERGE_EVENTS",eventStore:m});let x={oldEvent:u,event:w,relatedEvents:St(m,o,g),revert(){o.dispatch({type:"MERGE_EVENTS",eventStore:v})}},P={};for(let L of o.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(P,L(c,o));o.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},x),P),{el:a.subjectEl,delta:c.datesDelta,jsEvent:a.origEvent,view:l})),o.emitter.trigger("eventChange",x)}else if(d){let w={event:u,relatedEvents:St(v,o,g),revert(){o.dispatch({type:"MERGE_EVENTS",eventStore:v})}};o.emitter.trigger("eventLeave",Object.assign(Object.assign({},w),{draggedEl:a.subjectEl,view:l})),o.dispatch({type:"REMOVE_EVENTS",eventStore:v}),o.emitter.trigger("eventRemove",w);let x=m.defs[f.defId],P=m.instances[g.instanceId],L=new ve(d,x,P);d.dispatch({type:"MERGE_EVENTS",eventStore:m});let N={event:L,relatedEvents:St(m,d,P),revert(){d.dispatch({type:"REMOVE_EVENTS",eventStore:m})}};d.emitter.trigger("eventAdd",N),a.isTouch&&d.dispatch({type:"SELECT_EVENT",eventInstanceId:g.instanceId}),d.emitter.trigger("drop",Object.assign(Object.assign({},Xo(b.dateSpan,d)),{draggedEl:a.subjectEl,jsEvent:a.origEvent,view:b.context.viewApi})),d.emitter.trigger("eventReceive",Object.assign(Object.assign({},N),{draggedEl:a.subjectEl,view:b.context.viewApi}))}}else o.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,i=this.dragging=new ln(e.el);i.pointer.selector=cn.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Zn(this.dragging,Or);s.useSubjectCenter=e.useEventCenter,s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let r=this.component.context,i=this.receivingContext;i&&i!==e&&(i===r?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:Be(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}cn.SELECTOR=".fc-event-draggable, .fc-event-resizable";function zv(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=r.range.start,a=i.range.start,o={};r.allDay!==i.allDay&&(o.allDay=i.allDay,o.hasEnd=e.context.options.allDayMaintainDuration,i.allDay&&(s=pe(s)));let l=It(s,a,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);l.milliseconds&&(o.allDay=!1);let d={datesDelta:l,standardProps:o};for(let c of n)c(d,t,e);return d}function Vv(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class Gv extends $t{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let{component:a}=this,o=this.querySegEl(s),l=Bt(o),d=this.eventRange=l.eventRange;this.dragging.minDistance=a.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==d.instance.instanceId)},this.handleDragStart=s=>{let{context:a}=this.component,o=this.eventRange;this.relevantEvents=ui(a.getCurrentData().eventStore,this.eventRange.instance.instanceId);let l=this.querySegEl(s);this.draggingSegEl=l,this.draggingSeg=Bt(l),a.calendarApi.unselect(),a.emitter.trigger("eventResizeStart",{el:l,event:new ve(a,o.def,o.instance),jsEvent:s.origEvent,view:a.viewApi})},this.handleHitUpdate=(s,a,o)=>{let{context:l}=this.component,d=this.relevantEvents,c=this.hitDragging.initialHit,f=this.eventRange.instance,g=null,u=null,v=!1,m={affectedEvents:d,mutatedEvents:Be(),isEvent:!0};s&&(s.componentId===c.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(c,s)||
1(g=qv(c,s,o.subjectEl.classList.contains("fc-event-resizer-start"),f.range))),g&&(u=gi(d,l.getCurrentData().eventUiBases,g,l),m.mutatedEvents=u,mo(m,s.dateProfile,l)||(v=!0,g=null,u=null,m.mutatedEvents=null)),u?l.dispatch({type:"SET_EVENT_RESIZE",state:m}):l.dispatch({type:"UNSET_EVENT_RESIZE"}),v?Jr():ei(),a||(g&&Xn(c,s)&&(g=null),this.validMutation=g,this.mutatedRelevantEvents=u)},this.handleDragEnd=s=>{let{context:a}=this.component,o=this.eventRange.def,l=this.eventRange.instance,d=new ve(a,o,l),c=this.relevantEvents,f=this.mutatedRelevantEvents;if(a.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:d,jsEvent:s.origEvent,view:a.viewApi}),this.validMutation){let g=new ve(a,f.defs[o.defId],l?f.instances[l.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:f});let u={oldEvent:d,event:g,relatedEvents:St(f,a,l),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:c})}};a.emitter.trigger("eventResize",Object.assign(Object.assign({},u),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||ae(0),endDelta:this.validMutation.endDelta||ae(0),jsEvent:s.origEvent,view:a.viewApi})),a.emitter.trigger("eventChange",u)}else a.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new ln(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new Zn(this.dragging,pi(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return Te(e.subjectEl,".fc-event")}}function qv(t,e,n,r){let i=t.context.dateEnv,s=t.dateSpan.range.start,a=e.dateSpan.range.start,o=It(s,a,i,t.largeUnit);if(n){if(i.add(r.start,o)<r.end)return{startDelta:o}}else if(i.add(r.end,o)>r.start)return{endDelta:o};return null}class Yv{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let i=this.context.options.unselectCancel,s=Aa(r.origEvent);this.matchesCancel=!!Te(s,i),this.matchesEvent=!!Te(s,cn.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:i}=this,{documentPointer:s}=this,a=i.getCurrentData();if(!s.wasTouchScroll){if(a.dateSelection&&!this.isRecentPointerDateSelect){let o=i.options.unselectAuto;o&&(!o||!this.matchesCancel)&&i.calendarApi.unselect(r)}a.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new qo(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const Qv={fixedMirrorParent:D},Zv={dateClick:D,eventDragStart:D,eventDragStop:D,eventDrop:D,eventResizeStart:D,eventResizeStop:D,eventResize:D,drop:D,eventReceive:D,eventLeave:D};Si.dataAttrPrefix="";var Xv=tt({name:"@fullcalendar/interaction",componentInteractions:[Lv,$v,cn,Gv],calendarInteractions:[Yv],elementDraggingImpl:ln,optionRefiners:Qv,listenerRefiners:Zv});const Kv=[],Jv={class:"container flex justify-between items-center"},ey={key:0,class:"flex items-center"},ty={key:0,class:"icons-cart text-right inputReady"},ny={key:1,class:"icons-cart text-right inputReady !flex align-center"},ry={class:"text-verdeAqua font-bold gap-2 flex items-end justify-center text-nowrap"},iy={class:"font-semibold text-[14px] lowercase"},sy={class:"font-bold text-[16px]"},ay={class:"container"},oy={class:"md:mx-0 container-funnel-section md:px-0 px-4"},ly={class:"mb-5 mt-[1rem]"},cy={key:0,class:"flex gap-2 justify-end md:mr-[18%] mt-2 mb-6"},dy={class:"iberojet-text font-semibold"},uy=["aria-label","onClick"],fy={key:0,class:"flex flex-col"},hy={key:0,class:"font-[800] smaller-letter"},gy={key:1,class:"font-[800] smaller-letter"},py={key:1,id:"not-available",class:"!font-[900] !font-[.85rem] !text-black !opacity-[0.3] uppercase"},my={class:"m-auto w-full"},vy=De({__name:"Calendar",props:lt({route:{},month:{},headerStepPinned:{type:Boolean},showPrice:{type:Boolean},stickyLowestPrice:{},cartTotal:{}},{modelValue:{},modelModifiers:{}}),emits:lt(["dateChange","updateDates","error","openCart"],["update:modelValue"]),setup(t,{expose:e,emit:n}){const r=qr(),i=Vr(),{width:s}=tn(),a=jt(),{locale:o}=Je(),{userUidCookie:l}=Ft(),d=z([]),c=z(),f=z(null),g=Wr("flight"),u=h(g),v=z(null),{isSticky:m,sentinelEl:b}=Js(),w=z(!1),x=z([]),P=z(),L=Q(()=>P.value?.filter(O=>O.type===(t.route.id==1?"O":"R")))||[],N=_e("request-failed-"+t.route.id,"$3N64
10ZGUtc"),I=n,E=O=>r(O).startOf("day"),_=()=>{const O=u.routes.length>1;let $,A;const H=v.value||t.route.date||bn(t.route.id,i);if(H)[$,A]=H.slice(0,7).split("-").map(Number);else{const Ce=new Date;$=Ce.getFullYear(),A=Ce.getMonth()+1}const K=new Date($,A-1,1),ne=new Date($,A,0),re=`${K.getFullYear()}-${String(K.getMonth()+1).padStart(2,"0")}-${String(K.getDate()).padStart(2,"0")}`,U=`${ne.getFullYear()}-${String(ne.getMonth()+1).padStart(2,"0")}-${String(ne.getDate()).padStart(2,"0")}`;return{currencyCode:u.currencyCode,promotionalCode:u.code,originCode:u.routes[0].origin?.airportCode,destinationCode:u.routes[0].destination?.destinationAirportCode,departureDate:re,arrivalDate:U,languageCode:o.value,adults:u.passengers?.adults,children:u.passengers?.children,infants:u.passengers?.infants,flightType:O?"RT":"OW",uid:l.value}},B=async()=>{if(!(w.value||N.value||x.value.includes(v.value?.slice(0,7)||""))){w.value=!0;try{if(!await qe())throw I("error","expiredSession"),new Error("Session expired");const $=_(),A=await $fetch(`${a.public.apiUrl}/api/fare-quotes`,{params:$});if(A.data&&A.data.length&&(P.value=A.data,j($.departureDate),I("updateDates",{routeId:t.route.id,dates:A.data}),f.value?.refetchEvents()),v.value){const[H,K]=v.value.slice(0,7).split("-").map(Number),ne=`${H}-${K.toString().padStart(2,"0")}`;!P.value?.filter(U=>U.type===(t.route.id==1?"O":"R")).some(U=>U.departureDate.startsWith(ne))&&!x.value.includes(ne)&&x.value.push(ne)}w.value=!1}catch{N.value=!0,w.value=!1;return}}};nn(async()=>{if(await B(),!t.route.date){const O=i.query,$=t.route.id==1?O.departure:O.arrival,H=P.value?.filter(K=>K.type===(t.route.id==1?"O":"R"))?.some(K=>K.departureDate.slice(0,10)===$?.slice(0,10))?$:void 0;H&&(t.route.date=H)}});const ge=Zs(),we=(O,$)=>{if(ge.value.length>0){const A=Hl(O.date);$.id===1?ge.value[0].departure=A:$.id===2&&(ge.value[0].arrival=A)}},xe=z({plugins:[zm,Tv,Xv],headerToolbar:!1,locale:o.value,firstDay:1,fixedWeekCount:!1,height:s.value>768?440:320,aspectRatio:.8,initialView:"dayGridMonth",initialEvents:Kv,selectable:!1,weekends:!0,showNonCurrentDates:!1,dateClick:O=>{!F(O.date)||O.dayEl.hasAttribute("disabled")||F(O.date).lowestFarePriceWithTax<1||te(O.date,t.route)||(Z.value=O.date.toLocaleDateString("sv").split("T")[0],we(O,t.route))},dayCellDidMount:O=>{F(O.date)||O.el.classList.add("disabled")},viewDidMount:()=>{if(!c.value)return;f.value=c.value.getApi();const O=L.value?.find(A=>A.departureDate.slice(0,10)===t.route.date);let $="";t.route.date&&(t.route.date.length>10?$=t.route.date:$=t.route.date+"T15:00:00"),O||$?f.value.gotoDate(new Date(O?O.departureDate:$)):t.month&&f.value.gotoDate(new Date(t.month))},eventsSet:O=>{d.value=O}}),ye=O=>O?O.toLocaleDateString("sv"):Z.value?.length===10?Z.value:Z.value?new Date(Z.value).toLocaleDateString("sv").split("T")[0]:"",F=O=>L.value?.find($=>E($.departureDate).isSame(E(O),"day")),j=O=>{if(!O)return;N.value=!1,v.value=O.slice(0,7);const[$,A]=v.value.split("-"),H=new Date(parseInt($),parseInt(A)-1,1);f.value?.gotoDate(H)},Z=Zt(t,"modelValue");t.route.id>1&&u.routes[0].date&&Ne(u.routes[0],()=>{const O=new Date(u.routes[0].date);new Date(Z.value)<O&&(Z.value=O.toISOString())});const X=O=>{if(O===0)return!1;let $=O;return L.value?.forEach(A=>{A.lowestFarePriceWithTax<$&&A.lowestFarePriceWithTax>0&&($=A.lowestFarePriceWithTax)}),O<=$},be=O=>{const $=O.lowestFarePriceWithTax<O.lowestBasePriceWithTax,A=(O.lowestBasePriceWithTax-O.lowestFarePriceWithTax)/O.lowestBasePriceWithTax*100,H=O.lowestBasePriceWithTax-O.lowestFarePriceWithTax;return{hasDiscount:$,discountPercentage:A,discount:H}},te=(O,$)=>E(O).isBefore(E())?!0:$.id>1&&u.routes[0].date?E(O).isSameOrBefore(E(u.routes[0].date)):!1,ee=Q(()=>v.value?L.value?.some(O=>O.departureDate.startsWith(v.value.slice(0,7))):!1),oe=[{code:"BLACK",name:"Black Friday",color:"#E06995"}],le=Q(()=>{if(!v.value||!L.value)return[];const O=v.value.slice(0,7),$=new Set,A=oe.map(H=>H.code);for(const H of L.value)if(H.departureDate.startsWith(O)&&A.includes(H.fareTypeName)&&($.add(H.fareTypeName),$.size===A.length))break;return oe.filter((H=>Array.from($).includes(H.code)))});Gr(async()=>{ee.value||!v.value||x.value.includes(v.value)||await B()});const fe=Q(()=>zs(L.value));return e({lowestPrice:fe}),(O,$)=>{const A=$s,H=Us,K=cu,ne=uu;return C(),R(Ee,null,[y("div",{ref_key:"stickySentinelRef",ref:b,"aria-hidden":"true",class:"h-px w-full pointer-events-none"},null,512),y("div",{class:ie(["!top-0 z-20 sticky !bg-white border-t border-b border-transparent transition-colors ease-in-out items-center min-h-[48px] flex",{"border-b-lightGray":h(m),"border-t-lightGray":t.headerStepPinned&&t.route.id===1}])},[y("div",Jv,[q(A,{route:t.route,"is-sticky":h(m),class:"ml-4 !z-20"},null,8,["route","is-sticky"]),q(Dt,{name:"fade"},{default:$e(()=>[h(m)?(C(),R("div",ey,[t.showPrice?(C(),R("div",ty,[y("button",{class:"ready-pax gap-2 c
1art-btn justify-center text-nowrap",type:"button",onClick:$[0]||($[0]=re=>I("openCart"))},[q(H),je(" "+M(t.cartTotal),1)])])):t.stickyLowestPrice?(C(),R("div",ny,[y("div",ry,[y("span",iy,M(O.$t("from")),1),y("span",sy,M(("getPrice"in O?O.getPrice:h(Qe))(t.stickyLowestPrice,h(o),h(u).currencyCode)),1)])])):J("",!0)])):J("",!0)]),_:1})])],2),y("div",{class:ie(["vuelos vueloIda border-first-calendar",{"mt-0":t.route.id==2}])},[y("section",ay,[y("div",oy,[y("div",ly,[q(K,{"calendar-month":typeof t.route.date=="string"?t.route.date:t.route.date&&t.route.date.toISOString(),route:t.route,month:t.month,flight:h(u),"only-dates":"",onDateClick:j},null,8,["calendar-month","route","month","flight"])]),y("div",{class:ie([{"!max-h-[1px] overflow-hidden":!h(c)?.calendar?.isRendered||h(w)},`calendar-route-${t.route.id}`])},[h(le).length&&h(c)?.calendar?.isRendered&&!h(w)?(C(),R("section",cy,[y("p",dy,M(O.$t("offer")),1),(C(!0),R(Ee,null,Ie(h(le),re=>(C(),R("p",{key:re.code,class:"iberojet-text rounded-full font-semibold text-white px-2 inline-block",style:Sl({backgroundColor:re.color})},M(re.name),5))),128))])):J("",!0),q(h(gm),{ref_key:"fullCalendar",ref:c,"aria-label":"date calendar",class:"demo-app-calendar",options:h(xe)},{dayCellContent:$e(({dayNumberText:re,date:U})=>[y("div",{class:ie({current:ye(U)===ye(),disabled:te(U,t.route),"api-day":!!F(U)}),"aria-label":U.toISOString().slice(0,10),onClick:Ce=>I("dateChange",U.toISOString().slice(0,10))},[y("div",{class:ie(["day-number text-[#242424]",{"!text-white":ye(U)===ye(),"!text-greyText":te(U,t.route)}])},M(re),3),F(U)?(C(),R("div",{key:0,class:ie(["fc-price",[{cheapest:X(F(U).lowestFarePriceWithTax),"!text-white":ye(U)===ye()},`fareType-${F(U)?.fareTypeName}`]])},[F(U)?.lowestFarePriceWithTax?(C(),R("span",fy,[be(F(U)).hasDiscount?(C(),R("span",hy,M(("getPrice"in O?O.getPrice:h(Qe))(F(U).lowestFarePriceWithTax,h(o),h(u).currencyCode,h(s)<768)),1)):(C(),R("span",gy,M(("getPrice"in O?O.getPrice:h(Qe))(F(U).lowestBasePriceWithTax,h(o),h(u).currencyCode,h(s)<768)),1))])):(C(),R("p",py,M(O.$t("sold_out")),1))],2)):J("",!0)],10,uy)]),_:1},8,["options"])],2),yt(y("div",my,[q(ne)],512),[[bt,!h(c)?.calendar?.isRendered||h(w)]])])])],2)],64)}}}),yy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},by=["stroke"],Sy=["stroke"],Ey=["stroke"],Dy=De({__name:"Notification",props:{fill:{}},setup(t){return(e,n)=>(C(),R("svg",yy,[y("path",{d:"M12.02 2.91016C8.71 2.91016 6.02 5.60016 6.02 8.91016V11.8002C6.02 12.4102 5.76 13.3402 5.45 13.8602L4.3 15.7702C3.59 16.9502 4.08 18.2602 5.38 18.7002C9.69 20.1402 14.34 20.1402 18.65 18.7002C19.86 18.3002 20.39 16.8702 19.73 15.7702L18.58 13.8602C18.28 13.3402 18.02 12.4102 18.02 11.8002V8.91016C18.02 5.61016 15.32 2.91016 12.02 2.91016Z",stroke:t.fill||"#279989","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round"},null,8,by),y("path",{d:"M13.87 3.19994C13.56 3.10994 13.24 3.03994 12.91 2.99994C11.95 2.87994 11.03 2.94994 10.17 3.19994C10.46 2.45994 11.18 1.93994 12.02 1.93994C12.86 1.93994 13.58 2.45994 13.87 3.19994Z",stroke:t.fill||"#279989","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Sy),y("path",{d:"M15.02 19.0601C15.02 20.7101 13.67 22.0601 12.02 22.0601C11.2 22.0601 10.44 21.7201 9.9 21.1801C9.36 20.6401 9.02 19.8801 9.02 19.0601",stroke:t.fill||"#279989","stroke-width":"1.5","stroke-miterlimit":"10"},null,8,Ey)]))}}),wy={key:0,d:"M12 8V16"},Cy=De({__name:"CollapsableSquare",props:{class:{},fill:{default:"#279989"},collapsed:{type:Boolean}},emits:["click"],setup(t,{emit:e}){El(i=>({v0e96198b:i.fill}));const n=t,r=e;return(i,s)=>(C(),R("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:ie(n.class),onClick:s[0]||(s[0]=a=>r("click"))},[s[1]||(s[1]=y("path",{d:"M8 12H16"},null,-1)),t.collapsed?J("",!0):(C(),R("path",wy)),s[2]||(s[2]=y("path",{d:"M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z"},null,-1))],2))}}),Ay=Lt(Cy,[["__scopeId","data-v-622a8bfc"]]),_y={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xy=["stroke"],Ry=["stroke"],Ty=De({__name:"Verify",props:{color:{}},setup(t){return(e,n)=>(C(),R("svg",_y,[y("path",{d:"M8.37988 12.0001L10.7899 14.4201L15.6199 9.58008",stroke:t.color||"#DE543F","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,xy),y("path",{d:"M10.7499 2.44982C11.4399 1.85982 12.5699 1.85982 13.2699 2.44982L14.8499 3.80982C15.1499 4.06982 15.7099 4.27982 16.1099 4.27982H17.8099C18.8699 4.27982 19.7399 5.14982 19.7399 6.20982V7.90982C19.7399 8.29982 19.9499 8.86982 20.2099 9.16982L21.5699 10.7498C22.1599 11.4398 22.1599 12.5698 21.5699 13.2698L20.2099 14.8498C19.9499 15.1498 19.7399 15.7098 19.7399 16.1098V17.8098C19.7399 18.8698 18.8699 19.7398 17.8099 19.7398H16.1099C15.7199 19.7398 15.1499 19.9498 14.8499 20.2098L13.2699 21.5698C12.5799 22.1598 11.4499 22.1598 10.7499 21.5698L9.16988 20.2098C8.86988 19.9498 8.30988 19.7398 7.90988 19.7398H6.17988C5.11988 19.7398 4.24988 18.8698 4.24988 17.8098V16.0998C4.24988 15.7098 4.03988 15.1498 3.78988 14.8498L2.43988 13.2598C1.85988 12.5698 1.85988 11.4498 2.43988 10.7598L3.78988 9.16982C4.03988 8.86982 4.24988 8.30982 4.24988 7.91982V6.19982C4.24988 5.13982 5.11988 4.26982 6.17988 4.26982H7.90988C8.29988 4.26982 8.86988 4.05982 9.16988 3.79982L10.7499 2.44982Z",stroke:t.color||"#DE543F","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ry)]))}}),ky={class:"py-[24px] border-t border-b border-lightGray mt-12"},Iy={key:0,class:"flex w-full justify-between gap-2.5"},My={class:"flex gap-4 items-start"},Oy={class:"flex flex-col gap-[8px]"},Ny={class:"iberojet-text text-verdeAqua font-bold"},Py={class:"iberojet-text text-customBlack"},By=["aria-expanded","aria-label"],Hy={key:1,class:"flex w-full gap-2.5"},Fy={class:"iberojet-text text-naranja font-bold"},jy=["aria-hidden","inert"],Ly={class:"w-full mt-4"}
1,$y={id:"name-help",class:"iberojet-text text-sm text-gray-600 mt-1 mb-4"},Uy={class:"w-full"},Wy={id:"phone-help",class:"iberojet-text text-sm text-gray-600 mt-1 mb-4"},zy={class:"w-full"},Vy={id:"email-help",class:"iberojet-text text-sm text-gray-600 mt-1 mb-4"},Gy={class:"flex align-start mt-3 mb-3"},qy=["aria-checked"],Yy={key:1,class:"checkbox-size block border border-gray-400 rounded"},Qy={class:"flex align-start mt-3 mb-3"},Zy=["aria-checked"],Xy={key:1,class:"checkbox-size block border border-gray-400 rounded"},Ky=["disabled"],Jy={class:"iberojet-text font-semibold text-verdeAqua"},eb=De({__name:"RouteChangeAnnouncer",props:{origin:{},destination:{}},setup(t){const{t:e}=Je(),{logError:n}=Wn(),r=z(!1),i=z(!1),s=_e("is-subscribed",()=>!1),a={name:"",phone:"",countryCode:"",email:"",hasCommunications:!1,dataProtection:!1},o=z({...a}),l=z({}),{validatePhoneNumber:d}=Ll(l),c=()=>{Object.keys(l.value).forEach(_=>delete l.value[_])},f=(_,B)=>B?(l.value[_]=B,!1):(delete l.value[_],!0),g=(_,B)=>d(_,B)?null:"validations.validPhone",u=_=>!/^[a-zA-Z0-9.!#$%&'*+=?^_`{}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(_)||_.length<6?"validations.validEmail":null,v=_=>_.trim().length<2?"validations.validName":null,m=(_,B)=>f("phone",g(_,B)),b=_=>f("email",u(_)),w=_=>f("name",v(_)),x=()=>{Object.assign(o.value,a),c()},P=()=>{r.value=!0},L=()=>{r.value=!1},N=()=>{if(r.value){L();return}P()},I=async()=>{if(!i.value){i.value=!0;try{if(m(o.value.phone,o.value.countryCode),b(o.value.email),w(o.value.name),Object.keys(l.value).length)return;await $fetch(jt().public.apiUrl+"/api/subscribe",{method:"POST",body:{telephone:o.value.countryCode+o.value.phone,email:o.value.email,name:o.value.name.trim(),origin:t.origin,destination:t.destination}}),s.value=!0,x(),L()}catch(_){s.value=!1,n(_,"route_change_announcer_submit")}finally{i.value=!1}}},E=Q(()=>!!(!i.value&&Object.keys(l.value).length===0&&!v(o.value.name)&&o.value.phone&&o.value.email&&o.value.hasCommunications&&o.value.dataProtection));return(_,B)=>{const ge=Dy,we=Ay,xe=Ty,ye=Fl,F=jl,j=Xs,Z=Ws;return C(),R("section",ky,[h(s)?(C(),R("div",Hy,[q(xe),y("p",Fy,M(h(e)("route_change_announcer.alert_activated")),1)])):(C(),R("div",Iy,[y("div",My,[q(ge,{class:"mt-1"}),y("div",Oy,[y("p",Ny,M(h(e)("route_change_announcer.title")),1),y("p",Py,M(h(e)("route_change_announcer.subtitle")),1)])]),y("button",{type:"button",class:"flex shrink-0 cursor-pointer rounded focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-verdeAqua","aria-expanded":h(r),"aria-controls":"route-change-announcer-panel","aria-label":h(r)?h(e)("common.close"):h(e)("route_change_announcer.title"),onClick:N},[q(we,{collapsed:h(r),"aria-hidden":"true",focusable:"false"},null,8,["collapsed"])],8,By)])),y("div",{id:"route-change-announcer-panel",class:ie(["grid transition-[grid-template-rows] duration-300 ease-in-out",h(r)?"grid-rows-[1fr]":"grid-rows-[0fr]"])},[y("form",{class:"flex flex-col w-full vuelosContainer pasajeros mx-auto px-4 sm:max-w-[95%] md:max-w-[75%] lg:max-w-[50%] overflow-hidden !pb-0","aria-hidden":!h(r),inert:!h(r),onSubmit:Xt(I,["prevent"])},[y("div",Ly,[q(ye,{id:"name",modelValue:h(o).name,"onUpdate:modelValue":B[0]||(B[0]=X=>h(o).name=X),label:h(e)("route_change_announcer.inputs.name"),name:"name",autocomplete:"name",placeholder:h(e)("route_change_announcer.inputs.name_p"),error:h(l).name,"aria-describedby":"name-help",required:"","parent-class":"md:!w-full",onInput:B[1]||(B[1]=()=>w(h(o).name)),onChange:B[2]||(B[2]=()=>w(h(o).name)),onFocusout:B[3]||(B[3]=()=>w(h(o).name))},null,8,["modelValue","label","placeholder","error"]),y("p",$y,M(h(e)("route_change_announcer.name_help")),1)]),y("div",Uy,[q(F,{id:"phone",number:h(o).phone,"onUpdate:number":B[4]||(B[4]=X=>h(o).phone=X),country:h(o).countryCode,"onUpdate:country":B[5]||(B[5]=X=>h(o).countryCode=X),label:h(e)("passengers_page.inputs.phone"),name:"phone",autocomplete:"tel",placeholder:h(e)("passengers_page.inputs.phone_p"),error:h(l).phone,"aria-describedby":"phone-help",required:"",class:"md:!w-full",onInput:B[6]||(B[6]=()=>m(h(o).phone,h(o).countryCode)),onChange:B[7]||(B[7]=()=>m(h(o).phone,h(o).countryCode)),onFocusout:B[8]||(B[8]=()=>m(h(o).phone,h(o).countryCode))},null,8,["number","country","label","placeholder","error"]),y("p",Wy,M(h(e)("route_change_announcer.phone_help")),1)]),y("div",zy,[q(ye,{id:"email",modelValue:h(o).email,"onUpdate:modelValue":B[9]||(B[9]=X=>h(o).email=X),label:h(e)("passengers_page.inputs.email"),name:"email",autocomplete:"email",placeholder:h(e)("passengers_page.inputs.email_p"),error:h(l).email,"aria-describedby":"email-help",required:"","parent-class":"md:!w-full",onInput:B[10]||(B[10]=()=>b(h(o).email)),onChange:B[11]||(B[11]=()=>b(h(o).email)),onFocusout:B[12]||(B[12]=()=>b(h(o).email))},null,8,["modelValue","label","placeholder","error"]),y("p",Vy,M(h(e)("route_change_announcer.email_help")),1)]),y("div",Gy,[y("button",{type:"button",class:"mr-3 shrink-0 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-verdeAqua rounded","aria-checked":h(o).hasCommunications,role:"checkbox",onClick:B[13]||(B[13]=X=>h(o).hasCommunications=!h(o).hasCommunications)},[h(o).hasCommunications?(C(),he(j,{key:0})):(C(),R("span",Yy))],8,qy),y("label",{class:"font-quicks flex gap-2 cursor-pointer",onClick:B[14]||(B[14]=X=>h(o).hasCommunications=!h(o).hasCommunications)},M(_.$t("passengers_page.agree_receive")),1)]),y("div",Qy,[y("button",{type:"button",class:"mr-3 shrink-0 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-verdeAqua rounded","aria-checked":h(o).dataProtection,role:"checkbox",onClick:B[15]||(B[15]=X=>h(o).dataProtection=!h(o).dataProtection)},[h(o).dataProtection?(C(),he(j,{key:0})):(C(),R("span",Xy))],8,Zy),y("label",{class:"font-quicks flex gap-2 cursor-pointer",onClick:B[16]||(B[16]=X=>h(o).dataProtection=!h(o).dataProtection)},M(h(e)("route_change_announcer.accept_data_protection")),1)]),y("button",{type:"submit",class:ie(["flex w-fit mx-auto relative mt-2 justify-center items-center gap-2 px-[32px] py-[8px] border border-verdeAqua rounded-full transition-opacity ease-in-out duration-300",h(i)||
1!h(E)?"cursor-not-allowed opacity-50":"cursor-pointer"]),disabled:h(i)||!h(E)},[h(i)?(C(),he(Z,{key:0,size:"15px",border:"2px",color:"var(--verdeAqua)",type:"small"})):J("",!0),y("p",Jy,M(h(e)("route_change_announcer.submit")),1)],10,Ky)],40,jy)],2)])}}});var _n={exports:{}},tb=_n.exports,js;function nb(){return js||(js=1,(function(t,e){(function(n,r){t.exports=r()})(tb,(function(){return function(n,r){r.prototype.isSameOrBefore=function(i,s){return this.isSame(i,s)||this.isBefore(i,s)}}}))})(_n)),_n.exports}var rb=nb();const ib=Dl(rb),Ls=(t,e,n)=>{const r=t?.find(i=>i.airportCode===e?.toUpperCase());return n?r?.destinations?.find(i=>i.destinationAirportCode===n.toUpperCase()):r},sb=async(t,e,n,r,i,s)=>{try{const{data:a}=await $fetch(r+"/api/flights",{params:{uid:i}});if(!a)throw new Error("No flights found");const o=s?s(a,n):a,l=Ls(o,t.origin),d=Ls(o,t.origin,t.destination);if(!l||!d)throw new Error("No origin or destination found");let c=t.currency||void 0;const f={routes:[{id:1,origin:{airportCode:l.airportCode,airportDescription:l.airportDescription,airportName:l.airportName,countryCode:l.countryCode},destination:{destinationAirportCode:d.destinationAirportCode,destinationAirportName:d.destinationAirportName,destinationAirportDescription:d.destinationAirportDescription,destinationAirportCountryCode:d.destinationAirportCountryCode},date:void 0}],passengers:{adults:parseInt(t.adults),children:parseInt(t.children)||0,infants:parseInt(t.infants)||0},code:t.promotionalCode||"",type:t.arrival?"round":"oneway",services:[]};if(t.arrival&&(f.routes[1]={id:2,origin:{airportCode:d.destinationAirportCode,airportDescription:d.destinationAirportDescription,airportName:d.destinationAirportName,countryCode:d.destinationAirportCountryCode},destination:{destinationAirportCode:l.airportCode,destinationAirportName:l.airportName,destinationAirportDescription:l.airportDescription,destinationAirportCountryCode:l.countryCode},date:void 0}),t.currency&&(f.currencyCode=t.currency,c=f.currencyCode),!e)throw new Error("No dates found");return f.locale=zr(n),{flight:f,newCurrency:c,error:void 0}}catch(a){const o=[{message:"No flights found",code:"noFlights"},{message:"No origin or destination found",code:"noOriginOrDestination"},{message:"No dates found",code:"noDates"}];if(a instanceof Error){const l=o.find(d=>a.message.includes(d.message));if(l)return{flight:void 0,newCurrency:void 0,error:l.code}}return{flight:void 0,newCurrency:void 0,error:"unknown"}}},ab={class:"border-t min-h-screen"},ob={class:"container"},lb={key:0,class:"container"},cb={class:"additional-baggage"},db={target:"_blank",href:"https://www.iberojet.com/en/baggage-allowed"},ub={key:1,class:""},fb={class:"mb-4"},hb={class:""},gb={class:"container flex justify-between items-center"},pb={key:0,class:"flex items-center"},mb={key:0,class:"icons-cart text-right inputReady"},vb={key:1,class:"icons-cart text-right inputReady !flex align-center"},yb={class:"text-verdeAqua font-bold gap-2 flex items-end justify-center text-nowrap"},bb={class:"font-semibold text-[14px] lowercase"},Sb={class:"font-bold text-[16px]"},Eb={class:"container"},Db={class:"vuelosContainer"},wb={class:"md:mx-0 container container-funnel-section md:px-0 px-4"},Cb={key:4,ref:"bottomSection",class:"bottom-0 z-20 bg-white fixed w-full"},Ab={class:"divider-top borderOnSticky"},_b={class:"container flex justify-end"},xb={class:"flex gap-4 mr-4 align-center"},Rb={key:0,class:"flex flex-row justify-center align-center gap-4"},Tb={key:0,class:"flex flex-col text-right w-[-webkit-fill-available]"},kb={class:"uppercase text-[12px] total-reservation text-nowrap"},Ib={class:"font-bold text-[20px] sm:text-[24px] text-nowrap"},Mb={key:1,class:"flex flex-row justify-center align-center gap-4"},Ob={key:0},Nb={class:"iberojet-text md:total-reservation md:text-nowrap text-center font-bold md:font-normal md:p-0 px-8"},Pb=De({__name:"select",async setup(t){let e,n;const{pushFunnelEvent:r}=wl(),i=Vr(),s=z(i.query.showCalendar==="true"),{createFlight:a,getFlight:o}=Cl(),{transformFlightRoutes:l}=zl(),{locale:d}=Je(),c=Al(),f=Mi("header"),g=Mi("bottomSection"),{isSticky:u,sentinelEl:v}=Js(),m=z(!1),{width:b}=tl({headerRef:f,bottomRef:g}),w=z(),x=Ur(),{userUidCookie:P}=Ft(),L=qr();L.extend(ib);const N=z(i.query.hash),I=z(void 0),E=z(),_=_e("user-dates"),B=z(new Set),ge=Q(()=>B.value.size>0),we=_e("fareDetails",()=>[void 0,void 0]),xe=new URLSearchParams(i.query).toString(),ye=_e("flight-dates-one"),F=_e("flight-dates-round"),j=z([]),Z=z(""),X=z(!1),be=z({}),te=z({}),ee=(S,T)=>{S?be.value[T]=S:delete be.value[T]},oe=(S,T)=>{S?te.value[T]=S:delete te.value[T]},le=Q(()=>!!(E.value&&E.value.routes.length>1||i.query.arrival)),fe=Q(()=>{const S=s.value?te.value:be.value;return E.value?.routes.reduce((T,W)=>T+(S[W.id]?.lowestPrice??0),0)??0}),O=Q(()=>i.query.origin&&i.query.destination&&i.query.departure&&i.query.adults&&!i.query.hash),$=Q(()=>E.value?s.value?E.value.routes.every(S=>S.date):ge.value?!1:E.value.routes.every(S=>S.routeInfo?.extras?.fare?.lowestFarePriceWithTax&&S.routeInfo?.extras?.fare?.lowestFarePriceWithTax>0):!1),A=Q(()=>!E.value||s.value?!1:E.value.routes.some(S=>S.routeInfo?.extras?.fare?.lowestFarePriceWithTax&&S.routeInfo?.extras?.fare?.lowestFarePriceWithTax>0)),H=Q(()=>
1{if(!A.value||!le.value||!E.value)return"fares.personalize_your_experience";const[S,T]=E.value.routes??[],W=Re=>!!Re?.routeInfo?.extras?.fare?.lowestFarePriceWithTax,Y=W(S),se=W(T);return Y!==se?Y?"fares.personalize_your_experience_vuelta":"fares.personalize_your_experience_ida":"fares.personalize_your_experience"}),K=async()=>{i.query.currency&&(x.setCurrency(i.query.currency),x.$persist()),!O.value&&!N.value&&(I.value="queryParams"),N.value?w.value=await o(N.value):w.value=await a(xe),w.value?.success||(I.value=w.value.error),!N.value&&w.value.hash&&(N.value=w.value.hash),N.value&&w.value.flight&&(E.value=w.value.flight),_.value={departure:E.value?.routes[0]?.date||i.query.departure,arrival:E.value?.routes[1]?.date||i.query.arrival}},ne=S=>{const T=i.query.skyScannerId?.toString();if(!S.value||!T)return;Array.isArray(S.value.flightServices)||(S.value.flightServices=[]);const W=S.value.flightServices.find(Y=>Y?.type==="skyScannerId");W?W.value=T:S.value.flightServices.push({type:"skyScannerId",value:T})},re=async S=>{if(!E.value&&O.value&&_.value)if(!(S||await qe()))I.value="expiredSession";else{const{flight:W,error:Y}=await sb(i.query,_.value,d.value,c,P.value,l);Y||!W?I.value=Y:E.value=W,ne(E),N.value&&!s.value&&E.value?.routes?.every(se=>se.date)&&await U()}};[e,n]=Ys(async()=>xl("select-init",async()=>{const S=await qe();S&&(await K(),await re(S))},"$lTi8pEjjpT")),await e,n();const U=async S=>{if(!await qe()){I.value="expiredSession";return}if(!E.value||!E.value.routes[0]?.date||S&&!E.value.routes.find(Y=>Y.id==S)?.date||S&&j.value.includes(S))return;S&&j.value.push(S);const{data:W}=await $fetch(`${c}/api/fare-quotes/detail`,{params:{currencyCode:E.value?.currencyCode,promotionalCode:E.value?.code,originCode:E.value?.routes[0].origin.airportCode,date:E.value.routes[0].date.slice(0,10),destinationCode:E.value?.routes[0].destination.destinationAirportCode,departureDate:E.value.routes[0].date.slice(0,10),arrivalDate:E.value.routes[0].date.slice(0,10),destinationArrivalDate:le.value&&E.value?.routes[1].date?(E.value?.routes[1].date).slice(0,10):void 0,destinationDepartureDate:le.value&&E.value?.routes[1].date?(E.value?.routes[1].date).slice(0,10):void 0,languageCode:zr(d.value),adults:E.value?.passengers.adults,children:E.value?.passengers.children,infants:E.value?.passengers.infants,uid:P.value,flightType:le.value?"RT":"OW"}});we.value=W,E.value?.routes.forEach((Y,se)=>Y.fareDetails=we.value[se]),S&&(j.value=j.value.filter(Y=>Y!==S))},Ce=()=>{dn.value&&(Ue("select class"),s.value=!1,document.querySelector(".steps")?.scrollIntoView({behavior:"smooth"}))};nn(async()=>{if(!I.value){if(!E.value||!w.value?.success||!_.value.departure){const S=await qe();if(!S&&!i.query.hash&&(P.value=await Wl().currentUser?.getIdToken(!0)),S)try{await K(),await re()}catch{I.value="expiredSession"}else I.value="expiredSession"}E&&s.value==!0?Ue("calendar"):E&&s.value==!1&&Ue("select class")}});const Ae=Q(()=>d.value==="en"&&E.value?.routes?.[0]?.destination?.destinationAirportCode==="MCO");Gr(()=>{if(E.value?.routes?.length&&E.value.routes.length>1){const S=E.value.routes[0].date,T=E.value.routes[1].date;S&&T&&L(T).startOf("day").isSameOrBefore(L(S).startOf("day"))&&(E.value.routes[1].date=void 0,delete E.value.routes[1].routeInfo)}});
1function Ue(S){E&&r({order_step:S,origin_code:E.value?.routes[0].origin.airportCode?E.value?.routes[0].origin.airportCode:"",destination_code:E.value?.routes[0].destination.destinationAirportCode?E.value?.routes[0].destination.destinationAirportCode:"",check_in:E.value?.routes[0]?.date?(E.value?.routes[0]?.date).slice(0,10):"",check_out:E.value?.routes&&E.value?.routes?.length>1&&E.value?.routes[1]?.date?(E.value?.routes[1]?.date).slice(0,10):"",flight:E?.value,extra_service:""})}const Ut=async S=>{const T=E.value?.routes.find(W=>W.id==S.routeId);T&&T.date!==S.date&&(T.date=S.date,delete T.routeInfo),await U(S?.routeId||T?.id)},Wt=S=>S.date?S.date:S.id==1&&i.query.departure?i.query.departure:S.id==2&&i.query.arrival?i.query.arrival:E.value?.routes.find(T=>T.date)?E.value?.routes.find(T=>T.date)?.date:new Date().toISOString().slice(0,7),dn=Q(()=>!!E.value?.routes.every(S=>S.date)&&(E.value.routes.length===1||L(E.value.routes[1].date).startOf("day").isAfter(L(E.value.routes[0].date).startOf("day")))),ft=S=>{S.routeId===1?ye.value=S.dates:S.routeId===2&&(F.value=S.dates)},Kn=(S,T)=>{const W=h(S);E.value?.flightServices?.length||(E.value.flightServices=[]),E.value?.flightServices?.some(se=>se.type&&se.type==="routeDate")||E.value.flightServices.push({type:"routeDate",routes:[]});const Y=E.value?.flightServices?.find(se=>se.type&&se.type==="routeDate");if(Y){if(Y.routes||(Y.routes=[{routeId:T,date:W}]),!Y?.routes.some(se=>se.routeId==T))Y.routes.push({routeId:T,date:W});else if(Y?.routes.some(se=>se.routeId==T)){const se=Y.routes.find(Re=>Re.routeId==T);se.date=W}}},Jn=()=>{Ue("calendar"),s.value=!0},er=S=>{Number(S)===1&&setTimeout(()=>{X.value=!0},500)},tr=(S,T)=>{const W=new Set(B.value);T?W.add(S):W.delete(S),B.value=W},ht=Tl({}),gt={},k=S=>T=>{if(!(T instanceof Element)){gt[S]?.disconnect(),delete gt[S],delete ht[S];return}gt[S]?.disconnect();const W=new IntersectionObserver(([Y])=>{ht[S]=!Y.isIntersecting&&Y.boundingClientRect.top<0},{threshold:0});W.observe(T),gt[S]=W};return _l(()=>{Object.values(gt).forEach(S=>S.disconnect())}),Oi("flight",E),Oi("baggageRules",z([])),(S,T)=>{const W=el,Y=Jo,se=$s,Re=Us,nt=nu,nr=vy,ce=eb,zt=Rl,rr=$l,Ri=Ul,Ko=nl;return C(),R("div",ab,[y("header",{ref:"header",class:ie(["bg-white sticky top-0 z-10 transition-transform ease-in-out",h(u)?"-translate-y-full duration-200":"duration-0"])},[y("div",ob,[h(E)?.routes?.length?(C(),he(W,{key:0})):J("",!0)])],2),y("div",{ref_key:"headerStepSentinel",ref:v,"aria-hidden":"true",class:"h-px"},null,512),y("div",{class:ie(["sticky top-0 z-10 border-t border-lightGray transition-border ease-in-out",{"border-t-0":h(u)}])},[h(E)?.routes?.length?(C(),he(Y,{key:0,"is-calendar":h(s),"show-price":h(A),"lowest-price":h(fe),onGoToCalendar:Jn,onUpdateCartTotal:T[0]||(T[0]=de=>Z.value=de)},null,8,["is-calendar","show-price","lowest-price"])):J("",!0)],2),h(Ae)?(C(),R("div",lb,[y("div",cb,[je(M(S.$t("baggage_fees"))+" ",1),y("a",db,M(S.$t("baggage_url")),1)])])):J("",!0),h(E)&&h(E).routes&&h(E).routes.length>0&&!h(I)?(C(),R("div",ub,[y("div",fb,[y("div",hb,[h(s)?(C(),R("div",{key:1,class:ie(["w-full transition-all ease-[linear(0 0%, 0 1.8%, 0.01 3.6%, 0.03 6.35%, 0.07 9.1%, 0.13 11.4%, 0.19 13.4%, 0.27 15%, 0.34 16.1%, 0.54 18.35%, 0.66 20.6%, 0.72 22.4%, 0.77 24.6%, 0.81 27.3%, 0.85 30.4%, 0.88 35.1%, 0.92 40.6%, 0.94 47.2%, 0.96 55%, 0.98 64%, 0.99 74.4%, 1 86.4%, 1 100%)]",{"":h(b)>768}])},[(C(!0),R(Ee,null,Ie(h(E).routes,de=>(C(),he(nr,{key:`calendar_${de.id}`,ref_for:!0,ref:We=>oe(We,de.id),modelValue:de.date,"onUpdate:modelValue":We=>de.date=We,"header-step-pinned":h(u),"show-price":h(A),"sticky-lowest-price":h(fe),"cart-total":h(Z),route:de,month:Wt(de),type:h(E).type,dates:de.id==1?h(ye):h(F),onUpdateDates:ft,onError:T[4]||(T[4]=We=>I.value=We||"unexpectedError"),onOpenCart:T[5]||(T[5]=We=>m.value=!0)},null,8,["modelValue","onUpdate:modelValue","header-step-pinned","show-price","sticky-lowest-price","cart-total","route","month","type","dates"]))),128)),y("div",wb,[q(ce,{origin:h(E).routes[0].origin?.airportCode,destination:h(E).routes[0].destination?.destinationAirportCode},null,8,["origin","destination"])])],2)):(C(!0),R(Ee,{key:0},Ie(h(E).routes,(de,We)=>(C(),R("div",{key:`flight_${de.id}`},[y("div",{ref_for:!0,ref:k(de.id),"aria-hidden":"true",class:"h-px w-full pointer-events-none"},null,512),y("div",{class:ie(["!top-0 z-20 sticky !bg-white border-t border-b border-transparent transition-colors ease-in-out items-center min-h-[48px] flex",{"border-b-lightGray":h(ht)[de.id],"border-t-lightGray":h(u)&&We===0}])},[y("div",gb,[q(se,{route:de,"is-sticky":h(ht)[de.id],class:"ml-4 !z-20"},null,8,["route","is-sticky"]),q(Dt,{name:"fade"},{default:$e(()=>[h(ht)[de.id]?(C(),R("div",pb,[h(A)?(C(),R("div",mb,[y("button",{class:"ready-pax gap-2 c
1art-btn justify-center text-nowrap",type:"button",onClick:T[1]||(T[1]=Fe=>m.value=!0)},[q(Re),je(" "+M(h(Z)),1)])])):h(fe)?(C(),R("div",vb,[y("div",yb,[y("span",bb,M(S.$t("from")),1),y("span",Sb,M(("getPrice"in S?S.getPrice:h(Qe))(h(fe),h(d),h(E).currencyCode)),1)])])):J("",!0)])):J("",!0)]),_:2},1024)])],2),y("div",Eb,[y("div",Db,[y("div",{class:ie(["w-full transition-all ease-[linear(0 0%, 0 1.8%, 0.01 3.6%, 0.03 6.35%, 0.07 9.1%, 0.13 11.4%, 0.19 13.4%, 0.27 15%, 0.34 16.1%, 0.54 18.35%, 0.66 20.6%, 0.72 22.4%, 0.77 24.6%, 0.81 27.3%, 0.85 30.4%, 0.88 35.1%, 0.92 40.6%, 0.94 47.2%, 0.96 55%, 0.98 64%, 0.99 74.4%, 1 86.4%, 1 100%)]",{"container-funnel-section":h(b)>768}])},[q(nt,{ref_for:!0,ref:Fe=>ee(Fe,de.id),modelValue:de.routeInfo,"onUpdate:modelValue":Fe=>de.routeInfo=Fe,route:de,flight:h(E),type:h(E).type,dates:We===0?h(ye):h(F),"user-dates":h(_),"fare-details":h(we)[We],"flight-exists":!!(h(N)&&h(w).flight),"is-fetching-fare-details":h(j).includes(Number(de.id)),"data-type":de?.id==1?"outbound":"inbound","show-second-route":h(X),onUpdateDates:T[2]||(T[2]=Fe=>_.value=Fe),onDateChanged:Ut,onFetchDates:ft,onError:T[3]||(T[3]=Fe=>I.value=Fe||"unexpectedError"),onIsFetchingServices:Fe=>tr(de.id,Fe),onRouteDate:Fe=>Kn(Fe,de.id),onStartBundlesFetch:()=>er(de.id)},null,8,["modelValue","onUpdate:modelValue","route","flight","type","dates","user-dates","fare-details","flight-exists","is-fetching-fare-details","data-type","show-second-route","onIsFetchingServices","onRouteDate","onStartBundlesFetch"])],2)])])]))),128))])])])):h(I)?(C(),he(rr,{key:3,"show-on-error":""})):(C(),he(Dt,{key:2,"enter-active-class":"ease-out duration-100","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:$e(()=>[q(zt,{image:"/images/iberojet.webp"})]),_:1})),h(E)&&h(E).routes&&h(E).routes.length>0&&!h(I)?(C(),R("section",Cb,[y("div",Ab,[y("div",_b,[y("div",xb,[!h(s)&&h($)?(C(),R("div",Rb,[h(Z)?(C(),R("div",Tb,[y("span",kb,M(S.$t("total_reservation")),1),y("span",Ib,M(h(Z)),1)])):J("",!0),q(Ri,{to:"passengers",hash:h(N),"can-continue":h($),"flight-prop":h(E),onError:T[6]||(T[6]=de=>I.value=de||"unexpectedError")},null,8,["hash","can-continue","flight-prop"])])):J("",!0),h(s)||!h($)?(C(),R("div",Mb,[h(s)?J("",!0):(C(),R("div",Ob,[y("p",Nb,M(S.$t(h(H))),1)])),h(b)>768||h(s)?(C(),he(Ri,{key:1,to:"passengers",class:ie({"opacity-50 pointer-events-none":h(b)>768&&!h($)&&!h(s)}
1),"can-continue":h(s)?h(dn):h($),hash:h(N),onError:T[7]||(T[7]=de=>I.value=de||"unexpectedError"),onOnContinue:Ce},null,8,["class","can-continue","hash"])):J("",!0)])):J("",!0)])])])],512)):J("",!0),h(E)?(C(),he(Ko,{key:5,open:h(m),onClose:T[8]||(T[8]=de=>m.value=!1)},null,8,["open"])):J("",!0)])}}}),bS=Lt(Pb,[["__scopeId","data-v-9d16d8a5"]]);export{bS as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.