@platox/pivot-table 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +7 -3
- package/lib/index.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/index.umd.cjs
CHANGED
|
@@ -123,7 +123,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
123
123
|
transform: rotate(360deg);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
`,cz=function(e){var r=F.useContext(ox),n=r.csp,i=r.prefixCls,a=fz;i&&(a=a.replace(/anticon/g,i)),F.useEffect(function(){var o=e.current,s=rz(o);ez(a,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},dz=["icon","className","onClick","style","primaryColor","secondaryColor"],$l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function hz(t){var e=t.primaryColor,r=t.secondaryColor;$l.primaryColor=e,$l.secondaryColor=r||Rx(e),$l.calculated=!!r}function vz(){return In({},$l)}var fs=function(e){var r=e.icon,n=e.className,i=e.onClick,a=e.style,o=e.primaryColor,s=e.secondaryColor,l=ux(e,dz),u=Je.useRef(),f=$l;if(o&&(f={primaryColor:o,secondaryColor:s||Rx(o)}),cz(u),uz(Tx(r),"icon should be icon definiton, but got ".concat(r)),!Tx(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=In(In({},c),{},{icon:c.icon(f.primaryColor,f.secondaryColor)})),yg(c.icon,"svg-".concat(c.name),In(In({className:n,onClick:i,style:a,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};fs.displayName="IconReact",fs.getTwoToneColors=vz,fs.setTwoToneColors=hz;function Px(t){var e=Mx(t),r=lx(e,2),n=r[0],i=r[1];return fs.setTwoToneColors({primaryColor:n,secondaryColor:i})}function pz(){var t=fs.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var gz=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Px(dg.primary);var Xt=Je.forwardRef(function(t,e){var r=t.className,n=t.icon,i=t.spin,a=t.rotate,o=t.tabIndex,s=t.onClick,l=t.twoToneColor,u=ux(t,gz),f=Je.useContext(ox),c=f.prefixCls,d=c===void 0?"anticon":c,h=f.rootClassName,v=R6(h,d,sg(sg({},"".concat(d,"-").concat(n.name),!!n.name),"".concat(d,"-spin"),!!i||n.name==="loading"),r),g=o;g===void 0&&s&&(g=-1);var p=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,m=Mx(l),y=lx(m,2),b=y[0],_=y[1];return Je.createElement("span",Yt({role:"img","aria-label":n.name},u,{ref:e,tabIndex:g,onClick:s,className:v}),Je.createElement(fs,{icon:n,primaryColor:b,secondaryColor:_,style:p}))});Xt.displayName="AntdIcon",Xt.getTwoToneColor=pz,Xt.setTwoToneColor=Px;var mz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-center",theme:"outlined"},yz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:mz}))},Bx=Je.forwardRef(yz);process.env.NODE_ENV!=="production"&&(Bx.displayName="AlignCenterOutlined");var bz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-left",theme:"outlined"},Cz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:bz}))},Ix=Je.forwardRef(Cz);process.env.NODE_ENV!=="production"&&(Ix.displayName="AlignLeftOutlined");var _z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-right",theme:"outlined"},wz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:_z}))},Nx=Je.forwardRef(wz);process.env.NODE_ENV!=="production"&&(Nx.displayName="AlignRightOutlined");var xz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z"}}]},name:"bold",theme:"outlined"},Dz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:xz}))},Fx=Je.forwardRef(Dz);process.env.NODE_ENV!=="production"&&(Fx.displayName="BoldOutlined");var Sz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Ez=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Sz}))},Lx=Je.forwardRef(Ez);process.env.NODE_ENV!=="production"&&(Lx.displayName="CheckOutlined");var Az={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Tz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Az}))},pc=Je.forwardRef(Tz);process.env.NODE_ENV!=="production"&&(pc.displayName="CloseOutlined");var Oz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"}}]},name:"column-width",theme:"outlined"},Rz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Oz}))},kx=Je.forwardRef(Rz);process.env.NODE_ENV!=="production"&&(kx.displayName="ColumnWidthOutlined");var Mz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Pz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Mz}))},zx=Je.forwardRef(Pz);process.env.NODE_ENV!=="production"&&(zx.displayName="ExclamationCircleOutlined");var Bz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M798 160H366c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h181.2l-156 544H229c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8H474.4l156-544H798c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"italic",theme:"outlined"},Iz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Bz}))},jx=Je.forwardRef(Iz);process.env.NODE_ENV!=="production"&&(jx.displayName="ItalicOutlined");var Nz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Fz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Nz}))},Hx=Je.forwardRef(Fz);process.env.NODE_ENV!=="production"&&(Hx.displayName="MinusCircleOutlined");var Lz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-568H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},kz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Lz}))},Vx=Je.forwardRef(kz);process.env.NODE_ENV!=="production"&&(Vx.displayName="OrderedListOutlined");var zz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},jz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:zz}))},Wx=Je.forwardRef(jz);process.env.NODE_ENV!=="production"&&(Wx.displayName="PlusOutlined");var Hz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824 804H200c-4.4 0-8 3.4-8 7.6v60.8c0 4.2 3.6 7.6 8 7.6h624c4.4 0 8-3.4 8-7.6v-60.8c0-4.2-3.6-7.6-8-7.6zm-312-76c69.4 0 134.6-27.1 183.8-76.2C745 602.7 772 537.4 772 468V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 97-79 176-176 176s-176-79-176-176V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 69.4 27.1 134.6 76.2 183.8C377.3 701 442.6 728 512 728z"}}]},name:"underline",theme:"outlined"},Vz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Hz}))},$x=Je.forwardRef(Vz);process.env.NODE_ENV!=="production"&&($x.displayName="UnderlineOutlined");var Wz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"unordered-list",theme:"outlined"},$z=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Wz}))},Gx=Je.forwardRef($z);process.env.NODE_ENV!=="production"&&(Gx.displayName="UnorderedListOutlined");const Ux=(t,e)=>{const r=F.useRef(null),n=(...i)=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{t(...i)},e)};return F.useEffect(()=>()=>{r.current&&clearTimeout(r.current)},[]),n},Gz=(...t)=>{console!=null&&console.warn&&($a(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t))},qx={},bg=(...t)=>{$a(t[0])&&qx[t[0]]||($a(t[0])&&(qx[t[0]]=new Date),Gz(...t))},Yx=(t,e)=>()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}},Xx=(t,e,r)=>{t.loadNamespaces(e,Yx(t,r))},Zx=(t,e,r,n)=>{$a(r)&&(r=[r]),r.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,Yx(t,n))},Uz=(t,e,r={})=>!e.languages||!e.languages.length?(bg("i18n.languages were undefined or empty",e.languages),!0):e.hasLoadedNamespace(t,{lng:r.lng,precheck:(n,i)=>{var a;if(((a=r.bindI18n)==null?void 0:a.indexOf("languageChanging"))>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!i(n.isLanguageChangingTo,t))return!1}}),$a=t=>typeof t=="string",qz=t=>typeof t=="object"&&t!==null,Yz=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Xz={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Zz=t=>Xz[t];let Cg={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(Yz,Zz)};const Kz=(t={})=>{Cg={...Cg,...t}},Qz=()=>Cg;let Kx;const Jz=t=>{Kx=t},ej=()=>Kx,tj={type:"3rdParty",init(t){Kz(t.options.react),Jz(t)}},rj=F.createContext();class nj{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const ij=(t,e)=>{const r=F.useRef();return F.useEffect(()=>{r.current=t},[t,e]),r.current},Qx=(t,e,r,n)=>t.getFixedT(e,r,n),aj=(t,e,r,n)=>F.useCallback(Qx(t,e,r,n),[t,e,r,n]),Dr=(t,e={})=>{var _,C,w,x;const{i18n:r}=e,{i18n:n,defaultNS:i}=F.useContext(rj)||{},a=r||n||ej();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new nj),!a){bg("You will need to pass in an i18next instance by using initReactI18next");const D=(T,E)=>$a(E)?E:qz(E)&&$a(E.defaultValue)?E.defaultValue:Array.isArray(T)?T[T.length-1]:T,S=[D,{},!1];return S.t=D,S.i18n={},S.ready=!1,S}(_=a.options.react)!=null&&_.wait&&bg("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...Qz(),...a.options.react,...e},{useSuspense:s,keyPrefix:l}=o;let u=i||((C=a.options)==null?void 0:C.defaultNS);u=$a(u)?[u]:u||["translation"],(x=(w=a.reportNamespaces).addUsedNamespaces)==null||x.call(w,u);const f=(a.isInitialized||a.initializedStoreOnce)&&u.every(D=>Uz(D,a,o)),c=aj(a,e.lng||null,o.nsMode==="fallback"?u:u[0],l),d=()=>c,h=()=>Qx(a,e.lng||null,o.nsMode==="fallback"?u:u[0],l),[v,g]=F.useState(d);let p=u.join();e.lng&&(p=`${e.lng}${p}`);const m=ij(p),y=F.useRef(!0);F.useEffect(()=>{const{bindI18n:D,bindI18nStore:S}=o;y.current=!0,!f&&!s&&(e.lng?Zx(a,e.lng,u,()=>{y.current&&g(h)}):Xx(a,u,()=>{y.current&&g(h)})),f&&m&&m!==p&&y.current&&g(h);const T=()=>{y.current&&g(h)};return D&&(a==null||a.on(D,T)),S&&(a==null||a.store.on(S,T)),()=>{y.current=!1,a&&(D==null||D.split(" ").forEach(E=>a.off(E,T))),S&&a&&S.split(" ").forEach(E=>a.store.off(E,T))}},[a,p]),F.useEffect(()=>{y.current&&f&&g(d)},[a,l,f]);const b=[v,a,f];if(b.t=v,b.i18n=a,b.ready=f,f||!f&&!s)return b;throw new Promise(D=>{e.lng?Zx(a,e.lng,u,()=>D()):Xx(a,u,()=>D())})},Jx=["numbered-list","bulleted-list"],gc=["left","center","right","justify"],oj=({children:t})=>typeof document=="object"?Da.createPortal(t,document.body):null,sj=({defaultValue:t,onChange:e})=>{const{t:r}=Dr(),n=F.useCallback(s=>A.jsx(uj,{...s}),[]),i=F.useCallback(s=>A.jsx(fj,{...s}),[]),a=F.useMemo(()=>b6(m6(b4())),[]),o=Ux(s=>{e==null||e(s)},300);return A.jsx("div",{style:{width:"100%",height:"100%"},children:A.jsxs(p6,{editor:a,initialValue:t,onChange:o,children:[A.jsx(cj,{}),A.jsx(o6,{style:{width:"100%",height:"100%",outline:"none"},renderElement:n,renderLeaf:i,spellCheck:!0,autoFocus:!0,placeholder:r("pleaseEnter"),onDOMBeforeInput:s=>{switch(s.inputType){case"formatBold":return s.preventDefault(),mc(a,"bold");case"formatItalic":return s.preventDefault(),mc(a,"italic");case"formatUnderline":return s.preventDefault(),mc(a,"underlined")}}})]})})},lj=(t,e)=>{const r=eD(t,e,gc.includes(e)?"align":"type"),n=Jx.includes(e);oe.unwrapNodes(t,{match:a=>!O.isEditor(a)&&ye.isElement(a)&&Jx.includes(a.type)&&!gc.includes(e),split:!0});const i={};if(gc.includes(e)?i.align=r?void 0:e:i.type=r?"paragraph":n?"list-item":e,oe.setNodes(t,i),!r&&n){const a={type:e,children:[]};oe.wrapNodes(t,a)}},mc=(t,e)=>{tD(t,e)?O.removeMark(t,e):O.addMark(t,e,!0)},eD=(t,e,r="type")=>{const{selection:n}=t;if(!n)return!1;const[i]=Array.from(O.nodes(t,{at:O.unhangRange(t,n),match:a=>!O.isEditor(a)&&ye.isElement(a)&&a[r]===e}));return!!i},tD=(t,e)=>{const r=O.marks(t);return r?r[e]===!0:!1},uj=({attributes:t,children:e,element:r})=>{const n={textAlign:r.align};switch(r.type){case"block-quote":return A.jsx("blockquote",{style:n,...t,children:e});case"bulleted-list":return A.jsx("ul",{style:n,...t,children:e});case"heading-one":return A.jsx("h1",{style:n,...t,children:e});case"heading-two":return A.jsx("h2",{style:n,...t,children:e});case"list-item":return A.jsx("li",{style:n,...t,children:e});case"numbered-list":return A.jsx("ol",{style:n,...t,children:e});default:return A.jsx("p",{style:n,...t,children:e})}},fj=({attributes:t,children:e,leaf:r})=>(r.bold&&(e=A.jsx("strong",{children:e})),r.code&&(e=A.jsx("code",{children:e})),r.italic&&(e=A.jsx("em",{children:e})),r.underline&&(e=A.jsx("u",{children:e})),A.jsx("span",{...t,children:e})),cj=()=>{const t=F.useRef(null),e=fc(),r=c6();return F.useEffect(()=>{const n=t.current,{selection:i}=e;if(!n)return;if(!i||!r||te.isCollapsed(i)||O.string(e,i)===""){n.removeAttribute("style");return}const a=window.getSelection(),o=a==null?void 0:a.getRangeAt(0),s=o==null?void 0:o.getBoundingClientRect();n.style.opacity="1",s&&(n.style.top=`${s.top+window.pageYOffset-n.offsetHeight}px`,n.style.left=`${s.left+window.pageXOffset-n.offsetWidth/2+s.width/2}px`)}),A.jsx(oj,{children:A.jsxs("div",{ref:t,className:"editor-menu",onMouseDown:n=>{n.preventDefault()},children:[A.jsx(_g,{format:"bold",icon:A.jsx(Fx,{})}),A.jsx(_g,{format:"italic",icon:A.jsx(jx,{})}),A.jsx(_g,{format:"underline",icon:A.jsx($x,{})}),A.jsx(cs,{format:"numbered-list",icon:A.jsx(Vx,{})}),A.jsx(cs,{format:"bulleted-list",icon:A.jsx(Gx,{})}),A.jsx(cs,{format:"left",icon:A.jsx(Ix,{})}),A.jsx(cs,{format:"center",icon:A.jsx(Bx,{})}),A.jsx(cs,{format:"right",icon:A.jsx(Nx,{})}),A.jsx(cs,{format:"justify",icon:A.jsx(kx,{})})]})})},_g=({format:t,icon:e})=>{const r=fc();return A.jsx(Z.Button,{onClick:()=>mc(r,t),icon:e,color:tD(r,t)?"primary":"default",variant:"text"})},cs=({format:t,icon:e})=>{const r=fc();return A.jsx(Z.Button,{color:eD(r,t,gc.includes(t)?"align":"type")?"primary":"default",icon:e,variant:"text",onClick:()=>{lj(r,t)}})},dj=({defaultValue:t,onChange:e})=>A.jsx("div",{style:{width:"100%",height:"100%",overflowY:"auto",padding:"0 10px"},children:A.jsx(sj,{defaultValue:t,onChange:e})});var yc={},wg={},xg={};Object.defineProperty(xg,"__esModule",{value:!0}),xg.default=hj;function hj(t,e){if(t===e)return!0;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var i=Object.prototype.hasOwnProperty,a=0;a<r.length;a++)if(!i.call(e,r[a])||t[r[a]]!==e[r[a]])return!1;return!0}var Dg={},rD={exports:{}},Ot=rD.exports={},Nn,Fn;function Sg(){throw new Error("setTimeout has not been defined")}function Eg(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Nn=setTimeout:Nn=Sg}catch{Nn=Sg}try{typeof clearTimeout=="function"?Fn=clearTimeout:Fn=Eg}catch{Fn=Eg}})();function nD(t){if(Nn===setTimeout)return setTimeout(t,0);if((Nn===Sg||!Nn)&&setTimeout)return Nn=setTimeout,setTimeout(t,0);try{return Nn(t,0)}catch{try{return Nn.call(null,t,0)}catch{return Nn.call(this,t,0)}}}function vj(t){if(Fn===clearTimeout)return clearTimeout(t);if((Fn===Eg||!Fn)&&clearTimeout)return Fn=clearTimeout,clearTimeout(t);try{return Fn(t)}catch{try{return Fn.call(null,t)}catch{return Fn.call(this,t)}}}var vi=[],ds=!1,Ga,bc=-1;function pj(){!ds||!Ga||(ds=!1,Ga.length?vi=Ga.concat(vi):bc=-1,vi.length&&iD())}function iD(){if(!ds){var t=nD(pj);ds=!0;for(var e=vi.length;e;){for(Ga=vi,vi=[];++bc<e;)Ga&&Ga[bc].run();bc=-1,e=vi.length}Ga=null,ds=!1,vj(t)}}Ot.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];vi.push(new aD(t,e)),vi.length===1&&!ds&&nD(iD)};function aD(t,e){this.fun=t,this.array=e}aD.prototype.run=function(){this.fun.apply(null,this.array)},Ot.title="browser",Ot.browser=!0,Ot.env={},Ot.argv=[],Ot.version="",Ot.versions={};function pi(){}Ot.on=pi,Ot.addListener=pi,Ot.once=pi,Ot.off=pi,Ot.removeListener=pi,Ot.removeAllListeners=pi,Ot.emit=pi,Ot.prependListener=pi,Ot.prependOnceListener=pi,Ot.listeners=function(t){return[]},Ot.binding=function(t){throw new Error("process.binding is not supported")},Ot.cwd=function(){return"/"},Ot.chdir=function(t){throw new Error("process.chdir is not supported")},Ot.umask=function(){return 0};var gj=rD.exports;Object.defineProperty(Dg,"__esModule",{value:!0}),Dg.default=Cj;var mj=gj,yj=bj(mj);function bj(t){return t&&t.__esModule?t:{default:t}}function Cj(t,e){var r=[],n=0,i=!0;function a(s){function l(){e&&e(s,r)}i?yj.default.nextTick(l):l()}function o(s,l){r.push(l),++n>=t.length||s?a(s):t[n](o)}t.length>0?t[0](o):a(null),i=!1}var Ag={};Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.default=wj;var _j=function(){};function wj(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_j;t()?e(function n(i){for(var a=arguments.length,o=Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];i?r(i):t.apply(this,o)?e(n):r(null)}):r(null)}var Tg={};Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.default=xj;function xj(t,e){var r=void 0,n=void 0,i=void 0,a=void 0,o=0;function s(){a=0,o=+new Date,i=t.apply(r,n),r=null,n=null}return function(){r=this,n=arguments;var u=new Date-o;return a||(u>=e?s():a=setTimeout(s,e-u)),i}}var Og={};Object.defineProperty(Og,"__esModule",{value:!0}),Og.default=Sj;var Dj=0;function Sj(){return Dj++}var Cc={};Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.innerHeight=Ej,Cc.innerWidth=Aj;function Ej(t){var e=window.getComputedStyle(t,null);return e?t.clientHeight-parseInt(e.getPropertyValue("padding-top"),10)-parseInt(e.getPropertyValue("padding-bottom"),10):t.clientHeight}function Aj(t){var e=window.getComputedStyle(t,null);return e?t.clientWidth-parseInt(e.getPropertyValue("padding-left"),10)-parseInt(e.getPropertyValue("padding-right"),10):t.clientWidth}Object.defineProperty(wg,"__esModule",{value:!0});var oD=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tj=function(){function t(e,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Oj=F,Rg=Ua(Oj),Rj=si,$i=Ua(Rj),Mj=xg,Pj=Ua(Mj),Bj=Dg,Ij=Ua(Bj),Nj=Ag,sD=Ua(Nj),Fj=Tg,Lj=Ua(Fj),kj=Og,lD=Ua(kj),uD=Cc;function Ua(t){return t&&t.__esModule?t:{default:t}}function zj(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function jj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hj(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Vj(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function fD(t,e){return t.scrollWidth-1<=e}function cD(t,e){return t.scrollHeight-1<=e}function Wj(){}var Mg=function(t){Vj(e,t);function e(r){jj(this,e);var n=Hj(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r));return n.state={fontSize:null,ready:!1},n.handleWindowResize=function(){n.process()},"perfectFit"in r&&console.warn("TextFit property perfectFit has been removed."),n.handleWindowResize=(0,Lj.default)(n.handleWindowResize,r.throttle),n}return Tj(e,[{key:"componentDidMount",value:function(){var n=this.props.autoResize;n&&window.addEventListener("resize",this.handleWindowResize),this.process()}},{key:"componentDidUpdate",value:function(n){var i=this.state.ready;i&&((0,Pj.default)(this.props,n)||this.process())}},{key:"componentWillUnmount",value:function(){var n=this.props.autoResize;n&&window.removeEventListener("resize",this.handleWindowResize),this.pid=(0,lD.default)()}},{key:"process",value:function(){var n=this,i=this.props,a=i.min,o=i.max,s=i.mode,l=i.forceSingleModeWidth,u=i.onReady,f=this._parent,c=this._child,d=(0,uD.innerWidth)(f),h=(0,uD.innerHeight)(f);if(h<=0||isNaN(h)){console.warn("Can not process element without height. Make sure the element is displayed and has a static height.");return}if(d<=0||isNaN(d)){console.warn("Can not process element without width. Make sure the element is displayed and has a static width.");return}var v=(0,lD.default)();this.pid=v;var g=function(){return v!==n.pid},p=s==="multi"?function(){return cD(c,h)}:function(){return fD(c,d)},m=s==="multi"?function(){return fD(c,d)}:function(){return cD(c,h)},y=void 0,b=a,_=o;this.setState({ready:!1}),(0,Ij.default)([function(C){return(0,sD.default)(function(){return b<=_},function(w){if(g())return w(!0);y=parseInt((b+_)/2,10),n.setState({fontSize:y},function(){return g()?w(!0):(p()?b=y+1:_=y-1,w())})},C)},function(C){return s==="single"&&l||m()?C():(b=a,_=y,(0,sD.default)(function(){return b<_},function(w){if(g())return w(!0);y=parseInt((b+_)/2,10),n.setState({fontSize:y},function(){return v!==n.pid?w(!0):(m()?b=y+1:_=y-1,w())})},C))},function(C){if(y=Math.min(b,_),y=Math.max(y,a),y=Math.min(y,o),y=Math.max(y,0),g())return C(!0);n.setState({fontSize:y},C)}],function(C){C||g()||n.setState({ready:!0},function(){return u(y)})})}},{key:"render",value:function(){var n=this,i=this.props,a=i.children,o=i.text,s=i.style;i.min,i.max;var l=i.mode;i.forceWidth,i.forceSingleModeWidth,i.throttle,i.autoResize,i.onReady;var u=zj(i,["children","text","style","min","max","mode","forceWidth","forceSingleModeWidth","throttle","autoResize","onReady"]),f=this.state,c=f.fontSize,d=f.ready,h=oD({},s,{fontSize:c}),v={display:d?"block":"inline-block"};return l==="single"&&(v.whiteSpace="nowrap"),Rg.default.createElement("div",oD({ref:function(p){return n._parent=p},style:h},u),Rg.default.createElement("div",{ref:function(p){return n._child=p},style:v},o&&typeof a=="function"?d?a(o):o:a))}}]),e}(Rg.default.Component);Mg.propTypes={children:$i.default.node,text:$i.default.string,min:$i.default.number,max:$i.default.number,mode:$i.default.oneOf(["single","multi"]),forceSingleModeWidth:$i.default.bool,throttle:$i.default.number,onReady:$i.default.func},Mg.defaultProps={min:1,max:100,mode:"multi",forceSingleModeWidth:!0,throttle:50,autoResize:!0,onReady:Wj},wg.default=Mg,Object.defineProperty(yc,"__esModule",{value:!0});var Pg=yc.Textfit=void 0,$j=wg,dD=Gj($j);function Gj(t){return t&&t.__esModule?t:{default:t}}Pg=yc.Textfit=dD.default,yc.default=dD.default;function Uj({rdate:t,u:e,field:r,value:n}){if(t)switch(t){case"exactdate":return`${r}${e}eq.${n}`;case"today":return`${r}${e}eq.${new Date().toISOString().split("T")[0]}`;case"yesterday":{const i=new Date;return i.setDate(i.getDate()-1),`${r}${e}eq.${i.toISOString().split("T")[0]}`}case"thisweek":{const i=new Date,a=new Date(i.setDate(i.getDate()-i.getDay()));return`${r}${e}gte.${a.toISOString().split("T")[0]}`}case"lastweek":{const i=new Date,a=new Date(i.setDate(i.getDate()-i.getDay()-7)),o=new Date(i.setDate(i.getDate()+6));return`${r}${e}gte.${a.toISOString().split("T")[0]}&${r}${e}lte.${o.toISOString().split("T")[0]}`}case"thismonth":{const i=new Date,a=new Date(i.getFullYear(),i.getMonth(),1),o=new Date(i.getFullYear(),i.getMonth()+1,0);return`${r}${e}gte.${a.toISOString().split("T")[0]}&${r}${e}lte.${o.toISOString().split("T")[0]}`}case"lastmonth":{const i=new Date,a=new Date(i.getFullYear(),i.getMonth()-1,1),o=new Date(i.getFullYear(),i.getMonth(),0);return`${r}${e}gte.${a.toISOString().split("T")[0]}&${r}${e}lte.${o.toISOString().split("T")[0]}`}case"last7days":{const i=new Date,a=new Date(i.setDate(i.getDate()-7));return`${r}${e}gte.${a.toISOString().split("T")[0]}`}case"last30days":{const i=new Date,a=new Date(i.setDate(i.getDate()-30));return`${r}${e}gte.${a.toISOString().split("T")[0]}`}default:return""}}const Bg=t=>{const{conditionList:e,conditionType:r="all"}=t,n=r==="all"?"=":".",i=e.map(o=>{const{field:s,condition:l,val:u,val2:f,rdate:c,type:d}=o,h=u!=null&&u.value?u==null?void 0:u.value:u;switch(l){case"=":return d!=="timestamp"?`${s}${n}eq.${h}`:c==="exactdate"?`${s}${n}eq.${h}`:Uj({rdate:c,u:n,field:s,value:h});case"!=":return`${s}${n}neq.${h}`;case"include":return`${s}${n}cs.{${h}}`;case"notinclude":return`${s}${n}not.cs.{${h}}`;case">":if(c==="today")return`${s}${n}gt.${new Date().toISOString().split("T")[0]}`;if(c==="yesterday"){const v=new Date;return v.setDate(v.getDate()-1),`${s}${n}gt.${v.toISOString().split("T")[0]}`}return`${s}${n}gt.${h}`;case">=":return`${s}${n}gte.${h}`;case"<":if(c==="today")return`${s}${n}lt.${new Date().toISOString().split("T")[0]}`;if(c==="yesterday"){const v=new Date;return v.setDate(v.getDate()-1),`${s}${n}lt.${v.toISOString().split("T")[0]}`}return`${s}${n}lt.${h}`;case"<=":return`${s}${n}lte.${h}`;case"contain":return h&&f?`${s}${n}gte.${h},${s}.lte.${f}`:"";case"before":return`${s}${n}lt.${h}`;case"after":return`${s}${n}gt.${h}`;case"null":return`${s}${n}is.null`;case"notnull":return`${s}${n}not.is.null`;default:return""}}).filter(Boolean);let a;return r==="all"||i.length===1?a=i.join("&"):a=`or=(${i.join(",")})`,a};function qj(t,e=0){if(!Number.isFinite(t))throw new Error("Value must be a finite number.");return new Intl.NumberFormat(void 0,{style:"percent",minimumFractionDigits:e,maximumFractionDigits:e}).format(t)}function Gl(t,e=0){if(!Number.isFinite(t))return"";const r=new Intl.NumberFormat(void 0,{minimumFractionDigits:0,maximumFractionDigits:e}).format(t),[n,i]=r.split("."),a=(i||"").padEnd(e,"0");return`${n}${e>0?".":""}${a}`}const hD=({moduleDataApi:t,customData:e,customeStyle:r,width:n,height:i})=>{const[a,o]=F.useState(),s=F.useRef(),[l,u]=F.useState(!1),f=F.useCallback(async()=>{var v,g;if(e){let p="";u(!0),e.statisticalMethod==="fieldValue"&&e.field?p+=`select=${e.field}.${e==null?void 0:e.statisticalType}()`:e.statisticalMethod==="recordTotal"&&(p+="select=id.count()"),e!=null&&e.conditionData&&((g=(v=e==null?void 0:e.conditionData)==null?void 0:v.conditionList)==null?void 0:g.length)>0&&(p+=`&${Bg(e==null?void 0:e.conditionData)}`),e!=null&&e.dataSourceId&&(t==null||t({id:e==null?void 0:e.dataSourceId,query:p}).then(m=>{if(!m.success){Z.message.error(m.message);return}o(m.data)}).finally(()=>{u(!1)}))}else o([])},[e==null?void 0:e.conditionData,e==null?void 0:e.statisticalMethod,e==null?void 0:e.statisticalType,e==null?void 0:e.field,e==null?void 0:e.dataSourceId]);F.useEffect(()=>{e&&f()},[e==null?void 0:e.conditionData,e==null?void 0:e.statisticalMethod,e==null?void 0:e.statisticalType,e==null?void 0:e.field,e==null?void 0:e.dataSourceId]);const c=F.useMemo(()=>{var b,_,C,w,x;if(!a)return"";const v=a,{statisticalMethod:g,statisticalType:p,field:m}=e||{};let y=0;if(v.length&&g==="fieldValue"&&m)switch(p){case"sum":y=((b=v==null?void 0:v[0])==null?void 0:b.sum)||0;break;case"max":y=((_=v==null?void 0:v[0])==null?void 0:_.max)||0;break;case"min":y=((C=v==null?void 0:v[0])==null?void 0:C.min)||0;break;case"avg":y=((w=v==null?void 0:v[0])==null?void 0:w.avg)||0;break;default:y=0}else g==="recordTotal"&&(y=((x=v==null?void 0:v[0])==null?void 0:x.count)||0);if(r!=null&&r.unit){const{unit:D,precision:S}=r;switch(D){case"4":y=`¥${Gl(y,S)}`;break;case"5":y=`$${Gl(y,S)}`;break;case"1":y=Gl(y,S);break;case"3":y=qj(y,S);break;default:y=Gl(y,S)}}else y=Gl(y,r==null?void 0:r.precision);return y},[a,e,r]),[d,h]=F.useState("100%");return F.useEffect(()=>{const v=()=>{s.current&&h(s.current.offsetWidth)};return v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[n,i]),A.jsx("div",{ref:s,style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:A.jsx(Z.Spin,{spinning:l,children:A.jsxs("div",{style:{display:"flex",flexWrap:"wrap",height:"100%",width:d},children:[c!==""?A.jsx("div",{className:"stat-text",style:{color:r==null?void 0:r.color,textAlign:"center",lineHeight:"normal",marginBottom:r!=null&&r.desc?0:"auto",marginTop:"auto",padding:"0 20px",width:d},children:A.jsx(Pg,{mode:"single",children:c})}):null,r!=null&&r.desc?A.jsx("div",{className:"stat-description-text",style:{color:r==null?void 0:r.color,textAlign:"center",marginTop:"15px"},children:A.jsx(Pg,{mode:"single",max:25,children:r==null?void 0:r.desc})}):null]})})})};var _c,Se,vD,pD,hs,qa,gD,mD,yD,wc={},bD=[],Yj=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Gi(t,e){for(var r in e)t[r]=e[r];return t}function CD(t){var e=t.parentNode;e&&e.removeChild(t)}function re(t,e,r){var n,i,a,o={};for(a in e)a=="key"?n=e[a]:a=="ref"?i=e[a]:o[a]=e[a];if(arguments.length>2&&(o.children=arguments.length>3?_c.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(a in t.defaultProps)o[a]===void 0&&(o[a]=t.defaultProps[a]);return xc(t,o,n,i,null)}function xc(t,e,r,n,i){var a={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++vD};return i==null&&Se.vnode!=null&&Se.vnode(a),a}function gi(){return{current:null}}function Rt(t){return t.children}function Xj(t,e,r,n,i){var a;for(a in r)a==="children"||a==="key"||a in e||Dc(t,a,null,r[a],n);for(a in e)i&&typeof e[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||r[a]===e[a]||Dc(t,a,e[a],r[a],n)}function _D(t,e,r){e[0]==="-"?t.setProperty(e,r??""):t[e]=r==null?"":typeof r!="number"||Yj.test(e)?r:r+"px"}function Dc(t,e,r,n,i){var a;e:if(e==="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||_D(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||_D(t.style,e,r[e])}else if(e[0]==="o"&&e[1]==="n")a=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+a]=r,r?n||t.addEventListener(e,a?xD:wD,a):t.removeEventListener(e,a?xD:wD,a);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]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,r))}}function wD(t){hs=!0;try{return this.l[t.type+!1](Se.event?Se.event(t):t)}finally{hs=!1}}function xD(t){hs=!0;try{return this.l[t.type+!0](Se.event?Se.event(t):t)}finally{hs=!1}}function Hr(t,e){this.props=t,this.context=e}function Ul(t,e){if(e==null)return t.__?Ul(t.__,t.__.__k.indexOf(t)+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?Ul(t):null}function DD(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return DD(t)}}function Zj(t){hs?setTimeout(t):mD(t)}function Ig(t){(!t.__d&&(t.__d=!0)&&qa.push(t)&&!Sc.__r++||gD!==Se.debounceRendering)&&((gD=Se.debounceRendering)||Zj)(Sc)}function Sc(){var t,e,r,n,i,a,o,s;for(qa.sort(function(l,u){return l.__v.__b-u.__v.__b});t=qa.shift();)t.__d&&(e=qa.length,n=void 0,i=void 0,o=(a=(r=t).__v).__e,(s=r.__P)&&(n=[],(i=Gi({},a)).__v=a.__v+1,Ng(s,a,i,r.__n,s.ownerSVGElement!==void 0,a.__h!=null?[o]:null,n,o??Ul(a),a.__h),OD(n,a),a.__e!=o&&DD(a)),qa.length>e&&qa.sort(function(l,u){return l.__v.__b-u.__v.__b}));Sc.__r=0}function SD(t,e,r,n,i,a,o,s,l,u){var f,c,d,h,v,g,p,m=n&&n.__k||bD,y=m.length;for(r.__k=[],f=0;f<e.length;f++)if((h=r.__k[f]=(h=e[f])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?xc(null,h,null,null,h):Array.isArray(h)?xc(Rt,{children:h},null,null,null):h.__b>0?xc(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null){if(h.__=r,h.__b=r.__b+1,(d=m[f])===null||d&&h.key==d.key&&h.type===d.type)m[f]=void 0;else for(c=0;c<y;c++){if((d=m[c])&&h.key==d.key&&h.type===d.type){m[c]=void 0;break}d=null}Ng(t,h,d=d||wc,i,a,o,s,l,u),v=h.__e,(c=h.ref)&&d.ref!=c&&(p||(p=[]),d.ref&&p.push(d.ref,null,h),p.push(c,h.__c||v,h)),v!=null?(g==null&&(g=v),typeof h.type=="function"&&h.__k===d.__k?h.__d=l=ED(h,l,t):l=AD(t,h,d,m,v,l),typeof r.type=="function"&&(r.__d=l)):l&&d.__e==l&&l.parentNode!=t&&(l=Ul(d))}for(r.__e=g,f=y;f--;)m[f]!=null&&(typeof r.type=="function"&&m[f].__e!=null&&m[f].__e==r.__d&&(r.__d=TD(n).nextSibling),MD(m[f],m[f]));if(p)for(f=0;f<p.length;f++)RD(p[f],p[++f],p[++f])}function ED(t,e,r){for(var n,i=t.__k,a=0;i&&a<i.length;a++)(n=i[a])&&(n.__=t,e=typeof n.type=="function"?ED(n,e,r):AD(r,n,n,i,n.__e,e));return e}function Ec(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(r){Ec(r,e)}):e.push(t)),e}function AD(t,e,r,n,i,a){var o,s,l;if(e.__d!==void 0)o=e.__d,e.__d=void 0;else if(r==null||i!=a||i.parentNode==null)e:if(a==null||a.parentNode!==t)t.appendChild(i),o=null;else{for(s=a,l=0;(s=s.nextSibling)&&l<n.length;l+=1)if(s==i)break e;t.insertBefore(i,a),o=a}return o!==void 0?o:i.nextSibling}function TD(t){var e,r,n;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((r=t.__k[e])&&(n=TD(r)))return n}return null}function Ng(t,e,r,n,i,a,o,s,l){var u,f,c,d,h,v,g,p,m,y,b,_,C,w,x,D=e.type;if(e.constructor!==void 0)return null;r.__h!=null&&(l=r.__h,s=e.__e=r.__e,e.__h=null,a=[s]),(u=Se.__b)&&u(e);try{e:if(typeof D=="function"){if(p=e.props,m=(u=D.contextType)&&n[u.__c],y=u?m?m.props.value:u.__:n,r.__c?g=(f=e.__c=r.__c).__=f.__E:("prototype"in D&&D.prototype.render?e.__c=f=new D(p,y):(e.__c=f=new Hr(p,y),f.constructor=D,f.render=Qj),m&&m.sub(f),f.props=p,f.state||(f.state={}),f.context=y,f.__n=n,c=f.__d=!0,f.__h=[],f._sb=[]),f.__s==null&&(f.__s=f.state),D.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Gi({},f.__s)),Gi(f.__s,D.getDerivedStateFromProps(p,f.__s))),d=f.props,h=f.state,f.__v=e,c)D.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(D.getDerivedStateFromProps==null&&p!==d&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(p,y),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(p,f.__s,y)===!1||e.__v===r.__v){for(e.__v!==r.__v&&(f.props=p,f.state=f.__s,f.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.forEach(function(S){S&&(S.__=e)}),b=0;b<f._sb.length;b++)f.__h.push(f._sb[b]);f._sb=[],f.__h.length&&o.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(p,f.__s,y),f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(d,h,v)})}if(f.context=y,f.props=p,f.__P=t,_=Se.__r,C=0,"prototype"in D&&D.prototype.render){for(f.state=f.__s,f.__d=!1,_&&_(e),u=f.render(f.props,f.state,f.context),w=0;w<f._sb.length;w++)f.__h.push(f._sb[w]);f._sb=[]}else do f.__d=!1,_&&_(e),u=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++C<25);f.state=f.__s,f.getChildContext!=null&&(n=Gi(Gi({},n),f.getChildContext())),c||f.getSnapshotBeforeUpdate==null||(v=f.getSnapshotBeforeUpdate(d,h)),x=u!=null&&u.type===Rt&&u.key==null?u.props.children:u,SD(t,Array.isArray(x)?x:[x],e,r,n,i,a,o,s,l),f.base=e.__e,e.__h=null,f.__h.length&&o.push(f),g&&(f.__E=f.__=null),f.__e=!1}else a==null&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=Kj(r.__e,e,r,n,i,a,o,l);(u=Se.diffed)&&u(e)}catch(S){e.__v=null,(l||a!=null)&&(e.__e=s,e.__h=!!l,a[a.indexOf(s)]=null),Se.__e(S,e,r)}}function OD(t,e){Se.__c&&Se.__c(e,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(n){n.call(r)})}catch(n){Se.__e(n,r.__v)}})}function Kj(t,e,r,n,i,a,o,s){var l,u,f,c=r.props,d=e.props,h=e.type,v=0;if(h==="svg"&&(i=!0),a!=null){for(;v<a.length;v++)if((l=a[v])&&"setAttribute"in l==!!h&&(h?l.localName===h:l.nodeType===3)){t=l,a[v]=null;break}}if(t==null){if(h===null)return document.createTextNode(d);t=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),a=null,s=!1}if(h===null)c===d||s&&t.data===d||(t.data=d);else{if(a=a&&_c.call(t.childNodes),u=(c=r.props||wc).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!s){if(a!=null)for(c={},v=0;v<t.attributes.length;v++)c[t.attributes[v].name]=t.attributes[v].value;(f||u)&&(f&&(u&&f.__html==u.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(Xj(t,d,c,i,s),f)e.__k=[];else if(v=e.props.children,SD(t,Array.isArray(v)?v:[v],e,r,n,i&&h!=="foreignObject",a,o,a?a[0]:r.__k&&Ul(r,0),s),a!=null)for(v=a.length;v--;)a[v]!=null&&CD(a[v]);s||("value"in d&&(v=d.value)!==void 0&&(v!==t.value||h==="progress"&&!v||h==="option"&&v!==c.value)&&Dc(t,"value",v,c.value,!1),"checked"in d&&(v=d.checked)!==void 0&&v!==t.checked&&Dc(t,"checked",v,c.checked,!1))}return t}function RD(t,e,r){try{typeof t=="function"?t(e):t.current=e}catch(n){Se.__e(n,r)}}function MD(t,e,r){var n,i;if(Se.unmount&&Se.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||RD(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){Se.__e(a,e)}n.base=n.__P=null,t.__c=void 0}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&MD(n[i],e,r||typeof t.type!="function");r||t.__e==null||CD(t.__e),t.__=t.__e=t.__d=void 0}function Qj(t,e,r){return this.constructor(t,r)}function ql(t,e,r){var n,i,a;Se.__&&Se.__(t,e),i=(n=typeof r=="function")?null:e.__k,a=[],Ng(e,t=(!n&&r||e).__k=re(Rt,null,[t]),i||wc,wc,e.ownerSVGElement!==void 0,!n&&r?[r]:i?null:e.firstChild?_c.call(e.childNodes):null,a,!n&&r?r:i?i.__e:e.firstChild,n),OD(a,t)}function Jj(t,e){var r={__c:e="__cC"+yD++,__:t,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,a;return this.getChildContext||(i=[],(a={})[e]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(function(s){s.__e=!0,Ig(s)})},this.sub=function(o){i.push(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),s&&s.call(o)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}_c=bD.slice,Se={__e:function(t,e,r,n){for(var i,a,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,n||{}),o=i.__d),o)return i.__E=i}catch(s){t=s}throw t}},vD=0,pD=function(t){return t!=null&&t.constructor===void 0},hs=!1,Hr.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Gi({},this.state),typeof t=="function"&&(t=t(Gi({},r),this.props)),t&&Gi(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ig(this))},Hr.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ig(this))},Hr.prototype.render=Rt,qa=[],mD=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Sc.__r=0,yD=0;var Ln,Fg,PD,BD=[],Lg=[],ID=Se.__b,ND=Se.__r,FD=Se.diffed,LD=Se.__c,kD=Se.unmount;function e9(){for(var t;t=BD.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ac),t.__H.__h.forEach(kg),t.__H.__h=[]}catch(e){t.__H.__h=[],Se.__e(e,t.__v)}}Se.__b=function(t){Ln=null,ID&&ID(t)},Se.__r=function(t){ND&&ND(t);var e=(Ln=t.__c).__H;e&&(Fg===Ln?(e.__h=[],Ln.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Lg,r.__N=r.i=void 0})):(e.__h.forEach(Ac),e.__h.forEach(kg),e.__h=[])),Fg=Ln},Se.diffed=function(t){FD&&FD(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(BD.push(e)!==1&&PD===Se.requestAnimationFrame||((PD=Se.requestAnimationFrame)||t9)(e9)),e.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Lg&&(r.__=r.__V),r.i=void 0,r.__V=Lg})),Fg=Ln=null},Se.__c=function(t,e){e.some(function(r){try{r.__h.forEach(Ac),r.__h=r.__h.filter(function(n){return!n.__||kg(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Se.__e(n,r.__v)}}),LD&&LD(t,e)},Se.unmount=function(t){kD&&kD(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ac(n)}catch(i){e=i}}),r.__H=void 0,e&&Se.__e(e,r.__v))};var zD=typeof requestAnimationFrame=="function";function t9(t){var e,r=function(){clearTimeout(n),zD&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);zD&&(e=requestAnimationFrame(r))}function Ac(t){var e=Ln,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Ln=e}function kg(t){var e=Ln;t.__c=t.__(),Ln=e}function r9(t,e){for(var r in e)t[r]=e[r];return t}function jD(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function HD(t){this.props=t}(HD.prototype=new Hr).isPureReactComponent=!0,HD.prototype.shouldComponentUpdate=function(t,e){return jD(this.props,t)||jD(this.state,e)};var VD=Se.__b;Se.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),VD&&VD(t)};var n9=Se.__e;Se.__e=function(t,e,r,n){if(t.then){for(var i,a=e;a=a.__;)if((i=a.__c)&&i.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),i.__c(t,e)}n9(t,e,r,n)};var WD=Se.unmount;function $D(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=r9({},t)).__c!=null&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return $D(n,e,r)})),t}function GD(t,e,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return GD(n,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}function zg(){this.__u=0,this.t=null,this.__b=null}function UD(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Tc(){this.u=null,this.o=null}Se.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),WD&&WD(t)},(zg.prototype=new Hr).__c=function(t,e){var r=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var i=UD(n.__v),a=!1,o=function(){a||(a=!0,r.__R=null,i?i(s):s())};r.__R=o;var s=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=GD(u,u.__c.__P,u.__c.__O)}var f;for(n.setState({__a:n.__b=null});f=n.t.pop();)f.forceUpdate()}},l=e.__h===!0;n.__u++||l||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(o,o)},zg.prototype.componentWillUnmount=function(){this.t=[]},zg.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=$D(this.__b,r,n.__O=n.__P)}this.__b=null}var i=e.__a&&re(Rt,null,t.fallback);return i&&(i.__h=null),[re(Rt,null,e.__a?null:t.children),i]};var qD=function(t,e,r){if(++r[1]===r[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(r=t.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.u=r=r[2]}};function i9(t){return this.getChildContext=function(){return t.context},t.children}function a9(t){var e=this,r=t.i;e.componentWillUnmount=function(){ql(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),t.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,i){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),ql(re(i9,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function o9(t,e){var r=re(a9,{__v:t,i:e});return r.containerInfo=e,r}(Tc.prototype=new Hr).__a=function(t){var e=this,r=UD(e.__v),n=e.o.get(t);return n[0]++,function(i){var a=function(){e.props.revealOrder?(n.push(i),qD(e,t,n)):i()};r?r(a):a()}},Tc.prototype.render=function(t){this.u=null,this.o=new Map;var e=Ec(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.o.set(e[r],this.u=[1,0,this.u]);return t.children},Tc.prototype.componentDidUpdate=Tc.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,r){qD(t,r,e)})};var s9=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,l9=/^(?: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]/,u9=typeof document<"u",f9=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Hr.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Hr.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var YD=Se.event;function c9(){}function d9(){return this.cancelBubble}function h9(){return this.defaultPrevented}Se.event=function(t){return YD&&(t=YD(t)),t.persist=c9,t.isPropagationStopped=d9,t.isDefaultPrevented=h9,t.nativeEvent=t};var XD={configurable:!0,get:function(){return this.class}},ZD=Se.vnode;Se.vnode=function(t){var e=t.type,r=t.props,n=r;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var a in n={},r){var o=r[a];u9&&a==="children"&&e==="noscript"||a==="value"&&"defaultValue"in r&&o==null||(a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&o===!0?o="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+e)&&!f9(r.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&l9.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():o===null&&(o=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),n[a]&&(a="oninputCapture")),n[a]=o)}e=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=Ec(r.children).forEach(function(s){s.props.selected=n.value.indexOf(s.props.value)!=-1})),e=="select"&&n.defaultValue!=null&&(n.value=Ec(r.children).forEach(function(s){s.props.selected=n.multiple?n.defaultValue.indexOf(s.props.value)!=-1:n.defaultValue==s.props.value})),t.props=n,r.class!=r.className&&(XD.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",XD))}t.$$typeof=s9,ZD&&ZD(t)};var KD=Se.__r;Se.__r=function(t){KD&&KD(t),t.__c};const QD=[],jg=new Map;function JD(t){QD.push(t),jg.forEach(e=>{tS(e,t)})}function v9(t){t.isConnected&&t.getRootNode&&eS(t.getRootNode())}function eS(t){let e=jg.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const r=g9();r&&(e.nonce=r);const n=t===document?document.head:t,i=t===document?n.querySelector("script,link[rel=stylesheet],link[as=style],style"):n.firstChild;n.insertBefore(e,i)}jg.set(t,e),p9(e)}}function p9(t){for(const e of QD)tS(t,e)}function tS(t,e){const{sheet:r}=t,n=r.cssRules.length;e.split("}").forEach((i,a)=>{i=i.trim(),i&&r.insertRule(i+"}",n+a)})}let Hg;function g9(){return Hg===void 0&&(Hg=m9()),Hg}function m9(){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"&&eS(document);var y9=':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/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-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;-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)}';JD(y9);class Vg{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:r}=this;r[e]=(r[e]||0)+1,this.clearTimeout()}resume(e="",r){let{pauseDepths:n}=this;e in n&&(r?delete n[e]:(n[e]-=1,n[e]<=0&&delete n[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 b9(t){t.parentNode&&t.parentNode.removeChild(t)}function mi(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(C9(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function C9(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function _9(t,e){let r=t instanceof HTMLElement?[t]:t,n=[];for(let i=0;i<r.length;i+=1){let a=r[i].querySelectorAll(e);for(let o=0;o<a.length;o+=1)n.push(a[o])}return n}const w9=/(top|left|right|bottom|width|height)$/i;function x9(t,e){for(let r in e)rS(t,r,e[r])}function rS(t,e,r){r==null?t.style[e]="":typeof r=="number"&&w9.test(e)?t.style[e]=`${r}px`:t.style[e]=r}function D9(t){var e,r;return(r=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&r!==void 0?r:t.target}let nS=0;function Oc(){return nS+=1,"fc-dom-"+nS}function S9(t,e){return r=>{let n=mi(r.target,t);n&&e.call(n,r,n)}}function iS(t,e,r,n){let i=S9(r,n);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function E9(t,e,r,n){let i;return iS(t,"mouseover",e,(a,o)=>{if(o!==i){i=o,r(a,o);let s=l=>{i=null,n(l,o),o.removeEventListener("mouseleave",s)};o.addEventListener("mouseleave",s)}})}function aS(t){return Object.assign({onClick:t},oS(t))}function oS(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let sS=0;function Ya(){return sS+=1,String(sS)}function A9(t){let e=[],r=[],n,i;for(typeof t=="string"?r=t.split(/\s*,\s*/):typeof t=="function"?r=[t]:Array.isArray(t)&&(r=t),n=0;n<r.length;n+=1)i=r[n],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 T9(t,e,r){let n,i;for(n=0;n<r.length;n+=1)if(i=O9(t,e,r[n]),i)return i;return 0}function O9(t,e,r){return r.func?r.func(t,e):R9(t[r.field],e[r.field])*(r.order||1)}function R9(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 Wg(t,e){let r=String(t);return"000".substr(0,e-r.length)+r}function Yl(t,e,r){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((n,i,a)=>n.replace("$"+a,i||""),t):r}function $g(t){return t%1===0}function M9(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),r=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!r)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+r.getBoundingClientRect().width}const P9=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function dt(t,e){return typeof t=="string"?B9(t):typeof t=="object"&&t?lS(t):typeof t=="number"?lS({[e||"milliseconds"]:t}):null}function B9(t){let e=P9.exec(t);if(e){let r=e[1]?-1:1;return{years:0,months:0,days:r*(e[2]?parseInt(e[2],10):0),milliseconds:r*((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 lS(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)},r=t.weeks||t.week;return r&&(e.days+=r*7,e.specifiedWeeks=!0),e}function I9(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function N9(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function F9(t){return vs(t)/365}function L9(t){return vs(t)/30}function vs(t){return Xl(t)/864e5}function Xl(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Gg(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 Ui(t,e,r){if(t===e)return!0;let n=t.length,i;if(n!==e.length)return!1;for(i=0;i<n;i+=1)if(!(r?r(t[i],e[i]):t[i]===e[i]))return!1;return!0}const k9=["sun","mon","tue","wed","thu","fri","sat"];function uS(t,e){let r=Yi(t);return r[2]+=e*7,Sr(r)}function Jt(t,e){let r=Yi(t);return r[2]+=e,Sr(r)}function qi(t,e){let r=Yi(t);return r[6]+=e,Sr(r)}function z9(t,e){return ps(t,e)/7}function ps(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function j9(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function H9(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function V9(t,e){return(e.valueOf()-t.valueOf())/1e3}function W9(t,e){let r=xt(t),n=xt(e);return{years:0,months:0,days:Math.round(ps(r,n)),milliseconds:e.valueOf()-n.valueOf()-(t.valueOf()-r.valueOf())}}function $9(t,e){let r=Rc(t,e);return r!==null&&r%7===0?r/7:null}function Rc(t,e){return Xi(t)===Xi(e)?Math.round(ps(t,e)):null}function xt(t){return Sr([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function G9(t){return Sr([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function U9(t){return Sr([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function q9(t){return Sr([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function Y9(t,e,r){let n=t.getUTCFullYear(),i=Ug(t,n,e,r);if(i<1)return Ug(t,n-1,e,r);let a=Ug(t,n+1,e,r);return a>=1?Math.min(i,a):i}function Ug(t,e,r,n){let i=Sr([e,0,1+X9(e,r,n)]),a=xt(t),o=Math.round(ps(i,a));return Math.floor(o/7)+1}function X9(t,e,r){let n=7+e-r;return-((7+Sr([t,0,n]).getUTCDay()-e)%7)+n-1}function fS(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 Yi(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Sr(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function dS(t){return!isNaN(t.valueOf())}function Xi(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function Z9(t,e,r=!1){let n=t.toISOString();return n=n.replace(".000",""),r&&(n=n.replace("T00:00:00Z","")),n.length>10&&(e==null?n=n.replace("Z",""):e!==0&&(n=n.replace("Z",Yg(e,!0)))),n}function qg(t){return t.toISOString().replace(/T.*$/,"")}function K9(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function Yg(t,e=!1){let r=t<0?"-":"+",n=Math.abs(t),i=Math.floor(n/60),a=Math.round(n%60);return e?`${r+Wg(i,2)}:${Wg(a,2)}`:`GMT${r}${i}${a?`:${Wg(a,2)}`:""}`}function it(t,e,r){let n,i;return function(...a){if(!n)i=t.apply(this,a);else if(!Ui(n,a)){let o=t.apply(this,a);(!e||!e(o,i))&&(i=o)}return n=a,i}}function Mc(t,e,r){let n,i;return a=>(n?kn(n,a)||(i=t.call(this,a)):i=t.call(this,a),n=a,i)}const hS={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Pc={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Bc=/\s*([ap])\.?m\.?/i,Q9=/,/g,J9=/\s+/g,e7=/\u200e/g,t7=/UTC|GMT/;class r7{constructor(e){let r={},n={},i=0;for(let a in e)a in hS?(n[a]=e[a],i=Math.max(hS[a],i)):(r[a]=e[a],a in Pc&&(i=Math.max(Pc[a],i)));this.standardDateProps=r,this.extendedSettings=n,this.severity=i,this.buildFormattingFunc=it(vS)}format(e,r){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,r)(e)}formatRange(e,r,n,i){let{standardDateProps:a,extendedSettings:o}=this,s=l7(e.marker,r.marker,n.calendarSystem);if(!s)return this.format(e,n);let l=s;l>1&&(a.year==="numeric"||a.year==="2-digit")&&(a.month==="numeric"||a.month==="2-digit")&&(a.day==="numeric"||a.day==="2-digit")&&(l=1);let u=this.format(e,n),f=this.format(r,n);if(u===f)return u;let c=u7(a,l),d=vS(c,o,n),h=d(e),v=d(r),g=f7(u,h,f,v),p=o.separator||i||n.defaultSeparator||"";return g?g.before+h+p+v+g.after:u+p+f}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 vS(t,e,r){let n=Object.keys(t).length;return n===1&&t.timeZoneName==="short"?i=>Yg(i.timeZoneOffset):n===0&&e.week?i=>s7(r.computeWeekNumber(i.marker),r.weekText,r.weekTextLong,r.locale,e.week):n7(t,e,r)}function n7(t,e,r){t=Object.assign({},t),e=Object.assign({},e),i7(t,e),t.timeZone="UTC";let n=new Intl.DateTimeFormat(r.locale.codes,t),i;if(e.omitZeroMinute){let a=Object.assign({},t);delete a.minute,i=new Intl.DateTimeFormat(r.locale.codes,a)}return a=>{let{marker:o}=a,s;i&&!o.getUTCMinutes()?s=i:s=n;let l=s.format(o);return a7(l,a,t,e,r)}}function i7(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 a7(t,e,r,n,i){return t=t.replace(e7,""),r.timeZoneName==="short"&&(t=o7(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Yg(e.timeZoneOffset))),n.omitCommas&&(t=t.replace(Q9,"").trim()),n.omitZeroMinute&&(t=t.replace(":00","")),n.meridiem===!1?t=t.replace(Bc,"").trim():n.meridiem==="narrow"?t=t.replace(Bc,(a,o)=>o.toLocaleLowerCase()):n.meridiem==="short"?t=t.replace(Bc,(a,o)=>`${o.toLocaleLowerCase()}m`):n.meridiem==="lowercase"&&(t=t.replace(Bc,a=>a.toLocaleLowerCase())),t=t.replace(J9," "),t=t.trim(),t}function o7(t,e){let r=!1;return t=t.replace(t7,()=>(r=!0,e)),r||(t+=` ${e}`),t}function s7(t,e,r,n,i){let a=[];return i==="long"?a.push(r):(i==="short"||i==="narrow")&&a.push(e),(i==="long"||i==="short")&&a.push(" "),a.push(n.simpleNumberFormat.format(t)),n.options.direction==="rtl"&&a.reverse(),a.join("")}function l7(t,e,r){return r.getMarkerYear(t)!==r.getMarkerYear(e)?5:r.getMarkerMonth(t)!==r.getMarkerMonth(e)?4:r.getMarkerDay(t)!==r.getMarkerDay(e)?2:Xi(t)!==Xi(e)?1:0}function u7(t,e){let r={};for(let n in t)(!(n in Pc)||Pc[n]<=e)&&(r[n]=t[n]);return r}function f7(t,e,r,n){let i=0;for(;i<t.length;){let a=t.indexOf(e,i);if(a===-1)break;let o=t.substr(0,a);i=a+e.length;let s=t.substr(i),l=0;for(;l<r.length;){let u=r.indexOf(n,l);if(u===-1)break;let f=r.substr(0,u);l=u+n.length;let c=r.substr(l);if(o===f&&s===c)return{before:o,after:s}}}return null}function pS(t,e){let r=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:r,year:r[0],month:r[1],day:r[2],hour:r[3],minute:r[4],second:r[5],millisecond:r[6]}}function Ic(t,e,r,n){let i=pS(t,r.calendarSystem),a=e?pS(e,r.calendarSystem):null;return{date:i,start:i,end:a,timeZone:r.timeZone,localeCodes:r.locale.codes,defaultSeparator:n||r.defaultSeparator}}class c7{constructor(e){this.cmdStr=e}format(e,r,n){return r.cmdFormatter(this.cmdStr,Ic(e,null,r,n))}formatRange(e,r,n,i){return n.cmdFormatter(this.cmdStr,Ic(e,r,n,i))}}class d7{constructor(e){this.func=e}format(e,r,n){return this.func(Ic(e,null,r,n))}formatRange(e,r,n,i){return this.func(Ic(e,r,n,i))}}function $t(t){return typeof t=="object"&&t?new r7(t):typeof t=="string"?new c7(t):typeof t=="function"?new d7(t):null}const gS={navLinkDayClick:ne,navLinkWeekClick:ne,duration:dt,bootstrapFontAwesome:ne,buttonIcons:ne,customButtons:ne,defaultAllDayEventDuration:dt,defaultTimedEventDuration:dt,nextDayThreshold:dt,scrollTime:dt,scrollTimeReset:Boolean,slotMinTime:dt,slotMaxTime:dt,dayPopoverFormat:$t,slotDuration:dt,snapDuration:dt,headerToolbar:ne,footerToolbar:ne,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:$t,dayHeaderClassNames:ne,dayHeaderContent:ne,dayHeaderDidMount:ne,dayHeaderWillUnmount:ne,dayCellClassNames:ne,dayCellContent:ne,dayCellDidMount:ne,dayCellWillUnmount:ne,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:ne,weekNumbers:Boolean,weekNumberClassNames:ne,weekNumberContent:ne,weekNumberDidMount:ne,weekNumberWillUnmount:ne,editable:Boolean,viewClassNames:ne,viewDidMount:ne,viewWillUnmount:ne,nowIndicator:Boolean,nowIndicatorClassNames:ne,nowIndicatorContent:ne,nowIndicatorDidMount:ne,nowIndicatorWillUnmount:ne,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:ne,locale:ne,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:ne,eventOrder:A9,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:ne,contentHeight:ne,direction:String,weekNumberFormat:$t,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:ne,initialDate:ne,now:ne,eventDataTransform:ne,stickyHeaderDates:ne,stickyFooterScrollbar:ne,viewHeight:ne,defaultAllDay:Boolean,eventSourceFailure:ne,eventSourceSuccess:ne,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:ne,eventConstraint:ne,eventAllow:ne,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:ne,eventContent:ne,eventDidMount:ne,eventWillUnmount:ne,selectConstraint:ne,selectOverlap:ne,selectAllow:ne,droppable:Boolean,unselectCancel:String,slotLabelFormat:ne,slotLaneClassNames:ne,slotLaneContent:ne,slotLaneDidMount:ne,slotLaneWillUnmount:ne,slotLabelClassNames:ne,slotLabelContent:ne,slotLabelDidMount:ne,slotLabelWillUnmount:ne,dayMaxEvents:ne,dayMaxEventRows:ne,dayMinWidth:Number,slotLabelInterval:dt,allDayText:String,allDayClassNames:ne,allDayContent:ne,allDayDidMount:ne,allDayWillUnmount:ne,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:$t,rerenderDelay:Number,moreLinkText:ne,moreLinkHint:ne,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:ne,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:dt,hiddenDays:ne,fixedWeekCount:Boolean,validRange:ne,visibleRange:ne,titleFormat:ne,eventInteractive:Boolean,noEventsText:String,viewHint:ne,navLinkHint:ne,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:ne,moreLinkClassNames:ne,moreLinkContent:ne,moreLinkDidMount:ne,moreLinkWillUnmount:ne,monthStartFormat:$t,handleCustomRendering:ne,customRenderingMetaMap:ne,customRenderingReplaces:Boolean},Zl={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"}},mS={datesSet:ne,eventsSet:ne,eventAdd:ne,eventChange:ne,eventRemove:ne,windowResize:ne,eventClick:ne,eventMouseEnter:ne,eventMouseLeave:ne,select:ne,unselect:ne,loading:ne,_unmount:ne,_beforeprint:ne,_afterprint:ne,_noEventDrop:ne,_noEventResize:ne,_resize:ne,_scrollRequest:ne},yS={buttonText:ne,buttonHints:ne,views:ne,plugins:ne,initialEvents:ne,events:ne,eventSources:ne},Xa={headerToolbar:Za,footerToolbar:Za,buttonText:Za,buttonHints:Za,buttonIcons:Za,dateIncrement:Za,plugins:Nc,events:Nc,eventSources:Nc,resources:Nc};function Za(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?kn(t,e):t===e}function Nc(t,e){return Array.isArray(t)&&Array.isArray(e)?Ui(t,e):t===e}const h7={type:String,component:ne,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:ne,usesMinMaxTime:Boolean,classNames:ne,content:ne,didMount:ne,willUnmount:ne};function Xg(t){return Kg(t,Xa)}function Zg(t,e){let r={},n={};for(let i in e)i in t&&(r[i]=e[i](t[i]));for(let i in t)i in e||(n[i]=t[i]);return{refined:r,extra:n}}function ne(t){return t}const{hasOwnProperty:Fc}=Object.prototype;function Kg(t,e){let r={};if(e){for(let n in e)if(e[n]===Za){let i=[];for(let a=t.length-1;a>=0;a-=1){let o=t[a][n];if(typeof o=="object"&&o)i.unshift(o);else if(o!==void 0){r[n]=o;break}}i.length&&(r[n]=Kg(i))}}for(let n=t.length-1;n>=0;n-=1){let i=t[n];for(let a in i)a in r||(r[a]=i[a])}return r}function gs(t,e){let r={};for(let n in t)e(t[n],n)&&(r[n]=t[n]);return r}function Kl(t,e){let r={};for(let n in t)r[n]=e(t[n],n);return r}function bS(t){let e={};for(let r of t)e[r]=!0;return e}function Qg(t){let e=[];for(let r in t)e.push(t[r]);return e}function kn(t,e){if(t===e)return!0;for(let r in t)if(Fc.call(t,r)&&!(r in e))return!1;for(let r in e)if(Fc.call(e,r)&&t[r]!==e[r])return!1;return!0}const v7=/^on[A-Z]/;function p7(t,e){const r=Jg(t,e);for(let n of r)if(!v7.test(n))return!1;return!0}function Jg(t,e){let r=[];for(let n in t)Fc.call(t,n)&&(n in e||r.push(n));for(let n in e)Fc.call(e,n)&&t[n]!==e[n]&&r.push(n);return r}function em(t,e,r={}){if(t===e)return!0;for(let n in e)if(!(n in t&&g7(t[n],e[n],r[n])))return!1;for(let n in t)if(!(n in e))return!1;return!0}function g7(t,e,r){return t===e||r===!0?!0:r?r(t,e):!1}function m7(t,e=0,r,n=1){let i=[];r==null&&(r=Object.keys(t).length);for(let a=e;a<r;a+=n){let o=t[a];o!==void 0&&i.push(o)}return i}let CS={};function y7(t,e){CS[t]=e}function b7(t){return new CS[t]}class C7{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Sr(e)}markerToArray(e){return Yi(e)}}y7("gregory",C7);const _7=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function w7(t){let e=_7.exec(t);if(e){let r=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(dS(r)){let n=null;return e[13]&&(n=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:r,isTimeUnspecified:!e[6],timeZoneOffset:n}}}return null}class x7{constructor(e){let r=this.timeZone=e.timeZone,n=r!=="local"&&r!=="UTC";e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(r)),this.canComputeOffset=!!(!n||this.namedTimeZoneImpl),this.calendarSystem=b7(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 r=this.createMarkerMeta(e);return r===null?null:r.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Sr(fS(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let r=null;return typeof e=="number"?r=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(r=this.timestampToMarker(e))):Array.isArray(e)&&(r=Sr(e)),r===null||!dS(r)?null:{marker:r,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let r=w7(e);if(r===null)return null;let{marker:n}=r,i=null;return r.timeZoneOffset!==null&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-r.timeZoneOffset*60*1e3):i=r.timeZoneOffset),{marker:n,isTimeUnspecified:r.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,r){let n=this.calendarSystem.markerToArray(e);return n[0]+=r.years,n[1]+=r.months,n[2]+=r.days,n[6]+=r.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,r){let n=this.calendarSystem.markerToArray(e);return n[0]-=r.years,n[1]-=r.months,n[2]-=r.days,n[6]-=r.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,r){let n=this.calendarSystem.markerToArray(e);return n[0]+=r,this.calendarSystem.arrayToMarker(n)}addMonths(e,r){let n=this.calendarSystem.markerToArray(e);return n[1]+=r,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,r){let{calendarSystem:n}=this;return Xi(e)===Xi(r)&&n.getMarkerDay(e)===n.getMarkerDay(r)&&n.getMarkerMonth(e)===n.getMarkerMonth(r)?n.getMarkerYear(r)-n.getMarkerYear(e):null}diffWholeMonths(e,r){let{calendarSystem:n}=this;return Xi(e)===Xi(r)&&n.getMarkerDay(e)===n.getMarkerDay(r)?n.getMarkerMonth(r)-n.getMarkerMonth(e)+(n.getMarkerYear(r)-n.getMarkerYear(e))*12:null}greatestWholeUnit(e,r){let n=this.diffWholeYears(e,r);return n!==null?{unit:"year",value:n}:(n=this.diffWholeMonths(e,r),n!==null?{unit:"month",value:n}:(n=$9(e,r),n!==null?{unit:"week",value:n}:(n=Rc(e,r),n!==null?{unit:"day",value:n}:(n=j9(e,r),$g(n)?{unit:"hour",value:n}:(n=H9(e,r),$g(n)?{unit:"minute",value:n}:(n=V9(e,r),$g(n)?{unit:"second",value:n}:{unit:"millisecond",value:r.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,r,n){let i;return n.years&&(i=this.diffWholeYears(e,r),i!==null)?i/F9(n):n.months&&(i=this.diffWholeMonths(e,r),i!==null)?i/L9(n):n.days&&(i=Rc(e,r),i!==null)?i/vs(n):(r.valueOf()-e.valueOf())/Xl(n)}startOf(e,r){return r==="year"?this.startOfYear(e):r==="month"?this.startOfMonth(e):r==="week"?this.startOfWeek(e):r==="day"?xt(e):r==="hour"?G9(e):r==="minute"?U9(e):r==="second"?q9(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)):Y9(e,this.weekDow,this.weekDoy)}format(e,r,n={}){return r.format({marker:e,timeZoneOffset:n.forcedTzo!=null?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,r,n,i={}){return i.isEndExclusive&&(r=qi(r,-1)),n.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:r,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(r)},this,i.defaultSeparator)}formatIso(e,r={}){let n=null;return r.omitTimeZoneOffset||(r.forcedTzo!=null?n=r.forcedTzo:n=this.offsetForMarker(e)),Z9(e,n,r.omitTime)}timestampToMarker(e){return this.timeZone==="local"?Sr(fS(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):Sr(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-cS(Yi(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Yi(e)):null}toDate(e,r){return this.timeZone==="local"?cS(Yi(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Yi(e))*1e3*60):new Date(e.valueOf()-(r||0))}}class Ql{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let r,n;if(typeof e=="object"&&e){r=Object.assign({},this.iconClasses);for(n in e)r[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=r}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let r=this.iconOverridePrefix;return r&&e.indexOf(r)!==0&&(e=r+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,r){let n;return r&&this.rtlIconClasses?n=this.rtlIconClasses[e]||this.iconClasses[e]:n=this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let r;return this.iconOverrideCustomButtonOption&&(r=e[this.iconOverrideCustomButtonOption],r)?`${this.baseIconClass} ${this.applyIconOverridePrefix(r)}`:""}}Ql.prototype.classes={},Ql.prototype.iconClasses={},Ql.prototype.baseIconClass="",Ql.prototype.iconOverridePrefix="";function Lc(t){t();let e=Se.debounceRendering,r=[];function n(i){r.push(i)}for(Se.debounceRendering=n,ql(re(D7,{}),document.createElement("div"));r.length;)r.shift()();Se.debounceRendering=e}class D7 extends Hr{render(){return re("div",{})}componentDidMount(){this.setState({})}}function _S(t){let e=Jj(t),r=e.Provider;return e.Provider=function(){let n=!this.getChildContext,i=r.apply(this,arguments);if(n){let a=[];this.shouldComponentUpdate=o=>{this.props.value!==o.value&&a.forEach(s=>{s.context=o.value,s.forceUpdate()})},this.sub=o=>{a.push(o);let s=o.componentWillUnmount;o.componentWillUnmount=()=>{a.splice(a.indexOf(o),1),s&&s.call(o)}}}return i},e}class S7{constructor(e,r,n,i){this.execFunc=e,this.emitter=r,this.scrollTime=n,this.scrollTimeReset=i,this.handleScrollRequest=a=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},a),this.drain()},r.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 Ka=_S({});function E7(t,e,r,n,i,a,o,s,l,u,f,c,d){return{dateEnv:i,options:r,pluginHooks:o,emitter:u,dispatch:s,getCurrentData:l,calendarApi:f,viewSpec:t,viewApi:e,dateProfileGenerator:n,theme:a,isRtl:r.direction==="rtl",addResizeHandler(h){u.on("_resize",h)},removeResizeHandler(h){u.off("_resize",h)},createScrollResponder(h){return new S7(h,u,dt(r.scrollTime),r.scrollTimeReset)},registerInteractiveComponent:c,unregisterInteractiveComponent:d}}class Qa extends Hr{shouldComponentUpdate(e,r){return this.debug&&console.log(Jg(e,this.props),Jg(r,this.state)),!em(this.props,e,this.propEquality)||!em(this.state,r,this.stateEquality)}safeSetState(e){em(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Qa.addPropsEquality=A7,Qa.addStateEquality=T7,Qa.contextType=Ka,Qa.prototype.propEquality={},Qa.prototype.stateEquality={};class Dt extends Qa{}Dt.contextType=Ka;function A7(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function T7(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function yi(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class tm extends Dt{constructor(){super(...arguments),this.id=Ya(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:r}=this.context,{generatorName:n}=this.props;(!r.customRenderingReplaces||!rm(n,r))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&yi(this.props.elRef,e)}}render(){const{props:e,context:r}=this,{options:n}=r,{customGenerator:i,defaultGenerator:a,renderProps:o}=e,s=wS(e,[],this.handleEl);let l=!1,u,f=[],c;if(i!=null){const d=typeof i=="function"?i(o,re):i;if(d===!0)l=!0;else{const h=d&&typeof d=="object";h&&"html"in d?s.dangerouslySetInnerHTML={__html:d.html}:h&&"domNodes"in d?f=Array.prototype.slice.call(d.domNodes):(h?pD(d):typeof d!="function")?u=d:c=d}}else l=!rm(e.generatorName,n);return l&&a&&(u=a(o)),this.queuedDomNodes=f,this.currentGeneratorMeta=c,re(e.elTag,s,u)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var r;const{props:n,context:i}=this,{handleCustomRendering:a,customRenderingMetaMap:o}=i.options;if(a){const s=(r=this.currentGeneratorMeta)!==null&&r!==void 0?r:o==null?void 0:o[n.generatorName];s&&a(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:s},n),{elClasses:(n.elClasses||[]).filter(O7)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:r}=this,n=this.base;if(!Ui(e,r)){r.forEach(b9);for(let i of e)n.appendChild(i);this.currentDomNodes=e}}}tm.addPropsEquality({elClasses:Ui,elStyle:kn,elAttrs:p7,renderProps:kn});function rm(t,e){var r;return!!(e.handleCustomRendering&&t&&(!((r=e.customRenderingMetaMap)===null||r===void 0)&&r[t]))}function wS(t,e,r){const n=Object.assign(Object.assign({},t.elAttrs),{ref:r});return(t.elClasses||e)&&(n.className=(t.elClasses||[]).concat(e||[]).concat(n.className||[]).filter(Boolean).join(" ")),t.elStyle&&(n.style=t.elStyle),n}function O7(t){return!!t}const xS=_S(0);class bi extends Hr{constructor(){super(...arguments),this.InnerContent=R7.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(yi(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,r=M7(e.classNameGenerator,e.renderProps);if(e.children){const n=wS(e,r,this.handleEl),i=e.children(this.InnerContent,e.renderProps,n);return e.elTag?re(e.elTag,n,i):i}else return re(tm,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(r),renderId:this.context}))}componentDidMount(){var e,r;this.el?(r=(e=this.props).didMount)===null||r===void 0||r.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,r;(r=(e=this.props).willUnmount)===null||r===void 0||r.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}bi.contextType=xS;function R7(t,e){const r=t.props;return re(tm,Object.assign({renderProps:r.renderProps,generatorName:r.generatorName,customGenerator:r.customGenerator,defaultGenerator:r.defaultGenerator,renderId:t.context},e))}function M7(t,e){const r=typeof t=="function"?t(e):t||[];return typeof r=="string"?[r]:r}class DS extends Dt{render(){let{props:e,context:r}=this,{options:n}=r,i={view:r.viewApi};return re(bi,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...SS(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),()=>e.children)}}function SS(t){return[`fc-${t.type}-view`,"fc-view"]}function P7(t,e){let r=null,n=null;return t.start&&(r=e.createMarker(t.start)),t.end&&(n=e.createMarker(t.end)),!r&&!n||r&&n&&n<r?null:{start:r,end:n}}function ES(t,e){let r=[],{start:n}=e,i,a;for(t.sort(B7),i=0;i<t.length;i+=1)a=t[i],a.start>n&&r.push({start:n,end:a.start}),a.end>n&&(n=a.end);return n<e.end&&r.push({start:n,end:e.end}),r}function B7(t,e){return t.start.valueOf()-e.start.valueOf()}function ms(t,e){let{start:r,end:n}=t,i=null;return e.start!==null&&(r===null?r=e.start:r=new Date(Math.max(r.valueOf(),e.start.valueOf()))),e.end!=null&&(n===null?n=e.end:n=new Date(Math.min(n.valueOf(),e.end.valueOf()))),(r===null||n===null||r<n)&&(i={start:r,end:n}),i}function I7(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function Zi(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function N7(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 AS(t){let e=Math.floor(ps(t.start,t.end))||1,r=xt(t.start),n=Jt(r,e);return{start:r,end:n}}function TS(t,e=dt(0)){let r=null,n=null;if(t.end){n=xt(t.end);let i=t.end.valueOf()-n.valueOf();i&&i>=Xl(e)&&(n=Jt(n,1))}return t.start&&(r=xt(t.start),n&&n<=r&&(n=Jt(r,1))),{start:r,end:n}}function kc(t,e,r,n){return n==="year"?dt(r.diffWholeYears(t,e),"year"):n==="month"?dt(r.diffWholeMonths(t,e),"month"):W9(t,e)}function F7(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function L7(t,e){let r=t.initialDate;return r!=null?e.createMarker(r):Jl(t.now,e)}function Jl(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class OS{constructor(e){this.props=e,this.nowDate=Jl(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,r,n){let{dateEnv:i}=this.props,a=i.subtract(i.startOf(r,e.currentRangeUnit),e.dateIncrement);return this.build(a,-1,n)}buildNext(e,r,n){let{dateEnv:i}=this.props,a=i.add(i.startOf(r,e.currentRangeUnit),e.dateIncrement);return this.build(a,1,n)}build(e,r,n=!0){let{props:i}=this,a,o,s,l,u,f;return a=this.buildValidRange(),a=this.trimHiddenDays(a),n&&(e=N7(e,a)),o=this.buildCurrentRangeInfo(e,r),s=/^(year|month|week|day)$/.test(o.unit),l=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,s),l=this.trimHiddenDays(l),u=l,i.showNonCurrentDates||(u=ms(u,o.range)),u=this.adjustActiveRange(u),u=ms(u,a),f=I7(o.range,a),Zi(l,e)||(e=l.start),{currentDate:e,validRange:a,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:s,activeRange:u,renderRange:l,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:f,dateIncrement:this.buildDateIncrement(o.duration)}}buildValidRange(){let e=this.props.validRangeInput,r=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(r)||{start:null,end:null}}buildCurrentRangeInfo(e,r){let{props:n}=this,i=null,a=null,o=null,s;return n.duration?(i=n.duration,a=n.durationUnit,o=this.buildRangeFromDuration(e,r,i,a)):(s=this.props.dayCount)?(a="day",o=this.buildRangeFromDayCount(e,r,s)):(o=this.buildCustomVisibleRange(e))?a=n.dateEnv.greatestWholeUnit(o.start,o.end).unit:(i=this.getFallbackDuration(),a=Gg(i).unit,o=this.buildRangeFromDuration(e,r,i,a)),{duration:i,unit:a,range:o}}getFallbackDuration(){return dt({day:1})}adjustActiveRange(e){let{dateEnv:r,usesMinMaxTime:n,slotMinTime:i,slotMaxTime:a}=this.props,{start:o,end:s}=e;return n&&(vs(i)<0&&(o=xt(o),o=r.add(o,i)),vs(a)>1&&(s=xt(s),s=Jt(s,-1),s=r.add(s,a))),{start:o,end:s}}buildRangeFromDuration(e,r,n,i){let{dateEnv:a,dateAlignment:o}=this.props,s,l,u;if(!o){let{dateIncrement:c}=this.props;c&&Xl(c)<Xl(n)?o=Gg(c).unit:o=i}vs(n)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,r),s=xt(s));function f(){s=a.startOf(e,o),l=a.add(s,n),u={start:s,end:l}}return f(),this.trimHiddenDays(u)||(e=this.skipHiddenDays(e,r),f()),u}buildRangeFromDayCount(e,r,n){let{dateEnv:i,dateAlignment:a}=this.props,o=0,s=e,l;a&&(s=i.startOf(s,a)),s=xt(s),s=this.skipHiddenDays(s,r),l=s;do l=Jt(l,1),this.isHiddenDay(l)||(o+=1);while(o<n);return{start:s,end:l}}buildCustomVisibleRange(e){let{props:r}=this,n=r.visibleRangeInput,i=typeof n=="function"?n.call(r.calendarApi,r.dateEnv.toDate(e)):n,a=this.refineRange(i);return a&&(a.start==null||a.end==null)?null:a}buildRenderRange(e,r,n){return e}buildDateIncrement(e){let{dateIncrement:r}=this.props,n;return r||((n=this.props.dateAlignment)?dt(1,n):e||dt({days:1}))}refineRange(e){if(e){let r=P7(e,this.props.dateEnv);return r&&(r=TS(r)),r}return null}initHiddenDays(){let e=this.props.hiddenDays||[],r=[],n=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(r[i]=e.indexOf(i)!==-1)||(n+=1);if(!n)throw new Error("invalid hiddenDays");this.isHiddenDayHash=r}trimHiddenDays(e){let{start:r,end:n}=e;return r&&(r=this.skipHiddenDays(r)),n&&(n=this.skipHiddenDays(n,-1,!0)),r==null||n==null||r<n?{start:r,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,r=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?r:0)+7)%7];)e=Jt(e,r);return e}}function nm(t,e,r,n){return{instanceId:Ya(),defId:t,range:e,forcedStartTzo:r??null,forcedEndTzo:n??null}}function k7(t,e,r,n){for(let i=0;i<n.length;i+=1){let a=n[i].parse(t,r);if(a){let{allDay:o}=t;return o==null&&(o=e,o==null&&(o=a.allDayGuess,o==null&&(o=!1))),{allDay:o,duration:a.duration,typeData:a.typeData,typeId:i}}}return null}function eu(t,e,r){let{dateEnv:n,pluginHooks:i,options:a}=r,{defs:o,instances:s}=t;s=gs(s,l=>!o[l.defId].recurringDef);for(let l in o){let u=o[l];if(u.recurringDef){let{duration:f}=u.recurringDef;f||(f=u.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration);let c=z7(u,f,e,n,i.recurringTypes);for(let d of c){let h=nm(l,{start:d,end:n.add(d,f)});s[h.instanceId]=h}}}return{defs:o,instances:s}}function z7(t,e,r,n,i){let o=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:n.subtract(r.start,e),end:r.end},n);return t.allDay&&(o=o.map(xt)),o}const zc={id:String,groupId:String,title:String,url:String,interactive:Boolean},RS={start:ne,end:ne,date:ne,allDay:Boolean},j7=Object.assign(Object.assign(Object.assign({},zc),RS),{extendedProps:ne});function MS(t,e,r,n,i=im(r),a,o){let{refined:s,extra:l}=PS(t,r,i),u=V7(e,r),f=k7(s,u,r.dateEnv,r.pluginHooks.recurringTypes);if(f){let d=am(s,l,e?e.sourceId:"",f.allDay,!!f.duration,r,a);return d.recurringDef={typeId:f.typeId,typeData:f.typeData,duration:f.duration},{def:d,instance:null}}let c=H7(s,u,r,n);if(c){let d=am(s,l,e?e.sourceId:"",c.allDay,c.hasEnd,r,a),h=nm(d.defId,c.range,c.forcedStartTzo,c.forcedEndTzo);return o&&d.publicId&&o[d.publicId]&&(h.instanceId=o[d.publicId]),{def:d,instance:h}}return null}function PS(t,e,r=im(e)){return Zg(t,r)}function im(t){return Object.assign(Object.assign(Object.assign({},jc),j7),t.pluginHooks.eventRefiners)}function am(t,e,r,n,i,a,o){let s={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(o&&t.id?o[t.id]:"")||Ya(),sourceId:r,allDay:n,hasEnd:i,interactive:t.interactive,ui:Hc(t,a),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let l of a.pluginHooks.eventDefMemberAdders)Object.assign(s,l(t));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function H7(t,e,r,n){let{allDay:i}=t,a,o=null,s=!1,l,u=null,f=t.start!=null?t.start:t.date;if(a=r.dateEnv.createMarkerMeta(f),a)o=a.marker;else if(!n)return null;return t.end!=null&&(l=r.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!a||a.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),i&&o&&(o=xt(o)),l&&(u=l.marker,i&&(u=xt(u)),o&&u<=o&&(u=null)),u?s=!0:n||(s=r.options.forceEventDuration||!1,u=r.dateEnv.add(o,i?r.options.defaultAllDayEventDuration:r.options.defaultTimedEventDuration)),{allDay:i,hasEnd:s,range:{start:o,end:u},forcedStartTzo:a?a.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function V7(t,e){let r=null;return t&&(r=t.defaultAllDay),r==null&&(r=e.options.defaultAllDay),r}function tu(t,e,r,n,i,a){let o=Ja(),s=im(r);for(let l of t){let u=MS(l,e,r,n,s,i,a);u&&om(u,o)}return o}function om(t,e=Ja()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function W7(t,e){let r=t.instances[e];if(r){let n=t.defs[r.defId],i=lm(t,a=>$7(n,a));return i.defs[n.defId]=n,i.instances[r.instanceId]=r,i}return Ja()}function $7(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function Ja(){return{defs:{},instances:{}}}function sm(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function lm(t,e){let r=gs(t.defs,e),n=gs(t.instances,i=>r[i.defId]);return{defs:r,instances:n}}function G7(t,e){let{defs:r,instances:n}=t,i={},a={};for(let o in r)e.defs[o]||(i[o]=r[o]);for(let o in n)!e.instances[o]&&i[n[o].defId]&&(a[o]=n[o]);return{defs:i,instances:a}}function U7(t,e){return Array.isArray(t)?tu(t,null,e,!0):typeof t=="object"&&t?tu([t],null,e,!0):t!=null?String(t):null}function BS(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const jc={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:ne,overlap:ne,allow:ne,className:BS,classNames:BS,color:String,backgroundColor:String,borderColor:String,textColor:String},q7={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Hc(t,e){let r=U7(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:r!=null?[r]:[],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 Y7(t){return t.reduce(X7,q7)}function X7(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 Z7={id:String,defaultAllDay:Boolean,url:String,format:String,events:ne,eventDataTransform:ne,success:ne,failure:ne};function IS(t,e,r=NS(e)){let n;if(typeof t=="string"?n={url:t}:typeof t=="function"||Array.isArray(t)?n={events:t}:typeof t=="object"&&t&&(n=t),n){let{refined:i,extra:a}=Zg(n,r),o=K7(i,e);if(o)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:Ya(),sourceDefId:o.sourceDefId,meta:o.meta,ui:Hc(i,e),extendedProps:a}}return null}function NS(t){return Object.assign(Object.assign(Object.assign({},jc),Z7),t.pluginHooks.eventSourceRefiners)}function K7(t,e){let r=e.pluginHooks.eventSourceDefs;for(let n=r.length-1;n>=0;n-=1){let a=r[n].parseMeta(t);if(a)return{sourceDefId:n,meta:a}}return null}function Q7(t,e,r,n,i){switch(e.type){case"RECEIVE_EVENTS":return J7(t,r[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return eH(t,r[e.sourceId],e.rawEvents,n.activeRange,i);case"ADD_EVENTS":return tH(t,e.eventStore,n?n.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return sm(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?eu(t,n.activeRange,i):t;case"REMOVE_EVENTS":return G7(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return zS(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return lm(t,a=>!a.sourceId);case"REMOVE_ALL_EVENTS":return Ja();default:return t}}function J7(t,e,r,n,i,a){if(e&&r===e.latestFetchId){let o=tu(FS(i,e,a),e,a);return n&&(o=eu(o,n,a)),sm(zS(t,e.sourceId),o)}return t}function eH(t,e,r,n,i){const{defIdMap:a,instanceIdMap:o}=rH(t);let s=tu(FS(r,e,i),e,i,!1,a,o);return eu(s,n,i)}function FS(t,e,r){let n=r.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=LS(t,i)),n&&(t=LS(t,n)),t}function LS(t,e){let r;if(!e)r=t;else{r=[];for(let n of t){let i=e(n);i?r.push(i):i==null&&r.push(n)}}return r}function tH(t,e,r,n){return r&&(e=eu(e,r,n)),sm(t,e)}function kS(t,e,r){let{defs:n}=t,i=Kl(t.instances,a=>n[a.defId].allDay?a:Object.assign(Object.assign({},a),{range:{start:r.createMarker(e.toDate(a.range.start,a.forcedStartTzo)),end:r.createMarker(e.toDate(a.range.end,a.forcedEndTzo))},forcedStartTzo:r.canComputeOffset?null:a.forcedStartTzo,forcedEndTzo:r.canComputeOffset?null:a.forcedEndTzo}));return{defs:n,instances:i}}function zS(t,e){return lm(t,r=>r.sourceId!==e)}function rH(t){const{defs:e,instances:r}=t,n={},i={};for(let a in e){const o=e[a],{publicId:s}=o;s&&(n[s]=a)}for(let a in r){const o=r[a],s=e[o.defId],{publicId:l}=s;l&&(i[l]=a)}return{defIdMap:n,instanceIdMap:i}}class nH{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,r){iH(this.handlers,e,r)}off(e,r){aH(this.handlers,e,r)}trigger(e,...r){let n=this.handlers[e]||[],i=this.options&&this.options[e],a=[].concat(i||[],n);for(let o of a)o.apply(this.thisContext,r)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function iH(t,e,r){(t[e]||(t[e]=[])).push(r)}function aH(t,e,r){r?t[e]&&(t[e]=t[e].filter(n=>n!==r)):delete t[e]}const oH={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function sH(t,e){return tu(lH(t),null,e)}function lH(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(r=>r.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(r=>Object.assign(Object.assign({},oH),r)),e}function uH(t,e,r){r.emitter.trigger("select",Object.assign(Object.assign({},cH(t,r)),{jsEvent:null,view:r.viewApi||r.calendarApi.view}))}function fH(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function cH(t,e){let r={};for(let n of e.pluginHooks.dateSpanTransforms)Object.assign(r,n(t,e));return Object.assign(r,SH(t,e.dateEnv)),r}function jS(t,e,r){let{dateEnv:n,options:i}=r,a=e;return t?(a=xt(a),a=n.add(a,i.defaultAllDayEventDuration)):a=n.add(a,i.defaultTimedEventDuration),a}function dH(t,e,r,n){let i=$S(t.defs,e),a=Ja();for(let o in t.defs){let s=t.defs[o];a.defs[o]=hH(s,i[o],r,n)}for(let o in t.instances){let s=t.instances[o],l=a.defs[s.defId];a.instances[o]=vH(s,l,i[s.defId],r,n)}return a}function hH(t,e,r,n){let i=r.standardProps||{};i.hasEnd==null&&e.durationEditable&&(r.startDelta||r.endDelta)&&(i.hasEnd=!0);let a=Object.assign(Object.assign(Object.assign({},t),i),{ui:Object.assign(Object.assign({},t.ui),i.ui)});r.extendedProps&&(a.extendedProps=Object.assign(Object.assign({},a.extendedProps),r.extendedProps));for(let o of n.pluginHooks.eventDefMutationAppliers)o(a,r,n);return!a.hasEnd&&n.options.forceEventDuration&&(a.hasEnd=!0),a}function vH(t,e,r,n,i){let{dateEnv:a}=i,o=n.standardProps&&n.standardProps.allDay===!0,s=n.standardProps&&n.standardProps.hasEnd===!1,l=Object.assign({},t);return o&&(l.range=AS(l.range)),n.datesDelta&&r.startEditable&&(l.range={start:a.add(l.range.start,n.datesDelta),end:a.add(l.range.end,n.datesDelta)}),n.startDelta&&r.durationEditable&&(l.range={start:a.add(l.range.start,n.startDelta),end:l.range.end}),n.endDelta&&r.durationEditable&&(l.range={start:l.range.start,end:a.add(l.range.end,n.endDelta)}),s&&(l.range={start:l.range.start,end:jS(e.allDay,l.range.start,i)}),e.allDay&&(l.range={start:xt(l.range.start),end:xt(l.range.end)}),l.range.end<l.range.start&&(l.range.end=jS(e.allDay,l.range.start,i)),l}class ys{constructor(e,r){this.context=e,this.internalEventSource=r}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 Qr{constructor(e,r,n){this._context=e,this._def=r,this._instance=n||null}setProp(e,r){if(e in RS)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")r=zc[e](r),this.mutate({standardProps:{publicId:r}});else if(e in zc)r=zc[e](r),this.mutate({standardProps:{[e]:r}});else if(e in jc){let n=jc[e](r);e==="color"?n={backgroundColor:r,borderColor:r}:e==="editable"?n={startEditable:r,durationEditable:r}:n={[e]:r},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,r){this.mutate({extendedProps:{[e]:r}})}setStart(e,r={}){let{dateEnv:n}=this._context,i=n.createMarker(e);if(i&&this._instance){let a=this._instance.range,o=kc(a.start,i,n,r.granularity);r.maintainDuration?this.mutate({datesDelta:o}):this.mutate({startDelta:o})}}setEnd(e,r={}){let{dateEnv:n}=this._context,i;if(!(e!=null&&(i=n.createMarker(e),!i))&&this._instance)if(i){let a=kc(this._instance.range.end,i,n,r.granularity);this.mutate({endDelta:a})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,r,n={}){let{dateEnv:i}=this._context,a={allDay:n.allDay},o=i.createMarker(e),s;if(o&&!(r!=null&&(s=i.createMarker(r),!s))&&this._instance){let l=this._instance.range;n.allDay===!0&&(l=AS(l));let u=kc(l.start,o,i,n.granularity);if(s){let f=kc(l.end,s,i,n.granularity);I9(u,f)?this.mutate({datesDelta:u,standardProps:a}):this.mutate({startDelta:u,endDelta:f,standardProps:a})}else a.hasEnd=!1,this.mutate({datesDelta:u,standardProps:a})}}moveStart(e){let r=dt(e);r&&this.mutate({startDelta:r})}moveEnd(e){let r=dt(e);r&&this.mutate({endDelta:r})}moveDates(e){let r=dt(e);r&&this.mutate({datesDelta:r})}setAllDay(e,r={}){let n={allDay:e},{maintainDuration:i}=r;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=i),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:r}=this._context,n=this._instance,i=$t(e);return this._def.hasEnd?r.formatRange(n.range.start,n.range.end,i,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):r.format(n.range.start,i,{forcedTzo:n.forcedStartTzo})}mutate(e){let r=this._instance;if(r){let n=this._def,i=this._context,{eventStore:a}=i.getCurrentData(),o=W7(a,r.instanceId);o=dH(o,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let l=new Qr(i,n,r);this._def=o.defs[n.defId],this._instance=o.instances[r.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:o}),i.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:um(o,i,r),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:a})}})}}remove(){let e=this._context,r=HS(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:r}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:r})}})}get source(){let{sourceId:e}=this._def;return e?new ys(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 r=this._def,{ui:n}=r,{startStr:i,endStr:a}=this,o={allDay:r.allDay};return r.title&&(o.title=r.title),i&&(o.start=i),a&&(o.end=a),r.publicId&&(o.id=r.publicId),r.groupId&&(o.groupId=r.groupId),r.url&&(o.url=r.url),n.display&&n.display!=="auto"&&(o.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?o.color=n.backgroundColor:(n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.borderColor&&(o.borderColor=n.borderColor)),n.textColor&&(o.textColor=n.textColor),n.classNames.length&&(o.classNames=n.classNames),Object.keys(r.extendedProps).length&&(e.collapseExtendedProps?Object.assign(o,r.extendedProps):o.extendedProps=r.extendedProps),o}toJSON(){return this.toPlainObject()}}function HS(t){let e=t._def,r=t._instance;return{defs:{[e.defId]:e},instances:r?{[r.instanceId]:r}:{}}}function um(t,e,r){let{defs:n,instances:i}=t,a=[],o=r?r.instanceId:"";for(let s in i){let l=i[s],u=n[l.defId];l.instanceId!==o&&a.push(new Qr(e,u,l))}return a}function VS(t,e,r,n){let i={},a={},o={},s=[],l=[],u=$S(t.defs,e);for(let f in t.defs){let c=t.defs[f];u[c.defId].display==="inverse-background"&&(c.groupId?(i[c.groupId]=[],o[c.groupId]||(o[c.groupId]=c)):a[f]=[])}for(let f in t.instances){let c=t.instances[f],d=t.defs[c.defId],h=u[d.defId],v=c.range,g=!d.allDay&&n?TS(v,n):v,p=ms(g,r);p&&(h.display==="inverse-background"?d.groupId?i[d.groupId].push(p):a[c.defId].push(p):h.display!=="none"&&(h.display==="background"?s:l).push({def:d,ui:h,instance:c,range:p,isStart:g.start&&g.start.valueOf()===p.start.valueOf(),isEnd:g.end&&g.end.valueOf()===p.end.valueOf()}))}for(let f in i){let c=i[f],d=ES(c,r);for(let h of d){let v=o[f],g=u[v.defId];s.push({def:v,ui:g,instance:null,range:h,isStart:!1,isEnd:!1})}}for(let f in a){let c=a[f],d=ES(c,r);for(let h of d)s.push({def:t.defs[f],ui:u[f],instance:null,range:h,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function WS(t,e){t.fcSeg=e}function fm(t){return t.fcSeg||t.parentNode.fcSeg||null}function $S(t,e){return Kl(t,r=>GS(r,e))}function GS(t,e){let r=[];return e[""]&&r.push(e[""]),e[t.defId]&&r.push(e[t.defId]),r.push(t.ui),Y7(r)}function pH(t,e){let r=t.map(gH);return r.sort((n,i)=>T9(n,i,e)),r.map(n=>n._seg)}function gH(t){let{eventRange:e}=t,r=e.def,n=e.instance?e.instance.range:e.range,i=n.start?n.start.valueOf():0,a=n.end?n.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},r.extendedProps),r),{id:r.publicId,start:i,end:a,duration:a-i,allDay:Number(r.allDay),_seg:t})}function mH(t,e){let{pluginHooks:r}=e,n=r.isDraggableTransformers,{def:i,ui:a}=t.eventRange,o=a.startEditable;for(let s of n)o=s(o,i,a,e);return o}function yH(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function bH(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function US(t,e,r,n,i,a,o){let{dateEnv:s,options:l}=r,{displayEventTime:u,displayEventEnd:f}=l,c=t.eventRange.def,d=t.eventRange.instance;u==null&&(u=n!==!1),f==null&&(f=i!==!1);let h=d.range.start,v=d.range.end,g=t.start||t.eventRange.range.start,p=t.end||t.eventRange.range.end,m=xt(h).valueOf()===xt(g).valueOf(),y=xt(qi(v,-1)).valueOf()===xt(qi(p,-1)).valueOf();return u&&!c.allDay&&(m||y)?(g=m?h:g,p=y?v:p,f&&c.hasEnd?s.formatRange(g,p,e,{forcedStartTzo:d.forcedStartTzo,forcedEndTzo:d.forcedEndTzo}):s.format(g,e,{forcedTzo:d.forcedStartTzo})):""}function ru(t,e,r){let n=t.eventRange.range;return{isPast:n.end<=e.start,isFuture:n.start>=e.end,isToday:e&&Zi(e,n.start)}}function CH(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 _H(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function qS(t,e){let{def:r,instance:n}=t.eventRange,{url:i}=r;if(i)return{href:i};let{emitter:a,options:o}=e,{eventInteractive:s}=o;return s==null&&(s=r.interactive,s==null&&(s=!!a.hasHandlers("eventClick"))),s?oS(l=>{a.trigger("eventClick",{el:l.target,event:new Qr(e,r,n),jsEvent:l,view:e.viewApi})}):{}}const wH={start:ne,end:ne,allDay:Boolean};function xH(t,e,r){let n=DH(t,e),{range:i}=n;if(!i.start)return null;if(!i.end){if(r==null)return null;i.end=e.add(i.start,r)}return n}function DH(t,e){let{refined:r,extra:n}=Zg(t,wH),i=r.start?e.createMarkerMeta(r.start):null,a=r.end?e.createMarkerMeta(r.end):null,{allDay:o}=r;return o==null&&(o=i&&i.isTimeUnspecified&&(!a||a.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:a?a.marker:null},allDay:o},n)}function SH(t,e){return Object.assign(Object.assign({},XS(t.range,e,t.allDay)),{allDay:t.allDay})}function YS(t,e,r){return Object.assign(Object.assign({},XS(t,e,r)),{timeZone:e.timeZone})}function XS(t,e,r){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:r}),endStr:e.formatIso(t.end,{omitTime:r})}}function EH(t,e,r){let n=PS({editable:!1},r),i=am(n.refined,n.extra,"",t.allDay,!0,r);return{def:i,ui:GS(i,e),instance:nm(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function AH(t,e,r){let n=!1,i=function(s){n||(n=!0,e(s))},a=function(s){n||(n=!0,r(s))},o=t(i,a);o&&typeof o.then=="function"&&o.then(i,a)}class ZS extends Error{constructor(e,r){super(e),this.response=r}}function TH(t,e,r){t=t.toUpperCase();const n={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(r):(n.body=new URLSearchParams(r),n.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,n).then(i=>{if(i.ok)return i.json().then(a=>[a,i],()=>{throw new ZS("Failure parsing JSON",i)});throw new ZS("Request failed",i)})}let cm;function KS(){return cm==null&&(cm=OH()),cm}function OH(){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 r=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),r}class RH extends Dt{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{Lc(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{Lc(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:r}=e,{forPrint:n}=this.state,i=n||r.height==="auto"||r.contentHeight==="auto",a=!i&&r.height!=null?r.height:"",o=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${r.direction}`,e.theme.getClass("root")];return KS()||o.push("fc-liquid-hack"),e.children(o,a,i,n)}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 QS{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function MH(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}const JS={};class PH{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,r){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:r})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,r){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,r):console.warn(`Unknown listener name '${e}'`)}off(e,r){this.currentDataManager.emitter.off(e,r)}trigger(e,...r){this.currentDataManager.emitter.trigger(e,...r)}changeView(e,r){this.batchRendering(()=>{if(this.unselect(),r)if(r.start&&r.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:r});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(r)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,r){let n=this.getCurrentData(),i;r=r||"day",i=n.viewSpecs[r]||this.getUnitViewSpec(r),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:r,toolbarConfig:n}=this.getCurrentData(),i=[].concat(n.header?n.header.viewsWithButtons:[],n.footer?n.footer.viewsWithButtons:[]),a,o;for(let s in r)i.push(s);for(a=0;a<i.length;a+=1)if(o=r[i[a]],o&&o.singleUnit===e)return o;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:Jl(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let r=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:r.dateEnv.createMarker(e)})}incrementDate(e){let r=this.getCurrentData(),n=dt(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:r.dateEnv.add(r.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,r){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),$t(r))}formatRange(e,r,n){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(r),$t(n),n)}formatIso(e,r){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:r})}select(e,r){let n;r==null?e.start!=null?n=e:n={start:e,end:null}:n={start:e,end:r};let i=this.getCurrentData(),a=xH(n,i.dateEnv,dt({days:1}));a&&(this.dispatch({type:"SELECT_DATES",selection:a}),uH(a,null,i))}unselect(e){let r=this.getCurrentData();r.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),fH(e,r))}addEvent(e,r){if(e instanceof Qr){let o=e._def,s=e._instance;return this.getCurrentData().eventStore.defs[o.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:om({def:o,instance:s})}),this.triggerEventAdd(e)),e}let n=this.getCurrentData(),i;if(r instanceof ys)i=r.internalEventSource;else if(typeof r=="boolean")r&&([i]=Qg(n.eventSources));else if(r!=null){let o=this.getEventSourceById(r);if(!o)return console.warn(`Could not find an event source with ID "${r}"`),null;i=o.internalEventSource}let a=MS(e,i,n,!1);if(a){let o=new Qr(n,a.def,a.def.recurringDef?null:a.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:om(a)}),this.triggerEventAdd(o),o}return null}triggerEventAdd(e){let{emitter:r}=this.getCurrentData();r.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:HS(e)})}})}getEventById(e){let r=this.getCurrentData(),{defs:n,instances:i}=r.eventStore;e=String(e);for(let a in n){let o=n[a];if(o.publicId===e){if(o.recurringDef)return new Qr(r,o,null);for(let s in i){let l=i[s];if(l.defId===o.defId)return new Qr(r,o,l)}}}return null}getEvents(){let e=this.getCurrentData();return um(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),r=e.eventSources,n=[];for(let i in r)n.push(new ys(e,r[i]));return n}getEventSourceById(e){let r=this.getCurrentData(),n=r.eventSources;e=String(e);for(let i in n)if(n[i].publicId===e)return new ys(r,n[i]);return null}addEventSource(e){let r=this.getCurrentData();if(e instanceof ys)return r.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=IS(e,r);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new ys(r,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let r=dt(e);r&&this.trigger("_scrollRequest",{time:r})}}function BH(t,e){let r={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 r.left<r.right&&r.top<r.bottom?r:!1}function eE(t,e,r,n){return{dow:t.getUTCDay(),isDisabled:!!(n&&!Zi(n.activeRange,t)),isOther:!!(n&&!Zi(n.currentRange,t)),isToday:!!(e&&Zi(e,t)),isPast:!!(e&&t<e.start),isFuture:!!(e&&t>=e.end)}}function dm(t,e){let r=["fc-day",`fc-day-${k9[t.dow]}`];return t.isDisabled?r.push("fc-day-disabled"):(t.isToday&&(r.push("fc-day-today"),r.push(e.getClass("today"))),t.isPast&&r.push("fc-day-past"),t.isFuture&&r.push("fc-day-future"),t.isOther&&r.push("fc-day-other")),r}const IH=$t({year:"numeric",month:"long",day:"numeric"}),NH=$t({week:"long"});function hm(t,e,r="day",n=!0){const{dateEnv:i,options:a,calendarApi:o}=t;let s=i.format(e,r==="week"?NH:IH);if(a.navLinks){let l=i.toDate(e);const u=f=>{let c=r==="day"?a.navLinkDayClick:r==="week"?a.navLinkWeekClick:null;typeof c=="function"?c.call(o,i.toDate(e),f):(typeof c=="string"&&(r=c),o.zoomTo(e,r))};return Object.assign({title:Yl(a.navLinkHint,[s,l],s),"data-navlink":""},n?aS(u):{onClick:u})}return{"aria-label":s}}let vm;function FH(){return vm||(vm=LH()),vm}function LH(){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=kH(t);return document.body.removeChild(t),e}function kH(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function zH(t){let e=jH(t),r=t.getBoundingClientRect();for(let n of e){let i=BH(r,n.getBoundingClientRect());if(i)r=i;else return null}return r}function jH(t){let e=[];for(;t instanceof HTMLElement;){let r=window.getComputedStyle(t);if(r.position==="fixed")break;/(auto|scroll)/.test(r.overflow+r.overflowY+r.overflowX)&&e.push(t),t=t.parentNode}return e}class Vc{constructor(e,r,n,i){this.els=r;let a=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(a.left),i&&this.buildElVerticals(a.top)}buildElHorizontals(e){let r=[],n=[];for(let i of this.els){let a=i.getBoundingClientRect();r.push(a.left-e),n.push(a.right-e)}this.lefts=r,this.rights=n}buildElVerticals(e){let r=[],n=[];for(let i of this.els){let a=i.getBoundingClientRect();r.push(a.top-e),n.push(a.bottom-e)}this.tops=r,this.bottoms=n}leftToIndex(e){let{lefts:r,rights:n}=this,i=r.length,a;for(a=0;a<i;a+=1)if(e>=r[a]&&e<n[a])return a}topToIndex(e){let{tops:r,bottoms:n}=this,i=r.length,a;for(a=0;a<i;a+=1)if(e>=r[a]&&e<n[a])return a}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Wc(this.tops||[],e.tops||[])&&Wc(this.bottoms||[],e.bottoms||[])&&Wc(this.lefts||[],e.lefts||[])&&Wc(this.rights||[],e.rights||[])}}function Wc(t,e){const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(Math.round(t[n])!==Math.round(e[n]))return!1;return!0}class eo extends Dt{constructor(){super(...arguments),this.uid=Ya()}prepareHits(){}queryHit(e,r,n,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!mi(e,".fc-event-mirror")}isValidDateDownEl(e){return!mi(e,".fc-event:not(.fc-bg-event)")&&!mi(e,".fc-more-link")&&!mi(e,"a[data-navlink]")&&!mi(e,".fc-popover")}}class HH{constructor(e=r=>r.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 r=[];for(let n of e)this.insertEntry(n,r);return r}insertEntry(e,r){let n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,r)}isInsertionValid(e,r){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(r)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,r,n){if(this.allowReslicing&&e.touchingEntry){const i=Object.assign(Object.assign({},r),{span:rE(r.span,e.touchingEntry.span)});n.push(i),this.splitEntry(r,e.touchingEntry,n)}else n.push(r)}splitEntry(e,r,n){let i=e.span,a=r.span;i.start<a.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:a.start}},n),i.end>a.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.end,end:i.end}},n)}insertEntryAt(e,r){let{entriesByLevel:n,levelCoords:i}=this;r.lateral===-1?(pm(i,r.level,r.levelCoord),pm(n,r.level,[e])):pm(n[r.level],r.lateral,e),this.stackCnts[nu(e)]=r.stackCnt}findInsertion(e){let{levelCoords:r,entriesByLevel:n,strictOrder:i,stackCnts:a}=this,o=r.length,s=0,l=-1,u=-1,f=null,c=0;for(let v=0;v<o;v+=1){const g=r[v];if(!i&&g>=s+this.getEntryThickness(e))break;let p=n[v],m,y=nE(p,e.span.start,tE),b=y[0]+y[1];for(;(m=p[b])&&m.span.start<e.span.end;){let _=g+this.getEntryThickness(m);_>s&&(s=_,f=m,l=v,u=b),_===s&&(c=Math.max(c,a[nu(m)]+1)),b+=1}}let d=0;if(f)for(d=l+1;d<o&&r[d]<s;)d+=1;let h=-1;return d<o&&r[d]===s&&(h=nE(n[d],e.span.end,tE)[0]),{touchingLevel:l,touchingLateral:u,touchingEntry:f,stackCnt:c,levelCoord:s,level:d,lateral:h}}toRects(){let{entriesByLevel:e,levelCoords:r}=this,n=e.length,i=[];for(let a=0;a<n;a+=1){let o=e[a],s=r[a];for(let l of o)i.push(Object.assign(Object.assign({},l),{thickness:this.getEntryThickness(l),levelCoord:s}))}return i}}function tE(t){return t.span.end}function nu(t){return t.index+":"+t.span.start}function rE(t,e){let r=Math.max(t.start,e.start),n=Math.min(t.end,e.end);return r<n?{start:r,end:n}:null}function pm(t,e,r){t.splice(e,0,r)}function nE(t,e,r){let n=0,i=t.length;if(!i||e<r(t[n]))return[0,0];if(e>r(t[i-1]))return[i,0];for(;n<i;){let a=Math.floor(n+(i-n)/2),o=r(t[a]);if(e<o)i=a;else if(e>o)n=a+1;else return[a,1]}return[n,0]}function VH(t,e){return!t||e>10?$t({weekday:"short"}):e>1?$t({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):$t({weekday:"long"})}const iE="fc-col-header-cell";function aE(t){return t.text}class WH extends Dt{render(){let{dateEnv:e,options:r,theme:n,viewApi:i}=this.context,{props:a}=this,{date:o,dateProfile:s}=a,l=eE(o,a.todayRange,null,s),u=[iE].concat(dm(l,n)),f=e.format(o,a.dayHeaderFormat),c=!l.isDisabled&&a.colCnt>1?hm(this.context,o):{},d=Object.assign(Object.assign(Object.assign({date:e.toDate(o),view:i},a.extraRenderProps),{text:f}),l);return re(bi,{elTag:"th",elClasses:u,elAttrs:Object.assign({role:"columnheader",colSpan:a.colSpan,"data-date":l.isDisabled?void 0:qg(o)},a.extraDataAttrs),renderProps:d,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:aE,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},h=>re("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&re(h,{elTag:"a",elAttrs:c,elClasses:["fc-col-header-cell-cushion",a.isSticky&&"fc-sticky"]})))}}const $H=$t({weekday:"long"});class GH extends Dt{render(){let{props:e}=this,{dateEnv:r,theme:n,viewApi:i,options:a}=this.context,o=Jt(new Date(2592e5),e.dow),s={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=r.format(o,e.dayHeaderFormat),u=Object.assign(Object.assign(Object.assign(Object.assign({date:o},s),{view:i}),e.extraRenderProps),{text:l});return re(bi,{elTag:"th",elClasses:[iE,...dm(s,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:a.dayHeaderContent,defaultGenerator:aE,classNameGenerator:a.dayHeaderClassNames,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},f=>re("div",{className:"fc-scrollgrid-sync-inner"},re(f,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":r.format(o,$H)}})))}}class gm extends Hr{constructor(e,r){super(e,r),this.initialNowDate=Jl(r.options.now,r.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:r}=this;return e.children(r.nowDate,r.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:r}=this,n=qi(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=r.dateEnv.startOf(n,e.unit),a=r.dateEnv.add(i,dt(1,e.unit)),o=a.valueOf()-n.valueOf();return o=Math.min(1e3*60*60*24,o),{currentState:{nowDate:i,todayRange:oE(i)},nextState:{nowDate:a,todayRange:oE(a)},waitMs:o}}setTimeout(){let{nextState:e,waitMs:r}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},r)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}gm.contextType=Ka;function oE(t){let e=xt(t),r=Jt(e,1);return{start:e,end:r}}class UH extends Dt{constructor(){super(...arguments),this.createDayHeaderFormatter=it(qH)}render(){let{context:e}=this,{dates:r,dateProfile:n,datesRepDistinctDays:i,renderIntro:a}=this.props,o=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,r.length);return re(gm,{unit:"day"},(s,l)=>re("tr",{role:"row"},a&&a("day"),r.map(u=>i?re(WH,{key:u.toISOString(),date:u,dateProfile:n,todayRange:l,colCnt:r.length,dayHeaderFormat:o}):re(GH,{key:u.getUTCDay(),dow:u.getUTCDay(),dayHeaderFormat:o}))))}}function qH(t,e,r){return t||VH(e,r)}class YH{constructor(e,r){let n=e.start,{end:i}=e,a=[],o=[],s=-1;for(;n<i;)r.isHiddenDay(n)?a.push(s+.5):(s+=1,a.push(s),o.push(n)),n=Jt(n,1);this.dates=o,this.indices=a,this.cnt=o.length}sliceRange(e){let r=this.getDateDayIndex(e.start),n=this.getDateDayIndex(Jt(e.end,-1)),i=Math.max(0,r),a=Math.min(this.cnt-1,n);return i=Math.ceil(i),a=Math.floor(a),i<=a?{firstIndex:i,lastIndex:a,isStart:r===i,isEnd:n===a}:null}getDateDayIndex(e){let{indices:r}=this,n=Math.floor(ps(this.dates[0],e));return n<0?r[0]-1:n>=r.length?r[r.length-1]+1:r[n]}}class XH{constructor(e,r){let{dates:n}=e,i,a,o;if(r){for(a=n[0].getUTCDay(),i=1;i<n.length&&n[i].getUTCDay()!==a;i+=1);o=Math.ceil(n.length/i)}else o=1,i=n.length;this.rowCnt=o,this.colCnt=i,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let r=0;r<this.rowCnt;r+=1){let n=[];for(let i=0;i<this.colCnt;i+=1)n.push(this.buildCell(r,i));e.push(n)}return e}buildCell(e,r){let n=this.daySeries.dates[e*this.colCnt+r];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let r=0;r<this.colCnt;r+=1)e.push(this.cells[0][r].date);return e}sliceRange(e){let{colCnt:r}=this,n=this.daySeries.sliceRange(e),i=[];if(n){let{firstIndex:a,lastIndex:o}=n,s=a;for(;s<=o;){let l=Math.floor(s/r),u=Math.min((l+1)*r,o+1);i.push({row:l,firstCol:s%r,lastCol:(u-1)%r,isStart:n.isStart&&s===a,isEnd:n.isEnd&&u-1===o}),s=u}}return i}}class ZH{constructor(){this.sliceBusinessHours=it(this._sliceBusinessHours),this.sliceDateSelection=it(this._sliceDateSpan),this.sliceEventStore=it(this._sliceEventStore),this.sliceEventDrag=it(this._sliceInteraction),this.sliceEventResize=it(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,r,n,i,...a){let{eventUiBases:o}=e,s=this.sliceEventStore(e.eventStore,o,r,n,...a);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,r,n,o,i,...a),businessHourSegs:this.sliceBusinessHours(e.businessHours,r,n,i,...a),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(e.eventDrag,o,r,n,...a),eventResize:this.sliceEventResize(e.eventResize,o,r,n,...a),eventSelection:e.eventSelection}}sliceNowDate(e,r,n,i,...a){return this._sliceDateSpan({range:{start:e,end:qi(e,1)},allDay:!1},r,n,{},i,...a)}_sliceBusinessHours(e,r,n,i,...a){return e?this._sliceEventStore(eu(e,$c(r,!!n),i),{},r,n,...a).bg:[]}_sliceEventStore(e,r,n,i,...a){if(e){let o=VS(e,r,$c(n,!!i),i);return{bg:this.sliceEventRanges(o.bg,a),fg:this.sliceEventRanges(o.fg,a)}}return{bg:[],fg:[]}}_sliceInteraction(e,r,n,i,...a){if(!e)return null;let o=VS(e.mutatedEvents,r,$c(n,!!i),i);return{segs:this.sliceEventRanges(o.fg,a),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,r,n,i,a,...o){if(!e)return[];let s=$c(r,!!n),l=ms(e.range,s);if(l){e=Object.assign(Object.assign({},e),{range:l});let u=EH(e,i,a),f=this.sliceRange(e.range,...o);for(let c of f)c.eventRange=u;return f}return[]}sliceEventRanges(e,r){let n=[];for(let i of e)n.push(...this.sliceEventRange(i,r));return n}sliceEventRange(e,r){let n=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(n={start:n.start,end:Jt(n.start,1)});let i=this.sliceRange(n,...r);for(let a of i)a.eventRange=e,a.isStart=e.isStart&&a.isStart,a.isEnd=e.isEnd&&a.isEnd;return i}}function $c(t,e){let r=t.activeRange;return e?r:{start:qi(r.start,t.slotMinTime.milliseconds),end:qi(r.end,t.slotMaxTime.milliseconds-864e5)}}const Gc=/^(visible|hidden)$/;class KH extends Dt{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,yi(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:r,liquidIsAbsolute:n}=e,i=r&&n,a=["fc-scroller"];return r&&(n?a.push("fc-scroller-liquid-absolute"):a.push("fc-scroller-liquid")),re("div",{ref:this.handleEl,className:a.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(Gc.test(this.props.overflowX))return!1;let{el:e}=this,r=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let i=0;i<n.length;i+=1)if(n[i].getBoundingClientRect().width>r)return!0;return!1}needsYScrolling(){if(Gc.test(this.props.overflowY))return!1;let{el:e}=this,r=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let i=0;i<n.length;i+=1)if(n[i].getBoundingClientRect().height>r)return!0;return!1}getXScrollbarWidth(){return Gc.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Gc.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class to{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(r,n)=>{let{depths:i,currentMap:a}=this,o=!1,s=!1;r!==null?(o=n in a,a[n]=r,i[n]=(i[n]||0)+1,s=!0):(i[n]-=1,i[n]||(delete a[n],delete this.callbackMap[n],o=!0)),this.masterCallback&&(o&&this.masterCallback(null,String(n)),s&&this.masterCallback(r,String(n)))}}createRef(e){let r=this.callbackMap[e];return r||(r=this.callbackMap[e]=n=>{this.handleValue(n,String(e))}),r}collect(e,r,n){return m7(this.currentMap,e,r,n)}getAll(){return Qg(this.currentMap)}}function QH(t){let e=_9(t,".fc-scrollgrid-shrink"),r=0;for(let n of e)r=Math.max(r,M9(n));return Math.ceil(r)}function sE(t,e){return t.liquid&&e.liquid}function JH(t,e){return e.maxHeight!=null||sE(t,e)}function eV(t,e,r,n){let{expandRows:i}=r;return typeof e.content=="function"?e.content(r):re("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:r.tableMinWidth,width:r.clientWidth,height:i?r.clientHeight:""}},r.tableColGroupNode,re(n?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(r):e.rowContent))}function tV(t,e){return Ui(t,e,kn)}function rV(t,e){let r=[];for(let n of t){let i=n.span||1;for(let a=0;a<i;a+=1)r.push(re("col",{style:{width:n.width==="shrink"?nV(e):n.width||"",minWidth:n.minWidth||""}}))}return re("colgroup",{},...r)}function nV(t){return t??4}function iV(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function aV(t,e){let r=["fc-scrollgrid",e.theme.getClass("table")];return t&&r.push("fc-scrollgrid-liquid"),r}function oV(t,e){let r=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&r.push("fc-scrollgrid-section-liquid"),t.isSticky&&r.push("fc-scrollgrid-section-sticky"),r}function sV(t){return re("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function lE(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function lV(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class uE extends Dt{constructor(){super(...arguments),this.processCols=it(e=>e,tV),this.renderMicroColGroup=it(rV),this.scrollerRefs=new to,this.scrollerElRefs=new to(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:r,context:n}=this,i=e.sections||[],a=this.processCols(e.cols),o=this.renderMicroColGroup(a,r.shrinkWidth),s=aV(e.liquid,n);e.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");let l=i.length,u=0,f,c=[],d=[],h=[];for(;u<l&&(f=i[u]).type==="header";)c.push(this.renderSection(f,o,!0)),u+=1;for(;u<l&&(f=i[u]).type==="body";)d.push(this.renderSection(f,o,!1)),u+=1;for(;u<l&&(f=i[u]).type==="footer";)h.push(this.renderSection(f,o,!0)),u+=1;let v=!KS();const g={role:"rowgroup"};return re("table",{role:"grid",className:s.join(" "),style:{height:e.height}},!!(!v&&c.length)&&re("thead",g,...c),!!(!v&&d.length)&&re("tbody",g,...d),!!(!v&&h.length)&&re("tfoot",g,...h),v&&re("tbody",g,...c,...d,...h))}renderSection(e,r,n){return"outerContent"in e?re(Rt,{key:e.key},e.outerContent):re("tr",{key:e.key,role:"presentation",className:oV(e,this.props.liquid).join(" ")},this.renderChunkTd(e,r,e.chunk,n))}renderChunkTd(e,r,n,i){if("outerContent"in n)return n.outerContent;let{props:a}=this,{forceYScrollbars:o,scrollerClientWidths:s,scrollerClientHeights:l}=this.state,u=JH(a,e),f=sE(a,e),c=a.liquid?o?"scroll":u?"auto":"hidden":"visible",d=e.key,h=eV(e,n,{tableColGroupNode:r,tableMinWidth:"",clientWidth:!a.collapsibleWidth&&s[d]!==void 0?s[d]:null,clientHeight:l[d]!==void 0?l[d]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return re(i?"th":"td",{ref:n.elRef,role:"presentation"},re("div",{className:`fc-scroller-harness${f?" fc-scroller-harness-liquid":""}`},re(KH,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:c,overflowX:a.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:f,liquidIsAbsolute:!0},h)))}_handleScrollerEl(e,r){let n=uV(this.props.sections,r);n&&yi(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return iV(this.props.cols)?QH(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=FH(),{scrollerRefs:r,scrollerElRefs:n}=this,i=!1,a={},o={};for(let s in r.currentMap){let l=r.currentMap[s];if(l&&l.needsYScrolling()){i=!0;break}}for(let s of this.props.sections){let l=s.key,u=n.currentMap[l];if(u){let f=u.parentNode;a[l]=Math.floor(f.getBoundingClientRect().width-(i?e.y:0)),o[l]=Math.floor(f.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:a,scrollerClientHeights:o}}}uE.addStateEquality({scrollerClientWidths:kn,scrollerClientHeights:kn});function uV(t,e){for(let r of t)if(r.key===e)return r;return null}class mm extends Dt{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&WS(e,this.props.seg)}}render(){const{props:e,context:r}=this,{options:n}=r,{seg:i}=e,{eventRange:a}=i,{ui:o}=a,s={event:new Qr(r,a.def,a.instance),view:r.viewApi,timeText:e.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!e.disableDragging&&mH(i,r),isStartResizable:!e.disableResizing&&yH(i,r),isEndResizable:!e.disableResizing&&bH(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 re(bi,Object.assign({},e,{elRef:this.handleEl,elClasses:[...CH(s),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:s,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&WS(this.el,this.props.seg)}}class fV extends Dt{render(){let{props:e,context:r}=this,{options:n}=r,{seg:i}=e,{ui:a}=i.eventRange,o=n.eventTimeFormat||e.defaultTimeFormat,s=US(i,o,r,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return re(mm,Object.assign({},e,{elTag:"a",elStyle:{borderColor:a.borderColor,backgroundColor:a.backgroundColor},elAttrs:qS(i,r),defaultGenerator:cV,timeText:s}),(l,u)=>re(Rt,null,re(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:u.textColor}}),!!u.isStartResizable&&re("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!u.isEndResizable&&re("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function cV(t){return re("div",{className:"fc-event-main-frame"},t.timeText&&re("div",{className:"fc-event-time"},t.timeText),re("div",{className:"fc-event-title-container"},re("div",{className:"fc-event-title fc-sticky"},t.event.title||re(Rt,null," "))))}const dV=$t({day:"numeric"});class fE extends Dt{constructor(){super(...arguments),this.refineRenderProps=Mc(hV)}render(){let{props:e,context:r}=this,{options:n}=r,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:r.viewApi,dateEnv:r.dateEnv,monthStartFormat:n.monthStartFormat});return re(bi,Object.assign({},e,{elClasses:[...dm(i,r.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":qg(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function cE(t){return!!(t.dayCellContent||rm("dayCellContent",t))}function hV(t){let{date:e,dateEnv:r,dateProfile:n,isMonthStart:i}=t,a=eE(e,t.todayRange,null,n),o=t.showDayNumber?r.format(e,i?t.monthStartFormat:dV):"";return Object.assign(Object.assign(Object.assign({date:r.toDate(e),view:t.viewApi},a),{isMonthStart:i,dayNumberText:o}),t.extraRenderProps)}class vV extends Dt{render(){let{props:e}=this,{seg:r}=e;return re(mm,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:r.eventRange.ui.backgroundColor},defaultGenerator:pV,seg:r,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function pV(t){let{title:e}=t.event;return e&&re("div",{className:"fc-event-title"},t.event.title)}function gV(t){return re("div",{className:`fc-${t}`})}const mV=t=>re(Ka.Consumer,null,e=>{let{dateEnv:r,options:n}=e,{date:i}=t,a=n.weekNumberFormat||t.defaultFormat,o=r.computeWeekNumber(i),s=r.format(i,a);return re(bi,Object.assign({},t,{renderProps:{num:o,text:s,date:i},generatorName:"weekNumberContent",customGenerator:n.weekNumberContent,defaultGenerator:yV,classNameGenerator:n.weekNumberClassNames,didMount:n.weekNumberDidMount,willUnmount:n.weekNumberWillUnmount}))});function yV(t){return t.text}const ym=10;class bV extends Dt{constructor(){super(...arguments),this.state={titleId:Oc()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&yi(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const r=D9(e);this.rootEl.contains(r)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:r}=this.context,{props:n,state:i}=this,a=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return o9(re("div",Object.assign({},n.extraAttrs,{id:n.id,className:a.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),re("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},re("span",{className:"fc-popover-title",id:i.titleId},n.title),re("span",{className:"fc-popover-close "+e.getIconClass("close"),title:r.closeHint,onClick:this.handleCloseClick})),re("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.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:r,alignGridTop:n}=this.props,{rootEl:i}=this,a=zH(r);if(a){let o=i.getBoundingClientRect(),s=n?mi(r,".fc-scrollgrid").getBoundingClientRect().top:a.top,l=e?a.right-o.width:a.left;s=Math.max(s,ym),l=Math.min(l,document.documentElement.clientWidth-ym-o.width),l=Math.max(l,ym);let u=i.offsetParent.getBoundingClientRect();x9(i,{top:s-u.top,left:l-u.left})}}}class CV extends eo{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:r}=this.context,{props:n}=this,{startDate:i,todayRange:a,dateProfile:o}=n,s=r.format(i,e.dayPopoverFormat);return re(fE,{elRef:this.handleRootEl,date:i,dateProfile:o,todayRange:a},(l,u,f)=>re(bV,{elRef:f.ref,id:n.id,title:s,extraClassNames:["fc-more-popover"].concat(f.className||[]),extraAttrs:f,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},cE(e)&&re(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children))}queryHit(e,r,n,i){let{rootEl:a,props:o}=this;return e>=0&&e<n&&r>=0&&r<i?{dateProfile:o.dateProfile,dateSpan:Object.assign({allDay:!o.forceTimed,range:{start:o.startDate,end:o.endDate}},o.extraDateSpan),dayEl:a,rect:{left:0,top:0,right:n,bottom:i},layer:1}:null}}class _V extends Dt{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Oc()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&yi(this.props.elRef,e)},this.handleClick=e=>{let{props:r,context:n}=this,{moreLinkClick:i}=n.options,a=dE(r).start;function o(s){let{def:l,instance:u,range:f}=s.eventRange;return{event:new Qr(n,l,u),start:n.dateEnv.toDate(f.start),end:n.dateEnv.toDate(f.end),isStart:s.isStart,isEnd:s.isEnd}}typeof i=="function"&&(i=i({date:a,allDay:!!r.allDayDate,allSegs:r.allSegs.map(o),hiddenSegs:r.hiddenSegs.map(o),jsEvent:e,view:n.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&n.calendarApi.zoomTo(a,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:r}=this;return re(Ka.Consumer,null,n=>{let{viewApi:i,options:a,calendarApi:o}=n,{moreLinkText:s}=a,{moreCnt:l}=e,u=dE(e),f=typeof s=="function"?s.call(o,l):`+${l} ${s}`,c=Yl(a.moreLinkHint,[l],f),d={num:l,shortText:`+${l}`,text:f,view:i};return re(Rt,null,!!e.moreCnt&&re(bi,{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),aS(this.handleClick)),{title:c,"aria-expanded":r.isPopoverOpen,"aria-controls":r.isPopoverOpen?r.popoverId:""}),renderProps:d,generatorName:"moreLinkContent",customGenerator:a.moreLinkContent,defaultGenerator:e.defaultGenerator||wV,classNameGenerator:a.moreLinkClassNames,didMount:a.moreLinkDidMount,willUnmount:a.moreLinkWillUnmount},e.children),r.isPopoverOpen&&re(CV,{id:r.popoverId,startDate:u.start,endDate:u.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=mi(this.linkEl,".fc-view-harness"))}}function wV(t){return t.text}function dE(t){if(t.allDayDate)return{start:t.allDayDate,end:Jt(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:xV(e),end:SV(e)}}function xV(t){return t.reduce(DV).eventRange.range.start}function DV(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function SV(t){return t.reduce(EV).eventRange.range.end}function EV(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class AV{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let r of this.handlers)r(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class TV extends AV{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:r}=this;let n=!1;e.isActive?(r.set(e.id,e),n=!0):r.has(e.id)&&(r.delete(e.id),n=!0),n&&this.set(r)}}const OV=[],hE={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"},vE=Object.assign(Object.assign({},hE),{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 RV(t){let e=t.length>0?t[0].code:"en",r=OV.concat(t),n={en:vE};for(let i of r)n[i.code]=i;return{map:n,defaultCode:e}}function pE(t,e){return typeof t=="object"&&!Array.isArray(t)?gE(t.code,[t.code],t):MV(t,e)}function MV(t,e){let r=[].concat(t||[]),n=PV(r,e)||vE;return gE(t,r,n)}function PV(t,e){for(let r=0;r<t.length;r+=1){let n=t[r].toLocaleLowerCase().split("-");for(let i=n.length;i>0;i-=1){let a=n.slice(0,i).join("-");if(e[a])return e[a]}}return null}function gE(t,e,r){let n=Kg([hE,r],["buttonText"]);delete n.code;let{week:i}=n;return delete n.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:n}}function ro(t){return{id:Ya(),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 BV(t,e){let r={},n={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(a){for(let o of a){const s=o.name,l=r[s];l===void 0?(r[s]=o.id,i(o.deps),n=NV(n,o)):l!==o.id&&console.warn(`Duplicate plugin '${s}'`)}}return t&&i(t),i(e),n}function IV(){let t=[],e=[],r;return(n,i)=>((!r||!Ui(n,t)||!Ui(i,e))&&(r=BV(n,i)),t=n,e=i,r)}function NV(t,e){return{premiumReleaseDate:FV(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.isDraggableTransformers.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 FV(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Ki extends Ql{}Ki.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Ki.prototype.baseIconClass="fc-icon",Ki.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"},Ki.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Ki.prototype.iconOverrideOption="buttonIcons",Ki.prototype.iconOverrideCustomButtonOption="icon",Ki.prototype.iconOverridePrefix="fc-icon-";function LV(t,e){let r={},n;for(n in t)bm(n,r,t,e);for(n in e)bm(n,r,t,e);return r}function bm(t,e,r,n){if(e[t])return e[t];let i=kV(t,e,r,n);return i&&(e[t]=i),i}function kV(t,e,r,n){let i=r[t],a=n[t],o=f=>i&&i[f]!==null?i[f]:a&&a[f]!==null?a[f]:null,s=o("component"),l=o("superType"),u=null;if(l){if(l===t)throw new Error("Can't have a custom view type that references itself");u=bm(l,e,r,n)}return!s&&u&&(s=u.component),s?{type:t,component:s,defaults:Object.assign(Object.assign({},u?u.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},u?u.overrides:{}),a?a.rawOptions:{})}:null}function mE(t){return Kl(t,zV)}function zV(t){let e=typeof t=="function"?{component:t}:t,{component:r}=e;return e.content?r=yE(e):r&&!(r.prototype instanceof Dt)&&(r=yE(Object.assign(Object.assign({},e),{content:r}))),{superType:e.type,component:r,rawOptions:e}}function yE(t){return e=>re(Ka.Consumer,null,r=>re(bi,{elTag:"div",elClasses:SS(r.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:r.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function jV(t,e,r,n){let i=mE(t),a=mE(e.views),o=LV(i,a);return Kl(o,s=>HV(s,a,e,r,n))}function HV(t,e,r,n,i){let a=t.overrides.duration||t.defaults.duration||n.duration||r.duration,o=null,s="",l="",u={};if(a&&(o=VV(a),o)){let d=Gg(o);s=d.unit,d.value===1&&(l=s,u=e[s]?e[s].rawOptions:{})}let f=d=>{let h=d.buttonText||{},v=t.defaults.buttonTextKey;return v!=null&&h[v]!=null?h[v]:h[t.type]!=null?h[t.type]:h[l]!=null?h[l]:null},c=d=>{let h=d.buttonHints||{},v=t.defaults.buttonTextKey;return v!=null&&h[v]!=null?h[v]:h[t.type]!=null?h[t.type]:h[l]!=null?h[l]:null};return{type:t.type,component:t.component,duration:o,durationUnit:s,singleUnit:l,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},u),t.overrides),buttonTextOverride:f(n)||f(r)||t.overrides.buttonText,buttonTextDefault:f(i)||t.defaults.buttonText||f(Zl)||t.type,buttonTitleOverride:c(n)||c(r)||t.overrides.buttonHint,buttonTitleDefault:c(i)||t.defaults.buttonHint||c(Zl)}}let bE={};function VV(t){let e=JSON.stringify(t),r=bE[e];return r===void 0&&(r=dt(t),bE[e]=r),r}function WV(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function $V(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function GV(t,e,r,n){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return n.build(e.dateMarker||r);case"CHANGE_DATE":return n.build(e.dateMarker);case"PREV":if(i=n.buildPrev(t,r),i.isValid)return i;break;case"NEXT":if(i=n.buildNext(t,r),i.isValid)return i;break}return t}function UV(t,e,r){let n=e?e.activeRange:null;return _E({},JV(t,r),n,r)}function qV(t,e,r,n){let i=r?r.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return _E(t,e.sources,i,n);case"REMOVE_EVENT_SOURCE":return XV(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?wE(t,i,n):t;case"FETCH_EVENT_SOURCES":return Cm(t,e.sourceIds?bS(e.sourceIds):xE(t,n),i,e.isRefetch||!1,n);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return QV(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function YV(t,e,r){let n=e?e.activeRange:null;return Cm(t,xE(t,r),n,!0,r)}function CE(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function _E(t,e,r,n){let i={};for(let a of e)i[a.sourceId]=a;return r&&(i=wE(i,r,n)),Object.assign(Object.assign({},t),i)}function XV(t,e){return gs(t,r=>r.sourceId!==e)}function wE(t,e,r){return Cm(t,gs(t,n=>ZV(n,e,r)),e,!1,r)}function ZV(t,e,r){return DE(t,r)?!r.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function Cm(t,e,r,n,i){let a={};for(let o in t){let s=t[o];e[o]?a[o]=KV(s,r,n,i):a[o]=s}return a}function KV(t,e,r,n){let{options:i,calendarApi:a}=n,o=n.pluginHooks.eventSourceDefs[t.sourceDefId],s=Ya();return o.fetch({eventSource:t,range:e,isRefetch:r,context:n},l=>{let{rawEvents:u}=l;i.eventSourceSuccess&&(u=i.eventSourceSuccess.call(a,u,l.response)||u),t.success&&(u=t.success.call(a,u,l.response)||u),n.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:s,fetchRange:e,rawEvents:u})},l=>{let u=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(a,l),u=!0),t.failure&&(t.failure(l),u=!0),u||console.warn(l.message,l),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:s,fetchRange:e,error:l})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:s})}function QV(t,e,r,n){let i=t[e];return i&&r===i.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:n})}):t}function xE(t,e){return gs(t,r=>DE(r,e))}function JV(t,e){let r=NS(e),n=[].concat(t.eventSources||[]),i=[];t.initialEvents&&n.unshift(t.initialEvents),t.events&&n.unshift(t.events);for(let a of n){let o=IS(a,e,r);o&&i.push(o)}return i}function DE(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function eW(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function tW(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function rW(t,e){let r;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return r=e.state,{affectedEvents:r.affectedEvents,mutatedEvents:r.mutatedEvents,isEvent:r.isEvent};default:return t}}function nW(t,e){let r;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return r=e.state,{affectedEvents:r.affectedEvents,mutatedEvents:r.mutatedEvents,isEvent:r.isEvent};default:return t}}function iW(t,e,r,n,i){let a=t.headerToolbar?SE(t.headerToolbar,t,e,r,n,i):null,o=t.footerToolbar?SE(t.footerToolbar,t,e,r,n,i):null;return{header:a,footer:o}}function SE(t,e,r,n,i,a){let o={},s=[],l=!1;for(let u in t){let f=t[u],c=aW(f,e,r,n,i,a);o[u]=c.widgets,s.push(...c.viewsWithButtons),l=l||c.hasTitle}return{sectionWidgets:o,viewsWithButtons:s,hasTitle:l}}function aW(t,e,r,n,i,a){let o=e.direction==="rtl",s=e.customButtons||{},l=r.buttonText||{},u=e.buttonText||{},f=r.buttonHints||{},c=e.buttonHints||{},d=t?t.split(" "):[],h=[],v=!1;return{widgets:d.map(p=>p.split(",").map(m=>{if(m==="title")return v=!0,{buttonName:m};let y,b,_,C,w,x;if(y=s[m])_=D=>{y.click&&y.click.call(D.target,D,D.target)},(C=n.getCustomButtonIconClass(y))||(C=n.getIconClass(m,o))||(w=y.text),x=y.hint||y.text;else if(b=i[m]){h.push(m),_=()=>{a.changeView(m)},(w=b.buttonTextOverride)||(C=n.getIconClass(m,o))||(w=b.buttonTextDefault);let D=b.buttonTextOverride||b.buttonTextDefault;x=Yl(b.buttonTitleOverride||b.buttonTitleDefault||e.viewHint,[D,m],D)}else if(a[m])if(_=()=>{a[m]()},(w=l[m])||(C=n.getIconClass(m,o))||(w=u[m]),m==="prevYear"||m==="nextYear"){let D=m==="prevYear"?"prev":"next";x=Yl(f[D]||c[D],[u.year||"year","year"],u[m])}else x=D=>Yl(f[m]||c[m],[u[D]||D,D],u[m]);return{buttonName:m,buttonClick:_,buttonIcon:C,buttonText:w,buttonHint:x}})),viewsWithButtons:h,hasTitle:v}}class oW{constructor(e,r,n){this.type=e,this.getCurrentData=r,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}const sW=ro({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}}]}),lW=ro({name:"func-event-source",eventSourceDefs:[{parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,r){const{dateEnv:n}=t.context,i=t.eventSource.meta;AH(i.bind(null,YS(t.range,n)),a=>e({rawEvents:a}),r)}}]}),uW=ro({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:ne,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{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,r){const{meta:n}=t.eventSource,i=fW(n,t.range,t.context);TH(n.method,n.url,i).then(([a,o])=>{e({rawEvents:a,response:o})},r)}}]});function fW(t,e,r){let{dateEnv:n,options:i}=r,a,o,s,l,u={};return a=t.startParam,a==null&&(a=i.startParam),o=t.endParam,o==null&&(o=i.endParam),s=t.timeZoneParam,s==null&&(s=i.timeZoneParam),typeof t.extraParams=="function"?l=t.extraParams():l=t.extraParams||{},Object.assign(u,l),u[a]=n.formatIso(e.start),u[o]=n.formatIso(e.end),n.timeZone!=="local"&&(u[s]=n.timeZone),u}const cW=ro({name:"simple-recurring-event",recurringTypes:[{parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let r={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},n;return t.duration&&(n=t.duration),!n&&t.startTime&&t.endTime&&(n=N9(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:n,typeData:r}}return null},expand(t,e,r){let n=ms(e,{start:t.startRecur,end:t.endRecur});return n?dW(t.daysOfWeek,t.startTime,n,r):[]}}],eventRefiners:{daysOfWeek:ne,startTime:dt,endTime:dt,duration:dt,startRecur:ne,endRecur:ne}});function dW(t,e,r,n){let i=t?bS(t):null,a=xt(r.start),o=r.end,s=[];for(;a<o;){let l;(!i||i[a.getUTCDay()])&&(e?l=n.add(a,e):l=a,s.push(l)),a=Jt(a,1)}return s}const hW=ro({name:"change-handler",optionChangeHandlers:{events(t,e){EE([t],e)},eventSources:EE}});function EE(t,e){let r=Qg(e.getCurrentData().eventSources);if(r.length===1&&t.length===1&&Array.isArray(r[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:r[0].sourceId,rawEvents:t[0]});return}let n=[];for(let i of t){let a=!1;for(let o=0;o<r.length;o+=1)if(r[o]._raw===i){r.splice(o,1),a=!0;break}a||n.push(i)}for(let i of r)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of n)e.calendarApi.addEventSource(i)}function vW(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},YS(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function pW(t,e){let{emitter:r}=e;r.hasHandlers("eventsSet")&&r.trigger("eventsSet",um(t,e))}const gW=[sW,lW,uW,cW,hW,ro({name:"misc",isLoadingFuncs:[t=>CE(t.eventSources)],propSetHandlers:{dateProfile:vW,eventStore:pW}})];class mW{constructor(e,r){this.runTaskOption=e,this.drainedOption=r,this.queue=[],this.delayedRunner=new Vg(this.drain.bind(this))}request(e,r){this.queue.push(e),this.delayedRunner.request(r)}pause(e){this.delayedRunner.pause(e)}resume(e,r){this.delayedRunner.resume(e,r)}drain(){let{queue:e}=this;for(;e.length;){let r=[],n;for(;n=e.shift();)this.runTask(n),r.push(n);this.drained(r)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function yW(t,e,r){let n;return/^(year|month)$/.test(t.currentRangeUnit)?n=t.currentRange:n=t.activeRange,r.formatRange(n.start,n.end,$t(e.titleFormat||bW(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function bW(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let r=Rc(t.currentRange.start,t.currentRange.end);return r!==null&&r>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class CW{constructor(e){this.computeCurrentViewData=it(this._computeCurrentViewData),this.organizeRawLocales=it(RV),this.buildLocale=it(pE),this.buildPluginHooks=IV(),this.buildDateEnv=it(_W),this.buildTheme=it(wW),this.parseToolbars=it(iW),this.buildViewSpecs=it(jV),this.buildDateProfileGenerator=Mc(xW),this.buildViewApi=it(DW),this.buildViewUiProps=Mc(AW),this.buildEventUiBySource=it(SW,kn),this.buildEventUiBases=it(EW),this.parseContextBusinessHours=Mc(TW),this.buildTitle=it(yW),this.emitter=new nH,this.actionRunner=new mW(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=d=>{this.actionRunner.request(d)},this.props=e,this.actionRunner.pause();let r={},n=this.computeOptionsData(e.optionOverrides,r,e.calendarApi),i=n.calendarOptions.initialView||n.pluginHooks.initialView,a=this.computeCurrentViewData(i,n,e.optionOverrides,r);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(a.options);let o=L7(n.calendarOptions,n.dateEnv),s=a.dateProfileGenerator.build(o);Zi(s.activeRange,o)||(o=s.currentRange.start);let l={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let d of n.pluginHooks.contextInit)d(l);let u=UV(n.calendarOptions,s,l),f={dynamicOptionOverrides:r,currentViewType:i,currentDate:o,dateProfile:s,businessHours:this.parseContextBusinessHours(l),eventSources:u,eventUiBases:{},eventStore:Ja(),renderableEventStore:Ja(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},c=Object.assign(Object.assign({},l),f);for(let d of n.pluginHooks.reducers)Object.assign(f,d(null,null,c));_m(f,l)&&this.emitter.trigger("loading",!0),this.state=f,this.updateData(),this.actionRunner.resume()}resetOptions(e,r){let{props:n}=this;r===void 0?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...r)),(r===void 0||r.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:r,state:n,emitter:i}=this,a=$V(n.dynamicOptionOverrides,e),o=this.computeOptionsData(r.optionOverrides,a,r.calendarApi),s=WV(n.currentViewType,e),l=this.computeCurrentViewData(s,o,r.optionOverrides,a);r.calendarApi.currentDataManager=this,i.setThisContext(r.calendarApi),i.setOptions(l.options);let u={dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:r.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:f,dateProfile:c}=n;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(c=l.dateProfileGenerator.build(f)),f=F7(f,e),c=GV(c,e,f,l.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!Zi(c.currentRange,f))&&(f=c.currentRange.start);let d=qV(n.eventSources,e,c,u),h=Q7(n.eventStore,e,d,c,u),g=CE(d)&&!l.options.progressiveEventRendering&&n.renderableEventStore||h,{eventUiSingleBase:p,selectionConfig:m}=this.buildViewUiProps(u),y=this.buildEventUiBySource(d),b=this.buildEventUiBases(g.defs,p,y),_={dynamicOptionOverrides:a,currentViewType:s,currentDate:f,dateProfile:c,eventSources:d,eventStore:h,renderableEventStore:g,selectionConfig:m,eventUiBases:b,businessHours:this.parseContextBusinessHours(u),dateSelection:eW(n.dateSelection,e),eventSelection:tW(n.eventSelection,e),eventDrag:rW(n.eventDrag,e),eventResize:nW(n.eventResize,e)},C=Object.assign(Object.assign({},u),_);for(let D of o.pluginHooks.reducers)Object.assign(_,D(n,e,C));let w=_m(n,u),x=_m(_,u);!w&&x?i.trigger("loading",!0):w&&!x&&i.trigger("loading",!1),this.state=_,r.onAction&&r.onAction(e)}updateData(){let{props:e,state:r}=this,n=this.data,i=this.computeOptionsData(e.optionOverrides,r.dynamicOptionOverrides,e.calendarApi),a=this.computeCurrentViewData(r.currentViewType,i,e.optionOverrides,r.dynamicOptionOverrides),o=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(r.dateProfile,a.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),a),r),s=i.pluginHooks.optionChangeHandlers,l=n&&n.calendarOptions,u=i.calendarOptions;if(l&&l!==u){l.timeZone!==u.timeZone&&(r.eventSources=o.eventSources=YV(o.eventSources,r.dateProfile,o),r.eventStore=o.eventStore=kS(o.eventStore,n.dateEnv,o.dateEnv),r.renderableEventStore=o.renderableEventStore=kS(o.renderableEventStore,n.dateEnv,o.dateEnv));for(let f in s)(this.optionsForHandling.indexOf(f)!==-1||l[f]!==u[f])&&s[f](u[f],o)}this.optionsForHandling=[],e.onData&&e.onData(o)}computeOptionsData(e,r,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&r===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:a,localeDefaults:o,availableLocaleData:s,extra:l}=this.processRawCalendarOptions(e,r);AE(l);let u=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,a,s,i.defaultRangeSeparator),f=this.buildViewSpecs(a.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,o),c=this.buildTheme(i,a),d=this.parseToolbars(i,this.stableOptionOverrides,c,f,n);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:a,dateEnv:u,viewSpecs:f,theme:c,toolbarConfig:d,localeDefaults:o,availableRawLocales:s.map}}processRawCalendarOptions(e,r){let{locales:n,locale:i}=Xg([Zl,e,r]),a=this.organizeRawLocales(n),o=a.map,s=this.buildLocale(i||a.defaultCode,o).options,l=this.buildPluginHooks(e.plugins||[],gW),u=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gS),mS),yS),l.listenerRefiners),l.optionRefiners),f={},c=Xg([Zl,s,e,r]),d={},h=this.currentCalendarOptionsInput,v=this.currentCalendarOptionsRefined,g=!1;for(let p in c)this.optionsForRefining.indexOf(p)===-1&&(c[p]===h[p]||Xa[p]&&p in h&&Xa[p](h[p],c[p]))?d[p]=v[p]:u[p]?(d[p]=u[p](c[p]),g=!0):f[p]=h[p];return g&&(this.currentCalendarOptionsInput=c,this.currentCalendarOptionsRefined=d,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=r),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:a,localeDefaults:s,extra:f}}_computeCurrentViewData(e,r,n,i){let a=r.viewSpecs[e];if(!a)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:o,extra:s}=this.processRawViewOptions(a,r.pluginHooks,r.localeDefaults,n,i);AE(s);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:a.optionDefaults.dateProfileGeneratorClass,duration:a.duration,durationUnit:a.durationUnit,usesMinMaxTime:a.optionDefaults.usesMinMaxTime,dateEnv:r.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,showNonCurrentDates:o.showNonCurrentDates,dayCount:o.dayCount,dateAlignment:o.dateAlignment,dateIncrement:o.dateIncrement,hiddenDays:o.hiddenDays,weekends:o.weekends,nowInput:o.now,validRangeInput:o.validRange,visibleRangeInput:o.visibleRange,fixedWeekCount:o.fixedWeekCount}),u=this.buildViewApi(e,this.getCurrentData,r.dateEnv);return{viewSpec:a,options:o,dateProfileGenerator:l,viewApi:u}}processRawViewOptions(e,r,n,i,a){let o=Xg([Zl,e.optionDefaults,n,i,e.optionOverrides,a]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gS),mS),yS),h7),r.listenerRefiners),r.optionRefiners),l={},u=this.currentViewOptionsInput,f=this.currentViewOptionsRefined,c=!1,d={};for(let h in o)o[h]===u[h]||Xa[h]&&Xa[h](o[h],u[h])?l[h]=f[h]:(o[h]===this.currentCalendarOptionsInput[h]||Xa[h]&&Xa[h](o[h],this.currentCalendarOptionsInput[h])?h in this.currentCalendarOptionsRefined&&(l[h]=this.currentCalendarOptionsRefined[h]):s[h]?l[h]=s[h](o[h]):d[h]=o[h],c=!0);return c&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}}}function _W(t,e,r,n,i,a,o,s){let l=pE(e||o.defaultCode,o.map);return new x7({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:l,weekNumberCalculation:r,firstDay:n,weekText:i,cmdFormatter:a.cmdFormatter,defaultSeparator:s})}function wW(t,e){let r=e.themeClasses[t.themeSystem]||Ki;return new r(t)}function xW(t){let e=t.dateProfileGeneratorClass||OS;return new e(t)}function DW(t,e,r){return new oW(t,e,r)}function SW(t){return Kl(t,e=>e.ui)}function EW(t,e,r){let n={"":e};for(let i in t){let a=t[i];a.sourceId&&r[a.sourceId]&&(n[i]=r[a.sourceId])}return n}function AW(t){let{options:e}=t;return{eventUiSingleBase:Hc({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:Hc({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function _m(t,e){for(let r of e.pluginHooks.isLoadingFuncs)if(r(t))return!0;return!1}function TW(t){return sH(t.options.businessHours,t)}function AE(t,e){for(let r in t)console.warn(`Unknown option '${r}'`)}class OW extends Dt{render(){let e=this.props.widgetGroups.map(r=>this.renderWidgetGroup(r));return re("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:r}=this,{theme:n}=this.context,i=[],a=!0;for(let o of e){let{buttonName:s,buttonClick:l,buttonText:u,buttonIcon:f,buttonHint:c}=o;if(s==="title")a=!1,i.push(re("h2",{className:"fc-toolbar-title",id:r.titleId},r.title));else{let d=s===r.activeButton,h=!r.isTodayEnabled&&s==="today"||!r.isPrevEnabled&&s==="prev"||!r.isNextEnabled&&s==="next",v=[`fc-${s}-button`,n.getClass("button")];d&&v.push(n.getClass("buttonActive")),i.push(re("button",{type:"button",title:typeof c=="function"?c(r.navUnit):c,disabled:h,"aria-pressed":d,className:v.join(" "),onClick:l},u||(f?re("span",{className:f,role:"img"}):"")))}}if(i.length>1){let o=a&&n.getClass("buttonGroup")||"";return re("div",{className:o},...i)}return i[0]}}class TE extends Dt{render(){let{model:e,extraClassName:r}=this.props,n=!1,i,a,o=e.sectionWidgets,s=o.center;return o.left?(n=!0,i=o.left):i=o.start,o.right?(n=!0,a=o.right):a=o.end,re("div",{className:[r||"","fc-toolbar",n?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",s||[]),this.renderSection("end",a||[]))}renderSection(e,r){let{props:n}=this;return re(OW,{key:e,widgetGroups:r,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class RW extends Dt{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,yi(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:r}=this,{aspectRatio:n}=e,i=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],a="",o="";return n?r.availableWidth!==null?a=r.availableWidth/n:o=`${1/n*100}%`:a=e.height||"",re("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:a,paddingBottom:o}},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 MW extends QS{constructor(e){super(e),this.handleSegClick=(r,n)=>{let{component:i}=this,{context:a}=i,o=fm(n);if(o&&i.isValidSegDownEl(r.target)){let s=mi(r.target,".fc-event-forced-url"),l=s?s.querySelector("a[href]").href:"";a.emitter.trigger("eventClick",{el:n,event:new Qr(i.context,o.eventRange.def,o.eventRange.instance),jsEvent:r,view:a.viewApi}),l&&!r.defaultPrevented&&(window.location.href=l)}},this.destroy=iS(e.el,"click",".fc-event",this.handleSegClick)}}class PW extends QS{constructor(e){super(e),this.handleEventElRemove=r=>{r===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(r,n)=>{fm(n)&&(this.currentSegEl=n,this.triggerEvent("eventMouseEnter",r,n))},this.handleSegLeave=(r,n)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",r,n))},this.removeHoverListeners=E9(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,r,n){let{component:i}=this,{context:a}=i,o=fm(n);(!r||i.isValidSegDownEl(r.target))&&a.emitter.trigger(e,{el:n,event:new Qr(a,o.eventRange.def,o.eventRange.instance),jsEvent:r,view:a.viewApi})}}class BW extends Qa{constructor(){super(...arguments),this.buildViewContext=it(E7),this.buildViewPropTransformers=it(NW),this.buildToolbarProps=it(IW),this.headerRef=gi(),this.footerRef=gi(),this.interactionsStore={},this.state={viewLabelId:Oc()},this.registerInteractiveComponent=(e,r)=>{let n=MH(e,r),o=[MW,PW].concat(this.props.pluginHooks.componentInteractions).map(s=>new s(n));this.interactionsStore[e.uid]=o,JS[e.uid]=n},this.unregisterInteractiveComponent=e=>{let r=this.interactionsStore[e.uid];if(r){for(let n of r)n.destroy();delete this.interactionsStore[e.uid]}delete JS[e.uid]},this.resizeRunner=new Vg(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:r}=this.props;r.handleWindowResize&&e.target===window&&this.resizeRunner.request(r.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:r,options:n}=e,i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,Jl(e.options.now,e.dateEnv),e.viewTitle),a=!1,o="",s;e.isHeightAuto||e.forPrint?o="":n.height!=null?a=!0:n.contentHeight!=null?o=n.contentHeight:s=Math.max(n.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),u=r.header&&r.header.hasTitle?this.state.viewLabelId:void 0;return re(Ka.Provider,{value:l},r.header&&re(TE,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:r.header,titleId:u},i)),re(RW,{liquid:a,height:o,aspectRatio:s,labeledById:u},this.renderView(e),this.buildAppendContent()),r.footer&&re(TE,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:r.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(n=>new n(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:r}=e.pluginHooks;for(let n in r)r[n](e[n],e)}componentDidUpdate(e){let{props:r}=this,{propSetHandlers:n}=r.pluginHooks;for(let i in n)r[i]!==e[i]&&n[i](r[i],r)}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,r=e.pluginHooks.viewContainerAppends.map(n=>n(e));return re(Rt,{},...r)}renderView(e){let{pluginHooks:r}=e,{viewSpec:n}=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},a=this.buildViewPropTransformers(r.viewPropsTransformers);for(let s of a)Object.assign(i,s.transform(i,e));let o=n.component;return re(o,Object.assign({},i))}}function IW(t,e,r,n,i,a){let o=r.build(i,void 0,!1),s=r.buildPrev(e,n,!1),l=r.buildNext(e,n,!1);return{title:a,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:o.isValid&&!Zi(e.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function NW(t){return t.map(e=>new e)}class FW extends PH{constructor(e,r={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=n=>{switch(n.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=n=>{this.currentData=n,this.renderRunner.request(n.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:n}=this;Lc(()=>{ql(re(RH,{options:n.calendarOptions,theme:n.theme,emitter:n.emitter},(i,a,o,s)=>(this.setClassNames(i),this.setHeight(a),re(xS.Provider,{value:this.customContentRenderId},re(BW,Object.assign({isHeightAuto:o,forPrint:s},n))))),this.el)})}else this.isRendered&&(this.isRendered=!1,ql(null,this.el),this.setClassNames([]),this.setHeight(""))},v9(e),this.el=e,this.renderRunner=new Vg(this.handleRenderRequest),new CW({optionOverrides:r,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(){Lc(()=>{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,r){this.currentDataManager.resetOptions(e,r)}setClassNames(e){if(!Ui(e,this.currentClassNames)){let{classList:r}=this.el;for(let n of this.currentClassNames)r.remove(n);for(let n of e)r.add(n);this.currentClassNames=e}}setHeight(e){rS(this.el,"height",e)}}const LW=parseInt(String(F.version).split(".")[0])<18;class OE extends F.Component{constructor(){super(...arguments),this.elRef=F.createRef(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame(()=>{this.doResize()}))}}render(){const e=[];for(const r of this.state.customRenderingMap.values())e.push(F.createElement(kW,{key:r.id,customRendering:r}));return F.createElement("div",{ref:this.elRef},e)}componentDidMount(){this.isUnmounting=!1;const e=new TV;this.handleCustomRendering=e.handle.bind(e),this.calendar=new FW(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",()=>{Da.flushSync(()=>{})});let r;e.subscribe(n=>{const i=Date.now(),a=!r;(LW||a||this.isUpdating||this.isUnmounting||i-r<100?RE:Da.flushSync)(()=>{this.setState({customRenderingMap:n},()=>{r=i,a?this.doResize():this.requestResize()})})})}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){this.resizeId!==void 0&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}OE.act=RE;class kW extends F.PureComponent{render(){const{customRendering:e}=this.props,{generatorMeta:r}=e,n=typeof r=="function"?r(e.renderProps):r;return Da.createPortal(n,e.containerEl)}}function RE(t){t()}class zW extends eo{constructor(){super(...arguments),this.headerElRef=gi()}renderSimpleLayout(e,r){let{props:n,context:i}=this,a=[],o=lE(i.options);return e&&a.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),a.push({type:"body",key:"body",liquid:!0,chunk:{content:r}}),re(DS,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},re(uE,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:a}))}renderHScrollLayout(e,r,n,i){let a=this.context.pluginHooks.scrollGridImpl;if(!a)throw new Error("No ScrollGrid implementation");let{props:o,context:s}=this,l=!o.forPrint&&lE(s.options),u=!o.forPrint&&lV(s.options),f=[];return e&&f.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),f.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:r}]}),u&&f.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:sV}]}),re(DS,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},re(a,{liquid:!o.isHeightAuto&&!o.forPrint,forPrint:o.forPrint,collapsibleWidth:o.forPrint,colGroups:[{cols:[{span:n,minWidth:i}]}],sections:f}))}}function Uc(t,e){let r=[];for(let n=0;n<e;n+=1)r[n]=[];for(let n of t)r[n.row].push(n);return r}function qc(t,e){let r=[];for(let n=0;n<e;n+=1)r[n]=[];for(let n of t)r[n.firstCol].push(n);return r}function ME(t,e){let r=[];if(t){for(let n=0;n<e;n+=1)r[n]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let n of t.segs)r[n.row].segs.push(n)}else for(let n=0;n<e;n+=1)r[n]=null;return r}const PE=$t({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function BE(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 IE extends Dt{render(){let{props:e}=this;return re(fV,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:PE,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class NE extends Dt{render(){let{props:e,context:r}=this,{options:n}=r,{seg:i}=e,a=n.eventTimeFormat||PE,o=US(i,a,r,!0,e.defaultDisplayEventEnd);return re(mm,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:qS(e.seg,r),defaultGenerator:jW,timeText:o,isResizing:!1,isDateSelecting:!1}))}}function jW(t){return re(Rt,null,re("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&re("div",{className:"fc-event-time"},t.timeText),re("div",{className:"fc-event-title"},t.event.title||re(Rt,null," ")))}class HW extends Dt{constructor(){super(...arguments),this.compileSegs=it(VW)}render(){let{props:e}=this,{allSegs:r,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return re(_V,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:r,hiddenSegs:n,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 re(Rt,null,r.map(a=>{let o=a.eventRange.instance.instanceId;return re("div",{className:"fc-daygrid-event-harness",key:o,style:{visibility:i[o]?"hidden":""}},BE(a)?re(NE,Object.assign({seg:a,isDragging:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},ru(a,e.todayRange))):re(IE,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},ru(a,e.todayRange))))}))}})}}function VW(t){let e=[],r=[];for(let n of t)e.push(n.seg),n.isVisible||r.push(n.seg);return{allSegs:e,invisibleSegs:r}}const WW=$t({week:"narrow"});class $W extends eo{constructor(){super(...arguments),this.rootElRef=gi(),this.state={dayNumberId:Oc()},this.handleRootEl=e=>{yi(this.rootElRef,e),yi(this.props.elRef,e)}}render(){let{context:e,props:r,state:n,rootElRef:i}=this,{options:a,dateEnv:o}=e,{date:s,dateProfile:l}=r;const u=r.showDayNumber&&UW(s,l.currentRange,o);return re(fE,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...r.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},r.extraDataAttrs),r.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:GW,date:s,dateProfile:l,todayRange:r.todayRange,showDayNumber:r.showDayNumber,isMonthStart:u,extraRenderProps:r.extraRenderProps},(f,c)=>re("div",{ref:r.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:r.minHeight}},r.showWeekNumber&&re(mV,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:hm(e,s,"week"),date:s,defaultFormat:WW}),!c.isDisabled&&(r.showDayNumber||cE(a)||r.forceDayTop)?re("div",{className:"fc-daygrid-day-top"},re(f,{elTag:"a",elClasses:["fc-daygrid-day-number",u&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},hm(e,s)),{id:n.dayNumberId})})):r.showDayNumber?re("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},re("a",{className:"fc-daygrid-day-number"}," ")):void 0,re("div",{className:"fc-daygrid-day-events",ref:r.fgContentElRef},r.fgContent,re("div",{className:"fc-daygrid-day-bottom",style:{marginTop:r.moreMarginTop}},re(HW,{allDayDate:s,singlePlacements:r.singlePlacements,moreCnt:r.moreCnt,alignmentElRef:i,alignGridTop:!r.showDayNumber,extraDateSpan:r.extraDateSpan,dateProfile:r.dateProfile,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,todayRange:r.todayRange}))),re("div",{className:"fc-daygrid-day-bg"},r.bgContent)))}}function GW(t){return t.dayNumberText||re(Rt,null," ")}function UW(t,e,r){const{start:n,end:i}=e,a=qi(i,-1),o=r.getYear(n),s=r.getMonth(n),l=r.getYear(a),u=r.getMonth(a);return!(o===l&&s===u)&&(t.valueOf()===n.valueOf()||r.getDay(t)===1&&t.valueOf()<i.valueOf())}function FE(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function LE(t){return FE(t)+":"+t.lastCol}function qW(t,e,r,n,i,a,o){let s=new ZW(m=>{let y=t[m.index].eventRange.instance.instanceId+":"+m.span.start+":"+(m.span.end-1);return i[y]||1});s.allowReslicing=!0,s.strictOrder=n,e===!0||r===!0?(s.maxCoord=a,s.hiddenConsumes=!0):typeof e=="number"?s.maxStackCnt=e:typeof r=="number"&&(s.maxStackCnt=r,s.hiddenConsumes=!0);let l=[],u=[];for(let m=0;m<t.length;m+=1){let y=t[m],b=LE(y);i[b]!=null?l.push({index:m,span:{start:y.firstCol,end:y.lastCol+1}}):u.push(y)}let f=s.addSegs(l),c=s.toRects(),{singleColPlacements:d,multiColPlacements:h,leftoverMargins:v}=YW(c,t,o),g=[],p=[];for(let m of u){h[m.firstCol].push({seg:m,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let y=m.firstCol;y<=m.lastCol;y+=1)d[y].push({seg:bs(m,y,y+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let m=0;m<o.length;m+=1)g.push(0);for(let m of f){let y=t[m.index],b=m.span;h[b.start].push({seg:bs(y,b.start,b.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let _=b.start;_<b.end;_+=1)g[_]+=1,d[_].push({seg:bs(y,_,_+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let m=0;m<o.length;m+=1)p.push(v[m]);return{singleColPlacements:d,multiColPlacements:h,moreCnts:g,moreMarginTops:p}}function YW(t,e,r){let n=XW(t,r.length),i=[],a=[],o=[];for(let s=0;s<r.length;s+=1){let l=n[s],u=[],f=0,c=0;for(let h of l){let v=e[h.index];u.push({seg:bs(v,s,s+1,r),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:h.levelCoord-f}),f=h.levelCoord+h.thickness}let d=[];f=0,c=0;for(let h of l){let v=e[h.index],g=h.span.end-h.span.start>1,p=h.span.start===s;c+=h.levelCoord-f,f=h.levelCoord+h.thickness,g?(c+=h.thickness,p&&d.push({seg:bs(v,h.span.start,h.span.end,r),isVisible:!0,isAbsolute:!0,absoluteTop:h.levelCoord,marginTop:0})):p&&(d.push({seg:bs(v,h.span.start,h.span.end,r),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:c}),c=0)}i.push(u),a.push(d),o.push(c)}return{singleColPlacements:i,multiColPlacements:a,leftoverMargins:o}}function XW(t,e){let r=[];for(let n=0;n<e;n+=1)r.push([]);for(let n of t)for(let i=n.span.start;i<n.span.end;i+=1)r[i].push(n);return r}function bs(t,e,r,n){if(t.firstCol===e&&t.lastCol===r-1)return t;let i=t.eventRange,a=i.range,o=ms(a,{start:n[e].date,end:Jt(n[r-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:r-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:o},isStart:t.isStart&&o.start.valueOf()===a.start.valueOf(),isEnd:t.isEnd&&o.end.valueOf()===a.end.valueOf()})}class ZW extends HH{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const r=super.addSegs(e),{entriesByLevel:n}=this,i=a=>!this.forceHidden[nu(a)];for(let a=0;a<n.length;a+=1)n[a]=n[a].filter(i);return r}handleInvalidInsertion(e,r,n){const{entriesByLevel:i,forceHidden:a}=this,{touchingEntry:o,touchingLevel:s,touchingLateral:l}=e;if(this.hiddenConsumes&&o){const u=nu(o);if(!a[u])if(this.allowReslicing){const f=Object.assign(Object.assign({},o),{span:rE(o.span,r.span)}),c=nu(f);a[c]=!0,i[s][l]=f,n.push(f),this.splitEntry(o,r,n)}else a[u]=!0,n.push(o)}super.handleInvalidInsertion(e,r,n)}}class kE extends eo{constructor(){super(...arguments),this.cellElRefs=new to,this.frameElRefs=new to,this.fgElRefs=new to,this.segHarnessRefs=new to,this.rootElRef=gi(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:r,context:n}=this,{options:i}=n,a=e.cells.length,o=qc(e.businessHourSegs,a),s=qc(e.bgEventSegs,a),l=qc(this.getHighlightSegs(),a),u=qc(this.getMirrorSegs(),a),{singleColPlacements:f,multiColPlacements:c,moreCnts:d,moreMarginTops:h}=qW(pH(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,r.segHeights,r.maxContentHeight,e.cells),v=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return re("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((g,p)=>{let m=this.renderFgSegs(p,e.forPrint?f[p]:c[p],e.todayRange,v),y=this.renderFgSegs(p,KW(u[p],c),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return re($W,{key:g.key,elRef:this.cellElRefs.createRef(g.key),innerElRef:this.frameElRefs.createRef(g.key),dateProfile:e.dateProfile,date:g.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&p===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:g.extraRenderProps,extraDataAttrs:g.extraDataAttrs,extraClassNames:g.extraClassNames,extraDateSpan:g.extraDateSpan,moreCnt:d[p],moreMarginTop:h[p],singlePlacements:f[p],fgContentElRef:this.fgElRefs.createRef(g.key),fgContent:re(Rt,null,re(Rt,null,m),re(Rt,null,y)),bgContent:re(Rt,null,this.renderFillSegs(l[p],"highlight"),this.renderFillSegs(o[p],"non-business"),this.renderFillSegs(s[p],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,r){let n=this.props;this.updateSizing(!kn(e,n))}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,r,n,i,a,o,s){let{context:l}=this,{eventSelection:u}=this.props,{framePositions:f}=this.state,c=this.props.cells.length===1,d=a||o||s,h=[];if(f)for(let v of r){let{seg:g}=v,{instanceId:p}=g.eventRange.instance,m=v.isVisible&&!i[p],y=v.isAbsolute,b="",_="";y&&(l.isRtl?(_=0,b=f.lefts[g.lastCol]-f.lefts[g.firstCol]):(b=0,_=f.rights[g.firstCol]-f.rights[g.lastCol])),h.push(re("div",{className:"fc-daygrid-event-harness"+(y?" fc-daygrid-event-harness-abs":""),key:FE(g),ref:d?null:this.segHarnessRefs.createRef(LE(g)),style:{visibility:m?"":"hidden",marginTop:y?"":v.marginTop,top:y?v.absoluteTop:"",left:b,right:_}},BE(g)?re(NE,Object.assign({seg:g,isDragging:a,isSelected:p===u,defaultDisplayEventEnd:c},ru(g,n))):re(IE,Object.assign({seg:g,isDragging:a,isResizing:o,isDateSelecting:s,isSelected:p===u,defaultDisplayEventEnd:c},ru(g,n)))))}return h}renderFillSegs(e,r){let{isRtl:n}=this.context,{todayRange:i}=this.props,{framePositions:a}=this.state,o=[];if(a)for(let s of e){let l=n?{right:0,left:a.lefts[s.lastCol]-a.lefts[s.firstCol]}:{left:0,right:a.rights[s.firstCol]-a.rights[s.lastCol]};o.push(re("div",{key:_H(s.eventRange),className:"fc-daygrid-bg-harness",style:l},r==="bg-event"?re(vV,Object.assign({seg:s},ru(s,i))):gV(r)))}return re(Rt,{},...o)}updateSizing(e){let{props:r,state:n,frameElRefs:i}=this;if(!r.forPrint&&r.clientWidth!==null){if(e){let l=r.cells.map(u=>i.currentMap[u.key]);if(l.length){let u=this.rootElRef.current,f=new Vc(u,l,!0,!1);(!n.framePositions||!n.framePositions.similarTo(f))&&this.setState({framePositions:new Vc(u,l,!0,!1)})}}const a=this.state.segHeights,o=this.querySegHeights(),s=r.dayMaxEvents===!0||r.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},a),o),maxContentHeight:s?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,r={};for(let n in e){let i=Math.round(e[n].getBoundingClientRect().height);r[n]=Math.max(r[n]||0,i)}return r}computeMaxContentHeight(){let e=this.props.cells[0].key,r=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return r.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(r=>e[r.key])}}kE.addStateEquality({segHeights:kn});function KW(t,e){if(!t.length)return[];let r=QW(e);return t.map(n=>({seg:n,isVisible:!0,isAbsolute:!0,absoluteTop:r[n.eventRange.instance.instanceId],marginTop:0}))}function QW(t){let e={};for(let r of t)for(let n of r)e[n.seg.eventRange.instance.instanceId]=n.absoluteTop;return e}class JW extends eo{constructor(){super(...arguments),this.splitBusinessHourSegs=it(Uc),this.splitBgEventSegs=it(Uc),this.splitFgEventSegs=it(Uc),this.splitDateSelectionSegs=it(Uc),this.splitEventDrag=it(ME),this.splitEventResize=it(ME),this.rowRefs=new to}render(){let{props:e,context:r}=this,n=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,n),a=this.splitBgEventSegs(e.bgEventSegs,n),o=this.splitFgEventSegs(e.fgEventSegs,n),s=this.splitDateSelectionSegs(e.dateSelectionSegs,n),l=this.splitEventDrag(e.eventDrag,n),u=this.splitEventResize(e.eventResize,n),f=n>=7&&e.clientWidth?e.clientWidth/r.options.aspectRatio/6:null;return re(gm,{unit:"day"},(c,d)=>re(Rt,null,e.cells.map((h,v)=>re(kE,{ref:this.rowRefs.createRef(v),key:h.length?h[0].date.toISOString():v,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:d,dateProfile:e.dateProfile,cells:h,renderIntro:e.renderRowIntro,businessHourSegs:i[v],eventSelection:e.eventSelection,bgEventSegs:a[v].filter(e$),fgEventSegs:o[v],dateSelectionSegs:s[v],eventDrag:l[v],eventResize:u[v],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:f,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],r=e?e.closest(".fc-daygrid-body"):null;r&&(this.rootEl=r,this.context.registerInteractiveComponent(this,{el:r,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Vc(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Vc(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,r){let{colPositions:n,rowPositions:i}=this,a=n.leftToIndex(e),o=i.topToIndex(r);if(o!=null&&a!=null){let s=this.props.cells[o][a];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(o,a),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(o,a),rect:{left:n.lefts[a],right:n.rights[a],top:i.tops[o],bottom:i.bottoms[o]},layer:0}}return null}getCellEl(e,r){return this.rowRefs.currentMap[e].getCellEls()[r]}getCellRange(e,r){let n=this.props.cells[e][r].date,i=Jt(n,1);return{start:n,end:i}}}function e$(t){return t.eventRange.def.allDay}class t$ extends eo{constructor(){super(...arguments),this.elRef=gi(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:r,dayMaxEvents:n,expandRows:i}=e,a=n===!0||r===!0;a&&!i&&(a=!1,r=null,n=null);let o=["fc-daygrid-body",a?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return re("div",{ref:this.elRef,className:o.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},re("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,re("tbody",{role:"presentation"},re(JW,{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:n,dayMaxEventRows:r,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=r$(this.elRef.current,this.props.dateProfile);if(e){const r=e.closest(".fc-daygrid-body"),n=r.closest(".fc-scroller"),i=e.getBoundingClientRect().top-r.getBoundingClientRect().top;n.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function r$(t,e){let r;return e.currentRangeUnit.match(/year|month/)&&(r=t.querySelector(`[data-date="${K9(e.currentDate)}-01"]`)),r||(r=t.querySelector(`[data-date="${qg(e.currentDate)}"]`)),r}class n$ extends ZH{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,r){return r.sliceRange(e)}}class i$ extends eo{constructor(){super(...arguments),this.slicer=new n$,this.tableRef=gi()}render(){let{props:e,context:r}=this;return re(t$,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,r,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 a$ extends zW{constructor(){super(...arguments),this.buildDayTableModel=it(o$),this.headerRef=gi(),this.tableRef=gi()}render(){let{options:e,dateProfileGenerator:r}=this.context,{props:n}=this,i=this.buildDayTableModel(n.dateProfile,r),a=e.dayHeaders&&re(UH,{ref:this.headerRef,dateProfile:n.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),o=s=>re(i$,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:i,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:s.tableColGroupNode,tableMinWidth:s.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:s.clientWidth,clientHeight:s.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(a,o,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(a,o)}}function o$(t,e){let r=new YH(t.renderRange,e);return new XH(r,/year|month|week/.test(t.currentRangeUnit))}class s$ extends OS{buildRenderRange(e,r,n){let i=super.buildRenderRange(e,r,n),{props:a}=this;return l$({currentRange:i,snapToWeek:/^(year|month)$/.test(r),fixedWeekCount:a.fixedWeekCount,dateEnv:a.dateEnv})}}function l$(t){let{dateEnv:e,currentRange:r}=t,{start:n,end:i}=r,a;if(t.snapToWeek&&(n=e.startOfWeek(n),a=e.startOfWeek(i),a.valueOf()!==i.valueOf()&&(i=uS(a,1))),t.fixedWeekCount){let o=e.startOfWeek(e.startOfMonth(Jt(r.end,-1))),s=Math.ceil(z9(o,i));i=uS(i,6-s)}return{start:n,end:i}}var u$=':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}';JD(u$);var f$=ro({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:a$,dateProfileGeneratorClass:s$},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}}}}),zE={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Sa,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",f="week",c="month",d="quarter",h="year",v="date",g="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var P=["th","st","nd","rd"],N=M%100;return"["+M+(P[(N-20)%10]||P[N]||P[0])+"]"}},b=function(M,P,N){var H=String(M);return!H||H.length>=P?M:""+Array(P+1-H.length).join(N)+M},_={s:b,z:function(M){var P=-M.utcOffset(),N=Math.abs(P),H=Math.floor(N/60),j=N%60;return(P<=0?"+":"-")+b(H,2,"0")+":"+b(j,2,"0")},m:function M(P,N){if(P.date()<N.date())return-M(N,P);var H=12*(N.year()-P.year())+(N.month()-P.month()),j=P.clone().add(H,c),G=N-j<0,L=P.clone().add(H+(G?-1:1),c);return+(-(H+(N-j)/(G?j-L:L-j))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:c,y:h,w:f,d:u,D:v,h:l,m:s,s:o,ms:a,Q:d}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},C="en",w={};w[C]=y;var x="$isDayjsObject",D=function(M){return M instanceof R||!(!M||!M[x])},S=function M(P,N,H){var j;if(!P)return C;if(typeof P=="string"){var G=P.toLowerCase();w[G]&&(j=G),N&&(w[G]=N,j=G);var L=P.split("-");if(!j&&L.length>1)return M(L[0])}else{var U=P.name;w[U]=P,j=U}return!H&&j&&(C=j),j||!H&&C},T=function(M,P){if(D(M))return M.clone();var N=typeof P=="object"?P:{};return N.date=M,N.args=arguments,new R(N)},E=_;E.l=S,E.i=D,E.w=function(M,P){return T(M,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var R=function(){function M(N){this.$L=S(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[x]=!0}var P=M.prototype;return P.parse=function(N){this.$d=function(H){var j=H.date,G=H.utc;if(j===null)return new Date(NaN);if(E.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var L=j.match(p);if(L){var U=L[2]-1||0,J=(L[7]||"0").substring(0,3);return G?new Date(Date.UTC(L[1],U,L[3]||1,L[4]||0,L[5]||0,L[6]||0,J)):new Date(L[1],U,L[3]||1,L[4]||0,L[5]||0,L[6]||0,J)}}return new Date(j)}(N),this.init()},P.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},P.$utils=function(){return E},P.isValid=function(){return this.$d.toString()!==g},P.isSame=function(N,H){var j=T(N);return this.startOf(H)<=j&&j<=this.endOf(H)},P.isAfter=function(N,H){return T(N)<this.startOf(H)},P.isBefore=function(N,H){return this.endOf(H)<T(N)},P.$g=function(N,H,j){return E.u(N)?this[H]:this.set(j,N)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(N,H){var j=this,G=!!E.u(H)||H,L=E.p(N),U=function($,Q){var K=E.w(j.$u?Date.UTC(j.$y,Q,$):new Date(j.$y,Q,$),j);return G?K:K.endOf(u)},J=function($,Q){return E.w(j.toDate()[$].apply(j.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(Q)),j)},ee=this.$W,ae=this.$M,q=this.$D,I="set"+(this.$u?"UTC":"");switch(L){case h:return G?U(1,0):U(31,11);case c:return G?U(1,ae):U(0,ae+1);case f:var Y=this.$locale().weekStart||0,z=(ee<Y?ee+7:ee)-Y;return U(G?q-z:q+(6-z),ae);case u:case v:return J(I+"Hours",0);case l:return J(I+"Minutes",1);case s:return J(I+"Seconds",2);case o:return J(I+"Milliseconds",3);default:return this.clone()}},P.endOf=function(N){return this.startOf(N,!1)},P.$set=function(N,H){var j,G=E.p(N),L="set"+(this.$u?"UTC":""),U=(j={},j[u]=L+"Date",j[v]=L+"Date",j[c]=L+"Month",j[h]=L+"FullYear",j[l]=L+"Hours",j[s]=L+"Minutes",j[o]=L+"Seconds",j[a]=L+"Milliseconds",j)[G],J=G===u?this.$D+(H-this.$W):H;if(G===c||G===h){var ee=this.clone().set(v,1);ee.$d[U](J),ee.init(),this.$d=ee.set(v,Math.min(this.$D,ee.daysInMonth())).$d}else U&&this.$d[U](J);return this.init(),this},P.set=function(N,H){return this.clone().$set(N,H)},P.get=function(N){return this[E.p(N)]()},P.add=function(N,H){var j,G=this;N=Number(N);var L=E.p(H),U=function(ae){var q=T(G);return E.w(q.date(q.date()+Math.round(ae*N)),G)};if(L===c)return this.set(c,this.$M+N);if(L===h)return this.set(h,this.$y+N);if(L===u)return U(1);if(L===f)return U(7);var J=(j={},j[s]=n,j[l]=i,j[o]=r,j)[L]||1,ee=this.$d.getTime()+N*J;return E.w(ee,this)},P.subtract=function(N,H){return this.add(-1*N,H)},P.format=function(N){var H=this,j=this.$locale();if(!this.isValid())return j.invalidDate||g;var G=N||"YYYY-MM-DDTHH:mm:ssZ",L=E.z(this),U=this.$H,J=this.$m,ee=this.$M,ae=j.weekdays,q=j.months,I=j.meridiem,Y=function(Q,K,X,ce){return Q&&(Q[K]||Q(H,G))||X[K].slice(0,ce)},z=function(Q){return E.s(U%12||12,Q,"0")},$=I||function(Q,K,X){var ce=Q<12?"AM":"PM";return X?ce.toLowerCase():ce};return G.replace(m,function(Q,K){return K||function(X){switch(X){case"YY":return String(H.$y).slice(-2);case"YYYY":return E.s(H.$y,4,"0");case"M":return ee+1;case"MM":return E.s(ee+1,2,"0");case"MMM":return Y(j.monthsShort,ee,q,3);case"MMMM":return Y(q,ee);case"D":return H.$D;case"DD":return E.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return Y(j.weekdaysMin,H.$W,ae,2);case"ddd":return Y(j.weekdaysShort,H.$W,ae,3);case"dddd":return ae[H.$W];case"H":return String(U);case"HH":return E.s(U,2,"0");case"h":return z(1);case"hh":return z(2);case"a":return $(U,J,!0);case"A":return $(U,J,!1);case"m":return String(J);case"mm":return E.s(J,2,"0");case"s":return String(H.$s);case"ss":return E.s(H.$s,2,"0");case"SSS":return E.s(H.$ms,3,"0");case"Z":return L}return null}(Q)||L.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(N,H,j){var G,L=this,U=E.p(H),J=T(N),ee=(J.utcOffset()-this.utcOffset())*n,ae=this-J,q=function(){return E.m(L,J)};switch(U){case h:G=q()/12;break;case c:G=q();break;case d:G=q()/3;break;case f:G=(ae-ee)/6048e5;break;case u:G=(ae-ee)/864e5;break;case l:G=ae/i;break;case s:G=ae/n;break;case o:G=ae/r;break;default:G=ae}return j?G:E.a(G)},P.daysInMonth=function(){return this.endOf(c).$D},P.$locale=function(){return w[this.$L]},P.locale=function(N,H){if(!N)return this.$L;var j=this.clone(),G=S(N,H,!0);return G&&(j.$L=G),j},P.clone=function(){return E.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},M}(),B=R.prototype;return T.prototype=B,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",c],["$y",h],["$D",v]].forEach(function(M){B[M[1]]=function(P){return this.$g(P,M[0],M[1])}}),T.extend=function(M,P){return M.$i||(M(P,R,T),M.$i=!0),T},T.locale=S,T.isDayjs=D,T.unix=function(M){return T(1e3*M)},T.en=w[C],T.Ls=w,T.p={},T})})(zE);var c$=zE.exports;const Qi=Yo(c$);var jE={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Sa,function(){return function(r,n,i){n.prototype.isBetween=function(a,o,s,l){var u=i(a),f=i(o),c=(l=l||"()")[0]==="(",d=l[1]===")";return(c?this.isAfter(u,s):!this.isBefore(u,s))&&(d?this.isBefore(f,s):!this.isAfter(f,s))||(c?this.isBefore(u,s):!this.isAfter(u,s))&&(d?this.isAfter(f,s):!this.isBefore(f,s))}}})})(jE);var d$=jE.exports;const h$=Yo(d$),HE=F.createContext(void 0),v$=({children:t,initialData:e})=>{const[r,n]=F.useState(e);return A.jsx(HE.Provider,{value:{globalData:r,setGlobalData:n},children:t})},no=()=>{const t=F.useContext(HE);if(!t)throw new Error("useAppContext must be used within an AppProvider");return t},VE=({fieldOptions:t,val:e,field:r,fieldMap:n})=>{var o,s,l;const i=t==null?void 0:t.find(u=>u.value===r);let a=e;return(i==null?void 0:i.type)==="enum"&&(i!=null&&i.enum)&&((o=i==null?void 0:i.enum)==null?void 0:o.length)>0&&(a=((l=(s=i==null?void 0:i.enum)==null?void 0:s.find(f=>f.value===e))==null?void 0:l.label)?n==null?void 0:n[a]:e),(i==null?void 0:i.type)==="timestamp"&&(a=e?Qi(e).format("YYYY-MM-DD"):""),a};Qi.extend(h$);const WE=({moduleDataApi:t,customData:e,width:r,height:n})=>{const{t:i}=Dr(),{globalData:a}=no(),[o,s]=F.useState(),[l,u]=F.useState(),[f,c]=F.useState(!1),[d,h]=F.useState(),[v,g]=F.useState([]),p=F.useRef(null),m=F.useCallback(async()=>{if(s([]),e){let w="";e!=null&&e.conditionData&&(w+=`${Bg(e==null?void 0:e.conditionData)}`),e!=null&&e.dataSourceId&&(t==null||t({id:e==null?void 0:e.dataSourceId,query:w}).then(x=>{if(!x.success){Z.message.error(x.message);return}s(x.data)}))}else s([])},[e==null?void 0:e.dataSourceId,e==null?void 0:e.conditionData]);F.useEffect(()=>{e&&m()},[e==null?void 0:e.dataSourceId,e==null?void 0:e.conditionData]),F.useEffect(()=>{var w;a!=null&&a.sourceData&&(e!=null&&e.dataSourceId)&&u((w=a==null?void 0:a.sourceData.find(x=>x.value===(e==null?void 0:e.dataSourceId)))==null?void 0:w.fields)},[a,e]),F.useEffect(()=>{const w=o==null?void 0:o.map(x=>{var D,S;return{title:e!=null&&e.titleField&&x[e==null?void 0:e.titleField]||i("unnamedRecord"),start:e!=null&&e.startDateField&&x[e==null?void 0:e.startDateField]?(D=Qi(x[e==null?void 0:e.startDateField]))==null?void 0:D.toISOString():"",end:e!=null&&e.endDateField&&x[e==null?void 0:e.endDateField]?(S=Qi(x[e==null?void 0:e.endDateField]))==null?void 0:S.toISOString():void 0,allDay:!0,...x}});g(w)},[o,e]);const y=w=>{const x=w.event;c(!0),h(x.extendedProps)},[b,_]=F.useState("100%"),C=F.useRef();return F.useEffect(()=>{(()=>{C.current&&_(C.current.offsetWidth)})()},[r,n]),F.useEffect(()=>{p.current&&setTimeout(()=>{var w,x;(x=(w=p.current)==null?void 0:w.getApi())==null||x.updateSize()},500)},[b]),F.useEffect(()=>{setTimeout(()=>{var w,x;(x=(w=p.current)==null?void 0:w.getApi())==null||x.updateSize()},500)},[]),A.jsx("div",{ref:C,className:"full-calendar-app",style:{height:"100%",width:"100%"},children:A.jsxs("div",{style:{height:"100%",width:"100%",overflowY:"auto"},children:[A.jsx(OE,{ref:p,plugins:[f$],headerToolbar:{left:"prev,next today",center:"title",right:""},initialView:"dayGridMonth",height:"auto",contentHeight:"auto",editable:!0,selectable:!0,selectMirror:!0,fixedWeekCount:!1,events:v,eventContent:w=>A.jsx(A.Fragment,{children:A.jsx("i",{children:w.event.title})}),eventClick:y}),A.jsx(Z.Modal,{title:e!=null&&e.titleField?(d==null?void 0:d[e==null?void 0:e.titleField])||i("unnamedRecord"):null,open:f,onOk:()=>{c(!1)},onCancel:()=>{c(!1)},footer:(w,{OkBtn:x})=>A.jsx(A.Fragment,{children:A.jsx(x,{})}),children:l!=null&&l.length?A.jsx(Z.Descriptions,{className:"reset-descriptions",layout:"vertical",column:2,items:l==null?void 0:l.map((w,x)=>({key:x,label:w.label,children:VE({fieldOptions:l,val:d==null?void 0:d[w.value],field:w.value,fieldMap:a==null?void 0:a.fieldMap})}))}):null})]})})};/*! *****************************************************************************
|
|
126
|
+
`,cz=function(e){var r=F.useContext(ox),n=r.csp,i=r.prefixCls,a=fz;i&&(a=a.replace(/anticon/g,i)),F.useEffect(function(){var o=e.current,s=rz(o);ez(a,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},dz=["icon","className","onClick","style","primaryColor","secondaryColor"],$l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function hz(t){var e=t.primaryColor,r=t.secondaryColor;$l.primaryColor=e,$l.secondaryColor=r||Rx(e),$l.calculated=!!r}function vz(){return In({},$l)}var fs=function(e){var r=e.icon,n=e.className,i=e.onClick,a=e.style,o=e.primaryColor,s=e.secondaryColor,l=ux(e,dz),u=Je.useRef(),f=$l;if(o&&(f={primaryColor:o,secondaryColor:s||Rx(o)}),cz(u),uz(Tx(r),"icon should be icon definiton, but got ".concat(r)),!Tx(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=In(In({},c),{},{icon:c.icon(f.primaryColor,f.secondaryColor)})),yg(c.icon,"svg-".concat(c.name),In(In({className:n,onClick:i,style:a,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};fs.displayName="IconReact",fs.getTwoToneColors=vz,fs.setTwoToneColors=hz;function Px(t){var e=Mx(t),r=lx(e,2),n=r[0],i=r[1];return fs.setTwoToneColors({primaryColor:n,secondaryColor:i})}function pz(){var t=fs.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var gz=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Px(dg.primary);var Xt=Je.forwardRef(function(t,e){var r=t.className,n=t.icon,i=t.spin,a=t.rotate,o=t.tabIndex,s=t.onClick,l=t.twoToneColor,u=ux(t,gz),f=Je.useContext(ox),c=f.prefixCls,d=c===void 0?"anticon":c,h=f.rootClassName,v=R6(h,d,sg(sg({},"".concat(d,"-").concat(n.name),!!n.name),"".concat(d,"-spin"),!!i||n.name==="loading"),r),g=o;g===void 0&&s&&(g=-1);var p=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,m=Mx(l),y=lx(m,2),b=y[0],_=y[1];return Je.createElement("span",Yt({role:"img","aria-label":n.name},u,{ref:e,tabIndex:g,onClick:s,className:v}),Je.createElement(fs,{icon:n,primaryColor:b,secondaryColor:_,style:p}))});Xt.displayName="AntdIcon",Xt.getTwoToneColor=pz,Xt.setTwoToneColor=Px;var mz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-center",theme:"outlined"},yz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:mz}))},Bx=Je.forwardRef(yz);process.env.NODE_ENV!=="production"&&(Bx.displayName="AlignCenterOutlined");var bz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-left",theme:"outlined"},Cz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:bz}))},Ix=Je.forwardRef(Cz);process.env.NODE_ENV!=="production"&&(Ix.displayName="AlignLeftOutlined");var _z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-right",theme:"outlined"},wz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:_z}))},Nx=Je.forwardRef(wz);process.env.NODE_ENV!=="production"&&(Nx.displayName="AlignRightOutlined");var xz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z"}}]},name:"bold",theme:"outlined"},Dz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:xz}))},Fx=Je.forwardRef(Dz);process.env.NODE_ENV!=="production"&&(Fx.displayName="BoldOutlined");var Sz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Ez=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Sz}))},Lx=Je.forwardRef(Ez);process.env.NODE_ENV!=="production"&&(Lx.displayName="CheckOutlined");var Az={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Tz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Az}))},pc=Je.forwardRef(Tz);process.env.NODE_ENV!=="production"&&(pc.displayName="CloseOutlined");var Oz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"}}]},name:"column-width",theme:"outlined"},Rz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Oz}))},kx=Je.forwardRef(Rz);process.env.NODE_ENV!=="production"&&(kx.displayName="ColumnWidthOutlined");var Mz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Pz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Mz}))},zx=Je.forwardRef(Pz);process.env.NODE_ENV!=="production"&&(zx.displayName="ExclamationCircleOutlined");var Bz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M798 160H366c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h181.2l-156 544H229c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8H474.4l156-544H798c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"italic",theme:"outlined"},Iz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Bz}))},jx=Je.forwardRef(Iz);process.env.NODE_ENV!=="production"&&(jx.displayName="ItalicOutlined");var Nz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Fz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Nz}))},Hx=Je.forwardRef(Fz);process.env.NODE_ENV!=="production"&&(Hx.displayName="MinusCircleOutlined");var Lz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-568H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},kz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Lz}))},Vx=Je.forwardRef(kz);process.env.NODE_ENV!=="production"&&(Vx.displayName="OrderedListOutlined");var zz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},jz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:zz}))},Wx=Je.forwardRef(jz);process.env.NODE_ENV!=="production"&&(Wx.displayName="PlusOutlined");var Hz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824 804H200c-4.4 0-8 3.4-8 7.6v60.8c0 4.2 3.6 7.6 8 7.6h624c4.4 0 8-3.4 8-7.6v-60.8c0-4.2-3.6-7.6-8-7.6zm-312-76c69.4 0 134.6-27.1 183.8-76.2C745 602.7 772 537.4 772 468V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 97-79 176-176 176s-176-79-176-176V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 69.4 27.1 134.6 76.2 183.8C377.3 701 442.6 728 512 728z"}}]},name:"underline",theme:"outlined"},Vz=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Hz}))},$x=Je.forwardRef(Vz);process.env.NODE_ENV!=="production"&&($x.displayName="UnderlineOutlined");var Wz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"unordered-list",theme:"outlined"},$z=function(e,r){return Je.createElement(Xt,Yt({},e,{ref:r,icon:Wz}))},Gx=Je.forwardRef($z);process.env.NODE_ENV!=="production"&&(Gx.displayName="UnorderedListOutlined");const Ux=(t,e)=>{const r=F.useRef(null),n=(...i)=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{t(...i)},e)};return F.useEffect(()=>()=>{r.current&&clearTimeout(r.current)},[]),n},Gz=(...t)=>{console!=null&&console.warn&&($a(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t))},qx={},bg=(...t)=>{$a(t[0])&&qx[t[0]]||($a(t[0])&&(qx[t[0]]=new Date),Gz(...t))},Yx=(t,e)=>()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}},Xx=(t,e,r)=>{t.loadNamespaces(e,Yx(t,r))},Zx=(t,e,r,n)=>{$a(r)&&(r=[r]),r.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,Yx(t,n))},Uz=(t,e,r={})=>!e.languages||!e.languages.length?(bg("i18n.languages were undefined or empty",e.languages),!0):e.hasLoadedNamespace(t,{lng:r.lng,precheck:(n,i)=>{var a;if(((a=r.bindI18n)==null?void 0:a.indexOf("languageChanging"))>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!i(n.isLanguageChangingTo,t))return!1}}),$a=t=>typeof t=="string",qz=t=>typeof t=="object"&&t!==null,Yz=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Xz={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Zz=t=>Xz[t];let Cg={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(Yz,Zz)};const Kz=(t={})=>{Cg={...Cg,...t}},Qz=()=>Cg;let Kx;const Jz=t=>{Kx=t},ej=()=>Kx,tj={type:"3rdParty",init(t){Kz(t.options.react),Jz(t)}},rj=F.createContext();class nj{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const ij=(t,e)=>{const r=F.useRef();return F.useEffect(()=>{r.current=t},[t,e]),r.current},Qx=(t,e,r,n)=>t.getFixedT(e,r,n),aj=(t,e,r,n)=>F.useCallback(Qx(t,e,r,n),[t,e,r,n]),Dr=(t,e={})=>{var _,C,w,x;const{i18n:r}=e,{i18n:n,defaultNS:i}=F.useContext(rj)||{},a=r||n||ej();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new nj),!a){bg("You will need to pass in an i18next instance by using initReactI18next");const D=(T,E)=>$a(E)?E:qz(E)&&$a(E.defaultValue)?E.defaultValue:Array.isArray(T)?T[T.length-1]:T,S=[D,{},!1];return S.t=D,S.i18n={},S.ready=!1,S}(_=a.options.react)!=null&&_.wait&&bg("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...Qz(),...a.options.react,...e},{useSuspense:s,keyPrefix:l}=o;let u=i||((C=a.options)==null?void 0:C.defaultNS);u=$a(u)?[u]:u||["translation"],(x=(w=a.reportNamespaces).addUsedNamespaces)==null||x.call(w,u);const f=(a.isInitialized||a.initializedStoreOnce)&&u.every(D=>Uz(D,a,o)),c=aj(a,e.lng||null,o.nsMode==="fallback"?u:u[0],l),d=()=>c,h=()=>Qx(a,e.lng||null,o.nsMode==="fallback"?u:u[0],l),[v,g]=F.useState(d);let p=u.join();e.lng&&(p=`${e.lng}${p}`);const m=ij(p),y=F.useRef(!0);F.useEffect(()=>{const{bindI18n:D,bindI18nStore:S}=o;y.current=!0,!f&&!s&&(e.lng?Zx(a,e.lng,u,()=>{y.current&&g(h)}):Xx(a,u,()=>{y.current&&g(h)})),f&&m&&m!==p&&y.current&&g(h);const T=()=>{y.current&&g(h)};return D&&(a==null||a.on(D,T)),S&&(a==null||a.store.on(S,T)),()=>{y.current=!1,a&&(D==null||D.split(" ").forEach(E=>a.off(E,T))),S&&a&&S.split(" ").forEach(E=>a.store.off(E,T))}},[a,p]),F.useEffect(()=>{y.current&&f&&g(d)},[a,l,f]);const b=[v,a,f];if(b.t=v,b.i18n=a,b.ready=f,f||!f&&!s)return b;throw new Promise(D=>{e.lng?Zx(a,e.lng,u,()=>D()):Xx(a,u,()=>D())})},Jx=["numbered-list","bulleted-list"],gc=["left","center","right","justify"],oj=({children:t})=>typeof document=="object"?Da.createPortal(t,document.body):null,sj=({defaultValue:t,onChange:e})=>{const{t:r}=Dr(),n=F.useCallback(s=>A.jsx(uj,{...s}),[]),i=F.useCallback(s=>A.jsx(fj,{...s}),[]),a=F.useMemo(()=>b6(m6(b4())),[]),o=Ux(s=>{e==null||e(s)},300);return A.jsx("div",{style:{width:"100%",height:"100%"},children:A.jsxs(p6,{editor:a,initialValue:t,onChange:o,children:[A.jsx(cj,{}),A.jsx(o6,{style:{width:"100%",height:"100%",outline:"none"},renderElement:n,renderLeaf:i,spellCheck:!0,autoFocus:!0,placeholder:r("pleaseEnter"),onDOMBeforeInput:s=>{switch(s.inputType){case"formatBold":return s.preventDefault(),mc(a,"bold");case"formatItalic":return s.preventDefault(),mc(a,"italic");case"formatUnderline":return s.preventDefault(),mc(a,"underlined")}}})]})})},lj=(t,e)=>{const r=eD(t,e,gc.includes(e)?"align":"type"),n=Jx.includes(e);oe.unwrapNodes(t,{match:a=>!O.isEditor(a)&&ye.isElement(a)&&Jx.includes(a.type)&&!gc.includes(e),split:!0});const i={};if(gc.includes(e)?i.align=r?void 0:e:i.type=r?"paragraph":n?"list-item":e,oe.setNodes(t,i),!r&&n){const a={type:e,children:[]};oe.wrapNodes(t,a)}},mc=(t,e)=>{tD(t,e)?O.removeMark(t,e):O.addMark(t,e,!0)},eD=(t,e,r="type")=>{const{selection:n}=t;if(!n)return!1;const[i]=Array.from(O.nodes(t,{at:O.unhangRange(t,n),match:a=>!O.isEditor(a)&&ye.isElement(a)&&a[r]===e}));return!!i},tD=(t,e)=>{const r=O.marks(t);return r?r[e]===!0:!1},uj=({attributes:t,children:e,element:r})=>{const n={textAlign:r.align};switch(r.type){case"block-quote":return A.jsx("blockquote",{style:n,...t,children:e});case"bulleted-list":return A.jsx("ul",{style:n,...t,children:e});case"heading-one":return A.jsx("h1",{style:n,...t,children:e});case"heading-two":return A.jsx("h2",{style:n,...t,children:e});case"list-item":return A.jsx("li",{style:n,...t,children:e});case"numbered-list":return A.jsx("ol",{style:n,...t,children:e});default:return A.jsx("p",{style:n,...t,children:e})}},fj=({attributes:t,children:e,leaf:r})=>(r.bold&&(e=A.jsx("strong",{children:e})),r.code&&(e=A.jsx("code",{children:e})),r.italic&&(e=A.jsx("em",{children:e})),r.underline&&(e=A.jsx("u",{children:e})),A.jsx("span",{...t,children:e})),cj=()=>{const t=F.useRef(null),e=fc(),r=c6();return F.useEffect(()=>{const n=t.current,{selection:i}=e;if(!n)return;if(!i||!r||te.isCollapsed(i)||O.string(e,i)===""){n.removeAttribute("style");return}const a=window.getSelection(),o=a==null?void 0:a.getRangeAt(0),s=o==null?void 0:o.getBoundingClientRect();n.style.opacity="1",s&&(n.style.top=`${s.top+window.pageYOffset-n.offsetHeight}px`,n.style.left=`${s.left+window.pageXOffset-n.offsetWidth/2+s.width/2}px`)}),A.jsx(oj,{children:A.jsxs("div",{ref:t,className:"editor-menu",onMouseDown:n=>{n.preventDefault()},children:[A.jsx(_g,{format:"bold",icon:A.jsx(Fx,{})}),A.jsx(_g,{format:"italic",icon:A.jsx(jx,{})}),A.jsx(_g,{format:"underline",icon:A.jsx($x,{})}),A.jsx(cs,{format:"numbered-list",icon:A.jsx(Vx,{})}),A.jsx(cs,{format:"bulleted-list",icon:A.jsx(Gx,{})}),A.jsx(cs,{format:"left",icon:A.jsx(Ix,{})}),A.jsx(cs,{format:"center",icon:A.jsx(Bx,{})}),A.jsx(cs,{format:"right",icon:A.jsx(Nx,{})}),A.jsx(cs,{format:"justify",icon:A.jsx(kx,{})})]})})},_g=({format:t,icon:e})=>{const r=fc();return A.jsx(Z.Button,{onClick:()=>mc(r,t),icon:e,color:tD(r,t)?"primary":"default",variant:"text"})},cs=({format:t,icon:e})=>{const r=fc();return A.jsx(Z.Button,{color:eD(r,t,gc.includes(t)?"align":"type")?"primary":"default",icon:e,variant:"text",onClick:()=>{lj(r,t)}})},dj=({defaultValue:t,onChange:e})=>A.jsx("div",{style:{width:"100%",height:"100%",overflowY:"auto",padding:"0 10px"},children:A.jsx(sj,{defaultValue:t,onChange:e})});var yc={},wg={},xg={};Object.defineProperty(xg,"__esModule",{value:!0}),xg.default=hj;function hj(t,e){if(t===e)return!0;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var i=Object.prototype.hasOwnProperty,a=0;a<r.length;a++)if(!i.call(e,r[a])||t[r[a]]!==e[r[a]])return!1;return!0}var Dg={},rD={exports:{}},Ot=rD.exports={},Nn,Fn;function Sg(){throw new Error("setTimeout has not been defined")}function Eg(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Nn=setTimeout:Nn=Sg}catch{Nn=Sg}try{typeof clearTimeout=="function"?Fn=clearTimeout:Fn=Eg}catch{Fn=Eg}})();function nD(t){if(Nn===setTimeout)return setTimeout(t,0);if((Nn===Sg||!Nn)&&setTimeout)return Nn=setTimeout,setTimeout(t,0);try{return Nn(t,0)}catch{try{return Nn.call(null,t,0)}catch{return Nn.call(this,t,0)}}}function vj(t){if(Fn===clearTimeout)return clearTimeout(t);if((Fn===Eg||!Fn)&&clearTimeout)return Fn=clearTimeout,clearTimeout(t);try{return Fn(t)}catch{try{return Fn.call(null,t)}catch{return Fn.call(this,t)}}}var vi=[],ds=!1,Ga,bc=-1;function pj(){!ds||!Ga||(ds=!1,Ga.length?vi=Ga.concat(vi):bc=-1,vi.length&&iD())}function iD(){if(!ds){var t=nD(pj);ds=!0;for(var e=vi.length;e;){for(Ga=vi,vi=[];++bc<e;)Ga&&Ga[bc].run();bc=-1,e=vi.length}Ga=null,ds=!1,vj(t)}}Ot.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];vi.push(new aD(t,e)),vi.length===1&&!ds&&nD(iD)};function aD(t,e){this.fun=t,this.array=e}aD.prototype.run=function(){this.fun.apply(null,this.array)},Ot.title="browser",Ot.browser=!0,Ot.env={},Ot.argv=[],Ot.version="",Ot.versions={};function pi(){}Ot.on=pi,Ot.addListener=pi,Ot.once=pi,Ot.off=pi,Ot.removeListener=pi,Ot.removeAllListeners=pi,Ot.emit=pi,Ot.prependListener=pi,Ot.prependOnceListener=pi,Ot.listeners=function(t){return[]},Ot.binding=function(t){throw new Error("process.binding is not supported")},Ot.cwd=function(){return"/"},Ot.chdir=function(t){throw new Error("process.chdir is not supported")},Ot.umask=function(){return 0};var gj=rD.exports;Object.defineProperty(Dg,"__esModule",{value:!0}),Dg.default=Cj;var mj=gj,yj=bj(mj);function bj(t){return t&&t.__esModule?t:{default:t}}function Cj(t,e){var r=[],n=0,i=!0;function a(s){function l(){e&&e(s,r)}i?yj.default.nextTick(l):l()}function o(s,l){r.push(l),++n>=t.length||s?a(s):t[n](o)}t.length>0?t[0](o):a(null),i=!1}var Ag={};Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.default=wj;var _j=function(){};function wj(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_j;t()?e(function n(i){for(var a=arguments.length,o=Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];i?r(i):t.apply(this,o)?e(n):r(null)}):r(null)}var Tg={};Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.default=xj;function xj(t,e){var r=void 0,n=void 0,i=void 0,a=void 0,o=0;function s(){a=0,o=+new Date,i=t.apply(r,n),r=null,n=null}return function(){r=this,n=arguments;var u=new Date-o;return a||(u>=e?s():a=setTimeout(s,e-u)),i}}var Og={};Object.defineProperty(Og,"__esModule",{value:!0}),Og.default=Sj;var Dj=0;function Sj(){return Dj++}var Cc={};Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.innerHeight=Ej,Cc.innerWidth=Aj;function Ej(t){var e=window.getComputedStyle(t,null);return e?t.clientHeight-parseInt(e.getPropertyValue("padding-top"),10)-parseInt(e.getPropertyValue("padding-bottom"),10):t.clientHeight}function Aj(t){var e=window.getComputedStyle(t,null);return e?t.clientWidth-parseInt(e.getPropertyValue("padding-left"),10)-parseInt(e.getPropertyValue("padding-right"),10):t.clientWidth}Object.defineProperty(wg,"__esModule",{value:!0});var oD=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tj=function(){function t(e,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Oj=F,Rg=Ua(Oj),Rj=si,$i=Ua(Rj),Mj=xg,Pj=Ua(Mj),Bj=Dg,Ij=Ua(Bj),Nj=Ag,sD=Ua(Nj),Fj=Tg,Lj=Ua(Fj),kj=Og,lD=Ua(kj),uD=Cc;function Ua(t){return t&&t.__esModule?t:{default:t}}function zj(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function jj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hj(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Vj(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function fD(t,e){return t.scrollWidth-1<=e}function cD(t,e){return t.scrollHeight-1<=e}function Wj(){}var Mg=function(t){Vj(e,t);function e(r){jj(this,e);var n=Hj(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r));return n.state={fontSize:null,ready:!1},n.handleWindowResize=function(){n.process()},"perfectFit"in r&&console.warn("TextFit property perfectFit has been removed."),n.handleWindowResize=(0,Lj.default)(n.handleWindowResize,r.throttle),n}return Tj(e,[{key:"componentDidMount",value:function(){var n=this.props.autoResize;n&&window.addEventListener("resize",this.handleWindowResize),this.process()}},{key:"componentDidUpdate",value:function(n){var i=this.state.ready;i&&((0,Pj.default)(this.props,n)||this.process())}},{key:"componentWillUnmount",value:function(){var n=this.props.autoResize;n&&window.removeEventListener("resize",this.handleWindowResize),this.pid=(0,lD.default)()}},{key:"process",value:function(){var n=this,i=this.props,a=i.min,o=i.max,s=i.mode,l=i.forceSingleModeWidth,u=i.onReady,f=this._parent,c=this._child,d=(0,uD.innerWidth)(f),h=(0,uD.innerHeight)(f);if(h<=0||isNaN(h)){console.warn("Can not process element without height. Make sure the element is displayed and has a static height.");return}if(d<=0||isNaN(d)){console.warn("Can not process element without width. Make sure the element is displayed and has a static width.");return}var v=(0,lD.default)();this.pid=v;var g=function(){return v!==n.pid},p=s==="multi"?function(){return cD(c,h)}:function(){return fD(c,d)},m=s==="multi"?function(){return fD(c,d)}:function(){return cD(c,h)},y=void 0,b=a,_=o;this.setState({ready:!1}),(0,Ij.default)([function(C){return(0,sD.default)(function(){return b<=_},function(w){if(g())return w(!0);y=parseInt((b+_)/2,10),n.setState({fontSize:y},function(){return g()?w(!0):(p()?b=y+1:_=y-1,w())})},C)},function(C){return s==="single"&&l||m()?C():(b=a,_=y,(0,sD.default)(function(){return b<_},function(w){if(g())return w(!0);y=parseInt((b+_)/2,10),n.setState({fontSize:y},function(){return v!==n.pid?w(!0):(m()?b=y+1:_=y-1,w())})},C))},function(C){if(y=Math.min(b,_),y=Math.max(y,a),y=Math.min(y,o),y=Math.max(y,0),g())return C(!0);n.setState({fontSize:y},C)}],function(C){C||g()||n.setState({ready:!0},function(){return u(y)})})}},{key:"render",value:function(){var n=this,i=this.props,a=i.children,o=i.text,s=i.style;i.min,i.max;var l=i.mode;i.forceWidth,i.forceSingleModeWidth,i.throttle,i.autoResize,i.onReady;var u=zj(i,["children","text","style","min","max","mode","forceWidth","forceSingleModeWidth","throttle","autoResize","onReady"]),f=this.state,c=f.fontSize,d=f.ready,h=oD({},s,{fontSize:c}),v={display:d?"block":"inline-block"};return l==="single"&&(v.whiteSpace="nowrap"),Rg.default.createElement("div",oD({ref:function(p){return n._parent=p},style:h},u),Rg.default.createElement("div",{ref:function(p){return n._child=p},style:v},o&&typeof a=="function"?d?a(o):o:a))}}]),e}(Rg.default.Component);Mg.propTypes={children:$i.default.node,text:$i.default.string,min:$i.default.number,max:$i.default.number,mode:$i.default.oneOf(["single","multi"]),forceSingleModeWidth:$i.default.bool,throttle:$i.default.number,onReady:$i.default.func},Mg.defaultProps={min:1,max:100,mode:"multi",forceSingleModeWidth:!0,throttle:50,autoResize:!0,onReady:Wj},wg.default=Mg,Object.defineProperty(yc,"__esModule",{value:!0});var Pg=yc.Textfit=void 0,$j=wg,dD=Gj($j);function Gj(t){return t&&t.__esModule?t:{default:t}}Pg=yc.Textfit=dD.default,yc.default=dD.default;function Uj({rdate:t,u:e,field:r,value:n}){if(t)switch(t){case"exactdate":return`${r}${e}eq.${n}`;case"today":return`${r}${e}eq.${new Date().toISOString().split("T")[0]}`;case"yesterday":{const i=new Date;return i.setDate(i.getDate()-1),`${r}${e}eq.${i.toISOString().split("T")[0]}`}case"thisweek":{const i=new Date,a=new Date(i.setDate(i.getDate()-i.getDay()));return`${r}${e}gte.${a.toISOString().split("T")[0]}`}case"lastweek":{const i=new Date,a=new Date(i.setDate(i.getDate()-i.getDay()-7)),o=new Date(i.setDate(i.getDate()+6));return`${r}${e}gte.${a.toISOString().split("T")[0]}&${r}${e}lte.${o.toISOString().split("T")[0]}`}case"thismonth":{const i=new Date,a=new Date(i.getFullYear(),i.getMonth(),1),o=new Date(i.getFullYear(),i.getMonth()+1,0);return`${r}${e}gte.${a.toISOString().split("T")[0]}&${r}${e}lte.${o.toISOString().split("T")[0]}`}case"lastmonth":{const i=new Date,a=new Date(i.getFullYear(),i.getMonth()-1,1),o=new Date(i.getFullYear(),i.getMonth(),0);return`${r}${e}gte.${a.toISOString().split("T")[0]}&${r}${e}lte.${o.toISOString().split("T")[0]}`}case"last7days":{const i=new Date,a=new Date(i.setDate(i.getDate()-7));return`${r}${e}gte.${a.toISOString().split("T")[0]}`}case"last30days":{const i=new Date,a=new Date(i.setDate(i.getDate()-30));return`${r}${e}gte.${a.toISOString().split("T")[0]}`}default:return""}}const Bg=t=>{const{conditionList:e,conditionType:r="all"}=t,n=r==="all"?"=":".",i=e.map(o=>{const{field:s,condition:l,val:u,val2:f,rdate:c,type:d}=o,h=u!=null&&u.value?u==null?void 0:u.value:u;switch(l){case"=":return d!=="timestamp"?`${s}${n}eq.${h}`:c==="exactdate"?`${s}${n}eq.${h}`:Uj({rdate:c,u:n,field:s,value:h});case"!=":return`${s}${n}neq.${h}`;case"include":return`${s}${n}cs.{${h}}`;case"notinclude":return`${s}${n}not.cs.{${h}}`;case">":if(c==="today")return`${s}${n}gt.${new Date().toISOString().split("T")[0]}`;if(c==="yesterday"){const v=new Date;return v.setDate(v.getDate()-1),`${s}${n}gt.${v.toISOString().split("T")[0]}`}return`${s}${n}gt.${h}`;case">=":return`${s}${n}gte.${h}`;case"<":if(c==="today")return`${s}${n}lt.${new Date().toISOString().split("T")[0]}`;if(c==="yesterday"){const v=new Date;return v.setDate(v.getDate()-1),`${s}${n}lt.${v.toISOString().split("T")[0]}`}return`${s}${n}lt.${h}`;case"<=":return`${s}${n}lte.${h}`;case"contain":return h&&f?`${s}${n}gte.${h},${s}.lte.${f}`:"";case"before":return`${s}${n}lt.${h}`;case"after":return`${s}${n}gt.${h}`;case"null":return`${s}${n}is.null`;case"notnull":return`${s}${n}not.is.null`;default:return""}}).filter(Boolean);let a;return r==="all"||i.length===1?a=i.join("&"):a=`or=(${i.join(",")})`,a};function qj(t,e=0){if(!Number.isFinite(t))throw new Error("Value must be a finite number.");return new Intl.NumberFormat(void 0,{style:"percent",minimumFractionDigits:e,maximumFractionDigits:e}).format(t)}function Gl(t,e=0){if(!Number.isFinite(t))return"";const r=new Intl.NumberFormat(void 0,{minimumFractionDigits:0,maximumFractionDigits:e}).format(t),[n,i]=r.split("."),a=(i||"").padEnd(e,"0");return`${n}${e>0?".":""}${a}`}const hD=({moduleDataApi:t,customData:e,customeStyle:r,width:n,height:i})=>{const[a,o]=F.useState(),s=F.useRef(),[l,u]=F.useState(!1),f=F.useCallback(async()=>{var v,g;if(e){let p="";u(!0),e.statisticalMethod==="fieldValue"&&e.field?p+=`select=${e.field}.${e==null?void 0:e.statisticalType}()`:e.statisticalMethod==="recordTotal"&&(p+="select=id.count()"),e!=null&&e.conditionData&&((g=(v=e==null?void 0:e.conditionData)==null?void 0:v.conditionList)==null?void 0:g.length)>0&&(p+=`&${Bg(e==null?void 0:e.conditionData)}`),e!=null&&e.dataSourceId&&(t==null||t({id:e==null?void 0:e.dataSourceId,query:p}).then(m=>{if(!m.success){Z.message.error(m.message);return}o(m.data)}).finally(()=>{u(!1)}))}else o([])},[e==null?void 0:e.conditionData,e==null?void 0:e.statisticalMethod,e==null?void 0:e.statisticalType,e==null?void 0:e.field,e==null?void 0:e.dataSourceId]);F.useEffect(()=>{e&&f()},[e==null?void 0:e.conditionData,e==null?void 0:e.statisticalMethod,e==null?void 0:e.statisticalType,e==null?void 0:e.field,e==null?void 0:e.dataSourceId]);const c=F.useMemo(()=>{var b,_,C,w,x;if(!a)return"";const v=a,{statisticalMethod:g,statisticalType:p,field:m}=e||{};let y=0;if(v.length&&g==="fieldValue"&&m)switch(p){case"sum":y=((b=v==null?void 0:v[0])==null?void 0:b.sum)||0;break;case"max":y=((_=v==null?void 0:v[0])==null?void 0:_.max)||0;break;case"min":y=((C=v==null?void 0:v[0])==null?void 0:C.min)||0;break;case"avg":y=((w=v==null?void 0:v[0])==null?void 0:w.avg)||0;break;default:y=0}else g==="recordTotal"&&(y=((x=v==null?void 0:v[0])==null?void 0:x.count)||0);if(r!=null&&r.unit){const{unit:D,precision:S}=r;switch(D){case"4":y=`¥${Gl(y,S)}`;break;case"5":y=`$${Gl(y,S)}`;break;case"1":y=Gl(y,S);break;case"3":y=qj(y,S);break;default:y=Gl(y,S)}}else y=Gl(y,r==null?void 0:r.precision);return y},[a,e,r]),[d,h]=F.useState("100%");return F.useEffect(()=>{const v=()=>{s.current&&h(s.current.offsetWidth)};return v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[n,i]),A.jsx("div",{ref:s,style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:A.jsx(Z.Spin,{spinning:l,children:A.jsxs("div",{style:{display:"flex",flexWrap:"wrap",height:"100%",width:d},children:[c!==""?A.jsx("div",{className:"stat-text",style:{color:r==null?void 0:r.color,textAlign:"center",lineHeight:"normal",marginBottom:r!=null&&r.desc?0:"auto",marginTop:"auto",padding:"0 20px",width:d},children:A.jsx(Pg,{mode:"single",children:c})}):null,r!=null&&r.desc?A.jsx("div",{className:"stat-description-text",style:{color:r==null?void 0:r.color,textAlign:"center",marginTop:"15px"},children:A.jsx(Pg,{mode:"single",max:25,children:r==null?void 0:r.desc})}):null]})})})};var _c,Se,vD,pD,hs,qa,gD,mD,yD,wc={},bD=[],Yj=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Gi(t,e){for(var r in e)t[r]=e[r];return t}function CD(t){var e=t.parentNode;e&&e.removeChild(t)}function re(t,e,r){var n,i,a,o={};for(a in e)a=="key"?n=e[a]:a=="ref"?i=e[a]:o[a]=e[a];if(arguments.length>2&&(o.children=arguments.length>3?_c.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(a in t.defaultProps)o[a]===void 0&&(o[a]=t.defaultProps[a]);return xc(t,o,n,i,null)}function xc(t,e,r,n,i){var a={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++vD};return i==null&&Se.vnode!=null&&Se.vnode(a),a}function gi(){return{current:null}}function Rt(t){return t.children}function Xj(t,e,r,n,i){var a;for(a in r)a==="children"||a==="key"||a in e||Dc(t,a,null,r[a],n);for(a in e)i&&typeof e[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||r[a]===e[a]||Dc(t,a,e[a],r[a],n)}function _D(t,e,r){e[0]==="-"?t.setProperty(e,r??""):t[e]=r==null?"":typeof r!="number"||Yj.test(e)?r:r+"px"}function Dc(t,e,r,n,i){var a;e:if(e==="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||_D(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||_D(t.style,e,r[e])}else if(e[0]==="o"&&e[1]==="n")a=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+a]=r,r?n||t.addEventListener(e,a?xD:wD,a):t.removeEventListener(e,a?xD:wD,a);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]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,r))}}function wD(t){hs=!0;try{return this.l[t.type+!1](Se.event?Se.event(t):t)}finally{hs=!1}}function xD(t){hs=!0;try{return this.l[t.type+!0](Se.event?Se.event(t):t)}finally{hs=!1}}function Hr(t,e){this.props=t,this.context=e}function Ul(t,e){if(e==null)return t.__?Ul(t.__,t.__.__k.indexOf(t)+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?Ul(t):null}function DD(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return DD(t)}}function Zj(t){hs?setTimeout(t):mD(t)}function Ig(t){(!t.__d&&(t.__d=!0)&&qa.push(t)&&!Sc.__r++||gD!==Se.debounceRendering)&&((gD=Se.debounceRendering)||Zj)(Sc)}function Sc(){var t,e,r,n,i,a,o,s;for(qa.sort(function(l,u){return l.__v.__b-u.__v.__b});t=qa.shift();)t.__d&&(e=qa.length,n=void 0,i=void 0,o=(a=(r=t).__v).__e,(s=r.__P)&&(n=[],(i=Gi({},a)).__v=a.__v+1,Ng(s,a,i,r.__n,s.ownerSVGElement!==void 0,a.__h!=null?[o]:null,n,o??Ul(a),a.__h),OD(n,a),a.__e!=o&&DD(a)),qa.length>e&&qa.sort(function(l,u){return l.__v.__b-u.__v.__b}));Sc.__r=0}function SD(t,e,r,n,i,a,o,s,l,u){var f,c,d,h,v,g,p,m=n&&n.__k||bD,y=m.length;for(r.__k=[],f=0;f<e.length;f++)if((h=r.__k[f]=(h=e[f])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?xc(null,h,null,null,h):Array.isArray(h)?xc(Rt,{children:h},null,null,null):h.__b>0?xc(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null){if(h.__=r,h.__b=r.__b+1,(d=m[f])===null||d&&h.key==d.key&&h.type===d.type)m[f]=void 0;else for(c=0;c<y;c++){if((d=m[c])&&h.key==d.key&&h.type===d.type){m[c]=void 0;break}d=null}Ng(t,h,d=d||wc,i,a,o,s,l,u),v=h.__e,(c=h.ref)&&d.ref!=c&&(p||(p=[]),d.ref&&p.push(d.ref,null,h),p.push(c,h.__c||v,h)),v!=null?(g==null&&(g=v),typeof h.type=="function"&&h.__k===d.__k?h.__d=l=ED(h,l,t):l=AD(t,h,d,m,v,l),typeof r.type=="function"&&(r.__d=l)):l&&d.__e==l&&l.parentNode!=t&&(l=Ul(d))}for(r.__e=g,f=y;f--;)m[f]!=null&&(typeof r.type=="function"&&m[f].__e!=null&&m[f].__e==r.__d&&(r.__d=TD(n).nextSibling),MD(m[f],m[f]));if(p)for(f=0;f<p.length;f++)RD(p[f],p[++f],p[++f])}function ED(t,e,r){for(var n,i=t.__k,a=0;i&&a<i.length;a++)(n=i[a])&&(n.__=t,e=typeof n.type=="function"?ED(n,e,r):AD(r,n,n,i,n.__e,e));return e}function Ec(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(r){Ec(r,e)}):e.push(t)),e}function AD(t,e,r,n,i,a){var o,s,l;if(e.__d!==void 0)o=e.__d,e.__d=void 0;else if(r==null||i!=a||i.parentNode==null)e:if(a==null||a.parentNode!==t)t.appendChild(i),o=null;else{for(s=a,l=0;(s=s.nextSibling)&&l<n.length;l+=1)if(s==i)break e;t.insertBefore(i,a),o=a}return o!==void 0?o:i.nextSibling}function TD(t){var e,r,n;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((r=t.__k[e])&&(n=TD(r)))return n}return null}function Ng(t,e,r,n,i,a,o,s,l){var u,f,c,d,h,v,g,p,m,y,b,_,C,w,x,D=e.type;if(e.constructor!==void 0)return null;r.__h!=null&&(l=r.__h,s=e.__e=r.__e,e.__h=null,a=[s]),(u=Se.__b)&&u(e);try{e:if(typeof D=="function"){if(p=e.props,m=(u=D.contextType)&&n[u.__c],y=u?m?m.props.value:u.__:n,r.__c?g=(f=e.__c=r.__c).__=f.__E:("prototype"in D&&D.prototype.render?e.__c=f=new D(p,y):(e.__c=f=new Hr(p,y),f.constructor=D,f.render=Qj),m&&m.sub(f),f.props=p,f.state||(f.state={}),f.context=y,f.__n=n,c=f.__d=!0,f.__h=[],f._sb=[]),f.__s==null&&(f.__s=f.state),D.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Gi({},f.__s)),Gi(f.__s,D.getDerivedStateFromProps(p,f.__s))),d=f.props,h=f.state,f.__v=e,c)D.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(D.getDerivedStateFromProps==null&&p!==d&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(p,y),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(p,f.__s,y)===!1||e.__v===r.__v){for(e.__v!==r.__v&&(f.props=p,f.state=f.__s,f.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.forEach(function(S){S&&(S.__=e)}),b=0;b<f._sb.length;b++)f.__h.push(f._sb[b]);f._sb=[],f.__h.length&&o.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(p,f.__s,y),f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(d,h,v)})}if(f.context=y,f.props=p,f.__P=t,_=Se.__r,C=0,"prototype"in D&&D.prototype.render){for(f.state=f.__s,f.__d=!1,_&&_(e),u=f.render(f.props,f.state,f.context),w=0;w<f._sb.length;w++)f.__h.push(f._sb[w]);f._sb=[]}else do f.__d=!1,_&&_(e),u=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++C<25);f.state=f.__s,f.getChildContext!=null&&(n=Gi(Gi({},n),f.getChildContext())),c||f.getSnapshotBeforeUpdate==null||(v=f.getSnapshotBeforeUpdate(d,h)),x=u!=null&&u.type===Rt&&u.key==null?u.props.children:u,SD(t,Array.isArray(x)?x:[x],e,r,n,i,a,o,s,l),f.base=e.__e,e.__h=null,f.__h.length&&o.push(f),g&&(f.__E=f.__=null),f.__e=!1}else a==null&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=Kj(r.__e,e,r,n,i,a,o,l);(u=Se.diffed)&&u(e)}catch(S){e.__v=null,(l||a!=null)&&(e.__e=s,e.__h=!!l,a[a.indexOf(s)]=null),Se.__e(S,e,r)}}function OD(t,e){Se.__c&&Se.__c(e,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(n){n.call(r)})}catch(n){Se.__e(n,r.__v)}})}function Kj(t,e,r,n,i,a,o,s){var l,u,f,c=r.props,d=e.props,h=e.type,v=0;if(h==="svg"&&(i=!0),a!=null){for(;v<a.length;v++)if((l=a[v])&&"setAttribute"in l==!!h&&(h?l.localName===h:l.nodeType===3)){t=l,a[v]=null;break}}if(t==null){if(h===null)return document.createTextNode(d);t=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),a=null,s=!1}if(h===null)c===d||s&&t.data===d||(t.data=d);else{if(a=a&&_c.call(t.childNodes),u=(c=r.props||wc).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!s){if(a!=null)for(c={},v=0;v<t.attributes.length;v++)c[t.attributes[v].name]=t.attributes[v].value;(f||u)&&(f&&(u&&f.__html==u.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(Xj(t,d,c,i,s),f)e.__k=[];else if(v=e.props.children,SD(t,Array.isArray(v)?v:[v],e,r,n,i&&h!=="foreignObject",a,o,a?a[0]:r.__k&&Ul(r,0),s),a!=null)for(v=a.length;v--;)a[v]!=null&&CD(a[v]);s||("value"in d&&(v=d.value)!==void 0&&(v!==t.value||h==="progress"&&!v||h==="option"&&v!==c.value)&&Dc(t,"value",v,c.value,!1),"checked"in d&&(v=d.checked)!==void 0&&v!==t.checked&&Dc(t,"checked",v,c.checked,!1))}return t}function RD(t,e,r){try{typeof t=="function"?t(e):t.current=e}catch(n){Se.__e(n,r)}}function MD(t,e,r){var n,i;if(Se.unmount&&Se.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||RD(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){Se.__e(a,e)}n.base=n.__P=null,t.__c=void 0}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&MD(n[i],e,r||typeof t.type!="function");r||t.__e==null||CD(t.__e),t.__=t.__e=t.__d=void 0}function Qj(t,e,r){return this.constructor(t,r)}function ql(t,e,r){var n,i,a;Se.__&&Se.__(t,e),i=(n=typeof r=="function")?null:e.__k,a=[],Ng(e,t=(!n&&r||e).__k=re(Rt,null,[t]),i||wc,wc,e.ownerSVGElement!==void 0,!n&&r?[r]:i?null:e.firstChild?_c.call(e.childNodes):null,a,!n&&r?r:i?i.__e:e.firstChild,n),OD(a,t)}function Jj(t,e){var r={__c:e="__cC"+yD++,__:t,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,a;return this.getChildContext||(i=[],(a={})[e]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(function(s){s.__e=!0,Ig(s)})},this.sub=function(o){i.push(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),s&&s.call(o)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}_c=bD.slice,Se={__e:function(t,e,r,n){for(var i,a,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,n||{}),o=i.__d),o)return i.__E=i}catch(s){t=s}throw t}},vD=0,pD=function(t){return t!=null&&t.constructor===void 0},hs=!1,Hr.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Gi({},this.state),typeof t=="function"&&(t=t(Gi({},r),this.props)),t&&Gi(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ig(this))},Hr.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ig(this))},Hr.prototype.render=Rt,qa=[],mD=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Sc.__r=0,yD=0;var Ln,Fg,PD,BD=[],Lg=[],ID=Se.__b,ND=Se.__r,FD=Se.diffed,LD=Se.__c,kD=Se.unmount;function e9(){for(var t;t=BD.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ac),t.__H.__h.forEach(kg),t.__H.__h=[]}catch(e){t.__H.__h=[],Se.__e(e,t.__v)}}Se.__b=function(t){Ln=null,ID&&ID(t)},Se.__r=function(t){ND&&ND(t);var e=(Ln=t.__c).__H;e&&(Fg===Ln?(e.__h=[],Ln.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Lg,r.__N=r.i=void 0})):(e.__h.forEach(Ac),e.__h.forEach(kg),e.__h=[])),Fg=Ln},Se.diffed=function(t){FD&&FD(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(BD.push(e)!==1&&PD===Se.requestAnimationFrame||((PD=Se.requestAnimationFrame)||t9)(e9)),e.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Lg&&(r.__=r.__V),r.i=void 0,r.__V=Lg})),Fg=Ln=null},Se.__c=function(t,e){e.some(function(r){try{r.__h.forEach(Ac),r.__h=r.__h.filter(function(n){return!n.__||kg(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Se.__e(n,r.__v)}}),LD&&LD(t,e)},Se.unmount=function(t){kD&&kD(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ac(n)}catch(i){e=i}}),r.__H=void 0,e&&Se.__e(e,r.__v))};var zD=typeof requestAnimationFrame=="function";function t9(t){var e,r=function(){clearTimeout(n),zD&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);zD&&(e=requestAnimationFrame(r))}function Ac(t){var e=Ln,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Ln=e}function kg(t){var e=Ln;t.__c=t.__(),Ln=e}function r9(t,e){for(var r in e)t[r]=e[r];return t}function jD(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function HD(t){this.props=t}(HD.prototype=new Hr).isPureReactComponent=!0,HD.prototype.shouldComponentUpdate=function(t,e){return jD(this.props,t)||jD(this.state,e)};var VD=Se.__b;Se.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),VD&&VD(t)};var n9=Se.__e;Se.__e=function(t,e,r,n){if(t.then){for(var i,a=e;a=a.__;)if((i=a.__c)&&i.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),i.__c(t,e)}n9(t,e,r,n)};var WD=Se.unmount;function $D(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=r9({},t)).__c!=null&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return $D(n,e,r)})),t}function GD(t,e,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return GD(n,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}function zg(){this.__u=0,this.t=null,this.__b=null}function UD(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Tc(){this.u=null,this.o=null}Se.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),WD&&WD(t)},(zg.prototype=new Hr).__c=function(t,e){var r=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var i=UD(n.__v),a=!1,o=function(){a||(a=!0,r.__R=null,i?i(s):s())};r.__R=o;var s=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=GD(u,u.__c.__P,u.__c.__O)}var f;for(n.setState({__a:n.__b=null});f=n.t.pop();)f.forceUpdate()}},l=e.__h===!0;n.__u++||l||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(o,o)},zg.prototype.componentWillUnmount=function(){this.t=[]},zg.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=$D(this.__b,r,n.__O=n.__P)}this.__b=null}var i=e.__a&&re(Rt,null,t.fallback);return i&&(i.__h=null),[re(Rt,null,e.__a?null:t.children),i]};var qD=function(t,e,r){if(++r[1]===r[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(r=t.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.u=r=r[2]}};function i9(t){return this.getChildContext=function(){return t.context},t.children}function a9(t){var e=this,r=t.i;e.componentWillUnmount=function(){ql(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),t.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,i){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),ql(re(i9,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function o9(t,e){var r=re(a9,{__v:t,i:e});return r.containerInfo=e,r}(Tc.prototype=new Hr).__a=function(t){var e=this,r=UD(e.__v),n=e.o.get(t);return n[0]++,function(i){var a=function(){e.props.revealOrder?(n.push(i),qD(e,t,n)):i()};r?r(a):a()}},Tc.prototype.render=function(t){this.u=null,this.o=new Map;var e=Ec(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.o.set(e[r],this.u=[1,0,this.u]);return t.children},Tc.prototype.componentDidUpdate=Tc.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,r){qD(t,r,e)})};var s9=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,l9=/^(?: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]/,u9=typeof document<"u",f9=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Hr.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Hr.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var YD=Se.event;function c9(){}function d9(){return this.cancelBubble}function h9(){return this.defaultPrevented}Se.event=function(t){return YD&&(t=YD(t)),t.persist=c9,t.isPropagationStopped=d9,t.isDefaultPrevented=h9,t.nativeEvent=t};var XD={configurable:!0,get:function(){return this.class}},ZD=Se.vnode;Se.vnode=function(t){var e=t.type,r=t.props,n=r;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var a in n={},r){var o=r[a];u9&&a==="children"&&e==="noscript"||a==="value"&&"defaultValue"in r&&o==null||(a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&o===!0?o="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+e)&&!f9(r.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&l9.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():o===null&&(o=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),n[a]&&(a="oninputCapture")),n[a]=o)}e=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=Ec(r.children).forEach(function(s){s.props.selected=n.value.indexOf(s.props.value)!=-1})),e=="select"&&n.defaultValue!=null&&(n.value=Ec(r.children).forEach(function(s){s.props.selected=n.multiple?n.defaultValue.indexOf(s.props.value)!=-1:n.defaultValue==s.props.value})),t.props=n,r.class!=r.className&&(XD.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",XD))}t.$$typeof=s9,ZD&&ZD(t)};var KD=Se.__r;Se.__r=function(t){KD&&KD(t),t.__c};const QD=[],jg=new Map;function JD(t){QD.push(t),jg.forEach(e=>{tS(e,t)})}function v9(t){t.isConnected&&t.getRootNode&&eS(t.getRootNode())}function eS(t){let e=jg.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const r=g9();r&&(e.nonce=r);const n=t===document?document.head:t,i=t===document?n.querySelector("script,link[rel=stylesheet],link[as=style],style"):n.firstChild;n.insertBefore(e,i)}jg.set(t,e),p9(e)}}function p9(t){for(const e of QD)tS(t,e)}function tS(t,e){const{sheet:r}=t,n=r.cssRules.length;e.split("}").forEach((i,a)=>{i=i.trim(),i&&r.insertRule(i+"}",n+a)})}let Hg;function g9(){return Hg===void 0&&(Hg=m9()),Hg}function m9(){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"&&eS(document);var y9=':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/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-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;-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)}';JD(y9);class Vg{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:r}=this;r[e]=(r[e]||0)+1,this.clearTimeout()}resume(e="",r){let{pauseDepths:n}=this;e in n&&(r?delete n[e]:(n[e]-=1,n[e]<=0&&delete n[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 b9(t){t.parentNode&&t.parentNode.removeChild(t)}function mi(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(C9(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function C9(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function _9(t,e){let r=t instanceof HTMLElement?[t]:t,n=[];for(let i=0;i<r.length;i+=1){let a=r[i].querySelectorAll(e);for(let o=0;o<a.length;o+=1)n.push(a[o])}return n}const w9=/(top|left|right|bottom|width|height)$/i;function x9(t,e){for(let r in e)rS(t,r,e[r])}function rS(t,e,r){r==null?t.style[e]="":typeof r=="number"&&w9.test(e)?t.style[e]=`${r}px`:t.style[e]=r}function D9(t){var e,r;return(r=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&r!==void 0?r:t.target}let nS=0;function Oc(){return nS+=1,"fc-dom-"+nS}function S9(t,e){return r=>{let n=mi(r.target,t);n&&e.call(n,r,n)}}function iS(t,e,r,n){let i=S9(r,n);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function E9(t,e,r,n){let i;return iS(t,"mouseover",e,(a,o)=>{if(o!==i){i=o,r(a,o);let s=l=>{i=null,n(l,o),o.removeEventListener("mouseleave",s)};o.addEventListener("mouseleave",s)}})}function aS(t){return Object.assign({onClick:t},oS(t))}function oS(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let sS=0;function Ya(){return sS+=1,String(sS)}function A9(t){let e=[],r=[],n,i;for(typeof t=="string"?r=t.split(/\s*,\s*/):typeof t=="function"?r=[t]:Array.isArray(t)&&(r=t),n=0;n<r.length;n+=1)i=r[n],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 T9(t,e,r){let n,i;for(n=0;n<r.length;n+=1)if(i=O9(t,e,r[n]),i)return i;return 0}function O9(t,e,r){return r.func?r.func(t,e):R9(t[r.field],e[r.field])*(r.order||1)}function R9(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 Wg(t,e){let r=String(t);return"000".substr(0,e-r.length)+r}function Yl(t,e,r){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((n,i,a)=>n.replace("$"+a,i||""),t):r}function $g(t){return t%1===0}function M9(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),r=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!r)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+r.getBoundingClientRect().width}const P9=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function dt(t,e){return typeof t=="string"?B9(t):typeof t=="object"&&t?lS(t):typeof t=="number"?lS({[e||"milliseconds"]:t}):null}function B9(t){let e=P9.exec(t);if(e){let r=e[1]?-1:1;return{years:0,months:0,days:r*(e[2]?parseInt(e[2],10):0),milliseconds:r*((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 lS(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)},r=t.weeks||t.week;return r&&(e.days+=r*7,e.specifiedWeeks=!0),e}function I9(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function N9(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function F9(t){return vs(t)/365}function L9(t){return vs(t)/30}function vs(t){return Xl(t)/864e5}function Xl(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Gg(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 Ui(t,e,r){if(t===e)return!0;let n=t.length,i;if(n!==e.length)return!1;for(i=0;i<n;i+=1)if(!(r?r(t[i],e[i]):t[i]===e[i]))return!1;return!0}const k9=["sun","mon","tue","wed","thu","fri","sat"];function uS(t,e){let r=Yi(t);return r[2]+=e*7,Sr(r)}function Jt(t,e){let r=Yi(t);return r[2]+=e,Sr(r)}function qi(t,e){let r=Yi(t);return r[6]+=e,Sr(r)}function z9(t,e){return ps(t,e)/7}function ps(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function j9(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function H9(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function V9(t,e){return(e.valueOf()-t.valueOf())/1e3}function W9(t,e){let r=xt(t),n=xt(e);return{years:0,months:0,days:Math.round(ps(r,n)),milliseconds:e.valueOf()-n.valueOf()-(t.valueOf()-r.valueOf())}}function $9(t,e){let r=Rc(t,e);return r!==null&&r%7===0?r/7:null}function Rc(t,e){return Xi(t)===Xi(e)?Math.round(ps(t,e)):null}function xt(t){return Sr([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function G9(t){return Sr([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function U9(t){return Sr([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function q9(t){return Sr([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function Y9(t,e,r){let n=t.getUTCFullYear(),i=Ug(t,n,e,r);if(i<1)return Ug(t,n-1,e,r);let a=Ug(t,n+1,e,r);return a>=1?Math.min(i,a):i}function Ug(t,e,r,n){let i=Sr([e,0,1+X9(e,r,n)]),a=xt(t),o=Math.round(ps(i,a));return Math.floor(o/7)+1}function X9(t,e,r){let n=7+e-r;return-((7+Sr([t,0,n]).getUTCDay()-e)%7)+n-1}function fS(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 Yi(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Sr(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function dS(t){return!isNaN(t.valueOf())}function Xi(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function Z9(t,e,r=!1){let n=t.toISOString();return n=n.replace(".000",""),r&&(n=n.replace("T00:00:00Z","")),n.length>10&&(e==null?n=n.replace("Z",""):e!==0&&(n=n.replace("Z",Yg(e,!0)))),n}function qg(t){return t.toISOString().replace(/T.*$/,"")}function K9(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function Yg(t,e=!1){let r=t<0?"-":"+",n=Math.abs(t),i=Math.floor(n/60),a=Math.round(n%60);return e?`${r+Wg(i,2)}:${Wg(a,2)}`:`GMT${r}${i}${a?`:${Wg(a,2)}`:""}`}function it(t,e,r){let n,i;return function(...a){if(!n)i=t.apply(this,a);else if(!Ui(n,a)){let o=t.apply(this,a);(!e||!e(o,i))&&(i=o)}return n=a,i}}function Mc(t,e,r){let n,i;return a=>(n?kn(n,a)||(i=t.call(this,a)):i=t.call(this,a),n=a,i)}const hS={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Pc={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Bc=/\s*([ap])\.?m\.?/i,Q9=/,/g,J9=/\s+/g,e7=/\u200e/g,t7=/UTC|GMT/;class r7{constructor(e){let r={},n={},i=0;for(let a in e)a in hS?(n[a]=e[a],i=Math.max(hS[a],i)):(r[a]=e[a],a in Pc&&(i=Math.max(Pc[a],i)));this.standardDateProps=r,this.extendedSettings=n,this.severity=i,this.buildFormattingFunc=it(vS)}format(e,r){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,r)(e)}formatRange(e,r,n,i){let{standardDateProps:a,extendedSettings:o}=this,s=l7(e.marker,r.marker,n.calendarSystem);if(!s)return this.format(e,n);let l=s;l>1&&(a.year==="numeric"||a.year==="2-digit")&&(a.month==="numeric"||a.month==="2-digit")&&(a.day==="numeric"||a.day==="2-digit")&&(l=1);let u=this.format(e,n),f=this.format(r,n);if(u===f)return u;let c=u7(a,l),d=vS(c,o,n),h=d(e),v=d(r),g=f7(u,h,f,v),p=o.separator||i||n.defaultSeparator||"";return g?g.before+h+p+v+g.after:u+p+f}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 vS(t,e,r){let n=Object.keys(t).length;return n===1&&t.timeZoneName==="short"?i=>Yg(i.timeZoneOffset):n===0&&e.week?i=>s7(r.computeWeekNumber(i.marker),r.weekText,r.weekTextLong,r.locale,e.week):n7(t,e,r)}function n7(t,e,r){t=Object.assign({},t),e=Object.assign({},e),i7(t,e),t.timeZone="UTC";let n=new Intl.DateTimeFormat(r.locale.codes,t),i;if(e.omitZeroMinute){let a=Object.assign({},t);delete a.minute,i=new Intl.DateTimeFormat(r.locale.codes,a)}return a=>{let{marker:o}=a,s;i&&!o.getUTCMinutes()?s=i:s=n;let l=s.format(o);return a7(l,a,t,e,r)}}function i7(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 a7(t,e,r,n,i){return t=t.replace(e7,""),r.timeZoneName==="short"&&(t=o7(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Yg(e.timeZoneOffset))),n.omitCommas&&(t=t.replace(Q9,"").trim()),n.omitZeroMinute&&(t=t.replace(":00","")),n.meridiem===!1?t=t.replace(Bc,"").trim():n.meridiem==="narrow"?t=t.replace(Bc,(a,o)=>o.toLocaleLowerCase()):n.meridiem==="short"?t=t.replace(Bc,(a,o)=>`${o.toLocaleLowerCase()}m`):n.meridiem==="lowercase"&&(t=t.replace(Bc,a=>a.toLocaleLowerCase())),t=t.replace(J9," "),t=t.trim(),t}function o7(t,e){let r=!1;return t=t.replace(t7,()=>(r=!0,e)),r||(t+=` ${e}`),t}function s7(t,e,r,n,i){let a=[];return i==="long"?a.push(r):(i==="short"||i==="narrow")&&a.push(e),(i==="long"||i==="short")&&a.push(" "),a.push(n.simpleNumberFormat.format(t)),n.options.direction==="rtl"&&a.reverse(),a.join("")}function l7(t,e,r){return r.getMarkerYear(t)!==r.getMarkerYear(e)?5:r.getMarkerMonth(t)!==r.getMarkerMonth(e)?4:r.getMarkerDay(t)!==r.getMarkerDay(e)?2:Xi(t)!==Xi(e)?1:0}function u7(t,e){let r={};for(let n in t)(!(n in Pc)||Pc[n]<=e)&&(r[n]=t[n]);return r}function f7(t,e,r,n){let i=0;for(;i<t.length;){let a=t.indexOf(e,i);if(a===-1)break;let o=t.substr(0,a);i=a+e.length;let s=t.substr(i),l=0;for(;l<r.length;){let u=r.indexOf(n,l);if(u===-1)break;let f=r.substr(0,u);l=u+n.length;let c=r.substr(l);if(o===f&&s===c)return{before:o,after:s}}}return null}function pS(t,e){let r=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:r,year:r[0],month:r[1],day:r[2],hour:r[3],minute:r[4],second:r[5],millisecond:r[6]}}function Ic(t,e,r,n){let i=pS(t,r.calendarSystem),a=e?pS(e,r.calendarSystem):null;return{date:i,start:i,end:a,timeZone:r.timeZone,localeCodes:r.locale.codes,defaultSeparator:n||r.defaultSeparator}}class c7{constructor(e){this.cmdStr=e}format(e,r,n){return r.cmdFormatter(this.cmdStr,Ic(e,null,r,n))}formatRange(e,r,n,i){return n.cmdFormatter(this.cmdStr,Ic(e,r,n,i))}}class d7{constructor(e){this.func=e}format(e,r,n){return this.func(Ic(e,null,r,n))}formatRange(e,r,n,i){return this.func(Ic(e,r,n,i))}}function $t(t){return typeof t=="object"&&t?new r7(t):typeof t=="string"?new c7(t):typeof t=="function"?new d7(t):null}const gS={navLinkDayClick:ne,navLinkWeekClick:ne,duration:dt,bootstrapFontAwesome:ne,buttonIcons:ne,customButtons:ne,defaultAllDayEventDuration:dt,defaultTimedEventDuration:dt,nextDayThreshold:dt,scrollTime:dt,scrollTimeReset:Boolean,slotMinTime:dt,slotMaxTime:dt,dayPopoverFormat:$t,slotDuration:dt,snapDuration:dt,headerToolbar:ne,footerToolbar:ne,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:$t,dayHeaderClassNames:ne,dayHeaderContent:ne,dayHeaderDidMount:ne,dayHeaderWillUnmount:ne,dayCellClassNames:ne,dayCellContent:ne,dayCellDidMount:ne,dayCellWillUnmount:ne,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:ne,weekNumbers:Boolean,weekNumberClassNames:ne,weekNumberContent:ne,weekNumberDidMount:ne,weekNumberWillUnmount:ne,editable:Boolean,viewClassNames:ne,viewDidMount:ne,viewWillUnmount:ne,nowIndicator:Boolean,nowIndicatorClassNames:ne,nowIndicatorContent:ne,nowIndicatorDidMount:ne,nowIndicatorWillUnmount:ne,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:ne,locale:ne,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:ne,eventOrder:A9,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:ne,contentHeight:ne,direction:String,weekNumberFormat:$t,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:ne,initialDate:ne,now:ne,eventDataTransform:ne,stickyHeaderDates:ne,stickyFooterScrollbar:ne,viewHeight:ne,defaultAllDay:Boolean,eventSourceFailure:ne,eventSourceSuccess:ne,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:ne,eventConstraint:ne,eventAllow:ne,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:ne,eventContent:ne,eventDidMount:ne,eventWillUnmount:ne,selectConstraint:ne,selectOverlap:ne,selectAllow:ne,droppable:Boolean,unselectCancel:String,slotLabelFormat:ne,slotLaneClassNames:ne,slotLaneContent:ne,slotLaneDidMount:ne,slotLaneWillUnmount:ne,slotLabelClassNames:ne,slotLabelContent:ne,slotLabelDidMount:ne,slotLabelWillUnmount:ne,dayMaxEvents:ne,dayMaxEventRows:ne,dayMinWidth:Number,slotLabelInterval:dt,allDayText:String,allDayClassNames:ne,allDayContent:ne,allDayDidMount:ne,allDayWillUnmount:ne,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:$t,rerenderDelay:Number,moreLinkText:ne,moreLinkHint:ne,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:ne,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:dt,hiddenDays:ne,fixedWeekCount:Boolean,validRange:ne,visibleRange:ne,titleFormat:ne,eventInteractive:Boolean,noEventsText:String,viewHint:ne,navLinkHint:ne,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:ne,moreLinkClassNames:ne,moreLinkContent:ne,moreLinkDidMount:ne,moreLinkWillUnmount:ne,monthStartFormat:$t,handleCustomRendering:ne,customRenderingMetaMap:ne,customRenderingReplaces:Boolean},Zl={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"}},mS={datesSet:ne,eventsSet:ne,eventAdd:ne,eventChange:ne,eventRemove:ne,windowResize:ne,eventClick:ne,eventMouseEnter:ne,eventMouseLeave:ne,select:ne,unselect:ne,loading:ne,_unmount:ne,_beforeprint:ne,_afterprint:ne,_noEventDrop:ne,_noEventResize:ne,_resize:ne,_scrollRequest:ne},yS={buttonText:ne,buttonHints:ne,views:ne,plugins:ne,initialEvents:ne,events:ne,eventSources:ne},Xa={headerToolbar:Za,footerToolbar:Za,buttonText:Za,buttonHints:Za,buttonIcons:Za,dateIncrement:Za,plugins:Nc,events:Nc,eventSources:Nc,resources:Nc};function Za(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?kn(t,e):t===e}function Nc(t,e){return Array.isArray(t)&&Array.isArray(e)?Ui(t,e):t===e}const h7={type:String,component:ne,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:ne,usesMinMaxTime:Boolean,classNames:ne,content:ne,didMount:ne,willUnmount:ne};function Xg(t){return Kg(t,Xa)}function Zg(t,e){let r={},n={};for(let i in e)i in t&&(r[i]=e[i](t[i]));for(let i in t)i in e||(n[i]=t[i]);return{refined:r,extra:n}}function ne(t){return t}const{hasOwnProperty:Fc}=Object.prototype;function Kg(t,e){let r={};if(e){for(let n in e)if(e[n]===Za){let i=[];for(let a=t.length-1;a>=0;a-=1){let o=t[a][n];if(typeof o=="object"&&o)i.unshift(o);else if(o!==void 0){r[n]=o;break}}i.length&&(r[n]=Kg(i))}}for(let n=t.length-1;n>=0;n-=1){let i=t[n];for(let a in i)a in r||(r[a]=i[a])}return r}function gs(t,e){let r={};for(let n in t)e(t[n],n)&&(r[n]=t[n]);return r}function Kl(t,e){let r={};for(let n in t)r[n]=e(t[n],n);return r}function bS(t){let e={};for(let r of t)e[r]=!0;return e}function Qg(t){let e=[];for(let r in t)e.push(t[r]);return e}function kn(t,e){if(t===e)return!0;for(let r in t)if(Fc.call(t,r)&&!(r in e))return!1;for(let r in e)if(Fc.call(e,r)&&t[r]!==e[r])return!1;return!0}const v7=/^on[A-Z]/;function p7(t,e){const r=Jg(t,e);for(let n of r)if(!v7.test(n))return!1;return!0}function Jg(t,e){let r=[];for(let n in t)Fc.call(t,n)&&(n in e||r.push(n));for(let n in e)Fc.call(e,n)&&t[n]!==e[n]&&r.push(n);return r}function em(t,e,r={}){if(t===e)return!0;for(let n in e)if(!(n in t&&g7(t[n],e[n],r[n])))return!1;for(let n in t)if(!(n in e))return!1;return!0}function g7(t,e,r){return t===e||r===!0?!0:r?r(t,e):!1}function m7(t,e=0,r,n=1){let i=[];r==null&&(r=Object.keys(t).length);for(let a=e;a<r;a+=n){let o=t[a];o!==void 0&&i.push(o)}return i}let CS={};function y7(t,e){CS[t]=e}function b7(t){return new CS[t]}class C7{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Sr(e)}markerToArray(e){return Yi(e)}}y7("gregory",C7);const _7=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function w7(t){let e=_7.exec(t);if(e){let r=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(dS(r)){let n=null;return e[13]&&(n=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:r,isTimeUnspecified:!e[6],timeZoneOffset:n}}}return null}class x7{constructor(e){let r=this.timeZone=e.timeZone,n=r!=="local"&&r!=="UTC";e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(r)),this.canComputeOffset=!!(!n||this.namedTimeZoneImpl),this.calendarSystem=b7(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 r=this.createMarkerMeta(e);return r===null?null:r.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Sr(fS(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let r=null;return typeof e=="number"?r=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(r=this.timestampToMarker(e))):Array.isArray(e)&&(r=Sr(e)),r===null||!dS(r)?null:{marker:r,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let r=w7(e);if(r===null)return null;let{marker:n}=r,i=null;return r.timeZoneOffset!==null&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-r.timeZoneOffset*60*1e3):i=r.timeZoneOffset),{marker:n,isTimeUnspecified:r.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,r){let n=this.calendarSystem.markerToArray(e);return n[0]+=r.years,n[1]+=r.months,n[2]+=r.days,n[6]+=r.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,r){let n=this.calendarSystem.markerToArray(e);return n[0]-=r.years,n[1]-=r.months,n[2]-=r.days,n[6]-=r.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,r){let n=this.calendarSystem.markerToArray(e);return n[0]+=r,this.calendarSystem.arrayToMarker(n)}addMonths(e,r){let n=this.calendarSystem.markerToArray(e);return n[1]+=r,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,r){let{calendarSystem:n}=this;return Xi(e)===Xi(r)&&n.getMarkerDay(e)===n.getMarkerDay(r)&&n.getMarkerMonth(e)===n.getMarkerMonth(r)?n.getMarkerYear(r)-n.getMarkerYear(e):null}diffWholeMonths(e,r){let{calendarSystem:n}=this;return Xi(e)===Xi(r)&&n.getMarkerDay(e)===n.getMarkerDay(r)?n.getMarkerMonth(r)-n.getMarkerMonth(e)+(n.getMarkerYear(r)-n.getMarkerYear(e))*12:null}greatestWholeUnit(e,r){let n=this.diffWholeYears(e,r);return n!==null?{unit:"year",value:n}:(n=this.diffWholeMonths(e,r),n!==null?{unit:"month",value:n}:(n=$9(e,r),n!==null?{unit:"week",value:n}:(n=Rc(e,r),n!==null?{unit:"day",value:n}:(n=j9(e,r),$g(n)?{unit:"hour",value:n}:(n=H9(e,r),$g(n)?{unit:"minute",value:n}:(n=V9(e,r),$g(n)?{unit:"second",value:n}:{unit:"millisecond",value:r.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,r,n){let i;return n.years&&(i=this.diffWholeYears(e,r),i!==null)?i/F9(n):n.months&&(i=this.diffWholeMonths(e,r),i!==null)?i/L9(n):n.days&&(i=Rc(e,r),i!==null)?i/vs(n):(r.valueOf()-e.valueOf())/Xl(n)}startOf(e,r){return r==="year"?this.startOfYear(e):r==="month"?this.startOfMonth(e):r==="week"?this.startOfWeek(e):r==="day"?xt(e):r==="hour"?G9(e):r==="minute"?U9(e):r==="second"?q9(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)):Y9(e,this.weekDow,this.weekDoy)}format(e,r,n={}){return r.format({marker:e,timeZoneOffset:n.forcedTzo!=null?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,r,n,i={}){return i.isEndExclusive&&(r=qi(r,-1)),n.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:r,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(r)},this,i.defaultSeparator)}formatIso(e,r={}){let n=null;return r.omitTimeZoneOffset||(r.forcedTzo!=null?n=r.forcedTzo:n=this.offsetForMarker(e)),Z9(e,n,r.omitTime)}timestampToMarker(e){return this.timeZone==="local"?Sr(fS(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):Sr(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-cS(Yi(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Yi(e)):null}toDate(e,r){return this.timeZone==="local"?cS(Yi(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Yi(e))*1e3*60):new Date(e.valueOf()-(r||0))}}class Ql{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let r,n;if(typeof e=="object"&&e){r=Object.assign({},this.iconClasses);for(n in e)r[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=r}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let r=this.iconOverridePrefix;return r&&e.indexOf(r)!==0&&(e=r+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,r){let n;return r&&this.rtlIconClasses?n=this.rtlIconClasses[e]||this.iconClasses[e]:n=this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let r;return this.iconOverrideCustomButtonOption&&(r=e[this.iconOverrideCustomButtonOption],r)?`${this.baseIconClass} ${this.applyIconOverridePrefix(r)}`:""}}Ql.prototype.classes={},Ql.prototype.iconClasses={},Ql.prototype.baseIconClass="",Ql.prototype.iconOverridePrefix="";function Lc(t){t();let e=Se.debounceRendering,r=[];function n(i){r.push(i)}for(Se.debounceRendering=n,ql(re(D7,{}),document.createElement("div"));r.length;)r.shift()();Se.debounceRendering=e}class D7 extends Hr{render(){return re("div",{})}componentDidMount(){this.setState({})}}function _S(t){let e=Jj(t),r=e.Provider;return e.Provider=function(){let n=!this.getChildContext,i=r.apply(this,arguments);if(n){let a=[];this.shouldComponentUpdate=o=>{this.props.value!==o.value&&a.forEach(s=>{s.context=o.value,s.forceUpdate()})},this.sub=o=>{a.push(o);let s=o.componentWillUnmount;o.componentWillUnmount=()=>{a.splice(a.indexOf(o),1),s&&s.call(o)}}}return i},e}class S7{constructor(e,r,n,i){this.execFunc=e,this.emitter=r,this.scrollTime=n,this.scrollTimeReset=i,this.handleScrollRequest=a=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},a),this.drain()},r.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 Ka=_S({});function E7(t,e,r,n,i,a,o,s,l,u,f,c,d){return{dateEnv:i,options:r,pluginHooks:o,emitter:u,dispatch:s,getCurrentData:l,calendarApi:f,viewSpec:t,viewApi:e,dateProfileGenerator:n,theme:a,isRtl:r.direction==="rtl",addResizeHandler(h){u.on("_resize",h)},removeResizeHandler(h){u.off("_resize",h)},createScrollResponder(h){return new S7(h,u,dt(r.scrollTime),r.scrollTimeReset)},registerInteractiveComponent:c,unregisterInteractiveComponent:d}}class Qa extends Hr{shouldComponentUpdate(e,r){return this.debug&&console.log(Jg(e,this.props),Jg(r,this.state)),!em(this.props,e,this.propEquality)||!em(this.state,r,this.stateEquality)}safeSetState(e){em(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Qa.addPropsEquality=A7,Qa.addStateEquality=T7,Qa.contextType=Ka,Qa.prototype.propEquality={},Qa.prototype.stateEquality={};class Dt extends Qa{}Dt.contextType=Ka;function A7(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function T7(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function yi(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class tm extends Dt{constructor(){super(...arguments),this.id=Ya(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:r}=this.context,{generatorName:n}=this.props;(!r.customRenderingReplaces||!rm(n,r))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&yi(this.props.elRef,e)}}render(){const{props:e,context:r}=this,{options:n}=r,{customGenerator:i,defaultGenerator:a,renderProps:o}=e,s=wS(e,[],this.handleEl);let l=!1,u,f=[],c;if(i!=null){const d=typeof i=="function"?i(o,re):i;if(d===!0)l=!0;else{const h=d&&typeof d=="object";h&&"html"in d?s.dangerouslySetInnerHTML={__html:d.html}:h&&"domNodes"in d?f=Array.prototype.slice.call(d.domNodes):(h?pD(d):typeof d!="function")?u=d:c=d}}else l=!rm(e.generatorName,n);return l&&a&&(u=a(o)),this.queuedDomNodes=f,this.currentGeneratorMeta=c,re(e.elTag,s,u)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var r;const{props:n,context:i}=this,{handleCustomRendering:a,customRenderingMetaMap:o}=i.options;if(a){const s=(r=this.currentGeneratorMeta)!==null&&r!==void 0?r:o==null?void 0:o[n.generatorName];s&&a(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:s},n),{elClasses:(n.elClasses||[]).filter(O7)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:r}=this,n=this.base;if(!Ui(e,r)){r.forEach(b9);for(let i of e)n.appendChild(i);this.currentDomNodes=e}}}tm.addPropsEquality({elClasses:Ui,elStyle:kn,elAttrs:p7,renderProps:kn});function rm(t,e){var r;return!!(e.handleCustomRendering&&t&&(!((r=e.customRenderingMetaMap)===null||r===void 0)&&r[t]))}function wS(t,e,r){const n=Object.assign(Object.assign({},t.elAttrs),{ref:r});return(t.elClasses||e)&&(n.className=(t.elClasses||[]).concat(e||[]).concat(n.className||[]).filter(Boolean).join(" ")),t.elStyle&&(n.style=t.elStyle),n}function O7(t){return!!t}const xS=_S(0);class bi extends Hr{constructor(){super(...arguments),this.InnerContent=R7.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(yi(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,r=M7(e.classNameGenerator,e.renderProps);if(e.children){const n=wS(e,r,this.handleEl),i=e.children(this.InnerContent,e.renderProps,n);return e.elTag?re(e.elTag,n,i):i}else return re(tm,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(r),renderId:this.context}))}componentDidMount(){var e,r;this.el?(r=(e=this.props).didMount)===null||r===void 0||r.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,r;(r=(e=this.props).willUnmount)===null||r===void 0||r.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}bi.contextType=xS;function R7(t,e){const r=t.props;return re(tm,Object.assign({renderProps:r.renderProps,generatorName:r.generatorName,customGenerator:r.customGenerator,defaultGenerator:r.defaultGenerator,renderId:t.context},e))}function M7(t,e){const r=typeof t=="function"?t(e):t||[];return typeof r=="string"?[r]:r}class DS extends Dt{render(){let{props:e,context:r}=this,{options:n}=r,i={view:r.viewApi};return re(bi,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...SS(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),()=>e.children)}}function SS(t){return[`fc-${t.type}-view`,"fc-view"]}function P7(t,e){let r=null,n=null;return t.start&&(r=e.createMarker(t.start)),t.end&&(n=e.createMarker(t.end)),!r&&!n||r&&n&&n<r?null:{start:r,end:n}}function ES(t,e){let r=[],{start:n}=e,i,a;for(t.sort(B7),i=0;i<t.length;i+=1)a=t[i],a.start>n&&r.push({start:n,end:a.start}),a.end>n&&(n=a.end);return n<e.end&&r.push({start:n,end:e.end}),r}function B7(t,e){return t.start.valueOf()-e.start.valueOf()}function ms(t,e){let{start:r,end:n}=t,i=null;return e.start!==null&&(r===null?r=e.start:r=new Date(Math.max(r.valueOf(),e.start.valueOf()))),e.end!=null&&(n===null?n=e.end:n=new Date(Math.min(n.valueOf(),e.end.valueOf()))),(r===null||n===null||r<n)&&(i={start:r,end:n}),i}function I7(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function Zi(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function N7(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 AS(t){let e=Math.floor(ps(t.start,t.end))||1,r=xt(t.start),n=Jt(r,e);return{start:r,end:n}}function TS(t,e=dt(0)){let r=null,n=null;if(t.end){n=xt(t.end);let i=t.end.valueOf()-n.valueOf();i&&i>=Xl(e)&&(n=Jt(n,1))}return t.start&&(r=xt(t.start),n&&n<=r&&(n=Jt(r,1))),{start:r,end:n}}function kc(t,e,r,n){return n==="year"?dt(r.diffWholeYears(t,e),"year"):n==="month"?dt(r.diffWholeMonths(t,e),"month"):W9(t,e)}function F7(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function L7(t,e){let r=t.initialDate;return r!=null?e.createMarker(r):Jl(t.now,e)}function Jl(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class OS{constructor(e){this.props=e,this.nowDate=Jl(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,r,n){let{dateEnv:i}=this.props,a=i.subtract(i.startOf(r,e.currentRangeUnit),e.dateIncrement);return this.build(a,-1,n)}buildNext(e,r,n){let{dateEnv:i}=this.props,a=i.add(i.startOf(r,e.currentRangeUnit),e.dateIncrement);return this.build(a,1,n)}build(e,r,n=!0){let{props:i}=this,a,o,s,l,u,f;return a=this.buildValidRange(),a=this.trimHiddenDays(a),n&&(e=N7(e,a)),o=this.buildCurrentRangeInfo(e,r),s=/^(year|month|week|day)$/.test(o.unit),l=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,s),l=this.trimHiddenDays(l),u=l,i.showNonCurrentDates||(u=ms(u,o.range)),u=this.adjustActiveRange(u),u=ms(u,a),f=I7(o.range,a),Zi(l,e)||(e=l.start),{currentDate:e,validRange:a,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:s,activeRange:u,renderRange:l,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:f,dateIncrement:this.buildDateIncrement(o.duration)}}buildValidRange(){let e=this.props.validRangeInput,r=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(r)||{start:null,end:null}}buildCurrentRangeInfo(e,r){let{props:n}=this,i=null,a=null,o=null,s;return n.duration?(i=n.duration,a=n.durationUnit,o=this.buildRangeFromDuration(e,r,i,a)):(s=this.props.dayCount)?(a="day",o=this.buildRangeFromDayCount(e,r,s)):(o=this.buildCustomVisibleRange(e))?a=n.dateEnv.greatestWholeUnit(o.start,o.end).unit:(i=this.getFallbackDuration(),a=Gg(i).unit,o=this.buildRangeFromDuration(e,r,i,a)),{duration:i,unit:a,range:o}}getFallbackDuration(){return dt({day:1})}adjustActiveRange(e){let{dateEnv:r,usesMinMaxTime:n,slotMinTime:i,slotMaxTime:a}=this.props,{start:o,end:s}=e;return n&&(vs(i)<0&&(o=xt(o),o=r.add(o,i)),vs(a)>1&&(s=xt(s),s=Jt(s,-1),s=r.add(s,a))),{start:o,end:s}}buildRangeFromDuration(e,r,n,i){let{dateEnv:a,dateAlignment:o}=this.props,s,l,u;if(!o){let{dateIncrement:c}=this.props;c&&Xl(c)<Xl(n)?o=Gg(c).unit:o=i}vs(n)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,r),s=xt(s));function f(){s=a.startOf(e,o),l=a.add(s,n),u={start:s,end:l}}return f(),this.trimHiddenDays(u)||(e=this.skipHiddenDays(e,r),f()),u}buildRangeFromDayCount(e,r,n){let{dateEnv:i,dateAlignment:a}=this.props,o=0,s=e,l;a&&(s=i.startOf(s,a)),s=xt(s),s=this.skipHiddenDays(s,r),l=s;do l=Jt(l,1),this.isHiddenDay(l)||(o+=1);while(o<n);return{start:s,end:l}}buildCustomVisibleRange(e){let{props:r}=this,n=r.visibleRangeInput,i=typeof n=="function"?n.call(r.calendarApi,r.dateEnv.toDate(e)):n,a=this.refineRange(i);return a&&(a.start==null||a.end==null)?null:a}buildRenderRange(e,r,n){return e}buildDateIncrement(e){let{dateIncrement:r}=this.props,n;return r||((n=this.props.dateAlignment)?dt(1,n):e||dt({days:1}))}refineRange(e){if(e){let r=P7(e,this.props.dateEnv);return r&&(r=TS(r)),r}return null}initHiddenDays(){let e=this.props.hiddenDays||[],r=[],n=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(r[i]=e.indexOf(i)!==-1)||(n+=1);if(!n)throw new Error("invalid hiddenDays");this.isHiddenDayHash=r}trimHiddenDays(e){let{start:r,end:n}=e;return r&&(r=this.skipHiddenDays(r)),n&&(n=this.skipHiddenDays(n,-1,!0)),r==null||n==null||r<n?{start:r,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,r=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?r:0)+7)%7];)e=Jt(e,r);return e}}function nm(t,e,r,n){return{instanceId:Ya(),defId:t,range:e,forcedStartTzo:r??null,forcedEndTzo:n??null}}function k7(t,e,r,n){for(let i=0;i<n.length;i+=1){let a=n[i].parse(t,r);if(a){let{allDay:o}=t;return o==null&&(o=e,o==null&&(o=a.allDayGuess,o==null&&(o=!1))),{allDay:o,duration:a.duration,typeData:a.typeData,typeId:i}}}return null}function eu(t,e,r){let{dateEnv:n,pluginHooks:i,options:a}=r,{defs:o,instances:s}=t;s=gs(s,l=>!o[l.defId].recurringDef);for(let l in o){let u=o[l];if(u.recurringDef){let{duration:f}=u.recurringDef;f||(f=u.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration);let c=z7(u,f,e,n,i.recurringTypes);for(let d of c){let h=nm(l,{start:d,end:n.add(d,f)});s[h.instanceId]=h}}}return{defs:o,instances:s}}function z7(t,e,r,n,i){let o=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:n.subtract(r.start,e),end:r.end},n);return t.allDay&&(o=o.map(xt)),o}const zc={id:String,groupId:String,title:String,url:String,interactive:Boolean},RS={start:ne,end:ne,date:ne,allDay:Boolean},j7=Object.assign(Object.assign(Object.assign({},zc),RS),{extendedProps:ne});function MS(t,e,r,n,i=im(r),a,o){let{refined:s,extra:l}=PS(t,r,i),u=V7(e,r),f=k7(s,u,r.dateEnv,r.pluginHooks.recurringTypes);if(f){let d=am(s,l,e?e.sourceId:"",f.allDay,!!f.duration,r,a);return d.recurringDef={typeId:f.typeId,typeData:f.typeData,duration:f.duration},{def:d,instance:null}}let c=H7(s,u,r,n);if(c){let d=am(s,l,e?e.sourceId:"",c.allDay,c.hasEnd,r,a),h=nm(d.defId,c.range,c.forcedStartTzo,c.forcedEndTzo);return o&&d.publicId&&o[d.publicId]&&(h.instanceId=o[d.publicId]),{def:d,instance:h}}return null}function PS(t,e,r=im(e)){return Zg(t,r)}function im(t){return Object.assign(Object.assign(Object.assign({},jc),j7),t.pluginHooks.eventRefiners)}function am(t,e,r,n,i,a,o){let s={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(o&&t.id?o[t.id]:"")||Ya(),sourceId:r,allDay:n,hasEnd:i,interactive:t.interactive,ui:Hc(t,a),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let l of a.pluginHooks.eventDefMemberAdders)Object.assign(s,l(t));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function H7(t,e,r,n){let{allDay:i}=t,a,o=null,s=!1,l,u=null,f=t.start!=null?t.start:t.date;if(a=r.dateEnv.createMarkerMeta(f),a)o=a.marker;else if(!n)return null;return t.end!=null&&(l=r.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!a||a.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),i&&o&&(o=xt(o)),l&&(u=l.marker,i&&(u=xt(u)),o&&u<=o&&(u=null)),u?s=!0:n||(s=r.options.forceEventDuration||!1,u=r.dateEnv.add(o,i?r.options.defaultAllDayEventDuration:r.options.defaultTimedEventDuration)),{allDay:i,hasEnd:s,range:{start:o,end:u},forcedStartTzo:a?a.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function V7(t,e){let r=null;return t&&(r=t.defaultAllDay),r==null&&(r=e.options.defaultAllDay),r}function tu(t,e,r,n,i,a){let o=Ja(),s=im(r);for(let l of t){let u=MS(l,e,r,n,s,i,a);u&&om(u,o)}return o}function om(t,e=Ja()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function W7(t,e){let r=t.instances[e];if(r){let n=t.defs[r.defId],i=lm(t,a=>$7(n,a));return i.defs[n.defId]=n,i.instances[r.instanceId]=r,i}return Ja()}function $7(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function Ja(){return{defs:{},instances:{}}}function sm(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function lm(t,e){let r=gs(t.defs,e),n=gs(t.instances,i=>r[i.defId]);return{defs:r,instances:n}}function G7(t,e){let{defs:r,instances:n}=t,i={},a={};for(let o in r)e.defs[o]||(i[o]=r[o]);for(let o in n)!e.instances[o]&&i[n[o].defId]&&(a[o]=n[o]);return{defs:i,instances:a}}function U7(t,e){return Array.isArray(t)?tu(t,null,e,!0):typeof t=="object"&&t?tu([t],null,e,!0):t!=null?String(t):null}function BS(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const jc={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:ne,overlap:ne,allow:ne,className:BS,classNames:BS,color:String,backgroundColor:String,borderColor:String,textColor:String},q7={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Hc(t,e){let r=U7(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:r!=null?[r]:[],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 Y7(t){return t.reduce(X7,q7)}function X7(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 Z7={id:String,defaultAllDay:Boolean,url:String,format:String,events:ne,eventDataTransform:ne,success:ne,failure:ne};function IS(t,e,r=NS(e)){let n;if(typeof t=="string"?n={url:t}:typeof t=="function"||Array.isArray(t)?n={events:t}:typeof t=="object"&&t&&(n=t),n){let{refined:i,extra:a}=Zg(n,r),o=K7(i,e);if(o)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:Ya(),sourceDefId:o.sourceDefId,meta:o.meta,ui:Hc(i,e),extendedProps:a}}return null}function NS(t){return Object.assign(Object.assign(Object.assign({},jc),Z7),t.pluginHooks.eventSourceRefiners)}function K7(t,e){let r=e.pluginHooks.eventSourceDefs;for(let n=r.length-1;n>=0;n-=1){let a=r[n].parseMeta(t);if(a)return{sourceDefId:n,meta:a}}return null}function Q7(t,e,r,n,i){switch(e.type){case"RECEIVE_EVENTS":return J7(t,r[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return eH(t,r[e.sourceId],e.rawEvents,n.activeRange,i);case"ADD_EVENTS":return tH(t,e.eventStore,n?n.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return sm(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?eu(t,n.activeRange,i):t;case"REMOVE_EVENTS":return G7(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return zS(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return lm(t,a=>!a.sourceId);case"REMOVE_ALL_EVENTS":return Ja();default:return t}}function J7(t,e,r,n,i,a){if(e&&r===e.latestFetchId){let o=tu(FS(i,e,a),e,a);return n&&(o=eu(o,n,a)),sm(zS(t,e.sourceId),o)}return t}function eH(t,e,r,n,i){const{defIdMap:a,instanceIdMap:o}=rH(t);let s=tu(FS(r,e,i),e,i,!1,a,o);return eu(s,n,i)}function FS(t,e,r){let n=r.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=LS(t,i)),n&&(t=LS(t,n)),t}function LS(t,e){let r;if(!e)r=t;else{r=[];for(let n of t){let i=e(n);i?r.push(i):i==null&&r.push(n)}}return r}function tH(t,e,r,n){return r&&(e=eu(e,r,n)),sm(t,e)}function kS(t,e,r){let{defs:n}=t,i=Kl(t.instances,a=>n[a.defId].allDay?a:Object.assign(Object.assign({},a),{range:{start:r.createMarker(e.toDate(a.range.start,a.forcedStartTzo)),end:r.createMarker(e.toDate(a.range.end,a.forcedEndTzo))},forcedStartTzo:r.canComputeOffset?null:a.forcedStartTzo,forcedEndTzo:r.canComputeOffset?null:a.forcedEndTzo}));return{defs:n,instances:i}}function zS(t,e){return lm(t,r=>r.sourceId!==e)}function rH(t){const{defs:e,instances:r}=t,n={},i={};for(let a in e){const o=e[a],{publicId:s}=o;s&&(n[s]=a)}for(let a in r){const o=r[a],s=e[o.defId],{publicId:l}=s;l&&(i[l]=a)}return{defIdMap:n,instanceIdMap:i}}class nH{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,r){iH(this.handlers,e,r)}off(e,r){aH(this.handlers,e,r)}trigger(e,...r){let n=this.handlers[e]||[],i=this.options&&this.options[e],a=[].concat(i||[],n);for(let o of a)o.apply(this.thisContext,r)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function iH(t,e,r){(t[e]||(t[e]=[])).push(r)}function aH(t,e,r){r?t[e]&&(t[e]=t[e].filter(n=>n!==r)):delete t[e]}const oH={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function sH(t,e){return tu(lH(t),null,e)}function lH(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(r=>r.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(r=>Object.assign(Object.assign({},oH),r)),e}function uH(t,e,r){r.emitter.trigger("select",Object.assign(Object.assign({},cH(t,r)),{jsEvent:null,view:r.viewApi||r.calendarApi.view}))}function fH(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function cH(t,e){let r={};for(let n of e.pluginHooks.dateSpanTransforms)Object.assign(r,n(t,e));return Object.assign(r,SH(t,e.dateEnv)),r}function jS(t,e,r){let{dateEnv:n,options:i}=r,a=e;return t?(a=xt(a),a=n.add(a,i.defaultAllDayEventDuration)):a=n.add(a,i.defaultTimedEventDuration),a}function dH(t,e,r,n){let i=$S(t.defs,e),a=Ja();for(let o in t.defs){let s=t.defs[o];a.defs[o]=hH(s,i[o],r,n)}for(let o in t.instances){let s=t.instances[o],l=a.defs[s.defId];a.instances[o]=vH(s,l,i[s.defId],r,n)}return a}function hH(t,e,r,n){let i=r.standardProps||{};i.hasEnd==null&&e.durationEditable&&(r.startDelta||r.endDelta)&&(i.hasEnd=!0);let a=Object.assign(Object.assign(Object.assign({},t),i),{ui:Object.assign(Object.assign({},t.ui),i.ui)});r.extendedProps&&(a.extendedProps=Object.assign(Object.assign({},a.extendedProps),r.extendedProps));for(let o of n.pluginHooks.eventDefMutationAppliers)o(a,r,n);return!a.hasEnd&&n.options.forceEventDuration&&(a.hasEnd=!0),a}function vH(t,e,r,n,i){let{dateEnv:a}=i,o=n.standardProps&&n.standardProps.allDay===!0,s=n.standardProps&&n.standardProps.hasEnd===!1,l=Object.assign({},t);return o&&(l.range=AS(l.range)),n.datesDelta&&r.startEditable&&(l.range={start:a.add(l.range.start,n.datesDelta),end:a.add(l.range.end,n.datesDelta)}),n.startDelta&&r.durationEditable&&(l.range={start:a.add(l.range.start,n.startDelta),end:l.range.end}),n.endDelta&&r.durationEditable&&(l.range={start:l.range.start,end:a.add(l.range.end,n.endDelta)}),s&&(l.range={start:l.range.start,end:jS(e.allDay,l.range.start,i)}),e.allDay&&(l.range={start:xt(l.range.start),end:xt(l.range.end)}),l.range.end<l.range.start&&(l.range.end=jS(e.allDay,l.range.start,i)),l}class ys{constructor(e,r){this.context=e,this.internalEventSource=r}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 Qr{constructor(e,r,n){this._context=e,this._def=r,this._instance=n||null}setProp(e,r){if(e in RS)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")r=zc[e](r),this.mutate({standardProps:{publicId:r}});else if(e in zc)r=zc[e](r),this.mutate({standardProps:{[e]:r}});else if(e in jc){let n=jc[e](r);e==="color"?n={backgroundColor:r,borderColor:r}:e==="editable"?n={startEditable:r,durationEditable:r}:n={[e]:r},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,r){this.mutate({extendedProps:{[e]:r}})}setStart(e,r={}){let{dateEnv:n}=this._context,i=n.createMarker(e);if(i&&this._instance){let a=this._instance.range,o=kc(a.start,i,n,r.granularity);r.maintainDuration?this.mutate({datesDelta:o}):this.mutate({startDelta:o})}}setEnd(e,r={}){let{dateEnv:n}=this._context,i;if(!(e!=null&&(i=n.createMarker(e),!i))&&this._instance)if(i){let a=kc(this._instance.range.end,i,n,r.granularity);this.mutate({endDelta:a})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,r,n={}){let{dateEnv:i}=this._context,a={allDay:n.allDay},o=i.createMarker(e),s;if(o&&!(r!=null&&(s=i.createMarker(r),!s))&&this._instance){let l=this._instance.range;n.allDay===!0&&(l=AS(l));let u=kc(l.start,o,i,n.granularity);if(s){let f=kc(l.end,s,i,n.granularity);I9(u,f)?this.mutate({datesDelta:u,standardProps:a}):this.mutate({startDelta:u,endDelta:f,standardProps:a})}else a.hasEnd=!1,this.mutate({datesDelta:u,standardProps:a})}}moveStart(e){let r=dt(e);r&&this.mutate({startDelta:r})}moveEnd(e){let r=dt(e);r&&this.mutate({endDelta:r})}moveDates(e){let r=dt(e);r&&this.mutate({datesDelta:r})}setAllDay(e,r={}){let n={allDay:e},{maintainDuration:i}=r;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=i),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:r}=this._context,n=this._instance,i=$t(e);return this._def.hasEnd?r.formatRange(n.range.start,n.range.end,i,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):r.format(n.range.start,i,{forcedTzo:n.forcedStartTzo})}mutate(e){let r=this._instance;if(r){let n=this._def,i=this._context,{eventStore:a}=i.getCurrentData(),o=W7(a,r.instanceId);o=dH(o,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let l=new Qr(i,n,r);this._def=o.defs[n.defId],this._instance=o.instances[r.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:o}),i.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:um(o,i,r),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:a})}})}}remove(){let e=this._context,r=HS(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:r}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:r})}})}get source(){let{sourceId:e}=this._def;return e?new ys(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 r=this._def,{ui:n}=r,{startStr:i,endStr:a}=this,o={allDay:r.allDay};return r.title&&(o.title=r.title),i&&(o.start=i),a&&(o.end=a),r.publicId&&(o.id=r.publicId),r.groupId&&(o.groupId=r.groupId),r.url&&(o.url=r.url),n.display&&n.display!=="auto"&&(o.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?o.color=n.backgroundColor:(n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.borderColor&&(o.borderColor=n.borderColor)),n.textColor&&(o.textColor=n.textColor),n.classNames.length&&(o.classNames=n.classNames),Object.keys(r.extendedProps).length&&(e.collapseExtendedProps?Object.assign(o,r.extendedProps):o.extendedProps=r.extendedProps),o}toJSON(){return this.toPlainObject()}}function HS(t){let e=t._def,r=t._instance;return{defs:{[e.defId]:e},instances:r?{[r.instanceId]:r}:{}}}function um(t,e,r){let{defs:n,instances:i}=t,a=[],o=r?r.instanceId:"";for(let s in i){let l=i[s],u=n[l.defId];l.instanceId!==o&&a.push(new Qr(e,u,l))}return a}function VS(t,e,r,n){let i={},a={},o={},s=[],l=[],u=$S(t.defs,e);for(let f in t.defs){let c=t.defs[f];u[c.defId].display==="inverse-background"&&(c.groupId?(i[c.groupId]=[],o[c.groupId]||(o[c.groupId]=c)):a[f]=[])}for(let f in t.instances){let c=t.instances[f],d=t.defs[c.defId],h=u[d.defId],v=c.range,g=!d.allDay&&n?TS(v,n):v,p=ms(g,r);p&&(h.display==="inverse-background"?d.groupId?i[d.groupId].push(p):a[c.defId].push(p):h.display!=="none"&&(h.display==="background"?s:l).push({def:d,ui:h,instance:c,range:p,isStart:g.start&&g.start.valueOf()===p.start.valueOf(),isEnd:g.end&&g.end.valueOf()===p.end.valueOf()}))}for(let f in i){let c=i[f],d=ES(c,r);for(let h of d){let v=o[f],g=u[v.defId];s.push({def:v,ui:g,instance:null,range:h,isStart:!1,isEnd:!1})}}for(let f in a){let c=a[f],d=ES(c,r);for(let h of d)s.push({def:t.defs[f],ui:u[f],instance:null,range:h,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function WS(t,e){t.fcSeg=e}function fm(t){return t.fcSeg||t.parentNode.fcSeg||null}function $S(t,e){return Kl(t,r=>GS(r,e))}function GS(t,e){let r=[];return e[""]&&r.push(e[""]),e[t.defId]&&r.push(e[t.defId]),r.push(t.ui),Y7(r)}function pH(t,e){let r=t.map(gH);return r.sort((n,i)=>T9(n,i,e)),r.map(n=>n._seg)}function gH(t){let{eventRange:e}=t,r=e.def,n=e.instance?e.instance.range:e.range,i=n.start?n.start.valueOf():0,a=n.end?n.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},r.extendedProps),r),{id:r.publicId,start:i,end:a,duration:a-i,allDay:Number(r.allDay),_seg:t})}function mH(t,e){let{pluginHooks:r}=e,n=r.isDraggableTransformers,{def:i,ui:a}=t.eventRange,o=a.startEditable;for(let s of n)o=s(o,i,a,e);return o}function yH(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function bH(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function US(t,e,r,n,i,a,o){let{dateEnv:s,options:l}=r,{displayEventTime:u,displayEventEnd:f}=l,c=t.eventRange.def,d=t.eventRange.instance;u==null&&(u=n!==!1),f==null&&(f=i!==!1);let h=d.range.start,v=d.range.end,g=t.start||t.eventRange.range.start,p=t.end||t.eventRange.range.end,m=xt(h).valueOf()===xt(g).valueOf(),y=xt(qi(v,-1)).valueOf()===xt(qi(p,-1)).valueOf();return u&&!c.allDay&&(m||y)?(g=m?h:g,p=y?v:p,f&&c.hasEnd?s.formatRange(g,p,e,{forcedStartTzo:d.forcedStartTzo,forcedEndTzo:d.forcedEndTzo}):s.format(g,e,{forcedTzo:d.forcedStartTzo})):""}function ru(t,e,r){let n=t.eventRange.range;return{isPast:n.end<=e.start,isFuture:n.start>=e.end,isToday:e&&Zi(e,n.start)}}function CH(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 _H(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function qS(t,e){let{def:r,instance:n}=t.eventRange,{url:i}=r;if(i)return{href:i};let{emitter:a,options:o}=e,{eventInteractive:s}=o;return s==null&&(s=r.interactive,s==null&&(s=!!a.hasHandlers("eventClick"))),s?oS(l=>{a.trigger("eventClick",{el:l.target,event:new Qr(e,r,n),jsEvent:l,view:e.viewApi})}):{}}const wH={start:ne,end:ne,allDay:Boolean};function xH(t,e,r){let n=DH(t,e),{range:i}=n;if(!i.start)return null;if(!i.end){if(r==null)return null;i.end=e.add(i.start,r)}return n}function DH(t,e){let{refined:r,extra:n}=Zg(t,wH),i=r.start?e.createMarkerMeta(r.start):null,a=r.end?e.createMarkerMeta(r.end):null,{allDay:o}=r;return o==null&&(o=i&&i.isTimeUnspecified&&(!a||a.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:a?a.marker:null},allDay:o},n)}function SH(t,e){return Object.assign(Object.assign({},XS(t.range,e,t.allDay)),{allDay:t.allDay})}function YS(t,e,r){return Object.assign(Object.assign({},XS(t,e,r)),{timeZone:e.timeZone})}function XS(t,e,r){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:r}),endStr:e.formatIso(t.end,{omitTime:r})}}function EH(t,e,r){let n=PS({editable:!1},r),i=am(n.refined,n.extra,"",t.allDay,!0,r);return{def:i,ui:GS(i,e),instance:nm(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function AH(t,e,r){let n=!1,i=function(s){n||(n=!0,e(s))},a=function(s){n||(n=!0,r(s))},o=t(i,a);o&&typeof o.then=="function"&&o.then(i,a)}class ZS extends Error{constructor(e,r){super(e),this.response=r}}function TH(t,e,r){t=t.toUpperCase();const n={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(r):(n.body=new URLSearchParams(r),n.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,n).then(i=>{if(i.ok)return i.json().then(a=>[a,i],()=>{throw new ZS("Failure parsing JSON",i)});throw new ZS("Request failed",i)})}let cm;function KS(){return cm==null&&(cm=OH()),cm}function OH(){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 r=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),r}class RH extends Dt{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{Lc(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{Lc(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:r}=e,{forPrint:n}=this.state,i=n||r.height==="auto"||r.contentHeight==="auto",a=!i&&r.height!=null?r.height:"",o=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${r.direction}`,e.theme.getClass("root")];return KS()||o.push("fc-liquid-hack"),e.children(o,a,i,n)}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 QS{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function MH(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}const JS={};class PH{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,r){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:r})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,r){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,r):console.warn(`Unknown listener name '${e}'`)}off(e,r){this.currentDataManager.emitter.off(e,r)}trigger(e,...r){this.currentDataManager.emitter.trigger(e,...r)}changeView(e,r){this.batchRendering(()=>{if(this.unselect(),r)if(r.start&&r.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:r});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(r)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,r){let n=this.getCurrentData(),i;r=r||"day",i=n.viewSpecs[r]||this.getUnitViewSpec(r),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:r,toolbarConfig:n}=this.getCurrentData(),i=[].concat(n.header?n.header.viewsWithButtons:[],n.footer?n.footer.viewsWithButtons:[]),a,o;for(let s in r)i.push(s);for(a=0;a<i.length;a+=1)if(o=r[i[a]],o&&o.singleUnit===e)return o;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:Jl(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let r=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:r.dateEnv.createMarker(e)})}incrementDate(e){let r=this.getCurrentData(),n=dt(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:r.dateEnv.add(r.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,r){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),$t(r))}formatRange(e,r,n){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(r),$t(n),n)}formatIso(e,r){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:r})}select(e,r){let n;r==null?e.start!=null?n=e:n={start:e,end:null}:n={start:e,end:r};let i=this.getCurrentData(),a=xH(n,i.dateEnv,dt({days:1}));a&&(this.dispatch({type:"SELECT_DATES",selection:a}),uH(a,null,i))}unselect(e){let r=this.getCurrentData();r.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),fH(e,r))}addEvent(e,r){if(e instanceof Qr){let o=e._def,s=e._instance;return this.getCurrentData().eventStore.defs[o.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:om({def:o,instance:s})}),this.triggerEventAdd(e)),e}let n=this.getCurrentData(),i;if(r instanceof ys)i=r.internalEventSource;else if(typeof r=="boolean")r&&([i]=Qg(n.eventSources));else if(r!=null){let o=this.getEventSourceById(r);if(!o)return console.warn(`Could not find an event source with ID "${r}"`),null;i=o.internalEventSource}let a=MS(e,i,n,!1);if(a){let o=new Qr(n,a.def,a.def.recurringDef?null:a.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:om(a)}),this.triggerEventAdd(o),o}return null}triggerEventAdd(e){let{emitter:r}=this.getCurrentData();r.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:HS(e)})}})}getEventById(e){let r=this.getCurrentData(),{defs:n,instances:i}=r.eventStore;e=String(e);for(let a in n){let o=n[a];if(o.publicId===e){if(o.recurringDef)return new Qr(r,o,null);for(let s in i){let l=i[s];if(l.defId===o.defId)return new Qr(r,o,l)}}}return null}getEvents(){let e=this.getCurrentData();return um(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),r=e.eventSources,n=[];for(let i in r)n.push(new ys(e,r[i]));return n}getEventSourceById(e){let r=this.getCurrentData(),n=r.eventSources;e=String(e);for(let i in n)if(n[i].publicId===e)return new ys(r,n[i]);return null}addEventSource(e){let r=this.getCurrentData();if(e instanceof ys)return r.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=IS(e,r);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new ys(r,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let r=dt(e);r&&this.trigger("_scrollRequest",{time:r})}}function BH(t,e){let r={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 r.left<r.right&&r.top<r.bottom?r:!1}function eE(t,e,r,n){return{dow:t.getUTCDay(),isDisabled:!!(n&&!Zi(n.activeRange,t)),isOther:!!(n&&!Zi(n.currentRange,t)),isToday:!!(e&&Zi(e,t)),isPast:!!(e&&t<e.start),isFuture:!!(e&&t>=e.end)}}function dm(t,e){let r=["fc-day",`fc-day-${k9[t.dow]}`];return t.isDisabled?r.push("fc-day-disabled"):(t.isToday&&(r.push("fc-day-today"),r.push(e.getClass("today"))),t.isPast&&r.push("fc-day-past"),t.isFuture&&r.push("fc-day-future"),t.isOther&&r.push("fc-day-other")),r}const IH=$t({year:"numeric",month:"long",day:"numeric"}),NH=$t({week:"long"});function hm(t,e,r="day",n=!0){const{dateEnv:i,options:a,calendarApi:o}=t;let s=i.format(e,r==="week"?NH:IH);if(a.navLinks){let l=i.toDate(e);const u=f=>{let c=r==="day"?a.navLinkDayClick:r==="week"?a.navLinkWeekClick:null;typeof c=="function"?c.call(o,i.toDate(e),f):(typeof c=="string"&&(r=c),o.zoomTo(e,r))};return Object.assign({title:Yl(a.navLinkHint,[s,l],s),"data-navlink":""},n?aS(u):{onClick:u})}return{"aria-label":s}}let vm;function FH(){return vm||(vm=LH()),vm}function LH(){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=kH(t);return document.body.removeChild(t),e}function kH(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function zH(t){let e=jH(t),r=t.getBoundingClientRect();for(let n of e){let i=BH(r,n.getBoundingClientRect());if(i)r=i;else return null}return r}function jH(t){let e=[];for(;t instanceof HTMLElement;){let r=window.getComputedStyle(t);if(r.position==="fixed")break;/(auto|scroll)/.test(r.overflow+r.overflowY+r.overflowX)&&e.push(t),t=t.parentNode}return e}class Vc{constructor(e,r,n,i){this.els=r;let a=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(a.left),i&&this.buildElVerticals(a.top)}buildElHorizontals(e){let r=[],n=[];for(let i of this.els){let a=i.getBoundingClientRect();r.push(a.left-e),n.push(a.right-e)}this.lefts=r,this.rights=n}buildElVerticals(e){let r=[],n=[];for(let i of this.els){let a=i.getBoundingClientRect();r.push(a.top-e),n.push(a.bottom-e)}this.tops=r,this.bottoms=n}leftToIndex(e){let{lefts:r,rights:n}=this,i=r.length,a;for(a=0;a<i;a+=1)if(e>=r[a]&&e<n[a])return a}topToIndex(e){let{tops:r,bottoms:n}=this,i=r.length,a;for(a=0;a<i;a+=1)if(e>=r[a]&&e<n[a])return a}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Wc(this.tops||[],e.tops||[])&&Wc(this.bottoms||[],e.bottoms||[])&&Wc(this.lefts||[],e.lefts||[])&&Wc(this.rights||[],e.rights||[])}}function Wc(t,e){const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(Math.round(t[n])!==Math.round(e[n]))return!1;return!0}class eo extends Dt{constructor(){super(...arguments),this.uid=Ya()}prepareHits(){}queryHit(e,r,n,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!mi(e,".fc-event-mirror")}isValidDateDownEl(e){return!mi(e,".fc-event:not(.fc-bg-event)")&&!mi(e,".fc-more-link")&&!mi(e,"a[data-navlink]")&&!mi(e,".fc-popover")}}class HH{constructor(e=r=>r.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 r=[];for(let n of e)this.insertEntry(n,r);return r}insertEntry(e,r){let n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,r)}isInsertionValid(e,r){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(r)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,r,n){if(this.allowReslicing&&e.touchingEntry){const i=Object.assign(Object.assign({},r),{span:rE(r.span,e.touchingEntry.span)});n.push(i),this.splitEntry(r,e.touchingEntry,n)}else n.push(r)}splitEntry(e,r,n){let i=e.span,a=r.span;i.start<a.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:a.start}},n),i.end>a.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.end,end:i.end}},n)}insertEntryAt(e,r){let{entriesByLevel:n,levelCoords:i}=this;r.lateral===-1?(pm(i,r.level,r.levelCoord),pm(n,r.level,[e])):pm(n[r.level],r.lateral,e),this.stackCnts[nu(e)]=r.stackCnt}findInsertion(e){let{levelCoords:r,entriesByLevel:n,strictOrder:i,stackCnts:a}=this,o=r.length,s=0,l=-1,u=-1,f=null,c=0;for(let v=0;v<o;v+=1){const g=r[v];if(!i&&g>=s+this.getEntryThickness(e))break;let p=n[v],m,y=nE(p,e.span.start,tE),b=y[0]+y[1];for(;(m=p[b])&&m.span.start<e.span.end;){let _=g+this.getEntryThickness(m);_>s&&(s=_,f=m,l=v,u=b),_===s&&(c=Math.max(c,a[nu(m)]+1)),b+=1}}let d=0;if(f)for(d=l+1;d<o&&r[d]<s;)d+=1;let h=-1;return d<o&&r[d]===s&&(h=nE(n[d],e.span.end,tE)[0]),{touchingLevel:l,touchingLateral:u,touchingEntry:f,stackCnt:c,levelCoord:s,level:d,lateral:h}}toRects(){let{entriesByLevel:e,levelCoords:r}=this,n=e.length,i=[];for(let a=0;a<n;a+=1){let o=e[a],s=r[a];for(let l of o)i.push(Object.assign(Object.assign({},l),{thickness:this.getEntryThickness(l),levelCoord:s}))}return i}}function tE(t){return t.span.end}function nu(t){return t.index+":"+t.span.start}function rE(t,e){let r=Math.max(t.start,e.start),n=Math.min(t.end,e.end);return r<n?{start:r,end:n}:null}function pm(t,e,r){t.splice(e,0,r)}function nE(t,e,r){let n=0,i=t.length;if(!i||e<r(t[n]))return[0,0];if(e>r(t[i-1]))return[i,0];for(;n<i;){let a=Math.floor(n+(i-n)/2),o=r(t[a]);if(e<o)i=a;else if(e>o)n=a+1;else return[a,1]}return[n,0]}function VH(t,e){return!t||e>10?$t({weekday:"short"}):e>1?$t({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):$t({weekday:"long"})}const iE="fc-col-header-cell";function aE(t){return t.text}class WH extends Dt{render(){let{dateEnv:e,options:r,theme:n,viewApi:i}=this.context,{props:a}=this,{date:o,dateProfile:s}=a,l=eE(o,a.todayRange,null,s),u=[iE].concat(dm(l,n)),f=e.format(o,a.dayHeaderFormat),c=!l.isDisabled&&a.colCnt>1?hm(this.context,o):{},d=Object.assign(Object.assign(Object.assign({date:e.toDate(o),view:i},a.extraRenderProps),{text:f}),l);return re(bi,{elTag:"th",elClasses:u,elAttrs:Object.assign({role:"columnheader",colSpan:a.colSpan,"data-date":l.isDisabled?void 0:qg(o)},a.extraDataAttrs),renderProps:d,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:aE,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},h=>re("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&re(h,{elTag:"a",elAttrs:c,elClasses:["fc-col-header-cell-cushion",a.isSticky&&"fc-sticky"]})))}}const $H=$t({weekday:"long"});class GH extends Dt{render(){let{props:e}=this,{dateEnv:r,theme:n,viewApi:i,options:a}=this.context,o=Jt(new Date(2592e5),e.dow),s={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=r.format(o,e.dayHeaderFormat),u=Object.assign(Object.assign(Object.assign(Object.assign({date:o},s),{view:i}),e.extraRenderProps),{text:l});return re(bi,{elTag:"th",elClasses:[iE,...dm(s,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:a.dayHeaderContent,defaultGenerator:aE,classNameGenerator:a.dayHeaderClassNames,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},f=>re("div",{className:"fc-scrollgrid-sync-inner"},re(f,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":r.format(o,$H)}})))}}class gm extends Hr{constructor(e,r){super(e,r),this.initialNowDate=Jl(r.options.now,r.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:r}=this;return e.children(r.nowDate,r.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:r}=this,n=qi(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=r.dateEnv.startOf(n,e.unit),a=r.dateEnv.add(i,dt(1,e.unit)),o=a.valueOf()-n.valueOf();return o=Math.min(1e3*60*60*24,o),{currentState:{nowDate:i,todayRange:oE(i)},nextState:{nowDate:a,todayRange:oE(a)},waitMs:o}}setTimeout(){let{nextState:e,waitMs:r}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},r)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}gm.contextType=Ka;function oE(t){let e=xt(t),r=Jt(e,1);return{start:e,end:r}}class UH extends Dt{constructor(){super(...arguments),this.createDayHeaderFormatter=it(qH)}render(){let{context:e}=this,{dates:r,dateProfile:n,datesRepDistinctDays:i,renderIntro:a}=this.props,o=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,r.length);return re(gm,{unit:"day"},(s,l)=>re("tr",{role:"row"},a&&a("day"),r.map(u=>i?re(WH,{key:u.toISOString(),date:u,dateProfile:n,todayRange:l,colCnt:r.length,dayHeaderFormat:o}):re(GH,{key:u.getUTCDay(),dow:u.getUTCDay(),dayHeaderFormat:o}))))}}function qH(t,e,r){return t||VH(e,r)}class YH{constructor(e,r){let n=e.start,{end:i}=e,a=[],o=[],s=-1;for(;n<i;)r.isHiddenDay(n)?a.push(s+.5):(s+=1,a.push(s),o.push(n)),n=Jt(n,1);this.dates=o,this.indices=a,this.cnt=o.length}sliceRange(e){let r=this.getDateDayIndex(e.start),n=this.getDateDayIndex(Jt(e.end,-1)),i=Math.max(0,r),a=Math.min(this.cnt-1,n);return i=Math.ceil(i),a=Math.floor(a),i<=a?{firstIndex:i,lastIndex:a,isStart:r===i,isEnd:n===a}:null}getDateDayIndex(e){let{indices:r}=this,n=Math.floor(ps(this.dates[0],e));return n<0?r[0]-1:n>=r.length?r[r.length-1]+1:r[n]}}class XH{constructor(e,r){let{dates:n}=e,i,a,o;if(r){for(a=n[0].getUTCDay(),i=1;i<n.length&&n[i].getUTCDay()!==a;i+=1);o=Math.ceil(n.length/i)}else o=1,i=n.length;this.rowCnt=o,this.colCnt=i,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let r=0;r<this.rowCnt;r+=1){let n=[];for(let i=0;i<this.colCnt;i+=1)n.push(this.buildCell(r,i));e.push(n)}return e}buildCell(e,r){let n=this.daySeries.dates[e*this.colCnt+r];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let r=0;r<this.colCnt;r+=1)e.push(this.cells[0][r].date);return e}sliceRange(e){let{colCnt:r}=this,n=this.daySeries.sliceRange(e),i=[];if(n){let{firstIndex:a,lastIndex:o}=n,s=a;for(;s<=o;){let l=Math.floor(s/r),u=Math.min((l+1)*r,o+1);i.push({row:l,firstCol:s%r,lastCol:(u-1)%r,isStart:n.isStart&&s===a,isEnd:n.isEnd&&u-1===o}),s=u}}return i}}class ZH{constructor(){this.sliceBusinessHours=it(this._sliceBusinessHours),this.sliceDateSelection=it(this._sliceDateSpan),this.sliceEventStore=it(this._sliceEventStore),this.sliceEventDrag=it(this._sliceInteraction),this.sliceEventResize=it(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,r,n,i,...a){let{eventUiBases:o}=e,s=this.sliceEventStore(e.eventStore,o,r,n,...a);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,r,n,o,i,...a),businessHourSegs:this.sliceBusinessHours(e.businessHours,r,n,i,...a),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(e.eventDrag,o,r,n,...a),eventResize:this.sliceEventResize(e.eventResize,o,r,n,...a),eventSelection:e.eventSelection}}sliceNowDate(e,r,n,i,...a){return this._sliceDateSpan({range:{start:e,end:qi(e,1)},allDay:!1},r,n,{},i,...a)}_sliceBusinessHours(e,r,n,i,...a){return e?this._sliceEventStore(eu(e,$c(r,!!n),i),{},r,n,...a).bg:[]}_sliceEventStore(e,r,n,i,...a){if(e){let o=VS(e,r,$c(n,!!i),i);return{bg:this.sliceEventRanges(o.bg,a),fg:this.sliceEventRanges(o.fg,a)}}return{bg:[],fg:[]}}_sliceInteraction(e,r,n,i,...a){if(!e)return null;let o=VS(e.mutatedEvents,r,$c(n,!!i),i);return{segs:this.sliceEventRanges(o.fg,a),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,r,n,i,a,...o){if(!e)return[];let s=$c(r,!!n),l=ms(e.range,s);if(l){e=Object.assign(Object.assign({},e),{range:l});let u=EH(e,i,a),f=this.sliceRange(e.range,...o);for(let c of f)c.eventRange=u;return f}return[]}sliceEventRanges(e,r){let n=[];for(let i of e)n.push(...this.sliceEventRange(i,r));return n}sliceEventRange(e,r){let n=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(n={start:n.start,end:Jt(n.start,1)});let i=this.sliceRange(n,...r);for(let a of i)a.eventRange=e,a.isStart=e.isStart&&a.isStart,a.isEnd=e.isEnd&&a.isEnd;return i}}function $c(t,e){let r=t.activeRange;return e?r:{start:qi(r.start,t.slotMinTime.milliseconds),end:qi(r.end,t.slotMaxTime.milliseconds-864e5)}}const Gc=/^(visible|hidden)$/;class KH extends Dt{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,yi(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:r,liquidIsAbsolute:n}=e,i=r&&n,a=["fc-scroller"];return r&&(n?a.push("fc-scroller-liquid-absolute"):a.push("fc-scroller-liquid")),re("div",{ref:this.handleEl,className:a.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(Gc.test(this.props.overflowX))return!1;let{el:e}=this,r=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let i=0;i<n.length;i+=1)if(n[i].getBoundingClientRect().width>r)return!0;return!1}needsYScrolling(){if(Gc.test(this.props.overflowY))return!1;let{el:e}=this,r=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let i=0;i<n.length;i+=1)if(n[i].getBoundingClientRect().height>r)return!0;return!1}getXScrollbarWidth(){return Gc.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Gc.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class to{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(r,n)=>{let{depths:i,currentMap:a}=this,o=!1,s=!1;r!==null?(o=n in a,a[n]=r,i[n]=(i[n]||0)+1,s=!0):(i[n]-=1,i[n]||(delete a[n],delete this.callbackMap[n],o=!0)),this.masterCallback&&(o&&this.masterCallback(null,String(n)),s&&this.masterCallback(r,String(n)))}}createRef(e){let r=this.callbackMap[e];return r||(r=this.callbackMap[e]=n=>{this.handleValue(n,String(e))}),r}collect(e,r,n){return m7(this.currentMap,e,r,n)}getAll(){return Qg(this.currentMap)}}function QH(t){let e=_9(t,".fc-scrollgrid-shrink"),r=0;for(let n of e)r=Math.max(r,M9(n));return Math.ceil(r)}function sE(t,e){return t.liquid&&e.liquid}function JH(t,e){return e.maxHeight!=null||sE(t,e)}function eV(t,e,r,n){let{expandRows:i}=r;return typeof e.content=="function"?e.content(r):re("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:r.tableMinWidth,width:r.clientWidth,height:i?r.clientHeight:""}},r.tableColGroupNode,re(n?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(r):e.rowContent))}function tV(t,e){return Ui(t,e,kn)}function rV(t,e){let r=[];for(let n of t){let i=n.span||1;for(let a=0;a<i;a+=1)r.push(re("col",{style:{width:n.width==="shrink"?nV(e):n.width||"",minWidth:n.minWidth||""}}))}return re("colgroup",{},...r)}function nV(t){return t??4}function iV(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function aV(t,e){let r=["fc-scrollgrid",e.theme.getClass("table")];return t&&r.push("fc-scrollgrid-liquid"),r}function oV(t,e){let r=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&r.push("fc-scrollgrid-section-liquid"),t.isSticky&&r.push("fc-scrollgrid-section-sticky"),r}function sV(t){return re("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function lE(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function lV(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class uE extends Dt{constructor(){super(...arguments),this.processCols=it(e=>e,tV),this.renderMicroColGroup=it(rV),this.scrollerRefs=new to,this.scrollerElRefs=new to(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:r,context:n}=this,i=e.sections||[],a=this.processCols(e.cols),o=this.renderMicroColGroup(a,r.shrinkWidth),s=aV(e.liquid,n);e.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");let l=i.length,u=0,f,c=[],d=[],h=[];for(;u<l&&(f=i[u]).type==="header";)c.push(this.renderSection(f,o,!0)),u+=1;for(;u<l&&(f=i[u]).type==="body";)d.push(this.renderSection(f,o,!1)),u+=1;for(;u<l&&(f=i[u]).type==="footer";)h.push(this.renderSection(f,o,!0)),u+=1;let v=!KS();const g={role:"rowgroup"};return re("table",{role:"grid",className:s.join(" "),style:{height:e.height}},!!(!v&&c.length)&&re("thead",g,...c),!!(!v&&d.length)&&re("tbody",g,...d),!!(!v&&h.length)&&re("tfoot",g,...h),v&&re("tbody",g,...c,...d,...h))}renderSection(e,r,n){return"outerContent"in e?re(Rt,{key:e.key},e.outerContent):re("tr",{key:e.key,role:"presentation",className:oV(e,this.props.liquid).join(" ")},this.renderChunkTd(e,r,e.chunk,n))}renderChunkTd(e,r,n,i){if("outerContent"in n)return n.outerContent;let{props:a}=this,{forceYScrollbars:o,scrollerClientWidths:s,scrollerClientHeights:l}=this.state,u=JH(a,e),f=sE(a,e),c=a.liquid?o?"scroll":u?"auto":"hidden":"visible",d=e.key,h=eV(e,n,{tableColGroupNode:r,tableMinWidth:"",clientWidth:!a.collapsibleWidth&&s[d]!==void 0?s[d]:null,clientHeight:l[d]!==void 0?l[d]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return re(i?"th":"td",{ref:n.elRef,role:"presentation"},re("div",{className:`fc-scroller-harness${f?" fc-scroller-harness-liquid":""}`},re(KH,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:c,overflowX:a.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:f,liquidIsAbsolute:!0},h)))}_handleScrollerEl(e,r){let n=uV(this.props.sections,r);n&&yi(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return iV(this.props.cols)?QH(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=FH(),{scrollerRefs:r,scrollerElRefs:n}=this,i=!1,a={},o={};for(let s in r.currentMap){let l=r.currentMap[s];if(l&&l.needsYScrolling()){i=!0;break}}for(let s of this.props.sections){let l=s.key,u=n.currentMap[l];if(u){let f=u.parentNode;a[l]=Math.floor(f.getBoundingClientRect().width-(i?e.y:0)),o[l]=Math.floor(f.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:a,scrollerClientHeights:o}}}uE.addStateEquality({scrollerClientWidths:kn,scrollerClientHeights:kn});function uV(t,e){for(let r of t)if(r.key===e)return r;return null}class mm extends Dt{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&WS(e,this.props.seg)}}render(){const{props:e,context:r}=this,{options:n}=r,{seg:i}=e,{eventRange:a}=i,{ui:o}=a,s={event:new Qr(r,a.def,a.instance),view:r.viewApi,timeText:e.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!e.disableDragging&&mH(i,r),isStartResizable:!e.disableResizing&&yH(i,r),isEndResizable:!e.disableResizing&&bH(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 re(bi,Object.assign({},e,{elRef:this.handleEl,elClasses:[...CH(s),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:s,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&WS(this.el,this.props.seg)}}class fV extends Dt{render(){let{props:e,context:r}=this,{options:n}=r,{seg:i}=e,{ui:a}=i.eventRange,o=n.eventTimeFormat||e.defaultTimeFormat,s=US(i,o,r,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return re(mm,Object.assign({},e,{elTag:"a",elStyle:{borderColor:a.borderColor,backgroundColor:a.backgroundColor},elAttrs:qS(i,r),defaultGenerator:cV,timeText:s}),(l,u)=>re(Rt,null,re(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:u.textColor}}),!!u.isStartResizable&&re("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!u.isEndResizable&&re("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function cV(t){return re("div",{className:"fc-event-main-frame"},t.timeText&&re("div",{className:"fc-event-time"},t.timeText),re("div",{className:"fc-event-title-container"},re("div",{className:"fc-event-title fc-sticky"},t.event.title||re(Rt,null," "))))}const dV=$t({day:"numeric"});class fE extends Dt{constructor(){super(...arguments),this.refineRenderProps=Mc(hV)}render(){let{props:e,context:r}=this,{options:n}=r,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:r.viewApi,dateEnv:r.dateEnv,monthStartFormat:n.monthStartFormat});return re(bi,Object.assign({},e,{elClasses:[...dm(i,r.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":qg(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function cE(t){return!!(t.dayCellContent||rm("dayCellContent",t))}function hV(t){let{date:e,dateEnv:r,dateProfile:n,isMonthStart:i}=t,a=eE(e,t.todayRange,null,n),o=t.showDayNumber?r.format(e,i?t.monthStartFormat:dV):"";return Object.assign(Object.assign(Object.assign({date:r.toDate(e),view:t.viewApi},a),{isMonthStart:i,dayNumberText:o}),t.extraRenderProps)}class vV extends Dt{render(){let{props:e}=this,{seg:r}=e;return re(mm,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:r.eventRange.ui.backgroundColor},defaultGenerator:pV,seg:r,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function pV(t){let{title:e}=t.event;return e&&re("div",{className:"fc-event-title"},t.event.title)}function gV(t){return re("div",{className:`fc-${t}`})}const mV=t=>re(Ka.Consumer,null,e=>{let{dateEnv:r,options:n}=e,{date:i}=t,a=n.weekNumberFormat||t.defaultFormat,o=r.computeWeekNumber(i),s=r.format(i,a);return re(bi,Object.assign({},t,{renderProps:{num:o,text:s,date:i},generatorName:"weekNumberContent",customGenerator:n.weekNumberContent,defaultGenerator:yV,classNameGenerator:n.weekNumberClassNames,didMount:n.weekNumberDidMount,willUnmount:n.weekNumberWillUnmount}))});function yV(t){return t.text}const ym=10;class bV extends Dt{constructor(){super(...arguments),this.state={titleId:Oc()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&yi(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const r=D9(e);this.rootEl.contains(r)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:r}=this.context,{props:n,state:i}=this,a=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return o9(re("div",Object.assign({},n.extraAttrs,{id:n.id,className:a.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),re("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},re("span",{className:"fc-popover-title",id:i.titleId},n.title),re("span",{className:"fc-popover-close "+e.getIconClass("close"),title:r.closeHint,onClick:this.handleCloseClick})),re("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.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:r,alignGridTop:n}=this.props,{rootEl:i}=this,a=zH(r);if(a){let o=i.getBoundingClientRect(),s=n?mi(r,".fc-scrollgrid").getBoundingClientRect().top:a.top,l=e?a.right-o.width:a.left;s=Math.max(s,ym),l=Math.min(l,document.documentElement.clientWidth-ym-o.width),l=Math.max(l,ym);let u=i.offsetParent.getBoundingClientRect();x9(i,{top:s-u.top,left:l-u.left})}}}class CV extends eo{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:r}=this.context,{props:n}=this,{startDate:i,todayRange:a,dateProfile:o}=n,s=r.format(i,e.dayPopoverFormat);return re(fE,{elRef:this.handleRootEl,date:i,dateProfile:o,todayRange:a},(l,u,f)=>re(bV,{elRef:f.ref,id:n.id,title:s,extraClassNames:["fc-more-popover"].concat(f.className||[]),extraAttrs:f,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},cE(e)&&re(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children))}queryHit(e,r,n,i){let{rootEl:a,props:o}=this;return e>=0&&e<n&&r>=0&&r<i?{dateProfile:o.dateProfile,dateSpan:Object.assign({allDay:!o.forceTimed,range:{start:o.startDate,end:o.endDate}},o.extraDateSpan),dayEl:a,rect:{left:0,top:0,right:n,bottom:i},layer:1}:null}}class _V extends Dt{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Oc()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&yi(this.props.elRef,e)},this.handleClick=e=>{let{props:r,context:n}=this,{moreLinkClick:i}=n.options,a=dE(r).start;function o(s){let{def:l,instance:u,range:f}=s.eventRange;return{event:new Qr(n,l,u),start:n.dateEnv.toDate(f.start),end:n.dateEnv.toDate(f.end),isStart:s.isStart,isEnd:s.isEnd}}typeof i=="function"&&(i=i({date:a,allDay:!!r.allDayDate,allSegs:r.allSegs.map(o),hiddenSegs:r.hiddenSegs.map(o),jsEvent:e,view:n.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&n.calendarApi.zoomTo(a,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:r}=this;return re(Ka.Consumer,null,n=>{let{viewApi:i,options:a,calendarApi:o}=n,{moreLinkText:s}=a,{moreCnt:l}=e,u=dE(e),f=typeof s=="function"?s.call(o,l):`+${l} ${s}`,c=Yl(a.moreLinkHint,[l],f),d={num:l,shortText:`+${l}`,text:f,view:i};return re(Rt,null,!!e.moreCnt&&re(bi,{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),aS(this.handleClick)),{title:c,"aria-expanded":r.isPopoverOpen,"aria-controls":r.isPopoverOpen?r.popoverId:""}),renderProps:d,generatorName:"moreLinkContent",customGenerator:a.moreLinkContent,defaultGenerator:e.defaultGenerator||wV,classNameGenerator:a.moreLinkClassNames,didMount:a.moreLinkDidMount,willUnmount:a.moreLinkWillUnmount},e.children),r.isPopoverOpen&&re(CV,{id:r.popoverId,startDate:u.start,endDate:u.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=mi(this.linkEl,".fc-view-harness"))}}function wV(t){return t.text}function dE(t){if(t.allDayDate)return{start:t.allDayDate,end:Jt(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:xV(e),end:SV(e)}}function xV(t){return t.reduce(DV).eventRange.range.start}function DV(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function SV(t){return t.reduce(EV).eventRange.range.end}function EV(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class AV{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let r of this.handlers)r(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class TV extends AV{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:r}=this;let n=!1;e.isActive?(r.set(e.id,e),n=!0):r.has(e.id)&&(r.delete(e.id),n=!0),n&&this.set(r)}}const OV=[],hE={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"},vE=Object.assign(Object.assign({},hE),{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 RV(t){let e=t.length>0?t[0].code:"en",r=OV.concat(t),n={en:vE};for(let i of r)n[i.code]=i;return{map:n,defaultCode:e}}function pE(t,e){return typeof t=="object"&&!Array.isArray(t)?gE(t.code,[t.code],t):MV(t,e)}function MV(t,e){let r=[].concat(t||[]),n=PV(r,e)||vE;return gE(t,r,n)}function PV(t,e){for(let r=0;r<t.length;r+=1){let n=t[r].toLocaleLowerCase().split("-");for(let i=n.length;i>0;i-=1){let a=n.slice(0,i).join("-");if(e[a])return e[a]}}return null}function gE(t,e,r){let n=Kg([hE,r],["buttonText"]);delete n.code;let{week:i}=n;return delete n.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:n}}function ro(t){return{id:Ya(),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 BV(t,e){let r={},n={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(a){for(let o of a){const s=o.name,l=r[s];l===void 0?(r[s]=o.id,i(o.deps),n=NV(n,o)):l!==o.id&&console.warn(`Duplicate plugin '${s}'`)}}return t&&i(t),i(e),n}function IV(){let t=[],e=[],r;return(n,i)=>((!r||!Ui(n,t)||!Ui(i,e))&&(r=BV(n,i)),t=n,e=i,r)}function NV(t,e){return{premiumReleaseDate:FV(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.isDraggableTransformers.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 FV(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Ki extends Ql{}Ki.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Ki.prototype.baseIconClass="fc-icon",Ki.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"},Ki.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Ki.prototype.iconOverrideOption="buttonIcons",Ki.prototype.iconOverrideCustomButtonOption="icon",Ki.prototype.iconOverridePrefix="fc-icon-";function LV(t,e){let r={},n;for(n in t)bm(n,r,t,e);for(n in e)bm(n,r,t,e);return r}function bm(t,e,r,n){if(e[t])return e[t];let i=kV(t,e,r,n);return i&&(e[t]=i),i}function kV(t,e,r,n){let i=r[t],a=n[t],o=f=>i&&i[f]!==null?i[f]:a&&a[f]!==null?a[f]:null,s=o("component"),l=o("superType"),u=null;if(l){if(l===t)throw new Error("Can't have a custom view type that references itself");u=bm(l,e,r,n)}return!s&&u&&(s=u.component),s?{type:t,component:s,defaults:Object.assign(Object.assign({},u?u.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},u?u.overrides:{}),a?a.rawOptions:{})}:null}function mE(t){return Kl(t,zV)}function zV(t){let e=typeof t=="function"?{component:t}:t,{component:r}=e;return e.content?r=yE(e):r&&!(r.prototype instanceof Dt)&&(r=yE(Object.assign(Object.assign({},e),{content:r}))),{superType:e.type,component:r,rawOptions:e}}function yE(t){return e=>re(Ka.Consumer,null,r=>re(bi,{elTag:"div",elClasses:SS(r.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:r.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function jV(t,e,r,n){let i=mE(t),a=mE(e.views),o=LV(i,a);return Kl(o,s=>HV(s,a,e,r,n))}function HV(t,e,r,n,i){let a=t.overrides.duration||t.defaults.duration||n.duration||r.duration,o=null,s="",l="",u={};if(a&&(o=VV(a),o)){let d=Gg(o);s=d.unit,d.value===1&&(l=s,u=e[s]?e[s].rawOptions:{})}let f=d=>{let h=d.buttonText||{},v=t.defaults.buttonTextKey;return v!=null&&h[v]!=null?h[v]:h[t.type]!=null?h[t.type]:h[l]!=null?h[l]:null},c=d=>{let h=d.buttonHints||{},v=t.defaults.buttonTextKey;return v!=null&&h[v]!=null?h[v]:h[t.type]!=null?h[t.type]:h[l]!=null?h[l]:null};return{type:t.type,component:t.component,duration:o,durationUnit:s,singleUnit:l,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},u),t.overrides),buttonTextOverride:f(n)||f(r)||t.overrides.buttonText,buttonTextDefault:f(i)||t.defaults.buttonText||f(Zl)||t.type,buttonTitleOverride:c(n)||c(r)||t.overrides.buttonHint,buttonTitleDefault:c(i)||t.defaults.buttonHint||c(Zl)}}let bE={};function VV(t){let e=JSON.stringify(t),r=bE[e];return r===void 0&&(r=dt(t),bE[e]=r),r}function WV(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function $V(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function GV(t,e,r,n){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return n.build(e.dateMarker||r);case"CHANGE_DATE":return n.build(e.dateMarker);case"PREV":if(i=n.buildPrev(t,r),i.isValid)return i;break;case"NEXT":if(i=n.buildNext(t,r),i.isValid)return i;break}return t}function UV(t,e,r){let n=e?e.activeRange:null;return _E({},JV(t,r),n,r)}function qV(t,e,r,n){let i=r?r.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return _E(t,e.sources,i,n);case"REMOVE_EVENT_SOURCE":return XV(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?wE(t,i,n):t;case"FETCH_EVENT_SOURCES":return Cm(t,e.sourceIds?bS(e.sourceIds):xE(t,n),i,e.isRefetch||!1,n);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return QV(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function YV(t,e,r){let n=e?e.activeRange:null;return Cm(t,xE(t,r),n,!0,r)}function CE(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function _E(t,e,r,n){let i={};for(let a of e)i[a.sourceId]=a;return r&&(i=wE(i,r,n)),Object.assign(Object.assign({},t),i)}function XV(t,e){return gs(t,r=>r.sourceId!==e)}function wE(t,e,r){return Cm(t,gs(t,n=>ZV(n,e,r)),e,!1,r)}function ZV(t,e,r){return DE(t,r)?!r.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function Cm(t,e,r,n,i){let a={};for(let o in t){let s=t[o];e[o]?a[o]=KV(s,r,n,i):a[o]=s}return a}function KV(t,e,r,n){let{options:i,calendarApi:a}=n,o=n.pluginHooks.eventSourceDefs[t.sourceDefId],s=Ya();return o.fetch({eventSource:t,range:e,isRefetch:r,context:n},l=>{let{rawEvents:u}=l;i.eventSourceSuccess&&(u=i.eventSourceSuccess.call(a,u,l.response)||u),t.success&&(u=t.success.call(a,u,l.response)||u),n.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:s,fetchRange:e,rawEvents:u})},l=>{let u=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(a,l),u=!0),t.failure&&(t.failure(l),u=!0),u||console.warn(l.message,l),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:s,fetchRange:e,error:l})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:s})}function QV(t,e,r,n){let i=t[e];return i&&r===i.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:n})}):t}function xE(t,e){return gs(t,r=>DE(r,e))}function JV(t,e){let r=NS(e),n=[].concat(t.eventSources||[]),i=[];t.initialEvents&&n.unshift(t.initialEvents),t.events&&n.unshift(t.events);for(let a of n){let o=IS(a,e,r);o&&i.push(o)}return i}function DE(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function eW(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function tW(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function rW(t,e){let r;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return r=e.state,{affectedEvents:r.affectedEvents,mutatedEvents:r.mutatedEvents,isEvent:r.isEvent};default:return t}}function nW(t,e){let r;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return r=e.state,{affectedEvents:r.affectedEvents,mutatedEvents:r.mutatedEvents,isEvent:r.isEvent};default:return t}}function iW(t,e,r,n,i){let a=t.headerToolbar?SE(t.headerToolbar,t,e,r,n,i):null,o=t.footerToolbar?SE(t.footerToolbar,t,e,r,n,i):null;return{header:a,footer:o}}function SE(t,e,r,n,i,a){let o={},s=[],l=!1;for(let u in t){let f=t[u],c=aW(f,e,r,n,i,a);o[u]=c.widgets,s.push(...c.viewsWithButtons),l=l||c.hasTitle}return{sectionWidgets:o,viewsWithButtons:s,hasTitle:l}}function aW(t,e,r,n,i,a){let o=e.direction==="rtl",s=e.customButtons||{},l=r.buttonText||{},u=e.buttonText||{},f=r.buttonHints||{},c=e.buttonHints||{},d=t?t.split(" "):[],h=[],v=!1;return{widgets:d.map(p=>p.split(",").map(m=>{if(m==="title")return v=!0,{buttonName:m};let y,b,_,C,w,x;if(y=s[m])_=D=>{y.click&&y.click.call(D.target,D,D.target)},(C=n.getCustomButtonIconClass(y))||(C=n.getIconClass(m,o))||(w=y.text),x=y.hint||y.text;else if(b=i[m]){h.push(m),_=()=>{a.changeView(m)},(w=b.buttonTextOverride)||(C=n.getIconClass(m,o))||(w=b.buttonTextDefault);let D=b.buttonTextOverride||b.buttonTextDefault;x=Yl(b.buttonTitleOverride||b.buttonTitleDefault||e.viewHint,[D,m],D)}else if(a[m])if(_=()=>{a[m]()},(w=l[m])||(C=n.getIconClass(m,o))||(w=u[m]),m==="prevYear"||m==="nextYear"){let D=m==="prevYear"?"prev":"next";x=Yl(f[D]||c[D],[u.year||"year","year"],u[m])}else x=D=>Yl(f[m]||c[m],[u[D]||D,D],u[m]);return{buttonName:m,buttonClick:_,buttonIcon:C,buttonText:w,buttonHint:x}})),viewsWithButtons:h,hasTitle:v}}class oW{constructor(e,r,n){this.type=e,this.getCurrentData=r,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}const sW=ro({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}}]}),lW=ro({name:"func-event-source",eventSourceDefs:[{parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,r){const{dateEnv:n}=t.context,i=t.eventSource.meta;AH(i.bind(null,YS(t.range,n)),a=>e({rawEvents:a}),r)}}]}),uW=ro({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:ne,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{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,r){const{meta:n}=t.eventSource,i=fW(n,t.range,t.context);TH(n.method,n.url,i).then(([a,o])=>{e({rawEvents:a,response:o})},r)}}]});function fW(t,e,r){let{dateEnv:n,options:i}=r,a,o,s,l,u={};return a=t.startParam,a==null&&(a=i.startParam),o=t.endParam,o==null&&(o=i.endParam),s=t.timeZoneParam,s==null&&(s=i.timeZoneParam),typeof t.extraParams=="function"?l=t.extraParams():l=t.extraParams||{},Object.assign(u,l),u[a]=n.formatIso(e.start),u[o]=n.formatIso(e.end),n.timeZone!=="local"&&(u[s]=n.timeZone),u}const cW=ro({name:"simple-recurring-event",recurringTypes:[{parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let r={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},n;return t.duration&&(n=t.duration),!n&&t.startTime&&t.endTime&&(n=N9(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:n,typeData:r}}return null},expand(t,e,r){let n=ms(e,{start:t.startRecur,end:t.endRecur});return n?dW(t.daysOfWeek,t.startTime,n,r):[]}}],eventRefiners:{daysOfWeek:ne,startTime:dt,endTime:dt,duration:dt,startRecur:ne,endRecur:ne}});function dW(t,e,r,n){let i=t?bS(t):null,a=xt(r.start),o=r.end,s=[];for(;a<o;){let l;(!i||i[a.getUTCDay()])&&(e?l=n.add(a,e):l=a,s.push(l)),a=Jt(a,1)}return s}const hW=ro({name:"change-handler",optionChangeHandlers:{events(t,e){EE([t],e)},eventSources:EE}});function EE(t,e){let r=Qg(e.getCurrentData().eventSources);if(r.length===1&&t.length===1&&Array.isArray(r[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:r[0].sourceId,rawEvents:t[0]});return}let n=[];for(let i of t){let a=!1;for(let o=0;o<r.length;o+=1)if(r[o]._raw===i){r.splice(o,1),a=!0;break}a||n.push(i)}for(let i of r)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of n)e.calendarApi.addEventSource(i)}function vW(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},YS(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function pW(t,e){let{emitter:r}=e;r.hasHandlers("eventsSet")&&r.trigger("eventsSet",um(t,e))}const gW=[sW,lW,uW,cW,hW,ro({name:"misc",isLoadingFuncs:[t=>CE(t.eventSources)],propSetHandlers:{dateProfile:vW,eventStore:pW}})];class mW{constructor(e,r){this.runTaskOption=e,this.drainedOption=r,this.queue=[],this.delayedRunner=new Vg(this.drain.bind(this))}request(e,r){this.queue.push(e),this.delayedRunner.request(r)}pause(e){this.delayedRunner.pause(e)}resume(e,r){this.delayedRunner.resume(e,r)}drain(){let{queue:e}=this;for(;e.length;){let r=[],n;for(;n=e.shift();)this.runTask(n),r.push(n);this.drained(r)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function yW(t,e,r){let n;return/^(year|month)$/.test(t.currentRangeUnit)?n=t.currentRange:n=t.activeRange,r.formatRange(n.start,n.end,$t(e.titleFormat||bW(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function bW(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let r=Rc(t.currentRange.start,t.currentRange.end);return r!==null&&r>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class CW{constructor(e){this.computeCurrentViewData=it(this._computeCurrentViewData),this.organizeRawLocales=it(RV),this.buildLocale=it(pE),this.buildPluginHooks=IV(),this.buildDateEnv=it(_W),this.buildTheme=it(wW),this.parseToolbars=it(iW),this.buildViewSpecs=it(jV),this.buildDateProfileGenerator=Mc(xW),this.buildViewApi=it(DW),this.buildViewUiProps=Mc(AW),this.buildEventUiBySource=it(SW,kn),this.buildEventUiBases=it(EW),this.parseContextBusinessHours=Mc(TW),this.buildTitle=it(yW),this.emitter=new nH,this.actionRunner=new mW(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=d=>{this.actionRunner.request(d)},this.props=e,this.actionRunner.pause();let r={},n=this.computeOptionsData(e.optionOverrides,r,e.calendarApi),i=n.calendarOptions.initialView||n.pluginHooks.initialView,a=this.computeCurrentViewData(i,n,e.optionOverrides,r);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(a.options);let o=L7(n.calendarOptions,n.dateEnv),s=a.dateProfileGenerator.build(o);Zi(s.activeRange,o)||(o=s.currentRange.start);let l={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let d of n.pluginHooks.contextInit)d(l);let u=UV(n.calendarOptions,s,l),f={dynamicOptionOverrides:r,currentViewType:i,currentDate:o,dateProfile:s,businessHours:this.parseContextBusinessHours(l),eventSources:u,eventUiBases:{},eventStore:Ja(),renderableEventStore:Ja(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},c=Object.assign(Object.assign({},l),f);for(let d of n.pluginHooks.reducers)Object.assign(f,d(null,null,c));_m(f,l)&&this.emitter.trigger("loading",!0),this.state=f,this.updateData(),this.actionRunner.resume()}resetOptions(e,r){let{props:n}=this;r===void 0?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...r)),(r===void 0||r.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:r,state:n,emitter:i}=this,a=$V(n.dynamicOptionOverrides,e),o=this.computeOptionsData(r.optionOverrides,a,r.calendarApi),s=WV(n.currentViewType,e),l=this.computeCurrentViewData(s,o,r.optionOverrides,a);r.calendarApi.currentDataManager=this,i.setThisContext(r.calendarApi),i.setOptions(l.options);let u={dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:r.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:f,dateProfile:c}=n;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(c=l.dateProfileGenerator.build(f)),f=F7(f,e),c=GV(c,e,f,l.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!Zi(c.currentRange,f))&&(f=c.currentRange.start);let d=qV(n.eventSources,e,c,u),h=Q7(n.eventStore,e,d,c,u),g=CE(d)&&!l.options.progressiveEventRendering&&n.renderableEventStore||h,{eventUiSingleBase:p,selectionConfig:m}=this.buildViewUiProps(u),y=this.buildEventUiBySource(d),b=this.buildEventUiBases(g.defs,p,y),_={dynamicOptionOverrides:a,currentViewType:s,currentDate:f,dateProfile:c,eventSources:d,eventStore:h,renderableEventStore:g,selectionConfig:m,eventUiBases:b,businessHours:this.parseContextBusinessHours(u),dateSelection:eW(n.dateSelection,e),eventSelection:tW(n.eventSelection,e),eventDrag:rW(n.eventDrag,e),eventResize:nW(n.eventResize,e)},C=Object.assign(Object.assign({},u),_);for(let D of o.pluginHooks.reducers)Object.assign(_,D(n,e,C));let w=_m(n,u),x=_m(_,u);!w&&x?i.trigger("loading",!0):w&&!x&&i.trigger("loading",!1),this.state=_,r.onAction&&r.onAction(e)}updateData(){let{props:e,state:r}=this,n=this.data,i=this.computeOptionsData(e.optionOverrides,r.dynamicOptionOverrides,e.calendarApi),a=this.computeCurrentViewData(r.currentViewType,i,e.optionOverrides,r.dynamicOptionOverrides),o=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(r.dateProfile,a.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),a),r),s=i.pluginHooks.optionChangeHandlers,l=n&&n.calendarOptions,u=i.calendarOptions;if(l&&l!==u){l.timeZone!==u.timeZone&&(r.eventSources=o.eventSources=YV(o.eventSources,r.dateProfile,o),r.eventStore=o.eventStore=kS(o.eventStore,n.dateEnv,o.dateEnv),r.renderableEventStore=o.renderableEventStore=kS(o.renderableEventStore,n.dateEnv,o.dateEnv));for(let f in s)(this.optionsForHandling.indexOf(f)!==-1||l[f]!==u[f])&&s[f](u[f],o)}this.optionsForHandling=[],e.onData&&e.onData(o)}computeOptionsData(e,r,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&r===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:a,localeDefaults:o,availableLocaleData:s,extra:l}=this.processRawCalendarOptions(e,r);AE(l);let u=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,a,s,i.defaultRangeSeparator),f=this.buildViewSpecs(a.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,o),c=this.buildTheme(i,a),d=this.parseToolbars(i,this.stableOptionOverrides,c,f,n);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:a,dateEnv:u,viewSpecs:f,theme:c,toolbarConfig:d,localeDefaults:o,availableRawLocales:s.map}}processRawCalendarOptions(e,r){let{locales:n,locale:i}=Xg([Zl,e,r]),a=this.organizeRawLocales(n),o=a.map,s=this.buildLocale(i||a.defaultCode,o).options,l=this.buildPluginHooks(e.plugins||[],gW),u=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gS),mS),yS),l.listenerRefiners),l.optionRefiners),f={},c=Xg([Zl,s,e,r]),d={},h=this.currentCalendarOptionsInput,v=this.currentCalendarOptionsRefined,g=!1;for(let p in c)this.optionsForRefining.indexOf(p)===-1&&(c[p]===h[p]||Xa[p]&&p in h&&Xa[p](h[p],c[p]))?d[p]=v[p]:u[p]?(d[p]=u[p](c[p]),g=!0):f[p]=h[p];return g&&(this.currentCalendarOptionsInput=c,this.currentCalendarOptionsRefined=d,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=r),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:a,localeDefaults:s,extra:f}}_computeCurrentViewData(e,r,n,i){let a=r.viewSpecs[e];if(!a)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:o,extra:s}=this.processRawViewOptions(a,r.pluginHooks,r.localeDefaults,n,i);AE(s);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:a.optionDefaults.dateProfileGeneratorClass,duration:a.duration,durationUnit:a.durationUnit,usesMinMaxTime:a.optionDefaults.usesMinMaxTime,dateEnv:r.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,showNonCurrentDates:o.showNonCurrentDates,dayCount:o.dayCount,dateAlignment:o.dateAlignment,dateIncrement:o.dateIncrement,hiddenDays:o.hiddenDays,weekends:o.weekends,nowInput:o.now,validRangeInput:o.validRange,visibleRangeInput:o.visibleRange,fixedWeekCount:o.fixedWeekCount}),u=this.buildViewApi(e,this.getCurrentData,r.dateEnv);return{viewSpec:a,options:o,dateProfileGenerator:l,viewApi:u}}processRawViewOptions(e,r,n,i,a){let o=Xg([Zl,e.optionDefaults,n,i,e.optionOverrides,a]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gS),mS),yS),h7),r.listenerRefiners),r.optionRefiners),l={},u=this.currentViewOptionsInput,f=this.currentViewOptionsRefined,c=!1,d={};for(let h in o)o[h]===u[h]||Xa[h]&&Xa[h](o[h],u[h])?l[h]=f[h]:(o[h]===this.currentCalendarOptionsInput[h]||Xa[h]&&Xa[h](o[h],this.currentCalendarOptionsInput[h])?h in this.currentCalendarOptionsRefined&&(l[h]=this.currentCalendarOptionsRefined[h]):s[h]?l[h]=s[h](o[h]):d[h]=o[h],c=!0);return c&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}}}function _W(t,e,r,n,i,a,o,s){let l=pE(e||o.defaultCode,o.map);return new x7({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:l,weekNumberCalculation:r,firstDay:n,weekText:i,cmdFormatter:a.cmdFormatter,defaultSeparator:s})}function wW(t,e){let r=e.themeClasses[t.themeSystem]||Ki;return new r(t)}function xW(t){let e=t.dateProfileGeneratorClass||OS;return new e(t)}function DW(t,e,r){return new oW(t,e,r)}function SW(t){return Kl(t,e=>e.ui)}function EW(t,e,r){let n={"":e};for(let i in t){let a=t[i];a.sourceId&&r[a.sourceId]&&(n[i]=r[a.sourceId])}return n}function AW(t){let{options:e}=t;return{eventUiSingleBase:Hc({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:Hc({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function _m(t,e){for(let r of e.pluginHooks.isLoadingFuncs)if(r(t))return!0;return!1}function TW(t){return sH(t.options.businessHours,t)}function AE(t,e){for(let r in t)console.warn(`Unknown option '${r}'`)}class OW extends Dt{render(){let e=this.props.widgetGroups.map(r=>this.renderWidgetGroup(r));return re("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:r}=this,{theme:n}=this.context,i=[],a=!0;for(let o of e){let{buttonName:s,buttonClick:l,buttonText:u,buttonIcon:f,buttonHint:c}=o;if(s==="title")a=!1,i.push(re("h2",{className:"fc-toolbar-title",id:r.titleId},r.title));else{let d=s===r.activeButton,h=!r.isTodayEnabled&&s==="today"||!r.isPrevEnabled&&s==="prev"||!r.isNextEnabled&&s==="next",v=[`fc-${s}-button`,n.getClass("button")];d&&v.push(n.getClass("buttonActive")),i.push(re("button",{type:"button",title:typeof c=="function"?c(r.navUnit):c,disabled:h,"aria-pressed":d,className:v.join(" "),onClick:l},u||(f?re("span",{className:f,role:"img"}):"")))}}if(i.length>1){let o=a&&n.getClass("buttonGroup")||"";return re("div",{className:o},...i)}return i[0]}}class TE extends Dt{render(){let{model:e,extraClassName:r}=this.props,n=!1,i,a,o=e.sectionWidgets,s=o.center;return o.left?(n=!0,i=o.left):i=o.start,o.right?(n=!0,a=o.right):a=o.end,re("div",{className:[r||"","fc-toolbar",n?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",s||[]),this.renderSection("end",a||[]))}renderSection(e,r){let{props:n}=this;return re(OW,{key:e,widgetGroups:r,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class RW extends Dt{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,yi(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:r}=this,{aspectRatio:n}=e,i=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],a="",o="";return n?r.availableWidth!==null?a=r.availableWidth/n:o=`${1/n*100}%`:a=e.height||"",re("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:a,paddingBottom:o}},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 MW extends QS{constructor(e){super(e),this.handleSegClick=(r,n)=>{let{component:i}=this,{context:a}=i,o=fm(n);if(o&&i.isValidSegDownEl(r.target)){let s=mi(r.target,".fc-event-forced-url"),l=s?s.querySelector("a[href]").href:"";a.emitter.trigger("eventClick",{el:n,event:new Qr(i.context,o.eventRange.def,o.eventRange.instance),jsEvent:r,view:a.viewApi}),l&&!r.defaultPrevented&&(window.location.href=l)}},this.destroy=iS(e.el,"click",".fc-event",this.handleSegClick)}}class PW extends QS{constructor(e){super(e),this.handleEventElRemove=r=>{r===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(r,n)=>{fm(n)&&(this.currentSegEl=n,this.triggerEvent("eventMouseEnter",r,n))},this.handleSegLeave=(r,n)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",r,n))},this.removeHoverListeners=E9(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,r,n){let{component:i}=this,{context:a}=i,o=fm(n);(!r||i.isValidSegDownEl(r.target))&&a.emitter.trigger(e,{el:n,event:new Qr(a,o.eventRange.def,o.eventRange.instance),jsEvent:r,view:a.viewApi})}}class BW extends Qa{constructor(){super(...arguments),this.buildViewContext=it(E7),this.buildViewPropTransformers=it(NW),this.buildToolbarProps=it(IW),this.headerRef=gi(),this.footerRef=gi(),this.interactionsStore={},this.state={viewLabelId:Oc()},this.registerInteractiveComponent=(e,r)=>{let n=MH(e,r),o=[MW,PW].concat(this.props.pluginHooks.componentInteractions).map(s=>new s(n));this.interactionsStore[e.uid]=o,JS[e.uid]=n},this.unregisterInteractiveComponent=e=>{let r=this.interactionsStore[e.uid];if(r){for(let n of r)n.destroy();delete this.interactionsStore[e.uid]}delete JS[e.uid]},this.resizeRunner=new Vg(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:r}=this.props;r.handleWindowResize&&e.target===window&&this.resizeRunner.request(r.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:r,options:n}=e,i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,Jl(e.options.now,e.dateEnv),e.viewTitle),a=!1,o="",s;e.isHeightAuto||e.forPrint?o="":n.height!=null?a=!0:n.contentHeight!=null?o=n.contentHeight:s=Math.max(n.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),u=r.header&&r.header.hasTitle?this.state.viewLabelId:void 0;return re(Ka.Provider,{value:l},r.header&&re(TE,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:r.header,titleId:u},i)),re(RW,{liquid:a,height:o,aspectRatio:s,labeledById:u},this.renderView(e),this.buildAppendContent()),r.footer&&re(TE,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:r.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(n=>new n(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:r}=e.pluginHooks;for(let n in r)r[n](e[n],e)}componentDidUpdate(e){let{props:r}=this,{propSetHandlers:n}=r.pluginHooks;for(let i in n)r[i]!==e[i]&&n[i](r[i],r)}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,r=e.pluginHooks.viewContainerAppends.map(n=>n(e));return re(Rt,{},...r)}renderView(e){let{pluginHooks:r}=e,{viewSpec:n}=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},a=this.buildViewPropTransformers(r.viewPropsTransformers);for(let s of a)Object.assign(i,s.transform(i,e));let o=n.component;return re(o,Object.assign({},i))}}function IW(t,e,r,n,i,a){let o=r.build(i,void 0,!1),s=r.buildPrev(e,n,!1),l=r.buildNext(e,n,!1);return{title:a,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:o.isValid&&!Zi(e.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function NW(t){return t.map(e=>new e)}class FW extends PH{constructor(e,r={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=n=>{switch(n.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=n=>{this.currentData=n,this.renderRunner.request(n.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:n}=this;Lc(()=>{ql(re(RH,{options:n.calendarOptions,theme:n.theme,emitter:n.emitter},(i,a,o,s)=>(this.setClassNames(i),this.setHeight(a),re(xS.Provider,{value:this.customContentRenderId},re(BW,Object.assign({isHeightAuto:o,forPrint:s},n))))),this.el)})}else this.isRendered&&(this.isRendered=!1,ql(null,this.el),this.setClassNames([]),this.setHeight(""))},v9(e),this.el=e,this.renderRunner=new Vg(this.handleRenderRequest),new CW({optionOverrides:r,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(){Lc(()=>{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,r){this.currentDataManager.resetOptions(e,r)}setClassNames(e){if(!Ui(e,this.currentClassNames)){let{classList:r}=this.el;for(let n of this.currentClassNames)r.remove(n);for(let n of e)r.add(n);this.currentClassNames=e}}setHeight(e){rS(this.el,"height",e)}}const LW=parseInt(String(F.version).split(".")[0])<18;class OE extends F.Component{constructor(){super(...arguments),this.elRef=F.createRef(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame(()=>{this.doResize()}))}}render(){const e=[];for(const r of this.state.customRenderingMap.values())e.push(F.createElement(kW,{key:r.id,customRendering:r}));return F.createElement("div",{ref:this.elRef},e)}componentDidMount(){this.isUnmounting=!1;const e=new TV;this.handleCustomRendering=e.handle.bind(e),this.calendar=new FW(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",()=>{Da.flushSync(()=>{})});let r;e.subscribe(n=>{const i=Date.now(),a=!r;(LW||a||this.isUpdating||this.isUnmounting||i-r<100?RE:Da.flushSync)(()=>{this.setState({customRenderingMap:n},()=>{r=i,a?this.doResize():this.requestResize()})})})}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){this.resizeId!==void 0&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}OE.act=RE;class kW extends F.PureComponent{render(){const{customRendering:e}=this.props,{generatorMeta:r}=e,n=typeof r=="function"?r(e.renderProps):r;return Da.createPortal(n,e.containerEl)}}function RE(t){t()}class zW extends eo{constructor(){super(...arguments),this.headerElRef=gi()}renderSimpleLayout(e,r){let{props:n,context:i}=this,a=[],o=lE(i.options);return e&&a.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),a.push({type:"body",key:"body",liquid:!0,chunk:{content:r}}),re(DS,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},re(uE,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:a}))}renderHScrollLayout(e,r,n,i){let a=this.context.pluginHooks.scrollGridImpl;if(!a)throw new Error("No ScrollGrid implementation");let{props:o,context:s}=this,l=!o.forPrint&&lE(s.options),u=!o.forPrint&&lV(s.options),f=[];return e&&f.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),f.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:r}]}),u&&f.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:sV}]}),re(DS,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},re(a,{liquid:!o.isHeightAuto&&!o.forPrint,forPrint:o.forPrint,collapsibleWidth:o.forPrint,colGroups:[{cols:[{span:n,minWidth:i}]}],sections:f}))}}function Uc(t,e){let r=[];for(let n=0;n<e;n+=1)r[n]=[];for(let n of t)r[n.row].push(n);return r}function qc(t,e){let r=[];for(let n=0;n<e;n+=1)r[n]=[];for(let n of t)r[n.firstCol].push(n);return r}function ME(t,e){let r=[];if(t){for(let n=0;n<e;n+=1)r[n]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let n of t.segs)r[n.row].segs.push(n)}else for(let n=0;n<e;n+=1)r[n]=null;return r}const PE=$t({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function BE(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 IE extends Dt{render(){let{props:e}=this;return re(fV,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:PE,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class NE extends Dt{render(){let{props:e,context:r}=this,{options:n}=r,{seg:i}=e,a=n.eventTimeFormat||PE,o=US(i,a,r,!0,e.defaultDisplayEventEnd);return re(mm,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:qS(e.seg,r),defaultGenerator:jW,timeText:o,isResizing:!1,isDateSelecting:!1}))}}function jW(t){return re(Rt,null,re("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&re("div",{className:"fc-event-time"},t.timeText),re("div",{className:"fc-event-title"},t.event.title||re(Rt,null," ")))}class HW extends Dt{constructor(){super(...arguments),this.compileSegs=it(VW)}render(){let{props:e}=this,{allSegs:r,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return re(_V,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:r,hiddenSegs:n,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 re(Rt,null,r.map(a=>{let o=a.eventRange.instance.instanceId;return re("div",{className:"fc-daygrid-event-harness",key:o,style:{visibility:i[o]?"hidden":""}},BE(a)?re(NE,Object.assign({seg:a,isDragging:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},ru(a,e.todayRange))):re(IE,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},ru(a,e.todayRange))))}))}})}}function VW(t){let e=[],r=[];for(let n of t)e.push(n.seg),n.isVisible||r.push(n.seg);return{allSegs:e,invisibleSegs:r}}const WW=$t({week:"narrow"});class $W extends eo{constructor(){super(...arguments),this.rootElRef=gi(),this.state={dayNumberId:Oc()},this.handleRootEl=e=>{yi(this.rootElRef,e),yi(this.props.elRef,e)}}render(){let{context:e,props:r,state:n,rootElRef:i}=this,{options:a,dateEnv:o}=e,{date:s,dateProfile:l}=r;const u=r.showDayNumber&&UW(s,l.currentRange,o);return re(fE,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...r.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},r.extraDataAttrs),r.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:GW,date:s,dateProfile:l,todayRange:r.todayRange,showDayNumber:r.showDayNumber,isMonthStart:u,extraRenderProps:r.extraRenderProps},(f,c)=>re("div",{ref:r.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:r.minHeight}},r.showWeekNumber&&re(mV,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:hm(e,s,"week"),date:s,defaultFormat:WW}),!c.isDisabled&&(r.showDayNumber||cE(a)||r.forceDayTop)?re("div",{className:"fc-daygrid-day-top"},re(f,{elTag:"a",elClasses:["fc-daygrid-day-number",u&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},hm(e,s)),{id:n.dayNumberId})})):r.showDayNumber?re("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},re("a",{className:"fc-daygrid-day-number"}," ")):void 0,re("div",{className:"fc-daygrid-day-events",ref:r.fgContentElRef},r.fgContent,re("div",{className:"fc-daygrid-day-bottom",style:{marginTop:r.moreMarginTop}},re(HW,{allDayDate:s,singlePlacements:r.singlePlacements,moreCnt:r.moreCnt,alignmentElRef:i,alignGridTop:!r.showDayNumber,extraDateSpan:r.extraDateSpan,dateProfile:r.dateProfile,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,todayRange:r.todayRange}))),re("div",{className:"fc-daygrid-day-bg"},r.bgContent)))}}function GW(t){return t.dayNumberText||re(Rt,null," ")}function UW(t,e,r){const{start:n,end:i}=e,a=qi(i,-1),o=r.getYear(n),s=r.getMonth(n),l=r.getYear(a),u=r.getMonth(a);return!(o===l&&s===u)&&(t.valueOf()===n.valueOf()||r.getDay(t)===1&&t.valueOf()<i.valueOf())}function FE(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function LE(t){return FE(t)+":"+t.lastCol}function qW(t,e,r,n,i,a,o){let s=new ZW(m=>{let y=t[m.index].eventRange.instance.instanceId+":"+m.span.start+":"+(m.span.end-1);return i[y]||1});s.allowReslicing=!0,s.strictOrder=n,e===!0||r===!0?(s.maxCoord=a,s.hiddenConsumes=!0):typeof e=="number"?s.maxStackCnt=e:typeof r=="number"&&(s.maxStackCnt=r,s.hiddenConsumes=!0);let l=[],u=[];for(let m=0;m<t.length;m+=1){let y=t[m],b=LE(y);i[b]!=null?l.push({index:m,span:{start:y.firstCol,end:y.lastCol+1}}):u.push(y)}let f=s.addSegs(l),c=s.toRects(),{singleColPlacements:d,multiColPlacements:h,leftoverMargins:v}=YW(c,t,o),g=[],p=[];for(let m of u){h[m.firstCol].push({seg:m,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let y=m.firstCol;y<=m.lastCol;y+=1)d[y].push({seg:bs(m,y,y+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let m=0;m<o.length;m+=1)g.push(0);for(let m of f){let y=t[m.index],b=m.span;h[b.start].push({seg:bs(y,b.start,b.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let _=b.start;_<b.end;_+=1)g[_]+=1,d[_].push({seg:bs(y,_,_+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let m=0;m<o.length;m+=1)p.push(v[m]);return{singleColPlacements:d,multiColPlacements:h,moreCnts:g,moreMarginTops:p}}function YW(t,e,r){let n=XW(t,r.length),i=[],a=[],o=[];for(let s=0;s<r.length;s+=1){let l=n[s],u=[],f=0,c=0;for(let h of l){let v=e[h.index];u.push({seg:bs(v,s,s+1,r),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:h.levelCoord-f}),f=h.levelCoord+h.thickness}let d=[];f=0,c=0;for(let h of l){let v=e[h.index],g=h.span.end-h.span.start>1,p=h.span.start===s;c+=h.levelCoord-f,f=h.levelCoord+h.thickness,g?(c+=h.thickness,p&&d.push({seg:bs(v,h.span.start,h.span.end,r),isVisible:!0,isAbsolute:!0,absoluteTop:h.levelCoord,marginTop:0})):p&&(d.push({seg:bs(v,h.span.start,h.span.end,r),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:c}),c=0)}i.push(u),a.push(d),o.push(c)}return{singleColPlacements:i,multiColPlacements:a,leftoverMargins:o}}function XW(t,e){let r=[];for(let n=0;n<e;n+=1)r.push([]);for(let n of t)for(let i=n.span.start;i<n.span.end;i+=1)r[i].push(n);return r}function bs(t,e,r,n){if(t.firstCol===e&&t.lastCol===r-1)return t;let i=t.eventRange,a=i.range,o=ms(a,{start:n[e].date,end:Jt(n[r-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:r-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:o},isStart:t.isStart&&o.start.valueOf()===a.start.valueOf(),isEnd:t.isEnd&&o.end.valueOf()===a.end.valueOf()})}class ZW extends HH{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const r=super.addSegs(e),{entriesByLevel:n}=this,i=a=>!this.forceHidden[nu(a)];for(let a=0;a<n.length;a+=1)n[a]=n[a].filter(i);return r}handleInvalidInsertion(e,r,n){const{entriesByLevel:i,forceHidden:a}=this,{touchingEntry:o,touchingLevel:s,touchingLateral:l}=e;if(this.hiddenConsumes&&o){const u=nu(o);if(!a[u])if(this.allowReslicing){const f=Object.assign(Object.assign({},o),{span:rE(o.span,r.span)}),c=nu(f);a[c]=!0,i[s][l]=f,n.push(f),this.splitEntry(o,r,n)}else a[u]=!0,n.push(o)}super.handleInvalidInsertion(e,r,n)}}class kE extends eo{constructor(){super(...arguments),this.cellElRefs=new to,this.frameElRefs=new to,this.fgElRefs=new to,this.segHarnessRefs=new to,this.rootElRef=gi(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:r,context:n}=this,{options:i}=n,a=e.cells.length,o=qc(e.businessHourSegs,a),s=qc(e.bgEventSegs,a),l=qc(this.getHighlightSegs(),a),u=qc(this.getMirrorSegs(),a),{singleColPlacements:f,multiColPlacements:c,moreCnts:d,moreMarginTops:h}=qW(pH(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,r.segHeights,r.maxContentHeight,e.cells),v=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return re("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((g,p)=>{let m=this.renderFgSegs(p,e.forPrint?f[p]:c[p],e.todayRange,v),y=this.renderFgSegs(p,KW(u[p],c),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return re($W,{key:g.key,elRef:this.cellElRefs.createRef(g.key),innerElRef:this.frameElRefs.createRef(g.key),dateProfile:e.dateProfile,date:g.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&p===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:g.extraRenderProps,extraDataAttrs:g.extraDataAttrs,extraClassNames:g.extraClassNames,extraDateSpan:g.extraDateSpan,moreCnt:d[p],moreMarginTop:h[p],singlePlacements:f[p],fgContentElRef:this.fgElRefs.createRef(g.key),fgContent:re(Rt,null,re(Rt,null,m),re(Rt,null,y)),bgContent:re(Rt,null,this.renderFillSegs(l[p],"highlight"),this.renderFillSegs(o[p],"non-business"),this.renderFillSegs(s[p],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,r){let n=this.props;this.updateSizing(!kn(e,n))}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,r,n,i,a,o,s){let{context:l}=this,{eventSelection:u}=this.props,{framePositions:f}=this.state,c=this.props.cells.length===1,d=a||o||s,h=[];if(f)for(let v of r){let{seg:g}=v,{instanceId:p}=g.eventRange.instance,m=v.isVisible&&!i[p],y=v.isAbsolute,b="",_="";y&&(l.isRtl?(_=0,b=f.lefts[g.lastCol]-f.lefts[g.firstCol]):(b=0,_=f.rights[g.firstCol]-f.rights[g.lastCol])),h.push(re("div",{className:"fc-daygrid-event-harness"+(y?" fc-daygrid-event-harness-abs":""),key:FE(g),ref:d?null:this.segHarnessRefs.createRef(LE(g)),style:{visibility:m?"":"hidden",marginTop:y?"":v.marginTop,top:y?v.absoluteTop:"",left:b,right:_}},BE(g)?re(NE,Object.assign({seg:g,isDragging:a,isSelected:p===u,defaultDisplayEventEnd:c},ru(g,n))):re(IE,Object.assign({seg:g,isDragging:a,isResizing:o,isDateSelecting:s,isSelected:p===u,defaultDisplayEventEnd:c},ru(g,n)))))}return h}renderFillSegs(e,r){let{isRtl:n}=this.context,{todayRange:i}=this.props,{framePositions:a}=this.state,o=[];if(a)for(let s of e){let l=n?{right:0,left:a.lefts[s.lastCol]-a.lefts[s.firstCol]}:{left:0,right:a.rights[s.firstCol]-a.rights[s.lastCol]};o.push(re("div",{key:_H(s.eventRange),className:"fc-daygrid-bg-harness",style:l},r==="bg-event"?re(vV,Object.assign({seg:s},ru(s,i))):gV(r)))}return re(Rt,{},...o)}updateSizing(e){let{props:r,state:n,frameElRefs:i}=this;if(!r.forPrint&&r.clientWidth!==null){if(e){let l=r.cells.map(u=>i.currentMap[u.key]);if(l.length){let u=this.rootElRef.current,f=new Vc(u,l,!0,!1);(!n.framePositions||!n.framePositions.similarTo(f))&&this.setState({framePositions:new Vc(u,l,!0,!1)})}}const a=this.state.segHeights,o=this.querySegHeights(),s=r.dayMaxEvents===!0||r.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},a),o),maxContentHeight:s?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,r={};for(let n in e){let i=Math.round(e[n].getBoundingClientRect().height);r[n]=Math.max(r[n]||0,i)}return r}computeMaxContentHeight(){let e=this.props.cells[0].key,r=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return r.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(r=>e[r.key])}}kE.addStateEquality({segHeights:kn});function KW(t,e){if(!t.length)return[];let r=QW(e);return t.map(n=>({seg:n,isVisible:!0,isAbsolute:!0,absoluteTop:r[n.eventRange.instance.instanceId],marginTop:0}))}function QW(t){let e={};for(let r of t)for(let n of r)e[n.seg.eventRange.instance.instanceId]=n.absoluteTop;return e}class JW extends eo{constructor(){super(...arguments),this.splitBusinessHourSegs=it(Uc),this.splitBgEventSegs=it(Uc),this.splitFgEventSegs=it(Uc),this.splitDateSelectionSegs=it(Uc),this.splitEventDrag=it(ME),this.splitEventResize=it(ME),this.rowRefs=new to}render(){let{props:e,context:r}=this,n=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,n),a=this.splitBgEventSegs(e.bgEventSegs,n),o=this.splitFgEventSegs(e.fgEventSegs,n),s=this.splitDateSelectionSegs(e.dateSelectionSegs,n),l=this.splitEventDrag(e.eventDrag,n),u=this.splitEventResize(e.eventResize,n),f=n>=7&&e.clientWidth?e.clientWidth/r.options.aspectRatio/6:null;return re(gm,{unit:"day"},(c,d)=>re(Rt,null,e.cells.map((h,v)=>re(kE,{ref:this.rowRefs.createRef(v),key:h.length?h[0].date.toISOString():v,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:d,dateProfile:e.dateProfile,cells:h,renderIntro:e.renderRowIntro,businessHourSegs:i[v],eventSelection:e.eventSelection,bgEventSegs:a[v].filter(e$),fgEventSegs:o[v],dateSelectionSegs:s[v],eventDrag:l[v],eventResize:u[v],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:f,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],r=e?e.closest(".fc-daygrid-body"):null;r&&(this.rootEl=r,this.context.registerInteractiveComponent(this,{el:r,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Vc(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Vc(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,r){let{colPositions:n,rowPositions:i}=this,a=n.leftToIndex(e),o=i.topToIndex(r);if(o!=null&&a!=null){let s=this.props.cells[o][a];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(o,a),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(o,a),rect:{left:n.lefts[a],right:n.rights[a],top:i.tops[o],bottom:i.bottoms[o]},layer:0}}return null}getCellEl(e,r){return this.rowRefs.currentMap[e].getCellEls()[r]}getCellRange(e,r){let n=this.props.cells[e][r].date,i=Jt(n,1);return{start:n,end:i}}}function e$(t){return t.eventRange.def.allDay}class t$ extends eo{constructor(){super(...arguments),this.elRef=gi(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:r,dayMaxEvents:n,expandRows:i}=e,a=n===!0||r===!0;a&&!i&&(a=!1,r=null,n=null);let o=["fc-daygrid-body",a?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return re("div",{ref:this.elRef,className:o.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},re("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,re("tbody",{role:"presentation"},re(JW,{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:n,dayMaxEventRows:r,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=r$(this.elRef.current,this.props.dateProfile);if(e){const r=e.closest(".fc-daygrid-body"),n=r.closest(".fc-scroller"),i=e.getBoundingClientRect().top-r.getBoundingClientRect().top;n.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function r$(t,e){let r;return e.currentRangeUnit.match(/year|month/)&&(r=t.querySelector(`[data-date="${K9(e.currentDate)}-01"]`)),r||(r=t.querySelector(`[data-date="${qg(e.currentDate)}"]`)),r}class n$ extends ZH{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,r){return r.sliceRange(e)}}class i$ extends eo{constructor(){super(...arguments),this.slicer=new n$,this.tableRef=gi()}render(){let{props:e,context:r}=this;return re(t$,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,r,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 a$ extends zW{constructor(){super(...arguments),this.buildDayTableModel=it(o$),this.headerRef=gi(),this.tableRef=gi()}render(){let{options:e,dateProfileGenerator:r}=this.context,{props:n}=this,i=this.buildDayTableModel(n.dateProfile,r),a=e.dayHeaders&&re(UH,{ref:this.headerRef,dateProfile:n.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),o=s=>re(i$,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:i,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:s.tableColGroupNode,tableMinWidth:s.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:s.clientWidth,clientHeight:s.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(a,o,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(a,o)}}function o$(t,e){let r=new YH(t.renderRange,e);return new XH(r,/year|month|week/.test(t.currentRangeUnit))}class s$ extends OS{buildRenderRange(e,r,n){let i=super.buildRenderRange(e,r,n),{props:a}=this;return l$({currentRange:i,snapToWeek:/^(year|month)$/.test(r),fixedWeekCount:a.fixedWeekCount,dateEnv:a.dateEnv})}}function l$(t){let{dateEnv:e,currentRange:r}=t,{start:n,end:i}=r,a;if(t.snapToWeek&&(n=e.startOfWeek(n),a=e.startOfWeek(i),a.valueOf()!==i.valueOf()&&(i=uS(a,1))),t.fixedWeekCount){let o=e.startOfWeek(e.startOfMonth(Jt(r.end,-1))),s=Math.ceil(z9(o,i));i=uS(i,6-s)}return{start:n,end:i}}var u$=':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}';JD(u$);var f$=ro({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:a$,dateProfileGeneratorClass:s$},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}}}}),zE={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Sa,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",f="week",c="month",d="quarter",h="year",v="date",g="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var P=["th","st","nd","rd"],N=M%100;return"["+M+(P[(N-20)%10]||P[N]||P[0])+"]"}},b=function(M,P,N){var H=String(M);return!H||H.length>=P?M:""+Array(P+1-H.length).join(N)+M},_={s:b,z:function(M){var P=-M.utcOffset(),N=Math.abs(P),H=Math.floor(N/60),j=N%60;return(P<=0?"+":"-")+b(H,2,"0")+":"+b(j,2,"0")},m:function M(P,N){if(P.date()<N.date())return-M(N,P);var H=12*(N.year()-P.year())+(N.month()-P.month()),j=P.clone().add(H,c),G=N-j<0,L=P.clone().add(H+(G?-1:1),c);return+(-(H+(N-j)/(G?j-L:L-j))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:c,y:h,w:f,d:u,D:v,h:l,m:s,s:o,ms:a,Q:d}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},C="en",w={};w[C]=y;var x="$isDayjsObject",D=function(M){return M instanceof R||!(!M||!M[x])},S=function M(P,N,H){var j;if(!P)return C;if(typeof P=="string"){var G=P.toLowerCase();w[G]&&(j=G),N&&(w[G]=N,j=G);var L=P.split("-");if(!j&&L.length>1)return M(L[0])}else{var U=P.name;w[U]=P,j=U}return!H&&j&&(C=j),j||!H&&C},T=function(M,P){if(D(M))return M.clone();var N=typeof P=="object"?P:{};return N.date=M,N.args=arguments,new R(N)},E=_;E.l=S,E.i=D,E.w=function(M,P){return T(M,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var R=function(){function M(N){this.$L=S(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[x]=!0}var P=M.prototype;return P.parse=function(N){this.$d=function(H){var j=H.date,G=H.utc;if(j===null)return new Date(NaN);if(E.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var L=j.match(p);if(L){var U=L[2]-1||0,J=(L[7]||"0").substring(0,3);return G?new Date(Date.UTC(L[1],U,L[3]||1,L[4]||0,L[5]||0,L[6]||0,J)):new Date(L[1],U,L[3]||1,L[4]||0,L[5]||0,L[6]||0,J)}}return new Date(j)}(N),this.init()},P.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},P.$utils=function(){return E},P.isValid=function(){return this.$d.toString()!==g},P.isSame=function(N,H){var j=T(N);return this.startOf(H)<=j&&j<=this.endOf(H)},P.isAfter=function(N,H){return T(N)<this.startOf(H)},P.isBefore=function(N,H){return this.endOf(H)<T(N)},P.$g=function(N,H,j){return E.u(N)?this[H]:this.set(j,N)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(N,H){var j=this,G=!!E.u(H)||H,L=E.p(N),U=function($,Q){var K=E.w(j.$u?Date.UTC(j.$y,Q,$):new Date(j.$y,Q,$),j);return G?K:K.endOf(u)},J=function($,Q){return E.w(j.toDate()[$].apply(j.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(Q)),j)},ee=this.$W,ae=this.$M,q=this.$D,I="set"+(this.$u?"UTC":"");switch(L){case h:return G?U(1,0):U(31,11);case c:return G?U(1,ae):U(0,ae+1);case f:var Y=this.$locale().weekStart||0,z=(ee<Y?ee+7:ee)-Y;return U(G?q-z:q+(6-z),ae);case u:case v:return J(I+"Hours",0);case l:return J(I+"Minutes",1);case s:return J(I+"Seconds",2);case o:return J(I+"Milliseconds",3);default:return this.clone()}},P.endOf=function(N){return this.startOf(N,!1)},P.$set=function(N,H){var j,G=E.p(N),L="set"+(this.$u?"UTC":""),U=(j={},j[u]=L+"Date",j[v]=L+"Date",j[c]=L+"Month",j[h]=L+"FullYear",j[l]=L+"Hours",j[s]=L+"Minutes",j[o]=L+"Seconds",j[a]=L+"Milliseconds",j)[G],J=G===u?this.$D+(H-this.$W):H;if(G===c||G===h){var ee=this.clone().set(v,1);ee.$d[U](J),ee.init(),this.$d=ee.set(v,Math.min(this.$D,ee.daysInMonth())).$d}else U&&this.$d[U](J);return this.init(),this},P.set=function(N,H){return this.clone().$set(N,H)},P.get=function(N){return this[E.p(N)]()},P.add=function(N,H){var j,G=this;N=Number(N);var L=E.p(H),U=function(ae){var q=T(G);return E.w(q.date(q.date()+Math.round(ae*N)),G)};if(L===c)return this.set(c,this.$M+N);if(L===h)return this.set(h,this.$y+N);if(L===u)return U(1);if(L===f)return U(7);var J=(j={},j[s]=n,j[l]=i,j[o]=r,j)[L]||1,ee=this.$d.getTime()+N*J;return E.w(ee,this)},P.subtract=function(N,H){return this.add(-1*N,H)},P.format=function(N){var H=this,j=this.$locale();if(!this.isValid())return j.invalidDate||g;var G=N||"YYYY-MM-DDTHH:mm:ssZ",L=E.z(this),U=this.$H,J=this.$m,ee=this.$M,ae=j.weekdays,q=j.months,I=j.meridiem,Y=function(Q,K,X,ce){return Q&&(Q[K]||Q(H,G))||X[K].slice(0,ce)},z=function(Q){return E.s(U%12||12,Q,"0")},$=I||function(Q,K,X){var ce=Q<12?"AM":"PM";return X?ce.toLowerCase():ce};return G.replace(m,function(Q,K){return K||function(X){switch(X){case"YY":return String(H.$y).slice(-2);case"YYYY":return E.s(H.$y,4,"0");case"M":return ee+1;case"MM":return E.s(ee+1,2,"0");case"MMM":return Y(j.monthsShort,ee,q,3);case"MMMM":return Y(q,ee);case"D":return H.$D;case"DD":return E.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return Y(j.weekdaysMin,H.$W,ae,2);case"ddd":return Y(j.weekdaysShort,H.$W,ae,3);case"dddd":return ae[H.$W];case"H":return String(U);case"HH":return E.s(U,2,"0");case"h":return z(1);case"hh":return z(2);case"a":return $(U,J,!0);case"A":return $(U,J,!1);case"m":return String(J);case"mm":return E.s(J,2,"0");case"s":return String(H.$s);case"ss":return E.s(H.$s,2,"0");case"SSS":return E.s(H.$ms,3,"0");case"Z":return L}return null}(Q)||L.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(N,H,j){var G,L=this,U=E.p(H),J=T(N),ee=(J.utcOffset()-this.utcOffset())*n,ae=this-J,q=function(){return E.m(L,J)};switch(U){case h:G=q()/12;break;case c:G=q();break;case d:G=q()/3;break;case f:G=(ae-ee)/6048e5;break;case u:G=(ae-ee)/864e5;break;case l:G=ae/i;break;case s:G=ae/n;break;case o:G=ae/r;break;default:G=ae}return j?G:E.a(G)},P.daysInMonth=function(){return this.endOf(c).$D},P.$locale=function(){return w[this.$L]},P.locale=function(N,H){if(!N)return this.$L;var j=this.clone(),G=S(N,H,!0);return G&&(j.$L=G),j},P.clone=function(){return E.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},M}(),B=R.prototype;return T.prototype=B,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",c],["$y",h],["$D",v]].forEach(function(M){B[M[1]]=function(P){return this.$g(P,M[0],M[1])}}),T.extend=function(M,P){return M.$i||(M(P,R,T),M.$i=!0),T},T.locale=S,T.isDayjs=D,T.unix=function(M){return T(1e3*M)},T.en=w[C],T.Ls=w,T.p={},T})})(zE);var c$=zE.exports;const Qi=Yo(c$);var jE={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Sa,function(){return function(r,n,i){n.prototype.isBetween=function(a,o,s,l){var u=i(a),f=i(o),c=(l=l||"()")[0]==="(",d=l[1]===")";return(c?this.isAfter(u,s):!this.isBefore(u,s))&&(d?this.isBefore(f,s):!this.isAfter(f,s))||(c?this.isBefore(u,s):!this.isAfter(u,s))&&(d?this.isAfter(f,s):!this.isBefore(f,s))}}})})(jE);var d$=jE.exports;const h$=Yo(d$),HE=F.createContext(void 0),v$=({children:t,initialData:e})=>{const[r,n]=F.useState(e);return A.jsx(HE.Provider,{value:{globalData:r,setGlobalData:n},children:t})},no=()=>{const t=F.useContext(HE);if(!t)throw new Error("useAppContext must be used within an AppProvider");return t},VE=({fieldOptions:t,val:e,field:r,fieldMap:n})=>{var o,s,l;const i=t==null?void 0:t.find(u=>u.value===r);let a=e;if((i==null?void 0:i.type)==="enum"&&(i!=null&&i.enum)&&((o=i==null?void 0:i.enum)==null?void 0:o.length)>0){const u=(l=(s=i==null?void 0:i.enum)==null?void 0:s.find(f=>f.value===e))==null?void 0:l.label;a=u&&(n==null?void 0:n[u])||e}return(i==null?void 0:i.type)==="timestamp"&&(a=e?Qi(e).format("YYYY-MM-DD"):""),a};Qi.extend(h$);const WE=({moduleDataApi:t,customData:e,width:r,height:n})=>{const{t:i}=Dr(),{globalData:a}=no(),[o,s]=F.useState(),[l,u]=F.useState(),[f,c]=F.useState(!1),[d,h]=F.useState(),[v,g]=F.useState([]),p=F.useRef(null),m=F.useCallback(async()=>{if(s([]),e){let w="";e!=null&&e.conditionData&&(w+=`${Bg(e==null?void 0:e.conditionData)}`),e!=null&&e.dataSourceId&&(t==null||t({id:e==null?void 0:e.dataSourceId,query:w}).then(x=>{if(!x.success){Z.message.error(x.message);return}s(x.data)}))}else s([])},[e==null?void 0:e.dataSourceId,e==null?void 0:e.conditionData]);F.useEffect(()=>{e&&m()},[e==null?void 0:e.dataSourceId,e==null?void 0:e.conditionData]),F.useEffect(()=>{var w;a!=null&&a.sourceData&&(e!=null&&e.dataSourceId)&&u((w=a==null?void 0:a.sourceData.find(x=>x.value===(e==null?void 0:e.dataSourceId)))==null?void 0:w.fields)},[a,e]),F.useEffect(()=>{const w=o==null?void 0:o.map(x=>{var D,S;return{title:e!=null&&e.titleField&&x[e==null?void 0:e.titleField]||i("unnamedRecord"),start:e!=null&&e.startDateField&&x[e==null?void 0:e.startDateField]?(D=Qi(x[e==null?void 0:e.startDateField]))==null?void 0:D.toISOString():"",end:e!=null&&e.endDateField&&x[e==null?void 0:e.endDateField]?(S=Qi(x[e==null?void 0:e.endDateField]))==null?void 0:S.toISOString():void 0,allDay:!0,...x}});g(w)},[o,e]);const y=w=>{const x=w.event;c(!0),h(x.extendedProps)},[b,_]=F.useState("100%"),C=F.useRef();return F.useEffect(()=>{(()=>{C.current&&_(C.current.offsetWidth)})()},[r,n]),F.useEffect(()=>{p.current&&setTimeout(()=>{var w,x;(x=(w=p.current)==null?void 0:w.getApi())==null||x.updateSize()},500)},[b]),F.useEffect(()=>{setTimeout(()=>{var w,x;(x=(w=p.current)==null?void 0:w.getApi())==null||x.updateSize()},500)},[]),A.jsx("div",{ref:C,className:"full-calendar-app",style:{height:"100%",width:"100%"},children:A.jsxs("div",{style:{height:"100%",width:"100%",overflowY:"auto"},children:[A.jsx(OE,{ref:p,plugins:[f$],headerToolbar:{left:"prev,next today",center:"title",right:""},initialView:"dayGridMonth",height:"auto",contentHeight:"auto",editable:!0,selectable:!0,selectMirror:!0,fixedWeekCount:!1,events:v,eventContent:w=>A.jsx(A.Fragment,{children:A.jsx("i",{children:w.event.title})}),eventClick:y}),A.jsx(Z.Modal,{title:e!=null&&e.titleField?(d==null?void 0:d[e==null?void 0:e.titleField])||i("unnamedRecord"):null,open:f,onOk:()=>{c(!1)},onCancel:()=>{c(!1)},footer:(w,{OkBtn:x})=>A.jsx(A.Fragment,{children:A.jsx(x,{})}),children:l!=null&&l.length?A.jsx(Z.Descriptions,{className:"reset-descriptions",layout:"vertical",column:2,items:l==null?void 0:l.map((w,x)=>({key:x,label:w.label,children:VE({fieldOptions:l,val:d==null?void 0:d[w.value],field:w.value,fieldMap:a==null?void 0:a.fieldMap})}))}):null})]})})};/*! *****************************************************************************
|
|
127
127
|
Copyright (c) Microsoft Corporation.
|
|
128
128
|
|
|
129
129
|
Permission to use, copy, modify, and/or distribute this software for any
|